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
x/tools/gopls: "You are neither in a module nor in your GOPATH issue" warning message #38720
Comments
Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here. |
@idopshik: Is your file in /home/st/go/srs/.../myfile.go or /home/st/go/src/.../myfile.go? The folders directly below the $GOPATH should be |
I did everything, spent few hours trying different methods. Ended up using YCM (so, no server, no problem. It made me nuts!) |
From what I understand, YCM does use |
hm. You're right. just disabled vim-go, and then tried to move gopls in different place - both affected YCM's ability to complete. Of course vim's :pwd is the same as file's - inside the GOPATH. YCM works well enough. (w/o language-server's feedback thou, but it's lesser from two evils) |
If you're able to get a |
For Coc everything that needed it to run inside VIM :CocConfig and add this.
Then in the browser at http://localhost:8484/ I've got from different sections: Environment
/metric (two counters incrementes as the red message in Vim appears)HELP started Count of RPCs started by method. started{[direction="out" method="window/logMessage"]} 14 started{[direction="out" method="window/showMessage"]} 3 from the "trace" section some lines from above (I believe most recently added by the server)cache.importer.typeCheck
Longest
Don't know what to post exactly, just wanted to be concise. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I'm trying to write a SYMBOL, every symbol - and go error
echo $GOPATH output -
/home/st/go
I'm having a file in /home/st/go/srs/.../myfile.go
(it's a go paht ,right? since $GOPATH output is /home/st/go
I open that file in VIM editor (latest version, with Coc latest version) trying to type and got
this issue - "you neither in gopath or module ...".
But I'm in GOPATH, right?
What did you expect to see?
Dont' want to see interruptions
What did you see instead?
The text was updated successfully, but these errors were encountered: