Syntax highlighting problems in Scala Eclipse - eclipse

I'm using the Obsidian theme from Eclipse Color Themes with the Scala Eclipse IDE, and everything looks great except for some values, which show up as a horrible dark blue that's extremely hard to read. It seems to happen for certain vals and not others, but I haven't been able to figure out exactly when it happens, so I don't even know what to look for in my Eclipse setting.
Here's a screenshot from an assignment I'm working on that shows some examples of the problem:
That's from a Scala JUnit test suite (obviously), where it seems to occur more often than in the main program. I've also found that it rarely occurs in a Scala worksheet, even when the worksheet is an exact copy of the main file. There are instances in the main file of the dark blue highlighting, but the same instance in the worksheet has the correct (or at least, the expected) highlighting.
Any ideas? I'm guessing it might just be some incompatibility with the theme and the Scala IDE, but I really dislike the default ultra-bright theme, so I'm hoping to be able to use a darker theme without this annoying problem.

I could set those in Preferences > Scala > Syntax Coloring > Scala (semantic)
lazy local val
lazy template val
local val
local var
template val
template var
I set all of those to the same color

Related

IntelliJ does Not Display Errors in the Project Window

I am using the Eclipse compiler and have enabled 'Build Project Automatically'. I am not using the power saver mode as well.
This should be a trivial thing to solve for IDEA, but for some reason, they decided that they shouldn't. Suppose I have a class A that uses a field from class B. Now if I make a syntax error in B, it highlights that class in the project windows. But if I delete the field that is being used in class A, no highlighting is done in class A, until I actually open it.
Eclipse does it so well. Am I missing something or is this feature really not present in IntelliJ?

Why does Eclipse show incomplete Scala classes in the Outline view?

Context: Scala project with imported library such as akka-http.
IDE: Eclipse (mars) + Scala-IDE 4.3
OS: Windows
I've configured sbt to download source code related to dependent projects, so I can view/inspect libraries more fully.
When I bring up akka.http.scaladsl.server.Directive I see only the first few members of that class in the Outline view. I can see additional members in the code that are not displayed in the Outline.
Why am I not seeing the full outline?
Short Answer
Right click on the project to open Properties -> Resource -> Text file encoding, and set to UTF-8.
This can also be set for the workspace properties; it's not clear to me if changing the workspace properties auto-sets existing projects, I'm guess it doesn't.
Why?
Admittedly a guess, but...
The problem seems to be associated with the combination of Scala IDE 4.3 (for Eclipse), Windows, and assumptions about source files and text encodings:
The Eclipse Scala-IDE 4.3 has a new Outline view, which seems to render a better representation of Scala classes by deferring to source. And it fails to do that properly when it doesn't grok the text encoding.
In Eclipse the default text file encoding is "Inherited from container" for the workspace. I presume existing projects inherit that setting from the workspace.
The Windows text file encoding (the container mentioned previously) is ISO-8859-1, or possibly something else... but not UTF-8.
In my problem Outline view, it turns out that the last member displayed for a class contains a unicode '⇒' (syntactically equivalent to '=>' in Scala).
silent boom

Eclipse Class Editor Formatting

Eclipse's class editor has no formatting or collapsable fields / methods. How can I make the class editor have the same text formatting as the java editor? Or at least make it more readable and user friendly, such as the one in Netbeans.
Opening a class in Netbeans:
Opening a class in ECLIPSE:
I would like to make classes more readable in Eclipse, is there any way to do that? I have tried attaching a source / javadocs before with no luck. I am hoping there is a simpler way
You want to see a source like representation of a .class file. Although not exactly what you are looking for JD-Eclipse can be used for that purpose. Addmitedly the scope is broader, because it is a full blown decompiler, that will actually show you the code, but should work for you.
When installed it will by default open .class files and present the code instead of default view that only presents somewhat raw results of parsing bytecode.
Another option is Bytecode Outline that is not a decompiler, it only deassemples bytecodes in the editor, but can make debugging a bit easier, because it seems to handle line numbers in sync with the debugger, unlike JD-Eclipse, which just outputs line number comments.

Why is IntelliJ highlighting errors in one project, but not another?

I'm using IntelliJ 13 and the Scala plugin. In one project if I make an obvious type error I get a visual indication, like this:
But I just started a new project and a similar thing is not highlighted, even after I compile.
I'm giving a presentation on some Scala code and I'd like it if the type errors highlighted like in the first one, but I have no idea where the setting is.
One reason could be that the level of highlighting is set to a lower setting. Check your lower right corner for a button which adjusts this setting with a slider. It looks like (at least to me) a policeman face :)
Another thing is that you might not have declared what additional languages you're using besides the primary one. You can configure this in the project settings.
Also if you are using a tool to build a project (like Maven for example) try rebuilding or reimporting your project.
edit: One last thing. Make sure IDEA isn'currently reindexing or running some background tasks, this really messes up code correction.

IntelliJ IDEA Scala plugin doesn't find errors

I've just tried IntelliJ IDEA 12 with the Scala plugin, but it doesn't find and highlight errors in my code. I can for example write arbitrary code in a method and it looks like everything is fine. Is IDEA not able to do this? Or do I have to configure something special?
IDEA's Scala plug-in is not equivalent to the compiler in type-checking your source code, but it does pretty well. The one thing you'll want to do (unless, perhaps, your hardware is not fairly current and high-performance) is turn on "Type-Aware Highlighting."
If you look in the lower-right-hand corner of the IDEA window (when you're editing a project with Scala enabled) you'll see one of two icons, both of which take the form of a square-bracketed bit of text. That text is either blank on a yellow background or the letter T on a green background. Clicking it toggles between those two states. When the green T is displayed, Type-Aware highlighting is on.
Give that a try.
Simply updating the plugin version could fix the problem. Old or install/initial plugins may not contain relevant support.
Determining Scala plugin version in Settings: