emacs-lsp / lsp-treemacs

lsp-mode :heart: treemacs
GNU General Public License v3.0
403 stars 48 forks source link

lsp-treemacs-symbols No symbol-information #81

Open giorgioUnimi opened 3 years ago

giorgioUnimi commented 3 years ago

I'am new to emacs and I'am studying it . I am trying to use treemacs with typescript ,js files. Treemacs it works well in the vision of the project but if I ask it to show me the variables and functions of a react class it returns "No symbol information". To see the variables and functions of a react class I use lsp-treemacs-symbols. So before I go to the project using treemacs-switch-workspace and then I do lsp-treemacs-symbols but on every class I go I obtain always No symbol information. Is there a guide to use tremmacs symbols with react and typescript ?

yyoncho commented 3 years ago

Do you have lsp running the JS buffer?

giorgioUnimi commented 3 years ago

Thanks in advance for your support. I find treemacs very useful and emacs fantastic but for me a little complicated. I am attaching the init.el configuration file. The lsp tsserver starts when I open a tsx or jsx or js file. I can browse between code and both indent and higlight of the code work.

(if (file-exists-p (concat tide-project-root "node_modules/typescript/bin/tsserver"))

(setq tide-tsserver-executable "node_modules/typescript/bin/tsserver"))

Da: Ivan Yonchovski notifications@github.com Inviato: giovedì 3 dicembre 2020 16:58 A: emacs-lsp/lsp-treemacs lsp-treemacs@noreply.github.com Cc: giorgioUnimi giorgio.galassi@unimi.it; Author author@noreply.github.com Oggetto: Re: [emacs-lsp/lsp-treemacs] lsp-treemacs-symbols No symbol-information (#81)

Do you have lsp running the JS buffer?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/emacs-lsp/lsp-treemacs/issues/81#issuecomment-738100824 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AANEGGGXDNIOCVTJ4CLIMH3SS6YRVANCNFSM4UMCQFTA .