griddycode icon indicating copy to clipboard operation
griddycode copied to clipboard

langs issue

Open Symmettry opened this issue 1 year ago • 6 comments

having a e.g. abc.lua file, then doing add_comment("something 1") then having abc2.lua file, then doing add_comment("something 2")

this then makes it so even in abc2.lua, you still see "something 1" even though you should only see "something 2"

Symmettry avatar Mar 21 '24 02:03 Symmettry

The comments are reset when another file extension is opened, so it's weird that this happens https://github.com/face-hh/griddycode/blob/master/Scripts/lua_singleton.gd#L329

face-hh avatar Mar 21 '24 14:03 face-hh

It also occurs with variables and functions.

i was seeing "console" and "process" when in a .java file

Symmettry avatar Mar 21 '24 19:03 Symmettry

Currently unreproducible on v1.0.4

face-hh avatar Mar 22 '24 17:03 face-hh

Seeing this issue on v1.1.1 Screenshot_5

Opened my test.js file and then switched to my test.lua file and opened the comments. Variables and functions did reset though, so that part has been fixed at v1.1.1

ItsTato avatar Mar 24 '24 09:03 ItsTato

In my last comment I stated the variables and functions did reset when I switched files. I don't know what changed from then but now they seem to haven't.

Screenshot_1 (screenshot is in a .py file, those are .lua functions and variables)

ItsTato avatar Mar 24 '24 10:03 ItsTato

We could just re-load everything upon opening a new file regardless of the extension, so if we're working on a lua file and we open a new one everything gets reset and the lua plugin gets reloaded once more, or we could add a different approach, something like vim, where we have buffers and things like highlighting and such are tied to these buffers

zSnails avatar Mar 24 '24 17:03 zSnails