gitextensions / gitextensions

Git Extensions is a standalone UI tool for managing git repositories. It also integrates with Windows Explorer and Microsoft Visual Studio (2015/2017/2019).
https://gitextensions.github.io/
Other
7.78k stars 2.09k forks source link

[linux/mono] GitExtansions doesnt start #3096

Closed Bryksin closed 8 years ago

Bryksin commented 8 years ago

OS: Ubuntu 14.04 LTS

1) Unziped GitExtensions mono 2) run mono <path>/GitExtensions.exe 3) it run successfully, close application 4) run mono <path>/GitExtensions.exe again 5) Crash

After first successfull opening of GitExtensions and closing it, i'm unable to reopen it in second time

Crash Content:

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'GitCommands.AppSettings' threw an exception. ---> System.Xml.XmlException: Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 104, position 9.
  at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) <0x406f6eb0 + 0x000a3> in <filename unknown>:0 
  at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String arg) <0x406f69a0 + 0x000ab> in <filename unknown>:0 
  at System.Xml.XmlTextReaderImpl.ParsePI (System.Text.StringBuilder piInDtdStringBuilder) <0x406f63e0 + 0x0013b> in <filename unknown>:0 
  at System.Xml.XmlTextReaderImpl.ParsePI () <0x406f63c0 + 0x0000f> in <filename unknown>:0 
  at System.Xml.XmlTextReaderImpl.ParseElementContent () <0x4068aa30 + 0x000bb> in <filename unknown>:0 

blah blah blah
*** Skipped ***
blah blah blah

  at GitCommands.Properties.Settings.get_IsPortable () <0x406ec300 + 0x0001a> in <filename unknown>:0 
  at GitCommands.AppSettings.IsPortable () <0x406ea190 + 0x00017> in <filename unknown>:0 
  at GitCommands.AppSettings.<.cctor>b__0 () <0x406ea110 + 0x0000b> in <filename unknown>:0 
  at System.Lazy`1[T].CreateValue () <0x7f763ab18d50 + 0x00174> in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at GitUI.Lemmings.GetPictureBoxImage (DateTime currentDate) <0x406e9c40 + 0x0000f> in <filename unknown>:0 
  at GitUI.FormSplash..ctor () <0x406b7640 + 0x00117> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) GitUI.FormSplash:.ctor ()
  at GitUI.FormSplash.ShowSplash () <0x406b7590 + 0x0001f> in <filename unknown>:0 
  at GitExtensions.Program.Main () <0x40674de0 + 0x00253> in <filename unknown>:0 

I also delete GitExtansions extraction and unzip download again, but it didnt help, it doesnt launch I also deleted .mono folder in user space, the same story, no help

I extracted it to home of another user and run under him, worked for first time, and then the same problem

Basicly it runs only once, in first time per user, after u close it, it wont start again.

Carbenium commented 8 years ago

This is known and was fixed with https://github.com/gitextensions/gitextensions/pull/3052.

So you will have to wait for a new release or build GitExtensions from source.

NoAnyLove commented 8 years ago

Tried to build GitExtensions on Ubuntu 15.10, but failed. Couldn't find much information about how to build it on Linux.

vchekan commented 8 years ago

Second that. Wiki does not even explain either mono should be used on linux or windows.