-
-
Notifications
You must be signed in to change notification settings - Fork 398
gRPC Init command with custom directories not working #553
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
Thanks @per1234 for pointing that out. I was not aware of the new settings interface, but using it works as expected. Updating the client_example might be a good idea to make others aware of this. Using the settings interface, I assume that I change the corresponding settings (e.g. directories) on a global basis for the running arduino-cli daemon. This means that I am not able to set different settings per instance anymore? That would be nice if multiple applications are connecting to the arduino-cli daemon. |
Hi @andmeyee you're right, at this moment settings are global, and this is by design since we wanted to make consistent the settings API that previously was ambiguous. I understand the requirements of being capable to override some settings for specific instances, I'm marking this issue as a Feature Request and will work on an API to achieve that, thanks for your feedback. |
Thanks @masci for marking this as a feature request. Happy to give it a try if a first implementation is available. |
@masci, before the introduction of the new My questions would be the followings:
Any kind of feedback is welcome on this topic; I am trying to figure out whether we can simplify the architecture of the Pro IDE. Thank you! |
I am playing around with arduino-cli's gRPC interface and Python. I am not able to set custom directories for dataDir, sketchbookDir and downloadsDir using the gRPC Init() method.All other gRPC methods seem to work as expected.
Bug Report
Current behavior
If I call
client.Init(req)
withreq.dataDir
set to a custom directory, it is still using the directories configured while starting the daemon.Expected behavior
arduino-cli should use the directories specified within the
req
argumentEnvironment
Additional context
None
The text was updated successfully, but these errors were encountered: