jperon / lyluatex

Alternative à lilypond-book pour lualatex
MIT License
56 stars 11 forks source link

Found something incompatible with `fragment` #318

Open bv74 opened 9 months ago

bv74 commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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 commented 9 months ago

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 commented 8 months ago

Bonjour, merci pour les informations. BVA