Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runnableExamples gives wrong values for number literals #17279

Closed
timotheecour opened this issue Mar 6, 2021 · 0 comments · Fixed by #17282
Closed

runnableExamples gives wrong values for number literals #17279

timotheecour opened this issue Mar 6, 2021 · 0 comments · Fixed by #17282
Labels
Documentation Generation Related to documentation generation (but not content).

Comments

@timotheecour
Copy link
Member

Example

echo "ok0"
echo 0xffffffffffffffff
runnableExamples:
  echo "ok1"
  echo 0xffffffffffffffff

Current Output

nim doc main
ok0
-1
ok1
4294967295

Expected Output

ok0
-1
ok1
-1

Additional Information

  • 1.5.1 f28dc2c
  • originally reported to me by @xflywind
  • the problem stems from fact that the generated file contains:
    /Users/timothee/git_clone/nim/timn/build/nimcache/runnableExamples/t11969_examples1.nim
echo "ok1"
echo 0xFFFFFFFF
@timotheecour timotheecour added the Documentation Generation Related to documentation generation (but not content). label Mar 6, 2021
Araq pushed a commit that referenced this issue Mar 9, 2021
…17282)

* fix #13491 runnableExamples rendering
* fix a runnableExamples thanks to this bugfix
ringabout pushed a commit to ringabout/Nim that referenced this issue Mar 22, 2021
… in translation (nim-lang#17282)

* fix nim-lang#13491 runnableExamples rendering
* fix a runnableExamples thanks to this bugfix
ardek66 pushed a commit to ardek66/Nim that referenced this issue Mar 26, 2021
… in translation (nim-lang#17282)

* fix nim-lang#13491 runnableExamples rendering
* fix a runnableExamples thanks to this bugfix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Generation Related to documentation generation (but not content).
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant