Hello Edward,
On 28 Jan., 00:13, "Edward K. Ream" <[email protected]> wrote:
> > Another set of unit tests is needed to verify that expected overrides
> > happen.
>
> I have spent several hours staring at the results of a unit test
> before it dawned on me that the results were correct! It's that kind
> of code...
>
> Happily, the work has resulted in a proper unit test. So only the
> unit test itself needs to change. This test is close to verifying that
> everything works as expected with the new merging code.
>
> The new test may have uncovered another key-related buglet, which can
> probably be solved relatively easily. It would be easier to solve
> with new key-related classes, but not yet.
>
> Next, I'll ensure that the key bug Terry recently mentioned has been
> stamped out...
>
> I'll change the trunk only when all testing is complete. That will
> probably happen in a day or three.
>
> Yes, fixing this bug has been glacially slow. My tolerance for this
> kind of extreme detail work is limited. If you are impatient, just
> know that I am even more impatient :-)
I do not know if this helps you in this issue - or - distracts you
from
your current work on improving the key handling of Leo. - I'm sending
you this traceback in the hope that it helps ...
<log>
D:\Users\Viktor Ransmayr\Documents>leo ./BR-2012-01-28.leo
** isPython3: True
Leo 4.9.1 devel, build 4950, 2012-01-28 10:16:45
Python 3.2.2, qt version 4.8.0
Windows 6, 1, 7601, 2, Service Pack 1
reading settings in D:\Branches\leo-editor\leo\config\leoSettings.leo
reading settings in D:\Users\Viktor Ransmayr\.leo\myLeoSettings.leo
reading settings in D:\Users\Viktor Ransmayr\Documents
\BR-2012-01-28.leo
wrote recent file: D:\Users\Viktor Ransmayr\.leo\.leoRecentFiles.txt
<string>:179: (WARNING/2) Literal block expected; none found.
Traceback (most recent call last):
File "D:\Branches\leo-editor\leo\plugins\qtGui.py", line 8689, in
eventFilter
ret = k.masterKeyHandler(event)
File "D:\Branches\leo-editor\leo\core\leoKeys.py", line 2897, in
masterKeyHandler
done,val = k.doMode(event,state,stroke)
File "D:\Branches\leo-editor\leo\core\leoKeys.py", line 2973, in
doMode
val = k.callStateFunction(event) # Calls end-command.
File "D:\Branches\leo-editor\leo\core\leoKeys.py", line 2947, in
callStateFunction
val = k.state.handler(event)
File "D:\Branches\leo-editor\leo\core\leoKeys.py", line 2010, in
fullCommand
k.callAltXFunction(k.mb_event)
File "D:\Branches\leo-editor\leo\core\leoKeys.py", line 2056, in
callAltXFunction
func(event)
File "D:\Branches\leo-editor\leo\core\leoRst.py", line 472, in rst3
self.processTopTree(self.c.p)
File "D:\Branches\leo-editor\leo\core\leoRst.py", line 482, in
processTopTree
self.processTree(p,ext=None,toString=False,justOneFile=justOneFile)
File "D:\Branches\leo-editor\leo\core\leoRst.py", line 510, in
processTree
self.write_rst_tree(p,ext,fn,toString=toString,justOneFile=justOneFile)
File "D:\Branches\leo-editor\leo\core\leoRst.py", line 560, in
write_rst_tree
self.write_files(ext,fn,callDocutils,toString,writeIntermediateFile)
File "D:\Branches\leo-editor\leo\core\leoRst.py", line 1749, in
write_files
f.write(s)
File "C:\Python32\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u0142' in
position
19816: character maps to <undefined>
</log>
As you can see I have re-produced this with the latest revision of
leo-trunk. - If you want I can send a minimal outline that
consistently
produces this tracedback.
With kind regards,
Viktor
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.