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

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

    Best regards,

Reply Children
No Data