package uses hardcoded at compile time path to ghc libdir #315
Labels
No Label
blocked: dependency
blocked: info-needed
bug
duplicate
enhancement
fixed in HEAD
help wanted
hs:arrows
hs:brackets
hs:classes
hs:comments
hs:do-notation
hs:guards
hs:lists
hs:operators
hs:patterns
hs:records
hs:types
invalid
language extension support
layouting
needs confirmation
priority: high
priority: low
question
revisit before next release
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: hexagoxel/brittany#315
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
The concrete path varies per os.
Afaics the package does not use
ghc-paths
directly, you can remove it from build-depends and it still compiles (so it is needed to ensure some version bounds??).I guess it could be used via
ghc-exactprint
:81c2ef9cdc/src/Language/Haskell/GHC/ExactPrint/Parsers.hs (L289)
Opened issue upstream: https://github.com/alanz/ghc-exactprint/issues/96
Afacs
ghc-exactprint
only usesCHC.Paths
for the public funcionwithDynFlags
.I cant find any use of that function in the brittany code base so it is a misterious for me how the error is triggered within brittany , maybe another package upstream is using it? 🤔
I'm not entirely sure what to do here. Requiring
ghc-paths
is a consequence of using GHC for parsing. It would be nice if we could do something different, but I think it would require help from one ofghc-exactprint
,ghc-paths
, or GHC itself.This issue seems related: https://gitlab.haskell.org/ghc/ghc/-/issues/10961
@tfausak thanks for care. It turns out that ghc-exactprint is using it in other points and yeah, it should be changed there (and hen maybe adapt downstream packages)
The correlated issue in ghc-exactprint is the linked above: https://github.com/alanz/ghc-exactprint/issues/96
Hi, i've introduced a hackish workaround to provide the runtime ghc libdir to ghc-exactprint, using an evironment variable: https://github.com/alanz/ghc-exactprint/pull/98 and i've used it in hls with success
However i would not use it in the library cause the code would not be thread safe, the original issue is still open: https://github.com/alanz/ghc-exactprint/issues/96
If there is a workaround on mainstream. This means that a new binary release needs to be uploaded, right?
@azimut oh, sure, i was focusing in the library component but the executable here could use the workaround
This should no longer be the case as of version 0.14.0.0. Please re-open if that’s not true.