s-clerc / slyblime

Interactive Lisp IDE with REPL, Inspector, Debugger and more for Sublime Text 4.
Other
45 stars 4 forks source link

Failed to start Lisp process #11

Closed AP2008 closed 3 years ago

AP2008 commented 3 years ago

Hi, I have installed SublimeRepl and slyblime on Sublime Text 4 (build 4101) on Windows 10. I also ran Sly: Upgrade SublimeREPL to work with Sly. I set the Inferior lisp command to sbcl --load as I am using sbcl. Then, I tried running Sly: Start and connect to an inferior Lisp instance. But, I got an error: img How do I fix this ?

s-clerc commented 3 years ago

Hello,

Thank you for using Slyblime, I don't own a Windows computer so I've not been able to test it, but I think it should work fine.

Firstly, you probably want to set the command to just sbcl and not sbcl --load as it is possible that --load is causing SBCL to not start up correctly.

Secondly, another problem I have identified is that the default timeout is too low for some computers:

"inferior_lisp_process": {
    "command": ["lisp"],
    "autoclose": true,
    "loading_time": 2,
    "setup_time": 1
  }

By default loading_time and setup_time are two and one seconds respectively; however, on some computers the lisp process may take longer than that to load and setup. Try setting both to 4 seconds and see what happens. (I intend to rectify these issues in the next release, but I need to prepare for exams unfortunately).

AP2008 commented 3 years ago

I tried setting them: image But, I still get the same error. The problem might be with the chosen port. Is it possible to change it ?

AP2008 commented 3 years ago

I ran the Sly: Start and connect to an inferior Lisp instance command and opened task manager to see what was happenning in the background. This is the result: image Looks like sbcl is being called.

AP2008 commented 3 years ago

I was able to get it to work by manually starting the server using sbcl and slynk.

daninus14 commented 3 years ago

I had the same issue and this fixed it for me. Btw, how are you passing the timeout variables to sbcl? I have the issue with other programs as well and this would be very useful... Thanks!

daninus14 commented 3 years ago

I had the same issue and this fixed it for me. Btw, how are you passing the timeout variables to sbcl? I have the issue with other programs as well and this would be very useful... Thanks!

I saw the code, it's just sleeping the thread, not passing anything actual to sbcl... Thanks anyway for slyblime! :D