Gogland EAP 7: Faster Completion, Package Rename, 2017.1 Platform Features, Plugin, and more

Following IntelliJ IDEA 2017.1 released earlier today, a fresh EAP build for Gogland EAP 7 becomes available, bringing you more bugfixes and new features.

First of all, Debugger improvements.

Run to cursor action that resumes code execution and stops at a given line is now available both via shortcut and from the menu.

Breakpoints now support Conditional expressions that let you define conditions under which they will be hit:

Data representation inside Variables, Watches, Evaluate Expression, Inspect and inline information is improved: it displays nested objects, supports arrays, etc.

Also, the update brings several new intention actions, that let you add an alias for an import statement and replaces all usages accordingly:

And to invoke go generate for a generated comment at the caret:

The “err” live template has been improved and now it is aware of the error variables within the scope:

In Settings | Editor | General | Code Folding the IDE offers two new options (off by default): One line returns and One line panics. These options fold single-line if statements with return and panic statements inside to a more compact syntax:

We’ve merged changes from IntelliJ IDEA 2017.1 that include all the platform improvements and new features, the most notable of which is the reworked Find in Path dialog, that now provides instant preview of the sought text and lets you jump to any result with Enter:

Another area of the platform improvements is JavaScript support, and it includes dozens of changes:

And, of course, many small, but important Go improvements:

  • Faster Code completion
  • Rename and Find usages for packages, imports and qualifiers
  • Validation of canonical import paths
  • File Rename now renames the corresponding test file as well
  • Highlighting and filtering generated files in Find usages/Refactorings according to the proposal
  • Bugfixes in the Formatter, Inspections, Refactorings and Completion

Last, but not least, we’re happy to announce the availability of the Go plugin for IntelliJ IDEA Ultimate and other paid IDEs which provides the functionality equal to Gogland.  Read the FAQ to see how it differs from the third-party plugin.

Note that there’s no patch update available due to the migration to IntelliJ Platform 2017.1.

That’s it for today. Feel free to give the new EAP build a try right away and share your feedback with us through the comments as well as the issue tracker.

The Drive to Develop

About Andrey Cheptsov

Part-time dreamer. JVM/JavaScript geek. IntelliJIDEA Marketing Manager at JetBrains.
This entry was posted in EAP, New Features. Bookmark the permalink.

9 Responses to Gogland EAP 7: Faster Completion, Package Rename, 2017.1 Platform Features, Plugin, and more

  1. LUIS FERNANDO GAIDO says:

    Golang crashed, and never run correctly again after this version. How can I take the older version?

  2. Min Ren says:

    I have the same issue with latest Gogland. Never be able to run again.
    1.0 EAP 171.3780.106
    mac 10.12.4

  3. Timothy Hawkins says:

    I cannot get this product to work at all, i have never been able to build anything with it, as it keeps telling me that main.go is invalid in the configurations panel, but wont tell me why. I have tried everything I can think of.

    my main is in the root of the project and consists of. (project is testgolang)

    package testgolang

    func main() {
    println(“Hello go”);
    }

    When i create a new go project, the system needs to create a skeleton “hello world” project that is setup ready to go, just hit build and run, i have wasted weeks trying to work through getting it to function.

    If I ignore the error and build anyway, it just fails

    GOROOT=/usr/lib/golang
    GOPATH=/home/thawkins/work/golang
    /usr/lib/golang/bin/go build -o /tmp/testgolanggo /home/thawkins/work/golang/src/github.com/thawkins/testgolang
    can’t load package: package /home/thawkins/work/golang/src/github.com/thawkins/testgolang: import “/home/thawkins/work/golang/src/github.com/thawkins/testgolang”: cannot import absolute path

    • Alexander Zolotov says:

      Indeed, the IDE doesn’t provide any tools to learn Go language and its infrastructure yet. I believe Go Tour (https://tour.golang.org/welcome/1) and https://golang.org/doc/code.html will help for now.

      > package testgolang

      You cannot run program with this package name, an executable package should be main. As soon as you rename the package, it will be possible to run a program just by Alt+Enter on the main function or via gutter icon nearby main function.

      > can’t load package: package
      > “/home/thawkins/work/golang/src/github.com/thawkins/testgolang”: cannot import absolute path

      IDE just runs go build, and it’s gobuild who says about problems with loading package. The error seems to be dscriptive, it’s impossible to use an absolute path as an import path. Import path should be relative to current file or to GOPATH roots.

  4. Jacky says:

    Could you add an option to make double clicking on a file in Project tool window open the file rather than display the structure of the file?

    Gogland (1.0 Preview) 1.0 EAP
    Build #GO-171.3780.106, built on March 22, 2017

  5. stillwarter says:

    Any news to Gogland?
    When will the first release version be available ?

Leave a Reply

Your email address will not be published. Required fields are marked *