You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I plan on doing this, since as it stands I don't see a way to implement the sort of overriding syntax needed for #5522, and even if it is possible we should eat our veggies.
Is the idea here to use the internal Parsec representation /cabal/Cabal-syntax/src/Distribution/Parsec/?
If so where should one start looking for project parsing?
Is the idea here to use the internal Parsec representation /cabal/Cabal-syntax/src/Distribution/Parsec/?
Yes.
If so where should one start looking for project parsing?
I was wondering this myself, and it was tricky. At this point, rather than waiting for someone knowledgeable to reply, I'd compile it with profiling on, run it with -xc on a buggy project file, see it failing and study the stack trace...
@ulysses4ever thanks I took a look prior to your comment but never came back to ask about what the "buggy project" was, as the linked issue was a little above my head right now 😓
if you have a small example of what I'd need to run to see this error that would be great, in the mean time I'll also look at the linked file you've given 👍
Activity
phadej commentedon Jun 25, 2019
@typedrat if you can pull it off, it would be super super great!
Cmdv commentedon Nov 30, 2022
Is the idea here to use the internal Parsec representation
/cabal/Cabal-syntax/src/Distribution/Parsec/?If so where should one start looking for
project parsing?ulysses4ever commentedon Nov 30, 2022
Yes.
I was wondering this myself, and it was tricky. At this point, rather than waiting for someone knowledgeable to reply, I'd compile it with profiling on, run it with -xc on a buggy project file, see it failing and study the stack trace...
ulysses4ever commentedon Dec 2, 2022
Less discouraging answer is: mostly, https://github.com/haskell/cabal/blob/master/cabal-install/src/Distribution/Client/ParseUtils.hs
Cmdv commentedon Dec 3, 2022
@ulysses4ever thanks I took a look prior to your comment but never came back to ask about what the "buggy project" was, as the linked issue was a little above my head right now 😓
if you have a small example of what I'd need to run to see this error that would be great, in the mean time I'll also look at the linked file you've given 👍
17 remaining items
Parse condTree draft, field grammar stub (haskell#6101)
Add ProjectConfig FieldGrammar and Lens example (haskell#6101)
Remove unnecessary helper function (haskell#6101)
add SectionParser stub (haskell#6101)
add testSourceRepoList stub (haskell#6101)
Fix SourceRepoParser, Add Expectations (haskell#6101)
Replace cabal project parsing with parsec implementation
Replace cabal project parsing with parsec implementation
Replace cabal project parsing with parsec implementation
Replace cabal project parsing with parsec implementation
Replace cabal project parsing with parsec implementation
Replace cabal project parsing with parsec implementation
Replace cabal project parsing with parsec implementation