elementary / elementary/code

Vala scanner goes into loop and may crash with certain code

未关闭
#1,355 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Vala
星标
521
派生
118
平均合并
1 天 8 小时
30 天内合并 PR
14

描述

### What Happened?

Inserted some code in the form:
```
try {
---
---
} catch () {
---
---
}
```

into a Vala file. On opening the symbol outline it remained blank and inspecting the terminal output indicated it had gone into a loop. Repeated Terminal warning: `vala_scanner_read_token: assertion 'self != NULL' failed`

Editing the file with "autosave" on resulted in random crashes which back traced to the outline plugin.

### Steps to Reproduce

1. Edit some code containing lines in the form mentioned above with the outline plugin on

### Expected Behavior

The outline plugin should handle invalid Vala code without crashing or going into a loop.

### OS Version

7.x (Horus)

### Software Version

Latest release (I have run all updates)

### Log Output

_No response_

### Hardware Info

_No response_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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