Skip to content
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

Example compile error with nim 2.2.0 #125

Open
leeooox opened this issue Oct 17, 2024 · 2 comments
Open

Example compile error with nim 2.2.0 #125

leeooox opened this issue Oct 17, 2024 · 2 comments

Comments

@leeooox
Copy link

leeooox commented Oct 17, 2024

Hi,

I am using the Nim 2.2.0 to compile examples

nim -v
Nim Compiler Version 2.2.0 [Windows: amd64]
Compiled at 2024-10-02
Copyright (c) 2006-2024 by Andreas Rumpf

The errors is below:

nim c helloworld.nim

Hint: used config file 'C:\Work\software\nim-2.2.0\config\nim.cfg' [Conf]
Hint: used config file 'C:\Work\software\nim-2.2.0\config\config.nims' [Conf]
Hint: used config file 'C:\Work\prog\nim\wNim\examples\config.nims' [Conf]
.....................................................................................................................................................................................................................................................................
C:\Work\prog\nim\wNim\wNim\private\wResizer.nim(171, 7) template/generic instantiation of `wClass` from here
C:\Work\prog\nim\wNim\wNim\private\wResizer.nim(178, 44) template/generic instantiation of `initHashSet` from here
C:\Work\software\nim-2.2.0\lib\pure\collections\sets.nim(133, 19) template/generic instantiation of `default` from here
C:\Work\software\nim-2.2.0\lib\system.nim(900, 17) Error: invalid type: 'None' in this context: 'proc (_: typedesc[HashSet[None]]): HashSet[None]{.noSideEffect, gcsafe.}' for proc

I am running it on Win11 64bit.

Would you please have a check thanks?

@leeooox
Copy link
Author

leeooox commented Oct 20, 2024

After comment line 178 of wResizer.nim, the examples compile and run successfully.
Again, it seems also an issue in previous version, but it comes out again in nim 2.2.0
#120

image

@sonicsmooth
Copy link

Will this be fixed any time soon?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants