Skip to content

compiler error #19

@neidersun

Description

@neidersun

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#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions