Closed lewis6991 closed 2 years ago
@lewis6991 thanks for the report! unfortunately nothing springs to mind when I look at the offending line pointed by the stack trace. It looks like the data structure for a union type is being generated incorrectly, but I haven't made many changes to those recently, so it's unclear to me how that happened. Could you try to reduce a minimal test case that triggers this? Thanks!
Oh wait, I kept going further down the stack trace and I think I got it.
This is a minimal regression test:
local x: string | number = "hello" or "world"
I have a quick fix!
To reproduce just checkout this repo (https://github.com/lewis6991/gitsigns.nvim) and run tl build
(or make
; it's a simple enough Makefile).
I can try and minimise this when I get a chance.
Hi, just installed the new release and ran it through my project and got this stacktrace:
I'm guessing there is just a missing nil check somewhere.
Hopefully this is enough but let me know if you need any more information.