Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Steel Brain
    @steelbrain
    Oopsie, typo, fixed
    Thijs Wijnmaalen
    @thijsw
    $ /usr/bin/nodejs test.js
    Something's wrong
    Local File '/tmp/atom-hack-test' doesn't exist
    Steel Brain
    @steelbrain
    Well, line#4 creates it.
    steelbrain @steelbrain is confused
    Thijs Wijnmaalen
    @thijsw
    weird
    Steel Brain
    @steelbrain
    Agreed
    can you manually touch that path please
    Thijs Wijnmaalen
    @thijsw
    jup
    $ touch /tmp/atom-hack-test
    vagrant@vagrant-ubuntu-trusty-64:/vagrant/www$ /usr/bin/nodejs test.js
    Something's wrong
    Local File '/tmp/atom-hack-test' doesn't exist
    Steel Brain
    @steelbrain
    Ah, node-ssh uses FS.accessSync which is only available in recent nodejs version and iojs, and You probably are using an older version
    Thijs Wijnmaalen
    @thijsw
    (note chopped of the vagrant prompt in 1st statement)
    Steel Brain
    @steelbrain
    and it works in atom because atom uses iojs
    Thijs Wijnmaalen
    @thijsw
    $ nodejs --version
    v0.10.25
    Steel Brain
    @steelbrain
    Exactly!
    A temp workaround would be to edit node_modules/node-ssh/dist/SSH.js and remove the lines which use fs.accessSync
    Thijs Wijnmaalen
    @thijsw
    on my host machine it's this:
    node --version
    v0.12.0
    but i am confused as how this could be the problem because i installed node on the guest just to run this test script, how can it be working in the first place if node isn't installed on the remote?
    Steel Brain
    @steelbrain
    or maybe you could put something like Hey I am a file in the remote machine's /tmp/atom-hack-test over ssh and then remove line#4 from the gist and re-run the script using the remote info on the host machine
    Note: Node is installed, it's just an older version.
    Thijs Wijnmaalen
    @thijsw

    done; from the host (without line #4) i get this response:

    node test.js
    The Directory thing is done

    Steel Brain
    @steelbrain
    Great
    now do you see the same contents in the file /tmp/atom-hack-test-uploaded in the vm
    Thijs Wijnmaalen
    @thijsw
    nope; that one is empty
    it exists though
    Steel Brain
    @steelbrain
    so you're saying that source file has contents and remote file is empty?
    It sure is a bug then
    Thijs Wijnmaalen
    @thijsw
    vagrant@vagrant-ubuntu-trusty-64:/vagrant/www$ cat /tmp/atom-hack-test-uploaded
    vagrant@vagrant-ubuntu-trusty-64:/vagrant/www$ cat /tmp/atom-hack-test
    Hey I am a file
    Steel Brain
    @steelbrain
    Oo Lala
    Thijs Wijnmaalen
    @thijsw
    i don't see the file on the host, because /tmp is not synced to my editor ;)
    Steel Brain
    @steelbrain
    Okay, I am super-confused LOL
    Thijs Wijnmaalen
    @thijsw
    i am sorry, but i have to leave in 5 mins (many thanks for help!)
    Steel Brain
    @steelbrain
    Okay, I'll try to reproduce this myself in a few minutes and will fix it ASAP, thanks for the report.
    You rock :+1:
    Thijs Wijnmaalen
    @thijsw
    no problem !
    thanks for your time
    Steel Brain
    @steelbrain
    The pleasure is all mine
    Steel Brain
    @steelbrain
    I tried to reproduce the problem on both windows and linux, and all seemed fine to me.
    Haku Douga
    @HakuDouga
    Hey steelbrain! I've stepped upon an issue. I have this environment right now: 1x windows (atom installed there) & an ubuntu server (as vm on my windows) where I've installed hhvm + nginx. I'm using a samba share to edit files on my ubuntu - am I able to use your atom-hack package?
    Steel Brain
    @steelbrain
    @HakuDouga Yeah sure, as long as it supports ssh.
    Make sure to set remotePush to false though in settings too
    The config is pushFilesToServer in settings-view
    Haku Douga
    @HakuDouga
    It says it connected succesfully, but somehow nothing has changed in atom. I don't see any errors on atom while I can see it on hh_client if I log in with putty.
    Haku Douga
    @HakuDouga
    @steelbrain "remoteDir" is set to "/usr/share/nginx/something" but it says " cd: /usrsharenginxsomething: File or folder not found" <-- it seems to remove the slashes?
    Steel Brain
    @steelbrain
    @HakuDouga You need to escape slashes in json
    Wait, this is interesting, those are forward slahes, only back slashes need to be escaped
    Haku Douga
    @HakuDouga
    Yes
    This message was deleted
    Perhaps this is a bug