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

Custom language pack for Code Block Macro stopped working in 5.9.x

      After upgrading to 5.9.x, custom language pack used for Code Block Macro has stopped working

      Steps to Reproduce

      1. Upload custom language pack: abaphighlighter into your Confluence Admin > Configure Code Macro: Add a new language.
      2. Optional: Set your Confluence Default Language to the custom language pack.
      3. On a Page, insert Code Block Macro with the following parameters:

      • Syntax Highlighting: abaphighlighter
      • Theme: FadeToGrey

      4. Click on Save to insert the Code Block Macro into the Page.
      5. Put in a Sample Code (refer to Testing Notes)

      Expected Result:

      • Code Block Macro should show the correct Theme and Syntax Highlighting as per the custom language pack

      Actual Result:

      • Code Block Macro showing no Theme and no custom Syntax Highlighting as per the custom language pack

      Additional Notes:

      • Screenshots attached for Testing Results
      • Custom Language pack attached

      WorkAround

      Manually downgrade the Code Block Macro plugin to version 2.1.7.

      To downgrade the add-on, do the following:

      1. Stop Confluence.
      2. Locate the existing .jar files (newcode-macro-plugin-XXX.jar) in <confluence-install>/confluence/WEB-INF/atlassian-bundled-plugins/. Move the file to a different location to create a backup copy.
      3. Place the attached, newcode-macro-plugin-2.1.7.jar , into the atlassian-bundled-plugins directory.
      4. Locate the existing transformed .jar (newcode-macro-plugin-XXX_XXX) in <confluence-install>/plugins-osgi-cache/transformed-plugins/.Delete the file.
      5. Start Confluence.

      As with all recommendations, we strongly suggest testing this in a test environment prior to implementing in Production. If this causes other issues in your instance, you will be asked to switch back to the original version of the .jar.

          Form Name

            [CONFSERVER-40325] Custom language pack for Code Block Macro stopped working in 5.9.x

            David Perez added a comment - - edited

            Similar issues happening with Version 7.4.3 and Verilog brush, however, it is intermittent.  End user showed me how it will take time for highlighting to appear and sometimes will display the error dialog.  

            David Perez added a comment - - edited Similar issues happening with Version 7.4.3 and Verilog brush, however, it is intermittent.  End user showed me how it will take time for highlighting to appear and sometimes will display the error dialog.  

            I just got this 25 times in a row on confluence cloud. Can't find brush for java. I reloaded the page and the error did not happen again.

             

             

            Charlie Hayes added a comment - I just got this 25 times in a row on confluence cloud. Can't find brush for java. I reloaded the page and the error did not happen again.    

            Hello,

            I have the same problem on version 6.11.2

            Best regards,

            Jonathan

            xinmiao xiao added a comment - Hello, I have the same problem on version 6.11.2 Best regards, Jonathan

            Hi jonathan.maas, as Minh indicated in the comment before yours, please raise a support case so they can help troubleshoot to validate your claim.

            Adam Barnes (Inactive) added a comment - Hi jonathan.maas , as Minh indicated in the comment before yours, please raise a support case so they can help troubleshoot to validate your claim.

            Hello,

            I have the same problem on version 6.2.4

            Best regards,

            Jonathan

            Jonathan Maas added a comment - Hello, I have the same problem on version 6.2.4 Best regards, Jonathan

            Minh Tran added a comment - - edited

            Dear graham.campbell1859398517,

            Yes, the fix for this bug is in 5.9.14 and 5.10.3
            That means later versions > 5.10.3 will also include the fix
            If you are experiencing this issue in 6.0.x please comment here with details or contact support at https://support.atlassian.com?

            Best regards,
            Minh Tran
            Confluence BugMaster
            Atlassian

            Minh Tran added a comment - - edited Dear graham.campbell1859398517 , Yes, the fix for this bug is in 5.9.14 and 5.10.3 That means later versions > 5.10.3 will also include the fix If you are experiencing this issue in 6.0.x please comment here with details or contact support at https://support.atlassian.com ? Best regards, Minh Tran Confluence BugMaster Atlassian

            So now we're on 6.0.5, is there a server fix coming for these versions? There's absolutely no way we're gonna downgrade to a lower version specifically for this one fix.

            Graham Campbell added a comment - So now we're on 6.0.5, is there a server fix coming for these versions? There's absolutely no way we're gonna downgrade to a lower version specifically for this one fix.

            Minh Tran added a comment -

            Dear All,

            The fix versions are 5.10.3 or 5.9.14. Those are server versions. Please upgrade to these versions to have the fix

            Best Regards,
            Minh Tran
            Confluence BugMaster

            Minh Tran added a comment - Dear All, The fix versions are 5.10.3 or 5.9.14. Those are server versions. Please upgrade to these versions to have the fix Best Regards, Minh Tran Confluence BugMaster

            Production Environment Confluence 5.8.18 - Code Block 2.1.7

            Installed the attached js to enable highlight in code block between <>

            Works fine.

            Installed the attached js in another confluence @ 5.7.5 - Code Block 2.2.1

            Highlights BUT a semi-colon is added after the >

            Upgraded 5.8.18 to 5.9.7 in a test environment - Code block 2.2.5

            Does not highlight at all and adds a semi-colon after the >

            Upgraded test environment from 5.9.7 to 5.9.14 - Code block 2.2.1

            Does not highlight at all and adds a semi-colon after the >

            Downgraded Code Block to 2.1.7

            Does not highlight at all and adds a semi-colon after the >

            highlight-orig.js

             

            Dana Jansen added a comment - Production Environment Confluence 5.8.18 - Code Block 2.1.7 Installed the attached js to enable highlight in code block between <> Works fine. Installed the attached js in another confluence @ 5.7.5 - Code Block 2.2.1 Highlights BUT a semi-colon is added after the > Upgraded 5.8.18 to 5.9.7 in a test environment - Code block 2.2.5 Does not highlight at all and adds a semi-colon after the > Upgraded test environment from 5.9.7 to 5.9.14 - Code block 2.2.1 Does not highlight at all and adds a semi-colon after the > Downgraded Code Block to 2.1.7 Does not highlight at all and adds a semi-colon after the > highlight-orig.js  

            That's fair enough, though I assume you meant 5.10.3 and not 5.3.10?

            Also, it's worth noting the Fix Version/s list isn't visible on Mobile.

            Graham Campbell added a comment - That's fair enough, though I assume you meant 5.10.3 and not 5.3.10? Also, it's worth noting the Fix Version/s list isn't visible on Mobile.

              jmcarthur James McArthur (Inactive)
              rbenedict Ryan Benedict (Inactive)
              Affected customers:
              19 This affects my team
              Watchers:
              34 Start watching this issue

                Created:
                Updated:
                Resolved: