Go logo

GoLand

A cross-platform Go IDE with extended support for JavaScript, TypeScript, and databases

Early Access Program

GoLand 2021.3 EAP #4: Run Targets Improvements, a Template For testify Assertions, Accessibility Updates

GoLand 2021.3 EAP #4 is out. 

You can get the EAP build via the Toolbox App, download it from our website, use a snap package (for Ubuntu), or from inside GoLand, select Check IDE updates for Early Access Program in Preferences / Settings | Appearance & Behavior | System Settings | Updates.  

Download GoLand 2021.3 EAP #4

Run targets: configure folders for sources and executables

Starting from this build, you can give meaningful names to the remote machine’s folders where your project’s sources and executables are stored. 

Previously, when you ran a Go program on the remote target via SSH connection, these folders’ names would be created randomly and would look something like this: ny5uj0XOaI. Moreover, on every run, there would be a separate folder for every executable. So after several runs, you would have several folders with random names in your project’s directory.  

Now you can go to Run | Edit Configurations | Manage targets | Additional Settings and configure a path to sources and executables in the Project sources directory and Compiled executables directory fields.

And you will see these folders on your remote target.

A template for testify assertions

According to the JetBrains developer survey, around 25% of Go developers use testify for testing. It’s a powerful extension of the standard library, which has many tools for writing better tests, including the assert package. 

In this EAP build, you can try a new template for table tests with testify assertions. If you already used assert in your package, GoLand will generate a boilerplate with assertions when you press ⌘N (Alt + Ins) and choose the necessary option.

Accessibility updates 

For the upcoming release, we’ve addressed some accessibility issues to make it more comfortable to work in screen reader mode. Based on your requests, we’ve disabled the tool window widget pop-up [IDEA-278151] and the quick documentation pop-up [IDEA-274143] that used to appear on a mouse hover. We’ve also fixed an issue with calling the Go to Declaration dialog [IDEA-272536]. 

Other improvements 

– GO-11267 – Build on a Docker target no longer fails when using replace imports.

GO-11781 – You will notice that GOROOT no longer points to null on remote targets. It now points to an empty string, which is consistent with the os.LookupEnv(“GOROOT”) output.  

That’s it for today! Tell us what you think about this EAP build! Leave your comments here, tweet us, open an issue in our tracker, or drop us a message in the Gophers Slack #goland channel. Thanks!

image description