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

compiler error #19

Closed
neidersun opened this issue Mar 27, 2018 · 2 comments · Fixed by #22
Closed

compiler error #19

neidersun opened this issue Mar 27, 2018 · 2 comments · Fixed by #22

Comments

@neidersun
Copy link

I can not compile a lockal compile

root@DESKTOP-RRP2TLA:/home/hts/antennas/antennas# crystal build ./src/antennas.cr
Error in src/antennas.cr:132: instantiating 'Kemal:Module#run(Int32)'

Kemal.run(5004)
^~~

in lib/kemal/src/kemal.cr:12: instantiating 'Kemal:Module#run(Int32)'

self.run port do
     ^~~

in lib/kemal/src/kemal.cr:55: instantiating 'send_file(HTTP::Server::Context, String)'

      send_file env, file_path
      ^~~~~~~~~

in lib/kemal/src/kemal/helpers/helpers.cr:109: instantiating 'File:Class#open(String)'

File.open(file_path) do |file|
^~~~

in lib/kemal/src/kemal/helpers/helpers.cr:109: instantiating 'File:Class#open(String)'

File.open(file_path) do |file|
^~~~

in lib/kemal/src/kemal/helpers/helpers.cr:120: 'Flate::Writer.new' is not expected to be invoked with a block, but a block was given

  Flate::Writer.new(env.response) do |deflate|
                ^~~

root@DESKTOP-RRP2TLA:/home/hts/antennas/antennas#

@jfarseneau
Copy link
Owner

Try running shards install, and if that doesn't work, shards update and then shards install

@neidersun
Copy link
Author

no success. please check

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

Successfully merging a pull request may close this issue.

2 participants