lucasvreis / org-mode-hs

Libraries and tool for parsing Org Mode documents with customizable exporters. 🦄
GNU General Public License v3.0
21 stars 5 forks source link

Cannot build org-parser #19

Open schoettl opened 1 month ago

schoettl commented 1 month ago

I tried the commands in the Installation from source and get this on the cabal install step:

fatal: Could not parse object '5fef2d328b5c15b9feec7ca0dd71d2d403c39941'.

Same error when I cd into org-parser and try cabal build.

Looks like it comes from an outdated commit in the cabal.project file:

source-repository-package
  type: git
  location: https://github.com/lucasvreis/unionmount.git
  tag: 5fef2d328b5c15b9feec7ca0dd71d2d403c39941

What's the best way to resolve this? Just use the latest commit from the unionmount repo?

After doing that I get some dependency errors including lvar and base.

lucasvreis commented 1 month ago

Hello,

The first issue here is that GitHub does not set up redirects for username changes and I had not updated the links in my repos. I'm at a conference now so as a quick measure I just reverted to my old username. Sorry about that.

The second issue is that the version on main is only guaranteed to build with the GHC versions listed in the Cabal files, namely versions 9.2 and 9.4. What versions are you using?

There is another branch with more recent developments but it's still not ready. I'm in the middle of my masters so for now I don't have that much time to finish it.

schoettl commented 1 month ago

Thanks for the quick response.

I first used GHC 9.6.5 but just tried with 9.4.8, that seem to work.

I also got org-parser to work with stack lts-22.26 (GHC 9.6) and hope to try out org-exporters in the next days, too. I'm excited because this seems to really parse interesting details (other than the package org-mode) and it doesn't crash with my 51k line org file (other than the Org.jl parser). Thanks for your effort!

lucasvreis commented 1 month ago

it doesn't crash with my 51k line org file

Great! The largest file I had tested so far had 13k lines (tecosaur's config), so this is good to know :) The version at https://github.com/lucasvreis/org-mode-hs/pull/18 also parses about 15% faster but this is likely due to Seqs is no longer being converted to lists at parsing time.

I think the exporting should also not crash for you, but the version on the PR had a significant (~25%) speedup because the performance of Ondim was improved on newer versions.