Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-41220

Code block Macro 2.2.4 is not working(expanding) in Confluence 5.8.18

      Summary

      Code block macro v. 2.2.4 is not working if the "collapsible" option is enabled.

      Environment

      • Tested only in Confluence 5.8.18
      • Code macro 2.2.4

      Steps to Reproduce

      1. Start Confluence 5.8.18
      2. Manually download the Code Macro 2.2.4.
      3. Manually upload the add-on.
      4. The add-on will be updated.
      5. If the "collapsible" option is "checked"(enabled), the macro won't work. The "expand source" link won't appear.

      Expected Results

      The macro will expand/collapse properly.

      Actual Results

      The "expand source" link is not appearing and you can't expand the content.

      Notes

      Only tested at the moment in Conf 5.8.18
      The macro(2.2.4) is working properly on Confluence 5.10

      Workaround

      1. Downgrade manually the add-on.
        or
      2. Delete the plugin from the plugindata table to return to the bundled version(2.1.7).
        delete from plugindata where pluginkey = 'com.atlassian.confluence.ext.newcode-macro-plugin'
        

            [CONFSERVER-41220] Code block Macro 2.2.4 is not working(expanding) in Confluence 5.8.18

            Arthur Lee added a comment - - edited

            I don't know if it's coincidence, but for myself, I've found that changing the theme for the code macro to Eclipse seems to work pretty consistently. All the other ones aren't reliable. RDark also seems to work but it's too dark for me.

            Update: It was coincidental that the settings above worked; it wasn't consistently working. However, I did find that, at least for me, the problem was a conflict with another plugin called Team Files. After uninstalling that plugin, all was fine again (code macro could collapse and expand without problems).

            https://marketplace.atlassian.com/apps/1216862/team-files-office-365-google-docs?hosting=cloud&tab=overview

            Arthur Lee added a comment - - edited I don't know if it's coincidence, but for myself, I've found that changing the theme for the code macro to Eclipse seems to work pretty consistently. All the other ones aren't reliable. RDark also seems to work but it's too dark for me. Update: It was coincidental that the settings above worked; it wasn't consistently working. However, I did find that, at least for me, the problem was a conflict with another plugin called Team Files. After uninstalling that plugin, all was fine again (code macro could collapse and expand without problems). https://marketplace.atlassian.com/apps/1216862/team-files-office-365-google-docs?hosting=cloud&tab=overview

            Jeany added a comment -

            We also have the problem, that the code block cannot be expanded after a while. The Link appears, but nothing happens when we click on it. (Right after inserting the macro it works, but if there are more changes on the page
            We use
            Confluence 6.6.16
            Code Macro Plugin 2.2.12

            Jeany added a comment - We also have the problem, that the code block cannot be expanded after a while. The Link appears, but nothing happens when we click on it. (Right after inserting the macro it works, but if there are more changes on the page We use Confluence 6.6.16 Code Macro Plugin 2.2.12

            NOTE : The macro (sort of) works in 6.13.4 (Enterprise version) but if you put the code block macro with expansion enabled INSIDE a regular expand macro then when you expand the code block it'll collapse the outer expand block so it "disappears" if you follow my meaning.

            Like :

            ExpandMacro : {
                   CodeBlock :

            {        }

            }

             

            Matthew Page added a comment - NOTE : The macro (sort of) works in 6.13.4 (Enterprise version) but if you put the code block macro with expansion enabled INSIDE a regular expand macro then when you expand the code block it'll collapse the outer expand block so it "disappears" if you follow my meaning. Like : ExpandMacro : {        CodeBlock : {        } }  

            pauwel_rummens769077195 added a comment -

            issue also present in 6.0.5...

            pauwel_rummens769077195 added a comment - issue also present in 6.0.5...

            We use Code block extensively in our documentation, sometimes with many in one page. Our standard is for any code longer than 10 lines the user MUST collapse the code block otherwise the page gets to be too long for the customer reading it.

            This is a major issue for us.

            Dana Jansen added a comment - We use Code block extensively in our documentation, sometimes with many in one page. Our standard is for any code longer than 10 lines the user MUST collapse the code block otherwise the page gets to be too long for the customer reading it. This is a major issue for us.

              Unassigned Unassigned
              gviana Guilherme V. (Inactive)
              Affected customers:
              11 This affects my team
              Watchers:
              13 Start watching this issue

                Created:
                Updated: