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

Crash when exporting a directory via the CLI on 24.4.6 #1746

Closed
2 tasks done
leuchtum opened this issue May 23, 2024 · 2 comments
Closed
2 tasks done

Crash when exporting a directory via the CLI on 24.4.6 #1746

leuchtum opened this issue May 23, 2024 · 2 comments

Comments

@leuchtum
Copy link

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

Describe the bug
When using the CLI and exporting a directory, drawio crashes. This does not happens, when a single file is exported. Does not happen for versions < 24.4.6

To Reproduce
Steps to reproduce the behavior:

  1. Create directory src and add a drawio file into it
  2. Single file works
> drawio -x src/dummy.drawio
src/dummy.drawio -> src/dummy.pdf
  1. Export the directory, it crashes
> drawio -x src
ReferenceError: stat is not defined
    at file:///Applications/draw.io.app/Contents/Resources/app.asar/src/main/electron.js:603:12
    at Array.forEach (<anonymous>)
    at addDirectoryFiles (file:///Applications/draw.io.app/Contents/Resources/app.asar/src/main/electron.js:600:26)
    at file:///Applications/draw.io.app/Contents/Resources/app.asar/src/main/electron.js:622:6

Expected behavior
Works on < 24.4.6

Screenshots
NA

draw.io version (In the Help->About menu of the draw.io editor):

> drawio --version
24.4.6

Desktop (please complete the following information):

> sw_vers
ProductName:		macOS
ProductVersion:		14.4.1
BuildVersion:		23E224

Additional context
NA

@apallier

This comment was marked as duplicate.

@davidjgraph
Copy link
Contributor

Fix in 24.4.8, thanks for report.

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

3 participants