sourcegraph / scip-python

SCIP indexer for Python
Other
46 stars 21 forks source link

Cast import paths to lowercase #138

Open Titou325 opened 7 months ago

Titou325 commented 7 months ago

This is a temporary workaround for #91 until the upstream merge is completed.

varungandhi-src commented 7 months ago

With this patch, there is still a difference in snapshot output on macOS, we should fix that before landing this.

diff --git a/packages/pyright-scip/snapshots/output/nested_items/src/long_importer.py b/packages/pyright-scip/snapshots/output/nested_items/src/long_importer.py
index bc76513e4..599ecbd68 100644
--- a/packages/pyright-scip/snapshots/output/nested_items/src/long_importer.py
+++ b/packages/pyright-scip/snapshots/output/nested_items/src/long_importer.py
@@ -2,7 +2,8 @@
 #documentation (module) src.long_importer

 import foo.bar.baz.mod
-#      ^^^^^^^^^^^^^^^ reference  snapshot-util 0.1 `foo.bar.baz.mod`/__init__:
+#      ^^^^^^^^^^^^^^^ reference local 0
+#      documentation (module): foo.bar.baz.mod [unable to res...

 print(foo.bar.baz.mod.SuchNestedMuchWow)
 #^^^^ reference  python-stdlib 3.11 builtins/print().
@@ -15,6 +16,6 @@ print(foo.bar.baz.mod.SuchNestedMuchWow)
 #            >     flush: Literal[False] = False
 #            > ) -> None
 #            > ```
-#     ^^^^^^^^^^^^^^^ reference  snapshot-util 0.1 `foo.bar.baz.mod`/__init__:
+#     ^^^ reference local 0
 #                     ^^^^^^^^^^^^^^^^^ reference  snapshot-util 0.1 `src.foo.bar.baz.mod`/SuchNestedMuchWow#