summary refs log tree commit diff stats
path: root/config
Commit message (Collapse)AuthorAgeFilesLines
* remove unused nimStdlibVersion (#24060)ringabout2024-09-041-1/+1
|
* Prevent font flashing in the docs (#23622)Nils Lindemann2024-05-271-3/+4
| | | | | | | | | | ... by moving the Google font includes near the top of the head. By including them as early as possible, they are known, when the browser starts rendering the body. Test it by making the change manually in `doc/html/system.html` and then press ctrl+f5 (reload without cache). This removes the font flashing. Tested in Chrome and Firefox.
* Make `data-theme` default to "auto" in HTML (#23222)Jake Leahy2024-01-191-1/+1
| | | | | | | | | Makes docs default to using browser settings instead of light mode This should fix #16515 since it doesn't require the browser to run the JS to set the default Also means that dark mode can be used without JS if the browser is configured to default to dark mode
* rework the vtable implementation embedding the vtable array directly with ↵ringabout2023-11-281-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | new strictions on methods (#22991) **TODO** - [x] fixes changelog With the new option `nimPreviewVtables`, `methods` are confined in the same module where the type of the first parameter is defined - [x] make it opt in after CI checks its feasibility ## In the following-up PRs - [ ] in the following PRs, refactor code into a more efficient one - [ ] cpp needs special treatments since it cannot embed array in light of the preceding limits: ref https://github.com/nim-lang/Nim/pull/20977#discussion_r1035528927; we can support cpp backends with vtable implementations later on the comprise that uses indirect vtable access --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* make expressions opt in to symchoices (#22716)metagn2023-09-181-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | refs #22605 Sym choice nodes are now only allowed to pass through semchecking if contexts ask for them to (with `efAllowSymChoice`). Otherwise they are resolved or treated as ambiguous. The contexts that can receive symchoices in this PR are: * Call operands and addresses and emulations of such, which will subject them to overload resolution which will resolve them or fail. * Type conversion operands only for routine symchoices for type disambiguation syntax (like `(proc (x: int): int)(foo)`), which will resolve them or fail. * Proc parameter default values both at the declaration and during generic instantiation, which undergo type narrowing and so will resolve them or fail. This means unless these contexts mess up sym choice nodes should never leave the semchecking stage. This serves as a blueprint for future improvements to intermediate symbol resolution. Some tangential changes are also in this PR: 1. The `AmbiguousEnum` hint is removed, it was always disabled by default and since #22606 it only started getting emitted after the symchoice was soundly resolved. 2. Proc setter syntax (`a.b = c` becoming `` `b=`(a, c) ``) used to fully type check the RHS before passing the transformed call node to proc overloading. Now it just passes the original node directly so proc overloading can deal with its typechecking.
* fix #22492 (#22511)Hamid Bluri2023-08-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * fix #22492 * Update nimdoc.css remove scroll-y * Update nimdoc.out.css * Update nimdoc.css * make it sticky again * Update nimdoc.out.css * danm sticky, use fixed * Update nimdoc.out.css * fix margin * Update nimdoc.out.css * make search input react to any change (not just keyboard events) according to https://github.com/nim-lang/Nim/pull/22511#issuecomment-1685218787
* fixes LineTooLong hints on old compilers (#22412)ringabout2023-08-081-0/+4
| | | | | * fixes LineTooLong hints on old compilers * fixes config/nim.cfg
* fix server caching issue causing Theme failures (#22378)Daniel Belmes2023-08-061-2/+2
| | | | | | | | | * fix server caching issue causing Theme failures * Fix tester to ignore version cache param * fix case of people using -d:nimTestsNimdocFixup * rsttester needed the same fix
* fixes #22301; fixes #22324; rejects branch initialization with a runtime ↵ringabout2023-07-251-1/+0
| | | | | | | | | | | discriminator with defaults (#22303) * fixes #22301; rejects branch initialization with a runtime discriminator with defaults * undefault nimPreviewRangeDefault * fixes tests * use oldCheckDefault
* Fix #21595 (#22233)Juan Carlos2023-07-071-2/+1
| | | | | * . * Fix #21595
* revert #21808 (#21881)ringabout2023-05-221-7/+0
|
* fixes nightlies regressions; disable `build-id=none` on macos (#21839)ringabout2023-05-121-2/+4
| | | | | * fixes nightlies regressions; disable `build-id=none` on macos * fixes typos
* clean up SOME pending/xxx/issue link comments (#21826)metagn2023-05-111-1/+1
| | | | | * clean up SOME pending/xxx/issue link comments * great
* Remove LineTooLong (#21819)Juan Carlos2023-05-111-1/+0
| | | | | | | * LineTooLong refactor to make it actually useful * Improve error message * changelog wording * Fix typo
* Add build-id=none for GCC when build for Release (#21808)Juan Carlos2023-05-081-0/+6
| | | | | | | | | | | | | * Add build-id=none to GCC/Clang, unneeded metadata in binaries * Add build-id=none to GCC/Clang, unneeded metadata in binaries * Add build-id=none to Clang * Fix * Fix * Add build-id=none to GCC
* static link pthread correctly (#21693)ringabout2023-04-201-0/+3
|
* LTO improvements - fix #15578 (#21679)Mamy Ratsimbazafy2023-04-171-10/+16
|
* fixes #18146; fixes #19372; disable tlsEmulation on windows; static link ↵ringabout2023-04-141-1/+1
| | | | | | | pthreads with mingw (#21668) * fixes #18146; disable tlsEmulation on windows; static link libwinthreads DLL * whatever
* Disable threads for os:any (#21425)Francis Thérien2023-02-241-0/+5
|
* corrects the linkerexe of riscv64 in config (#21292)ringabout2023-02-211-1/+1
|
* bump csource_v2 to include fix for linking parameter maximum length (#21216)ringabout2023-01-021-1/+1
| | | | | > If accepted, I believe it should be used in csources_v2 and also backport 2.0 ref https://github.com/nim-lang/Nim/pull/21186
* Update nim.cfg (#21204)Chavdar Ivanov2023-01-021-2/+1
| | | | | | | | | | | | | | | | tlsEmulation:on under NetBSD-10Beta and NetBSD-current produces an executable which crashes immediately as follows: Core was generated by `koch'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0x000000000047b4c2 in nimZeroMem () (gdb) bt #0 0x000000000047b4c2 in nimZeroMem () #1 0x00000000004897b2 in threadVarAlloc__system_2162 () #2 0x000000000048980e in initThreadVarsEmulation () #3 0x0000000000489848 in PreMain () #4 0x000000000048986a in NimMain () #5 0x00000000004898a9 in main () I can't speak about the other BSDs.
* bump csource_v2 to include fixes for macos m1 (#21147)ringabout2022-12-211-1/+1
|
* bump csource_v2 hash (#21118)ringabout2022-12-161-1/+1
|
* the devel branch now uses csources_v2 (#21108)ringabout2022-12-161-3/+3
| | | | | | | * the devel branch now uses csources_v2 * fixes hash * bump csources_v2
* Fix #14476 (#20878)Jake Leahy2022-11-211-2/+2
| | | | | | | * Use link from webpage. Closes #14476 * Update doc generation tests * Update RST test
* revert #19891; `nimRawSetjmp` causes problems for mingw 32 bits too ↵ringabout2022-11-111-5/+0
| | | | | [backport] (#20758) revert https://github.com/nim-lang/Nim/pull/19891
* use `tlsEmulation:off` for freebsd (#20802)ringabout2022-11-101-1/+3
|
* fixes #19162; enable `strictEffects` for v2 (#19380)ringabout2022-10-151-0/+1
| | | | | | | | | | | | | | | | | | | * enable stricteffects * add gcsafe * fix tests * use func * fixes pegs tests * explicitly mark repr related procs with noSideEffect * add nimLegacyEffects * change URL * fixes docopt * add `raises: []` to repr * fixes weave * fixes nimyaml * fixes glob * fixes parsetoml * Apply suggestions from code review * Update testament/important_packages.nim * add legacy:laxEffects
* move google fonts to the last part (#20541)ringabout2022-10-111-4/+3
| | | | | | | * move google fonts to the last part * fixes tests * fix rst2html
* Add no-math-errno for GCC when build for Release (#20503)Juan Carlos2022-10-061-2/+5
| | | | * gcc matherrno * changelog
* add default field support for object in ARC/ORC (#20480)ringabout2022-10-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fresh start * add cpp target * add result support * add nimPreviewRangeDefault * reduce * use orc * refactor common parts * add tuple support * add testcase for tuple * cleanup; fixes nimsuggest tests * there is something wrong with cpp * remove * add support for seqs * fixes style * addd initial distinct support * remove links * typo * fixes tuple defaults * add rangedefault * add cpp support * fixes one more bugs * add more hasDefaults * fixes ordinal types * add testcase for #16744 * add testcase for #3608 * fixes docgen * small fix * recursive * fixes * cleanup and remove tuple support * fixes nimsuggest * fixes generics procs * refactor * increases timeout * refactor hasDefault * zero default; disable i386 * add tuples back * fixes bugs * fixes tuple * add more tests * fix one more bug regarding tuples * more tests and cleanup * remove messy distinct types which must be initialized by original types * add tests * fixes zero default * fixes grammar * fixes tests * fixes tests * fixes tests * fixes comments * fixes and add testcase * undo default values for results Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* closed ambiguous enum defaults to first overload (#20457)metagn2022-10-011-0/+4
| | | | | | | | | * closed ambiguous enum defaults to first overload * add warning * turn to hint * work around config
* fixes #19713; Revert "Remove tlsEmulation enabled from Windows + GCC config" ↵ringabout2022-09-191-0/+3
| | | | | | | | | | | | | | | (#19119) (#20327) * Revert "Remove tlsEmulation enabled from Windows + GCC config (#19119) [backport:1.6]" This reverts commit 77b696c2c92b5f478526290c5e184a4c41060f7b. * increase nimTlsSize to 48000 * enable for windows * fixes tests * fixes tlsEmulation:on
* remove the old nimv019 define in the config (#20133)ringabout2022-09-011-6/+0
| | | remove the olf nimv019 define in the config
* Docs auto dark mode (#20188)Amjad Ben Hedhili2022-08-211-12/+14
| | | | | | | | | | | | | * Implement auto dark mode * Rename class * Fix borders cutout * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* Revert "enable nimPreviewDotLikeOps" (#19919)ringabout2022-08-031-1/+0
| | | | | | | | | * Revert "enable nimPreviewDotLikeOps (#19598)" This reverts commit 6773ffa63d0b3ab8b8894e84ed417f4eaced9122. * add deprecated message Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* Make imports/exports not be a dropdown in sidebar (#19907)Jake Leahy2022-07-161-0/+8
| | | | | | | | | * Don't make a section be a dropdown if it has no child links * - Cleaned up code - Updated tests * Document what the 'if' is checking
* default threads on (#19368)flywind2022-07-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * default threads on * make rst gcsafe * ignore threads option for nimscript * threads off * use createShared for threads * test without threads * avr threds off * avr threads off * async threads off * threads off * fix ci * restore option * make CI pleased * fix ic tests * Update config.nims * add changelog * Update changelog.md Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Fixes #19900 (#19906)Jake Leahy2022-06-191-2/+2
| | | Fixed tocRoot placement
* Keep the doc sidebar on the screen while scrolling (#19851)JJ2022-06-151-113/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [docgen] Group sidebar sections into <details> (open by default) * [docgen] Consistent indentation in generated HTML (this is a boon for working on docgen's html/css output) * [docgen] Move Source/Edit buttons inside main div This makes styling the documentation significantly easier. * [docgen] Somewhat consistent CSS formatting * [docgen] Keep the sidebar onscreen while scrolling * [docgen] Tweak CSS for the sticky sidebar * [docgen] search type=text ==> type=search * [docgen] Update expected doc output * [docgen] Fix Group by Type sidebar placement bug * [docgen] Curse you, whitespace (fix tests) * [docgen] Fix rst2html tests Co-authored-by: sandytypical <43030857+xflywind@users.noreply.github.com>
* Windows: enable nimRawSetjmp by default [backport] (#19891)Tanguy2022-06-141-0/+5
| | | | | | | | | * Windows: enable nimRawSetjmp by default See #19197. The default setjmp can randomly segfault on windows * Attempt to disable the flag for bootstraping * Disable styleCheck for c_setjmp
* Move common Latex code into class nimdoc.cls (#19734)Andrey Makarov2022-04-211-187/+1
|
* rewrite docs JS in Nim (#19701)flywind2022-04-091-43/+0
| | | | | | | * rewrite docs JS in Nim * fixup * fix nimdoc/rsttester
* Revert "Load Google Fonts last (#19683)" (#19693)flywind2022-04-061-8/+6
| | | This reverts commit abe3b0eb644c60be4423bd3595382a126c4746db.
* Load Google Fonts last (#19683)locriacyber2022-04-061-6/+8
|
* enable nimPreviewDotLikeOps (#19598)flywind2022-03-091-0/+1
|
* Add compilers and hints to default nim.cfg (#18424)Federico Ceratto2022-02-071-2/+13
|
* mangle names in nimbase.h using cppDefine (#19395) [backport]flywind2022-01-171-0/+5
| | | | mangle names in nimbase.h fix comments
* let Nim support Nimble 0.14 with lock-file support [backport:1.6] (#19236)Andreas Rumpf2021-12-101-0/+2
|