harry-cpp / monodevelop-run-installer

A simple .run installer for MonoDevelop
MIT License
23 stars 1 forks source link

it Does not work #4

Closed Rombersoft closed 6 years ago

Rombersoft commented 6 years ago

I've just installed monodevelop from https://github.com/cra0zy/monodevelop-run-installer/releases Verifying archive integrity... All good. Uncompressing MonoDevelop .run installer................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ Copying MonoDevelop binaries... Adding libgit2-e8b8948.so symlink to fix VersionControl Addin... Adding terminal commands... Adding application icon... Adding application launcher... And try it via menu, click on launcher but nothing happens

What is it?

destructor@ORION-6 /usr/share/applications $ cat monodevelop-stable.desktop [Desktop Entry] Version=1.0 Encoding=UTF-8 Name=MonoDevelop Stable GenericName=Integrated Development Environment GenericName[ja]=統合開発環境 Comment=Develop .NET applications in an Integrated Development Environment Exec=monodevelop-stable %F TryExec=monodevelop-stable Icon=monodevelop-stable StartupNotify=true Terminal=false Type=Application MimeType=text/x-csharp;application/x-mds;application/x-mdp;application/x-cmbx;application/x-prjx;application/x-csproj;application/x-vbproj;application/x-sln;application/x-aspx; Categories=GNOME;GTK;Development;IDE; X-GNOME-Bugzilla-Bugzilla=Ximian X-GNOME-Bugzilla-Product=MonoDevelop X-GNOME-Bugzilla-OtherBinaries=monodevelop destructor@ORION-6 /usr/share/applications $

harry-cpp commented 6 years ago

You are probably missing some dependency and MonoDevelop is crashing, post me yours ~/.cache/MonoDevelop/7.0/Logs/Ide.log file, maybe I can help.

Rombersoft commented 6 years ago

Ok, catch it

destructor@ORION-6 ~/.cache/MonoDevelop/7.0/Logs $ cat Ide.log FATAL ERROR [2017-10-10 11:06:39Z]: MonoDevelop failed to start. Some of the assemblies required to run MonoDevelop (for example gtk-sharp)may not be properly installed in the GAC.
System.TypeInitializationException: The type initializer for 'MonoDevelop.Core.Runtime' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MonoDevelop.Core.PropertyService' threw an exception. ---> System.UnauthorizedAccessException: Access to the path "/home/destructor/.config/MonoDevelop/7.0" is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <77c9551943624fd18301ba6f78a841e5>:0
at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <77c9551943624fd18301ba6f78a841e5>:0
at MonoDevelop.Core.PropertyService..cctor () [0x00098] in <781ce6368c3e4473a860be4849100ab2>:0
--- End of inner exception stack trace ---
at MonoDevelop.Core.CoreConfigurationProperty`1[T]..ctor (System.String name, System.Boolean defaultValue, System.String oldName) [0x0000f] in <781ce6368c3e4473a860be4849100ab2>:0
at MonoDevelop.Core.ConfigurationProperty.Create[T] (System.String propertyName, T defaultValue, System.String oldName) [0x00001] in <781ce6368c3e4473a860be4849100ab2>:0
at MonoDevelop.Core.RuntimePreferences..ctor () [0x00000] in <781ce6368c3e4473a860be4849100ab2>:0
at MonoDevelop.Core.Runtime..cctor () [0x00000] in <781ce6368c3e4473a860be4849100ab2>:0
--- End of inner exception stack trace ---
at MonoDevelop.Ide.IdeStartup.Main (System.String[] args, MonoDevelop.Ide.Extensions.IdeCustomizer customizer) [0x000aa] in :0

Unhandled Exception: System.TypeInitializationException: The type initializer for 'MonoDevelop.Core.Runtime' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MonoDevelop.Core.PropertyService' threw an exception. ---> System.UnauthorizedAccessException: Access to the path "/home/destructor/.config/MonoDevelop/7.0" is denied. at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <77c9551943624fd18301ba6f78a841e5>:0 at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <77c9551943624fd18301ba6f78a841e5>:0 at MonoDevelop.Core.PropertyService..cctor () [0x00098] in <781ce6368c3e4473a860be4849100ab2>:0 --- End of inner exception stack trace --- at MonoDevelop.Core.LoggingService.get_ReportCrashes () [0x00001] in <781ce6368c3e4473a860be4849100ab2>:0 at MonoDevelop.Core.LoggingService.ReportUnhandledException (System.Exception ex, System.Boolean willShutDown, System.Boolean silently, System.String tag) [0x00024] in <781ce6368c3e4473a860be4849100ab2>:0 --- End of inner exception stack trace --- at MonoDevelop.Ide.IdeStartup.Main (System.String[] args, MonoDevelop.Ide.Extensions.IdeCustomizer customizer) [0x000e5] in :0 at MonoDevelop.Startup.MonoDevelopMain.Main (System.String[] args) [0x00001] in <965c5b43491d40b6ac7dbb2b5ad79081>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'MonoDevelop.Core.Runtime' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MonoDevelop.Core.PropertyService' threw an exception. ---> System.UnauthorizedAccessException: Access to the path "/home/destructor/.config/MonoDevelop/7.0" is denied. at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <77c9551943624fd18301ba6f78a841e5>:0 at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <77c9551943624fd18301ba6f78a841e5>:0 at MonoDevelop.Core.PropertyService..cctor () [0x00098] in <781ce6368c3e4473a860be4849100ab2>:0 --- End of inner exception stack trace --- at MonoDevelop.Core.LoggingService.get_ReportCrashes () [0x00001] in <781ce6368c3e4473a860be4849100ab2>:0 at MonoDevelop.Core.LoggingService.ReportUnhandledException (System.Exception ex, System.Boolean willShutDown, System.Boolean silently, System.String tag) [0x00024] in <781ce6368c3e4473a860be4849100ab2>:0 --- End of inner exception stack trace --- at MonoDevelop.Ide.IdeStartup.Main (System.String[] args, MonoDevelop.Ide.Extensions.IdeCustomizer customizer) [0x000e5] in :0 at MonoDevelop.Startup.MonoDevelopMain.Main (System.String[] args) [0x00001] in <965c5b43491d40b6ac7dbb2b5ad79081>:0

harry-cpp commented 6 years ago

sudo rm -rf ~/.config/MonoDevelop and try running it again.

Rombersoft commented 6 years ago

I've just executed your command but how to run monodevelop? Via menu nothing happens again

harry-cpp commented 6 years ago

Cat Ide.log again.

Rombersoft commented 6 years ago

destructor@ORION-6 ~/.cache/MonoDevelop/7.0/Logs $ cat Ide.log FATAL ERROR [2017-10-10 12:16:40Z]: MonoDevelop failed to start. Some of the assemblies required to run MonoDevelop (for example gtk-sharp)may not be properly installed in the GAC. System.TypeInitializationException: The type initializer for 'MonoDevelop.Core.Runtime' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MonoDevelop.Core.PropertyService' threw an exception. ---> System.UnauthorizedAccessException: Access to the path "/home/destructor/.config/MonoDevelop/7.0" is denied. at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <77c9551943624fd18301ba6f78a841e5>:0 at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <77c9551943624fd18301ba6f78a841e5>:0 at MonoDevelop.Core.PropertyService..cctor () [0x00098] in <781ce6368c3e4473a860be4849100ab2>:0 --- End of inner exception stack trace --- at MonoDevelop.Core.CoreConfigurationProperty`1[T]..ctor (System.String name, System.Boolean defaultValue, System.String oldName) [0x0000f] in <781ce6368c3e4473a860be4849100ab2>:0 at MonoDevelop.Core.ConfigurationProperty.Create[T] (System.String propertyName, T defaultValue, System.String oldName) [0x00001] in <781ce6368c3e4473a860be4849100ab2>:0 at MonoDevelop.Core.RuntimePreferences..ctor () [0x00000] in <781ce6368c3e4473a860be4849100ab2>:0 at MonoDevelop.Core.Runtime..cctor () [0x00000] in <781ce6368c3e4473a860be4849100ab2>:0 --- End of inner exception stack trace --- at MonoDevelop.Ide.IdeStartup.Main (System.String[] args, MonoDevelop.Ide.Extensions.IdeCustomizer customizer) [0x000aa] in :0

