Sketch folder name not recognised #318
Description
Describe the bug
When I open an existing sketch, say Blink.ino, I get the message:
The_file "Blink.ino" needs to be inside a sketch folder named as "Blink".
Create this folder, move the file, and continue?
My Blink.ino is in C:\Users\name\Documents\Arduino\Blink
If I click OK, it creates a new folder there, so the sketch is now in C:\Users\name\Documents\Arduino\Blink\Blink - but at least it opens it. If I then close the IDE and start it again, I get the same message! So the Blink.ino gets one \Blink level deeper each time!
For some reason it's not recognising that the file is already in a Blink folder.
To Reproduce
- I installed the 0.1.0 standard zip, then removed it and tried the 20200825 nightly build. Same thing on both.
- Click on 'Open' button
- See error
Expected behavior
It needs to accept the fact that the folder name is OK
Desktop (please complete the following information):
- OS: Windows 7 PRO 64bit
- Version: Arduino PRO IDE 0.1.0-nightly.20200825
arduino-cli.exe is on my PATH.
I tried running the IDE as Administrator and nothing changed.
My arduino-cli.yaml has the following line:
user: C:\Users\name\Documents\Arduino
... as well as other stuff which I haven't touched.
The IDE executable is E:\name\Downloads\arduinoPRO\Arduino Pro IDE.exe (not on PATH).
Many thanks for your help.