I have installed pydev on eclipse oxygen, and globally search the content by pressing "Ctrl+H", but the search result has wrong line numbers, I cannot get correct search result either by doing "Refresh" or re-creating the workspace, anyone has come into the same situation and help me ? Thx.
Do you have auto-build turned on (in the menu: project > build automatically)?
You can also trigger a reindex by doing the following: open a PyDev editor, trigger: Ctrl+2 and then choose --reindex in the menu that opens (considering you're doing a search in the PyDev tab).
I have Eclipse (Mars) web development tools installed on a MacBook Air. Recently, hitting f3 stopped opening the declaration.
The key mapping in Eclipse (Mars) - web development tools:
In another Eclipse install (Luna) - Android development tools, where the f3 function is working, the key mapping is:
What is wrong with the Mars version? What do I need to add to get it to work in the Java editor?
I have seen this post, but I don't have the exact same issue. Nothing happens when I hit f3.
Additionally
Other short cut keys work.
Opening the declaration with the context menu does work.
But there is no key short cut listed in the context menu.
Did this key mapping change with Mars? In my Luna verion, the context menu has the key map listed:
I've the same issue. You can use "Ctrl + Left mouse click" instead.
Make sure your function lock key is not pressed. I apparently hit mine and didn't notice given that F3 is the only function key I use.
Seems stupid but this literally happened to me and the other suggestion didn't help.
In eclipse mars goto:
window
preferences
General
Keys to open the key mapping view.
type 'open declaration' in the filter text.
copy one of the commands that are already there Copy Command
Enter 'F3' in the Binding.
In the drop down menu of the combo box of 'When' select Editing
Then whatever Language You Are Using
Source
Apply
and press Ok
I had the same issue after installing Apache Directory Studio.
Go to Window->Preferences, General->Keys. Filter for F3 and you'll see all the different ways that F3 is bound. I got it to work again by disabling F3 in the LDAP windows (i.e. deleting the binding).
Some suggestions to try:
1) Try creating a new workspace, and check if F3 works
2) Try switching to a different perspective
3) Try downloading a different eclipse release, maybe the java developers release, check that F3 works, then install whatever you need for web development.
Good luck :)
Right Click on the project -> Properties -> Project Facets -> Click on the Configuration Link -> Click on Apply Button -> Click on OK button.
The above steps should set your project as a Java project.
Looking at the comparison of the preferences that work vs what does not work, the issue is clear.
Go to: Window/preferences/General/Keys to open the key mapping view.
Type 'Open declaration' in the search box
Enter 'F3' in the Binding textbox.
If you are editing for C++, Java any language, you need to have a specific F3 binding for that language!
Example for Java source code select 'Editing Java Source' in the 'When' dropbox.
Apply and press Ok
Even I faced the same issue in windows,I was using cucumber and was unable to navigate using F3. I solved by doing the following:
Click on Help in Eclipse >
Eclipse MarketPlace
type "Natural" in search and press enter
Install "Natural 0.9" plugin
Restart Eclipse
This should work, if not working even after that, uninstall cucumber plugin in Eclipse Marketplace
You will be able to navigate from Gherkins, even after this if you are finding issues do the following:
Go to Window ->Preferences, General->Keys > Click on "Restore Defaults"
I had a similar problem today - Unable to open Declarations in Java Editor using F3 or CTRL+Left Click.
Solution :
STEP1: Selected any java file in Eclipse Explorer.
STEP2: Clicked the - sign at the top of the Eclipse explorer. This compressed view of all modules in Eclipse.
STEP3: Right click on the empty space on the Eclipse Java Explorer and chose Refresh Option (F5) .
STPE4 : Happily the navigate options like F3, F2 , CTRL + Right Click all started working.
Solution :
1. Download and install this eclipse
eclipse-jee-2019-12-R-win32-x86_64
F3 shortcut key is worked for java file and Testng.xml.
i am able see package name and class name and also it navigate methods.
I create a simple Maven project in eclipse using m2elipse plugin, then I revise the pom.xml to what I need and save it. After the rebuilding of the project, there's a red cross on my project's icon, but with no red cross anywhere else in this project. According to my experience, this is caused by the java building path or library reference, so how can I find this out? because the library reference is auto produced by maven. Thanks a lot!
To see the listing of all errors and warnings, open the problems view.
You must upgrade the m2e connector. It's a known bug, but there is a solution
Into Eclipse click "Help" > "Install new Software..."
Appears a window. In the "Install" windows:
2a. Into the input box "Work with", enter next site location and press Enter https://download.eclipse.org/m2e-wtp/releases/1.4/
2b. Appears a lot of information into "Name" input box. Select all the items
2c. Click the "Next" button.
Finish the installation and restart Eclipse.
The root cause here is maven connector, you need to upgrade the connector.
Here how you can open the Problem View which is highlighted by another user #konstantin in his answer.
Select the pom.xml which is having the red cross on it and open this.
and then you will be able to see it like below
I am running Eclipse 3.6.
I used to have two options in the context menu when right clicking a project in any perspective - One would open Windows explorer in the folder the project is located at and the other would open a windows command prompt in the folder the project is located at.
Not sure why but for some reason I don't see these options anymore.
I tried looking for them under "Customize perspective..." but couldn't find it anywhere.
Anyone knows how to restore these two options?
Thanks
Eclipse itself does not have this function. So, I think you were using a plugin. I searched the eclipse plugin site, I think you can try this:
http://www.eclipse-plugins.info/eclipse/plugin_details.jsp?id=1821
somehow I've ended up in a situation such that when I navigate through source files with Eclipse, the Eclipse always selects (and expands) the opened file with package explorer. With this I end up
losing my location on Package Explorer
Having my Package explorer expanded and pretty confusing.
With brief googling/exploring on the preferences I couldn't find this one..
Eclipse version is 3.4 if that happens to matter.
Thanks in advance,
Touko
Turn off the "Link with Editor" option in the Package Explorer toolbar.
(the left/right arrow icon, turned on here)
Select a source file, right click on it, choose "Open with" and then "Java Editor". The Java Editor should be the default after that for all java files.