neutralinojs / neutralinojs-cli

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

`--neu-dev-auto-reload` does not work #232

Closed BeyondMagic closed 7 months ago

BeyondMagic commented 2 years ago

Describe the bug The development automatic reload from Neutralino does not reload automatically at all. While changes are made in its resources folder, and reloading it manually show those changes. Neutralino cannot catch them by itself even after started properly, with window.Neutralino.init() on the code and the defined launch global variables, window.NL_TOKEN and window.NL_PORT.

To Reproduce Steps to reproduce the behavior:

  1. Execute ./bin/neutralino-linux_x64 --load-dir-res --path=. --export-auth-info --neu-dev-extension --neu-dev-auto-reload, or neu run from the root folder of the project,
  2. Wait the window to load with the correct resources from the project.
  3. Make any changes on the resources.
  4. No automatic reload.

Expected behavior It should automatically reload.

Screenshots/Screen recordings image

Specifications

Additional context It worked a few months ago, after installing in a new machine, it stopped working.

BeyondMagic commented 2 years ago

I believe the event, neuDev_reloadApp, in which --neu-dev-auto-reload is listening, is not receiving anything at all, and because of that, it can't reload the page.

MrSimsure commented 2 years ago

I can confirm that nothing related to the live reload seems to work, the command 'neu run', the underlying argument '--neu-dev-auto-reload', nor the front end variant '--frontend-lib-dev'. I tried different combination of older version of neu js, neu cli and neu client, but it doesn't seems to never receive the updates. Has this feature ever worked? @BeyondMagic can you recall in which version it used to work?

BeyondMagic commented 2 years ago

Has this feature ever worked?

It has, a long time ago.

can you recall in which version it used to work?

I still have logs, tried, but it doesn't work.

    "binaryVersion": "4.6.0",
    "clientVersion": "3.5.0"

I am using -frontend-lib-dev with live-server now.

shalithasuranga commented 7 months ago

Please check the latest version which doesn't have issues either with the inbuilt auto-reload feature or fronend library hot module replacement.

Thanks for reporting and discussing this issue :tada: