Uploaded image for project: 'Maven Doxia Tools'
  1. Maven Doxia Tools
  2. DOXIATOOLS-46

Workspace indisposed after file rename

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • None
    • None
    • Doxia Eclipse Editor
    • None
    • Eclipse Kepler 4.3.2
      Doxia Editors Feature 1.0.0.201301041016
    • Patch

    Description

      Synthesis : When a file opened by plugin is renamed, plugin is indisposed and crash the workspace (because try to reopen it after Eclipse kill/restart).

      Use Case :

      1. Create a workspace and a project Test
      2. Create file index.apt with a title (the file is opened by plugin)
      3. Rename file (F2 key) : index2.apt
      4. Error appears : Resource '/Test/index.apt' does not exist.
      5. Informations :
      • File is renamed (on filesystem)
      • Sheet title of plugin is index2.apt but on mouse over shows index.apt
      • The sheet is not closable
      • Eclipse must be killed
      • Error Unhandled event loop exception appears in log

      Root cause hypothesis : Infinite loop in org.apache.maven.doxia.ide.eclipse.common.ui.editors.AbstractMultiPageEditorPart.isSaveAsAllowed(AbstractMultiPageEditorPart.java:231) (cf. loop.log)

      Workaround : Recreate the file ... because plugin try to open renamed file during start => same error below.

      Attachments

        1. DOXIATOOLS-46-doxia-ide.patch
          1 kB
          Alix Lourme
        2. loop.log
          82 kB
          Alix Lourme

        Activity

          People

            Unassigned Unassigned
            axel3rd Alix Lourme
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: