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

Warning: Cannot prove that 'arg1k' is initialized. This will become a compile time error in the future. [ProveInit] #163

Closed
Benjamin-Lee opened this issue Jul 20, 2020 · 4 comments

Comments

@Benjamin-Lee
Copy link

I'm getting the following error:

/Users/BenjaminLee/.nimble/pkgs/nimpy-0.1.0/nimpy.nim(972, 32) Warning: Cannot prove that 'arg1k' is initialized. This will become a compile time error in the future. [ProveInit]

This is the offending line:

nimpy/nimpy.nim

Line 972 in e0c2ad5

let argIdent = newIdentNode("arg" & $a.idx & $a.name)

Do you have any idea what's going on here?

@yglukhov
Copy link
Owner

yglukhov commented Sep 9, 2020

Not sure. Are you using enums that don't have a zero value as arguments?

@Benjamin-Lee
Copy link
Author

@Pebaz can you take a look at this? I'm not using any enums in my code at all, but I'm compiling for Python through Nimporter so he might be, though I couldn't find any by searching the repo.

@yglukhov
Copy link
Owner

yglukhov commented Jan 8, 2021

I'll need some steps to reproduce, can't help otherwise.

@yglukhov
Copy link
Owner

yglukhov commented Jul 6, 2021

nimporter issue was fixed by suppressing the warning. I still believe the issue might be in nimpy, but anyways it is unlikely to cause any troubles in real life. I'm closing this, but I'm still mildly interested in a reproducible sample.

@yglukhov yglukhov closed this as completed Jul 6, 2021
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