Skip to content

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

Closed
@kittaakos

Description

@kittaakos

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

Activity

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[/+] on Feb 1, 2021
reopened this on May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @kittaakos@silvanocerza@rsora

      Issue actions

        [gRPC] Neither `merge` nor `setValue` can be used to unset a CLI config entry · Issue #1161 · arduino/arduino-cli