Repository config file issue with Egit and eclipse - eclipse

I am getting a "Multiple problems have occurred" error window in eclipse and the following is the more detail I get:
An error has occurred. See error log for more details.
An error has occurred. See error log for more details.
Repository config file V:\git\broadband_production.git\config invalid Cannot read file V:\git\broadband_production.git\config
I can access the same git data using a git bash, but I would like to be able to continue using the EGit funcionality in eclipse.
Any ideas on what is wrong?

Does your config file have a UTF-8 byte order mark? If it does, you'll have to upgrade to the nightly version of EGit, which includes the recent fix for handling UTF-8 BOM.
Use the following update site to upgrade: http://download.eclipse.org/egit/updates-nightly

Related

Netbeans php-cs-fixer end up with error "Files that were not fixed due to errors reported during linting after fixing:"

I am using php-cs-fixer for code formatting in Netbeans 8.2. When I try to format one file, it shows the error
Files that were not fixed due to errors reported during linting after fixing:
I searched for the fix in many websites, but couldn't get this fixed. Is there any way to fix this? I tried with both php-cs-fixer 1 and php-cs-fixer 2.
The error message means that PHP CS Fixer loaded some files from drive, apply changes on them, and then realised that files are not valid anymore (invalid PHP syntax) after those changes, thus it decided to not save it. That's one of the safety mechanism of PHP CS Fixer to not break your project.
This means that you have found an issue in PHP CS Fixer itself.
Please, verify you are using newest release, maybe the bug was already fixed!
If not, please consider to expose your configuration file (if any) and content of files you got listed at https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/new !
There is also an option to see what happen in progress.
$ ./vendor/bin/php-cs-fixer fix src/ErrorFile.php -vvv
The --verbose option will show the applied rules. When using the txt format it will also display progress notifications.
NOTE: if there is an error like "errors reported during linting after fixing", you can use this to be even more verbose for debugging purpose
-v: verbose
-vv: very verbose
-vvv: debug

sourcetree has crashed when starting

I have installed source tree and when I start my terminal I got this error.
Can anyone got any suggestions?
Here's the info from the log file:
2015-07-13T15:02:40: SingleInstance called with arguments:
System.Collections.Generic.List`1[System.String]
2015-07-13T15:03:07: Could not determine repository from:
'ssh://git#bitbucket.org/rox911/test.git', output was:
FATAL ERROR: Disconnected:
No supported authentication methods available (server sent: publickey) fatal:
Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
2015-07-13T15:03:23: Fatal error: System.InvalidOperationException:
DialogResult can be set only after Window is created and shown as dialog.
I also came across the issue after updating from v1.6.14 to v1.6.16.
Trying to use embedded Git:
SourceTree >> Tools >> Options >> Git >> Use Embedded Git
UPDATE
Issue was fixed in version 1.6.17.0. confirmed.
I used the sourcetree 1.6.16 before. I try several method to solve this problem and failed.
The solution for me was to use an older version of the sourcetree.
So used sourcetree 1.6.14

An error has occured. Please see log file - eclipse

When I start up Eclipse, it gives me an error saying:
An error has occurred. See the log file
/home/Vendetta/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1428564435095.log
on Linux Debian
Can you tell me what I should do?
Well whenever I've run into similar problems, it usually meant that a plug in had become out of synch with my eclipse file directory.
Unfortunately I can't give you much more than a generic "make sure your workspace is safe and re-download eclipse" with the information you've given.

How to resolve "unrecognized request" error from CVS using eclipse

I am using Eclipse Indigo to log into a CVS server. When I try to synchronize with the repository, I am getting this error:
Problems reported while synchronizing CVS Workspace. 0 of 1 resources
were synchronized. The server reported an error: unrecognized request
`dated Template Copy-file Mod-time Set-static-directory
Update-existing Clear-static-directory Set-sticky New-entry MT
Notified Created Remove-entry Checked-in Merged Removed Valid-requests
Clear-sticky Module-expansion'
I am able to commit changes, but I cannot see any updates. Does anyone know what this error message means and how to resolve it? Thanks for your help.
You can try this it might solve your problem
Had the same problem, and solved it when i deleted the content of my workspace/project/WebContent/folder with problem/CVS/Entries, then i refreshed my files in eclipse and it worked.
I guess something there was corrupted.
From here.

Eclipse egit: "Packfile corruption detected: Unknown zlib error." How to circumvent?

We have a git repository managed by gitosis under Ubuntu, which has worked well all up to the disk ran full. After reading up a bit on the issue, I found that git gc and git gc --aggresive got me quite a bit of diskspace back. Very nice.
Unfortunately this appears to have broken something in egit, as I get this message when trying to clone our repository (during the checkout phase at around 10%)
Packfile corruption detected: Unknown
zlib error.
Interestingly enough the git in msysgit works just fine as before.
I tried upgrading egit to the nightly build of 0.12 as there was some mailing list messages hinting this had been fixed within the last week, but to no avail.
My question now is, what can I do to my repository to get to a state where egit works again? I have full control over the Ubuntu instance running gitosis.
EDIT: I got a stack trace from the Eclipse event log
org.eclipse.jgit.errors.TransportException: Packfile corruption detected: Unknown zlib error.
at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:287)
at org.eclipse.jgit.transport.BasePackFetchConnection.fetch(BasePackFetchConnection.java:225)
at org.eclipse.jgit.transport.FetchProcess.fetchObjects(FetchProcess.java:214)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:149)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:111)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:903)
at org.eclipse.egit.core.op.CloneOperation.doFetch(CloneOperation.java:228)
at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:135)
at org.eclipse.egit.ui.internal.clone.GitCloneWizard.executeCloneOperation(GitCloneWizard.java:259)
at org.eclipse.egit.ui.internal.clone.GitCloneWizard.access$3(GitCloneWizard.java:252)
at org.eclipse.egit.ui.internal.clone.GitCloneWizard$4.run(GitCloneWizard.java:233)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.jgit.errors.CorruptObjectException: Packfile corruption detected: Unknown zlib error.
at org.eclipse.jgit.transport.PackParser$InflaterStream.read(PackParser.java:1530)
at org.eclipse.jgit.transport.PackParser$InflaterStream.skip(PackParser.java:1500)
at org.eclipse.jgit.util.IO.skipFully(IO.java:203)
at org.eclipse.jgit.transport.PackParser.inflateAndSkip(PackParser.java:1352)
at org.eclipse.jgit.transport.PackParser.indexOneObject(PackParser.java:834)
at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:448)
at org.eclipse.jgit.storage.file.ObjectDirectoryPackParser.parse(ObjectDirectoryPackParser.java:178)
at org.eclipse.jgit.transport.PackParser.parse(PackParser.java:410)
at org.eclipse.jgit.transport.BasePackFetchConnection.receivePack(BasePackFetchConnection.java:649)
at org.eclipse.jgit.transport.BasePackFetchConnection.doFetch(BasePackFetchConnection.java:280)
... 11 more
Edit: Opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=340305
One way to get a clone without EGit is to:
make a bundle on the server
copy the unique file representing that bundle on the client side
try to clone it in command-line.
Since you mention you can process the bundle with msysgit, that suggests a bug on the Egit or JGit side, as illustrated by bug 330758.
The usual course of action is to update to the nightly latest fo EGit, using this p2 update site, and see if the problem is still there.
If the issue persists, you can then file a bug report or complete the existing one (330758).
Please check the versions of Git you are running and make sure they match.
The latest egit 0.12 does not show this behaviour.
Hopefully the bug has been fixed for real, and not just an accidental side effect.