manateelazycat / lsp-bridge

A blazingly fast LSP client for Emacs
GNU General Public License v3.0
1.44k stars 208 forks source link

Error when using volar #311

Closed Joxos closed 2 years ago

Joxos commented 2 years ago

System: Windows 11 emacs -Q and eval codes below:

;; straight.el
;; ensure that straight.el is installed
(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
      (bootstrap-version 5))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
     "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))
;; install use-package
(straight-use-package 'use-package)

;; lsp-bridge
(use-package posframe :straight t)
(use-package yasnippet
  :straight t
  :config
  (yas-global-mode 1)
  (yas-reload-all))
(use-package markdown-mode
  :straight t
  :mode ("README\\.md\\'" . gfm-mode)
  :init (setq markdown-command "multimarkdown"))
(add-to-list 'load-path "~/.emacs.d/lsp-bridge/")
(require 'lsp-bridge)
(global-lsp-bridge-mode)

;; web-mode
(use-package web-mode
  :straight t
  :config
  (add-to-list 'auto-mode-alist '("\\.vue\\'" . web-mode)))

Then open a vue file and see *lsp-bridge*. I found this when opening bar.vue: image

Note that I have tried to install and uninstall orjson but I can't get rid of it.

manateelazycat commented 2 years ago

I have send https://github.com/manateelazycat/lsp-bridge/commit/9ff5e9aa9791495f63f55710b6e34454afffe6ca try to fix this issue.

Joxos commented 2 years ago

That doesn't work for me. Still the problem is. Please take a look at it again. Thanks!

manateelazycat commented 2 years ago

这个bug看起来非常像 Windows 系统编码环境引起的问题, 不太可能是 lsp-bridge 的问题。