godotengine / godot-vscode-plugin

Godot development tools for VSCode
MIT License
1.53k stars 151 forks source link

Godot 4 @export is not recognized #471

Closed lbrande closed 1 year ago

lbrande commented 1 year ago

Godot version

4.0.2.stable.official

VS Code version

1.77.3

Godot Tools VS Code extension version

41f40ee38f5209adc7f00f61c69b7697188a7de0

System information

Pop!_OS 22.04 LTS

Issue description

The new syntax for export variables in Godot 4 @export var name: type is not recognized and gives the following error: Parse error: Unexpected '@' gdscript(-1)

Steps to reproduce

Use the new syntax for export variables in Godot 4

DaelonSuzuka commented 1 year ago

Just to clarify, where are you seeing this error message?

lbrande commented 1 year ago

I realized later that I accidentally had both Godot 3 and Godot 4 running and the plugin used the wrong language server. You can close this.

atirut-w commented 1 year ago

You can close this.

A reminder: you can close any issue you opened yourself.