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

[Bug]: Formatting fails with .frag files #66

Open
enyo opened this issue Nov 6, 2024 · 2 comments
Open

[Bug]: Formatting fails with .frag files #66

enyo opened this issue Nov 6, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@enyo
Copy link

enyo commented Nov 6, 2024

The extension's version

1.3.8

VS Code's version

1.94.2

Extension host

Desktop VS Code

Operating system

M1 Pro

Description

When I change the fragment shader file extension to .frag code formatting fails. If I change it to .glsl it works fine. It also works fine for the .vert file.

@enyo enyo added the bug Something isn't working label Nov 6, 2024
@enyo
Copy link
Author

enyo commented Nov 6, 2024

Oh, and I just realized that .vs works fine. So it's low priority

@racz16
Copy link
Owner

racz16 commented Nov 6, 2024

Hi, thanks for reporting the problem. Formatting usually breaks when you use something that is not supported in GLSL ES 100 or GLSL ES 300, like the buffer keyword, or sometimes if you use preprocessor directives. But if you have the same code and it works with multiple file extensions but not with the .frag, I don't have many ideas.

Maybe you installed another extension that also uses the .frag file extension. Please check the bottom right corner of the file to see if the language assigned to .frag files is GLSL.

If this doesn't help, please provide a minimal reproducible example so I can investigate the problem further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants