GULPF / nimquery

Nim library for querying HTML using CSS-selectors (like JavaScripts document.querySelector)
MIT License
134 stars 8 forks source link

Error: expression 'tkPseudoEmpty' is of type 'TokenKind' and has to be discarded #2

Closed shinriyo closed 6 years ago

shinriyo commented 6 years ago

Hello. I just tried to code in README.

I paste your code in script.nim. nim c -r script.nim

the error occurred.

/Users/shinriyo/.nimble/pkgs/nimquery-1.1.0/nimquery.nim(632, 29) Error: expression 'tkPseudoEmpty' is of type 'TokenKind' and has to be discarded
$ nim --version
Nim Compiler Version 0.17.2 (2017-09-18) [MacOSX: amd64]
GULPF commented 6 years ago

Hello!

Nimquery only works with the latest stable release of Nim (version 0.18.0). I'll update the nimble file to indicate this, so that Nimble will complain when the Nim version is to old.