Why does swank-js give me a "document not defined" in emacs REPL?

I do the following:

  • Run swank-js on the command line.
  • Run emacs.
  • Mx slime-connect.
  • Host: 127.0.0.1; Port: 4005
  • Open http://localhost:8009/swank-js/test.html in Firefox.
  • Get: "Remote Access: (Browser) Firefox14.0" in emacs REPL.
  • Run the "document" command in the REPL.

At this point, I get an error message:

 ReferenceError: document is not defined at repl:1:1 at DefaultRemote.evaluate (/usr/lib/nodejs/swank-js/swank-handler.js:314:9) at Executive.listenerEval (/usr/lib/nodejs/swank-js/swank-handler.js:414:21) at Handler.receive (/usr/lib/nodejs/swank-js/swank-handler.js:169:20) at SwankParser.onMessage (/usr/lib/nodejs/swank-js/swank.js:50:17) at SwankParser.handleMessage (/usr/lib/nodejs/swank-js/swank-protocol.js:75:8) at SwankParser.handleContent (/usr/lib/nodejs/swank-js/swank-protocol.js:62:10) at SwankParser.execute (/usr/lib/nodejs/swank-js/swank-protocol.js:53:20) at Socket.<anonymous> (/usr/lib/nodejs/swank-js/swank.js:60:16) at Socket.emit (events.js:67:17) 

Should I use require () or something else? I am still a little foggy as / slime / node is being fooled, so please forgive the black box topic of this question .: D

+7
source share
1 answer

Judging by the bug report at https://github.com/swank-js/swank-js/issues/49#issuecomment-8079040 , I would assume that you are not loading the slime-js component.

+4
source

All Articles