hako / blackboard-dl

📚💻 Downloads lectures and workshops automagically.
MIT License
8 stars 2 forks source link

CLIENT: Undefined constant XML::Type::ELEMENT_NODE #6

Closed ocelotsloth closed 4 years ago

ocelotsloth commented 4 years ago

Expected Behavior

crystal build src/blackboard-dl.cr should build the application.

Actual Behavior

~/Projects/blackboard-dl issue-4.
❯ crystal build src/blackboard-dl.cr    
Showing last frame. Use --error-trace for full trace.

In src/blackboard-dl/client.cr:169:30

 169 | if inner.type == XML::Type::ELEMENT_NODE
                        ^----------------------
Error: undefined constant XML::Type::ELEMENT_NODE

Versions

OS: Arch Linux Crystal Version:

❯ crystal -v
Crystal 0.32.1 (2019-12-18)

LLVM: 9.0.0
Default target: x86_64-pc-linux-gnu

Thoughts

It looks like they moved ELEMENT_NODE to XML::Node::Type::ELEMENT_NODE. Should be easy enough to fix.