-
Notifications
You must be signed in to change notification settings - Fork 34
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
some code under examples/clr can't be compiled #89
Comments
Should be fixed. |
not be fixed as expected $ nim c -r usage_demo2.nim
Hint: used config file 'E:\msys64\home\Lenovo\_nim\nim\config\nim.cfg' [Conf]
Hint: used config file 'E:\msys64\home\Lenovo\_nim\nim\config\config.nims' [Conf]
................................................................................................................................
C:\Users\Lenovo\.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\Lenovo\_nim\nim\lib\pure\strutils.nim(954, 13) Warning: target type is larger than source type [CastSizes]
C:\tmp\winim-master\examples\clr\usage_demo2.nim(111, 5) Hint: 'BindingFlags' should be: 'bindingFlags' [Name]
C:\tmp\winim-master\examples\clr\usage_demo2.nim(112, 5) Hint: 'Array' should be: 'array' [Name]
C:\tmp\winim-master\examples\clr\usage_demo2.nim(120, 5) Hint: 'TestClass' should be: 'testClass' [Name]
C:\tmp\winim-master\examples\clr\usage_demo2.nim(121, 5) Hint: 'TestClass2' should be: 'testClass2' [Name]
C:\tmp\winim-master\examples\clr\usage_demo2.nim(122, 5) Hint: 'MostDerived' should be: 'mostDerived' [Name]
C:\tmp\winim-master\examples\clr\usage_demo2.nim(160, 18) Error: type mismatch: got <array[0..1, int]>
but expected one of:
proc `[]`(s: mstring; i: int): char
first type mismatch at position: 0
proc `[]`(s: mstring; i: mIndex): mstring
first type mismatch at position: 0
proc `[]`(s: string; i: BackwardsIndex): char
first type mismatch at position: 0
proc `[]`(s: var string; i: BackwardsIndex): var char
first type mismatch at position: 0
proc `[]`(s: wstring; i: int): WCHAR
first type mismatch at position: 0
proc `[]`(self: variant; name: string): variant
first type mismatch at position: 0
proc `[]`(v: CLRVariant; i: SomeOrdinal): CLRVariant
first type mismatch at position: 0
proc `[]`(v: CLRVariant; name: string): CLRVariant
first type mismatch at position: 0
proc `[]`[I: Ordinal; T](a: T; i: I): T
first type mismatch at position: 0
proc `[]`[Idx, T; U, V: Ordinal](a: array[Idx, T]; x: HSlice[U, V]): seq[T]
first type mismatch at position: 0
proc `[]`[Idx, T](a: array[Idx, T]; i: BackwardsIndex): T
first type mismatch at position: 0
proc `[]`[Idx, T](a: var array[Idx, T]; i: BackwardsIndex): var T
first type mismatch at position: 0
proc `[]`[T, U: Ordinal](s: string; x: HSlice[T, U]): string
first type mismatch at position: 0
proc `[]`[T, U](s: mstring; x: HSlice[T, U]): mstring
first type mismatch at position: 0
proc `[]`[T, U](s: wstring; x: HSlice[T, U]): wstring
first type mismatch at position: 0
proc `[]`[T: variant | SomeNumber | string | proc](x: T): CLRVariant
first type mismatch at position: 0
proc `[]`[T; U, V: Ordinal](s: openArray[T]; x: HSlice[U, V]): seq[T]
first type mismatch at position: 0
proc `[]`[T](s: openArray[T]; i: BackwardsIndex): T
first type mismatch at position: 0
proc `[]`[T](s: var openArray[T]; i: BackwardsIndex): var T
first type mismatch at position: 0
proc `[]`[T](x: T; typ: CLRVariant): CLRVariant
first type mismatch at position: 0
template `[]`(s: string; i: int): char
first type mismatch at position: 0
template `[]`(self: com; name: string): variant
first type mismatch at position: 0
expression: `[]`([1, 2]) |
and "Remvoe annoying hints for symbol name in Nim Compiler 1.7.1 devel" in version 1.9.0 is not complete. For the rest can-be-compiled nim files, i.e., $ nim c -r code_compiler.nim
Hint: used config file 'E:\msys64\home\Lenovo\_nim\nim\config\nim.cfg' [Conf]
Hint: used config file 'E:\msys64\home\Lenovo\_nim\nim\config\config.nims' [Conf]
................................................................................................................................
C:\Users\Lenovo\.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\Lenovo\_nim\nim\lib\pure\strutils.nim(954, 13) Warning: target type is larger than source type [CastSizes]
C:\tmp\winim-master\examples\clr\code_compiler.nim(10, 6) Hint: 'test_cs' should be: 'testCs' [Name]
C:\Users\Lenovo\.nimble\pkgs\winim-3.9.0\winim\clr.nim(742, 7) Hint: 'RuntimeHelp' should be: 'runtimeHelp' [Name]
C:\Users\Lenovo\.nimble\pkgs\winim-3.9.0\winim\clr.nim(737, 7) Hint: 'RuntimeHelp' should be: 'runtimeHelp' [Name]
C:\tmp\winim-master\examples\clr\code_compiler.nim(47, 6) Hint: 'test_vb' should be: 'testVb' [Name]
C:\tmp\winim-master\examples\clr\code_compiler.nim(68, 6) Hint: 'test_dll' should be: 'testDll' [Name]
C:\tmp\winim-master\examples\clr\code_compiler.nim(95, 7) Hint: 'TestClass' should be: 'testClass' [Name] However, if I use nim 1.6.6 stable, not |
And there is an interesting thing, However, |
OK, I became stupid after being a dad. By the way, If some hints come from a file that I already added |
A new born baby! Congratulations! Btw. now all examples under |
I am using latest clone-and-built nim and winim package.
#However,
code_compiler.nim
,simple_gui.nim
,usage_demo2.nim
can't be compiledfor example, for
winim/examples/clr/simple_gui.nim
, I getThe text was updated successfully, but these errors were encountered: