Logs: freenode/#haskell
| 2020-09-22 12:58:35 | <siraben> | maralorn: I don't have a shell.nix here |
| 2020-09-22 12:58:41 | <maerwald> | dminuoso: sandboxes are removed |
| 2020-09-22 12:58:49 | <maralorn> | Oh |
| 2020-09-22 12:58:56 | <maerwald> | but about v1- I don't remember a clear decision, maybe phadej knows |
| 2020-09-22 12:59:04 | × | Lord_of_Life quits (~Lord@unaffiliated/lord-of-life/x-0885362) (Read error: Connection reset by peer) |
| 2020-09-22 12:59:04 | <dminuoso> | maerwald: Heh fair enough. Havent used these in a while :) |
| 2020-09-22 12:59:27 | <maralorn> | siraben: Can you tell if the missing packages are installed via cabal or via nix? |
| 2020-09-22 12:59:30 | <dminuoso> | v1- is very consistently called "legacy" in various issues on haskell/cabal though :) |
| 2020-09-22 12:59:36 | <dminuoso> | So that's rather suggestive already |
| 2020-09-22 13:00:03 | → | Lord_of_Life joins (~Lord@unaffiliated/lord-of-life/x-0885362) |
| 2020-09-22 13:00:14 | <dminuoso> | Found it |
| 2020-09-22 13:00:16 | <dminuoso> | maerwald: https://cabal.readthedocs.io/en/latest/nix-local-build-overview.html |
| 2020-09-22 13:00:22 | × | machinedgod quits (~machinedg@d67-193-126-196.home3.cgocable.net) (Ping timeout: 265 seconds) |
| 2020-09-22 13:00:23 | <siraben> | maralorn: I think it's through cabal |
| 2020-09-22 13:00:24 | <dminuoso> | "[...] but these legacy commands will require the usage of the v1- prefix as of Cabal 3.0 and will be removed in a future release." |
| 2020-09-22 13:00:26 | → | hyperisco joins (~hyperisco@d192-186-117-226.static.comm.cgocable.net) |
| 2020-09-22 13:00:32 | <siraben> | also I didn't do cabal-install at all |
| 2020-09-22 13:00:35 | <siraben> | only cabal build; |
| 2020-09-22 13:00:39 | tchouri | is now known as hekkaidekapus |
| 2020-09-22 13:00:48 | <maralorn> | siraben: Do you use ghc.withPackages ? |
| 2020-09-22 13:00:53 | <maralorn> | siraben: Yeah, that should work. |
| 2020-09-22 13:00:54 | × | Tesseraction quits (~Tesseract@unaffiliated/tesseraction) (Ping timeout: 258 seconds) |
| 2020-09-22 13:00:56 | <siraben> | maralorn: not for this project |
| 2020-09-22 13:01:01 | <maralorn> | Okay |
| 2020-09-22 13:01:06 | <dminuoso> | Based on the fact that they dont emit a deprecation notice, I guess v1 is gonna stay for at least a year or two. :) |
| 2020-09-22 13:01:10 | <siraben> | everything worked when I used direnv, ghc.withPackages etc. in a previous project |
| 2020-09-22 13:01:18 | <siraben> | but with this weird setup, it's not working exactly |
| 2020-09-22 13:01:39 | <maralorn> | siraben: What's weird about the setup? |
| 2020-09-22 13:01:41 | × | evanjs quits (~evanjs@075-129-188-019.res.spectrum.com) (Read error: Connection reset by peer) |
| 2020-09-22 13:01:50 | <maralorn> | Have you installed hls and cabal via nix-env or configuration.nix? |
| 2020-09-22 13:02:03 | <siraben> | maralorn: https://github.com/siraben/pcf/tree/rebuild |
| 2020-09-22 13:02:08 | <siraben> | maralorn: home-manager |
| 2020-09-22 13:02:25 | <siraben> | so, like configuration.nix I guess |
| 2020-09-22 13:02:35 | → | evanjs joins (~evanjs@075-129-188-019.res.spectrum.com) |
| 2020-09-22 13:02:48 | <siraben> | maralorn: weird in the sense that it's not using nix, but a cabal file and a cabal.project file |
| 2020-09-22 13:02:59 | <siraben> | but all my tools are nix-installed |
| 2020-09-22 13:02:59 | × | son0p quits (~son0p@181.58.39.86) (Ping timeout: 260 seconds) |
| 2020-09-22 13:03:35 | × | gmt quits (~gmt@pool-71-105-108-44.nycmny.fios.verizon.net) (Ping timeout: 258 seconds) |
| 2020-09-22 13:03:57 | → | Tesseraction joins (~Tesseract@unaffiliated/tesseraction) |
| 2020-09-22 13:04:00 | <kosmikus> | AWizzArd: GHC has never been working as my thesis describes. The thesis describes an idealised version of Generic Haskell that used to be available as a separate preprocessor. whether it's still worth reading depends very much on what you want, but it's probably not. |
| 2020-09-22 13:04:09 | × | evanjs quits (~evanjs@075-129-188-019.res.spectrum.com) (Excess Flood) |
| 2020-09-22 13:04:26 | → | evanjs joins (~evanjs@075-129-188-019.res.spectrum.com) |
| 2020-09-22 13:05:30 | <AWizzArd> | kosmikus: okay I see, the intro however is nice and of general interest. |
| 2020-09-22 13:06:31 | <siraben> | Anyone working on an updated social graph for #haskell? https://wiki.haskell.org/wikiupload/3/3c/Haskell-current.png |
| 2020-09-22 13:06:56 | <siraben> | maralorn: I think what's happening is LSP is using the GHC installed via nix |
| 2020-09-22 13:06:58 | <siraben> | which doesn't have the packages |
| 2020-09-22 13:07:15 | → | isovector1 joins (~isovector@node-1w7jr9squrfoy3fci95ksrhpu.ipv6.telus.net) |
| 2020-09-22 13:07:17 | × | isovector1 quits (~isovector@node-1w7jr9squrfoy3fci95ksrhpu.ipv6.telus.net) (Remote host closed the connection) |
| 2020-09-22 13:08:02 | <dminuoso> | siraben: yahb has the most fields! :) |
| 2020-09-22 13:08:45 | <siraben> | dminuoso: yahb? |
| 2020-09-22 13:09:07 | → | heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) |
| 2020-09-22 13:09:22 | <dminuoso> | % putStrLn "At your disposal" |
| 2020-09-22 13:09:23 | <yahb> | dminuoso: At your disposal |
| 2020-09-22 13:09:42 | <dminuoso> | Oh. That was supposed to read friends. |
| 2020-09-22 13:09:43 | <dminuoso> | Mmm. |
| 2020-09-22 13:09:49 | <dminuoso> | My code has more fields than friends. :( |
| 2020-09-22 13:09:52 | <maralorn> | siraben: HLS doesn‘t call any ghc from the PATH, it uses the ghc compiled into it. But yeah, that is the one from nix. |
| 2020-09-22 13:09:57 | <dminuoso> | Surprisingly no fiends |
| 2020-09-22 13:10:39 | <siraben> | didn't know that gwern used to hang around here in 2008, heh |
| 2020-09-22 13:10:46 | <siraben> | maralorn: ah |
| 2020-09-22 13:10:55 | <maralorn> | siraben: Wait. There is no haskell-language-server-wrapper in nixpkgs. |
| 2020-09-22 13:11:09 | × | Rudd0 quits (~Rudd0@185.189.115.108) (Ping timeout: 260 seconds) |
| 2020-09-22 13:11:10 | <siraben> | maralorn: haskellPackages.haskell-language-server |
| 2020-09-22 13:11:45 | → | cpressey joins (~cpressey@88.144.69.118) |
| 2020-09-22 13:11:48 | → | niHiggim joins (~manjaro-u@98.122.188.27) |
| 2020-09-22 13:12:22 | <maralorn> | siraben: Anyways can you try removing the "-wrapper" from your emacs config and see what happens? |
| 2020-09-22 13:12:30 | <maralorn> | Maybe the wrapper discovers some other hls? |
| 2020-09-22 13:13:11 | <fendor> | maralorn, small detail, hie-bios may use the ghc on the path to find the project ghc version |
| 2020-09-22 13:13:36 | × | DataComputist quits (~lumeng@static-50-43-26-251.bvtn.or.frontiernet.net) (Ping timeout: 256 seconds) |
| 2020-09-22 13:13:40 | × | heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 256 seconds) |
| 2020-09-22 13:13:42 | <siraben> | maralorn: I removed the "-wrapper" suffix from my config, still has the same issue |
| 2020-09-22 13:13:54 | <yushyin> | maerwald: ah yes, I'm sorry, I have to revert my 'bug' report :D it works as expected. I had just a very messy environment after converting to XDG_DIRS and either had still an old ghcup somewhere in PATH or not all shells/tmux had GHCUP_USE_XDG_DIRS set. |
| 2020-09-22 13:14:03 | <siraben> | fendor: what's hie-bios? I don't have that on my path |
| 2020-09-22 13:14:04 | <maerwald> | I see |
| 2020-09-22 13:14:24 | → | polyphem joins (~p0lyph3m@2a02:810d:640:776c:76d7:55f6:f85b:c889) |
| 2020-09-22 13:14:34 | <maerwald> | yushyin: would have been surprised, because I abstract via directory getters |
| 2020-09-22 13:14:52 | <fendor> | siraben, woops, sorry, I did not want to confuse you. It is just a library in HLS that is used to load a project, just ignore it. |
| 2020-09-22 13:15:03 | <siraben> | ok, all good |
| 2020-09-22 13:15:22 | × | John20 quits (~John@82.46.59.122) (Ping timeout: 256 seconds) |
| 2020-09-22 13:15:26 | <siraben> | argh, surely someone's had this problem with haskell-lsp before, but looking around the internet no one seems to have |
| 2020-09-22 13:15:58 | <siraben> | Ah, https://emacs.stackexchange.com/questions/54017/interactively-load-cabal-packages-within-haskell-mode |
| 2020-09-22 13:16:30 | <siraben> | "I accidentally found out that the error is fixed when I cd to the directory and "cabal install varying --lib", [..]" |
| 2020-09-22 13:17:10 | <maralorn> | siraben: Just to clarify: haskell-lsp is a library hls uses to speak the language-server-protocol. So it might make more sense to talk about hls.^^ |
| 2020-09-22 13:17:15 | <yushyin> | maerwald: yeah, just a dumb mistake on my part :/ |
| 2020-09-22 13:17:35 | → | thir joins (~thir@p200300f27f0fc600ed2222922a5678d5.dip0.t-ipconnect.de) |
| 2020-09-22 13:17:37 | <siraben> | maralorn: ok, thanks |
| 2020-09-22 13:17:46 | <fendor> | siraben, you definitely dont have to invoke `cabal install --lib` |
| 2020-09-22 13:17:54 | <maerwald> | yushyin: it not showing up in --help is because you're the only one who ever complained about it :p |
| 2020-09-22 13:17:59 | <siraben> | fendor: right, that's what I want to avoid |
| 2020-09-22 13:18:15 | <maralorn> | <fendor "siraben, you definitely dont hav"> Or at least shouldn‘t have to.^^ |
| 2020-09-22 13:18:27 | → | John20 joins (~John@82.46.59.122) |
| 2020-09-22 13:18:48 | <fendor> | siraben, sorry, but what is the problem you observer? (Assuming it is not flycheck but hls) |
| 2020-09-22 13:19:03 | <fendor> | oof, I may just read the history |
| 2020-09-22 13:19:13 | <siraben> | fendor: there's an image I posted |
| 2020-09-22 13:19:17 | <siraben> | that's probably the best way to explain it |
| 2020-09-22 13:19:49 | <siraben> | I'm not sure if I'm articulating the various parts of it correctly, there's a lot of software interacting (emacs, cabal, nix, lsp, etc.) |
| 2020-09-22 13:19:58 | <maralorn> | fendor: The debug output from running hls reports no errors, but in emacs it can‘t find the dependencies. |
| 2020-09-22 13:20:09 | <fendor> | i just joined twenty minutes ago, did you post it in the last minutes? |
| 2020-09-22 13:20:24 | → | aaaaaa joins (~ArthurStr@host-91-90-11-13.soborka.net) |
| 2020-09-22 13:20:58 | <siraben> | fendor: https://matrix.org/_matrix/media/r0/download/matrix.org/UlJVsSxbfoTpFFsWCYIFuZbf/Screen Shot 2020-09-22 at 19.44.29.png |
All times are in UTC.