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

cf-console on Windows? (or Cygwin) #4

Open
hagemt opened this issue Jan 14, 2015 · 4 comments
Open

cf-console on Windows? (or Cygwin) #4

hagemt opened this issue Jan 14, 2015 · 4 comments

Comments

@hagemt
Copy link

hagemt commented Jan 14, 2015

During CF training w/ Dr. Nic, some of my co-workers on Windows were trying to install the cf-console plugin. After installing CF, Go, and configuring GOPATH, the following appears to work: (from cmd)

go get github.com/danhigham/cf-console
cf install-plugin %GOPATH%\bin\cf-console.exe

However, "cf console" thereafter exits silently (returns 1) in console.
I'll post back here when I have a little more debug info for you to go on.

@hagemt
Copy link
Author

hagemt commented Jan 14, 2015

Attempts to execute bin\cf-console.exe produces the following output:

panic: runtime error: index out of range

goroutine 1 [running]:
github.com/cloudfoundry/cli/plugin.Start(0x3423e8, 0xc082002ea8)
C:/Go/home/src/github.com/cloudfoundry/cli/plugin/plugin_shim.go:12 +0x2ae
main.main()
C:/Go/home/src/github.com/danhigham/cf-console/console.go:49 +0x6d

goroutine 6 [runnable]:
os/signal.loop()
c:/go/src/os/signal/signal_unix.go:19
created by os/signal.init·1
c:/go/src/os/signal/signal_unix.go:27 +0x3

@hagemt
Copy link
Author

hagemt commented Jan 14, 2015

Not sure this was ever intended to work on Windows, (or Cygwin) but @drnic and I might be curious.

@hagemt
Copy link
Author

hagemt commented Jan 14, 2015

Forgot to mention: I'm (personally) in an environment (Cygwin) with a working SSH client, and I can provide whatever else might be required to figure out what's going on. (or, how I can help smooth things out for them on Windows) Thanks!

P.S. Looks like the referenced https://github.com/danhigham/cf-console/blob/master/console.go#L49 is:

plugin.Start(&ConsolePlugin{})

@danhigham
Copy link
Owner

hey @hagemt, I got this working just fine in Cygwin (see the image). Are you running "cf console <app name>" or running the binary directly?
screen shot 2015-01-21 at 11 11 18 am

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

2 participants