Conversation
Summary of ChangesHello @luadebug, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a significant enhancement to the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces the --from-stdin flag for the xmake lua command, allowing script execution from standard input. The core implementation is sound, but there are a few areas for improvement in both the implementation and the accompanying tests. Specifically, the new test file contains critical flaws in how it checks command exit statuses, which undermines the validity of the failure-case tests. The tests could also benefit from more robust resource cleanup. The main implementation file has some minor redundancies that can be cleaned up for better code clarity.
|
If the implementation is too complex and makes it difficult to maintain, I will not consider supporting it. |
I am not completely asure is it good or should behave different way for |
…zation for cross-platform compatibility
…in various shells
… unused functions
|
After changes in .c file it would print out as expected to be from a start. |
|
I dunno what's wrong now :? |
I've tried using cosmocc to compile xmake on macOS/Linux, but I haven't been able to reproduce your problem. It works for me. (dev branch) |
|
well, I got it. but it still does not work. ruki@dcc74edcdedc:/mnt/xmake$ ./build/xmake l os.programfile
"/home/ruki/.ape-1.10" |
|
Well I am busy for now maybe I will look into this in a future. |
I have fixed it. |
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces a useful feature to run Lua scripts from stdin via the --stdin flag. The implementation covers different shells on both Windows and non-Windows platforms, and includes a good set of tests. My review includes a few suggestions to improve robustness and maintainability, such as making a check for APE binaries more specific, simplifying some of the new logic, and ensuring temporary files are cleaned up even when errors occur. Overall, this is a great addition.
Removed Windows-specific shell handling for script content.
#7277
Just test. This looks very complicated to implement as need test another OS.
On windows OS there is
cmdandpowershellorpwsh.Dunno maybe this sort of feature needs
os.shellimproved for winos.