databricks-vscode icon indicating copy to clipboard operation
databricks-vscode copied to clipboard

The JSON schema feature for DABs is unreliable

Open shreyas-goenka opened this issue 5 months ago • 0 comments

Describe the bug The extension feature of loading DABs JSON schema for bundle configuration files is unreliable.

  1. For databricks.yml files sometimes it works, sometimes it does not.
  2. For other files (i.e. those specified in the include block) glob patterns do not work. That is include: resources.yml will load the JSON schema for the resouces.yml file, but include: *.yml does not do so.

To Reproduce For issue (1) Create a databricks.yml file in your current working directory. I'd expect autocomplete and validation via JSON schema to work, but it does not work all the time. Maybe it just takes a while to load sometimes.

For issue (2) Steps to reproduce the behavior:

  1. Create a databricks.yml file
  2. Add include: *.yml to the file
  3. Create resources.yml in the same directory.

I'd now expect to get DABs autocomplete and validation features resources.yml

System information:

Version: 1.92.2 (Universal)
Commit: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9
Date: 2024-08-14T17:29:30.058Z (1 wk ago)
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Darwin arm64 23.4.0

Databricks extension version: v2.0.0

shreyas-goenka avatar Aug 28 '24 12:08 shreyas-goenka