Skip to content

Cannot solve {runtime.ide.path} and {source_file} in custom recipe (platform.txt) #7160

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
frestucc opened this issue Jan 26, 2018 · 1 comment
Assignees
Labels

Comments

@frestucc
Copy link

I'm working on a parser to call before the Arduino processing, I set some recipes on platform.txt using {runtime.ide.path} and {source_file} properties, but they cannot be solved in the requested path. Both 1.8.5 and 1.9 beta seems have the same issue.

@per1234
Copy link
Collaborator

per1234 commented Jan 27, 2018

From a forum thread, I know @frestucc is wanting to use these properties in a custom hook recipe

(Using Arduino IDE 1.9.0-beta build 36, Windows 10):
{runtime.ide.path} is blank in recipe.preproc.macros, undefined in all other recipes (standard or hook). The hardware specification lists it as a "global predefined property" so this makes no sense.

{source_file} is only defined in recipe.preproc.macros and the compilation recipes. It is not defined in any of the hook recipes. The specification only mentions it as available to the compilation recipes. The hooks aren't run before and after the compilation of each individual {source_file}. So, with the current system, this could only be defined for the hooks as the first file to be compiled after running the prebuild hook recipe or the last file compiled before running the postbuild hook recipe. The same situation occurs with {object_file}, {archive_file}, and {object_files}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants