Cannot connect to (localdb) from .NET Core except via Named Pipe on Windows 11 ARM

Description
I'm trying to connect to SQL Server Express LocalDB from .NET Core 6 on Windows 11 ARM. If I use a connection string that refers to it using the instance name "Data Source=(localdb)\MSSQLLocalDB", it fails with the exception below. If I connect to it using a named pipe, it works.

Microsoft.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SNI_PN11, error: 56 - Unable to load the SQLUserInstance.dll from the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed.) ---> System.ComponentModel.Win32Exception: %1 is not a valid Win32 application.

I've created some simple MSTest unit tests to repro the problem. There are two test methods in the DatabaseConnectionFixture class that attempt to connect to LocalDB: one uses an ordinary connection string and the other uses a named pipe.  On Windows 11 ARM, the ConnectToDatabase_ConnectionString() method fails.  If I run this same code on Windows 11 x64, both tests pass.
Configuration
This is running on Windows 11 ARM in a Parallels VM on an M1 MacBook Pro.  The OS Build # is 22509.1011.  The dotnet core build is 6.0.100.

@benday, I have not looked into the repro you have provided or much in details just some quick notes, have you tried with ssms to see if that gets a connection? LocalDb can use two different connection strings.
1- (localdb)<Instance name> or (localdb).<shared instance name>
2- np:\.\pipe\LOCALDB#\tsql\query
The first one should be working without any issues, but there is an open issue for second one #1395  and PR #1433 is made to address issue.
One other problem with Instance pipe name is if its state is stopped you wont be able to get a connection from Instance pipe name. make sure you have ran SqlLocalDB start <instance name>

@JRahnama -- Thanks for that input.  I hit that named pipe issue you mentioned but did a workaround a while back by simply setting Encrypt=false in the connection string.  Not ideal but good enough to allow me to connect via "np:".  Put another way, no issues for me on the ARM/Named Pipe thing.
I tried the default instance syntax "(localdb)." that you suggested and I'm still getting the same error.  The repro repo that I posted actually ensures that the localdb instance is running before attempting to connect to it.
Per your question about SSMS, SSMS doesn't install on Win11 ARM.  But I can connect to localdb using SQL Server Object Explorer in VS2022 running on ARM. What's extra strange is that I can connect to localdb using an app I wrote for dotnet 5 that's published to the store.  https://www.microsoft.com/store/productId/9P5DZ9KQC7GR
I think there is something about native .NET6 apps trying to connect that doesn't work from ARM. But that same code works fine when it's run in x86/x64 emulation under ARM.

@benday is the app on net 5 using same username/password to get connection? If not, I would say you probably need to add user login to your localdb
CREATE LOGIN [username goes here] FROM WINDOWS WITH DEFAULT_DATABASE=[master] and add related roles, but if net5 is working with same credentials that is a different story. Setting up the environment will take sometime.

I created a VM for Windows 11
Added VS2022 and SqlServer 2019
Add a sample repro with ARM64 configuration for net6 TFW

and everything worked as expected. maybe I need to have Windows 11 ARM. Did you try it from Windows 11 Insider Preview Build?

@JRahnama --
Yes, you'll definitely need a win11 arm machine to test this. As stated in the original bug report, everything works as expected on win11 on Intel x64. It fails on arm.
Regarding the .net5 app running on win11 arm, I was connecting using "trusted connection=true" and that oddly worked fine.

One more question here can you run dumpbin.exe /headers SqlUserInstance.dll in the path of  C:\Program Files\Microsoft SQL Server\150\LocalDB\Binn also check Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server Local DB\Installed Versions\15.0 in the registry to see if the path is correctly installed?

I am having similar issue with .net 6.0 on regular intel dev laptop connecting to (localdb)\instancename.
Does not work

(localdb)\instancename

Works

np:\.\pipe\LOCALDB#FA0859AB\tsql\query

Exception

System.Data.Entity.Core.EntityException: The underlying provider failed on Open.
---> System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen()
--- End of stack trace from previous location ---
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass4_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.ExecuteAsyncImplementation[TResult](Func1 func)    at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter.GetResult()    at System.Data.Entity.Core.EntityClient.EntityConnection.OpenAsync(CancellationToken cancellationToken) ClientConnectionId:00000000-0000-0000-0000-000000000000 Error Number:-1,State:0,Class:20    --- End of inner exception stack trace ---    at System.Data.Entity.Core.EntityClient.EntityConnection.OpenAsync(CancellationToken cancellationToken)    at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter.GetResult()    at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnectionAsync(Boolean shouldMonitorTransactions, CancellationToken cancellationToken)    at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter.GetResult()    at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransactionAsync[T](Func1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess, CancellationToken cancellationToken)
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.ExecuteAsyncImplementation[TResult](Func1 func)    at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter1.GetResult()
at System.Data.Entity.Core.Objects.ObjectQuery1.GetResultsAsync(Nullable1 forMergeOption, IDbExecutionStrategy executionStrategy, CancellationToken cancellationToken)
at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter1.GetResult()    at System.Data.Entity.Internal.LazyAsyncEnumerator1.FirstMoveNextAsync(CancellationToken cancellationToken)
at System.Data.Entity.Infrastructure.IDbAsyncEnumerableExtensions.ForEachAsync[T](IDbAsyncEnumerator1 enumerator, Action1 action, CancellationToken cancellationToken)

Configuration
Processor	Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz   2.59 GHz
Installed RAM	32.0 GB (31.6 GB usable)
System type	64-bit operating system, x64-based processor
Edition	Windows 10 Enterprise
Version	20H2
Installed on	12/20/2020
OS build	19042.1415
Experience	Windows Feature Experience Pack 120.2212.3920.0
Should I create a separate ticket?

I am having similar issue with .net 6.0 on regular intel dev laptop connecting to (localdb)\instancename.
Does not work

(localdb)\instancename

Works

np:.\pipe\LOCALDB#FA0859AB\tsql\query

Exception

System.Data.Entity.Core.EntityException: The underlying provider failed on Open.
---> System.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen()
--- End of stack trace from previous location ---
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass4_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.ExecuteAsyncImplementation[TResult](Func1 func)    at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter.GetResult()    at System.Data.Entity.Core.EntityClient.EntityConnection.OpenAsync(CancellationToken cancellationToken) ClientConnectionId:00000000-0000-0000-0000-000000000000 Error Number:-1,State:0,Class:20    --- End of inner exception stack trace ---    at System.Data.Entity.Core.EntityClient.EntityConnection.OpenAsync(CancellationToken cancellationToken)    at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter.GetResult()    at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnectionAsync(Boolean shouldMonitorTransactions, CancellationToken cancellationToken)    at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter.GetResult()    at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransactionAsync[T](Func1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess, CancellationToken cancellationToken)
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.ExecuteAsyncImplementation[TResult](Func1 func)    at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter1.GetResult()
at System.Data.Entity.Core.Objects.ObjectQuery1.GetResultsAsync(Nullable1 forMergeOption, IDbExecutionStrategy executionStrategy, CancellationToken cancellationToken)
at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter1.GetResult()    at System.Data.Entity.Internal.LazyAsyncEnumerator1.FirstMoveNextAsync(CancellationToken cancellationToken)
at System.Data.Entity.Infrastructure.IDbAsyncEnumerableExtensions.ForEachAsync[T](IDbAsyncEnumerator1 enumerator, Action1 action, CancellationToken cancellationToken)

Configuration
Processor Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz 2.59 GHz Installed RAM 32.0 GB (31.6 GB usable) System type 64-bit operating system, x64-based processor
Edition Windows 10 Enterprise Version 20H2 Installed on 12/20/2020 OS build 19042.1415 Experience Windows Feature Experience Pack 120.2212.3920.0
Should I create a separate ticket?

For some reason setting this flag:

setProfileEnvironment="true"

in this is file:

C:\Windows\System32\inetsrv\config\applicationHost.config

fixed it for me.
Is this the recommended approach?
Source:
https://stackoverflow.com/questions/15491388/iis-applicationhost-setenvironment-attribute

One more question here can you run dumpbin.exe /headers SqlUserInstance.dll in the path of C:\Program Files\Microsoft SQL Server\150\LocalDB\Binn also check Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server Local DB\Installed Versions\15.0 in the registry to see if the path is correctly installed?

Here's the output from dumpbin:
dumpbin-output.txt

I added a new test to the sample repo that adds that UseManagedNetworkingOnWindows call.  The test still fails but it gives a different error message.  The new error message is:
System.Exception: Cannot connect to SQL Server Browser. Ensure SQL Server Browser has been started. ---> System.Net.Sockets.SocketException: No such host is known.
Stack Trace:
at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily, ValueStopwatch stopwatch)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress, AddressFamily family)
at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)
at System.Net.Sockets.UdpClient.GetEndpoint(String hostname, Int32 port)
at System.Net.Sockets.UdpClient.SendAsync(Byte[] datagram, Int32 bytes, String hostname, Int32 port)
at Microsoft.Data.SqlClient.SNI.SSRP.SendUDPRequest(String browserHostname, Int32 port, Byte[] requestPacket)
at Microsoft.Data.SqlClient.SNI.SSRP.GetPortByInstanceName(String browserHostName, String instanceName)
--- End of inner exception stack trace ---
at Microsoft.Data.SqlClient.SNI.SSRP.GetPortByInstanceName(String browserHostName, String instanceName)
at Microsoft.Data.SqlClient.SNI.SNIProxy.CreateTcpHandle(DataSource details, Int64 timerExpire, Boolean parallel, SqlConnectionIPAddressPreference ipPreference, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
at Microsoft.Data.SqlClient.SNI.SNIProxy.CreateConnectionHandle(String fullServerName, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Byte[]& instanceName, Byte[][]& spnBuffer, Boolean flushCache, Boolean async, Boolean parallel, Boolean isIntegratedSecurity, SqlConnectionIPAddressPreference ipPreference, String cachedFQDN, SQLDNSInfo& pendingDNSInfo)
at Microsoft.Data.SqlClient.SNI.TdsParserStateObjectManaged.CreatePhysicalSNIHandle(String serverName, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Byte[]& instanceName, Byte[][]& spnBuffer, Boolean flushCache, Boolean async, Boolean parallel, SqlConnectionIPAddressPreference iPAddressPreference, String cachedFQDN, SQLDNSInfo& pendingDNSInfo, Boolean isIntegratedSecurity)
at Microsoft.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover, SqlAuthenticationMethod authType)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool)
at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)    at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions)    at Microsoft.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 retry, DbConnectionOptions userOptions)
at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides)
at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides)
at Microsoft.Data.SqlClient.SqlConnection.Open()
at Benday.ArmDemo1.UnitTests.DatabaseConnectionFixture.Connect(String connstr) in c:\code\benday-inc\Benday.ArmDemo1\test\Benday.ArmDemo1.UnitTests\DatabaseConnectionFixture.cs:line 84
at Benday.ArmDemo1.UnitTests.DatabaseConnectionFixture.ConnectToDatabase_ConnectionString_LocalDb_NamedInstance_UseManagedNetworkingOnWindows() in c:\code\benday-inc\Benday.ArmDemo1\test\Benday.ArmDemo1.UnitTests\DatabaseConnectionFixture.cs:line 41

Just wanted to report that this issue also concerns a native Windows 11 ARM installation on a Surface Pro X. Yet having troubles to install SQL Server 2019 at all (SQL Server Express, SQL Server Express Advanced and SSMS won't install without errors), the SQL Server 2019 LocalDB installation somehow manages to get through successfully. However, trying to access the local database via connection string (localdb)/MSSQLLocalDB as part of developing a Blazor WASM application gave me exactly the same error as in the original post (provider: SNI_PN11, error: 56 - Unable to load the SQLUserInstance.dll from the location specified in the registry).
Developing using VS Code, I installed the SQL server extension for VS Code (https://docs.microsoft.com/en-us/sql/tools/visual-studio-code/sql-server-develop-use-vscode). Interestingly enough, trying to access the LocalDB via connection string using this extension succeeds on ARM, even starting the database instance if previously stopped. I verified this behaviour calling sqllocaldb info mssqllocaldb before and after accessing the database using the SQL server extension, which gave me an Instance: Stopped with no instance pipe name formerly and an Instance: Running alongside an instance pipe name afterwards.
The Microsoft Surface Pro X has been configurated with a Microsoft SQ2 Processor and 16 GB RAM, running Windows 11 Build 22000.434 on arm64.

@Xenyr It this it should be: (localdb)\MSSQLLocalDB

@Xenyr I think it should be: (localdb)\MSSQLLocalDB

Absolutely, sorry for that typo. I had tested it with the backslash back then and therefore edited my comment.

I am experiencing the same issue with Windows 11 Arm/EF 6.06 /Visual Studio 2022 and localDB.  I can connect to localdb in SSMS and also visual studio server explorer,  but running migrations (update-database) always gives an error about being unable to connect to localdb.  I also tried a clean install of the new Visual Studio 2022 Preview (arm) thinking this would resolve it, but the issue is still there.
"DefaultConnection": "Server=(localdb)\mssqllocaldb;Database=aspnet-demo6-53bc9b9d-9d6a-45d4-8429-2a2761773502;Trusted_Connection=True;MultipleActiveResultSets=true"
Error Number:193,State:0,Class:20
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SNI_PN11, error: 56 - Unable to load the SQLUserInstance.dll from the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed.)

I am experiencing the same issue with Windows 11 Arm/EF 6.06 /Visual Studio 2022 and localDB. I can connect to localdb in SSMS and also visual studio server explorer, but running migrations (update-database) always gives an error about being unable to connect to localdb. I also tried a clean install of the new Visual Studio 2022 Preview (arm) thinking this would resolve it, but the issue is still there.
"DefaultConnection": "Server=(localdb)\mssqllocaldb;Database=aspnet-demo6-53bc9b9d-9d6a-45d4-8429-2a2761773502;Trusted_Connection=True;MultipleActiveResultSets=true"
Error Number:193,State:0,Class:20 A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SNI_PN11, error: 56 - Unable to load the SQLUserInstance.dll from the location specified in the registry. Verify that the Local Database Runtime feature of SQL Server Express is properly installed.)

Should have added also
Edition	Windows 11 Enterprise
Version	22H2
Installed on	6/10/2022
OS build	22621.160
Experience	Windows Feature Experience Pack 1000.22632.1000.0

FYI, I tried re-running my repro repo code (https://github.com/benday-inc/Benday.ArmDemo1) using Visual Studio Enterprise 2022 (ARM 64-bit) Version 17.3.0 Preview 6.0.  I'm still getting the same errors.
It would be really nice to be able to work with some kind of SQL Server on ARM64.  @JRahnama, are there any updates you could share on this?
Thanks,
-Ben

@benday MSSQLLocalDb is not supported on Win11 ARM64 so far. The SQLUserInstance.dll l is built for x64 and is not compatible for ARM64 and I am not sure who owns that library.

Ran into this issue when attempting to debug an ASP.NET 4.8 app on the Windows Dev Kit 2023 yesterday. Given that The VS 2022 ARM64 Preview installs SQL Server 2019 LocalDB as part of the ASP.NET/web development workload, I expected it would be ready.
Curiously, Azure Data Studio connects and runs queries fine (including using the same connection string), and I was able to get a .NET 6 console app to connect and run a query, but only when the build configuration is set to x64 (and not ARM64). The ASP.NET 4.8 still has the same issue when running as x64.
I've created a report in the Visual Studio feedback site, hopefully they're able to determine who owns the library and get it fixed.

Same here, just bought an Surface Pro 9 SQ3 now that Visual Studio has support for ARM64, but it is not possible to connect to localdb (even though it installs together with supported workload) from NET7/EF7. Azure Data Studio ARM64 can connect successfully so no issue with localdb per se.

I was curious if this was fixed under .NET Core 7 so I did an update to the repro repo.  https://github.com/benday-inc/Benday.ArmDemo1/tree/update-to-dotnet-7
Answer: nope.  Still broken.

I was curious if this was fixed under .NET Core 7 so I did an update to the repro repo. https://github.com/benday-inc/Benday.ArmDemo1/tree/update-to-dotnet-7
Answer: nope. Still broken.

Been broken forever...

I have the same issue. I'm using surface pro x (sq1). Here is my solution to this issue.
Please switch the platform to x64 or x86. Don't use anycpu for your project on ARM64 or you can't use LocalDB.
This is just a temporary solution. I hope SQLUserInstance.dll can support native ARM64.

I have the same issue. I'm using surface pro x (sq1). Here is my solution to this issue. Please switch the platform to x64 or x86. Don't use anycpu for your project on ARM64 or you can't use LocalDB. This is just a temporary solution. I hope SQLUserInstance.dll can support native ARM64.

I'm using a Mac and don't have the option for x86 or x64 ... did you create a new configuration or does VS show those on the Surface?

I have the same issue. I'm using surface pro x (sq1). Here is my solution to this issue. Please switch the platform to x64 or x86. Don't use anycpu for your project on ARM64 or you can't use LocalDB. This is just a temporary solution. I hope SQLUserInstance.dll can support native ARM64.

I'm using a Mac and don't have the option for x86 or x64 ... did you create a new configuration or does VS show those on the Surface?

Yes, I created a new configuration. You need to clieck "Any CPU", then click "Configuration Manager" -> click "Any CPU" -> "New". You will find all supported CPU platforms. Select x64 or x86, then click "OK"

Weirdly enough I've got an old app running RoundhousE, a database migration tool built against .NET 4.5 and uses some version of System.Data.dll. It's able to run migrations and populate the DB just fine. The app doesn't run with EF6 against SQL Local DB however, gets this error.

I second @jbogard findings. I had a .NET Framework app (.NET Framework 4.8) that worked just fine with Local DB, then after migrating it to .NET Core (.NET 8 actually), it started showing errors about connecting. Same connection string and everything.

Are there plans to remedy this?

I have the same issue. I'm using surface pro x (sq1). Here is my solution to this issue. Please switch the platform to x64 or x86. Don't use anycpu for your project on ARM64 or you can't use LocalDB. This is just a temporary solution. I hope SQLUserInstance.dll can support native ARM64.

I'm using a Mac and don't have the option for x86 or x64 ... did you create a new configuration or does VS show those on the Surface?

LocalDB isn't available for Mac - Are you running Local DB in Parallels and connecting to it from the Mac? On Mac an alternative that's worked for me is to run SQL Edge in Docker, works well for development purposes on my M3 Pro MBP (and was also fine on M1 MBA and M1 Pro MBP in the past)

@JRahnama is a fix for this issue planned or will localdb remain unsupported on Windows on ARM devices? It would be useful to have this available to avoid having to run alternatives such as SQL Edge in Docker - Especially since the rest of the modern .NET toolchain is now ARM Native (I think Azure functions are still an issue, but web and mobile has been a great experience so far)

I got around this on my Mac Windows/Arm VM just using these alternative install scripts.  The SQL express or any of the normal modern SQL servers run fine for me,  I didn't try the native localdb but it may work also.  You can just install the SQL server developer version and it should work.
https://github.com/jimm98y/MSSQLEXPRESS-M1-Install
I also did this as well prior so enable visual studio to connect using the arm64 dll for sql client.

Downloading the Microsoft.Data.SqlClient.SNI package in NuGet.

Copying Microsoft.Data.SqlClient.SNI.arm64.dll within build\net462 into C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\Microsoft\SQLDB\DAC (ensuring the version I copied across matched the version reported by Microsoft.Data.SqlClient.SNI.x64.dll).

Restarting Visual Studio and testing connections.
Upon restart, this enabled connections to my SQL Server Express instance running on the host within a Docker container. It seems to work for me (so far!) so I'm hoping it does for you too.

I worked around the issue by creating a SQL alias for the localdb named pipes connection and keeping that up to date (with the latest named pipes value for the localdb instance) via a scheduled task. Then your connection string server becomes LocalDbAlias, which is good enough for me.
https://dev.to/louisgordon/localdb-dev-on-windows11-arm-cm3

I got around this on my Mac Windows/Arm VM just using these alternative install scripts. The SQL express or any of the normal modern SQL servers run fine for me, I didn't try the native localdb but it may work also. You can just install the SQL server developer version and it should work.
https://github.com/jimm98y/MSSQLEXPRESS-M1-Install
I also did this as well prior so enable visual studio to connect using the arm64 dll for sql client.

Downloading the Microsoft.Data.SqlClient.SNI package in NuGet.
Copying Microsoft.Data.SqlClient.SNI.arm64.dll within build\net462 into C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\Microsoft\SQLDB\DAC (ensuring the version I copied across matched the version reported by Microsoft.Data.SqlClient.SNI.x64.dll).
Restarting Visual Studio and testing connections.
Upon restart, this enabled connections to my SQL Server Express instance running on the host within a Docker container. It seems to work for me (so far!) so I'm hoping it does for you too.

Just an FYI, I went this route as well to get "normal" SQL working, but it doesn't work for SQL Local DB. Unfortunately.

I am having the same issue - using Microsoft Surface Pro 11 with Windows 11. I have been able to work around it building as x64 but cannot see LocalDB from Visual Studio itself.


renaming the pulse module

What is the expected enhancement?
If we are going to call the sequence of pulses a schedule then I think we need to rename the module schedule as this is the main way the user uses it and pulse is like a gate that is used by the module.

I am open to renaming, I'm just not positive it is pulse->schedule that we wish to do.
I am relatively certain at some point in the future we will define a clock cycle for both quantum gates and classical instructions (mirroring classical computer architectures). This is almost a given in the distant future of on-chip implemented quantum gates, but also a useful abstraction for non-pulse devices. This would allow scheduling of quantum circuits with id (or nop) instructions.
If we rename the pulse module to schedule it will be a headache down the line. I think renaming Schedule -> PulseSchedule may be more appropriate, although given that it exists in the pulse module currently if proper namespacing is implemented with imports, ie.
import pulse
pulse.Schedule

it should be evident.
A large refactor is coming to the pulse module, it will likely end up with a PulseControlFlowGraph and PulseBlock being implemented as the underlying components of the Schedule, so now is an appropriate time to consider renaming.

Ideally this would wait till after 0.9 is out.

yeah not before but I want to see how it all fits with circuit and transpiler and future extensions. We can talk more just when doing the documentation noted this did not fit so wanted to make an issue.

the documentation is here https://qiskit.org/documentation/the_elements.html#terra

I think if it has to be a Pulse Schedule the Circuit should be a Quantum Circuit since semantically it is the same differentiation 😄 .
Also Github #3000 🎆 🍾 💯 !

feel free to update the documentation :-)

I'm not sure calling it schedule is a good idea, because we will be adding a scheduler module which also has a schedule method (and later also a rescheduler). I see how the other modules match object to module name better than pulse. I also like how it is now, I think pulse.Schedule has a nice clarity to it. Not sure if there is another naming scheme that wouldn't cause name conflicts.

Closing as stale. Feel free to reopen.


Extend documentation for Red Hat/CentOS

Currently the Makefile and the installation document are written for Debian based distributions.
It’d be great if the documentation could be extended. The “Apache group” on Red Hat/Cent OS is for example not www-data but apache.
I am willing to do this, but please advise how you want it to be done. A separate section, listing the differences? Add the alternate commands to the current document? A separate document? Just a link to a blog post, like Building a local Yubikey server infrastructure?

Good question. In many ways I prefer to recommend the use of packages over manual installation with the Makefile.
Maybe this should be done with a variable to make? so you'd do something like:
$ make install DIST=redhat


Added support for N-Triples and gzipped N-Triples

Closes #45. (For a more detailed description of the new features, please refer to the corresponding issue.)

Added RdfFileDataSource.
Tested RdfFileDataSource on the vlog java-bindings level, on the vlog4j level, as well as on the _vlog4j_level.
Wrote an example that uses .nt.gz files.
Did some minor code refactoring.

Please check the code again. All issues should have been resolved. The only remaining problem is the test for IncompatiblePredicateArityException with RdfFileDataSource, which is currently failing and therefore ignored.

All issues should be resolved now. Please re-check the code.

Sorry. I seem to have been lost in all the comments here, which led me to overlooking one. It should be fixed now. I also removed the loops.

I adapted the Javadoc of the RDF example and test accordingly and even made the CSV example and test consistent with these changes.


Citation .docx data Issue

I have given data which are japanese documents, I noticed whenever the data is a .docx file if I click on citation rather than showing the document it downloads it, how can I resolve this issue please help.

Please provide us with the following information:

This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful

Thanks! We'll be in touch soon.

This is an already known issue and it has nothing to do with the language of the document. Check here:
Do not show citations when the source file is not PDF #1492
ChatApp citation responses that show .docx document types don't appear in the citation window #1550


Feat/#77 header

:tada: This PR is included in version 1.31.0 :tada:
The release is available on:

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


rbenv install 2.3.8 FAILED

I'm in the middle of reinstalling my Ruby version 2.3.8. I didn't have any problems with my first installation, but I had some issues along the way (installation of gem and bundler, etc.) and based on my research the recommended solution was to uninstall. So I did, and now I'm reinstalling. However, I'm having problems.
This is the command that I typed:

rbenv install 2.3.8

And this is the result that I'm getting:

Downloading ruby-2.3.8.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.8.tar.bz2
Installing ruby-2.3.8...
BUILD FAILED (Ubuntu 18.04 using ruby-build 20190423)
Inspect or clean up the working tree at /tmp/ruby-build.20190505184003.14321
Results logged to /tmp/ruby-build.20190505184003.14321.log
Last 10 log lines:
CCLD     libffi.la
ar: 'u' modifier ignored since 'D' is the default (see 'U')
make[5]: Leaving directory '/tmp/ruby-build.20190505184003.14321/ruby-2.3.8/ext/fiddle/libffi-3.2.1'
make[4]: Leaving directory '/tmp/ruby-build.20190505184003.14321/ruby-2.3.8/ext/fiddle/libffi-3.2.1'
make[3]: Leaving directory '/tmp/ruby-build.20190505184003.14321/ruby-2.3.8/ext/fiddle/libffi-3.2.1'
linking shared-object fiddle.so
make[2]: Leaving directory '/tmp/ruby-build.20190505184003.14321/ruby-2.3.8/ext/fiddle'
make[1]: Leaving directory '/tmp/ruby-build.20190505184003.14321/ruby-2.3.8'
uncommon.mk:203: recipe for target 'build-ext' failed
make: *** [build-ext] Error 2

I've tried commands vagrant and ssh, as well as apt-get update. All have been successful, but when I finally proceed to install Ruby, the error above prompts.
Any help?

It looks like you're having problems with ruby-build, which is the plugin that provides the rbenv install command.

First, ensure that ruby-build is updated to the latest version.
If your problem persists, check existing issues in the ruby-build repo and open a new one if necessary. When opening a new issue, please attach the full build log.


MWPW-161804: Merch card style auditing

Adds specificity to merch card styles to avoid styling conflicts.
Resolves: MWPW-161804
Test URLs:

Before: https://main--mas--adobecom.hlx.live/studio.html?milolibs=ccd--milo--adobecom#path=ccd
After: https://main--mas--adobecom.hlx.live/studio.html?milolibs=mwpw-161804--milo--adobecom#path=ccd

suggestion for 'After' link:
https://mwpw-161804--milo--adobecom.hlx.live/libs/features/mas/docs/ccd.html
or
https://main--mas--adobecom.hlx.live/gallery/ccd.html?milolibs=mwpw-161804--milo--adobecom

@Axelcureno CCD gallry has this style div[slot='image']  which need update i guess ?


Set-AzsRegistration parameter fix

@kojinak : Thanks for your contribution! The author, @jeffgilb, has been notified to review your proposed change.

@jeffgilb - If you want to merge this, the best way is to pull the changes to the private repo, resolve the conflicts, and then merge. Instructions for this are in the CG.

This issue has already been addressed in a separate github issue. #please-close


container:release is not available

The docs make reference to container:release but this command has been removed.

also container:init

this commit removed init and release commands.
https://github.com/heroku/heroku-container-tools/commit/7d8b84959cd27ccc5e12a8929f323a3dc71e9753

How can I initialize the docker file now?

Temp fix in #163. In the meanwhile I hope someone from Heroku will roll back the commit or at least update the docs.


(DOCUMENT-729) Add context to static_catalogs setting.

Clarify how the static_catalogs setting behaves in the configuration reference, and link to context about what static catalogs are and how they work.

CLA signed by all contributors.

	This commit summary didn't match CONTRIBUTING.md guidelines:
		(DOCUMENT-729) Add context to static_catalogs setting.
	The commit summary (i.e. the first line of the commit message) should start with one of:
		(PUP-<digits>) # this is most common and should be a ticket at tickets.puppet.com
		(docs)
		(docs)(DOCUMENT-<digits>)
		(maint)
		(packaging)
	This test for the commit summary is case-insensitive.

It would be great if these specific rules were in CONTRIBUTING.md.


Running make test crashes on MacOS Sonoma with golang go1.22.5

What happened:
run make test it will crash with the following error:
=== Errors
ld: warning: '/private/var/folders/36/kbjrd7bn4cbgz8dpt50n5k5w0000gp/T/go-link-3088648823/000014.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626
ld: warning: '/private/var/folders/36/kbjrd7bn4cbgz8dpt50n5k5w0000gp/T/go-link-845880015/000014.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626
ld: warning: '/private/var/folders/36/kbjrd7bn4cbgz8dpt50n5k5w0000gp/T/go-link-99404289/000014.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626
ld: warning: '/private/var/folders/36/kbjrd7bn4cbgz8dpt50n5k5w0000gp/T/go-link-2652475332/000014.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626

What you expected to happen:
the build to succeed
How to reproduce it (as minimally and precisely as possible):
run make test
Anything else we need to know?:
Environment:

Kubernetes version:  v1.24.0
Kueue version : 64edc866
Cloud provider or hardware configuration: kind
OS (e.g: cat /etc/os-release): Sonoma Mac OS M1
Kernel :  Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000 arm64
Install tools:
Others:

Setting GOFLAGS to the following value make it run properly.
GOFLAGS=-ldflags=-extldflags=-Wl,-ld_classic make test

seen on the following issue: https://github.com/golang/go/issues/61229#issuecomment-1952798326

As mentioned in https://github.com/golang/go/issues/61229#issue-1793742809 as well, those are just warnings, not errors. Therefore,  even if you see those messages in Kueue, they are not crashing the tests.

NOTE -- please read
If you see lines starting with ld: warning but not other outputs, they are just warnings, not errors. You should still get a working binary, if there is no other output. Please only report if you see a link error, or a broken binary, or a warning that is not mentioned in the "warnings" section below. Thanks.
See #61229 (comment) for more notes about malformed LC_DYSYMTAB warning. Thanks.

/close I'm closing the issue as it is not a bug. If you have any additional questions, feel free to reopen the issue.

thanks @lrvingMg
You are correct; I was thinking it was crashing, but they are just in error in my case:
=== Errors
ld: warning: '/private/var/folders/36/kbjrd7bn4cbgz8dpt50n5k5w0000gp/T/go-link-3088648823/000014.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626
ld: warning: '/private/var/folders/36/kbjrd7bn4cbgz8dpt50n5k5w0000gp/T/go-link-845880015/000014.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626
ld: warning: '/private/var/folders/36/kbjrd7bn4cbgz8dpt50n5k5w0000gp/T/go-link-99404289/000014.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626
ld: warning: '/private/var/folders/36/kbjrd7bn4cbgz8dpt50n5k5w0000gp/T/go-link-2652475332/000014.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626

DONE 1585 tests, 4 errors in 50.377s

where, if I run the case with the mentioned parameters they will run without any erro
(base) akram@wadez-m1 kueue % GOFLAGS=-ldflags=-extldflags=-Wl,-ld_classic make test
[...]
∅  apis/kueue/v1alpha1 (18ms) (coverage: 0.0% of statements)
∅  apis/kueue/v1beta1 (19ms) (coverage: 0.0% of statements)
∅  apis/visibility/v1alpha1/openapi (21ms) (coverage: 0.0% of statements)
[...]
✓  pkg/util/useragent (1.589s) (coverage: 0.0% of statements in ./...)
✓  pkg/util/wait (1.565s) (coverage: 0.1% of statements in ./...)
✓  pkg/visibility/api/rest (1.597s) (coverage: 2.1% of statements in ./...)
✓  pkg/webhooks (1.725s) (coverage: 2.3% of statements in ./...)
✓  pkg/workload (1.584s) (coverage: 2.9% of statements in ./...)
✓  pkg/scheduler (7.321s) (coverage: 12.9% of statements in ./...)

DONE 1585 tests in 22.354s

@akram Yes,  the malformed LC_DYSYMTAB warning has been discussed by Go team https://github.com/golang/go/issues/61229#issuecomment-1988965927 as well.

A note about the malformed LC_DYSYMTAB warning: take a look at the object file name that is warned on:

if it is .../go.o, it is the object of the Go code. This is already fixed in recent versions of Go 1.20.x, 1.21.x, and 1.22.x, and should not appear with an up-to-date version of Go.

if it is .../00NNNN.o with some 6-digit number, it is a C object.

if you pass -race and you're using Go 1.22.x, it is probably the race detector's C code, as mentioned above cmd/link: issues with Apple's new linker in Xcode 15 beta #61229 (comment)
otherwise it is from user C code

