'surround with tags' operates on wrong file.

Having trouble installing Oxygen? Got a bug to report? Post it all here.
sdm7g
Posts: 13
Joined: Thu Dec 13, 2007 1:21 am
Location: University of Virginia

'surround with tags' operates on wrong file.

Post by sdm7g »

When I have more than one file view visible -- either in editor or in xstl debug mode --
and I select some text and choose menu item: XML Refactoring/Surround with tags,
the tags often (usually) get inserted into the wrong file - Not around the selected text.

Any idea what's causing this ?

( This is with Oxygen 10.2 on Mac 10.5.7 )
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: 'surround with tags' operates on wrong file.

Post by sorin_ristache »

Hello,

I am sorry, I cannot reproduce the problem. Can you post a sample document and specify the cursor location, the current selection and the tag inserted with the action XML Refactoring -> Surround with Tags?


Thank you,
Sorin
sdm7g
Posts: 13
Joined: Thu Dec 13, 2007 1:21 am
Location: University of Virginia

Re: 'surround with tags' operates on wrong file.

Post by sdm7g »

I'm working on some rather large documents, so I won't post them.
I'll try to reproduce it with a smaller sample doc and follow up with more info.

But I just had the same sort of thing happen with Document/Edit/Toggle Comment.

The sequence in this case was:
I was in the xslt debugger.
After running one test, I selected a line in the XSLT pane, and chose
Document/Edit/ToggleComment.
No visible change.

Since I was a bit more aware of the glitch and where to look this time,
I switched back into Editor mode, and looked at all of the open files to
see which one had been modified with the Toggle-Comment command.

Another data file, which was neither the source for XSLT debugging, nor was it
the visible file displayed in the source window of the debugger had it's first line
( the XML declaration ) commented out.

However, once this happened, further attempts ( in Editor Mode, with only
a single file visible, and even after reselecting different text ) continue to
toggle the comments in the same incorrect ( not selected and not visible ) file.

If I quit and restart Oxygen, and again select text and toggle comment, the
change happens to the correct selected text.


[ The first observation of this problem was with 10.2 , I've since upgraded to 10.3.
This is on Mac OS 10.5.7 ]
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: 'surround with tags' operates on wrong file.

Post by sorin_ristache »

Hello,

It is a problem of the actions from the Document menu only on Mac computers. We will fix that. Please use the same action from a toolbar or from the popup menu (Cmd-click in the editor) for avoiding the problem. For example the action Toggle Comment is available on the popup menu of the editor.


Regards,
Sorin
sdm7g
Posts: 13
Joined: Thu Dec 13, 2007 1:21 am
Location: University of Virginia

Re: 'surround with tags' operates on wrong file.

Post by sdm7g »

Thanks! -- I'll give that a try.
Post Reply