Haskell in Nixpkgs/NixOS | 732 Members | |
| For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/ | More Nix: #community:nixos.org | More Haskell: #haskell-space:matrix.org | 148 Servers |
| Sender | Message | Time |
|---|---|---|
| 31 Dec 2024 | ||
| yup, thats also why i tried launching vscode with disabled direnv and directly from nix-shell to circumvent these problems hopefully | 17:12:53 | |
| Nah, I've been using 2.9 for months | 17:12:55 | |
| And my extension is like a year behind or something | 17:13:08 | |
| The major issue is now and then it decides every instance declaration is duplicated and I get red squigglies and need to kill it. sessionLoading fixes that IIUC | 17:13:58 | |
| * The major issue is now and then it decides every instance declaration is duplicated and I get red squigglies and need to restart vscode. sessionLoading fixes that IIUC | 17:14:13 | |
| Hm, i don't really understand what that is supposed to do though. I am not deep enough in the technical details i guess, but i can try | 17:15:23 | |
| (really need to compile these answers into a troubleshooting self serve thing, someone new runs into these issues every other week) | 17:15:34 | |
In reply to @megmug:matrix.orgThe long story is the HLS story for more than a single component just recently stopped being bad | 17:16:10 | |
| * The TLDR is the HLS story for more than a single component just recently stopped being bad | 17:16:19 | |
| That sounds interesting, that would mean some more reading on my part since i dont understand stack well enough to be able to say what hie.yaml even does off the top of my head | 17:16:21 | |
| Not sure if it's stack specific. Though if your hls works on the terminal it doesn't look like it needs handholding there | 17:17:04 | |
| I just got tired of chasing ghosts and chewed all the food I could for HLS | 17:17:27 | |
| So, you are personally using an older vscode haskell extension? Should I also be doing that or do you have other reasons? | 17:17:43 | |
| No reason other than I hadn't noticed I was behind really | 17:18:14 | |
| Also setup my vscode with nix, but was unaware there's a better source for vscode extensions than the default one in home manager / nixpkgs | 17:19:02 | |
| So you are on nixos and therefore getting vscode itself and the extensions also from nix? | 17:20:11 | |
| Hmm on my nixos I use emacs really. Have nix-managed vscode on the macos for work since I need to dogfood for the team being the default nix guy currently | 17:21:25 | |
| That should be independent from your issue really | 17:21:48 | |
| Everyone else on the team using vscode gets it from non nix channels and follows the same config steps after | 17:22:22 | |
| run code in project's nix shell etc | 17:22:35 | |
| * run code/codium in project's nix shell etc | 17:22:46 | |
| Huh, I just enabled the multipleComponents setting and suddenly the extension works again. Let's see for how long | 17:23:57 | |
| Problem is it's hard to say if it just randomly works again because i restarted vscode or if the setting actually helped | 17:24:32 | |
| I haven't enabled it myself because my old ass vscode extension doesn't support it, so I know it's not absolutely necessary | 17:25:00 | |
| But I don't use stack so that could matter | 17:25:10 | |
In reply to @megmug:matrix.orgYeah you want to restart once per change so you later know what was actually needed | 17:25:44 | |
| It makes sense to start from the 'sane defaults' state where you seem to be now anyway | 17:26:40 | |
| alexfmpe: Anyways, maybe your tip has helped me, at least for now, so thanks for that! Have been trying stuff for hours and happy that it works again at all 😅 | 17:29:47 | |
| 18:10:43 | ||
| hi I'm trying to cross compile nix-tree (from x86_64 to armv7, but I have the same issue to aarch64) and I get this error:
is there a standard solution to provide this -fexternal-interpreter ? | 19:40:45 | |