GrepConsole icon indicating copy to clipboard operation
GrepConsole copied to clipboard

'Missing script' error every start of IntelliJ

Open kvenn opened this issue 1 year ago • 4 comments

Describe the bug I got some help setting up a custom extension with LivePlugin here.

Now, every time I restart IntelliJ I get the error toast in the screenshot below.

missing script 'shorten'

Note: I run my app, the filter doesn't work initially. Then 1 second later it starts working (so the problem solves itself?)

To Reproduce Steps to reproduce the behavior:

  1. Use LivePlugin with custom extension as the action for a filter (as show in the linked thread above)
  2. Restart IntelliJ
  3. You'll see "shorten registered"
  4. Then right after, you'll see "missing script 'shorten'"

Expected behavior There is no error

Screenshots image

Environment : GrepConsole: 12.20.1-IJ2021.1

kvenn avatar Aug 28 '23 00:08 kvenn

LivePlugin might be registered too late, IntelliJ can make various consoles in the background that use this plugin. I will move the validation...

Note: I run my app, the filter doesn't work initially. Then 1 second later it starts working (so the problem solves itself?)

strange.

krasa avatar Aug 28 '23 06:08 krasa

Thank you! Yeah I believe it's actually working, just showing the error toast too early. I can mark it as "don't show again", but I wouldn't want to hide real errors.

The 1 second seems variable. I just restarted again and it worked from the beginning (even though the error showed). I did it again, and it looks like it 1 seconds worth of log lines to start shortening. But I'm very okay with this! Was mostly flagging the error toast.

kvenn avatar Aug 28 '23 14:08 kvenn

Thanks! Things were seriously broken, the filter was skipped while indexing :) If it does not help, then the output might not be split into lines, you can check by doing this. image Nothing should be printed.

Also, pins should now work, it was hooked on an old API that Flutter does not use.

You can update

krasa avatar Aug 28 '23 19:08 krasa

I'm still seeing the "missing script" error, but I can just mark it as "don't show again" since the action is definitely still working.

kvenn avatar Aug 29 '23 15:08 kvenn