Open RosanneZe opened 3 years ago
I'm trying to reproduce this issue, but I haven't got a clue yet. To investigate this issue, may I ask the following questions?
systeminfo | findstr “Locale”
Thanks for looking into it!
en-us;English (United States)
(both System and Input)
C:\Users\rosan/.nvpy\70087714138c54e6fe1caa3460ec61.json Invalid
{'content': 'test notitie', 'modifydate': 1604578114.5335133, 'createdate': 1604578114.5335133, 'savedate': 0, 'syncdate': 0, 'tags': []}
Traceback (most recent call last):
File ".\validate.py", line 18, in <module>
assert 'key' in obj and type(obj['key']) == str
AssertionError
C:\Users\rosan/.nvpy\deaee939ed087942a3a1d29275cb33.json Invalid
{'content': '', 'modifydate': 1604578165.942433, 'createdate': 1604578165.942433, 'savedate': 0, 'syncdate': 0, 'tags': []}
Traceback (most recent call last):
File ".\validate.py", line 18, in
Done. Some notes are broken :-( See above log for details.
4. I played around a bit with the script, and key is actually not in the object for the newly saved notes. I decided to remove all the notes again, and copied over one of my linux notes. I had to transform `createdate` and `modifydate` to numbers instead of strings, but then the validation passed. So then I opened nvpy again, the window is still there, but in the powershell it gives the same slice indices TypeError that I mentioned above, and then drops into pdb. There are no notes visible in the nvpy window, and if I try to do anything, it's not responding.
I prepared the test environment and tried to reproduce this issue. But I found no issue. Could you tell me more detailed info?
[nvpy]
simplenote_sync = 0
I started with the simple config file and then added in my settings one by one. The setting that crashes everything is layout = vertical
. If I don't use that it works!
Thank you for your reply. I'm happy to nvpy works on your PC :-)
I rechecked in all test environments, but nvpy seems to work even if layout = vertical
specified. If you want to continue the investigation, please take local variables dumps and tell it to me.
I think it's the combination of layout = vertical
and print_columns = 1
. Without the print_columns = 1
, I can actually use the vertical layout, so I can use nvpy just the way I want.
Thanks, @RosanneZe ! I succeeded in reproducing this issue. I will fix it at a later date.
# reproduce-issue-215.ps1
set-content -path ~/nvpy.cfg -value '
[nvpy]
simplenote_sync = 0
layout = vertical
print_columns = 1
'
rm -Recurse ~/.nvpy
mkdir ~/.nvpy
set-content -path ~/.nvpy/empty.json -value '
{"content": "", "modifydate": 1, "createdate": 1, "savedate": 0, "syncdate": 0, "tags": []}
'
python3 -m nvpy
cat ~/.nvpy/nvpy.log
I succesfully installed nvpy on windows like this:
python
, this prompts you to install python 3.8 in the windows storepip install nvpy
python -m nvpy
I can start nvpy, but if I try to add a new note, it crashes, and after I closed it, it now crashes immediately on opening. It says "An error occured during housekeeping. list index out of range"
It gives this exception:
and during the handling of that another exception occured (I cannot copy paste it, because it shows in a window and not in the terminal) in line 667 of view.py "IndexError: list index out of range"
I'm not sure what's going on here. I use nvpy without simplenote, but I've been able to do that without problems on Ubuntu for years.
ETA: I also got errors when I tried the zipped version, I think it was the same error, but I didn't write it down, so I'm not sure.