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

Unicode characters are marked as errors #1874

Closed
cl445 opened this issue May 4, 2021 · 11 comments · Fixed by #1894 or #1901
Closed

Unicode characters are marked as errors #1874

cl445 opened this issue May 4, 2021 · 11 comments · Fixed by #1894 or #1901
Assignees
Labels
bug Deficiencies in TeXiFy behaviour. macOS Issues specific to macOS (@cl445 or @efrancis may be able to help)
Milestone

Comments

@cl445
Copy link

cl445 commented May 4, 2021

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

Pycharm 2021.1.1 (Professional)

Operating System

MacOS

TeXiFy IDEA version

0.7.6

Minimal example to reproduce the problem

\documentclass[11pt]{article}

\usepackage[utf8]{inputenc}

\begin{document}
    Während Adam lacht, jagen zwölf Boxkämpfer Eva quer über den großen Sylter Deich - für satte 12.345.667,89 €uro.
\end{document}

Expected behavior

No error message if Unicode is used.

Actual behavior

I got an error "Unsupported non-ASCII character":
example

A quickfix suggest including the fontenc package. But this is not necessary or even a disadvantage when writing an English text with foreign names, for example.

@cl445 cl445 added bug Deficiencies in TeXiFy behaviour. untriaged Issue type still needs to be triaged or verified. labels May 4, 2021
@PHPirates
Copy link
Collaborator

What LaTeX distribution are you using?

@cl445
Copy link
Author

cl445 commented May 4, 2021

TeX Live 2021

@cl445 cl445 changed the title Unicode chracters are Unicode characters are marked as errors May 4, 2021
@PHPirates PHPirates added macOS Issues specific to macOS (@cl445 or @efrancis may be able to help) and removed untriaged Issue type still needs to be triaged or verified. labels May 4, 2021
@PHPirates PHPirates self-assigned this May 4, 2021
@PHPirates PHPirates added this to the b0.7.7 milestone May 4, 2021
@PHPirates PHPirates changed the title Unicode characters are marked as errors Cannot find TeX Live version when using PyCharm on a Mac May 4, 2021
@PHPirates PHPirates removed their assignment May 4, 2021
@citywalk2
Copy link

I suspect it is file encoding issue.
https://www.jetbrains.com/help/idea/encoding.html
Try to set to UTF-8.

@PHPirates PHPirates changed the title Cannot find TeX Live version when using PyCharm on a Mac Unicode characters are marked as errors May 6, 2021
@cl445
Copy link
Author

cl445 commented May 6, 2021

Doesn't look like an encoding problem. I double checked it with file -I test.tex. The file is generally encoded in UTF-8 and especially in the IDE. Did you try the example?

@PHPirates
Copy link
Collaborator

Pretty sure it's a Mac issue, which is why I can't reproduce it. Can you check if the following build fixes it? You can install it by going to Plugins > Gear icon > Install plugin from disk.
TeXiFy-IDEA-0.7.7-alpha.1.zip
If not, I will resolve it in a different way.

PHPirates added a commit that referenced this issue May 8, 2021
@PHPirates PHPirates self-assigned this May 8, 2021
PHPirates added a commit that referenced this issue May 8, 2021
This reverts commit 1a66cdb
@cl445
Copy link
Author

cl445 commented May 9, 2021

Yes, it worked! But it also stops warn you, if you forgot to include the inputenc package.

@PHPirates
Copy link
Collaborator

@cl445 That's great to hear! I think the inputenc package is not actually required since TeX Live 2018, hence no warning. (See e.g. https://tex.stackexchange.com/a/370280/98850)

@PHPirates
Copy link
Collaborator

Does it, by any chance, also allow you to run your run configuration without having to specify the path to pdflatex explicitly?

@cl445
Copy link
Author

cl445 commented May 10, 2021

Yes, I do not need to specify the path (anymore). Looks like you need a tester for MacOS! If you want, feel free to contact me. If the effort is kept to a limit, I would be happy to help.

@PHPirates
Copy link
Collaborator

PHPirates commented May 10, 2021

Great! While poking around in IntelliJ code about environment variables I accidentally came across a rant about how macOS does not allow IntelliJ to access the environment. The issue is as old as #25 (comment) ...

Indeed! The problem is that there's no TeXiFy developer with a Mac, so sometimes we come across an issue we cannot reproduce and then we just give it a shot in the dark and pray it works. We don't have enough donations yet to buy a Mac ;)
Would be awesome, I will ping you next time. Fortunately, it's a rare occurrence so far: https://github.com/Hannah-Sten/TeXiFy-IDEA/issues?q=is%3Aissue+label%3AmacOS+is%3Aclosed

Can you check if you can now also use the equation preview? So far this didn't work on Mac (https://github.com/Hannah-Sten/TeXiFy-IDEA/wiki/Preview#using-the-preview-on-macos) for I think the same issue. #962

Also #1407 is an issue, does file resolving for class/package files work for you?

@cl445
Copy link
Author

cl445 commented May 11, 2021

@PHPirates Done. But it was not very successful! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Deficiencies in TeXiFy behaviour. macOS Issues specific to macOS (@cl445 or @efrancis may be able to help)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants