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
49.56k stars 3.04k forks source link

IntelliSense / auto-complete not working #7198

Closed davidruisinger closed 9 months ago

davidruisinger commented 9 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Fresh install using the following settings:

{
  "telemetry": {
    "diagnostics": false,
    "metrics": false
  },
  "base_keymap": "VSCode",
  "theme": "One Dark",
  "vim_mode": false,
  "ui_font_size": 16,
  "buffer_font_size": 16,
  "tabs": {
    "git_status": true,
  },
}

Environment

Zed: v0.120.5 (Zed) OS: macOS 14.2.1 Memory: 32 GiB Architecture: aarch64

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

Comparison with VSCode autocomplete

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.

Zed.log

davemaier commented 9 months ago

I have the same Issue. Downloaded zed for the first time today and could not get this working.

chris-plato commented 9 months ago

I believe I also have the same issue:

https://github.com/zed-industries/zed/assets/102544583/4a037a62-7b3f-4634-b910-8a788f74fde5

My expectation being that . is sufficient to populate the list of predictions.

JosephTLyons commented 9 months ago

Hey all, are any of you seeing any errors in the status bar (at the bottom) related to language servers not installing? Do you see any status messages at all when opening these files?

davemaier commented 9 months ago

This is what I see in the status bar every time I start zed. If I open a file in another language I see the exactly same thing with the language server of the other language.

https://github.com/zed-industries/zed/assets/3687869/b0d8a040-e9ff-47eb-beef-5f654ca7fc93

davidruisinger commented 9 months ago

Hey all, are any of you seeing any errors in the status bar (at the bottom) related to language servers not installing? Do you see any status messages at all when opening these files? I also see some update checks and downloading of language server but seems to be successful

Screenshot 2024-02-02 at 09 40 52
tngan commented 9 months ago

I have found a workaround to get rids of this. I found the language server is not installed properly under the languages folder.

  1. Quit zed application
  2. Remove the typescript-language-server under ~Library/Application Support/Zed/languages
  3. Install manually by git clone https://github.com/typescript-language-server/typescript-language-server.git and run npm install
  4. Re-open zed

then you can use the autocomplete, but it is still rather slow.

davemaier commented 9 months ago

I just noticed that I had a packages.json file in my home directory and that zed had installed the lsp into the home directory. Removing the package.json (and node_modules and package-lock.json). And then restarting zed fixed the problem for me. Found this solution here: https://github.com/zed-industries/zed/issues/4628#issuecomment-1908628375

shellscape commented 9 months ago

For those watching this issue, v0.122.1 seems to have fixed this in my projects

davidruisinger commented 9 months ago

For those watching this issue, v0.122.1 seems to have fixed this in my projects

Same for me. Working with the latest update 🙌🏻

chris-plato commented 4 months ago

Is this considered a different issue?: https://github.com/zed-industries/zed/issues/7198#issuecomment-1922438299

It has been months and yet this still does not work properly in Zed 0.140.5

Bishwas-py commented 4 months ago

For elixir, auto complete suddenly stops working. Zed dev 0.142.0, fedora

chris-plato commented 3 months ago

Not sure what to do here, I started to create a new issue by the same name, because the title for this well describes my issue; however then I read:

Check the backlog of issues to reduce the chances of creating duplicates; if an issue already exists, place a +1 (👍) on it.

This leads me to think I should just drop yet another comment on this issue.

I have recently gotten a new macbook, and this problem still plagues me: https://github.com/zed-industries/zed/issues/7198#issuecomment-1922438299

If you decide what to work on by number of 👍 emojis, atm my comment has 5 thumbs up, whereas the original report only has 4, and that's including mine...

I keep trying Zed, hoping to adopt it as my main editor, but stuff like this is too disruptive to ignore.

Please let me know if I should create a whole new issue for this, or if this is sufficient 🙇

JohnGalt1717 commented 2 months ago

This isn't working in the latest version using C#.

wagnrd commented 2 months ago

I am experiencing the same issue with the Typescript LSP. However, this only seems to happen when typing either a single character or very quickly. On hover you get the info, though. This behaviour is consistent throughout any project using Typescript (Next.js, Svelte Kit, Node). Tested on MacOS and Linux with 4 different machines.

ezgif com-video-to-gif-converter

LSP: Typescript OS: MacOS 14.6.1 M1 and Linux Fedora 40 Version: Zed Preview 0.148

SharafatKarim commented 2 months ago

Using zed 0.149.5 on Arch Linux, and not working at all. Even auto complete in it's own setting isn't working.

afonsomatos commented 2 months ago

I don't have autocomplete either, and using Typescript.

branila commented 2 months ago

I have the exact same issue with the latest version of zed on arch linux

rxnma commented 2 months ago

Same here when using Typescript. [OS: MacOS 14.6.1 M1, Zed: 0.149.5 ]

finnar-bin commented 2 months ago

Just experienced a similar issue with typescript as well. Over time the lsp seems to gradually bog down and eventually just stopping to provide autocompletions and other functionality. Had to manually restart the lsp and it seem to have resolved the issue. I'll keep an eye out if it starts to slow down again.

Edit: I just noticed that this issue only seems to happen on relatively big projects. I tried working on my small personal react-native project and I haven't encountered any of the problems I mentioned above.

OS: PopOS 22.04 Zed: 0.149.5

hermann-p commented 2 months ago

Same here, not autocomplete, no eslint, no prettier. Is there a way to show zed's logs/errors?

NixOS 24.05 Zed 0.149.6

hermann-p commented 2 months ago

Same here, not autocomplete, no eslint, no prettier. Is there a way to show zed's logs/errors?

NixOS 24.05 Zed 0.149.6

Ok, I'll take it back. Zed does simply not pick up existing language servers from $PATH, so on nix you have to use a workaround and launch it from an FHS-environment so it will install its own lsp-servers.

LeilaVerbeeck commented 2 months ago

Autocomplete also doesn't work for me

Edit: When I check the LSP logs, I can see for example the tailwind lsp start up properly but the phpactor server logs are empty.

OS: Fedora 40 Zed 0.150.4

SharafatKarim commented 2 months ago

Edit: When I check the LSP logs, I can see for example the tailwind lsp start up properly but the phpactor server logs are empty.

Can you please tell me how to do so? So that I can try myself.

DemianAvila commented 1 month ago

Linting and autocomplete is not working with golang

OS: Debian GNU/Linux 12 (bookworm) x86_64 Zed: 0.152.3

koknese commented 1 month ago

Linting and autocomplete is not working with golang

OS: Debian GNU/Linux 12 (bookworm) x86_64 Zed: 0.152.3

Same issue here but with TS, JS and Python, C works though

Arch Linux x86_64 Zed 0.152.4-1

albertdugba commented 3 weeks ago

I'm also having the same issue

nicolascavallin commented 19 hours ago

Same issue with 0.160.7