-
Notifications
You must be signed in to change notification settings - Fork 322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDE logging not working when opening cloud project #6899
Comments
I will be doing some more investigation into this as it is blocking my current task. |
this is probably the cause: enso/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/components/ide.tsx Lines 106 to 111 in cfb2f29
it was introduced to work around issues with the cloud frontend, but i can see if they're no longer an issue |
@somebody1234 @sylwiabr can we prioritize this task, as it is blocking @MichaelMauderer? |
took a look at it earlier but couldn't get the |
To get some logs, you will also need to enable them somewhere in the code. For example here
You can replace
with
|
@somebody1234 It appears that something is deeply broken here: just entering |
I'm somewhat stuck debugging this further, as it seems when going into cloud mode, the IDE no longer loads local scripts, but an index file from the CDN, which I cannot edit/change. Maybe the |
while it does load an to test without enso/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/components/ide.tsx Line 96 in cfb2f29
|
Argh. Yes, with that group open, also I'm also not getting the FRP logging, but maybe that is some other interaction with the open group. |
The root issue might be caused by the group not being closed indeed. The question is if this is the only issue. If fixing it will not resolve all issues, I have yet another suspicion here – we have something that is called LogManager or something like that. Basically, it gathers logs in one place and allows function |
but as mentioned above, opening the collapsed groups shows the missing logs, so not 100% sure that's the case |
@somebody1234 to be checked if this happens on Michaels end as well. The thing is that in your example these were errors and I'm not sure when they were emitted. This might be the same case as at Michaels end, or might be another (that also needs to be fixed). I posted additional possible theoretical explanation for missing logs, but it is probable, that everything is caused by the group not being closed. I think I expressed my thoughts wrong in my previous answer - I'll edit it, sorry for that! |
see michael's comment right above yours - that's what i'm referring to |
@somebody1234 Oh, I'm blind. I totally missed Michaels comment above ... sorry about it! |
i think i found the reason why the group is not being ended:
whereas it lines up perfectly on the local backend: enso/lib/rust/ensogl/pack/js/src/runner/wasm/loader.ts Lines 368 to 370 in cfb2f29
not quite sure why it's overshooting though... i tried disabling the service worker in case that did something funky with the content-size or something but that didn't make a difference |
Oh, wow, that's interesting! Could you please check if cloud is reporting the size correctly? Anyway, the code should use |
on a tangent, it might be nice to replace the download speed with.. something like a moving average? like, |
Changing the check in EDIT: It looks like the IDE is using a WASM file from a CDN instead of the local one. |
I think that is the true source of my original problem here: when starting a cloud project the IDE local IDE files are not used, and we are essentially running a different IDE version. |
yeah... of course 🤦 totally slipped my mind that the change to enable the frp traces produces a different wasm bundle. @MichaelMauderer not sure whether it's possible to fix your original problem in that case... i think a reasonable (?) workaround may be to change this: enso/app/ide-desktop/lib/dashboard/src/authentication/src/dashboard/components/ide.tsx Line 84 in cfb2f29
to just 'pkg-opt.wasm' so that it always loads the local copy rather than the cloud one
|
@wdanilo actually, is the dashboard's ide runner currently implemented incorrectly? maybe only the latest version of backwards incompatibility might be an issue, but that only applies to the json+binary language server endpoints, right? |
@somebody1234 The local IDE uses bundled |
@wdanilo but that means we might want to download older IDE wasm also for local project? Currently, we always open the bundled wasm, even if the project was created for older engine version. |
I had tried that, unfortunately that does not seem to work. I also tried replacing other assets with the local ones, but no luck. I'll have to double-check what the difference is to local projects.
|
@wdanilo I’ve got the same question as Adam, but even more: do we then need to start keeping an up-to-date bug list of “known issues” per IDE/engine version? If we use old IDE versions for old projects, those will keep old bugs around, and we will need to deal with those potentially being filed over and over again. |
@wdanilo @MichaelMauderer @somebody1234 let's continue discussion in https://github.com/orgs/enso-org/discussions/6762#discussioncomment-6090645 |
You can always backport the most critical bugfixes and instruct the cloud to offer the bugfixed version of the old IDE.... one of the 20 API Paradoxes is called "maintenance" and claims that sooner or later every API designer job turns into "sustaining" - welcome to the sustaining team, Michael! |
While I agree there are some tightly coupled pieces between IDE and engine+stdlibs, I also have questions:
How are the shaders related to engine version?
I know that visualizations (the JavaScript parts) are shipped with IDE and are tightly coupled with
Alas, that's our current situation. |
E-Hern Lee reports a new STANDUP for the provided date (2023-06-05): Progress: investigate + implement It should be finished by 2023-06-09. |
Discord username
No response
What type of issue is this?
Permanent – Occurring repeatably
Is this issue blocking you from using Enso?
Is this a regression?
What issue are you facing?
When opening a cloud project in the IDE (started with
./run ide watch --backend-source release --backend-release latest --skip-wasm-opt --ide-option -debug.dev-tools=true --ide-option -debug
), there is no debug output in the dev console (e.g., logs from calls toconsole_log!
).It works fine when opening a local project.
Expected behaviour
Log output should appear.
How we can reproduce it?
./run ide watch --backend-source release --backend-release latest --skip-wasm-opt --ide-option -debug.dev-tools=true --ide-option -debug
Screenshots or screencasts
Local project output (with IDE log output)
Cloud project output (missing IDE log output)
Logs
No response
Enso Version
develop
Browser or standalone distribution
Standalone distribution (cloud project)
Browser Version or standalone distribution
standalone
Operating System
Linux
Operating System Version
No response
Hardware you are using
No response
The text was updated successfully, but these errors were encountered: