-
Notifications
You must be signed in to change notification settings - Fork 142
Copy Button Issue with Multiple Syntax Signatures in Reference Page #698
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
Comments
Hi @SableRaf, I would like to contribute to this issue. Would you please assign me this issue? |
Thanks @akkarn1689! |
Thanks @davepagurek |
Hi @davepagurek,
Tried to resolve this error by updating packages and modifying the astro config files. Could you please help me resolve this issue? Thanks! |
I'm guessing based on the error that you're on Windows? @limzykenneth have you run into this on Windows before? It might be worth trying to run this project under WSL: https://learn.microsoft.com/en-us/windows/wsl/install |
For me Windows install and dev for website works as expected with no problem. @akkarn1689 What version of node.js and npm are you using? Also what shell are you using? |
@limzykenneth I am using node v20.11.0 and npm 10.2.4 vesrions. And I am using Window Powershell. |
@akkarn1689 Can you try cmd instead and also if you are using VSCode, make sure it is not auto importing anything, or even better, use cmd directly and not via VSCode. |
Hi @limzykenneth & @davepagurek, I wanted to provide an update on the issues I encountered earlier:
Here’s a video demonstration of the bug fix in action: 20250216-1733-23.5287537.mp4Looking forward to your feedback! |
I have tried using cmd, and tried running the application under 'wsl: Ubuntu' also. Still getting the similar issue that I have mentioned earlier about '@swc/html'. |
@akkarn1689 Are you running the build or the dev server? ie. Are you using |
@limzykenneth I am using |
Hmm...swc/html is a bit of a newer package overall and I'm not sure what could be the issue exactly, if you have a way to work around it for now that should be fine. I'll try to see if I can find more information and a fix eventually. |
Awesome, thanks @akkarn1689! If you're able to make a PR just with those changes, excluding any other workarounds you had to do to get it to run locally, that would be great! |
Hi @davepagurek, I have raised PR #704 to address this issue. Please have a look. Thank you! |
fixed copy button functionality: issue #698
Most appropriate sections of the p5.js website?
Reference
What is your operating system?
Windows
Web browser and version
132.0.6834.160 (Official Build) (64-bit) (cohort: Stable)
Actual Behavior
When clicking the copy button for functions with multiple syntax signatures (for example: createCanvas), the content includes both signatures merged together in the clipboard:
This issue occurs for any method that has multiple syntax signatures.
Expected Behavior
Each copy button should copy only the corresponding syntax signature. For example:
or
depending on which copy button is clicked.
Steps to reproduce
Would you like to work on the issue?
This might make a good first issue. I'm happy to leave it to a new contributor.
The text was updated successfully, but these errors were encountered: