Completions for block states are not always provided

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

npm package (@latest dist-tag)
Visual Studio Marketplace
GitHub release

Your semantic-release bot :package::rocket:


Improve HasStaticConstructor implementation

Make it cached, by using the TypeFlags logic
Utilize cache for generics in computation for related types
Build infrastructure for TypeFlags computation in the TypeSystemContext to allow runtimes to adjust behavior around computation of type flags.
Consolidate the various asserts for making sure the flags are properly computed so that there is only one assert which is in the TypeDesc.

@MichalStrehovsky PTAL


Hello Dear I can't install pls help me

postgres uses an image, skipping
Building web
Sending build context to Docker daemon  276.8MB
Step 1/26 : FROM mcr.microsoft.com/dotnet/sdk:6.0.100-bullseye-slim AS build
---> c8231459539b
Step 2/26 : WORKDIR /app
---> Using cache
---> 32e5e673f533
Step 3/26 : RUN curl -sL https://deb.nodesource.com/setup_10.x |  bash -
---> Using cache
---> fdb483973751
Step 4/26 : RUN apt-get install -y nodejs
---> Using cache
---> bb045eae9ad8
Step 5/26 : RUN npm install -g @vue/cli
---> Running in be3034abdbbf
/bin/sh: 1: npm: not found
The command '/bin/sh -c npm install -g @vue/cli' returned a non-zero code: 127
ERROR: Service 'web' failed to build : Build failed

node -v
v18.12.1
npm -v
9.2.0

Hi @hieroo, please update the Dockerfile line 5 to include installing npm:
RUN apt-get install -y nodejs npm
This is what worked for me.
There's also a pull request for this issue already submitted too: https://github.com/reconness/reconness/pull/543

The PR was merge. Thx @gsec05. I'll close this ticket


[BEAM-9363] TUMBLE as TVF

Support
"select * from TUMBLE((select * from KeyValue), descriptor(ts), 'INTERVAL 1 SECOND')

Note that ZetaSQL needs an improvement to fully support TVF windowing. This PR adds a skeleton as a starter for moving streaming windowing to FROM clause by using TVF.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

R: @kennknowles

Run Java PreCommit

Run Java PreCommit

cc @tysonjh in case you are interested in.

A friendly ping on this PR.

Run Java PreCommit

Have tried to address comments. Please take another look.

Run Java PreCommit

Run Java PreCommit


[analyzer] Incorrect unused_local_variable warning.

a is used here:
main() {
  final a = foo(null);
  a!;
}

foo(x) => x;

$ dart analyze ~/play1/bug1c8i.dart
Analyzing bug1c8i.dart...              0.6s

warning • bug1c8i.dart:2:9 • The value of the local variable 'a' isn't used. Try removing the variable or using it. •
          unused_local_variable

1 issue found.

I agree. I think we have to consider a null check to be a use because removing the null check could change the semantics of the program. But only in the case where the variable's type is nullable. If it's non-nullable then the null check is invalid and shouldn't be counted as a use.

I'm going the other way :)
A downside of calling this a "use" is that the rule will allow (some, maybe very few) unused variables to go unreported. As in, variables whose only "use" is an unintentional null-assert statement-expression.
A downside of calling this a non-use is that we will not support the pattern of checking if an otherwise-unused local variable is null, and throwing if it is, by operating on it with a null-assert statement-expression.
I think the first downside outweighs the second.


How can you add a dependency with hyphens to a kcl package

General Question
I would like to add the model "crossplane-provider-aws" to my package as a dependency so that I can get validation in my IDE.
kcl mod init my-package && cd my-package
kcl mod add crossplane-provider-aws

When I try to import the package,
import crossplane-provider-aws.v1beta1

I get an error saying that hyphens are not allowed in imports.
If I manually rename the folder in the download directory (/User/xxx/.kcl/kpm) - with underscores instead of hyphens - the import works as expected.
However, that certainly won't be the normal way, right?

Hi @ma-ble 😄
Thanks for your feedback and help us find the omissions in the documentation work. I have explained this problem through PR https://github.com/kcl-lang/kcl-lang.io/pull/389. I hope it will be helpful

Thank you very much for the answer and for including the note in the documentation.
Unfortunately, converting hyphens to underscores doesn't seem to work for me.
$ kcl version
0.8.9-darwin-arm64

$ kcl mod init test && cd test
$ kcl mod add crossplane-provider-aws
  add dependency 'crossplane-provider-aws' successfully
$ kcl mod add crossplane-provider-azure
  add dependency 'crossplane-provider-azure' successfully

# main.k
import crossplane_provider_azure.v1alpha1 as azure
import crossplane_provider_aws.v1beta1 as aws

My IDE (vscode) is telling me that the pkgpath "crossplane_provider_aws.v1beta1" is not found in the program. It cannot find the module crossplane_provider_aws.v1beta1 from /Users/USERNAME/test/kcl/examples/crossplane-hello-klc-function/crossplane_provider_aws/v1beta1
$ ls /Users/USERNAME/.kcl/kpm
crossplane-provider-aws_
crossplane-provider-aws_0.36.2
crossplane-provider-azure_
crossplane-provider-azure_0.20.0

What options do I have to further analyze the problem?

Thank you very much for the answer and the adjustment of the documentation.
I'm currently having the problem that the customization doesn't work immediately after downloading the modules.
$ kcl mod init test && cd test
$ kcl mod add crossplane-provider-aws
  add dependency 'crossplane-provider-aws' successfully
$ kcl mod add crossplane-provider-azure
   add dependency 'crossplane-provider-azure' successfully
$ kcl mod add crossplane-provider-helm
  add dependency 'crossplane-provider-helm' successfully

import crossplane_provider_helm.v1alpha1 as helm
import crossplane_provider_aws.v1beta1 as aws
import crossplane_provider_azure.v1alpha1 as azure

pkgpath crossplane_provider_helm.v1alpha1 not found in the program(CannotFindModule). Cannot find the module crossplane_provider_helm.v1alpha1 from /Users/USERNAME/test/kcl/examples/test/crossplane_provider_helm/v1alpha1 not found in the program.
For AWS and Azure it also took a little longer until the error messages disappeared.
kcl version
0.8.9-darwin-arm64

I use vscode as an IDE and I have the extension installed.
Can you force the conversion of the modules (hyphens to underscores)?

Hi @ma-ble  😄
You can try to upgrade the KCL version to the 0.9.0 prefix using command go install kcl-lang.io/cli/cmd/kcl@main or manually download from here https://github.com/kcl-lang/cli?tab=readme-ov-file#download-from-github-release-page

I think I know the problem. Its because of the module dependencies. All three modules "crossplane-provider-aws,  crossplane-provider-azure, crossplane-provider-helm" need the module k8s. Modul dependencies are not installed automatically and there is no automatic reuse if the module already exists on the computer.

Thanks very much for your feedback, which helped us find some problems and will be very helpful for the future of KCL.
Let me provide you with some more detailed information. 😄
It is known that in version 0.8.9-darwin-arm64, the IDE cannot find the dependencies. This issue is fixed in PR https://github.com/kcl-lang/kpm/pull/338.
Suppose you also encounter an error in the IDE that you cannot find the dependencies. In that case, you can try to compile using the command kcl run; if the command compiles properly, you have encountered the known problem I mentioned above.
You can try the two ways I mentioned above to upgrade kcl version in your local.

You can try to upgrade the KCL version to the 0.9.0 prefix using command go install kcl-lang.io/cli/cmd/kcl@main or manually download from here https://github.com/kcl-lang/cli?tab=readme-ov-file#download-from-github-release-page

or use the scripts here: https://www.kcl-lang.io/docs/user_docs/getting-started/install#using-script-to-install-the-latest-release
When downloading KCL's dependencies, KCL will give priority to checking whether a dependency already exists locally each time. If it does exist, it will recursively look for indirect dependencies. If it does not exist, it will re-download and reload indirect dependencies.

kcl run works as expected. No errors.
$ kcl --version
kcl version 0.9.0-beta.1

After updating to the 0.9.0 , 'kcl run' works as expected, and the dependencies are working.
When you install further dependencies without a specific version, the first  'kcl run' does not find the dependency because it looks for "/Users/USERNAME/.kcl/kpm/crossplane-provider-kubernetes_latest".
$ ls /Users/USERNAME/.kcl/kpm/
crossplane-provider-kubernetes
crossplane-provider-kubernetes_
crossplane-provider-kubernetes_0.9.0

When you run the command "kcl mod add crossplane-provider-kubernetes" again, "kcl run" works.


[BUGFIX] Increase EnVar internal buffer to 16K, fixes #1971, fixes #1970

The Problem/Issue/Bug:
Path variables longer than the NSIS string length (default 1024) are not handled by the new used plugin EnVar.
How this PR Solves The Problem:
This patch changes the size of the internal buffer variable of EnVar from the NSIS string length to 16K to avoid errors with Path variables longer than the size given by the installer.
Manual Testing Instructions:
Run the installer on a system with a path variable length of 1025 char or more.
Related Issue Link(s):

Fixes #1970
Fixes #1971

Release/Deployment notes:

References

https://github.com/GsNSIS/EnVar/releases/latest
https://github.com/DigitalMediaServer/NSIS-INetC-plugin/releases/latest

1. This is coming from https://github.com/GsNSIS/EnVar - Please provide releases there with the DLLs in them and make sure the build is done in a recreatable way.

I'm currently preparing an automated release using GH Actions which will end in a downloadable artifact. But this will take some time...

2. Then please change this PR to do a download of the release and place the DLLs as necessary.

Once step one has finished, will change the install ofc. I'm also preparing own repos for the two header files (ddev and docker) which could be usful for others.

3. The GPLv3 license on https://github.com/GsNSIS/EnVar seems pretty onerous, and I'm not sure ddev can use it. Would it be possible to switch it to Apache 2.0?

