Comment highlighted as error
Firstly: Scala development in IDEA with the Scala plugin is excellent! I'm using it for a large multi-module project and it mostly 'just works'. Very nice work.
I've found a couple of weird cases with the error highlighting, though.
Here's a simple example where it thinks a comment is a syntax error:
class IDEAHighlight1 {
def comments: Unit = {
Some("foo")
.map { _.toString } // comment here is fine
.map { _.length }
// comment here seen as syntax error
.map { _ + 3 }
}
}
Screenshot attached.
Details:
- IntelliJ IDEA 10.0.1 Community, Build #IC-99.32, 23-Dec-2010
- Scala plugin: 0.4.345
Attachment(s):
Menu_047.png
Please sign in to leave a comment.
Similar to this bug: http://youtrack.jetbrains.net/issue/SCL-2564
I've lodged a separate bug.
http://youtrack.jetbrains.net/issue/SCL-2669
Thanks for the report.
-jason
Thanks, Jason. Appreciate it.
This is hacked now. Still not work with /**/ comments. But your cases is ok now.
I'm planning to fix such problems in general way, but this way needs more time.
Best regards,
Alexander Podkhalyuzin.
Thanks, Alexander!
Are there nightly or experimental builds that I could try out?
Mark
Wait for the next one here: http://confluence.jetbrains.net/display/SCA/Scala+Plugin+Nightly+Builds+for+IDEA+X
Verified that this is working in 0.4.428. Thanks for the quick fix.