From 1c50cc7798d9b9c55ea8bfcd2bd44fdb5c255b9e Mon Sep 17 00:00:00 2001 From: Helio Guilherme Date: Sat, 23 Sep 2023 13:18:37 +0100 Subject: [PATCH] Fix disappearing of resource files from Project tree --- CHANGELOG.adoc | 1 + src/robotide/application/CHANGELOG.html | 5 ++++- src/robotide/application/releasenotes.py | 3 ++- src/robotide/ui/treeplugin.py | 5 +++++ src/robotide/version.py | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index bc940b148..f447232b6 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -18,6 +18,7 @@ and this project adheres to http://semver.org/spec/v2.0.0.html[Semantic Versioni === Fixed +- Fixed resource files dissapearing from Project tree on Windows - Fixed missing indication of link for User Keyword, when pressing ``Ctrl`` in Grid Editor - Fixed exception when finding GREY color for excluded files and directories in Project Tree - Colorization of Grid Editor cells after the continuation marker ``...`` and correct parsing of those lines diff --git a/src/robotide/application/CHANGELOG.html b/src/robotide/application/CHANGELOG.html index d4288e53c..30625c483 100644 --- a/src/robotide/application/CHANGELOG.html +++ b/src/robotide/application/CHANGELOG.html @@ -11,7 +11,10 @@
  • Added support for JSON variables, by using the installed Robot Framework import method
  • 1.2. Fixed

      -
    • Fixed missing indication of link for User Keyword, when pressing ``Ctrl`` in Grid Editor
    • +
    • Fixed resource files dissapearing from Project tree on Windows +
    • +Fixed missing indication of link for User Keyword, when pressing ``Ctrl`` in Grid Editor +
    • Fixed exception when finding GREY color for excluded files and directories in Project Tree
    • Colorization of Grid Editor cells after the continuation marker ``…`` and correct parsing of those lines diff --git a/src/robotide/application/releasenotes.py b/src/robotide/application/releasenotes.py index aa986797a..6a335d87a 100644 --- a/src/robotide/application/releasenotes.py +++ b/src/robotide/application/releasenotes.py @@ -168,6 +168,7 @@ def set_content(self, html_win, content):

    New Features and Fixes Highlights

      +
    • Fixed resource files dissapearing from Project tree on Windows
    • Fixed missing indication of link for User Keyword, when pressing Ctrl in Grid Editor
    • Added content help pop-up on Text Editor by pressing Ctrl for text at cursor position or selected autocomplete list item
    • Added Exclude option in context nenu for Test files, previously was only possible for Test Suites folders
    • @@ -238,6 +239,6 @@ def set_content(self, html_win, content):
       python -m robotide.postinstall -install
       
      -

      RIDE {VERSION} was released on 20/Sep/2023.

      +

      RIDE {VERSION} was released on 23/Sep/2023.

    """ diff --git a/src/robotide/ui/treeplugin.py b/src/robotide/ui/treeplugin.py index cc40e62be..5c929768c 100644 --- a/src/robotide/ui/treeplugin.py +++ b/src/robotide/ui/treeplugin.py @@ -534,8 +534,12 @@ def _create_node_with_handler(self, parent_node, controller, index=None): if controller.display_name.startswith("#"): # If it is a comment don't create return None + # DEBUG: Why do we need this? This block caused resources to disappear from tree + """ if IS_WINDOWS and isinstance(controller, ResourceFileController): resourcefile = self._normalize(controller.filename) + # print(f"DEBUG: Tree _create_node_with_handler removed condition on WINDOWS for Resources file={resourcefile}") + pname = parent_node.GetText() self._resources.append((pname, resourcefile)) if IS_WINDOWS: @@ -545,6 +549,7 @@ def _create_node_with_handler(self, parent_node, controller, index=None): count += 1 if count > 3: return None + """ handler_class = action_handler_class(controller) with_checkbox = (handler_class == TestCaseHandler and self._checkboxes_for_tests) node = self._create_node(parent_node, controller.display_name, self._images[controller], diff --git a/src/robotide/version.py b/src/robotide/version.py index ba16c9b85..934ca31f5 100644 --- a/src/robotide/version.py +++ b/src/robotide/version.py @@ -14,4 +14,4 @@ # limitations under the License. # # Automatically generated by `tasks.py`. -VERSION = 'v2.0.8dev13' +VERSION = 'v2.0.8dev14'