-
-
Notifications
You must be signed in to change notification settings - Fork 724
Open
Labels
IDEGo package driver and IDE supportGo package driver and IDE support
Description
What version of rules_go are you using?
0.30
What version of gazelle are you using?
0.24
What version of Bazel are you using?
Build label: 5.0.0-homebrew
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Mac OS X, M1 / arm64
Any other potentially useful information about your toolchain?
What did you do?
Trying to catch os signals.
The code build fine with bazel, but are not detected by the gopackagedriver config. Note that all other "autocompletes" are working fine, it seems to only apply to the syscall package of go.
package main
import (
"os"
"os/signal"
"syscall"
)
func rulesGoTest() {
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
}[Trace - 09:30:17.070 AM] Sending request 'textDocument/codeAction - (192)'.
Params: {"textDocument":{"uri":"file:///test.go"},"range":{"start":{"line":10,"character":29},"end":{"line":10,"character":35}},"context":{"diagnostics":[{"range":{"start":{"line":10,"character":29},"end":{"line":10,"character":35}},"message":"SIGINT not declared by package syscall","code":"UndeclaredImportedName","codeDescription":{"href":"https://pkg.go.dev/golang.org/x/tools/internal/typesinternal?utm_source%3Dgopls#UndeclaredImportedName"},"severity":1,"source":"compiler"}],"only":["quickfix"]}}
this seems to be arm64 related, we tested on amd64 and the package loads fine.
What did you expect to see?
IDE to detect the definition of SIGINT
What did you see instead?
Metadata
Metadata
Assignees
Labels
IDEGo package driver and IDE supportGo package driver and IDE support
