hoogle icon indicating copy to clipboard operation
hoogle copied to clipboard

CSS missing, search non-functional and cannot display docs (hoogleLocal from nixos-unstable)

Open Skyfold opened this issue 6 years ago • 4 comments

I'm not sure if this is a nixpkgs problem or a hoogle issue. Regardless, if you use the hoogleLocal function in nixpkgs on nixos-unstable (which has Hoogle 5.0.17.11) the resulting hoogle executable runs, but does not function. Here is a minimal shell.nix to reproduce the issue:

let
  nixpkgsBootstrap = import <nixpkgs> {};
  pkgs = import (nixpkgsBootstrap.fetchFromGitHub {
    owner = "NixOS";
    repo = "nixpkgs-channels";
    rev = "7d5375ebf4cd417465327d7ab453687fd19663c9"; # nixos-unstable head
    sha256 = "18myjqws6mm4xsx4nx348yix793wyk76dyklls6dgyp9rg0gfcma"; 
  }) {};
in
  pkgs.mkShell {
    buildInputs = [
        (pkgs.haskellPackages.hoogleLocal {})
      ];
    }

Skyfold avatar Sep 06 '19 08:09 Skyfold

I tried to reproduce with the shell.nix you've provided and don't seem to notice any errors. Could you explain a bit more regarding what doesn't work? I'm running hoogle as: hoogle server --local

iAmMrinal0 avatar Sep 06 '19 18:09 iAmMrinal0

Hmm, maybe this is an interaction between the browser I am using and hoogle running locally. I use vimb or qutebrowser to connect to the local running hoogle server. They both work for the version under 5.0.17.11 that I have tried, namely Hoogle 5.0.17.5. The issues I was seeing before are from using qutebrowser, vimb on the other hand takes inexorable long to load hoogle 5.0.17.11 if it is running locally and cannot perform searches either.

However, I do get a gtk warning from vimb after it does eventually load hoogle:

(WebKitWebProcess:56646): Gtk-WARNING **: 15:43:02.258: Could not find the icon 'pan-down-symbolic'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
	http://icon-theme.freedesktop.org/releases

Then vimb gives me Peer failed to perform TLS handshake if I try to search anything.

I should mention both vimb and qutebrowser work fine with hoogle.haskell.org.

Try hoogle with vimb to see what I mean (I just added vimb to the buildInputs):

let
  nixpkgsBootstrap = import <nixpkgs> {};
  pkgs = import (nixpkgsBootstrap.fetchFromGitHub {
    owner = "NixOS";
    repo = "nixpkgs-channels";
    rev = "7d5375ebf4cd417465327d7ab453687fd19663c9"; # nixos-unstable head
    sha256 = "18myjqws6mm4xsx4nx348yix793wyk76dyklls6dgyp9rg0gfcma"; 
  }) {};
in
  pkgs.mkShell {
    buildInputs = [
        (pkgs.haskellPackages.hoogleLocal {})
        pkgs.vimb
      ];
    }

Once firefox finishes building I will try it with that.

Skyfold avatar Sep 07 '19 05:09 Skyfold

Versions with the issue: Hoogle 5.0.17.9 Hoogle 5.0.17.8

Works with: Hoogle 5.0.17.7

I'll see what commits were between 5.0.17.7 - 5.0.17.8 that might have caused the issue.

Skyfold avatar Sep 07 '19 06:09 Skyfold

Hoogle 5.0.17.8 - 5.0.17.11 work fine with firefox.

I wonder what is causing the issue in vimb and qutebrowser

Skyfold avatar Sep 07 '19 07:09 Skyfold