Pylance in VS Code

3138
2
Jump to solution
10-27-2023 07:27 AM
HaydenWelch
Frequent Contributor

Been having issues with the latest Pylance for VS Code not properly following arcpy imports and specifically hanging up the Pylance server on the arcpy imports meaning all syntax highlighting for any python script is lost.

 

Not sure if this is an ESRI bug (the hangup makes me think it might have something to do with the licensing server?), but as of now the workaround is reverting back to v2023.7.40

 

Example of what the latest Pylance shows:

HaydenWelch_0-1698416924026.png

 

Example of proper behavior with the old Pylance

HaydenWelch_1-1698416982794.png

 

0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

apparently there are issues reported on github

Syntax highlighting and code completion stops working in v2023.9.10 onwards · Issue #5021 · microsof...

some had success with  v2023.10.40 


... sort of retired...

View solution in original post

2 Replies
DanPatterson
MVP Esteemed Contributor

apparently there are issues reported on github

Syntax highlighting and code completion stops working in v2023.9.10 onwards · Issue #5021 · microsof...

some had success with  v2023.10.40 


... sort of retired...
BuffaloCoWI
Frequent Contributor

They introduced this bug a while back (see issue 4862), fixed it in a pre-release version, then must not have merged the fix in the latest release.