License is changed to the original zlib which should be fine for DDEV, all NSIS stuff is zlib licensed

4. On the README in https://github.com/GsNSIS/EnVar could you please add more info about the source of the code, date it was retrieved or versioning, link to original? That would help recreate the history if people need to recreate it someday.

This information is available in the first commit see https://github.com/GsNSIS/EnVar/commit/0d52666cd3d196291c4ca412beaa05e497a3bb08 but have added it now to the readme aswell

I tested this a number of ways and it seems to be fine.

Physical Win10Pro machine with huge PATH: Uninstalled and reinstalled ddev. The only problem I had (consistently) was that nfsd was running so it couldn't remove winnfsd or c:/Program Files/DDEV directory. This is a known issue and is fine.
Win10Pro VM with even bigger PATH: Uninstalled and reinstalled ddev several times and it did fine.
Win10Pro VM with docker uninstalled: It downloaded and installed Docker Desktop successfully (although opening an additional dialog box)
Win10Pro VM with Hyper-V disabled and docker uninstalled.


how can i check if the timer has stopped

i will like to now when the timer reach the end

Sorry for the delay but hoping to update the package ASAP. It's ready on my working project.

owk and it is possible to pass in minutes or hour value instead of date


[zh-CN]书写错误

含快捷键的译文应该书写成“译文“(&快捷键)”而不是“译文(&&快捷键)”，如果写成“译文(&&快捷键)”会导致快捷键失效

感谢您创建此问题！
然而，由于您没有使用英语，我们很难进行处理。如果可能，请您将此问题描述修改为英文。请您直接编辑此问题，不要提交回复或新问题。
请注意，机器翻译服务通常无法处理用于讨论软件问题所需的技术性语言，所以我们推荐您寻找一位熟悉相关技术的人来协助翻译。
如果您无法做到，没有关系。此问题已经被标记为需要翻译，等待社区成员志愿进行翻译。

Thanks for creating this issue!
Unfortunately, as the description is not in English, it's hard for us to work on. If possible, please edit the original issue to be in English.
In our experience, automatic translation services are not able to handle the technical language needed to effectively communicate about software issues, so we recommend finding a human translator who is familiar with our technology to help.
Otherwise, we have marked this as needing translation and a community member may be able to help out.

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!

Sorry I do not understand the bug, is this still an issue?


📝 Draft Project Idea: Alternative Solidity Compiler

What is a Draft Project Idea?
A Draft Project Idea is a concept for a project within the Optimism ecosystem that is generally considered valuable but has not yet been fleshed out into a clearly defined product. Draft Project Ideas may be converted into Ecosystem Project Ideas as they are explored further and more thoroughly specified.

Summary
Solidity is the primary programming language for most EVM-based applications. It currently has a single compiler, solc. Just like client diversity is important for the robustness of Ethereum, compiler diversity is important for the robustness of applications built on top of Ethereum. By introducing new compilers we can eliminate single points of failure and create competition that improves the Solidity experience for everyone.
Impact

Alternative compilers remove the single point of failure in the current codebase
Alternative compilers can improve the compilation process and the development experience
Alternative compilers may be able to make optimizations that the current Solidity compiler cannot.

Resources

Solidity
solc

This is a big effort, i think would be really sweet to build a better intermediary representation (IR) first rather than a whole new language + compile. A strong IR imo would be the first step towards a better compile ecosystem for the EVM

I really like this idea, just have following ideas:

The frontend, I think the baseline is to be fully compatible with solidity language, so maybe it is good idea to reuse the lexer/parser of solc and to keep sync with it? Moreover, is it possible to have more language support so that maybe OP stack could have more wider ecosystem by having different languages running on top of it in long term?
The backend, especially the IR, I totally agree with @0xJepsen, it must be expressive enough to support different language features and also be simple enough for introducing advanced optimizations. Considering L2 scenario, I would say that compiler optimizations might have great value to help the execution engine of OP be competitive enough at performance.  Moreover, LLVM IR might be a good candidate here as it has been used commonly as a IR and lot of optimizations has been implemented, although I am not sure whether it is too complicated / flexible for EVM bytecodes from the security and functionality perspective.
The toolchain, by having a compiler, it is not hard to introduce other tools such as debugger,   tracer, static analyzer, instrumentation tools, which I think is also important for helping OP to attract more developers and hence enlarge the ecosystem.

I am really interested in this topic and I would like to learn more if there is any discussion.

Maybe this RFP should be about joining forces with this project?

Maybe this RFP should be about joining forces with this project?

IMHO, solang is a good compiler trying to have solidity running on different blockchains where EVM is not exist. It translates solidity to  LLVM IR (or wasm) and then leverage the LLVM backend to generate binary for different environment.
Another method is to translate EVM opcodes to LLVM IR, and this way may be good at supporting all languages that targets to run on EVM.
also there must be other chain-specific considerations for supporting EVM language to run on non-EVM platform, as there is huge difference for account / storage/ memory accessing design and implementations.

Hi all,
I totally new to the Optimism project and community.
I have been working on the Ligo Languagecompiler for the the past 4 year, internal + toolings, for the Tezos Foundation
Some former collegues and I would definitly be interested develloping a new solidity compiler.
How can I know more about this project ?
@smartcontracts Is there someone at the Foundation I can contact about this ?
Best


yubioath: Update to version 6.0.0 / Fix description, homepage, license, bin, shortcuts, checkver and autoupdate

Closes #9814

[x] I have read the Contributing Guide.

update fields:

version: 6.0.0

REF: Release Yubico Authenticator 6.0.0 · Yubico/yubioath-flutter · GitHub

description: Yubico Authenticator for Desktop (Windows, macOS and Linux) and Android

REF: GitHub - Yubico/yubioath-flutter

homepage: https://developers.yubico.com/yubioath-flutter/

REF: yubioath-flutter

license: Apache-2.0

REF: yubioath-flutter/LICENSE at main · Yubico/yubioath-flutter · GitHub

bin: authenticator.exe
checkver

REF: https://developers.yubico.com/yubioath-flutter/Releases/

autoupdate

REF: https://developers.yubico.com/yubioath-flutter/Releases/

/verify


Tasks 2.0.0: presentation is not allowed as a global property

{
    "version": "2.0.0",

    // we want to run npm
    "command": "npm",

    "type": "shell",

    "presentation": {
        "reveal": "never"
    },

    // we run the custom script "compile" as defined in package.json
    "args": ["run", "compile", "--loglevel", "silent"],

    // The tsc compiler is started in watching mode
    "isBackground": true,

    // use the standard tsc in watch mode problem matcher to find compile problems in the output.
    "problemMatcher": "$tsc-watch"
}

You don't get any hover on the presentation property

Same is true for group.
Options is allowed but it looks like it is not processed.

Option is processed as I found out after debugging.
Verify that the tasks.json below doesn't show any warning.

{
    "version": "2.0.0",

    // we want to run npm
    "command": "npm",

    "type": "shell",

    "presentation": {
        "reveal": "never"
    },

    "group": "build",

    // we run the custom script "compile" as defined in package.json
    "args": ["run", "compile", "--loglevel", "silent"],

    // The tsc compiler is started in watching mode
    "isBackground": true,

    // use the standard tsc in watch mode problem matcher to find compile problems in the output.
    "problemMatcher": "$tsc-watch"
}


[Docs] fix PR-template emojis

When creating a PR from a template, the emoji-unicode displayed as a plain text.
Changing to "markdown emoji markup" fixes this.

Great, thanks!


Method fillArray() deduplicated

SUMMARY
Methods fillArray() deduplicated, part for processing buffered input removed completely as it was dead code. This part also contained the bug - numberOfLeadingZeros() was used instead of correct numberOfTrailingZeros().
Automated Checks

[x] I have run ./gradlew test and made sure that my PR does not break any unit test.
[x] I have run ./gradlew checkstyleMain or the equivalent and corrected the formatting warnings reported.

It was impossible to execute branch for mapped arrays and it was possible after the method had been reused. Above that, I there is condition to avoid this situation, which contradicts with original implementation.

Makes sense. Merging.


[Event Request] table 296 "Reminder Line" - OnValidateAppliesToDocumentNoAfterCalcRemainingAmount

