Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to get deno lsp to work #64

Closed
Superpat opened this issue Nov 16, 2023 · 1 comment
Closed

Trying to get deno lsp to work #64

Superpat opened this issue Nov 16, 2023 · 1 comment

Comments

@Superpat
Copy link

I tried to get the typescript language server from deno to work.

L fmt on json files works great.

L ws works great

L syms in ts files returns No symbols found, other commands return similar issues.

Heres my config

WorkspaceDirectories = [
	"/home/patrick/jsapp/"
]

FormatOnPut = true
CodeActionsOnPut = ["source.organizeImports"]

[Servers]
	[Servers.deno]
	Command = ["deno", "lsp"]
	StderrFile = "deno.stderr.log"
	LogFile = "deno.log"

[[FilenameHandlers]]
  Pattern = "\\.jsx$"
  LanguageID = "javascriptreact"
  ServerKey = "deno"

[[FilenameHandlers]]
  Pattern = "\\.js$"
  LanguageID = "javascript"
  ServerKey = "deno"

[[FilenameHandlers]]
  Pattern = "\\.ts$"
  LanguageID = "typescript"
  ServerKey = "deno"

[[FilenameHandlers]]
  Pattern = "\\.vue$"
  LanguageID = "typescript"
  ServerKey = "deno"

[[FilenameHandlers]]
  Pattern = "\\.tsx$"
  LanguageID = "typescriptreact"
  ServerKey = "deno"

[[FilenameHandlers]]
  Pattern = "\\.json$"
  LanguageID = "json"
  ServerKey = "deno"

Not much to see with -v

patrick@atreides:~$ acme-lsp -v
2023/11/15 20:28:53 proxy: jsonrpc2 connection disconnected
2023/11/15 20:28:54 proxy: jsonrpc2 connection disconnected

Server does seem to start correctly though:

patrick@atreides:~$ cat .cache/acme-lsp/deno.stderr.log 
Starting Deno language server...
  version: 1.37.2 (release, x86_64-unknown-linux-gnu)
  executable: /snap/deno/120/deno
Server ready.
patrick@atreides:~$ cat .cache/acme-lsp/deno.log 
patrick@atreides:~$ 
@Superpat
Copy link
Author

Turns out I was using an old acme-lsp incantation from before I wrote the conf file. I got it working with the standard typescript server, havent tried deno again yet. But I'll report back when I do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant