Comments (20)
I found what's wrong: nodejs 7.x.x uses a different version of the remote debugger protocol.
I'll push a fix soon, thanks for reporting the issue!
from indium.
@CSRaghunandan no, it shouldn't be, I'll check what's wrong!
from indium.
from indium.
Chrome version: Version 54.0.2840.98 (64-bit)
Edit: Sorry for being a noob, but do I need to install chromium to get this to work?
from indium.
No, but it looks like you're trying to connect to a nodejs process.
How did you try to connect to chrome?
Can you try starting chrome like this:
chrome --remote-debugging-port=9222
On macOS, it should be something like:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
Make sure to start a new chrome process (eg close any chrome window before doing this).
Then navigate to the website you want to connect to, and then from Emacs M-x jade-connect-to-chrome
.
from indium.
That indeed works. I've an alias for the same. I can connect to a chrome tab no problem.
But, I'm unable to connect to a nodejs process
from indium.
from indium.
nodejs v.7.2.1
Umm is it because I'm emacs master build that the connection to nodejs process is refusing?
from indium.
Thank for taking a look into this 👍
from indium.
I am experiencing this issue with node 6.9.1, 6.9.5, and 7.5.0. So I am not sure it is version-related. The error I get with 6.9.5 is as follows:
Debugger entered--Lisp error: (websocket-invalid-header . "Invalid HTTP status line")
signal(websocket-invalid-header "Invalid HTTP status line")
websocket-outer-filter([cl-struct-websocket closed nil (closure ((on-open) (websocket-url . "ws://127.0.0.1:9229/node") (url . "ws://127.0.0.1:9229/node") t) (ws) (if on-open (progn (funcall on-open))) (jade-webkit--handle-ws-open ws url)) jade-webkit--handle-ws-message jade-webkit--handle-ws-closed jade-webkit--handle-ws-error nil nil nil "ws://127.0.0.1:9229/node" nil nil #<process websocket to ws://127.0.0.1:9229/node> nil "zPlBbGHjkz4B4QORFIAc/OlCwdU=" nil] "HTTP/1.0 400 Bad Request
\nContent-Type: text/html; charset=UTF-8
\n
\nWebSockets request was expected
\n")
#[(process output) "\303�\304\"�\305 \n\")\207" [process websocket output process-get :websocket websocket-outer-filter] 3](#<process websocket to ws://127.0.0.1:9229/node> "HTTP/1.0 400 Bad Request
\nContent-Type: text/html; charset=UTF-8
\n
\nWebSockets request was expected
\n")
read-event(nil t 2)
sit-for(2)
execute-extended-command(nil "jade-connect-to-nodejs" "jade-connect-to-no")
funcall-interactively(execute-extended-command nil "jade-connect-to-nodejs" "jade-connect-to-no")
call-interactively(execute-extended-command nil nil)
command-execute(execute-extended-command)
from indium.
from indium.
The issue should be fixed with commit cc68a20!
from indium.
I have the same error with chromium Version 56.0.2924.87 (64-bit):
Contacting host: 127.0.0.1:9222
WS Error! on-open (wrong-type-argument stringp nil)
WS Error! on-message (wrong-type-argument integer-or-marker-p nil)
from indium.
@s-kostyaev can you give me the version of jade you're using, as well as Emacs?
Also, is Chrome running with the --remote-debugging-port
flag set?
from indium.
@NicolasPetton jade 20170224.922, emacs 25.1, chromium has running with --remote-debugging-port
flag.
from indium.
@s-kostyaev I cannot reproduce the issue, but I'll investigate more.
What OS are you using?
Can you open another issue as this one was related to nodejs?
from indium.
I use GNU/Linux. I will open another issue a little bit later.
from indium.
@s-kostyaev I need a bit of help to understand what's going on 😄
- When you try to connect to a tab, do you get the list of Chromium tabs in the minibuffer?
- Can you access http://127.0.0.1:9222/ from Chrome?
from indium.
Sorry for wasting your time. I'll try again and all works fine.
from indium.
@s-kostyaev I'm glad it works for you now!
from indium.
Related Issues (20)
- No file found for debugging issue HOT 1
- Conditional breakpoints - condition has no effect
- Continuous Interactive Mode Workflow
- ‘map-put’ is an obsolete macro (as of 27.1) HOT 1
- a server is down?
- Indium chrome project does not start httpd HOT 2
- Providing a working minimal example HOT 5
- unable to get app to display in chromium browser HOT 5
- docs: missing keybindings HOT 2
- No way to debug a child process HOT 1
- Eval error on fresh install for MacOs caused by json-process-client `Symbol's value as variable is void` HOT 9
- Windows - Problem with breakpoints HOT 2
- Is it possible to use other Chromium-based browsers? HOT 4
- Can I emulate Chrome DevTools console with the JS REPL buffer? HOT 2
- indium-eval-last-node with universal argument fails HOT 1
- Indium server error: connect ECONNREFUSED ::1:9229 HOT 1
- Enter REPL after .js run?
- Crash Error
- Does not work on Node version >= 17
- Process to debug the Indium server ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from indium.