skeeto / skewer-mode

Live web development in Emacs
The Unlicense
1.1k stars 57 forks source link

No result from C-x C-e #18

Closed maacl closed 11 years ago

maacl commented 11 years ago

I have installed skewer from melpa (version 20130324.8) and use it with js2-mode version 20130409.1820.

After running run-skewer in a js2-mode buffer trying to evaluate a form produces no result. The form flashes but no output is produced. I have tried looking for info in messages and httpd that could assist in debugging but with no results.

I have tested with Chrome Version 26.0.1410.43 beta and Safari Version 6.0.3 (8536.28.10).

skeeto commented 11 years ago

Sorry, I didn't have time to address this when you first posted the issue and then I forgot about it.

When you did run-skewer did your browser visit a blank page with the title "Skewer"? Is there an *httpd* buffer with requests listed? Is there anything listed by M-x list-skewer-clients (press g to update the list)? Did you already have a server bound to httpd-port (default 8080)?

The flash indicates that skewer-mode is active and successfully grabbing expressions. There just seems to be a lack of response from the browser.

maacl commented 11 years ago

No prob.

Yes the Skewer page pops up in the standard system browser at http://127.0.0.1:8080/skewer/demo

M-x list-skewer-clients produces: 127.0.0.1 56472 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.56 Safari/537.36

Pressing g blanks the list-skewer-clients buffers, but the client reappears if I refresh the browser.

I have nothing else bound to 8080: sudo lsof -i :8080 produces: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME Google 402 mac 91u IPv4 0xcec404cd8b8f323d 0t0 TCP localhost:56504->localhost:http-alt (ESTABLISHED) Google 402 mac 131u IPv4 0xcec404cd82e5987d 0t0 TCP 192.168.1.6:56480->8.18.203.82:http-alt (ESTABLISHED) Google 402 mac 197u IPv4 0xcec404cd87a9955d 0t0 TCP localhost:56505->localhost:http-alt (ESTABLISHED) Emacs 5448 mac 8u IPv4 0xcec404cd8b8f1c95 0t0 TCP *:http-alt (LISTEN) Emacs 5448 mac 9u IPv4 0xcec404cd8b736145 0t0 TCP localhost:http-alt->localhost:56504 (ESTABLISHED) Emacs 5448 mac 10u IPv4 0xcec404cd8b8ef145 0t0 TCP localhost:http-alt->localhost:56505 (ESTABLISHED)

On Sun, Apr 21, 2013 at 6:18 PM, Christopher Wellons < notifications@github.com> wrote:

Sorry, I didn't have time to address this when you first posted the issue and then I forgot about it.

When you did run-skewer did your browser visit a blank page with the title "Skewer"? Is there an httpd buffer with requests listed? Is there anything listed by M-x list-skewer-clients (press g to update the list)? Did you already have a server bound to httpd-port (default 8080)?

The flash indicates that skewer-mode is active and successfully grabbing expressions. There just seems to be a lack of response from the browser.

— Reply to this email directly or view it on GitHubhttps://github.com/skeeto/skewer-mode/issues/18#issuecomment-16730551 .

skeeto commented 11 years ago

If pressing g blanks it, that means the browser isn't actually sticking around for some reason. Are you using exactly version 20130324.8 from Melpa? Is there an error message in the Chrome console?

maacl commented 11 years ago

Yes, using exactly 20130324.8, and there are no errors logged to the console. Tested with Safari and Firefox too with same result.

On Sun, Apr 21, 2013 at 11:02 PM, Christopher Wellons < notifications@github.com> wrote:

If pressing g blanks it, that means the browser isn't actually sticking around for some reason. Are you using exactly version 20130324.8 from Melpa? Is there an error message in the Chrome console?

— Reply to this email directly or view it on GitHubhttps://github.com/skeeto/skewer-mode/issues/18#issuecomment-16746265 .

skeeto commented 11 years ago

I tried installing it from Melpa from scratch in a bare emacs instance in an empty home directory on two different machines and both worked as expected. Could you try that too? Maybe there's a conflict with another extension you have installed.

mkdir /tmp/test
HOME=/tmp/test emacs -Q
# add Melpa to package-archives, install skewer-mode, M-x run-skewer

Another idea: connect to Emacs manually from the Skewer page started by run-skewer. In the browser console, run skewer(), which will force it to reconnect. Then see if it's listed in list-skewer-clients and stays listed after refreshing the list with g. Refreshing pings the browser and it will only stay "connected" if it responds.

Thanks for your patience in working this out. Most people would probably have given up and tried something different a long time ago.

maacl commented 11 years ago

A clean install works, but manually running skewer() from the browser does not work, i.e. on g the client disappears from the list-skewer-clients buffer.

I tried removing js2-mode and skewer and reinstalling skewer, but to no avail.

I looked for anything the could interfere with js2-mode or skewer in my init.el but nothing comes to mind. Also tried commenting out my entire init.el, but also with no effect. Looks like a package conflict to me. This is the contents of my ~/.emacs.d/elpa dir:

ac-nrepl-20120910.1834 highline-7.2.2 nrepl-20130330.1126 ac-nrepl-20130110.1018 ido-hacks-20130411.1859 pcache-20120408.1206 ace-jump-mode-20120812.1640 idomenu-20111122.1048 powerline-20120910.1435 ace-jump-mode-20121104.1157 iedit-20130302.658 powerline-20130404.700 archives javascript-readme.txt rainbow-mode-0.2 auto-complete-1.4.20110207 js-comint-0.0.1 simple-httpd-20121101.2056 clojure-mode-1.11.2 js2-mode-20130409.1820 skewer-mode-20130324.8 clojure-mode-20120702 js2-mode-readme.txt skewer-mode-readme.txt clojure-mode-20130326.1159 logito-20120225.2155 smex-1.1.1 clojure-test-mode-20130326.1409 lua-mode-20130402.1346 smex-20120915.2041 coffee-mode-0.3.0 magit-1.0.0 solarized-theme-20120922.2326 color-theme-20080305.834 magit-20120916.1045 swank-clojure-readme.txt color-theme-solarized-20120829.2248 magit-gh-pulls-20120116.1329 switch-window-20120823.2144 dart-mode-readme.txt magit-push-remote-20120916.1714 switch-window-20121102.1529 elpy-20130410.1415 magithub-20120209.1352 undo-tree-0.3.1 emacs-setup-readme.txt main-line-20130320.1807 virtualenv-20120930.1034 expand-region-20120919.2225 main-line-readme.txt yasnippet-20130218.2229 find-file-in-project-20120716.1655 markdown-mode-20120726.17 yasnippet-bundle-0.6.1 fuzzy-20120323.1044 nav-20120503 zencoding-mode-20111231.345 gh-20120720.2305 nose-20110804.819 highlight-indentation-20130106.41 nrepl-20120912.248

On Mon, Apr 22, 2013 at 2:44 AM, Christopher Wellons < notifications@github.com> wrote:

I tried installing it from Melpa from scratch in a bare emacs instance in an empty home directory on two different machines and both worked as expected. Could you try that too? Maybe there's a conflict with another extension you have installed.

mkdir /tmp/test HOME=/tmp/test emacs -Q

add Melpa to package-archives, install skewer-mode, M-x run-skewer

Another idea: connect to Emacs manually from the Skewer page started by run-skewer. In the browser console, run skewer(), which will force it to reconnect. Then see if it's listed in list-skewer-clients and stays listed after refreshing the list with g. Refreshing pings the browser and it will only stay "connected" if it responds.

Thanks for your patience in working this out. Most people would probably have given up and tried something different a long time ago.

— Reply to this email directly or view it on GitHubhttps://github.com/skeeto/skewer-mode/issues/18#issuecomment-16749765 .

maacl commented 11 years ago

I went all in and wiped my .emacs and reinstalled all packages required by my init.el, and now everything works.

On Mon, Apr 22, 2013 at 8:56 AM, Martin Clausen martin.clausen@gmail.comwrote:

A clean install works, but manually running skewer() from the browser does not work, i.e. on g the client disappears from the list-skewer-clients buffer.

I tried removing js2-mode and skewer and reinstalling skewer, but to no avail.

I looked for anything the could interfere with js2-mode or skewer in my init.el but nothing comes to mind. Also tried commenting out my entire init.el, but also with no effect. Looks like a package conflict to me. This is the contents of my ~/.emacs.d/elpa dir:

ac-nrepl-20120910.1834 highline-7.2.2 nrepl-20130330.1126 ac-nrepl-20130110.1018 ido-hacks-20130411.1859 pcache-20120408.1206 ace-jump-mode-20120812.1640 idomenu-20111122.1048 powerline-20120910.1435 ace-jump-mode-20121104.1157 iedit-20130302.658 powerline-20130404.700 archives javascript-readme.txt rainbow-mode-0.2 auto-complete-1.4.20110207 js-comint-0.0.1 simple-httpd-20121101.2056 clojure-mode-1.11.2 js2-mode-20130409.1820 skewer-mode-20130324.8 clojure-mode-20120702 js2-mode-readme.txt skewer-mode-readme.txt clojure-mode-20130326.1159 logito-20120225.2155 smex-1.1.1 clojure-test-mode-20130326.1409 lua-mode-20130402.1346 smex-20120915.2041 coffee-mode-0.3.0 magit-1.0.0 solarized-theme-20120922.2326 color-theme-20080305.834 magit-20120916.1045 swank-clojure-readme.txt color-theme-solarized-20120829.2248 magit-gh-pulls-20120116.1329 switch-window-20120823.2144 dart-mode-readme.txt magit-push-remote-20120916.1714 switch-window-20121102.1529 elpy-20130410.1415 magithub-20120209.1352 undo-tree-0.3.1 emacs-setup-readme.txt main-line-20130320.1807 virtualenv-20120930.1034 expand-region-20120919.2225 main-line-readme.txt yasnippet-20130218.2229 find-file-in-project-20120716.1655 markdown-mode-20120726.17 yasnippet-bundle-0.6.1 fuzzy-20120323.1044 nav-20120503 zencoding-mode-20111231.345 gh-20120720.2305 nose-20110804.819 highlight-indentation-20130106.41 nrepl-20120912.248

On Mon, Apr 22, 2013 at 2:44 AM, Christopher Wellons < notifications@github.com> wrote:

I tried installing it from Melpa from scratch in a bare emacs instance in an empty home directory on two different machines and both worked as expected. Could you try that too? Maybe there's a conflict with another extension you have installed.

mkdir /tmp/test HOME=/tmp/test emacs -Q

add Melpa to package-archives, install skewer-mode, M-x run-skewer

Another idea: connect to Emacs manually from the Skewer page started by run-skewer. In the browser console, run skewer(), which will force it to reconnect. Then see if it's listed in list-skewer-clients and stays listed after refreshing the list with g. Refreshing pings the browser and it will only stay "connected" if it responds.

Thanks for your patience in working this out. Most people would probably have given up and tried something different a long time ago.

— Reply to this email directly or view it on GitHubhttps://github.com/skeeto/skewer-mode/issues/18#issuecomment-16749765 .