From 17bfa7f1c41ab0b3ddae3381454da5c5e3394dfc Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 8 Jan 2024 21:10:29 +0200 Subject: [PATCH] show the full path to the found v-analyzer binary, when the VSCode extension runs its bootstrap, to make diagnosing problems easier --- editors/code/src/bootstrap.ts | 3 +++ editors/code/src/ctx.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/editors/code/src/bootstrap.ts b/editors/code/src/bootstrap.ts index 3d36af68..59f93e1e 100644 --- a/editors/code/src/bootstrap.ts +++ b/editors/code/src/bootstrap.ts @@ -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"; @@ -26,7 +27,9 @@ export async function bootstrap(): Promise { ); } + const rpath = fs.realpathSync(path); log.info("Using server binary at", path); + log.info("Server binary realpath:", rpath); return path; } diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index c018caed..192c6840 100644 --- a/editors/code/src/ctx.ts +++ b/editors/code/src/ctx.ts @@ -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", () => {