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

No such file or directory #2

Closed
typo3ua opened this issue Nov 28, 2020 · 1 comment
Closed

No such file or directory #2

typo3ua opened this issue Nov 28, 2020 · 1 comment

Comments

@typo3ua
Copy link

typo3ua commented Nov 28, 2020

I did...

Copy flexible_include.rb into /_plugins

then...

{% flexible_include '/assets/js/my.js' %}

or...

{% flexible_include 'assets/js/my.js' %}

I get error

flexible_include.rb: No such file or directory @ rb_sysopen - /assets/js/my.js
  Liquid Exception: flexible_include.rb: No such file or directory @ rb_sysopen - /assets/js/my.js in /github/workspace/_layouts/my.html
                    ------------------------------------------------
      Jekyll 4.1.1   Please append `--trace` to the `build` command 
                     for any additional information or backtrace. 
                    ------------------------------------------------
/github/workspace/_plugins/flexible_include.rb:140:in `abort': flexible_include.rb: No such file or directory @ rb_sysopen - /assets/js/my.js (SystemExit)
	from /github/workspace/_plugins/flexible_include.rb:140:in `rescue in render'
	from /github/workspace/_plugins/flexible_include.rb:135:in `render'

or...

   Liquid Exception: no implicit conversion of nil into String in /github/workspace/_layouts/my.html
                    ------------------------------------------------
      Jekyll 4.1.1   Please append `--trace` to the `build` command 
                     for any additional information or backtrace. 
                    ------------------------------------------------
/github/workspace/_plugins/flexible_include.rb:130:in `join': no implicit conversion of nil into String (TypeError)
	from /github/workspace/_plugins/flexible_include.rb:130:in `render'

What is wrong did I do?

@mslinn
Copy link
Owner

mslinn commented Nov 28, 2020

Possible reasons for this error message are:

  • A directory called assets/js, based at the top of your Jekyll project, does not exist
  • The directory exists but does not contain a file called my.js
  • The directory and/or file lacks read permission.

@mslinn mslinn changed the title plugin does not working No such file or directory Nov 28, 2020
@mslinn mslinn closed this as completed Nov 28, 2020
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