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

try to install gocode-gomod and godef-gomod but output panel stacking there #2024

Closed
wotmshuaisi opened this issue Oct 18, 2018 · 15 comments · Fixed by #2025
Closed

try to install gocode-gomod and godef-gomod but output panel stacking there #2024

wotmshuaisi opened this issue Oct 18, 2018 · 15 comments · Fixed by #2025

Comments

@wotmshuaisi
Copy link

Installing 2 tools at /home/xxxx/go/bin
  gocode-gomod
  godef-gomod
@2011fuzhou
Copy link

Installing 2 tools at /home/xxxx/go/bin
  gocode-gomod
  godef-gomod

same problem, but i'm using go in windows:
Installing 2 tools at D:\coding\go\bin
gocode-gomod
godef-gomod

@koteyur
Copy link

koteyur commented Oct 18, 2018

I have such issue with gocode-gomod.
VSCode: 1.28.2,
VSCode-go: 0.6.92,
golang: 1.11.1,

Console output on every install/update tools run (even successful):

log.ts:171   ERR ENOENT: no such file or directory, open 'C:\Program Files\Microsoft VS Code\extension-output-#2': Error: ENOENT: no such file or directory, open 'C:\Program Files\Microsoft VS Code\extension-output-#2'
	at Object.fs.openSync (fs.js:646:18)
	at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:166:20)
	at Object.fs.readFileSync (fs.js:551:33)
	at Object.fs.readFileSync (ELECTRON_ASAR.js:538:29)
	at TrailingSpaces.freezeLastVersion (C:\Users\Admin\.vscode\extensions\shardulm94.trailing-spaces-0.2.11\out\src\trailing-spaces\trailing-spaces.js:266:51)
	at C:\Users\Admin\.vscode\extensions\shardulm94.trailing-spaces-0.2.11\out\src\trailing-spaces\trailing-spaces.js:56:19
	at e.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496)
	at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:588:237
	at e.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496)
	at e.$acceptDocumentsAndEditorsDelta (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:488:823)
	at t._doInvokeHandler (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:640:888)
	at t._invokeHandler (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:640:554)
	at t._receiveRequest (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:639:126)
	at t._receiveOneMessage (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:638:59)
	at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:635:926
	at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:98:138
	at e.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:99:496)
	at a (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:213)
	at Socket._socketDataListener (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:154:432)
	at emitOne (events.js:116:13)
	at Socket.emit (events.js:211:7)
	at addChunk (_stream_readable.js:263:12)
	at readableAddChunk (_stream_readable.js:250:11)
	at Socket.Readable.push (_stream_readable.js:208:10)
	at Pipe.onread (net.js:594:20)

And also I have godoc installation error:

Installing 1 tool at C:\Users\Admin\Documents\Source\Go\bin
  godoc

Installing undefined FAILED

1 tools failed to install.

godoc:
Error: Command failed: C:\Go\bin\go.exe get -u -v 
package undefined: unrecognized import path "undefined" (import path does not begin with hostname)
package undefined: unrecognized import path "undefined" (import path does not begin with hostname)

@wotmshuaisi wotmshuaisi changed the title try install gocode-gomod and godef-gomod but output panel stacking there try to install gocode-gomod and godef-gomod but output panel stacking there Oct 18, 2018
@ghost
Copy link

ghost commented Oct 18, 2018

Same here.

Installing 13 tools at /mnt/xxxx/go/bin
gocode
gopkgs
go-outline
go-symbols
guru
gorename
dlv
gocode-gomod
godef
godef-gomod
goreturns
golint
golangci-lint

@karthikraobr
Copy link
Contributor

Maybe related to this.

@Dexus
Copy link

Dexus commented Oct 18, 2018

The same problem, nothing helps.... still.....
How can I downgrade to an earlier version that works?

@apmckinlay
Copy link

But 2025 says it is just a "partial" fix?

@Dexus
Copy link

Dexus commented Oct 18, 2018

The fix does not help.....

The problem is that #2025 does not fix this in any way.

The following has helped me:

go get -u -v github.com/ianthehat/godef
go get -u -v github.com/stamblerre/gocode

# and in $GOPATH/bin use the first folder of the gopath, if there are several.....
cp godef godef-gomod
cp gocode gocode-gomod

Have fun!

@ramya-rao-a
Copy link
Contributor

The issue with godoc is resolved in #2025.

I have pushed a separate fix for the issue with gocode-gomod

Can someone here try the beta-version of this extension to confirm the fix?

@sonofachamp
Copy link

@ramya-rao-a The fix is working for me. 👍

@Dexus
Copy link

Dexus commented Oct 18, 2018

The issue with godoc is resolved in #2025.

I have pushed a separate fix for the issue with gocode-gomod

Can someone here try the beta-version of this extension to confirm the fix?

Maybe you also fix this with godef and godef-gomod

@ramya-rao-a
Copy link
Contributor

@Dexus I believe the problem was only with gocode-gomod and not godef-gomod, and since that was stuck, we never go to the point of declaring all updates as successful.

@Dexus
Copy link

Dexus commented Oct 18, 2018

@ramya-rao-a Okay, but even gocode-gomod didn't help me. I didn't explicitly test the latest beta, but I think it would make sense to intercept it as well for godef-gomod

@ramya-rao-a
Copy link
Contributor

@Dexus Can you elaborate a little more?

@Dexus
Copy link

Dexus commented Oct 18, 2018

@ramya-rao-a Sorry godef-gomod is correct, I'm a bit confused the day is already more than 20 hours old 👀. It does indeed only concern gocode-gomod to making everything work.

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Oct 18, 2018

@Dexus Great!

@sonofachamp Thanks for confirming the fix!

I've published an update with the fix.

Thanks for reporting everyone!

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

Successfully merging a pull request may close this issue.

8 participants