Skip to content

Rename INO file deletes sketch and any .h files within folder #699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
icehousedoo opened this issue Dec 17, 2021 · 2 comments
Closed

Rename INO file deletes sketch and any .h files within folder #699

icehousedoo opened this issue Dec 17, 2021 · 2 comments
Assignees
Labels
conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project

Comments

@icehousedoo
Copy link

icehousedoo commented Dec 17, 2021

If you attempt to rename the main INO file of your project and save it back to an existing folder, the folders contents are deleted.
Steps to reproduce:
Open IDE 2.0.0-rc2

  • Create new tab called MQQT.h

  • Add code etc to MQQT.h

  • Create new tab called WIFI.h

  • add code etc to WIFI.h

  • Save project, create new windows folder in save dialogue, use default file name "sketch_dec17a"
    Everything looks normal

  • Raname WIFI.h tab to WIFIx.h

    • works ok
      Sketch / Show sketch folder shows files as expected inc 4x log files
  • Rename sketch_dec17a.ino, select original folder, name file MAIN.ino
    Contents of source folder are deleted, no longer have the MQQT.h or WIFI.h files.

Arduino IDE version

2.0.0-rc2

@per1234 per1234 self-assigned this Dec 17, 2021
@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Dec 17, 2021
@per1234
Copy link
Contributor

per1234 commented Dec 17, 2021

Thanks for your report @icehousedoo. I just gave it a try and was unable to reproduce the problem.

Please provide more detailed instructions that will allow me to exactly replicate the steps you took when you encounter this bug.

If possible, remove any unnecessary steps to facilitate the investigation. Is it really necessary to create two additional tabs? Is it really necessary to rename one of the tabs? Is it really necessary to add code etc to the tabs?

Do you have File > Preferences > Auto save enabled or disabled?

@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Dec 17, 2021
@icehousedoo
Copy link
Author

Ah ha my fault, the old PEBKAC issue.
When renaming the INO file, it is moved to a new folder with matching name, along with any associated TAB files I create.
This is new behaviour I probably would've known about if I'd read the release notes ;-)
Sorry for wasting your time, I did appreciate your prompt support.

Cheers

@per1234 per1234 added conclusion: invalid Issue/PR not valid and removed status: waiting for information More information must be provided before work can proceed labels Dec 17, 2021
@per1234 per1234 closed this as completed Dec 17, 2021
@per1234 per1234 changed the title Rename INO file deletes sketch and any .h files within folder IDE2.0.0-rc2 Rename INO file deletes sketch and any .h files within folder Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants