Skip to content

Discoveries never run on first start up #671

Closed
@per1234

Description

@per1234

Describe the bug

The discovery tools are used to detect changes to the serial and network ports.

On the first run of the IDE, these tools never run, so new ports are not discovered and old ports continue to be listed even after disconnection.

To Reproduce

  1. Quit the IDE if it is running.
  2. Delete the configuration folder (simulating a fresh install):
    C:\Users\<user name>\AppData\Roaming\arduino-ide\
    
  3. Start the Arduino IDE.
  4. Open Windows Task Manager (Ctrl+Shift+Esc)
  5. Expand the "Arduino IDE" process tree.
    🐛 Note that mdns-discovery.exe is not running.
    🐛 Note that serial-discovery.exe is not running.
  6. Connect an Arduino board to your computer.
    🐛 Note that the board is not discovered.
  7. Select File > Quit from the Arduino IDE menus.
  8. Start the Arduino IDE.
  9. Expand the "Arduino IDE" process tree in Task Manager.
    🙂 Note that mdns-discovery.exe is now running.
    🙂 Note that serial-discovery.exe is now running.

Expected behavior

Discoveries run on first start up.

Desktop

  • OS: Windows 10
  • Version: 2.0.0-rc1-snapshot.767b09d
    Date: 2021-12-07T16:40:38.636Z
    CLI Version: 0.20.1 [abb21449]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions