Skip to content
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

Error exporting frames CMD + S #173

Open
giodum opened this issue Nov 18, 2022 · 4 comments
Open

Error exporting frames CMD + S #173

giodum opened this issue Nov 18, 2022 · 4 comments

Comments

@giodum
Copy link

giodum commented Nov 18, 2022

Hi everybody, I am trying for the first time canvas-sketch, but I am facing a problem.
Pressing cmd + S or ctrl + S an image should be saved, but the only thing that I get is a re-run of the code and nothing get saved.

I installed everything via npm, and these are my versions:
"canvas-sketch": "^0.7.6",
"canvas-sketch-cli": "^1.11.20"

I tried to export images in Chrome, Safari and Firefox, but I always get the same result.

Thank you in advance

Giorgio

@raphaelrockus
Copy link

Hi Giorgio,

I think what's happening is that you are sending the keys "Cmd + S" or "Ctrl + S" to your code editor (thus triggering the saving of your code and the hot reload) while you need to send them towards the browser instead.

You can use "Alt-tab" or "Cmd + tab" to alternate between open windows or just click on your browser and then type the keys.

Let me know if it helped.

Cheers from Belgium,
Raphaël

@sixrumcoins
Copy link

sixrumcoins commented Feb 18, 2023

Hi Raphael,

I have the same issue — pressing Cmd + S / Ctrl + S:

  • triggers code re-run,
  • saves alternated image,
  • redraws in a browser window to another heavily alternated image

Not sure it's related to "sending the keys to your code editor" — I don't see my editor uses these combinations to trigger anything related to re-run/refresh.

[email protected]
[email protected]
any browser

I'd appreciate if you can advise a solution.

Kind regards,
S


UPDATE
Saving does not trigger re-run if using "tick" as described here #25

@SebdGv
Copy link

SebdGv commented Jan 16, 2024

hi everyone,

same issue - Has anyone found a solution to fix it?

Thank you

@dudesl
Copy link

dudesl commented Apr 21, 2024

Hi Giorgio,

I think what's happening is that you are sending the keys "Cmd + S" or "Ctrl + S" to your code editor (thus triggering the saving of your code and the hot reload) while you need to send them towards the browser instead.

You can use "Alt-tab" or "Cmd + tab" to alternate between open windows or just click on your browser and then type the keys.

Let me know if it helped.

Cheers from Belgium, Raphaël

This is a great hint! the Cmd-s / Ctrl-s should be pressed ON the browser, not in the editor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants