-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display lsp diagnostics in console #1406
Display lsp diagnostics in console #1406
Conversation
…-lsp * bump-max-args: bump max args
…ultiplexer/refactor-transpile-error * feature/multiplexer/transpile-using-lsp: fix typo add docs bump max args
…ure/multiplexer/display-lsp-diagnostics-in-console * feature/multiplexer/refactor-transpile-error: fix typo add docs bump max args
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
…in-console * main: Refactor transpile error for LSP (#1405) Rename mock (#1423) Update databricks-sdk requirement from ~=0.29.0 to >=0.29,<0.42 (#1422) Transpile using LSP (#1404) Bump sqlglot from 26.0.1 to 26.1.3 (#1416) Configure transpile errors file (#1408) restore lost file and fix gitignore that led to that loss (#1414) bump max args (#1410) # Conflicts: # src/databricks/labs/remorph/transpiler/execute.py # src/databricks/labs/remorph/transpiler/lsp/lsp_engine.py # src/databricks/labs/remorph/transpiler/sqlglot/sqlglot_engine.py # src/databricks/labs/remorph/transpiler/transpile_engine.py # tests/resources/lsp_transpiler/lsp_server.py # tests/unit/transpiler/test_lsp_engine.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
status = do_transpile(ctx.workspace_client, engine, config) | ||
for error in errors: | ||
print(str(error)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print(str(error)) | |
can we use logger instead when run in cli only stderr is redirected to console. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nit
* main: Display lsp diagnostics in console (#1406) Refactor transpile error for LSP (#1405) Rename mock (#1423) Update databricks-sdk requirement from ~=0.29.0 to >=0.29,<0.42 (#1422) Transpile using LSP (#1404) Bump sqlglot from 26.0.1 to 26.1.3 (#1416) Configure transpile errors file (#1408) restore lost file and fix gitignore that led to that loss (#1414) bump max args (#1410) # Conflicts: # README.md # labs.yml # src/databricks/labs/remorph/cli.py # src/databricks/labs/remorph/config.py # src/databricks/labs/remorph/install.py # src/databricks/labs/remorph/transpiler/execute.py # src/databricks/labs/remorph/transpiler/lsp/lsp_engine.py # tests/unit/test_cli_transpile.py # tests/unit/test_install.py # tests/unit/transpiler/test_execute.py # tests/unit/transpiler/test_lsp_engine.py
Our current implementation ignores LSP diagnostics.
Also it stores transpile errors in the target directory, but does not display them in the console.
This PR:
TranspileErrors
Fixes #1301
Supersedes #1385