-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dasht-server in macOS renders a blank page #51
Comments
What happens if you replace dasht-server | xargs -n1 curl Could you also try running $ dasht-server &
[1] 4132
http://127.0.0.1:54321
$ curl http://127.0.0.1:54321
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
<!DOCTYPE html>
<html>
... |
This is the output for the complete command the first time I run it:
However, the second time I do it, I get a terminal waiting showing "socat" in the title bar. When separately:
I thought it could be related to macOS firewall, so I added a green rule for dasht-server, but I get the same outcome. |
I am having the same issues (search works great but not with server)
|
I've noticed this problem as well, and I've been able to narrow it down to the Line 78 in 5a741da
You can reproduce the problem without
For some reason the I tried to install GNU Grep via Homebrew to see if that made any difference, but it doesn't change anything. |
Great find! 👌 Please check if using grep -q -E '^/$|^/?' And yes, please do submit a PR. 🙇 I'll be happy to merge it. Cheers! |
More or less, I had to change the query slightly. I've made #54 with a fix. |
Nice catch! I forgot to escape I wonder: since escaping was responsible for this bug, perhaps Maybe your double |
Possibly! I find the double I was also wondering if |
Serendipity! 🎉 We're totally on the same wavelength. 🤓 Yes, let's try that: if ! test "$url" = / -o -z "${url##/\?*}"; then |
Thanks! I have updated the PR with that solution. |
Hi,
I've just install dasht with Homebrew in macOS Catalina. Searching within
dasht
works great, I can navigate through all the docsets I've installed real quick.However, when I run
dash-server
and use the URL in Firefox, it renders a blank page. It also happens in Safari. I even try with the suggested code from man pagedasht-server | xargs -n1 w3m
and it also directs to a black page in terminal.Should I install everything that I'm missing to get the functionality?
Thank you in advance!
The text was updated successfully, but these errors were encountered: