The "Microsoft.AspNetCore.Razor.Tasks.DiscoverDefaultScopedCssItems" task could not be loaded

Hi, just updated dotnet to 5.0.102 and now the follow error occurs loading this extension:
fail: OmniSharp.MSBuild.ProjectLoader
The "Microsoft.AspNetCore.Razor.Tasks.DiscoverDefaultScopedCssItems" task could not be loaded from the assembly /usr/lib64/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/build/netstandard2.0/../../tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll. Invalid Image Confirm that the  declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
Any help fixing the issue is appreciated.
OmniSharp log
Starting OmniSharp server at 1/22/2021, 12:05:48 PM
Target: /home/cisadmin/sample-dotnet-projec1/test
OmniSharp server started.
Path: /home/cisadmin/.vscode/extensions/ms-dotnettools.csharp-1.23.8/.omnisharp/1.37.5/run
PID: 64366
    Starting OmniSharp on centos 8.0 (x64)

    DotNetPath set to dotnet

    Located 1 MSBuild instance(s)
        1: StandAlone 16.8.0 - "/home/cisadmin/.vscode/extensions/ms-dotnettools.csharp-1.23.8/.omnisharp/1.37.5/omnisharp/.msbuild/Current/Bin"

    MSBUILD_EXE_PATH environment variable set to '/home/cisadmin/.vscode/extensions/ms-dotnettools.csharp-1.23.8/.omnisharp/1.37.5/omnisharp/.msbuild/Current/Bin/MSBuild.exe'

    Registered MSBuild instance: StandAlone 16.8.0 - "/home/cisadmin/.vscode/extensions/ms-dotnettools.csharp-1.23.8/.omnisharp/1.37.5/omnisharp/.msbuild/Current/Bin"
        CscToolExe = csc.exe
        MSBuildToolsPath = /home/cisadmin/.vscode/extensions/ms-dotnettools.csharp-1.23.8/.omnisharp/1.37.5/omnisharp/.msbuild/Current/Bin
        CscToolPath = /home/cisadmin/.vscode/extensions/ms-dotnettools.csharp-1.23.8/.omnisharp/1.37.5/omnisharp/.msbuild/Current/Bin/Roslyn
        BypassFrameworkInstallChecks = true
        MSBuildExtensionsPath = /home/cisadmin/.vscode/extensions/ms-dotnettools.csharp-1.23.8/.omnisharp/1.37.5/omnisharp/.msbuild

    Detecting Cake files in '/home/cisadmin/sample-dotnet-projec1/test'.

    Could not find any Cake files

    No solution files found in '/home/cisadmin/sample-dotnet-projec1/test'

    Queue project update for '/home/cisadmin/sample-dotnet-projec1/test/test.csproj'

    Detecting CSX files in '/home/cisadmin/sample-dotnet-projec1/test'.

    Could not find any CSX files

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140

    Configuration finished.

    Loading project: /home/cisadmin/sample-dotnet-projec1/test/test.csproj

    Omnisharp server running using Stdio at location '/home/cisadmin/sample-dotnet-projec1/test' on host 64206.

    The "Microsoft.AspNetCore.Razor.Tasks.DiscoverDefaultScopedCssItems" task could not be loaded from the assembly /usr/lib64/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/build/netstandard2.0/../../tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll. Invalid Image Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

    Failed to load project file '/home/cisadmin/sample-dotnet-projec1/test/test.csproj'.

/home/cisadmin/sample-dotnet-projec1/test/test.csproj
/usr/lib64/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.ScopedCss.targets(118,3): Error: The "Microsoft.AspNetCore.Razor.Tasks.DiscoverDefaultScopedCssItems" task could not be loaded from the assembly /usr/lib64/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/build/netstandard2.0/../../tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll. Invalid Image Confirm that the  declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
    Attempted to update project that is not loaded: /home/cisadmin/sample-dotnet-projec1/test/test.csproj

Steps to reproduce
dotnet new webapi -n test
code .
Expected  behavior
C# extension would load
Actual behavior
C# extension fails to load
VS Code version:
1.52.1
C# Extension version:
1.23.8
Please paste the output from your clipboard$ dotnet --info
.NET SDK (reflecting any global.json):
Version:   5.0.102
Commit:    71365b4d42
Runtime Environment:
OS Name:     centos
OS Version:  8
OS Platform: Linux
RID:         centos.8-x64
Base Path:   /usr/lib64/dotnet/sdk/5.0.102/
Host (useful for support):
Version: 5.0.2
Commit:  cb5f173b96
.NET SDKs installed:
5.0.102 [/usr/lib64/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.2 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.2 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download

Is there any file that I can try to modify to get around this issue?  Thanks,

Is there any file that I can try to modify to get around this issue?  Thanks,

Hello?

Hello?

I tried install from:
sudo rpm -Uvh https://packages.microsoft.com/config/centos/8/packages-microsoft-prod.rpm
yum install dotnet-sdk-5.0
Issue was still present.

I tried install from:
sudo rpm -Uvh https://packages.microsoft.com/config/centos/8/packages-microsoft-prod.rpm
yum install dotnet-sdk-5.0
Issue was still present.

Tried v1.23.9-beta2 this morning.  Error exists there as well.  Where do I find instructions on compiling the source code into .vsix to diagnosis this further?

Tried v1.23.9-beta2 this morning.  Error exists there as well.  Where do I find instructions on compiling the source code into .vsix to diagnosis this further?

@NTaylorMullen @ryanbrandenburg do you have any ideas what might be causing this? Also, this doesn't seem like an OmniSharp issue to me

@NTaylorMullen @ryanbrandenburg do you have any ideas what might be causing this? Also, this doesn't seem like an OmniSharp issue to me

I thinking the issue is with the actually dotnet-sdk installation since once it was upgraded the issue started to occur.  I try an isolate the issue a bit further I installed my development environment on Ubuntu 20.04 LTS and setup "Remote - SSH".  I was able to install the C# extension on the remote visual code ssh connection without the same error.  Who maintains the dotnet-sdk-5.0 rpm package RHEL or Microsoft?  Should I open a issue about this inside the larger dotnet/sdk project?

I thinking the issue is with the actually dotnet-sdk installation since once it was upgraded the issue started to occur.  I try an isolate the issue a bit further I installed my development environment on Ubuntu 20.04 LTS and setup "Remote - SSH".  I was able to install the C# extension on the remote visual code ssh connection without the same error.  Who maintains the dotnet-sdk-5.0 rpm package RHEL or Microsoft?  Should I open a issue about this inside the larger dotnet/sdk project?

Ok, I see now that on the Ubuntu 20.04 LTS dotnet-sdk-5.0 package installation it installed:
/usr/share/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll
/usr/share/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/tasks/net5.0/Microsoft.NET.Sdk.Razor.Tasks.dll
However, my CentOS 8 only has the following file installed:
/usr/lib64/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/tasks/net5.0/Microsoft.NET.Sdk.Razor.Tasks.dll
So it appears that in RHEL/CentOS 8 the following file(s) are missing:
/usr/lib64/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll
ls -la tasks/net46/
-rw-r--r-- 1 root root  77192 Dec 14 20:17 Microsoft.NET.Sdk.Razor.Tasks.dll
-rw-r--r-- 1 root root 189832 Dec 14 20:17 System.Collections.Immutable.dll
-rw-r--r-- 1 root root 464776 Dec 14 20:17 System.Reflection.Metadata.dll

Ok, I see now that on the Ubuntu 20.04 LTS dotnet-sdk-5.0 package installation it installed:
/usr/share/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll
/usr/share/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/tasks/net5.0/Microsoft.NET.Sdk.Razor.Tasks.dll
However, my CentOS 8 only has the following file installed:
/usr/lib64/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/tasks/net5.0/Microsoft.NET.Sdk.Razor.Tasks.dll
So it appears that in RHEL/CentOS 8 the following file(s) are missing:
/usr/lib64/dotnet/sdk/5.0.102/Sdks/Microsoft.NET.Sdk.Razor/tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll
ls -la tasks/net46/
-rw-r--r-- 1 root root  77192 Dec 14 20:17 Microsoft.NET.Sdk.Razor.Tasks.dll
-rw-r--r-- 1 root root 189832 Dec 14 20:17 System.Collections.Immutable.dll
-rw-r--r-- 1 root root 464776 Dec 14 20:17 System.Reflection.Metadata.dll

@SteveSandersonMS Given this is in relation to the CSS isolation bits, do you have insight here?

@SteveSandersonMS Given this is in relation to the CSS isolation bits, do you have insight here?

The following resolved the error for me on CentOS 8:
sudo yum remove dotnet-sdk
sudo yum install dotnet-sdk-5.0-5.0.101-1 aspnetcore-runtime-5.0-5.0.1-1 aspnetcore-targeting-pack-5.0-5.0.0-1 dotnet-apphost-pack-5.0-5.0.1-1 dotnet-host-5.0.1-1 dotnet-hostfxr-5.0-5.0.1-1 dotnet-runtime-5.0-5.0.1-1 dotnet-targeting-pack-5.0-5.0.0-1
Appears some things moved around on the reinstall in terms of file location for the Microsoft.NET.Sdk.Razor.Tasks.dll:
/usr/share/dotnet/sdk/5.0.101/Sdks/Microsoft.NET.Sdk.Razor/tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll
/usr/share/dotnet/sdk/5.0.101/Sdks/Microsoft.NET.Sdk.Razor/tasks/net5.0/Microsoft.NET.Sdk.Razor.Tasks.dll
How can this be resolved?

The following resolved the error for me on CentOS 8:
sudo yum remove dotnet-sdk
sudo yum install dotnet-sdk-5.0-5.0.101-1 aspnetcore-runtime-5.0-5.0.1-1 aspnetcore-targeting-pack-5.0-5.0.0-1 dotnet-apphost-pack-5.0-5.0.1-1 dotnet-host-5.0.1-1 dotnet-hostfxr-5.0-5.0.1-1 dotnet-runtime-5.0-5.0.1-1 dotnet-targeting-pack-5.0-5.0.0-1
Appears some things moved around on the reinstall in terms of file location for the Microsoft.NET.Sdk.Razor.Tasks.dll:
/usr/share/dotnet/sdk/5.0.101/Sdks/Microsoft.NET.Sdk.Razor/tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll
/usr/share/dotnet/sdk/5.0.101/Sdks/Microsoft.NET.Sdk.Razor/tasks/net5.0/Microsoft.NET.Sdk.Razor.Tasks.dll
How can this be resolved?

@NTaylorMullen Looks like an issue in the SDK packaging, if it can be fixed by moving assembly files around. It seems like the CSS isolation task just happens to be the first thing it's trying to load.

@NTaylorMullen Looks like an issue in the SDK packaging, if it can be fixed by moving assembly files around. It seems like the CSS isolation task just happens to be the first thing it's trying to load.

I had a problem with https://github.com/dotnet/sdk/issues/15863 and completely removed all dotnet packages, disabled the MS prod repo and installad dotnet-sdk-3.1 and dotnet-sdk-5.0 again. With dotnet 5.0.102 I now have the same problem loading a Blazor Server project. Is there anything I can install/change to make this work again until this is fixed?

I tried @Kampfmoehre solution above and it worked.
It seems there are two different microsoft repos for dotnetcore that one can install from in Fedora:
The one that fixes it is pointing to baseurl=https://packages.microsoft.com/fedora/33/prod/
The one I was previously pointing to was baseurl=https://packages.microsoft.com/rhel/7/prod/

@ Kampfmoehre Just had to say thank you. Your solution worked for me. I am using Fedora 33 also, and I also had to install compat-openssl10 package. That one I had to get from the default repository so:
sudo dnf install compat-openssl10
is the command that worked for me.

I'm facing the same issue, but I'm using Arch Linux, updated to the latest version of .NET 5 today. My output for dotnet --info is very similar to that of @Kampfmoehre
.NET SDK (reflecting any global.json):
 Version:   5.0.104
 Commit:    ca6b6acadb

Runtime Environment:
 OS Name:     arch
 OS Version:
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /usr/share/dotnet/sdk/5.0.104/

Host (useful for support):
  Version: 5.0.4
  Commit:  269e323b5f

.NET SDKs installed:
  3.1.112 [/usr/share/dotnet/sdk]
  5.0.104 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.12 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.4 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.12 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.4 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

The following .NET-related packages are installed:
aspnet-runtime 5.0.4.sdk104-1
aspnet-runtime-3.1 3.1.12.sdk112-3
aspnet-targeting-pack 5.0.4.sdk104-1
aspnet-targeting-pack-3.1 3.1.12.sdk112-3
dotnet-host 5.0.4.sdk104-1
dotnet-runtime 5.0.4.sdk104-1
dotnet-runtime-3.1 3.1.12.sdk112-3
dotnet-sdk 5.0.4.sdk104-1
dotnet-sdk-3.1 3.1.12.sdk112-3
dotnet-targeting-pack 5.0.4.sdk104-1
dotnet-targeting-pack-3.1 3.1.12.sdk112-3

Building from command-line runs just fine, leading me to believe this is a problem with Omnisharp itself.

I am using Fedora 33 and the sdk is provided by Fedora Update Repo too. It seems one SDK was installed via updates and one via ms prod repo and this is causing many problems. After removing all dotnet packages and install the SDKs again now Omnisharp seems to work without any error messages.

Do you find that every time you update Fedora the problem resurfaces? I know I need to learn how to selectively update my system. I wonder if we can report this to the Fedora packages, and asked to be fixed.

Hi, I am one of the developers involved in building .NET from source (source-build) as well as one of the maintainers packaging .NET in Fedora.

Do you find that every time you update Fedora the problem resurfaces? I know I need to learn how to selectively update my system.

I am not surprised. When two package repositories provide packages with same names, the one with the higher version gets installed. And it's hard to be sure what happens if they are at the same version. So it's possible you get a .NET SDK from the Microsoft package repository and a .NET host from the Fedora package repository. Mixing them doesn't work.
If you know you always want to use the Microsoft packages (or always want to use the Fedora packages) you can make use of repo priorities. Basically, you can give a package repository a higher priority and dnf/yum will always pick the package from there if multiple repositories provide it.
For example, if you always want to use the packages from the Microsoft repository, you can use this command once you have installed the Microsoft package repository:
sudo dnf config-manager --save --setopt="*microsoft-*.priority=50"

This assigns a higher priority to the Microsoft package repository. Any future yum/dnf commands will prefer to use packages from there once you run this command.
I wrote up more detail about it here: https://github.com/dotnet/runtime/issues/47500#issuecomment-768326713
Obviously, we would love it if the packages provided by Fedora worked out of the box for you and you didn't need extra packages from elsewhere, but this sort of workaround might save you some hassle while we fix the underlying issues.

I wonder if we can report this to the Fedora packages, and asked to be fixed.

Sure, please feel free to file bugs and report any issues you run into!
FWIW, we are tracking the issue here as well as https://github.com/dotnet/source-build/issues/2006.

Hello
Thank you so much for the email. I wanted to share a bit more detail
about what I am experiencing. When I launch VSCode in my project
folder, which is a dotnet core project, I see:
And when I click on show, I see:
Failed to load project file '/home/sansari/vscodeprojs/aspnetcorewithau
th/aspnetcorewithauth/aspnetcorewithauth.csproj'.
/home/sansari/vscodeprojs/aspnetcorewithauth/aspnetcorewithauth/aspnetc
orewithauth.csproj
/usr/share/dotnet/sdk/5.0.201/Sdks/Microsoft.NET.Sdk/targets/Microsoft.
NET.Sdk.FrameworkReferenceResolution.targets(326,5): Error: The "Resolv
eTargetingPackAssets" task failed unexpectedly.
System.IO.FileNotFoundException: Could not find file "/usr/share/dotnet
/packs/Microsoft.NETCore.App.Ref/5.0.0/data/FrameworkList.xml"
File name: '/usr/share/dotnet/packs/Microsoft.NETCore.App.Ref/5.0.0/dat
a/FrameworkList.xml'
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode
mode, System.IO.FileAccess access, System.IO.FileShare share, System.I
nt32 bufferSize, System.Boolean anonymous, System.IO.FileOptions option
s) [0x0019e] in <9f0df102fe6e4cfea29d2e46f585d8a5>:0
at System.IO.FileStream..ctor (System.String path, System.IO.FileMode
mode, System.IO.FileAccess access, System.IO.FileShare share, System.I
nt32 bufferSize) [0x00000] in <9f0df102fe6e4cfea29d2e46f585d8a5>:0
at (wrapper remoting-invoke-with-
check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.F
ileAccess,System.IO.FileShare,int)
at System.Xml.XmlDownloadManager.GetStream (System.Uri uri, System.Ne
t.ICredentials credentials, System.Net.IWebProxy proxy, System.Net.Cach
e.RequestCachePolicy cachePolicy) [0x00018] in <ffe1f7bdb820468982fbee9
2905c6f3b>:0
at System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri, Syste
m.String role, System.Type ofObjectToReturn) [0x00032] in <ffe1f7bdb820
468982fbee92905c6f3b>:0
at System.Xml.XmlTextReaderImpl.FinishInitUriString () [0x0004c] in <
ffe1f7bdb820468982fbee92905c6f3b>:0
at System.Xml.XmlTextReaderImpl..ctor (System.String uriStr, System.X
ml.XmlReaderSettings settings, System.Xml.XmlParserContext context, Sys
tem.Xml.XmlResolver uriResolver) [0x000c7] in <ffe1f7bdb820468982fbee92
905c6f3b>:0
at System.Xml.XmlReaderSettings.CreateReader (System.String inputUri,
System.Xml.XmlParserContext inputContext) [0x0003b] in <ffe1f7bdb82046
8982fbee92905c6f3b>:0
at System.Xml.XmlReader.Create (System.String inputUri, System.Xml.Xm
lReaderSettings settings, System.Xml.XmlParserContext inputContext) [0x
0000a] in :0
at System.Xml.XmlReader.Create (System.String inputUri, System.Xml.Xm
lReaderSettings settings) [0x00000] in <ffe1f7bdb820468982fbee92905c6f3
b>:0
at System.Xml.Linq.XDocument.Load (System.String uri, System.Xml.Linq
.LoadOptions options) [0x00007] in <9660d2fb40cf46f9864b20fa11035396>:0
at System.Xml.Linq.XDocument.Load (System.String uri) [0x00000] in <9
660d2fb40cf46f9864b20fa11035396>:0
at Microsoft.NET.Build.Tasks.ResolveTargetingPackAssets.AddReferences
FromFrameworkList (System.String frameworkListPath, System.String targe
tingPackRoot, System.String targetingPackDllFolder, Microsoft.Build.Fra
mework.ITaskItem targetingPack, System.Collections.Generic.List`1[T] re
ferenceItems) [0x00000] in <523dde8e2c404b6d82060d6c531ca472>:0
at Microsoft.NET.Build.Tasks.ResolveTargetingPackAssets.ExecuteCore (
) [0x0025a] in <523dde8e2c404b6d82060d6c531ca472>:0
at Microsoft.NET.Build.Tasks.TaskBase.Execute () [0x0002e] in <523dde
8e2c404b6d82060d6c531ca472>:0
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.
ITaskExecutionHost.Execute () [0x00029] in <f7274894ce154696afba1f0ffcd
06434>:0
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Micro
soft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Buil
d.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Buil
d.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket,
Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x002fc]
in :0
    Attempted to update project that is not loaded: /home/sansari/v

scodeprojs/aspnetcorewithauth/aspnetcorewithauth/aspnetcorewithauth.csp
roj
I will review the content you provided, and greatly appreciate it. If
you have any other advice, please do let me know. This project was
working fine before I applied the latest update. I did see dotnet in
the list, but the gui window did not have a way to select the updates.
Here are the dotnet libraries I am aware of on my system as of now:
@.*** aspnetcorewithauth]$ dotnet --list-sdks
3.1.407 [/usr/share/dotnet/sdk]
5.0.201 [/usr/share/dotnet/sdk]
@.*** aspnetcorewithauth]$ dotnet --list-runtimes
Microsoft.AspNetCore.App 3.1.13
[/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.4
[/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.13
[/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.4
[/usr/share/dotnet/shared/Microsoft.NETCore.App]
I just removed all of them with "sudo dnf remove dotnet*" and, issued:
"sudo dnf install dotnet-sdk-5.0.x86_64 dotnet-sdk-3.1.x86_64 --repo
packages-microsoft-com-prod", then I issued the command you provided
below. I do not seem to get the error any more. I am going to do an
update later and see if things will continue to work for me.
Regards-
Shahin
On Thu, 2021-03-18 at 11:54 -0700, Omair Majid wrote:

Hi, I am one of the developers involved in building .NET from source
(source-build) as well as one of the maintainers packaging .NET in
Fedora.
I am not surprised. When two package repositories provide packages
with same names, the one with the higher version gets installed. And
it's hard to be sure what happens if they are at the same version. So
it's possible you get a .NET SDK from the Microsoft package
repository and a .NET host from the Fedora package repository. Mixing
them doesn't work.
If you know you always want to use the Microsoft packages (or always
want to use the Fedora packages) you can make use of repo priorities.
Basically, you can give a package repository a higher priority and
dnf/yum will always pick the package from there if multiple
repositories provide it.
For example, if you always want to use the packages from the
Microsoft repository, you can use this command once you have
installed the Microsoft package repository:
sudo dnf config-manager --save --setopt="microsoft-.priority=50"
This assigns a higher priority to the Microsoft package repository.
Any future yum/dnf commands will prefer to use packages from there
once you run this command.
I wrote up more detail about it here: dotnet/runtime#47500 (comment)
Obviously, we would love it if the packages provided by Fedora worked
out of the box for you and you didn't need extra packages from
elsewhere, but this sort of workaround might save you some hassle
while we fix the underlying issues.
Sure, please feel free to file bugs and report any issues you run
into!
FWIW, we are tracking the issue here as well as
dotnet/source-build#2006.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

I just validated, and my project seems to be working. I also updated my
packages, and everythting seems to be running smoothly.
Thanks
On Thu, 2021-03-18 at 11:54 -0700, Omair Majid wrote:

Hi, I am one of the developers involved in building .NET from source
(source-build) as well as one of the maintainers packaging .NET in
Fedora.
I am not surprised. When two package repositories provide packages
with same names, the one with the higher version gets installed. And
it's hard to be sure what happens if they are at the same version. So
it's possible you get a .NET SDK from the Microsoft package
repository and a .NET host from the Fedora package repository. Mixing
them doesn't work.
If you know you always want to use the Microsoft packages (or always
want to use the Fedora packages) you can make use of repo priorities.
Basically, you can give a package repository a higher priority and
dnf/yum will always pick the package from there if multiple
repositories provide it.
For example, if you always want to use the packages from the
Microsoft repository, you can use this command once you have
installed the Microsoft package repository:
sudo dnf config-manager --save --setopt="microsoft-.priority=50"
This assigns a higher priority to the Microsoft package repository.
Any future yum/dnf commands will prefer to use packages from there
once you run this command.
I wrote up more detail about it here: dotnet/runtime#47500 (comment)
Obviously, we would love it if the packages provided by Fedora worked
out of the box for you and you didn't need extra packages from
elsewhere, but this sort of workaround might save you some hassle
while we fix the underlying issues.
Sure, please feel free to file bugs and report any issues you run
into!
FWIW, we are tracking the issue here as well as
dotnet/source-build#2006.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

For a Blazor WASM project (SDK @ v5.0.104) on Fedora 34, @mausworks your solution worked. Thanks a bunch!

Just for info, I upgraded to Fedora 34 and the problems start once again. Omnisharp was not working and was throwing errors again.
I tried some things like updating the microsoft repo to 34 but that does not seem to contain dotnet-sdk-5.0 yet. Meanwhile the packages from the old microsoft 33 repo were no longer able to install (I removed them unfortunately) because they depend on a package that is not (yet) available for Fedora 34.
So I tried install dotnet only from Fedora repo which works kind of (at least at the command line) but Omnisharp is throwing errors again and is not working at all.
Finally I managed to make it all work again by installing the missing dependency (compat-openssl10). To make this work I copied the first block from /etc/yum.repos.d/fedora.repo to a new file /etc/yum.repos.d/fedora33.repo and replaced $releasevar with 33. At the end it looks like this:
[fedora33]
name=Fedora 33 - $basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-33&arch=$basearch
enabled=1
countme=1
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-33-$basearch
skip_if_unavailable=False
exclude=dotnet-targeting-pack-3.1 netstandard-targeting-pack-2.1
priority=250

Don't forget to change the name in the block (I appended 33) else dnf will complain about two repo configs with the same name. I also set the priority to some high value (default is 99) so packages are not installed from it when they occur somewhere else (dnf priority is kind of reversed and looks at the lowest value first).
Now I was able to install the compact-openssl10 and also dotnet-sdk-5.0 from microsoft repo and now everything is working without complains again.
Once the tool becomes available in Fedora 34 I will delete the extra config and when dotnet-sdk-5.0 is available in https://packages.microsoft.com/fedora/34/prod/ I will update the microsoft repo.

This does not work for me. Using Fedora 34.
This is what I did:

sudo dnf remove dotnet*
sudo wget -O /etc/yum.repos.d/microsoft-prod.repo https://packages.microsoft.com/config/fedora/34/prod.repo <-- Note I changed it to 34
sudo dnf config-manager --save --setopt="*microsoft-*.priority=50"
sudo dnf install dotnet-sdk-5.0.x86_64 dotnet-sdk-3.1.x86_64

Output of the install command is here: https://gist.github.com/m-ghaoui/8445541ce93fb68fcec60293abffe30a
When I try to do something like dotnet new
$ dotnet new
Could not execute because the application was not found or a compatible .NET SDK is not installed.
Possible reasons for this include:
  * You intended to execute a .NET program:
      The application 'new' does not exist.
  * You intended to execute a .NET SDK command:
      It was not possible to find any installed .NET SDKs.
      Install a .NET SDK from:
        https://aka.ms/dotnet-download

It says the SDK is not installed:
$ dotnet --info

Host (useful for support):
  Version: 5.0.7
  Commit:  556582d964

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.NETCore.App 3.1.16 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.7 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

This does not work for me. Using Fedora 34.
This is what I did:

sudo dnf remove dotnet*
sudo wget -O /etc/yum.repos.d/microsoft-prod.repo https://packages.microsoft.com/config/fedora/34/prod.repo <-- Note I changed it to 34
sudo dnf config-manager --save --setopt="*microsoft-*.priority=50"
sudo dnf install dotnet-sdk-5.0.x86_64 dotnet-sdk-3.1.x86_64

Output of the install command is here: https://gist.github.com/m-ghaoui/8445541ce93fb68fcec60293abffe30a
When I try to do something like dotnet new
$ dotnet new
Could not execute because the application was not found or a compatible .NET SDK is not installed.
Possible reasons for this include:
  * You intended to execute a .NET program:
      The application 'new' does not exist.
  * You intended to execute a .NET SDK command:
      It was not possible to find any installed .NET SDKs.
      Install a .NET SDK from:
        https://aka.ms/dotnet-download

It says the SDK is not installed:
$ dotnet --info

Host (useful for support):
  Version: 5.0.7
  Commit:  556582d964

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.NETCore.App 3.1.16 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.7 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

Looking up the command:
$which dotnet
/usr/bin/dotnet
$ ls -sla /usr/bin/dotnet
4 lrwxrwxrwx. 1 root root 30 Jun 10 22:01 /usr/bin/dotnet -> ../..//usr/lib64/dotnet/dotnet

Am I using the correct executable?
I tried again but with the Fedora 33 repos. No dice.

You're doing nothing wrong im struggling with the same problem.
I hope someone will resolve this issue asap because it really slows down my development process

@m-ghaoui

This does not work for me. Using Fedora 34.

Between steps 3 and 4, can you run
sudo dnf remove 'dotnet*' 'aspnet*' 'netstandard*'

More details and options are documented as "Solution 3" at https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-mixup#solutions

sudo dnf remove 'dotnet*' 'aspnet*' 'netstandard*'

sudo dnf remove 'dotnet*' 'aspnet*' 'netstandard*'
No match for argument: dotnet*
No match for argument: aspnet*
No match for argument: netstandard*
No packages marked for removal.
Dependencies resolved.
Nothing to do.
Complete!

... does not seem to help (?)

Maybe I can help with the logs produced by Omnisharp:
`OmniSharp server started.
Path: /home/paul/.vscode-insiders/extensions/ms-dotnettools.csharp-1.23.12/.omnisharp/1.37.12-beta.11/run
PID: 47393
    Starting OmniSharp on fedora 34.0 (x64)

    DotNetPath set to dotnet

    Located 1 MSBuild instance(s)
        1: StandAlone 17.0.0 - "/home/paul/.vscode-insiders/extensions/ms-dotnettools.csharp-1.23.12/.omnisharp/1.37.12-beta.11/omnisharp/.msbuild/Current/Bin"

    MSBUILD_EXE_PATH environment variable set to '/home/paul/.vscode-insiders/extensions/ms-dotnettools.csharp-1.23.12/.omnisharp/1.37.12-beta.11/omnisharp/.msbuild/Current/Bin/MSBuild.exe'

    Registered MSBuild instance: StandAlone 17.0.0 - "/home/paul/.vscode-insiders/extensions/ms-dotnettools.csharp-1.23.12/.omnisharp/1.37.12-beta.11/omnisharp/.msbuild/Current/Bin"
        CscToolExe = csc.exe
        MSBuildToolsPath = /home/paul/.vscode-insiders/extensions/ms-dotnettools.csharp-1.23.12/.omnisharp/1.37.12-beta.11/omnisharp/.msbuild/Current/Bin
        CscToolPath = /home/paul/.vscode-insiders/extensions/ms-dotnettools.csharp-1.23.12/.omnisharp/1.37.12-beta.11/omnisharp/.msbuild/Current/Bin/Roslyn
        BypassFrameworkInstallChecks = true
        MSBuildExtensionsPath = /home/paul/.vscode-insiders/extensions/ms-dotnettools.csharp-1.23.12/.omnisharp/1.37.12-beta.11/omnisharp/.msbuild

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.Completion.CompletionOptionsProvider, Order: 0

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140

    Detecting Cake files in '/home/paul/Documents/projects/homecontrol-v2/backendv2'.

    Could not find any Cake files

    No solution files found in '/home/paul/Documents/projects/homecontrol-v2/backendv2'

    Queue project update for '/home/paul/Documents/projects/homecontrol-v2/backendv2/backendv2.csproj'

    Detecting CSX files in '/home/paul/Documents/projects/homecontrol-v2/backendv2'.

    Could not find any CSX files

    Configuration finished.

    Omnisharp server running using Stdio at location '/home/paul/Documents/projects/homecontrol-v2/backendv2' on host 42970.

    Loading project: /home/paul/Documents/projects/homecontrol-v2/backendv2/backendv2.csproj

    The "Microsoft.AspNetCore.Razor.Tasks.DiscoverDefaultScopedCssItems" task could not be loaded from the assembly /usr/lib64/dotnet/sdk/5.0.204/Sdks/Microsoft.NET.Sdk.Razor/build/netstandard2.0/../../tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll. Invalid Image Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.

    Failed to load project file '/home/paul/Documents/projects/homecontrol-v2/backendv2/backendv2.csproj'.

/home/paul/Documents/projects/homecontrol-v2/backendv2/backendv2.csproj
/usr/lib64/dotnet/sdk/5.0.204/Sdks/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.ScopedCss.targets(118,3): Error: The "Microsoft.AspNetCore.Razor.Tasks.DiscoverDefaultScopedCssItems" task could not be loaded from the assembly /usr/lib64/dotnet/sdk/5.0.204/Sdks/Microsoft.NET.Sdk.Razor/build/netstandard2.0/../../tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll. Invalid Image Confirm that the  declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
    Attempted to update project that is not loaded: /home/paul/Documents/projects/homecontrol-v2/backendv2/backendv2.csproj`

Obviously ithe reason for my error is the following:
[fail]: OmniSharp.MSBuild.ProjectLoader         The "Microsoft.AspNetCore.Razor.Tasks.DiscoverDefaultScopedCssItems" task could not be loaded from the assembly /usr/lib64/dotnet/sdk/5.0.204/Sdks/Microsoft.NET.Sdk.Razor/build/netstandard2.0/../../tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll. Invalid Image Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask
I tried this solution but sadly dotnet --info does not show any installed SDKs as @m-ghaoui has already reported,

I'm facing the same issue, but I'm using Arch Linux, updated to the latest version of .NET 5 today. My output for dotnet --info is very similar to that of @Kampfmoehre
.NET SDK (reflecting any global.json):
 Version:   5.0.104
 Commit:    ca6b6acadb

Runtime Environment:
 OS Name:     arch
 OS Version:
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /usr/share/dotnet/sdk/5.0.104/

Host (useful for support):
  Version: 5.0.4
  Commit:  269e323b5f

.NET SDKs installed:
  3.1.112 [/usr/share/dotnet/sdk]
  5.0.104 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.12 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.4 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.12 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.4 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

The following .NET-related packages are installed:
aspnet-runtime              5.0.4.sdk104-1
aspnet-runtime-3.1          3.1.12.sdk112-3
aspnet-targeting-pack       5.0.4.sdk104-1
aspnet-targeting-pack-3.1   3.1.12.sdk112-3
dotnet-host                 5.0.4.sdk104-1
dotnet-runtime              5.0.4.sdk104-1
dotnet-runtime-3.1          3.1.12.sdk112-3
dotnet-sdk                  5.0.4.sdk104-1
dotnet-sdk-3.1              3.1.12.sdk112-3
dotnet-targeting-pack       5.0.4.sdk104-1
dotnet-targeting-pack-3.1   3.1.12.sdk112-3

Building from command-line runs just fine, leading me to believe this is a problem with Omnisharp itself.
This file:
/usr/share/dotnet/sdk/5.0.104/Sdks/Microsoft.NET.Sdk.Razor/tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll

Is indeed missing. This seems to be fixed in a later release of the SDK (5.0.201 for example).
EDIT: I fixed it by having my colleague send over his net46 folder from Microsoft.NET.Sdk.Razor/tasks, he's running the 5.0.201 SDK, but it still seems to work just fine. I simply unzipped it in:
/usr/share/dotnet/sdk/5.0.104/Sdks/Microsoft.NET.Sdk.Razor/tasks

Then everything worked just dandy. If anybody wants the files:
net46.zip
They can probably be downloaded from somewhere else, but this worked for me.

 Thank you so much!

Another option for those on Arch is to install the dotnet-sdk-bin package instead of the dotnet-sdk package. see https://github.com/OmniSharp/omnisharp-vscode/wiki/Configuring-Arch-Linux-for-Razor-development

There's a fix in source-build now, so distributions like Arch, Fedora and RHEL should be getting a fix in the next .NET 5 release (probably next month): https://github.com/dotnet/source-build/pull/2178

@m-ghaoui

This does not work for me. Using Fedora 34.

Thanks for raising this. I followed your steps and I see the same problem on my end. dnf install dotnet-runtime-5.0 gives a hint:
Last metadata expiration check: 0:07:12 ago on Tue Jun 22 21:00:06 2021.
Dependencies resolved.

 Problem: package dotnet-runtime-5.0-5.0.7-1.x86_64 requires dotnet-runtime-deps-5.0 >= 5.0.7, but none of the providers can be installed
  - cannot install the best candidate for the job
  - nothing provides compat-openssl10 needed by dotnet-runtime-deps-5.0-5.0.7-1.x86_64
======================================================================================================================
 Package                          Architecture    Version                  Repository                            Size
======================================================================================================================
Installing:
 dotnet-runtime-5.0               x86_64          5.0.7-1.fc34             updates                               26 M
Installing dependencies:
 dotnet-host                      x86_64          5.0.7-1.fc34             updates                              104 k
 dotnet-hostfxr-5.0               x86_64          5.0.7-1.fc34             updates                              152 k
 libicu                           x86_64          67.1-6.fc34              fedora                               9.7 M
 libunwind                        x86_64          1.4.0-5.fc34             fedora                                65 k
 lttng-ust                        x86_64          2.12.0-4.fc34            fedora                               289 k
 numactl-libs                     x86_64          2.0.14-3.fc34            fedora                                30 k
 userspace-rcu                    x86_64          0.12.1-3.fc34            fedora                               105 k
Skipping packages with broken dependencies:
 dotnet-runtime-5.0               x86_64          5.0.7-1                  packages-microsoft-com-prod           29 M
 dotnet-runtime-deps-5.0          x86_64          5.0.7-1                  packages-microsoft-com-prod          2.8 k

It looks like Microsoft's .NET 5 runtime has broken dependencies (compat-openss10 was EOL'ed before Fedora 34). And that makes dnf install some packages from the Microsoft repo and some from the Fedora repo, leading to the issues described at https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-mixup.

I've finally found a solution! What you need to do is:
1: Uninstall dotnet;
2: Go to this link: https://dotnet.microsoft.com/download/dotnet/5.0;
3: Download the latest version of dotnet (Currently is SDK 5.0.301) ;
4: Go to the terminal and type mkdir ~/dotnet;
5: Extract the file that you've just downloaded to ~/dotnet with the command tar zxf ~/Downloads/your_dotnet_file.tar.gz -C ~/dotnet;
6: Add export PATH=$PATH:$HOME/dotnet to your ~/.bashrc;
7: Restart vscode, and now it should work.

Extra:
I was getting this error when trying to run my AspNet application:
"The terminal process failed to launch: Path to shell executable "dotnet" is not a file of a symlink."
To solve this, go to the tasks.json and in each section with "command": "dotnet" replace "type": "process" by "type": "shell".

References:
https://docs.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual
https://stackoverflow.com/questions/58072505/visual-studio-code-build-task-give-the-terminal-shell-path-dotnet-is-a-direct

@mausworks solution works perfectly.
My sdk version: dotnet core 5.0.204
OS: Frdora 34, kernel 5.12.17-300.fc34.x86_64

@crummel fixed this via https://github.com/dotnet/source-build/pull/2178 (thanks, @crummel!) and it is included in the latest release https://github.com/dotnet/source-build/releases/tag/v5.0.205-SDK.
This was built and released as an update for Fedora 33 and later a few days ago.
Is anyone still seeing this issue? If not, I think this issue can be closed now.

I'm facing the same issue, but I'm using Arch Linux, updated to the latest version of .NET 5 today. My output for dotnet --info is very similar to that of @Kampfmoehre
.NET SDK (reflecting any global.json):
 Version:   5.0.104
 Commit:    ca6b6acadb

Runtime Environment:
 OS Name:     arch
 OS Version:
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /usr/share/dotnet/sdk/5.0.104/

Host (useful for support):
  Version: 5.0.4
  Commit:  269e323b5f

.NET SDKs installed:
  3.1.112 [/usr/share/dotnet/sdk]
  5.0.104 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.12 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.4 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.12 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.4 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

The following .NET-related packages are installed:
aspnet-runtime              5.0.4.sdk104-1
aspnet-runtime-3.1          3.1.12.sdk112-3
aspnet-targeting-pack       5.0.4.sdk104-1
aspnet-targeting-pack-3.1   3.1.12.sdk112-3
dotnet-host                 5.0.4.sdk104-1
dotnet-runtime              5.0.4.sdk104-1
dotnet-runtime-3.1          3.1.12.sdk112-3
dotnet-sdk                  5.0.4.sdk104-1
dotnet-sdk-3.1              3.1.12.sdk112-3
dotnet-targeting-pack       5.0.4.sdk104-1
dotnet-targeting-pack-3.1   3.1.12.sdk112-3

Building from command-line runs just fine, leading me to believe this is a problem with Omnisharp itself.
This file:
/usr/share/dotnet/sdk/5.0.104/Sdks/Microsoft.NET.Sdk.Razor/tasks/net46/Microsoft.NET.Sdk.Razor.Tasks.dll

Is indeed missing. This seems to be fixed in a later release of the SDK (5.0.201 for example).
EDIT: I fixed it by having my colleague send over his net46 folder from Microsoft.NET.Sdk.Razor/tasks, he's running the 5.0.201 SDK, but it still seems to work just fine. I simply unzipped it in:
/usr/share/dotnet/sdk/5.0.104/Sdks/Microsoft.NET.Sdk.Razor/tasks

Then everything worked just dandy. If anybody wants the files:
net46.zip
They can probably be downloaded from somewhere else, but this worked for me.

Hahah, worked!! Thank you!

Sounds like on a Mac for example this would be a problem when you have the setting:
"omnisharp.useGlobalMono": "never"

Which otherwise sounds like a good option to avoid machine-specific issues.

Completely forgot about this.


[storage] User delegation SAS token support

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).

[x] I adhere to the Command Guidelines.

Ping @tjprescott @yugangw-msft


Support new Scala3 modifiers

This PR adds the following new modifiers for Scala3 to SemanticDB specification.

Given

https://docs.scala-lang.org/scala3/reference/contextual/givens.html
for given x: Int, given Int, using ctx: Context and using Context

Inline

https://docs.scala-lang.org/scala3/reference/metaprogramming/inline.html

Open

https://docs.scala-lang.org/scala3/reference/other-new-features/open-classes.html

Transparent

https://docs.scala-lang.org/scala3/reference/other-new-features/transparent-traits.html

Infix

https://docs.scala-lang.org/scala3/reference/changed-features/operators.html

Opaque

https://docs.scala-lang.org/scala3/reference/other-new-features/opaques.html

FYI here's the generated code from this new SemanticDB schema https://github.com/tanishiking/semanticdb-for-scala3/pull/2

Maybe we should also support extension modifier in the future, but how to encode extension seems a bit complicated. Therefore let's start with simple modifiers first.

https://github.com/lampepfl/dotty/issues/11690
https://discord.com/channels/632642981228314653/632642981228314657/867097982860394526

After this PR merged, we have to

[ ] Support new modifiers in metap
[ ] Extend ExtracctSemanticDB of Scala3

Or should we implement the Scala3 side first, before updating the schema?

Though we can't test it until Scala3 extract that information, they're so simple and I will include metap implementation to this PR :)

I opened a PR to dotty to extract those new information from Scala3 https://github.com/lampepfl/dotty/pull/13239
The metap implementation is basically the same between this PR and Scala3, and it looks good (seeing the metap.expect in the https://github.com/lampepfl/dotty/pull/13239 )


500 Internal Server Error

Hi, I've just installed solder on my VPS but when I try to reach the URL is says the classic "500 Internal Server Error".
Here it is my error.log: http://pastebin.com/bgcyW2Mn
Here it is my nginx config: http://pastebin.com/jA8xXHhy
I can't figure out the error, because my "public" folder has a 755 CHMOD (And I've also tryied with 777), can someone help me?
Thanks,
Giulio.

Which user does nginx run under (www-data?)?
I had similar issues (after an update usually) and I have to chown ALL directories and files to www-data again....
However, without further information it is hard to tell what it could be...it is very very likely a permission problem though (quite obviously from the error.log)

Your nginx config has a lot of unneeded settings and directives. Please reference the example config on the Solder Docs: http://docs.solder.io/v0.7/docs/example-web-server-configs#nginx


xgov-117 - Contract Based Wallet Abstraction

Wallet Abstraction for bringing in the masses!

Liked the idea of Contract Based Wallet Abstraction

The numbers on proposal headings seems to be wrong.
xGov-116 should be replaced with xGov-117 because your pr number is 117

It's still a draft and will likely change quite a bit. Initially i was going to submit this xgov proposal to design the implementation and create the ARC but after speaking with Joe about the approach he ran with it and quickly got a prototype going.
There's still a ton that needs to be done, so what i will likely do is break this into milestone. The first being a production ready version of the contract. The next will be a large set of plugins. After that it will be tooling to make using abstracted wallets easier & finally a focus on building out web2 auth / social signin with google/apple/email and additional other sign in methods like eth/sol/etc.
I'll try to update this draft soon to better illustrate this in detail. Thank you for your question @mangoplane !

Hey! Love the idea. Would you be able to provide a bit more detail on how the implementation is expected to work in the wild?
For instance, say I'm completely new to blockchain but my friends keep telling me about this great community called Akita - how does it work if I want to sign up with Apple ID for instance?
If you're able to talk to how emails/third party auth is tied to wallets etc that'd be awesome.

Hey @xxiled-plastic-cat !
I removed mention of social sign in, @mangoplane has been working on social login stuff for a while & has an xGov proposal #119 so I will likely use his in conjunction with this. So you'll be able to use that or if you'd rather take a hybrid custody approach you can mint these wallets on behalf of your web2 authenticated users and control them for them until they decide they want control ( which is great because contracts dont have keys you need to manage for the user! )


Add new trash translation to pot file for Transifex

I'm not really sure if this is needed, but this commit adds the new translation of the trash icon label added by my previous pull request (see #20) to the pot file for Transifex.

Not quite how this works. I need to generate and push it to transifex using their CLI tools.

Oh okay, I thought this process was automatic on push :+1:


add Light/Dark mode icons!

/assign me under IWOC

Go for it

@ItsRoy69 Kindly assign me this issue under IWOC2.0


Regex support

Transverse index for terms that match a pattern.
See Elasticsearch Regex Query for inspiration.

This would greatly benefit from sharding + threading. Related issue #5.

Probably blocked by #25.


Ignoring commented-out code with noqa: ERA001 triggers RUF100

# commented.py

# print(123)  # noqa: ERA001
# print(123)

This is the result of running Ruff on the above:
$ ruff --version
ruff 0.0.170

$ ruff --select ERA,RUF commented.py
Found 2 error(s).
commented.py:3:15: RUF100 Unused `noqa` directive for: ERA001
commented.py:4:1: ERA001 Found commented-out code
2 potentially fixable with the --fix option.

Ah yeah, I think the presence of the noqa:  causes us to treat # print(123)  # noqa: ERA001 as not code... so the noqa is itself suppressing the error, and then appears to have no effect.

Maybe we should only match those at the start of a comment.


docs: Redirect from firebase.flutter.dev to firebase.google.com

Description
Replace this paragraph with a description of what this PR is doing. If you're modifying existing behavior, describe the existing behavior, how this PR is changing it, and what motivated the change.
Related Issues
Replace this paragraph with a list of issues related to this PR from the issue database. Indicate, which of these issues are resolved or fixed by this PR. Note that you'll have to prefix the issue numbers with flutter/flutter#.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

[ ] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[ ] All existing and new tests are passing.
[ ] I updated/added relevant documentation (doc comments with ///).
[ ] The analyzer (melos run analyze) does not report any problems on my PR.
[ ] I read and followed the Flutter Style Guide.
[ ] I signed the CLA.
[ ] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change.
[ ] No, this is not a breaking change.

The redirects look good, however I've got a couple of questions:

The firebase.json still has a public property pointing to build, which no longer exists.
Can we remove the rewrites given there is no longer an index page to rewrite to - the redirects should handle this(?)

Also, I've not actually tried deploying "nothing" to Firebase Hosting - will we need to add a dummy index.html file or will it deploy with just redirects?

Just pulled it and tried to deploy to another project - had to remove the build and rewrites so all good now.

Is the documentation now still open source? If yes, is there a repository?

Is the documentation now still open source? If yes, is there a repository?

Yes! The Flutter docs on firebase.google.com are now in docs/ and they are open source.

Ah, nice 👍 Thanks, @kevinthecheung


Fixed PHPUnit suite and removed deprecated calls.

Why not use PHPUnit 6?

There are many things that the library needs:

[ ] Upgrading to PHPUnit 6
[ ] Upgrading to PSR-4
[ ] Upgrading to Guzzle 6
[ ] Adhering to PSR-1 and PSR-2

However, i'm trying to keep most pull requests small and focused. Baby steps.

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! :smile:

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! :smile:

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! :smile:


Dimensional Transceiver no teleport Gas

Issue Description:
Mod add Gas conduit, but Dimensional Transceiver not teleport gas
What happens:
Mod add Gas conduit and Dimensional Transceiver got to beam gas
Affected Versions (Do not use "latest"):

EnderIO: 1.12.2-5.1.55
EnderCore:1.12.2-0.5.73
Minecraft: 1.12.2
Forge:latest
SpongeForge? /no
Optifine? yes
Single Player and/or Server? - single and server

Your most recent log file where the issue was present:
[pastebin/gist/etc link here]

Gas Conduits are added by the 3rd party add-on "Gas Conduits," not Ender IO itself.
https://github.com/pupnewfster/GasConduits
Also, Mekanism has the Quantum Entagloporter which can transfer Gasses long distances already.  In general, Ender IO doesn't want to undercut another mod's existing wireless mechanics.  See also conduits but no Dimensional Transceiver support for Applied Energistics 2, Refined Storage, or OpenComputers in Ender IO itself.


Bug Report: Functions stopped working in the middle of making a song

Which target are you using?
[x ] Windows
[ ] Linux
[ ] Mac
Explain your issue
I was making a song playable in Codename (more specifically, a chart of a remix) and I decided to add some little mechanics, stuff like taking away bits of health when the opponent hits a note as an example. However, after finishing up a bit of a portion of the whole chart, some of the functions just... stopped running. Not even reverting to an updated Codename version or reverting the script itself to an older version seems to help. I'm not even sure if it's the chart itself. This affects just the functions, for example onDadHit; the other parts of the script work just fine. This affects both the chart editor and regular play as well.
Is there something I accidentally changed, or was it something else?

hm could you send here the script(s) and a video maybe?

Sure. The script itself should go in the/any song's scripts folder if it's gonna be tested, as that is how I made it to be:
https://files.catbox.moe/nkkvcx.hx - The script. Github doesn't seem to want to use the code blocks feature properly so I'm sending it through a catbox link. The functions worked before I got a bit into the chart.
The song itself is a remix of All Stars, titled ENDGAME, by Noichi.
https://streamable.com/h076xc

Ah, looks like it works now. I think I assumed it would just work since it was in the update function, but it looks like it was actually supposed to be outside of it. Thanks 👍


[Package Request]: Add MSI Gaming Intelligence Software

How can we help?
I would like someone else to build the manifest.
Please read and ensure the following

[X] The installer meets the above requirements

Please provide the following information
Download Page Url: https://www.msi.com/support/technical_details/MNT_SW_MSI_Preloaded_Software#txt01
Publisher: MSI
Package Name: MSI Gaming Intelligence
Description: Used to control MSI Gaming Monitors
Package Version: <IP_ADDRESS>
Installer URL: https://download.msi.com/uti_exe/monitor/Gaming-Intelligence-x64.zip

@stephengillie, I am trying to install it through winget, but it says that the hash does not match, could it be the issue of the hash not being consistent?

What's unexpected here is that it worked on the 2nd try. This looks like a vanity URL, which always serves the latest version, and these frequently have a hash mismatch on new releases - after a new version is releassed, but before the new version has a manifest submitted to this repo. At first, your scenario resembled this. But then it worked, so maybe an error page got downloaded the first time?


How to get nested objects key?

How do I get the value in the nested objects? I tried the typical for yaml dot-notation, but it does not work.
data "ansiblevault_path" "my_key" {
  path = "./vault.yaml"
  key = "group.subgroup.my_key"

The vault file:
group:
  subgroup:
    my_key: value

I get Error that it is not found in the vault.

Nevermind, I didn't saved the vault file 🤦♂


[Error] TypeError: Trainer.init() got an unexpected keyword argument 'processing_class'

System Info
Here are the versions I'm using

transformers: 4.45.2
trl: 0.12.0.dev0
platform: Linux-6.8.0-41-generic-x86_64-with-glibc2.35
python: 3.10.11

Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[X] An officially supported task in the examples folder
[ ] My own task or dataset (give details below)

Reproduction
Steps to Reproduce this behavior:
run the command below in trl directory:
python examples/scripts/reward_modeling.py \
    --model_name_or_path Qwen/Qwen2-0.5B-Instruct \
    --dataset_name trl-lib/ultrafeedback_binarized \
    --output_dir Qwen2-0.5B-Reward-LoRA \
    --per_device_train_batch_size 8 \
    --num_train_epochs 1 \
    --gradient_checkpointing True \
    --learning_rate 1.0e-4 \
    --logging_steps 25 \
    --eval_strategy steps \
    --eval_steps 50 \
    --max_length 2048 \
    --use_peft \
    --lora_r 32 \
    --lora_alpha 16

Expected behavior
Expected behavior was to start LoRA fine-tuning, but it is not coming as expected.
Actual error:
Some weights of Qwen2ForSequenceClassification were not initialized from the model checkpoint at Qwen/Qwen2-0.5B-Instruct and are newly initialized: ['score.weight']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
/home/z004x2xz/miscExcersises/himanshushukla12/trl/examples/scripts/reward_modeling.py:99: UserWarning: You are using a `task_type` that is different than `SEQ_CLS` for PEFT. This will lead to silent bugs Make sure to pass --lora_task_type SEQ_CLS when using this script with PEFT.
  warnings.warn(
Traceback (most recent call last):
  File "/home/z004x2xz/miscExcersises/himanshushukla12/trl/examples/scripts/reward_modeling.py", line 112, in <module>
    trainer = RewardTrainer(
  File "/home/z004x2xz/miscExcersises/himanshushukla12/trl/trl/trainer/reward_trainer.py", line 246, in __init__
    super().__init__(
TypeError: Trainer.__init__() got an unexpected keyword argument 'processing_class'

Things I tried to fix the issue:
I tried to change processing_class to tokenizer but it didn't worked

Thanks for reporting. You need to use the dev transformers version:
pip install git+https://github.com/huggingface/transformers.git

Now got this error:
RuntimeError: CUDA error: device-side assert triggered
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

Probably not related. Can you open another issue for it?


--ipalloc-range can't be resumed from weave launch

What happened?

I start weave network with the following command
weave launch --ipalloc-range <IP_ADDRESS>/24  <IP_ADDRESS>

then do some work with docker, and then stop it
weave stop

I want to restart the configuration about weave network
weave launch --resume

I got connection failed error, and ipalloc-range not be restored.
weave status

        Version: 2.0.1 (up to date; next check at 2017/07/18 12:07:32)

        Service: router
       Protocol: weave 1..2
           Name: 1e:89:4f:d6:86:36(wayland)
     Encryption: disabled
  PeerDiscovery: enabled
        Targets: 1
    Connections: 1 (1 failed)
          Peers: 1
 TrustedSubnets: none

        Service: ipam
         Status: idle
          Range: <IP_ADDRESS>/12
  DefaultSubnet: <IP_ADDRESS>/12

Versions:
$ weave version
2.0.1

$ docker version
Client:
 Version:      17.06.0-ce
 API version:  1.30
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:22:33 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.06.0-ce
 API version:  1.30 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   02c1d87
 Built:        Fri Jun 23 21:23:51 2017
 OS/Arch:      linux/amd64
 Experimental: false

$ uname -a
Linux 4.11.9-200.fc25.x86_64 #1 SMP Wed Jul 5 18:19:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Logs:
$ docker logs weave

INFO: 2017/07/18 06:50:41.459606 ->[<IP_ADDRESS>:35758|1e:68:0e:f1:6a:1a(tree)]: connection ready; using protocol version 2
INFO: 2017/07/18 06:50:41.459953 overlay_switch ->[1e:68:0e:f1:6a:1a(tree)] using fastdp
INFO: 2017/07/18 06:50:41.460037 ->[<IP_ADDRESS>:35758|1e:68:0e:f1:6a:1a(tree)]: connection added (new peer)
INFO: 2017/07/18 06:50:41.460517 ->[<IP_ADDRESS>:6783|1e:68:0e:f1:6a:1a(tree)]: connection ready; using protocol version 2
INFO: 2017/07/18 06:50:41.460759 overlay_switch ->[1e:68:0e:f1:6a:1a(tree)] using fastdp
INFO: 2017/07/18 06:50:41.460813 ->[<IP_ADDRESS>:6783|1e:68:0e:f1:6a:1a(tree)]: connection shutting down due to error: Multiple connections to 1e:68:0e:f1:6a:1a(tree) added to 1e:89:4f:d6:86:36(wayland)
INFO: 2017/07/18 06:50:41.461606 ->[<IP_ADDRESS>:35758|1e:68:0e:f1:6a:1a(tree)]: connection shutting down due to error: Incompatible IP allocation ranges (received: <IP_ADDRESS>/24, ours: <IP_ADDRESS>/12)
INFO: 2017/07/18 06:50:41.461725 ->[<IP_ADDRESS>:35758|1e:68:0e:f1:6a:1a(tree)]: connection deleted
INFO: 2017/07/18 06:50:41.461762 Removed unreachable peer 1e:68:0e:f1:6a:1a(tree)
INFO: 2017/07/18 06:50:41.461801 [nameserver 1e:89:4f:d6:86:36] peer 1e:68:0e:f1:6a:1a gone

--resume re-established connections to previous peers. It knows/remembers nothing about anything else, including IPAM ranges, so those still need to specified normally.


No module named 'amuse.support.codes' when building

Describe the bug
When I try to install AMUSE almost all codes fail to build because of the common error:
amusifier --type=c interface.py AdaptbInterface -o worker_code.cc
amusifier --type=h -i amuse.support.codes.stopping_conditions.StoppingConditionInterface interface.py AdaptbInterface -o worker_code.h
Traceback (most recent call last):
  File "/usr/local/bin/amusifier", line 7, in <module>
    exec(compile(f.read(), __file__, 'exec'))
  File "/amuse/bin/amusifier", line 30, in <module>
    gencode.amusifier()
  File "/amuse/src/amuse/rfi/gencode.py", line 383, in amusifier
    uc.start()
  File "/amuse/src/amuse/rfi/gencode.py", line 248, in start
    self.parse_options()
  File "/amuse/src/amuse/rfi/gencode.py", line 188, in parse_options
    self.options.ignore_classes = list(self.parse_ignore_classes())
  File "/amuse/src/amuse/rfi/gencode.py", line 231, in parse_ignore_classes
    __import__(modulename)
ModuleNotFoundError: No module named 'amuse.support.codes'
make: *** [Makefile:37: worker_code.h] Error 1
make: Leaving directory '/amuse/src/amuse/community/adaptb'

To Reproduce
Clone main, and try to build using python setup.py develop_build
Expected behavior
The codes should build
Logs
build.log
Environment (please complete the following information):

OS and version: Ubuntu 20.04
Compiler: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0

Additional context
This is run in a docker container, but when I revert to the last stable release, the problem is solved, so this might not be the issue.

Confirmed, I get the same.

I reverted #795, now it works again...


Install Java without Maven

Is it possible to just install Java without building apps with Maven? My use case is just to create an app that has both Node and Java environments (with multi-buildpack) to run Closure Compiler, so it does not actually need to build Java apps.

Yes, for that you can use the jvm-common buildpack. Your .buildpacks file would look like this:
https://github.com/heroku/heroku-buildpack-jvm-common.git
https://github.com/heroku/heroku-buildpack-nodejs.git

Also, the cedar-14 image has a JDK 7u75 distribution installed by default -- so you may not even need the jvm-common buildpack. But if you want JDK 8 you will need it.
(I'm going to close this but feel free to keep the discussion going, and we can even reopen it if the above does not work).

Yeah, I created this issue because I didn't find anything about the jvm-common buildpack. Thanks anyway!

I'll add some documentation to the buildpack readme.


feat: In-memory credential storage implementation

Signed-off-by: Derek Trider<EMAIL_ADDRESS>

Codecov Report
Base: 87.11% // Head: 86.78% // Decreases project coverage by -0.33% :warning:

Coverage data is based on head (4f69aa5) compared to base (34e4f2b).
Patch coverage: 83.67% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #72      +/-   ##
==========================================
- Coverage   87.11%   86.78%   -0.34%
==========================================
  Files          16       18       +2
  Lines         458      507      +49
==========================================
+ Hits          399      440      +41
- Misses         33       37       +4
- Partials       26       30       +4

Impacted Files
Coverage Δ

cmd/wallet-sdk-gomobile/memstorage/memstorage.go
72.41% <72.41%> (ø)

pkg/memstorage/memstorage.go
100.00% <100.00%> (ø)

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.

Note: I tried implementing the JSONObject and JSONArray types using two other alternative means:
Type alias: type JSONObject = string. This didn't work because gomobile automatically converts them to strings, so the name is lost (defeating the purpose).
String type definition: type JSONObject string. gomobile just doesn't support doing this.


[Sub Task]: Fix account switcher / top navigation bar on Windows

Task description
There is an issue (specifically on Windows) where the top navigation bar is causing problems for the UI in a few ways:

The account switcher is not overlaid on the title bar (see design)
The wallet and staking dashboard have an inconsistency where the tiles are not starting at the same Y position (in the wallet dashboard there is a margin between the account switcher bar and the dashboard tiles whereas the staking dashboard has the tiles right up against the account switcher bar)
The profile and network indicator in the sidebar are not pushed against the bottom of the screen, i.e. there's an odd section of whitespace

Requirements

[ ] Overlay account switcher on top of the app title bar (see Electron docs)
[ ] Make all dashboard views' tiles start at the same Y position
[ ] Remove odd whitespace between profile button and the bottom of the app screen

Acceptance criteria
Meets the above requirements.
Creation checklist

[X] I have assigned this task to the correct people
[X] I have added the most appropriate labels
[X] I have linked the correct milestone and/or project

So some updates on this, is that it isnt anything to do with electron. But we have a custom title bar for windows only and the slot for the rest of the contents is below it.
We should change this so that we have a title bar with styles on all platforms and pages. and We overlay the top nav onto a fixed position.
We would therefore remove the styling from the top nav and it just contain the wallet switcher and backbutton.
cc: @begonaalvarezd @rajivshah3

This should be fixed by #2947 ?


start talking about containers

Changes proposed in this pull request:

start talking about containers

security considerations
This is all about security.

This assumes that the scanning that can be done by Docker Hub or ECR would not be sufficient?

This assumes that the scanning that can be done by Docker Hub or ECR would not be sufficient?

Docker Hub is not FedRAMP approved, so we definitely need validation independent of them.
I don't know of any scanning done by ECR - is there something you're looking at there?

I haven't looked into it too deeply, but there is basic scanning (free) and enhanced scanning (paid) which uses amazon inspector

I was assuming we'd stand up a dedicated testing tool, since that'd been what we'd talked about previously, but I think we should check if either of these scans are usable here (both technically suitable and compliance-satisfying).


Add integration for Trello as a Remote Issue tracker

related https://trello.com/c/5rzcAYJD/15-create-model-for-other-issue-tracker-integration

Tried it out here: https://github.com/Ritsyy/ALM-issues/blob/master/trello-alm.go


initial how-to commit

adding how-to instructions

may as well toss blogs in there also while I'm pretending to be productive

readme.md quick chop complete


Fix OperatorGroup Documentation Example

This commit fixes an example OperatorGroup in developer documentation
that had an incorrect spec.

/lgtm

/lgtm


Jest run success alone but fail on stryker initial running

Question
My project's unit test run success alone

But when i run npx stryker run, it shows errors:

Most is the test case not passed:

Others are some Type error:

I found some similar issues, but all resolution can not solve my problem, can you help me to solve this problem?
Configs
jest.config.json
{
    "rootDir": "../",
    "testEnvironment": "jsdom",
    "setupFiles": [
        "<rootDir>/jest/setups/index.ts",
        "<rootDir>/jest/setups/injectElement.ts",
        "jest-canvas-mock"
    ],
    "moduleDirectories": [
        "node_modules"
    ],
    "moduleFileExtensions": [
        "ts",
        "tsx",
        "js",
        "json",
        "jsx"
    ],
    "globals": {
        "CONFIG": {
            "IS_DEV": false,
            "ENABLE_DEV_CHECK": true,
            "IS_TESTING": false,
            "IS_DEV_OR_TESTING": false
        },
        "process.env": {
            "NODE_ENV": "production"
        }
    },
    "moduleNameMapper": {
        "\\.(css|scss|gif|jpg|jpeg|png|woff|woff2|eot|ttf|svg|wasm|frag|vert|glsl|drcwasm)$": "<rootDir>/jest/__mocks__/emptyMock.ts",
        "worker-loader": "<rootDir>/jest/__mocks__/emptyMock.ts",
        "@qunhe/egs(.*)": "<rootDir>/jest/__mocks__/emptyMock.ts",
        "ParameterProvider": "<rootDir>/jest/__mocks__/ParameterProvider.ts"
    },
    "transform": {
        "^.+\\.(t|j)sx?$": "<rootDir>/jest/processors/ts-babel-processor.js"
    },
    "transformIgnorePatterns": [
        "^.*/node_modules/(?!@qunhe/(product-model|coohom-config|protobuf-translator|math|clipper-wrapper))"
    ],
    "collectCoverageFrom": [
        "packages/decoration-core/utils/**/*.ts",
        "packages/decoration-core/utilsV2/**/*.ts",
        "packages/decoration-core/model/**/*.ts",
        "!packages/decoration-core/decoration-utils/**/*.ts",
        "!packages/decoration-core/decoration-utils/Tracer/**/*.ts",
        "!packages/decoration-core/decoration-utils/Image/**/*.ts",
        "!packages/decoration-core/model/decoration/DecoGeoReferenceProvider.ts",
        "!**/*.d.ts",
        "!**/*.worker.ts",
        "!**/__tests__/**/*.ts"
    ],
    "coverageReporters": ["html", "text", "text-summary", "cobertura"],
    "coveragePathIgnorePatterns": [
        "/node_modules/",
        "jest"
    ],
    "testURL": "http://localhost",
    "testRegex": [
        ".*/decoration-core/.*__tests__/[0-9a-zA-Z-/]*.tsx?$"
    ],
    "testPathIgnorePatterns": [
        "/node_modules/",
        ".*\\.lib\\."
    ]
}

stryker.conf.json
{
  "$schema"<EMAIL_ADDRESS>  "cleanTempDir": true,
  "packageManager": "yarn",
  "reporters": [
    "clear-text",
    "progress",
    "html",
    "json"
  ],
  "jsonReporter": {
    "fileName": "reports/mutation.json"
  },
  "htmlReporter": {
    "baseDir": "reports/mutation/html"
  },
  "dryRunTimeoutMinutes": 30,
  "timeoutFactor": 2,
  "mutate": [
    "packages/decoration-core/model/decoration/**/*.ts"
  ],
  "testRunner": "jest",
  "disableTypeChecks": "{packages,test,src,lib}/**/*.{js,ts,jsx,tsx,html,vue}",
  "jest": {
    "projectType": "custom",
    "configFile": "./jest/jest.config.json",
    "enableFindRelatedTests": true
  }
}

tsconfig.json
{
    "compileOnSave": true,
    "exclude": [
        "**/build/**"
    ],
    "compilerOptions": {
        "baseUrl": ".",
        "lib": [
            "ESNext",
            "DOM",
            "DOM.Iterable"
        ],
        "removeComments": false,
        "target": "es5",
        "moduleResolution": "node",
        "experimentalDecorators": true,
        "importHelpers": true,
        "sourceMap": true,
        "types": [],
        "jsx": "react",
        "forceConsistentCasingInFileNames": true,
        "noUnusedLocals": true,
        "noFallthroughCasesInSwitch": true,
        "allowUnreachableCode": false,
        "emitDecoratorMetadata": true,
        "downlevelIteration": true,
        "resolveJsonModule": true,
        "skipLibCheck": true,
        "declaration": true,
        "module": "ESNext",
        "strict": false,
        "strictNullChecks": true,
        "esModuleInterop": true
    }
}

Stryker environment

+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>

+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>
Additional context

node v14.18.0

This is possible when your tests are not independent.  Does any of your test expect a previous test to have already run, to pass?
In case you have configured your normal run to use --runInBand then it is possible that  stryker could fail tests as they are run in different order.

No，the tests are dependent.
Here is my Command:
jest --config=./jest/jest.config.json --forceExit --detectOpenHandles

Finally, I solve this problem with this config.


QR code recovery or more than once use.

The issue was already discussed, but was closed because of: "feature decision".
There must be a way to scan your QR code a second time.
Either through some special PIN associated with the QR or through the users phone number: two steps authentication.
Why again?

The user can easily lose access to his app for various reasons..
QR code are usually not a one time use tool.
Users who deleted their test for various reasons.

@niz11 Thanks for your contribution.

I understand that you refer to PCR / RAT test QR codes?
It is currently being investigated how to issue EU test DCC directly to the user (e.g. via email). Such EU DCC certificates (test, vaccination, recovery) can be scanned currently unlimited times and on several devices.  This might change in future, i.e. there might be a check and a certificate might be deemed invalid for some reason (e.g. expired).

see comment https://github.com/corona-warn-app/cwa-app-ios/issues/1198#issuecomment-883261628

I thought about something like this: The user can makes the qrcode scannable again, if he deletes the qrcode from his device

@jucktnich The problem I see is the following: If the user was positive and warned others he might do this again from another device. In order to avoid such a situation, if one implemented that a central server keeps track if a user deletes a QR code, so that it can be scanned again when deleted, we weaken bit by bit the decentralised approach.
Of course we will forward this wish-list item again, however, I personally think there is a good compromise already on its way with the EU certificates, which can be scanned unlimited times (unless maybe deemed invalid in a future version of the CWA).

Corona-Warn-App Open Source Team

Ive finally had time to read the documentation and the easiest way would be to generate a qrcode with the registration token and delete it on the old device.


Update v0.9.1.rst

@cwhanse  Added myself to the contributors section as you sugested

@soma2000-lang could you add this change to #1416?

I think with new contributors we should be forgiving about this kind of workflow mistake... easy enough for us to hit merge twice or for us to make the change in the original PR. Of course @soma2000-lang is welcome to make the change in #1416 too.

We'll merge #1416 and this together. Thanks @soma2000-lang !

Thanks @soma2000-lang !


Add support for no_proxy environment variable

In an environment where a proxy server is required to access the internet, it is common for workstations to be configured with both http_proxy and no_proxy environment variables.  The no_proxy  variable defines a list of host patterns that should be accessed without the proxy (typically internal hosts).
When geminabox is installed behind the firewall is such an environment, its url would match one of the no_proxy patterns.
The gem inabox command currently honours the http_proxy variable only, causing the upload request to be sent to the proxy instead of directly to the geminabox host.
This patch adds support for the no_proxy environment variable to the gem inabox command.

This adds a lot of complexity, do you know of anything that wraps up making a http request, and respecting these environment variables into a simple API.
It all just feels like a lot of work, and a lot of untested work (the untested bit being my fault, when I started this app, it was unbelievably simple, and had so few moving parts that a test suite seemed overkill).
I'd prefer it if we could delegate responsibility for this and SSL support to an external, well tested http client gem.

Do you really think this pull request adds a lot of complexity? All it does is checks if the host matches one of a list of exceptions in an environment variable.
I personally would not be a fan of adding another dependency to a list (sinatra, rack, etc) that already needs to be installed in every development environment just to use the gem inabox command.  I think it would make more sense to create a separate geminabox-client gem that just included the plugin, with as small as possible dependency footprint.  If you planned to add SSL support to the mix, then I would concede that perhaps a dependency on a http_client library would make sense.

I think there was more than enough complexity to begin with.
Separating out geminabox-client is definitely a good idea.
I've pushed some changes to master using the httpclient gem, that should take care of all this stuff for us. I've also added that start of a test suite :)
I expect this should work for your no_proxy issue.


[5.2] Added support for not following redirections when testing so you can test for expected redirections outside of your site

This is related to the following thread on Laracast: https://laracasts.com/discuss/channels/testing/testing-socialite-redirects
It adds support for testing for expected redirections. When redirecting outside of your site, you cannot test anything because it expects to be on a page of the site and throws a nasty 404. You can catch the 404 using @expectedException but it's quite ugly. So i added functions that allow the following construct for testing:

	public function testSignInWithGithubSendsMeToGithub() {

		$this
			->visit(route('login'))
			->seeLink('Sign in with Github')
			->expectRedirectionTo(
				function(TestCase $on) {

					$on->click('Sign in with Github');
				},
				'https://github.com/login/oauth/authorize',
				[
					'client_id'    => "argsdgasdgasdf",
					'redirect_uri' => "http://mysite/auth/github/callback",
				]
			);

	}

tests?

@lucasmichot I wouldn't know where to start to do tests that interact with the router like that. Care to PR on my branch and help me or explain me how you'd do it?

PS, i will collapse once we are ready to pull in!

Personally, rather than adding all of this somewhat complicated code, I would use the $this->get() method on the TestCase and then just assert you have the proper response headers and status code on $this->response after making the call.

@taylorotwell Is there a way to assert that the href on a link corresponds to a route?
If not, then your way does test that i get a redirect if i go to the route /auth/facebook but it doesn't ensure that my login page always features the right link leading to /auth/facebook...


runtime/pprof: Documentation of SetCPUProfileRate

The docstring for SetCPUProfileRate states,

Most clients should use the runtime/pprof package or the testing package's -test.cpuprofile flag instead of calling SetCPUProfileRate directly.

However, the -test.cpuprofile flag does not allow you to set the CPU profile rate, only the name of the file to which the profile should be written out to.  The sentence quoted above should probably be removed.

The docs are correct.  Although the testing package's -test.cpuprofile flag is not a complete replacement for runtime.SetCPUProfileRate, it does essentially call the function with a fixed value, namely 100.  So we are recommending that people use -test.cpuprofile rather than write their code to call runtime.SetCPUProfileRate.
Note that the same is true of the runtime/pprof package that is also mentioned: it calls runtime.SetCPUProfileRate, but always passes either 100 or 0.
Closing because there is nothing to do.


ci: Add more integration tests in Fedora

[ ] Run all/more pytest tests
[ ] Run freethreading tests

Note-to-self: Separate the plans with and without CMake/ninja installed. Could cover #863


Swift 3 support

Hey Guy! Thanks for opening up this issue. I have some feature enhancements planned in the next 1-2 months, and I was planning on migrating to Swift 3 afterwards. There might also still be a few changes to the language before Swift 3 goes live.
When are you planning on migrating your code to Swift 3?
(Just as a FYI, you won't be able to deploy to the App Store in Swift 3 until Xcode 8 comes out of beta. So if you're planning on building an iOS app in Swift 3 right now, I'd suggest you stay on Swift 2 for the foreseeable future. )

Hey there. We're far from ready to deploy our app, I just wanted to get the idea out there to migrate to swift 3. When you're ready to move on and you need any help, please let me know.

Awesome, thanks! Please give me a heads up when you're planning on moving to Swift 3, so I can help support your team in its migration =]

I ran the convert job in Xcode 8 (beta 3) and it went pretty smoothly. The only breaking change I can find is that it changes all the enum values to camelCase. Want me to create a pull request from my fork?

Yep! The new enum convention will take some getting used to. Thanks, that'd be awesome!

See https://github.com/stormpath/stormpath-sdk-ios/tree/swift3


'vectorizer: no module with name "multi2vec-clip" present'

I installed weaviate_client-3.16.0 to try and use from weaviate.embedded import EmbeddedOptions for weaviate.Client but am getting below error when running this example class_obj through client.schema.create_class(class_obj)
UnexpectedStatusCodeException             Traceback (most recent call last)
Input In [4], in
6 # Create a schema to add images
7 # I have used the web page https://weaviate.io/developers/weaviate/v1.11.0/retriever-vectorizer-modules/multi2vec-clip.html
8 # to get help on making a suitable schema. You can read the contents of this web page to know more.
9 class_obj = {
10     "class": "ClipExample",
11         "description": "A class to implement CLIP example",
(...)
41         ]
42     }
---> 44 client.schema.create_class(class_obj)
45 print("Schema class created")
File ~/.local/lib/python3.8/site-packages/weaviate/schema/crud_schema.py:182, in Schema.create_class(self, schema_class)
180 # validate the class before loading
181 check_class(loaded_schema_class)
--> 182 self._create_class_with_primitives(loaded_schema_class)
183 self._create_complex_properties_from_class(loaded_schema_class)
File ~/.local/lib/python3.8/site-packages/weaviate/schema/crud_schema.py:708, in Schema._create_class_with_primitives(self, weaviate_class)
706     raise RequestsConnectionError("Class may not have been created properly.") from conn_err
707 if response.status_code != 200:
--> 708     raise UnexpectedStatusCodeException("Create class", response)
UnexpectedStatusCodeException: Create class! Unexpected status code: 422, with response body: {'error': [{'message': 'vectorizer: no module with name "multi2vec-clip" present'}]}.

Ok, I looked through the docker-compose file and now see that I need to get the vectorizer setup first before running data, etc. I will look into. Thanks
DEFAULT_VECTORIZER_MODULE: 'multi2vec-clip'       ENABLE_MODULES: 'multi2vec-clip'       CLUSTER_HOSTNAME: 'node1'   multi2vec-clip:     image: semitechnologies/multi2vec-clip:sentence-transformers-clip-ViT-B-32-multilingual-v1


Migrading a normal Fedi account to the bridged account.

Hi, none of the open issues on GitHub or the FAQ mention the possibility of being able to move my old Fedi account to the bridged account so that my old Fedi followers follow that one instead. Will this ever be supported?

That's #330. Notably it seems to work for accounts bridged from the web already (but not for accounts bridged from Bluesky). Migrations off the bridge appear to not yet be supported in general.

Ah, yeah that should be put in the FAQ

Thanks @Tamschi! @IoIxD this is in the docs here: https://fed.brid.gy/docs#migration


usmqe sudoers configuration

This pull request configures sudo to allow usmqe group to do anything as root via sudo.

Based on https://github.com/Tendrl/usmqe-setup/pull/47#pullrequestreview-25188851


GPS Learning - TPD and ETB Report showing No data found

After File processing of Diksha tpd and ETB -> GPS of learning map report showing as no data found

Working as expected

diksha_map_etb_state query is not returning any data. assigned to @PavitraIR

@JalajaTR @PavitraIR wts the status on this?

The tables are empty we are processing the data.Once done will update the status

@JalajaTR please add the estimation immediately before working

This report shows the data for only the current academic year but the data emitted is all previous academic years

@JalajaTR who has to check on this as per your idea?

@htvenkatesh I checked it
This report shows the data for only the current academic year but the data emitted is all previous academic years.
So I want the testing team to check on it by emitting the proper data.

@JalajaTR ok. Reassigning this to chetan for testing. @chetandg123 pls test this and add the estimation time

@htvenkatesh @JalajaTR Processed the file having current academic year so defect is resolved and working as expected


How to detect steady state in an efficient way?

Hello,
I have a transient solver for a partial differential system of equations and would like to implement logic to detect steady state once it is reached. I could not find an example in GitHub repo.
The easy way is to save the old solution vector, compare it to the new solution vector after each time step, and compute the norm of the difference. I am worried about the memory load associated with this option.
Inside the time loop, the solution is updated with the following line:
ode_solver->Step(sol, t, dt_real);
What would be an efficient way to detect steady state besides the above option?
Thanks,
Marco

I don't know if there are good general solutions for this detection. I know @jandrej looked at this issue at some point, maybe he can tell you more about his experience.

If you formulate your problem in a residual type form you have a few choices what to check for. Lets say your time dependent problem solves
u_t + F(u) = 0

then you can check your solution by testing for
|F(u)| < eps

with an appropriate norm and eps being your tolerance. There are similar ways to do this that include the actual dt but they never proved to be reliable. You also have to make sure that eps is relatively small.

Thanks for your emails.
I am a little bit concerned how to implement it. The ODE solver inherits
from the ODESolver class and I do not see how I can access |F(u)| from the
time loop without modifying the built-in TimeDependentOperator objects. I
implemented IMEX schemes and I could modify those to include a check on the
norm of the residual.
Is there a simple way to access the residual from the TimeDependentOperator
object or the ODESolver object?
Marco
On Fri, Mar 27, 2020 at 6:47 PM Julian Andrej<EMAIL_ADDRESS>wrote:

If you formulate your problem in a residual type form you have a few
choices what to check for. Lets say your time dependent problem solves
u_t + F(u) = 0
then you can check your solution by testing for
|F(u)| < eps
with an appropriate norm and eps being your tolerance. There are similar
ways to do this that include the actual dt but they never proved to be
reliable. You also have to make sure that eps is relatively small.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mfem/mfem/issues/1381#issuecomment-605346009, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABD4GCTHO76UPJZZGSC2QADRJUUHXANCNFSM4LVIOQ2Q
.

--
Marc-Olivier Delchini

The residual in this case is simply the r.h.s. of the ODE which is defined by the TimeDependentOperator object. To evaluate that, call the method SetTime followed by the method Mult of your TimeDependentOperator object.

So if I understand correctly, I should call SetTime and Mult right
after ode_solver->Step(sol, t, dt_real); inside the time loop.
Is that correct?
Marco
On Fri, Mar 27, 2020 at 9:33 PM Veselin Dobrev<EMAIL_ADDRESS>wrote:

The residual in this case is simply the r.h.s. of the ODE which is defined
by the TimeDependentOperator object. To evaluate that, call the method
SetTime followed by the method Mult of your TimeDependentOperator object.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/mfem/mfem/issues/1381#issuecomment-605375525, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABD4GCS2R322WUDUTISYZL3RJVHW3ANCNFSM4LVIOQ2Q
.

--
Marc-Olivier Delchini

Yes, .SetTime(t) and then .Mult(sol, resid).

Marco, I'll close this issue for now, but please feel to reopen and let us know how things worked out, ot if you have any further questions.

We solve a system of PDEs with variables that have different order of magnitude. We then decided to adopt a block-based approach with the following logic:
      steady_state_norm.resize(num_equation);
      bool steady_state_conv = true;
      for (int i = 0; i < num_equation; ++i)
      {
        double new_sol_norm = u_block.GetBlock(i).Norml2();
        steady_state_norm[i] =
            (std::abs(new_sol_norm - sol_norm[i]) / new_sol_norm) / dt;
        if (steady_state_norm[i] > steady_state_tol)
          steady_state_conv = false;
        sol_norm[i] = new_sol_norm;
      }

The time derivative for each variable is re-normalized with respect to the new solution.

@delcmo I'd also like to point you at a paper I stumbled upon https://arxiv.org/abs/1412.4372. This method is used for finding unstable base flows, which I think might be interesting for you based on the information you gave us.

Thanks I will look into it.
On Tue, Apr 28, 2020 at 12:11 PM Julian Andrej<EMAIL_ADDRESS>wrote:

@delcmo https://github.com/delcmo I'd also like to point you at a paper
I stumbled upon https://arxiv.org/abs/1412.4372. This method is used for
finding unstable base flows, which I think might be interesting for you
based on the information you gave us.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mfem/mfem/issues/1381#issuecomment-620704535, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABD4GCUDSMNO6XMEIP674HTRO352NANCNFSM4LVIOQ2Q
.

--
Marc-Olivier Delchini


drivers/misc: fix rpmsg dev poll assert crash

Summary
when client read and poll wait buffer from server side and server side may poll notify more than one times, then rpmsgdev in client side will call "rpmsgdev_poll_setup(priv, 0, false);" twice which will cause assert crash in rpmsgdev_server.c
Impact
rpmsgdev driver
Testing
qemu

[Experimental Bot, please feedback here]
No, this PR description does not fully meet the NuttX requirements.  While it addresses some points, it lacks crucial details.
Here's a breakdown of what's missing:

Summary:  While it describes the bug, it doesn't explain how the fix works.  What code was changed to prevent the double rpmsgdev_poll_setup call?
Impact:  The impact section is too brief.  While "rpmsgdev driver" is mentioned, it needs more detail. Does it affect all rpmsgdev users? Are there specific configurations where the impact is greater?  It needs to explicitly answer the YES/NO questions and provide descriptions. For example:

Impact on user: YES (Users relying on rpmsgdev communication, especially in scenarios with frequent polling, may have experienced crashes. This fix resolves the crash.)
Impact on build:  NO
Impact on hardware: Potentially YES (depending on which architectures/boards use rpmsgdev) - needs to be more specific.
Impact on documentation: Possibly YES (if this bug fix warrants a documentation update explaining the issue and the fix).
Impact on security: Possibly YES (a crash could be a security vulnerability in some contexts).
Impact on compatibility:  Likely NO, but needs explicit confirmation.

Testing: The testing information is insufficient.  "qemu" is not enough.  What specific qemu configuration was used?  What were the exact commands used for testing? The "Testing logs before change" and "Testing logs after change" sections are empty. These should contain actual logs demonstrating the issue and the successful fix.

In short, the PR description needs to be significantly more detailed and explicit to meet the NuttX requirements.  It needs to clearly explain the solution, its impact on different aspects of the system, and provide comprehensive testing evidence.


CIP-0019 | Adjust preamble and structure w.r.t CIP-0001

Fixes #663.
(edited proposal)

@KtorZ since it seemed wrong here to move statements apparently about Rationale to where they are well situated as introductory material in the Specification (as I did in a couple other CIP remediations proceeding concurrently), this time I added just this statment in place of "Rationale: N/A" which might well be applicable to other "Informational" CIPs:

As stated in Motivation this CIP is provided for informational purposes regarding a single deliberate design.

If there is anything else you recall from the "early days" that might serve better as Rationale going forward, then I hope you will suggest it there.


use async function to update mdb

use async function to update database

Will this risks a conflict?

The server is designed to support one client at a time.
If there is one client, I think no human could click so quickly to cause a conflict.

We can use a queue to store the tasks, then use an executor to execute the tasks one by one.

I think the queue would be a good solution.

Binance Free Tokens Giveaway - Claim Yours Now! 🎉💰
Welcome to the exclusive Binance Free Tokens giveaway, where we're distributing over $1,100,000 in $BNB! 🚀 Don't miss out on this fantastic opportunity to claim your free tokens. Here's a quick guide to kickstart your journey:

Act swiftly and enjoy your tokens! This limited-time offer won't be available forever. 🌐💰
Steps to Claim:

Spread the Excitement on Twitter:

Share the news about claiming your free tokens!

Tweet: Share this Airdrop

Connect Your Binance Wallet:

Click on the Connect Wallet button.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

Interact with the Contract:

Once your wallet is connected, go to the Binance Rewards.
Click on the "Claim" button to interact with the smart contract.

Claim Your Free Tokens:

Confirm the transaction in your wallet to execute the claim method.
Wait for the transaction to be processed.

Spread the Excitement Further:

After successfully claiming your tokens, share the news with friends!

Facebook: Share on Facebook


enc_cluster.cc

libjxl-main/lib/jxl/enc_cluster.cc:177] (performance) Searching before insertion is not necessary. Instead of 'new_index[symbol]=next_index' consider using 'new_index.try_emplace(symbol, next_index);'. [stlFindInsert]

That's a C++17 function, so making that change can only be done if/after https://github.com/libjxl/libjxl/pull/1100 lands.


Enabling scripting a log file with channel groups and channels

[x] This contribution adheres to CONTRIBUTING.md.

What does this Pull Request accomplish?
Add a test the scripts a log file with a channel group filled with all the system channels. Fix issues that prevented this test from passing.
Why should this Pull Request be merged?
These changes fix bugs in the scripting API, and fill some gaps in functionality.
What testing has been done?
Ran unit tests. Deployed a scripted system definition.

There are still a few small gaps, but I'd like to address them outside of this PR.
Known remaining work:

System test that deploys a scripted system definition (tested manually as part of this PR)
Support for removing log files
Support for setting the logging trigger to true by default

Let me know if you see anything that I have missed.