Coder Social home page Coder Social logo

Comments (6)

snoyberg avatar snoyberg commented on July 23, 2024

I'm not sure how to figure out that it's the tabs/spaces mix which is causing the problem. One possible idea (probably a good one) is to simply ban tabs from denoting indentation; I doubt anyone will really complain.

However, the bigger issue here is... well, how do I say this politely... I did a god-awful job with the cassius error messages. What the hell does the "Only LineSingle" mean? Fixing that up should definitely rank high on my todo list.

from shakespeare.

rehno-lindeque avatar rehno-lindeque commented on July 23, 2024

Hahaha :) Hopefully this issue will serve as a reminder!

from shakespeare.

snoyberg avatar snoyberg commented on July 23, 2024

Hey Rehno,

I've pushed some commits that bump Hamlet to 0.6 and hopefully make error messages from Cassius much clearer. Mind having a look? I will require modifying Persistent and Yesod to have a higher version bounds on Hamlet.

Michael

from shakespeare.

rehno-lindeque avatar rehno-lindeque commented on July 23, 2024

Thanks Michael. I quickly started upgrading to yesod 0.6 today, but it looks like I have to upgrade some stuff first! It might take me a little while to catch up with yesod development :)

from shakespeare.

Shimuuar avatar Shimuuar commented on July 23, 2024

I'd vote to ban tabs. They may change meaning of program silently. If your editor and hamlet/cassius have different tab width it may lead either to error or it could be parsed not as you expected. Second case is real. I encountered it.

IMHO mixing tabs and significant indentation is generally bad ideaβ„’

from shakespeare.

snoyberg avatar snoyberg commented on July 23, 2024

OK, just pushed this commit, tabs for indentation give an error.

from shakespeare.

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.