Skip to content

Two tabs open for same file and won't close #1791

Closed
@ChariseWalraven

Description

@ChariseWalraven

Describe the problem

I included a library via the menu and somehow this resulted in another tab opening for the same file. When I try to delete the file nothing happens. I've tried to move the sketch to some other folder and then open and that seems to work (after it renames the parent folder), but when I move it back to the original folder the new tab reappears.

I'm on Ubuntu 22.04.1 LTS and the latest stable version of the IDE shown on the website at the time of writing (2.0.3). I also tested on the latest nightly and it occurs there too.

If you need log files or something, please let me know.

image

To reproduce

I tried reproducing and couldn't. But the issue is still there, even when I open the project on the nightly build.

Expected behavior

Delete closes the tab. Or closing and reopening the ediitor...

Arduino IDE version

2.04-nightly-20221229

Operating system

Linux

Operating system version

22.04.1 LTS

Additional context

The fact that this occurs across builds and after moving things around makes me think this has something to do with some kind of cache or (sketch?) settings file somewhere, but I don't know for sure.

I also remember the save icon being on briefly. I have autosave on, so I'm not sure if this happened before or after the library was included.


Additional reports:


Related:

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions