Improbable Icon

Spatial CLI broken on OS X with 13.0.1

v13-0

#1

Hi. On OS X today, I’m getting this error:

$ spatial update
Visiting url: https://auth.improbable.io/auth/v1/authorize?client_id=improbable_cli_client_go&redirect_uri=http%3A%2F%2Flocalhost%3A12000%2Fauthcode&response_type=code&scope=%5B%2A%5D%3A%2A
Retrieved information for package type 'sdk-toolbelt' with name 'mac' and version '13.0.1'
Transferred  17.6MiB/ 17.6MiB    [====================] 100% [16.1MiB/s]
Successfully downloaded package type 'sdk-toolbelt' with name 'mac' and version '13.0.1' to '/Users/keunwoo/.improbable/bin/plugins/sdk/13.0.1/sdk'
Spatial CLI encountered a fatal error: Spatial CLI plugin '/Users/keunwoo/.improbable/bin/plugins/sdk/13.0.1/sdk' is incompatible with Spatial CLI wrapper.
Please report this at https://forums.improbable.io/c/fb and include your logs output to provide us with more details.

I tried blowing away ~/.improbable and reinstalling the spatial toolset. No dice.

As a bonus, rollback is broken:

$ spatial update --rollback
Spatial CLI encountered a fatal error: Spatial CLI plugin '/Users/keunwoo/.improbable/bin/plugins/sdk/13.0.1/sdk' is incompatible with Spatial CLI wrapper.
Please report this at https://forums.improbable.io/c/fb and include your logs output to provide us with more details.

Pretty much every command is broken:

$ spatial help
Spatial CLI encountered a fatal error: Spatial CLI plugin '/Users/keunwoo/.improbable/bin/plugins/sdk/13.0.1/sdk' is incompatible with Spatial CLI wrapper.
Please report this at https://forums.improbable.io/c/fb and include your logs output to provide us with more details.

Maybe this has something to do with today’s release? — SpatialOS CLI Release: 8 June 2018

Looks like there’s a General post with the same issue: https://forums.improbable.io/t/error-after-updating-spatial-cli/4246

I’m running OS X Sierra FWIW, not High Sierra.

p.s.
Steps to reproduce:

  1. rm -Rf ~/.improbable

  2. Install the spatial toolkit from the installer.

  3. Create an empty directory with the following spatial.json:

    {
      "name": "your_project_name_here",
      "project_version": "1.0.0",
      "sdk_version": "13.0.1",
      "dependencies": [
        {
            "name": "standard_library",
            "version": "13.0.1"
        }
      ]
    }
    
  4. cd to that directory

  5. Run spatial help. Result:

    $ spatial help
    Visiting url: https://auth.improbable.io/auth/v1/authorize?client_id=improbable_cli_client_go&redirect_uri=http%3A%2F%2Flocalhost%3A12000%2Fauthcode&response_type=code&scope=%5B%2A%5D%3A%2A
    Retrieved information for package type 'sdk-toolbelt' with name 'mac' and version '13.0.1'
    Transferred  17.6MiB/ 17.6MiB    [====================] 100% [0.8MiB/s]]
    Successfully downloaded package type 'sdk-toolbelt' with name 'mac' and version '13.0.1' to '/Users/keunwoo/.improbable/bin/plugins/sdk/13.0.1/sdk'
    Spatial CLI encountered a fatal error: Spatial CLI plugin '/Users/keunwoo/.improbable/bin/plugins/sdk/13.0.1/sdk' is incompatible with Spatial CLI wrapper.
    Please report this at https://forums.improbable.io/c/fb and include your logs output to provide us with more details.

#2

Hi @keunwoo,

Thanks so much for attaching the reproduce step here. I confirm that we can reproduce this error.

To rollback, you will need to change your working dir to a non-spatialos dir:
cd / to change your current dir, such that there is no spatialos.json in your current dir.
run spatial update to rollback your version to 20180604.131220.147d27af89

Thanks,
Jim