Try Faster Scala Compiler in IntelliJ IDEA 13.0.2

The latest update to Scala plugin (v0.30.375) available for IntelliJ IDEA 13.0.2 lets you choose what compiler you want to use: SBT incremental or IntelliJ IDEA.

Continue reading

Posted in New Features | Tagged , | 17 Comments

Heading to the Perfect Scala Code Analysis

We are extremely happy to let you know that the latest version of the Scala plugin (0.29.479) for the upcoming IntelliJ IDEA 13.0.2 has no false error highlighting for our own source base anymore. Moreover, a number of corresponding tests have been added to our TeamCity server, so we don’t expect to see a regression further.

The next step will be using source base of an external popular open-source project as a test for spotting false errors highlighting. That’s why we ask you for suggestions on such projects.

Let’s make IntelliJ IDEA code analysis better!

Posted in Uncategorized | 31 Comments

Built-in SBT Support in IntelliJ IDEA 13

Today we are happy to announce that the built-in support for SBT projects is finally here. The newest version of Scala plugin for IntelliJ IDEA 13 (0.23.308) comes with the following list of features:

  • Import SBT project
  • Auto-import SBT projects
  • Highlighting for .sbt files

To import an SBT project please use one of these options:

  1. File → Open, then choose .sbt file to import it as project
  2. File → Import Project, then choose .sbt file or directory containing SBT project

Don’t forget to use Enable auto-import checkbox to have your IntelliJ IDEA project automatically synchronized with .sbt files.

More cool features as well as the support for integration between Play 2.0 and SBT are coming soon. Please feel free to share your feedback, feature requests or just report found bugs to our issue tracker.

If you’d like to contribute or check out the sources use these two projects:

Enjoy!

Posted in New Features | Tagged , , | 86 Comments

IntelliJ IDEA at SF Scala. Tips, Tricks and More

A few weeks ago Alexandr Podkhaliuzin, lead developer from JetBrains was invited to SF Scala to give a talk about Scala support in IntelliJ IDEA.

In his presentation he talked about Scala language and its non-trivial technical aspects which make development more complicated as compared to other languages, and how the IntelliJ IDEA helps developers to overcome these complications and essentially be more productive. The presentation mentions both well-known and brand new features, which will be available in the nearest release.

After a short delay we’d like to share the video and slides from the presentation with you.

Slides from the presentation can be found here.

Develop with Pleasure!

Posted in News and Events | Tagged | Leave a comment

Scala and Play 2.0 Plugins Update 0.22.302 is Available

Today the new versions of Scala and Play 2.0 plugins for IntelliJ IDEA 12.1 have been released and are available for download. The build process of Scala and Play plugins since today is similar, so Play plugin has the same build number as Scala plugin.

The new features in the release include:

  • Rearranger for Scala (for IDEA 13 only)
  • New extractors support for Scala 2.11
  • Rename and find usages for scala setters

Fixes:

  • SCL-5778 Rename of scala members and classes from java code
  • SCL-5779 Renaming usages of scala objects in java code
  • SCL-4336 in-place rename of back-ticked references
  • SCL-3926 Option for not renaming companion class or object
  • SCL-5579 Class with backticks now resolved from anywher
  • SCL-6010 Fixed call by name parameters in Java
  • SCL-5973 Override and implement method actions does not use procedure syntax

This is the last feature release for IntelliJ IDEA 12 (only bugfixes releases are expected). There will no nightly builds for IntelliJ IDEA 12 anymore. We start nighlty builds for IntelliJ IDEA 13 (Cardea).

Please note that if you are running IntelliJ IDEA 13 EAP you should use 0.24.50 (or higher) version of Scala and Play plugins. They are compatible with the latest EAP (132.425 or higher).

Enjoy!

Posted in Uncategorized | 7 Comments

Scala and Play 2.0 Plugins 0.19.297 Update is Available

Today the new versions of Scala and Play 2.0 plugins for IntelliJ IDEA 12.1 have been released and are available for download. In case if you have the plugins already installed just press Update Plugin. From now the build process of Scala and Play 2.0 plugins is common, so Play 2.0 plugin has the same build number.

Please note that if you are running IntelliJ IDEA 13 EAP you should use 0.21.45 (or higher) version of Scala and Play 2.0 plugins. This plugin will be available to use with upcoming EAP (32.106 or bigger)

The new features in the release include:

  • Convert Scala to Java collection (contribution by jozic)
  • Global completion for type aliases
  • Completion based on runtime time in debugger evaluate expression
  • Generate companion object action
  • Generate equals/hashCode (available for IDEA 13 only)

Fixes:

  • Fixes in parallel compilation of independent modules.
  • Better “show type on mouse” action. No blue highlighting, configurable delay.
  • SCL-6018 Inplace rename does not work for declarations and definitions
  • SCL-5970 Function rename doesn’t rename overriden methods
  • Evaluate expression in debugger for interpolated strings
  • Fixes in Introduce Variable
  • SCL-5592 Better path dependent types resolve in case of selector set imports, probably with renames
  • SCL-5938 Evaluate expression in anonymous functions and for loops
  • Fixed resolve precedence between package local classes and imported classes
  • Fixed some red code issues in projects, which use Spray library
  • Bugfixes in Play 2.0 plugin including better parser and analyzer

Here you can see, that plugin version for IDEA 13 and IDEA 12 are slightly different. Next October release will be remain almost synchronous, however after that development will be moved for IDEA 13 and almost everything will be in releases for IDEA 13 only.

Enjoy!

 

Posted in Release report | 9 Comments

Scala and Play 2.0 Plugins 0.16.293 Update is Available

Today the new versions of Scala and Play 2.0 plugins for IntelliJ IDEA 12.1 have been released and are available for download. In case if you have the plugins already installed just press Update Plugin. From now the build process of Scala and Play 2.0 plugins is common, so Play 2.0 plugin has the same build number.

