pylance-release icon indicating copy to clipboard operation
pylance-release copied to clipboard

problema

Open Joselitoya opened this issue 6 months ago • 4 comments

Image

Joselitoya avatar Jun 11 '25 23:06 Joselitoya

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 IssuesThese 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 via python.analysis.extraPaths. https://github.com/microsoft/pylance-release/issues/2132

Potential Workarounds:

  • Add the Revit API paths to python.analysis.extraPaths:
    In your VS Code settings.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 .pyi stubs for the Revit assemblies:
    Generate or download type stub files (.pyi) for Autodesk.Revit.DB, Autodesk.Revit.UI, and Autodesk.Revit.Exceptions. Place them in a dedicated folder and add that folder to python.analysis.extraPaths (or python.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!

github-actions[bot] avatar Jun 11 '25 23:06 github-actions[bot]

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.

debonte avatar Jun 11 '25 23:06 debonte

so sorry i do not understand you. do you mean the version of my ide

cjnewton-web avatar Jun 12 '25 18:06 cjnewton-web

@cjnewton-web, did you mean to post that comment on a different issue? You're not the original poster here.

debonte avatar Jun 12 '25 18:06 debonte

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.

github-actions[bot] avatar Jul 13 '25 11:07 github-actions[bot]

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 avatar Jul 13 '25 19:07 cjnewton-web

@cjnewton-web, you didn't file this issue, so I don't think there's anything you need to do here.

debonte avatar Jul 13 '25 20:07 debonte