krasa / GrepConsole

IntelliJ plugin - https://plugins.jetbrains.com/plugin/7125
Apache License 2.0
437 stars 57 forks source link

How to permanently close a grep console #125

Closed steinitz closed 5 years ago

steinitz commented 5 years ago

Hi Vojtěch,

I created a couple of grep consoles with your excellent plugin. They are part of my React-Native run configuration.

I'm not clear on how to permanently close them. When I launch WebStorm they reappear. I'm sure it's something simple, but I can't work it out after 5 minutes of trying and looking around :)

krasa commented 5 years ago

There is Pin button, also just closing them manually by middle click or context menu should work.

krasa commented 5 years ago

image

steinitz commented 5 years ago

Thanks for showing me the pin. However I still have too many grep consoles. screen shot 2018-09-21 at 3 07 09pm I unpin them and close them over and over, but they return.

I hope this report is useful.

ps. one thing I really like about your consoles is they don't show the useless urls on the right-hand side which only waste space and cause buggy line wrapping. Please don't 'fix' that :)

krasa commented 5 years ago

That's strange, perhaps I should add some logging...

Also when you press the Pin icon, does it get unselected? Because that means that it really is unpinned... image

What do you mean by 'useless urls'?

steinitz commented 5 years ago

Thanks for following up. Yes the pin icons get unselected. Then I close the grep tabs, but they reappear on next run (or debug) of the run configuration.

I've taken a screenshot of the useless urls. I've asked JetBrains to get rid of them but they declined. Having them gone was an unexpected delight from using your plugin. In fact, now I have a regex grep, '.+', which shows all messages but omits the urls.

useless urls

Note the 'useless urls' in blue, on the right.

krasa commented 5 years ago

I've never seen those urls, amazing.

Please try this:

steinitz commented 5 years ago

Thanks for your help. Those urls are annoying. I'm surprised you've never seen them. Hmmm. In any case, GrepConsole saves the day.

I installed the new version. I unpinned and closed the six grep consoles. They didn't re-appear on run, but all six re-appeared when I relaunched WebStorm then ran.

I apologize for the size of the attached log fragment. I tried to use GrepConsole to pare it down but I wasn't able to specify just the right regex in sixty seconds :)

GrepConsole.log.zip

I hope it's useful.

krasa commented 5 years ago

Well, I do not do React or use Webstorm...

There is no unpinning logged... But anyways the log seems rather strange. I had to try it myself, but my React Native looks way different and does not even support grepping.... image

I have made some changes, maybe it will help, maybe not. GrepConsole.zip

krasa commented 5 years ago

Well, this looks similar, only it's Node, not React. image

krasa commented 5 years ago

This should be even better GrepConsole.zip. Also try to get rid of all the old pins, even by deleting them via OS from project/.idea/GrepConsole.xml (then opening the project).

steinitz commented 5 years ago

Your latest version works better. Thank you. Let me test it for a few days and report back.

I did notice one minor problem unrelated to this discussion. I'll show you here but I'm happy to open a new issues if you prefer.

In the GrepConsole settings one of the actions is undefined. Perhaps that's intentional.

screen shot 2018-09-23 at 11 11 03am

I hope this report is useful.

krasa commented 5 years ago

It is still not right, I am fixing it...

That default line was meant as an example, maybe bad idea, I changed it.

krasa commented 5 years ago

here: GrepConsole.zip

krasa commented 5 years ago

Seems fixed to me, let me know if it's not. Thanks.