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

Found something incompatible with fragment #318

Open
bv74 opened this issue Nov 28, 2023 · 4 comments
Open

Found something incompatible with fragment #318

bv74 opened this issue Nov 28, 2023 · 4 comments

Comments

@bv74
Copy link

bv74 commented Nov 28, 2023

Hi,

When I run a document with lyluatex, I got this error :

Module lyluatex Warning: Found something incompatible with `fragment`
(lyluatex)               (or `relative`). Setting them to false.
(lyluatex)               on input line 7
Module lyluatex Info: Compiling score tmp-ly/1d30f6b5270b295501c0cd29f895f4c3 wi
th LilyPond executable '/usr/local/bin/lilypond'. on input line 7
<tmp-ly/1d30f6b5270b295501c0cd29f895f4c3-1.pdf, id=1, 57.21375pt x 23.08624pt>
File: tmp-ly/1d30f6b5270b295501c0cd29f895f4c3-1.pdf Graphic file (type pdf)
<use tmp-ly/1d30f6b5270b295501c0cd29f895f4c3-1.pdf>
Package luatex.def Info: tmp-ly/1d30f6b5270b295501c0cd29f895f4c3-1.pdf  used on 
input line 4.
(luatex.def)             Requested size: 57.2136pt x 23.08617pt.
[1

Nevetheless, the output is correct. When I run directly with lilypond (frescobaldi) I see nothing abnormal.

I've Debian 11.2, Lilypond 2.20.0, Texlive 2020.

Here under the header of latex logs :

This is LuaHBTeX, Version 1.12.0 (TeX Live 2020/Debian)  (format=lualatex 2023.7.3)  28 NOV 2023 09:13
 system commands enabled.
**ecm.tex
(./ecm.tex
LaTeX2e <2020-10-01> patch level 4
Lua module: luaotfload 2021-01-08 3.17 Lua based OpenType font support
Lua module: lualibs 2020-12-30 2.73 ConTeXt Lua standard libraries.
Lua module: lualibs-extended 2020-12-30 2.73 ConTeXt Lua libraries -- extended c
ollection.

The MWE :

\documentclass{article}
\usepackage{fontspec}
\usepackage[program=/usr/local/bin/lilypond]{lyluatex}

\begin{document}

\lilypondfile[staffsize=12]{Lilypond2023/echantillon1.ly}

\end{document}

And the .ly file :

\version "2.18.2"
\language "italiano"

global = {
  \key do \minor
  %\time 4/4
  %\partial 2
}

rightOne = \relative do'' {
  \global
 <<lab1 fad'>>
  }

\score {
  \new PianoStaff \with {
    %instrumentName = "Pno"
  } <<
    \new Staff = "right" << \rightOne  >>
  >>
  \layout { }
}

Thank you for your help.
BVA

@jperon
Copy link
Owner

jperon commented Nov 28, 2023

This is not an error, just a warning that you may ignore. The fragment option, that adds boilerplate to compile music extracts is enabled by default; lyluatex disables it when it detects anything incompatible with it, but emits this warning to ease debugging in case something would go wrong.

@bv74
Copy link
Author

bv74 commented Nov 28, 2023

Bonsoir,

parcourant le site, je vois qu'on peut communiquer en français, en espérant que cela ne perturbe pas les bonnes habitudes de github/jperon.

Merci beaucoup pour la réponse.
Néanmoins comme j'ai un document latex qui comprend de nombreux fragments lilypond, cela me fait beacoup de warning. Y a-t-il un moyen de ne pas les émettre ?
Merci et bonne soirée.
BVA

@jperon
Copy link
Owner

jperon commented Nov 28, 2023

Bonsoir,

Ce n’est pas très compliqué à mettre en place ; toutefois, étant donné que je dois régler les problèmes #315 et #317, je ne vais pas "pousser" tout de suite la modification. Si vous désirez une rustine en attendant, il faut modifier lyluatex.lua en ajoutant, juste avant la ligne local debug, le code suivant :

warn = function() end
info = function() end

@bv74
Copy link
Author

bv74 commented Nov 29, 2023

Bonjour,
merci pour les informations.
BVA

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

2 participants