Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ScalaIDE for Eclipse: How can I autocomplete from libraries?

When editing Java files, if I use auto-complete on a class that hasn't yet been imported, the editor proposes the correct class and subsequently generates the import code. When editing Scala code, the only native Java library classes appear to be supported.

Thanks to @fiction, at least I can write the name of the class and then use 'Organize Imports'(Ctrl+Shift+o) , or per this answer I can use quick fix to generate the import, but I'd much prefer to use autocomplete in the first place, especially if there's a question about spelling. Is this unsupported, or is something configured something wrong? (I've already run Setup Diagnostics with JDT content-assist checked.)

I'm using version 2.0.0.beta09-29-201107201639-529111d.

like image 683
Jeff Axelrod Avatar asked Aug 25 '11 14:08

Jeff Axelrod


1 Answers

A recent message on the ScalaIDE developers forum lists a tentative "roadmap," which if I understand correctly, seems to indicate that this feature is not yet available, but should be deployed very soon (planned to be released in the next few weeks).

2.0 version: 1st week of September (optimistic)

...

  • scope completion using all types in the classpath (can be done based on the Java search engine) -- probably a 'low hanging fruit'
like image 57
Jeff Axelrod Avatar answered Oct 27 '22 00:10

Jeff Axelrod