I just started playing around with RavenDB (build 701), and I'm having this strange error trying to create an index in Studio. It's completely possible that I'm doing something wrong since this is my first time playing with Raven.
I've been trying to create a simple index through the Studio UI:
docs.Albums.Select(a=> new { a.Title })
based on the default data but I get this error
Message: System.InvalidOperationException: Variable declaration must have an initializer which is a method invocation expression
at Raven.Database.Linq.QueryParsingUtils.GetVariableDeclarationForLinqMethods(String query, Boolean requiresSelectNewAnonymousType) in c:\Builds\RavenDB-Stable\Raven.Database\Linq\QueryParsingUtils.cs:line 134
If however I try and replace the pre-built AlbumsByGenre index with the same exact linq statement it will save.
Am I doing something wrong?
Jerry