Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup #1

Open
ghost opened this issue Oct 18, 2017 · 8 comments
Open

setup #1

ghost opened this issue Oct 18, 2017 · 8 comments

Comments

@ghost
Copy link

ghost commented Oct 18, 2017

I have installed it on vscode on OSX with config and server started

then i ssh into my vagrant hosted ubuntu, but get connection refused


vagrant@vagrant:~/workspace/go/gitlab.x.io/testing/top-dev-env$ gomate
2017/10/18 19:33:27 dial tcp [::1]:52698: getsockopt: connection refused

I assume that this is trying to dial out and so i need to open this port in the vagrant config ?

@mattn
Copy link
Owner

mattn commented Oct 20, 2017

@ghost
Copy link
Author

ghost commented Oct 23, 2017

Hey. Yes i did.

The VSCode service is running, and all good.

  1. Your example maps to a file. That confuses me. I assuming it would map to a folder, so the system can work on all the files in that folder ?

  2. Got lost in trying to get the vagrant ssh command work the way we need it to.

@ghost
Copy link
Author

ghost commented Oct 23, 2017

SO i worked out the adaptation of the ssh connect.
gomate binary is inside the guest at $HOME folder.
It connected but fails to find the gomate command.

ssh -R 52698:127.0.0.1:52698 -i .vagrant/machines/default/virtualbox/private_key -p 2222 vagrant@127.0.0.1 gomate
bash: gomate: command not found

any ideas ?

@ghost
Copy link
Author

ghost commented Oct 23, 2017

gomate should be installed on the HOST or the GUEST ?

@mattn
Copy link
Owner

mattn commented Oct 23, 2017

should be installed on guest. See http://blog.macromates.com/2011/mate-and-rmate/

@ghost
Copy link
Author

ghost commented Oct 23, 2017

:)

I got it working. thanks @mattn

Pretty neat. I see the file in SCODE as a tab...

I could only get it to work by connecting and then manually kicking off gomate.

Is there a way to tell it to expose a folder and its files ?

@ghost
Copy link
Author

ghost commented Oct 23, 2017

It's ok. There is an issue in vscode repo about exposing a remote file system fully over SSH.
It looks like it has a good chance of going into the next release of vscode.

Would be amazing to be able to connect to a Linux box and work on it from vscode !!

@ghost
Copy link
Author

ghost commented Oct 23, 2017

Here is the issue

microsoft/vscode#35009

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant