Skip to content
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

[PATCH] KeyError bug fixed in rebuildProject(). #70

Closed
nicdes opened this issue Nov 27, 2019 · 0 comments
Closed

[PATCH] KeyError bug fixed in rebuildProject(). #70

nicdes opened this issue Nov 27, 2019 · 0 comments

Comments

@nicdes
Copy link

nicdes commented Nov 27, 2019

The dict servers has Path objects as key, not the project_file.


hdl_checker/handlers.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hdl_checker/handlers.py b/hdl_checker/handlers.py
index 9b363e1..a86fd86 100644
--- a/hdl_checker/handlers.py
+++ b/hdl_checker/handlers.py
@@ -236,7 +236,8 @@ def rebuildProject():
server = _getServerByProjectFile(project_file)
server.clean()
_logger.debug("Removing and recreating server object")

  • del servers[project_file]
  • root_dir = Path(p.dirname(project_file))
  • del servers[root_dir]
    _getServerByProjectFile(project_file)

--
2.24.0

@suoto suoto closed this as completed in 9002401 Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant