eclipse-plugin: weird cursor-placement in XML editor within element named "style"
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 15
- Joined: Sat Mar 12, 2005 2:45 pm
- Location: Munich, Germany
eclipse-plugin: weird cursor-placement in XML editor within element named "style"
Post by Christian Roth »
Hi,
the eclipse-plugin (14.0.0v2012071212, eclipse 3.7.2 Mac) shows weird cursor placement in the XML editor (text mode):
Sample file:
When placing the cursor at X and pressing Return, a new line is inserted, but the cursor jumps to the beginning of the file. This only happens when pressing return within the scope of the style element. When that element is named other than style, everything works as expected.
I have set Format > Indent to "Indent on enter".
What setting could lead to the above behaviour, which seems to only happen when the element is named "style"? Looks like I configured something for that element name, though I doubt jumping to the beginning of the file is something I wanted to configure...
Any help/workaround appreciated!
Regards, Christian
the eclipse-plugin (14.0.0v2012071212, eclipse 3.7.2 Mac) shows weird cursor placement in the XML editor (text mode):
Sample file:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<d>
<style>X
</style>
</d>
I have set Format > Indent to "Indent on enter".
What setting could lead to the above behaviour, which seems to only happen when the element is named "style"? Looks like I configured something for that element name, though I doubt jumping to the beginning of the file is something I wanted to configure...
Any help/workaround appreciated!
Regards, Christian
<oXygen/> XML Editor 16.1
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: eclipse-plugin: weird cursor-placement in XML editor within element named "style"
Hello,
Look in the Error Log view (Window > Show View > Error Log). Are there any errors there relating to Oxygen (com.oxygenxml)?
Check the Format preferences (Preferences, <oXygen/> > Editor > Format > XML). Are "styled" or "d" listed in any of the "Preserve space", "Default space" or "Mixed content" lists?
Regards,
Adrian
Look in the Error Log view (Window > Show View > Error Log). Are there any errors there relating to Oxygen (com.oxygenxml)?
Check the Format preferences (Preferences, <oXygen/> > Editor > Format > XML). Are "styled" or "d" listed in any of the "Preserve space", "Default space" or "Mixed content" lists?
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 15
- Joined: Sat Mar 12, 2005 2:45 pm
- Location: Munich, Germany
Re: eclipse-plugin: weird cursor-placement in XML editor within element named "style"
Post by Christian Roth »
Hello,
there are no error messages relating to oxygen in eclipse's Error Log view.
In the Format preferences, there are only elements under "Preserve space", but they do not contain style or d.
I tested in oXygen standalone (which seems to be a slightly older build than the eclipse plugin), and there, the cursor moves to the beginning of the line (i.e. it does not auto-indent). Again, in the standalone app, style is not listed as an element in any of the Format preferences.
It seems that style is hard-coded as WS preserving, which leads to not auto-indenting in the standalone version of oxygen (seems ok), and to jumping to the start of the document in the eclipse plugin (not ok). Could this be the case?
I further tested this by adding d to the "Preserve space" list. Now, when hitting Return within d, the same thing happens: A new line is inserted, and the cursor jumps to the beginning of the document. So it looks like
• style is hardcoded to be treated as WS preserving
• in the eclipse plugin, WS preserving elements make the cursor jump to the document start when hitting Return within them instead of moving to the line start
Regards, Christian
there are no error messages relating to oxygen in eclipse's Error Log view.
In the Format preferences, there are only elements under "Preserve space", but they do not contain style or d.
I tested in oXygen standalone (which seems to be a slightly older build than the eclipse plugin), and there, the cursor moves to the beginning of the line (i.e. it does not auto-indent). Again, in the standalone app, style is not listed as an element in any of the Format preferences.
It seems that style is hard-coded as WS preserving, which leads to not auto-indenting in the standalone version of oxygen (seems ok), and to jumping to the start of the document in the eclipse plugin (not ok). Could this be the case?
I further tested this by adding d to the "Preserve space" list. Now, when hitting Return within d, the same thing happens: A new line is inserted, and the cursor jumps to the beginning of the document. So it looks like
• style is hardcoded to be treated as WS preserving
• in the eclipse plugin, WS preserving elements make the cursor jump to the document start when hitting Return within them instead of moving to the line start
Regards, Christian
<oXygen/> XML Editor 16.1
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: eclipse-plugin: weird cursor-placement in XML editor within element named "style"
Hi,
We've tested and you are correct on both accounts. I've logged both bugs to our issue tracking tool and they will be resolved in the next release of Oxygen.
Note that the "jump to the document start" bug is only triggered if you disable the option Indent (when typing) in space preserve elements (default enabled) from the Format XML preferences (Preferences, <oXygen/> > Editor > Format > XML). So, in the meantime, until we fix this, if you re-enable this option, the bug is avoided.
Regards,
Adrian
We've tested and you are correct on both accounts. I've logged both bugs to our issue tracking tool and they will be resolved in the next release of Oxygen.
Note that the "jump to the document start" bug is only triggered if you disable the option Indent (when typing) in space preserve elements (default enabled) from the Format XML preferences (Preferences, <oXygen/> > Editor > Format > XML). So, in the meantime, until we fix this, if you re-enable this option, the bug is avoided.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 9448
- Joined: Fri Jul 09, 2004 5:18 pm
Re: eclipse-plugin: weird cursor-placement in XML editor within element named "style"
Hi Christian,
A fix for this will probably be available in the next Oxygen 14.0 minor bug fix release available on site (probably in a couple of weeks).
This RSS feed announces such minor bug fix releases:
http://www.oxygenxml.com/rssBuildID.xml
Regards,
Radu
A fix for this will probably be available in the next Oxygen 14.0 minor bug fix release available on site (probably in a couple of weeks).
This RSS feed announces such minor bug fix releases:
http://www.oxygenxml.com/rssBuildID.xml
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: eclipse-plugin: weird cursor-placement in XML editor within element named "style"
Hi,
I just wanted to let you know that both problems have been resolved in the latest maintenance build of Oxygen 14.0, 2012080717 (released on August 8th):
http://www.oxygenxml.com/download.html
The list of bug-fixes can be found here:
http://www.oxygenxml.com/build_history.html#2012080717
Let us know if you encounter further problems with this new build.
Regards,
Adrian
I just wanted to let you know that both problems have been resolved in the latest maintenance build of Oxygen 14.0, 2012080717 (released on August 8th):
Eclipse: If the option "Indent (when typing) in space preserve elements" (Preferences, oXygen > Editor > Format > XML) was disabled, pressing ENTER between the tags of a space preserve element was moving the cursor at the beginning of the document.
You can download it from our web site:Indent when typing: The indent when typing (smart enter) feature was incorrectly considering all elements named "script" and "style" as space preserve elements. This is now true only for (X)HTML documents.
http://www.oxygenxml.com/download.html
The list of bug-fixes can be found here:
http://www.oxygenxml.com/build_history.html#2012080717
Let us know if you encounter further problems with this new build.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service