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

Sass-Lint terminated with error: [object Object] #3

Open
karlosdavila opened this issue Sep 1, 2016 · 5 comments
Open

Sass-Lint terminated with error: [object Object] #3

karlosdavila opened this issue Sep 1, 2016 · 5 comments
Assignees
Labels

Comments

@karlosdavila
Copy link

I keep getting this error, even when the Sass/SCSS file is empty.
I also try a new clean Brackets install in a Linux virtual environment, without any other extensions, same results.

Mac OS X 10.11.6 / Xubuntu 16.04
Brackets v1.7

@petetnt petetnt added the bug label Sep 1, 2016
@petetnt
Copy link
Member

petetnt commented Sep 1, 2016

Hi @karlosdavila,

thanks for this report. Could you check out developer tools (Debug -> Show Developer Tools) and see if there are any error messages on the console.

@karlosdavila
Copy link
Author

karlosdavila commented Sep 1, 2016

Ok, this is the error message I get:

[CodeInspection] Provider Sass-Lint (async) failed: [object Object]

(anonymous function) @ /language/CodeInspection.js:278

@petetnt
Copy link
Member

petetnt commented Sep 1, 2016

Hmm, the failure occurs on scanFile, https://github.com/adobe/brackets/blob/master/src/language/CodeInspection.js#L279, but the extension fails to show the message because the error is an array containing an object unlike those emitted by linting errors.

While I fix that issue, could you open the brackets-sass-lint/main.js file from your extensions folder (Help -> Show Extensions Folder) and add some console.logs in line 62, so it would look like this:

        nodeDomain.exec('lintFile', text, fullPath, fileExt, projectRoot)
            .then(function (results) {
            console.log(results.messages);
            return deferred.resolve({errors: _parseErrorsAndWarnings(results)});
        }, function (err) {
            console.log(err);  
            deferred.reject(err);
        });

then reload Brackets (F5) and see what the console shows after that.

@karlosdavila
Copy link
Author

Here is a screenshot of the console results:
Screen Shot 2016-09-01 at 03.36.31.png

@petetnt
Copy link
Member

petetnt commented Sep 1, 2016

Hmm, nothing helpful there either. I'll try to create an version with more helpful error logging tonight and see if I can replicate the issue.

@petetnt petetnt self-assigned this Sep 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants