0x5bfa / FluentHub

A stylish yet powerful GitHub client for Windows
MIT License
1.08k stars 52 forks source link

Select() is not supported on release configured FluentHub #169

Closed 0x5bfa closed 2 years ago

0x5bfa commented 2 years ago

Before you start...

What version of Windows is this issue present?

Windows 11

What version/architecture of FluentHub are you on?

v0.3.0 RELEASE

Description

previously, this problem was thought as authorization problem, but it seems that caused by missing assemblies of the kind of System.Linq

Related #138

Steps To Reproduce

  1. Download the package from here: https://fluenthub-community.visualstudio.com/FluentHub/_build/results?buildId=749&view=artifacts&pathAsName=false&type=publishedArtifacts
  2. Install on your computer.
  3. Authenticate app and see what's happen.

Expected behavior

Ensure do not occur such a problem.

Relevant Assets

Investigated log:

2022-05-28 23:03:39.067 +09:00 [ERR] LoadHomeContentsAsync
System.NotSupportedException: Select() is not supported
   at Octokit.GraphQL.Core.Builders.QueryBuilder.RewriteListExtension(MethodCallExpression, MemberInfo) + 0x11e6
   at Octokit.GraphQL.Core.Builders.QueryBuilder.VisitMethodCall(MethodCallExpression, MemberInfo) + 0x9a
   at Octokit.GraphQL.Core.Builders.QueryBuilder.VisitMethodCall(MethodCallExpression) + 0xb
   at System.Linq.Expressions.MethodCallExpression.Accept(ExpressionVisitor) + 0x16
   at System.Linq.Expressions.ExpressionVisitor.Visit(Expression) + 0x18
   at Octokit.GraphQL.Core.Builders.QueryBuilder.Build[TResult](IQueryableList`1) + 0x5a
   at FluentHub.Octokit.Queries.Users.RepositoryQueries.<GetAllAsync>d__1.MoveNext() + 0x1d53
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
   at FluentHub.ViewModels.Home.UserHomeViewModel.<LoadHomeContentsAsync>d__14.MoveNext() + 0x1a0

2022-05-28 23:03:42.918 +09:00 [ERR] MainPageViewModel.GetSignedInUser(): 
System.NotSupportedException: Select() is not supported
   at Octokit.GraphQL.Core.Builders.QueryBuilder.RewriteValueExtension(MethodCallExpression, MemberInfo) + 0x6b8
   at Octokit.GraphQL.Core.Builders.QueryBuilder.VisitMethodCall(MethodCallExpression, MemberInfo) + 0x56
   at Octokit.GraphQL.Core.Builders.QueryBuilder.VisitMethodCall(MethodCallExpression) + 0xb
   at System.Linq.Expressions.MethodCallExpression.Accept(ExpressionVisitor) + 0x16
   at System.Linq.Expressions.ExpressionVisitor.Visit(Expression) + 0x18
   at Octokit.GraphQL.Core.Builders.QueryBuilder.Build[TResult](IQueryableValue`1) + 0x40
   at FluentHub.Octokit.Queries.Users.UserQueries.<GetAsync>d__1.MoveNext() + 0xd66
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
   at FluentHub.ViewModels.MainPageViewModel.<LoadSignedInUserAsync>d__75.MoveNext() + 0x142
0x5bfa commented 2 years ago

Octokit.GraphQL.NET uses

src\FluentHub.Octokit2

インストール中:

Microsoft.CSharp.4.0.1
Microsoft.NETCore.Platforms.1.0.1
Microsoft.NETCore.Targets.1.0.1
Newtonsoft.Json.9.0.1
Octokit.GraphQL.0.1.9-beta
System.Collections.4.0.11
System.Diagnostics.Debug.4.0.11
System.Diagnostics.Tools.4.0.1
System.Dynamic.Runtime.4.0.11
System.Globalization.4.0.11
System.IO.4.1.0
System.IO.FileSystem.4.0.1
System.IO.FileSystem.Primitives.4.0.1
System.Linq.4.1.0
System.Linq.Expressions.4.1.0
System.ObjectModel.4.0.12
System.Reflection.4.1.0
System.Reflection.Emit.4.0.1
System.Reflection.Emit.ILGeneration.4.0.1
System.Reflection.Emit.Lightweight.4.0.1
System.Reflection.Extensions.4.0.1
System.Reflection.Primitives.4.0.1
System.Reflection.TypeExtensions.4.1.0
System.Resources.ResourceManager.4.0.1
System.Runtime.4.1.0
System.Runtime.Extensions.4.1.0
System.Runtime.Handles.4.0.1
System.Runtime.InteropServices.4.1.0
System.Runtime.Serialization.Primitives.4.1.1
System.Text.Encoding.4.0.11
System.Text.Encoding.Extensions.4.0.11
System.Text.RegularExpressions.4.1.0
System.Threading.4.0.11
System.Threading.Tasks.4.0.11
System.Threading.Tasks.Extensions.4.0.0
System.Xml.ReaderWriter.4.0.11
System.Xml.XDocument.4.0.11
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.