Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gulp error handler in browser thingy #365

Closed
yocontra opened this issue Mar 20, 2014 · 24 comments
Closed

Gulp error handler in browser thingy #365

yocontra opened this issue Mar 20, 2014 · 24 comments

Comments

@yocontra
Copy link
Member

After the new task system comes out, it would be cool to have a chrome extension (or use devtools somehow) that shows errors from gulp in the browser so you don't have to keep switching back and forth between the terminal and your app.

Suggested by @distracteddev

This would be in its own repo, just putting it here for brainstorming purposes

@distracteddev
Copy link

I actually just made #366 as I am very interesting in helping move Gulp forward. I will start looking into it immediately and report my progress here.

@yocontra
Copy link
Member Author

@distracteddev Anything that allows you to put arbitrary CSS/HTML on a page would be all that's needed on the browser end. The node library would just take an arbitrary Error object, form up the CSS/HTML, and shoot it over to the extension.

@sindresorhus
Copy link
Contributor

DevTools extension?

@tomasdev
Copy link

Do you guys think hooking up to livereload is way too hacky? We could send some new css including something like :after { content: "error message"; }

@distracteddev
Copy link

Not sure how to exactly approach this. Originally I was thinking I would just write a small Chrome Extension but then we would be alienating FF users.

Therefore I was looking into http://crossrider.com/

@yocontra
Copy link
Member Author

@distracteddev Just do a chrome extension first and somebody who uses FF can add one later?

@sindresorhus Do you have any docs that would help for doing this as a devtools extension vs. a chrome extension?

@sindresorhus
Copy link
Contributor

@yocontra
Copy link
Member Author

yocontra commented Sep 1, 2014

Anyone interested in developing this?

@kenwheeler
Copy link

I might take a crack at it. I developed something similiar for backend log errors on an enterprise ecomm platform using sockets and chrome notifications.

@ericclemmons
Copy link

@tomasdev I like you're idea :)

@tomasdev
Copy link

tomasdev commented Sep 1, 2014

@contra what would be the requirements/acceptance criteria?

@yocontra
Copy link
Member Author

yocontra commented Sep 1, 2014

@tomasdev Text from process.stderr somehow ends up in the browser and looks nice. You could listen to gulp.on('task_err') but some stuff that isn't gulp plugins or gulp tasks will be outputting on stderr, so that seems like a better approach IMO

@tomasdev
Copy link

tomasdev commented Sep 1, 2014

@contra any kind of implementation? I've seen sass doing the body:after trick to show up the errors. Did we decide if it's gonna be an extension? Seems like @kenwheeler is already into something. 😃

@yocontra
Copy link
Member Author

yocontra commented Sep 1, 2014

@tomasev I think an extension makes the most sense, not everyone is using livereload. Implementation could follow what grunt-devtools (linked above) did for reference

@yocontra
Copy link
Member Author

yocontra commented Sep 1, 2014

Hmm wait a second

https://github.com/niki4810/gulp-devtools

@niki4810 is this functioning?

@niki4810
Copy link

niki4810 commented Sep 2, 2014

@contra Yes, are you hitting any issues ?

@yocontra
Copy link
Member Author

yocontra commented Sep 2, 2014

@niki4810 When an error happens in a task does it display a pop-up or only if you have the console open? How hard would it be to add a popup to the page with the error?

@phated
Copy link
Member

phated commented Sep 2, 2014

I don't agree with altering the page. Also, (as far as I am aware) devtools addons don't have access to the page contents. Beefy does this by serving up an error page with the stack trace if an error occurs in the bundler.

@niki4810
Copy link

niki4810 commented Sep 2, 2014

@contra right now it just logs the error to console, but adding one should take much time based on what gets decided here :)

@danielhusar
Copy link

If by popup you mean alert I don't think so its a good idea either, because it bring focus to window.

@yocontra
Copy link
Member Author

yocontra commented Sep 2, 2014

@danielhusar No I don't mean an alert

@torifat
Copy link

torifat commented Sep 6, 2014

@contra HTML5 Push Notification would be cool IMO. Though I would prefer it as a option.

@thasmo
Copy link

thasmo commented Dec 30, 2014

@contra, what about using something like gulp-notify?

@heikki heikki changed the title gulp error handler in browser thingy Gulp error handler in browser thingy Feb 14, 2015
@phated
Copy link
Member

phated commented Nov 9, 2015

Going to close this, as there are a few user-land tools people can use

@phated phated closed this as completed Nov 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests