EF Core 2.2: Linq subquery join with groupby could not be translated and will be evaluated locally

Describe what is not working as expected.
				var sentShippingOrdersQuery= (from so in OrderShippingOrders
                                            where so.IsSent == true
                                            group so by so.OrderId into g
                                            select new {
                                                OrderId= g.Key,
                                                CountShippingOrderSent=g.Count()
                                            });

                var shippingOrdersQuery= (from so in OrderShippingOrders
                                            group so by new {so.OrderId} into g
                                            join st in sentShippingOrdersQuery
                                                on g.Key.OrderId equals st.OrderId
                                            select new {
                                                OrderId=g.Key.OrderId,
                                                CountShippingOrder=g.Count()
                                            });

                var allSent= (from so in shippingOrdersQuery
                            join st in sentShippingOrdersQuery
                                on new {so.OrderId,so.CountShippingOrder} equals new {OrderId= st.OrderId,CountShippingOrder= st.CountShippingOrderSent}
                            select new { so.OrderId  });

                (from o in Orders
                            join s in allSent
                                on o.Id equals s.OrderId
                        select o).Dump();

If you are seeing an exception, include the full exceptions details (message and stack trace).
Exception message:
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'GroupBy(new <>f__AnonymousType19`1(OrderId = [so].OrderId), [so])' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == True) select [so] => GroupBy([so].OrderId, [so])}
select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on [g].Key.OrderId equals [st].OrderId' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'Count()' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == True) select [so] => GroupBy([so].OrderId, [so])}
select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on new <>f__AnonymousType20`2(OrderId = [g].Key.OrderId, CountShippingOrder = {[g] => Count()}) equals new <>f__AnonymousType20`2(OrderId = [st].OrderId, CountShippingOrder = [st].CountShippingOrderSent)' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'GroupBy(new <>f__AnonymousType19`1(OrderId = [so].OrderId), [so])' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == True) select [so] => GroupBy([so].OrderId, [so])}
select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on [g].Key.OrderId equals [st].OrderId' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'Count()' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == True) select [so] => GroupBy([so].OrderId, [so])}
select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on new <>f__AnonymousType20`2(OrderId = [g].Key.OrderId, CountShippingOrder = {[g] => Count()}) equals new <>f__AnonymousType20`2(OrderId = [st].OrderId, CountShippingOrder = [st].CountShippingOrderSent)' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType19`1 s in {from IGrouping`2 g in {value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) => GroupBy(new <>f__AnonymousType19`1(OrderId = [so].OrderId), [so])} join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == True) select [so] => GroupBy([so].OrderId, [so])} select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on [g].Key.OrderId equals [st].OrderId join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == True) select [so] => GroupBy([so].OrderId, [so])} select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on
new <>f__AnonymousType20`2(OrderId = [g].Key.OrderId, CountShippingOrder = {[g] => Count()}) equals new <>f__AnonymousType20`2(OrderId = [st].OrderId, CountShippingOrder = [st].CountShippingOrderSent) select new <>f__AnonymousType19`1(OrderId = [g].Key.OrderId)} on [o].Id equals [s].OrderId' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'GroupBy(new <>f__AnonymousType19`1(OrderId = [so].OrderId), [so])' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == Convert(__queryObj_IsSent_Value_0, Nullable`1)) select [so] => GroupBy([so].OrderId, [so])} select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on [g].Key.OrderId equals [st].OrderId' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'Count()' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == Convert(__queryObj_IsSent_Value_0, Nullable`1)) select [so] => GroupBy([so].OrderId, [so])} select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on new <>f__AnonymousType20`2(OrderId = [g].Key.OrderId, CountShippingOrder = {[g] => Count()}) equals new <>f__AnonymousType20`2(OrderId = [st].OrderId, CountShippingOrder = [st].CountShippingOrderSent)' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'GroupBy(new <>f__AnonymousType19`1(OrderId = [so].OrderId), [so])' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == Convert(__queryObj_IsSent_Value_0, Nullable`1)) select [so] => GroupBy([so].OrderId, [so])} select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on [g].Key.OrderId equals [st].OrderId' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'Count()' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == Convert(__queryObj_IsSent_Value_0, Nullable`1)) select [so] => GroupBy([so].OrderId, [so])} select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on new <>f__AnonymousType20`2(OrderId = [g].Key.OrderId, CountShippingOrder = {[g] => Count()}) equals new <>f__AnonymousType20`2(OrderId = [st].OrderId, CountShippingOrder = [st].CountShippingOrderSent)' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType19`1 s in {from IGrouping`2 g in {value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) => GroupBy(new <>f__AnonymousType19`1(OrderId = [so].OrderId), [so])} join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == Convert(__queryObj_IsSent_Value_0, Nullable`1)) select [so] => GroupBy([so].OrderId, [so])} select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on [g].Key.OrderId equals [st].OrderId join <>f__AnonymousType18`2 st
in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == Convert(__queryObj_IsSent_Value_0, Nullable`1)) select [so] => GroupBy([so].OrderId, [so])} select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on new <>f__AnonymousType20`2(OrderId = [g].Key.OrderId, CountShippingOrder = {[g] => Count()}) equals new <>f__AnonymousType20`2(OrderId = [st].OrderId, CountShippingOrder = [st].CountShippingOrderSent) select new <>f__AnonymousType19`1(OrderId = [g].Key.OrderId)} on [o].Id equals [s].OrderId' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'Count()' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[10102]
      Query: '(from Order o in DbSet<Order> join <>f__AnonymousType19<int> s in  from IGrouping<<>f__AnonymousType...' uses a row limiting operation
(Skip/Take) without OrderBy which may lead to unpredictable results.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'GroupBy(new <>f__AnonymousType19`1(OrderId = [so].OrderId), [so])' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == Convert(__queryObj_IsSent_Value_0, Nullable`1)) select [so] => GroupBy([so].OrderId, [so])} select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on [g].Key.OrderId equals [st].OrderId' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'Count()' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == Convert(__queryObj_IsSent_Value_0, Nullable`1)) select [so] => GroupBy([so].OrderId, [so])} select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on new <>f__AnonymousType20`2(OrderId = [g].Key.OrderId, CountShippingOrder = {[g] => Count()}) equals new <>f__AnonymousType20`2(OrderId = [st].OrderId, CountShippingOrder = [st].CountShippingOrderSent)' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'GroupBy(new <>f__AnonymousType19`1(OrderId = [so].OrderId), [so])' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == Convert(__queryObj_IsSent_Value_0, Nullable`1)) select [so] => GroupBy([so].OrderId, [so])} select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on [g].Key.OrderId equals [st].OrderId' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'Count()' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == Convert(__queryObj_IsSent_Value_0, Nullable`1)) select [so] => GroupBy([so].OrderId, [so])} select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on new <>f__AnonymousType20`2(OrderId = [g].Key.OrderId, CountShippingOrder = {[g] => Count()}) equals new <>f__AnonymousType20`2(OrderId = [st].OrderId, CountShippingOrder = [st].CountShippingOrderSent)' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'join <>f__AnonymousType19`1 s in {from IGrouping`2 g in {value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) => GroupBy(new <>f__AnonymousType19`1(OrderId = [so].OrderId), [so])} join <>f__AnonymousType18`2 st in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == Convert(__queryObj_IsSent_Value_0, Nullable`1)) select [so] => GroupBy([so].OrderId, [so])} select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on [g].Key.OrderId equals [st].OrderId join <>f__AnonymousType18`2 st
in {from IGrouping`2 g in {from OrderShippingOrder so in value(Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable`1[ECommerce.API.Models.OrderShippingOrder]) where ([so].IsSent == Convert(__queryObj_IsSent_Value_0, Nullable`1)) select [so] => GroupBy([so].OrderId, [so])} select new <>f__AnonymousType18`2(OrderId = [g].Key, CountShippingOrderSent = {[g] => Count()})} on new <>f__AnonymousType20`2(OrderId = [g].Key.OrderId, CountShippingOrder = {[g] => Count()}) equals new <>f__AnonymousType20`2(OrderId = [st].OrderId, CountShippingOrder = [st].CountShippingOrderSent) select new <>f__AnonymousType19`1(OrderId = [g].Key.OrderId)} on [o].Id equals [s].OrderId' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'Skip(__p_1)' could not be translated and will be evaluated locally.
warn: Microsoft.EntityFrameworkCore.Query[20500]
      The LINQ expression 'Take(__p_2)' could not be translated and will be evaluated locally.
Stack trace:

Steps to reproduce
Include a complete code listing (or project/solution) that we can run to reproduce the issue.
Partial code listings, or multiple fragments of code, will slow down our response or cause us to push the issue back to you to provide code to reproduce the issue.
Console.WriteLine("Hello World!");

Further technical details
EF Core version: (found in project.csproj or packages.config)
2.2
Database Provider: (e.g. Microsoft.EntityFrameworkCore.SqlServer) SQL Server
Operating system: Windows 10
IDE: (e.g. Visual Studio 2017 15.4)
VS Code latest one

                var shippingOrdersQuery= (from so in OrderShippingOrders
                                            group so by new {so.OrderId} into g
                                            join st in sentShippingOrdersQuery
                                                on g.Key.OrderId equals st.OrderId
                                            select new {
                                                OrderId=g.Key.OrderId,
                                                CountShippingOrder=g.Count()
                                            });

You are doing a join after group by before aggregate (which is not part of result anyway), hence we evaluate it on client.

Duplicate of #10012

I tried it with LinqPad. It can translate it to SQL.
Can you please advise what is the correct Linq code which can be translated into SQL as per my requirement?

It's not implemented feature.

Based EF core 2.2, can you please advise what is the alternative way to do this using Linq, which can be translated into one SQL?

Just converting the join you wrote into contains filter, it would be like this
var sentShippingOrdersQuery = (from so in OrderShippingOrders
                                where so.IsSent == true
                                group so by so.OrderId into g
                                select new {
                                    OrderId = g.Key,
                                    CountShippingOrderSent = g.Count()
                                });
var shippingOrdersQuery = (from so in OrderShippingOrders
                            where sentShippingOrdersQuery.Select(c => c.OrderId).Contains(so.OrderId)
                            group so by so.OrderId into g
                            select new {
                                OrderId = g.Key,
                                CountShippingOrder = g.Count()
                            });

var allSent = (from so in shippingOrdersQuery
                join st in sentShippingOrdersQuery
                    on new {so.OrderId,so.CountShippingOrder} equals new {OrderId= st.OrderId,CountShippingOrder= st.CountShippingOrderSent}
                select new { so.OrderId  });

var result = (from o in Orders
              join s in allSent
                on o.Id equals s.OrderId
            select o);

Much easier way to capture the same result would be not to use group by
var result = (from o in Orders
                join s in (from so in OrderShippingOrders
                            where !OrderShippingOrders.Where(e => e.IsSent == false).Select(e => e.OrderId).Distinct().Contains(so.OrderId)
                            select so.OrderId)
                    on o.Id equals s
                select o);

                List<Order> result = (from o in db.Orders
                                      where (from so in db.OrderShippingOrders
                                             where !db.OrderShippingOrders.Where(e => e.IsSent == false).Select(e => e.OrderId).Distinct().Contains(so.OrderId)
                                             select so.OrderId).Contains(o.Id)
                                      select o).ToList();

Worked perfectly for me without any client evaluation and gave correct results. If you are still facing issues with your query then we need full minimal repro code which demonstrate behavior you are seeing. Stackoverflow would be better question to ask this kind of question.

Hello,
Could you please provide some workaround to evaluate on the server side?
var snapshots = await DbContext.OpenPositionSnapshots
    //.Where(s => s.AssetClass == "FOP")
    .GroupBy(s => s.SnapshotId)
    .ToArrayAsync();
    //.FirstOrDefaultAsync();

This query evaluated on the client regardless of final ToArrayAsync() or FirstOrDefaultAsync() or Where().
EF Core v2.2.2

                List<Order> result = (from o in db.Orders
                                      where (from so in db.OrderShippingOrders
                                             where !db.OrderShippingOrders.Where(e => e.IsSent == false).Select(e => e.OrderId).Distinct().Contains(so.OrderId)
                                             select so.OrderId).Contains(o.Id)
                                      select o).ToList();

Worked perfectly for me without any client evaluation and gave correct results. If you are still facing issues with your query then we need full minimal repro code which demonstrate behavior you are seeing. Stackoverflow would be better question to ask this kind of question.

Awesome. It works. Thank you very much! sorry for late response.


There are two issues in saveCanvas (https://github.com/teeworlds-utilities/teeworlds-utilities/blob/master/lib/utils/canvas.ts#L103) , the first being if you use an absolute path ie: "/somedir1/somedir2/", when split the first entry in the array will be "" causing an error on mkdir.
The second being when you are making a directory that doesn't exist, you are making all the "nested" directories inside the current directory, rather than one inside the other.
So "somedir1/somedir2/" would result in
parent
├── somedir1
└── somedir2
rather than
parent
├── somedir1
│   └── somedir2

Thanks !
I fixed this, the fix it should appear in the next release (1.1.7) with other changes.


Update Collection log plugin to v2.1

Add side panel with various features/utilities:

Add links to relevant websites (collectionlog.net/GitHub/Discord)
Display collection log entries that have not been loaded
Add buttons to recalculate totals, upload collection log data (if config is enabled), and reset collection log data

Prevent collection log data from being overwritten when viewing another player's log when viewed from the adventure log in the POH

The user agent you use should include your plugin name.
The "Open collectionlog.net" button should create some kind of warning regarding sending IP addresses to a server not operated or controlled by RuneLite. Discord/GitHub are generally trusted services by users so it is not needed for those.

Right, forgot about that link. Would it be okay to only show that button if the uploadCollectionLog config is enabled since it shows that warning message when it is enabled? I'd rather do that than have a dialog box or something pop up every time the button is clicked.

Yes that would be fine--just be sure the panel is properly rebuilt if the config is toggled so it is not showing (or absent) when switching between the panels.

The button is fine as-is, since its obvious it will take you to another site


Demo pages not active, no support or responses from anyone

Seems there is no support so their is no use to develop this script further
These demo pages are not live anymore.
http://www.exclusiveunlock.co.uk/login.html
http://www.exclusiveunlock.co.uk/admin/

i have same error . can i contact you   please write my whatsapp    +94712556303    https://wa.me/94712556303

Yes, demo has been moved to different server.
https://demo.gsmworkshop.com/pro/index.php/admin
U<EMAIL_ADDRESS>P: demo1234
https://demo.gsmworkshop.com/pro/index.php
U<EMAIL_ADDRESS>P: demo1234


golbot appears to break utf8 in some cases

Example:
 <Ysblokje> For 5€ I get a headsup on new linux games daily :D
 <Ysblokje> s/I/you/
 <GolBot> Ysblokje meant to say: For 5â¬ you get a headsup on new linux games daily :D

Python2 issue. If running under python3 all utf8 strings should just work.

See https://github.com/hinrik/bot-basicbot/commit/c2b15ab9e24416b4bd5908e5a4e838242d709370


The last version 2.0.3 doesn't include any code

I installed<EMAIL_ADDRESS>and it just has a package.json no code in it.

Hey @finnp, that's not very good 🤦  sorry about that and thanks for letting me know so promptly. My hunch is that after updating the GitHub actions for uploading (#291) and downloading (#290) artefacts during the build step something's broke and we're not retrieving the files correctly before publishing. I'll look into it now and mark v2.0.3 as deprecated on NPM.
Will keep you updated, thanks again,

Hey @finnp, thanks again for pointing this out; apologies for any inconvenience caused. Below is a quick summary of what occurred for posterity but the TL;DR is: deprecated 2.0.3; fixed the problem; released 2.0.4; and put a check in place to make sure an empty package isn't released again. I appreciate your patience and your support of the package 🚀
Summary
@renovate-bot is set up to merge minor & patch dependencies & devDependencies automatically; releases are only created for dependencies, not for devDependencies; for major changes, a PR is created to allow me to review the breaking change first.
Due to the fact that dotpref only has three dependencies and there's been no features or fixes, there's not been a release in 9 months; however, during that time there were two breaking changes to github's download-artifact action which is used during the release pipeline. The breaking change from v2 to v3 was assessed and accepted as a non issue, but the breaking change from v1 to v2 was never reported in their release notes and therefore never highlighted by @renovate-bot and completely missed; however, in their readme I have now discovered this backwards incompatibility.
Actions Taken

[x] Deprecate<EMAIL_ADDRESS>on NPM
[x] Follow the migration path for v1 to v3
[x] Add pre-release check to ensure main files exist
[x] Release<EMAIL_ADDRESS>on NPM

Thank you for taking care of it 👍  Honestly I think npm should just not accept packages that do not include the file specified in the main field of the package.json


Add tabIndex to horizontal scroll

Overview

PR Checklist

[ ] Related to designs:
[ ] Related to JIRA ticket: ABC-123
[ ] I have run this code to verify it works
[ ] This PR includes unit tests for the code change
[ ] The alpha package of this PR is passing end-to-end tests in all relevant Codecademy repositories

PR Links and Envs

Repository
PR Link
PR Env

Monolith
Monolith PR
Monolith Env

Portal
Portal Link
Portal Env

Another Repo
Another Link
Another Env

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.128-alpha.d763dd.0@codecademy/gamut-labs@31.12.3-alpha.d763dd.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://62854b554c63b92bda615bd7--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.128-alpha.42d462.0@codecademy/gamut-labs@31.12.3-alpha.42d462.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://6285517ae8cccb31ce338e8d--gamut-preview.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://62855a8de1db0d3a6804cabd--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.128-alpha.5f9962.0@codecademy/gamut-labs@31.12.3-alpha.5f9962.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://628576a75b44ae11e2c2e84b--gamut-preview.netlify.appDeploy Logs

still confused why this is flaky and not just always failing (is it actually the banner that was causing it??)... but this seems to definitely help!

I wasn't able to reproduce now that the banner isn't displayed, but I was able to get the same error repeatedly with iphoneSE in cypress 🤷

we can set up a staging banner in contentful... just to be super sure?

Can I get a quick review @jakemhiller or @reedlaverack ?  Thanks!


Use the last used package name for the "Quick Run"

Instead of looking for a package with the same name as the Package, it might be better idea to run the tests for the package for which the tests were last run in the project.

Or add another command to run tests for the last selected package

If you hit "UnitTesting" instead of "Quick Run", the default package should be the most recent package. And I argue that pressing the Enter key once should not bother you too much..

no longer relevant.


How to get the subtasks of a task throught the API?

Question description
TL;DR: how can I get the subtasks of a given task in a performant way? I've been looking for a subtaskIds property or a parentId parameter when getting tasks but couldn't find any of these.

My use case is for a Raycast extension allowing users to manage their Todoist tasks. One important feature missing is the support for sub-tasks. Here's the current behavior:
Todoist view

Raycast view

As you can see, the tasks in Raycast are all shown, including subtasks. While this is acceptable in this example, this can quickly become a problem as you add/nest subtasks.
Ideally, the user wouldn't see the subtasks at first. Instead, there would be an icon indicating how many subtasks a task has along with a command leading to a list view of all subtasks.
I've been looking for a subtaskIds property in the task scheme or a parentId parameter when getting tasks but couldn't find any of these.
The only solution I've found is to get all of the user's tasks and filter them by removing all the tasks that don't correspond to the parentId that's given. But this is not performant (especially if the user has hundreds of tasks).

You can use filter: '!subtask' to avoid loading subtasks upfront. This doesn't give you any indication about whether a task has subtasks or how many, though :/ Also, this seems to be currently blocked by https://github.com/Doist/todoist-api-typescript/issues/149
How are you currently loading tasks? All at once, every time the extension is invoked? Could it make sense to use the Sync API to load the items and then keep it up to date in the background somehow (e.g. with the new Background Refresh API)?
I think the main crux is the time spent on network, not the time spent iterating over the tasks. Maybe a loading indicator of sorts could also address this?

The tasks are loaded every time the extension is invoked. I'm using filters or getTasks parameters depending on the command invoked. For example, I'm using getTasks({ filter: "today|overdue" }) for the "Today Tasks" command, whereas for projects, I'm using the projectId parameter.
I could indeed use the Sync API since the API calls can be cached easily thanks to Raycast's built-in hooks. However, the Sync API isn't implemented in the TypeScript client, is it? If so, that means I'd lose the built-in types which would be a bummer.
That being said, I could use the background refresh API indeed. But I'm wondering a few things. Let's say I was to use the REST API to fetch all to-dos. Wouldn't it be bad for performance fetching all the user's to-dos? What about rate-limiting as well?
Raycast's hooks will revalidate the data every time the hook is called, so at the initial render and when calling the mutate function (every time there's been an action such as updating the due date, the priority, etc.)
While it seems acceptable for a user who has few to-dos (let's say a hundred), I'm not sure this would be the same for a user that has thousands of to-dos.

I think using the Sync API with incremental sync is likely your best choice. It's similar to how the Todoist client apps operate: load (almost) all data upfront and then only load changes.

Sync API isn't implemented in the TypeScript client, is it?

Yes, that's indeed the main crux of the proposal :/ You'd have to implement this yourself. You can reuse some types with casting, but it won't be as seamless as this SDK.

I could use the background refresh API indeed [...] Wouldn't it be bad for performance fetching all the user's to-dos?

Yes, loading all tasks every time will be a big hit on performance due to the network / API response times.

What about rate-limiting as well?

Rate limits should be fine (documentation), you can do 45 full syncs per 15 minutes or 450 partial syncs which should be more than enough. For the REST API, it'd be 450 requests per 15 minute interval (docs).


Add tooltip and message validation to typedInput

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)

Proposed changes
TL;DR; This PR adds support for a validation message to all inputs. This allows node validation to be more precise in case of an error.
This PR adds the following features/changes:

add the getContent method to RED.popover.tooltip
the validateNodeProperty function will check for an error message in the tooltip
the validate method of the typedInput handles the input-error class by itself + addition of a tooltip
typedInput validators now support an error message

This PR is linked to #4450 and was discussed in the Forum.
TODO:

[ ] normalisePropertyExpression errors are not yet translated - Quid?

Checklist

[x] I have read the contribution guidelines
[x] For non-bugfix PRs, I have discussed this change on the forum/slack team.
[x] I have run npm run test to verify the unit tests pass
[ ] I have added suitable unit tests to cover the new/changed functionality

I like the idea I will modify it 😉
What about normalisePropertyExpression translations? For 4.1?

I cannot remember if the english messages in that function end up surfacing to the end user. There are lots of messages... wary of making a huge translation burden. I'd keep it on the todo list personally, don't feel strongly either way.


Add Support to Show "Note" on the form - in core

To add Note like consent, instruction, etc in the form into the core.

What is the feature request for?
Registry Core
What problem/inconvenience (if any) will this feature solve?
Unable to add "Note" on form.
-This feature will help user to add "Note" like consent, information, instructions, etc.
Describe the feature clearly.
Steps to Implementation

[ ]  Write configuration for Template type
[ ]  Create custom type file for template
[ ]  Update form.comp.ts file to read template specific config and apply on field

[ ] Part 2 - "template" can support HTML and CSS added with the consent or note.
Example -  "title" : " hello word  ,  "type" : "template" ==> It will show  'hello world' text in heading1 and red colour.

How User Can implement Template :-

Go to relevant custom field where user want to add the Template.

Under that field element add property "title" and  "formlyConfig":{}
3.In "formlyConfig", add the "type" as "template".

In the "title", user can add any html code in a single line enclosed by "  ".

Refer below example :
                              {                              "name": "template",                              "custom": true,                              "element": {                                  "title": "
HTML Table

Company	Contact	Country

",                                  "widget": {                                      "formlyConfig": {                                          "type": "template"                                      }                                  }                              }                          }

Please find below screenshot of output-


dbt 0.14.3 install from from pip doesn't work with snowflake

Describe the bug
dbt install from from pip doesn't work with snowflake. dbt run gives:
Running with dbt=0.14.3
Encountered an error:
ssl_wrap_socket_with_ocsp() got an unexpected keyword argument 'key_password'

Steps To Reproduce
pip3 --no-cache-dir install -U dbt

Expected behavior
Connects to snowflak
System information
Which database are you using dbt with?

[ ] postgres
[ ] redshift
[ ] bigquery
[X] snowflake
[ ] other (specify: ____________)

The output of dbt --version:
installed version: 0.14.3
   latest version: 0.14.3

Up to date!

The operating system you're using:
The output of python --version:
Additional context
I believe this is related to the snowflake-connector-python version. I tried checking out the source, and building (without making any changes) and I get:
pip3 install -r requirements.txt
Processing ./core
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-fhlty2xe-build/setup.py", line 2, in <module>
        from setuptools import find_namespace_packages
    ImportError: cannot import name 'find_namespace_packages'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-fhlty2xe-build/

Thanks for the report @guy-adams - we're going to cut an 0.14.4 release that fixes this issue.
The issue you're seeing is related to https://github.com/snowflakedb/snowflake-connector-python/issues/225 and https://github.com/snowflakedb/snowflake-connector-python/issues/228.
Longer term, we are going to:

Provide a list of frozen package versions at release-time that will serve as a workaround for this problem
Tighten the snowflake-connector-python version range we accept so that changes to their lib can't break the installation of dbt

The second point here isn't ideal because it will make dbt difficult to install alongside other python programs, but "hard to install" is better than "uninstallable" 10 times out of 10 :)


add "--preview" parameter to show the split N ways

This would be a great addition, I would gladly take on the challenge. Any ideas on what I should start looking into to make this a possibility?
As I understand the problem is to get cypress to stop after a cypress run but still somehow get a 0 response, since we wouldn't want this to fail in CI for whatever reason.

@tommy-anderson thanks - it was a lot of refactoring, so I did it myself, but you can find the code in https://github.com/bahmutov/cypress-split/pull/196


[utilities] Enhance ContentType with new popular mime types & add javadocs

Looks great, thank you!


Code generator generates code for invalid mutation

Summary
Apollo generates code for queries that have type errors. When a query has a type error, I would expect the code generation to fail.
Description
I created a simple schema to isolate this issue. The schema has a single table with a single integer column, job_id.

My mutation is below:
mutation AddRow($job_id: Int!) {
    insert_test(objects: [{job_id: $job_id}]) {
        returning {
            job_id
        }
    }
}

Running gradle generateApolloSources results in correct code:
data class AddRowMutation(
  val job_id: Int
) : Mutation<AddRowMutation.Data, AddRowMutation.Data, Operation.Variables> {
...
}

If I change the mutation parameter to a string, Apollo still generates code. This mutation:
mutation AddRow($job_id: String!) {
    insert_test(objects: [{job_id: $job_id}]) {
        returning {
            job_id
        }
    }
}

produces this code:
data class AddRowMutation(
  val job_id: String
) : Mutation<AddRowMutation.Data, AddRowMutation.Data, Operation.Variables> {
...
}

Version
1.3.2

Hey @sav007 - since you are assigned, can you comment on whether this is a legitimate issue, & and when or if it will be addressed?

Yes the issue legit, as right now we missing proper validation of argument types during query parsing. I'm going to take a look this soon.


[REQUEST] Debug custom inputs in the stack menu.

Problem: In the actual version of OpenBullet2, it's impossible to easily debug a custom input prompt in the stacker editor.
Description: Basically, when we press "START", the custom input is ignored, and the prompt doesn't ever appears. However, it's completely normal when the same config is ran inside an actual Job.
Request: Make possible to test our custom inputs during the stack editing, because some configs are dependant on the input system to make sense, and debug it unpon the Multi-Run job is a real pain.
Nice info: Tested in the most recent versions of OpenBullet 2 (native/remote).

It was very annoying to have all the input boxes pop up in EVERY run so I changed it. Now OB2's debugger will assign whatever value is in the Default field of the custom input to the input variable. Alternatively, you can add something like this at the beginning of your config while you're debugging.
input.MYVAR = "my test value";


Tests for changes in history.state without using spies

Change was forced after jasmine-core update to 2.4.0, more information: https://github.com/jasmine/jasmine/issues/948

@WunderBart  @jcreamer898 can you take a look?
I was also thinking about adding expect(history.state).toEqual({}); but history.state is supported in phantomjs 2.0 and well it's additional thing to test. The most important is covered \o/

:shipit: :trollface:


GPU not work

The graphics card is1660ti，CUDA version is 11.3 and has correct output
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Mar_21_19:24:09_Pacific_Daylight_Time_2021
Cuda compilation tools, release 11.3, V11.3.58
Build cuda_11.3.r11.3/compiler.29745058_0
After the GPU conversion is checked, the GPU occupation of Python is always 0. I want to ask why and how to make it operate on the GPU

The pre-packaged full installer should work out of box.
If you are running from source code, make sure you install the correct pytorch version, as mentioned in the doc
pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html

Check if your onnxruntime is gpu version?


Broken Link

Broken Link
https://substrate.dev/substrate-front-end-template/
Expected Location
Github
Context and Origin
I wanted to see the UI of the frontend application but it threw 404 error

Hi @mishalalex - where did you originally stumble upon this link?

Hi @mishalalex - where did you originally stumble upon this link?

I am not sure; the day I raised it while going through the docs I guess

https://substrate-developer-hub.github.io/substrate-front-end-template/ is found in the readme, it may have been a redirect missfire. Please use the hosted version here, but really locally deploying is the way to go :rocket:


Feature Wish: automatic Table of contents (clickable in sidebar of viewer)

When using cat-command, documents will be concatented.
For large/many files, the structure of the contents of the resulting file can become quite unclear.
Adding a table of contents automatically (no extra page, but with navigation like in hyperef-package from LaTeX, where a navigation on the sidebar of viewers like xpdf or evince is possible) would be nice.

Wrong project... it was meant for the pdf-manipulation program staple.r


Multiple .csproj files for Razor Class libraries.

I am opening an issue for this question because this repo does not support discussions as of the time of writing.  I noticed that there was an extra csproj file created for the RCLs shared between MAUI and Blazor. In my understanding, the extra .csproj file was to add the MAUI targets for the same project. I am confused as to why this is necessary since the RCL already targets .NET 6, I'd be glad if anyone can help point out what I seem to be missing or misunderstanding.

Stumbled on this issue - dotnet/maui#3288. Could it be the reason for this?

Yup! That is the current reason. The csproj for RCLs in MAUI apps need the multi-targeting, but once that is fixed up it will be updated in the repo. As you can see they reference all of the same files.

That totally makes sense. Thanks, James. I guess I should leave the issue open in that case.


feat: shallow mount

Adds a basic implementation for shallowMount via MountOptions.shallow
I still need to add tests, but it seems to work great.
resolves #6

I think we move to beta once this is merged and docs are up to date.

I dont think so.. I dont know if there is a point to add more tests. It is just mount with stubs :P


No Overload for Exception, error format and args.

There are quite a few overloads but there aren't any that accept the Exception along with an error format string and args.  This seems to be how I most often want to use it.  Is there any reason not to add an overload for that?

I think the main reason would be already crowded intellisense for these extension methods.
Would using ILogValues and have an entry for the Exception work?  It doesn't seem ideal but should be doable.
Of course you can add your own extension methods, just follow https://github.com/aspnet/Logging/blob/dev/src/Microsoft.Extensions.Logging.Abstractions/LoggerExtensions.cs

I've just seen that I posted the same question in the discussion about the recent API changes: https://github.com/aspnet/Logging/issues/350
It appears to be a very useful overload so I think this would be a great addition!

I could write a PR for this if you want this in the library.
I'm sure there will be many more questions about this because many people won't use Event-Ids in their code. I don't agree that this makes the API noisy - i think it's the opposite, it makes it clear that event-ids are optional.

Seems odd to not have a logger that lets you easily write an exception message (using a format string) and pass the Exception in.... so I would use it if its included.   When I added this back in November I thought the code was close to being released so didn't want to add the overload but it seems they are farther from RC now then they were then...

@muratg it is a common use-case to log exceptions, why make users add the magic constant ('0') or define their own extension methods?

Here I am a year later and actually using these Extensions.

Added the overloads myself.  Yay open source.

Thank you @cwe1ss!

https://github.com/aspnet/Logging/commit/c149d48a52403759ef1e1ae932c5e0faf9e340d6


Use native Object.assign instead of xtend

xtend can easily be replaced with Object.assign
This reduce the dependencies and possible also avoid duplicated versions where some package don't use the same version range for the xtend package
// immutable
Object.assign({}, a, b)

// mutable
Object.assign(a, b)

Okay, getting closer here. The leftover dependencies that use xtend are:

dat-json
dat-registry
subcommand

And then Dat itself =)


Increase timeout for performance tests

Signed-off-by: Sayali Gaikawad<EMAIL_ADDRESS>Description
The longetvity tests takes more than 15hours to complete. Looks like 13 days. Increasing the timeout to see if this would clean up the resource leaks.
Issues Resolved
https://github.com/opensearch-project/opensearch-build/issues/2768
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

The performance testing issues for leaky resources was solved by increasing the timeout: https://build.ci.opensearch.org/job/perf-test/2295/
It took 12 days to complete the longetivity tests and the run was successful which means resources were destroyed/terminated as well.
cc: @kotwanikunal


[Improve][Code-Style] Add the spotless plugin for unified code style.

Purpose of this pull request

close #2492.
Check list

[ ] Code changed are covered with tests, or it does not need tests for reason:
[ ] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
[ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs
[ ] If you are contributing the connector code, please check that the following files are updated:

Update change log that in connector document. For more details you can refer to connector-v2
Update plugin-mapping.properties and add new connector information in it
Update the pom file of seatunnel-dist

[ ] Update the release-note.

@EricGao888 @TyrantLucifer PTAL. Thanks.

Are spotless and checkstyle complementary? Has this been discussed?

Are spotless and checkstyle complementary? Has this been discussed?

This has been discussed, see #3942 . Spotless and checkstyle are two different code styles. In order to maintain a unified style, we decided to use spotless and remove checkstyle.

PTAL. @EricJoy2048 @CalvinKirs @EricGao888

LGTM, you need to skip the spotless check in ci action, if you don't want to format the whole project in this PR.

LGTM


tbb: fix version script with lld 17+

Description of changes
LLVM 17 enabled --no-undefined-version by default in Clang. We disable this by specifying the --undefined-version flag to $NIX_LDFLAGS when we use LLVM 17+.
Fixes #315243

Things done

Built on platform(s)

[ ] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

built on x86_64-linux


Poor performance on NeRF Blender Synthetic Data & potential bugs

Describe the bug
Hi, when I was trying to test nerfstudio-0.1.5 on the original NeRF dataset by using ./scripts/benchmarking/launch_train_blender.sh -m nerfacto -g 0, it seems the training loss for some datasets will suddenly jump into NaN for some cases, or the losses will not converge well after 2k steps in my case. Another concern is that the testing performance doesn't seem to match with expected performance, the psnr should reach > 30dB after some training. Is there anything special that I need to take care of when doing this testing? I have attached the screenshots below to help diagnosis. Thanks!
To Reproduce
Use nerfstudio-0.1.5, and run ./scripts/benchmarking/launch_train_blender.sh -m nerfacto -g 0 on NeRF blender dataset
Expected behavior
The performance should at least match with the performance reported with previous NeRF papers, like >23dB for drums, and >30dB for others
Screenshots

It looks like you are running the nerfacto model. This model is designed for real world unbounded scenes, as such the configuration is not ideal for unbounded synthetic scenes like the blender dataset. For example the following flags should be set: --pipeline.model.near-plane 2. --pipeline.model.far-plane 6. --pipeline.datamanager.camera-optimizer.mode off --pipeline.model.use-average-appearance-embedding False.
These alone aren't sufficient, other methods hardcode into the model that the background is white which is not done in nerfacto and other method uniformly sample the space which is also not done in nerfacto.

Hi Matthew,
Thanks for the feedback! I have launched again the experiments with both instant-ngp and nerfacto, now the training profile looks normal to me at least from the training side. Will close this ticket afterwards

--pipeline.model.near-plane 2. --pipeline.model.far-plane 6. --pipeline.datamanager.camera-optimizer.mode off --pipeline.model.use-average-appearance-embedding False

This command give an error:
 Unrecognized or misplaced arguments: --pipeline.datamanager.camera-optimizer.mode

Hi,
You need to put them before the --data and --output-dir like:
ns-train nerfacto --vis viewer --pipeline.model.predict-normals True --pipeline.model.near-plane 2. --pipeline.model.far-plane 6. --pipeline.datamanager.camera-optimizer.mode off --pipeline.model.use-average-appearance-embedding False --data /.../output_colmap --output-dir /.../output_result nerfstudio-data


Improvements to java blueprint docs for OSGi

LGTM with some minor comments.

Thanks @neykov - comments addressed; merging now.


Uncaught TypeError: Cannot read property 'webkitMatchesSelector' of null

Pulled down a new repo and tried switching branches
Steps to reproduce:

Clone Repo
Try and change brancehs

Stack Trace:
Atom: 1.15.0 x64
Electron: 1.3.13
OS: Mac OS X 10.12.4
Thrown From: git-plus package 7.5.0
Stack Trace
Uncaught TypeError: Cannot read property 'webkitMatchesSelector' of null
At /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:243

TypeError: Cannot read property 'webkitMatchesSelector' of null
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:243:26)
    at CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:3:59)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/app.asar/src/command-registry.js:160:19)
    at /packages/git-plus/lib/git-plus.coffee:230:27)
    at HTMLDivElement.dispatch (/packages/git-plus/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLDivElement.elemData.handle (/packages/git-plus/node_modules/jquery/dist/jquery.js:4121:28)

Commands
     -6:06.5.0 core:save (input.hidden-input)
     -6:04.1.0 command-palette:toggle (input.hidden-input)
     -6:02.8.0 core:move-down (input.hidden-input)
     -6:02.6.0 core:move-right (input.hidden-input)
     -6:02.5.0 core:move-down (input.hidden-input)
     -6:02.1.0 core:confirm (input.hidden-input)
     -6:02.1.0 git-plus:commit-all-and-push (input.hidden-input)
     -6:00.0 core:save (input.hidden-input)
     -1:31.6.0 core:copy (atom-notification.fatal.icon.icon-bug.native-key-bindings.has-detail.has-close.has-stack)

Non-Core Packages
atom-cform-yaml 0.4.1
atom-material-syntax-dark 0.2.7
atom-material-syntax-light 0.4.6
atom-material-ui 1.3.9
busy-signal 1.3.0
compare-files 0.8.0
date 1.2.2
git-plus 7.5.0
git-projects 1.17.0
intentions 1.1.2
language-powershell 4.0.0
language-yaml-cloudformation 0.3.1
linter 2.1.4
linter-js-cloudformation-yaml 2.2.1
linter-js-yaml 1.2.7
linter-ui-default 1.2.3
material-ui 1.0.10
multi-cursor 2.1.5
persistent-undo 1.2.0
project-manager 3.3.4
sync-settings 0.8.1

Relaunching Atom resolved this, still wanted to report it for you guys.

Thanks! I'll keep an eye out for similar errors

Also received this error today. It appeared after switching branches externally from Atom, but have been unable to replicate after an Atom restart.


Rebrand locale paths in make_tgz

Upstream Electrum recently added locale installation to make_tgz; the paths from upstream aren't correct for Namecoin.  This PR fixes those paths.

Actually the outage is also affecting GitHub itself, to the point that I can't actually merge PR's right now.  I guess this PR will have to wait until the outage is fixed.


V0.5 qh improve code quality

Coverage decreased (-0.2%) to 73.708% when pulling e0aeeac4f9a2c47debe3c1378f8dd7420bd392bb on V0.5-Qh-Improve-Code-Quality into 619f04fca7a8fd5740aaf61b375723d605ca2800 on V0.5.


Fix #1343 OBF crash on startup

Description
Keeps jackson classes. Tests seem fine on my J5 and emulators, but would like more people to test please.
Proguard configuration appeared to be removing classes necessary for Jackson operations.
Related issues and discussion
#1343

Hey @ross-holloway94,
Something went wrong with the build.
TravisCI finished with status errored, which means the build failed because something unrelated to the tests, like a problem a dependency or the build process itself.


[FLINK-24438] Add Kinesis connector using FLIP-27

What is the purpose of the change

Implement FlinkKinesisSource using the new FLIP-27 Source interface

Verifying this change
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): yes
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? n/a

Thanks for the feedback @PatrickRen ! I've created a followup subtask for IT tests, because otherwise this PR will be super long
https://issues.apache.org/jira/browse/FLINK-31986

@dannycranmer @PatrickRen. This PR is ready for final review. Let me know if you have any further comments

Thanks @PatrickRen. Thats a great callout. I've created a separate subtask to track that, as well as logging. https://issues.apache.org/jira/browse/FLINK-32229


HTTP 409

When i start server with TGBridge active i noticed this error in console. The only solution to not getting the 409 error is disabling the mod. Also the bot doesnt redirect telegram chat messages to > game, but redirecting messages from game to > telegram chat. How i can fis that issue? It's a great mod and i really want to use it on my server.
[13:15:12] [Thread-30/INFO]: WebServer started.
[13:15:12] [BlueMap-Plugin-Loading/INFO]: BlueMap loaded!
[13:15:15] [DefaultDispatcher-worker-2/ERROR]: HTTP 409
[13:15:16] [DefaultDispatcher-worker-5/ERROR]: HTTP 409
[13:15:20] [DefaultDispatcher-worker-9/ERROR]: HTTP 409
[13:15:21] [DefaultDispatcher-worker-5/ERROR]: HTTP 409
[13:15:25] [DefaultDispatcher-worker-1/ERROR]: HTTP 409
[13:15:26] [DefaultDispatcher-worker-7/ERROR]: HTTP 409
[13:15:30] [DefaultDispatcher-worker-1/ERROR]: HTTP 409
[13:15:31] [DefaultDispatcher-worker-1/ERROR]: HTTP 409
[13:15:35] [DefaultDispatcher-worker-6/ERROR]: HTTP 409
[13:15:37] [DefaultDispatcher-worker-7/ERROR]: HTTP 409

Config:
# It's enough to set botToken and chatId for the plugin to work.
# When your group has topics enabled, you should also set topicId.
general:
  # Open https://t.me/BotFather to create a bot.
  # Make sure to *disable* group privacy in the "Bot Settings" menu.
  botToken: "XXXXXXXXXXXXXXXXX" (hidden)
  # To get the chat id, right click/tap on any message and choose "Copy Message Link".
  # If there is no such option, enable "Chat history for new members" in the group settings.
  # It can then be disabled.
  # The copied link will be in the format "https://t.me/c/<chat_id>/<topic_id>/<message_id>".
  # Topic id will only be present if the chat has topics enabled.
  chatId: -1002236234246
  # If the specified chat has topics enabled, specify the id of the topic that will be
  # synchronized with the game. Commands will have no effect in other topics.
  # If you don't set this, the bot will send all messages to the "General" topic
  # and the /list command will have weird behaviour when sent in other topics.
  # Default value: null (disabled)
  topicId: null
messages:
  # If this value is set, waypoints shared from Xaero's Minimap/World Map will be rendered
  # as links to a specified Bluemap instance.
  # Note that shared waypoints will be sent regardless of the requirePrefixInMinecraft setting.
  # Example: https://map.example.com
  # Default value: null (disabled)
  bluemapUrl: "XXXXXXXXX" (hidden)
  # If this value is set, messages without specified prefix won't be forwarded to Telegram.
  # Example: "!" (quotes are required)
  # Default value: "" (disabled)
  requirePrefixInMinecraft: ""
  # Chat messages sent within the specified interval (in seconds) will be merged in one.
  # The value is specified in seconds
  # Default value: 0 (disabled)
  mergeWindow: 0
events:
  advancementMessages:
    enable: true
    # Include advancement descriptions in Telegram messages
    showDescription: true
  enableDeathMessages: true
  enableJoinMessages: true
  enableLeaveMessages: true
  # If a player leaves and then joins within the specified time interval (in seconds),
  # the leave and join messages will be deleted.
  # This is useful when players frequently re-join, for example because of connection problems.
  # Only has effect when both enableJoinMessages and enableLeaveMessages are set to true
  # The value is specified in seconds
  # Default value: 0 (disabled)
  leaveJoinMergeWindow: 0

Hi! 409 means you have started another program with the same bot token. Have you used this token anywhere else? Maybe another server is running? In that case you'll need to create a bot per server.
This is a Telegram Bot API limitation

Hi again!
This is a strange behavior, but I found a solution. Open the link in your browser https://api.telegram.org/bot/deleteWebhook. After deleting webhook everything works as it should.
I think it makes sense to add this information to the documentation. Thanks again for the great mod!

Thanks! I made the plugin remove the webhook automatically on startup


Fix unicode maintainer

Fixes #1297.
I also don't think the version comparisons were working correctly in the original patch in certain situations, so that was updated.

Changes all look fine to me. I double checked that after the changes the tests still fail if the _encode_field step is skipped.

@pganssle Thanks. That's also what I'm finding. But I feel a little uneasy adding a special case for Python 2. And the monkey patching of write_pkg_info to open the file with encoding support is only applied to Python 3. I'd love to get it such that on all Pythons the file is opened in a uniform way (using io.open and encoding='utf-8'), but to make that change now may be too invasive, especially with how distutils gets monkeypatched. I think your approach is the best one for now (until distutils is adopted and the codebase is consolidated).
Thanks for the follow-up patch and the review!


FIX DBTime timestamps should return the time in seconds

To me it is unexpected that the getTimestamp method on DBTime returns the timestamp of that time as of "today" when the application is running, rather than the time represented in seconds.

hmm - well this didn't work :(

I don't understand. It's as of "seconds since 1970" not "as of today". Although I'm not sure what the "now" relevance for this method is.

I don't understand. It's as of "seconds since 1970" not "as of today". Although I'm not sure what the "now" relevance for this method is.

At the moment it returns the time stamp for the time as of "today".
strtotime('01:00:00'); this code does not return 3600 (1 hour in seconds) it returns the time stamp for 1am on the current day according to the server<PHONE_NUMBER>).
IMO we should be returning the time in seconds because there is no reference to a date in the DBTime class.
If you (@tractorcow) agree, I can reopen and fix this, but I spoke with @kinglozzer on slack and he wasn't convinced it should be returning seconds instead of a timestamp.


when expired the refresh do not work

the issue comes about 1 day.

I printed the error text
its a html
<!doctype html>

    <title>HTTP Status 401 – Unauthorized</title>

HTTP Status 401 – Unauthorized

Type Status Report

Message OAuthToken is invalid

      Description The request has not been applied to the target resource
      because it lacks valid authentication credentials for that resource.

Garmin Connect API Server

will a re-login / re-authenticate remove the error?

yes, but the refresh token is for refresh, I wonder it can be refresh like webbrowser

You are right of course. I was wondering if there was any other underlying issue which could be tied to the login/token/authentication.
Given that garth is based on oAuth tokens, the expiry dates of the tokens would be such that it's a "long" time. Does it show that these tokens have long expiry time or do they expiry > 1 day? (from your PR https://github.com/matin/garth/pull/5#issue-1913538314).

You are right of course. I asked because I was wondering if there was any other underlying issue which could be tied to the login/token/authentication.
Given that garth is based on oAuth tokens, the expiry dates of the tokens would be such that it's a "long" time. Does it show that these tokens have long expiry time or do they expiry > 1 day? (from your PR #5 (comment)). It technically shouldn't need a refresh so quickly

yes, but for me and other user, it expiry the other day ....

@app4g https://github.com/yihong0618/running_page/issues/504#issuecomment-1746016970
sorry its Chinese hope google translate helps

I didn't check it before, but checking now, this is what I'm getting (using the example from the garth install/readme)
(.venv) ➜  .garth cat oauth1_token.json
{
    "oauth_token": "XX",
    "oauth_token_secret": "XX",
    "mfa_token": null,
    "mfa_expiration_timestamp": null
}%

 (.venv) ➜  .garth cat oauth2_token.json
{
    "scope": "COMMUNITY_COURSE_READ GARMINPAY_WRITE GOLF_API_READ ATP_READ GHS_SAMD GHS_UPLOAD INSIGHTS_READ COMMUNITY_COURSE_WRITE CONNECT_WRITE GCOFFER_WRITE GARMINPAY_READ DT_CLIENT_ANALYTICS_WRITE GOLF_API_WRITE INSIGHTS_WRITE PRODUCT_SEARCH_READ GCOFFER_READ CONNECT_READ ATP_WRITE",
    "jti": "f2796adb-3ba8-49cd-9d7e-5e755130816f",
    "token_type": "Bearer",
    "access_token": "XX",
    "refresh_token": "XX",
    "expires_in": 74452,
    "expires_at":<PHONE_NUMBER>,
    "refresh_token_expires_in": 2591999,
    "refresh_token_expires_at": 1

I didn't check it before, but checking now, this is what I'm getting (using the example from the garth install/readme)
(.venv) ➜  .garth cat oauth1_token.json
{
    "oauth_token": "XX",
    "oauth_token_secret": "XX",
    "mfa_token": null,
    "mfa_expiration_timestamp": null
}%

 (.venv) ➜  .garth cat oauth2_token.json
{
    "scope": "COMMUNITY_COURSE_READ GARMINPAY_WRITE GOLF_API_READ ATP_READ GHS_SAMD GHS_UPLOAD INSIGHTS_READ COMMUNITY_COURSE_WRITE CONNECT_WRITE GCOFFER_WRITE GARMINPAY_READ DT_CLIENT_ANALYTICS_WRITE GOLF_API_WRITE INSIGHTS_WRITE PRODUCT_SEARCH_READ GCOFFER_READ CONNECT_READ ATP_WRITE",
    "jti": "XXX",
    "token_type": "Bearer",
    "access_token": "XX",
    "refresh_token": "XX",
    "expires_in": 74452,
    "expires_at":<PHONE_NUMBER>,
    "refresh_token_expires_in": 2591999,
    "refresh_token_expires_at":<PHONE_NUMBER>

yep it will expire the other day...

@yihong0618 Could you try getting rid of these lines?
        if garth.client.oauth2_token.expired:
            garth.client.refresh_oauth2()

This is handled automatically in Garth.

@yihong0618 Could you try getting rid of these lines?
        if garth.client.oauth2_token.expired:
            garth.client.refresh_oauth2()

This is handled automatically in Garth.

will drop it, but seems not these problem.

The only thing I can think of is the usage of the garmin.com vs garmin.cn domain.
Are you also using --is-cn for the GH action? Is the GH action running from a server in the US or China?

@matin aha, seems my bug, will fix it and test tomorrow.

@matin seems my fault so closing this
and I think we can add domain to the token json too?

To clarify, "refreshing" the OAuth2 token simply obtains a new one:

3 Weeks later and I revisit this and I get what is the difference that is being mentioned in the README and reading the code in your comment above..
Many Thanks.
BTW, @matin the oAuth2Token are not really oAuth version 2 right? I see google's cache of Garmin's Health API all states its using oAuth 1.0
tx

3 Weeks later and I revisit this and I get what is the difference that is being mentioned in the README and reading the code in your comment above..
Many Thanks.

I'm happy to hear it's working for you!

BTW, @matin the oAuth2Token are not really oAuth version 2 right? I see google's cache of Garmin's Health API all states its using oAuth 1.0

The method in which you obtain the OAuth2 token doesn't follow the spec, but the format of the token itself is consistent with RFC 6749 Section 5.1.


Remove internal gas correction

The new RIF Wallet instance is more optimized and may not need this parameter. This should solve the issue of sending rDOC in this PR: https://github.com/rsksmart/rif-wallet/pull/838

<EMAIL_ADDRESS>has been published for this to test in the wallet.


Adding Colourful Tic Tac Toe

Link to demo here : https://amnindersingh12.github.io/Colourfull-tic-tac-toe/
Regarding #2615

Community Contribution
Link to live project, video, or image:

Sharing

[x] I would be happy to have my project shared on The Coding Train's social media!

@violetcraze You're welcome😊


fix: Update requirements.txt with google-generativai

Resolves #285
The package google-generativeai was installed using venv and requirements.txt updated with
pip freeze > requirements.txt

This creates versioning numbers for all packages used which were not included before.

@jojeyh I don't think we want to go so far as a pip freeze, but it would definitely be nice to have a more reproducible build.
I wonder if a Pipfile is the right way to go? https://pipenv.pypa.io/en/latest/pipfile.html

Sounds good to me.  I'll try to get it working.  At first glance it looks like pipenv doesn't play nice if there are multiple installations of python on a system (I use Ubuntu), but there's not really a lot of good options for python package management in general.

@rbren Now works with pipenv , also updated and reordered the README a little for better readability

LGTM! You just need to resolve the conflicts--looks like maybe someone added a line to requirements.txt you'll need to incorporate

@rbren Resolved

Thanks!


Web service is failing with: No webservice

http://tools.wmflabs.org/wm-metrics/
Copy paste of the error:
No webservice
The URI you have requested, /wm-metrics/, is not currently serviced.
If you have reached this page from somewhere else...
This URI is part of the wm-metrics tool, maintained by Léna, Jean-Frédéric, and PierreSelim.
That tool might not have a web interface, or it may currently be disabled.
If you're pretty sure this shouldn't be an error, you may wish to notify the tool's maintainers (above) about the error and how you ended up here.
If you maintain this tool
You have not enabled a web service for your tool, or it has stopped working because of a fatal error. You may wish to check your logs or common causes for errors in the help documentation.

ssh tools-login.wmflabs.org
become wm-metrics
webservice restart

Ok this is working now. Thanks JeanFred !


Total and available balances component

The total balance accompanied with available balance is presented at the top of Account, Home and Balances screens which make these 2 separate component and great candidate to compose it together and reduce redundant code.

This comment from #1055 should also be resolved:

It could be the case that there is actually zero shielded balance (and non-zero transparent balance) when fully scanned, which would cause the spinner to show incorrectly.


Release 0.6 and attach that version to a different branch

We need to start working on the version that will be compatible with the new starter frontend. The current version is compatible with the legacy frontend and will live on a 0.x branch on the repo.

✅ Done https://github.com/solidusio/solidus_paypal_commerce_platform/releases/tag/v0.6.0
https://rubygems.org/gems/solidus_paypal_commerce_platform/versions/0.6.0


Collection.each doesn't provide every one?

 The second time, when destroying, it only gets the first. Any idea why?

  class Session extends Backbone.Model

  class SessionList extends Backbone.Collection
    model: Session
    localStorage: new Store 'sessions'

  window.sessions = new SessionList

  localStorage.removeItem('sessions')
  console.log localStorage.sessions

  sessions.add [
    {x: '1'}
    {x: '2'}
  ]
  console.log localStorage.sessions

  sessions.each (m) ->
    console.log 'saving' + m.get('x') + '  ' + m.get('id')
    m.save()
  console.log localStorage.sessions

  sessions.each (m) ->
    console.log 'kill' + m.get('x') + '  ' + m.get('id')
    m.destroy()
  console.log localStorage.sessions

Console log:
undefined
undefined
saving1  undefined
saving2  undefined
afe778bf-74e1-8013-6cca-ecb8bed794f7,78716671-68cc-de7d-914e-2d64531efc6e
kill1  afe778bf-74e1-8013-6cca-ecb8bed794f7
78716671-68cc-de7d-914e-2d64531efc6e

Nevermind, I didn't realize Underscore's .each isn't mutation-safe.


installing @vue/cli-service flipflops the lockfile

Version
4.5.7
Reproduction link
https://github.com/doppelreim/install-vue-cli-service
Environment info
vue is not involved - only package `@vue/cli-service`. I did this to zero in on the issue.

Steps to reproduce
I used a container for the dev-environment (node and npm) (see README).

Run npm install

Bonus steps:

Delete directory node_modules
Run npm install
Repeat
Observe that the lockfile flipflops between two states

What is expected?
File package-lock.json should not be changed.
What is actually happening?
File package-lock.json is changed.

I documented the whole investigation in the README of the repro-repo.
We ran into this bug at work, because different developers are constantly getting unexpected changes to file package-lock.json.
This creates uncertainty and confusion and makes reviews harder.

I think it's more likely an npm issue? Would you please report this issue to them, too?
BTW, for collaborations, I think npm ci is a more appropriate way to install project dependencies.

I reported the issue to npm as well.
I could imagine that the behaviour might be caused by the optional dependency on a second/different version of package vue-loader (https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-service/package.json#L83).
Because the packages that get shifted around in the lockfile are dependencies of that one, if I remember correctly.
My understanding of npm ci was, that it is intended to be used on CI?

Facing the same issue after migrating from vue-cli 3.11.0 to v4.5.7. Vue version is 2.6.12. This causes the build to fail with this error:
Error: vue-loader requires @vue/compiler-sfc to be present in the dependency tree.

Our current workaround is:
When we suffer from unexpected changes to file package-lock.json
Then we delete directory node_modules
And run npm install again.
This "works" because it is constantly flip-flopping back and forth. So when we have a "flop", then we delete and return to "flip"-state of the lockfile.

I am a bit more sure now about the problem being related to the optional dependency.
Today while flip-flopping, a new change was introduced:
-          "version"<EMAIL_ADDRESS>+          "version"<EMAIL_ADDRESS>
My understanding was, that no dependencies should be updated just like that from a random npm install.

I am not sure whether the error of @mkiterian is related. We never saw this specific message.

Facing the same issue, lock file change in cli projects builds after removing node modules. Testing different node versions and cli versions.

@doppelreim - i see your question on npm got closed. I'm facing the same issue. I don't see any reason for npm install to ever change the lock file. That should never happen imho. I have a local build using npm 6.14.12 - no problems. Than on the production server, using the same version, it changes my package-lock - making the git checkout 'changed'. It only changes the order of entries. Why? Why is there code in npm install that is even able to change the package-lock?
I'm currently not upgrading to V7 on my prod server, that might have too many effects on other applications. So as a fix for now after build in production (end of my CI/CD chain) i do a quick git checkout . to revert.


[INFO] Detected platform "linux-x86_64"
[INFO] Building for platform "linux-x86_64"
[INFO] Ops found in CustomOperations.h and headers: [Switch, While, Scope, Conditional, Return, expose, sigmoid, sigmoid_bp, softsign, softsign_bp, tanh, tanh_bp, softplus, softplus_bp, relu, relu_bp, selu, selu_bp, lrelu, lrelu_bp, elu, elu_bp, cube, cube_bp, rectifiedtanh, rectifiedtanh_bp, rationaltanh, rationaltanh_bp, hardtanh, hardtanh_bp, hardsigmoid, hardsigmoid_bp, identity, identity_bp, crelu, crelu_bp, relu6, relu6_bp, relu_layer, toggle_bits, matmul, tensormmul, axpy, batched_gemm, svd, lt_scalar, gt_scalar, lte_scalar, gte_scalar, eq_scalar, neq_scalar, Where, where_np, select, choose, is_non_decreasing, is_strictly_increasing, is_numeric_tensor, maximum, maximum_bp, minimum, minimum_bp, add, add_bp, subtract, subtract_bp, reversesubtract, reversesubtract_bp, reversemod, reversemod_bp, squaredsubtract, squaredsubtract_bp, multiply, multiply_bp, divide, divide_bp, reversedivide, reversedivide_bp, floormod, floormod_bp, mod, mod_bp, floordiv, floordiv_bp, realdiv, realdiv_bp, truncatediv, assign, assign_bp, meshgrid, equals, not_equals, less_equal, greater_equal, less, greater, conv1d, conv1d_bp, conv2d, conv2d_bp, sconv2d, sconv2d_bp, deconv2d, deconv2d_bp, maxpool2d, maxpool2d_bp, avgpool2d, avgpool2d_bp, pnormpool2d, pnormpool2d_bp, maxpool3d, maxpool3d_bp, avgpool3d, avgpool3d_bp, fullconv3d, fullconv3d_bp, fullconv3d_grad, pooling2d, im2col, col2im, upsampling2d, upsampling2d_bp, upsampling3d, upsampling3d_bp, conv3d, conv3d_bp, ismax, dilation2d, conv3dnew, conv3dnew_bp, avgpool3dnew, avgpool3dnew_bp, maxpool3dnew, maxpool3dnew_bp, max_pool_with_argmax, depthwise_conv2d, depthwise_conv2d_bp, pointwise_conv2d, to_double, to_float16, to_float32, to_int32, to_int64, to_uint32, to_uint64, cast, write_list, stack_list, read_list, pick_list, size_list, create_list, scatter_list, split_list, gather_list, clone_list, unstack_list, hinge_loss, huber_loss, log_loss, mean_pairwssqerr_loss, mean_sqerr_loss, sigm_cross_entropy_loss, softmax_cross_entropy_loss, absolute_difference_loss, cosine_distance_loss, softmax, softmax_bp, lrn_old, lrn, lrn_bp, batchnorm, apply_sgd, fused_batch_norm, log_softmax, log_softmax_bp, argmax, argmin, norm, matrix_set_diag, matrix_diag, set_seed, get_seed, randomuniform, random_normal, random_bernoulli, random_exponential, random_crop, permute, reshapeas, transpose, shape_of, shapes_of, squeeze, expand_dims, reshape, order, tile_to_shape, tile_to_shape_bp, test_output_reshape, test_scalar, testreduction, noop, testop2i2o, testcustom, firas_sparse, clipbyvalue, clipbynorm, clipbyavgnorm, cumsum, cumprod, tile, repeat, invert_permutation, concat, concat_bp, mergemax, mergemaxindex, mergeadd, mergeavg, scatter_update, Floor, Log1p, reverse, gather, pad, eye, gather_nd, reverse_sequence, trace, random_shuffle, clip_by_global_norm, tri, triu, triu_bp]
[INFO] Targeting /home/jenkins/workspace/nd4j_latest_release_linux-x86_64-cpu/nd4j/nd4j-backends/nd4j-backend-impls/nd4j-native/src/main/java/org/nd4j/nativeblas/Nd4jCpu.java

It doesn't show up here though: http://master-jenkins.skymind.io:8080/blue/rest/organizations/jenkins/pipelines/deeplearning4j/pipelines/nd4j/branches/latest_release/runs/9/nodes/51/steps/1584/log/?start=0

Yeah, I just edited to add the same thing (for some reason it isn't detected by javacpp during the build).

@sshepel The CI server isn't executing Maven with the -U option. How are you making sure it's using the latest artifacts available? It looks like it might be using old artifacts for libnd4j, although I'm not sure how this could happen for a release build..

@saudet you can check it from the build log, but it does uses -U option for all of the platforms, see snippet below for cuda.
mvn -U -B clean install -Dlocal.software.repository=sonatype -Dmaven.test.skip=true -P libnd4j-assembly -P staging -P native-snapshots -P uberjar -pl '!nd4j-backends/nd4j-backend-impls/nd4j-native,!nd4j-backends/nd4j-backend-impls/nd4j-native-platform,!nd4j-backends/nd4j-tests'

@AlexDBlack are you sure that artifact that you were testing is for cpu backend? Because, if it's cuda then I think the reason that you got those errors maybe because of this
 -pl '!nd4j-backends/nd4j-backend-impls/nd4j-native,!nd4j-backends/nd4j-backend-impls/nd4j-native-platform,!nd4j-backends/nd4j-tests'

@sshepel Yes, I'm 100% sure it's the nd4j-native backend (nd4j-native-platform). I'm not getting any errors/warnings on CUDA.
And I've checked the actual nd4j-native JAR file (nd4j-native-1.0.0-beta.jar) compared to locally built JARs and the CI-built one is definitely missing those class files (as we would expect given they are also missing in the build log).

@sshepel from what I understand, old/outdated libnd4j files could cause this - but not outdated javacpp.
The CI - and local - build logs all seem to be using javacpp 1.4.1. I'm not sure how we'd get an outdated javacpp here, given we aren't using snapshot artifacts for javacpp (i.e., there's only one such version called 1.4.1)

No, I've found that it's caused by a parsing failure. The header files of libnd4j contain non-ASCII, but Docker defaults to ASCII (!! wtf guys, sigh...)

@AlexDBlack well, yeah, I couldn't be because of libnd4j, because for staging we creating new repository, and uploading fresh artifacts of libnd4j...
Really strange...


Add collaborators to the project

Please add everyone that made commits to this project as a collaborator. Then also add an official project scope to describe which contributions should and should not be accepted.
For this one-time effort you will allow others to pick up where you left off. And you allow your project to continue without any remaining effort from you.

I propose modifying the title of this issue to "Transfer project to an organization".
https://help.github.com/articles/creating-a-new-organization-from-scratch/
It works really well. As the original author, you create a new organization and transfer the existing repository (including all metadata such as issues, wiki, pull requests, etc.) to the newly created organization. You can then add the people that are most active anyway as admins, committers, co-owners or whatever it is called. That way there is a single authoritative source and issue list and people can collaborate.

At the moment, the project has moved to the https://github.com/6pac/SlickGrid/ repo.
This repo is unmaintained and pretty much dead.
I've been doing maintenance solo, but I did add my first collaborator recently, someone who consistently delivered high quality and well thought out PRs. I'm very reluctant to add too many collaborators. In my experience a lot of people want the glory but can't back it up with the necessary skills. That may sound harsh, but I think a lot of open source projects probably have the same experience.


[.Net] Remaining Issues clean up for Mgmt SDK

Prioritize customer-reported PRs.
Prioritize customer-reported issues.
Clean up staled issues and PRs.

169 open issues (include mgmt. and llc)
33 service issues closed


Running as administrator disables other instances

If you run an executable as administrator and later open another instance of the same executable, that new instance does not work, the inputs, the buttons do, but text, number or selector inputs do not work.

@josago97 We are able to reproduce this, but we're stumped as to why it's occurring. For us, it only happens if we have an instance running "As Administrator", and then start one or more other instance normally. The normal instance(s) has the issue. Additional instances running "As Administrator" work fine. Once all "As Administrator" instances are shut down, all new normal instances work as expected. Any normal instances still open that had the issue, still do not work. This appears to be an issue with the WebView2 control as the native window still operates as expected. We cannot reproduce the issue with the full Edge web browser. Any help on this one is appreciated!

It's an issue with User data folder being shared between elevated and non-elevated process. If you run both instances with different temporary files path, then it works fine. That said, creating new temp folder for each instance leaves behind a bunch of trash, and webview starts with a fresh profile on each run. Isn't ideal.
VSCode for example, won't allow to start non-elevated instance if an elevated on is already running.


ResultSets not closed in tutorial and article

In Extracting Database Metadata Using JDBC the ResultSets which are returned from the various queries are not closed.
This can lead to issues, for instance ORA-01000 in Oracle.
Maybe the number of ResultSets in the example is limited, but as a best practice I'd recommend to
change the code to either use try-with-resource or manually closing the ResultSets.
also see:
https://github.com/eugenp/tutorials/blob/master/persistence-modules/core-java-persistence/src/main/java/com/baeldung/jdbcmetadata/MetadataExtractor.java

Hi @contextmap ,
Thanks for the feedback! We'll take a look into this.

We fixed the code and updated the article.


nuget file has old version of splat

The nuget file has 1.3.3 specified as the required version of splat. If you start with an empty project and just include Akavache, you end up with 1.3.3 installed. However, it looks like it is built against 1.6.0 as you get a DLL load error - claiming that 1.3.3 is too old. I think the nuget nuspec file just needs to be updated to reflect the version it is built against.

@gordonwatts can you attach the packages.config that you get after installing plain Akavache, to confirm which versions are included for the dependencies?

Repro Steps:

Create new blank solution (you can't have a solution that already has a modern version of Splat in any other project or nuget will choose that by default. This is what saves you most of the time).
Create a new blank universal app
Using nuget, put Akavache in both the windows phone and the windows store app
Look at the packages.config.

@gordonwatts  :heart_eyes: thanks!

And thanks for this tool - I sat down to design a local cache, and then thought I should look on the internet... and minus one feature, this is exactly what I needed (I will need to poll my data every 10 minutes). I can't tell you how nice it is to find software like this ready to play with and use! So... Thanks!


Bug: Random shaman loot when doing stuff

Getting random shaman loot from bso bot.
I only do shaman trips on osb but it seems the bso bot is bugged

First screenshot got updated randomly
Second screenshot now has the correct loot
(The loot shown in the bottom message of this screenshot)

I'm having this same issue with both bots as well but with very different images. I've seen vorkath loot, zulrah loot, random player's banks, and a few others. Never experienced this on pc and I'm not sure what causes it.

Fixed by now.


Add Admin.describeCluster

Returns metadata for all brokers in the cluster.
The API is roughly based on the Java Admin.describeCluster API. The big differences are:

I'm exposing the nodes under a brokers property instead of nodes. The id is still called a nodeId, but I don't think we really use the Node terminology anywhere, so I went with brokers instead.
The Java API has something called AuthorizedOperations that can be optionally included. I didn't add it as the current use-case doesn't need it, and I haven't actually looked into what it is or why you'd want it.

Usage is simply: await admin.describeCluster() and returns:
{
  brokers: [{ nodeId: 0, host: 'localhost', port: 9092, connected: true}],
  controller: 0,
  clusterId: 'foobar'
}

Fixes #647

@Nevon overall, seems like a straightforward PR worth adding. The Java API having exposed it is generally a good indication there's a good reason for it, #647 gives useful context as well. The two design decisions seems totally on point to me.


Add FreeBSD dmi facts

Can one of the admins verify this patch?

CLA signed by all contributors.

Excellent work!


Upgrade project/build.properties to use SBT 1.9.0

Now that SBT 1.9.0 is released, would it be possible to release this plugin with this version of SBT? This would make it available to thousands of developers who are desperate to benefit from easy performance benchmarking in Scala & Java with SBT :-)
Thanks so much!

FYI https://github.com/sbt/sbt-jmh/pull/220

FYI, @johanandren released v0.4.5 with sbt 1.9.0
Thanks for your reactivity @johanandren! ❤


NavMeshToolPruner::floodNavmesh

start poly isn't being marked
needs
flags->setFlags(start, flag);
at the top of function

Thanks for the report! I've opened #217 with your fix and some additional cleanup.


reproducible-builds; bit-for-bit identical binary

Currently msbuild will produce binaries, that are not bit-for-bit identical, even if the source code is identical.

same source code build on a different day will produce different binaries
same source code build on a different machine with same compiler and same tools will produce different binaries

It would be very helpful tool for error diagnosis, and build system verification if the binaries would be identical (for the same version of the compiler).
advantages (listed on https://github.com/jasonwhite/ducible):

confidence that two parties built a binary with the same environment,
recreating a release bit-for-bit from source code,
recreating debug symbols for a particular version of source code,
verifiable and correct distributed builds,
better caching of builds,
no spurious changes in binaries under version control.

There is another github project concering this issue:
https://github.com/jasonwhite/ducible
https://reproducible-builds.org/

MSBuild the engine only interprets your build script and executes other programs to produce a build.  The compilers are responsible for generating assemblies from source code.  The managed compilers (csc.exe and vb.exe) have /deterministic which I believe does what you're talking about.  I'm not sure if the native compiler has the same functionality.
Either way, we'll probably want to move this issue to the respective compilers for consideration.


add the ability to define arbitrary tags for scanInfo

closing since it has been folded into https://github.com/ocurity/dracon/pull/53


Documentation pages not clickable when the phases are over

@bbearce I think you have worked on a similar problem already but I am not able to find it.
When all phases are over, these links become unclickable:

Sorry @bbearce I assign you to this too, to avoid forgetting about this issue.
Basically, I think that when there is no current phase, some variable is missing and makes the pages bug.
This older fix was related to that: https://github.com/codalab/codabench/pull/1344

+1 Same problem in a competition where all phases have ended.


Add a download (resources) command

I'm writing this for the CLIMADA pipeline so I might as well make it a command for hdx-toolkit.

Implemented in #23


Unable to map nested type from ElasticProperty attribute

I'm trying to mark a property with FieldType.Nested, but every time I index my object with the ElasticClient, it creates the index without mapping that property as "type": "nested".
Here is my class:
    [ElasticType(IdProperty = "Number", Name = "serviceOrder")]
    class IndexServiceOrder
    {
        public IndexServiceOrder()
        {
            Stages = new List<Stage>();
        }

        public string Number { get; set; }

        [ElasticProperty(Name = "@timestamp")]
        public DateTime Timestamp { get; set; }

        public bool Submitted { get; set; }

        public bool Completed { get; set; }

        public string Class { get; set; }

        public string Priority { get; set; }

        [ElasticProperty(Type = FieldType.Nested)]
        public List<Stage> Stages { get; set; }

        public class Stage
        {
            public string Description { get; set; }

            public string TechGroup { get; set; }

            public string Department { get; set; }

            public bool Complete { get; set; }
        }
    }

Here is the mapping that is created with the index, using NEST:
    "serviceOrder" : {
        "properties" : {
          "@timestamp" : {
            "type" : "date",
            "format" : "dateOptionalTime"
          },
          "class" : {
            "type" : "string"
          },
          "completed" : {
            "type" : "boolean"
          },
          "stages" : {
            "properties" : {
              "complete" : {
                "type" : "boolean"
              },
              "department" : {
                "type" : "string"
              },
              "description" : {
                "type" : "string"
              },
              "techGroup" : {
                "type" : "string"
              }
            }
          },
          "number" : {
            "type" : "string"
          },
          "priority" : {
            "type" : "string"
          },
          "submitted" : {
            "type" : "boolean"
          }
        }
      }

Please let me know if I'm missing something in the documentation.

NEST wont apply mappings when indexing, it would be too costly.
You need to call .Map() or even better .CreateIndex() explicitly before indexing any object.
See this test for a complete example:
https://github.com/elasticsearch/elasticsearch-net/blob/develop/src/Tests/Nest.Tests.Unit/Core/Map/FluentMappingFullExampleTests.cs#L27-L29
The highlighted line is what will make NEST pickup the attributes on your POCO.
Hope this makes sense!

Nevermind, I finally found a related issue with the resolution:
https://github.com/elasticsearch/elasticsearch-net/issues/200
You might consider updating the documentation here to cover this scenario:
http://nest.azurewebsites.net/nest/index-type-inference.html

It was a little confusing because Id and Name properties on the ElasticType attribute were mapped automatically without having to call anything.

Hah! posted just as you found the answer.
We'll add a note to that page, thanks for the fresh view on the docs. Always invaluable.


JsonRpcError bug report

I'm getting a DecidePredicateUnknown followed by a (possibly) related failure.
Bug report available at https://github.com/runtimeverification/mev-searcher/issues/64

uniswap-frontrun.zip

This PR to pyk (that depends on another PR to hs-backend-booster) may make these failures a little more discoverable. Just leaving this here to track.

@geo2a which PR?

Sorry, I was talking about this PR: https://github.com/runtimeverification/pyk/pull/744


Fix signing encoding handling.

Fixes #20.
Note that while this fixes some cases that were broken in 0.2.3 as well as 0.3.0 (eg. b'object with spaces'), some of the cases were working in 0.2.3 and are now broken in 0.3.0 (eg. b'object:with:colons'), so this is a regression fix.

This branch is in the wrong repo so the integration tests were skipped on Travis; however they did pass for me locally.

See #69 for test results / coverage report including the integration test suite.  Results there look good.

@exarkun: Okay, addressed; think we're good to merge here (sorry it took so long to get back to this).

Great!  Thanks.  Did another thing with #71 to see integration test suite results and they look good.  So, approved & merging.


Nice, but no...
The magic is too black, and the outcome is too unconventional (defining members w/o assignment)...


Users with the local en-US are seeing some options in lowercase

See https://www.inaturalist.org/pages/standard+places
Users who have a locale of en-US rather than en(when I look at their curation page) are seeing some menu options in lowercase, namely on the Identify page:

I asked one user whose locale was en-US to change locales from English to non-English to English and they're seeing the proper capitalization there now. Their locale is now just en.

Not sure what this has to do with https://www.inaturalist.org/pages/standard+places, but these issues are stemming from a change I made to the way default values work for translations. Now if we specify a default value, it will be used if the value is missing in the current locale, even if there is a fallback value, so in these cases, there is now translation in en-US and it's using the default value specified in the code instead of the en value. I'll remove some of those default values in the code (generally not a great idea), but another solution is to translate these values in en-US on Crowdin.

I can take a look.

Assuming these tabs have lowercase names due to this bug, I can reproduce:

@rainhead, FYI, I think this is just a matter of removing some defaultValue usages and things get translated at https://crowdin.com/translate/inaturalistweb/38/en-enus

I suspect there are multiple issues, but I'm still getting my bearings.
The order by options do not use defaultValue: https://github.com/inaturalist/inaturalist/blob/main/app/webpack/observations/identify/components/filters_button.jsx#L357.
I reran npm run webpack which I probably hadn't run in a while, and can no longer repro the issue with Sort By. Is there a chance this is a caching or non-deterministic load order issue?
My tabs still look as above, but tbh I can't see how they would ever have looked different. I don't see that anything ever assigns to tabTitles. This would seem to be a separate issue.

Off the top of my head you should make sure you're in en-US and not en, and that you run rake inaturalist:generate_translations_js before running webpack. If you're not seeing anything obvious after that feel free to bail and I can take a look.

Confirmed that LC_ALL=en_US.UTF-8 and Accept-Language | en-US,en;q=0.5, ran that rake command, and reran webpack. Not seeing any issues.


Upgrade to Transformers 4.34

What does this PR do?

As per title.
To do:

update example diff files
add repeat_interleave for Falcon? https://github.com/huggingface/transformers/blob/acc394c4f5e1283c19783581790b3dc3105a3697/src/transformers/models/falcon/modeling_falcon.py#L143-L160

Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.