semaphoreci / cli

Semaphore 2.0 Command Line Interface
Apache License 2.0
25 stars 13 forks source link

sem edit dashboard - exit status 127 #172

Closed carltondickson closed 4 years ago

carltondickson commented 4 years ago

Hi,

New to SEM CLI but just following documentation here to create a deployment dashboard - https://docs.semaphoreci.com/essentials/deployment-dashboards/ and getting an error when I try and edit a dashboard I've just created.

$ sem create dashboard test-dashboard
Dashboard 'test-dashboard' created.

$ sem edit dashboard test-dashboard
error: Editor closed with with 'exit status 127'

$ sudo update-alternatives --config editor
There are 3 choices for the alternative editor (providing /usr/bin/editor).

  Selection    Path               Priority   Status
------------------------------------------------------------
* 0            /bin/nano           40        auto mode
  1            /bin/ed            -100       manual mode
  2            /bin/nano           40        manual mode
  3            /usr/bin/vim.tiny   15        manual mode
carltondickson commented 4 years ago

I think I was missing this...sorry if missed a pre-requisite somewhere in docs

export EDITOR=nano

On Ubuntu 20 by the way