Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Mon, 15 Oct 2018 17:59:00 +0000 Goland tip of the day: when Make run configurations dont find "go" #goland In a Goland 2018.3 EAP run configuration, a Makefile run configuration finds the <code>go</code>&nbsp;binary on macOS, but not on Ubuntu, causing lines tasks this one builds to fail:<br><pre>client/test.wasm: client/main.go<br> # Building WASM<br> GOARCH=wasm GOOS=js go build -o client/test.wasm client/main.go<br><br>/usr/bin/make -f (some edited path)/Makefile client/test.wasm<br>/bin/sh: 1: go: not found<br>make: *** [client/test.wasm] Error 127<br></pre> <p>Let's fix it...</p> 4 points posted by FGM https://blog.riff.org/2018_10_12_goland_tip_of_the_day_when_make_run_configurations_dont_find_go 3608 Sun, 14 Oct 2018 10:27:00 +0000 GoLand tip of the day: clean up leftover cache and log folders #goland <p>When GoLand is upgraded from one version to the next, the deployment process adds a new set of configuration, cache, and log directories. But it does not remove the versions associated to the previous versions of the IDE, to ease rolling back to the previous version if an upgrade happens to cause an issue.</p> <p>So after some time, removing these now-unused folders will regain some disk space, possibly more than 1 GB. Here are their respective locations and content on macOS...</p> 2 points posted by FGM https://blog.riff.org/2018_12_08_goland_tip_of_the_day_clean_up_goland_leftover_cache_and_log_folders 3709 Sat, 08 Dec 2018 17:26:00 +0000 How to debug a second test run ? #test #testing #delve #goland #debugging Sometimes, tests can succeed on the first run and fail on subsequent ones, or with the -shuffle flag. But then, how can one debug them using the builtin Delve in GoLand while run configurations only run tests once ? 1 points posted by FGM https://osinet.fr/go/en/articles/debug-second-test 4739 Thu, 09 Jun 2022 11:22:00 +0000 Comment déboguer la seconde exécution d'un test #delve #goland #debugging Parfois, des tests peuvent réussir à la première passe et échouer à la suivante, ou dans un autre ordre. Mais comment les déboguer avec Delve et GoLand alors que les configurations d'exécution n'exécutent les tests qu'une seule fois ?  1 points posted by FGM https://osinet.fr/go/articles/debug-second-test 4733 Wed, 01 Jun 2022 17:36:00 +0000