When a class name is used but has not been imported, a quick fix used to be available in ScalaIDE 3 to import the class (via a classpath lookup?).
There seems to be an issue which results in this quick fix not being available for my projects.
Either this feature is removed (unlikely), there is a bug in Scala IDE, or my projects were not configured properly while being imported into the workspace.
My projects were imported as maven projects (using the maven integration plugin provided by the ScalaIDE bundle). I checked the classpath settings which seem fine.
The quick fix is also not available for class names within the same project, so a classpath issue seems unlikely.
There seems to be an issue which results in this quick fix not being available for my projects.
Either this feature is removed (unlikely), there is a bug in Scala IDE, or my projects were not configured properly while being imported into the workspace.
My projects were imported as maven projects (using the maven integration plugin provided by the ScalaIDE bundle). I checked the classpath settings which seem fine.
The quick fix is also not available for class names within the same project, so a classpath issue seems unlikely.
Leave a comment
on 2014-11-03 09:25 *
By johan.walters278827
Curiously, with the cursor at the class name which isn't imported, when I press CTRL-1 the pop-up with the import quickfix does appear. The point is, the pop-up doesn't appear just by clicking on the red bullet / right-clicking on the highlighted error itself.
Probably related to #1002305. Note: Fixing quick fixes by hovering/right clicking at the error location is not supported.
on 2016-07-19 13:37 *
By Simon Schäfer
@chengas123 do you suffer from this problem too?
on 2016-07-19 14:23 *
By chengas123
Yes, I do suffer from this. When there's a missing import I see a red x just to the left of the line number. In Java I can click that for a quick fix. In Scala it just says "not found: type X". I'm using Eclipse 4.5.2 and Scala IDE 4.4.1.v-2_11-201605041057-92a3ed3. This problem is the most frustrating of the problems I encounter using Scala IDE
on 2016-07-19 16:43 *
By Simon Schäfer
You can press CTRL+1 and then get a quick fix menu. It is true that the quick fix entries are not shown when one clicks on the error symbol, that is simply not supported.
on 2016-07-19 17:09 *
By chengas123
Is there a separate ticket I should follow for quick fix via error symbol or should I open a new one for that?
on 2016-07-19 17:30 *
By Simon Schäfer
Please open a new one, I can't remember that we have one.
on 2016-07-19 17:54 *
By chengas123
Ok, thanks. Here's the new ticket: https://scala-ide-portfolio.assembla.com/spaces/scala-ide/support/tickets/1002707-add-support-for-quick-fix-via-error-symbols
No file chosen
You have an empty file field. Please select or remove it.
Name | Size |
---|