tilt-dev / tilt

Define your dev environment as code. For microservice apps on Kubernetes.
https://tilt.dev/
Apache License 2.0
7.57k stars 298 forks source link

Feature request: more obvious notifications for build/live update errors #3294

Open majelbstoat opened 4 years ago

majelbstoat commented 4 years ago

Sometimes (frequently) when writing go code, compilation fails due to a mistake. Tilt shows this in its logs, but because it runs in the background (or another browser tab where I'm not paying attention because I'm looking at the site I'm building), I don't realise there's been a compilation error. I'm then temporarily confused as to why the change I thought I just made hasn't taken effect. I then have to switch to the terminal or browser tab to see if it was a compilation issue. This uncertainty breaks my flow multiple times a day.

Similar issues occur when I break my web front-end so badly that the server won't start. It can be hard to differentiate that, for example, from "babel/typescript is doing an expensive compilation and is just being slow" or "react hotloader is syncing stuff".

It would be great if Tilt got loud about build failures/image crashes somewhere else other than in its logs. On OSX, that might look like a message in notification center. It might be an audible bell or something. Really, I'm just looking for something to differentiate "the code i wrote is broken for a logical reason" from "the image has not been updated".

wu-victor commented 4 years ago

@majelbstoat : Thanks for the idea. If the browser tab icon changes, do you think that would help?

majelbstoat commented 4 years ago

Maybe? Honestly, I tend to close the tilt browser tab as soon as it opens 😬. I'm building web products, and am always in those tabs, and it's much easier to cmd+tab to terminal and back than switch to another arbitrary browser tab and back. But, if the icon could show give me a signal, that might be enough reason to keep it open! Maybe make it flick back and forth so it's actually noticeable though? With 20 tabs open, it would potentially be hard to notice.

Thanks for considering it :)

maiamcc commented 4 years ago

FWIW this seems like a more specific case of #2122

nicks commented 4 years ago

I wonder if we should use something like https://github.com/getlantern/systray to do OS statusbar notifications. That's pretty typical for Docker and other tools in this space.

olivierACRI commented 1 month ago

Browser notification will be awesome, you can keep your browser tab and work on others and it warns you when the deployment is done, that super useful when deployment is quite long or startup of server lasting for a couple of minutes.