Skip to content
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

ZMT zurich med tech

  1. Home
  2. Sim4Life
  3. Python API
  4. S4L Scripting VS Code Extension Cannot Run or Debug Python Script via Remote-SSH Despite Successful Connection

S4L Scripting VS Code Extension Cannot Run or Debug Python Script via Remote-SSH Despite Successful Connection

Scheduled Pinned Locked Moved Python API
1 Posts 1 Posters 14 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    er1chu
    wrote last edited by
    #1

    Hello,

    I am experiencing an issue with the S4L Scripting extension in VS Code.

    Sim4Life is running on a server within a local area network. On my local machine, I use VS Code with Remote-SSH to connect to the server. The S4L Scripting extension is installed on the server side, and the compiler path has been correctly configured. The extension settings are shown below:

    4006d4e9-9451-42c9-a73f-37966d3b46ea-image.png

    When I run the command S4L: Identify in VS Code, the extension notification shows that the connection is successful. The Sim4Life terminal on the host machine also indicates that it has successfully connected to the extension.
    e3c60d40-1b59-47ca-9824-45fc90fd0075-f4269e7a12cadecc781cf16a3be80c53.png

    0d2a92f7-c570-4bd8-bf97-6eee6f752132-131ab56bcce2ff3d6f31078f3aa4fe12.png

    When I run S4L: Open Current Script, the target script can also be opened correctly in Sim4Life.

    However, when I try to execute the script using S4L: Run Python Script, the extension notification says that there is currently no running Sim4Life process. The same issue occurs when I try to run the debug command for the script.

    0a38697d-5876-4785-b791-77a6e0389530-d86d1462f21252c4624f7077af6c2a84.png

    I have tried changing several extension settings as well as the Python-related settings inside Sim4Life, but I still cannot run scripts through the extension.

    My Sim4Life Python configuration is shown below:

    dc2befc6-ceff-433a-b983-6933efeafece-ed6f244a62718e45c2dfa0f9b91a5291.png

    I have confirmed that the Extension Communication Port setting is the same in both Sim4Life and the VS Code extension. I have also confirmed that the system firewall allows traffic through this port.

    Could you please help me what might be causing this issue?

    Thank you for your help.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Search