GithubHelp home page GithubHelp logo

Comments (5)

bogga avatar bogga commented on June 11, 2024 1

Full trace:

$ shards build --error-trace
Dependencies are satisfied
Building: irs
Error target irs failed to compile:
In src/glue/mapper.cr:4:8

 4 | JSON.mapping(
          ^------
Warning: Deprecated JSON.mapping. use JSON::Serializable instead (the legacy behaviour is also available in a shard at github:crystal-lang/json_mapping.cr)

In src/glue/mapper.cr:4:3

 4 | JSON.mapping(
     ^
Warning: expanding macro


There was a problem expanding macro 'mapping'

Called macro defined in /usr/share/crystal/src/json/mapping.cr:232:3

 232 | macro mapping(**_properties_)

Which expanded to:

 > 1 |     ::JSON.mapping({tracks: {type: PlaylistTracksMapper, setter: true}, id: String, images: JSON::Any, name: String, owner: JSON::Any, type: String})
   2 |
Warning: Deprecated JSON.mapping. use JSON::Serializable instead (the legacy behaviour is also available in a shard at github:crystal-lang/json_mapping.cr)

In src/glue/mapper.cr:18:8

 18 | JSON.mapping(
           ^------
Warning: Deprecated JSON.mapping. use JSON::Serializable instead (the legacy behaviour is also available in a shard at github:crystal-lang/json_mapping.cr)

In src/glue/mapper.cr:28:8

 28 | JSON.mapping(
           ^------
Warning: Deprecated JSON.mapping. use JSON::Serializable instead (the legacy behaviour is also available in a shard at github:crystal-lang/json_mapping.cr)

In src/glue/album.cr:12:7

 12 | def find_it
          ^------
Warning: this method overrides SpotifyList#find_it() which has an explicit return type of JSON::Any.

Please add an explicit return type (JSON::Any or a subtype of it) to this method as well.

The above warning will become an error in a future Crystal version.

In src/glue/playlist.cr:16:7

 16 | def find_it
          ^------
Warning: this method overrides SpotifyList#find_it() which has an explicit return type of JSON::Any.

Please add an explicit return type (JSON::Any or a subtype of it) to this method as well.

The above warning will become an error in a future Crystal version.

A total of 6 warnings were found.
In src/irs.cr:8:1

 8 | main()
     ^---
Error: instantiating 'main()'


In src/irs.cr:5:7

 5 | cli.act_on_args
         ^----------
Error: instantiating 'CLI#act_on_args()'


In src/bottle/cli.cr:85:9

 85 | s.grab_it
        ^------
Error: instantiating 'Song#grab_it()'


In src/glue/song.cr:94:12

 94 | Ripper.download_mp3(url.as(String), @filename)
             ^-----------
Error: instantiating 'Ripper:Module#download_mp3(String, String)'


In src/interact/ripper.cr:41:14

 41 | return l.start do |line, index|
               ^----
Error: instantiating 'Logger#start()'


In src/interact/logger.cr:41:14

 41 | called = future {
               ^-----
Error: undefined local variable or method 'future' for Logger

from irs.

cooperhammond avatar cooperhammond commented on June 11, 2024 1

Should be fixed with pull #64, the .35 update broke it

from irs.

yyyyyyyan avatar yyyyyyyan commented on June 11, 2024

I got the same thing. I installed crystal from Arch Linux repo (pacman -S crystal shards).

from irs.

noctisatrae avatar noctisatrae commented on June 11, 2024

Up +1 ! I have the same issues !

from irs.

bogga avatar bogga commented on June 11, 2024

confirmed: it builds! (needed to install libxml2-dev and libyaml-dev first, just in case anyone needed that help)

from irs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.