GithubHelp home page GithubHelp logo

Comments (6)

felixhageloh avatar felixhageloh commented on August 14, 2024

Glad you are enjoying the app! Yes CoffeeScript uses, so called, significant whitespace, meaning incorrect indentation is a syntax error. I don't intend giving a tutorial on CoffeeScript in the readme, but do you think adding a link to the CoffeeScript documentation would do the trick?

Regarding console errors: The compilation of CoffeeScript happens before the widget hits the fronted since you can't run CoffeeScript directly in a browser (which is what Übersicht is essentially). This is why it is impossible to see CoffeeScript errors in the console. However, CoffeeScript errors should be shown directly in the widget, so on your desktop. This is not ideal and could be improved in the future. For example if your widget is not displayable yet, because of styles or because it is completely broken, you will unfortunately never see the errors.

For now you could use a CoffeeScript linter (http://www.coffeelint.org) or an editor that supports CoffeeScript to make sure you catch all syntax errors. Alternatively you could also write widgets in plain Javascript. Hope this helps!

from uebersicht.

gboudreau avatar gboudreau commented on August 14, 2024

Felix: how about a "hard-coded invisible widget" that would use a command that grep errors from the node log, where compilation errors can be found, and simply echo those logs in the debug console?

from uebersicht.

edasque avatar edasque commented on August 14, 2024

I was thinking that's actually a good default widget to include.

from uebersicht.

edasque avatar edasque commented on August 14, 2024

So where would the coffeescript compilation log be found?

from uebersicht.

felixhageloh avatar felixhageloh commented on August 14, 2024

@gboudreau I think you are onto something. Relaying these compilation errors to the console might be a good idea.

@edasque at the moment these errors are shown inside the widget if possible

from uebersicht.

agileadam avatar agileadam commented on August 14, 2024

@felixhageloh thanks for such a detailed reply. I here what you're saying, and I do think a link would be awesome (not that people won't just Google it I guess). I used one of the existing widgets to derive a hello world example (of sorts) and it never occurred to me that I was using erroneous indentation. Whoops!

I too would love to see the errors in the debug console.

Thanks again!

from uebersicht.

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.