xantam
unread,Jun 11, 2011, 6:11:42 AM6/11/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to play-framework
Hi everybody,
I'm trying to use sass module in my play app but I've an issue when
loading a page :
org.jruby.embed.EvalFailedException: no such file to load -- sass
at
org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:
116)
at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:
457)
at
org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:
450)
at play.modules.sass.Engine.compile(Engine.java:86)
at play.modules.sass.Plugin.serveStatic(Plugin.java:24)
at play.plugins.PluginCollection.serveStatic(PluginCollection.java:
565)
at play.server.PlayHandler.serveStatic(PlayHandler.java:776)
at Invocation.HTTP Request(Play!)
Caused by: org.jruby.exceptions.RaiseException: no such file to load
-- sass
at (unknown).new(<script>:1)
at Kernel.require(<script>:1)
at (unknown).(unknown)(:1)
I tried to check the sources to pick the error and it seems to come
from this method call :
scriptingContainer.runScriptlet(script(
"require 'sass'",
extensions.toString(),
"options = {}",
"options[:load_paths] = " + sb,
"options[:style] = " + (dev ? ":expanded" :
":compressed") + "",
"options[:line_comments] = " + (dev ? "true" :
"false") + "",
"options[:syntax] = " +
(css.getAbsolutePath().endsWith(".scss") ? ":scss" : ":sass") + "",
"input = File.new('" + css.getAbsolutePath() +
"', 'r')",
"tree = ::Sass::Engine.new(input.read(),
options).to_tree",
"@result.append(tree.render)"));
I'm currently on Ubuntu 11.04. I don't know if it's related but on
Windows XP, it works well.
I continue my investigations on this topic but can you help me to find
the reason of this issue.
Regards
Nicolas VERSMERCH