You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I do Theia development from the sources and run my setup in watch mode, my electron application does not pick up the code changes I made in the electron main. After restarting the electron app mode in debug mode, my changes are not picked up. I noticed it in a downstream project when I updated to Theia 1.39.0, but I can reproduce it with the Theia source code. The modifications do not get into the webpacked code. What am I doing wrong? Is this a known issue or expected behavior? Thank you!
It's the same for the backend code, so the problem is not limited to the electron-main modules. The watch mode works fine for the frontend.
The text was updated successfully, but these errors were encountered:
kittaakos
changed the title
theia build --watch does not work for with the electron example app when the backend is webpackedtheia build --watch does not work with the electron example app when the backend is webpacked
Aug 1, 2023
kittaakos
pushed a commit
to arduino/arduino-ide
that referenced
this issue
Aug 2, 2023
@msujew and @vince-fugnitto, could you please help with this? Is this something that should work, and I need to correct my dev steps, or it still needs to be supported by Theia? Thank you!
Bug Description:
When I do Theia development from the sources and run my setup in watch mode, my electron application does not pick up the code changes I made in the electron main. After restarting the electron app mode in debug mode, my changes are not picked up. I noticed it in a downstream project when I updated to Theia 1.39.0, but I can reproduce it with the Theia source code. The modifications do not get into the webpacked code. What am I doing wrong? Is this a known issue or expected behavior? Thank you!
Steps to Reproduce:
Check out Theia cd0aec7
Clean the
lib
folders (I do not know if necessary) and build Theia✨ Done in 138.39s.
Verify the
lib
folders:grep -rl "Hello Theia" ./packages/core/lib
grep -rl "Hello Theia" ./examples/electron/lib/backend
Open a new shell and watch
@theia/core
:Open another shell and watch the electron example app:
Make your code changes. Append a console log to
ElectronMainApplication#start
:Both shell running the watch mode has detected the file change. Verify them!
grep -rl "Hello Theia" ./packages/core/lib ./packages/core/lib/electron-main/electron-main-application.js
grep -rl "Hello Theia" ./examples/electron/lib/backend
The backend changes are not picked up.
Stop and restart the two watch processes (in two separate shells). Verify the output again!
grep -rl "Hello Theia" ./packages/core/lib ./packages/core/lib/electron-main/electron-main-application.js
grep -rl "Hello Theia" ./examples/electron/lib/backend ./examples/electron/lib/backend/electron-main.js.map ./examples/electron/lib/backend/electron-main.js
Now it works.
Additional Information
Update:
It's the same for the backend code, so the problem is not limited to the electron-main modules. The watch mode works fine for the frontend.
The text was updated successfully, but these errors were encountered: