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

Lack of Error Reporting for Unsupported Features #271

Open
code-with-parth opened this issue Jan 19, 2025 · 1 comment
Open

Lack of Error Reporting for Unsupported Features #271

code-with-parth opened this issue Jan 19, 2025 · 1 comment

Comments

@code-with-parth
Copy link

Description:
The translator does not provide clear or detailed error messages when encountering unsupported features in the input shader code. This makes it difficult for developers to identify and debug the root cause of translation failures.

Steps to Reproduce:

  1. Write an HLSL shader using unsupported features, such as the groupshared keyword or certain compute shader functionalities.

  2. Translate the shader using CrossGL.

  3. Observe that the error message is vague or generic, offering little guidance.

Expected Behavior:
The translator should output detailed error messages specifying the exact feature, line number, and potential reasons for failure.

Actual Behavior:
The translator either outputs a generic error message or fails silently, making debugging time-consuming and inefficient.

Environment Details:

OS: Ubuntu 22.04

Python Version: 3.11

Additional Context:

This issue can be resolved by enhancing error handling in the parsing and code generation stages (e.g., lexer.py and parser.py).

Detailed error messages improve developer experience and make the tool more robust.

@code-with-parth
Copy link
Author

@CrossGL-issue-bot assign me

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

1 participant