Quantcast

[ jEdit-devel ] Next release?

classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ jEdit-devel ] Next release?

Dale Anson-3
What's the planned date for the next release? There are a couple of things I'm working on, just want to see if I have time to complete them or wait until later. One is cleaning up all (most? many? at least a few of) the compiler warnings about the unchecked generic usage, the other is revamping the printing system.

Thanks,

Dale



------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] Next release?

Alan Ezust-3
Administrator
I think you should pick the date for the next release, since you are doing most of the work on it right now.

Hopefully Vampire is listening and will release it around your desired schedule.


On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson <[hidden email]> wrote:
What's the planned date for the next release? There are a couple of things I'm working on, just want to see if I have time to complete them or wait until later. One is cleaning up all (most? many? at least a few of) the compiler warnings about the unchecked generic usage, the other is revamping the printing system.

Thanks,

Dale



------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel



------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] Next release?

Dale Anson-3
At this point, the compiler warnings work is complete. I've done some work on the printing system, but I'm going to be traveling for most of July and won't have access to a printer to test. 

Does anyone on the list know why the option to print in color is in the Global Options - Printing options? It seems to me it belongs in the printer dialog. The code mentions it's for "backward compatibility". I'm thinking to remove it from the Printing options since I've added the same setting to the new printer dialog.

Thanks,

Dale



On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust <[hidden email]> wrote:
I think you should pick the date for the next release, since you are doing most of the work on it right now.

Hopefully Vampire is listening and will release it around your desired schedule.


On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson <[hidden email]> wrote:
What's the planned date for the next release? There are a couple of things I'm working on, just want to see if I have time to complete them or wait until later. One is cleaning up all (most? many? at least a few of) the compiler warnings about the unchecked generic usage, the other is revamping the printing system.

Thanks,

Dale



------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel




------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] Next release?

Alan Ezust-3
Administrator
We will wait until you are back from your travels before releasing since we need some of your time to fix bugs and review patches before the next jEdit release, which I am thinking should be called 5.4, since it requires a newer
Java version (1.8).

Shall we target an early September release for jEdit 5.4?






On Wed, Jun 29, 2016 at 4:33 PM, Dale Anson <[hidden email]> wrote:
At this point, the compiler warnings work is complete. I've done some work on the printing system, but I'm going to be traveling for most of July and won't have access to a printer to test. 

Does anyone on the list know why the option to print in color is in the Global Options - Printing options? It seems to me it belongs in the printer dialog. The code mentions it's for "backward compatibility". I'm thinking to remove it from the Printing options since I've added the same setting to the new printer dialog.

Thanks,

Dale



On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust <[hidden email]> wrote:
I think you should pick the date for the next release, since you are doing most of the work on it right now.

Hopefully Vampire is listening and will release it around your desired schedule.


On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson <[hidden email]> wrote:
What's the planned date for the next release? There are a couple of things I'm working on, just want to see if I have time to complete them or wait until later. One is cleaning up all (most? many? at least a few of) the compiler warnings about the unchecked generic usage, the other is revamping the printing system.

Thanks,

Dale



------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel





------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] Next release?

Dale Anson-3
Sounds good to me. I think I'm about done with revamping the printing stuff, it's working well on my two printers. I'd appreciate it if others could try to print a few things and report any problems, especially on Windows, which I don't have anymore to test with.

Dale



On Mon, Jul 11, 2016 at 8:42 PM, Alan Ezust <[hidden email]> wrote:
We will wait until you are back from your travels before releasing since we need some of your time to fix bugs and review patches before the next jEdit release, which I am thinking should be called 5.4, since it requires a newer
Java version (1.8).

Shall we target an early September release for jEdit 5.4?






On Wed, Jun 29, 2016 at 4:33 PM, Dale Anson <[hidden email]> wrote:
At this point, the compiler warnings work is complete. I've done some work on the printing system, but I'm going to be traveling for most of July and won't have access to a printer to test. 

Does anyone on the list know why the option to print in color is in the Global Options - Printing options? It seems to me it belongs in the printer dialog. The code mentions it's for "backward compatibility". I'm thinking to remove it from the Printing options since I've added the same setting to the new printer dialog.

Thanks,

Dale



On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust <[hidden email]> wrote:
I think you should pick the date for the next release, since you are doing most of the work on it right now.

Hopefully Vampire is listening and will release it around your desired schedule.


On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson <[hidden email]> wrote:
What's the planned date for the next release? There are a couple of things I'm working on, just want to see if I have time to complete them or wait until later. One is cleaning up all (most? many? at least a few of) the compiler warnings about the unchecked generic usage, the other is revamping the printing system.

Thanks,

Dale



------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel






------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] Next release?

Eric Le Lay
Administrator
Hi Dale,

great work improving the print system!
It prints well to PostScript on ArchLinux, java 1.8, unconfigured print
system.

I Tested it a bit and got 3 exceptions.

But first some remarks:
The page marker (horizontal blue 1px line) is distracting.
Is there an option to turn it off?
I'd like a buffer option (or maybe an action to put in the toolbar) to
show page markers, and when it's active it recalculates on input, not on
buffer switch like ATM.

Also when starting with a new buffer, a page marker is drawn on top of
the first line: this should be avoided.

Last, there seems to be an error by one line in the page marker for
the last page. Steps to reproduce:
1) in a new buffer, type 6 lines of dummy text
2) switch to another buffer and back to the buffer (seems the way to
trigger page marker recalculation)
3) I get the page marker  between the 5th and 6th line,
while I'd expect it below the 6th (or not at all, since it's the last).

On my system (PS output), the page footer (1 line text on gray
background) collides with the last line of each page.
The page marker is also not reliable: actual page cut is
between line 52 and 53, while the page marker is between line 47 and 48.
And last line number collides with previous line number on the last
page. Do you see this as well?

Now, the exceptions:
I get an exception in BufferPrintable1_7 at startup:

22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:
java.lang.NullPointerException 22:08:01 [AWT-EventQueue-0] [error]
ExtensionManager:  at
org.gjt.sp.jedit.print.BufferPrintable1_7.<init>(BufferPrintable1_7.java:93)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:191)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(PageBreakExtension.java:72)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.print.PageBreakExtension.paintValidLine(PageBreakExtension.java:135)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.textarea.TextAreaExtension.paintScreenLineRange(TextAreaExtension.java:70)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRange(ExtensionManager.java:157)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRange(ExtensionManager.java:117)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.textarea.TextAreaPainter.paint(TextAreaPainter.java:904)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.gui.DockableWindowManagerImpl.paintChildren(DockableWindowManagerImpl.java:667)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JLayeredPane.paint(JLayeredPane.java:586) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintToOffscreen(JComponent.java:5217) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:290)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.paint(RepaintManager.java:1272) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1042) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.Container.paint(Container.java:1975) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.Window.paint(Window.java:3904) 22:08:01 [AWT-EventQueue-0]
[error] ExtensionManager:  at
javax.swing.RepaintManager$4.run(RepaintManager.java:842) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager$4.run(RepaintManager.java:814) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.security.AccessController.doPrivileged(Native Method) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.access$1200(RepaintManager.java:64) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue.access$500(EventQueue.java:97) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue$3.run(EventQueue.java:709) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue$3.run(EventQueue.java:703) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.security.AccessController.doPrivileged(Native Method) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

the format argument's underlying attribute map is empty at launch, so
format.get() returns null. I'd change the code to:

boolean color =
Chromaticity.COLOR.equals(format.get(Chromaticity.class));


I get a second exception at startup (a timing issue, because when I put
a breakpoint, gfx is non null):

22:19:49 [AWT-EventQueue-0] [error] EditBus: Exception while sending
message on EditBus: 22:19:49 [AWT-EventQueue-0] [error] EditBus:
java.lang.NullPointerException 22:19:49 [AWT-EventQueue-0] [error]
EditBus:  at
org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(BufferPrintable1_7.java:208)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:203)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:192)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(PageBreakExtension.java:72)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(PageBreakExtension.java:89)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:140) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditPane.bufferRemoved(EditPane.java:718) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.bufferset.BufferSet.removeBuffer(BufferSet.java:348)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.bufferset.BufferSetManager._removeBuffer(BufferSetManager.java:324)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.bufferset.BufferSetManager.removeBuffer(BufferSetManager.java:278)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.bufferset.BufferSet.addBufferAt(BufferSet.java:143)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.View.restoreSplitConfig(View.java:1825) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.View.setSplitConfig(View.java:891) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.View.<init>(View.java:1360) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.jEdit.newView(jEdit.java:2612) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.endElement(PerspectiveManager.java:363)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidator.endNamespaceScope(XMLNSDTDValidator.java:266)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2005)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:879)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:140) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.PerspectiveManager.loadPerspective(PerspectiveManager.java:107)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.jEdit$9.run(jEdit.java:4253) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.access$500(EventQueue.java:97) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$3.run(EventQueue.java:709) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$3.run(EventQueue.java:703) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.security.AccessController.doPrivileged(Native Method) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

When I load a file, I get:
22:26:25 [AWT-EventQueue-0] [error] EditBus: Exception while sending
message on EditBus: 22:26:25 [AWT-EventQueue-0] [error] EditBus:
java.lang.NullPointerException 22:26:25 [AWT-EventQueue-0] [error]
EditBus:  at org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1727)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.java:1377)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(BufferPrintable1_7.java:291)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:203)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:192)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(PageBreakExtension.java:72)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(PageBreakExtension.java:89)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1713) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1620) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.browser.VFSBrowser.filesActivated(VFSBrowser.java:1236)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.browser.BrowserView$TableMouseHandler.mouseClicked(BrowserView.java:561)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.processMouseEvent(Component.java:6536) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
javax.swing.JComponent.processMouseEvent(JComponent.java:3324) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.processEvent(Component.java:6298) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Container.processEvent(Container.java:2236) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.dispatchEventImpl(Component.java:4889) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Container.dispatchEventImpl(Container.java:2294) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.Container.dispatchEventImpl(Container.java:2280) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Window.dispatchEventImpl(Window.java:2746) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.access$500(EventQueue.java:97) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$3.run(EventQueue.java:709) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$3.run(EventQueue.java:703) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.security.AccessController.doPrivileged(Native Method) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$4.run(EventQueue.java:731) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$4.run(EventQueue.java:729) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.security.AccessController.doPrivileged(Native Method) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.dispatchEvent(EventQueue.java:728) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

I'll be away tomorrow and Saturday, but will be back on Sunday if you
have questions to debug this...

Thanks,
Eric

Le Wed, 10 Aug 2016 17:04:09 -0600,
Dale Anson <[hidden email]> a écrit :

> Sounds good to me. I think I'm about done with revamping the printing
> stuff, it's working well on my two printers. I'd appreciate it if
> others could try to print a few things and report any problems,
> especially on Windows, which I don't have anymore to test with.
>
> Dale
>
>
>
> On Mon, Jul 11, 2016 at 8:42 PM, Alan Ezust <[hidden email]>
> wrote:
>
> > We will wait until you are back from your travels before releasing
> > since we need some of your time to fix bugs and review patches
> > before the next jEdit release, which I am thinking should be called
> > 5.4, since it requires a newer
> > Java version (1.8).
> >
> > Shall we target an early September release for jEdit 5.4?
> >
> >
> >
> >
> >
> >
> > On Wed, Jun 29, 2016 at 4:33 PM, Dale Anson <[hidden email]>
> > wrote:
> >> At this point, the compiler warnings work is complete. I've done
> >> some work on the printing system, but I'm going to be traveling
> >> for most of July and won't have access to a printer to test.
> >>
> >> Does anyone on the list know why the option to print in color is
> >> in the Global Options - Printing options? It seems to me it
> >> belongs in the printer dialog. The code mentions it's for
> >> "backward compatibility". I'm thinking to remove it from the
> >> Printing options since I've added the same setting to the new
> >> printer dialog.
> >>
> >> Thanks,
> >>
> >> Dale
> >>
> >>
> >>
> >> On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust <[hidden email]>
> >> wrote:
> >>> I think you should pick the date for the next release, since you
> >>> are doing most of the work on it right now.
> >>>
> >>> Hopefully Vampire is listening and will release it around your
> >>> desired schedule.
> >>>
> >>>
> >>> On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson <[hidden email]>
> >>> wrote:
> >>>> What's the planned date for the next release? There are a couple
> >>>> of things I'm working on, just want to see if I have time to
> >>>> complete them or wait until later. One is cleaning up all (most?
> >>>> many? at least a few of) the compiler warnings about the
> >>>> unchecked generic usage, the other is revamping the printing
> >>>> system.
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Dale
> >>>>
> >>>>
> >>>>
> >>>> ------------------------------------------------------------
> >>>> ------------------
> >>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park
> >>>> in San Francisco, CA to explore cutting-edge tech and listen to
> >>>> tech luminaries present their vision of the future. This family
> >>>> event has something for everyone, including kids. Get more
> >>>> information and register today. http://sdm.link/attshape
> >>>> --
> >>>> -----------------------------------------------
> >>>> jEdit Developers' List
> >>>> [hidden email]
> >>>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
> >>>>
> >>>>  
> >>>  
> >>  
> >  


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] Next release?

Dale Anson-3
Hi Eric,

I'm back in town and have inserted some comments below:

On Thu, Aug 11, 2016 at 2:58 PM, Eric Le Lay <[hidden email]> wrote:
Hi Dale,

great work improving the print system!
It prints well to PostScript on ArchLinux, java 1.8, unconfigured print
system.

I Tested it a bit and got 3 exceptions.

But first some remarks:
The page marker (horizontal blue 1px line) is distracting.
Is there an option to turn it off?

Global Options - Text Area has a setting for on and off.
 
I'd like a buffer option (or maybe an action to put in the toolbar) to
show page markers, and when it's active it recalculates on input, not on
buffer switch like ATM.

Good idea. I started with recalculating on input, but it really slowed jEdit to a crawl. I'll look into optimizing this some more. 

Also when starting with a new buffer, a page marker is drawn on top of
the first line: this should be avoided.

I agree, I'll fix this.
 

Last, there seems to be an error by one line in the page marker for
the last page. Steps to reproduce:
1) in a new buffer, type 6 lines of dummy text
2) switch to another buffer and back to the buffer (seems the way to
trigger page marker recalculation)
3) I get the page marker  between the 5th and 6th line,
while I'd expect it below the 6th (or not at all, since it's the last).

I'm not sure this is fixable, but I want to look into this part some more. I've noticed the same, I think it's a combination of different graphics context, margin settings, and print versus text area font and font size. Also, the error is not always by one, sometimes it's by 6 or 7 or more. Regardless, this needs some work.
 

On my system (PS output), the page footer (1 line text on gray
background) collides with the last line of each page.
The page marker is also not reliable: actual page cut is
between line 52 and 53, while the page marker is between line 47 and 48.
And last line number collides with previous line number on the last
page. Do you see this as well?

Good catch, I didn't test the header and footer much.

Thanks for the rest, I'll post back when all of these are fixed.

One other thing I've noticed is if the file has soft wrap on and a line spans several screen lines and the page break happens to be at that line, all the screen lines get the page break marker. Only the last one should be marked.
 

Now, the exceptions:
I get an exception in BufferPrintable1_7 at startup:

22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:
java.lang.NullPointerException 22:08:01 [AWT-EventQueue-0] [error]
ExtensionManager:  at
org.gjt.sp.jedit.print.BufferPrintable1_7.<init>(BufferPrintable1_7.java:93)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:191)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(PageBreakExtension.java:72)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.print.PageBreakExtension.paintValidLine(PageBreakExtension.java:135)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.textarea.TextAreaExtension.paintScreenLineRange(TextAreaExtension.java:70)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRange(ExtensionManager.java:157)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRange(ExtensionManager.java:117)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.textarea.TextAreaPainter.paint(TextAreaPainter.java:904)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.gui.DockableWindowManagerImpl.paintChildren(DockableWindowManagerImpl.java:667)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JLayeredPane.paint(JLayeredPane.java:586) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintToOffscreen(JComponent.java:5217) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:290)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.paint(RepaintManager.java:1272) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1042) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.Container.paint(Container.java:1975) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.Window.paint(Window.java:3904) 22:08:01 [AWT-EventQueue-0]
[error] ExtensionManager:  at
javax.swing.RepaintManager$4.run(RepaintManager.java:842) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager$4.run(RepaintManager.java:814) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.security.AccessController.doPrivileged(Native Method) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.access$1200(RepaintManager.java:64) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue.access$500(EventQueue.java:97) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue$3.run(EventQueue.java:709) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue$3.run(EventQueue.java:703) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.security.AccessController.doPrivileged(Native Method) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

the format argument's underlying attribute map is empty at launch, so
format.get() returns null. I'd change the code to:

boolean color =
Chromaticity.COLOR.equals(format.get(Chromaticity.class));


I get a second exception at startup (a timing issue, because when I put
a breakpoint, gfx is non null):

22:19:49 [AWT-EventQueue-0] [error] EditBus: Exception while sending
message on EditBus: 22:19:49 [AWT-EventQueue-0] [error] EditBus:
java.lang.NullPointerException 22:19:49 [AWT-EventQueue-0] [error]
EditBus:  at
org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(BufferPrintable1_7.java:208)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:203)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:192)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(PageBreakExtension.java:72)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(PageBreakExtension.java:89)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:140) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditPane.bufferRemoved(EditPane.java:718) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.bufferset.BufferSet.removeBuffer(BufferSet.java:348)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.bufferset.BufferSetManager._removeBuffer(BufferSetManager.java:324)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.bufferset.BufferSetManager.removeBuffer(BufferSetManager.java:278)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.bufferset.BufferSet.addBufferAt(BufferSet.java:143)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.View.restoreSplitConfig(View.java:1825) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.View.setSplitConfig(View.java:891) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.View.<init>(View.java:1360) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.jEdit.newView(jEdit.java:2612) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.endElement(PerspectiveManager.java:363)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidator.endNamespaceScope(XMLNSDTDValidator.java:266)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2005)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:879)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:140) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.PerspectiveManager.loadPerspective(PerspectiveManager.java:107)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.jEdit$9.run(jEdit.java:4253) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.access$500(EventQueue.java:97) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$3.run(EventQueue.java:709) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$3.run(EventQueue.java:703) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.security.AccessController.doPrivileged(Native Method) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

When I load a file, I get:
22:26:25 [AWT-EventQueue-0] [error] EditBus: Exception while sending
message on EditBus: 22:26:25 [AWT-EventQueue-0] [error] EditBus:
java.lang.NullPointerException 22:26:25 [AWT-EventQueue-0] [error]
EditBus:  at org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1727)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.java:1377)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(BufferPrintable1_7.java:291)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:203)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:192)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(PageBreakExtension.java:72)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(PageBreakExtension.java:89)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1713) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1620) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.browser.VFSBrowser.filesActivated(VFSBrowser.java:1236)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.browser.BrowserView$TableMouseHandler.mouseClicked(BrowserView.java:561)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.processMouseEvent(Component.java:6536) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
javax.swing.JComponent.processMouseEvent(JComponent.java:3324) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.processEvent(Component.java:6298) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Container.processEvent(Container.java:2236) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.dispatchEventImpl(Component.java:4889) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Container.dispatchEventImpl(Container.java:2294) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.Container.dispatchEventImpl(Container.java:2280) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Window.dispatchEventImpl(Window.java:2746) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.access$500(EventQueue.java:97) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$3.run(EventQueue.java:709) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$3.run(EventQueue.java:703) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.security.AccessController.doPrivileged(Native Method) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$4.run(EventQueue.java:731) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$4.run(EventQueue.java:729) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.security.AccessController.doPrivileged(Native Method) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.dispatchEvent(EventQueue.java:728) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

I'll be away tomorrow and Saturday, but will be back on Sunday if you
have questions to debug this...

Thanks,
Eric

Le Wed, 10 Aug 2016 17:04:09 -0600,
Dale Anson <[hidden email]> a écrit :

> Sounds good to me. I think I'm about done with revamping the printing
> stuff, it's working well on my two printers. I'd appreciate it if
> others could try to print a few things and report any problems,
> especially on Windows, which I don't have anymore to test with.
>
> Dale
>
>
>
> On Mon, Jul 11, 2016 at 8:42 PM, Alan Ezust <[hidden email]>
> wrote:
>
> > We will wait until you are back from your travels before releasing
> > since we need some of your time to fix bugs and review patches
> > before the next jEdit release, which I am thinking should be called
> > 5.4, since it requires a newer
> > Java version (1.8).
> >
> > Shall we target an early September release for jEdit 5.4?
> >
> >
> >
> >
> >
> >
> > On Wed, Jun 29, 2016 at 4:33 PM, Dale Anson <[hidden email]>
> > wrote:
> >> At this point, the compiler warnings work is complete. I've done
> >> some work on the printing system, but I'm going to be traveling
> >> for most of July and won't have access to a printer to test.
> >>
> >> Does anyone on the list know why the option to print in color is
> >> in the Global Options - Printing options? It seems to me it
> >> belongs in the printer dialog. The code mentions it's for
> >> "backward compatibility". I'm thinking to remove it from the
> >> Printing options since I've added the same setting to the new
> >> printer dialog.
> >>
> >> Thanks,
> >>
> >> Dale
> >>
> >>
> >>
> >> On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust <[hidden email]>
> >> wrote:
> >>> I think you should pick the date for the next release, since you
> >>> are doing most of the work on it right now.
> >>>
> >>> Hopefully Vampire is listening and will release it around your
> >>> desired schedule.
> >>>
> >>>
> >>> On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson <[hidden email]>
> >>> wrote:
> >>>> What's the planned date for the next release? There are a couple
> >>>> of things I'm working on, just want to see if I have time to
> >>>> complete them or wait until later. One is cleaning up all (most?
> >>>> many? at least a few of) the compiler warnings about the
> >>>> unchecked generic usage, the other is revamping the printing
> >>>> system.
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Dale
> >>>>
> >>>>
> >>>>
> >>>> ------------------------------------------------------------
> >>>> ------------------
> >>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park
> >>>> in San Francisco, CA to explore cutting-edge tech and listen to
> >>>> tech luminaries present their vision of the future. This family
> >>>> event has something for everyone, including kids. Get more
> >>>> information and register today. http://sdm.link/attshape
> >>>> --
> >>>> -----------------------------------------------
> >>>> jEdit Developers' List
> >>>> [hidden email]
> >>>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
> >>>>
> >>>>
> >>>
> >>
> >



------------------------------------------------------------------------------

--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] *** SPAM *** Re: Next release?

Eric Le Lay
Administrator
Hi Dale,

I can investigate the exceptions, if you want. It's easier to debug
when one gets them in the first place ;-)

The settings in Text Area is correct. It reads "Page breaks" and all.
How could I miss it?

Cheers,
Eric

Le Sun, 14 Aug 2016 10:11:01 -0600,
Dale Anson <[hidden email]> a écrit :

> Hi Eric,
>
> I'm back in town and have inserted some comments below:
>
> On Thu, Aug 11, 2016 at 2:58 PM, Eric Le Lay
> <[hidden email]
> > wrote:  
>
> > Hi Dale,
> >
> > great work improving the print system!
> > It prints well to PostScript on ArchLinux, java 1.8, unconfigured
> > print system.
> >
> > I Tested it a bit and got 3 exceptions.
> >
> > But first some remarks:
> > The page marker (horizontal blue 1px line) is distracting.
> > Is there an option to turn it off?
> >  
>
> Global Options - Text Area has a setting for on and off.
>
>
> > I'd like a buffer option (or maybe an action to put in the toolbar)
> > to show page markers, and when it's active it recalculates on
> > input, not on buffer switch like ATM.
> >  
>
> Good idea. I started with recalculating on input, but it really slowed
> jEdit to a crawl. I'll look into optimizing this some more.
>
> >
> > Also when starting with a new buffer, a page marker is drawn on top
> > of the first line: this should be avoided.
> >  
>
> I agree, I'll fix this.
>
>
> >
> > Last, there seems to be an error by one line in the page marker for
> > the last page. Steps to reproduce:
> > 1) in a new buffer, type 6 lines of dummy text
> > 2) switch to another buffer and back to the buffer (seems the way to
> > trigger page marker recalculation)
> > 3) I get the page marker  between the 5th and 6th line,
> > while I'd expect it below the 6th (or not at all, since it's the
> > last).
>
> I'm not sure this is fixable, but I want to look into this part some
> more. I've noticed the same, I think it's a combination of different
> graphics context, margin settings, and print versus text area font
> and font size. Also, the error is not always by one, sometimes it's
> by 6 or 7 or more. Regardless, this needs some work.
>
>
> >
> > On my system (PS output), the page footer (1 line text on gray
> > background) collides with the last line of each page.
> > The page marker is also not reliable: actual page cut is
> > between line 52 and 53, while the page marker is between line 47
> > and 48. And last line number collides with previous line number on
> > the last page. Do you see this as well?
> >  
>
> Good catch, I didn't test the header and footer much.
>
> Thanks for the rest, I'll post back when all of these are fixed.
>
> One other thing I've noticed is if the file has soft wrap on and a
> line spans several screen lines and the page break happens to be at
> that line, all the screen lines get the page break marker. Only the
> last one should be marked.
>
>
> >
> > Now, the exceptions:
> > I get an exception in BufferPrintable1_7 at startup:
> >
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:
> > java.lang.NullPointerException 22:08:01 [AWT-EventQueue-0] [error]
> > ExtensionManager:  at
> > org.gjt.sp.jedit.print.BufferPrintable1_7.<init>(
> > BufferPrintable1_7.java:93)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_
> > 7.java:191)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(
> > PageBreakExtension.java:72)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > org.gjt.sp.jedit.print.PageBreakExtension.paintValidLine(
> > PageBreakExtension.java:135)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > org.gjt.sp.jedit.textarea.TextAreaExtension.paintScreenLineRange(
> > TextAreaExtension.java:70)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRange(
> > ExtensionManager.java:157)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRange(
> > ExtensionManager.java:117)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > org.gjt.sp.jedit.textarea.TextAreaPainter.paint(TextAreaPainter.java:904)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > org.gjt.sp.jedit.gui.DockableWindowManagerImpl.paintChildren(
> > DockableWindowManagerImpl.java:667)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JLayeredPane.paint(JLayeredPane.java:586) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.
> > java:290)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.RepaintManager.paint(RepaintManager.java:1272) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.JComponent.paint(JComponent.java:1042) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.Container.paint(Container.java:1975) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.Window.paint(Window.java:3904) 22:08:01 [AWT-EventQueue-0]
> > [error] ExtensionManager:  at
> > javax.swing.RepaintManager$4.run(RepaintManager.java:842) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.RepaintManager$4.run(RepaintManager.java:814) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.security.AccessController.doPrivileged(Native Method) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.security.ProtectionDomain$JavaSecurityAccessImpl.
> > doIntersectionPrivilege(ProtectionDomain.java:76)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > javax.swing.RepaintManager$ProcessingRunnable.run(
> > RepaintManager.java:1732)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.EventQueue.access$500(EventQueue.java:97) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.EventQueue$3.run(EventQueue.java:709) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.EventQueue$3.run(EventQueue.java:703) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.security.AccessController.doPrivileged(Native Method) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.security.ProtectionDomain$JavaSecurityAccessImpl.
> > doIntersectionPrivilege(ProtectionDomain.java:76)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:08:01
> > [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.EventDispatchThread.pumpOneEventForFilters(
> > EventDispatchThread.java:201)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.EventDispatchThread.pumpEventsForFilter(
> > EventDispatchThread.java:116)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.EventDispatchThread.pumpEventsForHierarchy(
> > EventDispatchThread.java:105)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> > 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> > java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >
> > the format argument's underlying attribute map is empty at launch,
> > so format.get() returns null. I'd change the code to:
> >
> > boolean color =
> > Chromaticity.COLOR.equals(format.get(Chromaticity.class));
> >
> >
> > I get a second exception at startup (a timing issue, because when I
> > put a breakpoint, gfx is non null):
> >
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus: Exception while sending
> > message on EditBus: 22:19:49 [AWT-EventQueue-0] [error] EditBus:
> > java.lang.NullPointerException 22:19:49 [AWT-EventQueue-0] [error]
> > EditBus:  at
> > org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(
> > BufferPrintable1_7.java:208)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_
> > 7.java:203)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_
> > 7.java:192)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(
> > PageBreakExtension.java:72)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(
> > PageBreakExtension.java:89)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:140) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.EditPane.bufferRemoved(EditPane.java:718) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.bufferset.BufferSet.removeBuffer(BufferSet.java:348)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.bufferset.BufferSetManager._
> > removeBuffer(BufferSetManager.java:324)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.bufferset.BufferSetManager.removeBuffer(
> > BufferSetManager.java:278)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.bufferset.BufferSet.addBufferAt(BufferSet.java:143)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.View.restoreSplitConfig(View.java:1825) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.View.setSplitConfig(View.java:891) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.View.<init>(View.java:1360) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.jEdit.newView(jEdit.java:2612) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.endElement(
> > PerspectiveManager.java:363)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(
> > AbstractSAXParser.java:609)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidator.
> > endNamespaceScope(XMLNSDTDValidator.java:266)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> > handleEndElement(XMLDTDValidator.java:2005)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(
> > XMLDTDValidator.java:879)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> > .scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> > $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(
> > XMLDocumentScannerImpl.java:602)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(
> > XMLNSDocumentScannerImpl.java:112)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> > .scanDocument(XMLDocumentFragmentScannerImpl.java:505)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
> > XML11Configuration.java:841)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
> > XML11Configuration.java:770)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > com.sun.org.apache.xerces.internal.parsers.XMLParser.
> > parse(XMLParser.java:141)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(
> > AbstractSAXParser.java:1213)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:140)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.PerspectiveManager.loadPerspective(
> > PerspectiveManager.java:107)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.jEdit$9.run(jEdit.java:4253) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventQueue.access$500(EventQueue.java:97) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventQueue$3.run(EventQueue.java:709) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventQueue$3.run(EventQueue.java:703) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.security.AccessController.doPrivileged(Native Method) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.security.ProtectionDomain$JavaSecurityAccessImpl.
> > doIntersectionPrivilege(ProtectionDomain.java:76)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:19:49
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventDispatchThread.pumpOneEventForFilters(
> > EventDispatchThread.java:201)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventDispatchThread.pumpEventsForFilter(
> > EventDispatchThread.java:116)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventDispatchThread.pumpEventsForHierarchy(
> > EventDispatchThread.java:105)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> > 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >
> > When I load a file, I get:
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus: Exception while sending
> > message on EditBus: 22:26:25 [AWT-EventQueue-0] [error] EditBus:
> > java.lang.NullPointerException 22:26:25 [AWT-EventQueue-0] [error]
> > EditBus:  at org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1727)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.java:1377)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(
> > BufferPrintable1_7.java:291)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_
> > 7.java:203)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_
> > 7.java:192)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(
> > PageBreakExtension.java:72)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(
> > PageBreakExtension.java:89)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1713) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1620) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.browser.VFSBrowser.filesActivated(VFSBrowser.java:1236)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > org.gjt.sp.jedit.browser.BrowserView$TableMouseHandler.
> > mouseClicked(BrowserView.java:561)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.Component.processMouseEvent(Component.java:6536) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.Component.processEvent(Component.java:6298) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.Container.processEvent(Container.java:2236) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.Component.dispatchEventImpl(Component.java:4889) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.Container.dispatchEventImpl(Container.java:2294) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.Container.dispatchEventImpl(Container.java:2280) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.Window.dispatchEventImpl(Window.java:2746) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventQueue.access$500(EventQueue.java:97) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventQueue$3.run(EventQueue.java:709) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventQueue$3.run(EventQueue.java:703) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.security.AccessController.doPrivileged(Native Method) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.security.ProtectionDomain$JavaSecurityAccessImpl.
> > doIntersectionPrivilege(ProtectionDomain.java:76)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > java.security.ProtectionDomain$JavaSecurityAccessImpl.
> > doIntersectionPrivilege(ProtectionDomain.java:86)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventQueue$4.run(EventQueue.java:731) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventQueue$4.run(EventQueue.java:729) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.security.AccessController.doPrivileged(Native Method) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.security.ProtectionDomain$JavaSecurityAccessImpl.
> > doIntersectionPrivilege(ProtectionDomain.java:76)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventQueue.dispatchEvent(EventQueue.java:728) 22:26:25
> > [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventDispatchThread.pumpOneEventForFilters(
> > EventDispatchThread.java:201)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventDispatchThread.pumpEventsForFilter(
> > EventDispatchThread.java:116)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventDispatchThread.pumpEventsForHierarchy(
> > EventDispatchThread.java:105)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> > 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> > java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >
> > I'll be away tomorrow and Saturday, but will be back on Sunday if
> > you have questions to debug this...
> >
> > Thanks,
> > Eric
> >
> > Le Wed, 10 Aug 2016 17:04:09 -0600,
> > Dale Anson <[hidden email]> a écrit :
> >  
> > > Sounds good to me. I think I'm about done with revamping the
> > > printing stuff, it's working well on my two printers. I'd
> > > appreciate it if others could try to print a few things and
> > > report any problems, especially on Windows, which I don't have
> > > anymore to test with.
> > >
> > > Dale
> > >
> > >
> > >
> > > On Mon, Jul 11, 2016 at 8:42 PM, Alan Ezust <[hidden email]>
> > > wrote:
> > >  
> > > > We will wait until you are back from your travels before
> > > > releasing since we need some of your time to fix bugs and
> > > > review patches before the next jEdit release, which I am
> > > > thinking should be called 5.4, since it requires a newer
> > > > Java version (1.8).
> > > >
> > > > Shall we target an early September release for jEdit 5.4?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Wed, Jun 29, 2016 at 4:33 PM, Dale Anson <[hidden email]>
> > > > wrote:  
> > > >> At this point, the compiler warnings work is complete. I've
> > > >> done some work on the printing system, but I'm going to be
> > > >> traveling for most of July and won't have access to a printer
> > > >> to test.
> > > >>
> > > >> Does anyone on the list know why the option to print in color
> > > >> is in the Global Options - Printing options? It seems to me it
> > > >> belongs in the printer dialog. The code mentions it's for
> > > >> "backward compatibility". I'm thinking to remove it from the
> > > >> Printing options since I've added the same setting to the new
> > > >> printer dialog.
> > > >>
> > > >> Thanks,
> > > >>
> > > >> Dale
> > > >>
> > > >>
> > > >>
> > > >> On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust
> > > >> <[hidden email]> wrote:  
> > > >>> I think you should pick the date for the next release, since
> > > >>> you are doing most of the work on it right now.
> > > >>>
> > > >>> Hopefully Vampire is listening and will release it around your
> > > >>> desired schedule.
> > > >>>
> > > >>>
> > > >>> On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson
> > > >>> <[hidden email]> wrote:  
> > > >>>> What's the planned date for the next release? There are a
> > > >>>> couple of things I'm working on, just want to see if I have
> > > >>>> time to complete them or wait until later. One is cleaning
> > > >>>> up all (most? many? at least a few of) the compiler warnings
> > > >>>> about the unchecked generic usage, the other is revamping
> > > >>>> the printing system.
> > > >>>>
> > > >>>> Thanks,
> > > >>>>
> > > >>>> Dale
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>> ------------------------------------------------------------
> > > >>>> ------------------
> > > >>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T
> > > >>>> Park in San Francisco, CA to explore cutting-edge tech and
> > > >>>> listen to tech luminaries present their vision of the
> > > >>>> future. This family event has something for everyone,
> > > >>>> including kids. Get more information and register today.
> > > >>>> http://sdm.link/attshape --
> > > >>>> -----------------------------------------------
> > > >>>> jEdit Developers' List
> > > >>>> [hidden email]
> > > >>>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
> > > >>>>
> > > >>>>  
> > > >>>  
> > > >>  
> > > >  
> >
> >  


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] *** SPAM *** Re: Next release?

Dale Anson-3
Thanks, but I think I already have them fixed. I did have the page breaks set to "on" by default, I've changed that so the default is off. I haven't checked any of these fixes in yet, but will probably do so later today or tomorrow.



On Sun, Aug 14, 2016 at 11:01 AM, Eric Le Lay <[hidden email]> wrote:
Hi Dale,

I can investigate the exceptions, if you want. It's easier to debug
when one gets them in the first place ;-)

The settings in Text Area is correct. It reads "Page breaks" and all.
How could I miss it?

Cheers,
Eric

Le Sun, 14 Aug 2016 10:11:01 -0600,
Dale Anson <[hidden email]> a écrit :


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] Next release?

Dale Anson-3
In reply to this post by Dale Anson-3
Eric, I've fixed all the printing issues you mentioned, plus a couple of others. The page break markers in the text area should now be the same as what is actually printed, it turns out there were some math errors that were causing them to be different. Let me know if you see any more issues,

Thanks,

Dale



On Sun, Aug 14, 2016 at 10:11 AM, Dale Anson <[hidden email]> wrote:
Hi Eric,

I'm back in town and have inserted some comments below:

On Thu, Aug 11, 2016 at 2:58 PM, Eric Le Lay <[hidden email]> wrote:
Hi Dale,

great work improving the print system!
It prints well to PostScript on ArchLinux, java 1.8, unconfigured print
system.

I Tested it a bit and got 3 exceptions.

But first some remarks:
The page marker (horizontal blue 1px line) is distracting.
Is there an option to turn it off?

Global Options - Text Area has a setting for on and off.
 
I'd like a buffer option (or maybe an action to put in the toolbar) to
show page markers, and when it's active it recalculates on input, not on
buffer switch like ATM.

Good idea. I started with recalculating on input, but it really slowed jEdit to a crawl. I'll look into optimizing this some more. 

Also when starting with a new buffer, a page marker is drawn on top of
the first line: this should be avoided.

I agree, I'll fix this.
 

Last, there seems to be an error by one line in the page marker for
the last page. Steps to reproduce:
1) in a new buffer, type 6 lines of dummy text
2) switch to another buffer and back to the buffer (seems the way to
trigger page marker recalculation)
3) I get the page marker  between the 5th and 6th line,
while I'd expect it below the 6th (or not at all, since it's the last).

I'm not sure this is fixable, but I want to look into this part some more. I've noticed the same, I think it's a combination of different graphics context, margin settings, and print versus text area font and font size. Also, the error is not always by one, sometimes it's by 6 or 7 or more. Regardless, this needs some work.
 

On my system (PS output), the page footer (1 line text on gray
background) collides with the last line of each page.
The page marker is also not reliable: actual page cut is
between line 52 and 53, while the page marker is between line 47 and 48.
And last line number collides with previous line number on the last
page. Do you see this as well?

Good catch, I didn't test the header and footer much.

Thanks for the rest, I'll post back when all of these are fixed.

One other thing I've noticed is if the file has soft wrap on and a line spans several screen lines and the page break happens to be at that line, all the screen lines get the page break marker. Only the last one should be marked.
 

Now, the exceptions:
I get an exception in BufferPrintable1_7 at startup:

22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:
java.lang.NullPointerException 22:08:01 [AWT-EventQueue-0] [error]
ExtensionManager:  at
org.gjt.sp.jedit.print.BufferPrintable1_7.<init>(BufferPrintable1_7.java:93)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:191)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(PageBreakExtension.java:72)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.print.PageBreakExtension.paintValidLine(PageBreakExtension.java:135)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.textarea.TextAreaExtension.paintScreenLineRange(TextAreaExtension.java:70)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRange(ExtensionManager.java:157)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRange(ExtensionManager.java:117)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.textarea.TextAreaPainter.paint(TextAreaPainter.java:904)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
org.gjt.sp.jedit.gui.DockableWindowManagerImpl.paintChildren(DockableWindowManagerImpl.java:667)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JLayeredPane.paint(JLayeredPane.java:586) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paintToOffscreen(JComponent.java:5217) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:290)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.paint(RepaintManager.java:1272) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.JComponent.paint(JComponent.java:1042) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.Container.paint(Container.java:1975) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.Window.paint(Window.java:3904) 22:08:01 [AWT-EventQueue-0]
[error] ExtensionManager:  at
javax.swing.RepaintManager$4.run(RepaintManager.java:842) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager$4.run(RepaintManager.java:814) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.security.AccessController.doPrivileged(Native Method) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager.access$1200(RepaintManager.java:64) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue.access$500(EventQueue.java:97) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue$3.run(EventQueue.java:709) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue$3.run(EventQueue.java:703) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.security.AccessController.doPrivileged(Native Method) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:08:01
[AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

the format argument's underlying attribute map is empty at launch, so
format.get() returns null. I'd change the code to:

boolean color =
Chromaticity.COLOR.equals(format.get(Chromaticity.class));


I get a second exception at startup (a timing issue, because when I put
a breakpoint, gfx is non null):

22:19:49 [AWT-EventQueue-0] [error] EditBus: Exception while sending
message on EditBus: 22:19:49 [AWT-EventQueue-0] [error] EditBus:
java.lang.NullPointerException 22:19:49 [AWT-EventQueue-0] [error]
EditBus:  at
org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(BufferPrintable1_7.java:208)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:203)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:192)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(PageBreakExtension.java:72)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(PageBreakExtension.java:89)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:140) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditPane.bufferRemoved(EditPane.java:718) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.bufferset.BufferSet.removeBuffer(BufferSet.java:348)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.bufferset.BufferSetManager._removeBuffer(BufferSetManager.java:324)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.bufferset.BufferSetManager.removeBuffer(BufferSetManager.java:278)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.bufferset.BufferSet.addBufferAt(BufferSet.java:143)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.View.restoreSplitConfig(View.java:1825) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.View.setSplitConfig(View.java:891) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.View.<init>(View.java:1360) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.jEdit.newView(jEdit.java:2612) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.endElement(PerspectiveManager.java:363)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidator.endNamespaceScope(XMLNSDTDValidator.java:266)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2005)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:879)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:140) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.PerspectiveManager.loadPerspective(PerspectiveManager.java:107)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.jEdit$9.run(jEdit.java:4253) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.access$500(EventQueue.java:97) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$3.run(EventQueue.java:709) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$3.run(EventQueue.java:703) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.security.AccessController.doPrivileged(Native Method) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:19:49
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

When I load a file, I get:
22:26:25 [AWT-EventQueue-0] [error] EditBus: Exception while sending
message on EditBus: 22:26:25 [AWT-EventQueue-0] [error] EditBus:
java.lang.NullPointerException 22:26:25 [AWT-EventQueue-0] [error]
EditBus:  at org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1727)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.java:1377)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(BufferPrintable1_7.java:291)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:203)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:192)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(PageBreakExtension.java:72)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(PageBreakExtension.java:89)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1713) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1620) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.browser.VFSBrowser.filesActivated(VFSBrowser.java:1236)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
org.gjt.sp.jedit.browser.BrowserView$TableMouseHandler.mouseClicked(BrowserView.java:561)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.processMouseEvent(Component.java:6536) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
javax.swing.JComponent.processMouseEvent(JComponent.java:3324) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.processEvent(Component.java:6298) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Container.processEvent(Container.java:2236) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.dispatchEventImpl(Component.java:4889) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Container.dispatchEventImpl(Container.java:2294) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.Container.dispatchEventImpl(Container.java:2280) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Window.dispatchEventImpl(Window.java:2746) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.access$500(EventQueue.java:97) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$3.run(EventQueue.java:709) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$3.run(EventQueue.java:703) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.security.AccessController.doPrivileged(Native Method) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$4.run(EventQueue.java:731) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue$4.run(EventQueue.java:729) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.security.AccessController.doPrivileged(Native Method) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventQueue.dispatchEvent(EventQueue.java:728) 22:26:25
[AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

I'll be away tomorrow and Saturday, but will be back on Sunday if you
have questions to debug this...

Thanks,
Eric

Le Wed, 10 Aug 2016 17:04:09 -0600,
Dale Anson <[hidden email]> a écrit :

> Sounds good to me. I think I'm about done with revamping the printing
> stuff, it's working well on my two printers. I'd appreciate it if
> others could try to print a few things and report any problems,
> especially on Windows, which I don't have anymore to test with.
>
> Dale
>
>
>
> On Mon, Jul 11, 2016 at 8:42 PM, Alan Ezust <[hidden email]>
> wrote:
>
> > We will wait until you are back from your travels before releasing
> > since we need some of your time to fix bugs and review patches
> > before the next jEdit release, which I am thinking should be called
> > 5.4, since it requires a newer
> > Java version (1.8).
> >
> > Shall we target an early September release for jEdit 5.4?
> >
> >
> >
> >
> >
> >
> > On Wed, Jun 29, 2016 at 4:33 PM, Dale Anson <[hidden email]>
> > wrote:
> >> At this point, the compiler warnings work is complete. I've done
> >> some work on the printing system, but I'm going to be traveling
> >> for most of July and won't have access to a printer to test.
> >>
> >> Does anyone on the list know why the option to print in color is
> >> in the Global Options - Printing options? It seems to me it
> >> belongs in the printer dialog. The code mentions it's for
> >> "backward compatibility". I'm thinking to remove it from the
> >> Printing options since I've added the same setting to the new
> >> printer dialog.
> >>
> >> Thanks,
> >>
> >> Dale
> >>
> >>
> >>
> >> On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust <[hidden email]>
> >> wrote:
> >>> I think you should pick the date for the next release, since you
> >>> are doing most of the work on it right now.
> >>>
> >>> Hopefully Vampire is listening and will release it around your
> >>> desired schedule.
> >>>
> >>>
> >>> On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson <[hidden email]>
> >>> wrote:
> >>>> What's the planned date for the next release? There are a couple
> >>>> of things I'm working on, just want to see if I have time to
> >>>> complete them or wait until later. One is cleaning up all (most?
> >>>> many? at least a few of) the compiler warnings about the
> >>>> unchecked generic usage, the other is revamping the printing
> >>>> system.
> >>>>
> >>>> Thanks,
> >>>>
> >>>> Dale
> >>>>
> >>>>
> >>>>
> >>>> ------------------------------------------------------------
> >>>> ------------------
> >>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park
> >>>> in San Francisco, CA to explore cutting-edge tech and listen to
> >>>> tech luminaries present their vision of the future. This family
> >>>> event has something for everyone, including kids. Get more
> >>>> information and register today. http://sdm.link/attshape
> >>>> --
> >>>> -----------------------------------------------
> >>>> jEdit Developers' List
> >>>> [hidden email]
> >>>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
> >>>>
> >>>>
> >>>
> >>
> >




------------------------------------------------------------------------------

--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] *** SPAM *** Re: Next release?

Eric Le Lay
Administrator
Looks good:
 - no more exceptions
 - no footer collapsed with last page line
 - page breaks off by default
 - first and last page break not drawn

Still an issue:
 - when validating the Page Setup dialog, it asks for a file to save to.
   And it writes nothing to it.
 - when I print jEdit's build.xml (to PS file) with A4 Portrait paper
   (default 12.7mm top&bottom margins), the top margin and header are
   missing on all pages (when viewed in evince). Can you reproduce
   that?
 - also, first page break is between line 46 and 47 in text area, while
   in default Letter Portrait I get up to line 70 on first page (and
   the footer right at the bottom of the page). I send it to you in a
   separate email.

Also, what's the relation between page setup and page breaks in the text
area? ATM page setup is not saved (see issue above),
but have you made it recompute page breaks?

Cheers,
Eric

Le Sun, 14 Aug 2016 16:57:12 -0600,
Dale Anson <[hidden email]> a écrit :

> Eric, I've fixed all the printing issues you mentioned, plus a couple
> of others. The page break markers in the text area should now be the
> same as what is actually printed, it turns out there were some math
> errors that were causing them to be different. Let me know if you see
> any more issues,
>
> Thanks,
>
> Dale
>
>
>
> On Sun, Aug 14, 2016 at 10:11 AM, Dale Anson <[hidden email]>
> wrote:
>
> > Hi Eric,
> >
> > I'm back in town and have inserted some comments below:
> >
> > On Thu, Aug 11, 2016 at 2:58 PM, Eric Le Lay
> > <[hidden email].  
> > net> wrote:  
> >  
> >> Hi Dale,
> >>
> >> great work improving the print system!
> >> It prints well to PostScript on ArchLinux, java 1.8, unconfigured
> >> print system.
> >>
> >> I Tested it a bit and got 3 exceptions.
> >>
> >> But first some remarks:
> >> The page marker (horizontal blue 1px line) is distracting.
> >> Is there an option to turn it off?
> >>  
> >
> > Global Options - Text Area has a setting for on and off.
> >
> >  
> >> I'd like a buffer option (or maybe an action to put in the
> >> toolbar) to show page markers, and when it's active it
> >> recalculates on input, not on buffer switch like ATM.
> >>  
> >
> > Good idea. I started with recalculating on input, but it really
> > slowed jEdit to a crawl. I'll look into optimizing this some more.
> >  
> >>
> >> Also when starting with a new buffer, a page marker is drawn on
> >> top of the first line: this should be avoided.
> >>  
> >
> > I agree, I'll fix this.
> >
> >  
> >>
> >> Last, there seems to be an error by one line in the page marker for
> >> the last page. Steps to reproduce:
> >> 1) in a new buffer, type 6 lines of dummy text
> >> 2) switch to another buffer and back to the buffer (seems the way
> >> to trigger page marker recalculation)
> >> 3) I get the page marker  between the 5th and 6th line,
> >> while I'd expect it below the 6th (or not at all, since it's the
> >> last).
> >
> > I'm not sure this is fixable, but I want to look into this part
> > some more. I've noticed the same, I think it's a combination of
> > different graphics context, margin settings, and print versus text
> > area font and font size. Also, the error is not always by one,
> > sometimes it's by 6 or 7 or more. Regardless, this needs some work.
> >
> >  
> >>
> >> On my system (PS output), the page footer (1 line text on gray
> >> background) collides with the last line of each page.
> >> The page marker is also not reliable: actual page cut is
> >> between line 52 and 53, while the page marker is between line 47
> >> and 48. And last line number collides with previous line number on
> >> the last page. Do you see this as well?
> >>  
> >
> > Good catch, I didn't test the header and footer much.
> >
> > Thanks for the rest, I'll post back when all of these are fixed.
> >
> > One other thing I've noticed is if the file has soft wrap on and a
> > line spans several screen lines and the page break happens to be at
> > that line, all the screen lines get the page break marker. Only the
> > last one should be marked.
> >
> >  
> >>
> >> Now, the exceptions:
> >> I get an exception in BufferPrintable1_7 at startup:
> >>
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:
> >> java.lang.NullPointerException 22:08:01 [AWT-EventQueue-0] [error]
> >> ExtensionManager:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.<init>(BufferPrint
> >> able1_7.java:93)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:191)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.paintValidLine(Pag
> >> eBreakExtension.java:135)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.TextAreaExtension.paintScreenLineR
> >> ange(TextAreaExtension.java:70)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >> nge(ExtensionManager.java:157)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >> nge(ExtensionManager.java:117)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.TextAreaPainter.paint(TextAreaPainter.java:904)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.gui.DockableWindowManagerImpl.paintChildren
> >> (DockableWindowManagerImpl.java:667)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JLayeredPane.paint(JLayeredPane.java:586) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.BufferStrategyPaintManager.paint(BufferStrategyP
> >> aintManager.java:290)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paint(RepaintManager.java:1272) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1042) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.Container.paint(Container.java:1975) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.Window.paint(Window.java:3904) 22:08:01 [AWT-EventQueue-0]
> >> [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$4.run(RepaintManager.java:842) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$4.run(RepaintManager.java:814) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$ProcessingRunnable.run(RepaintMan
> >> ager.java:1732)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> the format argument's underlying attribute map is empty at launch,
> >> so format.get() returns null. I'd change the code to:
> >>
> >> boolean color =
> >> Chromaticity.COLOR.equals(format.get(Chromaticity.class));
> >>
> >>
> >> I get a second exception at startup (a timing issue, because when
> >> I put a breakpoint, gfx is non null):
> >>
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus: Exception while
> >> sending message on EditBus: 22:19:49 [AWT-EventQueue-0] [error]
> >> EditBus: java.lang.NullPointerException 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >> ferPrintable1_7.java:208)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:203)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:192)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >> BreakExtension.java:89)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:140) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.bufferRemoved(EditPane.java:718) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSet.removeBuffer(BufferSet.java:348)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSetManager._removeBuffer(
> >> BufferSetManager.java:324)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSetManager.removeBuffer(Buf
> >> ferSetManager.java:278)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSet.addBufferAt(BufferSet.java:143)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.restoreSplitConfig(View.java:1825) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.setSplitConfig(View.java:891) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.<init>(View.java:1360) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.newView(jEdit.java:2612) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.
> >> endElement(PerspectiveManager.java:363)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >> .endElement(AbstractSAXParser.java:609)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidato
> >> r.endNamespaceScope(XMLNSDTDValidator.java:266)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >> handleEndElement(XMLDTDValidator.java:2005)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >> endElement(XMLDTDValidator.java:879)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >> cannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$
> >> FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm
> >> pl.next(XMLDocumentScannerImpl.java:602)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner
> >> Impl.next(XMLNSDocumentScannerImpl.java:112)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >> cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >> n.parse(XML11Configuration.java:841)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >> n.parse(XML11Configuration.java:770)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> >> XMLParser.java:141)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >> .parse(AbstractSAXParser.java:1213)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:140)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.PerspectiveManager.loadPerspective(Perspect
> >> iveManager.java:107)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit$9.run(jEdit.java:4253) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> When I load a file, I get:
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus: Exception while
> >> sending message on EditBus: 22:26:25 [AWT-EventQueue-0] [error]
> >> EditBus: java.lang.NullPointerException 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1727) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.java:1377)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >> ferPrintable1_7.java:291) 22:26:25 [AWT-EventQueue-0] [error]
> >> EditBus:  at org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:203)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:192)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >> BreakExtension.java:89)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1713) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1620) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.browser.VFSBrowser.filesActivated(VFSBrowser.java:1236)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.browser.BrowserView$TableMouseHandler.mouse
> >> Clicked(BrowserView.java:561)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.processMouseEvent(Component.java:6536) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.processEvent(Component.java:6298) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.processEvent(Container.java:2236) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEventImpl(Component.java:4889) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.dispatchEventImpl(Container.java:2294) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.dispatchEventImpl(Container.java:2280) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Window.dispatchEventImpl(Window.java:2746) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:86)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$4.run(EventQueue.java:731) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$4.run(EventQueue.java:729) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:728) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> I'll be away tomorrow and Saturday, but will be back on Sunday if
> >> you have questions to debug this...
> >>
> >> Thanks,
> >> Eric
> >>
> >> Le Wed, 10 Aug 2016 17:04:09 -0600,
> >> Dale Anson <[hidden email]> a écrit :
> >>  
> >> > Sounds good to me. I think I'm about done with revamping the
> >> > printing stuff, it's working well on my two printers. I'd
> >> > appreciate it if others could try to print a few things and
> >> > report any problems, especially on Windows, which I don't have
> >> > anymore to test with.
> >> >
> >> > Dale
> >> >
> >> >
> >> >
> >> > On Mon, Jul 11, 2016 at 8:42 PM, Alan Ezust
> >> > <[hidden email]> wrote:
> >> >  
> >> > > We will wait until you are back from your travels before
> >> > > releasing since we need some of your time to fix bugs and
> >> > > review patches before the next jEdit release, which I am
> >> > > thinking should be called 5.4, since it requires a newer
> >> > > Java version (1.8).
> >> > >
> >> > > Shall we target an early September release for jEdit 5.4?
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > On Wed, Jun 29, 2016 at 4:33 PM, Dale Anson
> >> > > <[hidden email]> wrote:  
> >> > >> At this point, the compiler warnings work is complete. I've
> >> > >> done some work on the printing system, but I'm going to be
> >> > >> traveling for most of July and won't have access to a printer
> >> > >> to test.
> >> > >>
> >> > >> Does anyone on the list know why the option to print in color
> >> > >> is in the Global Options - Printing options? It seems to me it
> >> > >> belongs in the printer dialog. The code mentions it's for
> >> > >> "backward compatibility". I'm thinking to remove it from the
> >> > >> Printing options since I've added the same setting to the new
> >> > >> printer dialog.
> >> > >>
> >> > >> Thanks,
> >> > >>
> >> > >> Dale
> >> > >>
> >> > >>
> >> > >>
> >> > >> On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust
> >> > >> <[hidden email]> wrote:  
> >> > >>> I think you should pick the date for the next release, since
> >> > >>> you are doing most of the work on it right now.
> >> > >>>
> >> > >>> Hopefully Vampire is listening and will release it around
> >> > >>> your desired schedule.
> >> > >>>
> >> > >>>
> >> > >>> On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson
> >> > >>> <[hidden email]> wrote:  
> >> > >>>> What's the planned date for the next release? There are a
> >> > >>>> couple of things I'm working on, just want to see if I have
> >> > >>>> time to complete them or wait until later. One is cleaning
> >> > >>>> up all (most? many? at least a few of) the compiler
> >> > >>>> warnings about the unchecked generic usage, the other is
> >> > >>>> revamping the printing system.
> >> > >>>>
> >> > >>>> Thanks,
> >> > >>>>
> >> > >>>> Dale
> >> > >>>>
> >> > >>>>
> >> > >>>>
> >> > >>>> ------------------------------------------------------------
> >> > >>>> ------------------
> >> > >>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T
> >> > >>>> Park in San Francisco, CA to explore cutting-edge tech and
> >> > >>>> listen to tech luminaries present their vision of the
> >> > >>>> future. This family event has something for everyone,
> >> > >>>> including kids. Get more information and register today.
> >> > >>>> http://sdm.link/attshape --
> >> > >>>> -----------------------------------------------
> >> > >>>> jEdit Developers' List
> >> > >>>> [hidden email]
> >> > >>>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
> >> > >>>>
> >> > >>>>  
> >> > >>>  
> >> > >>  
> >> > >  
> >>
> >>  
> >  


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] *** SPAM *** Re: Next release?

Dale Anson-3
"Still an issue:
 - when validating the Page Setup dialog, it asks for a file to save to.
   And it writes nothing to it."

Do you have only the postscript printer, no others? That would explain it and is an easy fix now that I see it.

" - when I print jEdit's build.xml (to PS file) with A4 Portrait paper
   (default 12.7mm top&bottom margins), the top margin and header are
   missing on all pages (when viewed in evince). Can you reproduce
   that?"

I don't see this, although I can't set the margins to 12.7mm. The units are set by the current locale, so since I'm in USA, I get inches. I used 0.5 in top and bottom, which should be close, and A4 paper size, and I do see both header and footer on all pages. I'll fake the locale to see if I can reproduce this one.

" - also, first page break is between line 46 and 47 in text area, while
   in default Letter Portrait I get up to line 70 on first page (and
   the footer right at the bottom of the page). I send it to you in a
   separate email."

Hmm. Looks good to me using the same 0.5 in margins and the A4 paper size, I get the first page break in the text area at line 58, and the same in the printer output. If I switch to 1 in margins on all sides, letter size paper, portrait, I do get one extra line printed on the first page, then all subsequent pages are off by one line. I see this every now and then, I thinks it's due to rounding in the calculations, but I haven't tracked it down yet. I haven't seen anything more than an off by one line error, though, not the 20+ you're seeing.

"Also, what's the relation between page setup and page breaks in the text
area? ATM page setup is not saved (see issue above),
but have you made it recompute page breaks?"

Good catch, I need to add that. 

Thanks for the help! I'll let you know when I have these fixed.

Dale




On Mon, Aug 15, 2016 at 3:35 AM, Eric Le Lay <[hidden email]> wrote:
Looks good:
 - no more exceptions
 - no footer collapsed with last page line
 - page breaks off by default
 - first and last page break not drawn

Still an issue:
 - when validating the Page Setup dialog, it asks for a file to save to.
   And it writes nothing to it.
 - when I print jEdit's build.xml (to PS file) with A4 Portrait paper
   (default 12.7mm top&bottom margins), the top margin and header are
   missing on all pages (when viewed in evince). Can you reproduce
   that?
 - also, first page break is between line 46 and 47 in text area, while
   in default Letter Portrait I get up to line 70 on first page (and
   the footer right at the bottom of the page). I send it to you in a
   separate email.

Also, what's the relation between page setup and page breaks in the text
area? ATM page setup is not saved (see issue above),
but have you made it recompute page breaks?

Cheers,
Eric

Le Sun, 14 Aug 2016 16:57:12 -0600,
Dale Anson <[hidden email]> a écrit :

> Eric, I've fixed all the printing issues you mentioned, plus a couple
> of others. The page break markers in the text area should now be the
> same as what is actually printed, it turns out there were some math
> errors that were causing them to be different. Let me know if you see
> any more issues,
>
> Thanks,
>
> Dale
>
>
>
> On Sun, Aug 14, 2016 at 10:11 AM, Dale Anson <[hidden email]>
> wrote:
>
> > Hi Eric,
> >
> > I'm back in town and have inserted some comments below:
> >
> > On Thu, Aug 11, 2016 at 2:58 PM, Eric Le Lay
> > <[hidden email].
> > net> wrote:
> >
> >> Hi Dale,
> >>
> >> great work improving the print system!
> >> It prints well to PostScript on ArchLinux, java 1.8, unconfigured
> >> print system.
> >>
> >> I Tested it a bit and got 3 exceptions.
> >>
> >> But first some remarks:
> >> The page marker (horizontal blue 1px line) is distracting.
> >> Is there an option to turn it off?
> >>
> >
> > Global Options - Text Area has a setting for on and off.
> >
> >
> >> I'd like a buffer option (or maybe an action to put in the
> >> toolbar) to show page markers, and when it's active it
> >> recalculates on input, not on buffer switch like ATM.
> >>
> >
> > Good idea. I started with recalculating on input, but it really
> > slowed jEdit to a crawl. I'll look into optimizing this some more.
> >
> >>
> >> Also when starting with a new buffer, a page marker is drawn on
> >> top of the first line: this should be avoided.
> >>
> >
> > I agree, I'll fix this.
> >
> >
> >>
> >> Last, there seems to be an error by one line in the page marker for
> >> the last page. Steps to reproduce:
> >> 1) in a new buffer, type 6 lines of dummy text
> >> 2) switch to another buffer and back to the buffer (seems the way
> >> to trigger page marker recalculation)
> >> 3) I get the page marker  between the 5th and 6th line,
> >> while I'd expect it below the 6th (or not at all, since it's the
> >> last).
> >
> > I'm not sure this is fixable, but I want to look into this part
> > some more. I've noticed the same, I think it's a combination of
> > different graphics context, margin settings, and print versus text
> > area font and font size. Also, the error is not always by one,
> > sometimes it's by 6 or 7 or more. Regardless, this needs some work.
> >
> >
> >>
> >> On my system (PS output), the page footer (1 line text on gray
> >> background) collides with the last line of each page.
> >> The page marker is also not reliable: actual page cut is
> >> between line 52 and 53, while the page marker is between line 47
> >> and 48. And last line number collides with previous line number on
> >> the last page. Do you see this as well?
> >>
> >
> > Good catch, I didn't test the header and footer much.
> >
> > Thanks for the rest, I'll post back when all of these are fixed.
> >
> > One other thing I've noticed is if the file has soft wrap on and a
> > line spans several screen lines and the page break happens to be at
> > that line, all the screen lines get the page break marker. Only the
> > last one should be marked.
> >
> >
> >>
> >> Now, the exceptions:
> >> I get an exception in BufferPrintable1_7 at startup:
> >>
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:
> >> java.lang.NullPointerException 22:08:01 [AWT-EventQueue-0] [error]
> >> ExtensionManager:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.<init>(BufferPrint
> >> able1_7.java:93)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:191)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.paintValidLine(Pag
> >> eBreakExtension.java:135)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.TextAreaExtension.paintScreenLineR
> >> ange(TextAreaExtension.java:70)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >> nge(ExtensionManager.java:157)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >> nge(ExtensionManager.java:117)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.TextAreaPainter.paint(TextAreaPainter.java:904)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.gui.DockableWindowManagerImpl.paintChildren
> >> (DockableWindowManagerImpl.java:667)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JLayeredPane.paint(JLayeredPane.java:586) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.BufferStrategyPaintManager.paint(BufferStrategyP
> >> aintManager.java:290)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paint(RepaintManager.java:1272) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1042) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.Container.paint(Container.java:1975) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.Window.paint(Window.java:3904) 22:08:01 [AWT-EventQueue-0]
> >> [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$4.run(RepaintManager.java:842) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$4.run(RepaintManager.java:814) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$ProcessingRunnable.run(RepaintMan
> >> ager.java:1732)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> the format argument's underlying attribute map is empty at launch,
> >> so format.get() returns null. I'd change the code to:
> >>
> >> boolean color =
> >> Chromaticity.COLOR.equals(format.get(Chromaticity.class));
> >>
> >>
> >> I get a second exception at startup (a timing issue, because when
> >> I put a breakpoint, gfx is non null):
> >>
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus: Exception while
> >> sending message on EditBus: 22:19:49 [AWT-EventQueue-0] [error]
> >> EditBus: java.lang.NullPointerException 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >> ferPrintable1_7.java:208)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:203)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:192)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >> BreakExtension.java:89)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:140) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.bufferRemoved(EditPane.java:718) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSet.removeBuffer(BufferSet.java:348)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSetManager._removeBuffer(
> >> BufferSetManager.java:324)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSetManager.removeBuffer(Buf
> >> ferSetManager.java:278)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSet.addBufferAt(BufferSet.java:143)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.restoreSplitConfig(View.java:1825) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.setSplitConfig(View.java:891) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.<init>(View.java:1360) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.newView(jEdit.java:2612) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.
> >> endElement(PerspectiveManager.java:363)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >> .endElement(AbstractSAXParser.java:609)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidato
> >> r.endNamespaceScope(XMLNSDTDValidator.java:266)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >> handleEndElement(XMLDTDValidator.java:2005)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >> endElement(XMLDTDValidator.java:879)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >> cannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$
> >> FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm
> >> pl.next(XMLDocumentScannerImpl.java:602)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner
> >> Impl.next(XMLNSDocumentScannerImpl.java:112)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >> cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >> n.parse(XML11Configuration.java:841)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >> n.parse(XML11Configuration.java:770)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> >> XMLParser.java:141)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >> .parse(AbstractSAXParser.java:1213)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:140)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.PerspectiveManager.loadPerspective(Perspect
> >> iveManager.java:107)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit$9.run(jEdit.java:4253) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> When I load a file, I get:
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus: Exception while
> >> sending message on EditBus: 22:26:25 [AWT-EventQueue-0] [error]
> >> EditBus: java.lang.NullPointerException 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1727) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.java:1377)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >> ferPrintable1_7.java:291) 22:26:25 [AWT-EventQueue-0] [error]
> >> EditBus:  at org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:203)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:192)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >> BreakExtension.java:89)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1713) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1620) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.browser.VFSBrowser.filesActivated(VFSBrowser.java:1236)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.browser.BrowserView$TableMouseHandler.mouse
> >> Clicked(BrowserView.java:561)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.processMouseEvent(Component.java:6536) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.processEvent(Component.java:6298) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.processEvent(Container.java:2236) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEventImpl(Component.java:4889) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.dispatchEventImpl(Container.java:2294) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.dispatchEventImpl(Container.java:2280) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Window.dispatchEventImpl(Window.java:2746) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:86)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$4.run(EventQueue.java:731) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$4.run(EventQueue.java:729) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:728) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> I'll be away tomorrow and Saturday, but will be back on Sunday if
> >> you have questions to debug this...
> >>
> >> Thanks,
> >> Eric
> >>
> >> Le Wed, 10 Aug 2016 17:04:09 -0600,
> >> Dale Anson <[hidden email]> a écrit :
> >>
> >> > Sounds good to me. I think I'm about done with revamping the
> >> > printing stuff, it's working well on my two printers. I'd
> >> > appreciate it if others could try to print a few things and
> >> > report any problems, especially on Windows, which I don't have
> >> > anymore to test with.
> >> >
> >> > Dale
> >> >
> >> >
> >> >
> >> > On Mon, Jul 11, 2016 at 8:42 PM, Alan Ezust
> >> > <[hidden email]> wrote:
> >> >
> >> > > We will wait until you are back from your travels before
> >> > > releasing since we need some of your time to fix bugs and
> >> > > review patches before the next jEdit release, which I am
> >> > > thinking should be called 5.4, since it requires a newer
> >> > > Java version (1.8).
> >> > >
> >> > > Shall we target an early September release for jEdit 5.4?
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > On Wed, Jun 29, 2016 at 4:33 PM, Dale Anson
> >> > > <[hidden email]> wrote:
> >> > >> At this point, the compiler warnings work is complete. I've
> >> > >> done some work on the printing system, but I'm going to be
> >> > >> traveling for most of July and won't have access to a printer
> >> > >> to test.
> >> > >>
> >> > >> Does anyone on the list know why the option to print in color
> >> > >> is in the Global Options - Printing options? It seems to me it
> >> > >> belongs in the printer dialog. The code mentions it's for
> >> > >> "backward compatibility". I'm thinking to remove it from the
> >> > >> Printing options since I've added the same setting to the new
> >> > >> printer dialog.
> >> > >>
> >> > >> Thanks,
> >> > >>
> >> > >> Dale
> >> > >>
> >> > >>
> >> > >>
> >> > >> On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust
> >> > >> <[hidden email]> wrote:
> >> > >>> I think you should pick the date for the next release, since
> >> > >>> you are doing most of the work on it right now.
> >> > >>>
> >> > >>> Hopefully Vampire is listening and will release it around
> >> > >>> your desired schedule.
> >> > >>>
> >> > >>>
> >> > >>> On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson
> >> > >>> <[hidden email]> wrote:
> >> > >>>> What's the planned date for the next release? There are a
> >> > >>>> couple of things I'm working on, just want to see if I have
> >> > >>>> time to complete them or wait until later. One is cleaning
> >> > >>>> up all (most? many? at least a few of) the compiler
> >> > >>>> warnings about the unchecked generic usage, the other is
> >> > >>>> revamping the printing system.
> >> > >>>>
> >> > >>>> Thanks,
> >> > >>>>
> >> > >>>> Dale
> >> > >>>>
> >> > >>>>
> >> > >>>>
> >> > >>>> ------------------------------------------------------------
> >> > >>>> ------------------
> >> > >>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T
> >> > >>>> Park in San Francisco, CA to explore cutting-edge tech and
> >> > >>>> listen to tech luminaries present their vision of the
> >> > >>>> future. This family event has something for everyone,
> >> > >>>> including kids. Get more information and register today.
> >> > >>>> http://sdm.link/attshape --
> >> > >>>> -----------------------------------------------
> >> > >>>> jEdit Developers' List
> >> > >>>> [hidden email]
> >> > >>>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
> >> > >>>>
> >> > >>>>
> >> > >>>
> >> > >>
> >> > >
> >>
> >>
> >



------------------------------------------------------------------------------

--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] Next release?

Eric Le Lay
Administrator
In reply to this post by Dale Anson-3
Dale,

the page breaks color was not effective. I've fixed
it in r24499.

I get this exception when I start jEdit without any open buffer,
then open some file (e.g. jEdit/build.xml).
Indeed the tokenMarker field is null.

15:30:34 [AWT-EventQueue-0] [error] EditBus: java.lang.NullPointerException
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1727)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.java:1377)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(BufferPrintable1_7.java:303)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:203)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:192)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(PageBreakExtension.java:70)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(PageBreakExtension.java:87)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditBus.send(EditBus.java:206)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:140)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditPane.bufferRemoved(EditPane.java:718)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.bufferset.BufferSet.removeBuffer(BufferSet.java:348)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.bufferset.BufferSetManager._removeBuffer(BufferSetManager.java:324)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.bufferset.BufferSetManager.removeBuffer(BufferSetManager.java:278)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.bufferset.BufferSet.addBufferAt(BufferSet.java:143)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.bufferset.BufferSet.addBuffer(BufferSet.java:77)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.bufferset.BufferSetManager$5.visit(BufferSetManager.java:223)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.View.visit(View.java:1307)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.jEdit.visit(jEdit.java:3067)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.bufferset.BufferSetManager.addBuffer(BufferSetManager.java:217)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1704)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1620)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.browser.VFSBrowser.filesActivated(VFSBrowser.java:1236)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.browser.BrowserView$TableMouseHandler.mouseClicked(BrowserView.java:561)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Component.processMouseEvent(Component.java:6536)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Component.processEvent(Component.java:6298)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Container.processEvent(Container.java:2236)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Component.dispatchEventImpl(Component.java:4889)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Container.dispatchEventImpl(Container.java:2294)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Component.dispatchEvent(Component.java:4711)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Container.dispatchEventImpl(Container.java:2280)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Window.dispatchEventImpl(Window.java:2746)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Component.dispatchEvent(Component.java:4711)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventQueue.access$500(EventQueue.java:97)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventQueue$3.run(EventQueue.java:709)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventQueue$3.run(EventQueue.java:703)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.security.AccessController.doPrivileged(Native Method)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventQueue$4.run(EventQueue.java:731)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventQueue$4.run(EventQueue.java:729)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.security.AccessController.doPrivileged(Native Method)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)


Cheers,

Le Sun, 14 Aug 2016 16:57:12 -0600,
Dale Anson <[hidden email]> a écrit :

> Eric, I've fixed all the printing issues you mentioned, plus a couple
> of others. The page break markers in the text area should now be the
> same as what is actually printed, it turns out there were some math
> errors that were causing them to be different. Let me know if you see
> any more issues,
>
> Thanks,
>
> Dale
>
>
>
> On Sun, Aug 14, 2016 at 10:11 AM, Dale Anson <[hidden email]>
> wrote:
>
> > Hi Eric,
> >
> > I'm back in town and have inserted some comments below:
> >
> > On Thu, Aug 11, 2016 at 2:58 PM, Eric Le Lay
> > <[hidden email].  
> > net> wrote:  
> >  
> >> Hi Dale,
> >>
> >> great work improving the print system!
> >> It prints well to PostScript on ArchLinux, java 1.8, unconfigured
> >> print system.
> >>
> >> I Tested it a bit and got 3 exceptions.
> >>
> >> But first some remarks:
> >> The page marker (horizontal blue 1px line) is distracting.
> >> Is there an option to turn it off?
> >>  
> >
> > Global Options - Text Area has a setting for on and off.
> >
> >  
> >> I'd like a buffer option (or maybe an action to put in the
> >> toolbar) to show page markers, and when it's active it
> >> recalculates on input, not on buffer switch like ATM.
> >>  
> >
> > Good idea. I started with recalculating on input, but it really
> > slowed jEdit to a crawl. I'll look into optimizing this some more.
> >  
> >>
> >> Also when starting with a new buffer, a page marker is drawn on
> >> top of the first line: this should be avoided.
> >>  
> >
> > I agree, I'll fix this.
> >
> >  
> >>
> >> Last, there seems to be an error by one line in the page marker for
> >> the last page. Steps to reproduce:
> >> 1) in a new buffer, type 6 lines of dummy text
> >> 2) switch to another buffer and back to the buffer (seems the way
> >> to trigger page marker recalculation)
> >> 3) I get the page marker  between the 5th and 6th line,
> >> while I'd expect it below the 6th (or not at all, since it's the
> >> last).
> >
> > I'm not sure this is fixable, but I want to look into this part
> > some more. I've noticed the same, I think it's a combination of
> > different graphics context, margin settings, and print versus text
> > area font and font size. Also, the error is not always by one,
> > sometimes it's by 6 or 7 or more. Regardless, this needs some work.
> >
> >  
> >>
> >> On my system (PS output), the page footer (1 line text on gray
> >> background) collides with the last line of each page.
> >> The page marker is also not reliable: actual page cut is
> >> between line 52 and 53, while the page marker is between line 47
> >> and 48. And last line number collides with previous line number on
> >> the last page. Do you see this as well?
> >>  
> >
> > Good catch, I didn't test the header and footer much.
> >
> > Thanks for the rest, I'll post back when all of these are fixed.
> >
> > One other thing I've noticed is if the file has soft wrap on and a
> > line spans several screen lines and the page break happens to be at
> > that line, all the screen lines get the page break marker. Only the
> > last one should be marked.
> >
> >  
> >>
> >> Now, the exceptions:
> >> I get an exception in BufferPrintable1_7 at startup:
> >>
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:
> >> java.lang.NullPointerException 22:08:01 [AWT-EventQueue-0] [error]
> >> ExtensionManager:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.<init>(BufferPrint
> >> able1_7.java:93)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:191)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.paintValidLine(Pag
> >> eBreakExtension.java:135)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.TextAreaExtension.paintScreenLineR
> >> ange(TextAreaExtension.java:70)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >> nge(ExtensionManager.java:157)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >> nge(ExtensionManager.java:117)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.TextAreaPainter.paint(TextAreaPainter.java:904)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.gui.DockableWindowManagerImpl.paintChildren
> >> (DockableWindowManagerImpl.java:667)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JLayeredPane.paint(JLayeredPane.java:586) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.BufferStrategyPaintManager.paint(BufferStrategyP
> >> aintManager.java:290)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paint(RepaintManager.java:1272) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1042) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.Container.paint(Container.java:1975) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.Window.paint(Window.java:3904) 22:08:01 [AWT-EventQueue-0]
> >> [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$4.run(RepaintManager.java:842) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$4.run(RepaintManager.java:814) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$ProcessingRunnable.run(RepaintMan
> >> ager.java:1732)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> the format argument's underlying attribute map is empty at launch,
> >> so format.get() returns null. I'd change the code to:
> >>
> >> boolean color =
> >> Chromaticity.COLOR.equals(format.get(Chromaticity.class));
> >>
> >>
> >> I get a second exception at startup (a timing issue, because when
> >> I put a breakpoint, gfx is non null):
> >>
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus: Exception while
> >> sending message on EditBus: 22:19:49 [AWT-EventQueue-0] [error]
> >> EditBus: java.lang.NullPointerException 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >> ferPrintable1_7.java:208)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:203)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:192)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >> BreakExtension.java:89)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:140) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.bufferRemoved(EditPane.java:718) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSet.removeBuffer(BufferSet.java:348)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSetManager._removeBuffer(
> >> BufferSetManager.java:324)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSetManager.removeBuffer(Buf
> >> ferSetManager.java:278)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSet.addBufferAt(BufferSet.java:143)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.restoreSplitConfig(View.java:1825) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.setSplitConfig(View.java:891) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.<init>(View.java:1360) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.newView(jEdit.java:2612) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.
> >> endElement(PerspectiveManager.java:363)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >> .endElement(AbstractSAXParser.java:609)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidato
> >> r.endNamespaceScope(XMLNSDTDValidator.java:266)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >> handleEndElement(XMLDTDValidator.java:2005)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >> endElement(XMLDTDValidator.java:879)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >> cannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$
> >> FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm
> >> pl.next(XMLDocumentScannerImpl.java:602)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner
> >> Impl.next(XMLNSDocumentScannerImpl.java:112)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >> cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >> n.parse(XML11Configuration.java:841)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >> n.parse(XML11Configuration.java:770)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> >> XMLParser.java:141)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >> .parse(AbstractSAXParser.java:1213)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:140)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.PerspectiveManager.loadPerspective(Perspect
> >> iveManager.java:107)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit$9.run(jEdit.java:4253) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> When I load a file, I get:
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus: Exception while
> >> sending message on EditBus: 22:26:25 [AWT-EventQueue-0] [error]
> >> EditBus: java.lang.NullPointerException 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1727) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.java:1377)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >> ferPrintable1_7.java:291) 22:26:25 [AWT-EventQueue-0] [error]
> >> EditBus:  at org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:203)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:192)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >> BreakExtension.java:89)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1713) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1620) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.browser.VFSBrowser.filesActivated(VFSBrowser.java:1236)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.browser.BrowserView$TableMouseHandler.mouse
> >> Clicked(BrowserView.java:561)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.processMouseEvent(Component.java:6536) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.processEvent(Component.java:6298) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.processEvent(Container.java:2236) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEventImpl(Component.java:4889) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.dispatchEventImpl(Container.java:2294) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.dispatchEventImpl(Container.java:2280) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Window.dispatchEventImpl(Window.java:2746) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:86)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$4.run(EventQueue.java:731) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$4.run(EventQueue.java:729) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:728) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> I'll be away tomorrow and Saturday, but will be back on Sunday if
> >> you have questions to debug this...
> >>
> >> Thanks,
> >> Eric
> >>
> >> Le Wed, 10 Aug 2016 17:04:09 -0600,
> >> Dale Anson <[hidden email]> a écrit :
> >>  
> >> > Sounds good to me. I think I'm about done with revamping the
> >> > printing stuff, it's working well on my two printers. I'd
> >> > appreciate it if others could try to print a few things and
> >> > report any problems, especially on Windows, which I don't have
> >> > anymore to test with.
> >> >
> >> > Dale
> >> >
> >> >
> >> >
> >> > On Mon, Jul 11, 2016 at 8:42 PM, Alan Ezust
> >> > <[hidden email]> wrote:
> >> >  
> >> > > We will wait until you are back from your travels before
> >> > > releasing since we need some of your time to fix bugs and
> >> > > review patches before the next jEdit release, which I am
> >> > > thinking should be called 5.4, since it requires a newer
> >> > > Java version (1.8).
> >> > >
> >> > > Shall we target an early September release for jEdit 5.4?
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > On Wed, Jun 29, 2016 at 4:33 PM, Dale Anson
> >> > > <[hidden email]> wrote:  
> >> > >> At this point, the compiler warnings work is complete. I've
> >> > >> done some work on the printing system, but I'm going to be
> >> > >> traveling for most of July and won't have access to a printer
> >> > >> to test.
> >> > >>
> >> > >> Does anyone on the list know why the option to print in color
> >> > >> is in the Global Options - Printing options? It seems to me it
> >> > >> belongs in the printer dialog. The code mentions it's for
> >> > >> "backward compatibility". I'm thinking to remove it from the
> >> > >> Printing options since I've added the same setting to the new
> >> > >> printer dialog.
> >> > >>
> >> > >> Thanks,
> >> > >>
> >> > >> Dale
> >> > >>
> >> > >>
> >> > >>
> >> > >> On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust
> >> > >> <[hidden email]> wrote:  
> >> > >>> I think you should pick the date for the next release, since
> >> > >>> you are doing most of the work on it right now.
> >> > >>>
> >> > >>> Hopefully Vampire is listening and will release it around
> >> > >>> your desired schedule.
> >> > >>>
> >> > >>>
> >> > >>> On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson
> >> > >>> <[hidden email]> wrote:  
> >> > >>>> What's the planned date for the next release? There are a
> >> > >>>> couple of things I'm working on, just want to see if I have
> >> > >>>> time to complete them or wait until later. One is cleaning
> >> > >>>> up all (most? many? at least a few of) the compiler
> >> > >>>> warnings about the unchecked generic usage, the other is
> >> > >>>> revamping the printing system.
> >> > >>>>
> >> > >>>> Thanks,
> >> > >>>>
> >> > >>>> Dale
> >> > >>>>
> >> > >>>>
> >> > >>>>
> >> > >>>> ------------------------------------------------------------
> >> > >>>> ------------------
> >> > >>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T
> >> > >>>> Park in San Francisco, CA to explore cutting-edge tech and
> >> > >>>> listen to tech luminaries present their vision of the
> >> > >>>> future. This family event has something for everyone,
> >> > >>>> including kids. Get more information and register today.
> >> > >>>> http://sdm.link/attshape --
> >> > >>>> -----------------------------------------------
> >> > >>>> jEdit Developers' List
> >> > >>>> [hidden email]
> >> > >>>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
> >> > >>>>
> >> > >>>>  
> >> > >>>  
> >> > >>  
> >> > >  
> >>
> >>  
> >  


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] Next release?

Dale Anson-3
I saw your check-in for the color fix, thanks!

I'll check on the exception, that's the same one you were getting before that I thought I'd fixed.

On Mon, Aug 15, 2016 at 7:48 AM, Eric Le Lay <[hidden email]> wrote:
Dale,

the page breaks color was not effective. I've fixed
it in r24499.

I get this exception when I start jEdit without any open buffer,
then open some file (e.g. jEdit/build.xml).
Indeed the tokenMarker field is null.

15:30:34 [AWT-EventQueue-0] [error] EditBus: java.lang.NullPointerException
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1727)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.java:1377)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(BufferPrintable1_7.java:303)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:203)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(BufferPrinter1_7.java:192)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(PageBreakExtension.java:70)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(PageBreakExtension.java:87)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditBus.send(EditBus.java:206)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:140)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.EditPane.bufferRemoved(EditPane.java:718)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.bufferset.BufferSet.removeBuffer(BufferSet.java:348)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.bufferset.BufferSetManager._removeBuffer(BufferSetManager.java:324)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.bufferset.BufferSetManager.removeBuffer(BufferSetManager.java:278)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.bufferset.BufferSet.addBufferAt(BufferSet.java:143)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.bufferset.BufferSet.addBuffer(BufferSet.java:77)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.bufferset.BufferSetManager$5.visit(BufferSetManager.java:223)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.View.visit(View.java:1307)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.jEdit.visit(jEdit.java:3067)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.bufferset.BufferSetManager.addBuffer(BufferSetManager.java:217)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1704)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1620)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.browser.VFSBrowser.filesActivated(VFSBrowser.java:1236)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at org.gjt.sp.jedit.browser.BrowserView$TableMouseHandler.mouseClicked(BrowserView.java:561)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Component.processMouseEvent(Component.java:6536)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Component.processEvent(Component.java:6298)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Container.processEvent(Container.java:2236)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Component.dispatchEventImpl(Component.java:4889)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Container.dispatchEventImpl(Container.java:2294)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Component.dispatchEvent(Component.java:4711)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Container.dispatchEventImpl(Container.java:2280)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Window.dispatchEventImpl(Window.java:2746)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.Component.dispatchEvent(Component.java:4711)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventQueue.access$500(EventQueue.java:97)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventQueue$3.run(EventQueue.java:709)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventQueue$3.run(EventQueue.java:703)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.security.AccessController.doPrivileged(Native Method)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventQueue$4.run(EventQueue.java:731)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventQueue$4.run(EventQueue.java:729)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.security.AccessController.doPrivileged(Native Method)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
15:30:34 [AWT-EventQueue-0] [error] EditBus:  at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)


Cheers,

Le Sun, 14 Aug 2016 16:57:12 -0600,
Dale Anson <[hidden email]> a écrit :

> Eric, I've fixed all the printing issues you mentioned, plus a couple
> of others. The page break markers in the text area should now be the
> same as what is actually printed, it turns out there were some math
> errors that were causing them to be different. Let me know if you see
> any more issues,
>
> Thanks,
>
> Dale
>
>
>
> On Sun, Aug 14, 2016 at 10:11 AM, Dale Anson <[hidden email]>
> wrote:
>
> > Hi Eric,
> >
> > I'm back in town and have inserted some comments below:
> >
> > On Thu, Aug 11, 2016 at 2:58 PM, Eric Le Lay
> > <[hidden email].
> > net> wrote:
> >
> >> Hi Dale,
> >>
> >> great work improving the print system!
> >> It prints well to PostScript on ArchLinux, java 1.8, unconfigured
> >> print system.
> >>
> >> I Tested it a bit and got 3 exceptions.
> >>
> >> But first some remarks:
> >> The page marker (horizontal blue 1px line) is distracting.
> >> Is there an option to turn it off?
> >>
> >
> > Global Options - Text Area has a setting for on and off.
> >
> >
> >> I'd like a buffer option (or maybe an action to put in the
> >> toolbar) to show page markers, and when it's active it
> >> recalculates on input, not on buffer switch like ATM.
> >>
> >
> > Good idea. I started with recalculating on input, but it really
> > slowed jEdit to a crawl. I'll look into optimizing this some more.
> >
> >>
> >> Also when starting with a new buffer, a page marker is drawn on
> >> top of the first line: this should be avoided.
> >>
> >
> > I agree, I'll fix this.
> >
> >
> >>
> >> Last, there seems to be an error by one line in the page marker for
> >> the last page. Steps to reproduce:
> >> 1) in a new buffer, type 6 lines of dummy text
> >> 2) switch to another buffer and back to the buffer (seems the way
> >> to trigger page marker recalculation)
> >> 3) I get the page marker  between the 5th and 6th line,
> >> while I'd expect it below the 6th (or not at all, since it's the
> >> last).
> >
> > I'm not sure this is fixable, but I want to look into this part
> > some more. I've noticed the same, I think it's a combination of
> > different graphics context, margin settings, and print versus text
> > area font and font size. Also, the error is not always by one,
> > sometimes it's by 6 or 7 or more. Regardless, this needs some work.
> >
> >
> >>
> >> On my system (PS output), the page footer (1 line text on gray
> >> background) collides with the last line of each page.
> >> The page marker is also not reliable: actual page cut is
> >> between line 52 and 53, while the page marker is between line 47
> >> and 48. And last line number collides with previous line number on
> >> the last page. Do you see this as well?
> >>
> >
> > Good catch, I didn't test the header and footer much.
> >
> > Thanks for the rest, I'll post back when all of these are fixed.
> >
> > One other thing I've noticed is if the file has soft wrap on and a
> > line spans several screen lines and the page break happens to be at
> > that line, all the screen lines get the page break marker. Only the
> > last one should be marked.
> >
> >
> >>
> >> Now, the exceptions:
> >> I get an exception in BufferPrintable1_7 at startup:
> >>
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:
> >> java.lang.NullPointerException 22:08:01 [AWT-EventQueue-0] [error]
> >> ExtensionManager:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.<init>(BufferPrint
> >> able1_7.java:93)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:191)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.paintValidLine(Pag
> >> eBreakExtension.java:135)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.TextAreaExtension.paintScreenLineR
> >> ange(TextAreaExtension.java:70)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >> nge(ExtensionManager.java:157)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >> nge(ExtensionManager.java:117)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.TextAreaPainter.paint(TextAreaPainter.java:904)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.gui.DockableWindowManagerImpl.paintChildren
> >> (DockableWindowManagerImpl.java:667)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JLayeredPane.paint(JLayeredPane.java:586) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.BufferStrategyPaintManager.paint(BufferStrategyP
> >> aintManager.java:290)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paint(RepaintManager.java:1272) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1042) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.Container.paint(Container.java:1975) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.Window.paint(Window.java:3904) 22:08:01 [AWT-EventQueue-0]
> >> [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$4.run(RepaintManager.java:842) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$4.run(RepaintManager.java:814) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$ProcessingRunnable.run(RepaintMan
> >> ager.java:1732)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> the format argument's underlying attribute map is empty at launch,
> >> so format.get() returns null. I'd change the code to:
> >>
> >> boolean color =
> >> Chromaticity.COLOR.equals(format.get(Chromaticity.class));
> >>
> >>
> >> I get a second exception at startup (a timing issue, because when
> >> I put a breakpoint, gfx is non null):
> >>
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus: Exception while
> >> sending message on EditBus: 22:19:49 [AWT-EventQueue-0] [error]
> >> EditBus: java.lang.NullPointerException 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >> ferPrintable1_7.java:208)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:203)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:192)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >> BreakExtension.java:89)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:140) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.bufferRemoved(EditPane.java:718) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSet.removeBuffer(BufferSet.java:348)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSetManager._removeBuffer(
> >> BufferSetManager.java:324)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSetManager.removeBuffer(Buf
> >> ferSetManager.java:278)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSet.addBufferAt(BufferSet.java:143)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.restoreSplitConfig(View.java:1825) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.setSplitConfig(View.java:891) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.<init>(View.java:1360) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.newView(jEdit.java:2612) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.
> >> endElement(PerspectiveManager.java:363)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >> .endElement(AbstractSAXParser.java:609)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidato
> >> r.endNamespaceScope(XMLNSDTDValidator.java:266)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >> handleEndElement(XMLDTDValidator.java:2005)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >> endElement(XMLDTDValidator.java:879)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >> cannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$
> >> FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm
> >> pl.next(XMLDocumentScannerImpl.java:602)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner
> >> Impl.next(XMLNSDocumentScannerImpl.java:112)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >> cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >> n.parse(XML11Configuration.java:841)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >> n.parse(XML11Configuration.java:770)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> >> XMLParser.java:141)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >> .parse(AbstractSAXParser.java:1213)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:140)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.PerspectiveManager.loadPerspective(Perspect
> >> iveManager.java:107)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit$9.run(jEdit.java:4253) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> When I load a file, I get:
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus: Exception while
> >> sending message on EditBus: 22:26:25 [AWT-EventQueue-0] [error]
> >> EditBus: java.lang.NullPointerException 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1727) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.java:1377)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >> ferPrintable1_7.java:291) 22:26:25 [AWT-EventQueue-0] [error]
> >> EditBus:  at org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:203)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:192)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >> BreakExtension.java:89)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1713) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1620) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.browser.VFSBrowser.filesActivated(VFSBrowser.java:1236)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.browser.BrowserView$TableMouseHandler.mouse
> >> Clicked(BrowserView.java:561)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.processMouseEvent(Component.java:6536) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.processEvent(Component.java:6298) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.processEvent(Container.java:2236) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEventImpl(Component.java:4889) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.dispatchEventImpl(Container.java:2294) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.dispatchEventImpl(Container.java:2280) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Window.dispatchEventImpl(Window.java:2746) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:86)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$4.run(EventQueue.java:731) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$4.run(EventQueue.java:729) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:728) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> I'll be away tomorrow and Saturday, but will be back on Sunday if
> >> you have questions to debug this...
> >>
> >> Thanks,
> >> Eric
> >>
> >> Le Wed, 10 Aug 2016 17:04:09 -0600,
> >> Dale Anson <[hidden email]> a écrit :
> >>
> >> > Sounds good to me. I think I'm about done with revamping the
> >> > printing stuff, it's working well on my two printers. I'd
> >> > appreciate it if others could try to print a few things and
> >> > report any problems, especially on Windows, which I don't have
> >> > anymore to test with.
> >> >
> >> > Dale
> >> >
> >> >
> >> >
> >> > On Mon, Jul 11, 2016 at 8:42 PM, Alan Ezust
> >> > <[hidden email]> wrote:
> >> >
> >> > > We will wait until you are back from your travels before
> >> > > releasing since we need some of your time to fix bugs and
> >> > > review patches before the next jEdit release, which I am
> >> > > thinking should be called 5.4, since it requires a newer
> >> > > Java version (1.8).
> >> > >
> >> > > Shall we target an early September release for jEdit 5.4?
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > On Wed, Jun 29, 2016 at 4:33 PM, Dale Anson
> >> > > <[hidden email]> wrote:
> >> > >> At this point, the compiler warnings work is complete. I've
> >> > >> done some work on the printing system, but I'm going to be
> >> > >> traveling for most of July and won't have access to a printer
> >> > >> to test.
> >> > >>
> >> > >> Does anyone on the list know why the option to print in color
> >> > >> is in the Global Options - Printing options? It seems to me it
> >> > >> belongs in the printer dialog. The code mentions it's for
> >> > >> "backward compatibility". I'm thinking to remove it from the
> >> > >> Printing options since I've added the same setting to the new
> >> > >> printer dialog.
> >> > >>
> >> > >> Thanks,
> >> > >>
> >> > >> Dale
> >> > >>
> >> > >>
> >> > >>
> >> > >> On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust
> >> > >> <[hidden email]> wrote:
> >> > >>> I think you should pick the date for the next release, since
> >> > >>> you are doing most of the work on it right now.
> >> > >>>
> >> > >>> Hopefully Vampire is listening and will release it around
> >> > >>> your desired schedule.
> >> > >>>
> >> > >>>
> >> > >>> On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson
> >> > >>> <[hidden email]> wrote:
> >> > >>>> What's the planned date for the next release? There are a
> >> > >>>> couple of things I'm working on, just want to see if I have
> >> > >>>> time to complete them or wait until later. One is cleaning
> >> > >>>> up all (most? many? at least a few of) the compiler
> >> > >>>> warnings about the unchecked generic usage, the other is
> >> > >>>> revamping the printing system.
> >> > >>>>
> >> > >>>> Thanks,
> >> > >>>>
> >> > >>>> Dale
> >> > >>>>
> >> > >>>>
> >> > >>>>
> >> > >>>> ------------------------------------------------------------
> >> > >>>> ------------------
> >> > >>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T
> >> > >>>> Park in San Francisco, CA to explore cutting-edge tech and
> >> > >>>> listen to tech luminaries present their vision of the
> >> > >>>> future. This family event has something for everyone,
> >> > >>>> including kids. Get more information and register today.
> >> > >>>> http://sdm.link/attshape --
> >> > >>>> -----------------------------------------------
> >> > >>>> jEdit Developers' List
> >> > >>>> [hidden email]
> >> > >>>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
> >> > >>>>
> >> > >>>>
> >> > >>>
> >> > >>
> >> > >
> >>
> >>
> >



------------------------------------------------------------------------------

--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] *** SPAM *** Re: Next release?

Dale Anson-3
In reply to this post by Dale Anson-3
Eric, would you give the printing another run though? I think I have it fixed so the page break marker in the text area matches up exactly with the pages coming out of the printer. It turns out I needed to set some rendering hints and provide an affine transform to get the math to work out correctly.

Thanks,

Dale



On Mon, Aug 15, 2016 at 7:41 AM, Dale Anson <[hidden email]> wrote:
"Still an issue:
 - when validating the Page Setup dialog, it asks for a file to save to.
   And it writes nothing to it."

Do you have only the postscript printer, no others? That would explain it and is an easy fix now that I see it.

" - when I print jEdit's build.xml (to PS file) with A4 Portrait paper
   (default 12.7mm top&bottom margins), the top margin and header are
   missing on all pages (when viewed in evince). Can you reproduce
   that?"

I don't see this, although I can't set the margins to 12.7mm. The units are set by the current locale, so since I'm in USA, I get inches. I used 0.5 in top and bottom, which should be close, and A4 paper size, and I do see both header and footer on all pages. I'll fake the locale to see if I can reproduce this one.

" - also, first page break is between line 46 and 47 in text area, while
   in default Letter Portrait I get up to line 70 on first page (and
   the footer right at the bottom of the page). I send it to you in a
   separate email."

Hmm. Looks good to me using the same 0.5 in margins and the A4 paper size, I get the first page break in the text area at line 58, and the same in the printer output. If I switch to 1 in margins on all sides, letter size paper, portrait, I do get one extra line printed on the first page, then all subsequent pages are off by one line. I see this every now and then, I thinks it's due to rounding in the calculations, but I haven't tracked it down yet. I haven't seen anything more than an off by one line error, though, not the 20+ you're seeing.

"Also, what's the relation between page setup and page breaks in the text
area? ATM page setup is not saved (see issue above),
but have you made it recompute page breaks?"

Good catch, I need to add that. 

Thanks for the help! I'll let you know when I have these fixed.

Dale




On Mon, Aug 15, 2016 at 3:35 AM, Eric Le Lay <[hidden email]> wrote:
Looks good:
 - no more exceptions
 - no footer collapsed with last page line
 - page breaks off by default
 - first and last page break not drawn

Still an issue:
 - when validating the Page Setup dialog, it asks for a file to save to.
   And it writes nothing to it.
 - when I print jEdit's build.xml (to PS file) with A4 Portrait paper
   (default 12.7mm top&bottom margins), the top margin and header are
   missing on all pages (when viewed in evince). Can you reproduce
   that?
 - also, first page break is between line 46 and 47 in text area, while
   in default Letter Portrait I get up to line 70 on first page (and
   the footer right at the bottom of the page). I send it to you in a
   separate email.

Also, what's the relation between page setup and page breaks in the text
area? ATM page setup is not saved (see issue above),
but have you made it recompute page breaks?

Cheers,
Eric

Le Sun, 14 Aug 2016 16:57:12 -0600,
Dale Anson <[hidden email]> a écrit :

> Eric, I've fixed all the printing issues you mentioned, plus a couple
> of others. The page break markers in the text area should now be the
> same as what is actually printed, it turns out there were some math
> errors that were causing them to be different. Let me know if you see
> any more issues,
>
> Thanks,
>
> Dale
>
>
>
> On Sun, Aug 14, 2016 at 10:11 AM, Dale Anson <[hidden email]>
> wrote:
>
> > Hi Eric,
> >
> > I'm back in town and have inserted some comments below:
> >
> > On Thu, Aug 11, 2016 at 2:58 PM, Eric Le Lay
> > <[hidden email].
> > net> wrote:
> >
> >> Hi Dale,
> >>
> >> great work improving the print system!
> >> It prints well to PostScript on ArchLinux, java 1.8, unconfigured
> >> print system.
> >>
> >> I Tested it a bit and got 3 exceptions.
> >>
> >> But first some remarks:
> >> The page marker (horizontal blue 1px line) is distracting.
> >> Is there an option to turn it off?
> >>
> >
> > Global Options - Text Area has a setting for on and off.
> >
> >
> >> I'd like a buffer option (or maybe an action to put in the
> >> toolbar) to show page markers, and when it's active it
> >> recalculates on input, not on buffer switch like ATM.
> >>
> >
> > Good idea. I started with recalculating on input, but it really
> > slowed jEdit to a crawl. I'll look into optimizing this some more.
> >
> >>
> >> Also when starting with a new buffer, a page marker is drawn on
> >> top of the first line: this should be avoided.
> >>
> >
> > I agree, I'll fix this.
> >
> >
> >>
> >> Last, there seems to be an error by one line in the page marker for
> >> the last page. Steps to reproduce:
> >> 1) in a new buffer, type 6 lines of dummy text
> >> 2) switch to another buffer and back to the buffer (seems the way
> >> to trigger page marker recalculation)
> >> 3) I get the page marker  between the 5th and 6th line,
> >> while I'd expect it below the 6th (or not at all, since it's the
> >> last).
> >
> > I'm not sure this is fixable, but I want to look into this part
> > some more. I've noticed the same, I think it's a combination of
> > different graphics context, margin settings, and print versus text
> > area font and font size. Also, the error is not always by one,
> > sometimes it's by 6 or 7 or more. Regardless, this needs some work.
> >
> >
> >>
> >> On my system (PS output), the page footer (1 line text on gray
> >> background) collides with the last line of each page.
> >> The page marker is also not reliable: actual page cut is
> >> between line 52 and 53, while the page marker is between line 47
> >> and 48. And last line number collides with previous line number on
> >> the last page. Do you see this as well?
> >>
> >
> > Good catch, I didn't test the header and footer much.
> >
> > Thanks for the rest, I'll post back when all of these are fixed.
> >
> > One other thing I've noticed is if the file has soft wrap on and a
> > line spans several screen lines and the page break happens to be at
> > that line, all the screen lines get the page break marker. Only the
> > last one should be marked.
> >
> >
> >>
> >> Now, the exceptions:
> >> I get an exception in BufferPrintable1_7 at startup:
> >>
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:
> >> java.lang.NullPointerException 22:08:01 [AWT-EventQueue-0] [error]
> >> ExtensionManager:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.<init>(BufferPrint
> >> able1_7.java:93)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:191)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.paintValidLine(Pag
> >> eBreakExtension.java:135)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.TextAreaExtension.paintScreenLineR
> >> ange(TextAreaExtension.java:70)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >> nge(ExtensionManager.java:157)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >> nge(ExtensionManager.java:117)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.TextAreaPainter.paint(TextAreaPainter.java:904)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.gui.DockableWindowManagerImpl.paintChildren
> >> (DockableWindowManagerImpl.java:667)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JLayeredPane.paint(JLayeredPane.java:586) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.BufferStrategyPaintManager.paint(BufferStrategyP
> >> aintManager.java:290)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paint(RepaintManager.java:1272) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1042) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.Container.paint(Container.java:1975) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.Window.paint(Window.java:3904) 22:08:01 [AWT-EventQueue-0]
> >> [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$4.run(RepaintManager.java:842) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$4.run(RepaintManager.java:814) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$ProcessingRunnable.run(RepaintMan
> >> ager.java:1732)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> the format argument's underlying attribute map is empty at launch,
> >> so format.get() returns null. I'd change the code to:
> >>
> >> boolean color =
> >> Chromaticity.COLOR.equals(format.get(Chromaticity.class));
> >>
> >>
> >> I get a second exception at startup (a timing issue, because when
> >> I put a breakpoint, gfx is non null):
> >>
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus: Exception while
> >> sending message on EditBus: 22:19:49 [AWT-EventQueue-0] [error]
> >> EditBus: java.lang.NullPointerException 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >> ferPrintable1_7.java:208)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:203)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:192)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >> BreakExtension.java:89)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:140) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.bufferRemoved(EditPane.java:718) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSet.removeBuffer(BufferSet.java:348)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSetManager._removeBuffer(
> >> BufferSetManager.java:324)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSetManager.removeBuffer(Buf
> >> ferSetManager.java:278)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSet.addBufferAt(BufferSet.java:143)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.restoreSplitConfig(View.java:1825) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.setSplitConfig(View.java:891) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.<init>(View.java:1360) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.newView(jEdit.java:2612) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.
> >> endElement(PerspectiveManager.java:363)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >> .endElement(AbstractSAXParser.java:609)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidato
> >> r.endNamespaceScope(XMLNSDTDValidator.java:266)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >> handleEndElement(XMLDTDValidator.java:2005)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >> endElement(XMLDTDValidator.java:879)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >> cannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$
> >> FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm
> >> pl.next(XMLDocumentScannerImpl.java:602)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner
> >> Impl.next(XMLNSDocumentScannerImpl.java:112)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >> cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >> n.parse(XML11Configuration.java:841)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >> n.parse(XML11Configuration.java:770)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> >> XMLParser.java:141)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >> .parse(AbstractSAXParser.java:1213)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:140)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.PerspectiveManager.loadPerspective(Perspect
> >> iveManager.java:107)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit$9.run(jEdit.java:4253) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> When I load a file, I get:
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus: Exception while
> >> sending message on EditBus: 22:26:25 [AWT-EventQueue-0] [error]
> >> EditBus: java.lang.NullPointerException 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1727) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.java:1377)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >> ferPrintable1_7.java:291) 22:26:25 [AWT-EventQueue-0] [error]
> >> EditBus:  at org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:203)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:192)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >> BreakExtension.java:89)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1713) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1620) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.browser.VFSBrowser.filesActivated(VFSBrowser.java:1236)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.browser.BrowserView$TableMouseHandler.mouse
> >> Clicked(BrowserView.java:561)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.processMouseEvent(Component.java:6536) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.processEvent(Component.java:6298) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.processEvent(Container.java:2236) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEventImpl(Component.java:4889) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.dispatchEventImpl(Container.java:2294) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.dispatchEventImpl(Container.java:2280) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Window.dispatchEventImpl(Window.java:2746) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:86)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$4.run(EventQueue.java:731) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$4.run(EventQueue.java:729) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:728) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> I'll be away tomorrow and Saturday, but will be back on Sunday if
> >> you have questions to debug this...
> >>
> >> Thanks,
> >> Eric
> >>
> >> Le Wed, 10 Aug 2016 17:04:09 -0600,
> >> Dale Anson <[hidden email]> a écrit :
> >>
> >> > Sounds good to me. I think I'm about done with revamping the
> >> > printing stuff, it's working well on my two printers. I'd
> >> > appreciate it if others could try to print a few things and
> >> > report any problems, especially on Windows, which I don't have
> >> > anymore to test with.
> >> >
> >> > Dale
> >> >
> >> >
> >> >
> >> > On Mon, Jul 11, 2016 at 8:42 PM, Alan Ezust
> >> > <[hidden email]> wrote:
> >> >
> >> > > We will wait until you are back from your travels before
> >> > > releasing since we need some of your time to fix bugs and
> >> > > review patches before the next jEdit release, which I am
> >> > > thinking should be called 5.4, since it requires a newer
> >> > > Java version (1.8).
> >> > >
> >> > > Shall we target an early September release for jEdit 5.4?
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > On Wed, Jun 29, 2016 at 4:33 PM, Dale Anson
> >> > > <[hidden email]> wrote:
> >> > >> At this point, the compiler warnings work is complete. I've
> >> > >> done some work on the printing system, but I'm going to be
> >> > >> traveling for most of July and won't have access to a printer
> >> > >> to test.
> >> > >>
> >> > >> Does anyone on the list know why the option to print in color
> >> > >> is in the Global Options - Printing options? It seems to me it
> >> > >> belongs in the printer dialog. The code mentions it's for
> >> > >> "backward compatibility". I'm thinking to remove it from the
> >> > >> Printing options since I've added the same setting to the new
> >> > >> printer dialog.
> >> > >>
> >> > >> Thanks,
> >> > >>
> >> > >> Dale
> >> > >>
> >> > >>
> >> > >>
> >> > >> On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust
> >> > >> <[hidden email]> wrote:
> >> > >>> I think you should pick the date for the next release, since
> >> > >>> you are doing most of the work on it right now.
> >> > >>>
> >> > >>> Hopefully Vampire is listening and will release it around
> >> > >>> your desired schedule.
> >> > >>>
> >> > >>>
> >> > >>> On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson
> >> > >>> <[hidden email]> wrote:
> >> > >>>> What's the planned date for the next release? There are a
> >> > >>>> couple of things I'm working on, just want to see if I have
> >> > >>>> time to complete them or wait until later. One is cleaning
> >> > >>>> up all (most? many? at least a few of) the compiler
> >> > >>>> warnings about the unchecked generic usage, the other is
> >> > >>>> revamping the printing system.
> >> > >>>>
> >> > >>>> Thanks,
> >> > >>>>
> >> > >>>> Dale
> >> > >>>>
> >> > >>>>
> >> > >>>>
> >> > >>>> ------------------------------------------------------------
> >> > >>>> ------------------
> >> > >>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T
> >> > >>>> Park in San Francisco, CA to explore cutting-edge tech and
> >> > >>>> listen to tech luminaries present their vision of the
> >> > >>>> future. This family event has something for everyone,
> >> > >>>> including kids. Get more information and register today.
> >> > >>>> http://sdm.link/attshape --
> >> > >>>> -----------------------------------------------
> >> > >>>> jEdit Developers' List
> >> > >>>> [hidden email]
> >> > >>>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
> >> > >>>>
> >> > >>>>
> >> > >>>
> >> > >>
> >> > >
> >>
> >>
> >



------------------------------------------------------------------------------

--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel



------------------------------------------------------------------------------

--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] *** SPAM *** Re: Next release?

Dale Anson-3
Oh, and I meant to mention that in the Global Options - Printing I have the "Print spacing workaround" turned on. I think this should be on by default since the javadoc says this is the fastest way to print characters. With it off, I get some overlap of characters. After some more testing, it might be worth removing that as an option and always use it.


On Wed, Aug 17, 2016 at 4:00 PM, Dale Anson <[hidden email]> wrote:
Eric, would you give the printing another run though? I think I have it fixed so the page break marker in the text area matches up exactly with the pages coming out of the printer. It turns out I needed to set some rendering hints and provide an affine transform to get the math to work out correctly.

Thanks,

Dale



On Mon, Aug 15, 2016 at 7:41 AM, Dale Anson <[hidden email]> wrote:
"Still an issue:
 - when validating the Page Setup dialog, it asks for a file to save to.
   And it writes nothing to it."

Do you have only the postscript printer, no others? That would explain it and is an easy fix now that I see it.

" - when I print jEdit's build.xml (to PS file) with A4 Portrait paper
   (default 12.7mm top&bottom margins), the top margin and header are
   missing on all pages (when viewed in evince). Can you reproduce
   that?"

I don't see this, although I can't set the margins to 12.7mm. The units are set by the current locale, so since I'm in USA, I get inches. I used 0.5 in top and bottom, which should be close, and A4 paper size, and I do see both header and footer on all pages. I'll fake the locale to see if I can reproduce this one.

" - also, first page break is between line 46 and 47 in text area, while
   in default Letter Portrait I get up to line 70 on first page (and
   the footer right at the bottom of the page). I send it to you in a
   separate email."

Hmm. Looks good to me using the same 0.5 in margins and the A4 paper size, I get the first page break in the text area at line 58, and the same in the printer output. If I switch to 1 in margins on all sides, letter size paper, portrait, I do get one extra line printed on the first page, then all subsequent pages are off by one line. I see this every now and then, I thinks it's due to rounding in the calculations, but I haven't tracked it down yet. I haven't seen anything more than an off by one line error, though, not the 20+ you're seeing.

"Also, what's the relation between page setup and page breaks in the text
area? ATM page setup is not saved (see issue above),
but have you made it recompute page breaks?"

Good catch, I need to add that. 

Thanks for the help! I'll let you know when I have these fixed.

Dale




On Mon, Aug 15, 2016 at 3:35 AM, Eric Le Lay <[hidden email]> wrote:
Looks good:
 - no more exceptions
 - no footer collapsed with last page line
 - page breaks off by default
 - first and last page break not drawn

Still an issue:
 - when validating the Page Setup dialog, it asks for a file to save to.
   And it writes nothing to it.
 - when I print jEdit's build.xml (to PS file) with A4 Portrait paper
   (default 12.7mm top&bottom margins), the top margin and header are
   missing on all pages (when viewed in evince). Can you reproduce
   that?
 - also, first page break is between line 46 and 47 in text area, while
   in default Letter Portrait I get up to line 70 on first page (and
   the footer right at the bottom of the page). I send it to you in a
   separate email.

Also, what's the relation between page setup and page breaks in the text
area? ATM page setup is not saved (see issue above),
but have you made it recompute page breaks?

Cheers,
Eric

Le Sun, 14 Aug 2016 16:57:12 -0600,
Dale Anson <[hidden email]> a écrit :

> Eric, I've fixed all the printing issues you mentioned, plus a couple
> of others. The page break markers in the text area should now be the
> same as what is actually printed, it turns out there were some math
> errors that were causing them to be different. Let me know if you see
> any more issues,
>
> Thanks,
>
> Dale
>
>
>
> On Sun, Aug 14, 2016 at 10:11 AM, Dale Anson <[hidden email]>
> wrote:
>
> > Hi Eric,
> >
> > I'm back in town and have inserted some comments below:
> >
> > On Thu, Aug 11, 2016 at 2:58 PM, Eric Le Lay
> > <[hidden email].
> > net> wrote:
> >
> >> Hi Dale,
> >>
> >> great work improving the print system!
> >> It prints well to PostScript on ArchLinux, java 1.8, unconfigured
> >> print system.
> >>
> >> I Tested it a bit and got 3 exceptions.
> >>
> >> But first some remarks:
> >> The page marker (horizontal blue 1px line) is distracting.
> >> Is there an option to turn it off?
> >>
> >
> > Global Options - Text Area has a setting for on and off.
> >
> >
> >> I'd like a buffer option (or maybe an action to put in the
> >> toolbar) to show page markers, and when it's active it
> >> recalculates on input, not on buffer switch like ATM.
> >>
> >
> > Good idea. I started with recalculating on input, but it really
> > slowed jEdit to a crawl. I'll look into optimizing this some more.
> >
> >>
> >> Also when starting with a new buffer, a page marker is drawn on
> >> top of the first line: this should be avoided.
> >>
> >
> > I agree, I'll fix this.
> >
> >
> >>
> >> Last, there seems to be an error by one line in the page marker for
> >> the last page. Steps to reproduce:
> >> 1) in a new buffer, type 6 lines of dummy text
> >> 2) switch to another buffer and back to the buffer (seems the way
> >> to trigger page marker recalculation)
> >> 3) I get the page marker  between the 5th and 6th line,
> >> while I'd expect it below the 6th (or not at all, since it's the
> >> last).
> >
> > I'm not sure this is fixable, but I want to look into this part
> > some more. I've noticed the same, I think it's a combination of
> > different graphics context, margin settings, and print versus text
> > area font and font size. Also, the error is not always by one,
> > sometimes it's by 6 or 7 or more. Regardless, this needs some work.
> >
> >
> >>
> >> On my system (PS output), the page footer (1 line text on gray
> >> background) collides with the last line of each page.
> >> The page marker is also not reliable: actual page cut is
> >> between line 52 and 53, while the page marker is between line 47
> >> and 48. And last line number collides with previous line number on
> >> the last page. Do you see this as well?
> >>
> >
> > Good catch, I didn't test the header and footer much.
> >
> > Thanks for the rest, I'll post back when all of these are fixed.
> >
> > One other thing I've noticed is if the file has soft wrap on and a
> > line spans several screen lines and the page break happens to be at
> > that line, all the screen lines get the page break marker. Only the
> > last one should be marked.
> >
> >
> >>
> >> Now, the exceptions:
> >> I get an exception in BufferPrintable1_7 at startup:
> >>
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:
> >> java.lang.NullPointerException 22:08:01 [AWT-EventQueue-0] [error]
> >> ExtensionManager:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.<init>(BufferPrint
> >> able1_7.java:93)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:191)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.paintValidLine(Pag
> >> eBreakExtension.java:135)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.TextAreaExtension.paintScreenLineR
> >> ange(TextAreaExtension.java:70)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >> nge(ExtensionManager.java:157)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >> nge(ExtensionManager.java:117)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.textarea.TextAreaPainter.paint(TextAreaPainter.java:904)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> org.gjt.sp.jedit.gui.DockableWindowManagerImpl.paintChildren
> >> (DockableWindowManagerImpl.java:667)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JLayeredPane.paint(JLayeredPane.java:586) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintChildren(JComponent.java:889) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.BufferStrategyPaintManager.paint(BufferStrategyP
> >> aintManager.java:290)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paint(RepaintManager.java:1272) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.JComponent.paint(JComponent.java:1042) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:79)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:116)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.Container.paint(Container.java:1975) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.Window.paint(Window.java:3904) 22:08:01 [AWT-EventQueue-0]
> >> [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$4.run(RepaintManager.java:842) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$4.run(RepaintManager.java:814) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> javax.swing.RepaintManager$ProcessingRunnable.run(RepaintMan
> >> ager.java:1732)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:08:01
> >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> the format argument's underlying attribute map is empty at launch,
> >> so format.get() returns null. I'd change the code to:
> >>
> >> boolean color =
> >> Chromaticity.COLOR.equals(format.get(Chromaticity.class));
> >>
> >>
> >> I get a second exception at startup (a timing issue, because when
> >> I put a breakpoint, gfx is non null):
> >>
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus: Exception while
> >> sending message on EditBus: 22:19:49 [AWT-EventQueue-0] [error]
> >> EditBus: java.lang.NullPointerException 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >> ferPrintable1_7.java:208)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:203)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:192)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >> BreakExtension.java:89)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:140) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.bufferRemoved(EditPane.java:718) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSet.removeBuffer(BufferSet.java:348)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSetManager._removeBuffer(
> >> BufferSetManager.java:324)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSetManager.removeBuffer(Buf
> >> ferSetManager.java:278)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.bufferset.BufferSet.addBufferAt(BufferSet.java:143)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.restoreSplitConfig(View.java:1825) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.setSplitConfig(View.java:891) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.View.<init>(View.java:1360) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.newView(jEdit.java:2612) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.
> >> endElement(PerspectiveManager.java:363)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >> .endElement(AbstractSAXParser.java:609)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidato
> >> r.endNamespaceScope(XMLNSDTDValidator.java:266)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >> handleEndElement(XMLDTDValidator.java:2005)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >> endElement(XMLDTDValidator.java:879)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >> cannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$
> >> FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2967)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm
> >> pl.next(XMLDocumentScannerImpl.java:602)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner
> >> Impl.next(XMLNSDocumentScannerImpl.java:112)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >> cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >> n.parse(XML11Configuration.java:841)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >> n.parse(XML11Configuration.java:770)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> >> XMLParser.java:141)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >> .parse(AbstractSAXParser.java:1213)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:140)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.PerspectiveManager.loadPerspective(Perspect
> >> iveManager.java:107)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit$9.run(jEdit.java:4253) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726) 22:19:49
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> When I load a file, I get:
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus: Exception while
> >> sending message on EditBus: 22:26:25 [AWT-EventQueue-0] [error]
> >> EditBus: java.lang.NullPointerException 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1727) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.java:1377)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >> ferPrintable1_7.java:291) 22:26:25 [AWT-EventQueue-0] [error]
> >> EditBus:  at org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:203)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >> BufferPrinter1_7.java:192)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >> BreakExtension.java:72)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >> BreakExtension.java:89)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1713) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1620) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.browser.VFSBrowser.filesActivated(VFSBrowser.java:1236)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> org.gjt.sp.jedit.browser.BrowserView$TableMouseHandler.mouse
> >> Clicked(BrowserView.java:561)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.processMouseEvent(Component.java:6536) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.processEvent(Component.java:6298) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.processEvent(Container.java:2236) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEventImpl(Component.java:4889) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.dispatchEventImpl(Container.java:2294) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Container.dispatchEventImpl(Container.java:2280) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Window.dispatchEventImpl(Window.java:2746) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.Component.dispatchEvent(Component.java:4711) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:86)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$4.run(EventQueue.java:731) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue$4.run(EventQueue.java:729) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.AccessController.doPrivileged(Native Method) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >> rsectionPrivilege(ProtectionDomain.java:76)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventQueue.dispatchEvent(EventQueue.java:728) 22:26:25
> >> [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >> patchThread.java:201)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >> chThread.java:116)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >> patchThread.java:105)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
> >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>
> >> I'll be away tomorrow and Saturday, but will be back on Sunday if
> >> you have questions to debug this...
> >>
> >> Thanks,
> >> Eric
> >>
> >> Le Wed, 10 Aug 2016 17:04:09 -0600,
> >> Dale Anson <[hidden email]> a écrit :
> >>
> >> > Sounds good to me. I think I'm about done with revamping the
> >> > printing stuff, it's working well on my two printers. I'd
> >> > appreciate it if others could try to print a few things and
> >> > report any problems, especially on Windows, which I don't have
> >> > anymore to test with.
> >> >
> >> > Dale
> >> >
> >> >
> >> >
> >> > On Mon, Jul 11, 2016 at 8:42 PM, Alan Ezust
> >> > <[hidden email]> wrote:
> >> >
> >> > > We will wait until you are back from your travels before
> >> > > releasing since we need some of your time to fix bugs and
> >> > > review patches before the next jEdit release, which I am
> >> > > thinking should be called 5.4, since it requires a newer
> >> > > Java version (1.8).
> >> > >
> >> > > Shall we target an early September release for jEdit 5.4?
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > On Wed, Jun 29, 2016 at 4:33 PM, Dale Anson
> >> > > <[hidden email]> wrote:
> >> > >> At this point, the compiler warnings work is complete. I've
> >> > >> done some work on the printing system, but I'm going to be
> >> > >> traveling for most of July and won't have access to a printer
> >> > >> to test.
> >> > >>
> >> > >> Does anyone on the list know why the option to print in color
> >> > >> is in the Global Options - Printing options? It seems to me it
> >> > >> belongs in the printer dialog. The code mentions it's for
> >> > >> "backward compatibility". I'm thinking to remove it from the
> >> > >> Printing options since I've added the same setting to the new
> >> > >> printer dialog.
> >> > >>
> >> > >> Thanks,
> >> > >>
> >> > >> Dale
> >> > >>
> >> > >>
> >> > >>
> >> > >> On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust
> >> > >> <[hidden email]> wrote:
> >> > >>> I think you should pick the date for the next release, since
> >> > >>> you are doing most of the work on it right now.
> >> > >>>
> >> > >>> Hopefully Vampire is listening and will release it around
> >> > >>> your desired schedule.
> >> > >>>
> >> > >>>
> >> > >>> On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson
> >> > >>> <[hidden email]> wrote:
> >> > >>>> What's the planned date for the next release? There are a
> >> > >>>> couple of things I'm working on, just want to see if I have
> >> > >>>> time to complete them or wait until later. One is cleaning
> >> > >>>> up all (most? many? at least a few of) the compiler
> >> > >>>> warnings about the unchecked generic usage, the other is
> >> > >>>> revamping the printing system.
> >> > >>>>
> >> > >>>> Thanks,
> >> > >>>>
> >> > >>>> Dale
> >> > >>>>
> >> > >>>>
> >> > >>>>
> >> > >>>> ------------------------------------------------------------
> >> > >>>> ------------------
> >> > >>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T
> >> > >>>> Park in San Francisco, CA to explore cutting-edge tech and
> >> > >>>> listen to tech luminaries present their vision of the
> >> > >>>> future. This family event has something for everyone,
> >> > >>>> including kids. Get more information and register today.
> >> > >>>> http://sdm.link/attshape --
> >> > >>>> -----------------------------------------------
> >> > >>>> jEdit Developers' List
> >> > >>>> [hidden email]
> >> > >>>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
> >> > >>>>
> >> > >>>>
> >> > >>>
> >> > >>
> >> > >
> >>
> >>
> >



------------------------------------------------------------------------------

--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel




------------------------------------------------------------------------------

--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] *** SPAM *** Re: Next release?

Eric Le Lay
Administrator
Great!


Print spacing workaround is required on my system as well
(otherwise I get the overlap of characters that you describe).

Margins are applied now: you fixed it.

I still have the NPE on markTokens when opening build.xml from empty jEdit.

I've modified the margins fields handling in PrinterDialog (due to the mm unit).
Nothing drastic, though:
 - 1mm margins: this was too small. I've set to 15mm or 1 inch,
   but what we should really do is base it on the printer available area.
   The code to obtain it is all there in recalculate, must be factored out
   somehow : maybe get acceptable values, given printer/paper/orientation
   in one method, then compare with what we've got in recalculate and just
   use the values in the constructor.

 - NumberFormatException on focus with the 1.0 default value because the
   NumericTextField is then set to Integer only for mm unit. I've refactored the
   initialisation code a bit to accommodate this and not repeat to much code.
    java.lang.NumberFormatException: For input string: "1.0"
     at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
     at java.lang.Integer.parseInt(Integer.java:580)
     at java.lang.Integer.valueOf(Integer.java:766)
     at org.gjt.sp.jedit.gui.NumericTextField.getValue(NumericTextField.java:105)
     at org.gjt.sp.jedit.print.PrinterDialog$PageSetupPanel.recalculate(PrinterDialog.java:1149)

 - ClassCastException when entering "10" as a margin value. The cast was indeed unnecessary: floatValue()
   is available in the Number subclass.
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Float
     at org.gjt.sp.jedit.print.PrinterDialog$PageSetupPanel.recalculate(PrinterDialog.java:1149)

Other issues:
 - the popup Invalid top margin doesn't play nicely (in my i3 window manager) with the focuslistener,
   provoking an infinite loop of popup showing, clicking OK, popup showing, ...
   when I enter 2mm and press tab.
 - paper/orientation selected values are not restored, even if I see that
   they are taken into account in the page break markers now.

Nitpicking:
 - unused top/left/...Margin fields in PageSetupPanel. Would you like to keep them?
 - I've added the @SuppressWarnings("serial") to the PrinterDialog class:
   we don't intend to serialize any of the ui.

Cheers,
Eric

Le Wed, 17 Aug 2016 16:02:58 -0600,
Dale Anson <[hidden email]> a écrit :

> Oh, and I meant to mention that in the Global Options - Printing I
> have the "Print spacing workaround" turned on. I think this should be
> on by default since the javadoc says this is the fastest way to print
> characters. With it off, I get some overlap of characters. After some
> more testing, it might be worth removing that as an option and always
> use it.
>
>
> On Wed, Aug 17, 2016 at 4:00 PM, Dale Anson <[hidden email]>
> wrote:
>
> > Eric, would you give the printing another run though? I think I
> > have it fixed so the page break marker in the text area matches up
> > exactly with the pages coming out of the printer. It turns out I
> > needed to set some rendering hints and provide an affine transform
> > to get the math to work out correctly.
> >
> > Thanks,
> >
> > Dale
> >
> >
> >
> > On Mon, Aug 15, 2016 at 7:41 AM, Dale Anson <[hidden email]>
> > wrote:
> >> "Still an issue:
> >>  - when validating the Page Setup dialog, it asks for a file to
> >> save to. And it writes nothing to it."
> >>
> >> Do you have only the postscript printer, no others? That would
> >> explain it and is an easy fix now that I see it.
> >>
> >> " - when I print jEdit's build.xml (to PS file) with A4 Portrait
> >> paper (default 12.7mm top&bottom margins), the top margin and
> >> header are missing on all pages (when viewed in evince). Can you
> >> reproduce that?"
> >>
> >> I don't see this, although I can't set the margins to 12.7mm. The
> >> units are set by the current locale, so since I'm in USA, I get
> >> inches. I used 0.5 in top and bottom, which should be close, and
> >> A4 paper size, and I do see both header and footer on all pages.
> >> I'll fake the locale to see if I can reproduce this one.
> >>
> >> " - also, first page break is between line 46 and 47 in text area,
> >> while in default Letter Portrait I get up to line 70 on first page
> >> (and the footer right at the bottom of the page). I send it to you
> >> in a separate email."
> >>
> >> Hmm. Looks good to me using the same 0.5 in margins and the A4
> >> paper size, I get the first page break in the text area at line
> >> 58, and the same in the printer output. If I switch to 1 in
> >> margins on all sides, letter size paper, portrait, I do get one
> >> extra line printed on the first page, then all subsequent pages
> >> are off by one line. I see this every now and then, I thinks it's
> >> due to rounding in the calculations, but I haven't tracked it down
> >> yet. I haven't seen anything more than an off by one line error,
> >> though, not the 20+ you're seeing.
> >>
> >> "Also, what's the relation between page setup and page breaks in
> >> the text area? ATM page setup is not saved (see issue above),
> >> but have you made it recompute page breaks?"
> >>
> >> Good catch, I need to add that.
> >>
> >> Thanks for the help! I'll let you know when I have these fixed.
> >>
> >> Dale
> >>
> >>
> >>
> >>
> >> On Mon, Aug 15, 2016 at 3:35 AM, Eric Le Lay <
> >> [hidden email]> wrote:
> >>  
> >>> Looks good:
> >>>  - no more exceptions
> >>>  - no footer collapsed with last page line
> >>>  - page breaks off by default
> >>>  - first and last page break not drawn
> >>>
> >>> Still an issue:
> >>>  - when validating the Page Setup dialog, it asks for a file to
> >>> save to. And it writes nothing to it.
> >>>  - when I print jEdit's build.xml (to PS file) with A4 Portrait
> >>> paper (default 12.7mm top&bottom margins), the top margin and
> >>> header are missing on all pages (when viewed in evince). Can you
> >>> reproduce that?
> >>>  - also, first page break is between line 46 and 47 in text area,
> >>> while in default Letter Portrait I get up to line 70 on first
> >>> page (and the footer right at the bottom of the page). I send it
> >>> to you in a separate email.
> >>>
> >>> Also, what's the relation between page setup and page breaks in
> >>> the text area? ATM page setup is not saved (see issue above),
> >>> but have you made it recompute page breaks?
> >>>
> >>> Cheers,
> >>> Eric
> >>>
> >>> Le Sun, 14 Aug 2016 16:57:12 -0600,
> >>> Dale Anson <[hidden email]> a écrit :
> >>>  
> >>> > Eric, I've fixed all the printing issues you mentioned, plus a
> >>> > couple of others. The page break markers in the text area
> >>> > should now be the same as what is actually printed, it turns
> >>> > out there were some math errors that were causing them to be
> >>> > different. Let me know if you see any more issues,
> >>> >
> >>> > Thanks,
> >>> >
> >>> > Dale
> >>> >
> >>> >
> >>> >
> >>> > On Sun, Aug 14, 2016 at 10:11 AM, Dale Anson
> >>> > <[hidden email]> wrote:
> >>> >  
> >>> > > Hi Eric,
> >>> > >
> >>> > > I'm back in town and have inserted some comments below:
> >>> > >
> >>> > > On Thu, Aug 11, 2016 at 2:58 PM, Eric Le Lay
> >>> > > <[hidden email].  
> >>> > > net> wrote:  
> >>> > >  
> >>> > >> Hi Dale,
> >>> > >>
> >>> > >> great work improving the print system!
> >>> > >> It prints well to PostScript on ArchLinux, java 1.8,
> >>> > >> unconfigured print system.
> >>> > >>
> >>> > >> I Tested it a bit and got 3 exceptions.
> >>> > >>
> >>> > >> But first some remarks:
> >>> > >> The page marker (horizontal blue 1px line) is distracting.
> >>> > >> Is there an option to turn it off?
> >>> > >>  
> >>> > >
> >>> > > Global Options - Text Area has a setting for on and off.
> >>> > >
> >>> > >  
> >>> > >> I'd like a buffer option (or maybe an action to put in the
> >>> > >> toolbar) to show page markers, and when it's active it
> >>> > >> recalculates on input, not on buffer switch like ATM.
> >>> > >>  
> >>> > >
> >>> > > Good idea. I started with recalculating on input, but it
> >>> > > really slowed jEdit to a crawl. I'll look into optimizing
> >>> > > this some more.
> >>> > >>
> >>> > >> Also when starting with a new buffer, a page marker is drawn
> >>> > >> on top of the first line: this should be avoided.
> >>> > >>  
> >>> > >
> >>> > > I agree, I'll fix this.
> >>> > >
> >>> > >  
> >>> > >>
> >>> > >> Last, there seems to be an error by one line in the page
> >>> > >> marker for the last page. Steps to reproduce:
> >>> > >> 1) in a new buffer, type 6 lines of dummy text
> >>> > >> 2) switch to another buffer and back to the buffer (seems
> >>> > >> the way to trigger page marker recalculation)
> >>> > >> 3) I get the page marker  between the 5th and 6th line,
> >>> > >> while I'd expect it below the 6th (or not at all, since it's
> >>> > >> the last).  
> >>> > >
> >>> > > I'm not sure this is fixable, but I want to look into this
> >>> > > part some more. I've noticed the same, I think it's a
> >>> > > combination of different graphics context, margin settings,
> >>> > > and print versus text area font and font size. Also, the
> >>> > > error is not always by one, sometimes it's by 6 or 7 or more.
> >>> > > Regardless, this needs some work.
> >>> > >
> >>> > >  
> >>> > >>
> >>> > >> On my system (PS output), the page footer (1 line text on
> >>> > >> gray background) collides with the last line of each page.
> >>> > >> The page marker is also not reliable: actual page cut is
> >>> > >> between line 52 and 53, while the page marker is between
> >>> > >> line 47 and 48. And last line number collides with previous
> >>> > >> line number on the last page. Do you see this as well?
> >>> > >>  
> >>> > >
> >>> > > Good catch, I didn't test the header and footer much.
> >>> > >
> >>> > > Thanks for the rest, I'll post back when all of these are
> >>> > > fixed.
> >>> > >
> >>> > > One other thing I've noticed is if the file has soft wrap on
> >>> > > and a line spans several screen lines and the page break
> >>> > > happens to be at that line, all the screen lines get the page
> >>> > > break marker. Only the last one should be marked.
> >>> > >
> >>> > >  
> >>> > >>
> >>> > >> Now, the exceptions:
> >>> > >> I get an exception in BufferPrintable1_7 at startup:
> >>> > >>
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:
> >>> > >> java.lang.NullPointerException 22:08:01 [AWT-EventQueue-0]
> >>> > >> [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrintable1_7.<init>(BufferPrint
> >>> > >> able1_7.java:93)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >>> > >> BufferPrinter1_7.java:191)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >>> > >> BreakExtension.java:72)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.print.PageBreakExtension.paintValidLine(Pag
> >>> > >> eBreakExtension.java:135)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.textarea.TextAreaExtension.paintScreenLineR
> >>> > >> ange(TextAreaExtension.java:70)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >>> > >> nge(ExtensionManager.java:157)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >>> > >> nge(ExtensionManager.java:117)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.textarea.TextAreaPainter.paint(TextAreaPain  
> >>> ter.java:904)  
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintChildren(JComponent.java:889)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintChildren(JComponent.java:889)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintChildren(JComponent.java:889)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintChildren(JComponent.java:889)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.gui.DockableWindowManagerImpl.paintChildren
> >>> > >> (DockableWindowManagerImpl.java:667)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintChildren(JComponent.java:889)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintChildren(JComponent.java:889)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintChildren(JComponent.java:889)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.BufferStrategyPaintManager.paint(BufferStrategyP
> >>> > >> aintManager.java:290)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager.paint(RepaintManager.java:1272)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paint(JComponent.java:1042) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback  
> >>> .java:39)  
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallb  
> >>> ack.java:79)  
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallbac  
> >>> k.java:116)  
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.Container.paint(Container.java:1975) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.Window.paint(Window.java:3904) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager$4.run(RepaintManager.java:842)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager$4.run(RepaintManager.java:814)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.security.AccessController.doPrivileged(Native Method)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >>> > >> rsectionPrivilege(ProtectionDomain.java:76)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.  
> >>> java:814)  
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.  
> >>> java:789)  
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManag  
> >>> er.java:738)  
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager$ProcessingRunnable.run(RepaintMan
> >>> > >> ager.java:1732)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.security.AccessController.doPrivileged(Native Method)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >>> > >> rsectionPrivilege(ProtectionDomain.java:76)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >>> > >> patchThread.java:201)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >>> > >> chThread.java:116)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >>> > >> patchThread.java:105)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.  
> >>> java:101)  
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.  
> >>> java:93)  
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>> > >>
> >>> > >> the format argument's underlying attribute map is empty at
> >>> > >> launch, so format.get() returns null. I'd change the code to:
> >>> > >>
> >>> > >> boolean color =
> >>> > >> Chromaticity.COLOR.equals(format.get(Chromaticity.class));
> >>> > >>
> >>> > >>
> >>> > >> I get a second exception at startup (a timing issue, because
> >>> > >> when I put a breakpoint, gfx is non null):
> >>> > >>
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus: Exception while
> >>> > >> sending message on EditBus: 22:19:49 [AWT-EventQueue-0]
> >>> > >> [error] EditBus: java.lang.NullPointerException 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >>> > >> ferPrintable1_7.java:208)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >>> > >> BufferPrinter1_7.java:203)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >>> > >> BufferPrinter1_7.java:192)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >>> > >> BreakExtension.java:72)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >>> > >> BreakExtension.java:89)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:140)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditPane.bufferRemoved(EditPane.java:718)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.bufferset.BufferSet.removeBuffer(BufferSet.  
> >>> java:348)  
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.bufferset.BufferSetManager._removeBuffer(
> >>> > >> BufferSetManager.java:324)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.bufferset.BufferSetManager.removeBuffer(Buf
> >>> > >> ferSetManager.java:278)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.bufferset.BufferSet.addBufferAt(BufferSet.j  
> >>> ava:143)  
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.View.restoreSplitConfig(View.java:1825)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.View.setSplitConfig(View.java:891) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.View.<init>(View.java:1360) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.jEdit.newView(jEdit.java:2612) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.
> >>> > >> endElement(PerspectiveManager.java:363)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >>> > >> .endElement(AbstractSAXParser.java:609)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidato
> >>> > >> r.endNamespaceScope(XMLNSDTDValidator.java:266)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >>> > >> handleEndElement(XMLDTDValidator.java:2005)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >>> > >> endElement(XMLDTDValidator.java:879)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >>> > >> cannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS  
> >>> cannerImpl$  
> >>> > >> FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.ja  
> >>> va:2967)  
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm
> >>> > >> pl.next(XMLDocumentScannerImpl.java:602)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner
> >>> > >> Impl.next(XMLNSDocumentScannerImpl.java:112)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >>> > >> cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >>> > >> n.parse(XML11Configuration.java:841)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >>> > >> n.parse(XML11Configuration.java:770)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> >>> > >> XMLParser.java:141)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >>> > >> .parse(AbstractSAXParser.java:1213)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:140)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.PerspectiveManager.loadPerspective(Perspect
> >>> > >> iveManager.java:107)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.jEdit$9.run(jEdit.java:4253) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.security.AccessController.doPrivileged(Native Method)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >>> > >> rsectionPrivilege(ProtectionDomain.java:76)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >>> > >> patchThread.java:201)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >>> > >> chThread.java:116)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >>> > >> patchThread.java:105)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.  
> >>> java:101)  
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.  
> >>> java:93)  
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>> > >>
> >>> > >> When I load a file, I get:
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus: Exception while
> >>> > >> sending message on EditBus: 22:26:25 [AWT-EventQueue-0]
> >>> > >> [error] EditBus: java.lang.NullPointerException 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1727) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.j  
> >>> ava:1377)  
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >>> > >> ferPrintable1_7.java:291) 22:26:25 [AWT-EventQueue-0] [error]
> >>> > >> EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges( BufferPrinter1_7.java:203)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >>> > >> BufferPrinter1_7.java:192)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >>> > >> BreakExtension.java:72)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >>> > >> BreakExtension.java:89)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1713) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1620) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.browser.VFSBrowser.filesActivated(VFSBrowse  
> >>> r.java:1236)  
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.browser.BrowserView$TableMouseHandler.mouse
> >>> > >> Clicked(BrowserView.java:561)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaste  
> >>> r.java:270)  
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Component.processMouseEvent(Component.java:6536)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Component.processEvent(Component.java:6298) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Container.processEvent(Container.java:2236) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Component.dispatchEventImpl(Component.java:4889)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Container.dispatchEventImpl(Container.java:2294)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Component.dispatchEvent(Component.java:4711)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.  
> >>> java:4888)  
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.LightweightDispatcher.processMouseEvent(Container.j  
> >>> ava:4534)  
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Container.dispatchEventImpl(Container.java:2280)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Window.dispatchEventImpl(Window.java:2746) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Component.dispatchEvent(Component.java:4711)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.security.AccessController.doPrivileged(Native Method)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >>> > >> rsectionPrivilege(ProtectionDomain.java:76)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >>> > >> rsectionPrivilege(ProtectionDomain.java:86)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue$4.run(EventQueue.java:731) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue$4.run(EventQueue.java:729) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.security.AccessController.doPrivileged(Native Method)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >>> > >> rsectionPrivilege(ProtectionDomain.java:76)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >>> > >> patchThread.java:201)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >>> > >> chThread.java:116)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >>> > >> patchThread.java:105)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.  
> >>> java:101)  
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.  
> >>> java:93)  
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>> > >>
> >>> > >> I'll be away tomorrow and Saturday, but will be back on
> >>> > >> Sunday if you have questions to debug this...
> >>> > >>
> >>> > >> Thanks,
> >>> > >> Eric
> >>> > >>
> >>> > >> Le Wed, 10 Aug 2016 17:04:09 -0600,
> >>> > >> Dale Anson <[hidden email]> a écrit :
> >>> > >>  
> >>> > >> > Sounds good to me. I think I'm about done with revamping
> >>> > >> > the printing stuff, it's working well on my two printers.
> >>> > >> > I'd appreciate it if others could try to print a few
> >>> > >> > things and report any problems, especially on Windows,
> >>> > >> > which I don't have anymore to test with.
> >>> > >> >
> >>> > >> > Dale
> >>> > >> >
> >>> > >> >
> >>> > >> >
> >>> > >> > On Mon, Jul 11, 2016 at 8:42 PM, Alan Ezust
> >>> > >> > <[hidden email]> wrote:
> >>> > >> >  
> >>> > >> > > We will wait until you are back from your travels before
> >>> > >> > > releasing since we need some of your time to fix bugs and
> >>> > >> > > review patches before the next jEdit release, which I am
> >>> > >> > > thinking should be called 5.4, since it requires a newer
> >>> > >> > > Java version (1.8).
> >>> > >> > >
> >>> > >> > > Shall we target an early September release for jEdit 5.4?
> >>> > >> > >
> >>> > >> > >
> >>> > >> > >
> >>> > >> > >
> >>> > >> > >
> >>> > >> > >
> >>> > >> > > On Wed, Jun 29, 2016 at 4:33 PM, Dale Anson
> >>> > >> > > <[hidden email]> wrote:  
> >>> > >> > >> At this point, the compiler warnings work is complete.
> >>> > >> > >> I've done some work on the printing system, but I'm
> >>> > >> > >> going to be traveling for most of July and won't have
> >>> > >> > >> access to a printer to test.
> >>> > >> > >>
> >>> > >> > >> Does anyone on the list know why the option to print in
> >>> > >> > >> color is in the Global Options - Printing options? It
> >>> > >> > >> seems to me it belongs in the printer dialog. The code
> >>> > >> > >> mentions it's for "backward compatibility". I'm
> >>> > >> > >> thinking to remove it from the Printing options since
> >>> > >> > >> I've added the same setting to the new printer dialog.
> >>> > >> > >>
> >>> > >> > >> Thanks,
> >>> > >> > >>
> >>> > >> > >> Dale
> >>> > >> > >>
> >>> > >> > >>
> >>> > >> > >>
> >>> > >> > >> On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust
> >>> > >> > >> <[hidden email]> wrote:  
> >>> > >> > >>> I think you should pick the date for the next release,
> >>> > >> > >>> since you are doing most of the work on it right now.
> >>> > >> > >>>
> >>> > >> > >>> Hopefully Vampire is listening and will release it
> >>> > >> > >>> around your desired schedule.
> >>> > >> > >>>
> >>> > >> > >>>
> >>> > >> > >>> On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson
> >>> > >> > >>> <[hidden email]> wrote:  
> >>> > >> > >>>> What's the planned date for the next release? There
> >>> > >> > >>>> are a couple of things I'm working on, just want to
> >>> > >> > >>>> see if I have time to complete them or wait until
> >>> > >> > >>>> later. One is cleaning up all (most? many? at least a
> >>> > >> > >>>> few of) the compiler warnings about the unchecked
> >>> > >> > >>>> generic usage, the other is revamping the printing
> >>> > >> > >>>> system.
> >>> > >> > >>>>
> >>> > >> > >>>> Thanks,
> >>> > >> > >>>>
> >>> > >> > >>>> Dale
> >>> > >> > >>>>
> >>> > >> > >>>>
> >>> > >> > >>>>
> >>> > >> > >>>> ------------------------------------------------------------
> >>> > >> > >>>> ------------------
> >>> > >> > >>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us
> >>> > >> > >>>> at AT&T Park in San Francisco, CA to explore
> >>> > >> > >>>> cutting-edge tech and listen to tech luminaries
> >>> > >> > >>>> present their vision of the future. This family event
> >>> > >> > >>>> has something for everyone, including kids. Get more
> >>> > >> > >>>> information and register today.
> >>> > >> > >>>> http://sdm.link/attshape --
> >>> > >> > >>>> ----------------------------------------------- jEdit
> >>> > >> > >>>> Developers' List [hidden email]
> >>> > >> > >>>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
> >>> > >> > >>>>
> >>> > >> > >>>>  
> >>> > >> > >>>  
> >>> > >> > >>  
> >>> > >> > >  
> >>> > >>
> >>> > >>  
> >>> > >  
> >>>
> >>>  
> >>
> >> ------------------------------------------------------------
> >> ------------------
> >>
> >> --
> >> -----------------------------------------------
> >> jEdit Developers' List
> >> [hidden email]
> >> https://lists.sourceforge.net/lists/listinfo/jedit-devel
> >>
> >>  
> >  


------------------------------------------------------------------------------
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] *** SPAM *** Re: Next release?

Dale Anson-3
Hi Eric, Thanks for taking a look and the comments and metric fixes. One day, maybe the USA will get with the rest of the world and go metric, but I have a feeling it won't be for a long time.  

I've inserted some comments and questions below:

On Thu, Aug 18, 2016 at 5:08 AM, Eric Le Lay <[hidden email]> wrote:
Great!


Print spacing workaround is required on my system as well
(otherwise I get the overlap of characters that you describe).

I'd like to see if this is true for people on Mac and Windows. I think it will be, and if it is, I think removing that option and making it always on would be the right thing to do. 

Margins are applied now: you fixed it.

I still have the NPE on markTokens when opening build.xml from empty jEdit.

I've seen this, then it's gone, it seems intermittent somehow. Obviously this needs more testing. 

I've modified the margins fields handling in PrinterDialog (due to the mm unit).
Nothing drastic, though:
 - 1mm margins: this was too small. I've set to 15mm or 1 inch,
   but what we should really do is base it on the printer available area.
   The code to obtain it is all there in recalculate, must be factored out
   somehow : maybe get acceptable values, given printer/paper/orientation
   in one method, then compare with what we've got in recalculate and just
   use the values in the constructor.

Good point, it should be easy to calculate defaults rather than just making them up. 

 - NumberFormatException on focus with the 1.0 default value because the
   NumericTextField is then set to Integer only for mm unit. I've refactored the
   initialisation code a bit to accommodate this and not repeat to much code.
    java.lang.NumberFormatException: For input string: "1.0"
     at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
     at java.lang.Integer.parseInt(Integer.java:580)
     at java.lang.Integer.valueOf(Integer.java:766)
     at org.gjt.sp.jedit.gui.NumericTextField.getValue(NumericTextField.java:105)
     at org.gjt.sp.jedit.print.PrinterDialog$PageSetupPanel.recalculate(PrinterDialog.java:1149)

Thanks, I'd forgotten to fake the locale and test with mm. It does make a difference. 

 - ClassCastException when entering "10" as a margin value. The cast was indeed unnecessary: floatValue()
   is available in the Number subclass.
    java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Float
     at org.gjt.sp.jedit.print.PrinterDialog$PageSetupPanel.recalculate(PrinterDialog.java:1149)

Other issues:
 - the popup Invalid top margin doesn't play nicely (in my i3 window manager) with the focuslistener,
   provoking an infinite loop of popup showing, clicking OK, popup showing, ...
   when I enter 2mm and press tab.

I'll check on this, I'd seen the same but thought I had it fixed, although I forgot to test with mm.
 
 - paper/orientation selected values are not restored, even if I see that
   they are taken into account in the page break markers now.

Yes, I see that too. 

Nitpicking:
 - unused top/left/...Margin fields in PageSetupPanel. Would you like to keep them?

??? They are used in the getAttributes method of the PageSetupPanel to set the Margins attribute. Or am I missing something?
 
 - I've added the @SuppressWarnings("serial") to the PrinterDialog class:
   we don't intend to serialize any of the ui.

 Where did you see the warning? You're right, none of the ui should be serialized. The only class in that package that is serialized is the Margins class.

Cheers,
Eric

Le Wed, 17 Aug 2016 16:02:58 -0600,
Dale Anson <[hidden email]> a écrit :

> Oh, and I meant to mention that in the Global Options - Printing I
> have the "Print spacing workaround" turned on. I think this should be
> on by default since the javadoc says this is the fastest way to print
> characters. With it off, I get some overlap of characters. After some
> more testing, it might be worth removing that as an option and always
> use it.
>
>
> On Wed, Aug 17, 2016 at 4:00 PM, Dale Anson <[hidden email]>
> wrote:
>
> > Eric, would you give the printing another run though? I think I
> > have it fixed so the page break marker in the text area matches up
> > exactly with the pages coming out of the printer. It turns out I
> > needed to set some rendering hints and provide an affine transform
> > to get the math to work out correctly.
> >
> > Thanks,
> >
> > Dale
> >
> >
> >
> > On Mon, Aug 15, 2016 at 7:41 AM, Dale Anson <[hidden email]>
> > wrote:
> >> "Still an issue:
> >>  - when validating the Page Setup dialog, it asks for a file to
> >> save to. And it writes nothing to it."
> >>
> >> Do you have only the postscript printer, no others? That would
> >> explain it and is an easy fix now that I see it.
> >>
> >> " - when I print jEdit's build.xml (to PS file) with A4 Portrait
> >> paper (default 12.7mm top&bottom margins), the top margin and
> >> header are missing on all pages (when viewed in evince). Can you
> >> reproduce that?"
> >>
> >> I don't see this, although I can't set the margins to 12.7mm. The
> >> units are set by the current locale, so since I'm in USA, I get
> >> inches. I used 0.5 in top and bottom, which should be close, and
> >> A4 paper size, and I do see both header and footer on all pages.
> >> I'll fake the locale to see if I can reproduce this one.
> >>
> >> " - also, first page break is between line 46 and 47 in text area,
> >> while in default Letter Portrait I get up to line 70 on first page
> >> (and the footer right at the bottom of the page). I send it to you
> >> in a separate email."
> >>
> >> Hmm. Looks good to me using the same 0.5 in margins and the A4
> >> paper size, I get the first page break in the text area at line
> >> 58, and the same in the printer output. If I switch to 1 in
> >> margins on all sides, letter size paper, portrait, I do get one
> >> extra line printed on the first page, then all subsequent pages
> >> are off by one line. I see this every now and then, I thinks it's
> >> due to rounding in the calculations, but I haven't tracked it down
> >> yet. I haven't seen anything more than an off by one line error,
> >> though, not the 20+ you're seeing.
> >>
> >> "Also, what's the relation between page setup and page breaks in
> >> the text area? ATM page setup is not saved (see issue above),
> >> but have you made it recompute page breaks?"
> >>
> >> Good catch, I need to add that.
> >>
> >> Thanks for the help! I'll let you know when I have these fixed.
> >>
> >> Dale
> >>
> >>
> >>
> >>
> >> On Mon, Aug 15, 2016 at 3:35 AM, Eric Le Lay <
> >> [hidden email]> wrote:
> >>
> >>> Looks good:
> >>>  - no more exceptions
> >>>  - no footer collapsed with last page line
> >>>  - page breaks off by default
> >>>  - first and last page break not drawn
> >>>
> >>> Still an issue:
> >>>  - when validating the Page Setup dialog, it asks for a file to
> >>> save to. And it writes nothing to it.
> >>>  - when I print jEdit's build.xml (to PS file) with A4 Portrait
> >>> paper (default 12.7mm top&bottom margins), the top margin and
> >>> header are missing on all pages (when viewed in evince). Can you
> >>> reproduce that?
> >>>  - also, first page break is between line 46 and 47 in text area,
> >>> while in default Letter Portrait I get up to line 70 on first
> >>> page (and the footer right at the bottom of the page). I send it
> >>> to you in a separate email.
> >>>
> >>> Also, what's the relation between page setup and page breaks in
> >>> the text area? ATM page setup is not saved (see issue above),
> >>> but have you made it recompute page breaks?
> >>>
> >>> Cheers,
> >>> Eric
> >>>
> >>> Le Sun, 14 Aug 2016 16:57:12 -0600,
> >>> Dale Anson <[hidden email]> a écrit :
> >>>
> >>> > Eric, I've fixed all the printing issues you mentioned, plus a
> >>> > couple of others. The page break markers in the text area
> >>> > should now be the same as what is actually printed, it turns
> >>> > out there were some math errors that were causing them to be
> >>> > different. Let me know if you see any more issues,
> >>> >
> >>> > Thanks,
> >>> >
> >>> > Dale
> >>> >
> >>> >
> >>> >
> >>> > On Sun, Aug 14, 2016 at 10:11 AM, Dale Anson
> >>> > <[hidden email]> wrote:
> >>> >
> >>> > > Hi Eric,
> >>> > >
> >>> > > I'm back in town and have inserted some comments below:
> >>> > >
> >>> > > On Thu, Aug 11, 2016 at 2:58 PM, Eric Le Lay
> >>> > > <[hidden email].
> >>> > > net> wrote:
> >>> > >
> >>> > >> Hi Dale,
> >>> > >>
> >>> > >> great work improving the print system!
> >>> > >> It prints well to PostScript on ArchLinux, java 1.8,
> >>> > >> unconfigured print system.
> >>> > >>
> >>> > >> I Tested it a bit and got 3 exceptions.
> >>> > >>
> >>> > >> But first some remarks:
> >>> > >> The page marker (horizontal blue 1px line) is distracting.
> >>> > >> Is there an option to turn it off?
> >>> > >>
> >>> > >
> >>> > > Global Options - Text Area has a setting for on and off.
> >>> > >
> >>> > >
> >>> > >> I'd like a buffer option (or maybe an action to put in the
> >>> > >> toolbar) to show page markers, and when it's active it
> >>> > >> recalculates on input, not on buffer switch like ATM.
> >>> > >>
> >>> > >
> >>> > > Good idea. I started with recalculating on input, but it
> >>> > > really slowed jEdit to a crawl. I'll look into optimizing
> >>> > > this some more.
> >>> > >>
> >>> > >> Also when starting with a new buffer, a page marker is drawn
> >>> > >> on top of the first line: this should be avoided.
> >>> > >>
> >>> > >
> >>> > > I agree, I'll fix this.
> >>> > >
> >>> > >
> >>> > >>
> >>> > >> Last, there seems to be an error by one line in the page
> >>> > >> marker for the last page. Steps to reproduce:
> >>> > >> 1) in a new buffer, type 6 lines of dummy text
> >>> > >> 2) switch to another buffer and back to the buffer (seems
> >>> > >> the way to trigger page marker recalculation)
> >>> > >> 3) I get the page marker  between the 5th and 6th line,
> >>> > >> while I'd expect it below the 6th (or not at all, since it's
> >>> > >> the last).
> >>> > >
> >>> > > I'm not sure this is fixable, but I want to look into this
> >>> > > part some more. I've noticed the same, I think it's a
> >>> > > combination of different graphics context, margin settings,
> >>> > > and print versus text area font and font size. Also, the
> >>> > > error is not always by one, sometimes it's by 6 or 7 or more.
> >>> > > Regardless, this needs some work.
> >>> > >
> >>> > >
> >>> > >>
> >>> > >> On my system (PS output), the page footer (1 line text on
> >>> > >> gray background) collides with the last line of each page.
> >>> > >> The page marker is also not reliable: actual page cut is
> >>> > >> between line 52 and 53, while the page marker is between
> >>> > >> line 47 and 48. And last line number collides with previous
> >>> > >> line number on the last page. Do you see this as well?
> >>> > >>
> >>> > >
> >>> > > Good catch, I didn't test the header and footer much.
> >>> > >
> >>> > > Thanks for the rest, I'll post back when all of these are
> >>> > > fixed.
> >>> > >
> >>> > > One other thing I've noticed is if the file has soft wrap on
> >>> > > and a line spans several screen lines and the page break
> >>> > > happens to be at that line, all the screen lines get the page
> >>> > > break marker. Only the last one should be marked.
> >>> > >
> >>> > >
> >>> > >>
> >>> > >> Now, the exceptions:
> >>> > >> I get an exception in BufferPrintable1_7 at startup:
> >>> > >>
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:
> >>> > >> java.lang.NullPointerException 22:08:01 [AWT-EventQueue-0]
> >>> > >> [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrintable1_7.<init>(BufferPrint
> >>> > >> able1_7.java:93)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >>> > >> BufferPrinter1_7.java:191)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >>> > >> BreakExtension.java:72)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.print.PageBreakExtension.paintValidLine(Pag
> >>> > >> eBreakExtension.java:135)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.textarea.TextAreaExtension.paintScreenLineR
> >>> > >> ange(TextAreaExtension.java:70)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >>> > >> nge(ExtensionManager.java:157)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.textarea.ExtensionManager.paintScreenLineRa
> >>> > >> nge(ExtensionManager.java:117)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.textarea.TextAreaPainter.paint(TextAreaPain
> >>> ter.java:904)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintChildren(JComponent.java:889)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintChildren(JComponent.java:889)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintChildren(JComponent.java:889)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintChildren(JComponent.java:889)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> org.gjt.sp.jedit.gui.DockableWindowManagerImpl.paintChildren
> >>> > >> (DockableWindowManagerImpl.java:667)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintChildren(JComponent.java:889)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintChildren(JComponent.java:889)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paint(JComponent.java:1065) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JLayeredPane.paint(JLayeredPane.java:586)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintChildren(JComponent.java:889)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paintToOffscreen(JComponent.java:5217)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.BufferStrategyPaintManager.paint(BufferStrategyP
> >>> > >> aintManager.java:290)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager.paint(RepaintManager.java:1272)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.JComponent.paint(JComponent.java:1042) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback
> >>> .java:39)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallb
> >>> ack.java:79)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallbac
> >>> k.java:116)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.Container.paint(Container.java:1975) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.Window.paint(Window.java:3904) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager$4.run(RepaintManager.java:842)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager$4.run(RepaintManager.java:814)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.security.AccessController.doPrivileged(Native Method)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >>> > >> rsectionPrivilege(ProtectionDomain.java:76)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.
> >>> java:814)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.
> >>> java:789)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManag
> >>> er.java:738)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> javax.swing.RepaintManager$ProcessingRunnable.run(RepaintMan
> >>> > >> ager.java:1732)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:08:01
> >>> > >> [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.security.AccessController.doPrivileged(Native Method)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >>> > >> rsectionPrivilege(ProtectionDomain.java:76)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >>> > >> patchThread.java:201)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >>> > >> chThread.java:116)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >>> > >> patchThread.java:105)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.
> >>> java:101)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.
> >>> java:93)
> >>> > >> 22:08:01 [AWT-EventQueue-0] [error] ExtensionManager:  at
> >>> > >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>> > >>
> >>> > >> the format argument's underlying attribute map is empty at
> >>> > >> launch, so format.get() returns null. I'd change the code to:
> >>> > >>
> >>> > >> boolean color =
> >>> > >> Chromaticity.COLOR.equals(format.get(Chromaticity.class));
> >>> > >>
> >>> > >>
> >>> > >> I get a second exception at startup (a timing issue, because
> >>> > >> when I put a breakpoint, gfx is non null):
> >>> > >>
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus: Exception while
> >>> > >> sending message on EditBus: 22:19:49 [AWT-EventQueue-0]
> >>> > >> [error] EditBus: java.lang.NullPointerException 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >>> > >> ferPrintable1_7.java:208)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >>> > >> BufferPrinter1_7.java:203)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >>> > >> BufferPrinter1_7.java:192)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >>> > >> BreakExtension.java:72)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >>> > >> BreakExtension.java:89)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:140)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditPane.bufferRemoved(EditPane.java:718)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.bufferset.BufferSet.removeBuffer(BufferSet.
> >>> java:348)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.bufferset.BufferSetManager._removeBuffer(
> >>> > >> BufferSetManager.java:324)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.bufferset.BufferSetManager.removeBuffer(Buf
> >>> > >> ferSetManager.java:278)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.bufferset.BufferSet.addBufferAt(BufferSet.j
> >>> ava:143)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.View.restoreSplitConfig(View.java:1825)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.View.setSplitConfig(View.java:891) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.View.<init>(View.java:1360) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.jEdit.newView(jEdit.java:2612) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.
> >>> > >> endElement(PerspectiveManager.java:363)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >>> > >> .endElement(AbstractSAXParser.java:609)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.dtd.XMLNSDTDValidato
> >>> > >> r.endNamespaceScope(XMLNSDTDValidator.java:266)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >>> > >> handleEndElement(XMLDTDValidator.java:2005)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.
> >>> > >> endElement(XMLDTDValidator.java:879)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >>> > >> cannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >>> cannerImpl$
> >>> > >> FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.ja
> >>> va:2967)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerIm
> >>> > >> pl.next(XMLDocumentScannerImpl.java:602)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScanner
> >>> > >> Impl.next(XMLNSDocumentScannerImpl.java:112)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentS
> >>> > >> cannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >>> > >> n.parse(XML11Configuration.java:841)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.parsers.XML11Configuratio
> >>> > >> n.parse(XML11Configuration.java:770)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
> >>> > >> XMLParser.java:141)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser
> >>> > >> .parse(AbstractSAXParser.java:1213)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.util.XMLUtilities.parseXML(XMLUtilities.java:140)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.SettingsXML.load(SettingsXML.java:155)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.PerspectiveManager.loadPerspective(Perspect
> >>> > >> iveManager.java:107)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.jEdit$9.run(jEdit.java:4253) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:19:49
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.security.AccessController.doPrivileged(Native Method)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >>> > >> rsectionPrivilege(ProtectionDomain.java:76)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >>> > >> patchThread.java:201)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >>> > >> chThread.java:116)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >>> > >> patchThread.java:105)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.
> >>> java:101)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.
> >>> java:93)
> >>> > >> 22:19:49 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>> > >>
> >>> > >> When I load a file, I get:
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus: Exception while
> >>> > >> sending message on EditBus: 22:26:25 [AWT-EventQueue-0]
> >>> > >> [error] EditBus: java.lang.NullPointerException 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:1727) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.buffer.JEditBuffer.markTokens(JEditBuffer.j
> >>> ava:1377)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrintable1_7.calculatePages(Buf
> >>> > >> ferPrintable1_7.java:291) 22:26:25 [AWT-EventQueue-0] [error]
> >>> > >> EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges( BufferPrinter1_7.java:203)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.BufferPrinter1_7.getPageRanges(
> >>> > >> BufferPrinter1_7.java:192)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.PageBreakExtension.getPageRanges(Page
> >>> > >> BreakExtension.java:72)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.print.PageBreakExtension.handleMessage(Page
> >>> > >> BreakExtension.java:89)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditBus.send(EditBus.java:206) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:188)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1713) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.jEdit.openFile(jEdit.java:1620) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.browser.VFSBrowser.filesActivated(VFSBrowse
> >>> r.java:1236)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> org.gjt.sp.jedit.browser.BrowserView$TableMouseHandler.mouse
> >>> > >> Clicked(BrowserView.java:561)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaste
> >>> r.java:270)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Component.processMouseEvent(Component.java:6536)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Component.processEvent(Component.java:6298) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Container.processEvent(Container.java:2236) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Component.dispatchEventImpl(Component.java:4889)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Container.dispatchEventImpl(Container.java:2294)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Component.dispatchEvent(Component.java:4711)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.LightweightDispatcher.retargetMouseEvent(Container.
> >>> java:4888)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.LightweightDispatcher.processMouseEvent(Container.j
> >>> ava:4534)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Container.dispatchEventImpl(Container.java:2280)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Window.dispatchEventImpl(Window.java:2746) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.Component.dispatchEvent(Component.java:4711)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue.access$500(EventQueue.java:97) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue$3.run(EventQueue.java:709) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue$3.run(EventQueue.java:703) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.security.AccessController.doPrivileged(Native Method)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >>> > >> rsectionPrivilege(ProtectionDomain.java:76)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >>> > >> rsectionPrivilege(ProtectionDomain.java:86)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue$4.run(EventQueue.java:731) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue$4.run(EventQueue.java:729) 22:26:25
> >>> > >> [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.security.AccessController.doPrivileged(Native Method)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte
> >>> > >> rsectionPrivilege(ProtectionDomain.java:76)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDis
> >>> > >> patchThread.java:201)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispat
> >>> > >> chThread.java:116)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDis
> >>> > >> patchThread.java:105)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.
> >>> java:101)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.
> >>> java:93)
> >>> > >> 22:26:25 [AWT-EventQueue-0] [error] EditBus:  at
> >>> > >> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> >>> > >>
> >>> > >> I'll be away tomorrow and Saturday, but will be back on
> >>> > >> Sunday if you have questions to debug this...
> >>> > >>
> >>> > >> Thanks,
> >>> > >> Eric
> >>> > >>
> >>> > >> Le Wed, 10 Aug 2016 17:04:09 -0600,
> >>> > >> Dale Anson <[hidden email]> a écrit :
> >>> > >>
> >>> > >> > Sounds good to me. I think I'm about done with revamping
> >>> > >> > the printing stuff, it's working well on my two printers.
> >>> > >> > I'd appreciate it if others could try to print a few
> >>> > >> > things and report any problems, especially on Windows,
> >>> > >> > which I don't have anymore to test with.
> >>> > >> >
> >>> > >> > Dale
> >>> > >> >
> >>> > >> >
> >>> > >> >
> >>> > >> > On Mon, Jul 11, 2016 at 8:42 PM, Alan Ezust
> >>> > >> > <[hidden email]> wrote:
> >>> > >> >
> >>> > >> > > We will wait until you are back from your travels before
> >>> > >> > > releasing since we need some of your time to fix bugs and
> >>> > >> > > review patches before the next jEdit release, which I am
> >>> > >> > > thinking should be called 5.4, since it requires a newer
> >>> > >> > > Java version (1.8).
> >>> > >> > >
> >>> > >> > > Shall we target an early September release for jEdit 5.4?
> >>> > >> > >
> >>> > >> > >
> >>> > >> > >
> >>> > >> > >
> >>> > >> > >
> >>> > >> > >
> >>> > >> > > On Wed, Jun 29, 2016 at 4:33 PM, Dale Anson
> >>> > >> > > <[hidden email]> wrote:
> >>> > >> > >> At this point, the compiler warnings work is complete.
> >>> > >> > >> I've done some work on the printing system, but I'm
> >>> > >> > >> going to be traveling for most of July and won't have
> >>> > >> > >> access to a printer to test.
> >>> > >> > >>
> >>> > >> > >> Does anyone on the list know why the option to print in
> >>> > >> > >> color is in the Global Options - Printing options? It
> >>> > >> > >> seems to me it belongs in the printer dialog. The code
> >>> > >> > >> mentions it's for "backward compatibility". I'm
> >>> > >> > >> thinking to remove it from the Printing options since
> >>> > >> > >> I've added the same setting to the new printer dialog.
> >>> > >> > >>
> >>> > >> > >> Thanks,
> >>> > >> > >>
> >>> > >> > >> Dale
> >>> > >> > >>
> >>> > >> > >>
> >>> > >> > >>
> >>> > >> > >> On Tue, Jun 21, 2016 at 1:26 PM, Alan Ezust
> >>> > >> > >> <[hidden email]> wrote:
> >>> > >> > >>> I think you should pick the date for the next release,
> >>> > >> > >>> since you are doing most of the work on it right now.
> >>> > >> > >>>
> >>> > >> > >>> Hopefully Vampire is listening and will release it
> >>> > >> > >>> around your desired schedule.
> >>> > >> > >>>
> >>> > >> > >>>
> >>> > >> > >>> On Tue, Jun 21, 2016 at 10:43 AM, Dale Anson
> >>> > >> > >>> <[hidden email]> wrote:
> >>> > >> > >>>> What's the planned date for the next release? There
> >>> > >> > >>>> are a couple of things I'm working on, just want to
> >>> > >> > >>>> see if I have time to complete them or wait until
> >>> > >> > >>>> later. One is cleaning up all (most? many? at least a
> >>> > >> > >>>> few of) the compiler warnings about the unchecked
> >>> > >> > >>>> generic usage, the other is revamping the printing
> >>> > >> > >>>> system.
> >>> > >> > >>>>
> >>> > >> > >>>> Thanks,
> >>> > >> > >>>>
> >>> > >> > >>>> Dale
> >>> > >> > >>>>
> >>> > >> > >>>>
> >>> > >> > >>>>
> >>> > >> > >>>> ------------------------------------------------------------
> >>> > >> > >>>> ------------------
> >>> > >> > >>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us
> >>> > >> > >>>> at AT&T Park in San Francisco, CA to explore
> >>> > >> > >>>> cutting-edge tech and listen to tech luminaries
> >>> > >> > >>>> present their vision of the future. This family event
> >>> > >> > >>>> has something for everyone, including kids. Get more
> >>> > >> > >>>> information and register today.
> >>> > >> > >>>> http://sdm.link/attshape --
> >>> > >> > >>>> ----------------------------------------------- jEdit
> >>> > >> > >>>> Developers' List [hidden email]
> >>> > >> > >>>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
> >>> > >> > >>>>
> >>> > >> > >>>>
> >>> > >> > >>>
> >>> > >> > >>
> >>> > >> > >
> >>> > >>
> >>> > >>
> >>> > >
> >>>
> >>>
> >>
> >> ------------------------------------------------------------
> >> ------------------
> >>
> >> --
> >> -----------------------------------------------
> >> jEdit Developers' List
> >> [hidden email]
> >> https://lists.sourceforge.net/lists/listinfo/jedit-devel
> >>
> >>
> >



------------------------------------------------------------------------------

--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] *** SPAM *** Re: Next release?

Eric Le Lay
Administrator
Hi Dale,

Thanks for your reply.
I guess you'll never look at a printer the same, by this time ;-)

About the nitpicking section:

Le Thu, 18 Aug 2016 13:53:47 -0600,
Dale Anson <[hidden email]> a écrit :

(snip)
> > Nitpicking:
> >  - unused top/left/...Margin fields in PageSetupPanel. Would you
> > like to keep them?
> >  
>
> ??? They are used in the getAttributes method of the PageSetupPanel
> to set the Margins attribute. Or am I missing something?
>

I mean these private fields, not the local variables:
https://sourceforge.net/p/jedit/svn/HEAD/tree/jEdit/trunk/org/gjt/sp/jedit/print/PrinterDialog.java#l838

>
> >  - I've added the @SuppressWarnings("serial") to the PrinterDialog
> > class: we don't intend to serialize any of the ui.
> >  
>
>  Where did you see the warning? You're right, none of the ui should be
> serialized. The only class in that package that is serialized is the
> Margins class.
>

I see the warnings in Eclipse. Good point: only the ant compile
warnings should matter and you fixed them.

------------------------------------------------------------------------------
--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ jEdit-devel ] *** SPAM *** Re: Next release?

Dale Anson-3
Latest update --

I don't see the NPE when opening jEdit's build.xml. Let me know if you still see it and how to reproduce if possible.

Default margins are now set to maximize the printable area based on the printer, paper, and orientation. 

I've added minimum and maximum values to the margin text fields so the user cannot enter a number too small or too large. It is still possible to enter invalid margins, though, for example, it is possible to set both the top and bottom margins to 8", which won't work on US letter size paper.

I tested with both inches and mm, seems to be good on both.

Paper and orientation values are restored from saved settings.

I removed the popup warnings, instead, the text area won't allow invalid values to be typed at all.

I removed those unused fields. 

At this point, the only thing left on my list for updates to the printing system is a print preview dialog. Now that everything else seems to be working well, that should be easy in comparison.

Dale





On Fri, Aug 19, 2016 at 2:01 AM, Eric Le Lay <[hidden email]> wrote:
Hi Dale,

Thanks for your reply.
I guess you'll never look at a printer the same, by this time ;-)

About the nitpicking section:

Le Thu, 18 Aug 2016 13:53:47 -0600,
Dale Anson <[hidden email]> a écrit :

(snip)
> > Nitpicking:
> >  - unused top/left/...Margin fields in PageSetupPanel. Would you
> > like to keep them?
> >
>
> ??? They are used in the getAttributes method of the PageSetupPanel
> to set the Margins attribute. Or am I missing something?
>

I mean these private fields, not the local variables:
https://sourceforge.net/p/jedit/svn/HEAD/tree/jEdit/trunk/org/gjt/sp/jedit/print/PrinterDialog.java#l838

>
> >  - I've added the @SuppressWarnings("serial") to the PrinterDialog
> > class: we don't intend to serialize any of the ui.
> >
>
>  Where did you see the warning? You're right, none of the ui should be
> serialized. The only class in that package that is serialized is the
> Margins class.
>

I see the warnings in Eclipse. Good point: only the ant compile
warnings should matter and you fixed them.


------------------------------------------------------------------------------

--
-----------------------------------------------
jEdit Developers' List
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
12
Loading...