Unhandled Exception: System.TypeInitializationException: The type initializer for 'MonoDevelop.Core.Runtime' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MonoDevelop.Core.PropertyService' threw an exception. ---> System.UnauthorizedAccessException: Access to the path "/home/destructor/.config/MonoDevelop/7.0" is denied. at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <77c9551943624fd18301ba6f78a841e5>:0 at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <77c9551943624fd18301ba6f78a841e5>:0 at MonoDevelop.Core.PropertyService..cctor () [0x00098] in <781ce6368c3e4473a860be4849100ab2>:0 --- End of inner exception stack trace --- at MonoDevelop.Core.LoggingService.get_ReportCrashes () [0x00001] in <781ce6368c3e4473a860be4849100ab2>:0 at MonoDevelop.Core.LoggingService.ReportUnhandledException (System.Exception ex, System.Boolean willShutDown, System.Boolean silently, System.String tag) [0x00024] in <781ce6368c3e4473a860be4849100ab2>:0 --- End of inner exception stack trace --- at MonoDevelop.Ide.IdeStartup.Main (System.String[] args, MonoDevelop.Ide.Extensions.IdeCustomizer customizer) [0x000e5] in :0 at MonoDevelop.Startup.MonoDevelopMain.Main (System.String[] args) [0x00001] in <965c5b43491d40b6ac7dbb2b5ad79081>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'MonoDevelop.Core.Runtime' threw an exception. ---> System.TypeInitializationException: The type initializer for 'MonoDevelop.Core.PropertyService' threw an exception. ---> System.UnauthorizedAccessException: Access to the path "/home/destructor/.config/MonoDevelop/7.0" is denied. at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0005e] in <77c9551943624fd18301ba6f78a841e5>:0 at System.IO.Directory.CreateDirectory (System.String path) [0x0008f] in <77c9551943624fd18301ba6f78a841e5>:0 at MonoDevelop.Core.PropertyService..cctor () [0x00098] in <781ce6368c3e4473a860be4849100ab2>:0 --- End of inner exception stack trace --- at MonoDevelop.Core.LoggingService.get_ReportCrashes () [0x00001] in <781ce6368c3e4473a860be4849100ab2>:0 at MonoDevelop.Core.LoggingService.ReportUnhandledException (System.Exception ex, System.Boolean willShutDown, System.Boolean silently, System.String tag) [0x00024] in <781ce6368c3e4473a860be4849100ab2>:0 --- End of inner exception stack trace --- at MonoDevelop.Ide.IdeStartup.Main (System.String[] args, MonoDevelop.Ide.Extensions.IdeCustomizer customizer) [0x000e5] in :0 at MonoDevelop.Startup.MonoDevelopMain.Main (System.String[] args) [0x00001] in <965c5b43491d40b6ac7dbb2b5ad79081>:0

harry-cpp commented 6 years ago

Your privileges are messed up, thought maybe deleting the .config folder and letting md recreate it would solve it, but the error is still the same: "System.UnauthorizedAccessException: Access to the path "/home/destructor/.config/MonoDevelop/7.0" is denied."

Also I am closing this since its unrelated to the .run packaging.

Rombersoft commented 6 years ago

But I have flatpack with md 7.1 and it works

Rombersoft commented 6 years ago

And destructor@ORION-6 /usr/bin $ sudo monodevelop-stable works

Rombersoft commented 6 years ago

But it did not load solution correct http://joxi.ru/MAjQoMJuv8lLR2

harry-cpp commented 6 years ago

But I have flatpack with md 7.1 and it works

It does not use system libs.

And destructor@ORION-6 /usr/bin $ sudo monodevelop-stable works

As stated above, your file permissions for the config folder are wrong, just fix them manually. They will be wrong if you run a single monodevelop command with sudo, before running them as the current user.

But it did not load solution correct http://joxi.ru/MAjQoMJuv8lLR2

You are missing msbuild and the extension package for it.

Rombersoft commented 6 years ago

I've just removed /home/destructor/.config/Monodevelop/7.0

But it does not resolve problem

Rombersoft commented 6 years ago

and new config folder was not created

Rombersoft commented 6 years ago

So Harry! I've reinstalled MD after removing config folder. MD run from menu but such error achieves http://joxi.ru/brRJ58jtQ4P1Er

harry-cpp commented 6 years ago

You need to delete MonoDevelop folder, not 7.0 folder, or even better, just fix all permissions on it and its subfolder, its just one command after all.

Rombersoft commented 6 years ago

Also I need to run MD with sudo because my application which I develop uses serial ports on Linux. And without sudo it will not can open ports

Rombersoft commented 6 years ago

I've just done all as you advice but http://joxi.ru/brRJ58jtQ4P1Er still appears

harry-cpp commented 6 years ago

That is a generic C# error, Ide.log has the actual information...

Rombersoft commented 6 years ago

Last question and you can close topic. Is it normal http://joxi.ru/Drl6oOlH4Jgbl2 And this problem still exists http://joxi.ru/MAjQoMJuv8lLR2

harry-cpp commented 6 years ago

Is it normal http://joxi.ru/Drl6oOlH4Jgbl2

No.

And this problem still exists http://joxi.ru/MAjQoMJuv8lLR2

Again, you need packages msbuild and its extension package (I think the 2nd package name was msbuild-sdkresolver, not 100% sure but its something like that).

Rombersoft commented 6 years ago

I've installed this package but nothing changed

harry-cpp commented 6 years ago

Don't know than.