Here is the code:
public class TryStuffOutHere { public static void main(String[] args) { System.out.println("Set the customer name: "); } }
When I type this, IntelliJ IDEA stops highlighting the line "Set client name:" in all one color, as is done for other string literals, and places a red square line between words and mappings. "The expression of an expression is not an assignment or challenge." But if I changed the line to:
System.out.print("Set the customer name: ");
The line again looks like a normal line assignment (all one color, no control).
Even declaring a single line and issuing a variable still causes a problem.
I have added three images illustrating what I'm talking about. Does anyone have any idea what is going on? Apparently, I have not yet been allowed to post images. If you need / need screenshots, let me know. I would be happy to send them to you.
UPDATE (April 28, 2013): Well, now I have enough points to add screenshots. So here they are:
Image 1

Image 2

Image 3

Image 4

I also found that the 10-12 second delay after canceling the caches and restarting the IDE is due to the fact that the IDE is still "updating indexes". After that, the problem immediately appears ... sometimes. A further complication of this is that the cache invalidation and reloading worked twice until I left and opened the IDE again, after which it reappears.
java string intellij-idea
nihilon
source share