oniksan / godobuf

A Google Protobuf implementation for Godot / GDScript
BSD 3-Clause "New" or "Revised" License
260 stars 36 forks source link

The identifier "PROTO_VERSION" isn't declared in the current scope. #26

Closed thoraxe closed 2 years ago

thoraxe commented 2 years ago

Trying to use this against Godot 3.4

I am seeing various errors now and again. Here's one that came up with Godot mostly just sitting there at the editor:

ERROR: Failed parse script res://addons/protobuf/protobuf_core.gd
The identifier "PROTO_VERSION" isn't declared in the current scope.
   at: reload_all_workspace_scripts (modules/gdscript/language_server/gdscript_workspace.cpp:217)
oniksan commented 2 years ago

At what point does this error appear?

oniksan commented 2 years ago

This is normal, Godot is just trying to parse the script, which he does not need to parse yet, because. it is intended to be substituted into the generated code. The plugin works, the message appears only when the IDE is loaded.