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
gen-hie fails to parse cabal.project when it consists only of the field "packages" without a trailing newline.
Suppose that the current directly contains proj, which contains proj.cabal with certain content.
$ ls
proj
$ ls proj
LICENSE app/ proj.cabal
Then, if we generate cabal.project whose content is "packages: ..." without a trailing newline, gen-hie fails to parse the file.
$ echo -n "packages: proj/*.cabal" > cabal.project
$ gen-hie
Used cabal
No .cabal files found under/Users/kztk/prog/haskell/cabal_package_f
You may need to run stack build.
On the other hand, if the cabal.project has a trailing newline, everything works as expected.
I confirmed the above issue with implicit-hie 0.1.4.0.
I suspect this issue would be caused by the function field called by extractPkgs in src/Hie/Cabal/Parser.hs, which requires the newline in the end by calling skipToNextLine.
The text was updated successfully, but these errors were encountered:
gen-hie
fails to parsecabal.project
when it consists only of the field "packages" without a trailing newline.Suppose that the current directly contains
proj
, which containsproj.cabal
with certain content.Then, if we generate
cabal.project
whose content is "packages: ..." without a trailing newline,gen-hie
fails to parse the file.On the other hand, if the
cabal.project
has a trailing newline, everything works as expected.I confirmed the above issue with
implicit-hie 0.1.4.0
.I suspect this issue would be caused by the function
field
called byextractPkgs
insrc/Hie/Cabal/Parser.hs
, which requires the newline in the end by callingskipToNextLine
.The text was updated successfully, but these errors were encountered: