Page 1 of 1

Weird autocomplete bug in v 22.0

Posted: Tue Mar 24, 2020 5:59 pm
by martindholmes
Hi there,

In 22.0, build 2020030607, working in Text mode on XSLT with master files enabled, I'm seeing a very weird and quite annoying autocomplete bug. I have a single accumulator named "lineCount" defined in the master file:

Code: Select all

  <xsl:accumulator as="xs:integer" initial-value="0" name="lineCount">
    <xsl:accumulator-rule
      match="div[@type='scene']" phase="start"
      select="0"/>
    <xsl:accumulator-rule
      match="sp[ancestor::div[@type='scene']]/p | sp//l[ancestor::div[@type='scene']][@part='I' or not(@part)]"
      select="$value + 1"/>
  </xsl:accumulator>
and now whenever I type any XPath opening string delimiter (I usually use a single quote), 'lineCount' is automatically filled in; it's not even offered as an option I could reject, it just gets inserted automatically. I've never seen this bug before, but this may be the first time for a long time that I'm using an accumulator, so maybe it's been there for a while.

Re: Weird autocomplete bug in v 22.0

Posted: Wed Mar 25, 2020 8:10 pm
by martindholmes
Can anyone else confirm this? It's REALLY annoying, so I've had to turn off content completion for XPath, which is a drag. This is on Ubuntu 18.04.4, using the Oxygen bundled with OpenJDK.

Re: Weird autocomplete bug in v 22.0

Posted: Thu Mar 26, 2020 9:45 am
by tavy
Hello,

Thanks for your feedback.
Yes, this seems to be a problem. I added an issue on our issue tracker to analyze it and find a solution. We will update this thread when will be fixed.
I reproduce this behaviour also with <oXygen/> XML Editor 21.1, build 2019090904. It seems that this happens because 'lineCount' is the only proposal form XPath content completion that starts with a quote, and we consider that should be inserted automatically. If there are more accumulators, then you will get a list with all the names of the accumulators when you insert a quote, but if there is only one it will be inserted automatically. We need to correct this, the quote should be ignored and the proposal should not be inserted.

Best Regards,
Octavian

Re: Weird autocomplete bug in v 22.0

Posted: Thu May 07, 2020 9:06 pm
by martindholmes
I'd really appreciate a fix for this. It's driving me nuts. :-)

Re: Weird autocomplete bug in v 22.0

Posted: Thu May 21, 2020 5:01 pm
by martindholmes
Please tell me this is fixed in 22.1!

Re: Weird autocomplete bug in v 22.0

Posted: Fri May 22, 2020 11:30 am
by tavy
Hello,

Unfortunately this issue was not solved in Oxygen 22.1. It is scheduled to be solved with priority on the current version. Depending on the complexity we will add it also in an Oxygen 22.1 maintenance build. We will update this thread when will be fixed.

Best Regards,
Octavian