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

ICE Bug: def refill_in_buffer [...] in crystal/src/io/encoding.cr:123:13 has no type #3946

Closed
TechMagister opened this issue Jan 27, 2017 · 3 comments

Comments

@TechMagister
Copy link

Crystal version :
Crystal 0.20.4 [d1f8c42] (2017-01-27)
Crystal 0.20.5+2 [15032cc] (2017-01-27)

Full stack trace and macro generated :
https://gist.github.com/TechMagister/9f70c1fa0fa61a96a521f19336c61a0e

Code to reproduce ( sorry, I have no time to reduce this for the moment :/ ):
https://github.com/TechMagister/cracker/tree/ice

@mverzilli
Copy link

Please if you find the time to write a reduced code snippet to reproduce it do so. It drastically increases the odds of having it fixed :).

@TechMagister
Copy link
Author

Reduced code :

require "cli"
require "json"

class Command
    JSON.mapping({
      content: String
    })
end



class Main < Cli::Supercommand
    class Server < Cli::Command
      def run
        Command.from_json("")
      end
    end
end

Main.run ARGV
shards:
  callback:
    github: mosop/callback
    version: 0.6.2

  cli:
    github: mosop/cli
    version: 0.6.4

  optarg:
    github: mosop/optarg
    version: 0.5.4

  string_inflection:
    github: mosop/string_inflection
    version: 0.2.0

@matiasgarciaisaia
Copy link
Member

matiasgarciaisaia commented Jan 30, 2017

Here's a gist to repro the issue (git clone https://gist.github.com/2ca75369657a70b24217cd8b36b482d8.git).

(Thanks for the sample, @TechMagister!)

@asterite asterite added this to the Next milestone Jan 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants