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 due to missing '-trimmed' #13

Closed
musicmichaelc opened this issue May 7, 2021 · 2 comments
Closed

Error due to missing '-trimmed' #13

musicmichaelc opened this issue May 7, 2021 · 2 comments

Comments

@musicmichaelc
Copy link

musicmichaelc commented May 7, 2021

Error due to missing '-trimmed' in .svg file

I installed jekyll-lilypond and tried inserting some sample lilypond code into a markdown file (post), however after running bundle exec jekyll serve, I got the following error:

/usr/local/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/static_file.rb:71:in `stat': No such file or directory @ rb_file_s_stat - /Users/michael/sites/music-template/lilypond_files/fcf5de3d1b7e3729f701ea41da6b1b71-trimmed.svg (Errno::ENOENT)

It turned out that the lilypond_files directory included a file called fcf5de3d1b7e3729f701ea41da6b1b71.svg, but without the '-trimmed'.

Temporary solution/workaround:

After running rename -s '.svg' '-trimmed.svg' *.svg in the lilypond_files directory, everything worked and I could see the rendered music on the page in the browser.

However, Jekyll still gave me the following warning (I'm not quite sure why):

Conflict: The following destination is shared by multiple files.
                    The written file may end up with unexpected contents.
                    /Users/michael/sites/music-template/_site/lilypond_files/fcf5de3d1b7e3729f701ea41da6b1b71-trimmed.svg
                     - /Users/michael/sites/music-template/lilypond_files/fcf5de3d1b7e3729f701ea41da6b1b71-trimmed.svg
                     - /Users/michael/sites/music-template/lilypond_files/fcf5de3d1b7e3729f701ea41da6b1b71-trimmed.svg
@leahvelleman
Copy link
Owner

Thanks for reporting this! Embarrassingly, it looks like I have an error in the installation instructions. The program that the plugin depends on for trimming image files is not ImageMagick, as the instructions state, but Inkscape. Can you try installing Inkscape and see if that resolves the problem? Sorry for the confusion.

@musicmichaelc
Copy link
Author

No problem—and yes, this resolved the problem easily—thanks!

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