Community
Participate
Working Groups
I got an error in the .log file with these details: Calling "Command(org.eclipse.egit.ui.RepositoriesViewOpen,Open, , Category(org.eclipse.egit.ui.commandCategory,Git,null,true), org.eclipse.ui.internal.MakeHandlersGo@4eb98fe1, ,,true)" command directly eclipse.buildId=I20110620-1631 java.version=1.6.0_24 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=fr_CA Command-line arguments: -os win32 -ws win32 -arch x86_64 -console I got it when opening a file from the git repository view.
I tried with EGit 1.0.0.201106090707-r and opened a file by selecting it under working directory and clicking "Open in Text Editor" but this didn't log an error. Which EGit version did you use ? Did you see any error message ? What you listed doesn't look like an error though it's strange that it ends up in the log ...
This is the version of EGit I am using: org.eclipse.egit (1.0.0.201106090707-r) "Git Team Provider" org.eclipse.egit.core (1.0.0.201106090707-r) "Git Team Provider Core" org.eclipse.egit.doc (1.0.0.201106090707-r) "Git Team Provider Documentation" org.eclipse.egit.ui (1.0.0.201106090707-r) "Git Team Provider UI"
When I do "Open in Text Editor", it works (no error). When I double-click on the file, it fails.
Works for me also when double clicking. What's your Eclipse platform version and Eclipse package ? From which perspective do you try this ? When it fails do you see an error in the log which says more than what you posted already, maybe a stack trace ...
The problem is in RepositoriesView's IOpenListener implementation on line 244. In there, we directly execute a command instead of going through the IHandlerService. See bug 348584 for details of a similarly offending block of code in PDE.
A change set has been attached to Gerrit for review. http://egit.eclipse.org/r/#change,3833
merged as a105a3d157fb164e9b42ae261f630c7849d55d90
Verified with EGit 1.1.0.201107070512 on Windows XP.