microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.25k stars 1.15k forks source link

Switch logging for pixi search from error to warning #23710

Open eleanorjboyd opened 5 days ago

eleanorjboyd commented 5 days ago

Currently the extension prints an error if it cannot find pixi envs, it should instead warn and only give full info on verbose mode to reduce noise in the output panel.

2024-06-26 11:52:57.554 [error] Reading directory to watch failed [Error: ENOENT: no such file or directory, scandir '/Users/eleanorboyd/vscode-python/.pixi/envs'
    at Object.readdirSync (node:fs:1515:3)
    at t.readdirSync (node:electron/js2c/node_init:2:11289)
    at /Users/eleanorboyd/.vscode-insiders/extensions/ms-python.python-2024.9.2024062601-darwin-arm64/out/client/extension.js:2:574446
    at /Users/eleanorboyd/.vscode-insiders/extensions/ms-python.python-2024.9.2024062601-darwin-arm64/out/client/extension.js:2:574637
    at Array.map (<anonymous>)
    at d.initWatchers (/Users/eleanorboyd/.vscode-insiders/extensions/ms-python.python-2024.9.2024062601-darwin-arm64/out/client/extension.js:2:574355)
    at async d.ensureWatchersReady (/Users/eleanorboyd/.vscode-insiders/extensions/ms-python.python-2024.9.2024062601-darwin-arm64/out/client/extension.js:2:536827)] {
  errno: -2,
  syscall: 'scandir',
  code: 'ENOENT',
  path: '/Users/eleanorboyd/vscode-python/.pixi/envs'
}
2024-06-26 11:52:57.554 [error] Dir "/Users/eleanorboyd/vscode-python/.pixi/envs" is not watchable (directory does not exist)
karthiknadig commented 5 days ago

@baszalmstra @tdejager