nteract: Possible regressions with 0.25
@captainsafia I’m seeing some issues with:
- closing/quitting the desktop app (had to
ps -ax | grep nteractand then kill) - switching of editors resulting in blank page
- individual windows will not close
I was checking if the Export -> PDF worked and ran into this.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (13 by maintainers)
OOOOOOOOOOK! Thanks folks for all your patience on this thread. Been a little busy with day job/writing/variety of other shenanigans.
@vivek1729 You followed the correct steps for producing a local production build. Having to increase the allocated heap size is not-problematic since the Electron build does consume quite a bit of memory.
I was able to reproduce the issue on the v0.25 release on macOS. I was not able to reproduce this issue on Windows.
I wasn’t able to reproduce these issues on Windows, but I was able to reproduce on macOS. It appears that the unhandled exception from the monaco-editor completely borks all the event handlers in the web page. Users are unable to close the app page in this case because we register event handlers on close inside the JS on the page (as opposed to Electron).
So, in summary, the root cause of the issues above appears to be unhandled exception with the undefined
getConfigurationAPI.Unfortunately for us, the issue appears to repro inconsistently. I was able to repro on macOS in v0.25 that was auto-updated. @willingc was able to reproduce in a fresh app on the DMG. And it appears that it repros on Linux as well.
As to why this happens, it appears that the
getConfigurationAPI was deprecated in 0.19 (ref). I was a bit suspicious about this so I cracked upon the build application and inspected theapp.jsfile bundled in the app.Sure enough, a lookup for
getConfigurationin that file yields nothing. ButgetRawOptionsis defined.So somehow, the incorrect version of monaco-editor is being bundled into some applications. Why this is happening? I’m not sure. The inconsistency in reproducibility we are seeing makes this difficult to track down. Next thing I’ll try is to see if the issue reproduces on a fresh build (yarn dist) on macOS.
@vivek1729 Any intuition on why some builds bundle the incorrect version of monaco-editor?
Auto-update is supported on all operating systems, which is what makes this more puzzling. In addition to the fact that @willingc reproduced this on a fresh
.appfile from a DMG on macOS.My thinking about how to approach this at this point:
If the October release contains the same issue even after validating that the right bits are included as part of #3, then it very well maybe something about the target machine and not the bundle.
Yep. For what you are proposing (same as step #1 above), we’ll need to do
yarn clean && yarn && yarn build:all:ci && yarn dist.The RELEASING.md documentation in the root of the repo contains docs on this. Should just need to run
yarn distthen find the executable inapplication/desktop/dist.