Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

'Missing script' error every start of IntelliJ #282

Open
kvenn opened this issue Aug 28, 2023 · 4 comments
Open

'Missing script' error every start of IntelliJ #282

kvenn opened this issue Aug 28, 2023 · 4 comments

Comments

@kvenn
Copy link

kvenn commented Aug 28, 2023

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

@krasa
Copy link
Owner

krasa commented Aug 28, 2023

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.

@kvenn
Copy link
Author

kvenn commented Aug 28, 2023

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.

krasa added a commit that referenced this issue Aug 28, 2023
@krasa
Copy link
Owner

krasa commented Aug 28, 2023

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

@kvenn
Copy link
Author

kvenn commented Aug 29, 2023

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants