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

SassContextException not found #189

Open
sreerajpjayaraj opened this issue Nov 17, 2016 · 2 comments
Open

SassContextException not found #189

sreerajpjayaraj opened this issue Nov 17, 2016 · 2 comments

Comments

@sreerajpjayaraj
Copy link

I was trying to use this lib in Drupal. After adding phphsass in the drupal library I got the following fatal error.

Fatal error: Class 'SassContextException' not found in C:\xampp\htdocs\drupal-7.51\sites\all\libraries\phpsass\tree\SassContext.php on line 102

The class SassContextException is not defined in the library. Is there any other dependencies for phphsass ?

@joejoseph00
Copy link
Collaborator

This type of a support question should go on drupal.org because it's not phpsass specific, phpsass does not need Drupal, however sassy needs prepro, Drupal and the phpsass library

https://www.drupal.org/project/sassy

Installation Process

This module has 3 requirements to work: Prepro (http://www.drupal.org/project/prepro), Libraries (http://www.drupal.org/project/libraries) and PHPSass (http://github.com/richthegeek/phpsass).

Place Sassy, Prepro, and Libraries in your modules directory (sites/all/modules) and PHPSass(NOTE: rename phpsass-master to simply phpsass) in your libraries directory (sites/all/libraries, create it if it doesn't exist). Enable Sassy and any SASS/SCSS files served by your site should be compiled!

@sreerajpjayaraj
Copy link
Author

Thanks for the reply @joejoseph00

I have already installed Prepro, Libraries and sassy. Also this library PHPSass was used included. The PHPSass lib is renamed as phpsass. But error is thrown from the phphsass library.

If you check the error which I posted earlier your can see that it says "Class SassContextException not found". It says that no such class defined in the library, but exception is thrown from the class SassContext "tree/SassContext.php".

I can see that the class is defined in the file tree/SassNodeExceptions.php
SassContextException is a class which inherits from SassNodeException.

Coming back to the file tree\SassContext.php , The above mentioned classes are not included in the file. Is this causing the issue?

Thanks & regards
Sreeraj P.

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