question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Files stop working when renamed from *.excalidraw to *.excalidraw.svg and vice versa

See original GitHub issue

Description

When an excalidraw file is renamed to another supported extension (e.g. from *.excalidraw to *.excalidraw.svg and vice versa) the file can not be opened by the excalidraw plugin anymore. It only shows a blank VSCode when opening the file.

Steps to reproduce

  1. Create a file with the supported extension (e.g. test.excalidraw)
  2. Optionally add some graphs to the file
  3. Rename the file to test.excalidraw.svg
  4. Close and open the renamed file

Expected behavior

Renaming the extension to another supported extension should not render the file unusable by VSCode.

Workaround

  1. Create a new file with the required extension
  2. Copy and paste the contents from the old file to the new file

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pomdtrcommented, May 6, 2022

Ok I have a naive but working solution (basically I try to load the file as a json/png/svg sequentially).

I agree that it it feels really good to be able to change the filetype by renaming the file 😃

0reactions
chronicccommented, May 11, 2022

Thank you very much.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Excalidraw on Twitter: "You can now embed the scene into the ...
@excalidraw. You can now embed the scene into the file when exporting to PNG/SVG, and later import it back. via.
Read more >
excalidraw-vscode from excalidraw - Coder Social
Files stop working when renamed from *.excalidraw to *.excalidraw.svg and vice ... vice versa) the file can not be opened by the excalidraw...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found