Open joshsh opened 6 years ago
Perhaps the problem is related to #36?
Hi and thanks for the detailed report:
text-1.2.3.1
is not patched in eta-hackage to make it compatible with eta. Last one is 1.2.3.0
No value has been specified for this provider.
), We will open a dedicated issue 1.2.2.2
dont show the cause of the error, but i would try to use the last version patched of text (1.2.3.0
) and the gradlew version used in the examples of eta-gradle
(4.7
)
It was shown that text-1.2.2.2
has a serious bug so we decided not to backport the patch. Please use text-1.2.3.0
. If you still feel it should be patched, please let us know.
The errors in the build for text-1.2.2.2
look like this after checking in ~/.etlas/logs/eta-0.8.6.2/text-1.2.2.2-*.log
:
Data/Text/Lazy/Builder/Int.hs:247:55: error:
Ambiguous occurrence ‘<>’
It could refer to either ‘Prelude.<>’,
imported from ‘Prelude’ at Data/Text/Lazy/Builder/Int.hs:17:8-33
(and originally defined in ‘GHC.Base’)
or ‘Data.Text.Internal.Builder.Functions.<>’,
imported from ‘Data.Text.Internal.Builder.Functions’ at Data/Text/Lazy/Builder/Int.hs:26:46-49
(and originally defined
at Data/Text/Internal/Builder/Functions.hs:37:1-4)
|
247 | PAIR(x,y) -> pblock q <> pblock r <> putB ns
| ^^
Data/Text/Lazy/Builder/Int.hs:260:40: error:
Ambiguous occurrence ‘<>’
It could refer to either ‘Prelude.<>’,
imported from ‘Prelude’ at Data/Text/Lazy/Builder/Int.hs:17:8-33
(and originally defined in ‘GHC.Base’)
or ‘Data.Text.Internal.Builder.Functions.<>’,
imported from ‘Data.Text.Internal.Builder.Functions’ at Data/Text/Lazy/Builder/Int.hs:26:46-49
(and originally defined
at Data/Text/Internal/Builder/Functions.hs:37:1-4)
|
260 | | otherwise = loop (d-1) q <> hexDigit r
which can be fixed by making text-1.2.2.2
base-4.11.1.0
-compatible because that change is causing the clashes.
I've replicated and reported the No value specified for provider
bug in #38.
Thank you; bumping the text
dependency to the latest patched version solved the problem. Here are all of the dependencies of my project which needed to be special-cased for (gradle-)Eta:
aeson
: 1.4.0.0
instead of 1.3.1.1
containers
: 0.5.9.1
instead of 0.5.11.0
cql-io
: 1.0.1.1
instead of 1.0.0
filepath
: 1.4.1.2
instead of 1.4.2
network
: 2.6.3.2
instead of 2.6.3.6
text
: 1.2.3.0
instead of 1.2.3.1
@joshsh Can you file a request on eta-hackage
to provide patches for those specific versions of all the libraries?
I encountered a build failure in a project with a
text-1.2.3.1
dependency, and I was able to reproduce the problem by simply adding atext-1.2.2.2
dependency to the fatjar example:I encounter distinct errors the first time I run
./gradlew shadowJar --info
(after clearing the Gradle cache) vs. the second time I run it. Output for both scenarios is below. Below these is a third run in which I have changed thetext
dependency to1.2.3.1
. First, the Gradle version:First run:
Second run:
Third run (text-1.2.3.1):