LightTable / Clojure

Light Table Clojure language plugin
MIT License
99 stars 51 forks source link

Clojure remote connect is not working. #63

Closed gfZeng closed 8 years ago

gfZeng commented 8 years ago

google group discussion here

Like the discussion. I use boot repl launch a repl, and then connect it. It's ok, the connection is successful. but when I try to eval line(cmd+enter), the light table try make a new connection instead of use the exists connection. And the new connection failed after a minute.

I used jps -m show the new connection info:

lein-light-standalone.jar LightTable-REPL

kenny-evitt commented 8 years ago

The original entry from the forum post:

I following this instructions success connected to repl.

but, when I try to eval line(cmd+enter), light table try to connect a new repl, and finally failed.

why light table can not use the connected repl.

kenny-evitt commented 8 years ago

@gfZeng Here's an entry from the Boot (Hoplon) forum for a thread titled "Connecting to a Hoplon/Boot nREPL (e.g. with Lighttable)" that looks like it might have some relevant info.

gfZeng commented 8 years ago

@kenny-evitt not the same problem. my problem is the remote connected repl not used when I tried to eval code. the light table try to make an new connection.

kenny-evitt commented 8 years ago

@gfZeng Can you select the nREPL connection before evaling the code?

gfZeng commented 8 years ago

@kenny-evitt

How can I select connection?

kenny-evitt commented 8 years ago

In the command pane, run the command "Connect: Add Connection". Or run the command "Connect: Show connect bar" to see any existing connections.

gfZeng commented 8 years ago

@kenny-evitt

Yes, I saw it surely.

image

kenny-evitt commented 8 years ago

@gfZeng Does connecting to the existing connection fix this?

gfZeng commented 8 years ago

@kenny-evitt I did not found an option or command that can do this action --- connecting to the existing connection

kenny-evitt commented 8 years ago

@gfZeng I guess you can't connect to the existing connection; I'm not sure why. Would you mind sharing your project, or a minimal example [this would be preferred], and maybe expand on what you're doing that you described as:

I use boot repl launch a repl, and then connect it.

Running boot repl is clear but what steps, exactly, are you doing to connect to it in Light Table?

I found this example Clojure Boot project – would you try to reproduce your problem using that project and let me know whether you can? If you can reproduce it with the example, I'll use that to investigate further.