Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53200

Pipeline Replay Editor Displays Offset Cursor

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • workflow-cps-plugin
    • None

      On the pipeline replay editor, the cursor displays on an offset location to the right of where the texts are actually written. This makes editing difficult when using the replay function on multibranch to troubleshoot or test Jenkinsfile fixes.

       

      Jenkins v.2.121.3

          [JENKINS-53200] Pipeline Replay Editor Displays Offset Cursor

          Tony Hoyle added a comment -

          This makes the replay functionality rather useless in fact, because it's basically impossible to know which part of the line you're editing.  Surprised this isn't a more common problem but maybe most people don't use it?

           

          Tony Hoyle added a comment - This makes the replay functionality rather useless in fact, because it's basically impossible to know which part of the line you're editing.  Surprised this isn't a more common problem but maybe most people don't use it?  

          It is broken and useless indeed. I just cut the code from the replay text box and paste it to an external editor, make the changes and paste it back.

          Anvar Sosnitski added a comment - It is broken and useless indeed. I just cut the code from the replay text box and paste it to an external editor, make the changes and paste it back.

          Juan Caballero added a comment - - edited

          We are observing this too. It is not happening only with "Replay" option, from the "Configure - Pipeline" section, the same behaviour can be observed.

          We updated to v2.263.3 Jenkins core version last week. Also, a bunch of plugins got updated. The: workflow-cps plugin got updated from 2.82 to 2.87.

          It seems this depends on the browser: I can see the error with Chrome and Microsoft Edge, but with Internet Explorer, the behaviour is ok.

          Shouldn't this issue have a higher priority?

           

          Juan Caballero added a comment - - edited We are observing this too. It is not happening only with "Replay" option, from the  "Configure - Pipeline" section, the same behaviour can be observed. We updated to v2.263.3 Jenkins core version last week. Also, a bunch of plugins got updated. The: workflow-cps plugin got updated from 2.82 to 2.87. It seems this depends on the browser: I can see the error with Chrome and Microsoft Edge, but with Internet Explorer, the behaviour is ok. Shouldn't this issue have a higher priority?  

          Brian Saville added a comment -

          If you are using the material-theme from afonsof, you might want to checkout https://github.com/afonsof/jenkins-material-theme/issues/182. The custom font-family is what is doing this (at least for us).

          Brian Saville added a comment - If you are using the material-theme from afonsof, you might want to checkout https://github.com/afonsof/jenkins-material-theme/issues/182 . The custom font-family is what is doing this (at least for us).

          Thanks, bksaville, we are using Simple Theme Plugin which seems to use meterial-theme from afonsof internally.

          In any case, as the issue is exactly the same, I think it is worth to try to remove the culprit font mentioned in your link.

          Where should we remove the font? In the Jenkins master? I found it under the userContent folder, but not under plugins folder.

           

          Juan Caballero added a comment - Thanks, bksaville , we are using Simple Theme Plugin  which seems to use meterial-theme from afonsof internally. In any case, as the issue is exactly the same, I think it is worth to try to remove the culprit font mentioned in your link. Where should we remove the font? In the Jenkins master? I found it under the  userContent folder, but not under plugins folder.  

          Brian Saville added a comment -

          juanjecaballero, yes, that is exactly what we use as well. There is no way to remove the font that we can find except for modifying the CSS from afonsof since it loads it from there. You could grab the CSS, modify it, then host it somewhere where your Jenkins can access it. Currently we are pursuing a method of forking the repository (since it appears abandoned) and then making the modifications. I'll let you know if it ends up hosted somewhere public, not sure.

          Brian Saville added a comment - juanjecaballero , yes, that is exactly what we use as well. There is no way to remove the font that we can find except for modifying the CSS from afonsof since it loads it from there. You could grab the CSS, modify it, then host it somewhere where your Jenkins can access it. Currently we are pursuing a method of forking the repository (since it appears abandoned) and then making the modifications. I'll let you know if it ends up hosted somewhere public, not sure.

          Sergey added a comment -

          zuluetar, I am faced with the same problem. My solution is dirty, but it worked for me. 
          I use Bookmarklet: 

          javascript:jQuery('body').append('<style>:not(div.ace_editor){font-family:monospace!important;outline:0}</style>')

          Sergey added a comment - zuluetar , I am faced with the same problem. My solution is dirty, but it worked for me.  I use Bookmarklet:  javascript:jQuery( 'body' ).append( '<style>:not(div.ace_editor){font-family:monospace!important;outline:0}</style>' )

            Unassigned Unassigned
            zuluetar Randy Zulueta
            Votes:
            9 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: