You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using Prelude emacs. To install emacs-prisma-mode I added the two .el files (ie, lsp-prisma.el and prisma-mode.el) into .emacs.d/vendor folder, which the docs say "Any code that you place here will be available via require." So then in the Prelude-equivalent of init.el I added
I'm using emacs-nativecomp version 29.4 on EndeavourOS (based on Arch Linux). I get the following warnings when opening the prisma.schema file in my project.
⛔ Warning (treesit): Cannot activate tree-sitter, because language grammar for prisma is unavailable (not-found): (libtree-sitter-prisma libtree-sitter-prisma.0 libtree-sitter-prisma.0.0 libtree-sitter-prisma.so libtree-sitter-prisma.so.0 libtree-sitter-prisma.so.0.0) No such file or directory
⛔ Warning (treesit): Cannot activate tree-sitter, because language grammar for prisma is unavailable (not-found): (libtree-sitter-prisma libtree-sitter-prisma.0 libtree-sitter-prisma.0.0 libtree-sitter-prisma.so libtree-sitter-prisma.so.0 libtree-sitter-prisma.so.0.0) No such file or directory
⛔ Warning (lsp-mode): Unable to calculate the languageId for buffer ‘schema.prisma’. Take a look at ‘lsp-language-id-configuration’. The ‘major-mode’ is prisma-ts-mode
Then, I got asked in the minibuffer Unable to find installed server supporting this file. The following servers could be installed automatically: prismals. If I proceed, I get the following buffer.
-*- mode: compilation; default-directory: "~/code/react/upa-pos/prisma/" -*-
Comint started at Sat Aug 3 23:33:43
~/.nvm/versions/node/v21.6.2/bin/npm -g --prefix ~/.emacs.d/.cache/lsp/npm/\@prisma/language-server install \@prisma/language-server
added 16 packages in 7s
This makes me think that @prisma/language-server was installed globally at ~/.emacs.d/.cache/lsp/npm/, despite the fact that it was installed locally in my project, ie you can find it in ./node_modules/.bin/prisma-language-server. Why isn't emacs-prisma-mode able to use the one installed locally, like the Typescript LSP serverdoes?
After restarting emacs, I got asked a question about importing the project root, which I did. Now syntax highlighting and indentation work. However, as soon as I type anything into the buffer, I get in the minibuffer the prompt Server prismals:264102 exited (check corresponding stderr buffer for details). Do you want to restart it? (y or n). If I press y, I get the same prompt again. If I press n, I cat go check the stderr buffer which contains the following.
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: ENOENT: no such file or directory, stat '/home/rhz/code/react/upa-pos/prisma/.#schema.prisma'] {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/home/rhz/code/react/upa-pos/prisma/.#schema.prisma'
}
Node.js v21.6.2
Process prismals stderr finished
After that, the mode line in the schema.prisma buffer says LSP[Disconnected].
The text was updated successfully, but these errors were encountered:
Hi, I'm using Prelude emacs. To install
emacs-prisma-mode
I added the two.el
files (ie,lsp-prisma.el
andprisma-mode.el
) into.emacs.d/vendor
folder, which the docs say "Any code that you place here will be available viarequire
." So then in the Prelude-equivalent ofinit.el
I addedI'm using
emacs-nativecomp
version29.4
on EndeavourOS (based on Arch Linux). I get the following warnings when opening theprisma.schema
file in my project.Then, I got asked in the minibuffer
Unable to find installed server supporting this file. The following servers could be installed automatically: prismals
. If I proceed, I get the following buffer.This makes me think that
@prisma/language-server
was installed globally at~/.emacs.d/.cache/lsp/npm/
, despite the fact that it was installed locally in my project, ie you can find it in./node_modules/.bin/prisma-language-server
. Why isn'temacs-prisma-mode
able to use the one installed locally, like the Typescript LSP server does?After restarting emacs, I got asked a question about importing the project root, which I did. Now syntax highlighting and indentation work. However, as soon as I type anything into the buffer, I get in the minibuffer the prompt
Server prismals:264102 exited (check corresponding stderr buffer for details). Do you want to restart it? (y or n)
. If I pressy
, I get the same prompt again. If I pressn
, I cat go check the stderr buffer which contains the following.After that, the mode line in the
schema.prisma
buffer saysLSP[Disconnected]
.The text was updated successfully, but these errors were encountered: