griffin-stewie / atom-redpen Goto Github PK
View Code? Open in Web Editor NEWValidate your document using 'RedPen' on your Atom Editor
Home Page: https://atom.io/packages/redpen
License: MIT License
Validate your document using 'RedPen' on your Atom Editor
Home Page: https://atom.io/packages/redpen
License: MIT License
[Enter steps to reproduce below:]
Atom Version: 1.7.2
System: Unknown Windows Version
Thrown From: redpen package, v0.3.5
Uncaught TypeError: Cannot read property 'getGrammar' of undefined
At /C:/Users/masahiro/.atom/packages/redpen/lib/redpenValidator.coffee:77
TypeError: Cannot read property 'getGrammar' of undefined
at versionCheckHandler (file:///C:/Users/masahiro/.atom/packages/redpen/lib/redpenValidator.coffee:54:18)
at Validator.module.exports.Validator.redpenVersion (file:///C:/Users/masahiro/.atom/packages/redpen/lib/redpenValidator.coffee:69:9)
at Validator.module.exports.Validator.needsValidateAsync (file:///C:/Users/masahiro/.atom/packages/redpen/lib/redpenValidator.coffee:61:8)
at Object.module.exports.Redpen.validate (file:///C:/Users/masahiro/.atom/packages/redpen/lib/redpen.coffee:74:16)
at atom-workspace.subscriptions.add.atom.commands.add.redpen:validate (file:///C:/Users/masahiro/.atom/packages/redpen/lib/redpen.coffee:40:83)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\masahiro\AppData\Local\atom\app-1.7.2\resources\app.asar\src\command-registry.js:260:29)
at CommandRegistry.handleCommandEvent (C:\Users\masahiro\AppData\Local\atom\app-1.7.2\resources\app.asar\src\command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\masahiro\AppData\Local\atom\app-1.7.2\resources\app.asar\src\command-registry.js:160:19)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchApplicationMenuCommand (C:\Users\masahiro\AppData\Local\atom\app-1.7.2\resources\app.asar\src\atom-environment.js:1100:28)
at EventEmitter.outerCallback (C:\Users\masahiro\AppData\Local\atom\app-1.7.2\resources\app.asar\src\application-delegate.js:314:25)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
{
"core": {}
}
# User
japanese-menu, v1.7.0
redpen, v0.3.5
# Dev
No dev packages
Validate を押したところ、エラーになってしまいます。Windows 環境なので、サポートされていないのかもしれませんが…。
(1) Windows 環境はサポートされているか
(2) サポートされている場合、何をご提供すれば、バグなのか私の単純な設定ミスかがわかるか
お忙しいところ申し訳ありませんが、教えていただけましたら幸いです。
[Enter steps to reproduce below:]
Atom Version: 1.0.19
System: Unknown Windows Version
Thrown From: redpen package, v0.3.5
Uncaught SyntaxError: Unexpected end of input
At file:///C:/Users/htsujimu/AppData/Local/atom/app-1.0.19/resources/app.asar/static/index.html#%7B%22locationsToOpen%22%3A%5B%7B%22pathToOpen%22%3A%22C%3A%5C%5CUsers%5C%5Chtsujimu%5C%5CDocuments%5C%5C02_CU%22%2C%22initialLine%22%3Anull%2C%22initialColumn%22%3Anull%7D%2C%7B%22pathToOpen%22%3A%22C%3A%5C%5Credpen%5C%5Cconf%22%2C%22initialLine%22%3Anull%2C%22initialColumn%22%3Anull%7D%5D%2C%22bootstrapScript%22%3A%22C%3A%5C%5CUsers%5C%5Chtsujimu%5C%5CAppData%5C%5CLocal%5C%5Catom%5C%5Capp-1.0.19%5C%5Cresources%5C%5Capp.asar%5C%5Csrc%5C%5Cwindow-bootstrap.js%22%2C%22resourcePath%22%3A%22C%3A%5C%5CUsers%5C%5Chtsujimu%5C%5CAppData%5C%5CLocal%5C%5Catom%5C%5Capp-1.0.19%5C%5Cresources%5C%5Capp.asar%22%2C%22devMode%22%3Afalse%2C%22safeMode%22%3Afalse%2C%22appVersion%22%3A%221.0.19%22%2C%22shellLoadTime%22%3A311%2C%22initialPaths%22%3A%5B%22C%3A%5C%5CUsers%5C%5Chtsujimu%5C%5CDocuments%5C%5C02_CU%22%2C%22C%3A%5C%5Credpen%5C%5Cconf%22%5D%7D:1
SyntaxError: Unexpected end of input
at Object.parse (native)
at Object.module.exports.parse (C:\Users\htsujimu\.atom\packages\redpen\lib\redpenResultParser.coffee:10:19)
at C:\Users\htsujimu\.atom\packages\redpen\lib\redpenValidator.coffee:141:25
at ChildProcess.exithandler (child_process.js:215:5)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:764:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
-4:23.2.0 redpen:validate (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
-1:16.9.0 find-and-replace:show (atom-text-editor.editor.mini.is-focused)
2x -1:13.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
-0:23.6.0 redpen:validate (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
{
"core": {
"themes": [
"atom-light-ui",
"atom-light-syntax"
],
"disabledPackages": [
"wordpress-api",
"atom-lint"
]
},
"redpen": {
"pathForRedPen": "c:\\redpen\\bin",
"JAVA_HOME": "C:\\Program Files (x86)\\Java\\jre1.7.0_85;",
"validateOnSave": true
}
}
# User
autocomplete-paths, v1.0.2
japanese-wrap, v0.2.10
jshint, v1.8.0
jslint, v1.4.0
language-dot, v1.6.0
linkify, v0.11.0
redpen, v0.3.5
vim-mode, v0.60.0
# Dev
No dev packages
[Enter steps to reproduce:]
Atom: 1.15.0 x64
Electron: 1.3.13
OS: Mac OS X 10.12.4
Thrown From: redpen package 0.5.0
Uncaught SyntaxError: Unexpected end of JSON input
At file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.html:1
SyntaxError: Unexpected end of JSON input
at Object.parse (native)
at Object.parse (/packages/redpen/lib/redpenResultParser.coffee:10:19)
at /packages/redpen/lib/redpenValidator.coffee:150:25
at ChildProcess.exithandler (child_process.js:225:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Socket.<anonymous> (internal/child_process.js:334:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:493:12)
-2:25.1.0 tree-view:show (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-monokai.theme-one-dark-ui)
-2:21.6.0 redpen:validate (input.hidden-input)
atom-html-preview 0.1.22
editorconfig 2.2.2
file-icons 2.1.2
git-plus 7.3.3
git-time-machine 1.5.9
language-markdown 0.20.0
markdown-pdf 1.5.0
markdown-preview-plus 2.4.9
markdown-toc 0.4.2
markdown-writer 2.6.4
monokai 0.22.0
node_modules undefined
project-manager 3.3.4
redpen 0.5.0
[Enter steps to reproduce below:]
Atom Version: 1.0.2
System: Unknown Windows Version
Thrown From: redpen package, v0.3.3
Uncaught TypeError: undefined is not a function
At C:\Users\nabana\.atom\packages\redpen\lib\redpenValidator.coffee:26
TypeError: undefined is not a function
at Validator.module.exports.Validator.needsValidate (C:\Users\nabana\.atom\packages\redpen\lib\redpenValidator.coffee:26:31)
at Validator.module.exports.Validator.versionCheck (C:\Users\nabana\.atom\packages\redpen\lib\redpenValidator.coffee:40:15)
at Object.module.exports.Redpen.validate (C:\Users\nabana\.atom\packages\redpen\lib\redpen.coffee:70:16)
at atom-workspace.subscriptions.add.atom.commands.add.redpen:validate (C:\Users\nabana\.atom\packages\redpen\lib\redpen.coffee:40:83)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (C:\Users\nabana\AppData\Local\atom\app-1.0.2\resources\app.asar\src\command-registry.js:241:29)
at CommandRegistry.handleCommandEvent (C:\Users\nabana\AppData\Local\atom\app-1.0.2\resources\app.asar\src\command-registry.js:3:61)
at CommandRegistry.module.exports.CommandRegistry.dispatch (C:\Users\nabana\AppData\Local\atom\app-1.0.2\resources\app.asar\src\command-registry.js:156:19)
at EventEmitter.<anonymous> (C:\Users\nabana\AppData\Local\atom\app-1.0.2\resources\app.asar\src\window-event-handler.js:70:30)
at emitOne (events.js:77:13)
at EventEmitter.emit (events.js:166:7)
-4:04.1.0 application:add-project-folder (ul.list-inline.tab-bar.inset-panel)
-3:58.6.0 linter:set-bubble-transparent (atom-text-editor.editor.is-focused)
-3:56.5.0 key-binding-resolver:toggle (atom-text-editor.editor.is-focused)
-3:50.8.0 application:open-file (atom-text-editor.editor.is-focused)
3x -3:46.8.0 core:backspace (atom-text-editor.editor.is-focused)
2x -3:45.4.0 linter:set-bubble-transparent (atom-text-editor.editor.is-focused)
-3:43 window:run-package-specs (atom-text-editor.editor.is-focused)
-0:10.5.0 redpen:validate (atom-text-editor.editor.is-focused)
{
"core": {
"themes": [
"atom-light-ui",
"atom-light-syntax"
],
"disabledPackages": [
"autocomplete-paths",
"turbo-javascript",
"linter-cpplint",
"linter-tidy"
]
},
"redpen": {
"pathForRedPen": "C:\\Users\\nabana\\redpen-cli-1.2\\bin\\redpen",
"validateOnSave": true,
"JAVA_HOME": "C:\\Program Files (x86)\\Java\\jre1.8.0_45\\bin",
"pathForConfigurationXMLFile": "C:\\Users\\nabana\\redpen-cli-1.2\\conf\\redpen-conf-ja.xml"
}
}
# User
color-picker, v2.0.9
emmet, v2.3.12
file-icons, v1.5.8
javascript-snippets, v1.0.0
linter, v1.2.4
linter-csslint, v0.0.14
linter-htmlhint, v0.0.17
linter-js-standard, v1.2.0
minimap-color-highlight, v4.1.4
project-manager, v1.15.11
redpen, v0.3.3
Sublime-Style-Column-Selection, v1.3.0
web-browser, v1.5.0
# Dev
No dev packages
~/ > apm install redpen
Installing redpen to /Users/kozo2/.atom/packages ✗
No available version compatible with the installed Atom version: 0.165.0
[Enter steps to reproduce below:]
Atom Version: 1.0.2
System: Mac OS X 10.10.4
Thrown From: redpen package, v0.3.4
Uncaught TypeError: Cannot read property 'close' of null
At /Users/zushi/.atom/packages/redpen/lib/redpenValidator.coffee:19
TypeError: Cannot read property 'close' of null
at /Users/zushi/.atom/packages/redpen/lib/redpenValidator.coffee:19:22
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:343:34
at Pane.module.exports.Pane.observeActiveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:186:7)
at /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:342:42
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
at PaneContainer.module.exports.PaneContainer.setActivePane (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:218:22)
at Pane.module.exports.Pane.activate (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:622:15)
at Pane.module.exports.Pane.focus (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:197:21)
at atom-pane.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-element.js:59:23)
{
"core": {
"ignoredNames": [
".git",
".svn",
".DS_Store"
],
"disabledPackages": [
"term",
"markdown-table-formatter",
"markdown-pdf",
"plantuml-preview",
"symbols-tree-view",
"git-control",
"recent-files",
"atom-color-highlight"
],
"themes": [
"atom-dark-ui",
"chester-atom-syntax"
]
},
"redpen": {
"pathForRedPen": "/usr/local/bin/redpen",
"JAVA_HOME": "/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home"
}
}
# User
Sublime-Style-Column-Selection, v1.3.0
asciidoc-preview, v0.5.1
asciidoctor-preview, v0.1.5
chester-atom-syntax, v0.1.1
file-icons, v1.5.8
git-log, v0.4.1
go-plus, v3.4.3
japanese-wrap, v0.2.10
jsonlint, v1.1.2
kill-ring, v0.1.0
language-asciidoc, v0.11.1
language-lua, v0.9.4
linter-coffeelint, v1.0.0
linter-lua, v1.0.0
linter-shellcheck, v0.0.8
markdown-scroll-sync, v0.4.0
pretty-json, v0.4.1
redpen, v0.3.4
regex-railroad-diagram, v0.8.3
save-session, vundefined
svg-preview, v0.6.0
tabs-to-spaces, v0.11.0
# Dev
No dev packages
Argument to path.dirname
must be a string
Object.dirname (/Applications/Atom.app/Contents/Resources/app.asar/src/electron-shims.js:9:10)
Validator.resolveConfigLocation (/Users/yonekurayuuki/.atom/packages/redpen/lib/redpenValidator.coffee:208:34)
Validator.validate (/Users/yonekurayuuki/.atom/packages/redpen/lib/redpenValidator.coffee:151:42)
<unknown> (/Users/yonekurayuuki/.atom/packages/redpen/lib/redpen.coffee:87:36)
versionCheckHandler (/Users/yonekurayuuki/.atom/packages/redpen/lib/redpenValidator.coffee:87:18)
<unknown> (/Users/yonekurayuuki/.atom/packages/redpen/lib/redpenValidator.coffee:124:20)
説明に従って,準備を済ませてatomからredpenパッケージを呼び出すと
redpen package requires RedPenCLI v1 or higher update your RedPenCLI
とはねられてしまいます。
なお,昨日ダウンロードした redpen-cli-1.0 に含まれるredpenのバージョンは0.6です。
[Enter steps to reproduce below:]
Atom Version: 1.8.0
System: Ubuntu 14.04.4
Thrown From: redpen package, v0.5.0
Uncaught TypeError: path.join is not a function
At /home/mizuho/.atom/packages/redpen/lib/redpenValidator.coffee:129
TypeError: path.join is not a function
at Validator.module.exports.Validator.validate (/home/mizuho/.atom/packages/redpen/lib/redpenValidator.coffee:129:44)
at /home/mizuho/.atom/packages/redpen/lib/redpen.coffee:79:20
at versionCheckHandler (/home/mizuho/.atom/packages/redpen/lib/redpenValidator.coffee:63:11)
at /home/mizuho/.atom/packages/redpen/lib/redpenValidator.coffee:98:11
at ChildProcess.exithandler (child_process.js:216:7)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:818:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
-7:11.7.0 vim-mode:activate-insert-mode (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
4x -7:11.3.0 editor:newline (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
5x -7:08.6.0 core:backspace (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
2x -7:03.2.0 core:save (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
{
"core": {
"closeEmptyWindows": false
},
"redpen": {
"JAVA_HOME": "/usr/lib/jvm/java-8-oracle",
"pathForRedPen": "/home/mizuho/usr/local/redpen/bin/redpen",
"validateOnSave": true
}
}
# User
japanese-menu, v1.8.0
keyboard-localization, v1.4.18
redpen, v0.5.0
vim-mode, v0.65.1
# Dev
No dev packages
redpenValidator.coffee中の抵当な箇所にpath = require 'path'
を挟んだら動きましたが、一応。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.