Problem with 'Edit Configurations'

Answered

More specifically, can anyone point me to a resource that explains it?

JetBrains' own instructions aren't very good (at all).

A few specific issues:

Why does the 'Run' button sometimes appear, sometimes not?
Why is the configuration sometimes already filled in, sometimes not?
When do I have to create artifacts? Always?
What's the relationship between the Edit Configurations dialogue and the Project Structure?

I haven't found any articles out there that don't already assume you know these things.

Any help would be gratefully appreciated!

Thanks,
Frank

8 comments
Comment actions Permalink

> Why does the 'Run' button sometimes appear, sometimes not?

When indexing is performed, certain features are not available.

If you don't have any run configuration in the project, Run button is also disabled.

> Why is the configuration sometimes already filled in, sometimes not?

If you right click in a file with main method, run configuration is created automatically and main class value if prefilled. If you create a new configuration manually, it will not specify the main class. There are also template configurations which can prefill certain options.

> When do I have to create artifacts? Always?

If your run configuration needs an artifact (java ee project, android project, etc)

> What's the relationship between the Edit Configurations dialogue and the Project Structure?

https://www.jetbrains.com/idea/help/creating-and-editing-run-debug-configurations.html
https://www.jetbrains.com/idea/help/configuring-project-structure.html

In run configurations you specify what and how you will run, in the project structure you define the paths of the modules, their dependencies, etc.

0
Comment actions Permalink

Thanks Serge for the specifics.


> Why is the configuration sometimes already filled in, sometimes not?

If you right click in a file with main method, run configuration is created automatically and main class value if prefilled. If you create a new configuration manually, it will not specify the main class. There are also template configurations which can prefill certain options.


Which template configurations exist? Is that what i see for Tomcat Server > Local?

0
Comment actions Permalink

Those you see under Defaults node are the template configurations. You can edit them so that all the new configurations of this type you add will start with certain defaults.

0
Comment actions Permalink

So.... I have a web application, but I can't get to 'Run'.

Screen Shot 2015-10-13 at 16.25.26.png

'Edit Configurations..' remains unsaved (despite the fact I've gone through this loop several times):

Screen Shot 2015-10-13 at 16.25.49.png

I select Tomcat Server > Local:

Screen Shot 2015-10-13 at 16.27.36.png

I click OK, but now what? It's not saved, and there's no option to Run it:

Screen Shot 2015-10-13 at 16.28.30.png
If I click on 'Run...' I can only Edit the condiguraion again...

Screen Shot 2015-10-13 at 16.30.01.png

I'm doing something very wrong here but it isn't clear to me. I have other similar projects which will run, i.e. get deployed to Tomcat, and Tomcat fires up to the right place. Can you help?

Thanks,
Andy

0
Comment actions Permalink

You cannot run Default configurations, create a new one first:

http://i.imgur.com/VN4IeYZ.png

1
Comment actions Permalink

Great!!

thank you :)

0
Comment actions Permalink

Greetings everyone and happy new year. Please, I'm having serious issue trying to run my code in pycharm 3.1. In the Interpreter box, it displays "No interpreter" and doesn't allow me to choose anything in the box. Please I need help.My email address is samplezube@gmail.com. Thanks

0
Comment actions Permalink

Please add new interpreter using the appropriate page in settings: 

https://i.imgur.com/8Bjb4cy.png

Here is a documentation page regarding that: 

https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html

Also, please note that it is better to create a new thread here at the forum to ask new questions. 

0

Please sign in to leave a comment.