Improve DevChat dependency check and logging
- Remove redundant DevChat installation check. - Change logger error message to info when pipx environment path is not found. - Move DevChat installation check outside of the if-else block. - Return true after running 'devchat --help' command.
This commit is contained in:
parent
d5fdd4e901
commit
9820571783
@ -10,14 +10,13 @@ export function checkDevChatDependency(pythonCommand: string): boolean {
|
||||
|
||||
if (binPath) {
|
||||
updateEnvironmentPath(binPath);
|
||||
|
||||
// Check if DevChat is installed
|
||||
runCommand('devchat --help');
|
||||
return true;
|
||||
} else {
|
||||
logger.channel()?.error(`Failed to obtain the pipx environment path. Attempting to install pipx.`);
|
||||
return false;
|
||||
logger.channel()?.info(`Failed to obtain the pipx environment path.`);
|
||||
}
|
||||
|
||||
// Check if DevChat is installed
|
||||
runCommand('devchat --help');
|
||||
return true;
|
||||
} catch (error) {
|
||||
// DevChat dependency check failed
|
||||
// log out detail error message
|
||||
|
Loading…
x
Reference in New Issue
Block a user