Foren

Liferay 7 Theme - Compass compilation error using IDE

thumbnail
Gary Sincick, geändert vor 6 Jahren.

Liferay 7 Theme - Compass compilation error using IDE

New Member Beiträge: 11 Beitrittsdatum: 26.12.12 Neueste Beiträge
I'm trying to create a new theme for Liferay 7 GA4 using the Eclipse IDE (3.1.2 - GA3) on Fedora 26.

When I run a Gradle build, it bombs on the '@import compass/css3/user-interface'. I do have compass installed on the OS (1.0.3). Here's the error message:
Exception in thread "main" com.liferay.sass.compiler.jni.internal.JniSassCompilerException: Error: File to import not found or unreadable: compass/css3/user-interface


Is there some kind of configuration necessary for this to work? Is there a library that is missing?
thumbnail
Joye Luo, geändert vor 6 Jahren.

RE: Liferay 7 Theme - Compass compilation error using IDE (Antwort)

Regular Member Beiträge: 144 Beitrittsdatum: 03.05.16 Neueste Beiträge
Hey Gary,

Yeah, u are right.
You need to configure something to let it use ruby compass.
Otherwise it will use the default jni.

If you’re working in a Liferay Workspace or using the Liferay Gradle Plugins plugin, set sass.compiler.class.name=ruby in your gradle.properties file.
Otherwise, set buildCSS.sassCompilerClassName='ruby' in the project’s build.gradle file.

see https://dev.liferay.com/zh/develop/reference/-/knowledge_base/7-0/css-builder-gradle-plugin

Hope that can works for u.
thumbnail
Gary Sincick, geändert vor 6 Jahren.

RE: Liferay 7 Theme - Compass compilation error using IDE

New Member Beiträge: 11 Beitrittsdatum: 26.12.12 Neueste Beiträge
Thank you very much for the reply!! That worked perfectly.