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.16k stars 2.72k forks source link

expected ';', found 'ILLEGAL'syntax #9406

Closed david34corbalan closed 3 months ago

david34corbalan commented 6 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Hello, I don't know if there is an issue, but I think the linter for GoLang is not working correctly. comparate zed (left) - vsc (right) image

Environment

Zed: v0.126.2 (Zed) OS: macOS 14.3.1 Memory: 32 GiB Architecture: x86_64

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.

No response

mrnugget commented 6 months ago

Hey! Can you open the language server logs (debug: open language server logs), select gopls and see if there's any errors in there?

mrnugget commented 6 months ago

Also: which one is supposed to be Zed? The left one? Because I think the error message is wrong, right? There's no ; in Go.

david34corbalan commented 6 months ago

I'm sorry, but I don't see the errors in the editor; for example, in VSC, errors are shown on the line. also in golang there's no ";" image

debug: open language server logs: 2024/03/15 14:21:58 background refresh finished after 104.78539ms 2024/03/15 14:23:54 imports fixes: AllImportsFixes: /api/src/campaigns/services/excelize.go:102:17: expected ';', found 'ILLEGAL' (and 3 more errors) file="/api/src/campaigns/services/excelize.go"

mrnugget commented 6 months ago

Do you have any special configuration for Go? Any linters? Gopls configuration? Can you reproduce this in a new file?

mrnugget commented 3 months ago

Closing this due to inactivity. Happy to reopen if issue still persists.