Skip to content
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

Hint about gopls multi-module workspace support #1471

Closed
ottob opened this issue Nov 19, 2020 · 2 comments
Closed

Hint about gopls multi-module workspace support #1471

ottob opened this issue Nov 19, 2020 · 2 comments

Comments

@ottob
Copy link

ottob commented Nov 19, 2020

Describe the bug
Not really a bug but a hint for other go users.

To Reproduce
Steps to reproduce the behavior:

  1. have a single git repo with many go modules.
  2. try to use lsp features like goto definition.
  3. fail with errors like no object found for ident X

Expected behavior
LSP features to work.

Additional context
In gopls v0.5.3 an experimental mode for multi modules was added. I enabled it in my sublime lsp config like this:

"gopls":
	{
		"enabled": true,
		"initializationOptions": {
			"experimentalWorkspaceModule": true
		}
	},

Then goto definition etc works as expected.

@rwols
Copy link
Member

rwols commented Nov 20, 2020

If you are feeling adventurous, consider updating docs/index.md in this repository with your knowledge, and make a pull request.

@rwols
Copy link
Member

rwols commented Dec 30, 2020

Fixed by #1490

@rwols rwols closed this as completed Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants