Bug report: "Cannot delete beginning or end of segment" error message

Hello,

I am working on an update of a project we translated some time ago where there are a lot of strings whose only change is the addition of a colon at the end.

I've tried to perform a quick find and replace with replace with RegEx as follows:

Search: ^(.+)$

Replace: $1:

Yet, Studio does not seem to like that, since every time I try I get an error message stating that I cannot delete beginning/ending of a segment. I've tried using only (.+) in search field, but still it does not work. I honestly think this is a bug, since I remember performing a similar search and replace operation for strings with missing trailing whitespaces (replacing ^(.+[^\s])$ with $1 ) and it does not seem to work now, either.

Could anyone advise about a workaround? I know that the "fuzzy match repair" feature should work this out, but our TM is a GS one and GS server TMs do not support this feature. And I know I could easily create a local TM from GS TM export for that purpose, but I think it would even take me longer than adding all these colons manually.

My Studio version is 2017 SR1 - 14.1.6329.7 (the latest so far I think).

In case it helps, see bellow error details:

 

<SDLErrorDetails time="04/10/2017 12:00:01">
  <ErrorMessage>No se puede eliminar el principio/final de segmento.</ErrorMessage>
  <Exception>
    <Type>Sdl.DesktopEditor.EditorApi.EditException, Sdl.DesktopEditor.EditorApi, Version=3.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
    <HelpLink />
    <Source>Sdl.DesktopEditor.Control</Source>
    <HResult>-2146233088</HResult>
    <StackTrace><![CDATA[   en AbstractFrameworkDocument.Replace(IDocumentFragment newContent)
   en Sdl.TranslationStudio.Common.FindAndReplace.AbstractFindAndReplaceProvider.dialogReplaceInvoked(Object sender, ReplaceEventArgs e)
   en Sdl.TranslationStudio.Common.FindAndReplace.ReplaceControl.replaceButton_Click(Object sender, EventArgs e)
   en System.Windows.Forms.Control.OnClick(EventArgs e)
   en System.Windows.Forms.Button.OnClick(EventArgs e)
   en System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   en System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   en System.Windows.Forms.Control.WndProc(Message& m)
   en System.Windows.Forms.ButtonBase.WndProc(Message& m)
   en System.Windows.Forms.Button.WndProc(Message& m)
   en System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   en System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)]]></StackTrace>
  </Exception>

 

 

Thank you in advance for your help.

Best regards,

Parents
  • Hi  

    I think this is a bug and I'm sure this is already on the list for development to resolve.  You can use the SDLXLIFF Toolkit to fix this though.  The problem used to appear with this tool as well, but we fixed it with the appstore team so it's a good alternative I think.  I created a short video here in case you don't know who to use this tool which you can find in the AppStore:

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

  • Hi Paul,

    Many thanks for your answer! I should have tried with the SDLXLIFF Toolkit. As a matter of fact, this a tool I use regularly, but mostly for the purposes of changing states and splitting/merging files. I did not think it would work with this app.

    BTW, speaking of the SDLXLIFF Toolkit, you mention an update of this add-on and I was wondering if the Automatic Updates feature also works with add-ons or if we should visit the SDL AppStore from time to time to see the newest updates on installed apps (any available change log of SDL-developed apps?). It has been a while since I installed this app (as well as Apply Studio Project Template) and perhaps I am not using the latest versions, but I do not know where to check it. Could you please confirm?

    Thank you in advance.

    Best,
  • Hi  

    Unknown said:
    I was wondering if the Automatic Updates feature also works with add-ons or if we should visit the SDL AppStore from time to time to see the newest updates

    At the moment they do not.  We do have plans to integrate the AppStore into the product in a better way so that you are notified when an app you have installed has been updated, and so it's easier to manage your app experience in Studio.  The introduction of the logging into Studio feature is one of the stepping stones towards that capability.

    Unknown said:
    It has been a while since I installed this app (as well as Apply Studio Project Template) and perhaps I am not using the latest versions, but I do not know where to check it.

    The way to check it is to see what version you have installed in Studio through the plugin manager which you can find in your Welcome View here:

    Then when you open it look for the version:

    When you download the apps from the appstore you may see the version history in the app description... although this depends on the developer and whether they added this info there or not.  In this case I can see this in the description:

    Otherwise, and a more reliable way, click on download and look at the available versions:

    It will be a better experience when we do the work to properly integrate the AppStore into Studio.

    Regards

    Paul 

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Reply
  • Hi  

    Unknown said:
    I was wondering if the Automatic Updates feature also works with add-ons or if we should visit the SDL AppStore from time to time to see the newest updates

    At the moment they do not.  We do have plans to integrate the AppStore into the product in a better way so that you are notified when an app you have installed has been updated, and so it's easier to manage your app experience in Studio.  The introduction of the logging into Studio feature is one of the stepping stones towards that capability.

    Unknown said:
    It has been a while since I installed this app (as well as Apply Studio Project Template) and perhaps I am not using the latest versions, but I do not know where to check it.

    The way to check it is to see what version you have installed in Studio through the plugin manager which you can find in your Welcome View here:

    Then when you open it look for the version:

    When you download the apps from the appstore you may see the version history in the app description... although this depends on the developer and whether they added this info there or not.  In this case I can see this in the description:

    Otherwise, and a more reliable way, click on download and look at the available versions:

    It will be a better experience when we do the work to properly integrate the AppStore into Studio.

    Regards

    Paul 

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Children
  • Thank you for your detailed answer, Paul :). Looking forward to that integration of the AppStore into Studio!

    Best regards,

  • This bug is still present in Trados 2017, and it's still extremely frustrating.

    Why is it that known bugs go unaddressed? For virtually any bug I've seen mentioned on the SDL Trados community board, the poster will at best be provided with some kind of workaround, but I've never actually seen anything get fixed. Are people reporting bugs in the wrong place? Are bug reports not being treated as bug reports? What exactly is going on?

  • Hi  

    Thinks do get fixed, but we plan the work in based on several things (in a simplified explanation):

    • criticality (if there is no workaround can play a part if increasing the priority)
    • location (if we are working on a particular area where fixing a known issue makes sense while we are there)
    • effort (sometimes a small bug might require a large amount of effort so fixing that one compared to several others in the time available doesn't make sense)
    • overall pending changes to the way we do things that might negate the need to fix a particular bug that was based on legacy code

    Every release has a number of bug fixes, every CU has them too.  But getting to a bug free state with software that is changing as much as Studio does is very difficult despite the best efforts of the teams.  Something that might have worked in the past, or something that was just fixed could be impacted by a wider change under the hood as we try to improve the way things work.  Studio 2019 due for release soon has undergone some huge changes under the hood trying to improve our ability to be more performant and we hope to reduce a number of bugs with these changes without actually tackling the individual bugs on their own.

    Have you reviewed the release notes for each release?  These provide some details, although not all, of the things we resolve?  I'm sure  could provide a better explanation than this but I can assure we we don't sit around ignoring these things.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub