[507] Another parsing error

All I was doing is stepping through some code (all in the same solution this time).


JetBrains.Util.InternalErrorException: startIndex cannot be larger than length of string.
Parameter name: startIndex ---> System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at JetBrains.ReSharper.Daemon.CSharp.Stages.UnusedMemberAnalyzer.IsSeralizableMethod(IMethod method, IClass class) in c:\Agent\work\Server\be08dc054b0f1225\src\Daemon.CSharp\src\Stages\UnusedMemberAnalyzer.cs:line 310
at JetBrains.ReSharper.Daemon.CSharp.Stages.UnusedMemberAnalyzer.CheckTypeMember(ITypeMember member, IMemberUsageChecker checker) in c:\Agent\work\Server\be08dc054b0f1225\src\Daemon.CSharp\src\Stages\UnusedMemberAnalyzer.cs:line 275
at JetBrains.ReSharper.Daemon.CSharp.Stages.UnusedDeclarationStageProcess.ProcessTypeMemberDeclaration(ICSharpDeclaration declaration) in c:\Agent\work\Server\be08dc054b0f1225\src\Daemon.CSharp\src\Stages\UnusedLocalDeclarationStage.cs:line 64
at JetBrains.ReSharper.Daemon.CSharp.Stages.UnusedDeclarationStageProcess.VisitMethodDeclaration(IMethodDeclaration methodDeclarationParam) in c:\Agent\work\Server\be08dc054b0f1225\src\Daemon.CSharp\src\Stages\UnusedLocalDeclarationStage.cs:line 104
at JetBrains.ReSharper.Psi.CSharp.Impl.Tree.MethodDeclarationStub.Accept(ElementVisitor visitor) in c:\Agent\work\Server\be08dc054b0f1225\src\Gen\Psi\CSharp\Impl\MethodDeclarationStub.cs:line 22
at JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpDaemonStageProcessBase.ProcessAfterInterior(IElement element) in c:\Agent\work\Server\be08dc054b0f1225\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBase.cs:line 100
at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecursiveElementProcessor processor) in c:\Agent\work\Server\be08dc054b0f1225\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 73
at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecursiveElementProcessor processor) in c:\Agent\work\Server\be08dc054b0f1225\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 72
at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecursiveElementProcessor processor) in c:\Agent\work\Server\be08dc054b0f1225\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 72
at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecursiveElementProcessor processor) in c:\Agent\work\Server\be08dc054b0f1225\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 72
at JetBrains.ReSharper.Psi.ExtensionsAPI.Tree.TreeElement.ProcessDescendants(IRecursiveElementProcessor processor) in c:\Agent\work\Server\be08dc054b0f1225\src\Psi\src\ExtensionsAPI\Tree\TreeElement.cs:line 72
at JetBrains.ReSharper.Daemon.CSharp.Stages.UnusedDeclarationStageProcess.ProcessFile(ICSharpFile file) in c:\Agent\work\Server\be08dc054b0f1225\src\Daemon.CSharp\src\Stages\UnusedLocalDeclarationStage.cs:line 45
at JetBrains.ReSharper.Daemon.CSharp.Stages.CSharpDaemonStageProcessBase.Execute() in c:\Agent\work\Server\be08dc054b0f1225\src\Daemon.CSharp\src\Stages\CSharpDaemonStageBase.cs:line 62
at JetBrains.ReSharper.Daemon.Impl.DaemonProcessBase.DoHighlighting(Boolean globalAnalysisStages, Boolean updateSolutionAnalysisResults) in c:\Agent\work\Server\be08dc054b0f1225\src\Daemon\src\Impl\DaemonProcessBase.cs:line 292
at JetBrains.ReSharper.Daemon.Impl.VisibleDocumentDaemonProcess.DoHighlighting(Boolean globalAnalysisStages, Boolean updateSolutionAnalysisResults) in c:\Agent\work\Server\be08dc054b0f1225\src\Daemon\src\Impl\VisibleDocumentDaemonProcess.cs:line 232
at JetBrains.ReSharper.Daemon.Impl.VisibleDocumentDaemonProcess.c__DisplayClass1.]]>b__0() in c:\Agent\work\Server\be08dc054b0f1225\src\Daemon\src\Impl\VisibleDocumentDaemonProcess.cs:line 220
at JetBrains.ReSharper.Daemon.Impl.DaemonThread.ThreadProc() in c:\Agent\work\Server\be08dc054b0f1225\src\Daemon\src\Impl\DaemonThread.cs:line 132
--- End of inner exception stack trace ---

at JetBrains.Util.Logger.LogExceptionEx(Exception, String, Boolean) in c:\Agent\work\Server\be08dc054b0f1225\Platform\src\JetBrains.Util\src\Logger\Logger.cs:line 263 column 4
at JetBrains.Util.Logger.LogException(Exception) in c:\Agent\work\Server\be08dc054b0f1225\Platform\src\JetBrains.Util\src\Logger\Logger.cs:line 273 column 3
at JetBrains.ReSharper.Daemon.Impl.DaemonThread.ThreadProc() in c:\Agent\work\Server\be08dc054b0f1225\src\Daemon\src\Impl\DaemonThread.cs:line 142 column 13
at System.Threading.ThreadHelper.ThreadStart_Context(Object)
at System.Threading.ExecutionContext.Run(ExecutionContext, ContextCallback, Object)
at System.Threading.ThreadHelper.ThreadStart()

3 comments
Comment actions Permalink

This error is repeatable - every time I open a particular class file. Unfortunately it is a horrifically complex class with a lot of interdependencies to other classes (it is 7000 lines by itself) so not something I can attach for you to make use of.

Grant.

0
Comment actions Permalink

Thank you. Why haven't you posted this problem into bug tracker?
Anyway, it will be fixed shortly

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Grant Drake" <no_reply@jetbrains.com> wrote in message
news:17556479.1186424304012.JavaMail.itn@is.intellij.net...

This error is repeatable - every time I open a particular class file.
Unfortunately it is a horrifically complex class with a lot of
interdependencies to other classes (it is 7000 lines by itself) so not
something I can attach for you to make use of.

>

Grant.



0
Comment actions Permalink

Hi Eugene,

As per another error I raised on here the reason it is not posted is because the "Publish this error" dialog in Resharper does not work for us. Our company firewall requires proxy authentication and despite putting in all the allegedly correct details it still fails to connect.

If I hunt around for the Jira links then I suppose I can add it manually - however as I happened to have posted other questions/issues in these forums on the same day and still had the browser open I put it in here.

Regards,
Grant.

0

Please sign in to leave a comment.