This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Description
Describe the bug
Projects such as Marlin 3D printer firmware contain a large amount of files.
To allow users to compile this in Arduino IDE (Marlin suggests to use the Makefile or PlatformIO for compilation) and not show the 1600+ tabs, most files have been moved into a subfolder named src.
When the IDE requests the file list to the CLI, it obtains a full list because of recursion.
Such recursion should not be permitted and only the content inside the root of the sketch folder should be returned.
On my machine it’s been opening the project for the past 15 minutes... and counting.
To Reproduce
Steps to reproduce the behavior:
- Download Marlin 2 https://github.com/MarlinFirmware/Marlin
- Copy the folder
Marlin to your Sketchbook
- Launch IDE Pro
- Open the Marlin Sketch
- Leave the house and come back next week 😁
- The tabs will keep opening
Expected behavior
Only 4 tabs should appear (the 4 supported files in the Sketch):
Marlin.ino
Configuration.h
Configuration_adv.h
Version.h
Screenshots
IDE Pro

IDE Java

Desktop (please complete the following information):
- OS: Windows/Mac/Linux
- Version: 0.1.3-nightly.20210204
Additional context
Opened a related issue for the CLI arduino/arduino-cli#1173