Skip to content

Commit

Permalink
✨ bump kai + make kai-rpc-server cwd outside workspace
Browse files Browse the repository at this point in the history
Signed-off-by: David Zager <[email protected]>
  • Loading branch information
djzager committed Dec 17, 2024
1 parent 1c7bd71 commit 8d103c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/collect-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ await downloadGitHubRelease({

org: "konveyor",
repo: "kai",
releaseTag: "v0.0.3",
releaseTag: "v0.0.4",

/*
Release asset filenames and nodejs equivalent platform/arch
Expand Down
8 changes: 6 additions & 2 deletions vscode/src/client/analyzerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,22 @@ export class AnalyzerClient {
): Promise<[ChildProcessWithoutNullStreams, number | undefined]> {
// TODO: Ensure serverState is starting

const serverCwd = this.kaiRuntimeDir;
const serverCwd = this.extContext.storageUri?.fsPath as string;
const serverPath = this.getKaiRpcServerPath();
const serverArgs = this.getKaiRpcServerArgs();
const serverEnv = await this.getKaiRpcServerEnv();

if (!fs.existsSync(serverCwd)) {
fs.mkdirSync(serverCwd);
}

this.outputChannel.appendLine(`server cwd: ${serverCwd}`);
this.outputChannel.appendLine(`server path: ${serverPath}`);
this.outputChannel.appendLine(`server args:`);
serverArgs.forEach((arg) => this.outputChannel.appendLine(` ${arg}`));

const kaiRpcServer = spawn(serverPath, serverArgs, {
cwd: serverCwd,
cwd: this.extContext.storageUri?.fsPath,
env: serverEnv,
});

Expand Down

0 comments on commit 8d103c1

Please sign in to comment.