Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When importing a scala type name into Java type name must match filename #165

Open
kittylyst opened this issue Jul 5, 2016 · 0 comments

Comments

@kittylyst
Copy link

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.

tscala-tjava.tar.gz

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant