-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
button to only build a "Run/Debug Configuration", without actually running/debugging afterwards #2408
Comments
You can setup a ln external tool for the project and have it run commands On 16:01, Tue, Mar 22, 2016 Andy Robbins notifications@github.com wrote:
|
This would duplicate configuration. I don't have a GOPATH, I just set up the "Project libraries" in the settings, and the plugin automatically sets things up for me. No messy environment variables to deal with, so the project is self-contained. This is why I think a dedicated build button makes sense. It's not some great burden or anything, but it is very jarring coming from something like Visual Studio, where this functionality exists. I'm sure it confuses other users too. Would it be complicated to implement? A button isn't necessary, it could just be a menu item somewhere. |
I do know that IntelliJ will point out errors in my code as I type, but just like in Visual Studio, it doesn't catch everything, and it doesn't show errors in other files. |
If the result of |
The plugin should catch everything, if it doesn't – file an issue please |
The result of the build button is to invoke the compiler with the same settings and flags as when clicking Run. Go is a compiled language. There should be a way to invoke the compiler as easy as clicking Run -- just don't force me to run the app. I'll open a new issue. |
Run is configurable, you can pass there different parameters, build tags, import paths, files, etc. What should |
I'm not talking about a global "build everything" button. When you click Run, it only affects the current selected Configuration, right? It builds what is described in the configuration (in my case, my "main" package), then starts the executable. All I want is to not be forced to start the executable just because I want to invoke the compiler for my selected configuration. If calling it "Build" is confusing, you could call it "Prepare to Run". You can't have two main() functions in the same package. |
@Ashalah thanks, I understand what do you mean now. I think it's possible to implement |
@zolotov awesome, glad it's clear now. I hope you can implement it, this feature makes using Go more natural for developers coming from C++/VS. |
@zolotov I wonder if this could be used to make the other often popular question / issue to make the The logic would be like this
The logic should work for most of the projects I guess and it wouldn't interfere with the other ways those build options could run. What do you think? |
@dlsniper no, |
Sorry, it's a bit unclear, please bare with me. |
Existing of Go Project SDK type is the matter of time, we'll get rid of it in future.
Sure, SDK type doesn't define compile action behaviors, there can be a plugin which compile something despite SDK type of module or project. |
I have a similar issue. I want to "build and run" and sometimes "build and deploy". If I do "build and deploy" on my machine while I'm building for ARM/MIPS target, then the IDE reports error (trying to start binary built for different platform). My workaround currently is creating two build configurations:
Ideally I should be able to use current build configuration UI, but tell the IDE to not run the generated binary! |
Compile a "run configuration" without starting the compiled program.
The IDE would run the exact same build commands as when hitting the "Run" button, except it won't run the .exe after the build.
Can't do that. No such button exists in the plugin.
This should exist. Can you add a button next to the Run and Debug buttons in the toolbar? Or provide the functionality, and let users manually add the button to their toolbar?
Why this should exist: a user could open a command prompt and manually call go build, but:
I'm not describing a "build everything" feature, I'm talking literally copy the Run button, but don't actually run, just do the build step.
The text was updated successfully, but these errors were encountered: