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

Strange behaviour importing function from module (with \loadModule) #44

Open
pedro-psb opened this issue Apr 16, 2019 · 0 comments
Open

Comments

@pedro-psb
Copy link

Hello.
I was trying to load a module that would provide some void-functions to the working .ly. When trying to use the function, I would get an "unknown escaped string" error. After some testing, I've figured that for some reason I should put 'anything' before calling the function.

This would rise an error:

\loadModule pessoa-oll-pkg.test-load-module-I
\fooVoidFunction % just displays "foo function"

While this would work fine:

\loadModule pessoa-oll-pkg.test-load-module-I
{} 
\fooVoidFunction

I've setup a mwe here. I wasn't sure if it was related to the loadModule, but is seems to be the case, since if I load the module.ily with a straight \include the first example works fine.
The workaround I came up for now is just putting anything right after loading the module.

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

1 participant