golang / vscode-go Goto Github PK
View Code? Open in Web Editor NEWGo extension for Visual Studio Code
Home Page: https://marketplace.visualstudio.com/items?itemName=golang.Go
License: Other
Go extension for Visual Studio Code
Home Page: https://marketplace.visualstudio.com/items?itemName=golang.Go
License: Other
From microsoft/vscode-go#2563 by @aarzilli:
pretty soon you will encounter the 'next while nexting' error.
For prior discussion on this, please see microsoft/vscode-go#2563
This is a copy of the vscode-go#3243
Is your feature request related to a problem? Please describe.
vscode-go
only notice generated files with // Code generated ... DO NOT EDIT
pattern at the first line. There are actually two problems with this.
// Code generated ... DO NOT EDIT
described by go help generate
and in https://golang.org/s/generatedcode is more desirable state than, actual fact. See Examples (1
, 2
). As of now people still put (sometimes) "different code generated message", except all of them have DO NOT EDIT
marker.The text may appear anywhere in the file.
, not just on the first line (as it done now).golang/go
find . -name "*.go" -exec cat "{}" \; | grep -E "^// .*?DO NOT EDIT" | uniq -c | sort -nr
...
155 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
18 // Created by cgo -godefs - DO NOT EDIT
5 // DO NOT EDIT
1 // GENERATED BY make_perl_groups.pl; DO NOT EDIT.
go
files on a GitHub gives more examples of the same behaviorWhat community really follows is a DO NOT EDIT
phrase in a comment. Can we also have this a trigger to show This file seems to be generated. DO NOT EDIT.
error message?
This issue is followed by PR that implements described/desirable behavior.
See additional details here: microsoft/vscode-go#3007.
Originally from microsoft/vscode-go#526
See Chrome debugging extension's diagnosticLogging
Tests that use the check package can be run as part of the whole package or file but not individually in VS Code.
This feature request is to support the below for individual tests using the check package in VS Code
Go: Test function at cursor
commandFor more, including hints on how to go about this, please see microsoft/vscode-go#1921 & microsoft/vscode-go#3222
See microsoft/vscode-go#2753 for earlier discussion.
Please direct general questions to:
Please review the documentation before filing an issue.
Helpful pages include:
Please answer these questions before submitting your issue. Thanks!
go version
to get version of Go
code -v
or code-insiders -v
to get version of VS Code or VS Code Insiders
go env
to get the go development environment details$ go env set GO111MODULE=on set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\admin\AppData\Local\go-build set GOENV=C:\Users\admin\AppData\Roaming\go\env set GOEXE=.exe set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOINSECURE= set GONOPROXY=gitlab.c21sis.com set GONOSUMDB=gitlab.c21sis.com set GOOS=windows set GOPATH=d:\go_workspace set GOPRIVATE=gitlab.c21sis.com set GOPROXY=https://goproxy.io/ set GOROOT=c:\go set GOSUMDB=sum.golang.org set GOTMPDIR= set GOTOOLDIR=c:\go\pkg\tool\windows_amd64 set GCCGO=gccgo set AR=ar set CC=gcc set CXX=g++ set CGO_ENABLED=1 set GOMOD=D:\go_workspace\src\pink-api\go.mod set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\admin\AppData\Local\Temp\go-build671071106=/tmp/go-build -gno-record-gcc-switches
Run Preferences: Open Settings (JSON)
command to open your settings.json file.
Share all the settings with the go.
or ["go"]
or gopls
prefixes.
{ "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe", "terminal.external.windowsExec": "C:\\Program Files\\Git\\bin\\bash.exe", "window.zoomLevel": 0, "go.formatTool": "goimports", "editor.suggestSelection": "first", "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", "files.exclude": { "**/.classpath": true, "**/.project": true, "**/.settings": true, "**/.factorypath": true }, "editor.fontSize": 16, "files.autoSave": "afterDelay", "java.home": "C:\\Program Files\\RedHat\\java-11-openjdk-11.0.6-2\\", "java.help.firstView": "gettingStarted", "java.requirements.JDK11Warning": true, "maven.terminal.useJavaHome": true, "java.semanticHighlighting.enabled": true, "terminal.integrated.shell.linux": "", "terminal.integrated.automationShell.linux": "", "terminal.integrated.automationShell.osx": "", "terminal.integrated.automationShell.windows": "", "java.configuration.runtimes": [ { "name": "JavaSE-11", "path": "C:\\Program Files\\RedHat\\java-11-openjdk-11.0.6-2\\", } ], "java.maven.updateSnapshots": true, "maven.executable.path": "C:\\java\\apache-maven-3.6.3\\bin\\mvn", "java.configuration.maven.userSettings": "C:\\java\\apache-maven-3.6.3\\conf\\settings.xml", "java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -javaagent:\"c:\\Users\\admin\\.vscode\\extensions\\gabrielbb.vscode-lombok-1.0.1\\server\\lombok.jar\"", "remote.SSH.remotePlatform": { "105": "linux" }, "git.ignoreLegacyWarning": true, "go.autocompleteUnimportedPackages": true, "go.addTags": { } }
A clear and concise description of what the bug.
A clear and concise description of what you expected to happen.
If applicable, add screenshots or recordings to help explain your problem.
go version
to get version of Go
go version devel +6bf2eea62a 2020-05-28 14:43:19 +0000 linux/amd64
code -v
or code-insiders -v
to get version of VS Code or VS Code Insiders
1.45.1
(and latest inside as of 10 minutes ago as well)0.14.3
, doesn't work: 2020.5.2722
go env
to get the go development environment detailsGO111MODULE=""
GOARCH="amd64"
GOBIN="/home/oneofone/code/go/bin"
GOCACHE="/home/oneofone/.cache/go-build"
GOENV="/home/oneofone/.config/go/env"
GOEXE=""
GOFLAGS="-gcflags=-c=16"
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/oneofone/code/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/oneofone/code/go"
GOPRIVATE=""
GOPROXY="direct"
GOROOT="/usr/src/go"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/src/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build413442895=/tmp/go-build -gno-record-gcc-switches"
"go.buildOnSave": "off",
"go.vetOnSave": "off",
"go.lintOnSave": "off",
"go.useCodeSnippetsOnFunctionSuggest": true,
"go.useCodeSnippetsOnFunctionSuggestWithoutType": true,
"go.autocompleteUnimportedPackages": true,
"go.lintTool": "staticcheck",
"go.editorContextMenuCommands": {
"toggleTestFile": true,
"addTags": true,
"removeTags": true,
"testAtCursor": false,
"testFile": false,
"testPackage": true,
"generateTestForFunction": true,
"generateTestForFile": false,
"generateTestForPackage": true,
"addImport": false,
"testCoverage": true,
"playground": false
},
"go.addTags": {
"tags": "json",
"options": "json=omitempty",
"promptForTags": false,
"transform": "camelcase"
},
"go.coverOnSingleTest": true,
"go.gotoSymbol.includeGoroot": true,
"go.useLanguageServer": true,
"go.languageServerExperimentalFeatures": {
"format": true,
"diagnostics": true,
"documentLink": true
},
"go.delveConfig": {
"dlvLoadConfig": {
"followPointers": true,
"maxVariableRecurse": 1,
"maxStringLen": 64,
"maxArrayValues": 64,
"maxStructFields": -1
},
"apiVersion": 2,
"showGlobalVariables": true
},
"gopls": {
"env": {},
"staticcheck": true,
"analyses": {
"ST1000": false,
"ST1003": false
},
"codelens": {
"generate": true,
"upgrade.dependency": true,
"test": true
},
"usePlaceholders": false,
"completeUnimported": true,
"deepCompletion": true
},
Using this launch.json
config:
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}",
"env": {},
"trace": "verbose",
"args": [""]
}
]
}
I can't start debugging with the nightly version, same config and settings and everything works perfectly fine with the previous version.
Log (Window)
and it shows:[2020-05-28 15:05:39.020] [renderer1] [error] timeout after 1000 ms: Error: timeout after 1000 ms
at t.RawDebugSession.handleErrorResponse (file:///usr/src/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js:3061:355)
at file:///usr/src/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js:3060:679
at async t.RawDebugSession.shutdown (file:///usr/src/VSCode-linux-x64/resources/app/out/vs/workbench/workbench.desktop.main.js:3058:772)
From microsoft/vscode-go#2560 by @aarzilli:
main.coroutine
in the left columnCursor moves to the next line on the goroutine I'm currently watching.
Debuggers switches back to the goroutine it was originally stopped at and moves to the next line.
Current tests require GOPATH env var to be explicitly set
(
and depend on source code preexisting under GOPATH/src.
(
vscode-go/test/integration/extension.test.ts
Line 663 in 341a4ff
That is not ideal. Fix that.
From microsoft/vscode-go#3165. This needs to be done both for VS Code Go and for gopls.
Is your feature request related to a problem? Please describe.
If the active tab does not contain the main package when we start debugging the debugger exits with the following message:
go run: cannot run non-main package
This forces the user to change tabs before debugging, distracting from the code of interest.
Describe the solution you'd like
When debugging starts, all currently open tabs should be checked for a main package and if found the file associated with that tab should be passed to go run instead of the file associated with the active tab.
Describe alternatives you've considered
Custom workspace settings maybe?
https://github.com/golang/vscode-go/pull/44/checks?check_run_id=693415725
and other CI runs. (currently we are ignoring the test failures from this gopls integration tests because they are flaky)
1 failing
1) Go Extension Tests With Gopls
Completion middleware:
Error: Timeout of 1000000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/home/runner/work/vscode-go/vscode-go/out/test/gopls/extension.test.js)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7)
cc/ @stamblerre
Set up CI/CD
cp.execFile
is used throughout the codebase to run various commands. Considering we run different tools all the time, it would be useful to have a helper function to abstract this a bit. #91 is a good justification for it.
We might also want to have a separate set of helpers for running go
commands specifically.
From microsoft/vscode-go#2696 by @firelizzard18:
Steps to Reproduce:
"go.toolsEnvVars"
and add "GOOS": "windows"
(or "GOOS": "linux"
if your OS is Windows)The error:
could not launch process: stub exited while waiting for connection: exit status 0
Process exiting with code: 1
The issue is that it is not at all obvious why this is failing. Ideally, vscode-go
would know that the debugger failed because of GOOS/GOARCH. But I don't know how it would do that, without dlv
providing a more meaningful error. Failing that, a warning would be nice. "By the way, we see you've changed GOOS/GOARCH such that the debugger will likely fail."
As described in microsoft/vscode-go#2415, gcflags set by the user interferes with debugging. This issue is to have the extension ignore this setting when debugging.
While microsoft/vscode-go#2415 is about debugging tests, this may apply to normal debugging as well
I need to make an issue here for maintner to learn that this new repository exists (see golang/go#25744). π
Some ideas:
gopls
)I'm sure there are other improvements we can make, so please add more here.
e.g. https://github.com/golang/vscode-go/runs/668160281?check_suite_focus=true
This is a synchronization issue - gopls is not up and ready before the hover test starts.
Performance
go-nightly
2020.3.2823
Darwin x64 18.7.0
1.43.2
/Users/tsimpson/golang.go-nightly-unresponsive.cpuprofile.txt
Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load
It's possible that some users might like to see diagnostics only when they save a file, rather than seeing them as they type.
It is also possible that some users may want to use gopls
without seeing any diagnostics at all.
Depending on the popularity of these use cases, we should consider supporting these two configurations.
Please react with a π if you would like to see diagnostics only when you save a file, not as you type.
Please react with a β€οΈ if you would like to disable diagnostics from gopls completely.
Original discussion on microsoft/vscode-go#2907.
Currently we disabled --strict
, --strictNullChecks
, and --strictPropertyInitialization
.
History: microsoft/vscode-go#2304
Performance
go-nightly
2020.3.144
Windows_NT x64 10.0.19582
1.44.0-insider
C:\Users\ofili_lewis\golang.go-nightly-unresponsive.cpuprofile.txt
Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load
go1.14.2 darwin/amd64
1.45.1 5763d909d5f12fe19f215cbfdd29a91c0fa9208a x64
0.14.2
When you type code that's close to the right edge of the VS code window, the documentation tooltip keeps shrinking until its left margin reaches the position of the caret.
Here's how it looks like:
Hello, first of all, let me say that GoCode is a really cool package and I especially appreciate the support for Delve that it gives me. What would be really nice would be some form of refactoring. Maybe just "Extract Method" to start with as this is probably the most likely refactoring feature to be needed. Alternatively, do you or anyone else know of any Golang refactoring extensions for VS Code?
go version
to get version of Go
code -v
or code-insiders -v
to get version of VS Code or VS Code Insiders
yarn watchd
.go env
to get the go development environment detailsGO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/butuzov/Library/Caches/go-build"
GOENV="/Users/butuzov/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/butuzov/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/opt/go/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/opt/go/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/kj/45dsds7s53948lz3sf0_ddc80000gn/T/go-build894571270=/tmp/go-build -gno-record-gcc-switches -fno-common"
Run Preferences: Open Settings (JSON)
command to open your settings.json file.
{
// Go
"go.useLanguageServer": false,
"go.languageServerFlags": [],
"go.languageServerExperimentalFeatures": {
"autoComplete": true,
"diagnostics": true,
"documentLink": true,
"documentSymbols": true,
"findReferences": true,
"format": true,
"goToDefinition": true,
"goToImplementation": true,
"goToTypeDefinition": true,
"hover": true,
"rename": true,
"signatureHelp": true,
"workspaceSymbols": true,
},
"[go]": {
"editor.formatOnSave": true,
"editor.rulers": [
{ "column": 80, "color": "#61bde670"},
{ "column": 100, "color": "#35ace270"},
{ "column": 120, "color": "#0053b070"},
],
"editor.snippetSuggestions": "top",
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"[go.mod]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
},
"go.formatTool": "goimports",
// "go.lintTool": "golint",
"go.gotoSymbol.ignoreFolders": [],
"go.gotoSymbol.includeImports": true,
"go.gotoSymbol.includeGoroot": false,
// "go.lintTool": "golint",
"go.lintTool": "golangci-lint",
"go.lintFlags": [
"--disable-all",
"--fast",
"--print-issued-lines=false",
"--out-format=colored-line-number",
"--issues-exit-code=0",
"--enable=deadcode",
"--enable=gocyclo",
"--enable=golint",
"--enable=varcheck",
"--enable=structcheck",
"--enable=maligned",
"--enable=errcheck",
"--enable=dupl",
"--enable=ineffassign",
"--enable=interfacer",
"--enable=unconvert",
"--enable=goconst",
"--enable=gosec",
"--enable=megacheck"
],
"go.delveConfig": {
"dlvLoadConfig": {
"followPointers": true,
"maxVariableRecurse": 1,
"maxStringLen": 64,
"maxArrayValues": 64,
"maxStructFields": -1
},
"apiVersion": 2,
"showGlobalVariables": true
},
"go.editorContextMenuCommands": {
"toggleTestFile": false,
"addTags": false,
"removeTags": false,
"fillStruct": true,
"testAtCursor": false,
"testFile": false,
"testPackage": false,
"generateTestForFunction": true,
"generateTestForFile": true,
"generateTestForPackage": false,
"addImport": false,
"testCoverage": true,
"playground": true,
"debugTestAtCursor": true
},
}
Pressing "save" (cmd+s) triggering state when vscode starts to overwhelm CPU with spawning new processes (via node module tree-kill
as I understand). Spawning never stops, so you need to reload vscode.
pgrep
processes spawned.[32307:0524/212738.492110:INFO:CONSOLE(152)] "Extension Host", source: file:///Volumes/develop/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (152)
[32307:0524/212738.492232:INFO:CONSOLE(153)] "%cDebugger attached.
color: red", source: file:///Volumes/develop/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (153)
[32307:0524/212738.492311:INFO:CONSOLE(154)] "console.groupEnd", source: file:///Volumes/develop/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (154)
[32307:0524/212740.631879:INFO:CONSOLE(139)] "%c WARN color: #993 UNRESPONSIVE extension host, 'ms-vscode.Go' took 85% of 1949.038ms, saved PROFILE here: '/var/folders/kj/45dsds7s53948lz3sf0_ddc80000gn/T/exthost-732eca.cpuprofile' [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]", source: file:///Volumes/develop/vscode/out/vs/platform/log/common/log.js (139)
[32307:0524/212740.697337:INFO:CONSOLE(143)] "%c[Extension Host] %cdebugger inspector at chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:5870/b1fad246-b102-4417-8e40-987d28420cf3 color: blue color:", source: file:///Volumes/develop/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (143)
[32307:0524/212744.225285:INFO:CONSOLE(152)] "Extension Host", source: file:///Volumes/develop/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (152)
[32307:0524/212744.225409:INFO:CONSOLE(153)] "%cDebugger attached.
color: red", source: file:///Volumes/develop/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (153)
[32307:0524/212744.225500:INFO:CONSOLE(154)] "console.groupEnd", source: file:///Volumes/develop/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (154)
[32307:0524/212749.476305:INFO:CONSOLE(139)] "%c WARN color: #993 UNRESPONSIVE extension host, 'ms-vscode.Go' took 99% of 5099.625ms, saved PROFILE here: '/var/folders/kj/45dsds7s53948lz3sf0_ddc80000gn/T/exthost-a4b283.cpuprofile' [object Object],[object Object],[object Object],[object Object]", source: file:///Volumes/develop/vscode/out/vs/platform/log/common/log.js (139)
[32307:0524/212749.553382:INFO:CONSOLE(143)] "%c[Extension Host] %cdebugger inspector at chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:5870/b1fad246-b102-4417-8e40-987d28420cf3 color: blue color:", source: file:///Volumes/develop/vscode/out/vs/workbench/services/extensions/electron-browser/extensionHost.js (143)
[32307:0524/212757.658456:INFO:CONSOLE(144)] "%c ERR color: #f33 Server returned 422: Error: Server returned 422
at Object.asText (file:///Volumes/develop/vscode/out/vs/platform/request/common/request.js:19:19)
at createSlowExtensionAction (file:///Volumes/develop/vscode/out/vs/workbench/contrib/extensions/electron-browser/extensionsSlowActions.js:83:41)
at async ExtensionsAutoProfiler._processCpuProfile (file:///Volumes/develop/vscode/out/vs/workbench/contrib/extensions/electron-browser/extensionsAutoProfiler.js:131:32)", source: file:///Volumes/develop/vscode/out/vs/platform/log/common/log.js (144)
[32307:0524/212901.205451:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212901.205714:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212901.205900:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212901.206012:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212901.206194:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212901.206455:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212901.206576:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212901.206671:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212901.206780:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212901.206958:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212901.207141:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212901.207244:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212901.207530:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212901.207620:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212901.207774:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212901.207884:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212901.208032:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212901.208124:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212912.516893:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212912.517060:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212912.517150:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212912.517236:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212912.517328:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212912.517669:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212912.517768:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212912.517851:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212912.517939:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212912.518018:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212912.518101:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212912.518183:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212912.518272:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212912.518384:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212912.518476:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212912.518557:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212912.518643:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212912.518729:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212926.550162:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212926.550403:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212926.550495:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212926.550578:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212926.550672:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212926.551013:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212926.551110:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212926.551191:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212926.551280:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212926.551364:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212926.551452:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212926.551537:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212926.551627:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212926.551708:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212926.551795:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212926.551877:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212926.551968:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212926.552053:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
[32307:0524/212926.552138:INFO:CONSOLE(44)] "[[object Object]]Cannot read property 'on' of undefined", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (44)
[32307:0524/212926.552224:INFO:CONSOLE(45)] "TypeError: Cannot read property 'on' of undefined
at buildProcessTree (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:92:15)
at /Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:113:11
at Array.forEach (<anonymous>)
at ChildProcess.onClose (/Users/butuzov/.vscode-oss-dev/extensions/ms-vscode.go-0.14.3/node_modules/tree-kill/index.js:108:31)
at ChildProcess.emit (events.js:210:5)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:430:11)
at Socket.emit (events.js:210:5)
at Pipe.<anonymous> (net.js:658:12)", source: file:///Volumes/develop/vscode/out/vs/workbench/api/browser/mainThreadExtensionService.js (45)
^C[32307:0524/212927.646430:INFO:CONSOLE(106)] "Extension host terminated unexpectedly. Code: null Signal: SIGINT", source: file:///Volumes/develop/vscode/out/vs/workbench/services/extensions/common/abstractExtensionService.js (106)
[32307:0524/212927.696065:INFO:CONSOLE(30)] "Extension host terminated unexpectedly.", source: file:///Volumes/develop/vscode/out/vs/workbench/browser/parts/notifications/notificationsAlerts.js (30)
[32307:0524/212927.712090:INFO:CONSOLE(139)] "%c WARN color: #993 Canceled: Canceled", source: file:///Volumes/develop/vscode/out/vs/platform/log/common/log.js (139)
$ butuzov (β minikube@default) /Volumes/develop/vscode
>
If applicable, add screenshots or recordings to help explain your problem.
As described in microsoft/vscode-go#2985, when both build and vet on save features are disabled, and there is critical error when running the linter, there is no diagnostic shown to the user. When build or vet on save feature is enabled, it takes care of surfacing such errors.
Delve supports debug adapter protocol natively (dlv dap
).
https://github.com/go-delve/delve/tree/master/service/dap
Implement the debug feature using it and deprecate the dlv wrapper (src/debug/goDebug.ts
).
Copied from upstream: microsoft/vscode-go#3128.
Some tests in the extension fail when the user running them has unexpected configurations or when they don't have the correct tools installed. We should make sure all test runs are independent of the user's environment.
microsoft/vscode-go#801 describes a specific fix that should be applied to one of the tests.
From microsoft/vscode-go#2861 by @OneOfOne:
ββ oneofone@voyager β°~/c/v/vscode-goβ± β°master|β2β±
βββ npm audit
=== npm audit security report ===
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Manual Review β
β Some vulnerabilities require your attention to resolve β
β β
β Visit https://go.npm.me/audit-guide for additional guidance β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Low β Prototype Pollution β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Package β lodash β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Patched in β >=4.17.5 β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Dependency of β json-rpc2 β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Path β json-rpc2 > lodash β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β More info β https://npmjs.com/advisories/577 β
βββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β High β Prototype Pollution β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Package β lodash β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Patched in β >=4.17.11 β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Dependency of β json-rpc2 β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Path β json-rpc2 > lodash β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β More info β https://npmjs.com/advisories/782 β
βββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β High β Prototype Pollution β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Package β lodash β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Patched in β >=4.17.12 β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Dependency of β json-rpc2 β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Path β json-rpc2 > lodash β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β More info β https://npmjs.com/advisories/1065 β
βββββββββββββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
found 3 vulnerabilities (1 low, 2 high) in 441 scanned packages
3 vulnerabilities require manual review. See the full report for details.
Currently, the code coverage is applied only to the files that fall under the package corresponding to the current file that is open. The feature request is to support showing code coverage for multiple packages.
While using the flag -coverpkg=all
, the go test
command does create a cover profile for all packages, the extension fails to apply it correctly. The problem lies in converting the relative paths in the cover profile to absolute paths that the editor can understand.
For more, please see microsoft/vscode-go#816,
Recent versions of gopls
(v0.4.1+) depends on new APIs available only after go1.13+
../../../../pkg/mod/golang.org/x/[email protected]/internal/jsonrpc2/messages.go:168:5: undefined: errors.As
We have a couple of options to consider
gopls
for users with old versions of Go orgopls
orFrom @bhenderson in microsoft/vscode-go#2546
Hi, I was hoping for a way for Go: Add Tags to prompt for the transform parameter. I often want to switch between camelCase and snake_case even within the same project.
I was thinking that if go.addTags.promptForTags is true, it would also prompt for the transform parameter.
In a test file, when the debug test
codelens is clicked twice, two instances of the debugger are started. Ideally, the second click should result in an error notifying that a debug session is already in progress
Steps to reproduce:
For more, including pointers on how to fix this, please see microsoft/vscode-go#1383.
Currently, we are using 2 attributes in the launch configuration to configure path mapping: cwd
and remotePath
.
cwd
- Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.
remotePath
- Absolute path to the file being debugged on the remote machine in case of remote debugging.
Letβs say the local path is C:\Users\quoct\Github\project\hello-world
and the remote path is /app/project/hello-world
.
Using the path in cwd
and remotePath
, we detect the local path separator (LPS) and remote path separator (RPS) respectively.
With these separators, we attempt to find the longest common suffix between the 2 paths. For the example above, that would be project/hello-world
.
We truncate the longest common suffix from the local and remote path and store them internally. For the example above, that would be C:\Users\quoct\Github
and /app
. If there are no common suffixes, we just trim the last path separator of the remote path. Letβs call these processed local root (PLR) and processed remote root (PRR) respectively.
This happens when the user sets a breakpoint in a file, for example: C:\Users\quoct\Github\project\hello-world\testing.go
.
We use the remote path separator in the file name. So it will become C:/Users/quoct/Github/project/hello-world/testing.go
. We then substitute the PLR (C:\Users\quoct\Github
) with the PRR (/app
). So now the breakpoint file will become /app/project/hello-world/testing.go
. We call Delve to set a breakpoint in this file.
This happens if a breakpoint is hit on the remote Delve instance. In this case, Delve will send us back the name of the file that contains the breakpoint and we will have to map this file to a file on the local machine. Letβs say the name of the file is /app/project/hello-world/testing.go
.
If the path to convert starts with the PRR (/app
), we then substitute the PRR with the PLR (C:\Users\quoct\Github
) in the path. So it will become C:\Users\quoct\Github\project\hello-world\testing.go
. There seems to be a BUG here where we are not taking into account different path separators for remote and local roots.
If it doesnβt start with the PRR, then we assume that it can be mapped to a file in the GOROOT
directory. We do this by assuming that the remote fileβs name starts with /app
(which is another BUG?).
A lot of times users donβt know that they have to provide path mapping for the breakpoints to hit. Even if they do, they donβt provide the correct path mappings. So what happens is that the debugger appears to be running but no breakpoints are hit. This can cause a lot of confusion to the users.
Users currently cannot set breakpoints for packages in GOPATH
. There is a proposal to add another field to map this. Even the experience for setting breakpoints for files in GOROOT
is not great as we are blindly assuming that the GOROOT
starts with /src
.
The current implementation expects the paths to be absolute but they can be relative. There are PRs out there trying to address this by introducing more fields
Instead of trying to add multiple fields to address the relative path mapping and GOPATH
problems, we can fix these problems and reduce the userβs friction points by attempting to automatically infer the path mapping for the user.
Delve has an API to list all the files used by the program. So we can simply get the list of files on the remote machine and map it to the files on the local machine. These include files in the GOROOT
and GOPATH
on the remote machine as well so we can try to map them to the files in the local machine GOROOT
and GOPATH
.
Since we get all the remote sources, we can retrieve all the remote source files that share the same file name with the local file. We can then do a suffix match to get the best matching remote path.
Mapping remote path to local path
This is more complicated because there are multiple places where we can try to find a match on the local machine.
However, we can use the ListPackagesBuildInfo
to help us retrieve all the different Go packages used. Each package item returned comes with a Directory Path and an Import Path. Using Directory Path, we can determine if the remote path is in a particular package or not:
If the remote path is in a package, we can try to find whether the package exists on the local machine. We will be searching for it in 3 places:
GOPATH
.GOMOD
folder (%GOMOD%/pkg/mod
) if the package name contains pkg/mod
.If the remote path is not in any package, then we retrieve the name of the remote path and search for files with that name in the current workspace folder. We find the best matching one using a suffix match.
Extension inserts source pointer type definition instead a valid pointer literal. For example if we have 2 types like:
type MyInt int
type MyStruct struct {
Field *MyInt
}
Then If I start typing something like below, I get auto-completed list with *MyInt type for the Field:
ms := MyStruct{
Field: *MyInt...
}
but expected and valid result is:
ms := MyStruct{
Field: &MyInt...
}
So you should replace *
with &
before insertion.
I'm getting daily notifications that I'm missing some add-ons for Go. It would be nice if you could select in Settings which add-ons you want to use and which ones not, I really don't want to use formatting type add-ons for example which auto format the code in a certain way. Also an explanation would be nice of what the add-on exactly does so that it would be easy to select which ones you want. Currently a lot of Go extensions got automatically installed on my VSCode and it is not clear to me what they do.
The cwd
attribute in the debug configuration takes folder path. If this starts with ~
, the extension does not do the due diligence of expanding it like it does with other settings that take file/folder paths.
This issue is to have the extension respect the ~
in the cwd
attribute of the debug configuration.
Prior investigation can be found in microsoft/vscode-go#2374
As discussed in microsoft/vscode-go#2387, there is a lack of support for graceful shutdown when debugging. This issue is to investigate what can be done to improve this experience.
Following up from microsoft/vscode-go#2655 as it was the most upvoted feature there and is still badly needed.
Delve has added the call command to be able to make function calls while in debug.
Trying to execute any function in VSCode Debug Console results in:
Unable to eval expression: "function calls not allowed without using 'call'"
There was a patch attached in the linked issue that added basic support for this feature. I can add a PR rebased on the latest version of the code to see if it's possible to continue from there.
This is a request to add integration to the rewind command in delve. Please see microsoft/vscode-go#1529 for details where there are discussions on the implementation as well as links to past PRs that attempted to add this feature
Corresponding PR in this repo: #89
From @willfaught in microsoft/vscode-go#2176:
The dereferenced pointer value is labeled with a single colon, which might be a bug. See the b variable below:
The debugger presentation of the pointer type seems incompatible with the other integral types (variables i and x in the example above). int(0)
is displayed as i: 0
, X(34)
(where X is type X int
) is displayed as x: 34
, but (*int)(0xc0000160f8)
is displayed as p: <*int>(0xc0000160f8)
. Maybe it makes sense to display it as just p: 0xc0000160f8
and let the user infer the type from the code like for the other variable types (and the presence of the drill down menu)?
Please see microsoft/vscode-go#2176 for more discussion on this
The typical practice in the rest of the Go project is to prefix issues and CLs with the name of the package they pertain to. This doesn't really make sense for this repository, as there are no Go packages.
These issue prefixes are helpful for classification, so it'd be nice to stick with them, but we don't seem to have a consistent strategy for applying them. doc
is useful for documentation changes, but the analogous src
for code changes is not really useful. We should restructure the code in such a way that we can have useful prefixes.
Furthermore, for issues, I think we need to create prefixes, some of which may collide with existing labels. For example, debug
is useful as a prefix for skimming issues quickly, but also useful as a label for quick searches.
/cc @hyangah
Original bug report is microsoft/vscode-go#2997
This extension got bigger. vsce recommends https://aka.ms/vscode-bundle-extension
This extension consists of 2266 files, out of which 1509 are JavaScript files.
For performance reasons, you should bundle your extension:
https://aka.ms/vscode-bundle-extension . You should also exclude unnecessary
files by adding them to your .vscodeignore: https://aka.ms/vscode-vscodeignore
microsoft/vscode-extension-telemetry#41
(due to microsoft/ApplicationInsights-node.js-native-metrics#4) was one of the road blockers. We can probably prune the dependency.
Not sure about interaction with debug adapter yet.
Currently, the test fixtures have go.mod
files but they are not used by the extension tests.
Some feature requests cover features that first need to be implemented in VS Code. This issue tracks these in one place for convenience.
The extension manages installing tools for users, but this process is currently not covered by any tests. The biggest danger here is that we don't have an effective way of noticing issues in the tools that the extension depends on.
We need both some form of testing for the installation process that can run in the normal test suite, as well as integration tests that use the network to install tools. These tests should only run in CI (perhaps only before a Nightly release). @hyangah suggested using an environment variable to control this behavior, which sounds reasonable -- unless @ramya-rao-a, is there is a better way that you're aware of?
Also, the tests that check for updates to gopls
rely on the current versions of gopls
, so when new versions of gopls
are published - they break. We need to make these tests more resilient.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.