timburgess/brackets-ftp-sync

Error: Cannot find module 'ssh2'

Opened this issue · 5 comments

I just started using Brackets this week (on OS X, Yosemite) and was very excited to see this extension. Problem I'm having is connecting to a remote server using SFTP. As the title indicates, Brackets is unable to find/load the ssh2 module.

I dug a little into the code but as I don't have much experience with node.js or developing Brackets extensions I'm not of much help.

The only thought I had was that perhaps there's a mechanism within the Brackets extension framework to download/install dependancies when required by an extension. If it is this easy maybe ssh2 just needs to be specified as a dependency in the package.js file (totally a guess).

Cheers,
-W

I have the same issue as well on Windows 8.1 using Brackets Release 1.1 build 1.1.0-15558

Having the same problem on Windows 7 using Release 1.1 versión 1.1.0-15558. I can't find the module's icon once installed.

Same issue here ("cannot find module 'ssh2'"). Running OS X Yosemite 10.10.1 with Brackets 1.1 build 1.1.0-15558.

Well I think i fixed it. I think the problem is that the current build doesn't include all the dependencies. My solution was to download the 2.0.1 and 2.0.0 zip files. Decompress both zip files. Copy the ssh2 folder from the 2.0.0/node/node_modules folder to the same place in the 2.0.1 folder. Re-zip the 2.0.1 folder (filename: ftp-sync_2.0.1.zip). UNINSTALL THE ORIGINAL EXTENSION. Install the modified zip file into Brackets manually. Appears to work. My apologizes for not knowing how to update the github files correctly.

-W

Thanks for the info and sorry about the 2.0.1 build - yes, it was missing the ssh2 module and it's dependencies. I have pulled the latest ssh2 code, created a 2.0.2 build and added it to the Brackets extension registry. All changes will be in the github repo soon.