VisualEditor: avoid causing "Translation unit markers in unexpected position" edit abort
Open, NormalPublic

Details

Reference
bz65653
bzimport raised the priority of this task from to Normal.
bzimport set Reference to bz65653.

(In reply to James Forrester from comment #0)

"Translation unit markers in unexpected position." can just go die in Hell.
Gah.

Is this bug related to other bugs?

(In reply to Nemo from comment #1)

(In reply to James Forrester from comment #0)
> "Translation unit markers in unexpected position." can just go die in Hell.
> Gah.

Is this bug related to other bugs?

I don't know. You're the Translate extension expert. :-)

(In reply to James Forrester from comment #2)

I don't know. You're the Translate extension expert. :-)

Ok. That error probably just means that some newline was inserted in the wrong place before or after <!--T:1--> and similar, IIRC.

So if you don't have a specific intention here I guess this is one bug of the series "make VisualEditor not touch Translate stuff which otherwise breaks" (bug 56451, bug 71730), and is probably blocked on bug 48891 as its friends.

(In reply to Nemo from comment #3)

(In reply to James Forrester from comment #2)
> I don't know. You're the Translate extension expert. :-)

Ok. That error probably just means that some newline was inserted in the
wrong place before or after <!--T:1--> and similar, IIRC.

So if you don't have a specific intention here I guess this is one bug of
the series "make VisualEditor not touch Translate stuff which otherwise
breaks" (bug 56451, bug 71730), and is probably blocked on bug 48891 as its
friends.

No, this is not a parser bug.

It's just a "VE should react to stupidly vague error responses by killing stupid comments in stupid places used by a stupid extension to do critical functions that should be done better" bug. :-)

I guess it can also be put that way. :) Does this new summary reflect the aim?

(In reply to Nemo from comment #5)

I guess it can also be put that way. :) Does this new summary reflect the
aim?

Not really. Putting a hack into VisualEditor to cope with another extension's model is not good. Either way, I don't care enough. :-)

Aklapper updated the task description. (Show Details)Sep 29 2015, 8:25 PM
Aklapper set Security to None.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 29 2015, 8:25 PM
jeblad added a subscriber: jeblad.Jun 19 2017, 7:59 AM

With WikitextEditor this has become critical for editing translated pages.

With WikitextEditor this has become critical for editing translated pages.

Can you give me some more details on what the problem is, and what the steps to reproduce are?

jeblad removed a subscriber: jeblad.Aug 25 2017, 11:19 PM