How can I let IntelliJ always show the actual file as it is on disk?

Hi,

There is a problem that is really affecting my IntelliJ user experience a lot in a bad way. I use IntelliJ with Git, and also do a lot of external Git commands in the terminal that can't be done in IntelliJ. IntelliJ often does not show the files as they are on disk. It does not usually automatically reload the file from disk.

Many text editors, like for example Geany, immediatly discover a file on disk changed and display the updated version (or ask to).

In IntelliJ, the "Reload from disk" feature is not working (as I once posted in a post that got ignored), and often I only discover that I was working on a file that is different on disk when it is too late. The "Reload from disk" feature does not reload the file from disk, it does nothing at all, the file on disk is different, can be checked with "less", "cat", etc..., but when doing "Reload from disk" in IntelliJ it keeps displaying the old version afterwards.

Also strange is that it sometimes immediatly reloads files correctly and automatically as soon as then changed on disk, and sometimes not. And I find no logical explanation when it does what behaviour.

This is really a problem.

What I want is: when a file on disk changed, IntelliJ must immediatly ask me to reload the disk version (or do it automatically if there were no edits). Exactly like most linux graphical text editors, such as Geany, do. These editors are able to do this without any performance penalty whatsoever.
What I do *not* want is IntelliJ to synchronize and reparse everything.

How can I get this? Is there a plugin that can do it?

It's as simple as loading contents from disk and displaying them. Any possibility at all?

I'm using IntelliJ 9.0.4, and on a git repository.

6 comments
Comment actions Permalink

Hello Aardwolf,

IntelliJ IDEA 10 includes a new system for receiving file system change notifications
under Linux. Please try upgrading.

There is a problem that is really affecting my IntelliJ user
experience a lot in a bad way. I use IntelliJ with Git, and also do a
lot of external Git commands in the terminal that can't be done in
IntelliJ. IntelliJ often does not show the files as they are on disk.
It does not usually automatically reload the file from disk.

Many text editors, like for example Geany, immediatly discover a file
on disk changed and display the updated version (or ask to).

In IntelliJ, the "Reload from disk" feature is not working (as I once
posted in a post that got ignored), and often I only discover that I
was working on a file that is different on disk when it is too late.
The "Reload from disk" feature does not reload the file from disk, it
does nothing at all, the file on disk is different, can be checked
with "less", "cat", etc..., but when doing "Reload from disk" in
IntelliJ it keeps displaying the old version afterwards.

This is really a problem.

What I want is: when a file on disk changed, IntelliJ must immediatly
ask me to reload the disk version (or do it automatically if there
were no edits). Exactly like most linux graphical text editors, such
as Geany, do. These editors are able to do this without any
performance penalty whatsoever.

What I do not want is IntelliJ to synchronize and reparse
everything.

How can I get this? Is there a plugin that can do it?

It's as simple as loading contents from disk and displaying them. Any
possibility at all?

I'm using IntelliJ 9.0.4, and on a git repository.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hi Aardwolf,
it seems that this works in 9.x versions, @see one of the comments in this post:

http://blogs.jetbrains.com/idea/2010/04/native-file-system-watcher-for-linux/

hth,
cheers

0
Comment actions Permalink

I am using IntelliJ on OSX. The "Roload from disk" option is grayed out. I know the file is changing, becuase I am writing it with a python script, but I cannot get it to reload. If I wait a while (like minutes), it does finally update, but that is not very effiient.

What is going on??

How do I resolve it..

0
Comment actions Permalink

My trick to let it reload a file now is: type space, backspace, then ctrl+s. Then it 'discovers' the file was changed and will show a dialog 'the file on disk was changed, reload from disk or save from memory', and press 'reload from disk' of course then.

Works on Linux at least.

0
Comment actions Permalink

On Wed, 22 Jun 2011 18:30:39 MSD, Ed Henderson
<no_reply@jetbrains.com> wrote, quoted or indirectly quoted someone
who said :

>I am using IntelliJ on OSX. The "Roload from disk" option is grayed out. I know the file is changing, becuase I am writing it with a python script, but I cannot get it to reload. If I wait a while (like minutes), it does finally update, but that is not very effiient.

You could try the synchronise command.
--
Roedy Green Canadian Mind Products
http://mindprod.com
One of the great annoyances in programming derives from the irregularity
of English spelling especially when you have international teams. 
I want to find a method or variable, but I don't know precisely
how its is spelled or worded. English is only approximately phonetic. 
Letters are randomly doubled.  The dictionary often lists variant spellings.
British, Canadian and American spellings differ.I would like to see an
experiment where variable names were spelled in a simplified English, where
there were no double letters.I also think you could add a number of rules
about composing variable names so that a variable name for something would
be highly predictable. You would also need automated enforcement of the
rules as well as possible.

0
Comment actions Permalink

I did try that, did not seem to work.. I'll try it again just to be sure.

0

Please sign in to leave a comment.