Default working directory for all new projects
How can I specify that the working directory will be $MODULE_DIR$ for any new project that I create
Also I would like to specify the same for the Ruby SDK, selecting one by default always for all new projects I create
Please sign in to leave a comment.
Hello,
could you please specify why you need $MODULE_DIR$ to be set as a working directory? Is that for a particular Run configuration?
As for Ruby SDK, usually it will offer the same SDK that was selected last time so there is no need to specify it additionaly. In case you meant something else, please correct me.
I need $MODULE_DIR$ to be sure that all tests are run from the root project folder so all requires work in the project like this:
require "./xxxx/xxx/xxxx.rb"
it is not offering the same SDK than the last time... don't know the reason.. so everytime i checkout a new project I need to specify the Ruby 2.1.6 SDK
Thank you for explanations, please vote and follow this issue (for setting defaults for run configurations globally):
https://youtrack.jetbrains.com/issue/IDEA-145840
At the moment in case you have many run configurations of the same type inside the same project, you can change the default one and newly created will contain this information.
As for Ruby SDK, what IDEA version are you using? Could you please try the latest EAP since I didn't manage to get the same behaviour (I've created a Ruby project, chosen Ruby SDK from the list and when I wanted to create a new project, the SDK was already set to the one I'd chosen before)
I'm using RubyMine 7.1.4, build number RM-141.1835
If I create a new Ruby project... no problem... but if I am checking out a project from svn.... yes... automatically picks up as Ruby SDK the option for 'Use project SDK' that is the project root folder, see the attachment
Attachment(s):
Untitled.png
Indeed there is a problem with setting the default SDK, please vote for the corresponding issue: https://youtrack.jetbrains.com/issue/RUBY-17255