-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Basic VSCode configuration for building and debugging #2483
Conversation
LGTM, I'm using VSCode. |
8b05ecc
to
4a2d9cc
Compare
I am using vscode too, but don't think any IDE setup should be included in project codebase. You can add it to README or create wiki page about it. |
Yeah, add this to |
.vscode/tasks.json
Outdated
"panel": "shared" | ||
}, | ||
"args": ["build", "-o", "gitea", "${workspaceRoot}/main.go"], | ||
"windows": { |
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.
Doesn't work for me on Windows. Looks like it's combing both sets of args.
> Executing task: go build -o gitea c:\Users\Jonas\go\src\code.gitea.io\gitea/main.go build -o gitea.exe c:\Users\Jonas\go\src\code.gitea.io\gitea/main.go <
named files must be .go files
The terminal process terminated with exit code: 1
LGTM, I'm using VSCode on Debian, and this works for me. |
@cez81 fixed for windows |
@Morlinest @bkcsoft my idea was for new developers to get going faster and it does not mess anything if you are other IDE/editor but off course I can move it to |
@lafriks Works 👍 I think it can be moved to contrib folder but should be accompanied with support docs to get people started. |
@sapk @Morlinest @bkcsoft done |
@lafriks Thanks for all your work (I will probably use it too :D). I want to share my opinion: Another thing, there is makefile for help with everything and I am missing any documentation for that. This (documentation for makefile and what commands should I use and when) would be for me best first help. |
@Morlinest yes I agree that others could want to modify or add additional tasks that's why I moved it to contrib folder :) Also that is reason why I added link to IDE configuration on top of contribution file to not bury it somewhere deep :) |
e062ce1
to
ae6442c
Compare
Make LG-TM work |
I know that there are many options for IDE/code editors developing Go but it would make easier for new developers to get going by providing at least basic configuration for building and debugging out of box.