Hi all,
I'm getting the following error in a project I haven't built with SharpKit in a while. The last time this worked, I was using a commercial version of SharpKit 5. Now I'm using 5.5, installed with the installer downloaded from GitHub, on VS2017 (in order to get VS2017 to work with this, I had to employ the trick described in issue #23).
error SK0000: The sequence contains more than one element [(file path redacted)] 1> ICSharpCode.NRefactory.CSharp.CompilerException: The sequence contains more than one element ---> System.InvalidOperationException: The sequence contains more than one element 1> in System.Linq.Enumerable.Single[TSource](IEnumerable'1 source) 1> in SharpKit.Compiler.CsToJs.ResolveResultConverter.VisitArrayCreateResolveResult(ArrayCreateResolveResult res) 1> in ICSharpCode.NRefactory.Semantics.ArrayCreateResolveResult.AcceptVisitor[R](IResolveResultVisitor'1 visitor) in C:\Users\Dan-el\github\SharpKit\external\NRefactory\ICSharpCode.NRefactory\NRefactory.cs:riga 72 1> in SharpKit.Compiler.CsToJs.ResolveResultConverter.Visit(ResolveResult res) 1> --- Fine della traccia dello stack dell'eccezione interna --- 1> in SharpKit.Compiler.CsToJs.MemberConverter.Visit(IEntity node) 1> in SharpKit.Compiler.CsToJs.TypeConverter.ConvertTypeDefinition(ITypeDefinition ce) 1> in SharpKit.Compiler.CsToJs.TypeConverter.ConvertTypeDefinition(ITypeDefinition ce, JsFile jsFile) 1> in System.Collections.Generic.List1.ForEach(Action1 action) 1> in System.Linq.Extensions.ForEach[T](IEnumerable1 items, Action1 action) in C:\Users\Dan-el\github\SharpKit\external\corex\src\corex\Extensions\System.Linq.cs:riga 85 1> in SharpKit.Compiler.CsToJs.TypeConverter.Process() 1> in SharpKit.Compiler.CompilerTool.ConvertCsToJs() 1> in SharpKit.Compiler.CompilerTool.Time(Action action) 1> in SharpKit.Compiler.CompilerTool.InternalRun()
Unfortunately, the project is very large, and making a decent repro is going to be time-consuming. While I work on that, anyone has any idea on what this means?
Hi all,
I'm getting the following error in a project I haven't built with SharpKit in a while. The last time this worked, I was using a commercial version of SharpKit 5. Now I'm using 5.5, installed with the installer downloaded from GitHub, on VS2017 (in order to get VS2017 to work with this, I had to employ the trick described in issue #23).
error SK0000: The sequence contains more than one element [(file path redacted)] 1> ICSharpCode.NRefactory.CSharp.CompilerException: The sequence contains more than one element ---> System.InvalidOperationException: The sequence contains more than one element 1> in System.Linq.Enumerable.Single[TSource](IEnumerable'1 source) 1> in SharpKit.Compiler.CsToJs.ResolveResultConverter.VisitArrayCreateResolveResult(ArrayCreateResolveResult res) 1> in ICSharpCode.NRefactory.Semantics.ArrayCreateResolveResult.AcceptVisitor[R](IResolveResultVisitor'1 visitor) in C:\Users\Dan-el\github\SharpKit\external\NRefactory\ICSharpCode.NRefactory\NRefactory.cs:riga 72 1> in SharpKit.Compiler.CsToJs.ResolveResultConverter.Visit(ResolveResult res) 1> --- Fine della traccia dello stack dell'eccezione interna --- 1> in SharpKit.Compiler.CsToJs.MemberConverter.Visit(IEntity node) 1> in SharpKit.Compiler.CsToJs.TypeConverter.ConvertTypeDefinition(ITypeDefinition ce) 1> in SharpKit.Compiler.CsToJs.TypeConverter.ConvertTypeDefinition(ITypeDefinition ce, JsFile jsFile) 1> in System.Collections.Generic.List1.ForEach(Action1 action) 1> in System.Linq.Extensions.ForEach[T](IEnumerable1 items, Action1 action) in C:\Users\Dan-el\github\SharpKit\external\corex\src\corex\Extensions\System.Linq.cs:riga 85 1> in SharpKit.Compiler.CsToJs.TypeConverter.Process() 1> in SharpKit.Compiler.CompilerTool.ConvertCsToJs() 1> in SharpKit.Compiler.CompilerTool.Time(Action action) 1> in SharpKit.Compiler.CompilerTool.InternalRun()Unfortunately, the project is very large, and making a decent repro is going to be time-consuming. While I work on that, anyone has any idea on what this means?