-
Notifications
You must be signed in to change notification settings - Fork 769
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
github.com/go-jose/go-jose/v4 is not in your go.mod file (go mod tidy) #3675
Comments
Hi @khanakia, if you're able to go back and forth a bit, I can help you track this down. When it happens, can you do the following?
Are you saying that after you fix these from the command line, they come back, randomly? |
It just happens random and also it happened today so what I did is
and then error is gone I will have to wait for it to happen again and then I will follow the above steps to debug as you suggested |
@findleyr Got the error again and i followed the steps and below is the output from the language server's maintainer interface I can see the module listed in go.mod file
go.mod fileHere is the go.mod file from the Interfance
|
I have similar issue with my workspace. It appeared maybe half an year ago, but now it is permanent. My workspace has shared projects with replace statements in project go.mod like this: I am not ready to share my code, but maybe I will return later with more details if I can create a snippet to reproduce. |
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
I am getting this error
github.com/go-jose/go-jose/v4 is not in your go.mod file (go mod tidy)
and when I try to run these commandsthen issue seems to be fixed for a while and then it comes again and I tried everything
cd saas && go mo tidy
and thencd .. && go work vendor
but still same issueSteps to reproduce the behavior:
I am using go workspace and I have a module exists in go.mod file
Screenshots or recordings
If applicable, add screenshots or recordings to help explain your problem.
Check VIDEO Here: https://www.youtube.com/watch?v=ULb7VB1ANrw
The text was updated successfully, but these errors were encountered: