Skip to content

[gRPC] Neither merge nor setValue can be used to unset a CLI config entry #1161

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
kittaakos opened this issue Feb 1, 2021 · 0 comments · Fixed by #1164
Closed

[gRPC] Neither merge nor setValue can be used to unset a CLI config entry #1161

kittaakos opened this issue Feb 1, 2021 · 0 comments · Fixed by #1164

Comments

@kittaakos
Copy link
Contributor

Bug Report

Current behavior

I can use neither merge nor setValue to unset a property in the CLI config when running in daemon mode.

Let assume I have the following state that is loaded by the ArduinoCoreClient, and I want to unset proxy.

{
  "foo": "bar",
  "proxy": "http://blabla"
}

I tried to update the CLI state with the followings:

{ "network": { "proxy": undefined } }
{ "network": { } }

Neither merge nor setValue worked.

Expected behavior

I can unset a value.

Environment

  • CLI version (output of arduino-cli version): 0.15.0-rc1
  • OS and platform:

Additional context

This feature is required by arduino/arduino-pro-ide#410

@kittaakos kittaakos changed the title [gRPC] Neither merge nor setValue can be used to unset a CLI config [gRPC] Neither merge nor setValue can be used to unset a CLI config entry Feb 1, 2021
@rsora rsora reopened this May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants