I have the following code
import strformat
import sequtils
import strutils
import parseutils
import Constants
import Support
const InputData = "Day04Test.txt"
type
Board = tuple
Numbers :seq[int]
Ranks: seq[seq[int]]
var s :tuple[ Data: seq[string], DrawnNumbers:seq[int],
BoardNumbers:seq[seq[seq[int]]]]
s.Data = readfile(RawDataPath & InputData).multireplace((" ","
")).split("\r\n\r\n",1)
echo fmt" Data {s.Data}"
Run
The echo fmt line is underlined from the opening " to the closing ". Two errors
are reported.
When the cursor is at the opening "
template/generic instantiation of `fmt` from here
template/generic instantiation of `fmt` from here
Error: internal error:
/home/runner/work/nightlies/nightlies/nim/compiler/vmgen.nim(1576, 22)
No stack traceback available
To create a stacktrace, rerun compilation with './koch temp check <file>',
see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for
details
Run
Anywhere else that is underlined
template/generic instantiation of `fmt` from here
Error: internal error:
/home/runner/work/nightlies/nightlies/nim/compiler/vmgen.nim(1576, 22)
No stack traceback available
To create a stacktrace, rerun compilation with './koch temp check <file>',
see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for
details
Run
Would someone be kind enough to point out what needs to be changed (apart from
deleting all the code :-) ) to eliminate these issues. I've tried but can't
fathom it.