Skip to content

IDE2 used to focus the main sketch file when opening a sketch with multiple files #1037

Not planned
@kittaakos

Description

@kittaakos

Describe the problem

When I open a sketch in IDE2 the main sketch file is not focused anymore. It used to work.

Working with Beta.12:

focus_main_sketch_file.mp4

Broken with RC-7:

focus_main_sketch_file_broken.mp4

To reproduce

  • Have a sketch opened,
  • Open File > Examples > 02.Digital > toneKeyboard,
  • When all sketch files are opened in the editor, not the main sketch file (toneKeyboard.ino) has the focus.

Expected behavior

When a sketch consists of multiple files, the main sketch file has the focus when opening the sketch.

Arduino IDE version

Version: 2.0.0-rc7 Date: 2022-06-09T08:19:19.877Z CLI Version: 0.23.0 [899dc91b] Copyright © 2022 Arduino SA

Operating system

macOS

Operating system version

12.3.1

Additional context

Breaking change 9863dc2#diff-abca14a02be77160a86d9f4fb6eca8c18d47312d2d4be37c50de50430bbbcd07L511 (#612)

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

Activity

per1234

per1234 commented on Jun 10, 2022

@per1234
Contributor

Thanks for taking the time to submit an issue @kittaakos.

I see we have another report about this at #643.

It is best to have only a single issue per subject so we can consolidate all relevant discussion to one place, so I'll go ahead and close this in favor of the other.

If you end up with additional information to share, feel free to comment in the other thread.

self-assigned this
on Jun 10, 2022
KurtE

KurtE commented on Jun 10, 2022

@KurtE

Thanks, I was just checking to see if there was an open issue on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

conclusion: duplicateHas already been submittedtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @kittaakos@KurtE@per1234

      Issue actions

        IDE2 used to focus the main sketch file when opening a sketch with multiple files · Issue #1037 · arduino/arduino-ide