pappasam / coc-jedi

coc.nvim wrapper for https://github.com/pappasam/jedi-language-server
MIT License
229 stars 9 forks source link

Warning that language server is running #16

Closed WhyNotHugo closed 3 years ago

WhyNotHugo commented 3 years ago

Result from CocInfo

## versions

vim version: NVIM v0.4.4
node version: v15.5.0
coc.nvim version: 0.0.80-7642d233d6
coc.nvim directory: /home/hugo/.homesick/repos/dotfiles/home/.config/nvim/plugged/coc.nvim
term: alacritty
platform: linux

## Log of coc.nvim

2020-12-27T11:46:38.887 INFO (pid:539717) [extensions] - Skipped load vim plugin from "/home/hugo/.config/nvim/plugged/coc-jedi", "coc-jedi" already global extension.
2020-12-27T11:46:39.192 INFO (pid:539717) [services] - registered service "jedi"
2020-12-27T11:46:39.196 INFO (pid:539717) [plugin] - coc.nvim 0.0.80-7642d233d6 initialized with node: v15.5.0 after 350ms
2020-12-27T11:46:40.212 INFO (pid:539717) [services] - jedi-language-server state change: stopped => starting
2020-12-27T11:46:40.217 INFO (pid:539717) [language-client-index] - Language server "jedi" started with 539794
2020-12-27T11:46:40.384 INFO (pid:539717) [services] - jedi-language-server state change: starting => running
2020-12-27T11:46:40.391 INFO (pid:539717) [services] - service jedi started
2020-12-27T11:48:12.901 INFO (pid:539717) [attach] - receive notification: showInfo []

Describe the bug

When using coc-jedi, coc shows a warning that the language server is running. This warning seems odd -- there's nothing wrong with that, and seems like an "everything is alright" warning.

This pops up every time I open a python file:

[coc.nvim] jedi: running "/home/hugo/.homesick/repos/dotfiles/home/.config/coc/extensions/node_modules/coc-je
di/.venv/bin/jedi-language-server"
Press ENTER or type command to continue

Reproduce the bug

I used this config for reproducing the bug:

set nocompatible
set runtimepath^=/home/hugo/.config/nvim/plugged/coc.nvim
set runtimepath^=/home/hugo/.config/nvim/plugged/coc-jedi.nvim
filetype plugin indent on
syntax on
set hidden

Screenshots (optional)

image

pappasam commented 3 years ago

In your coc-settings.json:

 "jedi.startupMessage": false,

This will disable the startup message.

WhyNotHugo commented 3 years ago

Hmm... I see. Maybe the default could be changed though?

E.g.: Showing a warning when that everything is okay seems like an oxymoron. This also pops up every time a file is opened -- I can't see why this would be desirable, unless debugging coc-jedi itself.

pappasam commented 3 years ago

Resolved in 188a0f40acfd204e4eadac562d4d7f9a29dd18f6

WhyNotHugo commented 3 years ago

Thanks!