dragos-vscode-scala
dragos-vscode-scala copied to clipboard
Unresolved imports for local packages
I get a lot of errors like:
[Scala] object xxx is not a member of package xx.xxx.xxx
If I open the required file once, then the import can be resolved (as long as VSCode is open).
Imports from inside the same package as well as global packages (like org.slf4j.LoggerFactory) are always resolved.
I am encountering the same issue... as well as a slight variation which is import of classes defined in java files that do not resolve even after opening the corresponding java file.
This is probably an issue with Ensime and the presentation compiler. I suggest checking the Ensime issue tracker