Pylance Missing Imports Poetry Hot đ Top
Alex had been staring at the blue squiggly line for three hours. It was 11:47 PM on a Tuesday, the kind of Tuesday that felt like a Friday that had been left out in the sun too long.
And a simple Python script that touches .vscode/settings.json to force a reload. pylance missing imports poetry hot
Short recommended workflow
(Note: You may need to delete your existing virtual environment and run poetry install again for this to take effect). Alex had been staring at the blue squiggly
Pylance, being a pedantic language server, didn't look across workspace roots for local editable installs. It looked at each root in isolation. From the perspective of src , the core folder didn't exist as a source of truthâonly the installed package in the .venv did. But Pylance, in its infinite wisdom, had decided that the editable installâs metadata was⊠wrong. Stale. Corrupted in its own cache. Short recommended workflow (Note: You may need to