[gnome-builder/wip/chergert/langserv] rust-langserv: don't clear process environment
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/langserv] rust-langserv: don't clear process environment
- Date: Mon, 24 Oct 2016 09:32:24 +0000 (UTC)
commit f41ee81cf9c87f784635a11eb99eb8dc54557611
Author: Christian Hergert <chergert redhat com>
Date: Mon Oct 24 02:32:09 2016 -0700
rust-langserv: don't clear process environment
Turns out rls needs the parent environment for whatever reasons.
plugins/rust-langserv/rust_langserv_plugin.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/rust-langserv/rust_langserv_plugin.py b/plugins/rust-langserv/rust_langserv_plugin.py
index b571398..0872e51 100644
--- a/plugins/rust-langserv/rust_langserv_plugin.py
+++ b/plugins/rust-langserv/rust_langserv_plugin.py
@@ -57,6 +57,7 @@ class RustService(Ide.Object, Ide.Service):
"""
# Setup a launcher to spawn the rust language server
launcher = self._create_launcher()
+ launcher.set_clear_env(False)
launcher.setenv("SYS_ROOT", self._discover_sysroot(), True)
# If rls was installed with Cargo, try to discover that
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]