skeeto/skewer-mode

Long -poll POST but no update / Symbol's value as variable is void

computersarecool opened this issue · 3 comments

I have followed the directions on the readme and here. I want to be able to evaluate a new HTML tag (i.e. add a new <p> tag, and have it evaluate.

When I use C-X e I get Symbol's value as variable is void. and when I useC-M-X` the text highlights and a post is logged in the developer tools console but nothing actually happens.

Do you have any idea why I am not getting the live updating?

Evaluating javascript using the run-skewer command works fine. I am running emacs 24.4

You're getting "symbol's value as variable is void" error because the
appropriate Skewer minor mode (e.g. skewer-html-mode) isn't active in
that buffer, so it's evaluating the expression as if it were Emacs Lisp.
Skewer itself will never give you that particular error message. If you
haven't called skewer-setup (i.e. in your init.el), you'll need to
arrange on your own for a Skewer minor mode to be activated in the
buffers where you want to use it. The article you linked shows how to do
this for html-mode.

I believe that might have been my hitting the wrong key or something.

I have it working to edit external javascript files in js-2 mode, and also CSS in web mode. The only thing that is not working is editing HTML. I am using Web mode, skewer-html is enabled, and the CSS part of my file updates, but adding new tags does not.

I am adding a brand new tag, or editing an existing one, then pressing C-M-x (just like how I have been evaluating the embedded CSS.

The code flashes highlighted, I see the post in my browser log, but nothing happens. Does this work from Web mode?

I am still curious about this. everything works so well and it seems like I am close I just can't get the evaluate HTML tag to work.

For an example, I have tried writing a <p></p> and placing the cursor at the beginning, inside and the end of the tag. When evaluated the tag is highlighted, a post is made, but nothing changes on the web page.