-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Question: How can I trigger a "reload" from within my plugin ? #154
Comments
It's not very clear what you mean by "stopping to work" and it's hard to guess without knowing what the plugin does. In general, it's not the best idea to leave things broken. You might be able to see if something went wrong in IDE logs. It's also possible that some of IJ APIs swallow exceptions, so you can wrap some of your code with try/catch to log exceptions yourself. To reload plugin you try using these functions:
|
thanks! Regarding stopping to work: It's not that easy to debug (Plus I've written that in PHPStorm, so no syntax support and I don't know kotlin, a wonder I got that far) |
Thank you for sharing the link to the project. It looks like an interesting idea! As a random guess If I understand it correctly, ultimately the problem is that
|
Btw, there is an option to create a "proper" plugin using |
I have a problem with my plugin stopping to work for some reason, it might be LivePlugin related or something else I can't figure out.
However, a click on "reload" solves it.
I would like the plugin to reload itself when it detects the problem, is that possible ?
The text was updated successfully, but these errors were encountered: