Failure to switch Notebooks when running zim.pyw using --standalone flag
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zim |
New
|
Undecided
|
Unassigned |
Bug Description
First, I'd like to thank you for a wonderful program and its continuous improvements.
To start, I'm running Zim 0.65 (latest) from source on a Windows 7 Home Premium 64-bit laptop. In order to get the latest Zim source to run on Windows, I installed the following dependencies:
* Install python-2.7.11.msi (ensure Python is added to PATH)
* Install pygtk-all-
* Install pywin32-
For each version number, I created a new Notebook using the "File --> Open Another Notebook" dialog named "Test" and selected it to open. Between each version test, I deleted the "Notebooks" directory and the "C:\Users\
0.58 Behavior --
Launching with --standalone: "Test" Notebook opens and the program title at the top is "Test".
Launching zim.pyw without "--standalone" flag shows notebook creation dialogue, but the program halts there (nothing in process manager).
0.59 Behavior --
Launching with --standalone: "Test" Notebook opens and the program title at the top is "Test".
Launching zim.pyw without "--standalone" flag shows same behavior as 0.58.
0.60 Behavior --
Launching with --standalone: "Test" Notebook opens and the program title at the top is "pythonw.exe" the first time it's opened. Closing and re-opening "Test" first causes the program title at the top to revert to "Test", and switching to the original "Notes" notebook shows the title at the top as "Notes".
Closing and re-opening "Notes" first reverts the title to "Notes" and switching to the "Test" notebook again oddly shows the title as "Test," and not "pythonw.exe". So it appears the "pythonw.exe" is a first-time launch bug.
Launching without "--standalone" flag shows Notebook creation dialogue and proceeds to open "Notebook", but the title at the top is "pythonw.exe" the first time it's launched. Closing and re-opening (without "--standalone" flag) shows normal behavior--can switch between Notebooks and the titles at the top match their Notebook.
0.61 Behavior --
Launching with --standalone: Creating "Test" Notebook works. However, attempting to select and open the "Test" notebook results in the following error:
"Failed running: C:\Users\
Launching without --standalone flag results in the same error message "Failed running ..." and emits a bug message:
" File "C:\Users\
obj.run()
File "C:\Users\
zim.
File "C:\Users\
raise AssertionError, 'Failed to start server (spawning)'
AssertionError: Failed to start server (spawning)"
0.62 Behavior --
Launching with --standalone: same behavior as 0.61.
Launching without --standalone: same behavior and bug message as 0.61.
0.63 Behavior -- same behavior as 0.62 and 0.61.
0.64 Behavior -- same behavior as 0.62, 0.61, and 0.63.
0.65 Behavior -- same behavior as 0.64, 0.63, 0.62, and 0.61.
I would say the most ideal behavior was with 0.59 -- using zim.pyw extension along with --standalone flag allowed switching between new notebooks, and their titles displayed correctly at the top. Note that launching zim.py (no .pyw extension) on the latest source, 0.65, allows normal behavior (correct titles at the top, and no error upon switching notebooks), but the console is rather annoying, which is why I used the --standalone feature.
In other news, spell-check seems to be working on 0.65 using "gtkspellcheck". The steps I took to get spellcheck working (didn't work out the box), were as follows:
* Install python-2.7.11.msi (ensure Python is added to PATH)
* Install pygtk-all-
* Install pywin32-
* Install pyenchant-
* Add "C:\Python27\
* From a CMD launched as Administrator, install pygtkspellcheck: "pip install pygtkspellcheck"
After that, Spellcheck works fine calling "gtkspellcheck" and seems to be the cleanest method I've found so far. I like the new features in 0.65, so I'll continue using it and deal with the annoying Zim cmd prompt, but I'd love to see these kinks worked out in future versions for the Windows side of things (allow launching zim.pyw --standalone and switching between notebooks without a bug message).