I am compiling the examples in https://github.com/khchen/winim/tree/master/examples/clr with latest cloned-and-compiled nim 1.7.1, but there is a lot of informations(mainly Hints, I think it is a kind of warning, am I right?)
$ nim c simple_gui.nim
Hint: used config file 'E:\msys64\home\USER\_nim\nim\config\nim.cfg' [Conf]
Hint: used config file 'E:\msys64\home\USER\_nim\nim\config\config.nims' [Conf]
................................................................................................................................
C:\Users\USER\.nimble\pkgs\winim-3.9.0\winim\clr.nim(218, 37) template/generic instantiation of `fmt` from here
(1, 3) template/generic instantiation of `toHex` from here
E:\msys64\home\USER\_nim\nim\lib\pure\strutils.nim(954, 13) Warning: target type is larger than source type [CastSizes]
C:\Users\USER\.nimble\pkgs\winim-3.9.0\winim\clr.nim(737, 7) Hint: 'RuntimeHelp' should be: 'runtimeHelp' [Name]
C:\tmp\winim-master\examples\clr\simple_gui.nim(43, 5) Hint: 'Size' should be: 'size' [Name]
C:\tmp\winim-master\examples\clr\simple_gui.nim(44, 5) Hint: 'Point' should be: 'point' [Name]
CC: E:/msys64/home/USER/_nim/nim/lib/system/ansi_c.nim
...
Hint: [Link]
However if nim 1.6.6 is used, the output information is nicly short:
$ /c/tmp/nim-1.6.6/bin/nim c simple_gui.nim
Hint: used config file 'C:\tmp\nim-1.6.6\config\nim.cfg' [Conf]
Hint: used config file 'C:\tmp\nim-1.6.6\config\config.nims' [Conf]
.......................................................................................................................
CC: stdlib_digitsutils.nim
...
Hint: [Link]
I know nothing about {.push hint[Name]: off.} which I met hours ago in https://github.com/khchen/winim/issues/89#issuecomment-1218201067 .
So why {.push hint[Name]: off.} in clr.nim can't kill C:\Users\USER\.nimble\pkgs\winim-3.9.0\winim\clr.nim(737, 7) Hint: 'RuntimeHelp' should be: 'runtimeHelp' [Name]? And how can we get rid off all Hint:?
Thanks
btw, what is
C:\Users\USER\.nimble\pkgs\winim-3.9.0\winim\clr.nim(218, 37) template/generic instantiation of `fmt` from here
(1, 3) template/generic instantiation of `toHex` from here
is it a warning, hints, or something else? and what is the purpose to show it?
Some of those hints seem to be styling related.
Regarding why push Name doesn't work, unfortunately the last time it was raised, we had a workaround resolution instead of fixing push hint[FOO]:off: https://github.com/nim-lang/Nim/issues/4044
Thanks, mratsim.
Then, what does
C:\Users\USER\.nimble\pkgs\winim-3.9.0\winim\clr.nim(218, 37) template/generic instantiation of `fmt` from here (1, 3) template/generic instantiation of `toHex` from here
mean? And what is the solution to kill such information?You need to solve the warning below.
When you get a warning or an error, Nim details the generic calls as part of the trace.