Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by jaketeaford · Aug 31, 2012 at 12:47 AM · errorautocomplete

"Error in text editor extension chain." when trying to edit new UnityScript file

I'm currently working through the Penelope tutorial, and every time I make a new UnityScript file (either through Unity or MonoDevelop) and then try editing said file an error box pops up with the message, "Error in text editor extension chain."

The "details" box shows this:

System.NullReferenceException: Object reference not set to an instance of an object

at Boo.MonoDevelop.Util.Completion.BooCompletionTextEditorExtension.IsInsideComment (System.String line, Int32 offset) [0x00000] in :0 at UnityScript.MonoDevelop.Completion.UnityScriptEditorCompletion.HandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext context, Char completionChar, System.Int32& triggerWordLength) [0x00000] in :0 at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x000da] in /BuildAgent/work/976433a72acbefb1/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs:128 at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /BuildAgent/work/976433a72acbefb1/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /BuildAgent/work/976433a72acbefb1/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /BuildAgent/work/976433a72acbefb1/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /BuildAgent/work/976433a72acbefb1/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /BuildAgent/work/976433a72acbefb1/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /BuildAgent/work/976433a72acbefb1/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115 at MonoDevelop.SourceEditor.ExtensibleTextEditor.ExtensionKeyPress (Key key, UInt32 ch, ModifierType state) [0x00000] in /BuildAgent/work/976433a72acbefb1/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:257 After clicking OK, I can continue typing but autocomplete/code completion/intellisense/whatever you want to call it doesn't work at all. I've been able to get around this by completely restarting both Unity and MonoDevelop after creating the new file, but that has stopped working. A system restart didn't fix it. As far as I can tell this only happens with new files, because I can select a file that I created earlier and edit it with no problems. I'm using a 2009 Macbook Pro running Mountain Lion (10.8) with 8Gb of RAM. EDIT: The error comes up again any time I type an open parenthesis. Example: If I type "function Update(," the instant I type the ( the error window comes up again.
Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Bunny83 · Aug 31, 2012 at 12:52 AM

Well, there's clearly something wrong with your MonoDevelop. The code completion seems to be damaged in some way. The best advice i could give is reinstalling MonoDevelop and / or Unity

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jaketeaford · Aug 31, 2012 at 05:43 PM 0
Share

Reinstalling Unity and $$anonymous$$onoDevelop did fix code completion on the file I was originally trying to edit, but I just made a new UnityScript file for the next portion of the tutorial and the problem remains...

avatar image Texaggie96 · Jan 31, 2015 at 07:45 PM 0
Share

This problem still happens with Unity 4.6.2's mono. I have also tried re-installing and it doesn't fix the problem. I have also tried disabling the Boo lang support in the Add-in $$anonymous$$anager and it doesn't fix it either. Don't understand why it is popping up, I don't want to do code completion in Boo.

avatar image Bunny83 · Feb 01, 2015 at 11:19 AM 0
Share

@Texaggie96: UnityScript is build on top of the boo compiler. A lot things in UnityScript uses boo classes under the hood. So when using UnityScript, it's always paired with boo.

avatar image
0

Answer by Vahok · Nov 25, 2014 at 03:37 PM

I know this is an old thread, but I have the same problem and reinstalling unity and monodevelop doesn't seem to resolve it.

This problem came up after I installed Microsoft's plugin "Visual Studio Tools" and even as I uinstalled Visual Studio AND unity/monodevelop alike, the problem still persists after I install unity back.

=/

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Texaggie96 · Feb 02, 2015 at 03:50 PM

Here is how I got this problem to go away.

  1. In the Add-in Manager, under "Language Bindings" I disabled Boo.

  2. Closed Unity and Monodevelop

  3. Delete the projects entire /Library folder (It will be regenerated next launch). [I am not sure if you can just delete /Library/ScriptAssemblies, but I wanted to nuke this problem from orbit so I went with the entire directory.]

  4. Delete all the .sln and .csproj files related to the project (these will also be regenerated)

  5. Open the project back up in unity (It will reimport and restablish the /Library folder)

  6. Assets > Sync Monodevelop Project

This fixed the Boo auto-completion problem for me.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Making a 2D Game, Flipping Textures ERROR 1 Answer

MonoDevelop AutoComplete not working 2 Answers

unity engine wont work 2 Answers

c# Unexpected symbol '=' in struct, class..... 1 Answer

Unity's Video Tutorial Down? Was trying to learn how to ask questions better. 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges