brownplt / pyret-lang

The Pyret language.
Other
1.06k stars 106 forks source link

Unable to connect error on 'pyret-s'. Pyret test script doesn't execute. #1449

Open Aparmar100 opened 5 years ago

Aparmar100 commented 5 years ago

:~$ pyret -s 2019-04-17T19:43:27.868Z Connection error: Error: connect ENOENT /tmp/parley-amar/comm.sock.

pyret ahoy-world.arr [client] 2019-04-17T19:38:29.634Z Starting up server... No modules are compiled and cursor jumps back to new command prompt.

jpolitz commented 5 years ago

Thanks for reporting this and sorry for the frustration. Could you help us out with a few more details?

Copying more terminal output from the install and/or what you've tried would also be quite welcome.

Aparmar100 commented 5 years ago

Running Ubuntu LTS 16.04.6

  1. Npm install from the Repo failed on pyret-parser build. I had opened a separate issue on this but closed on no response. Will attach the stackoverflow link here: https://stackoverflow.com/questions/55658540/unable-to-install-pyret-lang-using-npm-install

  2. Unable to resolve the above, I tried the experimental-cli version. Read the help section and tried TEST which again ran into problems.

jpolitz commented 5 years ago

Thanks for putting it on SO; I don't usually follow the Pyret tag there but I should. I commented on that post (not sure what the answer is since it segfaults).

Regarding this issue specifically, what platform are you running on? It could be that something isn't working right with the file socket in /tmp; probably the fault of the server.

Something to try – what happens if you use the -t option to create the file locally, as in:

❱ cat ahoy.arr
check:
  "ahoy " + "world!" is "ahoy world!"
end
❱ pyret -t my-local-port.sock ahoy.arr
[client]  2019-05-02T04:27:21.136Z Starting up server...
1/1 modules compiled (ahoy.arr)
Cleaning up and generating standalone...
Looks shipshape, your test passed, mate!
❱ ls
ahoy.arr           ahoy.jarr          my-local-port.sock
❱ ls -a
.                  ..                 .pyret             ahoy.arr           ahoy.jarr          my-local-port.sock
Aparmar100 commented 5 years ago

I tried the above command and again no execution. The following line follows, cursor returns to new command prompt.

>[client] 2019-05-08T07:21:08.437Z Starting up server...``