lhl2617 / VSLilyPond

VSCode Extension for LilyPond
https://marketplace.visualstudio.com/items?itemName=lhl2617.vslilypond
90 stars 7 forks source link

Guile reports error in init file #370

Open gasrodriguez opened 9 months ago

gasrodriguez commented 9 months ago

I have the extension working on Mac but despite generate the midi and pdf files correctly, every time I compile it shows this error:

Guile signaled an error for the expression beginning here
\maininput not allowed outside init files

The \maininput statement is inside an init.ly file:

/opt/homebrew/Cellar/lilypond/2.24.2/share/lilypond/2.24.2/ly/init.ly

I'm using:

Copyright (c) 1996--2023 by Han-Wen Nienhuys hanwen@xs4all.nl Jan Nieuwenhuizen janneke@gnu.org and others.

This program is free software. It is covered by the GNU General Public License and you are welcome to change it and/or distribute copies of it under certain conditions. Invoke as `lilypond --warranty' for more information.


- VSLilyPond v1.7.3
tamlyn commented 1 month ago

I have this same problem.

VSLilyPond
v1.7.3

LilyPond 
2.24.3 (running Guile 3.0)

VSCode
Version: 1.88.1
Commit: e170252f762678dec6ca2cc69aba1570769a5d39
Date: 2024-04-10T17:43:08.196Z (1 mo ago)
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Darwin arm64 23.4.0