-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Description
Related user(s):
Related issue(s) or PR(s):
- feat(server): add a
--replaceoption #567 - Feature: Ensure
learn-ocaml build serveimmediately handles requests at second run #529
Related project scope(s):
other
Bug description:
Running learn-ocaml build --repo=demo-repository serve on my system leads to the following error:
Learnocaml v.0.16.0 running.
lsof: illegal option character: Q
lsof 4.93.2
latest revision: https://github.com/lsof-org/lsof
latest FAQ: https://github.com/lsof-org/lsof/blob/master/00FAQ
latest (non-formatted) man page: https://github.com/lsof-org/lsof/blob/master/Lsof.8
usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-E] [+|-e s] [+|-f[gG]]
[-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
[+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
Updating app at ./www
demo2 [OK]
demo [OK]
Learnocaml server v.0.16.0 starting on port 8080
lsof: illegal option character: Q
lsof 4.93.2
latest revision: https://github.com/lsof-org/lsof
latest FAQ: https://github.com/lsof-org/lsof/blob/master/00FAQ
latest (non-formatted) man page: https://github.com/lsof-org/lsof/blob/master/Lsof.8
usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-E] [+|-e s] [+|-f[gG]]
[-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
[+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
Use the ``-h'' option to get more help information.
Found the following teacher tokens:
…
To reproduce:
- Get the dev version of learn-ocaml (master)
make && make opaminstall && learn-ocaml build --repo=demo-repository serve
Expected behavior:
No warning lsof: illegal option character: Q
learn-ocaml --version
No response
git describe --long --always --abbrev=40 --tags
v0.16.0-61-gfb300f6881526aacd50158593dd964f626167191
What OS do you use?
GNU/Linux
What OS version/distribution do you use?
Debian 11 (also repro on Ubuntu 22.04 LTS)
What browser(s) do you use with learn-ocaml?
Firefox
What browser(s) version did you used to reproduce the issue?
N/A
Screenshots (if need be):
No response
Additional context:
It appears Debian 11 (oldstable) and Ubuntu 22.04 LTS both have lsof 4.93.2,
while Debian 12 has lsof 4.95.0 which introduces this CLI feature:
https://github.com/lsof-org/lsof/releases/tag/4.95.0
Add -Q option for adjusting exit status when failed to find a
search item (#129)
In the original code, lsof returned 1 when it failed to find a
search item. With the new option, lsof returns 0 in the case.
Document -Q option in manpage/00QUICKSTART, and adjust -h
output by @dilinger (Andres Salomon) in #129.
As promised @AltGr, I'm working on a fix ASAP!