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

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

Open
computersarecool opened this issue May 7, 2015 · 3 comments

Comments

@computersarecool
Copy link

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

@skeeto
Copy link
Owner

skeeto commented May 7, 2015

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.

@computersarecool
Copy link
Author

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?

@computersarecool
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants