Comments (13)
@jvanbaarsen Run :CocUpdate
now, the fix should be live
from coc-prisma.
Hey @dotangad
I can also reproduce the problem now on a new machine, I will investigate and fix it over the weekend.
from coc-prisma.
Hi, I fixed this issue in #7. The issue was that the lsp expected a non-undefined value for a string configuration option, though an empty string works fine.
:CocCommand workspace.showOutput
helped me track down the issue more easily, as compared to the outputs above.
from coc-prisma.
Hey @dotangad
Can you please open .prisma
file and paste the output of :CocInfo
here. That would help in debugging this.
Mine looks like this:
## versions
vim version: NVIM v0.5.0-705-g9f704c88a
node version: v32.13.0
coc.nvim version: 0.0.79-d2a3186309
coc.nvim directory: C:\Users\panth\AppData\Local\nvim\plugged\coc.nvim
term: vtpcon
platform: win32
## Output channel: explorer
## Output channel: prettier
## Output channel: prisma
Binary test successful.
[Info - 12:55:09 PM] Installed version of Prisma binary 'prisma-fmt': a6a6ecba74cbaeee0756c312b1b0f2502b27e49c
[Info - 12:55:09 PM] Extension name @prisma/language-server with version 2.7.1
[Info - 12:55:09 PM] Prisma CLI version: 2.7.0-dev.61
from coc-prisma.
Hey Harshit, here's what I got -
## versions
vim version: NVIM v0.4.4
node version: v14.13.1
coc.nvim version: 0.0.79-6cb5c6cd2d
coc.nvim directory: /Users/angad/.config/nvim/plugged/coc.nvim
term: iTerm.app
platform: darwin
## Output channel: explorer
## Output channel: prettier
## Output channel: prisma
[Info - 1:19:03 pm] Default version of Prisma binary 'prisma-fmt': 369b3694b7edb869fad14827a33ad3f3f49bbc20
[Info - 1:19:03 pm] Extension name @prisma/language-server with version 2.9.0
[Info - 1:19:03 pm] Prisma CLI version: 2.9.0
from coc-prisma.
@dotangad Can you please try again? I have updated the language server and made a new release 0.4.0
. That might help.
from coc-prisma.
I uninstalled the extension (:CocUninstall coc-prisma
) an installed it again (:CocInstall coc-prisma
). This is my output from :CocInfo
-
## versions
vim version: NVIM v0.4.4
node version: v14.13.1
coc.nvim version: 0.0.79-6fc00f1a28
coc.nvim directory: /Users/angad/.config/nvim/plugged/coc.nvim
term: iTerm.app
platform: darwin
## Output channel: explorer
## Output channel: prettier
## Output channel: prisma
[Info - 5:54:31 pm] Default version of Prisma binary 'prisma-fmt': 369b3694b7edb869fad14827a33ad3f3f49bbc20
[Info - 5:54:31 pm] Extension name @prisma/language-server with version 2.9.0
[Info - 5:54:31 pm] Prisma CLI version: 2.9.0
[Error - 5:54:41 pm] Request textDocument/formatting failed.
Message: Request textDocument/formatting failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:48 pm] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:48 pm] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:48 pm] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:48 pm] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:49 pm] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:49 pm] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:50 pm] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:52 pm] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:53 pm] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:53 pm] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:53 pm] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:55 pm] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:57 pm] Request textDocument/completion failed.
Message: Request textDocument/completion failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:58 pm] Request textDocument/formatting failed.
Message: Request textDocument/formatting failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:54:59 pm] Request textDocument/formatting failed.
Message: Request textDocument/formatting failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:55:06 pm] Request textDocument/formatting failed.
Message: Request textDocument/formatting failed with message: Cannot read property 'length' of undefined
Code: -32603
[Error - 5:55:09 pm] Request textDocument/formatting failed.
Message: Request textDocument/formatting failed with message: Cannot read property 'length' of undefined
Code: -32603
from coc-prisma.
Hm, that is quite weird. We have some bug fixes which are coming in 2.10 with regarding to binary paths so I will post an update here when 2.10 will be available.
from coc-prisma.
I'm seeing the same problems, coc-prisma isn't really doing anything. Formatting for example is not working.
This is the output of cocinfo
:
## versions
vim version: NVIM v0.4.4
node version: v14.14.0
coc.nvim version: 0.0.79-c330912985
coc.nvim directory: /Users/jeroen/dotfiles/.vim/plugged/coc.nvim
term: Apple_Terminal
platform: darwin
## Log of coc.nvim
2020-10-28T10:18:53.511 INFO (pid:59988) [services] - registered service "eslint"
2020-10-28T10:18:53.537 INFO (pid:59988) [plugin] - coc.nvim 0.0.79-c330912985 initialized with node: v14.14.0 after 98ms
2020-10-28T10:18:55.879 INFO (pid:59988) [language-client-index] - prisma started with 60174
2020-10-28T10:19:31.525 INFO (pid:59988) [completion-complete] - Results from: around
2020-10-28T10:19:35.227 INFO (pid:59988) [completion-complete] - Results from: around
2020-10-28T10:19:37.585 INFO (pid:59988) [willSaveHandler] - Will save cost: 64
from coc-prisma.
I updated the extension and I'm still facing the same problems as @jvanbaarsen.
from coc-prisma.
@johnpyp Would there be an easy way to use your PR to check it out?
from coc-prisma.
Thanks @johnpyp
I will release the fix asap after verifying it. Sorry for the delay everyone, I got sick last weekend.
from coc-prisma.
Fix is available in version 0.5.1 (thanks again @johnpyp )
https://github.com/pantharshit00/coc-prisma/releases/tag/v0.5.1
from coc-prisma.
Related Issues (9)
- Expose formatting via a command HOT 1
- Broken configuration property "prismaLanguageServer.prismaFmtBinPath" HOT 11
- The preview feature "mongoDb" is not known HOT 2
- Does not seem to work longer HOT 7
- prisma server crashes HOT 9
- Formatting doesn't work for me HOT 5
- is there any better extension HOT 5
- # server crashes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coc-prisma.