Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vala scanner goes into loop and may crash with certain code #1355

Open
jeremypw opened this issue Jul 20, 2023 · 0 comments · May be fixed by #1356
Open

Vala scanner goes into loop and may crash with certain code #1355

jeremypw opened this issue Jul 20, 2023 · 0 comments · May be fixed by #1356

Comments

@jeremypw
Copy link
Collaborator

jeremypw commented Jul 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant