-
Notifications
You must be signed in to change notification settings - Fork 788
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
Cannot Navigate to functions / symbols from _windows.go on MacOS #3421
Comments
Hi, what is your gopls version? This should have been fixed in [email protected]. Please run |
Hi @findleyr here is my versions:
|
Thanks. This doesn't reproduce for me. When I create a main_windows.go, gopls indeed works as expected -- for example I can jump to definition. Can you share exact steps to reproduce? Are you just creating a main_windows.go file in an empty workspace folder? |
@findleyr thank you for assisting. I will only be able to try this later tonight. I will then experiment and see what is going on. I also have a But I will try again tonight, and get back with more details (it might just be this project). |
Hi @findleyr, I have managed to reproduce the problem. (well I think so). 1: create two files. As soon as I add the |
@wayneforrest Thanks for the repro, I was able to reproduce the issue locally when using cgo as well. @findleyr this comment from the zero-config issue seems to refer to this same problem. |
This is indeed a known issue. Setting GOOS or GOARCH do a cross-platform value implies CGO_ENABLED=0 (because we have no C compiler). We could do better here, but that is covered under #35721 among other issues. Closing as a dupe. (Since this was just raised again, I'm going to experiment with using |
This is actually a better dupe of golang/go#65758. |
Type: Bug
On MacOS, create a windows specific file i.e. main_windows.go
and then navigate to functions/symbols that are not OS specific.
I observed the following in the console which might be related.
Extension version: 0.41.4
VS Code version: Code 1.90.0 (89de5a8d4d6205e5b11647eb6a74844ca23d2573, 2024-06-04T19:34:48.028Z)
OS version: Darwin arm64 23.5.0
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: