Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliSense / auto-complete not working #7198

Closed
1 task done
davidruisinger opened this issue Feb 1, 2024 · 29 comments
Closed
1 task done

IntelliSense / auto-complete not working #7198

davidruisinger opened this issue Feb 1, 2024 · 29 comments
Labels
bug [core label] language server failure Language server doesn't work as expected language server An umbrella label for all language servers language An umbrella label for all programming languages syntax behaviors

Comments

@davidruisinger
Copy link

davidruisinger commented Feb 1, 2024

Check for existing issues

  • 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 davidruisinger added admin read Pending admin review bug [core label] triage Maintainer needs to classify the issue labels Feb 1, 2024
@davemaier
Copy link

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

@chris-plato
Copy link

I believe I also have the same issue:

Screen.Recording.2024-02-01.at.4.55.43.PM.mov

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

@JosephTLyons JosephTLyons added language An umbrella label for all programming languages syntax behaviors language server failure Language server doesn't work as expected language server An umbrella label for all language servers and removed triage Maintainer needs to classify the issue admin read Pending admin review bug [core label] labels Feb 2, 2024
@JosephTLyons
Copy link
Collaborator

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
Copy link

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.

Screen.Recording.2024-02-02.at.08.17.27.mov

@davidruisinger
Copy link
Author

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
Copy link

tngan commented Feb 3, 2024

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
Copy link

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: #4628 (comment)

@shellscape
Copy link

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

@davidruisinger
Copy link
Author

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
Copy link

Is this considered a different issue?:
#7198 (comment)

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

@Bishwas-py
Copy link

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

@chris-plato
Copy link

chris-plato commented Aug 9, 2024

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:
#7198 (comment)

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
Copy link

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

@wagnrd
Copy link

wagnrd commented Aug 23, 2024

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
Copy link

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
Copy link

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

@branila
Copy link

branila commented Aug 26, 2024

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

@rxnma
Copy link

rxnma commented Aug 26, 2024

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

@finnar-bin
Copy link

finnar-bin commented Aug 27, 2024

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
Copy link

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
Copy link

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
Copy link

LeilaVerbeeck commented Aug 30, 2024

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
Copy link

SharafatKarim commented Aug 31, 2024

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
Copy link

Linting and autocomplete is not working with golang

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

@koknese
Copy link

koknese commented Sep 18, 2024

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
Copy link

I'm also having the same issue

@nicolascavallin
Copy link

Same issue with 0.160.7

@RomanMIzulin
Copy link

after update to 0.162.5 my python pyright previously perfectly working config got broken

@jamshid17
Copy link

after update to 0.162.5 my python pyright previously perfectly working config got broken

Can you share your pyright config? I am having the same issue on mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [core label] language server failure Language server doesn't work as expected language server An umbrella label for all language servers language An umbrella label for all programming languages syntax behaviors
Projects
None yet
Development

No branches or pull requests