Giter Club home page Giter Club logo

Comments (13)

pantharshit00 avatar pantharshit00 commented on September 26, 2024 3

@jvanbaarsen Run :CocUpdate now, the fix should be live

from coc-prisma.

pantharshit00 avatar pantharshit00 commented on September 26, 2024 1

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.

johnpyp avatar johnpyp commented on September 26, 2024 1

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.

pantharshit00 avatar pantharshit00 commented on September 26, 2024

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.

dotangad avatar dotangad commented on September 26, 2024

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.

pantharshit00 avatar pantharshit00 commented on September 26, 2024

@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.

dotangad avatar dotangad commented on September 26, 2024

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.

pantharshit00 avatar pantharshit00 commented on September 26, 2024

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.

jvanbaarsen avatar jvanbaarsen commented on September 26, 2024

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.

dotangad avatar dotangad commented on September 26, 2024

I updated the extension and I'm still facing the same problems as @jvanbaarsen.

from coc-prisma.

jvanbaarsen avatar jvanbaarsen commented on September 26, 2024

@johnpyp Would there be an easy way to use your PR to check it out?

from coc-prisma.

pantharshit00 avatar pantharshit00 commented on September 26, 2024

Thanks @johnpyp

I will release the fix asap after verifying it. Sorry for the delay everyone, I got sick last weekend.

from coc-prisma.

pantharshit00 avatar pantharshit00 commented on September 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.