Omnisharp unable to find Microsoft.NET.Sdk

Issue Description
I was going through the VSCode + C# tutorial at https://docs.microsoft.com/en-us/dotnet/core/tutorials/with-visual-studio-code on Win10 and was unable to get Omnisharp to properly handle the .csproj file.
Steps to Reproduce
This was a pretty vanilla approach:

Used up to date VSCode
Installed the C# extension, restarted VSCode
Installed .Net core SDK using default parameters
Created a basic project with dotnet new console
Was able to build and run
When I opened the .cs file in VSCode, got output about Omnisharp being unable to resolve Microsoft.NET.Sdk

Note that I also restarted VSCode, restarted computer, and added the following JSON config to omnisharp.json
{
    "UseLegacySdkResolver": true
}

Expected Behavior
Omnisharp loads dependencies, I can debug C# in VSCode
Actual Behavior
Sad trombones
Logs
OmniSharp log
Starting OmniSharp server at 12/21/2019, 3:16:27 PM
    Target: c:\Users\cbent\code\foobar

OmniSharp server started.
    Path: C:\Users\cbent\.vscode\extensions\ms-vscode.csharp-1.21.9\.omnisharp\1.34.9\OmniSharp.exe
    PID: 12124

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on Windows 6.2.9200.0 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: Visual Studio Community 2019 16.3.29324.140 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin"
            2: StandAlone 16.3 - "C:\Users\cbent\.vscode\extensions\ms-vscode.csharp-1.21.9\.omnisharp\1.34.9\.msbuild\Current\Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Visual Studio Community 2019 16.3.29324.140 - "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin"
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in 'c:\Users\cbent\code\foobar'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        No solution files found in 'c:\Users\cbent\code\foobar'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for 'c:\Users\cbent\code\foobar\foobar.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in 'c:\Users\cbent\code\foobar'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: c:\Users\cbent\code\foobar\foobar.csproj
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location 'c:\Users\cbent\code\foobar' on host 4396.
[warn]: OmniSharp.MSBuild.ProjectManager
        Failed to load project file 'c:\Users\cbent\code\foobar\foobar.csproj'.
