Coc.nvim: Error Message 'E117: Unknown function: getenv' on neovim start

Created on 22 Jun 2020  路  1Comment  路  Source: neoclide/coc.nvim

Result from CocInfo

## versions

vim version: NVIM v0.3.8
node version: v12.15.0
coc.nvim version: 0.0.78
coc.nvim directory: /home/dqian96/.local/share/nvim/plugged/coc.nvim
term: screen-256color
platform: linux

Describe the bug

When I start neovim, I am greeted with the following message.
Seems like coc.nvim still works fine.

Error detected while processing function coc#rpc#start_server[17]..<SNR>85_start:
line   40:
E117: Unknown function: getenv
E15: Invalid expression: { 'NODE_NO_WARNINGS': getenv('NODE_NO_WARNINGS'), 'COC_CHANNEL_TIMEOUT': getenv('COC_CHANNEL_TIMEOUT'), 'COC_NO_WARNINGS': getenv('COC_NO_WARNINGS'), }
line   46:
E117: Unknown function: setenv
line   47:
E117: Unknown function: setenv
line   48:
E117: Unknown function: setenv
line   55:
E121: Undefined variable: original
E116: Invalid arguments for function keys
E15: Invalid expression: keys(original)
Press ENTER or type command to continue

Reproduce the bug

  • vimrc

    set runtimepath^=/home/dqian96/.local/share/nvim/plugged/coc.nvim
    filetype plugin indent on
    syntax on
    set hidden
    

    Above error messaged echo'd on start.

Most helpful comment

Upgrade your nvim to 0.4.3.

>All comments

Upgrade your nvim to 0.4.3.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhou13 picture zhou13  路  3Comments

rkulla picture rkulla  路  3Comments

skylite21 picture skylite21  路  3Comments

hackingcat picture hackingcat  路  3Comments

chemzqm picture chemzqm  路  3Comments