Cannot get testrunner to work with goland 2022.2.4
rvdwijngaard opened this issue · comments
I have installed the plugin via Goland / Plugin MarketPlace. When I try to run any unit test (doesn't matter if I run a single test or directory tests) I get the following error:
Cannot run program "encore" (in directory "/home/ron/projects/myapi"): error=2, No such file or directory
Compilation finished with exit code 126
The newapi
feature seems to work fine.
GoLand 2022.2.4
Build #GO-222.4345.24, built on October 11, 2022
Runtime version: 17.0.4.1+7-b469.62 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.19.13-arch1-1
GC: G1 Young Generation, G1 Old Generation
Memory: 1966M
Cores: 8
Registry:
editor.focus.mode.color.light=415967
ide.editor.tab.selection.animation=true
debugger.watches.in.variables=false
suggest.all.run.configurations.from.context=true
ide.completion.variant.limit=500
ide.new.editor.tabs.vertical.borders=true
ide.balloon.shadow.size=0
editor.focus.mode.color.dark=415967
Non-Bundled Plugins:
ski.chrzanow.foldableprojectview (1.1.3)
IdeaVIM (1.11.1)
org.jetbrains.plugins.rest (222.4345.14)
org.toml.lang (222.4345.14)
app.teamhub (15.0.11)
mobi.hsz.idea.gitignore (4.4.2)
com.mallowigi (73.0.0)
PlantUML integration (5.17.1)
dev.encore.intellij (0.0.3)
com.chrisrm.idea.MaterialThemeUI (7.11.0)
Current Desktop: GNOME
I got around this by linking my encore binary to /usr/local/bin
Seems like intellij can't find encore
from its native install director $HOME/.encore/bin
even when its exported in your path.
@sourcec0de, @rvdwijngaard I'm just releasing 0.1.0
of the plugin, I've added the ability to select the Encore binary in the settings window there.
I think that should fix it for you. But basically before the plugin defaults to expecting to find the binary on the $PATH
, it will still do that going forward, but it will now also allow you to change it to point at a different binary file
@DomBlack awesome!
Will check this out soon.
Thank you for your hard work.