Martin Ellison
Martin Ellison

Reputation: 1343

Golang plugin in intellij-Idea not finding all files

This relates to the go language plugin (version 0.9.15.3) for IntelliJ IDEA.

I have a directory structure in the following format:

In (say) bill/bill.go, I import fred.go, and the compiler picks up references to fred.Something (when run from the command line).

But IntelliJ IDEA does not recognise the references to fred.Something; they come up in red, and actions such as 'go to definition' do not work.

Is there anything I can do to make this work?

I don't want to upgrade to the alpha version of the plugin if I can help it, unless it is stable (in which case, it should not be alpha).

Upvotes: 0

Views: 168

Answers (1)

dlsniper
dlsniper

Reputation: 7477

Please don't use 0.9.15.3. The latest plugin should work properly for your case, if not please open a issue.

To get the latest plugin, please follow the instructions from here: https://github.com/go-lang-plugin-org/go-lang-idea-plugin#pre-release-builds

Upvotes: 1

Related Questions