neutralinojs / neutralinojs-cli

neu cli for Neutralinojs
https://neutralino.js.org/docs/cli/neu-cli
MIT License
91 stars 57 forks source link

"neu run" command no auto reloading app #234

Closed Eliezer516 closed 4 months ago

Eliezer516 commented 1 year ago

When starting the application with the neu run command, the application is deployed, but when making changes to the resources, the interface is not updated automatically. even right clicking and pressing reload the application does not refresh. In addition to the fact that in the terminal it does not reflect any error, on the contrary the messages show that everything is going well.

benpm commented 1 year ago

I'm experiencing this problem as well. I'm running latest version of Neutralino on Linux.

This is my output from neu run:

neu: INFO Starting process: neutralino-linux_x64  --load-dir-res --path=. --export-auth-info --neu-dev-extension --neu-dev-auto-reload
INFO 2023-01-01 17:44:00,760 Auth info was exported to ./.tmp/auth_info.json api/debug/debug.cpp:17 ben@unknown-host

(WebKitWebProcess:67845): GLib-CRITICAL **: 17:44:00.870: Failed to set scheduler settings: Operation not permitted

(WebKitWebProcess:67846): GLib-CRITICAL **: 17:44:00.874: Failed to set scheduler settings: Operation not permitted
parteekcoder commented 1 year ago

can you please assign me this issue

Eliezer516 commented 1 year ago

I think I found out the problem, my PC with Lubuntu 18.04.5 does not have glibc 2.28 and glibc 2.29

And apparently neutralinojs

datracka commented 1 year ago

@Eliezer516 would you mind to extend a bit your finding? Glibc has to be installed to enable neutralinoJS auto loading?

Eliezer516 commented 1 year ago

@Eliezer516 would you mind to extend a bit your finding? Glibc has to be installed to enable neutralinoJS auto loading?

It is not necessary to install it, in the latest versions of ubuntu or lubuntu it is already installed by default, but I have an old version of lubuntu, 18.04.5, and in this version it is not installed and cannot be installed

skushagra9 commented 6 months ago

I am interested to work on this issue

jerrygreen commented 6 months ago

Please use any framework supporting hot-reload, like Svelte, or any bundler, it should handle auto-reloading like no problem.

It's not Neutralino who should be responsible for hot-reloading.

Eliezer516 commented 4 months ago

In case you are interested, I solved the problem, you just have to add Neutralino.init() at the end of the main.js file and that's it, the application reloads when making any changes to the code