Open pdesaulniers opened 2 months ago
So, I went ahead and put in a PR to make tlconfig.lua
optional, but opening up tl.tl
still has other issues. It shows a syntax error
within patch_visitors
coming from tl.parse_program
.
local function patch_visitors(my_visit_node: Visitor<TypeChecker, NodeKind, Node, Type>,
after_node: VisitorAfterPatcher<TypeChecker, Node, Type>,
my_visit_type?: Visitor<TypeChecker, TypeName, Type, Type>,
after_type?: VisitorAfterPatcher<TypeChecker, Type, Type>):
Visitor<TypeChecker, NodeKind, Node, Type>,
Visitor<TypeChecker, TypeName, Type, Type>
It can be fixed by modifying it to:
local function patch_visitors(my_visit_node: Visitor<TypeChecker, NodeKind, Node, Type>,
after_node: VisitorAfterPatcher<TypeChecker, Node, Type>,
my_visit_type?: Visitor<TypeChecker, TypeName, Type, Type>,
after_type?: VisitorAfterPatcher<TypeChecker, Type, Type>): Visitor<TypeChecker, NodeKind, Node, Type>, Visitor<TypeChecker, TypeName, Type, Type>
and then it will happily do the language server things!
I tried running tl.parse_program
outside of the teal-language-server, and it didn't throw any syntax errors. I guess something to look into.
I tried using the language server with
tl.tl
from https://github.com/teal-language/tl, but it seems like the server fails to initialize because that project does not contain atlconfig.lua
file. I supposetlconfig.lua
should be optional?