A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
improve copilot debug log when starting lsp (#225)
Akshay Agrawalce26bb9ae212
diff --git a/marimo/__init__.py b/marimo/__init__.pyindex 7cd1ef1567..66a52ea8fe 100644--- a/marimo/__init__.py+++ b/marimo/__init__.py@@ -48,7 +48,7 @@ __all__ = ["ui","vstack",]-__version__ = "0.1.32"+__version__ = "0.1.33"from marimo._ast.app import Appfrom marimo._output.doc import docdiff --git a/marimo/_server/api/save_user_config.py b/marimo/_server/api/save_user_config.pyindex 732cac8cad..d2a3aa9a9a 100644--- a/marimo/_server/api/save_user_config.py+++ b/marimo/_server/api/save_user_config.py@@ -70,8 +70,8 @@ class SaveUserConfigurationHandler(tornado.web.RequestHandler):# Update the server's view of the configconfig = configure(args.config)- LOGGER.debug("Starting copilot server")if config["completion"]["copilot"]:+ LOGGER.debug("Starting copilot server")sessions.get_manager().start_lsp_server()# Update the kernel's view of the configsession.queue.put(requests.ConfigurationRequest(str(args.config)))diff --git a/marimo/_server/sessions.py b/marimo/_server/sessions.pyindex ccba481a6e..4cc65f7dd7 100644--- a/marimo/_server/sessions.py+++ b/marimo/_server/sessions.py@@ -473,12 +473,17 @@ class SessionManager:"index.js",)cmd = f"node {lsp_bin} --port {self.lsp_port}"+ LOGGER.debug("... running command: %s", cmd)self.lsp_process = subprocess.Popen(cmd.split(),stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL,stdin=subprocess.DEVNULL,)+ LOGGER.debug(+ "... node process return code (`None` means success): %s",+ self.lsp_process.returncode,+ )LOGGER.debug("Started LSP server at port %s", self.lsp_port)except Exception as e:LOGGER.error(