abe33 / abe33/atom-pigments

Uncaught Error: kill EPERM

未關閉
#411 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
CoffeeScript
星號
518
分支
70
PR 合併指標
30 天內沒有已合併 PR

描述

[Enter steps to reproduce:]

1. ...
2. ...

**Atom**: 1.31.2 x64
**Electron**: 2.0.7
**OS**: Microsoft Windows 10 Home Single Language
**Thrown From**: [pigments](https://github.com/abe33/atom-pigments) package 0.40.2

### Stack Trace

Uncaught Error: kill EPERM

```
At events.js:183

Error: kill EPERM
at _errnoException (util.js:1024:11)
at ChildProcess.kill (internal/child_process.js:395:26)
at Task.module.exports.Task.terminate (~/AppData/Local/atom/app-1.31.2/resources/app/src/task.js:148:31)
at ColorBuffer.module.exports.ColorBuffer.terminateRunningTask (/packages/pigments/lib/color-buffer.coffee:166:35)
at /packages/pigments/lib/color-buffer.coffee:33:8
at Function.module.exports.Emitter.simpleDispatch (~/AppData/Local/atom/app-1.31.2/resources/app/node_modules/event-kit/lib/emitter.js:27:20)
at Emitter.module.exports.Emitter.emit (~/AppData/Local/atom/app-1.31.2/resources/app/node_modules/event-kit/lib/emitter.js:156:34)
at disposables.add.displayLayer.onDidChange.changes (~/AppData/Local/atom/app-1.31.2/resources/app/src/text-editor.js:615:26)
at Function.module.exports.Emitter.simpleDispatch (~/AppData/Local/atom/app-1.31.2/resources/app/node_modules/event-kit/lib/emitter.js:27:20)
at Emitter.module.exports.Emitter.emit (~/AppData/Local/atom/app-1.31.2/resources/app/node_modules/event-kit/lib/emitter.js:156:34)
at DisplayLayer.emitDeferredChangeEvents (~/AppData/Local/atom/app-1.31.2/resources/app/node_modules/text-buffer/lib/display-layer.js:819:26)
at TextBuffer.module.exports.TextBuffer.emitDidChangeTextEvent (~/AppData/Local/atom/app-1.31.2/resources/app/node_modules/text-buffer/lib/text-buffer.js:1802:30)
at TextBuffer.module.exports.TextBuffer.transact (~/AppData/Local/atom/app-1.31.2/resources/app/node_modules/text-buffer/lib/text-buffer.js:998:18)
at TextEditor.transact (~/AppData/Local/atom/app-1.31.2/resources/app/src/text-editor.js:2007:30)
at TextEditor.moveCursors (~/AppData/Local/atom/app-1.31.2/resources/app/src/text-editor.js:2880:23)
at TextEditor.setCursorScreenPosition (~/AppData/Local/atom/app-1.31.2/resources/app/src/text-editor.js:2691:23)
at TextEditorComponent.didMouseDownOnContent (~/AppData/Local/atom/app-1.31.2/resources/app/src/text-editor-component.js:1808:25)
```

### Commands

```
-1:29.9.0 atom-save-all:saveAll (input.hidden-input)
-1:23 autoclose-html:close-and-complete (input.hidden-input)
-1:22.6.0 emmet:insert-formatted-line-break-only (input.hidden-input)
-1:21.7.0 core:undo (input.hidden-input)
-1:20.9.0 editor:move-to-end-of-screen-line (input.hidden-input)
-1:20.6.0 emmet:insert-formatted-line-break-only (input.hidden-input)
-1:20.6.0 editor:newline (input.hidden-input)
-1:12 autoclose-html:close-and-complete (input.hidden-input)
-1:06.7.0 emmet:insert-formatted-line-break-only (input.hidden-input)
-1:06.7.0 editor:newline (input.hidden-input)
-1:02.4.0 autoclose-html:close-and-complete (input.hidden-input)
-0:53.3.0 core:move-left (input.hidden-input)
-0:52.5.0 core:undo (input.hidden-input)
-0:51.4.0 core:backspace (input.hidden-input)
-0:41.3.0 autoclose-html:close-and-complete (input.hidden-input)
4x -0:25.1.0 atom-save-all:saveAll (input.hidden-input)
```

### Non-Core Packages

```
angularjs 0.5.3
atom-ide-ui 0.13.0
atom-save-all 0.4.1
atom-ternjs 0.18.3
atom-typescript 12.6.3
autoclose-html 0.23.0
autocomplete-ionic2-framework 0.3.2
color-picker 2.3.0
emmet 2.4.3
highlight-selected 0.14.0
logo-file-icons 1.13.0
minimap 4.29.8
minimap-highlight-selected 4.6.1
minimap-pigments 0.2.2
multi-cursor 2.1.5
pigments 0.40.2
platformio-ide-terminal 2.8.4
```

貢獻指南

開啟貢獻指南

研究方向

The error originates in the color-buffer.coffee file at line 166, where a task termination fails with a kill EPERM on Windows. Start by examining the task termination logic in that file and the underlying Atom Task API. Look for race conditions or improper process handling on Windows. Check if there are existing tests for the color buffer or task termination to understand the expected behavior.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
coffeescript, javascript
領域
desktop, tooling
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
30/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。