You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
procwrite*(doc: varNbDoc) =echo"[nimib] current directory: ", getCurrentDir()
let dir = doc.filename.splitFile().dir
ifnot dir.dirExists:
echo"[nimib] creating directory: ", dir
createDir(dir)
echo"[nimib] saving file: ", doc.filename
writeFile(doc.filename, render(doc))
I am surprised it didn't match with this entry: [1] proc render(nb: var NbDoc): string. doc is mutable since it is a var argument.
EDIT: doc is not mutable -> doc is mutable.
The text was updated successfully, but these errors were encountered:
this is indeed weird. does it still reproduce? I am not able at the moment to reproduce locally (have not updated to 2.0 yet...) and CI normally checks 2.0 (this was reported after last CI run but there was not a release in the time this was reported). Incidentally we should add the possibility to rerun the test CI manually, will add an issue about that
The error disappears with Nim 2.0.2. Next time, I'll be more specific in the compilation process, because I could not reproduce the exact error message.
Hello,
I get a type mismatch issue in
src/nimib/docs.nim
with Nim 2.0.I get the following error:
The line in question is in the function:
I am surprised it didn't match with this entry:
[1] proc render(nb: var NbDoc): string
.doc
is mutable since it is avar
argument.EDIT: doc is not mutable -> doc is mutable.
The text was updated successfully, but these errors were encountered: