golang / vscode-go

Go extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=golang.Go
Other
3.88k stars 752 forks source link

Syntax highlight is not working on Visual Studio Code or Cursor #3580

Open andergmartins opened 1 day ago

andergmartins commented 1 day ago

I've installed the official Go plugin, closed and reopened the IDE and it is still not working.

I've tried with the default theme on both VSCode and Cursor. All the other plugins are disabled.

The editor is recognizing the file as a Go file. I can confirm that in the status bar.

Please, what info do you need to help me to debug this?

Plugin

v0.42.1

Cursor

Version: 0.42.3 VSCode Version: 1.93.1 Commit: 949de58bd3d85d530972cac2dffc4feb9eee1e40 Date: 2024-10-16T17:56:07.754Z Electron: 30.4.0 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Darwin arm64 23.5.0

VSCode

Version: 1.94.2 Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427 Date: 2024-10-09T16:08:44.566Z Electron: 30.5.1 ElectronBuildId: 10262041 Chromium: 124.0.6367.243 Node.js: 20.16.0 V8: 12.4.254.20-electron.0 OS: Darwin arm64 23.5.0

findleyr commented 17 hours ago

Hi, you are saying you have no syntax highlighting at all? Or are you simply lacking the rich syntax highlighting provided by gopls? I would suprised if default syntax highlighting didn't work out of the box. Can you share a screenshot?