problema
Hi @Joselitoya, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
Potential Duplicate Issues – These issues may be duplicates of your report, but may differ in some of the details.
- Pylance ignores
sys.path.insert(…)hacks and instead requires explicit configuration viapython.analysis.extraPaths. https://github.com/microsoft/pylance-release/issues/2132
Potential Workarounds:
- Add the Revit API paths to
python.analysis.extraPaths:
In your VS Codesettings.json, point Pylance at the folders containing the Revit API modules or your pyRevit library. For example:{ "python.analysis.extraPaths": [ "C:/Program Files/Autodesk/Revit 2024", "C:/Users/YourUser/.pyrevit/extensions/pyRevitStubExtensions" ] } - Include
.pyistubs for the Revit assemblies:
Generate or download type stub files (.pyi) forAutodesk.Revit.DB,Autodesk.Revit.UI, andAutodesk.Revit.Exceptions. Place them in a dedicated folder and add that folder topython.analysis.extraPaths(orpython.analysis.stubPath) so Pylance can resolve the imports.
The team will respond to your issue shortly. Please note this is a trial feature and may not be fully accurate. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or was incorrect, please give it a 👎. Your feedback helps us improve!
Thanks for the report. Unfortunately, this is not enough information for us to investigate this issue.
Can you please provide:
- A list of required packages and the versions you're using.
- The text of the diagnostics that are being reported.
so sorry i do not understand you. do you mean the version of my ide
@cjnewton-web, did you mean to post that comment on a different issue? You're not the original poster here.
This issue has been closed automatically because it needs more information and has not had recent activity. If the issue still persists, please reopen with the information requested. Thanks.
Hello 👋🏿Microsoft/Pylance-Release
is it something I need to attend to immediately and debug and also go over or it'll b sorted within the system.
On Sun, 13 Jul 2025, 12:25 github-actions[bot], @.***> wrote:
github-actions[bot] left a comment (microsoft/pylance-release#7315) https://github.com/microsoft/pylance-release/issues/7315#issuecomment-3066986563
This issue has been closed automatically because it needs more information and has not had recent activity. If the issue still persists, please reopen with the information requested. Thanks.
— Reply to this email directly, view it on GitHub https://github.com/microsoft/pylance-release/issues/7315#issuecomment-3066986563, or unsubscribe https://github.com/notifications/unsubscribe-auth/BTNJ4DUUZR7SICG5DVJQLL33II62FAVCNFSM6AAAAAB7D2Y2MOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTANRWHE4DMNJWGM . You are receiving this because you were mentioned.Message ID: @.***>
@cjnewton-web, you didn't file this issue, so I don't think there's anything you need to do here.