- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 431
Add back support for sketches with .pde extension and deprecate it #1157
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
Conversation
| sketchPath := initSketchPath(path) | ||
|  | ||
| // .pde files are still supported but deprecated, this warning urges the user to rename them | ||
| if files := sketches.CheckForPdeFiles(sketchPath); len(files) > 0 { | ||
| feedback.Error("Sketches with .pde extension are deprecated, please rename the following files to .ino:") | ||
| for _, f := range files { | ||
| feedback.Error(f) | ||
| } | ||
| } | ||
|  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This piece is duplicated in compile.go, upload.go and archive.go.
On compile.go and upload.go there is also initSketchPath() that is duplicated as well.
This makes me wonder two things:
- in archive.go we are missing some cases because we miss an initSketchPath(...)
- we must move everything (the current initSketchPath and the pde check) into a common function args.InitSketchParh(path)or something like that...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably something that we need to tackle in a systematic way and not in this PR or it would make it explode.
c9d5f7e    to
    b105981      
    Compare
  
    b105981    to
    686d3f8      
    Compare
  
    
Please check if the PR fulfills these requirements
before creating one)
UPGRADING.mdhas been updated with a migration guide (for breaking changes)This PR brings back the support for sketches ending with
.pdeextension.Also we deprecate it.
Trying to
compile,upload, orarchivea sketch with a.pdemain file always fails.Also examples' libraries with
.pdeextensions are not shown when callinglib examples.compile,upload, orarchivea sketch with a.pdemain file now works correctly and shows a warning message recommending the user to rename all.pdefiles.ino.Examples' libraries with
.pdeextensions are now correctly shown when callinglib examples.No.
Each commit fixes a different command, it should be easier to review each commit separately.
See how to contribute