AmpersandTarski / Ampersand

Build database applications faster than anyone else, and keep your data pollution free as a bonus.
http://ampersandtarski.github.io/
GNU General Public License v3.0
40 stars 8 forks source link

Ormolu installation for adhering to the commit-guidelines #1268

Closed stefjoosten closed 2 years ago

stefjoosten commented 2 years ago

What happened

I tried to install ormolu and got the following error messages. Q: What should I do ?

sjo00577@BA92-C02T81JCGTDY Ampersand % stack install ormolu-0.1.4.1

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for ormolu-0.1.4.1:
    Diff-0.3.4 from stack configuration does not match >=0.4 && <1.0  (latest matching version is 0.4.0)
    ansi-terminal-0.9.1 from stack configuration does not match >=0.10 && <1.0  (latest matching version is 0.11.1)
    ghc-lib-parser-8.8.0.20190424 from stack configuration does not match ==8.10.*  (latest matching version is 8.10.7.20210828)
needed since ormolu is a build target.

Some different approaches to resolving this:

  * Set 'allow-newer: true' in /Users/sjo00577/.stack/config.yaml to ignore all version constraints and build anyway.

  * Recommended action: try adding the following to your extra-deps in /Users/sjo00577/.stack/global-project/stack.yaml:

- Diff-0.4.0@sha256:b5cfbeed498f555a18774ffd549bbeff7a24bdfe5984154dcfc9f4328a3c2847,1275
- ansi-terminal-0.11.1@sha256:e8428fcd5fe9d4e8a796a0c8107b7288a0a93ffaa8d761cf51f803384284bd77,3321
- ghc-lib-parser-8.10.7.20210828@sha256:bf811af621080ae0b32054b7444c1cdb7eaad5e96dacbc2a9c7b277d6f35258b,8621

Plan construction failed.
sjo00577@BA92-C02T81JCGTDY Ampersand % 

I used Ampersand-v4.6.2 [Conceptual-Analysis:d020e8244]

hanjoosten commented 2 years ago

@stefjoosten make sure you give this command inside the right stack sandbox. So within a terminal inside vscode, where your Ampersand project resides.

stefjoosten commented 2 years ago

Aha, so it should not be done outside of VScode?

hanjoosten commented 2 years ago

It must be done inside the same sandbox.

hanjoosten commented 2 years ago

I guess this issue can be closed now. If not, feel free to reopen.