Run script results in older SDK version
Hello all,
I may be facing a bug relating to Daml Studio (VS Code IDE) in the following case. I have installed Daml SDK versions 2.9.4 and 2.5.0. If I open a project for version 2.9.4 everything works as expected and I can run the script results. But if I don’t have that option available if I switch over to a project running on version 2.5.0.
On inspecting the logs for the IDE I get the following:
Invalid argument `multi-ide'
Usage: daml COMMAND
Available options:
-h,--help Show this help text
Available commands:
version Display Daml version information
install Install the specified SDK version
uninstall Uninstall the specified SDK version
studio Launch Daml Studio
new Create a new Daml project
create-daml-app Create a new Daml project based on create-daml-app
init Configure a folder as a Daml project
build Build the Daml project into a DAR file
test Run the scripts in the given Daml file and all
dependencies
start Launch Sandbox and Navigator for current Daml project
clean Delete build artifacts from project folder
damlc Run the Daml compiler
sandbox Launch Canton Sandbox
navigator Launch the Navigator
ledger Interact with a Daml ledger
packages Query packages of a remote Daml ledger
codegen Run a language bindings code generation tool
deploy Deploy Daml project to a ledger
json-api Launch the HTTP JSON API
trigger-service Launch the trigger service
oauth2-middleware Launch the OAuth 2.0 middleware
trigger Run a Daml trigger
script Run a Daml script
repl Launch the Daml REPL
canton-console Launch the Canton Sandbox Console
[Error - x:xx:xx XM] Connection to server got closed. Server will not be restarted.
What can I do to resolve this issue (I’ve already tried opening VS Code via it’s own binary and via the daml studio command)?
Thank you, @David_Martins, for posting this.
As a workaround, I was able to display the script results by installing the 2.8.9 Daml VS Code Extension.
Not great, but it could get you unstuck if this is blocking work on a 2.5.0 project.
Edit: Be sure the “Auto Update” box in the Extension window is disabled.
Hello Wallace,
Did you change this project’s version to 2.8.9, or just the install?
I changed the Daml Extension version in VS Code. I did not change the SDK version in the daml.yaml file.
Thank you, this does unblock me as a workaround
This is related to the feature “Multi Package IDE Support” which can optionally be enabled in the Daml Extension settings. It is currently an “early access” feature.
@David_Martins disabling the “Multi Package IDE Support” is another workaround.
Here is a GitHub issue to track the issue.
