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

vscode set "editor.formatOnSave": true, changing api with copmlains go: malformed module path "/": trailing slash #4161

Closed
iwalkerr opened this issue May 24, 2024 · 3 comments

Comments

@iwalkerr
Copy link

  1. The code is

    go: malformed module path "/": trailing slash
     @server(
         prefix: /api/v1/class
         middleware: Auth
         group: frontend/class
     )
     service homework-api {
         @doc(
     	    summary: "获取班级列表"
         )
         @handler List
         post /list(ClassListReq) returns(ClassListResp)
     }
  2. The error is

    go: malformed module path "/": trailing slash
    

Screenshots
vscode 设置"editor.formatOnSave": true,更改api自动保存顶部会出现go: malformed module path "/": trailing slash

Environments (please complete the following information):

  • OS: [e.g. Mac]
  • go-zero version [e.g. go 1.22.0]
  • goctl version [e.g. 1.6.5, optional]
@kevwan
Copy link
Contributor

kevwan commented May 26, 2024

Please submit the issue to "https://github.com/zeromicro/goctl-vscode"

@kevwan kevwan changed the title vscode 设置"editor.formatOnSave": true,更改api自动保存顶部会出现go: malformed module path "/": trailing slash vscode set "editor.formatOnSave": true, changing api with copmlains go: malformed module path "/": trailing slash May 26, 2024
@iwalkerr
Copy link
Author

Please submit the issue to "https://github.com/zeromicro/goctl-vscode"

thank you

kesonan added a commit to kesonan/go-zero that referenced this issue Jun 3, 2024
github-merge-queue bot pushed a commit that referenced this issue Jun 4, 2024
@kesonan
Copy link
Collaborator

kesonan commented Jun 13, 2024

fixed on #4161

@kesonan kesonan closed this as completed Jun 13, 2024
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

3 participants