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

code completion does not work #3726

Open
jelmd opened this issue Mar 19, 2025 · 2 comments
Open

code completion does not work #3726

jelmd opened this issue Mar 19, 2025 · 2 comments
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@jelmd
Copy link

jelmd commented Mar 19, 2025

What version of Go, VS Code & VS Code Go extension are you using?

go version go1.23.6 linux/amd64


Build info
----------
 master
    @

1.98.2
ddc367ed5c8936efe395cffeec279b04ffd7db78
x64


  • Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) > Go: Locate Configured Go Tools

There is no such thing

Share the Go related settings you have added/edited

	"[go]": {
		"editor.defaultFormatter": "golang.go"
	}

Describe the bug

There is no code completion at all. It just behaves like a normal text editor.

Steps to reproduce the behavior:

load a go file an try to edit.

Actually it is a real pain to work with it. Even vim does a better job ...

@gopherbot gopherbot added this to the Untriaged milestone Mar 19, 2025
@h9jiang
Copy link
Member

h9jiang commented Mar 19, 2025

Hi jelmd,

Run Ctrl+Shift+P (Cmd+Shift+P on Mac OS) > Go: Locate Configured Go Tools
There is no such thing

based on the statement above, I think the Go extension is disabled or not installed. Because the command Go: Locate Configured Go Tools only exist if the go extension is installed and actively running. If you have it installed, you should be able to trigger this command like below.

Image

Could you confirm if the Go extension is installed in your vscode? The Go extension in screenshot below. If you have it installed, try reload the window and see if the auto completion is working again.

Image

Thank you.

If you still experience the issue, could you make a screenshot and share the output of Go: Locate Configured Go Tools?

@h9jiang h9jiang added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Mar 19, 2025
@jelmd
Copy link
Author

jelmd commented Mar 20, 2025

I uninstalled the plugin and re-installed it again. Now there is the tools line - saved the output to: tools.md.

Anyway, code completion still does not work at all and also noticed a misbehaving context menu: on a right mouse click the context menu should open and stay open 'til it receives a left mouse click or an Esc event. But it doesn't - it immediately selects the menu item which is at the mouse pointer's position - really annoying misbehavior and not easy to find out, what the unintended instruction actually did to the code/editor ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants