ashish10alex / ashish10alex/vscode-dataform-tools

bug: Installing @dataform/core@3.0.45 and compiling...

Open
#286 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
TypeScript
Stars
94
Forks
16
Avg merge
4m
Merged PRs (30d)
7

Description

**Describe the bug**
When saving a dataform, the following message appears:
Installing @dataform/core@3.0.45 and compiling... Note When specifying dataformCoreVersion in workflow_settings.yaml, Dataform CLI copies over the project to a temporary directory, adds package.json, and installs dataform core by running npm install. This requires a network call and might take time if the dependency is not cached in your npm cache. You can avoid this bottleneck by creating a package.json and specifying dataform core locally.
This is contradictory, since in version 3 the main file became workflow_settings.yaml, which replaces the old mechanism: package.json, node_modules, npm install

**To Reproduce**
This occurs when saving an SQLX file.

**Expected behavior**
Compilation should be faster.

**Screenshots**

Image

**Environment:**
- Operating system: Windows
- Dataform cli version: 3.0.45
- Dataform core version: 3.0.45
- Version of the extension: 1.2.0
- ...

Contributor guide

Open the contributing guide

Research direction

Reproduce the delay when saving an SQLX file on Windows with Dataform CLI and extension version 1.2.0. Start by tracing how workflow_settings.yaml leads to the temporary package.json and npm install described in the issue. Done means compilation no longer performs an unnecessary network-dependent install and the save flow is faster.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
data-engineering, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.