You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 77cace4
Browse filesBrowse the repository at this point in the historyBrowse files
fix: autodetect src layouts without overriding explicit search paths (#222)
* Enable autoSearchPaths to match pyright's CLI
pyright's own CLI sets `autoSearchPaths = true` unconditionally
("Always enable autoSearchPaths when using the command line",
pyright-internal/src/common/configOptions.ts consumer in pyright.ts).
scip-python replaces that entry point and never sets the field, so
`commandLineOptions.autoSearchPaths || false` is always false and
ensureDefaultExtraPaths() never adds ./src.
The effect is silent: for a src-layout project with no [tool.pyright]
section, definitions are emitted under `src.pkg.mod` while imports
resolve to `pkg.mod`, so every reference from outside src/ is dropped
from the index. The run exits 0 and the index is simply smaller.
An explicit extraPaths still takes precedence, so projects that already
configure pyright are unaffected.
Fixes#221
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* test: resolve temporary fixture paths on macOS
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments