Visual Studio Exceptions

Using Oxygene with Visual Studio 2010, I keep getting exceptions after a few minutes of use.

The log says:-

System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: lineNumber at Microsoft.VisualStudio.Text.Implementation.BinaryStringRebuilder.GetLineFromLineNumber(Int32 lineNumber) at Microsoft.VisualStudio.Text.Implementation.TextSnapshot.GetLineFromLineNumber(Int32 lineNumber) at RemObjects.Oxygene.VisualStudio.Editor.OutliningTagger.d__0.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.d__16.MoveNext()

I notice that while using Oxygene, lots of features like completion, parameter completion, go to definition etc. do not work correctly.

VS seems to behave fine when working with C# projects.

Any ideas?

Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.0.30319 SP1Rel

Installed Version: Professional

Microsoft Office Developer Tools 01018-587-3804625-70680
Microsoft Office Developer Tools

Microsoft Visual Basic 2010 01018-587-3804625-70680
Microsoft Visual Basic 2010

Microsoft Visual C# 2010 01018-587-3804625-70680
Microsoft Visual C# 2010

Microsoft Visual C++ 2010 01018-587-3804625-70680
Microsoft Visual C++ 2010

Microsoft Visual F# 2010 01018-587-3804625-70680
Microsoft Visual F# 2010

Microsoft Visual Studio 2010 Team Explorer 01018-587-3804625-70680
Microsoft Visual Studio 2010 Team Explorer

Microsoft Visual Web Developer 2010 01018-587-3804625-70680
Microsoft Visual Web Developer 2010

AnkhSVN - Subversion Support for Visual Studio 2.3.10838.1211
AnkhSVN - Subversion Support for Visual Studio 2.3.10838.1211

  • Ankh.Package 2.3.10838.1211
  • Subversion 1.7.3 via SharpSvn 1.7003.2023.12943

SharpSvn is linked to: Apr 1.4.6, Apr-util 1.4.1, Neon 0.29.6, OpenSSL 1.0.0g 18 Jan 2012, serf 1.0.1, SQLite 3.7.10, Subversion 1.7.3-SharpSvn-1.7.3, ZLib 1.2.6
SharpSvn is dynamically linked to: Cyrus Sasl 2.1.23
SharpSvn is optionally linked to: Berkeley DB 4.4.20, SharpPlink 1.7003.2023.12943

Crystal Reports Templates for Microsoft Visual Studio 2010
Crystal Reports Templates for Microsoft Visual Studio 2010

Embarcadero dbExpress 16.0.4233.42457
Embarcadero dbExpress Data Designer for Visual Studio

Embarcadero Prism 5.0.31.991
Embarcadero Prism
Copyright © 2008-2012 Embarcadero Technologies, Inc. All rights reserved.
Powered by the Oxygene Language for .NET, created by RemObjects Software.

All Embarcadero brand and product names are trademarks or registered trademarks of Embarcadero Technologies, Inc. in the United States and other countries. Oxygene is a trademark of RemObjects Software, LLC in the United States and other countries. All other marks are the property of their respective owners.

Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2522890) KB2522890
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2522890.

Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2529927) KB2529927
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2529927.

Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2542054) KB2542054
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2542054.

Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2548139) KB2548139
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2548139.

Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2549864) KB2549864
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2549864.

Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2581019) KB2581019
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2581019.

Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2591016) KB2591016
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2591016.

Hotfix for Microsoft Visual Studio 2010 Professional - ENU (KB2635973) KB2635973
This hotfix is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2635973.

Microsoft Visual Studio 2010 Professional - ENU Service Pack 1 (KB983509) KB983509
This service pack is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/983509.

Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.40219
Microsoft Visual Studio 2010 SharePoint Developer Tools

NuGet Package Manager 1.7.30402.9028
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

RemObjects Everwood 3.0.27.333
RemObjects Everwood for .NET
Copyright 2003-2011 RemObjects Software, LLC. All rights reserved.
http://www.remobjects.com/everwood

RemObjects Oxygene 5.0.31.991
RemObjects Oxygene
Copyright 2003-2012 RemObjects Software, LLC. All rights reserved.
http://www.remobjects.com/oxygene
http://www.theoxygenelanguage.com

Security Update for Microsoft Visual Studio 2010 Professional - ENU (KB2645410) KB2645410
This security update is for Microsoft Visual Studio 2010 Professional - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/2645410.

can you please retest this with the latest gamma?

Hi - When I try to install the latest gamma it says “This serial number is invalid for this product”.

Oops, never mind - I found the serial in the other thread here.

Slightly different exception, but still much the same:-

System.NullReferenceException: Object reference not set to an instance of an object. at RemObjects.Oxygene.VisualStudio.Editor.ParserContainer.get_Parser() at RemObjects.Oxygene.VisualStudio.Editor.OxygeneClassifier.GetClassificationSpans(SnapshotSpan span) at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.d__0.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.d__16.MoveNext()

Still no completion or Intellisense. Highlighting of breakpoints is odd (often spans multiple lines, starting and stopping mid-line). Sometimes unable to set a breakpoint without a restart.

:(. i’m sorry to hear that. could you email us the project that shows this to support@remobjects.com, so we gan test this? we will of course keep it highly confidential.

thanx.

Sent!

Edit: bounced! I need to be authorised to send large mails, so I’ve shared it via Dropbox and invited support@remobjects.com

Just to let you know, i got your files and will be looking at the issue right away.

Hi! Any update on this issue from support?

Finally got it nailed down. Will be in a beta build in the near future, as well as our upcoming May release.

Thanks Brian.

brianl said: as well as our upcoming May release.

this means it is in the gamma i just posted, fyi.

Is the fix in 5.1.35.1025? I see no gamma builds at the moment, only this May release and a new beta.

I still get exceptions with this version.

6 of these:-

System.NullReferenceException: Object reference not set to an instance of an object. at RemObjects.Oxygene.VisualStudio.Editor.ParserContainer.get_Parser() at RemObjects.Oxygene.VisualStudio.Editor.OxygeneClassifier.GetClassificationSpans(SnapshotSpan span) at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.d__0.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.d__16.MoveNext()

1 of these:-

System.NullReferenceException: Object reference not set to an instance of an object. at RemObjects.Oxygene.VisualStudio.Editor.ParserContainer.get_Parser() at RemObjects.Oxygene.VisualStudio.Editor.MatchingTagger.d__0.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.d__16.MoveNext()

Then 1 of:-

System.NullReferenceException: Object reference not set to an instance of an object. at RemObjects.Oxygene.VisualStudio.Editor.ParserContainer.get_Parser() at RemObjects.Oxygene.VisualStudio.Editor.OxygeneClassifier.GetClassificationSpans(SnapshotSpan span) at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.d__0.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.d__16.MoveNext()

johncc: the latest build is 1029. If you register your Prism serial on our website you can access the newest betas. Would be great if you could try that and let us know if it fixes it for you.

I get a variety of results with this beta.
(1) The project loads, and I get no syntax colouring at all on .pas files.
(2) As (1), but I get an exception message. Didn’t have logging enabled and can’t repeat now.
(3) VS crashes as soon the project is opened.

I’ll probably go back to the last release now :slight_smile:

Very curious; (and odd at the same time). This behavior shows for some, but not for others. Do you have any non-standard VS plugins?

Hi Carlo. The list above shows what I have installed. The only non-standard one is AnkhSVN.

I’ll try with ankh

This is very strange, doesn’t show here, even with the exact same Ankh. Can you try this:
Start two VS instances, attach inst1 to inst2, disable Tools/EnvironmentOptions/Debugging/Just My Code. Debug/Exceptions (Check CLR exceptions,uncheck InvalidCastException) and tell me which exceptions occur? (There will be a few. Ankh has quite a few itself that it catches later on)

For some reason you get an exception that I can’t reproduce here locally.
these are “as designed” (not ours):
XMLException
InvalidTipFileException