Closed expez closed 11 years ago
There are two things going on here.
The "demo" skewer page is a completely empty HTML document. It used to have both a canvas element and include jQuery, which is what allowed the boids source to be loaded directly into the demo page. The jQuery dependency has since been removed from Skewer as well as the canvas on the demo page.
If you want to play with the boids demo now, you'll need to host the example.html
from the boids repository (not to be confused with Skewer's example.html
which shouldn't be used directly), either with your own server or using simple-httpd
or just use the online demo. Once it's hosted, inject a script tag fetching http://localhost:8080/skewer
(8080 being the default port) into the page (if you didn't change the port) using the bookmarklet, or the user script, or just by adding the tag to example.html
yourself (if locally hosted).
window.onerror
behavior, and it's not quite right.The error message is a separate issue and it came up because apparently Firefox changed its behavior. This is news to me, so thanks for posting the issue.
Previously, in Firefox the error
event on window
was only triggered for loading errors. In other browsers, including Chrome, this event is also triggered for asynchronous JavaScript errors. This is a really handy way for Skewer to learn errors in asynchronously running functions, but Firefox users had to forgo this feature since Firefox had no reasonable equivalent.
It looks like they finally added it to Firefox, but, unfortunately, it's incomplete. The event has no message
property or any other property that provides any information about the error. This gets passed along to Emacs, which tries to fetch the missing property, gets nil
instead, and tries to propertize
it, signaling an error.
I just fixed this in dbea191. You should see "
Thanks for the quick fix and additional instructions. I got it working!
Hi, I've been trying for quite some time to get skewer-mode to work, but I can't seem to figure out what's wrong.
I grabbed skewer-mode, js2-mode and httpd from melpa earlier today, so I should have the latest version. I've tried using both Firefox and Chrome with the same result.
Using Emacs 24.3.1 I do the following:
In the browser nothing happens.
The tail of httpd is as follows:
If I remove the condition-case from httpd--filter I get the following backtrace:
This is where my debug-fu came up short. Can you spot the problem?