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

REPL does not start #41

Closed
digikar99 opened this issue Jan 9, 2021 · 9 comments
Closed

REPL does not start #41

digikar99 opened this issue Jan 9, 2021 · 9 comments

Comments

@digikar99
Copy link

I start a swank server:

(ql:quickload "swank")
(swank:create-server :port 4005 :dont-close t)

But on command "ALIVE: Attach to REPL", I can see the window with "localhost:4005", on pressing enter, the window simply reappears, instead of the REPL. OTOH, I can connect to the above swank server from emacs.

I'm on VS Code 1.52.1 / Linux.

@nobody-famous
Copy link
Owner

If you use 127.0.0.1 or the machine's ip address does it work?

@digikar99
Copy link
Author

Nope - but if it is failing, I want to expect it'd show up a fail message.

Anything trivial I could do to provide more information?

@nobody-famous
Copy link
Owner

Yeah, I should have it display the error. I'll add that.

What's the output of
lsof -i -P -n | grep 4005

@digikar99
Copy link
Author

digikar99 commented Jan 9, 2021

$ ~ lsof -i -P -n | grep 4005
code       9208 user  126u  IPv4 2087504      0t0  TCP 127.0.0.1:38656->127.0.0.1:4005 (ESTABLISHED)
sbcl       9284 user    7u  IPv4 2095371      0t0  TCP 127.0.0.1:4005 (LISTEN)
sbcl       9284 user    8u  IPv4 2098349      0t0  TCP 127.0.0.1:4005->127.0.0.1:38656 (ESTABLISHED)

However, if I keep pressing enter, there is more listing (it keeps increasing on every 'enter'/retry)

code       9208 user  126u  IPv4 2087504      0t0  TCP 127.0.0.1:38656->127.0.0.1:4005 (ESTABLISHED)
code       9208 user  127u  IPv4 2090476      0t0  TCP 127.0.0.1:38662->127.0.0.1:4005 (ESTABLISHED)
sbcl       9284 user    7u  IPv4 2095371      0t0  TCP 127.0.0.1:4005 (LISTEN)
sbcl       9284 user    8u  IPv4 2098349      0t0  TCP 127.0.0.1:4005->127.0.0.1:38656 (ESTABLISHED)
sbcl       9284 user    9u  IPv4 2098361      0t0  TCP 127.0.0.1:4005->127.0.0.1:38662 (ESTABLISHED)

@nobody-famous
Copy link
Owner

Well, crap. That means it's connecting but is failing anyway. I'll get a new version up with better debugging.

@nobody-famous
Copy link
Owner

The new version is up. I saw a couple things that might've been causing the issue, but we'll see. It'll pop up an error when the connection fails and I added an alive.debug option that will trace the connection to swank.

@digikar99
Copy link
Author

Thanks!

Connect failed: [Error: No REPL document at FileView.<anonymous> (/home/user/.vscode/extensions/rheller.alive-0.1.4/out/src/vscode/repl/FileView.js:49:23) 
at Generator.next (<anonymous>) 
at /home/user/.vscode/extensions/rheller.alive-0.1.4/out/src/vscode/repl/FileView.js:8:71 
at new Promise (<anonymous>) 
at __awaiter (/home/user/.vscode/extensions/rheller.alive-0.1.4/out/src/vscode/repl/FileView.js:4:12) 
at FileView.show (/home/user/.vscode/extensions/rheller.alive-0.1.4/out/src/vscode/repl/FileView.js:47:16) 
at Repl.<anonymous> (/home/user/.vscode/extensions/rheller.alive-0.1.4/out/src/vscode/repl/Repl.js:57:33) 
at Generator.next (<anonymous>) 
at fulfilled (/home/user/.vscode/extensions/rheller.alive-0.1.4/out/src/vscode/repl/Repl.js:5:58) 
at processTicksAndRejections (internal/process/task_queues.js:94:5)]

@nobody-famous
Copy link
Owner

Dangit, not sure when that broke. It used to work. Quick solution is to open the folder your file is in so that there's a workspace. It used to work without one, but apparently broke somewhere along the way.

@digikar99
Copy link
Author

Thanks! Working now

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