olivierkes / manuskript

A open-source tool for writers
http://www.theologeek.ch/manuskript
GNU General Public License v3.0
1.71k stars 226 forks source link

LanguageTool Plug-in #1252

Open FastusNumen opened 6 months ago

FastusNumen commented 6 months ago

I'm not sure how it works, but I'll ask anyway.

LanguageTool is an open source grammar spellchecker that I think could work well. It would be nice if it could work on Manuskript.

TheShadowOfHassen commented 6 months ago

It does. https://github.com/olivierkes/manuskript/wiki/Adding-a-Spellcheck-Language-Dictionary-to-Manuskript

FastusNumen commented 6 months ago

Oh, I didn't notice. xD

Problem solved, thanks.

TheShadowOfHassen commented 6 months ago

You're welcome. If this isn't an issue any longer, can you close it? (So the developers know this isn't an issue.)

FastusNumen commented 6 months ago

I'll try to make it work, then I'll close. Just to be sure.

FastusNumen commented 6 months ago

For some reason, it's extremely slow to start up when I use the source code, and the command bin/manuskript doesn't work, I have to use python bin/manuskript.

The only time I waited until it started up, it didn't detect LanguageTool even if I already installed it. I tried to install it again, but it said it was already installed.

I'll stick with the .exe and wait until it's available there.

TheShadowOfHassen commented 6 months ago

OK, it has a slow start-up because manuksript has to install LanguageTool, however after that it should just run. Maybe you should try to delte your language-tool-python cache. (Try showing hidden files in your home folder and search for it) Throw that in the trash and try starting it again.

If that doesn't work, your logs might be useful. I can't replicate the issue.

FastusNumen commented 6 months ago

No, it was still incredibly slow to start the second time. No idea why.

Anyway, here's the log:

2023-12-14 20:28:59,155 - manuskript.logging - INFO - Logging to file: C:/Users/crist/AppData/Local/manuskript/manuskript\logs\2023-12-14_20-28-59_manuskript#23400.log 2023-12-14 20:28:59,179 - manuskript - INFO - Operating System: Windows-10-10.0.22621-SP0 2023-12-14 20:28:59,179 - manuskript - INFO - Hardware: AMD64 / Intel64 Family 6 Model 154 Stepping 3, GenuineIntel 2023-12-14 20:28:59,180 - manuskript - INFO - Running from unpackaged source code. 2023-12-14 20:28:59,180 - manuskript - DEBUG - sys.executable = 'C:\Users\crist\AppData\Local\Programs\Python\Python311\python.exe' 2023-12-14 20:28:59,180 - manuskript - DEBUG - sys.argv = ['bin/manuskript'] 2023-12-14 20:28:59,180 - manuskript - DEBUG - sys.path = ['C:\Users\crist\Manuskript\manuskript\bin', 'C:\Users\crist\Manuskript\manuskript\bin\..', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\python311.zip', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\DLLs', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib', 'C:\Users\crist\AppData\Local\Programs\Python\Python311', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\Pythonwin'] 2023-12-14 20:28:59,180 - manuskript - DEBUG - sys.prefix = 'C:\Users\crist\AppData\Local\Programs\Python\Python311' 2023-12-14 20:28:59,181 - manuskript - INFO - Manuskript 0.16.1#5a10925 (Python 3.11.2) 2023-12-14 20:28:59,181 - manuskript - INFO - PyQt 5.15.10 (compiled against Qt 5.15.2) 2023-12-14 20:28:59,181 - manuskript - INFO - Qt 5.15.2 (runtime) 2023-12-14 20:28:59,232 - manuskript - INFO - lxml.etree 4.9.3.0 2023-12-14 20:28:59,233 - manuskript - INFO - libxml 2.10.3 (compiled: 2.10.3) 2023-12-14 20:28:59,233 - manuskript - INFO - libxslt 1.1.37 (compiled: 1.1.37) 2023-12-14 20:28:59,234 - manuskript - INFO - pyEnchant N/A (libenchant: N/A) 2023-12-14 20:28:59,234 - manuskript - INFO - pySpellChecker N/A 2023-12-14 20:28:59,235 - manuskript - INFO - Symspellpy N/A 2023-12-14 20:28:59,235 - manuskript - INFO - * Markdown N/A 2023-12-14 20:28:59,263 - manuskript - INFO - Web rendering engine: QTextEdit 2023-12-14 20:28:59,290 - manuskript.main - INFO - Preferred translation: builtin (based on user setting) 2023-12-14 20:28:59,291 - manuskript.main - INFO - Using the builtin translation. (U.S. English)

The one above was the first time I ran it, when I waited until it started. There was more to the log, but it was just the loading of the project.

The one below is the second time. I waited for some time, but it was still slow, so I closed the terminal.

2023-12-14 20:52:29,487 - manuskript.logging - INFO - Logging to file: C:/Users/crist/AppData/Local/manuskript/manuskript\logs\2023-12-14_20-52-29_manuskript#16364.log 2023-12-14 20:52:29,512 - manuskript - INFO - Operating System: Windows-10-10.0.22621-SP0 2023-12-14 20:52:29,513 - manuskript - INFO - Hardware: AMD64 / Intel64 Family 6 Model 154 Stepping 3, GenuineIntel 2023-12-14 20:52:29,513 - manuskript - INFO - Running from unpackaged source code. 2023-12-14 20:52:29,513 - manuskript - DEBUG - sys.executable = 'C:\Users\crist\AppData\Local\Programs\Python\Python311\python.exe' 2023-12-14 20:52:29,513 - manuskript - DEBUG - sys.argv = ['manuskript'] 2023-12-14 20:52:29,513 - manuskript - DEBUG - sys.path = ['C:\Users\crist\Manuskript\manuskript\bin', 'C:\Users\crist\Manuskript\manuskript\bin\..', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\python311.zip', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\DLLs', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib', 'C:\Users\crist\AppData\Local\Programs\Python\Python311', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\Pythonwin'] 2023-12-14 20:52:29,513 - manuskript - DEBUG - sys.prefix = 'C:\Users\crist\AppData\Local\Programs\Python\Python311' 2023-12-14 20:52:29,514 - manuskript - INFO - Manuskript 0.16.1#5a10925 (Python 3.11.2) 2023-12-14 20:52:29,515 - manuskript - INFO - PyQt 5.15.10 (compiled against Qt 5.15.2) 2023-12-14 20:52:29,515 - manuskript - INFO - Qt 5.15.2 (runtime) 2023-12-14 20:52:29,528 - manuskript - INFO - lxml.etree 4.9.3.0 2023-12-14 20:52:29,528 - manuskript - INFO - libxml 2.10.3 (compiled: 2.10.3) 2023-12-14 20:52:29,528 - manuskript - INFO - libxslt 1.1.37 (compiled: 1.1.37) 2023-12-14 20:52:29,529 - manuskript - INFO - pyEnchant N/A (libenchant: N/A) 2023-12-14 20:52:29,529 - manuskript - INFO - pySpellChecker N/A 2023-12-14 20:52:29,530 - manuskript - INFO - Symspellpy N/A 2023-12-14 20:52:29,530 - manuskript - INFO - * Markdown N/A 2023-12-14 20:52:29,533 - manuskript - INFO - Web rendering engine: QTextEdit 2023-12-14 20:52:29,557 - manuskript.main - INFO - Preferred translation: builtin (based on user setting) 2023-12-14 20:52:29,558 - manuskript.main - INFO - Using the builtin translation. (U.S. English)

TheShadowOfHassen commented 6 months ago

Strange. Could you copy and paste the output that the program puts out when you run it?

FastusNumen commented 6 months ago

I just cloned the repository again since I had deleted it, but it's the same as before.


PS C:\Users\crist\Desktop\Manuskript\manuskript> python bin/manuskript
Logging to STDERR.
Logging to file: C:/Users/crist/AppData/Local/manuskript/manuskript\logs\2023-12-14_22-43-44_manuskript#50988.log
Operating System: Windows-10-10.0.22621-SP0
Hardware: AMD64 / Intel64 Family 6 Model 154 Stepping 3, GenuineIntel
Running from unpackaged source code.
* sys.executable = 'C:\\Users\\crist\\AppData\\Local\\Programs\\Python\\Python311\\python.exe'
* sys.argv = ['bin/manuskript']
* sys.path = ['C:\\Users\\crist\\Desktop\\Manuskript\\manuskript\\bin',
 'C:\\Users\\crist\\Desktop\\Manuskript\\manuskript\\bin\\..',
 'C:\\Users\\crist\\AppData\\Local\\Programs\\Python\\Python311\\python311.zip',
 'C:\\Users\\crist\\AppData\\Local\\Programs\\Python\\Python311\\DLLs',
 'C:\\Users\\crist\\AppData\\Local\\Programs\\Python\\Python311\\Lib',
 'C:\\Users\\crist\\AppData\\Local\\Programs\\Python\\Python311',
 'C:\\Users\\crist\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages',
 'C:\\Users\\crist\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\win32',
 'C:\\Users\\crist\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\win32\\lib',
 'C:\\Users\\crist\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\Pythonwin']
* sys.prefix = 'C:\\Users\\crist\\AppData\\Local\\Programs\\Python\\Python311'
Manuskript 0.16.1#5a10925 (Python 3.11.2)
* PyQt 5.15.10 (compiled against Qt 5.15.2)
  * Qt 5.15.2 (runtime)
* lxml.etree 4.9.3.0
  * libxml   2.10.3 (compiled: 2.10.3)
  * libxslt  1.1.37 (compiled: 1.1.37)
* pyEnchant N/A (libenchant: N/A)
* pySpellChecker N/A
* Symspellpy N/A
* Markdown N/A
Web rendering engine: QTextEdit
Preferred translation: builtin (based on user setting)
Using the builtin translation. (U.S. English)

The last line is where it stops. Now I'm waiting for the program to start up.

FastusNumen commented 6 months ago

Now it started up and I got this:

Windows fatal exception: code 0x8001010d

Thread 0x0000d3e4 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000d0e0 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x00006428 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x00009e44 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000c464 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000c990 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x00008758 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x00009350 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x000087dc (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000c7d8 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000ceac (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000a72c (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000a084 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000956c (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000bbb8 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000c66c (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x000093f0 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x000080c0 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x000053d8 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x00009b9c (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000cf48 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000b3a4 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x00000f04 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000af90 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x000066dc (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000cd68 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x00006960 (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Thread 0x0000b55c (most recent call first):
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 348 in _consume
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\language_tool_python\server.py", line 296 in <lambda>
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975 in run
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038 in _bootstrap_inner
  File "C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 995 in _bootstrap

Current thread 0x0000af28 (most recent call first):
  File "C:\Users\crist\Desktop\Manuskript\manuskript\bin\..\manuskript\main.py", line 246 in launch
  File "C:\Users\crist\Desktop\Manuskript\manuskript\bin\..\manuskript\main.py", line 312 in run
  File "C:\Users\crist\Desktop\Manuskript\manuskript\bin\manuskript", line 13 in <module>
FastusNumen commented 6 months ago

Now I loaded a project and I got this:

Loading: C:\Users\crist\Documents\Tutorial.msk
Detected file format version: 1. Zip: False.
Loading C:\Users\crist\Documents\Tutorial.msk (folder)
Reading labels:
* Add status: Idea (#ffff00)
* Add status: Note (#00ff00)
* Add status: Chapter (#0000ff)
* Add status: Scene (#ff0000)
* Add status: Research (#00ffff)
Reading status:
* Add status: TODO
* Add status: First draft
* Add status: Second draft
* Add status: Final
Reading plots:
* Add plot: Finding a cool teacher
Reading World:
* Add worldItem: Continent
* Add worldItem: Country
* Add worldItem: City
* Add worldItem: District Teach
* Add worldItem: Bob house
Reading Characters:
* Adds Cool MC (0)
* Adds Teacher Bob (1)
* Adds Bloody Mary (2)
* Adds Random dude (3)
Reading outline:
* Adds 0-Volume_1_-_Learn_to_be_the_coolest to Root (folder)
* Adds 0-Chapter_1_-_Finding_a_cool_teacher to Volume 1 - Learn to be the coolest (folder)
  * Adds 0-Chapter_1-1.md to Chapter 1 - Finding a cool teacher (file)
  * Adds 1-New.md to Chapter 1 - Finding a cool teacher (file)
  * Adds 2-Chapter_1-2.md to Chapter 1 - Finding a cool teacher (file)
  * Adds 3-Chapter_1-3.md to Chapter 1 - Finding a cool teacher (file)
Strange things in file 0-Chapter_1_-_Finding_a_cool_teacher
Strange things in file 0-Volume_1_-_Learn_to_be_the_coolest
Project C:\Users\crist\Documents\Tutorial.msk loaded.
FastusNumen commented 6 months ago

And this is what I have when I click on Tools:

Screenshot 2023-12-14 230028

FastusNumen commented 6 months ago

When I clicked on the X button, it saved and closed normally.

This is the log of the whole process:

2023-12-14 22:43:44,637 - manuskript.logging - INFO - Logging to file: C:/Users/crist/AppData/Local/manuskript/manuskript\logs\2023-12-14_22-43-44_manuskript#50988.log 2023-12-14 22:43:44,657 - manuskript - INFO - Operating System: Windows-10-10.0.22621-SP0 2023-12-14 22:43:44,658 - manuskript - INFO - Hardware: AMD64 / Intel64 Family 6 Model 154 Stepping 3, GenuineIntel 2023-12-14 22:43:44,658 - manuskript - INFO - Running from unpackaged source code. 2023-12-14 22:43:44,658 - manuskript - DEBUG - sys.executable = 'C:\Users\crist\AppData\Local\Programs\Python\Python311\python.exe' 2023-12-14 22:43:44,659 - manuskript - DEBUG - sys.argv = ['bin/manuskript'] 2023-12-14 22:43:44,659 - manuskript - DEBUG - sys.path = ['C:\Users\crist\Desktop\Manuskript\manuskript\bin', 'C:\Users\crist\Desktop\Manuskript\manuskript\bin\..', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\python311.zip', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\DLLs', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib', 'C:\Users\crist\AppData\Local\Programs\Python\Python311', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\win32\lib', 'C:\Users\crist\AppData\Local\Programs\Python\Python311\Lib\site-packages\Pythonwin'] 2023-12-14 22:43:44,659 - manuskript - DEBUG - sys.prefix = 'C:\Users\crist\AppData\Local\Programs\Python\Python311' 2023-12-14 22:43:44,668 - manuskript - INFO - Manuskript 0.16.1#5a10925 (Python 3.11.2) 2023-12-14 22:43:44,668 - manuskript - INFO - PyQt 5.15.10 (compiled against Qt 5.15.2) 2023-12-14 22:43:44,668 - manuskript - INFO - Qt 5.15.2 (runtime) 2023-12-14 22:43:44,677 - manuskript - INFO - lxml.etree 4.9.3.0 2023-12-14 22:43:44,677 - manuskript - INFO - libxml 2.10.3 (compiled: 2.10.3) 2023-12-14 22:43:44,677 - manuskript - INFO - libxslt 1.1.37 (compiled: 1.1.37) 2023-12-14 22:43:44,677 - manuskript - INFO - pyEnchant N/A (libenchant: N/A) 2023-12-14 22:43:44,678 - manuskript - INFO - pySpellChecker N/A 2023-12-14 22:43:44,678 - manuskript - INFO - Symspellpy N/A 2023-12-14 22:43:44,678 - manuskript - INFO - Markdown N/A 2023-12-14 22:43:44,713 - manuskript - INFO - Web rendering engine: QTextEdit 2023-12-14 22:43:44,738 - manuskript.main - INFO - Preferred translation: builtin (based on user setting) 2023-12-14 22:43:44,738 - manuskript.main - INFO - Using the builtin translation. (U.S. English) 2023-12-14 22:55:17,067 - manuskript.loadSave - INFO - Loading: C:\Users\crist\Documents\Tutorial.msk 2023-12-14 22:55:17,067 - manuskript.loadSave - INFO - Detected file format version: 1. Zip: False. 2023-12-14 22:55:17,067 - manuskript.load_save.version_1 - DEBUG - Loading C:\Users\crist\Documents\Tutorial.msk (folder) 2023-12-14 22:55:17,078 - manuskript.load_save.version_1 - DEBUG - Reading labels: 2023-12-14 22:55:17,078 - manuskript.load_save.version_1 - DEBUG - Add status: Idea (#ffff00) 2023-12-14 22:55:17,079 - manuskript.load_save.version_1 - DEBUG - Add status: Note (#00ff00) 2023-12-14 22:55:17,079 - manuskript.load_save.version_1 - DEBUG - Add status: Chapter (#0000ff) 2023-12-14 22:55:17,080 - manuskript.load_save.version_1 - DEBUG - Add status: Scene (#ff0000) 2023-12-14 22:55:17,080 - manuskript.load_save.version_1 - DEBUG - Add status: Research (#00ffff) 2023-12-14 22:55:17,080 - manuskript.load_save.version_1 - DEBUG - Reading status: 2023-12-14 22:55:17,080 - manuskript.load_save.version_1 - DEBUG - Add status: TODO 2023-12-14 22:55:17,080 - manuskript.load_save.version_1 - DEBUG - Add status: First draft 2023-12-14 22:55:17,080 - manuskript.load_save.version_1 - DEBUG - Add status: Second draft 2023-12-14 22:55:17,080 - manuskript.load_save.version_1 - DEBUG - Add status: Final 2023-12-14 22:55:17,081 - manuskript.load_save.version_1 - DEBUG - Reading plots: 2023-12-14 22:55:17,087 - manuskript.load_save.version_1 - DEBUG - Add plot: Finding a cool teacher 2023-12-14 22:55:17,087 - manuskript.load_save.version_1 - DEBUG - Reading World: 2023-12-14 22:55:17,089 - manuskript.load_save.version_1 - DEBUG - Add worldItem: Continent 2023-12-14 22:55:17,089 - manuskript.load_save.version_1 - DEBUG - Add worldItem: Country 2023-12-14 22:55:17,089 - manuskript.load_save.version_1 - DEBUG - Add worldItem: City 2023-12-14 22:55:17,089 - manuskript.load_save.version_1 - DEBUG - Add worldItem: District Teach 2023-12-14 22:55:17,090 - manuskript.load_save.version_1 - DEBUG - Add worldItem: Bob house 2023-12-14 22:55:17,090 - manuskript.load_save.version_1 - DEBUG - Reading Characters: 2023-12-14 22:55:17,091 - manuskript.load_save.version_1 - DEBUG - Adds Cool MC (0) 2023-12-14 22:55:17,092 - manuskript.load_save.version_1 - DEBUG - Adds Teacher Bob (1) 2023-12-14 22:55:17,092 - manuskript.load_save.version_1 - DEBUG - Adds Bloody Mary (2) 2023-12-14 22:55:17,092 - manuskript.load_save.version_1 - DEBUG - Adds Random dude (3) 2023-12-14 22:55:17,092 - manuskript.load_save.version_1 - DEBUG - Reading outline: 2023-12-14 22:55:17,092 - manuskript.load_save.version_1 - DEBUG - Adds 0-Volume1-_Learn_to_be_the_coolest to Root (folder) 2023-12-14 22:55:17,092 - manuskript.load_save.version_1 - DEBUG - Adds 0-Chapter1-_Finding_a_cool_teacher to Volume 1 - Learn to be the coolest (folder) 2023-12-14 22:55:17,092 - manuskript.load_save.version_1 - DEBUG - Adds 0-Chapter_1-1.md to Chapter 1 - Finding a cool teacher (file) 2023-12-14 22:55:17,094 - manuskript.load_save.version_1 - DEBUG - Adds 1-New.md to Chapter 1 - Finding a cool teacher (file) 2023-12-14 22:55:17,094 - manuskript.load_save.version_1 - DEBUG - Adds 2-Chapter_1-2.md to Chapter 1 - Finding a cool teacher (file) 2023-12-14 22:55:17,095 - manuskript.load_save.version_1 - DEBUG - Adds 3-Chapter_1-3.md to Chapter 1 - Finding a cool teacher (file) 2023-12-14 22:55:17,095 - manuskript.load_save.version_1 - DEBUG - Strange things in file 0-Chapter1-_Finding_a_cool_teacher 2023-12-14 22:55:17,095 - manuskript.load_save.version_1 - DEBUG - Strange things in file 0-Volume1-_Learn_to_be_the_coolest 2023-12-14 22:55:17,096 - manuskript.mainWindow - INFO - Project C:\Users\crist\Documents\Tutorial.msk loaded. 2023-12-14 23:05:33,097 - manuskript.load_save.version_1 - INFO - Saving to: folder 2023-12-14 23:05:33,103 - manuskript.load_save.version_1 - DEBUG - Saving to folder Tutorial 2023-12-14 23:05:33,108 - manuskript.mainWindow - INFO - Project Tutorial.msk saved.

TheShadowOfHassen commented 6 months ago

Ok so the only guess I have is something is wrong between Language tool python and Java. Do you have Java installed?

FastusNumen commented 6 months ago

Yes, I installed the jdk 17 and 19 about a year ago.

TheShadowOfHassen commented 6 months ago

Strange... I'm afraid I can't help because I run Pop!_OS @TheJackiMonster

FastusNumen commented 6 months ago

I tried uninstalling LanguageTool with pip uninstall language-tool-python and now the program started up almost instantly.

Here's what's on the terminal now that I have uninstalled it:

PS C:\Users\crist\Desktop\Manuskript\manuskript\bin> python manuskript
Windows fatal exception: code 0x8001010d

Current thread 0x00000d30 (most recent call first):
  File "C:\Users\crist\Desktop\Manuskript\manuskript\bin\..\manuskript\main.py", line 246 in launch
  File "C:\Users\crist\Desktop\Manuskript\manuskript\bin\..\manuskript\main.py", line 312 in run
  File "C:\Users\crist\Desktop\Manuskript\manuskript\bin\manuskript", line 13 in <module>

It seems that languagetool was creating problems.

TheShadowOfHassen commented 6 months ago

From what I'm seeing that It's somewhere in between languagetoolpython and your windows.

Try installing LanguageTool python again then copy and paste this as a program

import language_tool_python tool = language_tool_python.LanguageTool('en-US') text = 'A sentence with a error in the Hitchhiker’s Guide tot he Galaxy' matches = tool.check(text) print(matches)

(Its taken from the language-tool-python example code)

FastusNumen commented 6 months ago

It gives me this output:

PS C:\Users\crist\Desktop> python testlang.py
[Match({'ruleId': 'EN_A_VS_AN', 'message': 'Use “an” instead of ‘a’ if the following word starts with a vowel sound, e.g. ‘an article’, ‘an hour’.', 'replacements': ['an'], 'offsetInContext': 16, 'context': 'A sentence with a error in the Hitchhiker’s Guide tot he ...', 'offset': 16, 'errorLength': 1, 'category': 'MISC', 'ruleIssueType': 'misspelling', 'sentence': "A sentence with a error in the Hitchhiker's Guide tot he Galaxy"}), Match({'ruleId': 'TOT_HE', 'message': 'Did you mean “to the”?', 'replacements': ['to the'], 'offsetInContext': 43, 'context': '... with a error in the Hitchhiker’s Guide tot he Galaxy', 'offset': 50, 'errorLength': 6, 'category': 'TYPOS', 'ruleIssueType': 'misspelling', 'sentence': "A sentence with a error in the Hitchhiker's Guide tot he Galaxy"})]
TheShadowOfHassen commented 6 months ago

I get the same output, so it is something wrong with manuskript.

@TheJackiMonster? Do you have any idea what could be going wrong?

peter88213 commented 6 months ago

I have already tried LanguageTool with LibreOffice. The download of the "standalone" extension was a quarter of a gigabyte, and LibreOffice became so sluggish that I had no choice but to uninstall the extension.

Now, when starting Manuskript under Windows 10, I saw a message in the command line window that LanguageTool is apparently being downloaded automatically. I canceled it and went offline. Is that necessary? I would prefer there to be a prompt and the option to avoid downloading LanguageTool.

TheShadowOfHassen commented 6 months ago

@peter88213 no, there is not an option, to avoid downloading LanguageTool unless you remove the module language_tool_python (pip uninstall language_tool_pyyhon)