-
-
Notifications
You must be signed in to change notification settings - Fork 398
arduino-cli standalone install looks for .cli-config.yml in wrong location #30
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
Comments
Right, so the paths to look for the config file should be (in order of priority):
At this point I'm wondering also that
of course this is for unix/linux, maybe Windows have different standards for command line? |
I believe the first place for
my priority order would be |
I think The
If reading from the Going up a level, I think the issue is whether the Additionally, if multiple |
Excellent points, @bxparks having used PlatformIO a lot over the past years I am comfortable with having project-based configurations with different directives on a pre-project base, hence my suggestion to have multiple options for the location of such file. I believe this |
@ubidefeo which options you would like to set specifically for the sketch? |
@cmaglie more than sketch i think project/folder specific. at this point I could just run in the case of Platformio I can do this by choosing a target (or assigning a default one).
|
something I forgot to mention: |
If A side comment, why YAML? The YAML spec is 80 pages long, a full superset of JSON. Does the Arduino-CLI really need that much configuration? I think I would have preferred INI file, something that even novice programmers can understand, and already used by PlatformIO. |
I agree with @bxparks on a config file being also read by a future version of the desktop IDE. |
This is good conversation and I appreciate the views thus far. I am going to toss in my own.
The project level config seems like a good idea to me..., but.. both the IDE and the CLI should support that the same way, at the same time. If that can not be done without a lot of hair-pulling, then it should not be done at all. As far as what the config format is, JSON, YAML, .ini: It does not matter to me.
Just my $0.02 worth... |
thanks for sharing and I'm glad you agree with some of my points :) |
Two further comments: Now that this is working nicely and I have had the time to play with it a bit more, my previous thoughts on config have been re-enforced a bit. Again, my assumption is that the CLI will be integrated and hopefully distributed with the IDE and/or vise-versa. Having a project level config for controlling both the compile and upload could be handy as I see it. (much appreciate the 'arduino-cli config init' by the way! While it does not put much int the .cli-config.yml, it is good to be able to direct it to where one wants it to be, which sort of contributes to my appreciation of a project level config. Again, that said, the more global config would certainly continue to have value as long as that global config applies to both the IDE and CLI. (no exceptions thrown by either regardless of exclusive applicability. I am curious about one thing: Being that CLI is written in golang and the IDE is Java, will this make it hard to combine these two into a single application when the time comes? |
What's going on here? At least can we add |
I'm in favour of |
That sounds like a good idea. Where'd the per-project be located? What's the ETA here? I can help test. |
It's not uncommon for these kinds of tools (e.g. language specific package managers like Then, of course, "global" configs from known places ( I'd like that. |
I would like to see the file named $HOME/.arduino-cli-config.yml |
There is the standard Looks like there is the configdir golang library for that. |
We have made some improvements to config path search in #140. I'm closing this one since it has gone a bit off-topic and is difficult to follow the various suggestions. If you have still problems please open a new issue and provide the current behaviour and the desired behaviour. About 'environments' we will keep track of the progress here #108 |
Allow setting official check mode configuration via environment variable
arduino-cli standalone install looks for .cli-config.yml in wrong location
arduino-cli looks for .cli-config.yml in wrong location when installing a standalone arduino-cli binary into /usr/bin/
In the above case it looks for /usr/bin/.cli-config.yml - and does not even try to look inside my home dir
See the debug output:
The text was updated successfully, but these errors were encountered: