neutralinojs-cli icon indicating copy to clipboard operation
neutralinojs-cli copied to clipboard

"neu run" command no auto reloading app

Open Eliezer516 opened this issue 2 years ago • 7 comments

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.

Eliezer516 avatar Dec 03 '22 15:12 Eliezer516

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

benpm avatar Jan 02 '23 00:01 benpm

can you please assign me this issue

parteekcoder avatar Jan 27 '23 09:01 parteekcoder

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

Eliezer516 avatar Jan 28 '23 17:01 Eliezer516

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

datracka avatar Jan 31 '23 11:01 datracka

@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

Eliezer516 avatar Jan 31 '23 12:01 Eliezer516

I am interested to work on this issue

skushagra9 avatar Feb 22 '24 18:02 skushagra9

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.

jerrygreen avatar Feb 28 '24 12:02 jerrygreen

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

Eliezer516 avatar Apr 22 '24 01:04 Eliezer516