-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Improve current console #656
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
Conversation
@catarak This PR is not yet fully completed, there are some small things that I need to fix (and l will update more later)
Except these, basically it can work now :) |
awesome! just tested all of the different |
by the way, I was able to fix the border on the iframe by changing the file .preview-frame {
...
border-width: 0;
} Can you explain more what you mean by (3)? I'm not sure that I get it. |
Feel free to close the other one. (3) e.g.
l remove some checks here: https://github.com/processing/p5.js-web-editor/pull/656/files#diff-bc673abbaa869062b5e04591beafddcbR386 because i can't get the error line from stack trace anymore |
Hi @catarak , l have fixed 1&&2, could you help test and review these? Maybe there are some errors l missed :) |
btw, I just discovered this library sass-extract-loader, which allows you to extract variables from SCSS and load them as JS variables. could be useful so you don't have the color values in both JS and SCSS! |
@catarak Thanks for your advice! Now it seems to me that there is an annoying problem. not work (The first rendering is correct, but the latter is not)
vs work
The reason may be that the console information happened before the hook. This will not happen if the console info are inside p5js's build-in functions, because l think p5js has some asynchronous processes? e.g. Do you have any good way to avoid it or to increase asynchronous in the code outside p5js build-in functions like using |
i'm super excited that this is working great right now! i'm currently figuring out a solution so you don't have to check in |
i think this is ready to merge! the only thing i would change is to try to use the sass-extract-loader to remove the duplication of color values in scss and js, but i think that's minor enough that it could be moved to a separate PR/issue. |
@catarak just updated the code, but I thought it's a bit strange to put that scss file under the styles directory alone. Any better suggestions? |
@shinytang6 you have it in EDIT: I see what you're saying, that it's weird that it's in the |
Thanks! That makes sense to me |
Hey @catarak, if all the changes are ok, can you merge this PR in? Then l can send my second PR :) |
yes! i am excited to merge this in. |
i just merged this, and tried deploying it, but then noticed that that "stop" button on sketches no longer works. could you look into this? |
i checked out a previous commit in production, but i could either revert this PR and you could open a new one, or just open a new PR with the bug fix. |
Sorry about that, l have fixed this in #666 . If there are other problems, just ping me, I always miss something 🤔 |
no worries! just another reason to support adding tests, to avoid regressions 😄 |
Before your pull request is reviewed and merged, please ensure that:
npm run lint
Fixes #123
Thank you!