Skip to content

Non-functional "File > New File" menu item #1014

Closed
@per1234

Description

@per1234

Describe the problem

A "New File" menu item was recently introduced into the IDE's "File" menu.

🐛 The way the new feature behaves makes it not useful and also quite confusing.

To reproduce

  1. Open any sketch.
  2. Select File > New File from the Arduino IDE menus.
    An "Untitled-0" tab is added to the IDE's editor view.
  3. Select "Rename" from the menu on the editor toolbar.
    🐛 Nothing happens.
  4. Type some text in the "Untitled-0" editor.
    🐛 It is not possible:

    Cannot edit in read-only editor

  5. Select Sketch > Show Sketch Folder from the Arduino IDE menus.
    🐛 The new file is not present in the sketch folder.

Expected behavior

No "New File" menu item in the IDE's "File" menu.

-OR-

File > New File has same behavior as "New Tab" in the editor toolbar.

Arduino IDE version

2.0.0-rc6-snapshot-5fc30bd

Operating system

Windows, Ubuntu

Operating system version

Windows 10, Ubuntu 20.04

Additional context

I bisected the introduction of this menu item to 1ae60ec (it does not occur when using the build for b8c718c).

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