Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

gtt config throws error when EDITOR variable is not set #96

Open
@husim0

Description

@husim0

Hello :-)

On my config, EDITOR is not set.

$ gtt config
child_process.js:207
    throw new ERR_INVALID_ARG_VALUE('args', arguments[pos]);
    ^

TypeError [ERR_INVALID_ARG_VALUE]: The argument 'args' is invalid. Received { env:
   { GS_LIB: '/home/hugo/.fonts',
     KDE_FULL_SESSION: 'true',
     LS_COLORS:
      'no=00:fi=00:di=01;34:ln=00;36:pi=...
    at Object.execFile (child_process.js:207:11)
    at Object.childProcess.execFile (pkg/prelude/bootstrap.js:1420:30)
    at Object.exec (child_process.js:148:18)
    at childProcess.exec (pkg/prelude/bootstrap.js:1434:26)
    at open (/snapshot/gitlab-time-tracker/node_modules/open/lib/open.js:58:10)
    at Function.open (/snapshot/gitlab-time-tracker/src/include/filesystem.js:0:0)
    at Object.<anonymous> (/snapshot/gitlab-time-tracker/src/gtt-config.js:0:0)
    at Module._compile (pkg/prelude/bootstrap.js:1254:22)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:711:10)
    at Module.load (internal/modules/cjs/loader.js:610:32)

Setting EDITOR works.

EDITOR=nano gtt config

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions