aBothe / Mono-D

D Add-In for MonoDevelop
http://wiki.dlang.org/Mono-D
Other
113 stars 26 forks source link

Imposible to open simple d file #278

Closed HaraldZealot closed 11 years ago

HaraldZealot commented 11 years ago

Greetings to all!

My system is Calculate linux desktop (a kind of gentoo-based distributiv). I have installed monodevelop-4.0-r1 (from overlay dotnet) and all necessary libraries (as I suppose). Althought I have installed Mono-D add-in throght monodevelop's menu in manner as is discribed on your site. It seems that all to be ok (previously I have tried install Mono-D on monodevelop-3.0.2-r1 which goes with portage, and it didn't install and work).

Well I'm starting to create new D-console project, that places in some sub-subdirectory of my user home directory. And it seems that all to be correct again. But when I try to simple open main.d file an exception is trown.

There is call stack unwrap: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not load type 'Mono.TextEditor.Highlighting.ResourceStreamProvider' from assembly 'Mono.TextEditor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in /var/calculate/tmp/portage/dev-lang/mono-3.0.7/work/mono-3.0.7/mcs/class/corlib/System.Reflection/MonoMethod.cs:552 --- End of inner exception stack trace --- at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00013] in /var/calculate/tmp/portage/dev-lang/mono-3.0.7/work/mono-3.0.7/mcs/class/corlib/System.Reflection/MonoMethod.cs:558 at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x000af] in /var/calculate/tmp/portage/dev-lang/mono-3.0.7/work/mono-3.0.7/mcs/class/corlib/System/Activator.cs:329 at System.Activator.CreateInstance (System.Type type) [0x00000] in /var/calculate/tmp/portage/dev-lang/mono-3.0.7/work/mono-3.0.7/mcs/class/corlib/System/Activator.cs:222 at Mono.Addins.TypeExtensionNode.CreateInstance () [0x00000] in /var/calculate/tmp/portage/dev-util/monodevelop-4.0-r1/work/monodevelop-4.0/external/mono-addins/Mono.Addins/Mono.Addins/TypeExtensionNode.cs:93 at MonoDevelop.SourceEditor.SyntaxModeCodon.get_SyntaxMode () [0x00000] in /var/calculate/tmp/portage/dev-util/monodevelop-4.0-r1/work/monodevelop-4.0/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SyntaxModeCodon.cs:42 at MonoDevelop.SourceEditor.SyntaxModeService+cAnonStorey17.<>m62 (Mono.TextEditor.TextDocument d) [0x00000] in /var/calculate/tmp/portage/dev-util/monodevelop-4.0-r1/work/monodevelop-4.0/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SyntaxModeService.cs:45 at Mono.TextEditor.Highlighting.SyntaxModeProvider.Create (Mono.TextEditor.TextDocument doc) [0x00000] in /var/calculate/tmp/portage/dev-util/monodevelop-4.0-r1/work/monodevelop-4.0/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxMode.cs:830 at Mono.TextEditor.Highlighting.SyntaxModeService.GetSyntaxMode (Mono.TextEditor.TextDocument doc, System.String mimeType) [0x00047] in /var/calculate/tmp/portage/dev-util/monodevelop-4.0-r1/work/monodevelop-4.0/src/core/Mono.Texteditor/Mono.TextEditor.Highlighting/SyntaxModeService.cs:147 at MonoDevelop.SourceEditor.SourceEditorView.UpdateMimeType (System.String fileName) [0x00042] in /var/calculate/tmp/portage/dev-util/monodevelop-4.0-r1/work/monodevelop-4.0/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:926 at MonoDevelop.SourceEditor.SourceEditorView.Load (System.String fileName, System.Text.Encoding loadEncoding) [0x00040] in /var/calculate/tmp/portage/dev-util/monodevelop-4.0-r1/work/monodevelop-4.0/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:792 at MonoDevelop.SourceEditor.SourceEditorView.Load (System.String fileName) [0x00000] in /var/calculate/tmp/portage/dev-util/monodevelop-4.0-r1/work/monodevelop-4.0/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:729 at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke (System.String fileName) [0x0010f] in /var/calculate/tmp/portage/dev-util/monodevelop-4.0-r1/work/monodevelop-4.0/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:1175

File main.d is autocreated file and is correct with correct owner and rights.

aBothe commented 11 years ago

Hi there, You need the very latest version of MonoDevelop as 4.0.1 isn't sufficient anymore because they e.g. renamed that ResourceStreamProvider when moving to 4.0.2 and so on.. if your distro hasn't got the latest MD available for some reasons, please download it from here http://simendsjo.me/files/abothe/ -- it'll be untar'd into /opt/mono and can be started via /opt/mono/bin/monodevelop - you won't need your original MD/mono installation anymore because there's everything in it already.. for more details check out the blog's installation page! :)

HaraldZealot commented 11 years ago

Ok I will try that. But it isn't gentoo way. May be I will write ebuild for this purposes later.

aBothe commented 11 years ago

Just look in the repository's readme file - there's a probably working description how I built everything (no guarantee that all steps are in there!)

HaraldZealot commented 11 years ago

Ok, thanks!

HaraldZealot commented 11 years ago

Noch eine Frage ^_^

I have installed binary in /opt/mono so as you have wrote. But now source file seems to be opened but nothing is shown (no text at all). Programm can be compiled and executed and it works very well, but work with source code is imposible :(

aBothe commented 11 years ago

Guck mal ins Log - da wird sicher irgendein Fehler bzgl. GTK oder so stehen. Hmm. Vielleicht doch monodevelop installiert lassen, dann klappts vielleicht, weil er irgendwelche schrägen Abhängigkeiten wiederfinden kann :)