Skip to content

Commit 4d646c8

Browse files
committed
Forward pyls stderr to frontend
This adds a warning in the UI and should make debugging easier if something unexpected happens in `pyls`.
1 parent 4184a4a commit 4d646c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ class PythonLanguageClient extends AutoLanguageClient {
102102
);
103103
}
104104
});
105+
106+
childProcess.stderr.on("data", data => {
107+
atom.notifications.addWarning("Python language server", {
108+
description: `${data}`
109+
});
110+
});
105111
return childProcess;
106112
}
107113

0 commit comments

Comments
 (0)