Closed Bladrak closed 8 years ago
Hi,
Thanks for this (very complete) report.
When looking on the error stack, it seems to be an error from a dependency of this plugin.
I will try to add a way to catch the error to avoid the plugin to crash (I'll try to do it soon), but you should report the error to https://github.com/mryvlin/w3cjs for fixing.
Hello Leny,
No problem about the report, that's automatically generated by atom, so quite straightforward :)
The repo you linked seems to be a fork from the originating library, hence I'm unable to submit an issue there.
Thanks you for the quick reply :)
[Enter steps to reproduce below:]
Atom Version: 1.0.0 System: Ubuntu 14.04.2 Thrown From: w3c-validation package, v0.2.0
Uncaught TypeError: Cannot read property '0' of undefined
At events.js:141
TypeError: Cannot read property '0' of undefined
at /home/jonayad/.atom/packages/w3c-validation/node_modules/w3cvalidator/lib/w3cjs.js:106:38
at Parser.<anonymous> (/home/jonayad/.atom/packages/w3c-validation/node_modules/w3cvalidator/node_modules/xml2js/lib/xml2js.js:459:18)
at emitOne (events.js:77:13)
at Parser.emit (events.js:166:7)
at Object.onclosetag (/home/jonayad/.atom/packages/w3c-validation/node_modules/w3cvalidator/node_modules/xml2js/lib/xml2js.js:420:26)
at emit (/home/jonayad/.atom/packages/w3c-validation/node_modules/w3cvalidator/node_modules/xml2js/node_modules/sax/lib/sax.js:615:33)
at emitNode (/home/jonayad/.atom/packages/w3c-validation/node_modules/w3cvalidator/node_modules/xml2js/node_modules/sax/lib/sax.js:620:3)
at closeTag (/home/jonayad/.atom/packages/w3c-validation/node_modules/w3cvalidator/node_modules/xml2js/node_modules/sax/lib/sax.js:861:5)
at Object.write (/home/jonayad/.atom/packages/w3c-validation/node_modules/w3cvalidator/node_modules/xml2js/node_modules/sax/lib/sax.js:1294:29)
at Parser.exports.Parser.Parser.parseString (/home/jonayad/.atom/packages/w3c-validation/node_modules/w3cvalidator/node_modules/xml2js/lib/xml2js.js:478:31)
at Parser.parseString (/home/jonayad/.atom/packages/w3c-validation/node_modules/w3cvalidator/node_modules/xml2js/lib/xml2js.js:6:59)
at Object.exports.parseString (/home/jonayad/.atom/packages/w3c-validation/node_modules/w3cvalidator/node_modules/xml2js/lib/xml2js.js:510:19)
at parseCssValidation (/home/jonayad/.atom/packages/w3c-validation/node_modules/w3cvalidator/lib/w3cjs.js:103:23)
at /home/jonayad/.atom/packages/w3c-validation/node_modules/w3cvalidator/lib/w3cjs.js:81:29
at Request.callback (/home/jonayad/.atom/packages/w3c-validation/node_modules/w3cvalidator/node_modules/superagent/lib/node/index.js:630:3)
at Request.<anonymous> (/home/jonayad/.atom/packages/w3c-validation/node_modules/w3cvalidator/node_modules/superagent/lib/node/index.js:131:10)
4x -0:26.5.0 core:backspace (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
4x -0:21.3.0 blur (atom-text-editor.editor.vim-mode.insert-mode.is-focused)
-0:15.5.0 core:delete (atom-text-editor.editor.vim-mode.is-focused.visual-mode)
-0:13.8.0 core:move-left (atom-text-editor.editor.vim-mode.is-focused.command-mode)
-0:12.6.0 vim-mode:move-right (atom-text-editor.editor.vim-mode.is-focused.command-mode)
-0:12.3.0 vim-mode:move-down (atom-text-editor.editor.vim-mode.is-focused.command-mode)
4x -0:11.7.0 vim-mode:move-right (atom-text-editor.editor.vim-mode.is-focused.command-mode)
-0:11.1.0 vim-mode:delete (atom-text-editor.editor.vim-mode.is-focused.command-mode)
-0:10.9.0 vim-mode:find (atom-text-editor.editor.vim-mode.is-focused.operator-pending-mode)
3x -0:10.9.0 blur (atom-text-editor.editor.vim-mode.is-focused.operator-pending-mode)
-0:10.8.0 vim-mode:substitute (atom-text-editor.editor.vim-mode.command-mode.is-focused)
2x -0:09.2.0 core:backspace (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
-0:06.5.0 core:move-down (atom-text-editor.editor.vim-mode.is-focused.insert-mode.autocomplete-active)
-0:06.2.0 autocomplete-plus:confirm (atom-text-editor.editor.vim-mode.is-focused.insert-mode.autocomplete-active)
-0:06.2.0 autocomplete-plus:activate (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
-0:02.2.0 core:save (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
{
"core": {
"themes": [
"seti-syntax"
],
"disabledPackages": [
"colorpicker",
"cssedit-groups",
"myth",
"colorpicker",
"cssedit-groups",
"colorpicker",
"colorpicker",
"colorpicker",
"colorpicker",
"colorpicker",
"colorpicker",
"colorpicker",
"colorpicker",
"colorpicker",
"colorpicker",
"colorpicker",
"colorpicker",
"atom-css-class-checker",
"atom-css-class-checker",
"atom-css-class-checker",
"emmet"
]
}
}
# User
aligner-css, v1.2.0
atom-beautify, v0.28.7
atom-compile-less, v0.12.0
atom-minify, v0.1.7
autocomplete-sass, v0.1.0
color-picker, v2.0.7
css-color-underline, v1.0.1
css-comb, v2.1.1
css-snippets, v0.8.0
linter-csslint, v0.0.14
linter-doiuse, v0.2.3
minimap, v4.10.1
pigments, v0.8.2
selector-to-tag, v0.4.1
travis-ci-status, v0.15.1
vim-mode, v0.54.0
w3c-validation, v0.2.0
webbox-color, v0.5.7
# Dev
No dev packages
Hi, thanks for the report.
Can you paste here the content of the file you was validating, if its not secret or anything ? If can't, can you precise if it was a css or html file ?
I think it was a html file.
Just wanted to add my error stack maybe it might help resolving this.
Trying to validate the following CSS
*{
padding: 0;
margin: 0;
}
body{
font-family: "Segoue",sans-serif;
line-height: 1.6em;
color:#666;
background: #e1e1e1 url(../img/cross_scratches.png);
font-size: 14px;
}
a{
color:#333;
text-decoration: none;
}
#container{
width:740px;
background:#fff;
margin:auto;
}
Atom Version: 1.2.0 System: Microsoft Windows 10 Home Thrown From: w3c-validation package, v0.2.0
Uncaught TypeError: Cannot read property '0' of undefined
At events.js:141
TypeError: Cannot read property '0' of undefined
at C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\lib\w3cjs.js:106:38
at Parser.<anonymous> (C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\node_modules\xml2js\lib\xml2js.js:483:18)
at emitOne (events.js:77:13)
at Parser.emit (events.js:169:7)
at Object.onclosetag (C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\node_modules\xml2js\lib\xml2js.js:444:26)
at emit (C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\node_modules\xml2js\node_modules\sax\lib\sax.js:639:35)
at emitNode (C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\node_modules\xml2js\node_modules\sax\lib\sax.js:644:5)
at closeTag (C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\node_modules\xml2js\node_modules\sax\lib\sax.js:903:7)
at Object.write (C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\node_modules\xml2js\node_modules\sax\lib\sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\node_modules\xml2js\lib\xml2js.js:502:31)
at Parser.parseString (C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\node_modules\xml2js\lib\xml2js.js:7:59)
at Object.exports.parseString (C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\node_modules\xml2js\lib\xml2js.js:534:19)
at parseCssValidation (C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\lib\w3cjs.js:103:23)
at C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\lib\w3cjs.js:81:29
at Request.callback (C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\node_modules\superagent\lib\node\index.js:630:3)
at Request.<anonymous> (C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\node_modules\superagent\lib\node\index.js:131:10)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at Stream.<anonymous> (C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\node_modules\superagent\lib\node\index.js:773:12)
at emitNone (events.js:72:20)
at Stream.emit (events.js:166:7)
at Unzip.<anonymous> (C:\Users\NewAccount\.atom\packages\w3c-validation\node_modules\w3cvalidator\node_modules\superagent\lib\node\utils.js:124:12)
at emitNone (events.js:72:20)
at Unzip.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:893:12)
at doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17)
-0:35.1.0 docblockr:parse-enter (atom-text-editor.editor.is-focused)
-0:35.1.0 editor:newline (atom-text-editor.editor.is-focused)
-0:34.3.0 core:move-left (atom-text-editor.editor.is-focused)
-0:33.6.0 core:move-down (atom-text-editor.editor.is-focused)
-0:33.2.0 core:move-right (atom-text-editor.editor.is-focused)
-0:32.7.0 editor:delete-to-beginning-of-word (atom-text-editor.editor.is-focused)
6x -0:32.4.0 core:backspace (atom-text-editor.editor.is-focused)
-0:23.7.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused)
-0:23.7.0 docblockr:parse-enter (atom-text-editor.editor.is-focused)
-0:23.7.0 editor:newline (atom-text-editor.editor.is-focused)
2x -0:20.1.0 core:backspace (atom-text-editor.editor.is-focused)
-0:17.6.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused)
-0:17.6.0 docblockr:parse-enter (atom-text-editor.editor.is-focused)
-0:17.6.0 editor:newline (atom-text-editor.editor.is-focused)
2x -0:11.9.0 core:move-down (atom-text-editor.editor.is-focused)
2x -0:10.5.0 core:save (atom-text-editor.editor.is-focused)
{
"core": {}
}
# User
atom-alignment, v0.12.1
atom-beautify, v0.28.18
atom-html-preview, v0.1.13
atom-jshint, v2.0.0
Atom-Syntax-highlighting-for-Sass, v0.5.0
atom-ternjs, v0.8.4
autoclose-html, v0.19.0
autocomplete-html-entities, v0.1.0
autocomplete-paths, v1.0.2
css-comb, v2.4.0
css-snippets, v0.9.0
docblockr, v0.7.3
emmet, v2.3.14
file-icons, v1.6.11
git-diff-details, vundefined
git-log, v0.4.1
javascript-snippets, v1.0.0
jshint, v1.8.3
linter, v1.11.1
linter-csslint, v1.1.0
linter-htmlhint, v0.2.1
livereload, v0.4.3
sass-autocompile, v0.11.0
save-session, v0.15.7
w3c-validation, v0.2.0
# Dev
No dev packages
Hi, sorry for the long time on this one, was very busy with my work.
I've just released a new version (0.3.0
) of the package, using new modules for validation.
Hope it will fix this issue.
[Enter steps to reproduce below:]
Atom Version: 0.184.0 System: Mac OS X 10.10.2 Thrown From: w3c-validation package, v0.1.3
Stack Trace
Uncaught TypeError: Cannot read property '0' of undefined
Commands
Config
Installed Packages