goland cmd-line tool stopped working in
Yesterday I upgraded to GoLand 2025.1.2, Build #GO-251.26094.127
I didn't try using the cmdline tool yesterday, but I did today, and it doesn't work.
$ cd <directory containing a go project>
$ which goland
/opt/homebrew/bin/goland
$ ls -l /opt/homebrew/bin/goland
lrwxr-xr-x 1 … 46 28 May 2024 /opt/homebrew/bin/goland -> /Applications/GoLand.app/Contents/MacOS/goland
$ goland .
The IDE says:
```
Cannot detect a launch configuration
Caused by:
0: Cannot find a directory with a product descriptor near '/opt/homebrew/bin/goland'
1: No parent dir for ‘"/"’
Please try to reinstall the IDE.
For support, please refer to https://jb.gg/ide/critical-startup-errors
```
If I do this:
```
$ alias goland=/Applications/GoLand.app/Contents/MacOS/goland
$ goland .
```
The IDE comes up with the desired project.
Looks like the code is getting confused processing the symlink.
Please sign in to leave a comment.
Can't edit the post. Heading should be “goland cmd-line tool stopped working in 2025.1.2”
Hi Eric Promislow ,
This sounds expected based on how things currently work - when you try using a symlink, GoLand will look for the product descriptor next to the symlink location, and as there is none, the best workaround is to either call GoLand directly, or add an alias (as you already did).
I'm wondering, however, did a similar setup work for you before? Could it be that you also used an alias in the previous configuration as well? It might've gotten broken during the update, which could potentially explain the discrepancy…