Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Cannot read property 'currentGoroutine' #675

Closed
yinanrong opened this issue Dec 2, 2016 · 2 comments
Closed

Cannot read property 'currentGoroutine' #675

yinanrong opened this issue Dec 2, 2016 · 2 comments
Labels

Comments

@yinanrong
Copy link

it throws when i debug my program with input a parameter from vscode command line .
the parameter i read just like this.
var port int
fmt.Scanln(&port)
everything is ok if i use go command line to compile .

the whole excption:

TypeError: Cannot read property 'currentGoroutine' of null\n at GoDebugSession.evaluateRequest (C:\Users\eval.vscode\extensions\lukehoban.Go-0.6.51\out\src\debugAdapter\goDebug.js:595:45)\n at GoDebugSession.DebugSession.dispatchRequest (C:\Users\eval.vscode\extensions\lukehoban.Go-0.6.51\node_modules\vscode-debugadapter\lib\debugSession.js:424:22)\n at GoDebugSession.ProtocolServer._handleData (C:\Users\eval.vscode\extensions\lukehoban.Go-0.6.51\node_modules\vscode-debugadapter\lib\protocol.js:104:38)\n at Socket. (C:\Users\eval.vscode\extensions\lukehoban.Go-0.6.51\node_modules\vscode-debugadapter\lib\protocol.js:24:60)\n at emitOne (events.js:96:13)\n at Socket.emit (events.js:188:7)\n at readableAddChunk (_stream_readable.js:176:18)\n at Socket.Readable.push (_stream_readable.js:134:10)\n at Pipe.onread (net.js:543:20)

@ramya-rao-a
Copy link
Contributor

Can you share a sample code project that we can use to repro this?

@ramya-rao-a
Copy link
Contributor

@yinanrong I am assuming that when you say "vscode command line" you mean the debug console.
And so closing as duplicate of #473

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants