Skip to content
Discussions/App Development/DAML Studio: code is not recognized as an internal or external commandForum ↗

DAML Studio: code is not recognized as an internal or external command

App Development8 posts3,273 views10 likesLast activity May 2021
AR
Arunlal_SJOP
May 2021

Team,

am new to DAML and am unable to launch daml Studio through command prompt, i have already installed visual studio code and SDK… i got the below error message. kindly help…

‘code’ is not recognized as an internal or external command,
operable program or batch file.

Failed to install DAML Studio extension from marketplace.
Installing bundled DAML Studio extension instead.
‘code’ is not recognized as an internal or external command,
operable program or batch file.

Failed to install DAML Studio extension from current SDK.
Please open an issue on GitHub with the above message.

github.com

Build software better, together

al-asset/daml/issues/new

GitHub is where people build software. More than 65 million people use GitHub to discover, fork, and contribute to over 200 million projects.

‘code’ is not recognized as an internal or external command,
operable program or batch file.

Failed to launch DAML studio. Make sure Visual Studio Code is installed.
See Download Visual Studio Code - Mac, Linux, Windows for installation instructions.

Best Regards,
Arunlal

ZS
Zsolt_Holman
May 2021

Hi Arunlal,

Have you set the environment variable properly?
This article or the official documentation might help.

Best regards,
Zsolt

GA
Gary_Verhaegen
May 2021

Would you mind sharing the exact command you ran to generate those error messages? AFAIK you should not need the code CLI command to work in order to use daml studio; having VSCode installed should be enough.

CO
cocreature
May 2021

On Linux and Windows you need to have code in PATH. On MacOS it should work without that.

Which operating system are you running on?

AR
Arunlal_SJ
May 2021

Hi Zsolt,

I have added the Path and logged out and logged in again, but still am facing the same issue and the studio is not opening. Attached the screenshot for reference.


GA
Gary_Verhaegen
May 2021

Eliminating Daml from the equation for a moment, can you confirm whether if you open up a new terminal and type just “code” that works?

QU
quidagis
May 2021

I am assuming that @Arunlal_SJ was able to get this remediated?

ZS
Zsolt_Holman
May 2021

Arunlal,

The error message “Not in project” comes if daml assistant is invoked from outside of a project directory.

I recommend the following steps to be taken for the very first time:

Daml Getting Started
First off, open a terminal, change to a folder in which to create your first application, and instantiate the template project.

  • daml new create-daml-app --template create-daml-app
  • cd create-daml-app

Once the project created, VSC can be launched from the project folder:

  • daml studio
← Back to Discussions