Comments (6)
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.
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.
I was thinking that's actually a good default widget to include.
from uebersicht.
So where would the coffeescript compilation log be found?
from uebersicht.
@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.
@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)
- MS Edge losing focus on toolbar menus when Ubersicht is running
- How to find the widget id for specific widget? HOT 2
- Add `eventListener` after render in JSX? HOT 1
- Your GetWidgets page need to be organized by Arch Type
- HELP shell script formatting ignored? HOT 1
- I want to click on the widget with ⌘ + left-click HOT 2
- Sonoma: Uebersicht App does not not show widget list any more (although all widgets were launched properly) HOT 45
- Uebersicht no longer takes full screen height on latest Sonoma beta HOT 50
- Übersicht doesn't prompt for calendar permission in Sonoma HOT 7
- Native Mac OS widgets
- übersicht not starting up on sonoma, the little u icon isn't in the menu bar HOT 1
- Widgets not showing in alphabetical order on Sonoma
- Widget screen selection is lost on macOS Sonoma after sleep HOT 2
- Cannot hide scrollbars in widget when overflow css is *not* set to hidden HOT 1
- THANKS HOT 1
- how does one read a file in a jsx widget? HOT 1
- Feature request: support running commands without a shell HOT 1
- Support streaming inputs ? HOT 1
- Is there an option to focus a widget?
- Is uebersicht planning on supporting TypeScript?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uebersicht.