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

基于sql创建web报错, #33

Open
longfei347 opened this issue May 13, 2024 · 4 comments
Open

基于sql创建web报错, #33

longfei347 opened this issue May 13, 2024 · 4 comments

Comments

@longfei347
Copy link

longfei347 commented May 13, 2024

填写表单,后点 下载代码 报错

The error is

Internal Server Error, exec: "sponge": cannot run executable found relative to current directory

@longfei347
Copy link
Author

原来是要 将 {user}\go\bin 加到path里, 前期准备没说清楚;

@longfei347
Copy link
Author

另外对window用户太不友好, 安装时,要可用linux命令, 可以装一个git, 通过git bash来运行sponge init
另外的make docs, make run 就没法执行了, 需要根据 makefile里执行步骤进行相应的window上操作, 其实就是go的安装运行
文档里也不说清楚点...

@longfei347
Copy link
Author

longfei347 commented May 14, 2024

现在编程辅助工具插件那么多, 这种crud的操作, 基本都能自动生成, 有点鸡肋, 不如多试下那些插件 chatmoss, codeGeex, 通义灵码, kimi, openai, codeium, copilot,tabnine, 360智能助手 ...

@zhufuyi
Copy link
Owner

zhufuyi commented May 14, 2024

安装sponge文档有写具体安装步骤,在windows环境支持两种安装方式:

sponge.exe安装在$GOBIN目录下,不要在$GOBIN目录执行sponge run命令启动ui界面服务,否则生成代码时会报相对路径错误,但可以在$GOBIN目录执行sponge命令行方式来生成代码。

我也常使用AI辅助编程工具(chatGPT 4、claude 3、fitten code, codeium等),只是用来生成某些功能片段代码,不少生成的代码还要经过人工调整才能使用,这样也可以提高一些编程效率,但不要过于神话AI辅助编程工具。例如让AI辅助工具 基于mysql的user表生成go语言的CRUD代码,要求使用gin和gorm框架,要求CRUD代码支持自定义条件查询,支持分页、支持缓存(防击穿、防穿透)、支持swagger文档等,试过多种AI辅助工具生成的CRUD代码没有一个能满足实际项目要求的。

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

2 participants