Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion src/rovo-dev/rovoDevProcessManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,23 @@ class RovoDevTerminalInstance extends Disposable {
return new Promise<void>((resolve, reject) => {
access(this.rovoDevBinPath, constants.X_OK, async (err) => {
if (err) {
reject(new Error(`executable not found.`));
if (err.code === 'ENOENT') {
reject(
new Error(
`Executable not found at: ${this.rovoDevBinPath}. Error: ${err.message} (${err.code})`,
),
);
} else if (err.code === 'EACCES') {
reject(
new Error(
`Executable found but not executable. Please check permissions: ${this.rovoDevBinPath}. Error: ${err.message} (${err.code})`,
),
);
} else {
reject(
new Error(`Cannot access executable: ${err.message}${err.code ? ` (${err.code})` : ''}`),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔎 Code Readability

Add a space before the opening parenthesis for consistency: ${err.message}${err.code ? (${err.code}) : ''} should be ${err.message}${err.code ? (${err.code}) : ''}.

);
}
return;
}

Expand Down Expand Up @@ -521,6 +537,7 @@ class RovoDevTerminalInstance extends Disposable {
isTransient: true,
iconPath: this.rovoDevIconUri,
env: {
...process.env,
USER: process.env.USER || process.env.USERNAME,
USER_EMAIL: credentials.authInfo.username,
ROVODEV_SANDBOX_ID: this.extensionApi.metadata.appInstanceId(),
Expand Down
Loading