log file keeps not being recognized, then won't open

This keeps happening randomly when I click a .log file to open:

When I click OK, the file doesn't open and the icon doesn't change like it does in another project. The only way I can open it is to change the extension to .txt, but that's annoying when the .log file is auto-generated during testing.

I already removed the project and deleted the .idea folder and .buildpath folder... not sure what else I'm supposed to do.

15 comments
Comment actions Permalink

Same here and no solution in sight :(

0
Comment actions Permalink

Also, there are no errors in the idea.log file.

0
Comment actions Permalink

If it happens randomly, did you notice any kind of pattern? Would it be possible to share a couple of file names for working and non-working examples?

0
Comment actions Permalink
Hi Vasiliy,
 
it’s pretty hard to see a pattern.
Here is an extract of the files in this folder.
It startet with first file (ion-command_consumers_00.log) and then the ion-command_consumers_00.log also became non-openable.
Sometimes also the corresponding *_01.log file don’t work. But not always.
 
I also attached a screenshot of the folder in PHPStorm.
 
data/logs/ion-command_consumers_00.log (NOT OPENABLE)
data/logs/ion-command_consumers_01.log
data/logs/ion-cron-service_00.log
data/logs/ion-event_consumers_00.log (NOT OPENABLE)
data/logs/ion-event_consumers_01.log
data/logs/ion-ms_microsite-time-machine_microsite-status_00.log
data/logs/ion-projection-cms_integration-ias_users_00.log
data/logs/ion-projection-common_resource-root_00.log
data/logs/ion-projection-common_roles-all_data_00.log

Here is also a screenshot of this folder in the PHPStorm project files view.

0
Comment actions Permalink

Is it entirely local storage, not a network mount of any kind? Also, would ls -la for affected files differ in any way?

And custom plugin, do you have any at Preferences | Plugins | Installed | Downloaded?

0
Comment actions Permalink

It is entirely local storage (though it is a shared folder via nfs).

ls -la does not differ at all.

The following plugins (downloaded) are installed (though disabling them and restarting the ide does not make any difference).

 

0
Comment actions Permalink

Did you have .log associated with some file type initially? Were you using Ideolog plugin?

Please check File | Settings | Editor | TextMate Bundles if "log" checkbox is enabled.

0
Comment actions Permalink

Hi,

the problem seems to be solved for now. At least it startet working again after I deactivated the plugins in the screenshot above.
Took a few restarts, but eventually the problem was gone (for now).

To your questions:
- .log has only and ever been associated with the text file type
- I did not use the Ideolog plugin
- log is enabled in the text mate bundles settings

0
Comment actions Permalink

Hi, unfortunately the error is back.

This time with another log-file called "ion-projection-ms_data-stores-combined_00.log".

I did not reactivate any plugins.

 

0
Comment actions Permalink

Hi, just found the "solution":

When I uncheck the TextMate Bundles "log" checkbox in the preferences it's working again.

So it seems that it just does not like the contents of some log files.

 

7
Comment actions Permalink

Unselecting log from textmate bundles fixed it for me too. Thanks

10
Comment actions Permalink

I haven't had the problem for a while.

0
Comment actions Permalink

Hello's answer (unselect log textmate bundle) worked for me too. However, the real solution would be to fix the bundle, since disabling it for log files will disable highlighting too

1
Comment actions Permalink

2 all: this was reported as https://youtrack.jetbrains.com/issue/IDEA-250600. It would be great if you could vote & comment for it.

0
Comment actions Permalink

I removed the plugins ".env file support" and I no longer face with this issue.

0

Please sign in to leave a comment.