Giter VIP home page Giter VIP logo

Comments (7)

seagle0128 avatar seagle0128 commented on May 14, 2024

Can you please provide more details? like OS, Emacs version, steps, backtrace, warnings and/or messages, etc.?

It does work well in my macbook pro. How did you jump to definition? M-. or M-x lsp-ui-peek-find-definitions?

If it doesn't work yet, please try this config.

(setq lsp-clients-typescript-server "typescript-language-server"
      lsp-clients-typescript-server-args '("--stdio"))

and

npm install -g typescript-language-server

from .emacs.d.

wildneuro avatar wildneuro commented on May 14, 2024

Thanks for the reply!

If I'm using lsp-ui-peek-find-definitions. It's constantly keep saying:
Not found for: {{ function name }}.

When I'm using: C-x C-j, I'm getting:

Symbol's function definition is void: inferior-moz-process.

If I'm adding this:

(setq lsp-clients-typescript-server "typescript-language-server"
      lsp-clients-typescript-server-args '("--stdio"))

no effect.

M-. points to the same. All is default.

By the way, it does work for the current file (jumps around just fine). But, when trying to resolve outside of the current file, getting errors.

from .emacs.d.

seagle0128 avatar seagle0128 commented on May 14, 2024

I think it should be related to your configurations and lsp. DId you restart the LSP with typescript-language-server? Seems the LSP cannot index the symbols of other files. All files should be in the project. You can inquiry to LSP developers.

from .emacs.d.

wildneuro avatar wildneuro commented on May 14, 2024

Did try that. Didn't work either. Also found, that LSP consumes 40% on my Mac, can please advice?

from .emacs.d.

wildneuro avatar wildneuro commented on May 14, 2024

When doing:

(setq lsp-clients-typescript-server "typescript-language-server"
      lsp-clients-typescript-server-args '("--stdio"))

Getting next errors:

如果中英文不能对齐,请运行‘cnfonts-edit-profile’编辑当前profile。
LSP :: Connected to [ts-ls:52150 status:starting].
Error in menu-bar-update-hook (imenu-update-menubar): (error "No workspace could handle textDocument/documentSymbol")
Error from the Language Server: Request initialize failed with message: Couldn’t find ’tsserver’ executable or ’tsserver.js’ module (Internal Error)

from .emacs.d.

seagle0128 avatar seagle0128 commented on May 14, 2024

It seems LSP server is not installed correctly. Please check tsserver.

from .emacs.d.

wildneuro avatar wildneuro commented on May 14, 2024

You right! I reinstalled tsserver and it fixed. THANKS!

npm install -g --save typescript

and then, added this to custom.el:

(setq lsp-clients-typescript-server "typescript-language-server"
      lsp-clients-typescript-server-args '("--stdio"))

from .emacs.d.

Related Issues (20)

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.