Open wbudic opened 5 years ago
For anyone that hits this issue, to work around it modify your path so that "which perlcritic" can resolve perlcriitic. The error is occurring because when it is not in your path, the server extension is validating it can find it as part of its default settings. If it cannot it issues:
connection.window.showErrorMessage(error);
This will trigger the error you are seeing.
Fix:
diff --git a/server/src/server.ts b/server/src/server.ts index f4f29bf..ea3d575 100644 --- a/server/src/server.ts +++ b/server/src/server.ts @@ -104,6 +104,7 @@ connection.onDidChangeConfiguration(change => { try { globalSettings = mergeSettings(change.settings.perlcritic); } catch (error) {
@@ -116,7 +117,7 @@ function validateExecutable(executable: string): string { return which.sync(executable); } catch (error) {
Getting server crashing, output: