-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDE error on mirrord errors #26
Comments
@t4lz Aviram thinks we fixed this, does it still reproduce? |
Following the reproduction instructions I still get an IDE error:
But only in the first run after starting IntelliJ. The details of how this error happen might be a bit different than what's described in the issue, I did not investigate further, but running with the config from the issue after starting the IDE does still lead to an IDE error. |
I faced this same thing earlier and found it a bit annoying so fixed it somewhere, by extending the Due to the limitation of |
Bug Description
When the extension runs the CLI and the CLI fails, we want to show a notification with the error, but if there is also other output in stderr before the error, it throws an exception instead, the user sees an IDE error, and there is a stacktrace.
This happens when running with a deployment target, and some error in the config (e.g. non existing agent namespace).
Suggestion for solution (without having looked into it too much):
Iterate over the error stream and create a notification from each line that matches the pattern (starts with
Error:
, then a valid json), instead of trying to make a notification out of the whole error stream.Steps to Reproduce
Run with this config:
Because we use a deploy target, the error stream starts with this message:
and the extension gives up on creating a notification and throws an error.
Your operating system and version
macOS 13.4
The text was updated successfully, but these errors were encountered: