Workspace dialog is not coming - eclipse

When I'm launching my eclipse application, the workspace selection dialog box is not coming. When I checked the settings in preference pages, the check box was selected for "Prompt for workspace on startup". Has anybody come across this situation?

If you wish to use another workspace than the default - or what have become the default - you can specify the -data <path> argument at start-up in the shortcut. I usually have a shortcut for each of my important workspaces - for the current set of active customers - and have linked these to my desktop.
Having said that, I don't know why you have the problem you have. The Prompt for workspace at startup setting usually works fine for me...

Yeah i think i know what you're talking about, i had this problem once, when i checked the box the problem got resolved, i would try unchecking the box, then closing eclipse, then open it up again and check the box and close it again, then see if the problem persists, if it does i have a way around it, if you want to switch to a different workspace then you can go to file-> switch workspace -> and then a recent workspace or select other to manually select a directory.
Hope that helped!
John

start eclipse using eclipse -clean
It will work.
Thanks to some comment on the eclipse issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=134412

Related

Eclipse cant get key input on Ubuntu

I'm using Ubuntu 12.10 and Eclipse Juno. This happens frequently: When I put focus in eclipse editor window, I can input few words in editor at the beginning, and then undo several times, Suddenly it happened that, I can't input any word in eclipse, that's strange problem.
Then, I change to other program and input anything, After that, back to eclipse it can accept my key again. It get me so frustrate.
Any one knows this problem? I am using desktop pc, memory is 1G.
This may help;
I guess you have lots of projects in your workspace and Project->Build Automatically option was enabled by default. Disable this and use Project-Build All or Project-Build Project commands before you start debugging your application OR If possible create two workspace and move some of your projects to other workspace. Note that you can open two instances of Eclipse on two different workspaces simultaneously.
Increase heap space for Eclipse.
Its also possible that you installed many plug-ins in Eclipse. You can disable unnecessary plug-ins to load on eclipse start up as shown below
Edit
Two more options.
1. Disable all options in **Highlighted** category of preferences. Restart eclipse.
2. Delete **.metadata** in your workspace and restart eclipse. Note!!!. All you preferences will be lost!!!
I found this problem; It is scim input method conflict with XIM(X Input Method) method.
Solution 1,
just right click in eclipse workspace -> select Input Methods -> SCIM input methods, that's OK. But, Every time you should do it while opening another file.
Solution 2, make scim as default system input methods.
Edit /etc/X11/xinit/xinput.d/scim as below:
XIM=SCIM
XIM_PROGRAM=/usr/bin/scim
XIM_ARGS="-d"
XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=yes
#GTK_IM_MODULE=xim
#QT_IM_MODULE=xim
GTK_IM_MODULE=scim
QT_IM_MODULE=scim
also, add x95input file to /etc/X11/Xsession.d/95xinput
/usr/bin/scim -d
XMODIFIERS="#im=SCIM"
export XMODIFIERS
export GTK_IM_MODULE=scim
Hope this can help others.
I found it.
I googled and found the answer
The answer is:
Right click in Editor area InputMethods-Scim
*Editor area is where you write code

My edited files not appear in TFS's Pending Changes window

I am using VS2010's TFS and have this problem: after 'Get latest version', and try to edit the file, it does not appear in Pending Changes window. I have to use the option 'Check out to Edit' for every files I want to change. It makes me missing some files when working with a big project. Any one have idea to fix this?
Go to File -> Source Control -> Go Online and it will fix this problem.
I didn't see File -> Source Control -> Go Online option. I fixed it by clicking on item and selecting option to check out for edit. That worked.
Did you already opened the project that you are working on through the Source control window? If you do that and your solution is not yet bound to TFS it will be asked now. So bind your solution and projects and then your changes will be visible and you do not need to do check out to edit. You can also see if this is already done by checking if there are vssscc files next to your solution files.
Had the same issue after a connection problem - this caused VS/TFS to think I had nothing checked out. The solution was just to refresh the status via File, Source Control, Advanced, Refresh Status.
Restart Visual Studio and all could be well!
Go to Solution Explorer > Right click on solution > Click "Go Online"
Right-click on the specified file, then select check-in. whit this action file goes to the pending changes
For me, in the context menu of the solution I had an option to 'Add this solution to source control...'.
If you also have this option you should go and add it again. You can keep same location and Ignore All warnings.
For me only after doing this it started seeing the file changes again.
My solution was also online and apparently nothing else was wrong...
Our TFS had errors so after I got it back it only saw new userControls added not edited ones, this is how I fixed it:
RightClick -> Add Files To Source Control -> Keep Local Version (or server)
It had lost it's connection to the folder
I had the same issue with Visual Studio 2022. Go to the File > Source Control > Go online was solved my issue.
Had the same problem in VS2012, none of the answers above worked.
Fixed by opening "Go to All Changes" and including all missing files from there.
If I exclude any of these again, they do not appear under "Excluded changes", and have to be manually included from "Go to All Changes".
For VS 2017, if you have the red checkmarks next to your files,
open Team Explorer box/window -> Pending Changes,
select your files in Included Changes, provide comment
click on Check In button
In excluded changes, click on 'detected' and you will get a dialog box with all detected changes but not added to source control. Choose the changes u want to check in and then click on promote. You will be able to see the changes in the included section and you can check in.
For me was only solution making new workspace with shorter path without special chars. So I didnt use folders like users and stuff but ProgramFiles. Maybe it was because of Win 7.
And run VS as admin for making directories in ProgramFiles
VS2019 Check that all projects are bound there:
Manage Workspaces -> Edit (the workspace you are using)-> Advanced -> Change Location item from "Server" to "Local". This solve my issue
Pls check the mapping in source control.
Open Team explorer -> Source Control Explorer
Check the Local Path mapping.. if it is not appropriate, map it again with correct path.
In my case, the two files ".cs" that were missing in the "Included Changes" section, I have to follow these steps:
In the "Team Explorer" window - under the "Excluded Changes" section -, select the "Show All" dropdown and select the option "Custom filter".
In the text field that appears after the selection was made, type the name of the file - it's not needed to type the full name.
The file results will show and then, you can right-click over the files found and select "Include".
The included file(s) should now be shown in the "Included Changes" section.

Is there some feature/bug surrounding the F5 (Refresh) shortcut in Eclipse?

Depending on which workspace I'm currently using and for all I know the position of the moon eclipse turns on and off the built in shortcut for refreshing (F5). If I look it up in the settings it's still set. Yet if I right-click on for example a project I see "Refresh" instead of the normal "Refresh (F5)".
Is anyone else having the same problem or am I an annoyingly unique snowflake?
The debugger’s Step Into wins over Refresh: Eclipse bug 246483
Do you have any additional plugins installed? I guess there might be a conflict (if two plugins install the same shortcuts in the same context, none of them will work) Can you check the Error Log view for any warnings on the conflict?
Also see:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205748
https://bugs.eclipse.org/bugs/show_bug.cgi?id=323959
You can turn on automatic refresh in Eclipse, then theoretically Refresh won't be required at all.
Preferences -> General -> Workspace -> Refresh

How do I delete an Eclipse perspective for a plugin I uninstalled?

I was evaluating the Enterprise IDE plugin for Eclipse, and ultimately decided not to purchase it. After I uninstalled the plugin, I was left with a bunch of perspective buttons (the ones in the far upper-right-hand corner) which I can't remove. How do I get rid of the manually, without nuking my workspace?
Edit: To be clear, right-clicking and going to "close" does nothing. Not even an error message.
Click Window ► Preferences ► General ► Perspectives. Select the perspective you want to delete and remove it. Some of them are unremovable. I don't know why.
How did you uninstall that plugin ?
As Daniel details in his answer, Help-> Install new software -> click on "Whats already installed?" is the right way to uninstall a plugin, and should get rid of the perspective as well.
If the plugin was installed in the dropins directory or in <eclipse>/plugins and <eclipse>/features, did you delete all directories/jar in <eclipse>/features, because if that plugin was packaged as a product, it did define in the product extension point a plugin_customization.ini which can indicate some perspective buttons.
If not, the only solution is to have a careful look at your workspace metadata, look for all recent file related to that plugin and remove them.
Make a copy of your workspace first though.
As an example of such a careful look at your workspace metadata", user900975 points out in his answer the <your workspace folder>/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml file, with <perspectives> element and <perspective> child elements that you can remove.
Note: Eightball mentions in his answer (upvoted) the possibility to list and delete a perspective.
Since he mentions "Some of them are un-removable. I don,t know why", my original answer above still stands.
Alexandros adds in the comments:
This helped me fix this, but in my case the file I had to edit while Eclipse was closed was:
.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi
I was suffering the same problem with a left-over perspective button for SVN repository Exploring. It wouldn't disappear using the close option. However it did disappear after selecting from Window -> Close All Perspectives.
Regards,
<your workspace folder>/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml contains a <perspectives> element with <perspective> child elements. You can delete <perspective> elements and they will no longer appear in the toolbar. Eclipse writes to this file when it exits so your changes will be overwritten if you don't quit Eclipse first.
If you installed a plugin, click Help ► Install new software, then click What's already installed? in the bottom right. Uninstall what you want, the perspective will be removed as well.
You could also try launching Eclipse with the -clean command line argument. This cleans out the Eclipse runtime cache, so it might fix your problem as well.
I had the same problem after installing a plugin. The answer is quite simple, if not obvious.
Open Window | Preferences
Click General node
Click Perspectives
Find the perspective in the list and then select Delete command on the right.
The list will refresh and your perspective is deleted.

Eclipse Search Menus disabled randomly

I use Eclipse 3.3 in my daily work, and have also used Eclipse 3.2 extensively as well. In both versions, sometimes the Search options (Java Search, File Search, etc) in the menu get disabled, seemingly at random times. However, with Ctrl+H, I am able to access the search functionality. Does anyone know why this happens? Has it been fixed in Eclipse 3.4?
window > close all perspective works for me.
Using Eclipse 4.3(!) this happened to me after doing a case-sensitive search.
Window -> Close All Perspectives didn't fix it and neither did restarting Eclipse using -clean. While messing with the search box, I discovered that simply clicking to a previous search entry allowed me to edit it and search again! Clicking back to the case-sensitive search grayed the option out again.
So before you reset anything in your workspace, try pulling up an older search entry using the Down Arrow.
I think this answer is what you all need to solve the issue on all versions.
I am using RAD 8 and I have also faced this problem than I removed org.eclipse.search directory in (workspace currently using) workspace/metadata/plugins folder then restart the eclipse.
That's all.
I don't have an exact answer. I will recommend that you try to correlate the disablement with which perspective is active. Likewise, which view is active. I have been using 3.4 and not experienced this issue.
Darn! I have that problem too -- in Eclipse 3.4.2.
Seems to be related to Navigator and Project Explorer views:
- Switch to Debug perspective: Search menu items are there.
- Switch to Java or Java EE perspective: Search menu items still there.
- Click on a project in Navigator or Project Explorer: Search menu items all DISABLED.
(Curse! I use search in Selected Resources a lot! )-:
Hmmm... It may slso depend on the file type currently open in the editor. (Like Java vs xml.)
Still present in Eclipse 3.5.2 -- and for the first time really sticky.
I checked out the "close all opened files and open any other file afterwards" answer and that brought back the Search menu items. Additionally, if you were lucky and have the Search result view open, than indeed there is this little link "Open search dialog".
By the way, additionally lots of other project-related menu items seem to be greyed out also together with this, and they did not reanimate :-( But I did not really check out if these are only items for which it is useful and planned to be greyed out in this situation.
I'm using RAD 7.5.1 which runs on Eclipse 3.4 and I get this problem frustratingly often. It doesn't matter which perspective or view I'm in, or which editor I have open.
Restarting RAD usually clears it up, but because that's such a colossal pain, I found that you can get around it in the Search View, there is a link; "Start a search from the search dialog" which will bring up the search dialog.
This isn't a great workaround because the link only shows if you have no search history. To do another search, you'll have to clear your search history in the view.
A late comment for anyone getting bitten by this, but I found "eclipse -clean" fixed it => this does a cleanup of the workspace before starting
Thanks http://letsgetdugg.com/2009/04/19/recovering-a-corrupt-eclipse-workspace/ for the tip, after I guessed my workspace might be corrupt.
Before search, check you may choose scope in empty Working set. Most Search menu disables Search button when you choose it. And mine, too :)
window > close all perspectives worked for me too.
But if you are just looking for a text search in the project you could press Ctrl+Alt+G on a marked text
I couldn't get it to work even when restarting Eclipse.
Here's what worked for me: Closing all open files and opening a different file. The different file happened to be .java, but not sure if that had anything to do with it.
I get this problem from time to time.
In the past I've fixed by starting eclipse with the -clean option.
Once when that didn't work I created a new workspace.
I followed these instructions for those two solutions.
The clean option didn't work for me today and I found this thread because I didn't want to create a new workspace. The closing all files and reopening one file did work however.
I had this issue also in eclipse 3.6.2: Helios Service Release 1.
Closed all the editor windows, and the search has been enabled.
Switching to another perspective, then back, works quickly for me.
I've faced similar issue in Ctrl+H "File Search" tab. The "Search" and "Replace" button was grayed out (disabled). The solution is fill the "File name patterns" text box (for eg, *.py). May be this is by design!
I have this problem with MyEclipse 7 (eclipse 3.4) under Debian Lenny. Perspective doesn't seem to matter. I get around it with the shortcut Ctrl+H but I was hoping for a better way.
Just had this problem in Eclipse Neon 3. It is a very common problem in RAD. I could find using in the console, then switch back to the source and search. RAD would disable the find/search options per source file open. This is very frustrating.
I had this problem too. It appeared when I installed the m2eclipse plugin.
I had not found a solution, but you can use Ctrl+H shortcut instead.
And you can navigate between tabs with Ctrl+PgDown or Ctrl+PgUp keys.
I've uninstalled the following pluings and it worked.
Maven integration
PMD
eclipse checkstyle plugin
EclEmma (coverage)
I don't know which of those cause the problem. To uninstall a plugin: Help -> Software Updates...-> "Installed Software" tab.