Skip to content

false positive warning in DevTools when creating a new tab: Timeout after 5000 millis. The editor has not shown up in time. #1718

Closed
@kittaakos

Description

@kittaakos

Describe the problem

There are two new warnings every time I create a new tab.

root WARN Timeout after 5000 millis. The editor has not shown up in time. URI: file:///Users/a.kitta/Documents/Arduino/debug/alma.ino

They're false positives. The bug is here:

if (!widget) {
deferred.resolve(editorWidget);
}

The condition should be inverted as commented here

// If the widget was defined, it was already opened.

To reproduce

Open IDE2, open a sketch, and a new tab. The editor opens, but there are two new warnings in the console.

Expected behavior

No warning

Arduino IDE version

fe3fbb1

Operating system

macOS

Operating system version

12.5.1

Additional context

No response

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