Skip to content
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

Check spelling pop up window displays garbled text in "unknown word" field #283

Closed
KarlMagnusLarsson opened this issue Aug 14, 2018 · 3 comments

Comments

@KarlMagnusLarsson
Copy link

Environment

  • TeXstudio: 2.12.10 (git 2.12.10-73-g0ba02d02), latest git repo source as of 13 aug 2018.

  • Qt: Using Qt Version 5.11.1, compiled with Qt 5.11.1 R.

  • OS: OSX 10.13.6 uname -a.
    Darwin Magnus-Larssons-iMac.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64.

  • TeX distribution: MacTeX-2018 (Texlive)

Expected behavior

Tools->Check Spelling pop up window displays current word in "unknown word" field. If "ignore" button is pressed, the next word to be checked is displayed.

Actual behavior

The "Unknown word" field in "check spelling" is garbled. It looks like only the upper half of the field is updated with the new word. The lower half of the filed remains as before, i.e., the old word is displayed. The result is a cut up of two words. Please refer to the example picture attached.

example

How to reproduce

  1. Open Latex source file.
  2. Tools->Check Spelling.
  3. Jump to next word to be checked by pressing "ignore".
  4. Repeat 3) a few times

Notes:

  • I have compiled from source as per mac instruction in Wiki https://github.com/texstudio-org/texstudio/wiki/Compiling.
  • I have updated Homebrew: brew update, brew upgrade.
  • OSX is updated.
  • I will have to do some more tests, so this is not a fact and I can not yet prove it, but it seems that this issue persists even if I check out older Texstudio source, i.e., 2.12.8 and so on. If this is true then the resolution is related to something outside the Texstudio source.
  • Am I the only one who sees this on Texstudio OSX?
@KarlMagnusLarsson
Copy link
Author

I did some more tests.

The garbled text is only displayed if there are two or more, different, "unknown word" on the same source text line in the editor window and you step between the "unknown word" using ignore.

If pressing ignore moves "unknown word" to a new source text line in the editor window, then the Check Spelling window is fine and no garbled text is shown.

Can anyone reproduce this on OSX Texstudio, or am I the only one with this error?

@KarlMagnusLarsson
Copy link
Author

Works for me. Problem does not appear when I rebuild Texstudio.

I am using an old mid 2010 iMac, with OSX 10.13.6, but I now have 10.14 of the platform SDK. I get a warning due to this when I build, but Texstudio works fine.

I also noticed that "brew update", "brew upgrade" pulled a new qt-5.11.2.high_sierra.bottle.tar.gz and new poppler --with-qt: https://poppler.freedesktop.org/poppler-0.69.0.tar.xz. However I do not know where the crucial change happened.

Build warning as per below with statement about SDK 10.14.

$ qmake texstudio.pro
Project MESSAGE: Building with Qt5
Project MESSAGE: GIT
Project WARNING: Qt has only been tested with version 10.13 of the platform SDK, you're using 10.14.
Project WARNING: This is an unsupported configuration. You may experience build issues, and by using
Project WARNING: the 10.14 SDK you are opting in to new features that Qt has not been prepared for.
Project WARNING: E.g., 10.14 enables dark mode and layer-backed views, which Qt 5.11 does not support.
Project WARNING: Please downgrade the SDK you use to build your app to version 10.13, or configure
Project WARNING: with CONFIG+=sdk_no_version_check when running qmake to silence this warning.
$ make -j4

@KarlMagnusLarsson
Copy link
Author

Works for me. Problem was related to dependencies outside of Texstudio code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant