Solved: liximomo error : file not found

https://stackoverflow.com/questions/67506693/vscode-error-no-such-file-sftp-liximomo-extension/67524099#67524099

This is apparently a brand new problem that has been introduced into the newer versions of VS Code. I have FOUND A SOLUTION that seems to work well, by modifying a single line in the extension code. This is only valid for version 1.12.9 of the liximomo.sftp extension.

Here are the steps:

  1. Shutdown / Quit VS Code.
  2. Locate the following file:
    Mac OS X:
    ~/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/sftp.js

    Windows:
    C:\Users\account_name\.vscode\extensions\liximomo.sftp-1.12.9\node_modules\ssh2-streams\lib\sftp.js
  3. Make a backup copy of the file.
  4. Modify line 388, which should be:
    if ( code === STATUS_CODE . OK ) { changing it to:
    if (code === STATUS_CODE.OK || code === STATUS_CODE.NO_SUCH_FILE) {
  5. Save the file.
  6. Relaunch VS Code; test by uploading or downloading from your sftp server. The error should not be present.

Leave a Reply

Your email address will not be published. Required fields are marked *