grwlf / haskdogs Goto Github PK
View Code? Open in Web Editor NEWThis project forked from ierton/haskdogs
Haskell ctags/etags generator
Home Page: http://hackage.haskell.org/package/haskdogs
License: BSD 3-Clause "New" or "Revised" License
This project forked from ierton/haskdogs
Haskell ctags/etags generator
Home Page: http://hackage.haskell.org/package/haskdogs
License: BSD 3-Clause "New" or "Revised" License
Hi, I'm using intero
for auto-completion and syntax checking. The program will write temporary source code under the folder .stack-work/intero
, which I don't want them to appear in the tags. Currently, I couldn't find an option to exclude folders or files.
It would be great if you could exclude the folder by default and also provide an option for flexibility. Thank you.
Hi,
I want to get go to definition
working on nixos/haskell. I tried installing haskell-ide-engine to no avail.
I thought I would try hasktags/haskdogs but I still have some problems shown in the log at the end of this message:
1/ even if I disable stack, the program still checks for it => confusing
2/ haskdogs can't seem to generate tags for the libraries available in my ghc environment (I believe you are familiar with nixos, the following packages are built as part of the nix-shell:
> cabal unpack base-4.11.1.0
Can't unpack base-4.11.1.0
> cabal unpack netlink-1.1.1.0
Can't unpack netlink-1.1.1.0
> cabal unpack optparse-applicative-0.14.3.0
Can't unpack optparse-applicative-0.14.3.0
Is there anyway I can generate tags for theses packages ?
Full log:
haskdogs --use-stack OFF
Cheking for stack with GNU which
> which stack
which: no stack in (/nix/store/5jfps79ygrqwfq21xg8a6j8qlg3awsbw-ghc-8.4.4-with-packages/bin:/nix/store/s9a8h6qqdmignsqphir5jyllr5ivf0p3-ghc-8.4.4/bin:/nix/store/10yq7kwlvbc6h658izmrlsspry1g9f3c-gcc-wrapper-7.3.0/bin:/nix/store/6qmfmricr58bjivgr16y9sjisakdykag-gcc-7.3.0/bin:/nix/store/340di8nn7b9a1swdhj64324l6p4bsjfp-glibc-2.27-bin/bin:/nix/store/dzvbhkzfgwkq97ljkcvi4gs7vmflh6a0-coreutils-8.30/bin:/nix/store/an3icm1hajqx1lld6n8q4qr40nwbs544-binutils-wrapper-2.30/bin:/nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin:/nix/store/340di8nn7b9a1swdhj64324l6p4bsjfp-glibc-2.27-bin/bin:/nix/store/dzvbhkzfgwkq97ljkcvi4gs7vmflh6a0-coreutils-8.30/bin:/nix/store/21d9kpg4hqni8nfnn8asdskpf8c5f91k-remove-references-to/bin:/nix/store/jd2zmvpdnr7lswji4c0i7cjny1rinfr4-haskdogs-0.5.3/bin:/nix/store/frvxygyh82s0g89abkx3ad36zzp3335w-hasktags-0.71.2/bin:/nix/store/8nic6ljn0yzhqns9dafh862zp60rzhbz-haskell-ide-engine-0.3.0.0/bin:/nix/store/2x6iv4zw7d3if9i549kaw0y91g8d39iy-patchelf-0.9/bin:/nix/store/wvz8gp7bhwp572jy2w1n48n1rn8wdrw3-paxctl-0.9/bin:/nix/store/iirmif7qgp7pgbv80z5x1sj3hbay893d-ncurses-6.1/bin:/nix/store/iirmif7qgp7pgbv80z5x1sj3hbay893d-ncurses-6.1/bin:/nix/store/s9a8h6qqdmignsqphir5jyllr5ivf0p3-ghc-8.4.4/bin:/nix/store/10yq7kwlvbc6h658izmrlsspry1g9f3c-gcc-wrapper-7.3.0/bin:/nix/store/6qmfmricr58bjivgr16y9sjisakdykag-gcc-7.3.0/bin:/nix/store/340di8nn7b9a1swdhj64324l6p4bsjfp-glibc-2.27-bin/bin:/nix/store/dzvbhkzfgwkq97ljkcvi4gs7vmflh6a0-coreutils-8.30/bin:/nix/store/an3icm1hajqx1lld6n8q4qr40nwbs544-binutils-wrapper-2.30/bin:/nix/store/vcc4svb8gy29g4pam2zja6llkbcwsyiq-binutils-2.30/bin:/nix/store/340di8nn7b9a1swdhj64324l6p4bsjfp-glibc-2.27-bin/bin:/nix/store/dzvbhkzfgwkq97ljkcvi4gs7vmflh6a0-coreutils-8.30/bin:/nix/store/s9a8h6qqdmignsqphir5jyllr5ivf0p3-ghc-8.4.4/bin:/nix/store/21d9kpg4hqni8nfnn8asdskpf8c5f91k-remove-references-to/bin:/nix/store/iirmif7qgp7pgbv80z5x1sj3hbay893d-ncurses-6.1/bin:/nix/store/iirmif7qgp7pgbv80z5x1sj3hbay893d-ncurses-6.1/bin:/nix/store/dzvbhkzfgwkq97ljkcvi4gs7vmflh6a0-coreutils-8.30/bin:/nix/store/y6lkznrphrb5q914my4cah6cnjcc7czw-findutils-4.6.0/bin:/nix/store/hjaa4gvr4hhhacy33l69cxk182jw36sv-diffutils-3.6/bin:/nix/store/zj5pg6bcab6b5wllj87bmws432gh4sm6-gnused-4.5/bin:/nix/store/a7pnidn0y95axmhhkpm3vh7ws54qa324-gnugrep-3.1/bin:/nix/store/h1z344s6hy8pj4qddnpkia8xwjbky48j-gawk-4.2.1/bin:/nix/store/y9nwn094yhwkg11pdl1w3427lyk9nvg3-gnutar-1.30/bin:/nix/store/gkzw2a5lygmjn7bxnj4sjr79ybg8ln47-gzip-1.9/bin:/nix/store/l2i9gmhz0rsi91mz4pvvvnvzkvi5wl6b-bzip2-1.0.6.0.1-bin/bin:/nix/store/fabhw7nzi5ij0ff3dljxnfnldgzrcqgv-gnumake-4.2.1/bin:/nix/store/r47p5pzx52m3n34vdgqpk5rvqgm0m24m-bash-4.4-p23/bin:/nix/store/biyl7z0380bq3xzahv1yxzcikck0j7nb-patch-2.7.6/bin:/nix/store/3530yjs5jpm2qic5f0n8kdr25kmd1ncs-xz-5.2.4-bin/bin:/home/teto/rofi-scripts:/home/teto/buku_run:/home/teto/bin:/run/wrappers/bin:/home/teto/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/etc/profiles/per-user/teto/bin)
GNU which falied to find stack
> which hasktags
> find . -type f -and ( -name *\.hs -or -name *\.lhs -or -name *\.hsc )
> cat ./daemon.hs ./dist/build/project1/autogen/Paths_netlink_pm.hs
> ghc-pkg --simple-output find-module Prelude
Import Prelude resolved to base-4.11.1.0
> ghc-pkg --simple-output find-module Options.Applicative
Import Options.Applicative resolved to optparse-applicative-0.14.3.0
> ghc-pkg --simple-output find-module System.Linux.Netlink
Import System.Linux.Netlink resolved to netlink-1.1.1.0
> ghc-pkg --simple-output find-module System.Linux.Netlink.GeNetlink
Import System.Linux.Netlink.GeNetlink resolved to netlink-1.1.1.0
> ghc-pkg --simple-output find-module System.Linux.Netlink.GeNetlink.Control
Import System.Linux.Netlink.GeNetlink.Control resolved to netlink-1.1.1.0
> ghc-pkg --simple-output find-module Data.Word
Import Data.Word resolved to base-4.11.1.0
> ghc-pkg --simple-output find-module Control.Exception
Import Control.Exception resolved to base-4.11.1.0
> ghc-pkg --simple-output find-module Data.Version
Import Data.Version resolved to base-4.11.1.0
> ghc-pkg --simple-output find-module System.Environment
Import System.Environment resolved to base-4.11.1.0
> cabal unpack base-4.11.1.0
Can't unpack base-4.11.1.0
> cabal unpack netlink-1.1.1.0
Can't unpack netlink-1.1.1.0
> cabal unpack optparse-applicative-0.14.3.0
Can't unpack optparse-applicative-0.14.3.0
./daemon.hs
./dist/build/project1/autogen/Paths_netlink_pm.hs
> hasktags -c -x STDIN
Success
The error happens when calling hasktags -c -x a-long-list-of-files
, and the list is more than 400kilobytes.
The full log is:
...
> hasktags -c -x ...
haskdogs: hasktags: readCreateProcess: runInteractiveProcess: exec: resource exhausted (Argument list too long)
It consistently dies on "unordered-containers-0.2.9.0/tests/Strictness.hs" with:
> hasktags -c -x STDIN
hasktags: /home/kusanagi/.haskdogs/turtle-1.5.10/src/Turtle/Format.hs: openBinaryFile: resource exhausted (Too many open files)
haskdogs: readCreateProcess: hasktags "-c" "-x" "STDIN" (exit 1): failed
I'm not sure if my project has too many dependencies and Strictness.hs
is the last straw or there is something about that file (or a file right after it) that causes hashktags (called by hashdogs) to crash.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.