2025/01/10

Newest at the top

2025-01-10 04:10:19 +0100 <sim590> I tried multiple indentation styles. ALl on the same line, with indentation of 2 under the line `data-files`, all files aligned together with the first one on the same line as `data-files`. It's all the same it seems.
2025-01-10 04:10:00 +0100 <geekosaur> you might want to not split it over lines and say `data-files: resources/habanga-tui/*.txt`
2025-01-10 04:09:31 +0100bitdex(~bitdex@gateway/tor-sasl/bitdex) bitdex
2025-01-10 04:08:34 +0100user363627(~user@user/user363627) user363627
2025-01-10 04:08:01 +0100 <geekosaur> the next question might be indentation, since the warn9ing you got does suggest the entries are being misread as not being part of the value of `data-files`
2025-01-10 04:07:36 +0100menschenmensch(~menschenm@41.66.98.89)
2025-01-10 04:07:35 +0100 <haskellbridge> <sm> the files exist in your source tree I assume
2025-01-10 04:07:10 +0100menschenmensch(~menschenm@41.66.98.89) (Ping timeout: 240 seconds)
2025-01-10 04:07:06 +0100 <monochrom> Err nevermind, it belongs to top level.
2025-01-10 04:06:30 +0100 <geekosaur> that was what I was thinking, but it's listed with the top level stuff
2025-01-10 04:06:14 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 245 seconds)
2025-01-10 04:05:42 +0100 <monochrom> Shouldn't data-files belong to a libary or executable section, rather than "top level"?
2025-01-10 04:05:31 +0100 <sim590> Also, the tarball from `cabal sdist` doesn't have the data-files.
2025-01-10 04:04:16 +0100rekahsoft(~rekahsoft@70.51.99.237) rekahsoft
2025-01-10 04:03:38 +0100housemate(~housemate@pa49-185-174-252.pa.vic.optusnet.com.au) housemate
2025-01-10 04:03:12 +0100 <sim590> Seems related, but Idk what that means. I don't see any issue in the file.
2025-01-10 04:02:58 +0100 <sim590> I get this: Warning: [parser-warning] habanga.cabal:28:1: Ignoring trailing fields after sections: "data-files"
2025-01-10 04:02:43 +0100 <haskellbridge> <sm> I suggested checking the timestamps of those installed data files, in case they are leftovers from an older install, perhaps with a different ghc version or store path
2025-01-10 04:02:04 +0100 <geekosaur> cabal check?
2025-01-10 04:02:00 +0100 <sim590> Yeah. Only the title file has a capital. I guess I forgot about it, but everything is consistent.
2025-01-10 04:01:59 +0100 <geekosaur> I don't see why they didn't get sdisted then
2025-01-10 04:01:57 +0100 <geekosaur> right, I just looked again after reloafding and maybe that is the only uppercase one
2025-01-10 04:01:52 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) merijn
2025-01-10 04:01:34 +0100menschenmensch(~menschenm@41.66.98.89)
2025-01-10 04:01:22 +0100 <haskellbridge> <sm> I see line 35 saying "resources/habanga-tui/Habanga-title.txt"
2025-01-10 04:00:50 +0100 <geekosaur> this will cause problems on case-sensitive systems
2025-01-10 04:00:18 +0100 <geekosaur> habanga.cabal uses lowercase "h" for the data files, resources/habanga-tui has uppercase
2025-01-10 04:00:11 +0100 <haskellbridge> <sm> v2-run is just running files from the source tree I believe
2025-01-10 03:59:47 +0100 <haskellbridge> <sm> where's the case mismatch ? using a capital should be ok, no ?
2025-01-10 03:59:40 +0100 <sim590> geekosaur: there's no mismatch. I don't think so.
2025-01-10 03:59:37 +0100rekahsoft(~rekahsoft@70.51.99.237) (Read error: Connection reset by peer)
2025-01-10 03:58:52 +0100 <sim590> But it works well when I just run the program in with `cabal v2-run habanga-tui`.
2025-01-10 03:58:32 +0100 <geekosaur> that will work on Windows or macOS but not Linux or probably WSL2
2025-01-10 03:58:14 +0100 <sim590> Yeah. I just went and removed everything that mentioned "habanga" under ~/.cabal and tried to reinstall. It resintalled again and I got this: https://paste.debian.net/1344668/
2025-01-10 03:58:06 +0100 <geekosaur> Habanga-… vs. habanga-…
2025-01-10 03:57:48 +0100 <geekosaur> you have a case mismatch?
2025-01-10 03:56:52 +0100vanishingideal(~vanishing@user/vanishingideal) vanishingideal
2025-01-10 03:56:49 +0100 <haskellbridge> <sm> recently timestamped, eg from your latest "cabal install" ?
2025-01-10 03:56:33 +0100 <sim590> Just not the resources directory.
2025-01-10 03:56:26 +0100 <sim590> Exactly. I see other files though.
2025-01-10 03:56:12 +0100 <haskellbridge> <sm> but it's not currently installed at that path mentioned in the error message ?
2025-01-10 03:55:45 +0100vanishingideal(~vanishing@user/vanishingideal) (Ping timeout: 248 seconds)
2025-01-10 03:55:40 +0100 <sim590> yeah, you can see the cabal file here: https://github.com/sim590/habanga/blob/01b1c1c41054c1a070841b5aa90bd42581bb3160/habanga.cabal#L35
2025-01-10 03:54:46 +0100 <haskellbridge> <sm> is that file listed in data-files: in your .cabal file ?
2025-01-10 03:53:50 +0100 <sim590> It used to work, but Idk what I did and now it doesn't anymore.
2025-01-10 03:53:39 +0100 <sim590> I do use `Paths_mypackage` automatically generated module for resolving paths.
2025-01-10 03:52:43 +0100 <sim590> Here's my project: https://github.com/sim590/habanga
2025-01-10 03:51:16 +0100 <sim590> After installing my package with cabal v2-install, and trying to run it, I get: "habanga-tui: /home/simon/.cabal/store/ghc-9.4.8/...fcfc097/share/resources/habanga-tui/Habanga-title.txt: openFile: does not exist (No such file or directory)". So, cabal didn't install my data-files. Why ?
2025-01-10 03:51:03 +0100vanishingideal(~vanishing@user/vanishingideal) vanishingideal
2025-01-10 03:51:00 +0100merijn(~merijn@128-137-045-062.dynamic.caiway.nl) (Ping timeout: 265 seconds)