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

Alert when running CSScomb on invalid syntax #66

Open
powelski opened this issue Jul 19, 2015 · 1 comment
Open

Alert when running CSScomb on invalid syntax #66

powelski opened this issue Jul 19, 2015 · 1 comment

Comments

@powelski
Copy link

CSScomb displays an alert whenever it's being ran on invalid syntax. This is really annoying when the alert window pops out when I run it when having some random text selected. Perhaps information in the status bar would be less interrupting?

CSScomb error:
/Users/me/Library/Application Support/Sublime Text 3/Packages/CSScomb/node_modules/csscomb/lib/options/eof-newline.js:16
            if (lastChild[0] !== 's') {
                         ^
TypeError: Cannot read property '0' of undefined
    at module.exports.process (/Users/me/Library/Application Support/Sublime Text 3/Packages/CSScomb/node_modules/csscomb/lib/options/eof-newline.js:16:26)
    at /Users/me/Library/Application Support/Sublime Text 3/Packages/CSScomb/node_modules/csscomb/node_modules/csscomb-core/lib/core.js:206:21
    at Array.forEach (native)
    at processNode (/Users/me/Library/Application Support/Sublime Text 3/Packages/CSScomb/node_modules/csscomb/node_modules/csscomb-core/lib/core.js:202:14)
    at /Users/me/Library/Application Support/Sublime Text 3/Packages/CSScomb/node_modules/csscomb/node_modules/csscomb-core/lib/core.js:189:13
    at Array.forEach (native)
    at processTree (/Users/me/Library/Application Support/Sublime Text 3/Packages/CSScomb/node_modules/csscomb/node_modules/csscomb-core/lib/core.js:188:19)
    at processString (/Users/me/Library/Application Support/Sublime Text 3/Packages/CSScomb/node_modules/csscomb/node_modules/csscomb-core/lib/core.js:415:16)
    at Socket.<anonymous> (/Users/me/Library/Application Support/Sublime Text 3/Packages/CSScomb/csscomb.js:28:37)
    at Socket.emit (events.js:129:20)
@powelski
Copy link
Author

What is the status of this issue? I think selections could be disabled at all for .css, .scss and .less files. Or, if we want to keep partial combing, those selections could evaluate whether it's CSS block or just a random selection.

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

1 participant