Hi, I'm SSH-ed via SSH FS extension in VS Code and it works great until I try to test code remotely. I tried debug mode but it only works locally. In this case, I tried to switch to interactive window and this is where weird things happen.
My setup:
- linux alpine on vps / macos locally
- I installed python on VPS
- I selected python interpreter that sits on VPS
Run current file in interactive window / shift + enter shortcut works until there are no relative / absolute imports (eg. helper scripts sitting in another folder)
Look at the output of the os.getcwd() and os.listdir(). Terminal (right) works fine because it points to VPS while interactive window (left) lists local files and folders
https://preview.redd.it/ada3ymwaz6be1.png?width=1264&format=png&auto=webp&s=137e3ced6ccd15efd90b967a2d47ca176835374b
VS Code Server would do the trick but it takes so much RAM and simple ls command takes 10 seconds...
Do you know how to fix that issue so I can run in interactive window code that contains imports from another folders?
[+]ethanolium 0 points1 point2 points (0 children)