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
![(please configure the [header_logo] section in trac.ini)](/chrome/site/blog_logo.png)
rss

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.
Tor,
Thanks. This is a great GSF feature for indexing!
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]
Please forget my last posting, after updating the autoupdate plugin everything went back to normal...