Jump to content

Can't connect to vscode


---
 Share

Recommended Posts

Hello everyone,

I have recently started to get into scripting in ZEISS INSPECT 2025 but using the internal editor is really holding me back, so i tried to connect vscode using this guide: 

Using Visual Studio Code as an add-on editor — Add-On Documentation

However, when clicking on "Host: Disconnected" the only thing that happens is it tries to add a nonexisting folder to the workspace and doesn't connect.

image.png.fc21610b9f5cad4fb6b94ba216d99927.png

When I change the Editor Port in INSPECT to something else, vscode gives me an error saying "Cannot connect to application" so i know that the settings are correct.

The settings in INSPECT also look a little different from the Guide, as  they are under Apps->API configuration and there appears to be an API key which is not mentioned anywhere else.

Link to comment
Share on other sites

Yes, without it there wouldn't be a "Host: disconnected" Button.

I have also tried multiple versions of this addon.

Link to comment
Share on other sites

I have now also tested this with INSPECT 2025 - and also get no connection from VSC to INSPECT! With the INSPECT 2023 version, on the other hand, this works perfectly. I set the port to the same value 40000 in both versions.

Link to comment
Share on other sites

  • 2 months later...

Hello,

an update of the VSCode extension "ZEISS INSPECT App Development" has been released on ZEISS INSPECT App Development - Visual Studio Marketplace.

Please see Using Visual Studio Code as App editor — App Development Documentation for setup and usage.

Users of ZEISS INSPECT 2023 or earlier still have to keep using the VSCode extension version 2024.x.y.

Best regards,

Matthias

Link to comment
Share on other sites

Thanks Matthias,
I've followed the instructions, installed python 3.9, zeiss-inspect-api via pip, updated VScode extension to 2025.3.110, configured settings, choose 3.9 as python interpreter, & was able to connect,
but its not loading any add-ons / workspaces into the explorer as it did in 2023:

So although i'm 'connected' I see:
image.png.cb281dec2589889b1ced520f5b732187.png

 

but I am connected & see all the elements in the zeiss inspect 2025 (blank)project:
image.thumb.png.49fc5bd421cc15eac8aa15c1cd222be6.png
 

disconnecting/reconnecting throws an error in bottom right comer:
"Cannot Connect to Application: Error: a provider for the scheme 'scriptfs' is already registered'

image.png.dc289f4a46f042dd726106c6c36b2c91.png
Not sure if its related, or just because I disconnected/reconnected.
(it doesn't appear on initial connection)

I tried uninstalling the zeiss inspect pluggin for vs-code, re-installing, restarting computer...etc. no luck.
then I tried un-installing vs-code, deleting %APPDATA%\Code & %USERPROFILE%\.vscode
then re-installing visual studio code / zeiss plugin, but still no luck.
Any idea on what could be causing this? 

Link to comment
Share on other sites

 Share

×
×
  • Create New...