Skip to content

Commit

Permalink
Tell users to use --install-assistant=yes (#12507)
Browse files Browse the repository at this point in the history
* Tell users to use --install-assistant=yes

`daml install --activate` is deprecated since forever, we tell
users to use `daml install --install-assistant=yes` instead.

changelog_begin
changelog_end

* modernise error message somewhat

* add 'current'
  • Loading branch information
sofiafaro-da authored Jan 20, 2022
1 parent 36536fa commit 3c8a646
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ On Windows:
bazel build //release:sdk-release-tarball
tar -vxf .\bazel-bin\release\sdk-release-tarball-ce.tar.gz
cd sdk-*
daml\daml.exe install . --activate
daml\daml.exe install . --install-assistant=yes
```

That should tell you what to put in the path, something along the lines of `C:\Users\admin\AppData\Roaming\daml\bin`.
Expand Down
10 changes: 5 additions & 5 deletions daml-assistant/src/DA/Daml/Assistant/Install.hs
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,12 @@ uninstallVersion Env{..} sdkVersion = wrapErr "Uninstalling SDK version." $ do
if exists then do
when (Just (DamlAssistantSdkVersion sdkVersion) == envDamlAssistantSdkVersion) $ do
hPutStr stderr . unlines $
[ "Cannot uninstall currently activated SDK version."
, "Please activate a different SDK version and try again."
, "To activate a different version, run:"
[ "Cannot uninstall SDK version of current daml assistant."
, "Please switch to a different version of daml assistant and try again."
, "To switch to a different version of daml assistant, use:"
, ""
, " daml install VERSION --activate"
] -- TODO (FAFM): suggest a version that will work.
, " daml install VERSION --install-assistant=yes"
] -- TODO: suggest a version that will work.
exitFailure

requiredIO "Failed to set write permission for SDK files to remove." $ do
Expand Down
2 changes: 1 addition & 1 deletion language-support/hs/bindings/examples/nim/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Notes on the format of this file:

$ cd daml
$ bazel build language-support/hs/bindings/examples/nim/...
$ daml install latest --activate
$ daml install latest --install-assistant=yes

## 1. Look at [Nim.daml](https://github.com/digital-asset/daml/blob/main/language-support/hs/bindings/examples/nim/daml/Nim.daml)

Expand Down

0 comments on commit 3c8a646

Please sign in to comment.