-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Documents no longer buildable with 'koch docs'. #22059
Comments
./testtimes |
For me it fails with:
Very strange, where is the version 1.7.3 coming from? |
I cannot reproduce the issue on windows, probably related to OS. Make sure follow the instructions below:
As to testtimes
|
This is the full relevant proc: Lines 1529 to 1545 in 21d941c
The 1 hour difference makes me think it could be a timezone quirk, that may or may not also be related to the OS. |
I get the discrepancy on Windows, Linux (aarch64) and NetBSD (both amd64 and aarch64), so it is not OS-related, but most likely timezone quirk.
BTW I haven't been able to complete a Nim build under Windows for a few days now, I am getting
but this is a separate problem, obviously. |
Does it work if you change |
Yes. |
This did not fix it for me at all, the test runs exactly as before - unless there is some obj cache I am not aware of:
|
How come it worked before? Can you use |
|
I assumed when you responded "yes" to "does this change work" that it fixed the issue. The offending commit is very likely to be 9c2d277 (based on you saying "last success on april 26" and the commit history of (Also the other procs called |
hopefully actually fixes (space) nim-lang#22059
It is definitely the timezone. On NetBSD it is driven by /etc/localtime, which I set usually during the OS installation as a soft link to /usr/share/zoneinfo/Europe/London. My aarch64 NetBSD system was installed differently and had /etc/localtime point to /usr/share/zoneinfo/UTC; in this case the test program executed as expected. When I set /etc/localtime to point to Europe/London, it fails:
The Windows 11 host is also set to Europe/London and fails; all this is using the latest Nim sources. |
FYI the test succeeds under Linux after making /etc/localtime point to UTC. On my NetBSD-current amd64 installation 'koch doc' and 'koch pdf' finish OK after the same, so there do not appear to be other regressions with respect to this particular problem. |
Can you try the patch in #22091 |
Tried it, works for me on all my test builds - NetBSD, Ubuntu and Windows 11. |
As in the original test passes and there is no hour difference? |
Why can't we disable the test? It's not that important that it should prevent the docs from building. |
I really think #22091 fixes it. It would be nice if someone gave hard confirmation that it does because it's hard to test. |
As I said, I tested it under Ubuntu 2304 aarch64, NetBSD-current amd64 and aarch64 and Windows 11 and it works for me. I also ran, as suggested above, 'nim doc times.nim' without a problem, no matter the value of localtime. |
…im-lang#22091) * use TimeInterval instead of Duration for calculating ISO week date hopefully actually fixes (space) nim-lang#22059 * forward declare * explicit effects
Description
I follow Nim's development and often rebuild locally the documentation using 'koch docs' and 'koch pdf'. My last successful run was on the 26th of April; I tried today and got a curious problem:
`
/home/xci/src/Nim/lib/pure/times.nim(1537) times_examples_51
/home/xci/src/Nim/lib/std/assertions.nim(41) failedAssertImpl
/home/xci/src/Nim/lib/std/assertions.nim(36) raiseAssert
/home/xci/src/Nim/lib/system/fatal.nim(53) sysFatal
Error: unhandled exception: /home/xci/.cache/nim/times_d/runnableExamples/times_examples_51.nim(9, 3)
initDateTime(21, mApr, 2018, 0, 0, 0) == initDateTime(dSat, 16, 2018.IsoYear, 0, 0, 0)
[AssertionDefect]Error: execution of an external program failed: '/home/xci/.cache/nim/times_d/runnableExamples/times_group0_examples'
[runnableExamples] failed: generated file: '/home/xci/.cache/nim/times_d/runnableExamples/times_group0_examples.nim' group: 'rdoccmd:
docCmd:
code: # autogenerated by docgen
source: /home/xci/src/Nim/lib/pure/times.nim
`
Separately running times_example_51.nim indeed shows that the first and the third asserts fail. This happens to be run under NetBSD-current amd64.
The same failure was also observed under
Linux www.ci4c.tk 6.2.0-1003-oracle #3-Ubuntu SMP Thu Apr 6 10:27:48 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux.
A separate issue exists under NetBSD-current AArch64 - bitops_d/runnableExamples/@mbitops_examples_33.nim.c fails as it tries to include an obviously non-existent x86intrin.h...
Nim Version
$ nim --version
Nim Compiler Version 1.9.3 [NetBSD: amd64]
Compiled at 2023-06-09
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: f091014
active boot switches: -d:release
Current Output
No response
Expected Output
No response
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: