Skip to content

Commit

Permalink
Merge pull request #47 from kedro-org/noklam/patch-before-0.1.0.release
Browse files Browse the repository at this point in the history
Catch a bug when config is empty
  • Loading branch information
noklam authored Jul 5, 2024
2 parents 60ba9fd + 9c387e0 commit a36e4a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- Add new command `kedro: Select Environment` to change the configuration environment.
- `Go to Definition` now search `default_run_env` first.
- Add Kedro Icon and Status bar to select environment.

- Fix a bug that cause server panic when config is empty.

# 0.0.3
- Add catalog config preview for mouse hover.
Expand Down
3 changes: 2 additions & 1 deletion bundled/tool/lsp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,8 @@ def definition(
for catalog_path in catalog_paths:
log_for_lsp_debug(f" {catalog_path=}")
catalog_conf = yaml.load(catalog_path.read_text(), Loader=SafeLineLoader)

if not catalog_conf:
continue
if word in catalog_conf:
line = catalog_conf[word]["__line__"]
location = Location(
Expand Down

0 comments on commit a36e4a2

Please sign in to comment.