-
Notifications
You must be signed in to change notification settings - Fork 0
vcpkg: latest greatest #4
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
base: main
Are you sure you want to change the base?
Conversation
WalkthroughUpdated the Changes
Sequence Diagram(s)(omitted — changes do not meet diagram generation criteria) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
scripts/compile_shader.py (1)
19-27: Fix incorrect error handling and broken error message.The error handling has two critical issues:
Incorrect error detection:
communicate()returns(stdout, stderr), so checkingif error is Noneonly verifies whether stderr is empty, not whether the process succeeded. A compilation can fail with a non-zero exit code but produce no stderr output, and this would go undetected.Broken error message: Line 27 uses
{error}syntax in a regular string instead of an f-string, so the error won't be displayed correctly.Apply this diff to fix both issues:
process_handle = subprocess.Popen(cmd, stdout=subprocess.PIPE) output, error = process_handle.communicate() - if error is None: + if process_handle.returncode == 0: print("Shader " + shadername + " compiled.") if verbose and output is not None: if len(output) != 0: print(str(output)) else: - print("Error {error} while compilation.", error) + print(f"Error {process_handle.returncode} while compilation.") + if error: + print(error.decode())
🧹 Nitpick comments (1)
scripts/compile_shader.py (1)
50-50: Simplify string slicing.The slice
path.suffix[1:len(path.suffix)]can be simplified topath.suffix[1:]since omitting the end index automatically goes to the end of the string.Apply this diff:
- shader_out = path.suffix[1:len(path.suffix)] + ".spv" + shader_out = path.suffix[1:] + ".spv"
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
scripts/compile_shader.py(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: build (windows-latest, Release, cl)
- GitHub Check: build (ubuntu-latest, Release, gcc)
- GitHub Check: build (ubuntu-latest, Release, clang)
Changed the shader argument to be optional and added platform-specific shader copying.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
scripts/compile_shader.py
🧰 Additional context used
🪛 Ruff (0.14.10)
scripts/compile_shader.py
10-11: Expected an expression
(invalid-syntax)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: build (windows-latest, Release, cl)
| from os import listdir | ||
| from os.path import isfile, join | ||
|
|
||
| TargetFolder = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical: Invalid syntax prevents script execution.
Line 10 has an incomplete assignment statement TargetFolder = with no value, causing a syntax error that prevents the script from running. Additionally, this variable is never used elsewhere in the code.
Remove this line entirely or complete the implementation if it was intended to store the target folder path.
🔎 Proposed fix
-TargetFolder = 📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| TargetFolder = |
🧰 Tools
🪛 Ruff (0.14.10)
10-11: Expected an expression
(invalid-syntax)
🤖 Prompt for AI Agents
In scripts/compile_shader.py around line 10 there is an incomplete assignment
"TargetFolder =" that causes a SyntaxError and the variable is unused; either
delete this line entirely if not needed, or set it to a valid string/path (e.g.
TargetFolder = "/path/to/target") and update the rest of the script to reference
it where appropriate so the variable is actually used and no syntax error
remains.



Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.