OrderBy Guid.NewGuid() does not work when using Include with Many to Many?

I am using Entity Framework Core RC2 and I have the following entities:
public class Organization {
    public Int32 Id { get; set; }
    public String Name { get; set; }
    public virtual ICollection<Connection> Connections { get; set; } = new List<Connection>();
}

public class Connection {
  public Int32 Id { get; set; }
  public Int32 OrganizationId { get; set; }
  public Int32 UserId { get; set; }
  public virtual Organization Organization { get; set; }
  public virtual User User { get; set; }
}

And the following Mappers:
private static void ConnectionMapper(EntityTypeBuilder<Connection> b) {
  b.ToTable("Connections");
  b.HasKey(x => x.Id);
  b.Property(x => x.Id).UseSqlServerIdentityColumn();
  b.HasOne(x => x.Organization).WithMany(x => x.Connections).HasForeignKey(x => x.OrganizationId).IsRequired().OnDelete(DeleteBehavior.Cascade);
  b.HasOne(x => x.User).WithMany(x => x.Connections).HasForeignKey(x => x.UserId).IsRequired().OnDelete(DeleteBehavior.Cascade);
}

private static void OrganizationMapper(EntityTypeBuilder<Organization> b) {
  b.ToTable("Organizations");
  b.HasKey(x => x.Id);
  b.Property(x => x.Id).UseSqlServerIdentityColumn();
  b.Property(x => x.Name).IsRequired().HasMaxLength(100);
}

I tried the following query:
IQueryable<Organization> orgs = _context.Organizations.AsQueryable();
orgs = orgs.Include(x => x.Connections);
var random = await orgs.OrderBy(x => Guid.NewGuid()).ToListAsync();

And I get the following error:
     InnerException = Count = error CS0103: The name 'InnerExceptionCount' does not exist in the current context     One or more errors occurred. (One or more errors occurred. (No column name was specified for column 1 of 'x0'.))    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.ExceptionInterceptor1.EnumeratorExceptionInterceptor.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.d__1291.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()
at
`
However I do not get any error if I order by Id:
IQueryable<Organization> orgs = _context.Organizations.AsQueryable();
orgs = orgs.Include(x => x.Connections);
var random = await orgs.OrderBy(x => x.Id).ToListAsync();

Or if I order by Guid but not including Connections:
 IQueryable<Organization> orgs = _context.Organizations.AsQueryable();
 var random = await orgs.OrderBy(x => Guid.NewGuid()).ToListAsync();

This is quite strange ... Am I missing something?
Thank You,
Miguel

@mdmoura any chance you could post the SQL that is being executed

@rowanmiller Different time zone but I am just posting the result:
So I get an error if I do this:
      var random1 = await _context.Organizations
        .Include(x => x.Connections)
        .OrderBy(x => Guid.NewGuid())
        .ToListAsync();

But I also realized that, adding to previous examples, I do not get an error if I use a projection:
      var random2 = await _context.Organizations
        .Include(x => x.Connections)
        .OrderBy(x => Guid.NewGuid())
        .Select(x => new { Id = x.Id})
        .ToListAsync();

My model is a bit more complex but I am not sure what is going on but it seems the problem happens when a OrderBy(x => Guid.NewGuid()) is used when not using projections. I hope this helps.
~Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommandBuilderFactory:Information: Executed DbCommand (1ms) [Parameters=[@__query_UserId_0='?'], CommandType='Text', CommandTimeout='30']
SELECT TOP(1) [x].[Id], [x].[AccessFailedCount], [x].[ConcurrencyStamp], [x].[CountryCode], [x].[Email], [x].[EmailConfirmed], [x].[LockoutEnabled], [x].[LockoutEnd], [x].[NormalizedEmail], [x].[NormalizedUserName], [x].[PasswordHash], [x].[PhoneNumber], [x].[PhoneNumberConfirmed], [x].[SecurityStamp], [x].[TwoFactorEnabled], [x].[UserName]
FROM [Users] AS [x]
WHERE [x].[Id] = @__query_UserId_0
ORDER BY [x].[Id]
Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommandBuilderFactory:Information: Executed DbCommand (3ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [x].[Id], [x].[CountryCode], [x].[Created], [x].[Name], [x].[SectorId]
FROM [Organizations] AS [x]
ORDER BY NEWID(), [x].[Id]
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.SqlClient.dll
Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommandBuilderFactory:Information: Executed DbCommand (6ms) [Parameters=[@__query_UserId_0='?'], CommandType='Text', CommandTimeout='30']
SELECT [d].[Id], [d].[DegreeLevelId], [d].[Field], [d].[Issued], [d].[UserId], [d0].[Id], [d0].[Name]
FROM [Degrees] AS [d]
INNER JOIN (
SELECT DISTINCT TOP(1) [x].[Id]
FROM [Users] AS [x]
WHERE [x].[Id] = @__query_UserId_0
ORDER BY [x].[Id]
) AS [x0] ON [d].[UserId] = [x0].[Id]
INNER JOIN [DegreeLevels] AS [d0] ON [d].[DegreeLevelId] = [d0].[Id]
ORDER BY [x0].[Id]
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.SqlClient.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.SqlClient.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.SqlClient.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in System.Data.SqlClient.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in mscorlib.ni.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in Microsoft.EntityFrameworkCore.Relational.dll
Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommandBuilderFactory:Information: Executed DbCommand (54ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT [c].[Id], [c].[OrganizationId], [c].[UserId]
FROM [Connections] AS [c]
INNER JOIN (
SELECT DISTINCT NEWID(), [x].[Id]
FROM [Organizations] AS [x]
) AS [x0] ON [c].[OrganizationId] = [x0].[Id]
ORDER BY NEWID(), [x0].[Id]
Exception thrown: 'System.Data.SqlClient.SqlException' in Microsoft.EntityFrameworkCore.Relational.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in mscorlib.ni.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in mscorlib.ni.dll
Exception thrown: 'System.Data.SqlClient.SqlException' in mscorlib.ni.dll
Exception thrown: 'System.AggregateException' in mscorlib.ni.dll
Exception thrown: 'System.AggregateException' in mscorlib.ni.dll
Exception thrown: 'System.AggregateException' in mscorlib.ni.dll
Exception thrown: 'System.AggregateException' in mscorlib.ni.dll
Microsoft.EntityFrameworkCore.Query.Internal.SqlServerQueryCompilationContextFactory:Error: An exception occurred in the database while iterating the results of a query.
System.AggregateException: One or more errors occurred. (One or more errors occurred. (One or more errors occurred. (No column name was specified for column 1 of 'x0'.))) ---> System.AggregateException: One or more errors occurred. (One or more errors occurred. (No column name was specified for column 1 of 'x0'.)) ---> System.AggregateException: One or more errors occurred. (No column name was specified for column 1 of 'x0'.) ---> System.Data.SqlClient.SqlException: No column name was specified for column 1 of 'x0'.
at System.Data.SqlClient.SqlCommand.<>c.b__110_0(Task1 result)    at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable.AsyncEnumerator.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncIncludeCollectionIterator.RelatedValuesEnumerable.RelatedValuesEnumerator.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Linq.AsyncEnumerableExtensions.AsyncSelectEnumerable2.AsyncSelectEnumerator.<MoveNext>d__3.MoveNext()    --- End of inner exception stack trace ---    --- End of inner exception stack trace ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.Internal.QueryBuffer.<IncludeAsync>d__13.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.AsyncQueryMethodProvider.<>c__DisplayClass33_01.<<_Include>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Linq.AsyncEnumerableExtensions.AsyncSelectEnumerable2.AsyncSelectEnumerator.<MoveNext>d__3.MoveNext()    --- End of inner exception stack trace ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.ExceptionInterceptor1.EnumeratorExceptionInterceptor.d__5.MoveNext()
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. (One or more errors occurred. (No column name was specified for column 1 of 'x0'.)) ---> System.AggregateException: One or more errors occurred. (No column name was specified for column 1 of 'x0'.) ---> System.Data.SqlClient.SqlException: No column name was specified for column 1 of 'x0'.
at System.Data.SqlClient.SqlCommand.<>c.b__110_0(Task1 result)    at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable.AsyncEnumerator.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncIncludeCollectionIterator.RelatedValuesEnumerable.RelatedValuesEnumerator.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Linq.AsyncEnumerableExtensions.AsyncSelectEnumerable2.AsyncSelectEnumerator.<MoveNext>d__3.MoveNext()    --- End of inner exception stack trace ---    --- End of inner exception stack trace ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.Internal.QueryBuffer.<IncludeAsync>d__13.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.AsyncQueryMethodProvider.<>c__DisplayClass33_01.<<_Include>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Linq.AsyncEnumerableExtensions.AsyncSelectEnumerable2.AsyncSelectEnumerator.<MoveNext>d__3.MoveNext() ---> (Inner Exception #0) System.AggregateException: One or more errors occurred. (No column name was specified for column 1 of 'x0'.) ---> System.Data.SqlClient.SqlException: No column name was specified for column 1 of 'x0'.    at System.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__110_0(Task1 result)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()    at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.<ExecuteAsync>d__20.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable.AsyncEnumerator.<MoveNext>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.Internal.AsyncIncludeCollectionIterator.RelatedValuesEnumerable.RelatedValuesEnumerator.<MoveNext>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Linq.AsyncEnumerableExtensions.AsyncSelectEnumerable2.AsyncSelectEnumerator.d__3.MoveNext()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.Data.SqlClient.SqlException: No column name was specified for column 1 of 'x0'.
at System.Data.SqlClient.SqlCommand.<>c.b__110_0(Task1 result)    at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable.AsyncEnumerator.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncIncludeCollectionIterator.RelatedValuesEnumerable.RelatedValuesEnumerator.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Linq.AsyncEnumerableExtensions.AsyncSelectEnumerable`2.AsyncSelectEnumerator.d__3.MoveNext()
ClientConnectionId:bfabee91-240d-473b-823a-4986b2ee04a9
Error Number:8155,State:2,Class:16<---
<---
<---
System.AggregateException: One or more errors occurred. (One or more errors occurred. (One or more errors occurred. (No column name was specified for column 1 of 'x0'.))) ---> System.AggregateException: One or more errors occurred. (One or more errors occurred. (No column name was specified for column 1 of 'x0'.)) ---> System.AggregateException: One or more errors occurred. (No column name was specified for column 1 of 'x0'.) ---> System.Data.SqlClient.SqlException: No column name was specified for column 1 of 'x0'.
at System.Data.SqlClient.SqlCommand.<>c.b__110_0(Task1 result)    at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable.AsyncEnumerator.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncIncludeCollectionIterator.RelatedValuesEnumerable.RelatedValuesEnumerator.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Linq.AsyncEnumerableExtensions.AsyncSelectEnumerable2.AsyncSelectEnumerator.<MoveNext>d__3.MoveNext()    --- End of inner exception stack trace ---    --- End of inner exception stack trace ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.Internal.QueryBuffer.<IncludeAsync>d__13.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.AsyncQueryMethodProvider.<>c__DisplayClass33_01.<<_Include>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Linq.AsyncEnumerableExtensions.AsyncSelectEnumerable2.AsyncSelectEnumerator.<MoveNext>d__3.MoveNext()    --- End of inner exception stack trace ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.ExceptionInterceptor1.EnumeratorExceptionInterceptor.d__5.MoveNext()
---> (Inner Exception #0) System.AggregateException: One or more errors occurred. (One or more errors occurred. (No column name was specified for column 1 of 'x0'.)) ---> System.AggregateException: One or more errors occurred. (No column name was specified for column 1 of 'x0'.) ---> System.Data.SqlClient.SqlException: No column name was specified for column 1 of 'x0'.
at System.Data.SqlClient.SqlCommand.<>c.b__110_0(Task1 result)    at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable.AsyncEnumerator.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncIncludeCollectionIterator.RelatedValuesEnumerable.RelatedValuesEnumerator.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Linq.AsyncEnumerableExtensions.AsyncSelectEnumerable2.AsyncSelectEnumerator.<MoveNext>d__3.MoveNext()    --- End of inner exception stack trace ---    --- End of inner exception stack trace ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.Internal.QueryBuffer.<IncludeAsync>d__13.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.AsyncQueryMethodProvider.<>c__DisplayClass33_01.<<_Include>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Linq.AsyncEnumerableExtensions.AsyncSelectEnumerable2.AsyncSelectEnumerator.<MoveNext>d__3.MoveNext() ---> (Inner Exception #0) System.AggregateException: One or more errors occurred. (No column name was specified for column 1 of 'x0'.) ---> System.Data.SqlClient.SqlException: No column name was specified for column 1 of 'x0'.    at System.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__110_0(Task1 result)
at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()    at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.<ExecuteAsync>d__20.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable.AsyncEnumerator.<MoveNext>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at Microsoft.EntityFrameworkCore.Query.Internal.AsyncIncludeCollectionIterator.RelatedValuesEnumerable.RelatedValuesEnumerator.<MoveNext>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown ---    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)    at System.Linq.AsyncEnumerableExtensions.AsyncSelectEnumerable2.AsyncSelectEnumerator.d__3.MoveNext()
--- End of inner exception stack trace ---
---> (Inner Exception #0) System.Data.SqlClient.SqlException: No column name was specified for column 1 of 'x0'.
at System.Data.SqlClient.SqlCommand.<>c.b__110_0(Task1 result)    at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable.AsyncEnumerator.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.EntityFrameworkCore.Query.Internal.AsyncIncludeCollectionIterator.RelatedValuesEnumerable.RelatedValuesEnumerator.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Linq.AsyncEnumerableExtensions.AsyncSelectEnumerable`2.AsyncSelectEnumerator.d__3.MoveNext()
ClientConnectionId:bfabee91-240d-473b-823a-4986b2ee04a9
Error Number:8155,State:2,Class:16<---
<---
<---
Exception thrown: 'System.AggregateException' in Microsoft.EntityFrameworkCore.dll
Exception thrown: 'System.AggregateException' in mscorlib.ni.dll
Exception thrown: 'System.AggregateException' in mscorlib.ni.dll

Invalid query
SELECT [c].[Id], [c].[OrganizationId], [c].[UserId]
 FROM [Connections] AS [c]
 INNER JOIN (
 SELECT DISTINCT NEWID(), [x].[Id]
 FROM [Organizations] AS [x]
 ) AS [x0] ON [c].[OrganizationId] = [x0].[Id]
 ORDER BY NEWID(), [x0].[Id]

Exception: No column name was specified for column 1 of 'x0'.
@anpete @maumar
Interestingly, if we are doing NEWID() while sorting Organizations and we are using NEWID() while joining it with Connections, ordering will be different in both cases which would cause issue in combining results client-side.

@smitpatel that's a good point, perhaps we should disable this scenario for now (include + explicit non-deterministic order). Workaround is to perform order on the client, which is not terrible.

:+1: that client side would work here. Curious,  do we have a good way to tell if the order is non deterministic? Can we leverage the list we already have or is it too different?

@divega I was thinking about the list

Discussed at length and decided that this isn't something we think we want to work on support for. Non-deterministic ordering would require a lot of changes in the query pipeline because it would no longer be possible to stream results from the database because we require the primary data and data from any related collections (fetched in separate query in EF Core) to come back in the same order, so that we can wire it up as we stream it from the database. To do random ordering, we'd have to buffer the whole data set on the client and wire things up once it's all in-memory.
If buffering is ok, then you can change the query around to do the random ordering on the client, like this.
var random1 = (await _context.Organizations
        .Include(x => x.Connections)
        .ToListAsync())
        .OrderBy(x => Guid.NewGuid());

Unfortunately your suggestion does not solve all situations.
A common scenario is taking 10 random records from 10000 available ... The common approach is to order them randomly and then take 10. This way I am not loading the 10000 records into memory.
The approach you suggest forces to always take the same 10 and then reorder the 10 in a random way in the client ... Or to fulfill the objective load all 10000 records to the client, order them randomly and take 10. Or maybe loading only 100, order random on the client and take 10 to avoid loading 10000 but it is not the same ...
Maybe I am missing something but is there any way, using EF7, to get 10 random records from a table of 10000 loading only 10 to the client?

cc @maumar @anpete I think the answer is no if you are including related data. Maybe this scenario works if you aren't running a query that requires a second query to fetch related data.

Here's the best way I can think of doing it at the moment:
// Select 10 random customers.
var customers = context.Customers.OrderBy(_ => Guid.NewGuid()).Take(10).ToList();
var customerIds = customers.Select(c => c.CustomerID);
// Populate the related Orders.
context.Orders.Where(o => customerIds.Contains(o.CustomerID)).Load();

@anpete
I though about that to but when loading multiple level entities with projections and using dynamic querying as I am doing on an API that approach can be a problem.
IMHO it would good to find, in the future, a solution for this problem since it is something useful.
@rowanmiller, @anpete
In the meanwhile let me suggest a different approach:
  var customers = context.Customers
      ....
     .Skip(Random number between 0 and list COUNT minus SIZE)
     .Take(SIZE)
     .ToList()
     .OrderBy(x => Guid.NewGuid())

So I am taking consecutive items from the list but at a random position ...
The OrderBy in the client is just to mix the result a little bit more ...
It is not perfect but allows not to change the query structure ...

The closed-wont't fix means like never fix / this year / near future /next version.
It's really needed.

It means we are not planning to fix it. This may change if we get more customer feedback etc. but our current decision is that we would never fix this.

@rowanmiller IMHO I think it would be useful since it is something commonly used in EF6 (just do a search in Google or Stack Overflow) where most people uses the Guid.NewGuid() approach and where the alternative is not simple in complex cases or even perfect.

I must say that I didn't understand what the limitations are nor I know the cost of making this feature work.
But I do know it's a common scenario, the error message is obscure and the alternatives aren't feasible (we'll probably need to use Dapper for this query).
I hope more users will ask for this feature.

@gdoron Curious what the code to do this in Dapper looks like. That is, not just getting a random ordering using NewGuid, since as is shown above that works fine in EF, but to also get related entities loaded automatically.

@ajcvickers I haven't yet wrote the code, but I guess it would probably be left join with CTE.
I'm not sure I fully understand your question.
If I can write the query in SQL (and I can) I can get the results using ADO.NET or Dapper which is a simple wrapper.
Did I answer your question?

This is definitely a required feature. Client side ordering doesn't work if I just want one random record from the database.
Think of "article of the day" type scenarios.

@divega consider this scenario,
Using @MaxxDelusional's example of Article of the day.
You got several sections on your website and the homepage you want to show a single random article from each and every section.
Now that's not quite possible, right?
My solution was creating a view ):
SELECT S.Id,
	   S.Title,
	   SI.Url AS PrimaryImageUrl,
	   U.FirstName,
	   U.LastName,
	   U.Location,
	   U.PictureUrl AS UserImageUrl,
	   C.Id AS SubCategoryId,
	   C.Name AS SubCategoryName,
	   C.ParentCategoryId
FROM (SELECT
		SC.StoryId,
		SC.CategoryId,
		rowid = ROW_NUMBER() OVER (PARTITION BY SC.CategoryId ORDER BY NEWID() desc)
      FROM StoryCategories SC
	  INNER JOIN Stories InnerStory
		ON InnerStory.Id = SC.StoryId
	  WHERE InnerStory.IsPublished = 1
    ) T
INNER JOIN Categories C
	ON C.Id = T.CategoryId
INNER JOIN Stories S
	ON S.Id = T.StoryId
INNER JOIN Users U
	ON U.Id = S.UserId
LEFT JOIN StoryImages SI
	ON SI.StoryId = S.Id AND SI.IsDeleted = 0 AND SI.[Order] = 0
WHERE t.rowid <= 3

Note that because it's a view, I could add conditions the the LEFT JOIN, and use a window function OVER (PARTITION BY...)
LEFT JOIN StoryImages SI
	ON SI.StoryId = S.Id AND SI.IsDeleted = 0 AND SI.[Order] = 0

Which make the query run extremely fast, and all the data (and just the relevant data!) is available with a single query.
@ajcvickers, in the end, I didn't use Dapper for this, I created this view, and tricked EF to think it's a Table, a limitation I hope to be resolved soon.

my only solution for this issue is https://stackoverflow.com/questions/55919520/get-random-entities-including-children-using-guid-newguid-in-net-core-2


[Bug]: UX trigger filling cells

Contact Details
No response
What happened?
From workshop

Having to double-click on a cell before typing is against muscle memory acquired from excel

What did you expect?
Type and directly write value
Host
Applies to All
Host Details
all
Swate version
Swate Release Version v1.0.0-beta.15 Host ARCitect

Closed, tracked in #567


r&d on fall out from turning off privileged

@bparees @nalind per our discussion today here is the r & d foray on what breaks in buildah when we turn off the privileged bit in the build pod
I'll be diagnosing the test failures and report back any details as I find them.
I'll set up cluster(s) with this change for any exploration as well.

ton of time="2021-01-12T17:41:54Z" level=error msg="'overlay' is ...ported over xfs at \"/var/lib/containers/storage/overlay\"" 		error: kernel does not support overlay fs: 'overlay' is no...": backing file system is unsupported for this graph driver as expected with overlay on
seeing if we can quickly switch to vfs

ton of time="2021-01-12T17:41:54Z" level=error msg="'overlay' is ...ported over xfs at \"/var/lib/containers/storage/overlay\"" 		error: kernel does not support overlay fs: 'overlay' is no...": backing file system is unsupported for this graph driver as expected with overlay on
seeing if we can quickly switch to vfs

@bparees @nalind I've pushed the changes to

have the OCM daemonset alway pull the container image to facilitate iterative development on the OCM by updating any dev images used (atm this fails a unit test)
after moving privileged to false with this PR's initial commit, the other commit I just pushed now sets the storage driver to vfs (like we do in tekton when we run unprivileged)

cluster-bot could be used to launch clusters with these changes if you want to try them out on your own
Builds still fail with these changes, in a way that did not occur when we did the analogous change in tekton, which point to permission profile diffs and seccomp related diffs between the two envs.  If you'd like the gory details @bparees check out the discussion thread you, @nalind and I were on today.

@bparees @nalind I've pushed the changes to

have the OCM daemonset alway pull the container image to facilitate iterative development on the OCM by updating any dev images used (atm this fails a unit test)
after moving privileged to false with this PR's initial commit, the other commit I just pushed now sets the storage driver to vfs (like we do in tekton when we run unprivileged)

cluster-bot could be used to launch clusters with these changes if you want to try them out on your own
Builds still fail with these changes, in a way that did not occur when we did the analogous change in tekton, which point to permission profile diffs and seccomp related diffs between the two envs.  If you'd like the gory details @bparees check out the discussion thread you, @nalind and I were on today.


[Placement Manager] Add override ability for running a particular execution

We want the ability to add overrides to route executions to a particular cluster.
This will follow the similar hierarchical rules when selecting overrides.
Example:
Workflow-A can be routed to cluster Label A.
Domain-B can be routed to cluster Label B.
cc @katrogan

Looks good

👍


Implemented #653

#653 Replaced all alerts with modals

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Shamika Kumar seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

@guy-har done!

@shamikakumar Thanks,
I will approve and merge once you solve the issue commented by the CLAassistant above.
If you need any help, let me know.

@guy-har I did sign the CLA and clicked on refresh not sure why it isnt updating ?

Hi @shamikakumar
I think this message says you might be using the wrong email address...  I'm clicking "recheck", otherwise please try to "add the email address used for this commit to your account"...

Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Shamika Kumar seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Got it, @shamikakumar !  Your  commits are by<EMAIL_ADDRESS>I assume that this is the local user on your Mac.  Obviously you didn't sign the CLA with that email.
In any case you should configure your real email address on your local machine.  (AFAICT this is a specific bug on MacBooks, you always get a useless email address on your account, not your fault.)  Do this, at least the steps you need to perform on your local git.  Then https://gist.github.com/trey/9588090 to edit the commit email address on each of the email messages, and then git push --force-with-lease to tell GitHub to look at the new rewritten history.
Hopefully this will work.  Feel free to contact me directly (e.g. on our Slack) or right here if this doesn't work.

Thanks for the help @arielshaqed .

Thank you @shamikakumar, merged!


Update deps

Changes proposed in this pull request:

Update dependency for networkx, which removes PR branch dependency with pywhy-graphs having the MixedEdgeGraph class now.

Merging this PR should enable all the CIs to run properly in #67
Before submitting

[ ] I've read and followed all steps in the Making a pull request
section of the CONTRIBUTING docs.
[ ] I've updated or added any relevant docstrings following the syntax described in the
Writing docstrings section of the CONTRIBUTING docs.
[ ] If this PR fixes a bug, I've added a test that will fail without my fix.
[ ] If this PR adds a new feature, I've added tests that sufficiently cover my new functionality.

After submitting

[ ] All GitHub Actions jobs for my pull request have passed.

Codecov Report

Merging #74 (d461ef4) into main (81d74ec) will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #74      +/-   ##
==========================================
+ Coverage   82.04%   82.13%   +0.08%
==========================================
  Files          19       20       +1
  Lines        1298     1304       +6
  Branches      246      228      -18
==========================================
+ Hits         1065     1071       +6
  Misses        152      152
  Partials       81       81

Impacted Files
Coverage Δ

dodiscover/ci/oracle.py
100.00% <100.00%> (ø)

dodiscover/typing.py
100.00% <0.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Fix install script

use cd - on returning.

Awesome. I didn't know this was possible with the cd command. Thanks for helping, I appreciate it.


Can hash numpy.arrays in decorator

Hello,
I'd like to use fastcache for my code, but my function is using ndarray.
the decorator @clru_cache cannot be used for functions with numpy.array() arguments, as those can't be hashed directly.
We must hash the underlying buffer:
myarr.flags.writeable = False
hash(myarr.data)

This would have some overhead but should make it more convenient to use your library for these data.
Thanks

@breznak, it could be a rather severe performance penalty to have fastcache check the type of every argument and to see if it's an ndarray.  It certainly something that someone could do on a per-project basis by wrapping clru_cache.  As an example, you can take a look at the python wrapper [lru_cache] (https://github.com/pbrady/fastcache/blob/master/fastcache/init.py#L30).

That makes sense, closing. Thanks!


i cant see menu

i cant see the menu

hi, can you try to inject in debug mode and see if the console shows up?, look at the printed resolution and compare it to your resolution set in game, get back to us once you've done that :)

my game crash when i inject the debug

okay that's good, try launching the game in windowed mode then injecting, after that it should be fine when you go into fullscreen


[BUG] Error with max. value for Tilt Angle

Hi @johannrichard
In my logs i see a lot of this errors: [homebridge-dingz] This plugin generated a warning from the characteristic 'Current Horizontal Tilt Angle': characteristic was supplied illegal value: number 100 exceeded maximum of 90. See https://git.io/JtMGR for more info.
I think something is wrong with the maximum value.
PS: I use the latest firmware (1.3.30)
Greetings,
Granturismo

I know it's been a while since you reported the bug. In case you still use the plugin, I'd be grateful if you could check whether the beta indeed solves the issues here.

I know it's been a while since you reported the bug. In case you still use the plugin, I'd be grateful if you could check whether the beta indeed solves the issues here.

N.B.: I tried to test it as much as possible. What's irritating me: if I move the slider in the Dingz WebUI to 100%, HomeKit will indeed display the maximum tilt angle of 90°. However, the slider just above that will display a value less than the maximum. OTOH, if I move the HomeKit Slides to 100% while the value of the angle is less than 90°, everything moves as well, but if I move the slider to the max, it somehow stalls.

Did some more tests (and tweaks to the code). The warnings are (mostly IMHO) gone now and the values set should now be all converted between ° and % (and vice-versa) at the right place.


Add new syscall os_dashboard_mbx

Description
Define a new syscall between UX and dashboard.
No impact on applications.
Changes include

[ ] Bugfix (non-breaking change that solves an issue)
[ X ] New feature (non-breaking change that adds functionality)
[ ] Breaking change (change that is not backwards-compatible and/or changes current functionality)
[ ] Tests
[ ] Documentation
[ ] Other (for changes that might not fit in any category)

Breaking changes
Please complete this section if any breaking changes have been made, otherwise delete it.
Additional comments
Please post additional comments in this section if you have them, otherwise delete it.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 35.67%. Comparing base (913e1bc) to head (16af497).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #773   +/-   ##
=======================================
  Coverage   35.67%   35.67%
=======================================
  Files          13       13
  Lines        1595     1595
=======================================
  Hits          569      569
  Misses       1026     1026

Flag
Coverage Δ

unittests
35.67% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


FEAT: Add OpenRouter model provider

Adds the OpenRouter model provider to Continue. This provides users with a single API to access a wide range of language models from various providers.
Description ✏
The OpenRouter integration includes:

Configurable parameters for model selection, context length, and other settings.
Automatic detection and display of available models from OpenRouter.
Updated documentation for OpenRouter integration.

This feature enhances the flexibility and choice of language models available to PearAI users.

Testing
Testing the changes are easy.  Just download the PR and follow the guidelines here: https://github.com/trypear/pearai-app/blob/main/CONTRIBUTING.md
Follow the screenshots.
Get a OpenRouter API key here
This has not been added to the documentation yet.
Checklist ✅

[x] I have added screenshots (if UI changes are present).
[x] I have done a self-review of my code.
[x] I have manually tested my code (if applicable).

Great job, thank you! 👍

I will redo this PR in the future so that it is easier to review with only the specific changes needed.

This PR is replaced by https://github.com/trypear/pearai-submodule/pull/148


GPL Compliance

You are currently linking against libraries that link against GPL-incompatible code (namely, OpenSSL).  Unfortunately this is against the terms of the GPL licence that Pidgin and libpurple is licensed under, as Pidgin/libpurple does not have a license exception for OpenSSL.
You will need to change the libraries you are using in order to comply with the GPL, or else cease distributing compiled copies of this plugin.

ok, I will start to solve this problem.

"or else cease distributing compiled copies of this plugin"
problem/bug solved


cleanup app.packageCollection after use

db/pkgtmp used for xar installs hangs around after use, which adds another location where outdated xars might unneccesarily accumulate.
since this is a temporary collection, node-exist should clean up after itself, without user intervention

I now recall why I did not cleanup after each installation but opted instead to export the temporary collection.
The idea was that on batch installations the creation and removal of the temporary collection would only have to be done once.
That would leave it to the script using this feature of node-exist can decide when and if to remove the XAR package.
Maybe it is useful to keep a XAR that failed to install inside the database for further inspection.

I believe this should be done by packages using this library not the library itself.


[Question]: I ran the CLI of docker logs -f ragflow-server, but I got the following error

Describe your problem
I did docker logs -f ragflow-server, but error of FileNotFoundError: [Errno 2] No such file or directory: '/ragflow/logs/api' kept showing, how do I do now?

What if you upgrade it to dev version. FAQ  has the detail.


integrate with ipython event loop

Hi! First off: thanks for your work on this project! I'm a long-time user (and fan of) vispy which I'm using as the backend for an interactive 3d viewer in navis - the interactivity is super handy for quickly inspecting data. I've been itching to take pygfx for a spin since you started working on it and with things starting to stabilize I ran a few recently experiments. Probably preaching to the choir by saying this but the performance is out of this world! The geometries, scene setup and the example gallery in particular are very intuitive.
The one thing I've been bashing my head against is how to integrate pygfx with the ipython event loop:
What I want to be able to do is to spawn the window from an iPython terminal without blocking the REPL. For vispy it was sufficient to just run e.g. %gui qt6 to make the canvas non-blocking. For pygfx the same trick doesn't work. I tried various things based on iPython's docs on event loops but to no avail. By now I think I'm on the entirely wrong track - I'm not even sure whether the issue is with pygfx or more like on the side of PyQt6. FWIW, I also tried glfw as window manager but that doesn't seem to be playing well with ipython since it is hogging the main event loop.
Here's a minimal working example to illustrate:
# Integrate QT6 in the ipython event loop
%gui qt6

# Run the imports
from wgpu.gui.qt import WgpuCanvas
import pygfx as gfx

# Prepare something to render
cube = gfx.Mesh(
     gfx.box_geometry(200, 200, 200),
     gfx.MeshPhongMaterial(color="#336699"),
)

# This spawns the window and the REPL is still responsive
canvas = WgpuCanvas(size=(1000, 800))

# Initialise renderer
renderer = gfx.WgpuRenderer(canvas)

# Running `gfx.show()` starts the rendering and makes the REPL unresponsive
gfx.show(cube, canvas=canvas, renderer=renderer)

I'm probably missing something obvious but right now I'm a bit stumped and I was hoping you could point me in the right direction?
Thanks in advance!
Best,
Philipp

I use it with %gui qt all the time, you have to make your own canvas, renderer, scene, camera, controller etc. and not use pygfx.show().
simple example:
import imageio.v3 as iio
from wgpu.gui.auto import WgpuCanvas, run
import pygfx as gfx

canvas = WgpuCanvas()
renderer = gfx.renderers.WgpuRenderer(canvas)
scene = gfx.Scene()

im = iio.imread("imageio:astronaut.png")[:, :, 1].copy()

image = gfx.Image(
    gfx.Geometry(grid=gfx.Texture(im, dim=2)),
    gfx.ImageBasicMaterial(clim=(0, 255)),
)
scene.add(image)

camera = gfx.OrthographicCamera(512, 512)
camera.local.position = (256, 256, 0)
camera.local.scale_y = -1

def animate():
    renderer.render(scene, camera)
    canvas.request_draw()

canvas.request_draw(animate)

And then change stuff:
image.material.clim = (50, 250)

Hi @schlegelp! Thanks for reporting this! It's definitely our intention to work well in interactive environments, but things indeed don't seem very smooth yet on IPython,

and not use pygfx.show().

This is probably because it calls the run() method. We should probably check there, whether the GUI event is already running.
I would also expect %gui asyncio  to work fine (with the glfw backend), but I just tried and it looks like we need a few tweaks to our code 😄

Actually the glfw backend is non blocking without any magic commands (at least in jupyter on my end). 🤔 If you use %gui qt I think you'll have to explicitly import and use the QWgpuCanvas.

It looks like this is not the case in IPython (from the terminal) though. Even when I %gui asyncio there is no running asyncio event loop 🤔 . I'll have to dig a bit deeper.

Looked at this with the example I posted above:

in jupyter, works without %gui asyncio.
in ipython, works only with %gui asyncio, can create multiple canvases and they're all non-blocking.

If it helps my ipython package versions, I'm on latest pygfx@main, wgpu-py v0.14.1 (release)
glfw                          2.5.9
ipykernel                     6.22.0
ipython                       8.12.0

Hi all,
Coming from Fastplotlib and following Kushal advice, I am posting this error I have on my Mac when trying to use glfw in ipython. The command %gui asyncio doesn't change anything.
Using python 3.11, setup is
glfw==2.7.0
ipykernel==6.29.3
ipython==8.22.2
wgpu==0.15.0

I tried to do :
import fastplotlib as fpl
plot = fpl.Plot(canvas='glfw')

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Cell In[4], line 1
----> 1 plot = fpl.Plot(canvas='glfw')

File ~/fastplotlib/fastplotlib/layouts/_plot.py:48, in Plot.__init__(self, canvas, renderer, camera, controller, size, **kwargs)
     12 def __init__(
     13     self,
     14     canvas: Union[str, WgpuCanvas] = None,
   (...)
     19     **kwargs,
     20 ):
     21     """
     22     Simple Plot object.
     23
   (...)
     46
     47     """
---> 48     super(Plot, self).__init__(
     49         parent=None,
     50         position=(0, 0),
     51         parent_dims=(1, 1),
     52         canvas=canvas,
     53         renderer=renderer,
     54         camera=camera,
     55         controller=controller,
     56         **kwargs,
     57     )
     58     RecordMixin.__init__(self)
     59     Frame.__init__(self)

File ~/fastplotlib/fastplotlib/layouts/_subplot.py:69, in Subplot.__init__(self, parent, position, parent_dims, camera, controller, canvas, renderer, name)
     27 """
     28 General plot object that composes a ``Gridplot``. Each ``Gridplot`` instance will have [n rows, n columns]
     29 of subplots.
   (...)
     64
     65 """
     67 super(GraphicMethodsMixin, self).__init__()
---> 69 canvas, renderer = make_canvas_and_renderer(canvas, renderer)
     71 if position is None:
     72     position = (0, 0)

File ~/fastplotlib/fastplotlib/layouts/_utils.py:80, in make_canvas_and_renderer(canvas, renderer)
     76         raise ImportError(
     77             f"The {canvas} framework is not installed for using this canvas"
     78         )
     79     else:
---> 80         canvas = CANVAS_OPTIONS_AVAILABLE[canvas](max_fps=60)
     82 elif not isinstance(canvas, (WgpuCanvasBase, Texture)):
     83     raise ValueError(
     84         f"canvas option must either be a valid WgpuCanvas implementation, a pygfx Texture"
     85         f" or a str from the following options: {CANVAS_OPTIONS}"
     86     )

File ~/miniconda3/envs/fastplotlib/lib/python3.11/site-packages/wgpu/gui/glfw.py:112, in GlfwWgpuCanvas.__init__(self, size, title, **kwargs)
    111 def __init__(self, *, size=None, title=None, **kwargs):
--> 112     ensure_app()
    113     super().__init__(**kwargs)
    115     # Handle inputs

File ~/miniconda3/envs/fastplotlib/lib/python3.11/site-packages/wgpu/gui/glfw.py:535, in ensure_app()
    533 glfw.init()
    534 if glfw._pygfx_mainloop is None:
--> 535     loop = asyncio.get_event_loop()
    536     glfw._pygfx_mainloop = mainloop()
    537     loop.create_task(glfw._pygfx_mainloop)

File ~/miniconda3/envs/fastplotlib/lib/python3.11/asyncio/events.py:681, in BaseDefaultEventLoopPolicy.get_event_loop(self)
    678     self.set_event_loop(self.new_event_loop())
    680 if self._local._loop is None:
--> 681     raise RuntimeError('There is no current event loop in thread %r.'
    682                        % threading.current_thread().name)
    684 return self._local._loop

RuntimeError: There is no current event loop in thread 'MainThread'.

The issues will be resolved in https://github.com/pygfx/wgpu-py/pull/478. In particular, glfw runs as expected, and in Jupyter the %gui qt is honored.
Unfortunately, it is not possible to use the glfw backend interactively in IPython. IPython does have some sort of asyncio support, but only runs a loop briefly when calling code with await. It does not have a running asyncio loop that we need.
So on (classic) IPython you better use %gui qt (or start with ipython --gui qt).
On jupyter console the story is a bit shitty in a different way 😅. Since the code runs in a Jupyter kernel, there is no way to distinguish it from a notebook (probably because it can actually have both a notebook and a console attached to the kernel). So in jupyter console and qtconsoleyou should either use %gui qt. Since there always is a nice asyncio loop here, you can also use glfw, but have to force it with e.g. WGPU_GUI_BACKEND=glfw jupyter console.
The PR also adds docs that explain what I just said.

Closing, as the pr is merged. See the docs here: https://wgpu-py.readthedocs.io/en/latest/gui.html#using-wgpu-interactively

Thanks!


Add tests for environment variables

Is there any interest in adding tests that checked against environment variables? The test could check for the existence of the variable or check that the variable is a specific value. I know this request is a little strange and possibly not a good usage of goss. Since the other classes of tests are idempotent to which process is running the tests. The environment variable tests would have to make sure that the environment variables were populated before goss was run. It would still be a nice feature to have.
If there's an interest in this feature I can make an attempt at submitting a pull request.

I would accept a pull request on this feature. I had thought about it in the past as I see some benefit to having this test when using goss with docker, or when using goss to verify that pre-conditions are in-place before executing a service.
Take a look at kernel-param for reference.

Thanks! I'll try to work on it next week.
On Oct 14, 2016 9:46 AM, "Ahmed Elsabbahy"<EMAIL_ADDRESS>wrote:

I would accept a pull request on this feature. I had thought about it in
the past as I see some benefit to having this test when using goss with
docker, or when using goss to verify that pre-conditions are in-place
before executing a service.
Take a look at kernel-param for reference.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/aelsabbahy/goss/issues/164#issuecomment-253803027,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAtnSm4mZcZYjMXCV6Vf9XSafd_T7-aks5qz4ejgaJpZM4KXAkI
.

Cool, just a heads up, you'll need to use genny and run make gen when modifying the resource list.
Apologies in advance for the bad code. Not sure if it's my amateur Golangism or if it's a consequence of no generics.

I'm getting an error when I run "make deps"
[ERROR]	Failed to set version on github.com/docker/docker to 0f5c9d301b9b1cca66b3ea0f9dec3b5317d3686d: Unable to update checked out version

Just tested it with glide v0.12.2 and it worked. travis-ci is using 0.10.2 which was working.
What version of glide do you have? Any chance its an intermittent issue?

Tried again this morning. Checked out a clean version and got off the VPN. "make deps" returns the same error.

It looks like the glide code that's throwing the error is here: https://github.com/Masterminds/glide/blob/3895d9e41edbe9186d65c9dde9c38148d9bbd49c/vendor/github.com/Masterminds/vcs/git.go#L134
I would try to:
# from the goss checked out folder
cd vendor/github.com/docker/docker
git fetch origin

And see what that says, depending on the output, maybe nuke away the vendor/ folder all together and try running glide again? My guess is that it's either a weird glide issue, a network problem or corrupt vendor/ dir?
Hope that helps.

Looking forward to this work @mspiegel - can I make a feature request within your feature request? It would be great if I could use environment variables within my tests. For example, instead of saying
file:
  /lib/path/to/something/config:
    exists: true

I would write:
file:
   ${LIBPATH}:
     exists: true

I do use (and promote!) this heavily within a Docker environment. Happy to help review too

I've made a PR with an initial version of an Environment Variable resource type, #306. It only addresses the original request for capturing and checking variable values, and not the request above, as this seemed in a slightly different scope (great idea though)

@bryanlatten

Looking forward to this work @mspiegel - can I make a feature request within your feature request? It would be great if I could use environment variables within my tests. For example, instead of saying

This is currnetly handled by the template support:
You should be able to do something like:
file:
  {{ .Env.LIBPATH }}:
    exists: true

@twhiston The PR looks to be on the right track so far.

@aelsabbahy sorry for the (large) delay, your comment works perfectly as expected. thank you!


Slide component throws error in Pigment project

Steps to reproduce
Link to live example: https://github.com/ptpittman/github-ejtbjs/tree/main
Steps:

Create a NextJS 14 app dir project using MUI and Pigment, as per docs
Attempt to use Slide component with default props and no ThemeProvider set.
Browse to page that uses component, using Safari, Chrome, or any other browser.

Current behavior
I’m migrating a small project into MUI 6/Pigment as a test. I’ve moved all the theme setup over into next.config, DefaultPropsProvider etc, and all is functioning well enough to keep going with it. I have removed ThemeProvider as the docs seem to suggest, which by extension I’d imagine breaks useTheme(). I understand this as a necessity.
However, I use the MUI Slide component on a client nav component, in this sort of way:
      <Slide
        direction="up"
        in={open}
      ><Box></Box></Slide>

This throws:
TypeError: undefined is not an object (evaluating 'theme.transitions.easing’)

I’ve attempted to define easing, as follows, for example:
      <Slide
        direction="up"
        in={open}
        easing={{
          enter: "cubic-bezier(0,1.5,1,1.5)",
          exit: "cubic-bezier(0,1.5,1,1.5)",
        }}
      ><Box></Box></Slide>

But this does not alleviate the error. Looking at the source of @mui/material/Slide/Slide.js, I see that the defaults have an expectation on useTheme returning transitions, as follows:
const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
  const theme = useTheme();
  const defaultEasing = {
    enter: theme.transitions.easing.easeOut,
    exit: theme.transitions.easing.sharp
  };
  const defaultTimeout = {
    enter: theme.transitions.duration.enteringScreen,
    exit: theme.transitions.duration.leavingScreen
  };
...

I’d imagine this might be the same for other related elements like Fade, but haven’t checked. Is there anyway around this other than restoring ThemeProvider and running a separate client side theme file outside of next.config?
Expected behavior
Slide element should render using default props in a Pigment context.
Context
Render Slide component without error on a client component, using Pigment CSS and MUI 6.
Your environment

npx @mui/envinfo
  System:
    OS: macOS 14.5
  Binaries:
    Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node
    npm: 10.8.1 - ~/.nvm/versions/node/v20.16.0/bin/npm
    pnpm: 9.9.0 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 128.0.6613.138
    Edge: Not Found
    Safari: 17.5
  npmPackages:
    @emotion/react: ^11.13.3 => 11.13.3
    @emotion/styled: ^11.13.0 => 11.13.0
    @mui/icons-material: ^6.1.0 => 6.1.0
    @mui/lab: 6.0.0-beta.9 => 6.0.0-beta.9
    @mui/material: ^6.1.0 => 6.1.0
    @mui/material-nextjs: ^6.1.0 => 6.1.0
    @mui/material-pigment-css: ^6.1.0 => 6.1.0
    @pigment-css/nextjs-plugin: ^0.0.22 => 0.0.22
    react: ^18 => 18.2.0
    react-dom: ^18 => 18.2.0
    styled-components: 6 => 6.1.8

Search keywords: Slide, Pigment

@ptpittman The workaround is to enable CSS variables:
/** @type {import('next').NextConfig} */
import { withPigment } from '@pigment-css/nextjs-plugin';

import { createTheme } from '@mui/material';

const colors = {
  background: '#343434',
  text: '#000000',
};

const nextConfig = {};

/**
 * @type {import('@pigment-css/nextjs-plugin').PigmentOptions}
 */
const pigmentConfig = {
  transformLibraries: ['@mui/material'],
  theme: createTheme({
+    cssVariables: true,
    palette: {
      primary: {
        main: colors.text,
      },
      background: {
        default: colors.background,
      },
      text: {
        primary: '#FFFFFF',
        inverse: '#000000',
      },
    },
  }),
};

export default withPigment(nextConfig, pigmentConfig);

I'd consider this as a bug. I don't think CSS variables is required to use Pigment CSS.

Have you tried this recently ? I cloned your repo and tried to run it. I did not run into any issues.
useTheme will still work depending on how you are importing it. It should be imported from @mui/material-pigment-css/useTheme to get the same theme object as declared in the next.config.


bugfix:null exception when sql columns is empty in insert on duplica…

…te executor

[ ] I have registered the PR changes.

Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?

fixes #5005
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #5033 (f120682) into develop (9e6a3b5) will decrease coverage by 0.01%.
The diff coverage is 50.00%.

@@              Coverage Diff              @@
##             develop    #5033      +/-   ##
=============================================
- Coverage      49.06%   49.04%   -0.02%
+ Complexity      4092     4090       -2
=============================================
  Files            733      733
  Lines          26004    26005       +1
  Branches        3211     3212       +1
=============================================
- Hits           12759    12755       -4
- Misses         11887    11893       +6
+ Partials        1358     1357       -1

Impacted Files
Coverage Δ

...ec/mysql/MySQLInsertOnDuplicateUpdateExecutor.java
30.97% <50.00%> (-0.17%)
:arrow_down:

...er/src/main/java/io/seata/server/ServerRunner.java
50.00% <0.00%> (-15.39%)
:arrow_down:


mod_security bug with random numbers generation

I finally could create a way to reproduce the bug that I am having. When 2 or more users call a page at the same second modsecurity generates the same random number (using rand() function from php) to all users.
Here is a demonstration of the bug:
http://quemfazsite.com.br/em_criacao/modelo9/teste.php
Opening this page 2 iframes will load and each one should be generating random numbers independetly of each other but both frames are generating the same random numbers! The very simple source code can be seen at:
http://pastebin.com/8ELAnmdp
If this is not the right place to post this kind of bug please tell me the right place. This is my first contribution and I dont know too much about this community.

Hi @gilperon the current mainline code contains the fix for that issue. The fix was provided by @micha137. Thank you for the report and thanks @micha137 for the fix [#838]  ;)
It will be release as of v2.9.1. The release date is not defined yet.


Add User Interface.  Add code to ApplicationInterface to support

application_user links.  Add pbkdf2 library.
NOTE: Checked in files are the base files - not files that the build
process generates.

Thanks Jim! I've resolved a merge conflict (in the migrations), rebased your commits and merged them from the cli in the user_management branch. See https://github.com/brocaar/lora-app-server/commits/user_management.


Dark mode not working in App directory

Hey @shadcn, really enjoying working with the UI project, thanks.
I'm having trouble getting the dark mode to work in Next 13.4.7 in the App dir.
I've followed the guide on this page: https://ui.shadcn.com/docs/dark-mode
// app/layout.tsx
`import Header from "@/components/header";
import '../styles/globals.css';
import { ThemeProvider } from '@/components/theme-provider';
export default function RootLayout({ children }) {
return (

{children}

)
}`
// app/components/theme-provider.tsx
`"use client";
import * as React from "react"
import { ThemeProvider as NextThemesProvider } from "next-themes"
import { type ThemeProviderProps } from "next-themes/dist/types"
export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
return <NextThemesProvider {...props}>{children}
}`
// app/theme-switcher
`"use client";
import * as React from "react"
import { Moon, Sun } from "lucide-react"
import { useTheme } from "next-themes"
import { Button } from "@/components/ui/button"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu"
export function ModeToggle() {
const { theme, setTheme } = useTheme();
return (
    <DropdownMenu>
        The current theme is: {theme}
        <DropdownMenuTrigger asChild>
            <Button variant="outline" size="icon">
                <Sun className="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
                <Moon className="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />
                Toggle theme
            </Button>
        </DropdownMenuTrigger>
        <DropdownMenuContent align="end">
            <DropdownMenuItem onClick={() => setTheme("light")}>
                Light
            </DropdownMenuItem>
            <DropdownMenuItem onClick={() => setTheme("dark")}>
                Dark
            </DropdownMenuItem>
            <DropdownMenuItem onClick={() => setTheme("system")}>
                System
            </DropdownMenuItem>
        </DropdownMenuContent>
    </DropdownMenu>
)

}`

Most likely something I'm doing wrong, any chance you can spot it? Thanks!

shadcn_dark_mode.zip

Getting the following console error:
app-index.js:32 Warning: Extra attributes from the server: class,style
    at html
    at RedirectErrorBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/redirect-boundary.js:73:9)
    at RedirectBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/redirect-boundary.js:81:11)
    at NotFoundErrorBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/not-found-boundary.js:51:9)
    at NotFoundBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/not-found-boundary.js:59:11)
    at ReactDevOverlay (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/react-dev-overlay/internal/ReactDevOverlay.js:66:9)
    at HotReload (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/react-dev-overlay/hot-reloader-client.js:276:11)
    at Router (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/app-router.js:92:11)
    at ErrorBoundaryHandler (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/error-boundary.js:77:9)
    at ErrorBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/error-boundary.js:101:11)
    at AppRouter (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/app-router.js:392:13)
    at ServerRoot (webpack-internal:///(app-client)/./node_modules/next/dist/client/app-index.js:163:11)
    at RSCComponent
    at Root (webpack-internal:///(app-client)/./node_modules/next/dist/client/app-index.js:180:11)

I needed to include the  which contained the  inside the  component.
//layout.tsx
import { ThemeProvider } from '@/components/theme-provider';
import Header from "@/components/header";
import '../styles/globals.css';
export default function RootLayout({ children }) {
    return (

            <ThemeProvider attribute="class" defaultTheme="dark" enableSystem>

                {children}
            </ThemeProvider>

    )
}

Instead of:
//layout.tsx
import { ThemeProvider } from '@/components/theme-provider';
import Header from "@/components/header";
import '../styles/globals.css';
export default function RootLayout({ children }) {
    return (

            <ThemeProvider attribute="class" defaultTheme="dark" enableSystem>

                {children}
            </ThemeProvider>

    )
}

Makes perfect sense now I see what it's doing!

Getting the following console error:
app-index.js:32 Warning: Extra attributes from the server: class,style
    at html
    at RedirectErrorBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/redirect-boundary.js:73:9)
    at RedirectBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/redirect-boundary.js:81:11)
    at NotFoundErrorBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/not-found-boundary.js:51:9)
    at NotFoundBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/not-found-boundary.js:59:11)
    at ReactDevOverlay (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/react-dev-overlay/internal/ReactDevOverlay.js:66:9)
    at HotReload (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/react-dev-overlay/hot-reloader-client.js:276:11)
    at Router (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/app-router.js:92:11)
    at ErrorBoundaryHandler (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/error-boundary.js:77:9)
    at ErrorBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/error-boundary.js:101:11)
    at AppRouter (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/app-router.js:392:13)
    at ServerRoot (webpack-internal:///(app-client)/./node_modules/next/dist/client/app-index.js:163:11)
    at RSCComponent
    at Root (webpack-internal:///(app-client)/./node_modules/next/dist/client/app-index.js:180:11)

Hey.
How did you resolve this issue ?
I'm facing the same one.

just follow what explained in this post :
https://github.com/shadcn-ui/ui/issues/926#issuecomment-1634597958

Getting the following console error:
app-index.js:32 Warning: Extra attributes from the server: class,style
    at html
    at RedirectErrorBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/redirect-boundary.js:73:9)
    at RedirectBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/redirect-boundary.js:81:11)
    at NotFoundErrorBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/not-found-boundary.js:51:9)
    at NotFoundBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/not-found-boundary.js:59:11)
    at ReactDevOverlay (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/react-dev-overlay/internal/ReactDevOverlay.js:66:9)
    at HotReload (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/react-dev-overlay/hot-reloader-client.js:276:11)
    at Router (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/app-router.js:92:11)
    at ErrorBoundaryHandler (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/error-boundary.js:77:9)
    at ErrorBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/error-boundary.js:101:11)
    at AppRouter (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/app-router.js:392:13)
    at ServerRoot (webpack-internal:///(app-client)/./node_modules/next/dist/client/app-index.js:163:11)
    at RSCComponent
    at Root (webpack-internal:///(app-client)/./node_modules/next/dist/client/app-index.js:180:11)

Hey. How did you resolve this issue ?
I'm facing the same one.

just follow what explained in this post :
https://github.com/shadcn-ui/ui/issues/926#issuecomment-1634597958

Hello,
I'm also facing the same error in Next.js 13.4.13-canary.5.
I set up the Theme Provider and it's working perfectly fine. The only issue is that I'm getting the same error shared above in my console.
Layout.tsx:
`import "./css/style.css";
import { Inter } from "next/font/google";
import PageIllustration from "@/components/page-illustration";
import Header from "@/components/header";
import AOS from "@/components/utils/aos";
import { ThemeProvider } from "@/components/utils/theme-provider";
import { Toaster } from "@/components/ui/toaster";
const fontInter = Inter({
subsets: ["latin"],
variable: "--font-inter",
display: "swap",
});
export const metadata = {
title: "Flopping Nuts",
description: "Crypto Poker Website",
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (

    <ThemeProvider attribute="class" defaultTheme="system" enableSystem>

        {children}

      <Toaster />
    </ThemeProvider>

);
}
`

Hello,
I'm also facing the same error in Next.js 13.4.13-canary.5.
I set up the Theme Provider and it's working perfectly fine. The only issue is that I'm getting the same error shared above in my console.
Also, including the Header component inside the Theme Provider doesn't resolve the issue.

Try using "suppressHydrationWarning" in html tag.
It solved for me, looks like there's this issue in NextJS 13.
in your layout.tsx

This way I'm only suppressing the warnings and not fixing the issue, correct ?

suppressHydrationWarning

Correct... I am also facing this issue and I already have my SiteHeader which has the ModeToggle inside the theme provider
export default function RootLayout(
  { children }: { children: React.ReactNode },
) {
  return (

        <ThemeProvider attribute="class" defaultTheme="system" enableSystem>

            <SiteHeader />
            {children}

          <TailwindIndicator />
        </ThemeProvider>

  )
}

Yes adding suppressHydrationWarning gets rid of the error but I feel like I shouldn't have to add that?

You can add this:

This should be reopened as it's still an issue

Facing the same issue. Moving header component is not a good solution for every body.

I faced the exact same problem and it was due to the fact that my tailwind config content was not capturing the location of the shadcn components.

I had a similar issue, where the .dark rules were striped from globals.css by tailwind because I haven't used dark class anywhere in my code. Forcing it on html element fixed this issue for me.

It turns out that next-themes recommend adding suppressHydrationWarning: https://github.com/pacocoursey/next-themes?tab=readme-ov-file#with-app

Note! If you do not add suppressHydrationWarning to your  you will get warnings because next-themes updates that element. This property only applies one level deep, so it won't block hydration warnings on other elements.

YOLO 🤷♂

@LyMc adding this to the layout page also fixes it.
export const viewport: Viewport = {
  themeColor: [
    { media: "(prefers-color-scheme: light)", color: "white" },
    { media: "(prefers-color-scheme: dark)", color: "black" },
  ],
}

@morganfeeney you can avoid adding suppressHydrationWarning by doing this: https://github.com/pacocoursey/next-themes?tab=readme-ov-file#avoid-hydration-mismatch
Be sure to add the mounted logic to both provider and switcher.

@LyMc adding this to the layout page also fixes it.
export const viewport: Viewport = {
  themeColor: [
    { media: "(prefers-color-scheme: light)", color: "white" },
    { media: "(prefers-color-scheme: dark)", color: "black" },
  ],
}

@morganfeeney you can avoid adding suppressHydrationWarning by doing this: https://github.com/pacocoursey/next-themes?tab=readme-ov-file#avoid-hydration-mismatch
Be sure to add the mounted logic to both provider and switcher.

If you're doing this, it will make all child components are converted to client component.

for me it was darkMode: "class" was missing in my tailwind config file
import type { Config } from "tailwindcss";

const config: Config = {
  darkMode: "class", <-- add this
  content: [
    "./pages/**/*.{js,ts,jsx,tsx,mdx}",
    "./components/**/*.{js,ts,jsx,tsx,mdx}",
    "./components/ui/*.{js,ts,jsx,tsx,mdx}",
    "./app/**/*.{js,ts,jsx,tsx,mdx}",
  ],
  theme: {
    extend: {
      backgroundImage: {
        "gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
        "gradient-conic":
          "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
      },
    },
  },
  plugins: [require("tailwindcss-animate"), require("tailwindcss-animate")],
};
export default config;

If you're doing this, it will make all child components are converted to client component.

Why would it make all child components client?

If you're doing this, it will make all child components are converted to client component.

Why would it make all child components client?

because of returning the children based on state hook. at least that's what happen on my local, or maybe it's just me

If you're doing this, it will make all child components are converted to client component.

Why would it make all child components client?

because of returning the children based on state hook. at least that's what happen on my local, or maybe it's just me

Just a clarification.
Making parent component a client side component does not mean all child components will become client side components. so you can use client components as parent and it will not make child components as client components.


How to gather the job startTime info in PAI?

Organization Name: MSRAIT
Short summary about the issue/question:我试图统计用户对系统的使用情况，计算用户对资源的使用时间,从REST服务器获取作业列表，发现只有createdTime和completedTime。createdTime是用户提交作业的时间，而不是job实际运行的时间。PAI是否记录作业实际运行的时间？
OpenPAI Environment:

OpenPAI version:0.8.2
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Hardware (e.g. core number, memory size, storage size, GPU type etc.):
Others:

@JianfeiHu We have just refined the "作业实际开始运行的时间" in frameworkcontroller (so will be supported in Pure K8S PAI soon).
For more details, please check:
microsoft/frameworkcontroller#35
For a job attempt:
WaitingTime = RunTime - StartTime
RunningTime = CompletionTime - RunTime
For the whole job which may have multiple attempts:
WaitingTime = Sum_all_attempts (RunTime - StartTime)
RunningTime = Sum_all_attempts (CompletionTime - RunTime)


store: Prevent store from panic after range object storage

Signed-off-by: MegaEle<EMAIL_ADDRESS>

[ ] I added CHANGELOG entry for this change.
[ ] Change is not relevant to the end user.

Changes
When the store uses the object store as the s3 interface, there is a probability that the loadChunks or loadSeries method panic will appear in the query. It is found that the s3 interface does not return complete data, and the store should return an error instead of panic
Verification
I compared it after build the modified code. Under the same circumstances, the store will not panic, and the query returns the following error like:
Mint:<PHONE_NUMBER>826 Maxt:<PHONE_NUMBER>000: rpc error: code = Aborted desc = fetch series for block 01EMMWANSPNASD41ER54W9B2WQ: preload chunks: read range for 0: can't read chunk for required length, required 2723780, actually 48762

I think https://github.com/thanos-io/thanos/pull/3621 is a more reasonable defensive coding measure than this one because that other change adds a checker that is closer to the actual problem.

This has been fixed by https://github.com/thanos-io/thanos/pull/3795, thank you for your contribution!


v2.0.1 Adding back read_b2_boundary_parameters

This function was removed in 0d2ef6bbc031f67875aaece81607481c64af681d to remove unregistered Fortran90Namelists dep. The usecase of reading the namelist was very specific, so this commit adds a small basic julia funciton to read the required parts of namelist and adds back this function.
In future, if generic fortran namelist parser is available in Julia Registry, we will use that.

Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


Skip corrupt metrics in _CassandraAccessor.map

Signed-off-by: Thibault Chataigner<EMAIL_ADDRESS>

Coverage decreased (-0.07%) to 79.568% when pulling ab56b026b1404a1ccff1c49f9217f2b4044c6a2d on Thib17:master into f53b5b4ac673214e0fda7cf5f65a8f3ef402fdb0 on criteo:master.


fix(kai): nicer look when installed on iOS

Current dependencies on/for this PR:

main

PR #2343   👈

PR #2344

This comment was auto-generated by Graphite.


Unexpected map_to parsing behavior in conjunct list

I appear to be encountering some unexpected behavior when parsing the map_to infix operator (:>) inside a conjunction list. For example,
---- MODULE simple_tlc_fn ----

Init ==
    /\ x = 0 :> 0
    /\ y = 1 :> 1

====

parses as
source_file [0, 0] - [7, 0])
  module [0, 0] - [6, 4])
    header_line [0, 0] - [0, 4])
    name: identifier [0, 12] - [0, 25])
    header_line [0, 26] - [0, 30])
    operator_definition [2, 0] - [4, 17])
      name: identifier [2, 0] - [2, 4])
      def_eq [2, 5] - [2, 7])
      definition: bound_infix_op [3, 4] - [4, 17])
        lhs: bound_infix_op [3, 4] - [3, 17])
          lhs: conj_list [3, 4] - [3, 13])
            conj_item [3, 4] - [3, 12])
              bullet_conj [3, 4] - [3, 6])
              bound_infix_op [3, 7] - [3, 12])
                lhs: identifier_ref [3, 7] - [3, 8])
                symbol: eq [3, 9] - [3, 10])
                rhs: nat_number [3, 11] - [3, 12])
          symbol: map_to [3, 13] - [3, 15])
          rhs: nat_number [3, 16] - [3, 17])
        symbol: land [4, 4] - [4, 6])
        rhs: bound_infix_op [4, 7] - [4, 17])
          lhs: identifier_ref [4, 7] - [4, 8])
          symbol: eq [4, 9] - [4, 10])
          rhs: bound_infix_op [4, 11] - [4, 17])
            lhs: nat_number [4, 11] - [4, 12])
            symbol: map_to [4, 13] - [4, 15])
            rhs: nat_number [4, 16] - [4, 17])
    double_line [6, 0] - [6, 4])

but if I simply use a different infix operator (e.g. +), as follows:
---- MODULE simple_tlc_fn ----

Init ==
    /\ x = 0 + 0
    /\ y = 1 + 1

====

this parses as a conj_list with a conj_item for each conjunct line:
source_file [0, 0] - [7, 0])
  module [0, 0] - [6, 4])
    header_line [0, 0] - [0, 4])
    name: identifier [0, 12] - [0, 25])
    header_line [0, 26] - [0, 30])
    operator_definition [2, 0] - [6, 0])
      name: identifier [2, 0] - [2, 4])
      def_eq [2, 5] - [2, 7])
      definition: conj_list [3, 4] - [6, 0])
        conj_item [3, 4] - [3, 16])
          bullet_conj [3, 4] - [3, 6])
          bound_infix_op [3, 7] - [3, 16])
            lhs: identifier_ref [3, 7] - [3, 8])
            symbol: eq [3, 9] - [3, 10])
            rhs: bound_infix_op [3, 11] - [3, 16])
              lhs: nat_number [3, 11] - [3, 12])
              symbol: plus [3, 13] - [3, 14])
              rhs: nat_number [3, 15] - [3, 16])
        conj_item [4, 4] - [4, 16])
          bullet_conj [4, 4] - [4, 6])
          bound_infix_op [4, 7] - [4, 16])
            lhs: identifier_ref [4, 7] - [4, 8])
            symbol: eq [4, 9] - [4, 10])
            rhs: bound_infix_op [4, 11] - [4, 16])
              lhs: nat_number [4, 11] - [4, 12])
              symbol: plus [4, 13] - [4, 14])
              rhs: nat_number [4, 15] - [4, 16])
    double_line [6, 0] - [6, 4])

which is more in line with what I expected to see.
Am I correct in thinking the first case seems unexpected? Perhaps this is related to some specific handling of the map_to operator, but I'm not sure.

Condensed sample:
---- MODULE Test ----
Init ==
    \/ x :> 0
    \/ y :> 1
====

Very interesting! Will take a look in a couple hours.

I believe the issue is in the external scanner here: https://github.com/tlaplus-community/tree-sitter-tlaplus/blob/d99cb5c77bb0e733176d607a0875ac30e17e1e72/src/scanner.cc#L467
I didn't add the lexing case to check for if the : is followed by a > to make the infix operator :>, so the scanner thinks it's a : in the sense of:
---- MODULE Test ----
op == {
  /\ A
  /\ B : x \in P
}
====

and thus terminates the junction list. It will be an easy fix for this issue but I should also look through the other terminating cases to see whether they're a prefix of other operators I missed.

Drawing this from the tokenize_lexeme function in the scanner (link).
List of all tokens that are considered right delimiters (end topmost jlist) for the purposes of a jlist:

Comma ,
Colon :
Right parenthesis )
Right square bracket ]
Right curly brace }
Right angle bracket >>
Right arrow ->
THEN keyword from IF/THEN/ELSE
ELSE keyword from IF/THEN/ELSE
IN keyword from LET/IN

List of all tokens that are considered terminators (end all jlists) for the purposes of a jlist:

Semicolon ;
Single line ----
Double line ====
ASSUME/ASSUMPTION/AXIOM keywords
CONSTANT/CONSTANTS keywords
VARIABLE/VARIABLES keywords
COROLLARY/LEMMA/PROPOSITION/THEOREM keywords
LOCAL keyword
End of file

Checking all of these, the following operators have one of them as their prefix:

Assign operator := with : as prefix
BNF rule operator ::= with : as prefix
Map-top operator :> with : as prefix
Label-as construct :: with : as prefix

So I think the :> operator is the only case not being handled. I will add a test for all of these.

@will62794 this is fixed and I cut another release containing the fix. btw do you know about the monthly TLA+ project meetings? They're pretty fun and you could talk about what you've been working on! The next one will be on Tuesday December 12th, you can find the details & meeting link in the google calendar link in this thread: https://groups.google.com/g/tlaplus/c/CpAEnrf-DHQ/m/YrORpIfSBwAJ

@ahelwer Awesome, thanks for the quick fix. Could you remind me what the easiest way to get a new WASM build is? I don't seem to recall what I did in the past to pull in new parser changes.
And if I'm available for the next project meeting I will try to attend!

The WASM build should be included in the root directory of each NPM package release.


How to use it in Xcode 8/Swift 3 properly? I got just black color shape.

What I'm doing wrong?
In UIWebView the same file is colored, also in SVGKit

Solved with using storyboard: dragginng UIVIew and then changing class to SVGImageView. Just like in demo. May add probably didn't do it properly first time because I didn't add constraints, neither CGRect size.
Also some SVG files can't be rendered. The same issue as #68

SVGLayer/View have properties to override the fill & stroke colors, maybe they were not nil.


Error response from daemon: manifest for ethorbit/discord_sticky-message-bot:latest not found

Tried to run via docker (docker pull ethorbit/discord_sticky-message-bot) and got the following error message
Error response from daemon: manifest for ethorbit/discord_sticky-message-bot:latest not found: manifest unknown: manifest unknown

Is there something I'm missing?

Tried to run via docker (docker pull ethorbit/discord_sticky-message-bot) and got the following error message
Error response from daemon: manifest for ethorbit/discord_sticky-message-bot:latest not found: manifest unknown: manifest unknown

Is there something I'm missing?

Hi, for whatever reason the only tag that exists is :linux
so you'll have to do docker pull ethorbit/discord_sticky-message-bot:linux
I'll try to change that

@Ethorbit thank you! That worked but when I tried to run the bot it looks like it's not meant for arm
Is there another way that I could host this instead of through Docker?

@Ethorbit thank you! That worked but when I tried to run the bot it looks like it's not meant for arm
Is there another way that I could host this instead of through Docker?

Install nodejs, git and git clone https://github.com/Ethorbit/Discord_Sticky-Message-Bot.git
Create a .env file in ./Discord_Sticky-Message-Bot/
Add this to the .env file:
BOT_TOKEN=YOURBOTsTOKEN
STICKY_COOLDOWN=20000

Test the bot to make sure it works: node ./Discord_Sticky-Message-Bot/src/bot.js
If it turns on, you can make it run as soon as the system starts. This can be done quite a few ways, I personally use systemd.
That's pretty much what the container does under the hood. You can also try building the included Dockerfile on arm and see if it works. If the Dockerfile works under arm, let me know so I can add support for it as I currently have no arm system to test on.

I'm still working on this and have had to make some adjustments to the code (add intents for new discord.js version), but I can't get it to run. I run node ./Discord_Sticky-Message-Bot/src/bot.js but I get
if (!token || typeof token !== 'string') throw new Error('TOKEN_INVALID');
                                                   ^

Error [TOKEN_INVALID]: An invalid token was provided.

I've changed the token twice and have tried as a string and not being a string. The .env file is in the Discord_Sticky-Message-Bot directory too

I'm still working on this and have had to make some adjustments to the code (add intents for new discord.js version), but I can't get it to run. I run node ./Discord_Sticky-Message-Bot/src/bot.js but I get
if (!token || typeof token !== 'string') throw new Error('TOKEN_INVALID');
                                                   ^

Error [TOKEN_INVALID]: An invalid token was provided.

I've changed the token twice and have tried as a string and not being a string. The .env file is in the Discord_Sticky-Message-Bot directory too

I believe the .env might need to be placed inside the src/ folder where bot.js resides for it to work

Tried that and it didn't work either. Tried running with a config.json instead of .env and using dotenv. I got the bot online, but it doesn't react to any of the commands.
I run node bot.js from the src directory
Terminal hangs
Bot is online
No response to !sticky add <channel ID> <message>
^C on Terminal
Bot is still online
Do you have a working example of it?

My best guess is that it's throwing an error because BOT_TOKEN=whatever isn't a string, but BOT_TOKEN="whatever" is. Maybe putting quotes around it will get it working.
I'll report back after testing for both Windows and Linux tomorrow, and will be sure to make the code convert BOT_TOKEN to a string instead of checking its type.

Tried that and it didn't work either. Tried running with a config.json instead of .env and using dotenv. I got the bot online, but it doesn't react to any of the commands. I run node bot.js from the src directory Terminal hangs Bot is online No response to !sticky add <channel ID> <message>
Do you have a working example of it?

It turns out the bot was looking for the .env file relative to the directory the terminal was in rather than to the bot.js file itself, this explains why it wasn't able to find it. This issue has been fixed, it will now recurse directories until it finds one with a .env file inside of it.
As for the bot not responding to commands, it was due to the Discord developers making a (dumb) change which requires all bots to have the "Message Content Intent" option enabled in the Bot tab of the Application or else they will see every message as empty and thus commands won't work.
I have created a Wiki for this git repository which covers discord bot creation / inviting, and installing / running the bot.
Hope this solves all problems.

I have rebuilt the docker image using the :latest tag now instead of :linux, and it now supports arm64.

Yep after downloading the changed repo I was able to get everything working without any issues. Thanks again for your help and working to get it operational on my end.


Update drawer when re-opened via intent

Fixes #3764

Do not merge. Has still some unwanted side effects.

Seams to work now. Let's make this nicer when more logic is removed from the drawer.

Oops, still one issue left: (unified inbox opened when real accout was selected).

If viewing the unified inbox and there's only one account initializeFromLocalSearch() sets singleAccountMode to true and account to that account. That doesn't match your expectation that account is null if the unified inbox is displayed. The code further down "corrects" the value in account but doesn't change singleAccountMode. Together this will lead to the following branch being executed.
        if (singleAccountMode && (account == null || !account.isAvailable(this))) {
            Timber.i("not opening MessageList of unavailable account");
            onAccountUnavailable();
            return false;
        }

I suggest doing the following:

extract the code to configure the drawer to a separate method. It shouldn't have any side effects besides configuring the drawer, i.e. certainly not setting account to null
change the "account unavailable" check to if (account != null && !account.isAvailable(this)) { … }
get rid of of the singleAccountMode field
in initializeFromLocalSearch():

when search.searchAllAccounts() is true set account to null and singleFolderMode to false
only set singleFolderMode to true if there's one account and one folder (and search.searchAllAccounts() is false)

Thanks, that sounds reasonable. I guess I'll have some time tomorrow.