Intellij IDEA does not detect file changes, so it does not start until it starts

I have the following class:

public class MyClass { public static void main(String[] args) { System.out.println("abc"); } } 

When I run the main method, "abc" prints as expected.

Then, after changing β€œabc” from β€œdef”, I got β€œabc” instead of β€œdef”. I tried to manually launch the "Create" button, but I got the same wrong result. In addition, on the tab "Event Log" every time I try to run this method, the message "All files are up to date" is logged, although I changed it to print.

If I right-click the file and select "Compile MyClass.java", everything will work as expected.

I have a problem with my workstation (xubuntu 14.04) after I changed my hard drive to SSD (if that matters). Other colleagues with SSD and without them do not have this problem, so I think that this may be the wrong IDEA configuration.

+6
source share
3 answers

you can try to invalidate the cache and restart intellij, in many cases this will help.

File -> Invalid Cache / Reboot

+2
source

I solved this problem by uninstalling the Intellij IDEA 14.0.3 Community Edition installation and its configuration files from ~ / .IdeaIC14, installing the older version (13.1.6), and then reinstalling 14.0.3 and using the configuration files from the older installation.

So, I came to the conclusion that this could be an IDEA problem if you perform a new installation of 14.0.3.

Can anyone confirm this problem?

+1
source

Try removing and rebuilding the artifact in your deployment configurations. It does the trick for me.

0
source

Source: https://habr.com/ru/post/982697/


All Articles