marlonfan / coc-phpls

🐭 php language server for coc.nvim
MIT License
212 stars 16 forks source link

Cannot read properties of null (reading 'hasOwnProperty') #104

Open vrkansagara opened 2 years ago

vrkansagara commented 2 years ago
2021-11-07T21:01:08.917 ERROR (pid:14258) [source-language] - Complete "phpls" error: TypeError: Cannot read properties of null (reading 'hasOwnProperty')
    at /home/vallabh/github/coc-phpls/lib/index.js:98:29
    at async LanguageSource.doComplete (/home/vallabh/.vim/vendor/coc.nvim/build/index.js:59366:20)
esetnik commented 2 years ago

I just started having the same issue while editing php comments

scottperlitch commented 2 years ago

Not sure the root of the problem, but the following fixed the php comments issue as a workaround:

Plug 'neoclide/coc.nvim', {'branch': 'release', 'commit': '0d9e7f65db1df0ff0946798c81097abafc018068', 'do': 'yarn install --frozen-lockfile'}

alekmlynek commented 2 years ago

Thanks @scottperlitch for the workaround. For everyone else, if needed remember to:

peterbabic commented 2 years ago

Plug 'neoclide/coc.nvim', {'branch': 'release', 'commit': '0d9e7f65db1df0ff0946798c81097abafc018068', 'do': 'yarn install --frozen-lockfile'}

This help but creates another problem for me:

[coc.nvim] Error on activate extension coc-prettier: import_coc6.window.onDidChangeActiveTextE ditor is not a function

yaegassy commented 2 years ago

I have created and maintain my own extension of coc.nvim for intelephense. Until the problem is fixed in coc-phpls, please try if you need.

jchook commented 2 years ago

For me, this bug happens on macOS but not Linux.

macOS: M1, Kitty Linux: x86, Kitty/Alacritty