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

Crystal bug while compiling #6183

Closed
Polands-in-the-sky opened this issue Jun 12, 2018 · 7 comments
Closed

Crystal bug while compiling #6183

Polands-in-the-sky opened this issue Jun 12, 2018 · 7 comments

Comments

@Polands-in-the-sky
Copy link

I was using the Crystal compiler the first time on Windows Subsystem for Linux(Ubuntu) and got the following error. How can I fix that?

`Poland@Poland:/mnt/e/kurwa/руст$ crystal hello.cr
String contains null byte
???
???
???
???
???
???
???
???

Error: you've found a bug in the Crystal compiler. Please open an issue, including source code that will allow us to reproduce the bug: https://github.com/crystal-lang/crystal/issues`

@straight-shoota
Copy link
Member

We'll need to see the source code you try to compile in order to help you.

@Polands-in-the-sky
Copy link
Author

Polands-in-the-sky commented Jun 12, 2018

Here:

require "http/server"
puts "Herro!"

server = HTTP::Server.new(8080) do |context|
  context.response.content_type = "text/plain"
  context.response.print "Hello world! The time is #{Time.now}"
end

puts "Listening on http://127.0.0.1:8080"
server.listen

@straight-shoota
Copy link
Member

I can't reproduce this error.

What Crystal version are you using and which operating system version?

Tip: Use triple backticks and put them on a separte line for block code format. Add crystal after the opening backticks to get syntax highlighting.

@ZaWertun
Copy link

It's duplicate of #5348 (see also #5799). It's not fixed in 0.25 yet.

@bcardiff
Copy link
Member

@ZaWertun #5350 which is referenced for those issues is included in 0.25.0

@ZaWertun
Copy link

@bcardiff Sorry, it's really fixed, looks like I'm using version older then 0.25 for tests.

@bcardiff
Copy link
Member

It's great to confirm it works for you in 0.25. I'm wanted to double check.

@RX14 RX14 closed this as completed Jun 18, 2018
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

No branches or pull requests

5 participants