diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2020-12-29 02:30:36 +0100 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2020-12-29 02:30:36 +0100 |
commit | dcf1431dd2d469fae869204eec91882e6ab1c381 (patch) | |
tree | 77d80b2249130d786d4ffae3eeb2801e1bc2df75 /pyGHDL/cli | |
parent | dca7ba9dfec9bfbb59204b79ce6b0ff355b2ce7e (diff) | |
download | ghdl-dcf1431dd2d469fae869204eec91882e6ab1c381.tar.gz ghdl-dcf1431dd2d469fae869204eec91882e6ab1c381.tar.bz2 ghdl-dcf1431dd2d469fae869204eec91882e6ab1c381.zip |
Fixed language server.
Diffstat (limited to 'pyGHDL/cli')
-rw-r--r-- | pyGHDL/cli/ghdl-ls | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pyGHDL/cli/ghdl-ls b/pyGHDL/cli/ghdl-ls index 74a10fd87..33949fa67 100644 --- a/pyGHDL/cli/ghdl-ls +++ b/pyGHDL/cli/ghdl-ls @@ -7,10 +7,10 @@ import sys import os import pyGHDL.libghdl as libghdl - -from . import version -from . import lsp -from . import vhdl_ls +from pyGHDL.libghdl import version, errorout_console +from pyGHDL.lsp import LSPConnTrace +from pyGHDL.lsp.lsp import LSPConn, LanguageProtocolServer +from pyGHDL.lsp.vhdl_ls import VhdlLanguageServer logger = logging.getLogger("ghdl-ls") @@ -46,7 +46,7 @@ def main(): args = parser.parse_args() if args.disp_config: - libghdl.errorout_console.Install_Handler() + errorout_console.Install_Handler() libghdl.disp_config() return @@ -81,7 +81,7 @@ def main(): if args.input is not None: instream = open(args.input, "rb") - conn = lsp.LSPConn(instream, sys.stdout.buffer) + conn = LSPConn(instream, sys.stdout.buffer) trace_file = args.trace_file if trace_file is None: @@ -94,10 +94,10 @@ def main(): else: logger.info("Traces disabled when -i/--input") - handler = vhdl_ls.VhdlLanguageServer() + handler = VhdlLanguageServer() try: - server = lsp.LanguageProtocolServer(handler, conn) + server = LanguageProtocolServer(handler, conn) server.run() except Exception: logger.exception("Uncaught error") |