nbscala
nbscala copied to clipboard
When importing a scala type name into Java type name must match filename
This is with NB 8.0.2, Oracle Java 8u25, Scala 2.11.8, Maven 3.2.1
This piece of Java:
package testscalaandjava; import testscalaandjava.Helper; import testscalaandjava.Message;
public class Main { }
reports "cannot find symbol" for the Message class despite the Scala being there in Helper.scala:
package testscalaandjava { object Helper {}
case class Message() case class Alarm(txt: String)
}
The Helper object can be seen, but it seems that if the Scala type name does not match the Scala source file name, the references are not seen as valid by NB. The project builds fine in Maven.
Full, hopefully minimal, test case attached.
By the way, despite this slight issue, I wanted to say "Thank You" for your work on this. It is very difficult to produce IDE plugins of this quality and this is a great piece of work. Please let me know if you need volunteers to test fixes for this issue.