Closed tivervac closed 4 months ago
This sounds familiar but also like something @HannesWell has already addressed in oomph by ensuring that egit/jgit lfs support is installed and the appropriate preferences are set.
This commit history suggests the changes to support this should already be in place
I can try it myself tomorrow.
Hmm I didn't have the Enable LFS support globally
option in Eclipse enabled, but I also didn't have git-lfs installed at all
It's really strange because that preference is set and the bundle is installed here by the parent project of SWT's setup:
And in the performer I can see those tasks:
If I create an IDE just for SWT, then I see LFS is installed:
I think the preference is set:
And I can create a runtime workbench that is definitely using the SWT from the workspace:
I don't have a good theory for why you would see something different...
I'm on a different computer today, and I tried the same. Same environment (no LFS installed), same error messages, same fix
A
sudo yum install git-lfs
and acd platform-sdk/git/eclipse.platform.swt; rm -rf binaries; git reset --hard origin/master
fixed it.
Is it expectable that installing git-lfs solves the problem? From my understanding, JGit, as used by the Oomph installer, should be independent from any git package installed on the system, shouldn't it?
I tried to reproduce the problem (on Ubuntu 22.04.4) with no git-lfs installed (a git clone on the SWT repo via system shell fails as expected). The Oomph setup still runs fine, including a successful LFS checkout via JGit .
Indeed, I would expect installing org.eclipse.jgit.lfs would allow the clone task in the IDE to do anything related to LFS support even with no native git installed.
@tivervac
If you do Help -> Perform Setup Tasks and select the p2 director, is org.eclipse.jgit.lfs in the list?
I assume it must be present...
I wonder if it's possible that some global git configuration is causing some unintended/unexpected interaction?
@merks Seems to be present indeed
My global .gitconfig looks like below. I don't see any issues with that. The git hook shouldn't be in the way either.
[color]
ui = true
[core]
editor = vim
hooksPath = ~/.config/git/hooks/
[diff]
tool = vscode
[alias]
unstage = reset HEAD --
pushf = push --force-with-lease
mergeff = merge --ff-only
l = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
c = commit
p = push
rekt = status
s = status
d = diff
a = add -A
ch = checkout
b = branch
rpr = remote prune origin
f = fetch --all
rom = rebase origin/master
lom = l origin/master
cp = cherry-pick
[credential]
helper = cache --timeout=3600
[push]
default = current
[gui]
spellingdictionary = none
commitmsgwidth = 72
[protocol]
version = 2
[gpg]
program = gpg2
[pull]
rebase = true
@tivervac
If JGit LFS is installed then this preference page should have the button enabled:
And the setup should have set the following preference to be check marked.
With those in place, clones should just use LFS support.
@tomaswolf
Is there something in @tivervac settings that might cause the IDE to use natively installed git "things" such that JGit's LFS support is not being used as expected?
The button is visible and the checkmark is enabled
So everything appears to be installed and configured appropriately which leave the mystery of why cloning does materialize the LFS content. Even a manually created new clone should "just work" in this installation, but I assume that if you manually create another clone of SWT, that also doesn't work properly...
I don't know what might be the problem. But the built-in LFS support in JGit has issues. Possibly one of these causes trouble in tivervac's setup.
Recloning SWT via egit works, however, by now I've already pressed the Enable LFS support globally
button...
I wonder what that button does. I've never pushed it...
Can you see something (some change) in one of the Git configuration settings? Oomph does support setting the configuration automatically e.g,.
So if there is something we could set directly, that would be good to know and do...
I'm not sure these is actionable left here? 😢
Sadly, I don't think so either. I tried reoomphing a final time and now it simply works.
Let's make sure issue is not already fixed in latest builds first.
Steps to reproduce
From a fresh installation and clean workspace:
CONTRIBUTING.md
.Runtime Workspace
launch profileI expected: A clean Eclipse to launch
But got: A stacktrace, see below
Here is some relevant log output
From
<workspace>/.metadata/.log
Tested under this environment:
Fix
I figured out through this ticket that one of the libraries wasn't correctly cloned because I didn't have
git lfs
installed.A
sudo yum install git-lfs
and acd platform-sdk/git/eclipse.platform.swt; rm -rf binaries; git reset --hard origin/master
fixed it.I'm unsure how we best solve this. Ideally this would be done in Oomph, but I suppose Oomph can't just install git-lfs. The second best choice would be for Oomph to fail and tell me that I need to enable git lfs. The least convenient, but easiest to implement solution, would be to just add the git-lfs requirement in the
CONTRIBUTING.md
.Community