c:\Users\cbent\code\foobar\foobar.csproj(1,1)
Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk' specified could not be found.  c:\Users\cbent\code\foobar\foobar.csproj
   at Microsoft.Build.Shared.ProjectErrorUtilities.ThrowInvalidProject(String errorSubCategoryResourceName, IElementLocation elementLocation, String resourceName, Object[] args)
   at Microsoft.Build.Evaluation.Evaluator`4.ExpandAndLoadImportsFromUnescapedImportExpressionConditioned(String directoryOfImportingFile, ProjectImportElement importElement, List`1& projects, SdkResult& sdkResult, Boolean throwOnFileNotExistsError)
   at Microsoft.Build.Evaluation.Evaluator`4.ExpandAndLoadImports(String directoryOfImportingFile, ProjectImportElement importElement, SdkResult& sdkResult)
   at Microsoft.Build.Evaluation.Evaluator`4.EvaluateImportElement(String directoryOfImportingFile, ProjectImportElement importElement)
   at Microsoft.Build.Evaluation.Evaluator`4.PerformDepthFirstPass(ProjectRootElement currentProjectOrImport)
   at Microsoft.Build.Evaluation.Evaluator`4.Evaluate(ILoggingService loggingService, BuildEventContext buildEventContext)
   at Microsoft.Build.Evaluation.Project.Reevaluate(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
   at Microsoft.Build.Evaluation.Project.ReevaluateIfNecessary(ILoggingService loggingServiceForEvaluation, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
   at Microsoft.Build.Evaluation.Project.Initialize(IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
   at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion, String subToolsetVersion, ProjectCollection projectCollection, ProjectLoadSettings loadSettings, EvaluationContext evaluationContext)
   at Microsoft.Build.Evaluation.ProjectCollection.LoadProject(String fileName, IDictionary`2 globalProperties, String toolsVersion)
   at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore(String filePath) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectLoader.cs:line 129
   at OmniSharp.MSBuild.ProjectLoader.BuildProject(String filePath) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectLoader.cs:line 72
   at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load(String filePath, ProjectIdInfo projectIdInfo, ProjectLoader loader) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectFile\ProjectFileInfo.cs:line 98
   at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject(String projectFilePath, Func`1 loader) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectManager.cs:line 308

[fail]: OmniSharp.MSBuild.ProjectManager
        Attempted to update project that is not loaded: c:\Users\cbent\code\foobar\foobar.csproj

C# log
Post the output from Output-->C# here
Environment information
VSCode version: 1.41.1
C# Extension: 1.21.9
Dotnet Information
.NET Core SDK (reflecting any global.json):
 Version:   3.1.100
 Commit:    cd82f021f4
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.18362
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\3.1.100\
Host (useful for support):
Version: 3.1.0
Commit:  65f04fb6db
.NET Core SDKs installed:
3.1.100 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions

Extension
Author
Version

cpptools
ms-vscode
0.26.2

csharp
ms-vscode
1.21.9

noctis
liviuschera
10.22.0

python
ms-python
2019.11.50794

remote-wsl
ms-vscode-remote
0.41.6

Note: In the OmniSharp output I noticed the following.
   at OmniSharp.MSBuild.ProjectLoader.EvaluateProjectFileCore(String filePath) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectLoader.cs:line 129
   at OmniSharp.MSBuild.ProjectLoader.BuildProject(String filePath) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectLoader.cs:line 72
   at OmniSharp.MSBuild.ProjectFile.ProjectFileInfo.Load(String filePath, ProjectIdInfo projectIdInfo, ProjectLoader loader) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectFile\ProjectFileInfo.cs:line 98
   at OmniSharp.MSBuild.ProjectManager.LoadOrReloadProject(String projectFilePath, Func`1 loader) in D:\a\1\s\src\OmniSharp.MSBuild\ProjectManager.cs:line 308

I have no D: drive. Is this a strange default in the code?

The same, I try to update everything.... I don't understand, I'm in a out of the box context

Encountering the exact same issue, just setup vscode for C# development and am getting Failed to load project file  and Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk' specified could not be found.
dotnet --info shows that 3.1.100 is installed

Thanks for the report. Closing this as a duplicate of #3541 which will be the all-up issue


Auto apply terraform configuration changes

I want to automate applying terraform configuration changes using Github actions
When a change is made to any file within the /terraform directory

on pull request

run terraform validate, fmt, and plan and output results directly to the pull request.
if any of those steps fail, prevent pull request from being merged.

on merge to main

run terraform apply and auto approve

basically following this tutorial in terraform website: https://learn.hashicorp.com/tutorials/terraform/github-actions?in=terraform/automation#aws_access_key_id


⚠ Bofrost.es has degraded performance

In 4504f9d, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1573 ms

Resolved: Bofrost.es performance has improved in b4e3a90 after 20 minutes.


Class Not Found Error on Latest version of IntellijIDEA

Get an error for class not found on latest version of IntellijIDEA 15.0.2. Does anyone else see same issue?
Using JDK 1.8

From what we can tell, IntelliJ 15.0.2 changed something in its API that broke some existing plugins, including this one.
Note though that this MSOpenTech plugin has now been deprecated in favor of the newer versions released by MS very recently. They are equivalent in functionality, it's just that the original msopentech plugin got split into 3 -- one for Android devs, one for Java devs on Azure, and one with Azure Explorer functionality:
https://plugins.jetbrains.com/plugin/8052
https://plugins.jetbrains.com/plugin/8053
https://plugins.jetbrains.com/plugin/8077
Depending on what you need, these are the plugins to choose from now. Note that the Azure Services Explorer plugin is currently a required pre-req for the other two, so start with that one, and then install whichever of the other two you need.
We have tested and made to work the 3 new ones on intelliJ 15.
We will be removing the MSOpenTech one soon.

since this issues got fixed in the latest releases, closing.


CHANGELOG.md

Would you happen to have a list of changes written up that could be turned into a CHANELOG, or at the very least to add as notes with each release on the releases page?
Also, thanks for developing such a useful module!

There hasn't been any changelog up to this point as the feature set remained pretty static for a while.
Changes up to this point can basically be traced through closed pull requests.
It is a good idea though so going forward (whenever the next release is), I'll add a changelog of has changed. 👍🏻

@deanhet Cheers!


libc-test do not pass on macOs Xcode 13.1

  cargo:warning=/Users/dcarlier/Contribs/libc/target/debug/build/libc-test-824b81608838ae56/out/main.c:34439:71: error: use of undeclared identifier 'TIOCREMOTE'   cargo:warning=            static const unsigned  long __test_const_TIOCREMOTE_val = TIOCREMOTE;
Warning, this is not libc's bug but most likely a Xcode's actual version. Confirmed in two different Monterey/Xcode 13.1 machines, a quick ioctl's C code confirms it, it does not compile with XCode's clang but just do fine with both gcc and clang from homebrew and libc test pass with the latter.
Writing it down here just in case someone else encounters the same situation.

@devnexen Is it actually removed or is an additional include needed? I don't have macOS env and cannot test on my local...

even trying a little C code and including proper headers it does not compile with XCode/clang 13.1 but fine with homebrew compilers.

Uhm, so we could say it's just an XCode issue, I guess. I'm not sure if we need any additional action here, but I've skipped a test and the failure is removed now, closing. Thanks for checking it!


RELRO error

I'm trying dockr 1.10.0-rc1 with the latest calico containers.
I tried to create a network, and that failed with:
[trinity10] run: docker network create --driver calico --ipam-driver calico netalphabeta
[trinity10] out: Error response from daemon: Post http://%2Frun%2Fdocker%2Fplugins%2Fcalico.sock/Plugin.Activate: dial unix /run/docker/plugins/calico.sock: connect: connection refused

Looking at the containers, they are in a restarting state:
mak@trinity10:~$ docker ps
CONTAINER ID        IMAGE                           COMMAND               CREATED             STATUS                            PORTS               NAMES
02a43fb2cac3        calico/node-libnetwork:v0.7.0   "./start.sh"          12 hours ago        Restarting (127) 14 minutes ago                       calico-libnetwork
627a29f4bb2e        calico/node:v0.14.0             "/sbin/start_runit"   12 hours ago        Restarting (127) 5 hours ago                          calico-node

And looking at the logs, they are full of RELRO errors:
mak@trinity10:~$ docker logs 02a43fb2cac3
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating ./start.sh: RELRO protection failed: Permission denied
mak@trinity10:~$ docker logs 627a29f4bb2e
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied
Error relocating /lib/ld-musl-x86_64.so.1: RELRO protection failed: Permission denied
Error relocating /sbin/start_runit: RELRO protection failed: Permission denied

Any ideas?
This is on "Ubuntu 14.04.3 LTS", with a newer kernel "Linux trinity10 3.16.0-57-generic #77~14.04.1-Ubuntu SMP Thu Dec 17 23:20:00 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux". Docker was installed with "curl -fsSL https://test.docker.com/ | sh".
Actually I see problems with other containers too, so this may not be specific to calico. I'll look into it further.

This appears to be https://github.com/docker/docker/issues/18948 . Per @cpuguy83's suggestion there I did:
sudo invoke-rc.d apparmor stop
sudo apparmor_parser -R /etc/apparmor.d/docker-engine
sudo invoke-rc.d apparmor start

and verified I could run containers with ttys.
Then for the calico containers:
docker kill calico-libnetwork calico-node
docker start calico-libnetwork calico-node

which got them out of "Starting" into "Up" state.
On another node I just did:
sudo ln -s /etc/apparmor.d/docker-engine /etc/apparmor.d/disable/

and rebooted; that also did the trick.
So, not a calico issue.

It happens on coreos as well. There is no apparmor on coreos.


[SpeedDial] Add support for uncontrolled open state

[x] I have searched the issues of this repository and believe that this is not a duplicate.
Summary 💡

Hi guys, is it possible to use SpeedDial as uncontrolled component?

Yes

It doesn't seem to be

https://codesandbox.io/s/material-demo-forked-4lf3r?file=/demo.tsx

@akharkhonov Thanks for the reproduction.
Looking at the other components in the codebase, it seems that in a case where the component has all the information to support the uncontrollable mode, we do so. For instance, if you look at the Modal, we can't, we have made the open prop required because the component doesn't have access to the onOpen callback.
cc @mbrookes. What do you think?

Sure, why not?

@akharkhonov Do you want to work on it? :)

if nobody minds then yes


chore: remove Fedora 38 & kmods images

Remove kmods builds
Remove Fedora 38
Do not merge until a few weeks after Fedora 40 dropped
Relates: #527

Is this for the Fedora 40 release?
Then latest will de F40 and gts F39?

@p5 I don't think we should tie the release/promotion of F40 to stable/latest to removing F38 builds. Shouldn't removing F38 be a distinct act?
As much as I want to stop maintaining 38, I really am hesitant to drop those builds this week... feels like we should get a bit closer to upstream's EOL first.

latest will be F40 and gts F39?

yes

@p5 I don't think we should tie the release/promotion of F40 to stable/latest to removing F38 builds. Shouldn't removing F38 be a distinct act?
As much as I want to stop maintaining 38, I really am hesitant to drop those builds this week... feels like we should get a bit closer to upstream's EOL first.

Understood.  So including only the Containerfile ARG defaults and
          if [[ "${{ matrix.fedora_version }}" -eq "39" ]]; then
            IS_LATEST_VERSION=false
            IS_STABLE_VERSION=true
            IS_GTS_VERSION=true
          elif [[ "${{ matrix.fedora_version }}" -eq "40" ]]; then
            IS_LATEST_VERSION=true
            IS_STABLE_VERSION=true
            IS_GTS_VERSION=false
          elif [[ "${{ matrix.fedora_version }}" -eq "41" ]]; then

is enough for tomorrow?

Have repurposed this PR to only deprecate Fedora 38 and kmod builds.  Will bump Fedora 39 and 40 in this PR

@p5 I would suggest that "deprecate" means "not recommended for use" but this PR will remove 38 so it cannot be used.

You should delete lxqt from the image_name list.

Good catch
Done in 9508130

Remove kmods builds Remove Fedora 38
Do not merge until a few weeks after Fedora 40 dropped

Regarding the "when" of removing Fedora 38... we recently updated our governance document to make this more clear:

Our goal is to build two currently supported versions of Fedora, the most recent and one previous version.

https://universal-blue.discourse.group/docs?topic=51
Given this update, we should be good to remove immediately.


[Previewer] Device form factor Message/Argument

Is your feature request related to a problem? Please describe.
Allow implement fetaure https://github.com/AvaloniaUI/AvaloniaVS/issues/406
Describe the solution you'd like
Send to previewer message like this:  <hRes>x<vRes>,<nColor>[,<dpi>[,<scale>]] eg: 1024x768,32,96,150
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Part of https://github.com/AvaloniaUI/AvaloniaVS/issues/406

Note that the general plan is to disable the bitmap transport completely and switch to the web previewer entirely starting from 12.0. Web previewer is used by Rider and our VSCode plugin, so we'd like to unify IDE extensions.
So the implementation needs to update the current react client to provide a form-factor editor as well.

I run into this feature and saw that there are some messages like RequestViewportResizeMessage that could be used. Should i extend RequestViewportResizeMessage or create a new type RequestFormFactorMessage?;


Windows: "Paul Betts" folder appears in Start Menu

I'm on Windows 7. I updated Atom from 0.175.0 to 0.176.0 yesterday. Today, I noticed a new folder in my Start Menu Programs called "Paul Betts". The folder is empty. The creation time is just 13 seconds after the creation of the folder atom/app-0.176.0/resources and before the creation time of the rest of the files in atom/app-0.176.0.
This seems like a bug. In case it's relevant, I do remember closing Atom during the update process.

First bug that's made me laugh in a while.

rad. cc @paulcbetts

This didn't happen on my machine. If it's not too much of a pain, can you take your entire C:\Users\MYNAME\AppData\Local\atom folder and Dropbox it to me?

This didn't happen on my machine. If it's not too much of a pain, can you take your entire C:\Users\MYNAME\AppData\Local\atom folder and Dropbox it to me?

Just put it in your "Paul Betts" folder. ;)

All of my folders are Paul Betts folders, that's what I name every folder on my machine of course! #laughsoyoudontcry

Sorry, I meant "rly" needs to put it in his "Paul Betts" folder, so it turns up in your Dropbox...

I <3 this thread

It took a couple hours of tinkering but I managed to replicate the bug a few times. The timing required to create the bug requires a slowish PC but a fast internet connection. I could not create the bug on my fast PC.
Long story short, if you start an update while a previous update is working, both update processes will try to modify Local\atom\app-0.176.0, and for whatever reason, this leads to "Paul Betts" appearing in my Start menu.

For good measure, in Windows, create new standard user account and log onto it
Download and run AtomSetup.exe v0.175.0
Atom will open when the install completes and will begin downloading v0.176.0 to Local\atom\packages\atom-0.176.0-full.nupkg
Go to Local\atom\packages in Windows Explorer and monitor the download file size (F5 repeatedly)
After Local\atom\packages\atom-0.176.0-full.nupkg reaches final size of 77MB, the file size will drop to 0B and will gradually rise back up to 77MB
Close atom as early as after Local\atom\packages\atom-0.176.0-full.nupkg dropped to 0B and as late as right before when I say to open it below
When Local\atom\packages\atom-0.176.0-full.nupkg reaches its final size for the second time, Local\Temp\nuget\[some chars]\ and Local\atom\app-0.176.0\ will be created
Wait about a minute
Local\atom\atom.exe will be created but Squirrel.exe will not yet be created
Close atom
Open atom
v0.176.0 will begin downloading for the second time - Local\atom\packages\atom-0.176.0-full.nupkg will go to 0B and rise to 77MB
After Local\atom\packages\atom-0.176.0-full.nupkg reaches final size of 77MB, the file size will drop to 0B and will gradually rise back up to 77MB
When Local\atom\packages\atom-0.176.0-full.nupkg reaches its final size for the fourth time now, Local\atom\app-0.176.0\ will be cleared except for the resources\ directory (I think the first update is still creating files in there)
Wait less than a minute
In Local\atom\, squirrel.exe, ui_resources_200_percent.bak, vccorlib120.dll, xinput1_3.dll will be created (from first update)
Wait about 5 seconds
Local\atom\SquirrelSetup.log will be created (from first update)
Roaming\Microsoft\Windows\Start Menu\Programs\Paul Betts directory will be made (??)
Update.exe will remain running and not doing anything as far as I can tell

Speculation: Maybe when Squirrel fails to find Local\atom\app-0.176.0\atom.exe to make a shortcut for it, Squirrel tries to create a Start menu shortcut for squirrel.exe instead, which leads to a directory for its company/org name ("Paul Betts"?) being created.
If you can't replicate this and would still like me to upload my atom folder to you, let me know.

It sounds like what might be happening is that Squirrel is somehow failing to determine that Atom is a Squirrel-enabled application. Squirrel has two paths for generating shortcuts:

At least one of the apps is "Squirrel aware" - this means that they're marked with a special Version block header which says, "This app will understand us passing --squirrel-install to it". If this is true, we never explicitly create shortcuts, only allow the app itself to do so. Atom.exe is marked in this fashion.

If no apps are Squirrel Aware, we fallback to "Dumb mode", where you just wanted to create an installer, so we'll take care of it for you. In this scenario, we run through every EXE file and create shortcuts for it, using the info in the EXE's version block to fill in the folder and file names.

If we were to fail to access Atom.exe when we made the check, we'd end up making a shortcut for Squirrel.exe, which probably has my name as the company name.
@rly Thanks for the awesome write-up. A question, what Antivirus application are you using? It could be holding a lock on Atom.exe trying to scan it.

https://www.youtube.com/watch?v=T_EZesbpvag

@paulcbetts I am using Avast Free antivirus.
In case it wasn't clear, at the time that Local\atom\atom-0.176.0\squirrel.exe and Local\atom\atom-0.176.0\SquirrelSetup.log are created (from the first update process), Local\atom\atom-0.176.0\atom.exe does not exist (because the second update process deleted them).

Just put it in your "Paul Betts" folder. ;)

:star2:

I'm thinking of selling "I have a Paul Betts" folder" T-shirts.
On Sat, Jan 31, 2015 at 7:35 AM, Rick Bradley<EMAIL_ADDRESS>wrote:

Just put it in your "Paul Betts" folder. ;)
[image: :star2:]
—
Reply to this email directly or view it on GitHub
https://github.com/atom/atom/issues/5296#issuecomment-72322303.

I'll take 8!
mark-hahn<EMAIL_ADDRESS>schrieb am Sa., 31. Jan. 2015 21:13:

I'm thinking of selling "I have a Paul Betts" folder" T-shirts.
On Sat, Jan 31, 2015 at 7:35 AM, Rick Bradley<EMAIL_ADDRESS>wrote:

Just put it in your "Paul Betts" folder. ;)
[image: :star2:]
—
Reply to this email directly or view it on GitHub
https://github.com/atom/atom/issues/5296#issuecomment-72322303.

—
Reply to this email directly or view it on GitHub
https://github.com/atom/atom/issues/5296#issuecomment-72334184.

In case it wasn't clear, at the time that Local\atom\atom-0.176.0\squirrel.exe, Local\atom\atom-0.176.0\SquirrelSetup.log, and Roaming\Microsoft\Windows\Start Menu\Programs\Paul Betts\ are created (from the first update process), Local\atom\atom-0.176.0\atom.exe does not exist (because the second update process deleted it).

So our problem could be multiple Update.exe instances running concurrently, which was fixed in Squirrel/Squirrel.Windows#189, but that fix probably hadn't made it to Atom yet.

This can be closed now, right?

Yep afaik


Tabs example not working

i copied the tabs example html. just by adding the plain HTML, i get following error

bootstrap-native-v4.min.js:2 Uncaught TypeError: Cannot read property 'parentNode' of null
    at new he (bootstrap-native-v4.min.js:2)
    at _t (bootstrap-native-v4.min.js:2)
    at bootstrap-native-v4.min.js:2
    at bootstrap-native-v4.min.js:2
    at bootstrap-native-v4.min.js:2

/ for better usage, wrap the tabs and contents
#myTabsWrapper
  / Nav tabs
  %ul#myTabs.nav.nav-tabs{:role => "tablist"}
    %li.active{:role => "presentation"}
      %a#home-tab{"aria-controls" => "home", "aria-selected" => "true", "data-height" => "true", "data-toggle" => "tab", :href => "#home", :role => "tab"} Home
    %li{:role => "presentation"}
      %a#profile-tab{"aria-controls" => "profile", "aria-selected" => "false", "data-height" => "true", "data-toggle" => "tab", :href => "#profile", :role => "tab"} Profile
    %li{:role => "presentation"}
      %a#messages-tab{"aria-controls" => "messages", "aria-selected" => "false", "data-height" => "true", "data-toggle" => "tab", :href => "#messages", :role => "tab"} Messages
    %li{:role => "presentation"}
      %a#settings-tab{"aria-controls" => "settings", "aria-selected" => "false", "data-height" => "true", "data-toggle" => "tab", :href => "#settings", :role => "tab"} Settings
  / Tab panes
  .tab-content
    #home.tab-pane.active{"aria-labelledby" => "home-tab", :role => "tabpanel"} ...
    #profile.tab-pane{"aria-labelledby" => "profile-tab", :role => "tabpanel"} ...
    #messages.tab-pane{"aria-labelledby" => "messages-tab", :role => "tabpanel"} ...
    #settings.tab-pane{"aria-labelledby" => "settings-tab", :role => "tabpanel"} ...

For some reason, your tabs just don't have the proper markup, that's why.

i copy and pasted the code from the example page of bn

Well my example works, yours doesn't. Who's to blame?

In Chrome 80.0.3987.87:
The Tabs example (thednp.github.io/bootstrap.native/) which is using DATA API does not work unless:

You move the href attribute from <a> to parent <li>
You set data-height to false

@petrnagy please refer to master code which is V4, the demo is showcasing the legacy V3 version of BSN, so try and reproduce issue there and let us know.


Improvement - Add corresponding test file for generated code.

It would be nice if the generated code had a corresponding _test.go file with it so that we could have the coverage when including the generated code file into our codebase.

Interesting idea. How would this work? The schema might tell you enough for basic types, some of the time, eg 'string' = 'asdf', but what about custom scalars? use the zero value? but I feel like getting tests to pass any user implemented validation (eg user id must be a valid id) would be really tricky. It probably ends up looking like the apollo mocking api but backwards.
I usually write tests to cover the graph manually, executing mutations and asserting that they are present in the query. There is a client package in this repo to make that a little easier. Take a look at the tests in any of the examples eg

I think that the tests for the generated code should only test that the code generated is valid and does what is expected. In this scenario we could mock the Resolvers interface generated as this is the root node to the query (the query and mutation fields) and we can control from the top level the objects which are returned and resolved further down the tree, assuming that we can initialise user generated mocks, using the structures themselves or a package like mock
I think that these tests should not have to worry about user implemented validation, as stated above we can control the objects returned from root nodes, and any resolver funcs lower down the tree.
As you stated, the difficulty is in Custom scalar types.


OCSP responder for v3 documents

The OCSP responder looks great for DID-signed documents, especially those for v3. However it seems that v3 documents aren't currently supported:
      case v3.RevocationType.OcspResponder:
        throw new Error("Ocsp revocation type not yet supported for v3");

(from didSignedDocumentStatus.ts)
This seems pretty straightforward to add however, using the v2 code as a guide.
Are there any plans to add this?

Hi @morgatron, thanks for the suggestion! We'll add this into our backlog and keep you updated here when it gets implemented.

Thanks @HJunyuan !
I'm guessing you can't give us a time estimate? ;)

To be clear,  it's looking like this will be important for our customer. We'll be needing the feature in the next couple of months...
any clarity you can provide would be fantastic.

I could be wrong, but it looks as simple as replacing
  case v3.RevocationType.OcspResponder:
    throw new Error("Ocsp revocation type not yet supported for v3");

with
  case v3.RevocationType.OcspResponder:
    if (typeof location === "string") {
      return isRevokedByOcspResponder2({
        merkleRoot,
        targetHash,
        proofs,
        location,
      })
    }

I can raise a PR if desired, but I'm not sure I understand how tests work for this currently so I'm not sure I can update them.
Let me know!

Yes you are right! We'll just need to focus on creating the tests and it should be done. Will get started on this around this or next week or when the new sprint starts.

:tada: This issue has been resolved in version 8.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

Great!!


Keda ScaledJob - no sidecar

Dapr CLI version: 1.6.0
Dapr Runtime version: 1.6.0
Dapr Client version: 1.6.0
I have a Keda ScaledJob deployed in Kubernetes which is scaled to zero and will scale up when a message is detected on a queue,  once it has run to completion it will shutdown, this is working fine
However, the dapr sidecar is not being injected so I am unable to call the other dapr services.
There aren't any errors in the logs.
please advise
yaml below
apiVersion: keda.sh/v1alpha1
kind: ScaledJob
metadata:
  name: jobs-app
  namespace: jobs-app-namespace
  labels:
    deploymentName: jobs-app
spec:
  jobTargetRef:
    parallelism: 1
    completions: 1
    backoffLimit: 6
    ttlSecondsAfterFinished: 259200
    template:
      metadata:
         labels:
           app: jobs-app
           aadpodidbinding: k8s-vault-identity
           version: 0.1.0
         annotations:
           dapr.io/enabled: "true"
           dapr.io/app-id: "jobapp"
           dapr.io/app-port: "5010"
      spec:
         containers:
         - name: jobs-app
           image: <acr-url>/jobsapp:latest
           ports:
           - containerPort: 5010
             protocol: TCP
           imagePullPolicy: Always
           env:
           - name: AzureVault__KeyVaultName
             value: "keyvault"
           - name: POD_NAME
             valueFrom:
               fieldRef:
                 fieldPath: metadata.name
           - name: keda__servicebus__connection
             valueFrom:
               secretKeyRef:
                 name: job-secret
                 key: SERVICEBUS_QUEUE_CONNECTIONSTRING
         terminationGracePeriodSeconds: 30
         nodeSelector:
           jobstype: JobPool1
         affinity:
           nodeAffinity:
             requiredDuringSchedulingIgnoredDuringExecution:
               nodeSelectorTerms:
               - matchExpressions:
                 - key: jobstype
                   operator: In
                   values:
                   - JobPool1
         tolerations:
           - key: podtype
             operator: "Equal"
             value: job
             effect: "NoSchedule"
         restartPolicy: OnFailure
  pollingInterval: 20
  maxReplicaCount: 100
  successfulJobsHistoryLimit: 200
  failedJobsHistoryLimit: 200
  scalingStrategy:
    strategy: "accurate"
  triggers:
  - type: azure-servicebus
    metadata:
      queueName: jobsqueue
      namespace: jobs-namespace
      messageCount: "1"
      connectionFromEnv: keda__servicebus__connection

Can you run the following command to grab the logs from the sidecar injector and paste it here?
kubectl logs -l app.kubernetes.io/component=sidecar-injector -n dapr-system

If you can helm upgrade your installation with the --set dapr_sidecar_injector.logLevel=debug param to enable debug logs on the sidecar injector, that's even better.

Which Kubernetes distribution/service you're running on?

Azure Kubernetes service v1.21.7

Azure Kubernetes service v1.21.7

Can you turn on Kubernetes API logs from AKS and look at the k8s controller and other components to try and spot an error when calling the sidecar injector? It'll surely show up there.

I've had a quick look and nothing is jumping out at me
There's a 404 error on the prometheus-operator, i'll look some more next week
`{
"kind": "Event",
"apiVersion": "audit.k8s.io/v1",
"level": "Request",
"auditID": "xxxc0bbe-f217-44c5-94e2-224d2b432xxx",
"stage": "ResponseComplete",
"requestURI": "/apis/apps/v1beta1/statefulsets?resourceVersion=0",
"verb": "list",
"user": {
"username": "system:serviceaccount:monitoring:prometheus-operator",
"uid": "xxx75741-6e0d-4f69-ace1-311b4e69bxxx",
"groups": ["system:serviceaccounts",
"system:serviceaccounts:monitoring",
"system:authenticated"],
"extra": {
"authentication.kubernetes.io/pod-name": ["prometheus-operator-68fbb68894-tk2ll"],
"authentication.kubernetes.io/pod-uid": ["d635daa5-979b-49fe-b784-f50ef580d084"]
}
},
"sourceIPs": ["xx.xxx.xxx.xxx"],
"userAgent": "operator/v1.8.1+$Format:%h$ (linux/amd64) kubernetes/$Format",
"objectRef": {
"resource": "statefulsets",
"apiGroup": "apps",
"apiVersion": "v1beta1"
},
"responseStatus": {
"metadata": {
	},
	"status": "Failure",
	"reason": "NotFound",
	"code": 404
},
"requestReceivedTimestamp": "2022-03-04T16:47:42.213850Z",
"stageTimestamp": "2022-03-04T16:47:42.214488Z",
"annotations": {
	"authentication.k8s.io/stale-token": "subject: system:serviceaccount:monitoring:prometheus-operator, seconds after warning threshold: 4937474",
	"authorization.k8s.io/decision": "allow",
	"authorization.k8s.io/reason": "RBAC: allowed by ClusterRoleBinding \"prometheus-operator\" of ClusterRole \"prometheus-operator\" to ServiceAccount \"prometheus-operator/monitoring\""
}

}`


Operation took longer than 15 seconds.

Start getting this error today:
Algorithm.Initialize() Error: InteractiveBrokersBrokerage.Connect(): Operation took longer than 15 seconds. Stack Trace: InteractiveBrokersBrokerage.Connect(): Operation took longer than 15 seconds.: StackTrace: InteractiveBrokersBrokerage.Connect(): Operation took longer than 15 seconds.
Please advise what was changed to limit to this defaut 15 seconds? how to specify the timeout greater than 15 seconds?
Thanks

Hey @investorlifelong!
Sorry to hear your having issues, please share details on how to reproduce this issue here or with support. I just tested IB in quantconnect cloud and locally and it's working correctly using latest engine version.


Build sngrep with SSL support

Add configure argument to build sngrep against openssl for SSL connection sniffing support
See issue https://github.com/NixOS/nixpkgs/issues/346971.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Squash merged changing the commit msg to fit our guidelines


Docs: a table and a list are ill formatted

Rasa version: 1.3.9
Python version: 3.7
Operating system (windows, osx, ...): linux
Issue:
A table and a list in the docs for policies at https://rasa.com/docs/rasa/core/policies/ is not being rendered properly.

and

We can make it

and

Thanks for raising this issue, @amn41 will get back to you about it soon✨
Please also check out the docs and the forum in case your issue was raised there too 🤗

 Work on github issue #4586 status response doesn't show original model file

I think this issue has been fixed. Closing.


Added new book "Let Us C"

Hacktoberfest notes:

due to volume of submissions, we may not be able to review PRs that do not pass tests and do not have informative titles.
please read our contributing guidelines
be sure to check the output of Travis-CI for linter errors
if this is your first open source contribution, make sure it's not your last!

What does this PR do?
Add Resource(s) | Remove Resource(s) | Add info | Improve Repo
For resources
Description
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[ ] Not a duplicate
[ ] Included author(s) if appropriate
[ ] Lists are in alphabetical order
[ ] Needed indications added (PDF, access notes, under construction)

add this to free-programming-books.md, not free-programming-books-en.md


Provide digital signature for generated binaries

Description
We need to provide a public key and update documentation on how to verify our binaries.
We also need to setup a key in an HSM an itegrate onto CircleCI signature process.

Should be checked once we'll release 0.4.0, just follow the documentation and report any issues


DPI pure task - compatibility relaxation request

Consider the below code:
// BAD code - pure task is not allowed
// but some tools compile
 import "DPI-C" pure task bad_pure_dpi_t (logic [3:0] a);
// OK import "DPI-C"  task bad_pure_dpi_t (logic [3:0] a);

module top ;
endmodule

Below slang fails to compile:
slang --compat vcs ../sv_tests/test_issue_57_1_f.sv

Can you please relax this and make that available via PySlang (Am adding a rule in PySlint to check such issues).
Thanks

Done in 267adb42233ad0db21edb00e6205c124a03a37d8

Thanks for the fix. I rebuilt slang locally and I can compile this code with:
 slang ../sv_tests/test_issue_222_f.sv -Wdpi-pure-task

However, my pyslang still seems not to like it. I did:
 pip3 install -U pyslang

But still I see old behavior when PySlint parses the above code. Do I need to add this "-Wdpi-pure-task" somehow to my pyslang invocation options?
Thanks

You need to wait for the next official release or build and install the pyslang package locally.

Quick follow-up:
pip3 install --upgrade pyslang
Requirement already satisfied: pyslang in /usr/local/lib/python3.8/dist-packages (5.0.0)
I did the above. I believe this fix is in 5.0.0 release (Correct me if I am wrong).  But pyslang still does not seem to parse this test case (As in this issue) - do I need to add "-Wdpi-pure-task" to options? If so, is it done via pyslang.Bag()? Please share an example of how to pass extra options in general to slang when using pyslang wrapper.
Thanks, happy new year!

It depends how you're using the library. If you're using the Driver class then you can pass command line options to it directly. If you're creating a DiagnosticEngine you can configure it using the available methods, etc.
Happy new year to you as well.

Thanks. Below is what I do as of now:
tree = pyslang.SyntaxTree.fromFile(inp_test_name)
r = tree.root

I did spend sometime looking at Driver.cpp and attempted the following:
af_sv_bag = pyslang.Driver().createOptionBag()
pyslang.Driver().addStandardArgs()

af_sv_drv = pyslang.Driver

af_sv_copts = af_sv_bag.compilationOptions

I see Driver::addCompilationOption method is private, so perhaps no PY access? In the above af_sv_copts, I can't get to "flags" unlike the example/test in CPP, it says "no attribute named flags".
Thanks a lot for your time and efforts!

If you use the Driver then you want to pass it your command line arguments via parseCommandLine(). createOptionBag calls addCompilationOptions so you don't need to call it yourself. Something like:
driver = pyslang.Driver()
driver.addStandardArgs()
driver.parseCommandLine("<command line here>")
driver.processOptions()
options = driver.createOptionBag()

If you already have code using just the SyntaxTree methods directly I'm not sure what the problem is. You can filter diagnostics you don't like out of the tree's diagnostics set, or if you're passing them to a DiagnosticEngine for rendering you can set options there to control what the output looks like.

Will open a new issue to seek help, thanks


Note in README about sort-lines

todo.txt format is made to be sorted. We should have a note about using this module. https://atom.io/packages/sort-lines

Side note, I can't believe that atom doesn't have this built in.


sunton 2432S028R displays artifacts

Good evening, I used the compiled version "esp32-2432s028r_full_4MB_v0.7.0-rc9_c200edf" correctly on my device, now I have updated to the rc12 version but unfortunately I have display problems on the tft screen which were not present in the rc9 version.
I'm compiling my firmware to increase the lvgl memory but unfortunately with the rc12 version I can't do this due to screen problems. Can you help me?

This photo is instead with the rc9 version

if I turn it 90 degrees it's even worse version rc12

this is the rc9 version turned 90 degrees

antiburn active rc12

This is the photo of the deleted and reloaded display from virgin

I managed to solve the problem independently by reading here and there, my model has the ili9342 tft, while on the bin it is set ili9341, of an old version of the PCB, furthermore I increased the lvgl memory to 64kbit and set height 240 width 320 , thus solving the screen problem.
I now have to create a sensor to have the battery voltage and to have audio feedback as this PCB also has an audio amplifier DAC.
For now, thanks to everyone. I attach screenshots of what I changed.
If you need to do other tests I'm available.

Please create a Pull Request to incorporate the changes into the project.

Any news about this bug?

I found the device esp32-2432s028r-ili9342_4MB in esp32-2432s028.ini an add this in platformio_override.ini to compile a vaild firmware for this device. Works for the Display but touch are mirrored


[NNPA] Rewrite Sqrt into zDNN-supported operations: div, exp and log

Since zDNN does not support sqrt, this patch rewrite sqrt into zDNN-supported operations, i.e. div, exp, and log.
For efficiency, the rewriting is done only when sqrt is sandwiched by zhigh.unstick and zhigh.stick, that makes sure zhigh.unstick and zhigh.stick will be removed.
Formulas for sqrt: sqrt(x) = exp (0.5 * log(x))

Jenkins Linux s390x Build #9801 [push] [NNPA] Rewrite Sqrt into... started at 00:06

Jenkins Linux ppc64le Build #8847 [push] [NNPA] Rewrite Sqrt into... started at 00:11

Jenkins Linux amd64 Build #9782 [push] [NNPA] Rewrite Sqrt into... started at 23:06

Jenkins Linux amd64 Build #9782 [push] [NNPA] Rewrite Sqrt into... passed after 1 hr 32 min

Jenkins Linux s390x Build #9801 [push] [NNPA] Rewrite Sqrt into... passed after 6 hr 55 min

Jenkins Linux ppc64le Build #8847 [push] [NNPA] Rewrite Sqrt into... aborted after 12 hr


Fix dead links in 04_query.md

Original site has moved to Github http://savage.net.au/SQL.html

I signed it!


Make hammer plug (rate limiting) configurable

Hey FZ team,
Started looking through some of the tech debt issues in the codebase and came across this one that seems like a good one to get familiar with the codebase/setup: https://github.com/firezone/firezone/blob/ed6784d5986b681d9262f0b5241513c12dfd3b9b/apps/fz_http/lib/fz_http_web/router.ex#L19-L20
Looks like it's just adding support to make the hammer plug configurable - the only question I have is whether you wanted this to be end-user configurable or just another app config val in config.exs?
@jamilbk feel free to assign me to this one and I'll get started on it!

If this does stick around, it should be a runtime configuration I would think so users can change it in the UI or from the REST API.

I agree that I think it's a job for the load balancer, most of our customers would deploy it behind their own ingress controller, proxy, or something like that. Using it also adds potential maintenance: if you deploy Firezone behind Kubernetes and don't set an externalTrafficPolicy=local option to Service, then all IPs would be the same and large instances can rate limit legitimate requests.

Changed the issue title to reflect what we actually need to do: remove the plug and unlock the dependency (mix deps.unlock hammer and mix deps.unlock plug).

@ssaunderss Yeah, looks like we'll want to remove it in favor of using an approach in the load balancer or proxy.

[ ] Remove hammer.plug and traces of it in codebase
[ ] Remove any mention of it in docs/*


Slow navigation on http://www.getmdl.io/components/index.html

Noticed when clicking through the different component example pages that there is sometimes a very long delay navigating between pages. Easiest way to reproduce is:

Go to http://www.getmdl.io/components/index.html#badges-section
Click on 'Buttons'
Immediately click on 'Badges'

Chrome dev tools showed that clicking on 'buttons' completed in 188ms, whereas clicking on 'badges' took a whopping 1.38s and the delay was clearly noticeable.
Using Chrome 44.0.2403.61 beta (64-bit) on OSX

It replicates when quickly jumping back to the Badges section. The rest don't seem to display the lag as noticeably as badges.

Documentation will be rewritten for v2. Not feasible to fix this until then.


Port configuration / testing against a local datastore?

Hello! I'm trying to use the DCP CLI against a locally running server that implements the HCA's datastore swagger API.
I have a local server up and can access http://localhost:8888/api/swagger.json to see my local copy of the swagger spec (with the staging host replaced with localhost).
Following the readme, I created this config.json for the CLI:
{"DSSClient": {"swagger_url": "http://localhost:8888/api/swagger.json"}, "log_level": "INFO", "client_id": "foo"}

However, when I try to run the cli I get this error:
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /internal/application_secrets (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x10bc28050>: Failed to establish a new connection: [Errno 61] Connection refused',))

It seems that the port I specified is being ignored - Is this behavior expected? Is there a way to use the cli to interact with a local server?
Thanks!

Hey @MercifulCode,
I believe this is an SSL issue, but to be sure can you post the full stack trace?

Sure!
Traceback (most recent call last):
  File "/usr/local/bin/hca", line 13, in <module>
    cli.main()
  File "/usr/local/lib/python2.7/site-packages/hca/cli.py", line 73, in main
    result = parsed_args.entry_point(parsed_args)
  File "/usr/local/lib/python2.7/site-packages/hca/util/__init__.py", line 152,in _cli_call
    return self._consume_response(self._request(vars(cli_args)))
  File "/usr/local/lib/python2.7/site-packages/hca/util/__init__.py", line 127,in _request
    session = self.client.get_authenticated_session()
  File "/usr/local/lib/python2.7/site-packages/hca/util/__init__.py", line 336,in get_authenticated_session
    oauth2_client_data = self.application_secrets["installed"]
  File "/usr/local/lib/python2.7/site-packages/hca/util/__init__.py", line 264,in application_secrets
    self.config.application_secrets = requests.get(app_secrets_url).json()
  File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 512,in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 622,in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 513,in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /internal/application_secrets (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x1063f3290>: Failed to establish a new connection: [Errno 61] Connection refused',))

Hey @MercifulCode, how are you running your local server? I noticed your local server isn't serving from /v1/swagger.json - this may be related.
The CLI enforces SSL on API connections, explaining port 443. Unfortunately, this is hardcoded in the CLI source and in order to connect the CLI to a local DSS API server, you'll need to modify and use a local version of the CLI:
In dcp-cli/hca/util/__init__.py, modify the value of scheme on line 175 to http. This should resolve the port 443 error. Follow the docs to set up and build the CLI locally. Let me know if you run into any issues!

I am running a local server by using a stubbed out nodejs server created by https://swagger.io/tools/swagger-codegen/ .
Thanks for the pointer to the scheme line in init.py! Looks like it is still throwing some errors, and I've tried a few combinations, like setting my node server to use port 443 (with sudo to start it).
 hca dss get-subscriptions --replica aws
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 326, in connect
    ssl_context=context)
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/ssl_.py", line 329, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 412, in wrap_socket
    session=session
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 850, in _create
    self.do_handshake()
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ssl.py", line 1108, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:1045)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /internal/application_secrets (Caused by SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:1045)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/hca", line 13, in <module>
    cli.main()
  File "/usr/local/lib/python3.7/site-packages/hca/cli.py", line 73, in main
    result = parsed_args.entry_point(parsed_args)
  File "/usr/local/lib/python3.7/site-packages/hca/util/__init__.py", line 152, in _cli_call
    return self._consume_response(self._request(vars(cli_args)))
  File "/usr/local/lib/python3.7/site-packages/hca/util/__init__.py", line 127, in _request
    session = self.client.get_authenticated_session()
  File "/usr/local/lib/python3.7/site-packages/hca/util/__init__.py", line 336, in get_authenticated_session
    oauth2_client_data = self.application_secrets["installed"]
  File "/usr/local/lib/python3.7/site-packages/hca/util/__init__.py", line 264, in application_secrets
    self.config.application_secrets = requests.get(app_secrets_url).json()
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 506, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /internal/application_secrets (Caused by SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:1045)')))

My understanding is that the swagger_url key needs to point to any accessible swagger.json. Regarding the dss-api, I have been unable to run the local server from the datastore repo for a few days now. For posterity, that error is:
./dss-api
Traceback (most recent call last):
  File "./dss-api", line 12, in <module>
    from chalice.cli import CLIFactory, run_local_server
ImportError: No module named chalice.cli

Hm not sure exactly what's causing your issue, but there are a couple potential environment issues:

data-store requires Python 3.6 (not 3.7) to run since AWS Lambda currently only supports Python 3.6. Sorry for the confusion! I'll update the docs to be clearer about this.
re: dss-api, have you run pip install -r requirements-dev.txt? Were you able to run it in the past?

I suspect downgrading to Python 3.6 should resolve some of your issues.

Ah, I didn't realize that regarding python 3.6 - thanks!
That did resolve the chalice error, thankfully - Now I'm getting some invalid security token errors - I only have aws configured, do I need to also setup accounts for google/azure? Sorry for all the sudden questions!
./dss-api
WARNING:root:It appears that logging was already configured in this interpreter process. Currently registered handlers, formatters and filters will be left as is.
Stack (most recent call last):
  File "./dss-api", line 38, in <module>
    chalice_stage_name=os.environ["DSS_DEPLOYMENT_STAGE"]
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/chalice/cli/factory.py", line 108, in create_config_obj
    app_obj = self.load_chalice_app()
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/chalice/cli/factory.py", line 166, in load_chalice_app
    app = importlib.import_module('app')
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 978, in _gcd_import
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load
  File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
  File "./chalice/app.py", line 36, in <module>
    configure_lambda_logging()
  File "/Users/andrewd/Workspace/GitHub/MercifulCode/data-store/dss/logging.py", line 56, in configure_lambda_logging
    _configure_logging(stream=sys.stdout)
  File "/Users/andrewd/Workspace/GitHub/MercifulCode/data-store/dss/logging.py", line 87, in _configure_logging
    stack_info=True)
ERROR:connexion.apis.abstract:Failed to add operation for HEAD /v1/files/{uuid}
Traceback (most recent call last):
  File "./dss-api", line 38, in <module>
    chalice_stage_name=os.environ["DSS_DEPLOYMENT_STAGE"]
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/chalice/cli/factory.py", line 108, in create_config_obj
    app_obj = self.load_chalice_app()
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/chalice/cli/factory.py", line 166, in load_chalice_app
    app = importlib.import_module('app')
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 978, in _gcd_import
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load
  File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
  File "./chalice/app.py", line 269, in <module>
    dss_app = create_app()
  File "/Users/andrewd/Workspace/GitHub/MercifulCode/data-store/dss/__init__.py", line 197, in create_app
    app.add_api('../dss-api.yml', resolver=resolver, validate_responses=True, arguments=os.environ)
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/connexion/apps/flask_app.py", line 54, in add_api
    api = super(FlaskApp, self).add_api(specification, **kwargs)
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/connexion/apps/abstract.py", line 159, in add_api
    options=api_options.as_dict())
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/connexion/apis/abstract.py", line 131, in __init__
    self.add_paths()
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/connexion/apis/abstract.py", line 252, in add_paths
    self._handle_add_operation_error(path, method, sys.exc_info())
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/connexion/apis/abstract.py", line 263, in _handle_add_operation_error
    six.reraise(*exc_info)
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/six.py", line 693, in reraise
    raise value
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/connexion/apis/abstract.py", line 242, in add_paths
    self.add_operation(method, path, endpoint, path_parameters)
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/connexion/apis/abstract.py", line 195, in add_operation
    pythonic_params=self.pythonic_params)
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/connexion/operation.py", line 215, in __init__
    resolution = resolver.resolve(self)
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/connexion/resolver.py", line 40, in resolve
    return Resolution(self.resolve_function_from_operation_id(operation_id), operation_id)
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/connexion/resolver.py", line 62, in resolve_function_from_operation_id
    return self.function_resolver(operation_id)
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/connexion/utils.py", line 34, in get_function_from_name
    module = importlib.import_module(module_name)
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 978, in _gcd_import
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load
  File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
  File "/Users/andrewd/Workspace/GitHub/MercifulCode/data-store/dss/api/files.py", line 13, in <module>
    from dss import DSSException, dss_handler, stepfunctions
  File "/Users/andrewd/Workspace/GitHub/MercifulCode/data-store/dss/stepfunctions/__init__.py", line 20, in <module>
    accountid = ARN.get_account_id()
  File "/Users/andrewd/Workspace/GitHub/MercifulCode/data-store/dss/util/aws/__init__.py", line 32, in get_account_id
    cls._default_account_id = clients.sts.get_caller_identity()["Account"]
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/botocore/client.py", line 314, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/Users/andrewd/.pyenv/versions/3.6.0/lib/python3.6/site-packages/botocore/client.py", line 612, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid.

You should be able to run ./dss-api by just configuring AWS credentials. Are your AWS credentials are set up correctly?

They are, yep - and I also figured out what was wrong!
I was sourcing environment instead of environment.local in the datastore repo.
Thank you for all the help so far! This is my current setup/progress:
I have a datastore up and running at localhost:5000 by running ./dss-api with and with this as my environment.local:
AWS_DEFAULT_REGION=us-east-2
DSS_S3_CHECKOUT_BUCKET=chell-hca-data-store
DSS_S3_CHECKOUT_BUCKET_TEST=chell-hca-data-store-test
API_DOMAIN_NAME=localhost

I can confirm that http://localhost:5000/v1/swagger.json leads to the right file.
The ~/.config/hca/config.json is set up as:
{"log_level": "INFO", "client_id": "foo", "DSSClient": {"swagger_url": "http://localhost:5000/v1/swagger.json"}}

And I'm running a locally built CLI with scheme = "https" changed to scheme = "http" per above.
The CLI is now hanging when I try to run a command, like hca dss login, hca dss get-subscriptions --replica aws, or hca upload --help. But that definitely seems like a major step in the right direction!

No problem! I believe API_DOMAIN_NAME needs to include the port:
API_DOMAIN_NAME=localhost:5000

Noted!
hca dss get-subscriptions --replica aws
Traceback (most recent call last):
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 83, in create_connection
    raise err
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connection.py", line 284, in connect
    conn = self._new_conn()
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x10e54bc50>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /internal/application_secrets (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x10e54bc50>: Failed to establish a new connection: [Errno 61] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/andrewd/.pyenv/versions/3.6.6/bin/hca", line 13, in <module>
    cli.main()
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/hca/cli.py", line 73, in main
    result = parsed_args.entry_point(parsed_args)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/hca/util/__init__.py", line 152, in _cli_call
    return self._consume_response(self._request(vars(cli_args)))
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/hca/util/__init__.py", line 127, in _request
    session = self.client.get_authenticated_session()
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/hca/util/__init__.py", line 336, in get_authenticated_session
    oauth2_client_data = self.application_secrets["installed"]
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/hca/util/__init__.py", line 264, in application_secrets
    self.config.application_secrets = requests.get(app_secrets_url).json()
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/requests/adapters.py", line 508, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /internal/application_secrets (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x10e54bc50>: Failed to establish a new connection: [Errno 61] Connection refused',))

Hmmm

Make sure you're using http wherever you're hitting localhost. Also, since you've been reconfiguring quite a bit, it might be helpful to simply wipe the config files in ~/.config/hca/ - running hca will regenerate them.

Yeah, definitely - thanks!
Similar to the above, it looks like using the http scheme for the CLI will default to port 80 which is also unbindable by default.
The local datastore, however, is using port 5000. Would you happen to know how this is reconciled in development for the DCP ?

All you should need to do to configure the CLI to hit your local data-store is set the correct DSSClient.swagger_url in ~/.config/hca/config.json. For example:
"DSSClient": {"swagger_url": "http://localhost:5000/v1/swagger.json"}

Unfortunately, it looks like the port is being ignored there too:
hca dss upload --replica aws --staging-bucket chell-hca-data-store-test --src-dir data-bundle-examples/smartseq2/paired_ends
INFO:hca:Uploading 5 files from data-bundle-examples/smartseq2/paired_ends to chell-hca-data-store-test
INFO:hca:File cell.json: registering...
INFO:hca:File cell.json: registering from s3://chell-hca-data-store-test/780f5ad8-fc6e-46da-b674-3c65becd9579/cell.json -> uuid 780f5ad8-fc6e-46da-b674-3c65becd9579
Traceback (most recent call last):
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 83, in create_connection
    raise err
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 357, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connection.py", line 166, in connect
    conn = self._new_conn()
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x10a2673c8>: Failed to establish a new connection: [Errno 61] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 668, in urlopen
    **response_kw)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 668, in urlopen
    **response_kw)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 668, in urlopen
    **response_kw)
  [Previous line repeated 6 more times]
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /v1/files/780f5ad8-fc6e-46da-b674-3c65becd9579?version=2018-07-31T213749.539697Z (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10a2673c8>: Failed to establish a new connection: [Errno 61] Connection refused',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/andrewd/.pyenv/versions/3.6.6/bin/hca", line 13, in <module>
    cli.main()
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/hca/cli.py", line 73, in main
    result = parsed_args.entry_point(parsed_args)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/hca/util/__init__.py", line 443, in arg_forwarder
    return command(**command_args)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/hca/dss/__init__.py", line 245, in upload
    source_url=source_url
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/hca/util/__init__.py", line 135, in _request
    timeout=self.client.timeout_policy)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/Users/andrewd/.pyenv/versions/3.6.6/lib/python3.6/site-packages/requests/adapters.py", line 508, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /v1/files/780f5ad8-fc6e-46da-b674-3c65becd9579?version=2018-07-31T213749.539697Z (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10a2673c8>: Failed to establish a new connection: [Errno 61] Connection refused',))

These are my env variables:
API_DOMAIN_NAME=localhost:5000
SWAGGER_URL=http://${API_DOMAIN_NAME}/v1/swagger.json

When I go to http://localhost:5000/v1/swagger.json, the host key is set to "localhost:5000", and my config.json is "DSSClient": {"swagger_url": "http://localhost:5000/v1/swagger.json"}
My best guess is some kind of port forwarding needs to be setup, but I'm not 100% sure.

The value in config.json should be a dict:
{"DSSClient": {"swagger_url": "http://localhost:5000/v1/swagger.json"}}

Also, have you created these S3 buckets and set the corresponding environment variables in environment.local?

Ah, sorry for the confusion, my config.json is a dict, I was just pasting the relevant key:value pair.
And my buckets should be all set!

Do you have another file in ~/.config/hca/ with a long filename? Can you open that up and check what the host field is set to?

Great! Closing issue as original issue was solved

The CLI enforces SSL on API connections, explaining port 443. Unfortunately, this is hardcoded in the CLI source and in order to connect the CLI to a local DSS API server, you'll need to modify and use a local version of the CLI:

Can we bypass this restriction for localhost connections?

@ttung That makes sense


Added TimePeriod mapping

Looks good, we may want to change max_periods to whatever the exchange max is if that is in the API values for the exchange. We may also be able to split the number from the letter to be less strict on what timeframes we support.
But those can be potential future optimizations.

Sounds good. I chose those specific time periods since they correspond to candlestick periods that Binance exports, which makes available a lot more options than most other exchanges.


[AutoPR securityinsights/resource-manager] Added Data Connectors check requirements to security insights.

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/7285

This PR has been merged into https://github.com/Azure/azure-sdk-for-python/pull/7275


Body data is not being parsed when programmatically invoking graphql handler in apollo-server-lambda v3

When programmatically invoking graphql handler in apollo-server-lambda v3, I receive the following error message: "POST body missing, invalid Content-Type, or JSON object has no keys.".
After reviewing the issue, I posted an issue @ apollo-server
But it looks like the solution is to change the @vendia/serverless-express code as described below.
The body data is extracted by this code from utils.js (@vendia/serverless-express):
function getEventBody ({
  event,
  body = event.body,
  isBase64Encoded = event.isBase64Encoded
}) {
  return Buffer.from(body, isBase64Encoded ? 'base64' : 'utf8')
}

function getRequestValuesFromEvent ({
  ...
  if (event.body) {
    body = getEventBody({ event })
    const { isBase64Encoded } = event
    headers['content-length'] = Buffer.byteLength(body, isBase64Encoded ? 'base64' : 'utf8')
  }
...
}

But where is the code that JSON.parse the body data? Should it?
As an experiment, I changed the code from this...
  ...
  if (event.body) {
    body = getEventBody({ event })
    const { isBase64Encoded } = event
    headers['content-length'] = Buffer.byteLength(body, isBase64Encoded ? 'base64' : 'utf8')
  }
  ...

...to this:
  ...
  if (event.body) {
    const decodedBody = getEventBody({ event })
    const { isBase64Encoded } = event
    headers['content-length'] = Buffer.byteLength(decodedBody, isBase64Encoded ? 'base64' : 'utf8')
    body = JSON.parse(decodedBody);
  }
  ...

and it worked as expected!
Should I submit a PR to @vendia/serverless-express ???

This issue can be closed. See this comment to understand why.


python .\app.py    运行出现错误

(lmflow) PS E:\LMFlow-main\LMFlow-main\service> python .\app.py
[2023-04-25 21:05:12,655] [INFO] [comm.py:570:init_distributed] Not using the DeepSpeed or dist launchers, attempting to detect MPI environment...
'"hostname -I"' 不是内部或外部命令，也不是可运行的程序
或批处理文件。
Traceback (most recent call last):
File "E:\LMFlow-main\LMFlow-main\service\app.py", line 34, in
model = AutoModel.get_model(model_args, tune_strategy='none', ds_config=ds_config)
File "e:\lmflow-main\lmflow-main\src\lmflow\models\auto_model.py", line 16, in get_model
return HFDecoderModel(model_args, *args, **kwargs)
File "e:\lmflow-main\lmflow-main\src\lmflow\models\hf_decoder_model.py", line 237, in init
deepspeed.init_distributed()
File "D:\UserSoftware\Anaconda3\envs\lmflow\lib\site-packages\deepspeed\comm\comm.py", line 576, in init_distributed
mpi_discovery(distributed_port=distributed_port, verbose=verbose)
File "D:\UserSoftware\Anaconda3\envs\lmflow\lib\site-packages\deepspeed\comm\comm.py", line 604, in mpi_discovery
result = subprocess.check_output(hostname_cmd, shell=True)
File "D:\UserSoftware\Anaconda3\envs\lmflow\lib\subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "D:\UserSoftware\Anaconda3\envs\lmflow\lib\subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['hostname -I']' returned non-zero exit status 1.

记录下修改代码

紧接着出现问题
no NCCL
解决

https://huaweicloud.csdn.net/63806cdbdacf622b8df87fbe.html?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~activity-1-120070425-blog-127900544.235^v32^pc_relevant_default_base3&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~activity-1-120070425-blog-127900544.235^v32^pc_relevant_default_base3&utm_relevant_index=2

看起来您是在windows下运行的，建议使用linux服务器运行。我们没有在windows下进行过测试。欢迎加入社区群寻求更多的帮助。
It looks like you're running on Windows, and we recommend using a Linux server to run. We haven't tested on Windows. Feel free to join the community group for more help.

This issue has been marked as stale because it has not had recent activity. If you think this still needs to be addressed please feel free to reopen this issue. Thanks

I have the same problem.


get data via json?

If I'm not interested in non-js compatibility would it be possible to get this to fetch data from a web service as json?

You can use the dataType option when you initialize the plugin.

Do you have any up to date documentation on this feature?

Not at the moment. The documentation is being worked on at the moment. You need to specify appendCallback as false and dataType as 'json'. When the AJAX call is made, it will not assume you are getting html fragments (aka jQuery's load function), but instead will make a request for JSON. In your callback, you'll be able to interact with the data you've pulled back. This is the same as any other callback through the plugin, where newElements is your returned data.
The example below would prepend all data to the container element. You can modify this function however you need to.
$('#container').infinitescroll({
    dataType: 'json',
    appendCallback: false
    // all your other infinite scroll options
}, function (newElements) {
    $('#container).prepend(newElements);
};


Visual search bar glitch on iPad

Might be a duplicate, I feel like I‘ve seen this before but I wanted to record it quickly just so we don‘t miss it.

That's a strange one. I don't see it at all:

I wonder if I have stale CSS or something. I haven‘t used the 13“ for web browsing in quite a while, that might explain why I feel like I‘ve seen this before in the past. I‘ll check if I can reset the cache.

This reminds me to check an annoying styling bug I have with code snippets too... without going on too much of a tangent it only happens on my work laptop and not my personal laptop.
It's the same spec, same browser, same version of the browser, same extensions, like by all accounts it's the same - and yet only one of the two devices has this weird styling bug.
I too will try to reset the cache and will raise a separate issue if I can't figure it out

Mmmm, seems like it's real. I've "cleared history and website data" in Settings, I've made sure to reload without content blockers - but that rounded rect persists. Only on my 12.9" iPad, not on my mini.
I've got a software update on the 12.9", which I'll install later and then I'll retry. Weird!

Nope, still there after SW update. Bizarre 🤷
Maybe 12.9" screen size specific? (Happens in both portrait and landscape.)


Doc Fixit: remove old stuff from tools/README.md

Addresses #5571

Only test failure is a csharp git clone timeout error, ok to merge? Just doc change for this PR

Yeah, your changes are not executable, so it's fine to merge.


Add queryables route for Features API

Add a Features API queryables route (json+html)
(https://docs.ogc.org/DRAFTS/19-079r1.html#queryables)

new function to get column types from the sql query and optionally filter using a list of names
updated sql building to not require casting to text as the queryable fields types are now known
updated sql building to use push_bind for the datetime ranges
updated openapi.yaml

Sorry for the silence, it was holiday time here.
I've run the latest DB tests and got some failures, which I don't understand immediately. Could you please rebase and check the tests? The test database has changed in the meantime:
docker run -p <IP_ADDRESS>:5439:5432 -d --name mvtbenchdb --rm sourcepole/mvtbenchdb:v1.2
cargo test -- --ignored

Will add them to the CI, soon...

Do the PG tests pass now?

Pull req passes features tests

Could you please rebase once more? This will fix the the x86_64-apple-darwin build failure and run the DB tests.


Cleanup and tests

added unit tests for all the helpers
added chefspec tests for the bootstrap and create_snapshot recipes
added chefspec matchers to be used by marketplace_image
added Rake task for rspec/rubocop tests (for soon-to-be-added travis support)
added license header to all files

:+1:


Dataset.to_zarr() does not preserve CRS information

What happened?
When writing a DataArray with CRS information to zarr, after converting it to a Dataset, the CRS is not readable from the zarr file.
What did you expect to happen?
To be able to retrieve the CRS information from the zarr file.
Minimal Complete Verifiable Example
da = xr.DataArray(np.arange(9).reshape(3,3),
                  coords={'x':range(3), 'y':range(3)}
                 )

da = da.rio.write_crs(4326)
da.to_dataset(name='var').to_zarr('var.zarr')
xr.open_zarr('var.zarr')['var'].rio.crs == None # returns True

Anything else we need to know?
I'd be happy to have a look at this if it is indeed a bug.

Thanks @snowman2, that makes the CRS readable

By the way, the docstring of open_zarr fails to mention that decode_coords could be a string too (and what the accepted string values mean)
https://github.com/pydata/xarray/blob/fed852073eee883c0ed1e13e28e508ff0cf9d5c1/xarray/backends/zarr.py#L687-L689
Should I open a separate issue for this?

That would be great. Thanks @gcaria

i had the same problem (missing crs) but adding decode_coords='all' did not fix it. the difference in my case from the above minimal example might be i have several variables in the zarr group. the fix was to add the grid_mapping attribute to each variable:
z['group1']['var1]['grid_mapping'] = 'spatial_ref'
once i did this (and decode_coords='all') it worked.


dataset details

Why did you search directly in the train set and did not sample the val set from the cityscapes train set?
Will the searched arch not overfit in the cityscapes val set?

Hi @pawopawo !
What did you mean by "sample the val set from the cityscapes train set"?
We only leveraged the training set for the search, without using the validation set. We followed the same setting in DARTS.

darts sample the val set from the train set.

DARTS split the training set half and half for optimizing w and alpha: https://github.com/quark0/darts/blob/master/cnn/train_search.py#L91
Same as what we did: https://github.com/TAMU-VITA/FasterSeg/blob/master/search/train_search.py#L108


Constrain python-subunit==1.4.2 in CI

Summary
The latest release (1.4.3) of python-subunit appears to have made stestr as of 4.0.1 fail to locate all its meaningful run commands in our CI.

Details and comments

This shouldn't be needed anymore, i just published stestr 4.1.0 which should fix the compatibility issues with the most recent subunit release.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
25 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.02%) to 87.254%

Files with Coverage Reduction
New Missed Lines
%

qiskit/pulse/library/waveform.py
3
93.75%

crates/qasm2/src/lex.rs
4
90.66%

crates/qasm2/src/parse.rs
18
96.67%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
74164

Relevant Lines:
84998

💛  - Coveralls