Sublime Forum

JavaC compilation errors popups

#1

Hello,

Since september I use Sublime Text 3 to program in Java. On my previous computer, when there were errors during building with JavaC into Sublime Text, red pop-ups appeared just below the location of the wrong code.

But since I changed of computer, when I build programs with JavaC and there are errors, the red popup doen’t appear anymore.

Can someone help me to get them back ?

0 Likes

#2

One thing to check is that the show_errors_inline setting is turned on:

// Shows build errors just under the line on which they occur.
"show_errors_inline": true,

That setting is turned on by default though, so for that to be your issue you would have had to turn the setting off for some reason first.

Something else to check might be whatever plugins you have installed for working with Java; they may also have their own setting to turn this on and off.

0 Likes

#3

The setting is turned on, so not the source of the issue…

0 Likes

#4

I would check the settings of whatever java plugins for Sublime you might be using to see if one computer has them customized in a way that the other one doesn’t.

0 Likes

#5

I just realised that I was using Linux (Ubuntu) on my previous computer and that now I’m using Windows, maybe this feature is only available on Linux ? Sublime Text was completely stock, without any package installed on Linux.

0 Likes

#6

Phantoms work the same across Windows/Mac/Linux so I don’t think that’s the issue.

Phantoms work by displaying the error messages captured from the build output during a build, though. I haven’t done a lot of Java in Sublime since I started using it, but I have a recollection that it can have a problem pulling the correct file and location out of java error messages sometimes because of the way the java compiler reports them; it may have a problem with the class being in a package, for example.

I can’t remember for sure though, and I can’t seem to find it at the moment.

0 Likes

#7

Are you sure you’re using Sublime Text 3 and with the last build (3124)?

0 Likes