Closed markschlosseratbentley closed 11 months ago
@DStradley and I tested this some more and found that with the latest code, running with "run start:electron" does not let you see source code in the chrome debugger either. We tracked it down to PR #5870 (The PR that got merged before it, #5880, seems to work fine and doesn't seem to exhibit all of these various problems.)
gah, it should probably be
sourcemap: !process.env.VITE_CI, // append to the resulting output file if not running in CI.
!
not !!
Hmmm, that seems to partly fix it.
When using "npm run start:electron" you can make a change and rebuild with "rush build --to display-test-app" and re-run it and see that changes you made take effect, but in the browser debugger you can only see the .js files for most of the code rather than the .ts files.
When using just "npm run start" you can see the .ts files, but you don't get any new changes that you make unless you do a "rush update --full" before you build.
Well, I take some of that back. The first time I tried modifying code and then using "npm run start" it used & showed the new code in the browser after doing a "rush update --full" and then a build. But now it's stuck and any more changes I make won't get used or shown in the browser debugger, even if a do a "rush update --full" followed by a "rush clean" followed by a "rush build --to display-test-app".
I'm reopening this until we have a better handle on the situation and compare with previous behavior:
start:electron
debug filesHaving pulled in the most recent changes from master:
rush install
rush clean
set IMJS_NO_DEV_TOOLS=1
rush build --to display-test-app
npm run start
Observe: Electron window opens, displays infinite spinner.
Press ctrl-R any number of times to reload, has no visible effect.
Press Ctrl-Shift-I to open dev tools. Press ctrl-R to reload. App finally loads.
Restarting, reinstalling, recleaning, and rebuilding had no effect on this behavior.
See comments on #5953 for other observations.
FWIW, on Mac OS, I see the same behavior pre/post vite on a new clone of core with most recent changes:
rush build --to display-test-app
I could not reproduce Paul's issue.
Which platform/OS is in use for those encountering issues? Using any other ENV flags?
FWIW, on Mac OS, I see the same behavior pre/post vite on a new clone of core with most recent changes:
- .ts files available to debug in chrome
- changes are picked up immediately (HMR) if files within display test app are modified
- changes to files in dependencies are not picked up without
rush build --to display-test-app
I could not reproduce Paul's issue.
Which platform/OS is in use for those encountering issues? Using any other ENV flags?
I was testing on Electron on Windows 11. Not using any non-standard ENV flags AFAIK.
I could not reproduce Paul's issue. Which platform/OS is in use for those encountering issues? Using any other ENV flags?
Environment vars: IMJS_DISABLE_DIAGNOSTICS=1 IMJS_NO_DEV_TOOLS=1 IMJS_NO_MAXIMIZE_WINDOW=1 IMJS_WINDOW_SIZE=1920,1200
I continue to observe the problem. Testing on Windows 11. I can test on Ubuntu 22.04 if you want.
@markschlosseratbentley are you or anyone else observing the same problem I describe (infinite spinner unless dev tools are open)?
I'm less convinced it's OS-specific. @Ben-Pusey-Bentley I assume you have not reproduced this spinner issue?
I'm less convinced it's OS-specific. @Ben-Pusey-Bentley I assume you have not reproduced this spinner issue?
Not yet, but I should try with the rest of the environment variables that Paul has given us.
I could not reproduce Paul's issue. Which platform/OS is in use for those encountering issues? Using any other ENV flags?
Environment vars: IMJS_DISABLE_DIAGNOSTICS=1 IMJS_NO_DEV_TOOLS=1 IMJS_NO_MAXIMIZE_WINDOW=1 IMJS_WINDOW_SIZE=1920,1200
I continue to observe the problem. Testing on Windows 11. I can test on Ubuntu 22.04 if you want.
@markschlosseratbentley are you or anyone else observing the same problem I describe (infinite spinner unless dev tools are open)?
I just tried to reproduce your infinite spinner observation using your environment variables, using both npm run start
and npm run start:electron
. I do not observe that particular issue. I can open iModels, etc.
I could not reproduce Paul's issue. Which platform/OS is in use for those encountering issues? Using any other ENV flags?
Environment vars: IMJS_DISABLE_DIAGNOSTICS=1 IMJS_NO_DEV_TOOLS=1 IMJS_NO_MAXIMIZE_WINDOW=1 IMJS_WINDOW_SIZE=1920,1200 I continue to observe the problem. Testing on Windows 11. I can test on Ubuntu 22.04 if you want. @markschlosseratbentley are you or anyone else observing the same problem I describe (infinite spinner unless dev tools are open)?
I just tried to reproduce your infinite spinner observation using your environment variables, using both
npm run start
andnpm run start:electron
. I do not observe that particular issue. I can open iModels, etc.
I am also still unable to reproduce this issue, even with the additional environment variables.
I am also still unable to reproduce this issue, even with the additional environment variables.
Huh, neither can I, today. I don't know what would have changed since yesterday. Thanks for testing.
Describe the bug If you run display-test-app using
npm run start
, it will not pick up local changes to the frontend code when you rebuild and run it again.To Reproduce
rush install
rush build --to display-test-app
cd test-apps/display-test-app
thennpm run start
rush build --to display-test-app
npm run start
npm run start:electron
Expected behavior
npm run start
should provide .ts files in the debugger for frontend files; it should also pick up local changes to frontend source.Desktop (please complete the applicable information):
Additional context
rush update --full
then rebuilding makesnpm run start
use the latest changes.