Dataform Tools supports Windows, MacOS, and Linux.
Dataform Tools requires VS Code version 1.89.0 or higher.
Run `dataform init-creds` from the root of your dataform project in your terminal. You will be prompted to pick the location and type of authentication (json/adc). Choosing adc will use your default GCP credentials that you had setup using gcloud.
It is likely that the VS Code 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_project ensure that workspace is opened at ~/Documents/repos/my_dataform_project NOT ~/Documents/repos. This design facilitates the execution of dataform compile --json command without inferring the dataform root at runtime.
Check if the correct dataform CLI version is installed by running dataform --version in your terminal. Ensure that dataform CLI version matches the version required by the project. Try compiling the project by running dataform compile on your terminal from the root of your dataform project. To install a specific dataform CLI version, run npm i -g @dataform/cli@x.x.x (replace with the required version). If the error persists, you likely have a compilation error in your pipeline.
Open VS Code settings and search for Dataform. Then uncheck the 'Show compiled query on save' setting.
Open VS Code settings, search for Dataform, and select your preferred autocompletion format from the dropdown options. You can choose between `${ref('table_name')}`, `${ref('dataset_name', 'table_name')}`, or `${ref({schema:'dataset_name', name:'table_name'})}`.
If you need different Dataform CLI versions for different workspaces, you can install dataform CLI locally by running `npm install @dataform/cli` (without the `-g` flag) in your project directory. This will install dataform CLI at `./node_modules/.bin/dataform`. To make the extension use the locally installed CLI, open settings and select `local` for the `Dataform CLI Scope` option.
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 for `change language mode` followed by `Configure language association for sqlx` and selecting `sqlx` from 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 as sqlx file.