Describe the request
Hello, can you please add a new Event OnValidateAppliesToDocumentNoAfterCalcRemainingAmount in table 296 "Reminder Line"?
        field(28; "Applies-to Document No."; Code[20])
        {
.
.
.
                    GetReminderLevel(ReminderLevel, NextLineFeeLevel, NextLineFeeLevel);
                    "Posting Date" := ReminderHeader."Posting Date";
                    "Document Date" := ReminderHeader."Document Date";
                    "Due Date" := ReminderHeader."Due Date";
                    "No. of Reminders" := NextLineFeeLevel;

                    CustLedgEntry.CalcFields("Remaining Amount");
                    OnValidateAppliesToDocumentNoAfterCalcRemainingAmount(CustLedgEntry);
                    Validate(Amount, ReminderLevel.GetAdditionalFee(
                        CustLedgEntry."Remaining Amount",
                        ReminderHeader."Currency Code",
                        true,
                        ReminderHeader."Posting Date"));

    [IntegrationEvent(false, false)]
    local procedure OnValidateAppliesToDocumentNoAfterCalcRemainingAmount(var CustLedgerEntry: Record "Cust. Ledger Entry")
    begin
    end;

Additional context
We have additional values to calculate the Remaining Amount and have to recalculate it before it gets validated onto the Amount.
Internal work item: AB#547373

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 25389.


[AIRFLOW-1650] Fix custom celery config loading

Dear Airflow maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[X] My PR addresses the following Airflow JIRA issues and references them in the PR title. For example, "[AIRFLOW-XXX] My Airflow PR"

https://issues.apache.org/jira/browse/AIRFLOW-1650

Description

[X] Here are some details about my PR, including screenshots of any UI changes:

Celery config loading was broken as it was just passing
a string. This fixes it by loading it as a module with an
attribute. Inspired by Django's module loading.
Tests

[X] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Tests added.
Commits

[X] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

cc: @Fokko @criccomini

Codecov Report

Merging #2639 into master will decrease coverage by 0.05%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2639      +/-   ##
==========================================
- Coverage   71.81%   71.75%   -0.06%
==========================================
  Files         151      152       +1
  Lines       11737    11749      +12
==========================================
+ Hits         8429     8431       +2
- Misses       3308     3318      +10

Impacted Files
Coverage Δ

airflow/executors/celery_executor.py
84.74% <100%> (+0.26%)
:arrow_up:

airflow/utils/module_loading.py
100% <100%> (ø)

airflow/task_runner/bash_task_runner.py
93.33% <0%> (-6.67%)
:arrow_down:

airflow/utils/helpers.py
53.44% <0%> (-2.88%)
:arrow_down:

airflow/jobs.py
77.61% <0%> (-0.46%)
:arrow_down:

airflow/executors/dask_executor.py
81.39% <0%> (+2.32%)
:arrow_up:

Continue to review full report at Codecov.

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

LGTM

+1

Thanks for fixing this


tween throws error if you don't specify to or from

if you don't specify to or from args, then it bugs out

Should be fixed now


Flutter Web Platform refused to connect with stripe webpage

[x] I have read the Getting Started section
[x] I have already searched for the same problem

Environment

Technology
Version

Flutter version
3.16.2

Plugin version
6.0.0

Android version
N/A

iOS version
N/A

macOS version
N/A

Xcode version
N/A

Google Chrome version
120.0.6099.109

Device information:
Description
Expected behavior:
I want to open a stripe webpage from my flutter web app to make payments.
Current behavior:
When i open stripe payment url from flutter web app i got msg that stripe is refused to connect but same is working fine with Android/IOS Platform only facing issue with web platform.
Steps to reproduce

Check the web console to see what is the error.
iframe are very limited Web elements, so probably you can’t use it for a lot of websites because of cross-origin problems on Web.

Is there any update on this issue? I ran into the same problem where I try to embed a support article from Zendesk in my web app but I got the refused to connect error.

me too, is there any update?
ex) webviewx package offer urlbypass as blow .
https://stackoverflow.com/questions/75515936/flutter-webview-connection-refused-in-web


Change informational messages from model dialogs to bottom notification

The code-snippet extension is looking into using this behavior to notify the user about actions being accomplished (#1006)
The git extension is also moving this way

We should adopt this across elyra extensions

This can be accomplished in separate PRs, by component/extension

Some notes and links after discussing this in today's Lab meeting:

Use of Snackbar in elyra
Use of Snackbar in jupyterlab-git
Previous discussion of toast notifications in jupyterlab: https://github.com/jupyterlab/jupyterlab/issues/689
React implementation of toast notifications for jupyterlab, not using Snackbar

This years Jupyterlab summer interns are planning to work on a POC for Notifications which will include toast notifications, I will be in contact with them to try and coordinate

Metadata notifications triggered by commands:

copy to clipboard (component: CodeSnippetWidget)
save (component: MetadataEditor)
duplicate, delete (component: MetadataDisplay)
refresh (component: MetadataHeaderButtons)


Traffic filter does not stop Netcat between wifi-connected devices

What we tried to do
Hi guys,
We tried changing the traffic filter example in the examples section from a block-list to an allow-list.
To do so, we changed the default action of the tables to be drop, instead of NoAction. We then run the program with no rules applied, to see if every packet is indeed dropped.
The problem
When we run in verbose mode, the compiler states that every received packet is dropped.
The problem is that when we open a Netcat connection between 2 laptops connected to the p4pi network, or when we open a Netcat connection between a connected laptop and the p4pi itself, the messages get through and reach the other side, even though all the packets seem to be dropped.
We tried writing a simpler program that just calls drop on every packet in MyIngress' apply, and again it states that every packet is dropped, but the connection goes through.
What we think / don't understand
The example shows the capability of the firewall by running an iperf server inside the gigport namespace. This does work for us.
The problem is when we use Netcat outside of the gigport namespace - between 2 laptops or a laptop and the p4pi.
Do we need to run something inside the gigport namespace?
Can we expend the firewall capabilities to support blocking communication between 2 connected devices?
Thank you for your help.

@slaki can you please advise?


If atom is launched on non-primary monitor, dropdowns appear in wrong place

Open atom on non-primary screen ( You do this by moving terminal to non primary screen, and typing "atom ." to launch)
go to preferences -> Settings, go to "Tab length", click dropwdon
Notice that drop down appears in wrong place, or doesn't appear ( likely due to rendering off screen)
Drag atom to primary screen
Click dropdown, notice it is positioned properly
Drag atom back to non-primary monitor
Click tab length dropdown
Notice it works properly now.

Atom 1.1.0
uname -a:
Linux lnx-daniel 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
/etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=17.1
DISTRIB_CODENAME=rebecca
DISTRIB_DESCRIPTION="Linux Mint 17.1 Rebecca"

I have the same problem even with single screen setup on two devices, both running Ubuntu Gnome 15.10. The problem appears with with Atom 1.2.1 and 1.3.0-beta1 (both build from source). See a
ttached image.

same error in 1.2.1

Error still there in atom 1.5.4
Linux _REDACTED_ 4.4.4-301.fc23.x86_64 #1 SMP Fri Mar 4 17:42:42 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

still effect in latest commit.


[concurrency] Overload resolution for async-looking ObjC methods

Problem Summary
Suppose we have the following declaration for Delegate in ObjC:
#import <Foundation/Foundation.h>

@interface Request : NSObject

@end

@interface Delegate : NSObject

  // Error because request is _Nonnull AND not exactly 'NSObject'
- (void)addWork:(Request * _Nonnull)request completionHandler:(void (^ _Nullable)(void))handler;

@end

A call to a Delegate.addWork(_: completionHandler :) in Swift such as:
func f() {
  let r = Request()
  let d = Delegate()
  d.addWork(r)
}

is currently viewed as ambiguous when concurrency extensions are enabled, because of two factors that are simultaneously true:

async-looking ObjC methods with a completion handler are automatically made available with an async version.
the completion handler argument for Delegate.addWork is optional and is not provided at this call-site.

Here are the two overloads of Delegate.addWork that are considered by the constraint solver:
1. decl __ObjC.(file).Delegate.addWork(_:completionHandler:) : (Delegate) -> (Request, (() -> Void)?) -> Void
2. decl __ObjC.(file).Delegate.addWork : (Delegate) -> (Request) async -> Void

Currently, the problem is that if you get a bad ordering of overload options in the solver, where overload (2) is checked first, the solver decides to not consider other options (i.e., short-circuit) resulting in a selection of overload 2 despite it having a non-zero "badness" score because it results in a sync/async mismatch. This current patch tells the constraint solver to keep considering other options in this case (i.e., the mismatch) so that it lands correctly on overload 1, but more generally I think this change to short-circuiting is perhaps not a good solution.
In particular, I don't necessarily think this call-site is ambiguous if additional contextual information is available. For example, I believe it's not possible to call an async function (i.e., pick overload 2) from a synchronous context, even if the programmer tried to add an await to the call expression. This happens to be the case for f above. Additionally, even if the context of the call-site were asynchronous, the call-site is not marked with await so the only correct choice here is to pick overload 1.
Thus, perhaps it's possible to filter out incorrect overloads during the enumeration of overload possibilities, or something along those lines? There is also some infrastructure for "favored" overloads that I'm not yet familiar with.
Details
This PR fixes SR-13760 / rdar://70543421
TODO:

[x] Fix bug.
[x] Create regression test.

This looks like a reasonable short-term fix. I'm not sure we want to filter out the async overloads entirely, but I suppose we could. Is there a small-scale regression test you can include?

@swift-ci please test

Clean bill of health, merging!

A better fix here would be to prevent CSGen hacks from favoring overloads which would result in async/sync mismatches, it would prevent short-circuiting logic from kicking-in.


Documentation: not all "Improve this Doc" links are working

Describe the bug
Minor issue, but not all "Improve this Doc" links on the documentation (https://microsoft.github.io/reverse-proxy/articles) are working, those links resolve to a 404.
To Reproduce

Go to urls below and click the "Improve this Doc":

https://microsoft.github.io/reverse-proxy/articles/configfiles.html
https://microsoft.github.io/reverse-proxy/articles/configproviders.html
https://microsoft.github.io/reverse-proxy/articles/header-routing.html
https://microsoft.github.io/reverse-proxy/articles/transforms.html

Ah, yes. Those links include names of PR branchs that have been deleted.
A) We should be more careful about this when we re-generate the docs for preview 7.  E.g. do the rebuild while the branch is set to master or release, and then create the new PR branch. @alnikola I'm assigning this to you since you're shipping preview 7.
B) This should be temporary until we get #428 fixed, hopefully soon after .NET 5 ships next week. Then the builds will all happen on the CI on controlled branches.


Missing information about Teams

Please provide information about we should plan Teams data in multi-geo scenarios. Is it possible to put mailboxes for Teams channels into specific geos?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 2278ef5d-6c7c-a8cb-d518-d2a996ace6f5
Version Independent ID: 6c2cf399-a9f6-783c-d579-7b7a55e3fd17
Content: Plan for Office 365 Multi-Geo
Content Source: Enterprise/plan-for-multi-geo.md
Service: o365-solutions
GitHub Login: @MikePlumleyMSFT
Microsoft Alias: mikeplum

@DeanGross This article talks about Teams in a multi-geo scenario. I will add a note about it in the article you mentioned.
Regarding your question about Teams team/channel mailbox, the new behavior is to store the mail and the attachment in the Sharepoint site that got created when creating the mailbox.

So the multi-geo rules for SharePoint will apply to that.

