#BUG With Zig ftm

1 messages · Page 1 of 1 (latest)

pallid depot
#

Hello so every time I try to save my code zls duplicates a variable that i have:

atomic kestrel
#

is this which editor?

pallid depot
#

as you can see in the var tokenstokens

#

Neovim and Vscode, lastest zig and zls version

granite hemlock
#

yeah i can replicate this is very weird lol

#

oh this is a zig fmt bug

pallid depot
#

ah nice I thought it was actually a zls

#

but if its zig ftm I will update the title

granite hemlock
#

i think its due to the asterisk in the index

#

not a clue why its causing that but your syntax is wrong anyway

pallid depot
#

BUG With Zig ftm

granite hemlock
#

you dereference with cursor.*

pallid depot
#

I know but that bug was found after we learn about dereference

granite hemlock
#

im gonna file an issue for this on the github if you dont mind

pallid depot
#

Yes please do

granite hemlock
#

very odd bug, nice find

pallid depot
#

it was added for the release of 0.15

#

so we will have to wait I guess

granite hemlock
#

milestones dont mean all that much, its just a low priority issue

pallid depot
#

ah okey okey