williamboman / nvim-lsp-installer

Further development has moved to https://github.com/williamboman/mason.nvim!
https://github.com/williamboman/mason.nvim
Apache License 2.0
2k stars 123 forks source link

Svelte server Issue inside script tag #698

Closed idr4n closed 2 years ago

idr4n commented 2 years ago

Problem description

Hi,

I'm just trying to set up Svelte in Neovim but the server does not work inside the script tag neither for JavaScript not TypeScript. I don't get autocompletion or help on hover, for example. Also, when choosing lang=ts I get the error svelte: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer. initialize({ 'lib/mappings. wasm':.) before using SourceMapConsumer

Outside the script tag, the server seems to work without issues for both the HTML and style portions.

I have tried the same application in SublimeText and VSCode, and the server works without issues even inside the script tag. I also tried configuring the server without nvim-lsp-installer following Nvim's lspconfig documentation but I get exactly the same issue.

Below is a short video that highlights the problem

https://user-images.githubusercontent.com/20104703/168334984-2613f417-5270-4b29-aa77-2101c5e2abc5.mp4

Why do you think this is an issue with nvim-lsp-installer?

I don't think is an issue with nvim-lsp-installer but I will appreciate any help in pointing me in the right direction on how to solve it.

Neovim version (>= 0.6)

NVIM v0.8.0-dev+181-ga2d4b862f Build type: Release LuaJIT 2.1.0-beta3

Operating system/version

(MacOS 12.3.1) Darwin ... Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64

I've recently downloaded the latest plugin version of both nvim-lsp-installer and nvim-lspconfig

Affected language servers

Svelte

Steps to reproduce

This is happening in any .svelte file.

Actual behavior

The server does not work inside the script tag.

Expected behavior

The server should work inside the script tag for completion, help on hover, etc.

LspInfo

Language client log: /Users/iduran/.cache/nvim/lsp.log
 Detected filetype:   svelte

 1 client(s) attached to this buffer: 

 Client: svelte (id: 1, pid: 90613, bufnr: [11])
    filetypes:       svelte
    autostart:       true
    root directory:  /Users/iduran/pCloud/Dev/Svelte-Apps/my-attendance-app
    cmd:             svelteserver --stdio

 Configured servers list: gopls, vimls, tsserver, emmet_ls, cssls, bashls, html, pyright, jsonls, svelte, rust_analyzer, sumneko_lua

### Healthcheck

```shell
nvim-lsp-installer: require("nvim-lsp-installer.health").check()
========================================================================
## nvim-lsp-installer report
  - OK: neovim version >= 0.7.0
  - WARNING: **Composer**: not available
  - WARNING: **julia**: not available
  - OK: **gzip**: `Apple gzip 353.100.22`
  - OK: **curl**: `curl 7.79.1 (x86_64-apple-darwin21.0) libcurl/7.79.1 (SecureTransport) LibreSSL/3.3.5 zlib/1.2.11 nghttp2/1.45.1`
  - OK: **python3**: `Python 3.9.12`
  - OK: **node**: `v18.0.0`
  - OK: **Ruby**: `ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]`
  - OK: **bash**: `GNU bash, version 3.2.57(1)-release (arm64-apple-darwin21)`
  - OK: **tar**: `bsdtar 3.5.1 - libarchive 3.5.1 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.8 `
  - OK: **sh**: `Ok`
  - OK: **Go**: `go version go1.18.2 darwin/arm64`
  - OK: **wget**: `GNU Wget 1.21.3 built on darwin21.3.0.`
  - OK: **cargo**: `cargo 1.59.0 (49d8809dc 2022-02-10)`
  - OK: **RubyGem**: `3.0.3.1`
  - OK: **npm**: `8.10.0`
  - OK: **java**: `Ok`
  - OK: **javac**: `javac 17.0.1`
  - OK: **pip3**: `pip 22.0.4 from /opt/homebrew/lib/python3.9/site-packages/pip (python 3.9)`
  - OK: **PHP**: `PHP 8.1.5 (cli) (built: Apr 16 2022 00:03:52) (NTS)`


### Screenshots or recordings

_No response_
idr4n commented 2 years ago

Issue has been resolved in the latest server update. Thanks in any case!