CocInfo
```
## versions
vim version: NVIM v0.10.0-dev-1254+g386bc23e43
node version: v21.6.1
coc.nvim version: 0.0.82-master
coc.nvim directory: /home/jade/dev/coc.nvim
term: alacritty
platform: linux
## Log of coc.nvim
2024-02-05T21:37:13.421 INFO (pid:2935688) [configurations] - Add folder configuration from cwd: /home/jade/.dotfiles/programs/hsutils/.vim/coc-settings.json
2024-02-05T21:37:13.591 INFO (pid:2935688) [plugin] - coc.nvim initialized with node: v21.6.1 after 215
2024-02-05T21:37:24.421 INFO (pid:2935688) [services] - LanguageClient haskell state change: stopped => starting
2024-02-05T21:37:24.437 INFO (pid:2935688) [language-client-index] - Language server "languageserver.haskell" started with 2935707
2024-02-05T21:37:24.487 INFO (pid:2935688) [core-watchman] - watchman watching project: /home/jade/.dotfiles/programs/hsutils
2024-02-05T21:37:27.684 INFO (pid:2935688) [services] - LanguageClient haskell state change: starting => running
2024-02-05T21:37:27.691 ERROR (pid:2935688) [language-client-client] - Server languageserver.haskell initialization failed. TypeError: Cannot assign to read only property 'formattingProvider' of object '#
Describe the bug
When my language server is started, with the following configuration in ~/.config/nvim/coc-settings.json, and a conflicting workspace configuration, it fails to start due to Coc throwing an exception.
Relative to commit: 9c079ad79d66d4ede7886cc4094a822352559502; Here is a resolved stacktrace using source maps.
Exception has occurred: TypeError: Cannot assign to read only property 'formattingProvider' of object '#<Object>'
at mergeConfigProperties (/home/jade/dev/coc.nvim/src/configuration/util.ts:145:16)
at Function.getConfiguredSettings (/home/jade/dev/coc.nvim/src/language-client/configuration.ts:212:12)
at didChangeConfiguration (/home/jade/dev/coc.nvim/src/language-client/configuration.ts:199:67)
at SyncConfigurationFeature.onDidChangeConfiguration (/home/jade/dev/coc.nvim/src/language-client/configuration.ts:203:96)
at SyncConfigurationFeature.register (/home/jade/dev/coc.nvim/src/language-client/configuration.ts:162:12)
at SyncConfigurationFeature.initialize (/home/jade/dev/coc.nvim/src/language-client/configuration.ts:143:12)
at LanguageClient.initializeFeatures (/home/jade/dev/coc.nvim/src/language-client/client.ts:1531:15)
at LanguageClient.doInitialize (/home/jade/dev/coc.nvim/src/language-client/client.ts:1075:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at LanguageClient._start (/home/jade/dev/coc.nvim/src/language-client/client.ts:835:7)
Reproduce the bug
vimrc:
set nocompatible
set runtimepath^=/home/jade/.local/share/nvim/site/pack/packer/start/coc.nvim
filetype plugin indent on
syntax on
set hidden
run with nvim --clean -u minimal.vim, then open a haskell file.
Screenshots (optional)
If applicable, add screenshots to help explain your problem.
Result from CocInfo
CocInfo
``` ## versions vim version: NVIM v0.10.0-dev-1254+g386bc23e43 node version: v21.6.1 coc.nvim version: 0.0.82-master coc.nvim directory: /home/jade/dev/coc.nvim term: alacritty platform: linux ## Log of coc.nvim 2024-02-05T21:37:13.421 INFO (pid:2935688) [configurations] - Add folder configuration from cwd: /home/jade/.dotfiles/programs/hsutils/.vim/coc-settings.json 2024-02-05T21:37:13.591 INFO (pid:2935688) [plugin] - coc.nvim initialized with node: v21.6.1 after 215 2024-02-05T21:37:24.421 INFO (pid:2935688) [services] - LanguageClient haskell state change: stopped => starting 2024-02-05T21:37:24.437 INFO (pid:2935688) [language-client-index] - Language server "languageserver.haskell" started with 2935707 2024-02-05T21:37:24.487 INFO (pid:2935688) [core-watchman] - watchman watching project: /home/jade/.dotfiles/programs/hsutils 2024-02-05T21:37:27.684 INFO (pid:2935688) [services] - LanguageClient haskell state change: starting => running 2024-02-05T21:37:27.691 ERROR (pid:2935688) [language-client-client] - Server languageserver.haskell initialization failed. TypeError: Cannot assign to read only property 'formattingProvider' of object '#Describe the bug
When my language server is started, with the following configuration in
~/.config/nvim/coc-settings.json
, and a conflicting workspace configuration, it fails to start due to Coc throwing an exception.global config:
workspace config (
.vim/coc-settings.json
):Relative to commit: 9c079ad79d66d4ede7886cc4094a822352559502; Here is a resolved stacktrace using source maps.
Reproduce the bug
vimrc:
run with
nvim --clean -u minimal.vim
, then open a haskell file.Screenshots (optional)
If applicable, add screenshots to help explain your problem.