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

"Save as..." causes unexpected error: document already exists #176

Closed
huddeldaddel opened this issue Sep 17, 2024 · 3 comments · Fixed by #178
Closed

"Save as..." causes unexpected error: document already exists #176

huddeldaddel opened this issue Sep 17, 2024 · 3 comments · Fixed by #178
Labels
bug Something isn't working pr welcome We rely on a community contribution to improve this. spring cleaning Could be cleaned up one day

Comments

@huddeldaddel
Copy link
Contributor

Describe the Bug

Saving diagram in new location causes error message. The diagram file can not be loaded until Visual Studio Code is restarted.

Steps to Reproduce

  1. Open a ".bpmn" file in VSCode with BPMN.io Editor Plugin
  2. Use menu option "Save As" to save file in new location
  3. Now VS Code displays message: "The editor could not be opened due to an unexpected error: document alreasy exists"

Expected Behavior

Common behavior would be that VSCode would display the file (from new location).

Environment

  • Visual Studio Code 1.93.1 (user setup)
  • OS: Windows 10
  • Electron: 30.4.0
  • Chromium: 124.0.6367.243
  • Node: 20.15.1
  • Plugin version: bpmn-io.vs-code-bpmn-io v0.21.2
@huddeldaddel huddeldaddel added the bug Something isn't working label Sep 17, 2024
@barmac
Copy link
Member

barmac commented Sep 17, 2024

I can reproduce this issue. Thanks for reporting.

@barmac barmac added backlog Queued in backlog spring cleaning Could be cleaned up one day pr welcome We rely on a community contribution to improve this. labels Sep 17, 2024
@barmac
Copy link
Member

barmac commented Sep 17, 2024

We are happy to accept external contributions. Would you like to provide a fix?

@huddeldaddel
Copy link
Contributor Author

huddeldaddel commented Sep 17, 2024

I'll give it a try. I've never worked on VS Code plugins before - but it sounds like a nice challenge.

@bpmn-io-tasks bpmn-io-tasks bot removed the backlog Queued in backlog label Sep 17, 2024
@nikku nikku added the needs review Review pending label Sep 22, 2024 — with bpmn-io-tasks
@barmac barmac closed this as completed in 998f30b Sep 23, 2024
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Sep 23, 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 pr welcome We rely on a community contribution to improve this. spring cleaning Could be cleaned up one day
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants