Skip to content

Commit 42007bd

Browse files
committed
pr feedback
1 parent c0f19d6 commit 42007bd

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
## Code Style & Organization
22
- Order method, fields and properties, first by accessibility and then by alphabetical order.
33
- Don't add the Microsoft copyright header to new files.
4+
- Use `Uri.joinPath()` for constructing file paths to ensure platform-correct path separators (e.g., `Uri.joinPath(venvPath, 'share', 'jupyter', 'kernels')` instead of string concatenation with `/`)
45

56
## Testing
67
- Unit tests use Mocha/Chai framework with `.unit.test.ts` extension

src/kernels/deepnote/deepnoteToolkitInstaller.node.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class DeepnoteToolkitInstaller implements IDeepnoteToolkitInstaller {
6565
const venvPath = this.getVenvPath(deepnoteFileUri);
6666
const venvKey = venvPath.fsPath;
6767

68-
logger.info(`Virtual environment at ${venvKey}.`);
68+
logger.info(`Ensuring virtual environment at ${venvKey}`);
6969

7070
// Wait for any pending installation for this venv to complete
7171
const pendingInstall = this.pendingInstallations.get(venvKey);
@@ -231,11 +231,14 @@ export class DeepnoteToolkitInstaller implements IDeepnoteToolkitInstaller {
231231
],
232232
{ throwOnStdErr: false }
233233
);
234-
logger.info(
235-
`Kernel spec installed successfully to ${
236-
venvPath.fsPath
237-
}/share/jupyter/kernels/deepnote-venv-${this.getVenvHash(deepnoteFileUri)}`
234+
const kernelSpecPath = Uri.joinPath(
235+
venvPath,
236+
'share',
237+
'jupyter',
238+
'kernels',
239+
`deepnote-venv-${this.getVenvHash(deepnoteFileUri)}`
238240
);
241+
logger.info(`Kernel spec installed successfully to ${kernelSpecPath.fsPath}`);
239242
} catch (ex) {
240243
logger.warn(`Failed to install kernel spec: ${ex}`);
241244
// Don't fail the entire installation if kernel spec creation fails

0 commit comments

Comments
 (0)