Code Monkey home page Code Monkey logo

Comments (6)

luke-gru avatar luke-gru commented on August 23, 2024

Thanks for the bug report once again! This is probably happening because of fileformat issues, the lexer isn't looking for carriage returns as newlines. I'll get a fix out for this by Friday. If you change the fileformat to unix set fileformat=unix, that should make it compile for now. My guess is that it was set to dos or mac, and I just tested and confirmed the bug with these fileformats.

Thanks again!

from riml.

dsawardekar avatar dsawardekar commented on August 23, 2024

@luke-gru I'm not sure this is a fileformat issue. I'm on Ubuntu, and my fileformat is always unix. I tried setting the whitespace to be visible with, :set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<

This shows the trailing whitespace as ~. Riml compiles correctly when I remove the trailing whitespaces.

from riml.

luke-gru avatar luke-gru commented on August 23, 2024

That's really weird. I tried to reproduce by just putting trailing '' characters, but I couldn't. I'll look more into this tonight.

from riml.

dsawardekar avatar dsawardekar commented on August 23, 2024

Here's a couple of gists with the exact code, and the full stacktraces.

This pattern repeats for other statements. The error's messages are different, but I think the issues are related. And the errors do go away if you trim the trailing whitespaces.

from riml.

luke-gru avatar luke-gru commented on August 23, 2024

Just figured out why I couldn't reproduce the issue initially. When I :wqed from vim, my autocmd to delete trailing whitespace kicked in. Forgot I had the autocmd, because at work I had to disable it due to some people's unexplained fondness for trailing whitespaces 😄. I discovered the source of the problem, fix is coming now.

from riml.

dsawardekar avatar dsawardekar commented on August 23, 2024

Hah! I was beginning to doubt my eyes for a bit there. 🍷

from riml.

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.