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

Error "\maininput not allowed outside init files" when starting the extension #372

Open
pfmoore opened this issue Nov 20, 2023 · 4 comments

Comments

@pfmoore
Copy link

pfmoore commented Nov 20, 2023

I get the following error (in the "Problems" tab) when I try to edit a lilypond file:

[{
	"resource": "/C:/Users/Gustav/scoop/apps/lilypond/current/share/lilypond/2.24.3/ly/init.ly",
	"owner": "_generated_diagnostic_collection_name_#2",
	"severity": 8,
	"message": "Guile signaled an error for the expression beginning here",
	"startLineNumber": 65,
	"startColumn": 1,
	"endLineNumber": 65,
	"endColumn": 2
}]

[{
	"resource": "/C:/Users/Gustav/scoop/apps/lilypond/current/share/lilypond/2.24.3/ly/init.ly",
	"owner": "_generated_diagnostic_collection_name_#0",
	"severity": 8,
	"message": "\\maininput not allowed outside init files",
	"startLineNumber": 46,
	"startColumn": 1,
	"endLineNumber": 46,
	"endColumn": 1
}]

The lilypond command works fine from the command line. This is a copy of lilypond installed using the scoop package manager, if it matters (not that I can see why it should).

@pfmoore
Copy link
Author

pfmoore commented Nov 21, 2023

The extension appears to work with lilypond 2.20, but not with 2.24.3, which is the latest version (and the one I have installed).

@mjsyts
Copy link

mjsyts commented Dec 6, 2023

where did you get the version you have that is working? i'm having the same problem with 2.24.3 and am looking for a temporary solution until this is fixed

@pfmoore
Copy link
Author

pfmoore commented Dec 6, 2023

I think I installed it using scoop's explicit version syntax - scoop install [email protected]

@mjsyts
Copy link

mjsyts commented Dec 7, 2023

Thanks, but 2.20 won't actually run on my machine.
This might be helpful though: 2.24.3 works when I disable VSLilyPond: Intellisense. This is going to be a struggle for me since I'm new to Lilypond, but better than it not working at all...

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