jyapayne / nim-extensions

Extensions for the nim programming language.
MIT License
20 stars 4 forks source link

from extensions/enumerate import enumerate #5

Open pb-cdunn opened 5 years ago

pb-cdunn commented 5 years ago

requires "extensions >= 0.2.1"

from extensions/enumerate import enumerate
Error: internal error: importSymbol: 2

I think this package may need to be updated. Or this could be the same bug as https://github.com/nim-lang/Nim/issues/11052, a problem when a proc has the same name as the module in which it resides.

jyapayne commented 5 years ago

This now doesn't produce an error on the latest nim, but if you try to use enumerate when imported like this, it doesn't work (Undefined symbol enumerate). Likely for the reason you mentioned. Not sure what to do about this aside from wait for the issue you mentioned to be solved.

This still works though:

import extensions/enumerate