elementary / elementary/code

Vala scanner goes into loop and may crash with certain code

Đang mở
#1,355 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Vala
Star
521
Fork
118
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
14

Mô tả

### 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_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.