Go logo

GoLand

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

Early Access Program

GoLand 2022.1 EAP #2 Is Out With the Implement Missing Methods Quick-Fix for Generics and Database Improvements

The second build of our Early Access Program is now available!

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 2022.1 EAP #2

The Implement missing methods quick-fix for generics

We’re continuing to add features that make working with generics easier. In this build, you’ll find the Implement missing methods quick-fix.

If a type argument doesn’t have all of the methods from the interface it is constrained by, GoLand will show an error. As usual, you can see the error message by hovering your cursor over the underlined type argument or by pressing F2

You can implement missing methods by using a quick-fix right from the error message. Alternatively, click on the red light bulb or press ⌥ ↩ (Alt + Enter for Windows/Linux) and choose Implement missing methods

As we noted in a previous post, features are not our top priority when it comes to generics. We’re focusing on fixing false positive errors first, then false negatives, and only then will we work on implementing new features. 

In this build, you will find 12 generics-related fixes. To see all the fixes that are available in v2022.1, go to our issue tracker (fixes for more than 40 issues have been backported to v2021.3). 

Database improvements 

Copy multiple objects

Now you can select multiple tables and copy them to another schema.

Select the tables and press F5 to open the export dialog. As with exporting a single table, you can map the columns, see the DDL of the new table, and change it.

GoLand supports cross-DBMS export, which means the target schema can belong to any database from your project. Copying all tables from your PostgreSQL database to SQL Server has never been so easy.

MongoDB: Editing fields in results

You can now edit the results in MongoDB collections just as easily as in relational databases. 

To learn more about database improvements, take a look at this post from the DataGrip team.  

Web development: Improvements for Vue

We have several improvements for Vue 3. If you define components as global, the IDE will now recognize them in your .vue files. GoLand should also properly support the createApp syntax. It will correctly match applications created using createApp with their related elements.

This version also includes support for Nuxt 3, a new version of a popular Vue framework.

VCS: Updated Annotate with Git Blame

We’ve improved the functionality of Annotate with Git Blame to make investigating changes easier. The IDE highlights the differences in lines right in the editor when you hover over an annotation, and it opens the Git Log tool window when you click on one. 

That’s it for today! We value your feedback. Please feel free to get in touch with us on Twitter, leave your comments here, open an issue in our tracker, or drop us a message in the Gophers Slack #goland channel. Thanks!

image description