GithubHelp home page GithubHelp logo

Comments (7)

ed359 avatar ed359 commented on July 28, 2024 1

I wasn't using the tasks in tasks.json, so indeed that was the problem. Thank you for helping me run the tests. I'm on Windows and the build task fails with an error similar to the one described here: https://stackoverflow.com/questions/6347985/cannot-run-maven-using-mvn-d-argument-within-microsoft-powershell-but-works.

The issue is that powershell needs some quoting in the command string, namely '-Dmaven.test.skip=true' instead of -Dmaven.test.skip=true. If this change doesn't affect other OSes then it's probably a good idea in tasks.json.

from ltex-ls.

valentjn avatar valentjn commented on July 28, 2024

There is a bug in the computation of the length of the underlining (which also determines the word X in the message 'X': Possible spelling mistake found.). The checking itself is not affected (i.e., if you use a word LanguageTool knows, there won't be a diagnostic). The Use '...' quick fixes display the correct suggestions; however, the wrong word will be replaced when applying them. The Add 'X' to dictionary quick fix will add the wrong word (without the first letter) to the dictionary, but as the dictionary is compared against the underlined words, this will still result in the diagnostic to be resolved. The other quick fixes are working as intended.

from ltex-ls.

ed359 avatar ed359 commented on July 28, 2024

Ok, it's good to know that the underlying spell checking is correct, but the user interface reporting 'X': Possible spelling mistake found. is where the error is. Thank you.

from ltex-ls.

valentjn avatar valentjn commented on July 28, 2024

Thanks for the report, this should be fixed.

from ltex-ls.

ed359 avatar ed359 commented on July 28, 2024

The new tests in 6317adc do not pass for me:

[ERROR] Failures: 
[ERROR]   LatexAnnotatedTextBuilderTest.testMathMode:347 30 not smaller than 30 ==> expected: <true> but was: <false>
[ERROR]   LatexAnnotatedTextBuilderTest.testTextMode:207 expected: <0> but was: <5>
[ERROR]   DocumentCheckerTest.testLatex:182 expected: <?ekki> but was: <ekki>

from ltex-ls.

valentjn avatar valentjn commented on July 28, 2024

They pass in GitHub Actions (and for me), so it's definitely working.

Best guess is that you forgot to update your local installation of ltexls-languagetool-patch (see second task in .vscode/tasks.json).

from ltex-ls.

valentjn avatar valentjn commented on July 28, 2024

Fix released in 12.1.0.

from ltex-ls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.