zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.49k stars 2.77k forks source link

Auto-completion does not work for js/ts #4278

Open Dhruveren opened 8 months ago

Dhruveren commented 8 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

When try to auto complete symbols , no auto completion menu is being popped up . It just shows that downloading javascript language server after that completion happens . I have also tried this on the preview 0.119.4 , but same problem was arising .

Environment

Zed: v0.118.1 (Zed) OS: macOS 14.2.1 Memory: 8 GiB Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

No response

Dhruveren commented 8 months ago

No language server file has been found inside the javascript/typescript language server .

maciej-trebacz commented 8 months ago

I have the same issue. json/tailwindcss/typescript language server directories under Zed/languages are empty. Here's my log: zed.log

fm1randa commented 8 months ago

I was having the same issue, but I could fix it!

Have you tried one of both? https://github.com/zed-industries/zed/issues/4628#issuecomment-1908628110 https://github.com/zed-industries/zed/issues/4628#issuecomment-1908628375

maciej-trebacz commented 8 months ago

@fm1randa Thanks for the links, the second one did the trick for me, I indeed had some stray package.json & yarn.lock files in my home directory, removing them solved the issue!

trivikr commented 1 month ago

It looks like this issue is can be closed.