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

Last update breaks building my document #9

Open
YaLTeR opened this issue Apr 11, 2021 · 19 comments
Open

Last update breaks building my document #9

YaLTeR opened this issue Apr 11, 2021 · 19 comments

Comments

@YaLTeR
Copy link

YaLTeR commented Apr 11, 2021

Fedora 34 Silverblue, Wayland.

I have a fairly standard document in Russian which I compile with XeLaTeX, nothing unusual. After the last update I'm getting these weird errors:

Screenshot from 2021-04-11 15-32-11

The first three line numbers don't change even when removing lines above them.

Here's the start of the document:

\documentclass[a4paper,12pt]{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\usepackage{microtype}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{parskip}
\usepackage[nottoc]{tocbibind}
\usepackage{setspace}

\setmainlanguage{russian}
\setmainfont[Ligatures=TeX]{Liberation Serif}

\onehalfspacing
\frenchspacing

\begin{document}

Downgrading to before last Flathub commit fixed the issue.

@hfiguiere
Copy link
Contributor

@jakobjakobson13 this looks like the updated texlive SDK is missing something with russian.

(since it was rebuilt with the newer version of the SDK)

any idea?

@jakobjakobson13
Copy link

I have no actually idea, but something similar happened when I compiled latex document with lualatex on two different luatex versions without cleaning up the auxiliary files. It then always took two or three attempts (I don't recall exactly) to compile your latex file.

@YaLTeR
Copy link
Author

YaLTeR commented Apr 11, 2021

something similar happened when I compiled latex document with lualatex on two different luatex versions without cleaning up the auxiliary files

Doesn't look like Setzer leaves any auxiliary files in my case.

@jakobjakobson13
Copy link

I won't be able to look into it until next weekend. Could you in the meantime check if you get the error message as well with other tex editors from flathub? That could help to narrow the problem down.

@YaLTeR
Copy link
Author

YaLTeR commented Apr 11, 2021

What other editor should I try?

@hfiguiere
Copy link
Contributor

Just for the record the only change in this package with the previous are:

  • added path for aarch64
  • build on aarch64 as well
  • the updated texlive sdk which is now built from source.

@hfiguiere
Copy link
Contributor

hfiguiere commented Apr 12, 2021

I tried this, and it works:

image

(I basically cut and paste your code above and added the last two lines)

@YaLTeR
Copy link
Author

YaLTeR commented Apr 12, 2021

In a new document:

image

@jakobjakobson13
Copy link

jakobjakobson13 commented Apr 12, 2021

In a new document:

image

Could you check your directory for a log file and if one exits, post it?

@YaLTeR
Copy link
Author

YaLTeR commented Apr 12, 2021

There's nothing in the directory apart from the .tex file and a .pdf file which looks like this:

image

@jakobjakobson13
Copy link

jakobjakobson13 commented Apr 12, 2021

There's nothing in the directory apart from the .tex file and a .pdf file which looks like this:

image

Okay, could you check then if the tex file compiles with texworks (from flathub)?

@YaLTeR
Copy link
Author

YaLTeR commented Apr 13, 2021

I can't seem to compile with it, all engines are grayed out and it says the engines aren't configured correctly.

@YaLTeR
Copy link
Author

YaLTeR commented Apr 13, 2021

After installing the texlive extension I get a similar looking output in texworks:

Package polyglossia Warning: No hyphenation patterns were loaded for `russian'
(polyglossia)                I will use \language=\l@nohyphenation instead on i
nput line 17.

! Undefined control sequence.
\adddialect ...####1####2####3####4{}\fi }\bbl@cs 
                                                  {languages}\endgroup 
l.17 }
      
? 

@jakobjakobson13
Copy link

As your file worked on my computer with the following programs

     Kennung: org.cvfosammmm.Setzer
         Ref: app/org.cvfosammmm.Setzer/x86_64/stable
 Architektur: x86_64
       Zweig: stable
     Version: 0.4.1
     License: GPL-3.0-or-later
    Ursprung: flathub
    Sammlung: org.flathub.Stable
Installation: system
 Installiert: 6,7 GB
Laufzeitumgebung: org.gnome.Platform/x86_64/3.38
         Sdk: org.gnome.Sdk/x86_64/3.38

      Commit: 6cb19660bcfd7ea2a9e6aabd265d55e1a65d948f71e3825e0aa25ea5db5a8d30
      Parent: 60deb0fafcae735433d32b3540086728ead3ead7b18e8d57a38d257d9dfa1f8b
     Subject: Enable aarch64 build now there is a texlive (f0663214)
        Date: 2021-04-10 02:09:10 +0000

and

     Kennung: org.tug.texworks
         Ref: app/org.tug.texworks/x86_64/stable
 Architektur: x86_64
       Zweig: stable
     Version: 0.6.6
     License: GPL-2.0+
    Ursprung: flathub
    Sammlung: org.flathub.Stable
Installation: system
 Installiert: 114,6 MB
Laufzeitumgebung: org.kde.Platform/x86_64/5.15
         Sdk: org.kde.Sdk/x86_64/5.15

      Commit: b57b068a614ba9fe04ef72a2604dfff7031bf0ffadac71bf8b8ee9719042ab3d
      Parent: 9f05563debb63d4e3efe526d4d493272ea97286d60e8230296267cabae3e716c
     Subject: Update to Texworks 0.6.6 (776ed18a)
        Date: 2021-03-12 09:14:23 +0000

I'm running out of ideas. As the last idea I would suspect that some old configuration file has corrupted your system.
You could try the command flatpak remove org.cvfosammmm.Setzer --delete-data to delete Setzer WITH its configuration files, reinstall it and test your document afterwards again.

@YaLTeR
Copy link
Author

YaLTeR commented Apr 18, 2021

So I just removed ~/.texlive2020/ and Setzer was able to build the document fine. I have that folder because I need to compile another document using a full-fledged texlive installation (in a toolbox in my case). I guess there's some conflict where Flatpak texlive picks it up even though it shouldn't?

@jakobjakobson13
Copy link

I guess there's some conflict where Flatpak texlive picks it up even though it shouldn't?

Well, I guess that depends on your point of view: Do you want to decouple the flatpak texlive completely from the user/system texlive configuration or not? The first case makes the addition of unofficial packages and classes quite difficult whereas the second case gives you the option of tweaking your installation with the potential of serious compatibility issues such as yours.

In the end, I'm not sure about the best way to handle this and if you have a good idea, please let me know.

@YaLTeR
Copy link
Author

YaLTeR commented Apr 18, 2021

I guess to me it would make more sense to decouple flatpak texlive because flatpak apps are supposed to be self-contained, and I would expect the bundled texlive to already contain most packages. This has a major benefit of never breaking due to the host texlive being incompatible with the flatpak texlive, even when using different versions of the flatpak texlive (e.g. some older app which hasn't got a runtime bump).

A common pattern for flatpak apps is to put their own mirrors of config, cache and share to ~/.var/app/a.b.c/, perhaps texlive could also be restricted to ~/.var/app/org.cvfosammmm.Setzer/cache/texlive2020? Then you can still add packages without compatibility issues.

@jakobjakobson13
Copy link

I guess to me it would make more sense to decouple flatpak texlive because flatpak apps are supposed to be self-contained, and I would expect the bundled texlive to already contain most packages. This has a major benefit of never breaking due to the host texlive being incompatible with the flatpak texlive, even when using different versions of the flatpak texlive (e.g. some older app which hasn't got a runtime bump).

This behavior should be achieved by the deletion of the following two lines:

        "--env=TEXMFCACHE=$XDG_CACHE_HOME",
        "--env=TEXINPUTS=.:~/texmf/:",

But I'm not the maintainer, so I'm not the person to discuss it with.

@fedelibre
Copy link

I suggest you change the title to something like "Use only the bundled TexLive and ignore texmf files in home".
I think I agree with the "decouple approach". Perhaps you can add in the README that adding those two lines allows to use TexLive packages installed in the home directory (and warn about possible conflicts).

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

4 participants