New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about executable #3
Comments
Looking at the source adding
Yes, by a look at the source appending |
Hmm, I wonder why the GUI is launched. Looking at if a file argument is added, then the command-line jar is launched instead of the GUI. Therefore command! -bang -nargs=* -complete=file Make AsyncRun<bang> -auto=make -program=make -strip <args> Check by |
I tried the following: let g:langtool_cmd = '/usr/bin/languagetool'
let g:langtool_parameters = '--http' But got an error:
Do you meant like this? java -jar /usr/share/java/languagetool/languagetool-commandline.jar --classpath
Error: Unable to initialize main class org.languagetool.commandline.Main
Caused by: java.lang.NoClassDefFoundError: org/languagetool/rules/Rule
Got the following: |
Sorry, forgot to remove |
Are you sure your command! -bang -nargs=* -complete=file Make AsyncRun<bang> -auto=make -program=make -strip <args> |
I meant like
where CP=/usr/share/languagetool
for name in /usr/share/java/languagetool/*.jar ; do
CP=$CP:$name
done |
Yes, that's okay as it is also happening here and working fine. It can be safely omitted anyway. |
That's strange. And |
Oh, I'm very sorry. Probably at my first launch I really forgot to change
Tried it (just in console), still have the same error:
|
|
I tried the following:
Still the same error :( |
Yes, indeed. The problem is that the As a workaround, how about creating an empty dummy file, say let g:langtool_cmd = '/usr/bin/languagetool ~/empty.txt' |
Try appending |
No, no, sorry if I was unclear. It started the GUI when I had the wrong
Still the same :( |
No, this is not good, but not fatal and to be expected. Could you try the suggested workaround let g:langtool_cmd = '/usr/bin/languagetool ~/empty.txt' |
I do not know why, but in any case using
|
Tried, have the following:
Okay :) |
Oh, try instead keeping |
Or better |
For reference, I asked at https://bugs.archlinux.org/task/68079 about an option to run the command-line version of languagetool by the Archlinux package. |
In my case on
|
Okay, so that should be taken care of to avoid
In the meanwhile, the error message was reduced in severity to a notification message and the spellcheck language tried anyway. |
Tried new version, now I do not have an error. If I use
Without |
I figured out that I need to install the |
Yes, so indeed the shell script is too simplistic; at least an option to start the command-line version should be added. |
I use ArchLinux and have this package available in the repository. I tried to specify
let g:langtool_cmd = '/usr/bin/languagetool
, but this launches the UI on:LangTool
. Am I doing something wrong? I use Asyncrun withMake
configuration from the Readme.I also tried to set
let g:langtool_jar = /usr/share/java/languagetool/languagetool-commandline.jar
but it crashes:(probably because it installed systen-wide?)
Works as expected when I downloaded it manually and set the path to the
languagetool-commandline.jar
.The text was updated successfully, but these errors were encountered: