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

Error messages: wrong line for parse error in buffer block #456

Open
therontarigo opened this issue Sep 12, 2024 · 1 comment
Open

Error messages: wrong line for parse error in buffer block #456

therontarigo opened this issue Sep 12, 2024 · 1 comment

Comments

@therontarigo
Copy link
Contributor

This does not affect minification, but is a minor inconvenience when encountering minifier bugs.

Given an unparseable input:

#version 450
buffer bufblock {
  float A;
  float [float];
};
Parse error: Error in bufferblock.glsl: Ln: 2 Col: 8
buffer bufblock {
       ^
Expecting: Type qualifier, ';' or 'layout'

The first line of the buffer block is reported, making it harder to find the real problem in a block definition several lines long.
This is a more serious problem when it's encountered on valid GLSL that Minifier does not parse correctly.

@aW4KeNiNG
Copy link

Same issue here

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

No branches or pull requests

2 participants