I'm trying to make Maven run faster by "work offline" & "skip tests" inside IntelliJ IDEA 2019.
Online guides tell me to go into "Run > Run/Debug Configurations" and change appropriately.
All of them are grayed out, except for a checked "Use project settings". I figured I would like to change the "project settings" because its not something I want to use on all projects.
But I cannot find where do I change the project settings.
I've tried "File>Project Structure" and I can't find anything similar. Googling yield nothing of interest either. Can someone point me to the right direction?
Picture showing the "Use project settings" but not where they are stored
When you import a project into your IntelliJ IDE an .idea folder and a .iml file will be created. I think the information will be in there.
Here a link to another question which also catch up this theme: Other question
NOTE: #Ersoy and #Mafick explained on the actual file location, which also addresses this question. Here's where to find them in IntelliJ GUI.
After some fiddling around after I gave up, found them in
"File>Settings>Build,Execution,Deployment".
Where to find the project-specific build settings in IntelliJ IDEA
Related
I loaded a Maven project in IDEA 2018.1.5. I configured an "Application" run/debug configuration to run it.
I could have sworn that in the past, IDEA would automatically invoke "Build Project" before Run/Debug if any source files had changed. Then something happened recently, and it no longer does. Now, every time I run/debug the project, it runs the compiled code even if it's stale (ignoring changes I made to the source-code).
I checked Settings -> Compiler -> "Build project automatically" is on. I think I tried disabling it at one point and I did not notice a difference. What other setting could be causing this behavior?
Edit run configurations, select the good one, make sure "Build" is present in the "Before launch" at the bottom of the dialog box.
I'm a pretty experienced Eclipse user, and just moved to IntelliJ Idea (or at least, trying to).
In Eclipse I'm used to "Link with Editor" feature of Projects view. I've just found out that the similar feature in Idea is called "Autoscroll from source" (a bit vague, but OK). It highlights the currently opened file in the "Project" view.
Our project consists of approximately 30 Maven modules, so I'd like to find out, whether there is the same option for "Maven Projects" view. I checked the Maven options, but couldn't find anything like that.
EDIT
to see what I mean, take a look at this screenshot:
Project view is successfully synchronized, when I edit pom.xml of ws-consumer project, but the selection in Maven Projects still highlights the pom.xml of previous project.
I believe there's no such feature. You can create a new Enhancement Request here.
You can jump to the relevant project manually using Select Target feature - Alt F1 and then Maven Projects.
Is it possible in IntelliJ IDEA to show folders instead of packages in project view? There is such a feature in Eclipse: we can just switch from "package explorer" to "project explorer" and here we go.
To make it more clear:
I want to see packages as hierarchy of folders.
I wanna see this:
but instead I see this:
Yes you can switch "View as" from Packages to Project.
For expanding folders uncheck Compact Empty Middle Packages
Simple, follow these steps and you should able to resolve the issue
Then
Done :-)
You can do it by going to options menu, please follow the below images.( This is not that much useful)
I downloaded an ASP.NET open source solution and opened it in Visual Studio 2010. VS is running as admin.
Everytime I switch the solution or a project from Active (Release) to Debug and uncheck 'Optimize code' and save, these changes don't stick. The solution or project reverts back to Active (Release).
Why is this happening?
You also have to change it in Configuration-Manager (see pictures).
I just had this exact issue. The solution ended up being:
Go to Tools ⇒ Options ⇒ Make sure "Show All Settings" in the lower left is checked.
Then, in that same window, go to Projects and Solutions ⇒ General ⇒ check "Show advanced build configurations".
I have no idea why this checkbox was suddenly unchecked for me this morning, but this worked.
This is guessing a little, but anyways:
Most likely, you are using build configurations that don't include your start up project for Debug build.
Look for the 'Manage Build Configurations' (I think, no Windows machine nearby) menu item. It will show you a list of projects with tickboxes on the right to show whether it is to be built in the build configuration.
Switch to 'Debug' in that dialog and make sure your startup project - or the project that your starting the build for - is actually included in the build.
PS It is even entirely possible that the 'misbehaving' project is actually lacking a Debug build (it might have a deviant name, like DebugConsole or something else entirely). In that case, use the Project menu to add a build configuration of the proper name for that single project. Afterwards, check (again) that said build configurations are checked in the 'solution wide' build configuration dialog.
HTH
Changing the properties of a configuration doesn't change the current build configuration. If you open project properties, change from Release to Debug and make some changes, after exiting the dialog, you will build on the same platform as before. To change the platform you're building on, there is a combo-box right above the code - use that. You should have all available configurations in the list. When you open the project preferences dialog, the current configuration will be the default one in the dialog.
I opened the csproj file in a text editor. Noticed there were two PropertyGroup sections which look like duplicates, one was Debug|AnyCPU and the second was Release|AnyCPU. I deleted the second one and the debug one showed up.
Luchian Grigore's answer explains correctly one simple misconception that could lead to this problem and aaaaaaa's answer gives another way of correcting it: there is a dialog that looks like you are selecting the configuration to build but you are actually just selecting the configuration to configure.
However neither of their ways of opening the 'Configuration Manager' actually worked for me -- I had to click on the button configuration manager at the top right of the solution Properties.
(Note that the place where you choose the configuration is called Configuration Manager, whereas the place where you manage the configurations is Properties.)
I am developing a Sketchflow (Silverlight) project in Expression Blend 3. It has been working fine up until today, now I cannot run the project. Specifically in the Project menu the "Run Project" option is now greyed out (all the other options are fine). F5 also doesn't have any effect.
I've obviously messed up the code somewhere but I can't find any information on what could cause the "Run Project" option to be disabled. This would obviously help the troubleshooting. Does anybody know what controls this functionality?
I can build the project no problem. And if I package the project (so it runs outside Expression) this also works fine. It is just launching it from Expression that doesn't work.
Right-click on the project (in the project pane) and verify that "Startup Project" is checked. I had obviously accidentally unchecked it at some point.
Usually when you create new Silverlight solution Blend or VS would create a solution with two projects in it. One would be called something like MyProject and another would be called smth. like MyProjectScreens.
The MyProjects doesn't contain much of Silverlight code, it's rather meant to be just "wrapper" (or in other words "it contains bootstrapping code for your actual SL screens") with Default.html and Default.aspx and App.xaml. And MyProject is the startup project.
The MyProjectScreens project in turn - is your actual SL project. (And it is NOT startup project).
THE SOLUTION TO OP'S PROBLEM, Maybe Blend somehow messed up solution configuration files (even though VS was fine with them) and my MyProject project has disappeared from the solution explorer. All you have to do is to right click on solution, click "Add Existing Project" and navigate to my solutions folder and choose the project file. (Yeah and also make sure that when MyProject is added it is marked as "Startup Project" (as #Hugh mentions).
HTH