Skip to content
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

Global platform.txt is not supported #999

Open
3 tasks done
NicoHood opened this issue Oct 4, 2016 · 5 comments
Open
3 tasks done

Global platform.txt is not supported #999

NicoHood opened this issue Oct 4, 2016 · 5 comments
Assignees
Labels
topic: code Related to content of the project itself topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project

Comments

@NicoHood
Copy link

NicoHood commented Oct 4, 2016

Describe the problem

Arduino IDE 1.x supports defining platform properties for all boards platforms via a "global platform.txt":

https://arduino.github.io/arduino-cli/dev/platform-specification/#global-platformtxt

Arduino CLI does not provide this feature.

Due to the deficiency in Arduino CLI, Arduino IDE 2.x does not provide this feature, but that deficiency is not documented in the Arduino Platform Specification.

To reproduce

  1. Select File > Quit (or Arduino > Quit Arduino for macOS users) from the Arduino IDE 2.x menus.
    All Arduino IDE windows will close.
  2. Create a folder named hardware under the Arduino IDE 2.x installation folder.
    • It is necessary to create this folder because, unlike Arduino IDE 1.x, the 2.x installation does not have such a folder.
    • Arduino IDE is used for this demo because the information in the Arduino Platform Specification is specific to Arduino IDE and doesn't give any indication of how the feature might work with Arduino CLI if implemented.
  3. Create a file named platform.txt in the hardware folder.
  4. Add the following content to the platform.txt file:
    recipe.hooks.sketch.prebuild.42.pattern=echo hello world
    recipe.hooks.sketch.prebuild.42.pattern.windows=cmd /c echo hello world
    
  5. Start Arduino IDE 2.x.
  6. Select File > New Sketch from the Arduino IDE menus.
  7. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  8. Check the box next to "Show verbose output during: ☐ compile" in the "Preferences" dialog.
  9. Click the "OK" button.
    The "Preferences" dialog will close.
  10. Select Sketch > Verify/Compile from the Arduino IDE menus.
  11. Wait for the compilation to finish.
  12. Examine the contents of the black "Output" panel at the bottom of the Arduino IDE window.

🐛 The output does not contain the "hello world" message that should have been produced by the build hook defined in the global platform.txt file.

Expected behavior

All features described in the Arduino Platform Specification work.

When a feature is not available in some versions of Arduino development tools, this must be documented in the Arduino Platform Specification.

Arduino CLI version

Original report

Not specified.

Last verified with

b9edb78

Operating system

All

Operating system version

Any

Additional context

Additional reports

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details
@onsky1982

This comment has been minimized.

@anno73

This comment has been minimized.

@per1234 per1234 transferred this issue from arduino/Arduino Oct 1, 2020
@per1234

This comment has been minimized.

@ubidefeo

This comment has been minimized.

per1234 referenced this issue Oct 1, 2020
This makes it easier for contributors to participate by beta testing Arduino CLI.
@per1234 per1234 reopened this Mar 30, 2021
@per1234 per1234 added the topic: code Related to content of the project itself label Mar 3, 2022
@fabianoriccardi

This comment has been minimized.

@per1234 per1234 changed the title Global system platform.txt Global platform.txt is not supported Mar 4, 2025
@per1234 per1234 added topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project and removed type: enhancement Proposed improvement labels Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

9 participants