x


Monodevelop can not open file

Hi guys,

Today I opened my unity, double clicked a script file in 'Project' tab inside the editor, and Monodevelop cames out. This is all as usual, except that monodevelop says "Could not open file" and here is the detail:

System.TypeLoadException: Could not load type 'Boo.MonoDevelop.Completion.BooEditorCompletion' from assembly 'Boo.MonoDevelop, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.

at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0 at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0 at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in :0 at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in :0 at System.Activator.CreateInstance (System.Type type) [0x00000] in :0 at Mono.Addins.TypeExtensionNode.CreateInstance () [0x00000] in /Users/levi/Code/unity/mono-addins/Mono.Addins/Mono.Addins/TypeExtensionNode.cs:93 at MonoDevelop.Ide.Gui.Document.OnDocumentAttached () [0x0007b] in /BuildAgent/work/93beeebf637645f/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Document.cs:513 at MonoDevelop.Ide.Gui.Workbench.WrapDocument (IWorkbenchWindow window) [0x0004f] in /BuildAgent/work/93beeebf637645f/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:594 at MonoDevelop.Ide.Gui.ViewCommandHandlers..ctor (IWorkbenchWindow window) [0x0000d] in /BuildAgent/work/93beeebf637645f/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/ViewCommandHandlers.cs:49 at MonoDevelop.Ide.Gui.SdiWorkspaceWindow..ctor (MonoDevelop.Ide.Gui.DefaultWorkbench workbench, IViewContent content, Gtk.Notebook tabControl, MonoDevelop.Components.TabLabel tabLabel) [0x000d2] in /BuildAgent/work/93beeebf637645f/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/SdiWorkspaceWindow.cs:90 at MonoDevelop.Ide.Gui.DefaultWorkbench.ShowView (IViewContent content, Boolean bringToFront) [0x00113] in /BuildAgent/work/93beeebf637645f/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/DefaultWorkbench.cs:380 at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke (System.String fileName) [0x0019b] in /BuildAgent/work/93beeebf637645f/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:1042 at MonoDevelop.Ide.Gui.Workbench.RealOpenFile (MonoDevelop.Ide.Gui.FileOpenInformation openFileInfo) [0x0034b] in /BuildAgent/work/93beeebf637645f/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:747 at MonoDevelop.Ide.Gui.Workbench.OpenDocument (FilePath fileName, Int32 line, Int32 column, Boolean bringToFront, System.String encoding, IDisplayBinding binding, Boolean highlightCaretLine) [0x001ba] in /BuildAgent/work/93beeebf637645f/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:406 at MonoDevelop.Ide.Gui.Workbench.OpenDocument (FilePath fileName, Int32 line, Int32 column, Boolean bringToFront, System.String encoding, IDisplayBinding binding) [0x00000] in /BuildAgent/work/93beeebf637645f/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:351 at MonoDevelop.Ide.Gui.Workbench.OpenDocument (FilePath fileName, Int32 line, Int32 column, Boolean bringToFront) [0x00000] in /BuildAgent/work/93beeebf637645f/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:331 at MonoDevelop.Ide.IdeApp.OpenFiles (IEnumerable`1 files) [0x001a8] in /BuildAgent/work/93beeebf637645f/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs:326 I've tried another project but the same problem. I think there is something wrong with my monodevelop, maybe I didn't quit it in the right way last night. anyone have any idea?
more ▼

asked Aug 30, 2011 at 11:06 AM

arn.zhan gravatar image

arn.zhan
61 10 9 15

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

I suggest you reinstall (eg. via Unity reinstall). Seems you lost some files. Might be a good time to check your backups are in order too...

more ▼

answered Aug 30, 2011 at 11:19 AM

Waz gravatar image

Waz
7.3k 67 88 109

Thanks Warwick!

Aug 31, 2011 at 07:39 AM arn.zhan
(comments are locked)
10|3000 characters needed characters left

I'm not sure what's actually happening but I'd just try and eliminate possible issues. 1. Have you tried creating/saving/loading a file using MonoDevelop alone in a new project? 2. Try opening the files your having trouble with in a text editor like notepad++ or your favourite text editor to see if the files are damaged. Re-save them and see if they open in MonoDevelop then.(unlikely to be the issue though by what you've said) 3. You should also just try reinstalling MonoDevelop.

I know these are basic things but it's worth getting through them before spending hours banging your head against the wall if its something simple.

more ▼

answered Aug 30, 2011 at 11:25 AM

DanMarionette gravatar image

DanMarionette
192 28 27 41

I tried 1&2 before I post the question here, sorry I should make it more clear. and reinstall fixed the problem. Thanks Dan. PS: Warwick answered first and he was right too.

Aug 31, 2011 at 07:39 AM arn.zhan
(comments are locked)
10|3000 characters needed characters left

I got the same problem as arn.zhan today when I started Unity and tried to open a script. I get exactly the same error as arn.zhan. I can't open any file in Monodevelop but it works in other programs. I've tried making a new project with new scripts, but the same error. I've also tried to uninstall Unity and then install it again. But nothing seems to work.

Does anyone have any suggestions on what to do to fix the problem?

more ▼

answered Dec 30, 2011 at 08:32 PM

Corn gravatar image

Corn
1

Same problem.

Jan 18, 2012 at 03:51 AM kost

I have the same problem as well. I uninstalled Unity(3.4) and reinstalled it. Attempted to open up a script in the example project and the error similar to the original poster's appeared on the screen.

Feb 28, 2012 at 12:26 AM chrisizzzo

Update: I downloaded the latest Unity 3.5 and installed it. Everything appears to be working correctly. I am able to open up scripts without any errors.

Feb 28, 2012 at 12:54 AM chrisizzzo
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x10961
x792
x18

asked: Aug 30, 2011 at 11:06 AM

Seen: 4306 times

Last Updated: Jun 24 at 11:13 PM