Friday Apr 25, 2008

Scala for NetBeans Screenshot#9: Working on Auto-Completion

With the indexed cache of project's Class/Trait/Object, and Scala standard library's source files, the auto-completion is a bit smarter now. If the val/var is defined with type, the auto-completion can know which methods will be suggested. (Not work for java classes yet)

To get this working, you should follow these steps:

  • Update to newest Scala plugins (Editing version 1.0.21.1)
  • Delete the old-cache files which are located at your NetBeans's configuration directory (for example, .netbeans/dev/var/cache).
  • Download Scala standard library's source file, unzip them to $SCALA_HOME/src, per sub-folder per source jar file

Click on the picture to enlarge it

nn

Comments:

Great work Caoyuan!

P.S. Regarding "Delete the old-cache files which are located at your NetBeans's configuration directory" -- you can bump your own version number inside of your ScalaIndexer's getIndexVersion() method whenever you change the format of what you're storing in your index, and that will force a rescan for all your users so they don't have to do the above cache file update.

Posted by Tor Norbye on April 25, 2008 at 08:37 PM PDT #

Tor,

Thanks. This is a great GSF feature for indexing!

Posted by Caoyuan on April 26, 2008 at 07:37 AM PDT #

Hi Caoyuan,

The plugin works much better now, and is quite stable.

However an old problem is back: I can't update to the newest version, I get the usual

Missing required modules for Plugin Common Scripting Language API:
Common Scripting Language Support [module org.netbeans.modules.gsf/2 = 1]
Missing required modules for Plugin Common Scripting Language Support:
Common Scripting Language Support [module org.netbeans.modules.gsf/2 = 1]

Posted by Landei on April 29, 2008 at 07:38 AM PDT #

Please forget my last posting, after updating the autoupdate plugin everything went back to normal...

Posted by Landei on April 29, 2008 at 07:47 AM PDT #

Post a Comment:
Comments are closed for this entry.