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

Error in src/invidious.cr:19: while requiring "kemal" #245

Closed
arankaren opened this issue Nov 19, 2018 · 3 comments
Closed

Error in src/invidious.cr:19: while requiring "kemal" #245

arankaren opened this issue Nov 19, 2018 · 3 comments

Comments

@arankaren
Copy link

What I can be doing wrong ? 😢
I get this output when executing on ArchLinux:
crystal build src/invidious.cr --release

Error in src/invidious.cr:19: while requiring "kemal"

require "kemal"
^

in lib/kemal/src/kemal.cr:4: while requiring "./kemal/*"

require "./kemal/*"
^

in lib/kemal/src/kemal/config.cr:26: expanding macro

    property static_headers : (HTTP::Server::Response, String, File::Info -> Void)?
    ^~~~~~~~

in lib/kemal/src/kemal/config.cr:26: expanding macro

    property static_headers : (HTTP::Server::Response, String, File::Info -> Void)?
    ^

in macro 'property' expanded macro: macro_48177600:567, line 4:

   1.       
   2.         
   3.           
>  4.             @static_headers : (HTTP::Server::Response, String, File::Info -> Void) | ::Nil
   5. 
   6.             def static_headers : (HTTP::Server::Response, String, File::Info -> Void) | ::Nil
   7.               @static_headers
   8.             end
   9. 
  10.             def static_headers=(@static_headers : (HTTP::Server::Response, String, File::Info -> Void) | ::Nil)
  11.             end
  12.           
  13.         
  14.       
  15.     

undefined constant File::Info
@omarroth
Copy link
Contributor

Your version of Crystal is probably out of date.

What's the output of crystal --version? Should be 0.27.0.

@arankaren
Copy link
Author

Your version of Crystal is probably out of date.

What's the output of crystal --version? Should be 0.27.0.

Apparently I'm outdated 📦

$ crystal --version
Crystal 0.22.0 (2017-04-22) LLVM 4.0.0

🙍‍♀️

hum I will update and see if it was fixed.

@arankaren
Copy link
Author

Yes, effectively when updating crystal the problem is solved.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants