Tuesday, September 16, 2014

Error occurred during initialization of VM Could not reserve enough space

I got this error when I was trying to build a Gradle project

!ENTRY org.springsource.ide.eclipse.gradle.core 4 0 2014-09-16 18:26:42.625
!MESSAGE Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at http://gradle.org/docs/1.11/userguide/gradle_daemon.html
Please read below process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 1048576KB object heap
Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0


Solution:

In Eclipse Change the Gradle's JVM setting in Window/Preferences/Gradle/Arguments... on JVM Arguments section select "Use:" and write something like: -Xms128m -Xmx256m.

Friday, September 12, 2014

.gitignore not working

I had run into a problem where Git seems to not ignore files specified in .gitignore file.

It seems that files that git knows about, it can't ignore, e.g. files that are created at the project creation.

To solve this problems, run the following commands in order

git rm -r --cached .

git add .

git commit -m ".gitignore is now working"