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

[BUG] Virtual environment required but not clearly communicated

Open dustinvannoy-db opened this issue 1 year ago • 0 comments

Describe the bug Virtual environment is required for extension to be fully usable. Not opposed to forcing use of virtual environment but it isn't clear that is the issue. It feels like it just isn't finding the interpreter that has been selected rather than acknowledging that it is not compatible with using the extension.

To Reproduce Steps to reproduce the behavior:

  1. Open folder without databricks.yml or virtual environment
  2. Click on 'Migrate current folder to a Databricks Project'
  3. Configure profile.
  4. Set interpreter from Command Pallet to a system installed interpreter (Cmd + Shift + P) -> Python: Select Interpreter ->
  5. Open python file to confirm interpreter in bottom right info.
  6. Try to install databricks-connect from extensions doesn't provide any feedback.
  7. Click on "Python Environment -> Activate an environment ..." only gives environment type option of Venv or Conda
  8. "Run File as workflow" still works.
  9. "Run current file with Databricks Connect" opens up the selection for environment type.
  10. Also, the extension doesn't recognize the interpreter so it looks like nothing is configured.

Screenshots If applicable, add screenshots to help explain your problem. image image image

System information:

Paste the output ot the Help: About command (CMD-Shift-P). Version: 1.93.0 (Universal) Commit: 4849ca9bdf9666755eb463db297b69e5385090e3 Date: 2024-09-04T13:02:38.431Z (1 wk ago) Electron: 30.4.0 ElectronBuildId: 10073054 Chromium: 124.0.6367.243 Node.js: 20.15.1 V8: 12.4.254.20-electron.0 OS: Darwin arm64 23.6.0

Databricks Extension Version 2.4.2

Databricks Extension Logs Please attach the databricks extension logs

Additional context Add any other context about the problem here.

dustinvannoy-db avatar Sep 14 '24 00:09 dustinvannoy-db