STS randomly resets my PC on Linux Mint 18 (Ubuntu 16.04) - spring-tool-suite

STS randomly resets my PC, so I do not get any error or some indications why it is happening.
Until now it happened on:
Calling Content Assistant
Creating New Project
Opening Project
Deleting Project
Creating New File
Sometimes it corrupts workspace's .metadata folder structure and every attempt to load that workspace results in imidiate PC reset.
Already tried:
Fresh instalation of Linux Mint 18 Cinnamon
Fresh STS and workspace
Using SWT_GTK3=0
Using STS 3.8.0 vs 3.8.1
Is there any way to get some useful info on what is causing this?

Related

Can't install Eclipse on MacOS High Sierra

Trying to install Eclipse (latest version) onto MacOS High Sierra. After extracting the file "eclipse-java-luna-R-macosx-cocoa.tar.gz", I copy the resulting Eclipse folder into my Applications folder.
I then attempt to run the Eclipse application and get an error saying:
Eclipse quit unexpectedly
I have tried both the 32 and 64 bit versions of Eclipse. My Macbook Pro is a late 2015 15" edition.
I was facing the same issue on MacBook Air.
I resolved it by downloading the eclipse-installer : http://ftp.jaist.ac.jp/pub/eclipse/oomph/epp/photon/R/eclipse-inst-mac64.tar.gz
After extracting the file a .app file is created. Click on that file(it will open a app).
The app is basically a Eclipse installer.
Choose the Eclipse IDE you want to install and follow the mentioned steps.

Spring STS 3.7.2 "No Java virtual Machine Found" on Mac OS X Yosemite

I have been using Spring STS 3.7.2 for a few months on my Mac laptop (Mac OS X Yosemite 10.10.5). But suddenly the STS IDE is not starting up. I suspect that one of the automatic OS update may have changed something, since I noticed that I don't see java any more on my path setting.
I manually added the following entries to my .bash_profile and updated using source command:
export PATH=$PATH:/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/bin
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
But STS stubbornly not working. It keeps giving me the error message in a dialog box:
A java runtime environment (JRE) or Java development kit (JDK) must
be available in order to run STS. No Java virtual machine was found
after searching ....
I am confused. I am able to invoke java from any terminal window, as well as JAVA_HOME environment variable is set.
Any ideas what may be going on?
After quite a bit of searching online, I figured out the problem, and resolved it for myself. It basically boils down to JDK upgrade to versions beyond 1.6.
The following link provided a solution:
https://apple.stackexchange.com/questions/178647/jdk-platform-not-recognized-running-eclipse-or-mvn
Here are the steps:
Revert back to JDK 1.6: Download and install JDK 1.6 from this Apple site: https://support.apple.com/kb/DL1572?locale=en_US
Change the PATH variable to point to the 'bin' directory of where JDK is installed. On my Mac, it was installed at: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin
Go to the STS application installed directory and run the command "open -a STS.app". This will open the STS IDE successfully.
Exit STS.
Now, if you want to use Java 8, then change the PATH variable to the Java 8 directory. On my Mac, it was at: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin
Launch the STS app again, and voila!, the problem solved.

toggleBreakpointsTargetFactory specified id is already registered

Node.js debugging is not working, out of the box.
On a fresh install of eclipse Kepler SR1 Build id: 20130919-0819, on 64-bit Windows 7, I installed Nodeclipse and Enide 0.6 using the Eclipse Marketplace.
I created a new Node-Express project, in a new workspace. In Project Explorer, I right-clicked on app.js and selected "Debug As --> Node Application".
The console shows:
C:\Program Files (x86)\nodejs\node.exe --debug-brk=5858 F:\workspace\test\app.js
but node.exe died immediately and a dialog popped up "Launching delegate...", followed by an error dialog: 'Launching STANDALONE_V8' has encountered a problem. (I'm guessing that node.exe had already exited so there was no instance of V8 for the debugger to connect to.)
The eclipse error log shows an Error:
org.eclipse.debug.ui.toggleBreakpointsTargetFactory extension failed to load breakpoint toggle target because the specified id is already registered. Specified ID is: org.chromium.debug.ui.ChromiumToggleBreakpointTargetFactory
This same sequence works flawlessly on a colleague's machine. Where on my machine is this breakpoint target id registered, and how do I clear it? Or what else can I try?
This is issue #72
Try first to update JDK to the latest 7.u40 http://www.oracle.com/technetwork/java/javase/downloads/index.html
then if it is not solved, uninstall Nodeclipse core then install again
Nodeclipse version doesn't matter as it was thought before, I saw this bug on 0.4 as well
Report of the issue solved by exact steps:
https://github.com/Nodeclipse/nodeclipse-1/issues/72#issuecomment-25942319
Try also Enide Studio https://sourceforge.net/projects/nodeclipse/files

Eclipse TFS - Source Control Explorer Error

I am using Eclipse (version Juno) with the TFS Plugin. When I click Source Code Explorer I get this error message:
Plug-in "com.microsoft.tfs.client.common.ui.vcexplorer" was unable to
instantiate class
"com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.VersionControlEditor".
I saw this Eclipse plug-in development Unable to instantiate class due to java.lang.NoClassDefFoundError: but am not sure if it is the fix for this TFS plugin or what it really means:
put the project of the missing file as dependency in the plugin
configuration file too.
I've seen this exact error before on my box. In my case this file had gone missing due to its long path and filename:
"...plugins\com.microsoft.tfs.client.common.ui.vcexplorer_10.1.0.201101271439\com\microsoft\tfs\client\common\ui\vcexplorer\versioncontrol\ VersionControlEditor$VersionControlEditorRepositoryUpdatedListener.class"
You can see how this can get somewhat long. I'd suggest checking if you have all the files perhaps comparing it with an installation on a shorter path. Hope this helps.
I hope this can help somebody that researches this error. I was able to fix the problem on a virtual machine (Windows Server 2012 R2) running on a Windows 7 desktop with Eclipse Mars 4.5.0 and TFS plugin 14.0.1.
Plug-in "com.microsoft.tfs.client.common.ui.vcexplorer" was unable to
instantiate class
"com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.VersionControlEditor".
I installed Eclipse and the TFS plug-in on both the desktop Win 7 and the virtual machine. It worked perfect on Win 7 but on the virtual machine running Windows Server the error came up.
My first step to solve this was by following moerketh advice and moved that specific file from Win 7 to Server 2012.
...plugins\com.microsoft.tfs.client.common.ui.vcexplorer_10.1.0.201101271439\com\microsoft\tfs\client\common\ui\vcexplorer\versioncontrol\
VersionControlEditor$VersionControlEditorRepositoryUpdatedListener.class
It did remove the error but did not show the folders in the server. In other words, I couldn't see the folders I am trying to map to.
Next, I decided to copy all files in the folder as shown below and paste it to the same folder in the virtual machine.
...plugins\com.microsoft.tfs.client.common.ui.vcexplorer_10.1.0.201101271439\com\microsoft\tfs\client\common\ui\vcexplorer\versioncontrol\
VersionControlEditor$VersionControlEditorRepositoryUpdatedListener.class
Restarted Eclipse, and then the TFS folders showed.

TFS plugin for EclipseCDT error with paths

I am using Eclipse CDT (4.2 Juno) on both Windows 7 and Ubuntu 14.02. I have sucessfully installed Eclipse Plugin for TFS. And it works well on Windows 7 machine. I created repository on codeplex. Now I installed TFS plugin on Ubuntu Eclipse CDT. Everything went OK. But when I tried to import projects from repository, problem arise.
What I see as a problem is that TFS plugin on Ubuntu Eclipse CDT pick up mapping (local directory) from Windows 7 machine, and then it tries to place (import) files under that directory. Path which it tries to create (and what is causing java null pointer exception) looks like this:
Importing $/cplusplus/ArrayDemo (this is server path and this is OK) to /home/nenad/C:/Nenad/workspaceplus/cplusplus/ArrayDemo (this is local path and this is totally wrong)
That is completely malformed path. I need to import that (and all of the others) projects under /home/nenad/workspace/cpp4d5ed on my linux machine.
How can I resolve this issue?
Try deleting the Workspace and make new mapping.