[gnome-builder] gopls: locate gopls optionally in ~/go/bin



commit 023a866e717688625c5c96ff8c40659c0710a2a9
Author: Christian Hergert <chergert redhat com>
Date:   Tue Dec 21 16:57:20 2021 -0800

    gopls: locate gopls optionally in ~/go/bin
    
    This is one of the bits of fallout from the port to IdeLspService.

 src/plugins/go-langserv/go_langserver_plugin.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/plugins/go-langserv/go_langserver_plugin.py b/src/plugins/go-langserv/go_langserver_plugin.py
index 300823e0c..a473e3838 100644
--- a/src/plugins/go-langserv/go_langserver_plugin.py
+++ b/src/plugins/go-langserv/go_langserver_plugin.py
@@ -15,6 +15,8 @@ class GoService(Ide.LspService):
     def __init__(self, *args, **kwargs):
         super().__init__(*args, **kwargs)
         self.set_program('gopls')
+        self.set_inherit_stderr(DEV_MODE)
+        self.set_search_path([os.path.expanduser("~/go/bin")])
 
     def do_configure_launcher(self, pipeline, launcher):
         if DEV_MODE:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]