abe33 / abe33/atom-pigments

Uncaught TypeError: Cannot read property 'id' of undefined

Ouverte
#415 4 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
bug help wanted
Langage dominant
CoffeeScript
Étoiles
518
Forks
70
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

[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
```

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

La stack trace pointe vers TextEditorComponent.renderLineTiles dans le core intégré. Examinez le code du package pigments pour voir comment il interagit avec l'éditeur, en particulier autour du rendu des lignes. L'erreur indique qu'un objet indéfini est utilisé lors de l'accès à 'id'. Vérifiez comment le package pigments gère les lignes d'écran ou les marqueurs. Commencez par reproduire le bug : ouvrez un fichier PHP et faites un clic droit. Examinez les hooks d'activation et de désactivation du package.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
coffeescript, javascript
Domaine
desktop, devtools
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.