LanguageTool Plugin



  • I’d like to use the Java based desktop-version of LanguageTool (https://www.languagetool.org/) as a spellchecker with NP++.

    I googled a bit and found the following project which seems to do exactly that: https://github.com/RealGecko/NppLanguageTool
    But this plugin is not included in the NP++ plugin repository and I can’t find a dowloadable plugin file on that project page, so I’m stuck.

    Has anyone managed to create / find a plugin that makes it possible to use LanguageTool?



  • Hello CableWombat,

    the link provided gives also the possibility to download the source.
    To compile you need to download the free vsiual studio express version,
    load the solution (.sln) file and run build. Afaik that’s it.
    I assume you also need the language tool application itself installed
    but I might be wrong.

    Cheers
    Claudia



  • Thanks Claudia,

    I tried that but unfortunately that doesn’t work.

    When building the solution there is an error reported:
    Build failed
    \NppLanguageTool-master\DllExport\NppPlugin.DllExport.targets(8,5): error : File could not be found

    There’s a NppLanguageTool.dll created, though, but it’s not working as a NP++ -plugin.



  • …NppPlugin.DllExport.targets(8,5): error : File could not be found

    sounds like ILDASM.exe wasn’t found on your system. Can you check this an add it to the path variable.

    Cheers
    Claudia



  • In fact I found 10 different ILDSAM.exe on my machine which I guess were installed with Visual Studio Community Edition:

    C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\ildasm.exe
    C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\x64\ildasm.exe
    C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\ildasm.exe
    C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\ildasm.exe
    C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\ildasm.exe
    C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\x64\ildasm.exe
    C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\ildasm.exe
    C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\x64\ildasm.exe
    C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\ildasm.exe
    C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64\ildasm.exe

    All of them have slightly different sizes and date stamps. I tried to add the path of three of them one by one to my path variable. All of them made a successful building process possible.

    But after copying the created DLL into the NP++ plugin folder and starting NP++ I get the error
     Missing “FuncItems” array, or the nb of Function Item is not set correctly
    This plugin is not compatible with current version of Notepad++.
    every time (so I guess that the other 7 will give me the same result).



  • every time (so I guess that the other 7 will give me the same result).

    I guess so, but from this error I would assume that this plugin wasn’t working ever.
    I don’t have much time today but will give it a try tomorrow.

    Do you know what needs to be done to install language tool program?
    Preferrable I won’t install it, just unzip it to some place.

    Cheers
    Claudia



  • There’s no installation necessary; you’ll only need an up-to-date Java installation to run the application. On https://www.languagetool.org/ just download the file behind the link “Stand-alone for your desktop”, That’s a zip-file. Just unzip it to a folder of your choice and double-click the file languagetool.jar to run the program.



  • Hello CableWombat,

    I downloaded the plugin and the language tool and then I discovered,
    that plugin developer didn’t “really” start his project.
    All code necessary for interacting with npp and languagetool is missing.

    Cheers
    Claudia



  • Hi Claudia,

    ah, that explains a lot. That saves me from a lot of failing tries.
    Thanks for investigating!