I’ve installed VS Code 1.90.2 and Python 3.12.3 on my computer. After setting up Python as an interpreter, I added Revit API stubs for path extension as shown below
I tested the API autocomplete, and it works the first time when I access Revit DB, as shown in the example below. However, it does not work the second time when I try to filter using FilteredCollector!?
I would first like to clarify that I don’t have any version of Revit installed on this PC. I just want to write my codes so I can use them later on another PC where I have Revit 2023 installed.
The subs settings are as indicated in the post above. Are they correct, or should I add other things?
Pylance which is the language server (linting, autocompletion etc) for Python on VS Code requires Python 3
I have my interpreter for development to be same as current Dynamo CPython3 which is 3.9
You could downgrade your python extension to use 2.7 for the workspace - details on Stack Overflow here. You may find your settings.json file may have issues and need review