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
nut code #10
Comments
OK, overloading configuration in macros would make Nut more flexible. |
That is a macro for a |
So you mean, having the exact same |
No. A .NET project would have a different
Since it is a .NET project, it would have nut.yml with: macros:
code:
docker-image: ctaggart/dotnet-vscode
enable_gui: true
mount:
main:
- .
- /home/vscode/sourcelink
usage: start vscode to edit this project
actions:
- su vscode -c "code -w /home/vscode/sourcelink" |
OK. Seems to me that in your case, you want to keep the same macro, and change only the docker image. Right? I think this corresponds to the examples of Go environment that you can find in Nut repository:
Similarly, you could create a parent vscode configuration, and inherite from it to provide a Go environment and a .Net environment. Still, the improvement of nut.yml that you offer would bring more flexibility. Wanna contribute? |
The flexibility needed is the ability to have different docker image and mount points for a macro. |
This project is using vendor directories, but it does not appear that the go apps vscode uses all work with vendor directories yet. ctaggart/golang-vscode#6 I did a workaround and now I finally can debug and learn the codebase. Do you use an editor? What do you use for debugging? |
I'm using command line and Sublime Text 3 on my Mac (it runs on the host, not in the container launched by nut for compilation and execution). If you want to offer a default editor for Nut, with proper parameters, etc... we can add it to the repo. I'm so familiar with ST3 and so new to Go, that I didn't even take time to take a look at what Go developers usually use. About the issue with vendor: when you cloned the repository, did you use |
We are in a similar boat. I haven't programmed in Go yet. One of the main reasons was lack of IDE support which Visual Studio Code is changing that, but issues like ctaggart/golang-vscode#7 make me sad. Yeah, I used |
Hi @ctaggart , Seems like we can close this issue, right? |
Yes. I believe so! Thanks.
|
I'd like to be able to type
nut code
after I clone a project and get a Visual Studio Code environment with extensions for editing that project.It would be great if I could put some of the nut options under a macro in
nut.yml
. Something like:This way I could clone mygoproject, run
nut code
and have it start Visual Studio Code with all the extensions I need to code. This would eliminate a ton of developer environment setup time.The text was updated successfully, but these errors were encountered: