Newlisp-GS Arch Linux failure to connect

Started by crms1496, January 05, 2014, 05:15:01 PM

Previous topic - Next topic

crms1496

Hello! I just want to start off this post, as it is my first (yeah, I know this probably is not the place, but I do have an issue that I will get to) make an introduction. Well, more of a bit of history and some praise. I am a fairly new to the world of programming. I did quite a lot in ti-84 Basic (math class can be boring), but did not move pass there for several years. I recently attempted Python, but I did not like it much. I then discovered common lisp (sbcl), but quickly changed over to Racket. I enjoyed Racket quite a bit, and made a small gui program in it. I have absolutely fallen in love with the simplicity of lisp (but not CL, of course...)

I recently discovered newLISP, and I must tip my hat to you, Lutz. It is wonderful. I love contexts, and feel they are a wonderful way to keep symbols from colliding without using weird names or using separate namespaces for data and functions.



Anyways... My problem.

Whenever I try to run newlisp-edit or (gs:init), newlisp-GS fails to connect.



newLISP-GS v.1.5 on Linux

 double buffering supported.

 listening on 47011

 accepted connection from 0.0.0.0

 connecting to 0.0.0.0:47012

 retrying to connect

 retrying to connect



It will continue to retry the connection. I am running Arch Linux with newLISP v10.5.4 from the aur, and using OpenJDK.

Your help is appreciated. Many thanks!

Lutz

#1
Try to run one of the demos, e.g:


newlisp /usr/share/newlisp/guiserver/button-demo.lsp
newLISP and guiserver.jar communicate via two connections. It seems to start the first on 47011 but then guiserver.jar connecting back on 47012 seems to fail.



If neither newlisp-edit nor a demo runs perhaps it helps to change the port number in (gs:init). By default it is 47011, but you can change it like this:


(gs:init 2000 "127.0.0.1")
than it will use 2000 for newlisp -> guiserver.jar and 2001 for guiserver.jar -> newlisp.



Note, that for port umbers below 1024 you might need root permission, but lots of them are used already by the system.



Last not least: although the Java part with OpenJDK seems not to be the problem, you might need to install an original Java from Oracle/Sun, then make a link /usr/bin/java -> /whatever-dir/some-java/bin/java

crms1496

#2
I have attempted each of your suggestions. Each time, newLISP-GS failed to connect. I installed the jdk7-compat package from the AUR, and symlinked to it.

As a small experiment, I disconnected my computer from my wireless network, and tried again.

Everything worked much quicker, although there the guiserver still failed to work.

Thanks for the help!

crms1496

#3
Curiously enough, changing to port to 2000 and disconnecting the computer from the network caused the guiserver to connect.

crms1496

#4
Okay. This works for me:

Disable wifi

Start newlisp-edit

From there I can turn the wifi on again, and the guiserver will work again.