Skip to content

Fix loading of sketches with folder and main file mismatched casing #1179

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

Merged
merged 2 commits into from
Feb 9, 2021

Conversation

silvanocerza
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • What kind of change does this PR introduce?

Fixes an OS X specific bug.

  • What is the current behavior?

Sketches with mismatched folder and main file casing cause several issues for the IDE on OS X.
Since paths case sensitivity can be enabled or disabled on OS X some example sketches in certain libraries are considered valid even if they don't have the same identical name.

These would be considered valid sketches on OS X even if they're not following the specification:

MySketch/mysketch.ino
mysketch/MySketch.ino
  • What is the new behavior?

Sketches with mismatched folder and main file casing are now correctly ignored on OS X.

Nope.

  • Other information:

Fixes #1174

I had to fix lots of tests in the legacy package because of this fix.


See how to contribute

@silvanocerza silvanocerza force-pushed the scerza/sketch-case-sensitivity branch from f769abb to 7bcd058 Compare February 9, 2021 08:59
Copy link

@ubidefeo ubidefeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested and approved as CLI and inside IDE

@silvanocerza silvanocerza force-pushed the scerza/sketch-case-sensitivity branch from 7bcd058 to 7abe105 Compare February 9, 2021 09:25
@silvanocerza silvanocerza merged commit 0425c95 into master Feb 9, 2021
@silvanocerza silvanocerza deleted the scerza/sketch-case-sensitivity branch February 9, 2021 10:56
silvanocerza added a commit that referenced this pull request Feb 9, 2021
…1179)

* Fix loading of sketches with folder and main file mismatched casing

* [skip changelog] Fix legacy tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[IDE related] On Case-Insensitive FS, using libraries with unmatched Sketch name case causes issues
3 participants