Conversation
Summary of ChangesHello @waruqi, 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 focuses on updating the Highlights
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 updates the tbox submodule to a new commit. This is a standard dependency update, and the change itself simply modifies the commit pointer for the submodule. As there are no source code changes within this repository's diff, I have no specific feedback or suggestions.
|
windows还有一个规则,argv0不能包含双引号 |
Windows also has a rule that argv0 cannot contain double quotes. |
那 arg0 带空格怎么搞,没引号,执行就跪了。。 |
What to do if arg0 contains spaces? Without quotation marks, execution will fail. . |
意思是最外层能加双引号表示一个arg,但是argv0内部无法使用转义 |
感觉没啥必要,就算我不报错,传入 ",最终执行进程的时候,还是会报错的,一样的。 对于 tbox 这边,只能处理返回值,报错,就是创建 process 返回 null,这跟直接丢 " 给 CreateProcess 最后执行失败,一样是返回 null。 也就是做不做提前检测,对于 tb_process_init 来说是没有任何变化的,都是返回 null 要想提示更加明显的错误信息,只能在 lua 上层做,那这个额外处理的,还得分平台处理,不仅不好维护,而且还影响性能,每次启进程,还得多做一次 argv0 查找操作。没啥必要。 |
This means that double quotes can be added to the outermost layer to represent an arg, but the escape |
argv0 is the file name path. It is impossible for the path under win to contain If you have |
It feels unnecessary. Even if I don't report an error and pass in ", an error will still be reported when the process is finally executed. It's the same. For tbox, we can only handle the return value and report an error, that is, the creation process returns null. This is the same as directly throwing " to CreateProcess and the final execution fails, which returns null. That is to say, whether or not early detection is performed, there is no change for tb_process_init, and null is returned. If you want to prompt a more obvious error message, you can only do it in the upper layer of Lua. This extra processing will also be handled by the platform. It is not only difficult to maintain, but also affects performance. Every time you start the process, you have to do an extra argv0 search operation. No need. |


#6979 (comment)