I'm working on an SBT project that has to be built with the options like:
-Xmx2G -Xss256M -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
This means that every new developer has to read the readme and assign the options to SBT_OPTS in bash profile or put them in the sbtopts file. Similarly, this has to be configured on Jenkins and this applies to all the projects (so if someone wants to use -XX:+UseG1GC with other projects it becomes an issue). Is it possible to specify the required options in the build file itself? This seems logical to me, as the options are project-specific and without them, you cannot build the project.
Create a .sbtopts file at the root of the build with contents:
-J-Xmx2G
-J-Xss256M
-J-XX:+UseConcMarkSweepGC
-J-XX:+CMSClassUnloadingEnabled
Due to an high dpi screen, I have to start atom with the following command to avoid blurred fonts:
atom --force-device-scale-factor=1 .
I can add the option to my desktop starters and I can define an alias for the shell. Out of curiosity, I'd like to add this configuration to the atom editor. As a result of some searching, I found the following solution for electron:
app.commandLine.appendSwitch "js-flags", "--harmony_proxies"
It should be in some sort of init script. But where would I add a line like this in the atom editor?
You could add it to
Setting -> Open Config Folder -> config.cson
I frequently dislike how atom by default will open files I was previously working on when I run atom . inside of a project directory. How can I get atom to open with a blank editor with the file tree on the side and that's it?
You can disable this feature by appending restorePreviousWindowsOnStart: false line to your Atom config file which is opened by Edit/Config... menu item.
See here https://github.com/atom/atom/pull/11324 for more details.
Short answer is you cant
Currently the behavior is automatic with no setting. Until that changes, you can open atom via the icon and then open the folder you want from the file menu.
When running a test using PHPStorm it loads a configuration from an other project.
/usr/bin/php /private/var/folders/jv/rch25xnj6y3cl_yf4s6qq64m0000gn/T/ide-phpunit.php --bootstrap /Users/reneterstegen/Sites/www.domain1.com/app/bootstrap.php.cache --configuration /Users/reneterstegen/Sites/www.one-of-my-other-projects.com/app/phpunit.xml.dist --filter "/::itLoadsTheForm( .*)?$/" Stegeman\Bundle\SearchBundle\Tests\SearchControllerTest /Users/reneterstegen/Sites/www.domain1.com/src/Stegeman/Bundle/SearchBundle/Tests/SearchControllerTest.php
This causes a fatal:
Class 'JMS\SerializerBundle\JMSSerializerBundle' not found in /Users/reneterstegen/Sites/www.one-of-my-other-projects.com/app/AppKernel.php on line 21
This makes sense since the project I am testing is nog using this bundle.
I've already set the default configuration file and default bootstrap file settings in the PHPUnit section in preferences.
Question: Can somebody tell me how to change the configuration used by phpunit in PHPStorm?
Can somebody tell me how to change the configuration used by phpunit in PHPStorm?
You can always specify custom ("alternative") config file per Run/Debug Configuration -- it will be used instead of Default one that you have set in Preferences.
https://confluence.jetbrains.com/display/PhpStorm/PHPUnit+support+in+PhpStorm#PHPUnitsupportinPhpStorm-3.CreatingaRunConfiguration
Here you have to tick the "Use alternative configuration file" and specify full path to it (either manually or via "..." button). NOTE: if you click on a button next to "..." one it will allow you to edit paths to Default config files (the ones from Preferences).
Please note that if you have defined your bootstrap file in that Default section as well .. it will also be used and AFAIK you cannot override it. It will be better if you provide bootstrap file in actual config file.
I have created an application that compiles and runs like a charm on OS-X. I would now like to start getting it to work on Windows. To start, I copied the project to a windows machine and just tried to compile, but got this error:
:: warning: Qmake does not support build directories below the source directory.
Any ideas?
Set the shadow build directory to some folder on the same level of your project directory:
folder/
project/
project-shadow-build-release/
project-shadow-build-debug/
You can do this in the "Projects" view, via the toolbar on the left. To me, this warning was just an annoyance, a project never failed to build because of it.
Don't copy your project.pro.user file when you are copying a project from one machine to another, or from one directory to another. When you open the project, Qt Creator will offer to create a new build directory in the proper place.
Andref gave the correct answer to resolve this warning, but you may want to understand why this requirement exists.
In fact, the build directory must be at the same folder level as the project (i.e. it can't be above or below). The reason why is that the linker is called from the build directory. Hence, any relative paths to library files will be different than what you entered in your project file.
It kinda sucks. I like to put all intermediate files in their own folder. But you simply can't with qmake.
.pro.user are generated files by Qt Creator. They are unrelated to qmake and should not be touched (and not put into a VCS for that matter)
Just remove the files with the pro.user extension , worked for me
I also got this, trying to compile a project created on linux.
Another way to solve it is to change the paths in the .pro.user file (in the directory of your project)
Right Click on a project: Set As Active Project
Click on the Projects button (The one with the spanner image)
Edit build configuration : Debug / Profile / Release / and change the default directories, OR just uncheck the Shadow build check box.
The Build directory path should now change to black, from red