abe33 / abe33/atom-pigments

Uncaught TypeError: Cannot read property 'id' of undefined

未关闭
#415 4 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
bug help wanted
主要语言
CoffeeScript
星标
518
派生
70
PR 合并指标
30 天内没有已合并 PR

描述

[Enter steps to reproduce:]

1. Open PHP file.
2. Right click any area of opened PHP file.

**Atom**: 1.33.0 x64
**Electron**: 2.0.11
**OS**: Microsoft Windows 10 Enterprise N LTSC
**Thrown From**: Atom Core

### Stack Trace

Uncaught TypeError: Cannot read property 'id' of undefined

```
At C:\Users\User\AppData\Local\atom\app-1.33.0\resources\app\static\:11

TypeError: Cannot read property 'id' of undefined
at extraRenderedScreenLines.forEach (~/AppData/Local/atom/app-1.33.0/resources/app/static/:11:75663)
at Map.forEach ()
at TextEditorComponent.renderLineTiles (~/AppData/Local/atom/app-1.33.0/resources/app/static/:11:75595)
at TextEditorComponent.renderContent (~/AppData/Local/atom/app-1.33.0/resources/app/static/:11:74121)
at TextEditorComponent.renderScrollContainer (~/AppData/Local/atom/app-1.33.0/resources/app/static/:11:73581)
at TextEditorComponent.render (~/AppData/Local/atom/app-1.33.0/resources/app/static/:11:72360)
at Object.updateSync (~/AppData/Local/atom/app-1.33.0/resources/app/static/:14:126536)
at TextEditorComponent.updateSyncBeforeMeasuringContent (~/AppData/Local/atom/app-1.33.0/resources/app/static/:11:70218)
at TextEditorComponent.updateSync (~/AppData/Local/atom/app-1.33.0/resources/app/static/:11:67605)
at TextEditorComponent.didShow (~/AppData/Local/atom/app-1.33.0/resources/app/static/:11:91235)
at TextEditorComponent.didFocus (~/AppData/Local/atom/app-1.33.0/resources/app/static/:11:91426)
at HTMLElement.addEventListener (/app.asar/src/text-editor-element.js:36:67)
at HTMLElement.activeItemChanged (/app.asar/src/pane-element.js:164:16)
at Function.simpleDispatch (~/AppData/Local/atom/app-1.33.0/resources/app/static/:11:1190583)
at Emitter.emit (~/AppData/Local/atom/app-1.33.0/resources/app/static/:11:1192024)
at Pane.setActiveItem (~/AppData/Local/atom/app-1.33.0/resources/app/static/:11:455231)
at Pane.activateItem (~/AppData/Local/atom/app-1.33.0/resources/app/static/:11:457479)
at TabBarView.t.exports.TabBarView.onClick (~/AppData/Local/atom/app-1.33.0/resources/app/static/:11:1141088)
```

### Commands

```
-4:07.6.0 settings-view:open (input.hidden-input)
```

### Non-Core Packages

```
atom-beautify 0.33.4
atom-ide-ui 0.13.0
atom-minify 0.8.0
ide-css 0.3.2
ide-html 0.4.2
ide-json 0.2.1
imagemin 1.6.1
pigments 0.40.2
```

贡献指南

打开贡献指南

调研方向

The stack trace points to TextEditorComponent.renderLineTiles in the embedded core. Look at the pigments package code to see how it interacts with the editor, especially around line rendering. The error suggests an undefined object when accessing 'id'. Check the pigments package's handling of screen lines or markers. Start by reproducing the bug: open a PHP file and right-click. Examine the package's activation and deactivation hooks.

由索引模型根据 Issue 内容生成。

评估

技术栈
coffeescript, javascript
领域
desktop, devtools
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。