egit git status error on gitignore

Questions and answers regarding the use of eclipse environment as seen in Servoy Developer

egit git status error on gitignore

Postby japink.m » Sat Jul 25, 2015 12:10 pm

I am working with gitlab, git and egit. After configuring my .gitignore file I get error messages after each change or save in eclipse. I tried new workspace, complete fresh Servoy install etc. Nothing helps.
The error I get is:

An internal error occurred during: "Computing Git status for repository oostvoorn".
Unexpected internal error near index 11
\.metadata\

git status from the command line works fine.

Any idea how i can fix this?

my .gitignore looks like

.gitignore
#metadata files#
*./metadata/
.metadata/
.metadata\
*metadata/
*metadata\
*\.metadata\
#log files#
*.log
japink.m
 
Posts: 23
Joined: Fri Jun 14, 2013 9:13 pm

Re: egit git status error on gitignore

Postby ROCLASI » Sat Jul 25, 2015 4:27 pm

Hi,

Perhaps it's the backslash that throws it off? Backslashes are (mostly) used to escape control characters.
In my ignore file I just use '.metadata' (without the quotes) to prevent my eclipse metadata to be tracked. Perhaps you should just use that.

Also interesting that you ignore your gitignore file, any reason why you don't want to track that file ?
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: egit git status error on gitignore

Postby japink.m » Sat Jul 25, 2015 10:18 pm

Great Robert. That did the trick. I just gathered together my .gitignore by internet and servoy forum. I had no particular reason for excluding .gitignor. It's just what I found. It's probably better to include, so a new check out has ignore properties set.

seams .metadata is enough.
japink.m
 
Posts: 23
Joined: Fri Jun 14, 2013 9:13 pm


Return to Eclipse Environment

Who is online

Users browsing this forum: No registered users and 4 guests