The warning on the race detector C object is not really a bug in Go. Maybe we can fix in the upstream TSAN (also see #61229 (comment)). To work around, you could try

passing -ldflags=-extldflags=-Wl,-ld_classic to force the old Apple linker
passing -ldflags=-linkmode=internal to force using Go linker to do the whole linking (although it is not guaranteed to be able to handle all C objects)
also, an IDE should NOT treat warning as error by default.

Thanks.

So, as this is a non-issue, I wouldn't consider it as a Kueue bug.

/assign


fix(typegen): enable passing parameters to generated subscription in Angular

Issue #, if available:
fix #31
Description of changes:
The generated subscription code in angular service enable passing the parameters.
*In case of breaking customers' app, we remain the same output if no parameters are passed in schema definition.
Given a schema and sub operation as followings
schema.graphql
type Restaurant {
  id: ID!
  name: String!
  description: String!
  city: String!
  owner: String
  createdAt: AWSDateTime!
  updatedAt: AWSDateTime!
}

# ...other definitions

type Subscription {
  onCreateRestaurant(owner: String!): Restaurant @aws_subscribe(mutations: ["createRestaurant"])
  onUpdateRestaurant(owner: String!): Restaurant @aws_subscribe(mutations: ["updateRestaurant"])
  onDeleteRestaurant(owner: String!): Restaurant @aws_subscribe(mutations: ["deleteRestaurant"])
}

subscriptions.graphql
subscription OnCreateRestaurant($owner: String!) {
  onCreateRestaurant(owner: $owner) {
    id
    name
    description
    city
    owner
    createdAt
    updatedAt
  }
}

The new OnCreateRestaurantListener will be generated in API.service.ts
OnCreateRestaurantListener(
  owner: string
): Observable<SubscriptionResponse<OnCreateRestaurantSubscription>> {
  const statement = `subscription OnCreateRestaurant($owner: String!) {
      onUpdateRestaurant(owner: $owner) {
        id
        name
        description
        city
        owner
        createdAt
        updatedAt
      }
    }`;
  const gqlAPIServiceArguments: any = {
    owner
  };
  return API.graphql(
    graphqlOperation(statement, gqlAPIServiceArguments)
  ) as Observable<SubscriptionResponse<OnCreateRestaurantSubscription>>;
}

How are these changes tested:
jest angular
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Great, it will fix my issue, how long wait to release it?

Has this been released? I'm using "aws-amplify": "^3.3.22" but my generated API.service.ts still doesn't allow subscriptions with parameters.

@michaelvobejda It has been released in the latest Amplify CLI at version 4.44.2. The changes are made in codegen of amplify-cli but not aws-amplify. To use it, simply run npm i -g @aws-amplify/cli. After setting up backend, run amplify codegen and you are all set.

Hm, I already had 4.44.2 installed. Does it only work with the owner field or something? I have custom subscriptions by ID to listen for updates to a specific item, but those subscriptions are not generated in API.service.ts.
in schema.graphql:
type Subscription {
  onChannelByID(id: ID!): Channel
    @aws_subscribe(mutations: ["updateChannel"])

and all that's generated in my API.service.ts is:
  OnChannelByIdListener: Observable<
    SubscriptionResponse<OnChannelByIdSubscription>
  > = API.graphql(
    graphqlOperation(
      `subscription OnChannelById($id: ID!) {
        onChannelByID(id: $id) {
          __typename...

Am I missing something?

@michaelvobejda I am unable to reproduce your issue. There is another input for generating API.service.ts which is your GraqhQL operations. By default a src/graphql/subscription.graphql will be generated(can also be modified manually) and serve as the input for API generation. Could you check if the sub operation is correct in that file? The expected sub operation should be
subscription OnChannelByID($id: ID!) {
  onChannelByID(id: $ID) {
     __typename
     ...
  }
}

If the operation is correct, could you provide your .graphqlconfig.yml which should be generated under your project root? The expected one should be
projects:
  test:
    schemaPath: amplify/backend/api/test/build/schema.graphql
    includes:
      - src/graphql/**/*.graphql    #This is the input of graphql operations
    excludes:
      - ./amplify/**
    extensions:
      amplify:
        codeGenTarget: angular
        generatedFileName: src/app/API.service.ts
        docsFilePath: src/graphql
        region: us-west-2
        apiId: null
        maxDepth: 2
extensions:
  amplify:
    version: 3

The first fix worked, I just needed to add those feature flags. Thanks a lot @AaronZyLee!

Following @AaronZyLee's instructions, the new Restaurant project has correctly created API.service.ts.
Specifically, the methods that were created have new functionality.
OnDeleteRestaurantListener(
id: string
): Observable<SubscriptionResponse> {
const statement = `subscription OnDeleteRestaurant($id: String!) {
onDeleteRestaurant(id: $id) { ...
The id can be specified here. :-)
this.API.OnDeleteRestaurantListener('test-id').subscribe( (event: any ) => {   console.log(event);  });
However, if you add Restaurant to a project that was created (and is already release) around Amplify 4.40.x, the old method will be created.
(The 'Restaurant @model' is completely independent of the other @models.)
The following is the generated part.
OnDeleteRestaurantListener: Observable<
SubscriptionResponse

= API.graphql(
graphqlOperation(
`subscription OnDeleteRestaurant($owner: String!) {
onDeleteRestaurant(owner: $owner) { ...

Error on the caller.
this.API.OnDeleteRestaurantListener('test-id').subscribe( (event: any ) => {   console.log(event);  });
TS2349: This expression is not callable.Type 'Observable<SubscriptionResponse<OnDeleteRestaurantSubscription>>' has no call signatures.
I also tried the following command on an old project, but the API.service.ts did not change
amplify api gql-compile
(rm .graphqlconfig.yml) <- if need it.
amplify add codegen
Is there a way to add new functionality to an old project?

Additional work.
What I found out in my testing.

Old amplify projects pulled from git do not create a new API.
A newly created amplify project with the exact same schema is generated correctly.

".gitignore #amplify section" settings were the same.
If "rm -rf $oldproject/amplify" on the old project, it generates the old API.service.ts
It may be that some information is still written in other directories (or files?),
but I don't understand it.
Here is the additional work I did
-- OK pattern
$ ng new RTest
$ amplify init ; amplify add auth (cognito email) ; amplify push -y

$ cp ~/git/oldproject/schema.sdl .
$ amplify add api ; amplify push

-- NG pattern
$ git clone new_oldproject
$ cd new_oldproject
$ rm -r amplify/
$ amplify init ; amplify add auth (cognito email) ; amplify push -y

$ cp ~/git/$oldproject/amplify/backend/api/$oldproject/schema.graphql .
$ amplify add api
 ? Provide your schema file path:  schema.graphql
$ amplify push

Build Error
OnDeleteRestaurantListener('id').sucscript :
 TS2349: This expression is not callable


Fix travis build

Adjusted to the fork's import paths.

The go vet is probably something to disable for now? Upstream has changed to use keyed fields. I have not looked at the pflog decode error. Should I?

I skipped the PFlog test for now, since I think we don't need that in Packetbeat.
What's weird is that go vet returns no errors when running it locally..


Swift Package Manager support

Since Xcode 11 includes Swift Package Manager, it would be nice to support it

Any news on this? This should be fairly easy to setup

I want to switch to SPM too. Looking at Issues count I am worried that to project is no longer maintained at the moment

Any updates on Swift package support

I did do this by myself a couple of weeks back. https://github.com/zeusent/TagListView/commit/749d416331e975d310879100e91d492e53304262
Should I maybe make a PR?


add codefactor badge and commit activity badge

Codecov Report
Base: 62.59% // Head: 62.04% // Decreases project coverage by -0.54% :warning:

Coverage data is based on head (40e8014) compared to base (1e4c601).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
- Coverage   62.59%   62.04%   -0.55%
==========================================
  Files          14       14
  Lines         965     1283     +318
==========================================
+ Hits          604      796     +192
- Misses        361      487     +126

Flag
Coverage Δ

unittests
62.04% <ø> (-0.55%)
:arrow_down:

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

Impacted Files
Coverage Δ

nndt/haiku_modules.py
47.76% <0.00%> (-52.24%)
:arrow_down:

nndt/space/repr_sdt.py
55.17% <0.00%> (-36.26%)
:arrow_down:

nndt/space/sources.py
86.95% <0.00%> (-13.05%)
:arrow_down:

nndt/space/loaders.py
90.78% <0.00%> (-9.22%)
:arrow_down:

nndt/math_core.py
100.00% <0.00%> (ø)

nndt/trainable_task.py
30.08% <0.00%> (+30.08%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Kp_float Update

This PR slightly alters the way Kp_float is selected. Previously, Kp_float was based on the first above-rated index, but that can sometimes be very large, especially when we changed the array of wind speeds. Here, we interpolate to use rated wind speed + 0.5 m/s, which results in a similar gain to the one we used before; it has been tested/used in the weis branch and repo.

This has been updated in #31.


config: change show config to communicate env var overwrites

$ DCOS_URL=http://loalhost dcos --log-level=debug config show
core.dcos_acs_token ********
core.dcos_url http://loalhost       # overwritten by environment var DCOS_URL; config file value: http://<IP_ADDRESS>/

Can one of the admins verify this patch?

Apologies, there are a few awkward bits about this pull request.
1 - I don't know the git login of the fine programmer I wrote this with.  Given a list of my interviewers today, I could determine it.
2 - make test seems to assume virtualenv matches the python environment I was using to write and test; on this mac the default of virtualenv is 2.x and I was using 3.x.  I tested all the functionality manually but still there could be objections like PEP8 things.

Unrelated; I don't know how you do license  / copyright / attribution, but I would like to formally declare that this (trivial) code can be considered licensed irrevocably, transferrably, and indefinitely to Mesosphere Inc and the DC/OS open source project.

Aside: I'm not a big fan of this test I broke, mostly because I don't know what it is trying to test.
It did catch an unintended output change, so that's great, but it is not named in a way that suggests it's trying to validate error handling.  Single line of comment would go a long way.
def test_get_top_property(env):
    returncode, stdout, stderr = exec_command(
        ['dcos', 'config', 'show', 'core'], env=env)

    assert returncode == 1
    assert stdout == b''
    assert stderr.startswith(
        b"Property 'core' doesn't fully specify a value - "
        b"possible properties are:\n")

I think the check failures are unrelated?
CI/teamcity says:
[08:16:24]+ make clean env
[08:16:30]  Failed building wheel for MarkupSafe

I don't think this is a markup enforcement step, but rather an attempt to build the tool.
linux-binary says:

[08:07:02]Unable to find image 'linux-binary:1235' locally
[08:07:03]Pulling repository docker.io/library/linux-binary
[08:07:04]docker: Error: image library/linux-binary:1235 not found.
[08:07:04]See 'docker run --help'.
[08:07:04]Process exited with code 125

This one seems very definitely not related.

ok to test
@jsrodman thanks for contributing and continuing what we worked on yesterday! I've left a few comments.
Looks like you have syntax errors. See here. If you run tox -e py35-syntax (from the top level directory) it will run the syntax checker we use in the CI.
The linux CI failed building (unrelated to your change). I'm re-running the CI.

@tamarrow : i tried to raise some questions in the review yesterday, but didn't know what "pending" meant, until now.
As for the syntax checker, I did try, but ran into errors for both py35-syntax and py36-syntax.  Today, though, I think I figured out the right edits to tox.ini, should be correct now.
Putting off a squash for now.

This might be done, but having trouble running the test suite locally.  Again believe I manually tested all intended cases.  If tests pass and thumbs up, I'll squash it all.

Whoops, tox -e doesn't cover the whole project in one run.
Not sure about two complaints it has though, they seem worse than fixing them.

I have a huge pile of failures locally because I don't have a cluster to talk to, but I think I've fixed all the ones related to the changes I made.


Does not work with Laravel

It does not work with Laravel (5.4)
FatalErrorExceptionCannot redeclare url() (previously declared in laravel/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php:836)
in laravel/lib/drupal/includes/common.inc common.inc (line 2343)

I think it needs some kind of encapsulation. A similar error will appear in any framework that has a method url()

looks like the core of both drupal and laravel declare the function url().  No easy work around since both have at least one global function with the same name.
I'll update the readme to mention the Laravel incompatibility.
The next release of this package will use the Drupal API instead of bootstrapping Drupal.  That's the cleanest approach.


Cannot find module '@generouted/react-router/client' or its corresponding type declarations.

I am trying @generouted/react-router following steps mentioned in the plugin's readme.
The generated routes.gen.tsx contains an import
import { components, hooks } from '@generouted/react-router/client'

Looking into plugin's package.json I found these module exports
"exports": {
    ".": {
      "types": "./dist/index.d.ts",
      "require": "./dist/index.cjs",
      "import": "./dist/index.js"
    },
    "./client": {
      "types": "./src/client/index.ts",
      "import": "./src/client/index.ts"
    }
  },

but there is no src directory in the installed plugin module

Apologies if I have missed something.

Hey @manV, thanks for reporting this.
I realized that I forgot to add src/client to package.json's files, only dist was declared so it was the only available directory.
src/client is also now added and should exist in the published package.

The fix is in this release https://github.com/oedotme/generouted/releases/tag/v1.7.3


backdrop filter doesn't work on Fuchsia with vulkan enabled

In a render object's paint method I do the following which appears to be a no-op with Vulkan enabled.
        context.pushBackdropFilter(
          offset,
          new ImageFilter.blur(
            sigmaX: _scrimColor.alpha * _kAlphaToBlurRatio,
            sigmaY: _scrimColor.alpha * _kAlphaToBlurRatio,
          ),
          _paintScrim,
        );

Probably missing feature in Skia's Vulkan backend.  /cc @chinmaygarde

@apwilson Please mark this as a blocker if you need this fixed sooner. Thanks.

@apwilson We believe there's a good chance this is fixed now. Please let us know if it is not.

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.


Meet Our Team

Explore the faces and stories behind our success. Meet the talented individuals who make up our diverse team, each contributing their unique skills and perspectives.
Stay tuned as we add profiles with images and details of each contributor, showcasing their expertise and dedication to excellence.

what do you want to add ?

bro i want to add every contributors details like this

@Yaser-123 ss is not visible

I guess he want to add contributor avatars and names

check issue #52


My first branch adding a file

whatever this is ok whatever yeah man!!

this was an interesting review on this whole thing


[feat] add debug and clone derives to spotify client and credentials

This PR adds the Debug and Clone derives to Spotify and SpotifyClientCredentials.
Not sure whether we should add Serialize and Deserialize too.

I think it will better to add Serialize and Deserialize, perhaps others will need this feature.


fix: amplify-mock with build folder

Description of changes

Issue #, if available

Description of how you validated changes
Checklist

[ ] PR description included
[ ] yarn test passes
[ ] Tests are changed or added
[ ] Relevant documentation is changed or added (and PR referenced)
[ ] New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #8851 (5028b20) into master (fc31b1a) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #8851      +/-   ##
==========================================
- Coverage   56.55%   56.54%   -0.01%
==========================================
  Files         837      837
  Lines       47359    47366       +7
  Branches     9505     9505
==========================================
  Hits        26782    26782
- Misses      19766    19773       +7
  Partials      811      811

Impacted Files
Coverage Δ

packages/amplify-util-mock/src/storage/storage.ts
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc31b1a...5028b20. Read the comment docs.


how to check device connection status

Hello, I would like to ask if it is feasible for me to implement OnDisconnect and OnConnect to determine the online status of the device?
If a device reconnects to mqtt without disconnecting, reconnecting to the same clientId and username will disconnect the previous connection, but OnConnect will be triggered first and then OnDisconnect will cause the device to reconnect. However, based on the final OnDisconnect, I will determine that it is offline
Or is there any other good way to handle the device status in this situation

@Libong There are a few ways to go about this:

If you want to stick with only the hooks, you should most likely take a look at using OnDisconnect and OnSessionEstablished. It is quite common for OnDisconnect. to be fired after OnConnect and thusly leaving you with an incorrect value of online or offline if updating a database. OnSessionEstablised gives you a slightly more accurate look into if it is online.
If you are using V5, you can use LWT with a Will Delay Interval that are both marked as retain. This will give you a decent approximation of online or offline during network drops; however, the data can be incorrect during that Will Delay Interval
You can expose some sort of rpc endpoint that directly using the *Clients struct to get the most recent status from the struct itself; however, this should be avoided as if not done properly can have big knock on effects.
Use a ping type command in which you send a command to the device over the broker with a response topic and correlation data (V5)

All this to say, there are levels you can go on how important knowing if a device is Online or Offline; however, the nature of MQTT makes it hard to say that with absolute certainty. I tend to look at it as not Online or Offline, but Available or Unavailable.

There is a method Closed() (#130) for client can help you determine that.

Thank you for your feedback, but what I want to do is update the status in real time, and calling the closed function will have some latency. It would be strange to call it in the ondisconnect implementation.
However, the positions of OnSessionEstablished and Onconnect calls are both close to each other in the attachClient. My current situation is that after a device successfully connects, another device connects with the same connection parameters (the same client) and somehow closes the previous client to create a new one. In err=cl.Read (s. receivePacket), a use of closed network connection will be reported, and then err will be passed into OnDisconnect
So currently, we can only determine the err in OnDisconnect by
If there are any better suggestions, I hope you can provide them. Thank you

Is the goal to determine a connection is disconnected (OnDisconnect) because the client is taken over by another connection with the same clientID. If so, then there is isTakenOver in the ClientState indicating that. We can have an exported function to expose that information.

Okay, thank you for your reply


ConsoleView - Hide Get Pulse Pro menu option

Add the ability to hide the Get Pulse Pro menu option inside the ConsoleView

Hey, you can hide it by setting UserDefaults.standard.bool(forKey: "pulse-disable-support-prompts"). It's worth adding it to the public AppSettings class too.


chore: separate build step into typecheck and transpile

Motivation
Fixes #346.
Change Summary
Changes:

Build uses swc
Typecheck command: tsc --noEmit
turbo build depends on turbo typecheck

Some screenshots:

Merge Checklist
Choose all relevant options below by adding an x now or at any time before submitting for review

[x] PR title adheres to the conventional commits standard
[x] PR has a changeset
[x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore)
[x] PR does not require changes to the protocol

Additional Context
Read somewhere on docs Hubble doesn't use Turborepo caching because it's "not worth the risk" or something. (Forgot where it's located.) Both typecheck and build are cached in this PR. Is this an unwanted behavior?

@varunsrin thoughts on this PR? I know @deodad has one at https://github.com/farcasterxyz/hubble/pull/411, but it seemed outdated and stale, so I made another one with less diff. Curious what you both think.

Thanks for picking this back up @vinliao
A couple things need to happen during the build that aren't happening here:

output a .d.ts declaration files so the types are included in the npm package
output a CSJ entrypoint index.js and an ESM entrypoint index.mjs (see package.json)

Taking a step back and looking at #346 I don't think it's possible as specified since:

types need to be included in the build
to type check one package requires having the latest types of any dependencies, and since currently these are looked up in dist, type checking one requires building its dependencies first

My approach in #411 uses Project References to achieve:

type checking of any package without needing to build its dependencies since project references make it so type checking is done on the source code of referenced dependencies rather than their dist code
yarn build and yarn typecheck are fast since with incremental building the TS compiler understands the dependency tree and maintains a cache

When tsc --noEmit is run, the TS compiler will look at the local dist folders of the other hubble dependencies for their types and if those don't exist or are not up to date it won't compile as expected. As an example, if you run yarn clean in the root which will clear all dist folders and then run yarn tsc --noEmit from apps/hubble and it won't compile. So developing across the repo requires keeping the builds of all repo-located dependencies up to date.
#411 never got reviewed and got stale, so it's possible there may still be dragons (mostly around validating that the CSJ and ESM builds both work the same, I can describe how to do that if needed) but I'm fairly confident it's a solid approach. If you wanted you could revive and validate it that'd be awesome, but yes there will be a code freeze so no rush.

@vinliao can you run yarn typecheck --force? I don't think it's actually running since Turbo doesn't see any changes (see cache hit, replaying output). Another way to check is to actually cd into any of the leaf packages and run yarn typecheck

Heh, the first time it ran it was OK, (hence it was cached by Turbo). Now it outputs things like src/index.ts(1,15): error TS2307: Cannot find module '@farcaster/protobufs' or its corresponding type declarations. Still got some stuff to fix, thanks for pointing it out :)

Are you still working on this, @vinliao? No worries if not, just wanted to check before closing. Thanks!

Currently not, please close it :)


How to prevent 2co fraud check

On every payment 2checkout checking for fraud which delay to change payment status. Is there anyway to prevent 2co to stop fraud check like WHMCS?

I am afraid it is not possible at the moment.


Implement social login using Passport in react app powered by React-router.

Implementing social login while using node.js and server side routing is quite easy but implementing it with react-router and safely bypass all the security issues is a mess. Please try to record this cast asap.
Thank you very much.

Cool, thanks for the suggestion. Any reference materials you are aware of?

@cassiozen  https://github.com/arshdkhn1/react-router/tree/master/examples/auth-flow I have seen some jwt example on web but donno how they work atm. What I have done in some apps is to declare auth routes handler before catch*all  route handler for react-router. I want to see how social logic and both local passport strategies can be implemented. It will be really verry helpful if you make some react-casts about this topic.

I'll close this issue because the subject is a little too big for a 15-minute video, but if you have a different opinion, please feel free to reopen so we can keep the conversation going.
Again, thanks for the suggestion, please don't feel discouraged to make further suggestions in the future because this one wasn't used.


the plugin cannot be downloaded and the file is not displayed

Hello author, the plugin cannot be downloaded and the file is not displayed, as shown in the picture

Now it's okay


KAFKA-12317: fix documentation

Fix outdated documentation with regards to KAFKA-12317.

Thanks for the PR @florin-akermann. I agree with @AyoubOm that both statements you intend to remove are still correct? Seems the stream-stream join section did not talk about null-keys and thus left/outer join do not need an update? Might be worth to update the stream-stream inner join row, to point out that null-key records are dropped?
I also just checked FK-left join, and it still says (this statement is missing for inner-join though):

Records for which the foreignKeyExtractor produces null are ignored and do not trigger a join. If you want to join with null foreign keys, use a suitable sentinel value to do so (i.e. "NULL" for a String field, or -1 for an auto-incrementing integer field).

It seems https://github.com/apache/kafka/pull/14107 remove it incorrectly for inner join instead of left join?
Might be worth to go over the docs once more to double check (I made a pass, but might have missed something).

Thanks @AyoubOm & @mjsax

I agree with @AyoubOm that both statements you intend to remove are still correct?
Indeed, yes.

It seems https://github.com/apache/kafka/pull/14107 remove it incorrectly for inner join instead of left join?
Removed from left join and added old statement again to inner join.

Thanks for the PR @florin-akermann. Merged to trunk and cherry-picked to 3.8 and 3.7 branches.


How to find the order of items in the grid?

Hi,
Even after reordering items using drag and drop, the DIV tags of items are in the same order as were created, as the items use Absolute position to rearrange.
Is there any way to programmatically get the order of items from say left to right in the grid ?

Per the README (https://github.com/ksylvest/jquery-gridly)  a reordered callback can be included as a configuration option that should return the ordered jquery elements.

oops.. i missed it in the readme.!! my bad.  Thanks for pointing it out.


React Bug: "Uncaught TypeError: Cannot read property 'solve' of undefined at t.value (vis-network.min.js:33)"

I'm trying to use vis.js to render a Network Visualization using React.
However,  after installing all necessary packages the following errors are raised on the console
Console Errors
My implementation goes as follows (based on this tutorial: https://www.jamestharpe.com/react-visjs/)
https://github.com/murilobellatini/try-vis-network
Can you guys help me get this code working?
Thanks!

You can provide an empty object as third param in new Network()


Parquet reader can generate incorrect validity buffer information for nested structures

Describe the bug
Parquet decoding can produce an arrow array that will fail validation. In particular:

Arrays like StructArray generally expect that any nulls in non-nullable child arrays are "masked" - eg. if an the child array is null at some index, the parent array must also be.
The parquet decoders only generate nullability info for nullable fields.

This can go wrong when struct arrays are nested. Suppose we have a nested schema like: {outer: { inner: { primitive: utf8 } } }, where the primitive array is not nullable. The primitive array reader will generate a validity buffer in any case, but whether the outer structs do or not depends on whether they've themselves been declared nullable... so it's quite easy to end up with a struct with no validity buffer that has a non-nullable field of an array that does have nullability info, causing trouble.
To Reproduce
I've added a failing assert on a branch: https://github.com/apache/arrow-rs/compare/master...bkirwi:arrow-rs:parquet-bug
(Hopefully it's fairly uncontroversial that that assert should pass? I've also seen this fail in other places - eg. take on nested struct arrays will run validity checks and possibly error out - if this example isn't compelling.
Expected behavior
I believe that the result of decoding should be a valid array according to Arrow's internal checks.
Additional context
While the failing test is a map_array test, I think this is a more general issue - maps just happen to have the mix of deep structure and mixed nullability that trigger the issue.
I am not 100% confident of my diagnosis yet, though I think the general shape is correct; I plan to follow up next week with more information or a fix.

This sounds a lot like an issue I ran into on https://github.com/apache/arrow-rs/pull/4261.
My recollection is hazy, but I seem to remember this might be a limitation of the way masked nulls are computed during validation, in particular that it isn't recursive and only considers one level up.
Generating the intermediate null masks, whilst technically unnecessary, might be a way to get around this.

Ah, yeah, that does look similar.
I'd been thinking that we'd need to generate the intermediate null masks, but https://github.com/apache/arrow-rs/issues/4252 reminds me that it would be equally valid (and rather more efficient) to instead skip the null mask for the primitive array. I've pushed a small commit to the branch I linked above that does the naive thing: dropping the generated null mask instead of attaching it to the generated array data. And it does pass tests!

On reflection, skipping the null buffer for non-nullable fields feels best to me... both generating the intermediate null masks and dropping unnecessary null masks would fix the issue, so might as well bias to the one that involves less memory / compute.
I went ahead and opened the linked branch as a PR, though I'm happy to update it based on any other feedback on the issue here!

label_issue.py automatically added labels {'parquet'} from #6524


Apply smooth scroll for sections

I would like to work on this.

But this looks good, the issue is


Question about inference input normalization

Hello, i notice the latest document of inference may need a minor modification
I found that in .predict() there is a normalization step if the input is image path. So should we manually normalize it if the input is a numpy array?
The inference script (in current document)
import cv2
image = cv2.imread("path/to/image.jpg")
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
result = inferencer.predict(image)

should it be
import cv2
image = cv2.imread("path/to/image.jpg")
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)/255.0
result = inferencer.predict(image)

the output of above script is same as using the image path directly
result = inferencer.predict("path/to/image.jpg")

@blueclowd, you don't need to normalize the image. It is done here in the predict method:
https://github.com/openvinotoolkit/anomalib/blob/main/src/anomalib/deploy/inferencers/openvino_inferencer.py#L185-L186

if this documentation causes a confusion, maybe we could remove image reading part.

To sum up, there are two types of supported input format:

If the input is numpy array, we need to normalize it to make it between 0 and 1
If the input is image path, we don't need to normalize it cause it is done in the predict method

Its always good to support multiple types of input format, maybe just need to mention the manual normalization step if the input is numpy array?

@blueclowd, I have now modified the logic in the PR. If you are using OpenVINO for inference, the only thing that you need to do is to pass image path, PIL or np images. No normalization is needed. It is done under the hood


Petrol Power Plant Upgrade cost is wrong

The website says it costs 50 processed construction materials(tier 2 material) to upgrade a diesel power plant into a petrol power plant. This is incorrect, it costs 100 construction materials(the tier 1 material)

Done, thanks! 💙


Read and revise gpc crawler checklist & readME

Read the wiki checklist and make sure everything is clear.

Essentially, @sophieeng, @Mattm27, once time comes to perform the April 2024 crawl, you should be able to do it.

We'll revisit this in April when we crawl again


[Slot] Triggers a warning in dev mode about keys

Bug report
Current Behavior
Current warning is shown in the console:
Warning: Each child in a list should have a unique "key" prop.
Check the render method of `Slot`.

Reproducible example
https://codesandbox.io/s/jolly-cdn-5wor8
(don't mind the tailwind classes)
Suggested solution
I think the problem lies in here, no key attribute seems to appear:
https://github.com/radix-ui/primitives/blob/e9f43ed94b53a0c07279fddbe7371bd54a53cfd4/packages/react/slot/src/Slot.tsx#L17-L28
Your environment

Software
Name(s)
Version

Radix Package(s)
tooltip
0.1.1

React
n/a
17.0.2

Thanks for the report. A release candidate (@next) for the components has been published that fixes this :+1:

@davincios would you mind raising a new bug with a reproduction of your issue please? when trying to repro the original report with the latest version i don't see any slot warnings https://codesandbox.io/s/jovial-murdock-2dc221

receiving the same error:

code:
function RemoveUserButton() {
    return (
        <AD.Trigger asChild>
            <Button>
                <FontAwesomeIcon icon={['fas', 'x']} />
            </Button>
        </AD.Trigger>
    );
}

export function ManageUsersForRoleGridGridColumnDefinitionsCellRenderer(param: ICellRendererParams<Demo>) {
    return (
        <div className={styles['demo']}>
            <Alert
                action={DemoAction()}
                description='placeholde text for demo'
                title={`placeholder text for demo`}
            >
                <RemoveUserButton />
            </Alert>
        </div>
    );
}

Hey @StanlyLife, are you using React.forwardRef in your Button component?

Hey @StanlyLife, are you using React.forwardRef in your Button component?

Here is my button:
export type buttonTypes = 'button' | 'reset' | 'submit' | undefined;

export function Button({
    variant = '',
    children = '',
    className = '',
    type = 'button',
    onClick,
    ...other
}: {
    variant?: string;
    children?: any;
    className?: string;
    onClick?: () => void;
    type?: buttonTypes;
}) {
    return (
        <button {...other} className={`DEMO ${variant} ${className}`} onClick={onClick} ref={null} type={type}>
            {children}
        </button>
    );
}

Yep, you should use React.forwardRef and spread all props to it, something like:
const Button = React.forwardRef<HTMLButtonElement, YourButtonProps>((props, forwardedRef) => {
  return <button {...props} ref={forwardedRef} />
})

This worked great, thank you!
How come the error complains about the Slotclone component?

Because asChild's implementation relies on our Slot utility (which uses SlotClone).


[BUG]The undo is not working.

Has this bug been raised before?

[X] I have checked "open" AND "closed" issues and this is not a duplicate

Description
After some operations, the undo is not working.
Steps to Reproduce
For example:

Select multiple blocks with mouse and remove them. Then the undo is not working.
Select a normal text and turn it into Heading 1. Then the undo is not working.

I checked the issue history and found similar descriptions:
https://github.com/Darginec05/Yoopta-Editor/issues/226
https://github.com/Darginec05/Yoopta-Editor/issues/232
Environment

Browser: Chrome

Screenshots
No response
Do you want to work on this issue?
No
If "yes" to above, please explain how you would technically implement this
No response

It is currently in development finally

Added in v4.9.0


Datetime2 precision higher then Date object precision, losing information

Hi,
We are using fields of type datetime2(7), that means time at 100ns precision. The JavaScript Date object had a precision that equals datetime2(3), this is 1ms precision.
When you select from a table with datetime2(7) fields that data is put in JS Date objects, losing information in the process. Depending on the precision of the field a JS Date object can be used, but when the precicion is higher some other option should be used that can store the information and can be understood by the driver and sent to SQL Server.
Is this something that has been a problem for other people and / or is this something for which a change of fix is planned or simply something that I have missed?
If this is a problem that is not yet addressed, then some pointer on where I can try to make modifications to support this in our case and of course make any changes avaliable for review and possible integration in the main code is much appreciated.
Best Regards,
Marcel

I have just looked at the code and saw the nanosecondsDelta property. That should be what I need I think.


No outputs for FAST5

No output is generated for FAST5 files containing single or multiple datasets:

I also tried using the sequencing_summary.txt file as the input with the same result. This file produces results with PycoQC and MinIONQC so it does not appear to be an issue with the file:

@jonperdomo sequencing_summary.txt might be different for various basecallers. Please check the format (sequencing_summary.txt) with the code to see how to improve it.

Unthreaded implementation is complete.


python3Packages.woob cannot be used as a CLI application

Describe the bug
When used through the command line, woob complains about imports and fails.
Steps To Reproduce
$ nix shell nixpkgs#python3Packages.woob

$ woob
usage: woob [--version] <command> [<args>]

Use one of this commands:
   bands           (unable to load: No module named 'woob_applications')
   bank            (unable to load: No module named 'woob_applications')
   bill            (unable to load: No module named 'woob_applications')
   books           (unable to load: No module named 'woob_applications')
   bugtracker      (unable to load: No module named 'woob_applications')
   calendar        (unable to load: No module named 'woob_applications')
   cinema          (unable to load: No module named 'woob_applications')
   cli             (unable to load: No module named 'woob_applications')
   config          (unable to load: No module named 'woob_applications')
   contentedit     (unable to load: No module named 'woob_applications')
   dating          (unable to load: No module named 'woob_applications')
   debug           (unable to load: No module named 'woob_applications')
   gallery         (unable to load: No module named 'woob_applications')
   gauge           (unable to load: No module named 'woob_applications')
   geolocip        (unable to load: No module named 'woob_applications')
   housing         (unable to load: No module named 'woob_applications')
   job             (unable to load: No module named 'woob_applications')
   lyrics          (unable to load: No module named 'woob_applications')
   money           (unable to load: No module named 'woob_applications')
   msg             (unable to load: No module named 'woob_applications')
   parcel          (unable to load: No module named 'woob_applications')
   paste           (unable to load: No module named 'woob_applications')
   pricecompare    (unable to load: No module named 'woob_applications')
   radio           (unable to load: No module named 'woob_applications')
   recipes         (unable to load: No module named 'woob_applications')
   repos           (unable to load: No module named 'woob_applications')
   rpg             (unable to load: No module named 'woob_applications')
   shop            (unable to load: No module named 'woob_applications')
   smtp            (unable to load: No module named 'woob_applications')
   subtitles       (unable to load: No module named 'woob_applications')
   torrent         (unable to load: No module named 'woob_applications')
   translate       (unable to load: No module named 'woob_applications')
   travel          (unable to load: No module named 'woob_applications')
   video           (unable to load: No module named 'woob_applications')
   weather         (unable to load: No module named 'woob_applications')

For more information about a command, use:
   $ man woob-<command>
or
   $ woob <command> --help

$ woob bank
Traceback (most recent call last):
  File "/nix/store/9h14mlz6gn9mzss5gmb848ms051ap5lm-python3.11-woob-3.6/lib/python3.11/site-packages/woob/launcher.py", line 52, in load_app
    app_module = importlib.import_module("woob.applications.%s" % app)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/gd3shnza1i50zn8zs04fa729ribr88m9-python3-3.11.8/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/nix/store/9h14mlz6gn9mzss5gmb848ms051ap5lm-python3.11-woob-3.6/lib/python3.11/site-packages/woob/applications/bank/__init__.py", line 19, in <module>
    from .bank import Appbank
  File "/nix/store/9h14mlz6gn9mzss5gmb848ms051ap5lm-python3.11-woob-3.6/lib/python3.11/site-packages/woob/applications/bank/bank.py", line 29, in <module>
    from woob.core.bcall import CallErrors
  File "/nix/store/9h14mlz6gn9mzss5gmb848ms051ap5lm-python3.11-woob-3.6/lib/python3.11/site-packages/woob/core/__init__.py", line 21, in <module>
    from .woob import Woob, WoobBase
  File "/nix/store/9h14mlz6gn9mzss5gmb848ms051ap5lm-python3.11-woob-3.6/lib/python3.11/site-packages/woob/core/woob.py", line 31, in <module>
    from woob.core.modules import ModulesLoader, RepositoryModulesLoader
  File "/nix/store/9h14mlz6gn9mzss5gmb848ms051ap5lm-python3.11-woob-3.6/lib/python3.11/site-packages/woob/core/modules.py", line 26, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/nix/store/9h14mlz6gn9mzss5gmb848ms051ap5lm-python3.11-woob-3.6/bin/.woob-wrapped", line 9, in <module>
    sys.exit(Launcher.run())
             ^^^^^^^^^^^^^^
  File "/nix/store/9h14mlz6gn9mzss5gmb848ms051ap5lm-python3.11-woob-3.6/lib/python3.11/site-packages/woob/launcher.py", line 106, in run
    return cls.run_app(sys.argv[1], sys.argv[2:])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/9h14mlz6gn9mzss5gmb848ms051ap5lm-python3.11-woob-3.6/lib/python3.11/site-packages/woob/launcher.py", line 60, in run_app
    app_class = cls.load_app(app)
                ^^^^^^^^^^^^^^^^^
  File "/nix/store/9h14mlz6gn9mzss5gmb848ms051ap5lm-python3.11-woob-3.6/lib/python3.11/site-packages/woob/launcher.py", line 54, in load_app
    app_module = importlib.import_module("woob_applications.%s" % app)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/gd3shnza1i50zn8zs04fa729ribr88m9-python3-3.11.8/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'woob_applications'

Notify maintainers
@DamienCassou

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.6.26, NixOS, 24.05 (Uakari), 24.05.20240412.cfd6b5f`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.2`
- channels(root): `"home-manager-23.05.tar.gz, nixos-23.05"`
- nixpkgs: `/nix/store/yy5l09gfsagkv8rswblknmsjc2gyr20d-source`

Add a :+1: reaction to issues you find important.

@DamienCassou I've opened https://github.com/NixOS/nixpkgs/pull/310826 but haven't had the time to test it quite yet. If you get around to it before me feel free to merge it

I suggest another fix in https://github.com/NixOS/nixpkgs/pull/311014.


Sir Please tell me how we perform click function through this library

sir notification works fine what when we click on notification noting is happened sir please tell me how we perform click function on notification

You can check the section I updated and added the library.
https://github.com/uguraltinsoy/FCMSend#if-there-is-a-click-action

thanks to update the library but still, when we click on notification nothing is happening i just want when the user to click on notification its launch app particular activity

Is your manifest file correct?

yes my manifest is correct

I get notification but it doesn't open when I click it, right?

yes sir

thank you so much sir you help me a lot and your service class miss this line of code so click is not work i add these line and its work
Intent intent=new Intent(getApplicationContext(), Splash.class);
    intent.putExtra("title",title);

    PendingIntent pendingIntent= PendingIntent.getActivity(
            getApplicationContext(),100,intent,PendingIntent.FLAG_CANCEL_CURRENT);

    NotificationCompat.Builder builder=

            new NotificationCompat.Builder(getApplicationContext(), investment_payment_act.CHANNEL_ID)
                    .setSmallIcon(R.mipmap.ic_launcher)
                    .setContentTitle(title)
                    .setContentIntent(pendingIntent)
                    .setContentText(text)
                    .setSound(RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION))
                    .setPriority(NotificationCompat.PRIORITY_DEFAULT);

    NotificationManagerCompat notificationManagerCompat= NotificationManagerCompat.from(getApplicationContext());

    notificationManagerCompat.notify(1,builder.build());


Access csv files via DictWriter / DictReader only

Don't do things like:
            with open(map_codes_output_path, "r") as csvfile:
                reader = csv.reader(csvfile)
                next(reader)
                map_codes = [int(row[0]) for row in reader]

Open/close all csv files via DictReaders, and read/write to them using dictionaries, so that it's documented what fields you are using how.

This has now been changed to pandas for all csv file creation.


Technical Dept: Remove Icon-Support of https://erikflowers.github.io/weather-icons/

Until version 0.9 icons from https://erikflowers.github.io/weather-icons/ were used. This support was removed in version 0.9. However, these icons remained in the repo for backward compatibility.
Now the repo can be "cleaned". => So remove icons from erikflowers

Fixed with release 1.0.5


"Permission denied (os error 13)" by running Function on Docker local-dev

Discussed in https://github.com/orgs/supabase/discussions/14996

Originally posted by Pictor13 June 13, 2023
On local-development I seem to have an issue with filesystem permissions, over the deno Docker container.
When trying to access an Edge Function file, Deno fails with error: Permission denied (os error 13).
I docker-exec -it $deno_container bash into docker ps | grep deno and can see that:

id returns the user deno, having UID & GID equal to 1993
ls -la /home/deno/functions/my-function/index.ts shows onwer UID and group GID as equal to 1000

uid/gid 1000 is usually corresponding to the docker user; when it appears in a container usually is the sign of some volume mount of some sort.

Is this the case?
I saw the /app/Dockerfile simply copies the files, from localhost to the container, but I don't see why they should have this mismatching file permissions.
Can somebody check in their working docker local-dev if the 2 commands above return the same results as me?
At the moment I am unable to test functions locally.
What could be causing the error?
What can I try to restore the correct functionality?
Could this be a bug?

More info
I run:

supabase start
supabase functions serve my-function --debug

it outputs:

Download https://esm.sh/v125/<EMAIL_ADDRESS>Download https://esm.sh/v125/<EMAIL_ADDRESS>Download<EMAIL_ADDRESS>Download https://esm.sh/v125/<EMAIL_ADDRESS>Download https://esm.sh/v125/node.ns.d.ts
Download<EMAIL_ADDRESS>Download<EMAIL_ADDRESS>2023/06/13 03:17:16 Sent Header: Host [docker]
2023/06/13 03:17:16 Sent Header: User-Agent [Go-http-client/1.1]
2023/06/13 03:17:16 Send Done
2023/06/13 03:17:16 Recv First Byte
Serving supabase/functions/my-function
2023/06/13 03:17:16 Sent Header: Host [docker]
2023/06/13 03:17:16 Sent Header: User-Agent [Go-http-client/1.1]
2023/06/13 03:17:16 Sent Header: Content-Length [805]
2023/06/13 03:17:16 Sent Header: Content-Type [application/json]
2023/06/13 03:17:16 Send Done
2023/06/13 03:17:16 Recv First Byte
Watcher Process started.
Check file:///home/deno/functions/my-function/index.ts
error: Permission denied (os error 13)
Watcher Process finished. Restarting on file change...

Additionally

I also tried supabase stop and start again to see if it would reset the image & containers, but nothing changed
I tried to chmod 777 the index.ts file inside the container but user deno has no rights to do so and sudo is not available.

Closing as no longer relevant. Feel free to reopen if there's any issue related to edge runtime.


Expire

i create a key and expire on this day?

no. Out Date Format: MONTH/DAY/YEAR (31 days)

is active for 31days?


(Client question) Process Tomography: Building circuits

A client asked the following question:
I was looking at the documentation for building the process tomography circuits and noticed that the measurement and preparation qubits can be different, but must be the same length. Is it possible to
a.) prepare the tomography circuits with a different number of preparation and measurement qubits and
b.) obtain the fitted Choi matrix with the standard fitters with a different number of prep and measurement qubits?
They are currently using their own script to do both tasks, but I was wondering if there is any way to complete either in Qiskit and if there is documentation for it? Also, are there plans to add process tomography into Qiskit Experiments and would this question apply to that repo instead?

As far as I know QPT is already in qiskit-experiments (https://github.com/Qiskit/qiskit-experiments/tree/main/qiskit_experiments/library/tomography). But I don't see a tutorial about it. @chriseclectic can provide more accurate answers.