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

a lot of (mostly empty) /tmp/go-build* folders #3061

Closed
OneOfOne opened this issue Feb 21, 2020 · 3 comments
Closed

a lot of (mostly empty) /tmp/go-build* folders #3061

OneOfOne opened this issue Feb 21, 2020 · 3 comments
Labels
upstream-gopls Issue for gopls

Comments

@OneOfOne
Copy link
Contributor

Dup of #2173 and #2403.

┏━ oneofone@voyager ❰~❱
┗━● ls /tmp/ | grep go-build | wc -l
225
┏━ oneofone@voyager ❰~❱
┗━● ls /tmp/go-build*/*
/tmp/go-build762230263/b294:

/tmp/go-build762230263/b299:

The majority of those folders are empty, however one of them have 2 empty sub folders.

versions

┏━ oneofone@voyager ❰~❱
┗━● go version; gopls version
go version devel +a37bbcecca 2020-02-20 22:34:30 +0000 linux/amd64
golang.org/x/tools/gopls master
    golang.org/x/tools/gopls@v0.1.8-0.20200218205902-f8e42dc47720 h1:nf2BPDHmn4aHdKnBQm+k//qNBhMCFfFfrGq9Hyfoyug=

Latest stable vscode-go extension as of posting this.

My guess is the extension (or gopls) kills the go build before it finishes cleaning up.

settings:

	"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]": {
		"editor.insertSpaces": false,
		"editor.formatOnSave": true,
		"editor.codeActionsOnSave": {
			"source.organizeImports": true
		}
	},
	"go.toolsEnvVars": {
		"GOGC": "3000"
	},
	"gopls": {
		"env": { "GOGC": "off" },
		"experimentalDisabledAnalyses": ["ST1000", "ST1003"],
		"usePlaceholders": true,
		"completeUnimported": true,
		"staticcheck": true,
		"deepCompletion": false
	},
@hyangah
Copy link
Contributor

hyangah commented Feb 21, 2020

Yes, according to the recent #gopls slack conversation, this is related to golang/go#21135. @stamblerre can you transfer this bug to upstream?

@stamblerre
Copy link
Contributor

Opened golang/go#37368.

@stamblerre
Copy link
Contributor

Closing in favor of that issue.

@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
upstream-gopls Issue for gopls
Projects
None yet
Development

No branches or pull requests

3 participants