eclipse on linux - eclipse

I was running eclipse on Ubuntu Linux. What I have noticed is some icons were missing for File->New->(the items appear in submenu) package,folder,etc. Is this the problem with Ubuntu linux or all the eclipse which is installed on linux?
Thanks
Bhanu

Many later versions of Gnome have menu icons disabled by default (my refresh icon is gone as well). If this is your problem you can get them back by using:
Select System > Preferences > Appearance from the menu.
This displays a tabbed panel, labeled 'Appearance Preferences'.
Select the Interface tab, and check the "Show icons in menus".
Select Close.
The menu icons should be back.
See http://ubuntuforums.org/showthread.php?t=1246454
Sigh. also https://bugzilla.redhat.com/show_bug.cgi?id=539993

I had the same problem earlier I have ran the below steps and it got fixed. Try to re-install eclipse by giving the below commands
sudo apt-get remove eclipse then
sudo apt-get install eclipse
Let me know if it resolves. Good Luck :-)

This worked for me:
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/ButtonImages': <1>, 'Gtk/MenuImages': <1>}"
Source: https://bbs.archlinux.org/viewtopic.php?id=185714

Related

Vs code blank terminal problem, can't enter anything

I'm user using Visual Studio code.
A few days ago, I've gone through some problems.
It's about "blank terminal". I'm not sure what trigger this problem.
I guess it's related with vs code updated 1.39 version. I attached the picture below.
enter image description here
I've tried searching solution in order to solve this problem. but I failed.
1. remove the 1.39 version. and re install vscode. (remove vscode file)
- sudo apt remove vscode, sudo apt autoremove
- I searched .vscode and then remove all( some setting file left.)
2. I tried to install vscode by snap, but result was same.
3. I started with root
- sudo code --user-data-dir => teminal is possible to see but environments not working => fail
4. I tried down grade.
- version 38,37 => failed (it's same result)
- version 32 => success (but it's old version, limited several utilities)
**Ubuntu 18.04.3 LTS , 64 bit
Anyone having same problems and working out, Please tell some methods.
I look forward to getting reply. Thanks.
Setting "terminal.integrated.inheritEnv" to true in settings.json solved this problem for me.
I think it is related to this bug
You need to select a default shell. Where it says 1:, click the down arrow and select your shell.
I was running into this issue with vscode that was installed through the ubuntu software center
I uninstalled it and deleted any settings using this https://superuser.com/questions/1113022/how-do-i-remove-vs-code-settings-from-ubuntu
I then installed through anaconda since I was already using it. This install worked fine.

netbeans 7.3.1 no options under code formatting

I have just installed Netbeans 7.3.1 under GNU/Linux, Archlinux kernel version: arch-pc 3.10.10-1-ARCH x86_64
I have activated the PHP plugin and i want to setup the formatting options, for this I'm going to Tools->Options->Editor->Formatting, but the problem is that in here I have no code to select and setup the formatting, can this be a bug or I am doing something wrong?
This is how it looks when i get there:
The list under Language: has options Item 1 to Item 4 and the same for Category: Item 1 to Item 4.
The only way I was able to bring the option back up was to go to a deactivated language (PHP in my case) and click the button to activate it to get the available options.
After doing this, I clicked back on the "Formatting" tab and the options were all there again.
I have found a solution:
Go to: https://netbeans.org/kb/docs/java/editor-formatting-screencast.html
Download the zip under: NetBeans Sample Code Library
Import project: File>Import Project>From zip...
Go to Tools>Options>Editor>Formatting and you have the settings back
I do not know why it worked but it worked. Hope that this will help you.
Just enable Java SE plugin (tools - options - java - enable). You can then set formatting options for all languages (not only Java).
I had the same problem on arch linux 64bit. My solution is to install netbeans-cpp from AUR -- this version works, but hasn't other languages.
I was having the same issue with C++. This fixed it: Tools > Plugins > Installed > Click check box: "C/C++" > Activate. Now recheck editor formatting options.

Team explorer missing in eclipse

I followed this installation guide:
http://msdn.microsoft.com/en-us/library/hh301122.aspx
On some computers, all went well. But on some, the team explorer window is missing.
I can't find it even in: Window->Show view->Other. In fact there is no trace of TFS anywhere in eclipse (it does not appear at preferences under team). But it's listed in installed software.
All computers have Ubunto 12.04 LTS and eclipse 3.7.2 with eclipse cdt.
Check if you have Version Control (Team).
I recently installed Eclipse 4.20,
and I am thinking that the Team menu name was changed to Version Control (Team)
(Team -> Version Control (Team)).
the solution apparently is to open eclipse with sudo and then start the installation.
some permission problem that wasn't notified by the installation.
it may happen for permissions issue, you did not have enough permissions to the location where eclipse is installed so the installation of TEE failed.
I was experiencing the same issue. MSDN's site states: Team Explorer Everywhere is designed to be run as a non-root user on computers that are running Unix.
I was finally able to fix my issue by running the command below:
sudo chown -R user:user /usr/lib/eclipse/ /usr/share/eclipse/

Eclipse hangs when installing new software

I am trying to install new software within Eclipse the C++ version. Help -> install new software. When I go to install new software, it hangs or takes hours to move a percentage.
I have read that this is a known bug in JRE7, which I am assuming I am using since I have it installed. I changed to JRE6 by changing the eclipse.ini file with the argument -vm XXXX where XXXX is the path to my javaw.exe.
It does not seem to have changed anything.
Ideas?
Thanks.
Finally it worked for me only by unchecking Contact all update sites during install to find required software. From what I'm seeing it might be a Mac issue, on Windows and Linux it worked without any change.
You can get rid of this problem by simply disabling your Firewall software before installing new plugin. If your Antivirus has built-in Firewall, you need to disable it.
Optionally, to reduce the update time, you can uncheck Contact all update sites during install to find required software, see my blog post for details.
I've found it helps by adding this line to the eclipse.ini file:
-Djava.net.preferIPv4Stack=true
To install new plugin into eclipse, you can download plugin installer or go market place to install.
Make sure what SDK you are using and fill the correct path.
Wish you success
To get around this issue, I went to Windows->preferences->general->network settings and typed in each repository manually. I also selected manual from the drop down at the top of the window.
It seems it was also useful to get off of my home network and I had to get on another network.
I kept having this issue and resolved it by following Nitin Kale's fix for Eclipse slowness on fresh 16.04 here> https://askubuntu.com/a/788826
open terminal and type following command
export SWT_GTK3=0 add this to your ~/.profile file to make it
persistent across logins (you'll need to logout and log back in to be
able to start eclipse from shortcut)
then go to your eclipse folder and search for eclipse.ini file Right
click anywhere in the folder and choose "open in terminal" and type
following command in terminal
sudo gedit eclipse.ini and add the following line before
--launcher.appendVmargs
--launcher.GTK_version 2 Search in the file for 256 and replace it with 1024
I had to go to Preferences -> General -> Network Connection and set Active provider to 'direct' as it was 'native' by default. Then it worked fine.
None of above methods worked for me in Ubuntu 16.04 LTS and Eclipse Mars. Had to do following
Go to "Preferences"->"Install/Update"->"Available Software Sites" and uncheck all except "Mars".
After this install worked in a jiffy.
I solved my issue by following all steps in above answers
Window -> Prefrerences -> Install/Update -> Available Software Sites and then uncheck all except Your package name ( neon, mars ).
Window -> Prefrerences -> General -> Network Connections and set Active provider to "manual".
Help -> Install new Software -> uncheck "contact all update sites during install".
If anyone is still having this issue simply go to windows defender and add the installation app as an exception.

eclipse galileo not responding ubuntu 64-bit

I'm having a problem with eclipse galileo on ubuntu 64-bit system. when ever i open it the splash scree turns gray but keeps loading and then when eclipse opens it shows the secure storage password request and hangs. I dont know what could be wrong, it used to work fine before, if you have or had the same problem please tell me what to do
I have had this happen on Galileo (3.5) and Helios (3.6).
If you delete .eclipse you will lose all software installed through the Help | Install New Software menu option.
It is enough to delete the file ~/.eclipse/org.eclipse.equinox.security/secure_storage
Try clean $HOME$/.eclipse directory.
Its better to just rename at first.
See what happens
This happens to me whenever I shutdown eclipse with the history tab open.
While not the best solution, to solve it I start eclipse with sudo. I let it finish loading, then select a different tab than history. I Shutdown eclipse, then I recursively change the owner of the files in .metadata back to my main user.
In case you need the command: (in my case I run this from /home/wally/workspace)
sudo chown -R wally:wally .metadata
As far as I can tell, there's some race condition going on.
(also, it's likely that you won't use exactly "wally:wally" but "your username:your group)
Try this:
export GDK_NATIVE_WINDOWS=true
then run eclipse from command line from the same terminal window.
I would suggest removing openjdk from synaptic and install sun java. Once you do that , use "sudo update-java-alternatives --set java-6-sun" to use sun-java as the default JRE.
Eclipse used to work really slow for me, and this method worked. Maybe it helps you too.