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
|
a> ^
7e747d11c ^
05724645f ^
31b8fd66b ^




05724645f ^
31b8fd66b ^



05724645f ^
31b8fd66b ^
6195dbe49 ^
05724645f ^
6195dbe49 ^




7e747d11c ^
6195dbe49 ^





60b187513 ^
393be4931 ^





6195dbe49 ^

393be4931 ^


c43e8df90 ^


6195dbe49 ^



c43e8df90 ^
90d1ad423 ^

6195dbe49 ^
c43e8df90 ^
90d1ad423 ^

6195dbe49 ^




7e747d11c ^
05724645f ^
70ea45cdb ^
7e747d11c ^
05724645f ^
6195dbe49 ^
7e747d11c ^

05724645f ^
6195dbe49 ^

7e747d11c ^
05724645f ^
8241e5502 ^
6195dbe49 ^
7e747d11c ^
70ea45cdb ^
7e747d11c ^
05724645f ^
6195dbe49 ^
8241e5502 ^
6195dbe49 ^
8241e5502 ^
7e747d11c ^

05724645f ^
6195dbe49 ^



2f4472963 ^


6470bd8f8 ^



c43e8df90 ^
2f43fdb83 ^
c43e8df90 ^
393be4931 ^







2f4472963 ^
6195dbe49 ^



c43e8df90 ^
29d2c3495 ^

6195dbe49 ^
bf592c4e9 ^
05724645f ^
6195dbe49 ^

8930ba50b ^
6195dbe49 ^
c43e8df90 ^
393be4931 ^




c43e8df90 ^
7e747d11c ^
c43e8df90 ^
6195dbe49 ^
c43e8df90 ^
05724645f ^
393be4931 ^
6195dbe49 ^
49869a2b1 ^
6195dbe49 ^
7e747d11c ^
6195dbe49 ^

7e747d11c ^

6195dbe49 ^


05724645f ^
8241e5502 ^
7e747d11c ^
6195dbe49 ^
05724645f ^
6195dbe49 ^
7e747d11c ^
8241e5502 ^
6195dbe49 ^

1a61c4d46 ^
6195dbe49 ^



05724645f ^
c43e8df90 ^
6195dbe49 ^
c43e8df90 ^

05724645f ^

153fd13f3 ^
c43e8df90 ^
90d1ad423 ^


6195dbe49 ^

31b8fd66b ^
7e747d11c ^

6195dbe49 ^


226595515 ^

417b9f5a1 ^
7e747d11c ^
226595515 ^
417b9f5a1 ^
226595515 ^
417b9f5a1 ^
8930ba50b ^
417b9f5a1 ^



05724645f ^

417b9f5a1 ^


7e747d11c ^
76011e40e ^
226595515 ^
7e747d11c ^
76011e40e ^
226595515 ^
417b9f5a1 ^


7e747d11c ^
76011e40e ^
05724645f ^
226595515 ^

417b9f5a1 ^

05724645f ^
226595515 ^

6195dbe49 ^
226595515 ^
6195dbe49 ^


c43e8df90 ^





226595515 ^
6195dbe49 ^





6470bd8f8 ^
5a21892da ^
05724645f ^
6195dbe49 ^


05724645f ^
c43e8df90 ^
6195dbe49 ^


73a8b950c ^
05724645f ^
6195dbe49 ^
c43e8df90 ^

6195dbe49 ^
226595515 ^
6195dbe49 ^


ee14ace5d ^
226595515 ^
ee14ace5d ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497