@DeanGross - Thank you for submitting feedback.
From our understanding, the issue has been resolved based on this merged commit https://github.com/MicrosoftDocs/OfficeDocs-Enterprise/commit/9a3dc363e3fc3ed03de2d8930b525365a95abeeb.
Thank you for your contribution to make the docs better! Much appreciated!


fix #1013, track task checkpoint time at ClockService

@clockfly PR updated.

CheckpointTime -> ReportCheckpointTime
ReportCheckpointTime is fire once in onStart and O(GetUpstreamMinClock) in onNext. So what kind of errors are you concerned about ?

There may be some problems when message ReportCheckpointClock is lost during transfer.

@clockfly
Yes, I will think about this and update the PR.


router.afterEach => nextTick doesn't reflect whole application mount

I've been trying to select a specific element within the loaded page if it exists with a nuxt plugin similar to this:
import Vue from 'vue'

export default ({ app: { router } }) => {
  if (!process.browser) return

  router.afterEach((to, from) => {
    Vue.nextTick(() => {
      window.pageFeature = document.querySelector('#page-feature')
      console.log('trying to find pageFeature, got', window.pageFeature)
    })
  })
}

My issue is that the nextTick is firing too soon, so I find the initial #page-feature element on first load, but subsequent navigation always "lags behind" essentially.
Currently the #page-feature element is in the component that <nuxt/> renders and if I move it deeper it still can't be found - no matter where the element is placed it seems nextTick won't work in this instance.
Am I missing something specific to nuxt to find out when the whole application has finished mounting or is this a bug?
Maybe there's a better way to do this, I don't particularly want a function in each page component calling on mount - however if there is no better way to accomplish this, I will stick to this.
Thanks for your help in advance.

