Wed, 05 Oct 2022 09:39:15 +0200
Some minor corrections.
--- a/src/eric7/JediInterface/AssistantJedi.py Tue Oct 04 16:14:57 2022 +0200 +++ b/src/eric7/JediInterface/AssistantJedi.py Wed Oct 05 09:39:15 2022 +0200 @@ -73,6 +73,7 @@ "Pygments|Python", "Pygments|Python 2.x", "Cython", + "Pygments|Cython", ] def __editorOpened(self, editor):
--- a/src/eric7/JediInterface/JediClient.py Tue Oct 04 16:14:57 2022 +0200 +++ b/src/eric7/JediInterface/JediClient.py Wed Oct 05 09:39:15 2022 +0200 @@ -114,6 +114,8 @@ if self.__project is not None: self.__project.save() + self.__project = None + def __completionType(self, completion): """ Private method to assemble the completion type depending on the
--- a/src/eric7/Project/ProjectFormsBrowser.py Tue Oct 04 16:14:57 2022 +0200 +++ b/src/eric7/Project/ProjectFormsBrowser.py Wed Oct 05 09:39:15 2022 +0200 @@ -909,14 +909,14 @@ sys.path.insert(0, self.project.getProjectPath()) cwd = os.getcwd() os.chdir(os.path.dirname(os.path.abspath(fn))) - - dlg = CreateDialogCodeDialog(fn, self.project, self) - if not dlg.initError(): - dlg.exec() - - # reset the environment - os.chdir(cwd) - del sys.path[0] + try: + dlg = CreateDialogCodeDialog(fn, self.project, self) + if not dlg.initError(): + dlg.exec() + finally: + # reset the environment + os.chdir(cwd) + del sys.path[0] def __compileForm(self): """