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

can not run multiple commands in parallel #212

Open
EcoFreshKase opened this issue Apr 1, 2024 · 0 comments
Open

can not run multiple commands in parallel #212

EcoFreshKase opened this issue Apr 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@EcoFreshKase
Copy link

Describe the bug
Running multiple carbon-now commands simultaneously in the same directoy can cause problems with renaming the output file. It seems like the output file is firstly saved as carbon.png and later renamed to the string specified in the --save-as flag.
The output file could have the name specified in --save-as from the beginning, with no need to rename it later.

To Reproduce
Steps to reproduce the behavior:

  1. Clone this repository
  2. run npm i
  3. run npm start (might have to be executed multiple times)

Sometime a conversions failes with the following error:

Error while converting test/main.py: Error: Command failed: npx carbon-now test/main.py --save-as test-main.py --save-to .\exports
✖ Fetching beautiful image [FAILED: ENOENT: no such file or directory, rename '~\exports\carbon.png' -> '~\exports\test-main.py.png']

  Error: Sending code to https://carbon.now.sh went wrong.

  This is mostly due to:

  · Nonsensical input like `--start 10 --end 2`
  · Carbon being down or taking too long to respond
  · Your internet connection not working or being too slow

  Additional info:

  ENOENT: no such file or directory, rename '~\exports\carbon.png' -> '~\exports\test-main.py.png'

Expected behavior
All commands should be able to run in parallel.

Info (please complete the following information):

  • OS [e.g. macOS, Linux, Windows, iOS]: Windows 10
  • --engine used [e.g. chromium, firefox, webkit]: chromium (default)
  • Carbon URL (run with --open-in-browser to see) [e.g. carbon.now.sh?bg=pink]: Neither browser window is opened nor is the image copyid to the clipboard, even if ran in console one at a time
Code snippet
  
@EcoFreshKase EcoFreshKase added the bug Something isn't working label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant