CSeitel / open-in-npp

VSC-extension: Open In Notepad++
MIT License
1 stars 1 forks source link

How to use it with Remote SSH? #5

Open vonsluzbov opened 1 year ago

vonsluzbov commented 1 year ago

I have VSC GUI running under Windows, but working via Remote SSH. When I tried to use th extention (either via Ctrl+K Ctrl+N, or context menu) I got:

Notepad++ execution failed due to error: "spawn C:\Program Files\Notepad++\notepad++.exe ENOENT"

I tried to setup executable path both for remote and local - it didn't help.

CSeitel commented 1 year ago

Are you referring to a scenario as described here https://code.visualstudio.com/docs/remote/ssh? The error would mean: File "C:\Program Files\Notepad++\notepad++.exe" not found likely from the perspective of the remote server.

vonsluzbov commented 11 months ago

Yes, exactly, this is the scenario. Shoudn't the vscode look for the notepad in a given directory ?

CSeitel commented 11 months ago

The extension runs on the remote server and starting Notepad++ there is likely not of much use because you would want to start it on your VSC GUI Windows system with accessing the remote files in a way as described here NppFTP - SSH.

The path to the Notepad++ -executable can be set in the settings of the extension as potentially e.g. C:\Program Files (x86) was also a viable location in the past. In the remote SSH-scenario I am not sure whether the root cause of the error ENOENT = FileNotFound couldn't also come from missing file access permissions.