Goland 2021.1 undefined reference for just about everything

Completed

I upgraded Goland to 2021.1 and all my existing projects have undefined references on virtually every line, including references to functions in the same main package but different Go files. Please keep in mind, these projects were fine with the previous version I had installed.

I created a brand new hello world project and Goland cannot resolve fmt.Println(). It seems to resolve packages (i.e. fmt) but not members (e.g. Println).

I've attached a screenshot to this post.

The existing projects and the new test project run in debug without issue. I should also note that our production code is stuck at Go 11.5.x unfortunately if that matters.

Has anyone else experienced something similar? I do have a support ticket in with JetBrains, but I'm sort of dead in the water for developing today.

Upload id: 2021_04_11_XV7mvsz6donwp7xW (file: Screen Shot 2021-04-11 at 1.07.47 PM.png)

Hmm, I apparently don't know how to include the screenshot.

0
4 comments

SOLUTION: This issue was resolved by JetBrains support. Per support, I invalidated all the caches, and the undefined references were properly defined.

2
Avatar
Permanently deleted user

Help / Find action / Invalidate caches...

0
Avatar
Permanently deleted user

Same issue for me. Cache invalidation works for me. But then (I think usually next day), same issue, unresolved refences everywhere. I need to invalidates cache again, it's annoying.

I tried it on 2 different notebook, but both ran Manjaro.

0

@..., please, download Toolbox app and install GoLand Nightly where the issue is fixed.

1

Please sign in to leave a comment.