Version: 1.2.0, Nim Compiler Version 2.0.8, Windows amd64
When a file including specific code with generics and closures is opened, the language server fails (upon restarting, it fails again)
Minimal reproducible example I could get that fails:
import sugar
type
Parser[T] = object
proc eatWhile[T](p: Parser[T], predicate: T -> bool): seq[T] =
return @[]
proc skipWs(p: Parser[char]) =
discard p.eatWhile((c: char) => c == 'a')
The code is valid Nim (it compiles), so it shouldn't crash the language server.
This is the error message produced by the language server:
Server failed with lineinfos.nim(318) raise RecoverableError
Error: unhandled exception: fatal error: command expects a filename [ERecoverableError]
Version: 1.2.0, Nim Compiler Version 2.0.8, Windows amd64
When a file including specific code with generics and closures is opened, the language server fails (upon restarting, it fails again) Minimal reproducible example I could get that fails:
The code is valid Nim (it compiles), so it shouldn't crash the language server.
This is the error message produced by the language server: