Editor: Change "buffer exceeded: you probably have a missing closing bracket on a previous line" compile error message #2532
Labels
ags3
related to ags3 (version with full backward compatibility)
context: script compiler
type: enhancement
a suggestion or necessity to have something improved
Describe the problem
I ran into an issue where I made a mistake in my code and got the following error message:
So I looked around to see where I missed a bracket, and couldn't find anything. It was definitely nowhere near the previous line. I have my project on Git and reviewed the diff, seeing nothing unusual with the brackets. So I started commenting out some functions to see which one was stopping the compiler, and what I found is that I was missing a closing parenthesis and a semicolon in one of the functions. 🤦🏼
Anyway, the message above is too cryptic and too confident for what it knows.
Suggested change
This is a tricky one to solve because it needs to serve various potential errors and hint this. What can be done is:
} ) " ' ]
) and confirm that the error appears when these are missing.Alternatively: The script parser somehow traces back to check where what is the first missing closing element and tells you the exact line, although this may be a more complex solution.
The text was updated successfully, but these errors were encountered: