-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Restart and other hotkey in devui #37875
Comments
/cc @cescoffier (devui), @phillip-kruger (devui) |
Clicking on the logo in the top left should initialize a hot reload. But I'll also add the keys as in the cli and the old Dev UI |
It would be great to have a way to disable livereload in Dev UI. Toggling livereload per cli does not always seem to work, e.g. if you launch quarkus together with other processes with mono repo tooling |
@stuartwdouglas ^^^ w.d.y.t ? |
I like the hotkey in dev ui idea. There is also supposed to be code that allows you to use the hotkeys when the app is not actively asking for input: https://github.com/stuartwdouglas/quarkus/blob/aeb8c67c117f3308dd8add7d2faf35dbe5520ff0/core/devmode-spi/src/main/java/io/quarkus/dev/console/QuarkusConsole.java#L213 . It is not really possible to write tests for it though so it might have broken. |
@stuartwdouglas what do you think of the ability to disable hot-reload ? |
You mean don't restart if you are just visiting the dev ui instead of your app? I actually like the idea, it is kinda annoying that you can't visit dev ui in the middle of making changes without forcing a reload. |
No I mean this: "Toggling livereload per cli does not always seem to work, e.g. if you launch quarkus together with other processes with mono repo tooling" |
I'm not sure what you mean? |
Do you mean disabling the console input? You can already do that via config. |
Let me try to clarify my comment: We have a mono repo with many services and to ease development we allow to start multiple quarkus apps together with their frontends with a single command. Maybe it is due to our tooling, but in those cases disabling hot reload via cli does not work reliably for us. Thus having a another way to disable live reload e.g. via Dev UI or a property would be a welcome feature for us. |
What about |
If I understand correctly using We would like to have the ability to toggle livereload e.g. via Dev UI or a property, because sometimes toggling livereload via cli does not seem to work in our case. |
If you click on the logo (top left) in Dev UI, it should trigger hot reload |
That is also not what we need, i suppose there is still a misunderstanding 😄 . We would like the ability to toggle hot reload on or off e.g. via the Dev UI or a property. I think right now it is only possible to toggle hot reload on or off via cli. |
Ok, I see. I think if it's in cli we should be able to add this to Dev UI. I'll have a look a.s.a.p |
Description
If you write a cli app and it uses standard input I can’t use devmode hot keys.
And there are no natural ways for restart to happen so hotreload is not really available.
That made me realize devui doesn’t seem
To have a way to trigger hotreload.
I was wondering if we couldn’t make it so that when focus is in the logviewer that we hooked in the same hot keys as available in the terminal ?
allowing to trigger restart and other operations from Devui.
Implementation ideas
No response
The text was updated successfully, but these errors were encountered: