-
-
Notifications
You must be signed in to change notification settings - Fork 293
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
Bad variable parsing in comprehensions for loops #3080
Comments
see fonsp/Pluto.jl#3080 also the system diff table was not working anymore so I commented it out -> it can come back after fix
Hey! The error should be harmless and you can ignore it, but maybe you can share more info about the notebook that crashed? |
Thanks for the reply, that was also my initial thought. I was trying to solve the issue with the zombie notebook! Well it seems to be inconsistent, but the notebook wasn't crashing, it would just not start. All the processes under Status were not starting, which made me think that it was the JS that was causing the problem. After getting rid of that error, the notebook was starting and working fine haha. I can't seem the replicate the issue on my machine so I'll try in isolated env as soon as I can. |
On another note, I just realised that it takes quite some time to start which is not really ideal. It maybe be worth splitting the notebook into a few parts maybe? I have some extra time in December, I'd be happy to give it a rework, let me know what you think. |
Hey! I think it's a cool notebook, so worth the load time! If you have time in December then you are of course welcome to write a new notebook! Send me an email to discuss! |
Helloo!!
I stumbled on a bug that seems to be caused with the new variable explorer (not really familiar with it). In the MRE, I show that a JS error arises in a cell while parsing variables in a cell that contains the combination of a comprehension for loop and and macro within that loop.
Pretty much an edge case but it seems some notebooks might not be able to start and crash because of that. It only seems to affect notebook with a large starting time with the error causing the notebook to fail to launch (this is purely based on the single experience I had fixing the zombie attack notebook which is now running fine).
I found this bug from using the inspector and the built in browser debugger which told me that there was a problem in the update() function while the cursor type was a "ForStatement". Considering the notebook I was trying to fix only had a for loop with the @htl macro inside of it, I pruned it and found that it seems to be affected by any macro inside a comprehension for loop.
Perhaps the algo for finding variable dependencies has trouble dissecting the macro's internal? Not a clue
MRE
https://gist.github.com/damourChris/93d7d700530646d658f9aea50ee8adb9
Specs
The Full Javacript error
Let me know if you have any other questions!
Happy debugging xx
The text was updated successfully, but these errors were encountered: