crystal-lang


Unable to compile after upgrade from crystal 0.19.4 to 0.20


The shards install went well but compilation gave this error.
Checked with icr that able to connect to local postgres database successfully. Any help is greatly appreciated! Thank you.
[aranin#acbc328b9a5b:kemal-react-pg-chat-master]$ crystal build src/app.cr --release
Error in src/app.cr:44: instantiating 'Kemal:Module#run()'
Kemal.run
^~~
in lib/kemal/src/kemal.cr:11: instantiating 'run(Nil)'
def self.run(port = nil)
^
in lib/kemal/src/kemal.cr:41: instantiating 'HTTP::Server::Context#params()'
image = env.params.url["image"]
^~~~~~
in lib/kemal/src/kemal/context.cr:11: instantiating 'route_lookup()'
#request.url_params ||= route_lookup.params
^~~~~~~~~~~~
in lib/kemal/src/kemal/context.cr:21: instantiating 'HTTP::Request#override_method()'
Kemal::RouteHandler::INSTANCE.lookup_route(#request.override_method.as(String), #request.path)
^~~~~~~~~~~~~~~
in lib/kemal/src/kemal/request.cr:7: instantiating 'check_for_method_override!()'
#override_method ||= check_for_method_override!
^~~~~~~~~~~~~~~~~~~~~~~~~~
in lib/kemal/src/kemal/request.cr:14: instantiating 'Kemal::ParamParser#body()'
params = Kemal::ParamParser.new(self).body
^~~~
in lib/kemal/src/kemal/param_parser.cr:24: expanding macro
{% for method in %w(url query body json) %}
^
in macro 'macro_4590134368' /Users/aranin/Documents/rub-me/crystalax/kemal-react-pg-chat-master/lib/kemal/src/kemal/param_parser.cr:24, line 26:
It probably means that a version of kemal that targets Crystal 0.20.0 wasn't released yet. You can change your shard.yml file to point to the master branch:
dependencies:
kemal:
github: sdogruyol/kemal
branch: master
That worked for me.
Kemal 0.17.0 released with Crystal 0.20.0 support. If you don't want to track master you can use it with
dependencies:
kemal:
github: sdogruyol/kemal
version: 0.17.0

Related Links

passing json to a superclass using .from_json
execution of command failed with code: 1: `cc -o "/root/.cache/crystal/var-app-staging-new-http.cr
How to use union in “if” statement [Crystal]
How to convert a hex string to bytes array in Crystal?
is INSTANCE = new in class is run after compilation automatically or the first time it is accessed?
Crystal lang: understanding method return type of Void
Crystal-lang httpget basic_auth
How to control using CPU cores [Crystal]
How can I read a slice with other size in crystal?
Unix-style password readline
Cannot find -lxml2 when trying to run crystal spec
How do I access an object's eigenclass in Crystal?
Why does my code never reaches the end when waiting for pipe?
Crystal reading x bytes from file
Getting the first element of an empty Array
Errors when running Crystal Play

Categories

HOME
uml
httparty
grok
eslint
alexa-skills-kit
formal-languages
pda
object
flex
zend-framework
composite-primary-key
carousel
web-hosting
mvc5
special-characters
google-schemas
php-5.6
intercom
selectize.js
google-container-registry
nodemcu
bourbon
topology
ksh
href
event-store
object-storage
epsilon
draft-js-plugins
xcode-ui-testing
has-and-belongs-to-many
winexe
catch-unit-test
rselenium
twos-complement
activexobject
roblox
apiary.io
spring-mvc-test
xv6
chronicle-map
ssrs-2014
twilio-click-to-call
wpas
git-flow
jqchart
oozie-coordinator
seq
rsa-archer-grc
reachability
cronexpression
slackware
simplepie
redistributable
pacemaker
file-uri
beamer
lean
refinerycms
freepbx
angular-ui-typeahead
createprocess
kendo-upload
opl
dynatree
microsoft-reporting
rate-limiting
django-urls
binomial-theorem
visual-sourcesafe-2005
typemock
dot.js
infosphere-spl
mdichild
unix-socket
mobility
ignite-ui
rcaller
lnk
dot42
vsx
gae-quotas
git-repo
windows-embedded-standard
rfc5322
sphinxql
modular
tlf
process-explorer
windows-98
extreme-programming
xcode3.2
boost-signals
failing-tests
virtualpathprovider
google-maps-mobile
agility.js
filemerge
tournament
uipagecontrol
cldc
localizable.strings
int64
movieplayer
appliance
idatareader

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App