Closed
Description
static:
writeFile("example.txt", "hello")
doAssert readLines("example.txt") == @["hello"]
doAssert readLines("example.txt") == @["hello"]
$ choosenim stable
$ nim c -f -r example.nim
$ coosenim devel
$ nim c -f -r example.nim
example.nim(3, 12) Warning: use readLines with two arguments; readLines is deprecated [Deprecated]
fatal.nim(49) sysFatal
Error: unhandled exception: vmhooks.nim(40, 12) `i < a.rc - 1` [AssertionError]
$
Links
Line 40 in 2925a47
- https://github.com/nim-lang/Nim/blame/2925a47ae6aaa8e93117a29b018582540bf55856/compiler/vmhooks.nim#L40
System Information
{
"compiled": "2020-03-31T00:35:22",
"NimVersion": "1.1.1",
"hostCPU": "amd64",
"hostOS": "linux",
"cpuEndian": "littleEndian",
"getTempDir": "/tmp/",
"now": "2020-04-01T00:20:19-03:00",
"getCurrentEncoding": "UTF-8",
"getFreeMem": 385024,
"getTotalMem": 528384,
"getOccupiedMem": 94208,
"countProcessors": 6,
"arch": "x86_64",
"FileSystemCaseSensitive": true,
"nimcacheDir": "",
"ccompilerPath": "",
"nimpretty": "0.2",
"nimble": "nimble v0.11.0 compiled at 2020-03-31 13:39:47\ngit hash: couldn't determine git hash",
"nimgrep": "1.5",
"nimsuggest": "Nim Compiler Version 1.1.1 [Linux: amd64]\nCompiled at 2020-03-31\nCopyright (c) 2006-2020 by Andreas Rumpf\n\nactive boot switches: -d:release -d:danger --gc:markAndSweep",
"choosenim": "choosenim v0.6.0 (2020-03-06 18:24:57) [linux/amd64]",
"gcc": "gcc (Arch Linux 9.2.1+20200130-2) 9.2.1 20200130",
"clang": "clang version 9.0.1",
"git": "2.25.1",
"node": "v13.9.0",
"python": "3.8.1",
"ssd": true
}
Metadata
Metadata
Assignees
Labels
No labels