-
Notifications
You must be signed in to change notification settings - Fork 645
"go.autocompleteUnimportedPackages" doesn't work after update to VSCode 1.15 #1152
Comments
@szyhf Are rest of the auto-completion features working as expected? |
@ramya-rao-a Thanks for reply ! Other auto-completion features works well. While type a function \ variable \ constant \ method it can provide tips as I expect. If I call "Go: Add import", it can also list package in my $GOPATH and $GOROOT path. If I imported an package, it can provide the struct \ function in the package too. |
Ah! Looks like this happens only with built-in packages. Can you try out any of your custom packages? |
Unfortunately, none of custom package or built-in packages work in my computer QAQ |
We changed the way we get the information on packages in general in 0.6.63 Can you try from the code in master?
|
Seems not working, running response: $> code --install-extension ./Go-latest.vsix
Extension 'Go-latest.vsix' was successfully installed! Then close vscode and restart it. Try to type built-in pkg like "strings" or custom pkg, still not work. I'm wondering if there any possible reason may cased by directory access permission ? Like visit the pkg of GOPATH ? I check my gopath and I think it's fine (at least "o+rx"). here is my go config, I'm not sure if it can help: //-------- Go configuration --------
// Infer GOPATH from the workspace root.
"go.inferGopath": false,
// On save, runs the configured Lint tool on current workspace, current package or nothing at all.
"go.lintOnSave": "off",
// On save, runs 'go vet' on current workspace, current package or nothing.
"go.vetOnSave": "package",
// Flags to pass to `go tool vet` (e.g. ['-all', '-shadow'])
"go.vetFlags": [
"-all"
],
// Pick 'gofmt', 'goimports' or 'goreturns' to run on format.
"go.formatTool": "goimports",
// [EXPERIMENTAL] Run formatting tool on save.
"go.formatOnSave": true,
// Use gotype on the file currently being edited and report any semantic or syntactic errors found after configured delay.
"go.liveErrors": {
"enabled": true,
"delay": 500
},
// Complete functions with their parameter signature
"go.useCodeSnippetsOnFunctionSuggest": true,
"go.autocompleteUnimportedPackages": true, |
@szyhf Can you run |
Hi @ramya-rao-a , thanks for help! While just restarting vs-code, run And then I open the
After waiting for 10 minutes, That might be the problem? |
The error in the Dev tools is unrelated. Looks like the code to fetch the packages is not completing and so you get that message and also the suggestion feature doesn't get the list of packages as well. Can you run |
@ramya-rao-a Thanks for reply ! While running I tried to use
I wondering if it can help ? |
@szyhf over 5000 rows!! Wow, that's a lot of packages. I can't repro this issue because I don't have those many packages :) I can help you set up a local environment for the Go extension and help you debug the issue if you are up for it.
If the second breakpoint is not getting hit, that means that the process for Add the below right after
|
@ramya-rao-a Thank for help! I'll try them latter !!! |
@ramya-rao-a The second breakpoint was not getting hit (which means |
@sgyang yup, that's the problem. Now try this: Add the below right after cmd.on('close'), add breakpoint on the line which has the console.log() and see if this breakpoint for gets hit. If it does, share the
Looks like The auto-completion of unimported packages depends on I'll work on adding a fallback to the old way of getting pkgs, but I want to know why |
@ramya-rao-a There is no output. |
@sgyang Really? Thanks, I just got the debug environment done and receive your issue ! |
This is so cool! I'd have never caught this issue as I do only simple Go programs :( just enough for developing the features and bug fixes @sgyang @szyhf Would you be interested in joining a group I recently created to beta test the Go extension updates before they get released? |
@ramya-rao-a Yes, I'd love to, my pleasure ~ How can I join the group ? |
Awesome! Just join the Google group here: https://groups.google.com/forum/#!forum/go-with-vs-code-beta-testers I basically just post an announcement there whenever the next update is ready for beta testing.
|
My editor can not using "autocomplete Unimported Packages" any more, after I update my vscode to 1.15, I'm not sure if it is the reason.
Previously I can import package like 'strings' just type "strings.S" and auto complete list will show with "strings.Splite()" and after select, the package 'strings' will be imported.
But now, if I didn't import the package "strings", the tips won't show.
It's very pleasure if any one can help.
My OS: macOS Sierra 10.12.6
VSCode: 1.15.1 (1.15.1) , just update this morning, but the problem is not just occur now, it has been occur for about 2 weeks.
If any other info is needed, please let me know ! Thanks a lot
The text was updated successfully, but these errors were encountered: