zed icon indicating copy to clipboard operation
zed copied to clipboard

IntelliSense / auto-complete not working

Open davidruisinger opened this issue 1 year ago • 7 comments
trafficstars

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

  • Auto-complete not working
  • Go to definition (CMD + click) not working

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

davidruisinger avatar Feb 01 '24 09:02 davidruisinger

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

davemaier avatar Feb 01 '24 15:02 davemaier

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.

chris-plato avatar Feb 01 '24 22:02 chris-plato

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?

JosephTLyons avatar Feb 02 '24 03:02 JosephTLyons

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

davemaier avatar Feb 02 '24 07:02 davemaier

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

davidruisinger avatar Feb 02 '24 08:02 davidruisinger

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.

tngan avatar Feb 03 '24 03:02 tngan

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

davemaier avatar Feb 03 '24 21:02 davemaier

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

shellscape avatar Feb 08 '24 15:02 shellscape

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

Same for me. Working with the latest update 🙌🏻

davidruisinger avatar Feb 09 '24 08:02 davidruisinger

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

chris-plato avatar Jun 25 '24 23:06 chris-plato

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

Bishwas-py avatar Jun 28 '24 11:06 Bishwas-py

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 🙇

chris-plato avatar Aug 09 '24 13:08 chris-plato

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

JohnGalt1717 avatar Aug 12 '24 18:08 JohnGalt1717