Search Issue Tracker

Fixed in 4.3.X

Votes

0

Found in

4.2.2f1

Issue ID

567132

Regression

Yes

Can't edit JS or Boo scripts with MD

CodeEditors

-

1) What happened
I can't edit a JS or Boo script with MD from Unity.

2) How can we reproduce it using the example you attached
-install 4.2.2f1
-open attached project
-open the scripts with MD by double clicking them in the Project browser
-NOTICE: MD opens and shows an error for JS and Boo but works for C#

Tested and repro so far on:
-Win7 64, XP 32

----------------------
System.TypeInitializationException: The type initializer for 'Boo.Lang.Compiler.TypeSystem.Types' threw an exception. ---> System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

at Boo.Lang.Compiler.TypeSystem.Types..cctor()

--- End of inner exception stack trace ---

at Boo.Lang.Compiler.TypeSystem.Reflection.ReflectionTypeSystemProvider.ObjectTypeImpl..ctor(IReflectionTypeSystemProvider provider)

at Boo.Lang.Compiler.TypeSystem.Reflection.ReflectionTypeSystemProvider..ctor()

at UnityScript.UnityScriptCompilerParameters..ctor(Boolean loadDefaultReferences)

at UnityScript.UnityScriptCompilerParameters..ctor()

at UnityScript.Ide.UnityScriptProjectIndexFactory.CompilerWithPipeline(Object pipeline)

at UnityScript.Ide.UnityScriptProjectIndexFactory.CreateCompiler()

at UnityScript.Ide.UnityScriptProjectIndexFactory.CreateUnityScriptProjectIndex()

at UnityScript.MonoDevelop.ProjectModel.UnityScriptLanguageBinding.CreateProjectIndex()

at Boo.MonoDevelop.Util.BooIdeLanguageBinding.NewProjectIndexFor(DotNetProject project)

at Boo.Lang.Compiler.Util.MemoizedFunction`2.Invoke(TArg arg)

at Boo.MonoDevelop.Util.BooIdeLanguageBinding.ProjectIndexFor(DotNetProject project)

at Boo.MonoDevelop.Util.ProjectIndexFactory.CreateIndexFor(DotNetProject project)

at Boo.MonoDevelop.Util.ProjectIndexFactory.ForProject(DotNetProject project)

at Boo.MonoDevelop.Util.Completion.BooCompletionTextEditorExtension.ProjectIndexFor(DotNetProject project)

at Boo.MonoDevelop.Util.Completion.BooCompletionTextEditorExtension.Initialize()

at UnityScript.MonoDevelop.Completion.UnityScriptEditorCompletion.Initialize()

at MonoDevelop.Ide.Gui.Content.TextEditorExtension.Initialize(Document document) in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui.Content\TextEditorExtension.cs:line 49

at MonoDevelop.Ide.Gui.Document.OnDocumentAttached() in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Document.cs:line 578

at MonoDevelop.Ide.Gui.Workbench.WrapDocument(IWorkbenchWindow window) in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 576

at MonoDevelop.Ide.Gui.ViewCommandHandlers..ctor(IWorkbenchWindow window) in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\ViewCommandHandlers.cs:line 49

at MonoDevelop.Ide.Gui.SdiWorkspaceWindow..ctor(DefaultWorkbench workbench, IViewContent content, Notebook tabControl, TabLabel tabLabel) in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\SdiWorkspaceWindow.cs:line 98

at MonoDevelop.Ide.Gui.DefaultWorkbench.ShowView(IViewContent content, Boolean bringToFront) in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\DefaultWorkbench.cs:line 381

at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke(String fileName) in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 1093

at MonoDevelop.Ide.Gui.Workbench.RealOpenFile(FileOpenInformation openFileInfo) in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 772

at MonoDevelop.Ide.Gui.Workbench.OpenDocument(FilePath fileName, Int32 line, Int32 column, OpenDocumentOptions options, String encoding, IViewDisplayBinding binding) in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 390

at MonoDevelop.Ide.Gui.FileViewer.OpenFile(String filePath, String encoding) in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\FileViewer.cs:line 94

at MonoDevelop.Ide.Commands.OpenFileHandler.Run() in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Commands\FileCommands.cs:line 93

at MonoDevelop.Components.Commands.CommandHandler.Run(Object dataItem) in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.Commands\CommandHandler.cs:line 61

at MonoDevelop.Components.Commands.CommandHandler.InternalRun(Object dataItem) in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.Commands\CommandHandler.cs:line 42

at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand(ActionCommand cmd, CommandInfo info, Object dataItem, Object target, CommandSource source) in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.Commands\CommandManager.cs:line 649

at MonoDevelop.Components.Commands.CommandManager.DispatchCommand(Object commandId, Object dataItem, Object initialTarget, CommandSource source) in c:\BuildAgent\work\cdfd0d7b6e2d2330\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Components.Commands\CommandManager.cs:line 619

Comments (5)

  1. OfficeCyber

    Oct 30, 2014 21:00

    Second Debug:
    System.TypeInitializationException: The type initializer for 'Boo.Lang.Compiler.TypeSystem.Types' threw an exception. ---> System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
    at Boo.Lang.Compiler.TypeSystem.Types..cctor()
    --- End of inner exception stack trace ---
    at Boo.Lang.Compiler.TypeSystem.Reflection.ReflectionTypeSystemProvider.ObjectTypeImpl..ctor(IReflectionTypeSystemProvider provider)
    at Boo.Lang.Compiler.TypeSystem.Reflection.ReflectionTypeSystemProvider..ctor()
    at UnityScript.UnityScriptCompilerParameters..ctor(Boolean loadDefaultReferences)
    at UnityScript.UnityScriptCompilerParameters..ctor()
    at UnityScript.UnityScriptCompiler..ctor()
    at UnityScript.MonoDevelop.ProjectModel.UnityScriptParserModule.ParseUnityScript(String fileName, String content)
    at UnityScript.MonoDevelop.ProjectModel.UnityScriptParser.Parse(Boolean storeAst, String fileName, TextReader reader, Project project)
    at MonoDevelop.SourceEditor.SourceEditorView.RunFirstTimeFoldUpdate(String text) in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\addins\MonoDevelop.SourceEditor2\MonoDevelop.SourceEditor\SourceEditorView.cs:line 734
    at MonoDevelop.SourceEditor.SourceEditorView.Load(String fileName, Encoding loadEncoding) in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\addins\MonoDevelop.SourceEditor2\MonoDevelop.SourceEditor\SourceEditorView.cs:line 819
    at MonoDevelop.SourceEditor.SourceEditorView.Load(String fileName) in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\addins\MonoDevelop.SourceEditor2\MonoDevelop.SourceEditor\SourceEditorView.cs:line 729
    at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke(String fileName) in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 1201

  2. OfficeCyber

    Oct 30, 2014 20:59

    Debug:
    System.TypeInitializationException: The type initializer for 'Boo.Lang.Compiler.TypeSystem.Types' threw an exception. ---> System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
    at Boo.Lang.Compiler.TypeSystem.Types..cctor()
    --- End of inner exception stack trace ---
    at Boo.Lang.Compiler.TypeSystem.Reflection.ReflectionTypeSystemProvider.ObjectTypeImpl..ctor(IReflectionTypeSystemProvider provider)
    at Boo.Lang.Compiler.TypeSystem.Reflection.ReflectionTypeSystemProvider..ctor()
    at UnityScript.UnityScriptCompilerParameters..ctor(Boolean loadDefaultReferences)
    at UnityScript.UnityScriptCompilerParameters..ctor()
    at UnityScript.UnityScriptCompiler..ctor()
    at UnityScript.MonoDevelop.ProjectModel.UnityScriptParserModule.ParseUnityScript(String fileName, String content)
    at UnityScript.MonoDevelop.ProjectModel.UnityScriptParser.Parse(Boolean storeAst, String fileName, TextReader reader, Project project)
    at MonoDevelop.SourceEditor.SourceEditorView.RunFirstTimeFoldUpdate(String text) in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\addins\MonoDevelop.SourceEditor2\MonoDevelop.SourceEditor\SourceEditorView.cs:line 734
    at MonoDevelop.SourceEditor.SourceEditorView.Load(String fileName, Encoding loadEncoding) in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\addins\MonoDevelop.SourceEditor2\MonoDevelop.SourceEditor\SourceEditorView.cs:line 819
    at MonoDevelop.SourceEditor.SourceEditorView.Load(String fileName) in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\addins\MonoDevelop.SourceEditor2\MonoDevelop.SourceEditor\SourceEditorView.cs:line 729
    at MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke(String fileName) in c:\BuildAgent\work\d478831d940d36a4\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Gui\Workbench.cs:line 1201

  3. OfficeCyber

    Oct 30, 2014 20:58

    Same here, just started when updated to version 4.5.5f1 (7684ad0c5a44) and MD 4.0.1

  4. Logic_Bomb

    Oct 28, 2014 20:27

    I also have the exact same problem with Unity 4.5.5f and MonoDevelop 4.0.1 on Win7/64Bit.

    The most frustrating thing is that I'm trying to edit a JavaScript... I don't even use Boo.

  5. Peglo

    Oct 27, 2014 16:02

    Hello,

    I have the same problem with Unity 4.5.5f and MonoDevelop 4.0.1. I'm on Win7/64Bit.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.