Created
August 27, 2023 15:33
-
-
Save kashewnuts/306f8692109505d3152615b7f94a7ce4 to your computer and use it in GitHub Desktop.
coc-prettierがあるとPythonファイルを開いたときにエラーになったのでログを残す
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim version: VIM - Vi IMproved 9.0 9001677 | |
node version: v18.17.1 | |
coc.nvim version: 0.0.82-3dc6153a 2023-07-21 00:22:17 -0500 | |
coc.nvim directory: /Users/kashew/.cache/plugged/coc.nvim | |
term: vscode | |
platform: darwin | |
## Log of coc.nvim | |
2023-08-28T00:20:49.956 INFO (pid:54406) [extension:coc-git] - Looking for git in: git | |
2023-08-28T00:20:50.047 INFO (pid:54406) [plugin] - coc.nvim initialized with node: v18.17.1 after 236 | |
2023-08-28T00:20:51.297 INFO (pid:54406) [attach] - receive notification: doAutocmd [ 1, 2 ] | |
2023-08-28T00:20:52.013 INFO (pid:54406) [attach] - receive notification: doAutocmd [ 2, 2 ] | |
2023-08-28T00:20:52.014 INFO (pid:54406) [attach] - receive notification: doAutocmd [ 1, 1 ] | |
2023-08-28T00:20:52.014 INFO (pid:54406) [attach] - receive notification: doAutocmd [ 2, 1 ] | |
2023-08-28T00:20:52.205 INFO (pid:54406) [services] - LanguageClient Pyright Server state change: stopped => starting | |
2023-08-28T00:20:52.210 INFO (pid:54406) [attach] - receive notification: highlight [] | |
2023-08-28T00:20:52.217 ERROR (pid:54406) [server] - unhandledRejection Promise { | |
<rejected> TypeError: Cannot read properties of undefined (reading 'forEach') | |
at PrettierEditService.getSelectors (/Users/kashew/.config/coc/extensions/node_modules/coc-prettier/lib/index.js:4439:18) | |
at PrettierEditService.handleActiveTextEditorChanged (/Users/kashew/.config/coc/extensions/node_modules/coc-prettier/lib/index.js:4411:36) | |
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) | |
} TypeError: Cannot read properties of undefined (reading 'forEach') | |
at PrettierEditService.getSelectors (/Users/kashew/.config/coc/extensions/node_modules/coc-prettier/lib/index.js:4439:18) | |
at PrettierEditService.handleActiveTextEditorChanged (/Users/kashew/.config/coc/extensions/node_modules/coc-prettier/lib/index.js:4411:36) | |
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) | |
2023-08-28T00:20:52.221 INFO (pid:54406) [language-client-index] - Language server "pyright" started with 54448 | |
2023-08-28T00:20:52.283 INFO (pid:54406) [attach] - receive notification: doAutocmd [ 6 ] | |
2023-08-28T00:20:52.355 INFO (pid:54406) [services] - LanguageClient Pyright Server state change: starting => running | |
2023-08-28T00:20:52.357 INFO (pid:54406) [services] - service pyright started | |
2023-08-28T00:20:54.273 INFO (pid:54406) [attach] - receive notification: highlight [] | |
2023-08-28T00:20:55.225 INFO (pid:54406) [attach] - receive notification: highlight [] | |
2023-08-28T00:20:58.299 INFO (pid:54406) [attach] - receive notification: showInfo [] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
coc-pyrightを削除しても同様なのでcoc-prettierが原因っぽい。