Eclipse Kepler won't start after crash - eclipse

My computer crashed and now Eclipse won't start. This is the workspace\.metadata\.log file: http://pastie.org/9532707
The file exists (as a relative path). I tried renaming the file, renaming the project, and running eclipse -clean, but nothing works.

I was able to restart it by finding all the binary files containing .htaccess and deleting them. I had to re-import all my projects again, but it was better than deleting the .metadata directory and having to re-install all the plugins.
$ find .metadata -type f -exec grep .htaccess {} \;
...
Binary file .metadata/.plugins/com.aptana.editor.php/1307689257 matches
Binary file .metadata/.plugins/com.aptana.editor.php/1773282562 matches
Binary file .metadata/.plugins/com.aptana.index.core/3142297851.index matches
Binary file .metadata/.plugins/org.eclipse.core.resources/.root/80.tree matches
Binary file .metadata/.plugins/org.eclipse.core.resources/.snap matches
$ rm .metadata/.plugins/com.aptana.editor.php/1307689257 .metadata/.plugins/com.aptana.editor.php/1773282562 .metadata/.plugins/com.aptana.index.core/3142297851.index .metadata/.plugins/com.aptana.index.core/3142297851.index .metadata/.plugins/org.eclipse.core.resources/.root/80.tree .metadata/.plugins/org.eclipse.core.resources/.snap

Related

Why does vscode/platformio insist on adding useless entries to my .gitignore file

I have been using vscode and PlatformIO for a little while now.
I would like my .gitignore file to be:
.pioenvs
.piolibdeps
.vscode/
but for some reason the IDE insists on adding the following every time I start up:
.vscode/c_cpp_properties.json
.vscode/launch.json
I am already ignoring the entire .vscode directory, why is it valuable to ignore individual files within that directory?

error in root\workspace\.metadata\.log

I try to run eclipse, but I can not.
The software creates an error in the root\workspace\.metadata\.log folder. But I did not understand anything.
Here is the log file:
Log File
Also, I did not find a file named ".snap" at the address given. I deleted the workspace folder. I even deleted the software and installed it again. But none of them worked.
In the workspace folder there is a folder with the name ".metadata". and in this folder there is a file with the name ".log".
So the actual path will be:
"/root/workspace/.metadata/.log"
In Linux you might need to use ls -la to see the folder ".metadata" and the file ".log".
Check also the file eclipse.ini in the root folder of the Eclipse installation. In this file you could specify the -vm parameter and point it to the JVM dll or "so" files directly.
For example:
-vm
D:\talend\jre1.8.0_91\bin\server\jvm.dll

Emacs work with archive. What is the best package?

Windows 10 (64 bit), Emacs 25.1.
Sometime I need to work with archive (zip, 7z). I do the next action with archives:
open archive
edit files in archive
copy files from/to archive
delete files from archive
How I can do this in Emacs? Maybe I need to download some package?
edit:
Normally Emacs opens a zip archive and shows its content normally...
No it's not work. Here example.
I enter to zip file
And try to open (press Enter) file build.gradle
Result on screen (No such file or directory)
You can see the issue right there in your screenshot:
Searching for program: No such file or directory, unzip
You simply do not have an unzip executable installed on your computer (or certainly not in any of the C-hv exec-path directories).
Emacs knows how to list the zip file contents without invoking unzip, but it can't extract files without that external program.

Configure Eclipse IDE to move cache data out of eclipse installation direction

I believe this is normal user's behavior:
After downloading the eclipse IDE distribution, such as eclipse-jee-mars-2-win32-x86_64.zip file, you unzip it to a folder, e.g. C:. The eclipse executable is at C:\eclipse\eclipse.exe. (Here I'll refer C:\eclipse directory as eclipse home directory.)
When running, eclipse will write some temp or customization file under eclipse home directory, so the eclipse home directory became dirty. I wonder if there is any parameter or configuration file setting so eclipse will write those cache/temp/customized data to somewhere else.
I'm not talking about '-clean' parameter. From the help file, I think I should try -configuration configURL. However I don't know the format of the configuration file.
Here is the best I've got so far after some trial and errors:
Take C:\eclipse as my eclipse home directory, which is extracted from eclipse distribution zip file. My goal is to keep this home directory clean.
I created the following directories:
C:\eclipse-work.ws
C:\eclipse-work.home\user
C:\eclipse-work.home\configuration
Here is the command line I used to start eclipse, of course it's part of a script:
C:\eclipse\eclipse.exe -data C:\eclipse-work.ws -user C:\eclipse-work.home\user -configuration C:\eclipse-work.home\configuration
The trick is I need to make configuration directory to be a two level directory as eclipse will generate other cache or data under C:\eclipse-work.home dir.
This is the best I can get so far. All cache data, as well as plug-ins I installed, will be in the C:\eclipse-work.home directory. There is only one file generated under original eclipse home directory, that is a profile gz file under
p2\org.eclipse.equinox.p2.engine\profileRegistry\epp.package.jee.profile
directory. And this file won't be changed once it's created.
I'm using a ram disk. Using above approach I can setup the eclipse IDE in the ram disk image file. Now eclipse starts much faster.
For that -user directory, so far I didn't observe any file generated under it. Not sure if it can be omitted.

How can I create Eclipse-style folders from the Terminal?

Is it possible to create Eclipse-style folders (Project Folder, Package and so on) via the Terminal?
I once renamed an Eclipse package like this: mv oldname newname, and I noticed that after doing so, Eclipse no longer considered the folder a Package.
This possibly means that it is a matter of metadata, but I have so far been unsuccessful in locating the files containing the relevant information.
Eclipse does not provide anything to do this and it is not really possible manually.
For a project some information is stored in the .project file in the project folder. Depending on the type of project there may also be a .classpath file and there will also be data stored in the .metadata folder in the workspace and also in a .settings folder in the project.
All the file and folder names starting with . are considered to be hidden on Linux, Unix and Mac systems and are not shown by default. Use the -a flag of ls to see them.