Questions tagged [goland]

GoLand is an IDE by JetBrains for the Go programming language

Links:

  1. Official Site
  2. Documentation Pages
  3. Download Page
  4. The GoLand Blog
538 questions
9
votes
5 answers

IntelliJ IDEA: Jump from interface to implementing method in Go

In IntilliJ Idea/Goland, Is there any shortcut that would allow me to select a method inside interface definition and jump to implementation of that method or give me list of implementations. I am looking for something like what I get when Cmd+Click…
Mayank Patel
  • 8,088
  • 5
  • 55
  • 75
8
votes
3 answers

How can I set up goroot in wsl2 goland

I'm trying to set up goroot in wls2 Goland,but ut something went wrong: "The selected directory is not a valid home for Go SDK" What should I do
wujieji
  • 81
  • 1
  • 2
8
votes
1 answer

How to debug go code on remote machine using Goland?

I have a go codebase on a remote machine that I'd like to be able to debug using Goland. I've been trying to figure out how to set something akin to PyCharm's remote interpreter, but I haven't been able to figure it out. The best I can find is their…
Rylan Schaeffer
  • 1,945
  • 2
  • 28
  • 50
8
votes
6 answers

debugging go application doesn't stop at breakpoints

I have latest IntelliJ Ultimate EAP and latest Gogland and the problem occurs on both under MacOS Sierra. I'm trying to debug a go application by creating a debug profile for Go Application and the Run Kind is configured to Package, which contains…
ufk
  • 30,912
  • 70
  • 235
  • 386
7
votes
2 answers

GoLand 2022.2.4: delve panic - version of Delve is too old for Go version 1.19.0

Just upgraded to: GoLand 2022.2.4 And I did saw some Java stuff messagebox asking something. Now when ever I debug I get: GOROOT=/opt/homebrew/Cellar/go/1.19/libexec #gosetup GOPATH=/Users//go…
Chris G.
  • 23,930
  • 48
  • 177
  • 302
7
votes
3 answers

could not launch process: stub exited while waiting for connection: exit status 0 in golang or vscode

I have problems with my debugger go on a MacBook Pro M1 Pro. When I try to debug my code I have this error: "could not launch process: stub exited while waiting for connection: exit status 0" I got this error when launching the debugger via…
7
votes
1 answer

Go 1.18 migration issues — Cannot convert 'nil' to type 'any'

I updated my codebase to Go 1.18. It all looks great, but in a few places, I found the following issues. defer func() { if e := recover() ; e!=nil { ... } }() Compilation is failing with: Cannot convert 'nil' to type 'any' The…
Raghu
  • 722
  • 3
  • 8
  • 19
7
votes
1 answer

err underline in Goland without explanation

Goland shows a underline in a err variable without explaining why/no tooltip for the underline cause (see image below -- the arrow points to the weird underline). Does anyone know the cause for the underline? (It does not seem to be because the err…
JonyD
  • 1,237
  • 3
  • 21
  • 34
7
votes
2 answers

GOLAND Environment Vars in .env file

Could anyone say me how to export environment vars before running GoLand Run" with such command: source .env .env file: export MY_VAR="Some value" Yes I know, that I can define all vars in run config using "Environment variables", but it is too,…
Q-bart
  • 1,503
  • 4
  • 22
  • 41
7
votes
1 answer

Run Goglang with aws-vault

I use aws-vault to establish a secure sesssion to my dev AWS env in ZSH, all good. Now I want to run my IDE (Gogland) such that it assumes that aws-vault session so that I can then in turn debug some tests that have a dependency on S3. How can I…
Myles McDonnell
  • 12,943
  • 17
  • 66
  • 116
6
votes
3 answers

go darwin/arm64 SDK in the MacOS

I installed the Goland for the Apple silicon and go SDK in the macOS M1 machine. In the terminal I get - $ go version go version go1.18.3 darwin/amd64 When I try to debug the go application, I get the following error - Debugging programs compiled…
Arefe
  • 11,321
  • 18
  • 114
  • 168
6
votes
2 answers

How to include multiple condition for intellij goland file mask?

I use strings like !*main*.js to filter out some files. But what if on top of this, I need the files to have 'test' in the file name? I tried the following but they won't work: !*main*.js & *test* !*main*.js && *test* !*main*.js AND *test*
instant501
  • 195
  • 1
  • 10
6
votes
0 answers

Golang AWS SAM lambda Function debugging is not working on M1 Mac

When trying to debug simple SAM, I'm receiving the following error: could not launch process: fork/exec /var/task/hello: function not implemented Is anyone knows how to solve it? The full log is: Mounting /Users/.../HelloWorld as…
omer blechman
  • 277
  • 2
  • 16
6
votes
1 answer

process interrupted: signal: killed

I installed a utility called watcher. https://github.com/canthefason/go-watcher It works as expected using VS code. But when I tried to use it in Goland (from Jetbrains) I get the following: watcher main.go --port 8080 2020/03/04 14:10:42 build…
Peter Sjolin
  • 61
  • 1
  • 1
  • 2
6
votes
3 answers

Can't run go tests from GoLand (Intellij Idea): compilation failed

I've made simple application in go and trying to run tests with GUI tools of GoLand. In myfile_test.go file near test func I press green button that should start test. But I get error message: "Compilation failed" and message in console: #…
porfirion
  • 1,619
  • 1
  • 16
  • 23
1 2
3
35 36