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

Weird output in interpreter, line breaking in erlang #23

Open
lawik opened this issue Feb 8, 2020 · 2 comments
Open

Weird output in interpreter, line breaking in erlang #23

lawik opened this issue Feb 8, 2020 · 2 comments

Comments

@lawik
Copy link

lawik commented Feb 8, 2020

As describe in https://github.com/lumen/lumen/issues/393

Based on the Lumen interpreter-in-browser example.

Given this:

    'Elixir.Lumen.Web.Document':create_text_node(_document@1,
                             <<"This new text was created through Elixir in your browser. Which we all know is great. And glorious. And strange. And fine. And what is that? Oh my god! I'm writing long text!">>),

I can create the correct text.

Given this, by my formatter:

'Elixir.Lumen.Web.Document':create_text_node(_document@1,
                             <<"This new text was created through Elixir "
                               "in your browser. Which we all know is "
                               "great. And glorious. And strange. And "
                               "fine. And what is that? Oh my god! I'm "
                               "writing long text!">>),

I get a partial text which only includes the last two "lines". This:

fine. And what is that? Oh my god! I'm writing long text!

Am I missing something?

@KronicDeth
Copy link
Contributor

I saw a similar bug when using the demo. I worked around it by just making the text shorter when showing at FOSDEM. I think I told you on Slack, right @hansihe?

@hansihe
Copy link
Member

hansihe commented Feb 8, 2020

@KronicDeth Yep, you did. On my backlog after finishing this pass rewrite. Nice to have it in issue form as a reminder

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

3 participants