Bad code green

I added the following - without having mapper in the classpath:

import root.net.liftweb.mapper._

This should be marked in red (since it has no idea what these classes
are) but it isn't.

I'm using 92.24U with 0.3.200 on a Mac running 10.5.8 (Java 1.6.0_15)

Is there something wrong with my configuration?

Thank you,

Donald

3 comments
Comment actions Permalink

Currently plugin marks only unqualifed references. It's only in case if it's in import expression, or in Type, or this is reference to unimported Object.
We do not enable red code insuch place as this, because of many red code in right places. I hope, that it will be enabled soon, but I'm not sure.
Also it's possible that it will be enable for nightly builds.

Best regards,
Alexander Podkhalyuzin.

0
Comment actions Permalink

Alexander Podkhalyuzin wrote:

Currently plugin marks only unqualifed references. It's only in case if it's in import expression, or in Type, or this is reference to unimported Object.
We do not enable red code insuch place as this, because of many red code in right places. I hope, that it will be enabled soon, but I'm not sure.
Also it's possible that it will be enable for nightly builds.


I guess that I can understand, this being pre-release code (0.3), that
there are still some unimplemented features.

What about function calls? I had a class with:

   def get(propName: String): String = {

I realized that I needed a version with two parameters, so I put in the
call:

     get("string", "string")

In Java, I would have gotten an intention to create a new function or
modify the signature. In Scala I got nothing, not even a red line.

0
Comment actions Permalink

All such features will be added, when Type System will be fully implemented, and working well. I'm not sure about quality and priority of such features, if it will be implemented now.

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.