Please note that if you are running IntelliJ IDEA 13 EAP you should use 0.18.28 (or higher) version of Scala and Play 2.0 plugins.

The new features in the release include:

  • Introduce field refactoring
  • Display type on mouse hover action (available from settings)
  • Convert Java collection to Scala collection intention (jozic contribution)

Fixes:

  • SCL-5889 Fixes in breakpoint placement
  • SCL-5858 Fixed deadlock
  • SCL-4784 Improved unused import detection
  • Fixes in Debugger evaluate expression including evaluation of references to values defined in patterns.
  • Various Inplace Introduce Variable fixes
  • Implemented Java/Scala collection detection in Play project
  • Lots of stability improvements in Play plugin

Enjoy!

Posted in Uncategorized | 18 Comments

SBT Plugin for IntelliJ IDEA Nightly Builds

SBT build definitionWe know that you have been waiting for SBT project support in IDEA too long. That’s why we make SBT plugin nightly builds available even before an actual release of the plugin.

Features

Though work on SBT plugin is still in progress, the following features are already available:

  • SBT project import.
  • Incremental project model updating.
  • Auto-import (on project definition changes).
  • Editing of .sbt files (with full highlighting, auto-completion and navigation).

Many more features are on the way (see the roadmap below).

Installation

SBT plugin is currently available for IDEA 12 (“Leda”), the plugin builds for the IDEA 13 EAPs are coming soon.

You can use any of the following methods to install or update the plugin in IDEA:

  • Automatic updates (recommended)
    Add the following URL to the list of custom plugin repositories in Settings | Plugins | Browse Repositories | Manage Repositories:
    After that, you may install the plugin via Settings | Plugins | Browse Repositories.
    IDEA will check for the latest plugin builds automatically.
  • Manual download
    Get the latest build from SBT plugin nightly builds page and install the downloaded archive via Settings | Plugins | Install plugin from disk.

  • Build from sources
    If you are eager to get the latest snapshot of the plugin, you may use SBT plugin project on GitHub to clone the plugin repository by entering the following command:
    Then run sbt dist to build a binary distribution of the plugin (you may need to specify locations of IDEA and Scala plugin first).

Usage

To import an SBT project in IDEA use either File | Open or File | Import Project menu command and then choose a desired build.sbt file (alternatively, you may choose a project root directory).

IDEA will analyze the SBT project structure and create a corresponding project model that includes all required modules, source/output directories, libraries, dependencies, etc.

If you select Use auto-import check-box in the import dialog, IDEA will monitor the SBT project definition for changes and update the corresponding project model automatically (preserving your local modifications to the project).

In addition to ordinary modules (which correspond to SBT “projects”), IDEA creates special “SBT” modules, which describe SBT build definitions themselves (.sbt files and Scala files in project directories) in order to provide highlighting, auto-completion and navigation for these files and SBT libraries.

Roadmap

Here are the features that we’re going implement in the near future:

  • SBT console.
  • Command tool window.
  • Project make via SBT.

Feedback

Keep in mind that SBT plugin project is currently in alpha stage, don’t be too hard on it :)

Please, report bugs and submit feature requests to our YouTrack (set “SBT” as a subsystem).

Post ideas and questions to our forum.

Complete plugin code is available as a project on GitHub.

Posted in News and Events | Tagged , , , , , , , | 27 Comments

Scala and Play 2.0 Plugins 0.13.286 Update is Available

Today the new versions of Scala and Play 2.0 plugins for IntelliJ IDEA 12.1 have been released and are available for download. In case if you have the plugins already installed just press Update Plugin. From now the build process of Scala and Play 2.0 plugins is common, so Play 2.0 plugin has the same build number.

Please note that if you are running IntelliJ IDEA 13 EAP you should use 0.15.20 version of Scala and Play 2.0 plugins.

The new features in the release include:

  • Inplace introduce variable
  • Inplace rename for all elements
  • Disabled by default inspection for functions with explicit Unit return type
  • Added inspection for functions in procedure-like syntax (if you think it should we enabled by default, please vote for it)
  • Better Find usages and rename for Play 2.0

Fixes:

  • SCL-1971 Implicit formal parameter setter could be resolved
  • SCL-3338 Good code is red: tuple views are not found unless tuple values are explicitly enclosed in parentheses
  • SCL-5677 NoClassDefFoundError when running an “All in package” scalatest using “In whole project”
  • SCL-5790 Good code red: path-dependent types
  • SCL-5729Overloading resolution fails for few collection classes
  • SCL-5726Forward reference with local lazy val incorrectly produces “wrong forward reference”
  • SCL-5735 Wrong “Unnecessary parentheses” quick-fix
  • Lots of Introduce variable bugfixes
  • Lots of stability improvements and bugfixes in Play 2.0 plugin

Enjoy!

 

Posted in Uncategorized | 11 Comments

IntelliJ IDEA at Scala Days 2013, Survey and License Winners

Thanks to everyone who joined us last week in New York City for Scala Days 2013. We were impressed by how many passionate developers came to the conference. Special thanks to James Ward and TypeSafe for inviting us to such a great event.

It was also a pleasure to see a lot of the attendees at our session Scala Developer Tools in IntelliJ IDEA, where we presented the new features of the IDE for Scala developers, and announced the early preview of SBT support. We hope to post a recording of this session soon so everyone can watch it. In the meantime you can see the slides from the presentation.

While at the conference we ran a quick survey on Scala. We asked every developer who came to our booth to answer a few questions on their experience with Scala and IntelliJ IDEA. Over a hundred Scala developers gave us their feedback, and we’d like to share the results with you. Continue reading

Posted in News and Events | Tagged | 6 Comments