This question is available on Nuxt.js community (#c2300)

Because this issue seems to be inactive for quite some time, I'll close it now. If you feel like it deserves some attention because it's not fixed, feel free to ping me and I'll reopen it.


Disable ZK & BK fsync calls in integration tests

Motivation
Fysncs are very slow when writing within Docker containers. We should disable these in ZooKeeper and Bookies when running integration tests, since we're not really testing data durability on disk there.

@ivankelly PTAL again


Update default branch to 'main'

To be consistent with GitHub standards, we should change the default branch name to main instead of master.
@simon-the-canadian I am planning on doing this later this week - let me know if I should hold off since all forks will need to update the default branch to main as well.

@jahunt1 Go ahead, it won't cause any issues.

@simon-the-canadian I'll need your help with the back half of this one. I pushed the new main branch, but I don't have permission to change the default branch on the busybusy repo or delete the old master branch.
Would you mind finishing this for me please? GitHub has some simple instructions for Changing the default branch. Just a heads up - when I did this on my local fork I had to go to the repo settings and "Disable branch protection" to be able to change the default branch and delete master. After I did that I re-enabled branch protection from the repo settings.


Upgrade from node12 to node16

https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-javascript-actions
Must-have.

Node 12 has been out of support since April 2022, as a result we have started the deprecation process of Node 12 for GitHub Actions. We plan to migrate all actions to run on Node16 by Summer 2023. We will monitor the progress of the migration and listen to the community for how things are going before we define a final date.
To raise awareness of the upcoming change, we are adding a warning into workflows which contain Actions running on Node 12. This will come into effect starting on September 27th.

Related to https://github.com/UnlyEd/github-action-await-vercel/issues/74

https://github.com/UnlyEd/github-action-await-vercel/pull/77 didn't fully fixed the issue, I guess we use actions that are using node12. We would need to update those, as well.


Auto update today marker, when date changed

Is there any property to set, to auto upade "Today" marker on calendar view?

Hi, have you tried calling the setCurrentDate method? It take a date object and will set the current date on the calendar.

Well there are two markers, that display Selected date, and Today date. setCurrentDate method changes Selected date, and I need to change Today date. Suppose that can be considered as bug, because, If I manually change date in Android device, but not recreate Calendar view. the calendar will show me previous date as Today.


Fixes deprecation warning in MiniGo

You may have seen this due to a slight lag in the availability of new toolchains, but the use of scalars for epsilon and momentum was just changed yesterday in PR #220 and a matching PR in swift-apis: https://github.com/tensorflow/swift-apis/pull/525
This is by design, and should pass compilation once the new swift-apis changes are in the nightly toolchains.

CI shows more warnings, could you please fix those as well?
/swift-models/Transformer/PythonCheckpointReader.swift:39:12: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
    return Raw.restoreV2(prefix: StringTensor(path),
           ^
/swift-models/Transformer/PythonCheckpointReader.swift:39:12: note: use '_Raw' instead
    return Raw.restoreV2(prefix: StringTensor(path),
           ^~~
           _Raw
/swift-models/Transformer/PythonCheckpointReader.swift:76:22: error: cannot convert value of type 'Tensor<Double>' to expected argument type 'Scalar'
            epsilon: Tensor(1e-5))
                     ^
                                  as! Scalar
[18/69] Merging module Gym-Blackjack
[19/69] Compiling MiniGo MCTSNode.swift
[20/69] Compiling MiniGo MCTSRandomPredictor.swift
[23/69] Compiling MiniGo GoModel.swift
/swift-models/MiniGo/Models/GoModel.swift:57:21: error: cannot invoke initializer for type 'BatchNorm<_>' with an argument list of type '(featureCount: Int, momentum: Tensor<Float>, epsilon: Tensor<Float>)'
        self.norm = BatchNorm(
                    ^
/swift-models/MiniGo/Models/GoModel.swift:57:21: note: expected an argument list of type '(featureCount: Int, axis: Int, momentum: Scalar, epsilon: Scalar)'
        self.norm = BatchNorm(
                    ^
[24/69] Compiling MiniGo MCTSPredictor.swift
[25/69] Compiling MiniGo MCTSModelBasePredictor.swift
/swift-models/MiniGo/Strategies/MCTS/MCTSModelBasePredictor.swift:122:30: warning: 'transposed(withPermutations:)' is deprecated: renamed to 'transposed(permutation:)'
        return featureTensor.transposed(withPermutations: 1, 2, 0)
                             ^
/swift-models/MiniGo/Strategies/MCTS/MCTSModelBasePredictor.swift:122:30: note: use 'transposed(permutation:)' instead
        return featureTensor.transposed(withPermutations: 1, 2, 0)
                             ^~~~~~~~~~ ~~~~~~~~~~~~~~~~
                             transposed permutation
[27/69] Compiling MiniGo PythonCheckpointReader.swift
/swift-models/MiniGo/Models/PythonCheckpointReader.swift:31:16: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
        return Raw.restoreV2(prefix: StringTensor(path),
               ^
/swift-models/MiniGo/Models/PythonCheckpointReader.swift:31:16: note: use '_Raw' instead
        return Raw.restoreV2(prefix: StringTensor(path),
               ^~~
               _Raw
/swift-models/Transformer/main.swift:56:14: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
    tokens = Raw.multinomial(logits: lastLogit.squeezingShape(at: 1), numSamples: Tensor<Int32>(1))
             ^
/swift-models/Transformer/main.swift:56:14: note: use '_Raw' instead
    tokens = Raw.multinomial(logits: lastLogit.squeezingShape(at: 1), numSamples: Tensor<Int32>(1))
             ^~~
             _Raw
/swift-models/Datasets/CIFAR10/CIFAR10.swift:116:44: warning: 'transposed(withPermutations:)' is deprecated: renamed to 'transposed(permutation:)'
    let imageTensor = Tensor<Float>(images.transposed(withPermutations: [0, 2, 3, 1]))
                                           ^
/swift-models/Datasets/CIFAR10/CIFAR10.swift:116:44: note: use 'transposed(permutation:)' instead
    let imageTensor = Tensor<Float>(images.transposed(withPermutations: [0, 2, 3, 1]))
                                           ^~~~~~~~~~ ~~~~~~~~~~~~~~~~
                                           transposed permutation
/swift-models/Datasets/CIFAR10/CIFAR10.swift:128:16: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
        label: Raw.concat(concatDim: Tensor<Int32>(0), data.map { $0.label }),
               ^
/swift-models/Datasets/CIFAR10/CIFAR10.swift:128:16: note: use '_Raw' instead
        label: Raw.concat(concatDim: Tensor<Int32>(0), data.map { $0.label }),
               ^~~
               _Raw
/swift-models/Datasets/CIFAR10/CIFAR10.swift:129:15: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
        data: Raw.concat(concatDim: Tensor<Int32>(0), data.map { $0.data })
              ^
/swift-models/Datasets/CIFAR10/CIFAR10.swift:129:15: note: use '_Raw' instead
        data: Raw.concat(concatDim: Tensor<Int32>(0), data.map { $0.data })
              ^~~
              _Raw
[31/70] Merging module Gym-CartPole
[32/70] Wrapping AST for Gym-CartPole for debugging
/swift-models/Transformer/Model.swift:95:16: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
    let mask = Raw.matrixBandPart(
               ^
/swift-models/Transformer/Model.swift:95:16: note: use '_Raw' instead
    let mask = Raw.matrixBandPart(
               ^~~
               _Raw
/swift-models/Transformer/Model.swift:141:37: warning: 'transposed(withPermutations:)' is deprecated: renamed to 'transposed(permutation:)'
    let movedToFront = splitLastDim.transposed(withPermutations: 0, 2, 1, 3)
                                    ^
/swift-models/Transformer/Model.swift:141:37: note: use 'transposed(permutation:)' instead
    let movedToFront = splitLastDim.transposed(withPermutations: 0, 2, 1, 3)
                                    ^~~~~~~~~~ ~~~~~~~~~~~~~~~~
                                    transposed permutation
/swift-models/Transformer/Model.swift:152:37: warning: 'transposed(withPermutations:)' is deprecated: renamed to 'transposed(permutation:)'
    let movedToBack = splitFirstDim.transposed(withPermutations: 0, 2, 1, 3)
                                    ^
/swift-models/Transformer/Model.swift:152:37: note: use 'transposed(permutation:)' instead
    let movedToBack = splitFirstDim.transposed(withPermutations: 0, 2, 1, 3)
                                    ^~~~~~~~~~ ~~~~~~~~~~~~~~~~
                                    transposed permutation
/swift-models/Transformer/Model.swift:176:16: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
        return Raw.concatV2([seed.query, seed.key, seed.value], axis: Tensor<Int32>(2))
               ^
/swift-models/Transformer/Model.swift:176:16: note: use '_Raw' instead
        return Raw.concatV2([seed.query, seed.key, seed.value], axis: Tensor<Int32>(2))
               ^~~
               _Raw
/swift-models/Transformer/Model.swift:230:77: error: cannot convert value of type 'Tensor<Float>' to expected argument type 'Float'
        selfAttentionNorm = LayerNorm(featureCount: size, axis: 2, epsilon: Tensor<Float>(1e-5))
                                                                            ^
/swift-models/Transformer/Model.swift:233:75: error: cannot convert value of type 'Tensor<Float>' to expected argument type 'Float'
        feedForwardNorm = LayerNorm(featureCount: size, axis: 2, epsilon: Tensor<Float>(1e-5))
                                                                          ^
[35/71] Linking Gym-CartPole
[37/71] Merging module Catch
/swift-models/Support/Image.swift:40:26: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
        let loadedFile = Raw.readFile(filename: StringTensor(url.absoluteString))
                         ^
/swift-models/Support/Image.swift:40:26: note: use '_Raw' instead
        let loadedFile = Raw.readFile(filename: StringTensor(url.absoluteString))
                         ^~~
                         _Raw
/swift-models/Support/Image.swift:41:26: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
        let loadedJpeg = Raw.decodeJpeg(contents: loadedFile, channels: 3, dctMethod: "")
                         ^
/swift-models/Support/Image.swift:41:26: note: use '_Raw' instead
        let loadedJpeg = Raw.decodeJpeg(contents: loadedFile, channels: 3, dctMethod: "")
                         ^~~
                         _Raw
/swift-models/Support/Image.swift:44:23: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
                data: Raw.reverse(loadedJpeg, dims: Tensor<Bool>([false, false, false, true])))
                      ^
/swift-models/Support/Image.swift:44:23: note: use '_Raw' instead
                data: Raw.reverse(loadedJpeg, dims: Tensor<Bool>([false, false, false, true])))
                      ^~~
                      _Raw
/swift-models/Support/Image.swift:62:27: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
        let encodedJpeg = Raw.encodeJpeg(
                          ^
/swift-models/Support/Image.swift:62:27: note: use '_Raw' instead
        let encodedJpeg = Raw.encodeJpeg(
                          ^~~
                          _Raw
/swift-models/Support/Image.swift:64:9: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
        Raw.writeFile(filename: StringTensor(url.absoluteString), contents: encodedJpeg)
        ^
/swift-models/Support/Image.swift:64:9: note: use '_Raw' instead
        Raw.writeFile(filename: StringTensor(url.absoluteString), contents: encodedJpeg)
        ^~~
        _Raw
/swift-models/Support/Image.swift:71:25: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
                tensor: Raw.resizeBilinear(
                        ^
/swift-models/Support/Image.swift:71:25: note: use '_Raw' instead
                tensor: Raw.resizeBilinear(
                        ^~~
                        _Raw
/swift-models/Support/Image.swift:76:25: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
                tensor: Raw.resizeBilinear(
                        ^
/swift-models/Support/Image.swift:76:25: note: use '_Raw' instead
                tensor: Raw.resizeBilinear(
                        ^~~
                        _Raw
[39/72] Wrapping AST for Gym-FrozenLake for debugging
[40/72] Wrapping AST for Catch for debugging
[41/72] Wrapping AST for Gym-Blackjack for debugging
[42/72] Merging module ModelSupport
[43/72] Wrapping AST for ModelSupport for debugging
[44/72] Linking Gym-FrozenLake
[45/72] Linking Gym-Blackjack
[46/72] Linking Catch
/swift-models/Datasets/MNIST/MNIST.swift:107:22: warning: 'transposed(withPermutations:)' is deprecated: renamed to 'transposed(permutation:)'
                    .transposed(withPermutations: [0, 2, 3, 1]) / 255,  // NHWC
                     ^
/swift-models/Datasets/MNIST/MNIST.swift:107:22: note: use 'transposed(permutation:)' instead
                    .transposed(withPermutations: [0, 2, 3, 1]) / 255,  // NHWC
                     ^~~~~~~~~~ ~~~~~~~~~~~~~~~~
                     transposed permutation
[48/73] Merging module Datasets
/swift-models/Transformer/Operators.swift:40:12: warning: 'Raw' is deprecated: 'Raw' has been renamed to '_Raw' to indicate that it is not a guaranteed/stable API.
    return Raw.batchMatMul(left, right, adjX: adjointLeft, adjY: adjointRight)
           ^
/swift-models/Transformer/Operators.swift:40:12: note: use '_Raw' instead
    return Raw.batchMatMul(left, right, adjX: adjointLeft, adjY: adjointRight)
           ^~~
           _Raw

[ID: 8456322] Build finished after 244 secs, exit value: 1

Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.

To make things easier to pull this in, I've gone ahead and addressed the other deprecation warnings in PR #223. Once we bring these two in, that should take care of those warnings.


Introducing ui-dropdown-array for complex objects

Introduced a new ui-dropdown component called ui-dropdown-array that will use a find function to pull the record back out of content
This replaced ui-dropdown-item since we can no longer bind complex objects with the most recent semantic-ui versions. See #84 for more information.
The usage here is the same we just need an additional content property so the component has access to the array.
{{#ui-dropdown-array class="fluid selection" content=pricing_plans selected=company.pricing_plan}}
  <input type="hidden" name="source" value={{company.pricing_plan.id}}>

  {{#if company.pricing_plan}}

{{company.pricing_plan.name}}

  {{/if}}

  {{#each pricing_plans as |content|}}

{{content.name}}

  {{/each}}

{{/ui-dropdown-array}}

changes look good, a few comments. We probably should update the readme too


init tool: propose file system helper

Motivation/Description of the PR

Description of this PR, which problem it solves
Resolves #issueId (if applicable).

Applicable helpers:

[ ] WebDriver
[ ] Puppeteer
[ ] Nightmare
[ ] REST
[ ] FileHelper
[ ] Appium
[ ] Protractor
[ ] TestCafe
[ ] Playwright

Applicable plugins:

[ ] allure
[ ] autoDelay
[ ] autoLogin
[ ] customLocator
[ ] pauseOnFail
[ ] coverage
[ ] retryFailedStep
[ ] screenshotOnFail
[ ] selenoid
[ ] stepByStepReport
[ ] stepTimeout
[ ] wdio
[ ] subtitles

Type of change

[ ] :fire: Breaking changes
[ ] :rocket: New functionality
[ ] :bug: Bug fix
[ ] :clipboard: Documentation changes/updates
[ ] :hotsprings: Hot fix
[ ] :hammer: Markdown files fix - not related to source code
[ ] :nail_care: Polish code

Checklist:

[ ] Tests have been added
[ ] Documentation has been added (Run npm run docs)
[ ] Lint checking (Run npm run lint)
[ ] Local tests are passed (Run npm test)

Sorry, I don't think this is needed on the first setup
This helper can be easily added in any time, and testing filesystem have never been the main purpose of CodeceptJS


move devDeps to right place

move the es2015 babel transformer to devdependencies
add babel-register, required for mocha

closed in favor of #23


Fix for stack size limitation

If there are a large number of URLs (1.8M in my case 😅), the spread operator can cause a stack size limit exceeded error when building the array of URLs.
This PR fixes this using the approach in this SO answer

Thanks!
1.8M pages?!? Does the script even work with that many pages?

I was just about to come back and mention this!
I think if you have enough pages to hit a stack size limit, then you will definitely run out of your daily quota and quickly hit 429 errors...
I think I might modify the script to stay below the rate limits and see how it goes :)

Please send a PR when you do! We could stop the script after getting the first 429


Make the step just to be the graphql java object.

Downsampling is the core feature of the OAP backend. It used on everywhere such as model name, analysis worker, time bucket transform, time duration calculates, query service...
For some historical reason, we define a step enum object for query service. It has the same meaning as the downsampling. But, this object is used for UI protocol. We can't replace it.
So, I decide to make the step stay in the layer of Graphql resolvers.

Coverage decreased (-0.0004%) to 16.857% when pulling ef4ba0b6c738e490ea8a106da837ff247cca60b1 on peng-yongsheng:feature/step_downsampling into 4f89ea2704e560ca93d5fcd5830679c9db82c2cd on apache:master.


Nested Struct (Promoted fields) aren't showing properly in the documentation.

Describe the bug
Nested Struct (Promoted fields) don't generate correct documentation.
To Reproduce
Steps to reproduce the behavior:

Create a nested struct with Promoted fields:

package rest_login
type Response struct {
	rest.ResponseWrapper
        Result Result `json:"result"`
}

type Result struct {
	login.Response
}

// rest.ResponseWrapper
type ResponseWrapper struct {
	Status   string      `json:"status"`
	Code     int         `json:"code"`
	Messages []string    `json:"messages"`
	Result   interface{} `json:"result"`
}

Expected behavior
It should generate the whole JSON when using @Success 200 {object} rest_login.Response
Screenshots
This is what it's generating

Your swag version
e.g. 1.5.0
Your go version
e.g. 1.11.5
Desktop (please complete the following information):

OS: Linux Mint
Browser: Chrome
Version: 73.0.3683.103

I have the same problem. Have any solution?
 For example
type A struct {
    B
    C
}

Then for Swagger documentation I'd create a new struct that matches A but without nesting
type AForSwagger struct {
    AttributeInB string
    AnotherAttributeInB string
    ...
}

I wanted to use nesting because for my use case it was leading to better code in general, I preferred to have structs "duplicated" for the sake of swagger documentation.

Thank you, this is also a way.

@jac1013 fixed by #463 ,please try the latest version against master. Reopen it if still have any questions.

@easonlin404 I'll wait for next release, much appreciate!

Hi @easonlin404 first of all, thanks for delivering a solution for this.
Now, I'm not seeing the expected behavior tho, here's what I'm experiencing:
Struct:
type Response struct {
	rest.ResponseWrapper
}

Swag comment:
// @Success 201 {object} signup.Response

Result:

I'm doing exactly what #463 it's emulating in the test :man_shrugging: maybe we could wait for someone else to test it, for now, I'll keep the TODOs in my code to fix this whenever it's working for me.

@jac1013 please use the latest version (if you really want to see it working) or just wait until next release.
If you do that and encounter any issues, please feel free to open a new issue.(this one is closed)

I'll try again later, I'm sure I was using the latest version in which the fix is present. I'll create a new ticket in case is not working for me. Thanks!


feat: Update INPUT_TARGET to multiple target files/dirs

Close #86
target entry support space-separated files/dirs.

force merge without close


KeyboardAvoidingView lacking documentation

https://facebook.github.io/react-native/docs/keyboardavoidingview.html
The difference between height, position and padding for the behavior prop should be documented.

I think the purpose of what exactly the KeyboardAvoidingView is supposed to do is generally very unclear.
The purpose of keyboard avoiding in general, not specifically this component, in my opinion is that it's supposed to prevent an element from being covered by the keyboard. For example, if you have a form element like a text input, you want to prevent the keyboard from obscuring that input (and perhaps some other relevant elements like a submit button underneath it).
But the docs describe doing something like wrapping "... your ui ..." with a KeyboardAvoidingView, which would provide no way for clarifying what within the view remains visible when a keyboard pops up.
What behavior exactly is expected for KeyboardAvoidingView? That the bottom of the KeyboardAvoidingView lines up with the top of the keyboard (I could maybe see that)? That the middle does (that behavior seems potentially odd)? That some focused element inside it will be visible (almost certainly not)?


How to custome fontFamily global?

In materialTheme, we can set fontFamily, but there not have fontFamily in ShadThemeData.

if dont't have fontFamily, the font look not good.

See https://mariuti.com/shadcn-ui/typography/#custom-font-family

I want to change the whole picture, and I can't change the font of the button.

Because there is a problem with the default Chinese font, so must specify the font family

Don't you see the custom font in the buttons? Did you add it to the pubspec?
My side I can change the font correctly.

yes, i add font in pubsec, but the button font not change

but the material theme button font changed

Maybe I should create a new project to test

Can you try adding all the other font assets (regular, light, etc.) and specify the font weights like in the documentation?

It may be that the theme of another package does not take effect in my project, but I found a problem that I could not launch in Windows after using this package.

Can you share the error?

use flutter-shadcn-ui\example.
➜ flutter run
Connected devices:
Windows (desktop) • windows • windows-x64    • Microsoft Windows [版本 10.0.22631.3447]
Chrome (web)      • chrome  • web-javascript • Google Chrome 124.0.6367.202
Edge (web)        • edge    • web-javascript • Microsoft Edge 124.0.2478.80
[1]: Windows (windows)
[2]: Chrome (chrome)
[3]: Edge (edge)
Please choose one (or "q" to quit): 1
Launching lib\main.dart on Windows in debug mode...
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(456,5): error MSB8020: �޷��ҵ� ClangCL �����ɹ���(ƽ̨���߼� =��ClangCL��)����Ҫʹ�� ClangCL ���ɹ��߽������ɣ��밲װ ClangCL ���ɹ��ߡ����ߣ�������������ǰ Visual Studio ���ߣ���ʽ��ͨ��ѡ����Ŀ���˵����Ҽ������ý��������Ȼ��ѡ���ض��������Ŀ�ꡱ�� [C:\Users\flowray\Desktop\flutter-shadcn-ui\example\build\windows\x64\plugins\rive_common\rive_common_plugin.vcxproj]
Building Windows application...                                     5.8s
Error: Build process failed.

look because rive package

Does this issue happen without shadcn too?
On Tue, May 14, 2024, 5:24 AM Alexandru Mariuti @.***>
wrote:

Please try with the latest commit on main, I removed rive because it
caused many issue to a lot of people
—
Reply to this email directly, view it on GitHub
https://github.com/nank1ro/flutter-shadcn-ui/issues/64#issuecomment-2109709769,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASDJ6267IBT4AHTUYSYJCF3ZCHJ6BAVCNFSM6AAAAABHUOCFNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBZG4YDSNZWHE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Does this issue happen without shadcn too?
…
On Tue, May 14, 2024, 5:24 AM Alexandru Mariuti @.> wrote: Please try with the latest commit on main, I removed rive because it caused many issue to a lot of people — Reply to this email directly, view it on GitHub <#64 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASDJ6267IBT4AHTUYSYJCF3ZCHJ6BAVCNFSM6AAAAABHUOCFNGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBZG4YDSNZWHE . You are receiving this because you are subscribed to this thread.Message ID: @.>

Many people who have tried to add shadcn_ui as a package have encountered the error. Especially on Windows. there is some problem with the rive_common library.
Since the feature it brought was quite small (supporting riv in the ShadImage component) I decided to remove the dependency. If one then wants a riv it integrates rive in the pubspec.

Thanks, i have solve this problem by https://github.com/rive-app/rive-flutter/issues/308, rive need install clang.

After test, In riverpod and go_router, the global setting font does not take effect. In this example, https://github.com/lucavenir/go_router_riverpod.
set ShadApp textTheme

Be aware that in the materialThemeBuilder you should copy the theme provided to you, not providing a new instance.
(context, theme) {
  return theme.copyWith(primarySwatch: Colors.cyan)
}

I would try your font and let you knoe

Thanks, It's normal now, and I understand what's wrong, because i set darkTheme.
Thank you very much for developing this package~


chore(master): release 1.1.35

:robot: I have created a release beep boop
1.1.35 (2023-08-21)
Miscellaneous

deps: update dependency pestphp/pest to v2.15.0 (e1524a3)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/laravel-stripe-webhooks/releases/tag/v1.1.35 :sunflower:


Bluetooth: Mesh: Fix relaying from GATT to Advertising

The logic for choosing to relay from the GATT bearer to the
advertising bearer was still buggy. This patch refactors the logic to
a separate helper function to make it clearer.
Signed-off-by: Johan Hedberg<EMAIL_ADDRESS>

@rymanluk @michal-narajowski FYI

Tested successfully with some PTS Relay & GATT Proxy tests, so should be safe to go in.


Extend validate_and_repair function in Tabu class to allow validation from specific path index

We need to modify the validate_and_repair function in the Tabu class to allow validation to start from a specified path index, rather than always validating the entire path from beginning to end.
Currently, the function validates the entire path each time it's called. This can be inefficient, especially for long paths where only a portion needs to be validated.
Proposed changes:

Add an optional parameter start_index to the validate_and_repair function.
Modify the function logic to start the validation process from the specified start_index.
If start_index is not provided, the function should default to validating the entire path as it currently does.

Commit 1.56 that is:54a7f6848d3acc121660f0b14cdd83b73146b5bf finally fixes minor bug about wrong assert.


Side effects in Stream#write

The Stream#write implementation deletes err and error properties from the payload, which causes problems when bunyan is used with multiple streams. Streams defined after bunyan-bugsnag won't see these properties.

Thanks for pointing this out. I'm going to try to make time to fix it later today, but if I don't and you're up for creating a PR that would also be great.

Fixed in 1.0.2


i18n is not included

monaco-editor version: 0.10.1
Browser: Chrome
OS: High Sierra
Expected behavior:
Monaco Editor menus and other texts are localized according to the browser locale.
Actual behavior:
They are currently not.

Hello,
I am also facing the same issue. Not sure whether this is a bug or whether the locales have to be enabled in a different way.
Cheers,
Pyves

The locale can be configured. Here is a full working sample that configures it to be in German:
https://github.com/Microsoft/monaco-editor-samples/blob/master/sample-localized/index.html
The browser configured locale is something that reaches your servers via HTTP request headers. You can use that information in your server logic to detect which language the browser desires. Then, you can configure the monaco editor with that language.

Thanks!

@alexandrudima sry to trouble you, but your link about configuring the editor's locale shows 404 error. Any suggest about configuring the editor's locale?


Provide native binaries for the tool

As a command-line tool, it would be much better to provide as a single binary that a shaded jar file.
For doing that, picocli provide different options, but I would prefer to use GraalVM if possible.
This ticket is to investigate if it is possible with our dependencies or work on them to be able to do so.

As we are moving to quarkus with #120, for this purpose we should evaluate if we prefer to:

Use the runnable jar provided by quarkus as it should be already optimized, and we just need the JVM to run it
Use the quarkus native builder

Using retrofit requires kotlin quarkus extension to build native image.
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-kotlin</artifactId>
        </dependency>

Nevertheless, see #141 to check if we really need this dependency.


InferenceService CRD is too large

/kind bug
KServe's ISVC CRD is too large and it's impossible to add new fields to the spec given the limitation of K8s CRD size in general.
This currently blocks a couple of community PRs, including https://github.com/kserve/kserve/pull/3479 and https://github.com/kserve/kserve/pull/3418.
Even though the error message is pointing to the annotations, the actual problem might be the size of the entire CRD.
CustomResourceDefinition "[inferenceservices.serving.kserve.io](http://inferenceservices.serving.kserve.io/)" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

https://github.com/kubernetes/kubernetes/issues/82292

Trying out an approach in https://github.com/kserve/kserve/pull/3492

A temporary solution would be start using server side apply, which does not use annotations to maintain previous state of a resource unlike the client side apply.

Also we have individual framework predictor  or explainer specs, each containing a PodSpec which contributed to the large crd size. @sivanantha321 has a PR starting doing that.

I do not think we should follow the Argo approach to keep all fields as known as in this way you lose the schema validation and dry-run.

A temporary solution would be start using server side apply, which does not use annotations to maintain previous state of a resource unlike the client side apply.

But even if it's doesn't use annotations, the CRD might still be too large.

Also we have individual framework predictor or explainer specs, each containing a PodSpec which contributed to the large crd size. @sivanantha321 has a PR starting deprecating those.

That's long-term solution though and requires new CRD version after those are removed?

I do not think we should follow the Argo approach to keep all fields as known as in this way you lose the schema validation and dry-run.

I think for Argo's case it's ok to drop validation since controller does validation anyways and we have a JsonSchema that can be used for validation in Argo Workflows UI's workflow editor or IDEs.

Discussed with Dan offline. Here are some things we can do:

(nice to have) Provide minimal CRDs similar to what Argo is doing for users who do not need client-side validation. This is nice-to-have but not solving this particular issue though https://github.com/kserve/kserve/pull/3492. A follow-up would be adding a separate helm-chart called "crd-minimal"
(long-term) Remove predictor/explainer specs
(short-term) Remove Seldon/Alibi specs https://github.com/kserve/kserve/pull/3443
(short-term) Remove HuggingFace spec

Hi,
I get the same error when I try to install the kubeflow.
Please let me know what should I do in order to apply this 20k line CRD to the cluster.
by running the hack/generate_install.sh v0.14.0
I still find the CRD remain the same length

@ram4444 Use helm or server side apply with kubectl. https://kserve.github.io/website/master/admin/serverless/serverless/#4-install-kserve


ship init:  bufio.Scanner: token too long

When running ship init on a chart with a very large secret (approx a 122KB secret), ship init errors out with:
execute render step: execute plan: execute templating: unable to validate chart dir: failed to read lines from file .ship/tmp/chartrendered/openidm/templates/secrets.yaml: bufio.Scanner: token too long

Ship version: ...

ship version
{
    "version": "0.31.0",
    "buildTime": "2019-01-22T04:56:56Z"
}

Steps to reproduce the behavior
ship init https://github.com/ForgeRock/forgeops/tree/master/helm/openidm

We are using a helm template to include the secrets:
{{ (.Files.Glob "secrets/*").AsSecrets| indent 2 }}
I'll have to see if there is some template magic that can multiline this...


How to display sample names in coOncoplot?

If I need to display sample names in coOncoplot, how do I do that? I realize it uses functions from ComplexHeatmap, but no parameter that I could could manually change.

Never mind, I solved the issue myself. In coOncoplot.R, I added the parameter "showTumorSampleBarcodes = TRUE" inside getOncoPlot functions (line #54 and #56). Perhaps this is a parameter to be added in the function.

Hi,
Glad it worked for you. I will add this as an argument to coOncoplot.

I have added two arguments showSampleNames and SampleNamefont to control sample names and their font sizes in coOncoplot. Thanks for the suggestion.

Hi @PoisonAlien, is there a way to use a different set of sample names than the TumorSampleBarcodes in the oncoplots ? I only found the "showTumorSampleBarcodes = TRUE" argument but no way to specify another set of names.
Thanks.

Hi,
Its not possible to change sample names unfortunately. Only way is to change them in your MAF file itself.


Upgrade to ldpc_v2

fixes #133
UPDATE: I think I found a temporary fix to my problems with ldpc, here.
(The problems:)
There appears to be an issue though with the stub files in ldpc, causing mypy to throw a syntax error.  I opened an issue for this.  In the meantime, is there any way to make mypy ignore ldpc?
The naive attempt of
import ldpc  # type: ignore

in qldpc/decoder.py did not work for me...
For that matter, I would also like to suppress the DeprecationWarnings from ldpc when I run tests (example).  How do I do that?

fixes #144 (I think)


Optimization for start child workflow task

What changed?
Optimization for start child workflow task

Why?
Pick https://github.com/temporalio/temporal/pull/1397

How did you test it?
Unit tests

Potential risks

Release notes

Documentation Changes

Pull Request Test Coverage Report for Build cde0dfa9-8983-4dc8-9190-2dcc3dd04e03

5 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
262 unchanged lines in 21 files lost coverage.
Overall coverage increased (+0.05%) to 56.717%

Files with Coverage Reduction
New Missed Lines
%

service/history/execution/cache.go
1
74.87%

common/log/panic.go
2
18.18%

common/persistence/executionManager.go
2
75.75%

common/persistence/nosql/nosqlplugin/interfaces.go
2
60.0%

common/persistence/statsComputer.go
2
96.43%

common/task/weightedRoundRobinTaskScheduler.go
2
89.12%

service/history/execution/mutable_state_builder.go
2
69.87%

service/history/task/transfer_standby_task_executor.go
2
90.87%

common/persistence/serialization/parser.go
4
65.41%

common/persistence/serialization/thrift_decoder.go
4
59.6%

Totals

Change from base Build 8bef5730-028d-4691-8ea9-b718d102eb9c:
0.05%

Covered Lines:
77548

Relevant Lines:
136729

💛  - Coveralls


DevLake support pg

Description
Concrete task for #1547
Describe the solution you'd like

DevLake accept postgres database as an alternate option
Implement e2e-tests to make extractor converter enricher are working fine on different database system

issues need to be fixed:

#1728
#1729
#1730
#1743
#1744
#1745

Has the Feature been Requested Before?
No

All subtasks had been resolved.


Wireframe

Generated 1st iteration of wireframe, will continue to modify until final decision regarding MVP has been made.

wireframev2.pptx


Missed training leads to error when the next request is received

Error description
If a training attempt fails, following requests with the same pre-trained model path lead to an exception. Steps to recreate it:

Send a (slightly) faulty request that contains a path to a pre-trained model that does not exist and that contains a small error (e.g., a wrong path to the embeddings)

curl -X 'GET' -H 'accept: application/json' -H 'Content-Type: application/json' --data '{"pos":["http://www.wikidata.org/entity/Q3895","http://www.wikidata.org/entity/Q180855"], "neg":["http://www.wikidata.org/entity/Q483915","http://www.wikidata.org/entity/Q1359568","http://www.wikidata.org/entity/Q169167","http://www.wikidata.org/entity/Q192334","http://www.wikidata.org/entity/Q695087","http://www.wikidata.org/entity/Q20165"], "model":"Drill","path_embeddings":"/data/output/Keci_entity_embeddings.csv", "path_embeddings": "mutagenesis_embeddings/Keci_entity_embeddings.csv", "path_to_pretrained_drill": "pretrained_drill",  "num_of_training_learning_problems": 10, "num_of_target_concepts": 3, "max_runtime": 60000, "iter_bound": 100 }' http://localhost:8000/cel

This will lead to a situation in which the server decides to skip the training. However, internally, it will create the path to the pre-trained model. From the server log:

######### CEL Arguments ###############
Knowledgebase/Triplestore:<ontolearn.triple_store.TripleStore object at 0x78ef01cd7af0>
Input data: {'pos': ['http://www.wikidata.org/entity/Q3895', 'http://www.wikidata.org/entity/Q180855'], 'neg': ['http://www.wikidata.org/entity/Q483915', 'http://www.wikidata.org/entity/Q1359568', 'http://www.wikidata.org/entity/Q169167', 'http://www.wikidata.org/entity/Q192334', 'http://www.wikidata.org/entity/Q695087', 'http://www.wikidata.org/entity/Q20165'], 'model': 'Drill', 'path_embeddings': 'mutagenesis_embeddings/Keci_entity_embeddings.csv', 'path_to_pretrained_drill': 'pretrained_drill', 'num_of_training_learning_problems': 10, 'num_of_target_concepts': 3, 'max_runtime': 60000, 'iter_bound': 100}
######### CEL Arguments ###############
No pre-trained model...
No loading because embeddings not provided
Learning OWL Class Expression at most 100 iteration:   0%|                                                                                | 0/100 [00:00<?, ?it/s]
######## Current Search Tree 11 ###########

... answering the request continues as usual from here on ...

As a user, you may find the error and correct it. So we send the same request as the one above but with the corrected path_embeddings value.
The server throws an exception because the directory exists:

root@96b21be83ded:/# cd pretrained_drill/
root@96b21be83ded:/pretrained_drill# ls
seen_examples.json

However, there is no pth file in it:
######### CEL Arguments ###############
Knowledgebase/Triplestore:<ontolearn.triple_store.TripleStore object at 0x78ef01cd7af0>
Input data: {'pos': ['http://www.wikidata.org/entity/Q3895', 'http://www.wikidata.org/entity/Q180855'], 'neg': ['http://www.wikidata.org/entity/Q483915', 'http://www.wikidata.org/entity/Q1359568', 'http://www.wikidata.org/entity/Q169167', 'http://www.wikidata.org/entity/Q192334', 'http://www.wikidata.org/entity/Q695087', 'http://www.wikidata.org/entity/Q20165'], 'model': 'Drill', 'path_embeddings': '/data/output/Keci_entity_embeddings.csv', 'path_to_pretrained_drill': 'pretrained_drill', 'num_of_training_learning_problems': 10, 'num_of_target_concepts': 3, 'max_runtime': 60000, 'iter_bound': 1}
######### CEL Arguments ###############
INFO:     <IP_ADDRESS>:52386 - "GET /cel HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/http/httptools_impl.py", line 411, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 69, in __call__
    return await self.app(scope, receive, send)
  File "/usr/local/lib/python3.10/site-packages/fastapi/applications.py", line 1054, in __call__
    await super().__call__(scope, receive, send)
  File "/usr/local/lib/python3.10/site-packages/starlette/applications.py", line 123, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 186, in __call__
    raise exc
  File "/usr/local/lib/python3.10/site-packages/starlette/middleware/errors.py", line 164, in __call__
    await self.app(scope, receive, _send)
  File "/usr/local/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 756, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 776, in app
    await route.handle(scope, receive, send)
  File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 297, in handle
    await self.app(scope, receive, send)
  File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 77, in app
    await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
    raise exc
  File "/usr/local/lib/python3.10/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
    await app(scope, receive, sender)
  File "/usr/local/lib/python3.10/site-packages/starlette/routing.py", line 72, in app
    response = await func(request)
  File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 278, in app
    raw_response = await run_endpoint_function(
  File "/usr/local/lib/python3.10/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
    return await dependant.call(**values)
  File "/Ontolearn/ontolearn/scripts/run.py", line 91, in cel
    owl_learner = get_learner(data)
  File "/Ontolearn/ontolearn/scripts/run.py", line 74, in get_learner
    return get_drill(data)
  File "/Ontolearn/ontolearn/scripts/run.py", line 58, in get_drill
    drill.load(directory=data["path_to_pretrained_drill"])
  File "/Ontolearn/ontolearn/learners/drill.py", line 252, in load
    self.heuristic_func.net.load_state_dict(torch.load(directory + "/drill.pth", torch.device('cpu')))
  File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 791, in load
    with _open_file_like(f, 'rb') as opened_file:
  File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 271, in _open_file_like
    return _open_file(name_or_buffer, mode)
  File "/usr/local/lib/python3.10/site-packages/torch/serialization.py", line 252, in __init__
    super().__init__(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'pretrained_drill/drill.pth'

Dear @MichaelRoeder
Thank you for opening an issue with through details :+1:
Given that  path_embeddings does not lead to a CSV file corresponding to the entity embeddings, the created folder named path_to_pretrained_drill only contains seen_examples.json.
Therefore, since pretrained_drill/drill.pth is not found although pretrained_drill is created,FileNotFoundError has been thrown.
My question is How would you like the system to behave in the aforemented scenario?

The main issue is that the service get's stuck in a state, in which I cannot use it anymore. (Well, I could use a different pretrained path but it may take too much time until a user like me figures that out... :sweat_smile: )
If I understand the workflow correctly, the program decides whether to train or not based on the existence of the given pretrained_drill path. An easy solution would be, to extend this decision as follows: start the training if either the directory does not exist OR if the directory does not contain a model file.
However, there are other solutions possible (e.g., get better users :wink: )


Add device regions to non-banded routines

This adds arbitrary regions for the all of the batched device functions, except the banded norms.  Handling the bandwidth for non-uniform tile sizes isn't totally obvious and is probably broken in the other banded routines too.  So, I'm leaving that for the future.
The core logic for building the regions is refactored into a couple functions in src/internal/internal_batch.hh.  That's probably the place to start, in order to understand the rest of the changes.  device_regions_build is the key function there, which builds the regions as a vector of device_regions_params objects.  This function and struct are both templated on several parameters in order to avoid too large of an overhead relative to manually inlining this logic everywhere.  This function has several moving parts to address all of the ways we organize our batch kernels.  Please let me know if anything needs more comments/explanations.
On guyot, the performance seems to be the same or maybe a touch better.  The norms seem to be a little slower.  But, it's a little hard to tell with the system's noise.
Edit: I noticed that I missed trsmA and the he2hb variants of gemm, trmm, and her2k.  I've addressed these routines.

I did the merge + push-to-master approach, which appears to have worked correctly.


Usage example fix

I was going to publish my version of scala-style option to npm, but when I was checking 'ts-option' this name was already linked to your lib :)
This PR fixes wrong import in the usage examples

@dimafeng Merged. Thanks!


Improve testing

@matthewmturner i had a quick look. I think you should have some expected error message like
#[should_panic(expected = "Could not parse metadata: bad data")]

@matthewmturner i had a quick look. I think you should have some expected error message like

#[should_panic(expected = "Could not parse metadata: bad data")]

I was playing with that but it's a super long error message that was hard to match on. Maybe I have to extract one of the errors.

The expected is actually an expected.contains message so you don't need the whole thing but we need to make sure we are catching the correct error.

@seddonm1 got it, thx for tip!

Looks good. I think we should just add a quick comment above each test case to help future readers understand the intent of the test. I don't think the test name is always clear enough.

@seddonm1 added test documentation


MSMPI fails to install due to version mismatch

When I am attempting to build VTK I am receiving this error. My suspicion is that the msmpi package already comes with VS2017 build tools however the downloaded version is newer thus the conflict.
The following packages will be built and installed:
    msmpi:x86-windows
Building package msmpi:x86-windows...
-- CURRENT_INSTALLED_DIR=C:/Users/arjo1/Documents/vcpkg/vcpkg/install
-- DOWNLOADS=C:/Users/arjo1/Documents/vcpkg/vcpkg/downloads
-- CURRENT_PACKAGES_DIR=C:/Users/arjo1/Documents/vcpkg/vcpkg/package
-- CURRENT_BUILDTREES_DIR=C:/Users/arjo1/Documents/vcpkg/vcpkg/build
-- CURRENT_PORT_DIR=C:/Users/arjo1/Documents/vcpkg/vcpkg/ports/msmpi
-- Using cached C:/Users/arjo1/Documents/vcpkg/vcpkg/downloads/msmpi
-- Testing integrity of cached file...
-- Testing integrity of cached file... OK
CMake Error at ports/msmpi/portfile.cmake:28 (message):
    The version of the installed MSMPI redistributable packages doe
    Expected version: 8.0.12438.0
    Found version: 7.1.12437.25

Call Stack (most recent call first):
  scripts/ports.cmake:73 (include)

Error: Building package msmpi:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update
submit an issue at https://github.com/Microsoft/vcpkg/issues include
  Package: msmpi:x86-windows
  Vcpkg version: 0.0.81-753702bf2a448d95e1f89c3fef6520ba900d5d63

**Expected** version: 8.0.12438.0
**Found** version: 7.1.12437.25

vcpkg install msmpi --debug
-> vcpkg\downloads
msmpisdk.msi
MSMpiSetup.exe
type ...\vcpkg\ports\msmpi\portfile.cmake
1.
https://download.microsoft.com/download/B/2/E/B2EB83FE-98C2-4156-834A-E1711E6884FB/msmpisdk.msi
2.
https://download.microsoft.com/download/B/2/E/B2EB83FE-98C2-4156-834A-E1711E6884FB/MSMpiSetup.exe

To me, this error happened because the version of the mpiexec program installed at C:\Program Files\Microsoft MPI\Bin\mpiexec.exe was inferior to 8.0.
Downloading and installing the new mpiexe from both links above (sent by Voskrese) solved the issue.


Flow coverage not working on class properties

So I'm working on a React app and I setup flow for the project. I wanted to check what is the coverage for one of my components and there was something weird going on there.
After running flow coverage MyComponent.js it showed that the following line were uncovered:
class Component {
 anotherMethod() {
   this.method(); // shows as uncovered
 }

 method = (): void => { }
}

What's interesting, when I switch to something like this:
class Component {
 anotherMethod() {
   this.method(); // now shows as covered
 }

 // the change was here
 method(): void { }
}

The line is covered again.
What more - in VS Code in the first example the flow-vscode plugin show the return type of this.method() as any. In the second example it shows as expected: () => void.
Any ideas? Am I doing something wrong?

The issue should be fixed a long time ago


Feature Request. Accept functions to disable / highlight dates

Current implementation of disabling / highlighting dates does not have an option to add custom logic.
One way is to give ability to add custom function like
disabled: {
  custom: function(date){
    if(date.getDate()/10 == 1){
      return true;
    } else {
      return false;
    }
  }
}

Looks good @vijayanandnandam  - happy to accept a PR on this.


Feature request: StringParameter

All the parameter elements values are numerical in nature, and none have a way to save string data that I can find?
I believe this can be as simple as copying BoolParameter and changing the value type be xs:string instead.
Use cases: LMMS has plugins which save a base64 encoded string.

LMMS support issue here https://github.com/LMMS/lmms/issues/6909


Add public api for ttnn to access HAL

Ticket
Closes #14622
Problem description
ttnn directly includes architecture specific header files from firmware. tensix_types.h.
This binds ttnn.so to a given architecture (Grayskull/Wormhole/Blackhole) at compile time.
This is done for access to architecture specific hardware design parameters like the size of L1 SRAM.
What's changed
Added first public API for the hal: get_l1_size().
This API bridges ttnn through tt_metal to tt_metal's hardware abstraction layer.
One of the architecture specific symbols DEST_REGISTER_FULL_SIZE used from tensix_types.h was not actually variable across architectures, so I chose to just define it. Should there be interest we can also put it behind the Hal.
Checklist

[x] Post commit CI passes
[ ] Blackhole Post commit (if applicable)
[ ] Model regression CI testing passes (if applicable)
[ ] Device performance regression CI testing passes (if applicable)
[ ] New/Existing tests provide coverage for changes

This PR was superseded by less invasive #15806


I installed according to the above requirements, but it depends on the operation

My current operating system is ub22.04, and I have installed version 2.3.1 of cloudpanel. I have downloaded and installed API services, and it seems to be working properly. However, I have http://ip:9999 No interface displayed. There hasn't been anything on SSH either. Please help me, I really need this program. thanks.

And I have already opened the port of 9999

There is no interface. This is just shown in the dev enviroment. If you set everything up correctly it should display an 404 when you access it


linkage_checker: remove gcc from @indirect_deps on Linux

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[ ] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

Closes #17303.

This makes most sense for now, thanks @carlocab!


[Segment] Clearing Segment Unable To Expand To 100% Height

JS Fiddle: https://jsfiddle.net/ftwL2whn/
The clearing segment code that semantic added:
.ui.clearing.segment::after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;

The issue is the third property of height: 0; If you open your dev tools and untick the selected height property, you'll see the height adjusting to cover 100% of the content.

Fixed in Fomantic-UI by https://github.com/fomantic/Fomantic-UI/pull/485