Skip to content

Commit

Permalink
show the full path to the found v-analyzer binary, when the VSCode ex…
Browse files Browse the repository at this point in the history
…tension runs its bootstrap, to make diagnosing problems easier
  • Loading branch information
spytheman committed Jan 8, 2024
1 parent 74989fa commit 17bfa7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions editors/code/src/bootstrap.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import cp from "child_process";
import os from "os";
import fs from "fs";
import { log } from "./log";
import { getWorkspaceConfig } from "./utils";
import { AnalyzerNotInstalledError } from "./ctx";
Expand All @@ -26,7 +27,9 @@ export async function bootstrap(): Promise<string> {
);
}

const rpath = fs.realpathSync(path);
log.info("Using server binary at", path);
log.info("Server binary realpath:", rpath);

return path;
}
Expand Down
2 changes: 1 addition & 1 deletion editors/code/src/ctx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ export class Context {

https
.get(
"https://raw.githubusercontent.com/v-analyzer/v-analyzer/main/install.vsh",
"https://raw.githubusercontent.com/vlang/v-analyzer/main/install.vsh",
(response) => {
response.pipe(file);
file.on("finish", () => {
Expand Down

0 comments on commit 17bfa7f

Please sign in to comment.