-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not resolve dependencies #1883
Comments
Yikes let me take a look! |
And if I use ghc version 8.10.1 or 8.10.3, the building process went well until the end, it will show:
|
Hmm can you let me know what exact steps you're following?
The following seems to work for me
```
$ git clone ***@***.***:ucsd-progsys/lh-plugin-demo.git
$ cd lh-plugin-demo
$ cabal v2-build
```
Also what version of `cabal` and `ghc` do you have? The following seems to
work on the MAC OS?
```
$ cabal --version
cabal-install version 3.2.0.0
compiled using version 3.2.0.0 of the Cabal library
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.10.2
```
…On Mon, Oct 11, 2021 at 4:40 PM Jingren Wang ***@***.***> wrote:
And if I use ghc version 8.10.1 or 8.10.3, the building process went well
until the end, it will show:
src\Language\Haskell\Liquid\UX\Annotate.hs:446:31: error:
• Couldn't match expected type ‘Key’ with actual type ‘T.Text’
• In the first argument of ‘(.=)’, namely ‘tshow k’
In the expression: tshow k .= toJSON a
In the first argument of ‘object’, namely
‘[tshow k .= toJSON a | (k, a) <- M.toList kas]’
|
446 | toJSON (Asc kas) = object [ tshow k .= toJSON a | (k, a) <- M.toList kas ]
| ^^^^^^^
cabal.exe: Failed to build liquidhaskell-0.8.10.2 (which is required by
exe:main from EpsilonX-0.1.0.0 and EpsilonX-0.1.0.0). See the build log above
for details.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_ucsd-2Dprogsys_liquidhaskell_issues_1883-23issuecomment-2D940520311&d=DwMFaQ&c=-35OiAkTchMrZOngvJPOeA&r=r3JfTqNkpwIJ1InE9-ChC2ld7xwATxgUx5XHAdA0UnA&m=IVdD1c3PDgH3SlVtysLzX0Tgnf7ELrTJ4rHP1zwYEYc&s=TlSG2G9Omh07DDX8J0WShiobcM_PrVC5MrY8FyV-468&e=>,
or unsubscribe
<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAMS4OEKIPQFO4TRABYTUQTUGNYYHANCNFSM5FWNUBXA&d=DwMFaQ&c=-35OiAkTchMrZOngvJPOeA&r=r3JfTqNkpwIJ1InE9-ChC2ld7xwATxgUx5XHAdA0UnA&m=IVdD1c3PDgH3SlVtysLzX0Tgnf7ELrTJ4rHP1zwYEYc&s=Kvo7f6LoyC1se006jDPIVW0kArBrbTFPmw7n6T94dmA&e=>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://urldefense.proofpoint.com/v2/url?u=https-3A__apps.apple.com_app_apple-2Dstore_id1477376905-3Fct-3Dnotification-2Demail-26mt-3D8-26pt-3D524675&d=DwMFaQ&c=-35OiAkTchMrZOngvJPOeA&r=r3JfTqNkpwIJ1InE9-ChC2ld7xwATxgUx5XHAdA0UnA&m=IVdD1c3PDgH3SlVtysLzX0Tgnf7ELrTJ4rHP1zwYEYc&s=iIks-x1fpNCA13GOt9Deb1-u_0_4v4xE4_TiNZ-m-mc&e=>
or Android
<https://urldefense.proofpoint.com/v2/url?u=https-3A__play.google.com_store_apps_details-3Fid-3Dcom.github.android-26referrer-3Dutm-5Fcampaign-253Dnotification-2Demail-2526utm-5Fmedium-253Demail-2526utm-5Fsource-253Dgithub&d=DwMFaQ&c=-35OiAkTchMrZOngvJPOeA&r=r3JfTqNkpwIJ1InE9-ChC2ld7xwATxgUx5XHAdA0UnA&m=IVdD1c3PDgH3SlVtysLzX0Tgnf7ELrTJ4rHP1zwYEYc&s=0wT9gplZKuNTVZp_3PCRvLKtnz0uGA1HOsRLoF7r2cs&e=>.
|
I added the plugin to the dependencies in my won project, following the tutorial I mentioned above, just two steps:
and I have my .cabal file:
As I mentioned above in the first comment, at first, I used
which has a conflict problem, then I tried ghc 8.10.7, with the same cabal version 3.4.0.0, also conflict here, but only on base:
After thet I tried ghc 8.10.1 and ghc 8.10.3, with the same cabal version 3.4.0.0, no conflicts anymore, but showing error:
OS: Windows 10 |
I encountered the same problem on macOS 11.6. After making a fresh clone of the lh-plugin-demo repo and switching to ghc 8.10.2 with cabal 3.2.0.0, I got the following error when executing
|
Try building with |
I have the same problem as @wjrforcyber.
This is after removing base as a dependency in my .cabal files.
Building with stack did not work for me at this point. See #1886 for details. |
Could you please show me the exact version of ghc, cabal you used building the liquidhaskell, if stack works, then when version specified in the Is it still what you mentioned above : |
I had this too. It can be fixed by updating the
|
I am using |
I have this same issue. I have a controlled docker environment so I reduced the unrelated cruft a bit and can supply it here as a reproduction case: FROM ubuntu:jammy
###
### Setup a standard user, no root funny business
###
ARG USERNAME=vscode
ARG USER_UID=1000
ARG USER_GID=$USER_UID
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
#
# Verify git, needed tools installed
&& apt-get -y install git iproute2 procps lsb-release lldb curl build-essential curl libffi-dev libffi7 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5 \
#
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
&& groupadd --gid $USER_GID $USERNAME \
&& useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \
#
# [Optional] Add sudo support for the non-root user
&& apt-get install -y sudo \
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\
&& chmod 0440 /etc/sudoers.d/$USERNAME
USER ${USERNAME}
ENV DEBIAN_FRONTEND=dialog
###
### Install haskell toolchain
###
ENV GHC_VERSION=8.10.2
ENV CABAL_VERSION=3.2.0.0
RUN curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | \
BOOTSTRAP_HASKELL_NONINTERACTIVE=1 BOOTSTRAP_HASKELL_MINIMAL=1 sh
ENV PATH=/home/vscode/.ghcup/bin:${PATH}
RUN ghcup install ghc ${GHC_VERSION} && ghcup set ghc ${GHC_VERSION}
RUN ghcup install cabal ${CABAL_VERSION}
RUN cabal update
WORKDIR /home/vscode/repro
RUN cabal init \
&& sed -i "s/build-depends: base >=4.14 && <4.15/build-depends: liquid-base, liquidhaskell >= 0.8.10/" repro.cabal \
&& printf "\n ghc-options: -fplugin=LiquidHaskell\n" >> repro.cabal \
&& cat repro.cabal
RUN cabal v2-build In case of unfamiliarity with docker but still interested:
Should get this issue:
Should it matter (really shouldn't though):
|
Hello!
This is an issue that has been fixed in #1884. Building |
I can confirm that editing my reproduction case to explicitly utilize
NOTE: My repro case did also need a SMT solver, but that error message was clear. After adding it full success in build. However I also had to dump liquid-base for base. Because So I'm guessing there should actually be a For me I'm fine to continue my academic experimenting without liquid-base for now, but If I can help test something feel free to ping me here. Thanks for the tip @facundominguez ! |
Oh, I actually didn't realize I needed liquid-base for the purposes of the prelude types within actually working with liquidhaskell. (as I understood it) So in the end I just bumped the versions:
And everything works due to the new liquid-base no longer pulling in liquidhaskell-0.8.10.3 version. I have a fresh project but the reason I was still hesitant to go to GHC9 was tooling. |
I'm closing this since liquidhaskell moved to GHC 9 now. But please feel free to reach out again if there are more installation troubles. |
I am following this tutorial, but got this error:
Has anybody encountered with this issue?
The text was updated successfully, but these errors were encountered: