-
Unable to execute command e.g. error
command vscode-dataform-tools.xxx not found- It is likely that the vscode workspace folder is not opened at the root of your dataform project. For example, if your dataform project is located at
~/Documents/repos/my_dataform_projectensure that workspace is opened at~/Documents/repos/my_dataform_projectNOT~/Documents/repos/my_dataform_project - The above design is to facilitate the exection of
sqlanvil compile --jsoncommand without infering the dataform root at run time
- It is likely that the vscode workspace folder is not opened at the root of your dataform project. For example, if your dataform project is located at
-
Error compiling Dataform, process existed with exit code 1
- Check if correct dataform cli version is installed by running
dataform --versionin your terminal - Ensure that dataform cli version matches the version required by the project
- Try compiling the project by running
sqlanvil compileon your terminal from the root of your dataform project - In case you need to install a specific dataform cli version by running
npm i -g @sqlanvil/cli@2.9.0. Make sure you verify the version by running thedataform --version - In case the error is not due to all the above reasons it is likely that you have a compilation error in your pipeline
- Check if correct dataform cli version is installed by running
-
- Run
dataform init-credsfrom the from the root of your dataform project in your terminal - You will be promted to pick the location and type of authentication
json/adc. Choosing adc will be use your default gcp credentials that you had setup usinggcloud
- Run
-
-
If you install dataform cli using
npm install -g @sqlanvil/cliit will install the dataform cli globally making only one version available everywhere. If you have varing Dataform version requeriement for a workspace you can installation dataform cli version specific to that workspace by runningnpm install @sqlanvil/clinotice the absence of-gflag as compared to the previous command. Runningnpm install @sqlanvil/cliwill install dataform cli at./node_modules/.bin/dataform. To make the extension use dataform cli installated in local scope open settings and select local forDataform Cli Scopeas shown in the screenshot below.
-
-
I do not see go to definition option when right clicking references
${ref('table_name')}- Check if you language mode when sqlx file is open is set to
sqlx. VSCode sometimes sets it as a different flavour of sql. You can change that by opening the command pallet and searching forchange language modefollowed byConfigure language association for "sqlx"and selectingsqlxfrom the list of available options. This should also resolve hover information not being visible as the all the language specific behaviors are tied to file being inferred assqlxfile.
- Check if you language mode when sqlx file is open is set to


