Cannot locate Artifacts.toml

I'm running a Julia notebook, in a directory containing Project.toml and Artifact.toml. Evaluating Base.active_project() from within the notebook, confirms that the active environment is the Project.toml in the directory. However trying to load an artifact fails:
LoadError: Cannot locate '(Julia)Artifacts.toml' file when attempting to use artifact '' in 'Main'

So it fails to locate Artifacts.toml. Is there a way to fix this?

I've encountered the same issue today. This works for me (inside a notebook):
using LazyArtifacts
artifact_toml = LazyArtifacts.find_artifacts_toml(".")
_hash = artifact_hash("my_artifact_name", artifact_toml)
artifact_path(_hash)


optimization: 支持使用CMDB主机监听事件触发订阅变更(fixed #85)

Codecov Report

Merging #90 (484fd80) into V2.1.345rc (71aa41d) will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           V2.1.345rc      #90   +/-   ##
===========================================
  Coverage       58.90%   58.90%
===========================================
  Files             394      394
  Lines           25912    25912
===========================================
  Hits            15264    15264
  Misses          10648    10648

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 71aa41d...484fd80. Read the comment docs.


LANG-740 - Implementation of a Memomizer

Enclosed is an implementation of the Memoizer class, along with some unit tests through the main flow of the code.
Is a copy of https://github.com/apache/commons-lang/pull/63 against the new 'master' branch

Coverage decreased (-0.03%) to 93.33% when pulling 56569b24859ca5b2972679377b145bb5680d96e8 on rightmove:LANG-740 into 1cb5573ada7dc7ec240fca6afe4eeb6e2c793d8e on apache:master.

Hello @jamessawle,
thank you for this PR. It looks very good to me. However there are a few this we need to adjust before I can apply it. Please have a look at my inline comments.
Thank you!

Thanks!


GNOME Control Center dies on clicking "View and Customize Shortcuts"

Describe the bug
After clicking "View and Customize Shortcuts", Control Center dies. The following error can be seen if launched in terminal:
(gnome-control-center:39317): GLib-GIO-ERROR **: 22:53:41.107: Settings schema 'org.gnome.GPaste' is not installed

Steps To Reproduce
Steps to reproduce the behavior:

Launch gnome-control-center in terminal
Go to keyboard settings
Click "View and Customize Shortcuts"

Expected behavior
The shortcut setting interface should appear.
Additional context
I've set programs.gpaste.enable = true in my NixOS configuration. The error is likely to be related to GPaste, but GPaste works without issues for me so far.
Notify maintainers

@bobby285271 @hedning @jtojnar @dasj19 @maxeaubrey
Metadata

system: "x86_64-linux"
host os: Linux 5.15.62, NixOS, 22.11 (Raccoon), 22.11pre403473.b784c5ae63d
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.10.3
channels(yes): ""
channels(root): "nixos"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

This is a known issue, you need to install GPaste through programs.gpaste.enable NixOS option.

This is a known issue, you need to install GPaste through programs.gpaste.enable NixOS option.

This is exactly what I have done before I encounter the issue.

Sorry, on the phone and missed that. Also forgot to mention you need to re-log in since the module sets new environment variables.

Sorry, on the phone and missed that. Also forgot to mention you need to re-log in since the module sets new environment variables.

Actually, I've set programs.gpaste.enable = true when I installed NixOS and reboot my system every day, but still found the issue yesterday :confused:

What terminal emulator and shell do you use? It sounds like it doesn't inherit the environment set by PAM.

What terminal emulator and shell do you use? It sounds like it doesn't inherit the environment set by PAM.

I'm using gnome-console as default terminal and xonsh as login shell.

It will only happen when you have shortcut extensions such as GPaste installed (and not added to sessionPath).

The issue is now gone for xonsh.


Prepare DDL docs for GA

Proposed changes
Prepare GA release  of DDL.
Related issues (optional)
https://docker.atlassian.net/browse/POS-836

Looking at the netlify preview, some pages, e.g. "install on arch linux" and "DDL vs Docker Engine" are missing the left hand nav.

Argh... and of course GitHub already hides my comments 😞 - there's some comments hidden;

Thank you @aiordache !! 🙏 🙏 🙏


kfserving-samples/models/tensorflow/flowers broken

/kind bug
What steps did you take and what happened:
Deployed flowers model to KFServing on KubeFlow v1.2 and the kfserving client libraries v0.4.1
When deploying the tensorflow flowers model from the kfserving_sdk_v1alpha2_sample notebook the following lines go through:
api_version = constants.KFSERVING_GROUP + '/' + constants.KFSERVING_VERSION
default_endpoint_spec = V1alpha2EndpointSpec(
predictor=V1alpha2PredictorSpec(
tensorflow=V1alpha2TensorflowSpec(
storage_uri='gs://kfserving-samples/models/tensorflow/flowers',
resources=V1ResourceRequirements(
requests={'cpu':'100m','memory':'1Gi'},
limits={'cpu':'100m', 'memory':'1Gi'}))))
isvc = V1alpha2InferenceService(api_version=api_version,
kind=constants.KFSERVING_KIND,
metadata=client.V1ObjectMeta(
name='flower-sample', namespace=namespace),
spec=V1alpha2InferenceServiceSpec(default=default_endpoint_spec))
KFServing = KFServingClient()
KFServing.create(isvc)
but when checking the logs of the knative/kfserving pod with:
k logs flower-sample-predictor-default-kt85b-deployment-5d8f96ffdwtgm2 -n kubeflow -c kfserving-container
I get
2021-02-16 14:58:11.186266: E tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:362] FileSystemStoragePathSource encountered a filesystem access error: Could not find base path /mnt/models for servable flower-sample
What did you expect to happen:
Model successfully deployed
Anything else you would like to add:
Environment:

Istio Version:
Knative Version:
KFServing Version: v0.4.1
Kubeflow version:  v1.2
Kfdef:[k8s_istio/istio_dex/gcp_basic_auth/gcp_iap/aws/aws_cognito/ibm] IBM (tekton)
Minikube version: -
Kubernetes version: (use kubectl version): v1.18.15+IKS
OS (e.g. from /etc/os-release):
NAME="Red Hat Enterprise Linux Workstation"
VERSION="7.9 (Maipo)"

you should not deploy the model in the kubeflow system namespace as the storage initializer is not injected in the control plane namespace.

thanks @yuzisun

@yuzisun is there a way to inject the storage initializer into the control plane namespace?

I have the similar problem. the log is below:
root@master:/home/xhz/kserve# kubectl logs -l app=flower-sample-predictor-default-00001 -c kserve-container
2022-07-08 01:14:03.684565: E tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:365] FileSystemStoragePathSource encountered a filesystem access error: Could not find base path /mnt/models for servable flower-sample with error Not found: /mnt/models not found
2022-07-08 01:14:04.685190: E tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:365] FileSystemStoragePathSource encountered a filesystem access error: Could not find base path /mnt/models for servable flower-sample with error Not found: /mnt/models not found
2022-07-08 01:14:05.685559: E tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:365] FileSystemStoragePathSource encountered a filesystem access error: Could not find base path /mnt/models for servable flower-sample with error Not found: /mnt/models not found
2022-07-08 01:14:06.685671: E tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:365] FileSystemStoragePathSource encountered a filesystem access error: Could not find base path /mnt/models for servable flower-sample with error Not found: /mnt/models not found
2022-07-08 01:14:07.685796: E tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:365] FileSystemStoragePathSource encountered a filesystem access error: Could not find base path /mnt/models for servable flower-sample with error Not found: /mnt/models not found
2022-07-08 01:14:08.686136: E tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:365] FileSystemStoragePathSource encountered a filesystem access error: Could not find base path /mnt/models for servable flower-sample with error Not found: /mnt/models not found
@yuzisun  Could you help me and give me some hints to fix, much appreciate


Add a connection memleak test

It doesn't seem like we have any leaks there at the moment, but it would be a good idea to preserve this test to ensure this with any future changes to peering.

Ah yeah, the test points to in-memory storage; should I make the ledger more generic, or disable the test more thoroughly?

how thats gonna build up the generic storage though?

It's not for building generic storage; a single type of storage would still be used in the test.

Closing, as it's no longer applicable; an up-to-date rendition of this test will be filed soon.


Python When I try to generate files for protobuf I get error ModuleNotFoundError

When I try to generate files with the command
(venv) C:\Users\Valentin\PycharmProjects\protoactor-python\tests\remote\grpc_wrapper>python -m grpc_tools.protoc -I./ --python_out=. --grpc_python_out=. service.proto
I get error.
Traceback:
test_client.py:11: in <module>
    from tests.remote.grpc_wrapper.service_pb2_grpc import TestServiceServicer, add_TestServiceServicer_to_server, \
service_pb2_grpc.py:4: in <module>
    import service_pb2 as service__pb2
E   ModuleNotFoundError: No module named 'service_pb2'

How can I fix it? I truing reinstall protobuf but it don’t help me.
pip uninstall protobuf
pip install -U protobuf

P.S. I use conda, I truing use
conda install protobuf
but it don’t help me too.

Can you see the generated files under C:\Users\Valentin\PycharmProjects\protoactor-python\tests\remote\grpc_wrapper directory? The directory references mismatch might cause this problem.

Yes, Pycharm show it.

Hi @Valentin-Miroshnichenko , I am not able to reproduce your case, can you provide a minimal way of reproducing the bug? Also, I have seen editors behave incorrectly with generated code,  a restart of editor might fix it.

I have found a solution. Use "from . import" in _pb2_grpc.py for example from . import service_pb2 as service__pb2
https://github.com/grpc/grpc/issues/9575

According to comments in #9575

Nevermind, I found the solution. I will quickly explain it in case anyone else is looking at this.
I now moved my proto files into a directory called proto/some/folder/
Then using the following command, the module names and imports are correct and work as expected in python3:
python3 -m grpc_tools.protoc -I proto --python_out=. --grpc_python_out=. proto/some/folder/*.proto
Note that the combination of including the root directory (proto/) and directing the output to --python_out=. achieves the desired results:
Generated files end up in some/folder/, also imports are as expected:
import some.folder.someservice_pb2 as some_dot_folder_dot_someservice__pb2

If you can change your generation command to
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. .\tests\remote\grpc_wrapper\service.proto

Then the generated code will work for Python 3.
Ad-hoc patch to generated file generally may impair the maintainability for the code base, you may consider update the generation command.


Allow developer to customize how errors are formatted

SUMMARY
Allow the developer to customize how "unexpected errors" (errors thrown during execution of a command or during validation) are displayed by sywac.
DETAILS
This is one of many possible interfaces (another way would be to embed it in outputSettings).  But chaining it like this feels more natural to me.
require('sywac')
  .command('start', /* ... */)
  .command('stop', /* ... */)
  .errorFormat(error => error instanceof AWS.Error ? error.message : error.stack)
  .parseAndExit()

This example would display most errors as the normal stack trace, but displays any errors extending from AWS.Error as just the message.
NEXT STEPS
If this approach seems intuitive enough I can add some unit tests.

@nexdrew Thanks for the detailed feedback!
My concern with making errorFormatter a member of context is that I'm not sure how to justify the fact that you can't override it in sub-commands.
For most "configuration params" (really, anything in the "synchronous configuration" Api), you can do this:
require('sywac')
    .anySetting('on')
    .command({
        flags: 'something',
        setup: sywac => {
            sywac.anySetting('off')

if it's not possible to specify per-command error formatter, then definitely put it in context. If it is possible, maybe it should go in api

When I first started writing the review, I thought it would be necessary to propagate the top-level error formatter down to child Api instances, but then I realized the only time that sywac uses it is at the top-level (a thrown/uncaught error in a nested command will bubble up to the top-level catch here): https://github.com/sywac/sywac/blob/7eaed0a8c067609a8cb31d98bb333856a5573672/api.js#L643-L645
Thus I concluded that it's not really possible to specify a different error formatter per command unless that command catches its own error, in which case it can either have its own formatting logic (possibly setting context.output on its own) or use context.unexpectedError(err).
In that latter case, I suspect it would be better to have context.unexpectedError(err) apply the same formatting as the top-level, rather than requiring the command to either format the error itself or re-throw.
I think a valid use-case for having a command catch its own error is for error-specific resource cleanup, in which case I suspect that using standard error formatting might be desirable, but I'm not sure.
Perhaps some tests would help clarify these use-cases.

Revisiting after break :).

Thus I concluded that it's not really possible to specify a different error formatter per command unless that command catches its own error, in which case it can either have its own formatting logic (possibly setting context.output on its own) or use context.unexpectedError(err).

This makes sense.  Like any code, an individual command can choose to wrap itself in a try/catch, and either manually context.unexpectedError("hand crafted string") for fine-grained control, or do cleanup and re-throw the error to get our baked-in error formatting.
I'll make the changes you suggest this week and post an updated version.  As I was mocking it out locally, the one thing I noticed is that today, context.unexpectedError does not end up printing with styling (i.e. it does not apply the .messages() style hook).
In my opinion, it would be ideal if it did -- if I apply a third-party .style() globally, and then I get some unexpected errors, it's kind of jarring to see the totally unformatted stack print out.  (Yes, this PR we are mentioning here would give the user the ability to fix that -- by wrapping their exceptions in chalk.red() or something -- but I'm wondering if the user should have to do that.)
I think what I'm suggesting is:
unexpectedError(error) {
    output = style.messages(this.errorFormatter(error))
}

This would make me happy, as it's what I want out-of-the-box in the applications I'm working on today.  I'll admit there's a small devil's advocate voice wondering if "errorFormatter" is the right name for something that is immediately overwritten / re-formatted by your message styling, though.  Using the above approach, you should intentionally avoid styling!
This is a wind-about way of reaching what I think is maybe the best mix, which is: out-of-the-box, fix the (imo) missing styling of unexpected errors, but allow the user to override both the format and styling:
// Unexpected errors are displayed in bold yellow, while regular CLI messages
// are displayed in red.
sywac
  .style({ messages: chalk.red })
  .errorFormatter(err => chalk.yellow.bold('OH NO: ' + err.stack))

To fix my pain point above, which is keeping them consistent, we just tell users that if you are going to override error formatting it's up to you to keep it consistent:
const style = require('my-favorite-sywac-style')

sywac
  .style(style)
  .errorFormatter(err => style.messages(err.message))

Errors are not styled by default because (a) errors are not as straightforward as messages and (b) errors are not handled/formatted/printed by the "help buffer" that handles messages, which is where style hooks are applied.
I'd kinda like to keep the "error formatting" separate/decoupled from the "styling", but allow authors to override both. In my view, the error formatting is probably specific to the CLI (written by the CLI author) but the styling can be generic and is only meant to be consistent with the other applied styles (written by a style library author).
IMO the "error formatting" should be something as simple as displaying the full stack or only displaying a message or code. You could then apply any style library that chooses to style the "formatted error" (as a string) or not.
So, in my view, the job of an "error formatter" is to turn a caught error into a string. It is then the job of the style hook to apply a style to that string or not.
I propose we add:

The .errorFormatter(fn) configuration option to Api (similar to the original changes in this PR)
A new style hook that is specific to formatted errors

The default "error formatter" does String((err && err.stack) || err) and the default style hook just returns the given string.
It might be a little tricky to apply the new style hook (which would probably be the only style hook used outside of the help buffer), but I think we can do it.
What do you say?
I think my proposal is similar to what you were suggesting.

:+1: It is similar, but better!  It also makes it more clear to a style author the difference between messages (always added via context.cliMessage or automatically generated, and usually displayed below a help buffer), and errors (thrown by unhandled exceptions or added via context.unexpectedError, and displayed on their own).

Closing this PR.  (Changes refactored based on our discussion above, and re-opened as #72 from the upstream repo.)


Periodically pull data from covidexitstrategy

Not sure how to pull the data directly, but there is a link that shows up once the JS runs, under the map at " Get the data Created with Datawrapper "
The idea is to periodically pull the data and use it to update regions for good/medium/bad.

https://firebase.google.com/docs/functions/schedule-functions
MAYBE their data (from the bottom of the covidexitstrategy.org page) https://docs.google.com/spreadsheets/d/e/2PACX-1vStD_EMR9El7agVp-Oi6d1c5EMAOYgoYOsSc2xhwzht1ae4Fku7F6zSmF4PB9J_aHA1DAb2PpAelomO/pubhtml#
Pull from the "Gating Score" column

┆Issue is synchronized with this Trello card by Unito

I have the initial server-driven (jq based) done, now looking into how to automate it.

we can crack this together :muscle:

Woo!

so I'm thinking how I want to tackle this is since the states will most likely be static, I'd leave all the other nodes alone and only update a region's trending evaluation if I can match it with a row in the CVS CSV. This would preserve the nodes that may be existing but obtained from a source outside CovidExitStrategy.
I think this might also mean that if new regions are added to CovidExitStrategy that we might not pick them up right away.

I am using this https://firebase.google.com/docs/functions/config-env...
I still need to figure out how to communicate with the db from the firebase function but I have the config ready to make the connection and the loading of the CSV and JSON conversion is good


Any way to make tab bar scrollable ?

yes, by writing a custom tab bar, and providing it to the parent component.

I can not find any prop for providing custom Tab bar. How to pass it to parent component? By parent component you mean Segmented.View. Right?

Yes https://github.com/PedroBern/react-native-collapsible-segmented-view/blob/main/src/SegmentedView.tsx#L65

Oh my bad. It was there in readme. Thanks for the help.


[Feature request] option to hide drop down list

When using the automatic tokenization feature (https://select2.org/tagging#automatic-tokenization-into-tags) it would be nice to have an option to hide the drop down list in order to get a functionality similar to this: https://material.angularjs.org/latest/demo/chips
without having to use yet another library, especially since the functionality is already almost completely provided by select2.
Currently it is possible to use css to get this behavior. Still having it as a cconfig option would be nice.
https://codepen.io/anon/pen/QXpdXV
$("#test").select2({
     multiple: true,
     tags: true,
     dropdownCssClass: 'bbbbbbbbbbbbbb' //requires select2.full.min.js
    });

.select2-dropdown.bbbbbbbbbbbbbb {
    display: none;
}

De-prioritizing this for 4.0.x.
There are accessibility issues that need to be considered if and when this is implemented, since Select2 is primary a searchable dropdown and this removes the dropdown part of that. The example that was linked basically only implements the "tagging" functionality without any of the other things you would be looking for in a dropdown.


Feat/add store parameter

Description
Solves #298 by adding support for store flag and metadata JSON for tags in chat
Changes

CreateChatCompletionRequest updated
Add example: /example/chat-store

Match examples in https://platform.openai.com/docs/guides/distillation and https://platform.openai.com/docs/guides/evals

Chat completions in openai platform dashboard after running the provided example:


Added signature help

Added signature help (this fixes #284):

The functionality is triggered by typing (, ,, or ) when specifying function arguments (works with global and instance functions). The functionality can also be triggered by committing a function completion. (The latter behavior is client-specific.)
If multiple overloads are available for a function, up/down arrow in VS code allow you to choose which overload you are working on. This is helpful with functions that have ambiguous overloads (like resourceId).
Upon initial activation of signature help we do try to determine the best signature by checking the types of the arguments. Unfortunately there exists a limitation in LSP that blocks us from distinguishing between the user's signature selection and the previously chosen signature by the language server. As a result, we can't update the active signature while the user is typing because it causes an annoying behavior that resets what you choose in the UI. (TypeScript has the same behavior.)

Codecov Report

Merging #1273 (07ccd2c) into main (0a9269d) will decrease coverage by 0.13%.
The diff coverage is 78.18%.

@@            Coverage Diff             @@
##             main    #1273      +/-   ##
==========================================
- Coverage   94.48%   94.34%   -0.14%
==========================================
  Files         338      335       -3
  Lines       16990    16967      -23
  Branches       14        0      -14
==========================================
- Hits        16053    16008      -45
- Misses        937      959      +22

Flag
Coverage Δ

dotnet
94.34% <78.18%> (-0.69%)
:arrow_down:

typescript
?

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

Impacted Files
Coverage Δ

...p.LangServer/Handlers/BicepSignatureHelpHandler.cs
12.06% <12.06%> (ø)

.../Bicep.Core/Semantics/VariableFunctionParameter.cs
91.66% <50.00%> (ø)

src/Bicep.LangServer/Completions/SyntaxMatcher.cs
83.72% <72.00%> (-16.28%)
:arrow_down:

src/Bicep.Core/Parsing/Parser.cs
95.30% <95.08%> (+0.08%)
:arrow_up:

src/Bicep.Core/Semantics/FunctionOverload.cs
97.67% <100.00%> (ø)

...p.LangServer/Completions/BicepCompletionContext.cs
95.31% <100.00%> (-0.41%)
:arrow_down:

....LangServer/Completions/BicepCompletionProvider.cs
97.36% <100.00%> (+0.01%)
:arrow_up:

...ep.LangServer/Completions/CompletionItemBuilder.cs
92.30% <100.00%> (+0.30%)
:arrow_up:

src/Bicep.LangServer/Server.cs
92.85% <100.00%> (+0.17%)
:arrow_up:

...cep.Core.UnitTests/FileSystem/FileResolverTests.cs
79.31% <0.00%> (-20.69%)
:arrow_down:

... and 9 more

Codecov Report

Merging #1273 (07ccd2c) into main (0a9269d) will decrease coverage by 0.13%.
The diff coverage is 78.18%.

@@            Coverage Diff             @@
##             main    #1273      +/-   ##
==========================================
- Coverage   94.48%   94.34%   -0.14%
==========================================
  Files         338      335       -3
  Lines       16990    16967      -23
  Branches       14        0      -14
==========================================
- Hits        16053    16008      -45
- Misses        937      959      +22

Flag
Coverage Δ

dotnet
94.34% <78.18%> (-0.69%)
:arrow_down:

typescript
?

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

Impacted Files
Coverage Δ

...p.LangServer/Handlers/BicepSignatureHelpHandler.cs
12.06% <12.06%> (ø)

.../Bicep.Core/Semantics/VariableFunctionParameter.cs
91.66% <50.00%> (ø)

src/Bicep.LangServer/Completions/SyntaxMatcher.cs
83.72% <72.00%> (-16.28%)
:arrow_down:

src/Bicep.Core/Parsing/Parser.cs
95.30% <95.08%> (+0.08%)
:arrow_up:

src/Bicep.Core/Semantics/FunctionOverload.cs
97.67% <100.00%> (ø)

...p.LangServer/Completions/BicepCompletionContext.cs
95.31% <100.00%> (-0.41%)
:arrow_down:

....LangServer/Completions/BicepCompletionProvider.cs
97.36% <100.00%> (+0.01%)
:arrow_up:

...ep.LangServer/Completions/CompletionItemBuilder.cs
92.30% <100.00%> (+0.30%)
:arrow_up:

src/Bicep.LangServer/Server.cs
92.85% <100.00%> (+0.17%)
:arrow_up:

...cep.Core.UnitTests/FileSystem/FileResolverTests.cs
79.31% <0.00%> (-20.69%)
:arrow_down:

... and 9 more

Looks great!

Looks great!


Default to :local_db_find_missing_references strategy for targeted refresh

The inventory_collection.strategy defines if lazy_finds are loaded from the inventory collections (full refresh) or looked up from the database (targeted refresh).
Currently this has to be defined in every provider persister subclass along with def targeted?; true; end.
We can simplify the provider subclasses by moving this logic into core.

@miq-bot cross-repo-tests /providers, ManageIQ/manageiq-providers-oracle_cloud#24

If you want something done right you have to do it yourself I guess :laughing: https://github.com/ManageIQ/manageiq-cross_repo-tests/pull/372

Cross repo tests are green https://github.com/ManageIQ/manageiq-cross_repo-tests/pull/372

Seems the bot got mad at you doing yourself... "oh yeah? well watch this!"

Backported to morphy in commit 38a8d3949853b83f16b56f018512657b96acf7a4.
commit 38a8d3949853b83f16b56f018512657b96acf7a4
Author: Jason Frey<EMAIL_ADDRESS>Date:   Tue May 18 16:26:44 2021 -0400

    Merge pull request #21225 from agrare/simplify_persister_strategy

    Default to :local_db_find_missing_references strategy for targeted refresh

    (cherry picked from commit 470e8b425d08432ddb785819c60e83815ac7954c)


No 'HttpTrigger' function shows under Functions node after deploying a C# project

OS: Linux
Build Version: 20190327.12
Regression: Previous release
Repro Steps:

Create a C# project with HTTP trigger template.
Debug --> Deploy.
Expand the Functions node under the deployed function app -> Check the result.

Expect:
'HttpTrigger' function shows under Functions node.
Actual:
No 'HttpTrigger' function shows under Functions node.

@v-xianya does this only repro for you on Linux? And do the triggers show up if you restart the function app?

Hi @EricJizbaMSFT, Thanks for your updates.
After restarting the function app this issue doesn't reproduce.

Okay I've seen this occasionally and I think it just takes a little bit for the triggers to be synced (restarting the app forces the triggers to sync). Let me know if you see this consistently and we can bother the platform team. Otherwise, closing for now.


Easy way to login (many account)

Can we login with only auth_token cookies?

yes we can.
save cookie
async def main() -> None:
    client = Client("en-US")
    await client.login(
        auth_info_1="TWITTER_USERNAME",
        password="TWITTER_PASSWORD",
    )
    client.save_cookies("cookies.json")

asyncio.run(main())

load cookie
async def main() -> None:
    client = Client("en-US")
    client.load_cookies("cookies.json")

asyncio.run(main())

yes we can.
save cookie
async def main() -> None:
    client = Client("en-US")
    await client.login(
        auth_info_1="TWITTER_USERNAME",
        password="TWITTER_PASSWORD",
    )
    client.save_cookies("cookies.json")

asyncio.run(main())

load cookie
async def main() -> None:
    client = Client("en-US")
    client.load_cookies("cookies.json")

asyncio.run(main())

client.login always getting error ("flow name LoginFlow is currently not accessible")
so i login using
Get all account cookie in my browser, save to cookies.json
then
client.load_cookies("cookies.json")

but if cookies.json only provided "auth_token", client unable to login


Function without Event section pointed to API?

Hi team,
I can't find in doc, case when you have defined API with ref to Function, but Function doesn't have event section pointed to API.
What will be result of that?
From my point of view it will be invalid configuration when API will not have enough permissions to call Function.
Thx,

You should post this in SAM Repository https://github.com/awslabs/serverless-application-model
But since you posted here: This will connect your API to your Function inside APIGW service. But since the event section isn't there, your API won't have permissions to invoke this Function (Unless you added permission separately)


Icons render on new line

It might be the theme I'm using, but when I insert an icon and then preview the note, the icon appears by itself on a new line. I am using the Obsidian Nord theme.

does it still occur in default theme? if it doesn't, you should probably go to theme repo to report issue.

Using Obsidian Nord theme:

Here is what I see in Editing Mode with Live Preview enabled.
Here is what I see in Reading Mode with Live Preview enabled.

Using the default Obsidian theme:

Here is what I see in Reading Mode with Live Preview enabled.

Bottom line:

The icons render just fine in editing mode with or without Live Preview.
The icons render with extra lines in Obsidian Nord but not in the default Obsidian theme.

Unfortunately, Obsidian Nord is the most popular third-party theme. I will definitely contact the theme developer.

After updating the Obsidian Nord theme, all is well!


Swipe down gesture possible?

Love this library! Though in apps when images are opened in fullscreen, a common gesture to close or dismiss the view is swiping down. I tried to implement fling gesture using react-native-gesture-handler outside this component but failed. Other gesture recognition outside this library works fine like long press, but not fling.
Is there a possible to add a swipe down callback? Thanks!

Hi @xmflsct, thanks for reporting. I was able to reproduce the issue. Can you try out https://github.com/intergalacticspacehighway/react-native-reanimated-zoom/pull/16 solution and let me know if it works for you? I can do a new release soon.

Thanks a lot! It works perfectly!

Perfect! Released in 0.3.2. https://github.com/intergalacticspacehighway/react-native-reanimated-zoom/releases/tag/0.3.2

@sregg See https://github.com/tooot-app/app/commit/da1ea314a4d9b22caa2a3d4769793d68ac838f68#diff-459e03bd09a8f93de7f3c31595c9788ababf311e34e40d2d2032b0828698476f. But since when an image is zoomed, I don't want to capture the swipe down gesture which conflicts with panning down, I had to patch this library with a isZoomed state which currently is not exposed, https://github.com/tooot-app/app/commit/5c255ffa6d426cdce353e205cae347309325e478#diff-72a5ea164595bed3a15f8efc30e4beed3b4d939b6486b01a92218f69f982abf5. @intergalacticspacehighway maybe a useful use case for another update? :)

Ah that'd be great. I'll try to push a PR. Thanks for sharing.

That's exactly what I was implementing right now 😄
  useDerivedValue(() => {
    if (scale.value > 1 && !isZoomed.value) {
      isZoomed.value = true;
      if (zoomListContext) runOnJS(zoomListContext.onZoomBegin)();
      if (onZoomBegin) runOnJS(onZoomBegin)();
    } else if (scale.value === 1 && isZoomed.value) {
      isZoomed.value = false;
      if (zoomListContext) runOnJS(zoomListContext.onZoomEnd)();
      if (onZoomEnd) runOnJS(onZoomEnd)();
    }
  }, [zoomListContext, onZoomBegin, onZoomEnd]);

I'll push a PR in a sec.

Here's the patch diff if anyone wants to try before the PR:
diff --git a/node_modules/react-native-reanimated-zoom/lib/typescript/zoom.d.ts b/node_modules/react-native-reanimated-zoom/lib/typescript/zoom.d.ts
index 38fb6f1..5e44ebc 100644
--- a/node_modules/react-native-reanimated-zoom/lib/typescript/zoom.d.ts
+++ b/node_modules/react-native-reanimated-zoom/lib/typescript/zoom.d.ts
@@ -6,6 +6,8 @@ declare type Props = {
     minimumZoomScale?: number;
     maximumZoomScale?: number;
     simultaneousGesture?: GestureType;
+    onZoomBegin?: () => void;
+    onZoomEnd?: () => void;
 } & ViewProps;
 export declare function Zoom(props: Props): JSX.Element;
 export {};
diff --git a/node_modules/react-native-reanimated-zoom/src/zoom.tsx b/node_modules/react-native-reanimated-zoom/src/zoom.tsx
index e07b415..c96fbb4 100644
--- a/node_modules/react-native-reanimated-zoom/src/zoom.tsx
+++ b/node_modules/react-native-reanimated-zoom/src/zoom.tsx
@@ -20,6 +20,8 @@ type Props = {
   minimumZoomScale?: number;
   maximumZoomScale?: number;
   simultaneousGesture?: GestureType;
+  onZoomBegin?: () => void;
+  onZoomEnd?: () => void;
 } & ViewProps;

 export function Zoom(props: Props) {
@@ -29,6 +31,8 @@ export function Zoom(props: Props) {
     style: propStyle,
     onLayout,
     simultaneousGesture,
+    onZoomBegin,
+    onZoomEnd
   } = props;

   const zoomListContext = useContext(ZoomListContext);
@@ -224,11 +228,13 @@ export function Zoom(props: Props) {
     if (scale.value > 1 && !isZoomed.value) {
       isZoomed.value = true;
       if (zoomListContext) runOnJS(zoomListContext.onZoomBegin)();
+      if (onZoomBegin) runOnJS(onZoomBegin)();
     } else if (scale.value === 1 && isZoomed.value) {
       isZoomed.value = false;
       if (zoomListContext) runOnJS(zoomListContext.onZoomEnd)();
+      if (onZoomEnd) runOnJS(onZoomEnd)();
     }
-  }, [zoomListContext]);
+  }, [zoomListContext, onZoomBegin, onZoomEnd]);

   const style = useAnimatedStyle(() => {
     return {

Thanks, @sregg ! Released in 0.3.3

Any idea how to animate the image being dragged down as the user flings down to close?

Wouldn't it conflict with the pan gesture inside the Zoom component though?


Installation of generator fails

Describe The Bug
If you use the generate-odata-client command in the CLI this needs the generator to run. So you are asked to install it globally if not present.
On my machine I had it already installed but got the prompt to install it again:
To generate an OData client, it is necessary to install the @sap-cloud-sdk/generator.
For now, the CLI expects the generator to be installed globally.

Do you want to install the @sap-cloud-sdk/generator globally? (y|n): y

Then in the installation process it fails since the link is alread there:
npm ERR! EEXIST: file already exists, symlink<EMAIL_ADDRESS>-> '/usr/local/bin/generate-odata-client'
npm ERR! File exists: /usr/local/bin/generate-odata-client
npm ERR! Remove the existing file and try again, or run npm

When I remove the link the installation runs smooth and then also the creation of the VDM works fine.
To Reproduce

Install the generator globally (@sap-cloud-sdk/generator)
Run sap-cloud-sdk generate-odata-client
You still get the prompt it is not installed
When you say yes do it the installation fails due to the existing link.

Expected Behavior
Either recognise the exisiting installation properly or adjust the install so that it does not fail.
Used Versions:

node -v: v13.13.0
npm -v:  6.14.4
sap-cloud-sdk -v: @sap-cloud-sdk/cli/0.1.8 darwin-x64 node-v13.13.0

Additional Context
I know that the issue is perhaps hard to reproduce why the CLI thought the generator is not installed.

This repository is deprecated.
As replacement, we provide extensive setup guides for your projects: https://github.com/SAP-samples/cloud-sdk-js.


DxTagBox:  (dataSource) "TypeError: Cannot read property 'length' of undefined"

Issue Type
Question - Bug
Description
Trying to use DxTagBox Component and it seems like it doesn't read the dataSource. If you can point what am I doing wrong please or if it is a bug in the component. Thanks.
Steps to Reproduce

Current Behavior
It always give this error back

Demo
<template>
    <div>
        {{customSource.length}}
        <dx-tag-box :dataSource="customSource" displayExpr="name" valueExpr="id" :searchEnabled="true"></dx-tag-box>
    </div>
</template>

<script>
    import {DxTagBox} from 'devextreme-vue';

    export default {
        components: {DxTagBox,},
        data: function() {
            return {
                customSource: [
                    { id: 1, name: 'English'},
                    { id: 2, name: 'Spanish'},
                ],
            }
        },
    }
</script>

<style scoped></style>

Environment Details

devextreme version: 18.2.3
devextreme-vue version: 18.2.3
vue version:2.5.17

Hi!
I've published new version of devextreme-vue, that contains the fix of this issue.
Take a look on the example with new version.
https://github.com/DevExpress/devextreme-vue/issues/200

It works now. Thanks


Delay $invalid

Is there any way to delay the $invalid state, instead of the $dirty state?
I want to hide input fields based on their $invalid status. So after clicking a button (setting validating = true) only invalid fields are shown to the user. My problem is the fields disappear immediately on input when they are valid. I tried the delayed validation errors approach, which only get's me so far. After switching the view the fields are shown again when validating, because they aren't $dirty anymore.
An example input looks like this currently:
v-text-field(type="text" color="black"
              v-if="!(validating && $v.einsatz.patient.bezirksstelle.$dirty && !$v.einsatz.patient.bezirksstelle.$invalid)"
              name="patientBezirksstelle" label="Bezirksstelle"
              v-model="einsatz.patient.bezirksstelle" @input="delayTouch($v.einsatz.patient.bezirksstelle)")

I want to hide input fields based on their $invalid status.
What are you trying to accomplish?

You cannot delay $invalid, as it's a computed value. What you can do is to delay the input event. Try using v-model.lazy.

The goal is to just show invalid fields when validating the form. It's rather unorthodox and the model based validation is just perfect for this.
I managed to solve my problem with $v.$touch() when starting the validating and sticking with delayTouch().


Need SPGooglePlacesPlaceDetailQuery from original project

The original project contains the class SPGooglePlacesPlaceDetailQuery. This query takes the reference property of an SPGooglePlacesAutocompletePlace object and returns details for that google place. In particular, it provides the lat/long which corresponds exactly to the SPGooglePlacesAutocompletePlace object.
Please see here:
https://github.com/spoletto/SPGooglePlacesAutocomplete/blob/master/SPGooglePlacesAutocomplete/SPGooglePlacesPlaceDetailQuery.m
Would it make sense to include this class in this fork?

@frankbaffle it's kind of late, but are you happy to send pull request to correct this?

@frankbaffle please start using https://github.com/chenyuan/SPGooglePlacesAutocomplete


03/27/2018 10:48 : Create Pull Request for branch prTesting_2018032710 -> master

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[style]: Center the product list

What's the style idea?
It is better to align the products center of the page for better user experience.
Add screenshots

Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I have read the Contributing Guidelines
[X] I agree to follow this project's Code of Conduct
[ ] I'm a GSSoC'23 contributor
[X] I want to work on this issue under CODEPEAK'23

Yes, makes sense. You can work on it.


Issue66 - Add CI parameter

If user specify --ci parameter, then no "[ci skip] NO_CI" is not included in commit message
It closes https://github.com/leonardoanalista/corp-semantic-release/issues/66

Coverage increased (+0.1%) to 93.725% when pulling 7a64509f14f92754f1a299724b0abba3608eb224 on Biboba:issue66 into 522b239b3262d9f4f26a28e42198f90866a5f8bb on leonardoanalista:master.

Hi @uglow how are you? If you still use this tool, feel free to give your opinion too.

@leonardoanalista - I’m good thanks, maybe hit me up on LinkedIn for a chat.
@Biboba, nice PR 👍🏻
I think it could be improved if it follows the conventions @leonardoanalista referred to above.

@leonardoanalista - I’m good thanks, maybe hit me up on LinkedIn for a chat.
@Biboba, nice PR 👍🏻
I think it could be improved if it follows the conventions @leonardoanalista referred to above.

Hello,
Happy to make the changes.
But I had a closer look to semantic-release package and this --ci option is not exactly what I thought it is : it does not involve any "[ci skip] NO_CI" message.
It is rather an option to be able to make a local release without using any CI (Travis, Gitlab,...). It is basically what this plugin does.
Apologize for the confusion but still I think it would be interesting to be able to specify "NO_CI" as an option. I don't know if it changes the way you feel about this PR.
Thanks for the feedback !
References:

https://github.com/semantic-release/semantic-release/blob/master/docs/support/FAQ.md#can-i-run-semantic-release-on-my-local-machine-rather-than-on-a-ci-server
https://github.com/semantic-release/semantic-release/blob/aed4ea2edc1bf6d4e452a6cea421899aa497016f/test/index.test.js#L635-L694

Thanks @Biboba for your research. Considering we are talking about different options between semantic-release and this package, we could do whatever we want here.

We can avoid the breaking change. In this case, we could call this option ci-skip instead of ci
Make ci-skip default false to avoid the breaking change.
Option ci-skip will allow local release as every CI skips the build if commit message contains [ci skip]
Update read me to have the new option: https://github.com/leonardoanalista/corp-semantic-release#options

What do you think about the points above?

addressed by https://github.com/leonardoanalista/corp-semantic-release/pull/71


Revisit lower truncation strategy in count-based dependent axes + subpixel bar issues

During today's EDA dev meeting I demo'ed a version (requires this web-components commit) of EDA that I've been working on for https://github.com/VEuPathDB/web-eda/pull/1241
For barplots and histograms, there is a new behaviour for the yellow truncation warning at the y-axis minimum.
Old behaviour: any new y-range starting greater than zero will trigger the truncation warning
New behaviour: only y-range starts greater than or equal to the height of the shortest bar will trigger the warning. Note that the "shortest bar" means the first bar in any stacked series (when an overlay variable is selected).
New problem: it is possible to select a y-range start value that is slightly smaller than the shortest bar and no truncation will be triggered as a result, but the bar can still be invisible because there are not enough pixels on the screen to draw it. Sometimes some pixels are drawn but the mouse-over still doesn't work (we've seen this a while back too).
This ticket is mainly a consultation ticket. It must be resolved by release 59. Outcomes could be

revert to old behaviour
keep new behaviour

address sub-pixel issue
possibly add a different kind of warning for axes that ought to start at zero but don't

I'm not sure this is super-urgent for b59.
It's an extreme edge case, as I will hopefully demonstrate:
GEMS1 Case Control
Barchart viz
Main var: Aeromonas by TAC result
Change the bin width to 5
Briefly enable logscale mode to see that the two smallest bars are 6 and 42 high.  Turn off logscale.
Note that the smallest bar doesn't produce a mouse-over (if it does, please report - maybe there are browser differences)
Now, the issue in this ticket is about changing the y-range minimum.  Set it to 5. Note that the smallest bar doesn't disappear (and still doesn't produce a mouse-over).  Set it to 6, and note that it also doesn't completely disappear, and the truncation warning correctly appears. However, you can make the smallest bar disappear if you set the axis range starting at 5.9 (but not 5.8) and there is no yellow warning about disappearing data.
So the issue still exists, but you have to try really hard to make it happen.
I think we could bump this to b60. There are no simple solutions (other than disabling the axis range custom start for histograms and barcharts), what do you think @SheenaTomko ?

Ha this is a very obscure case, but I was able to reproduce it in Chrome (including the lack of a mouse-over on the smallest bar). I think we can bump this ticket @bobular


Remembered ShareRooms get stuck after server switch

If you add public ShareRooms and choose to remember them, then change the server (in say Blue), when you come back to the ShareRooms screen the remembered ShareRooms are stuck trying to load.

I see two options (when we get to it):

Simple: clear remembered ShareRooms when we switch servers
Thorough: associate remembered ShareRooms with server record, and only show those for the current server

Should be possible to do 2. in a backwards compatible way, checking entries that don't have an affiliated server for presence with current one, and if present, affiliate their remembered record with it.
Question is, which approach seems worth the while?


Replacing testify/assert.Equal

I have a test in Participle that compares two slices of reflect.StructFields. This works under testify with:
assert.Equal(t, []reflect.StructField{f0, f0, f1}, f)

But does not work with gotestyourself with:
assert.DeepEqual(t, []reflect.StructField{f0, f0, f1}, f, cmp.AllowUnexported(reflect.StructField{}))

Fails with:
	struct_test.go:57: assertion failed: cannot handle unexported field: {[]reflect.StructField}[0].Type.size
		consider using AllowUnexported or cmpopts.IgnoreUnexported

IgnoreUnexported reports the same error.
I believe the problem is that StructField.Type is an interface pointing at a concrete type that I don't have access to, so I can't allow access to it.
A solution is to modify my test to compare two slices of some other representation, but that kind of defeats the purpose of using a helper library.
Is there another solution?
Also, I don't quite understand what the advantage of go-cmp's strictness in this situation gives me as a user. It seems less useful and more verbose.

I also tried replacing the two slices with slices of []string{} and using assert.Equal(t, []string{f0, f0, f1}, f) resulted in:
panic: runtime error: comparing uncomparable type []string [recovered]
	panic: runtime error: comparing uncomparable type []string

This makes sense as it uses == under the hood. DeepEqual worked.
What's the advantage (for a user) of having Equal() use == vs. deep equality checks?

cannot handle unexported field: {[]reflect.StructField}[0].Type.size

Ah , yes that is an interesting case that I haven't hit yet. It would need to either allow or ignore unexported on the reflect.Type type, but that is an interface, and the implementations are unexported. Since there's no way to allow or ignore the type I think the best option is to provide a custom equality function for reflect.Type. I believe something like the diff below would be correct. The docs for PkgPath say "the import path uniquely identifies the package".
diff --git a/struct_test.go b/struct_test.go
index d01f84c..ecb5c11 100644
--- a/struct_test.go
+++ b/struct_test.go
@@ -5,7 +5,8 @@ import (
 	"testing"
 	"text/scanner"

-	"github.com/stretchr/testify/assert"
+	"github.com/gotestyourself/gotestyourself/assert"
+	"github.com/google/go-cmp/cmp"

 	"github.com/alecthomas/participle/lexer"
 )
@@ -53,5 +54,9 @@ func TestStructLexer(t *testing.T) {
 	assert.Equal(t, `a|b`, s)
 	f0 := gt.Field(0)
 	f1 := gt.Field(1)
-	assert.Equal(t, []reflect.StructField{f0, f0, f1}, f)
+	assert.DeepEqual(t, []reflect.StructField{f0, f0, f1}, f, cmpStructField)
 }
+
+var cmpStructField = cmp.Comparer(func(x, y reflect.Type) bool {
+	return x.PkgPath() == y.PkgPath() && x.Name() == y.Name()
+})

I don't quite understand what the advantage of go-cmp's strictness in this situation gives me as a user. It seems less useful and more verbose.

I believe the reason this strictness is necessary is because it's not possible to tell if unexported fields are relevant to equality or not. One example of this is serializing/deserializing a time.Time. There are private fields in the struct which are not serialized, so comparing a value for time.Time after serialize/deserialize actually gives you "not equal", even though they represent the same value. I've hit this case a few times (where unexported fields cause reflect.DeepEqual to report not equal, even though I consider the objects to be equal).
So to remove that problem go-cmp gives you the flexibility to say when the fields are relevant or not.

What's the advantage (for a user) of having Equal() use == vs. deep equality checks?

My rational for this is:
There are cases when DeepEqual and Equal do not report the same result. The case I'm most familiar with is comparing pointers. Two pointers are equal if they point at the same address. Two pointers are DeepEqual if the values they reference are deep equal (they don't have to use the same address). There are times when you may want to check that a reference has changed to a copy of an object with the same value. You can't do that with DeepEqual.
Golang has specific definitions for Equal (==) and DeepEqual (reflect.DeepEqual). So using DeepEqual as Equal may confuse someone who is familiar with go, but not familiar with assertion libraries. This is feedback I received from a colleague during development. I believe I read somewhere that the name of the go-cmp package was changed from eq for the same reason (but I can't find that reference at the moment).


分割模型训练的时候进行推断的时候，ValueError: multiprocess reader raises an exception

问题类型：模型训练
问题描述
====================
请在这里描述您在使用过程中的问题，如模型训练出错，建议贴上模型训练代码，以便开发人员分析，并快速响应
错误日志
2020-09-12 22:12:52 [INFO]	Connecting PaddleHub server to get pretrain weights...
2020-09-12 22:12:56 [INFO]	Load pretrain weights from output/HRNet/pretrain/HRNet_W64.
2020-09-12 22:12:56,709-WARNING: output/HRNet/pretrain/HRNet_W64.pdparams not found, try to load model file saved with [ save_params, save_persistables, save_vars ]
2020-09-12 22:12:59 [INFO]	There are 1525 varaibles in output/HRNet/pretrain/HRNet_W64 are loaded.
2020-09-12 22:14:24 [INFO]	[TRAIN] Epoch=1/150, Step=50/82, loss=0.383345, lr=0.009964, time_each_step=1.37s, eta=5:44:47
2020-09-12 22:15:13 [INFO]	[TRAIN] Epoch 1 finished, loss=0.399562, lr=0.00997 .
2020-09-12 22:15:13 [INFO]	Start to evaluating(total_samples=146, total_steps=19)...
0%|          | 0/19 [00:00<?, ?it/s]Process Process-9:
Traceback (most recent call last):
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
Process Process-10:
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 166, in _read_into_queue
six.reraise(*sys.exc_info())
Traceback (most recent call last):
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/six.py", line 703, in reraise
raise value
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 158, in _read_into_queue
result = mapper(sample[0], sample[1], sample[2])
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 137, in call
im, label = self.decode_image(im, label)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
Process Process-11:
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 118, in decode_image
label_height, label_width = label.shape
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 166, in _read_into_queue
six.reraise(*sys.exc_info())
ValueError: too many values to unpack (expected 2)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/six.py", line 703, in reraise
raise value
Traceback (most recent call last):
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 158, in _read_into_queue
result = mapper(sample[0], sample[1], sample[2])
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 137, in call
im, label = self.decode_image(im, label)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
Process Process-12:
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 166, in _read_into_queue
six.reraise(*sys.exc_info())
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 118, in decode_image
label_height, label_width = label.shape
ValueError: too many values to unpack (expected 2)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/six.py", line 703, in reraise
raise value
Traceback (most recent call last):
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 158, in _read_into_queue
result = mapper(sample[0], sample[1], sample[2])
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 137, in call
im, label = self.decode_image(im, label)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 118, in decode_image
label_height, label_width = label.shape
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 166, in _read_into_queue
six.reraise(*sys.exc_info())
Process Process-13:
ValueError: too many values to unpack (expected 2)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/six.py", line 703, in reraise
raise value
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 158, in _read_into_queue
result = mapper(sample[0], sample[1], sample[2])
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 137, in call
im, label = self.decode_image(im, label)
Traceback (most recent call last):
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 118, in decode_image
label_height, label_width = label.shape
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
ValueError: too many values to unpack (expected 2)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
Process Process-14:
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 166, in _read_into_queue
six.reraise(*sys.exc_info())
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/six.py", line 703, in reraise
raise value
Traceback (most recent call last):
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 158, in _read_into_queue
result = mapper(sample[0], sample[1], sample[2])
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 137, in call
im, label = self.decode_image(im, label)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 118, in decode_image
label_height, label_width = label.shape
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 166, in _read_into_queue
six.reraise(*sys.exc_info())
ValueError: too many values to unpack (expected 2)
Process Process-15:
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/six.py", line 703, in reraise
raise value
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 158, in _read_into_queue
result = mapper(sample[0], sample[1], sample[2])
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 137, in call
im, label = self.decode_image(im, label)
Traceback (most recent call last):
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 118, in decode_image
label_height, label_width = label.shape
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
ValueError: too many values to unpack (expected 2)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 166, in _read_into_queue
six.reraise(*sys.exc_info())
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/six.py", line 703, in reraise
raise value
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 158, in _read_into_queue
result = mapper(sample[0], sample[1], sample[2])
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 137, in call
im, label = self.decode_image(im, label)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 118, in decode_image
label_height, label_width = label.shape
ValueError: too many values to unpack (expected 2)
Process Process-16:
Traceback (most recent call last):
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 166, in _read_into_queue
six.reraise(*sys.exc_info())
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/six.py", line 703, in reraise
raise value
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py", line 158, in _read_into_queue
result = mapper(sample[0], sample[1], sample[2])
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 137, in call
im, label = self.decode_image(im, label)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 118, in decode_image
label_height, label_width = label.shape
ValueError: too many values to unpack (expected 2)
---------------------------------------------------------------------------ValueError                                Traceback (most recent call last) in
15     log_interval_steps=50,
16     save_interval_epochs=1,
---> 17     save_dir='output/HRNet')
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/models/hrnet.py in train(self, num_epochs, train_dataset, train_batch_size, eval_dataset, save_interval_epochs, log_interval_steps, save_dir, pretrain_weights, optimizer, learning_rate, lr_decay_power, use_vdl, sensitivities_file, eval_metric_loss, early_stop, early_stop_patience, resume_checkpoint)
176             pretrain_weights, optimizer, learning_rate, lr_decay_power,
177             use_vdl, sensitivities_file, eval_metric_loss, early_stop,
--> 178             early_stop_patience, resume_checkpoint)
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/models/deeplabv3p.py in train(self, num_epochs, train_dataset, train_batch_size, eval_dataset, save_interval_epochs, log_interval_steps, save_dir, pretrain_weights, optimizer, learning_rate, lr_decay_power, use_vdl, sensitivities_file, eval_metric_loss, early_stop, early_stop_patience, resume_checkpoint)
356             use_vdl=use_vdl,
357             early_stop=early_stop,
--> 358             early_stop_patience=early_stop_patience)
359
360     def evaluate(self,
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/models/base.py in train_loop(self, num_epochs, train_dataset, train_batch_size, eval_dataset, save_interval_epochs, log_interval_steps, save_dir, use_vdl, early_stop, early_stop_patience)
557                         batch_size=eval_batch_size,
558                         epoch_id=i + 1,
--> 559                         return_details=True)
560                     logging.info('[EVAL] Finished, Epoch={}, {} .'.format(
561                         i + 1, dict2str(self.eval_metrics)))
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/models/deeplabv3p.py in evaluate(self, eval_dataset, batch_size, epoch_id, return_details)
395                 eval_dataset.num_samples, total_steps))
396         for step, data in tqdm.tqdm(
--> 397                 enumerate(data_generator()), total=total_steps):
398             images = np.array([d[0] for d in data])
399             im_info = [d[1] for d in data]
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/tqdm/std.py in iter(self)
1079             """), fp_write=getattr(self.fp, 'write', sys.stderr.write))
1080
-> 1081         for obj in iterable:
1082             yield obj
1083             # Update and possibly print the progressbar.
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/datasets/dataset.py in queue_reader()
185                 finish_num += 1
186             elif sample == "":
--> 187                 raise ValueError("multiprocess reader raises an exception")
188             else:
189                 batch_data.append(sample)
ValueError: multiprocess reader raises an exception

File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 118, in decode_image
label_height, label_width = label.shape
ValueError: too many values to unpack (expected 2)

确认下原图对应的标注图是否是单通道图像

File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddlex/cv/transforms/seg_transforms.py", line 118, in decode_image
label_height, label_width = label.shape
ValueError: too many values to unpack (expected 2)

确认下原图对应的标注图是否是单通道图像

感谢！问题解决了


pin minimum momepy to 0.9.0

This PR resolves #101

Because of https://github.com/pysal/momepy/pull/666?

#103 failure should clear after this.

@martinfleis Is there are reason we should not pin momepy=0.9.0? It also helps moving toward https://github.com/uscuni/sgeop/issues/68.

Not really. Let's pin.


Spinner is not spinning on specific Android device

Spinner is not spinning or animated it looks like a static image.
Device information: Google Pixle Android 10.0.
Please advise.

+1 to that issue...
is this repository active?


replace puts with say in most places

cc @zendesk/vegemite

:+1: when :green_heart:

I bumped cucumber, now it raises if we end in a non-existent directory due to pwd: https://github.com/cucumber/cucumber-ruby/blob/master/lib/cucumber/formatter/backtrace_filter.rb#L21

The increased complexity was for a performance boost, zat is currently super slow to just load let alone do any actual tasks. This is very noticeable when running zat version or an unknown command:
Master:
zat asdf  1.04s user 0.42s system 42% cpu 3.435 total
zat asdf  1.04s user 0.39s system 51% cpu 2.753 total
zat asdf  1.04s user 0.37s system 40% cpu 3.501 total
zat asdf  1.02s user 0.36s system 43% cpu 3.156 total

This branch:
zat asdf  0.42s user 0.19s system 44% cpu 1.393 total
zat asdf  0.42s user 0.17s system 48% cpu 1.223 total
zat asdf  0.44s user 0.18s system 64% cpu 0.971 total

:+1:


Upgrade fabric 2.7

Upgrading darkroomjs to work with fabricjs 2.7.

This change looks to still work with fabricjs 5.3.1


added smooth animation and responsiveness

Related Issue

Issue No. #97

Changes you made :

I have made the hover effect more smooth by adding transition to it in About page on WHO WE ARE SECTION .
Also added space and margins between two cards in Mobile View which make the animation more perfect and smooth.

Describe the changes :

-I have added more gaps between the two cards in Mobile View so that the animation looks more perfect

Checklist :

[x] I have followed the code style of this project.
[x] I have read the CONTRIBUTING document.
[x] All the aspects mentioned in the issue are covered.
[x] The website is properly working after my changes.
[x] 🌟 ed the repo

Type of change :

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

Output Screenshots :

Before
https://user-images.githubusercontent.com/106610708/194381597-c7ca17d8-fff9-4f90-b787-b22dbdd00216.mp4
###After
https://user-images.githubusercontent.com/106610708/194382114-e4fd34bf-24b4-4532-9bdf-c951ebf0f39f.mp4

This is my first Open Source Contribution😅 so if something went wrong please guide me thank you!

@Naushad-dev good 👍
But resolve branch conflicts

Resolved the conflict, Sir 👍

Good to go @Naushad-dev
LGTM 🤩


Upgrade RuboCop-RSpec to the latest version

You can see the new changes at https://github.com/rubocop/rubocop-rspec/releases/tag/v2.10.0 – the most relevant being the addition of an RSpec/VerifiedDoubleReference cop that suggests using class references instead of strings as argument to e.g. instance_double.

Before submitting the PR make sure the following are checked:

[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[ ] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[ ] Added tests.
[x] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
[ ] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

🚀


274 oneof anyof make it possible that different array entries have different schemas selected

Still WIP

@PaulBredl ready for review.
Some user experience aspects regarding when the user selects invalid schema combinations might still be improved, but I think it is good enough for now.

I haven't tried it out but looks really nice according to your video


Adding the possibility of inserting an arbitrary EOF

@Quramy @olegstepura first of all, thank you for your great work!
In our project we use git with different operating systems, and for the convenience of development we decided to store our files with LF ending. We use typed-css-modules-loader which passes the parameters to the typed-css-modules via options:
{
  loader: 'typed-css-modules-loader',
    options: {
        // params for typed-css-modules
    },
},

the problem is that when the programmer  that uses Mac os generates a change, then the d.ts file is saved in the LF format, and if the programmer that uses Windows does this, the d.ts file is saved in the CRLF format. Because of this we see many changed files in which there are actually no changes:

all changes are just EOL:

we needed to directly specify the type of EOL that we need, but unfortunately this option was not available and we had to create a fork. Perhaps this option will be useful to other users, so I created a pr.
usage with typed-css-modules-loader:
{
  loader: 'typed-css-modules-loader',
    options: {
      EOL: '\r\n', // or '\n'
   },
},

If there are no options, then by default, there will be an old behavior with an os.EOL

@radziksh Thanks for your PR . It looks nice ;)
Whould you write doc about this EOL option to README https://github.com/Quramy/typed-css-modules/blob/master/README.md#new-dtscreatoroption ?

@Quramy done


Fix entity mappings in PrivilegedAccountPermissionsChanged.yaml

Existing entity mappings were incorrect, preventing deployment.
Required items, please complete
Change(s):

Fixed entity mappings, deployment would fail complaining about multiple 'name' mappings

Reason for Change(s):

Analytic rule could not be deployed

Version Updated:

Yes

Testing Completed:

Yes

Checked that the validations are passing and have addressed any issues that are present:

Pending

We wanted to check on the status of PR #10205. PR is pending for more than 30 days in draft state. Please let us know if you need any assistance to review this PR. Per our standard operating procedures if no response is received in the next 5 business days, we will close this PR. Thank you for your cooperation.

Since we have not received a response in the last 7 days, we are closing your PR #10205 per our standard operating procedures. If you still need support for this issue, you can re-open the PR at any time.
If you do re-open, we simply request that you ensure the PR has response to the last request. Thank you for your cooperation.


Null when user cancelled the scan using Back Button

Hello there, i'm having some problems that
a. If user are pressing Back Button (hardware), Null will be returned instead, the problem is scan method expects Future which means anything that nullable will throw NullError.
b. If user are pressing Back Button (software, available on ZKing's platform view), the future will never complete

Yes problem b. is very serius. I am having this problem in which I need to return String and when I press back button it will stuck forever. Only solution for android is remove back button because we have hardware back button or software back button, if ios we need to throw error and catch it after that return something.

what if user cancels QR Scanning process? Should scan method return null in that case?

I think it will throw error. After that we can catch error and we can show that user cancelled scanning.

Check out this https://pub.dev/packages/barcode_scan_fix.

bruh, that package are not null-safe
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: M. Mukesh Kumar @.>
Sent: Sunday, June 13, 2021 4:39:07 PM
To: leyan95/qrcode_scanner @.>
Cc: Alvin Leonardo @.>; Author @.>
Subject: Re: [leyan95/qrcode_scanner] Null when user cancelled the scan using Back Button (#109)
Check out this https://pub.dev/packages/barcode_scan_fix.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/leyan95/qrcode_scanner/issues/109#issuecomment-860182236, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKUCEFP65W23NOMGTNNTNNTTSR4DXANCNFSM456GQNFQ.

I have tried adding the scan function inside try-catch. But still, it fails. So, can you add try-catch in the function?

I have tried adding the scan function inside try-catch. But still, it fails. So, can you add try-catch in the function?

Can you show your code please? Yes it is possible to add try-catch in the function.

I have tried adding the scan function inside try-catch. But still, it fails. So, can you add try-catch in the function?

try {
    //Scan QR Code
    code = await _qr.scanFromCamera();
} on TypeError {
    //Catch that pesky null thrown from library and do whatever the heck you want
}

This is what i did to deal with them

so, as of 0.3.2, problem A has been solved but problem B are still there, the soft back button wasn't removed in the latest release


Incompatibility with 1.21.3

The game crashes when loading a world in 1.21.3
farbic-loader-0.16.7-1.21.3 using the mods:

simplefog-1.6.0

cloth-config-16.0.141-fabric

fabric-api-0.106.1+1.21.3

The game crashed whilst unexpected error
Error: java.lang.RuntimeException: Mixin transformation of net.minecraft.class_758 failed

The update is non-trivial. Mojang changed stuff around the fog, presumably for the creaking and/or pale garden. I'm, looking into it, no ETA.

Wasn't quite as bad as I thought. Update is live here and on modrinth, curseforge is processing.


Remove a-link--icon-before-text and a-link--icon-after-text

Jump links required both the a-link--jump and a-link--icon-after-text (or a-link--icon-before-text) modifiers to correctly layout with an icon. However, using flexbox we can have these links correctly layout whether or not they have an icon and whether or not it's on the left or right-hand side.
Removals

Remove a-link--icon-before-text and a-link--icon-after-text

Changes

Convert Jump Links to use flexbox.

Testing

Visit https://deploy-preview-1987--cfpb-design-system.netlify.app/design-system/components/links and check out the jump links across screen sizes.

Screenshots

I realized this won't work out if we have a jump link that has an external icon, but I'll merge this and then open a follow up PR that handles that case and does some other cleanup.


[ENH] Add math module for chaining mathematical operations

Implements #582
@ericmjl

@jiafengkevinchen looks like everything is good except for code style! Could you please format the code? make format at the top-level dir of the project should be OK.

I will be back with a more thorough review later - on first glance, things look great to me :smile:

@jiafengkevinchen looks like everything is good except for code style! Could you please format the code? make format at the top-level dir of the project should be OK.

Hm... make format left everything unchanged

No worries - can you check the Azure logs for where the code style checks are failing? It may be that a docstring or comment line (i.e. something not formattable by the two commands buried under make format) are causing the code style changes to fail.
Let me know if you need help digging in.


echarts中文官网, 网站测试页面有一个js 加载失败, 无法正常测试

Version
4.2.1
Reproduction link
https://gallery.echartsjs.com/editor.html?c=xBJ11Hguze
Steps to reproduce
代开这个 https://gallery.echartsjs.com/editor.html?c=xBJ11Hguze, 示例页面就可以看到
What is expected?
正常测试wordcloud
What is actually happening?
http://data-visual.cn/datav/src/js/echarts/extension/echarts-wordcloud.min.js 加载失败

Mixed Content: The page at 'https://gallery.echartsjs.com/editor.html?c=xBJ11Hguze' was loaded over HTTPS, but requested an insecure script 'http://data-visual.cn/datav/src/js/echarts/extension/echarts-wordcloud.min.js'. This request has been blocked; the content must be served over HTTPS.


Create a couple of examples on using the cloutapi-package

A few examples on the usage of the cloutapi-package should be added.

Leaving this issue open until a few more examples are added


2005 Interface Chatbox Fix

Currently the 2005 Interface chatbox has neither the proper "torn page" effect nor is it even the side and top lines of text get cut off frequently.
Please make it even like this while having the "unclean" effect.
I understand we cannot do the torn effect properly but making it like this it still has the 2005 aesthetic while enabling us to be able to read all text in game.

This is not how you make a feature request


Different cookie for different request on server side?

It seems that react-cookie's mechanism is manipulating the _rawCookie object. But for every request on server side, react-cookie uses the same _rawCookie object. I guess this might randomly cause error like below:

timeline
user A
user B
_rawCookie

time 1
save('token', tokenA)

{ token: tokenA }

time 2

save('token', tokenB)
{ token: tokenB }

time 3
res.end(...)

{ token: tokenB }

time 4

res.end(...)
{ token: tokenB }

result
receive tokenB
receive tokenB

Is my guessing possible?

You have to make sure you set the cookie values just before your renderToString (which is a sync operation). What you describe is not possible if you do so. Just make sure you're not doing anything async between.


documentated this.hot for loader context

close: https://github.com/webpack/webpack.js.org/issues/2461
https://github.com/webpack/webpack/pull/6228

Thanks!


Have an examples directory

What do you think of having an examples directory to show some sample configurations for webpack 2?
I have a few that I can contribute if you're interested.

That would be awesome. Could you create a PR? 👍
Just create a directory called examples (thus it will be ignored by npm as configured in the .npmignore). Please also setup eslint for the examples directory.

@kahwee https://github.com/ctrine/webpack-settings/blob/master/packages/shared/src/rules/sass-module.js

This would be a huge help. I've spent an hour trying to figure out why it's not working for me despite using the code directly from the readme, so far with no luck. Having complete, runnable examples to compare against would be great.

Feel free to send PRs with example in README.md (example) section. Close due inactivity.


Error compiling harf_buzz - can't use variable name 'extents' inside assignment to variable 'extents'

Trying to compile rtfm:
  margret@nobody-t14:~/dev/crystal/rtfm main@c360719 (dirty)
  [0] $ make

shards install
Resolving dependencies
Fetching https://github.com/hugopl/fzy.git
Fetching https://github.com/geopjr/libadwaita.cr.git
Fetching https://github.com/crystal-lang/crystal-sqlite3.git
Fetching https://github.com/hugopl/gtk4.cr.git
Fetching https://github.com/hugopl/gi-crystal.git
Fetching https://github.com/hugopl/pango.cr.git
Fetching https://github.com/hugopl/harfbuzz.cr.git
Fetching https://github.com/hugopl/gio.cr.git
Fetching https://github.com/crystal-lang/crystal-db.git
Installing fzy (0.5.5)
Installing gi-crystal (0.16.0 at 9ebef99)
Postinstall of gi-crystal: shards build
Installing harfbuzz (0.1.0)
Installing gio (0.1.0)
Installing pango (0.2.0)
Installing gtk4 (0.14.0 at 83c6921)
Installing libadwaita (1.0.0 at 23ce21d)
Installing db (0.12.0)
Installing sqlite3 (0.20.0)
./bin/gi-crystal
info - Starting at 2023-07-16 22:30:21 -04:00, project dir: /home/margret/dev/crystal/rtfm
info - Gi-Crystal version 0.16.0, built with Crystal 1.8.2.
info - Generating bindings at /home/margret/dev/crystal/rtfm/lib/gi-crystal/src/auto
info - Using binding config at /home/margret/dev/crystal/rtfm/lib/pango/src/bindings/pango/binding.yml
info - Using binding config at /home/margret/dev/crystal/rtfm/lib/gio/src/bindings/gio/binding.yml
info - Using binding config at /home/margret/dev/crystal/rtfm/lib/harfbuzz/src/bindings/harfbuzz/binding.yml
info - Using binding config at /home/margret/dev/crystal/rtfm/lib/gtk4/src/bindings/gtk/binding.yml
info - Using binding config at /home/margret/dev/crystal/rtfm/lib/gtk4/src/bindings/gdk/binding.yml
info - Using binding config at /home/margret/dev/crystal/rtfm/lib/gtk4/src/bindings/gsk/binding.yml
info - Using binding config at /home/margret/dev/crystal/rtfm/lib/gi-crystal/src/bindings/g_lib/binding.yml
info - Using binding config at /home/margret/dev/crystal/rtfm/lib/gi-crystal/src/bindings/g_object/binding.yml
info - Using binding config at /home/margret/dev/crystal/rtfm/lib/libadwaita/src/bindings/binding.yml
info - Using binding config at /home/margret/dev/crystal/rtfm/src/bindings/webkit2/binding.yml
info - Pango - No binding config found for cairo-1.0.
info - HarfBuzz - No binding config found for freetype2-2.0.
warn - HarfBuzz - Interface constant not supported.
warn - g_cancellable_connect - Callback without user_data!
warn - Gio::ActionEntry padding field - Unknown conversion to crystal for fixed size array.
warn - Gio::DBusInterfaceVTable padding field - Unknown conversion to crystal for fixed size array.
warn - Gio::DBusSubtreeVTable padding field - Unknown conversion to crystal for fixed size array.
warn - Boxed not working for enums
info - gtk_image_new_from_pixbuf - No binding config found for GdkPixbuf-2.0.
info - gtk_snapshot_append_cairo - No binding config found for Graphene-1.0.
warn - Gtk::BuildableParser padding field - Unknown conversion to crystal for fixed size array.
warn - gsk_border_node_get_widths - Unknown conversion to crystal for fixed size array.
info - Gdk - No binding config found for PangoCairo-1.0.
warn - Gdk - SeatCapabilities::All (0xf) doesn't have all possible bits set (0x1f).
warn - Gdk::TimeCoord axes field - Unknown conversion to crystal for fixed size array.
info - GdkPixbuf - No binding config found for GModule-2.0.
warn - gdk_pixbuf_get_options - Unknown conversion to crystal for GHash
info - WebKit - No binding config found for Soup-3.0.
info - WebKit - No binding config found for JavaScriptCore-6.0.
warn - soup_form_decode - Unknown conversion to crystal for GHash
warn - soup_form_decode_multipart - Unknown conversion to crystal for GHash
warn - soup_header_parse_param_list - Unknown conversion to crystal for GHash
warn - soup_header_parse_param_list_strict - Unknown conversion to crystal for GHash
warn - soup_header_parse_semi_param_list - Unknown conversion to crystal for GHash
warn - soup_header_parse_semi_param_list_strict - Unknown conversion to crystal for GHash
warn - soup_server_add_early_handler - Unknown conversion to crystal for GHash
warn - soup_server_add_handler - Unknown conversion to crystal for GHash
warn - Generator::VFuncGen - Unknown conversion to crystal for GHash
warn - jsc_class_add_property - Callback without user_data!
warn - jsc_value_object_define_property_accessor - Callback without user_data!
syntax error in './harf_buzz-0.0/harf_buzz.cr:7056:14': can't use variable name 'extents' inside assignment to variable 'extents'
fatal - Error formating generated files at '/home/margret/dev/crystal/rtfm/lib/gi-crystal/src/auto'.
make: *** [Makefile:8: rtfm] Error 1

Lines in question (gi-crystal/src/auto/harf_buzz-0.0/harf_buzz.cr):
def self.ot_layout_get_font_extents(font : HarfBuzz::FontT,direction : HarfBuzz::DirectionT,script_tag : UInt32,language_tag : UInt32,) : HarfBuzz::FontExtentsT
  # hb_ot_layout_get_font_extents: (None)
# @font:
# @direction:
# @script_tag:
# @language_tag:
# @extents: (out) (nullable) (caller-allocates)
# Returns: (transfer none)

  # Generator::NullableArrayPlan
extents = if extents.nil?
Void.null
else
extents.to_unsafe
end
# Generator::CallerAllocatesPlan
extents=HarfBuzz::FontExtentsT.new
  # C call
  _retval = LibHarfBuzz.hb_ot_layout_get_font_extents(font, direction, script_tag, language_tag, extents)

  # Return value handling

  extents

end

Crystal version:
$ crystal --version

Crystal 1.8.2 (2023-05-11)

LLVM: 15.0.7
Default target: x86_64-pc-linux-gnu

Hi, this is a duplicate of https://github.com/hugopl/gi-crystal/issues/53
It was "fixed" in harfbuzz bindings v0.2.0, by fixed I mean... I just ignored the function.
Harfbuzz is very hard to create automatic bindings based on gobject introspection due to bad annotation and probably a not so binding friendly API design, so as I don't use harfbuzz API direclty nether know anybody interested on using it directly from Crystal code... I just ignore these functions to keep things compiling and follow with my life :-P

BTW rtfm dependencies were updated and there's a new release that should work.

Thank you!


Support and test with Python 2.7, 3.5+

Is dropping support for Python 3.4 planned in the near future? It's officially supported until 2019

I can readd it.

Done

Thank you @hroncok!


[historical] throw error if given a string for period{1,2} that is invalid input for new Date()

$ yahoo-finance historical TSLA '{"period1":"2022-02-01","period2":"today"}'
https://query2.finance.yahoo.com/v7/finance/download/TSLA?interval=1d&events=history&includeAdjustedClose=true&period1=1643673600&period2=NaN
Exiting with HTTPError: Bad Request

We should validate period1 and period2 and throw an error on invalid input before trying to make the request.
As reported by @kiloppertry in #429.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Preparation section improvements

Pages under 'Preparation' on the Jupyter Book table of contents should be things we require participants to read or do before the event. So we should merge the 'Pangeo' section under JupyterHub. cc @aaarendt

closed by #76


Difficulty using decksmith.

Having an error when trying to export mod
What is this?
\Downloads ex1\Thunderstore modding\Rounds_\Libs\src\Goku.cs(17,63): error CS1009: Unrecognized escape sequence
\Downloads ex1\Thunderstore modding\Rounds_\Libs\AxisHaki.csproj]
My internet searches haven't given me anything I can classify as useful.

will be leaving my pc on , or will just quit, cant bring myself to doing anything again if it doesn't save, If i was smarter, i would have just made one card, tried to export it, then just tried again next week XD.
I was so confident I could follow basic instructions.

was a pictures issue


Helm with dependency fails

Describe the bug
It seems if the Helm chart has a dependency, it fails that the repository is not found.
rpc error: code = Unknown desc = `sh -c helm dependency build` failed exit status 1: Error: no repository definition for https://charts.omegion.dev. Please add the missing repos via 'helm repo add'

To Reproduce
Steps to reproduce the behavior:
      configManagementPlugins: |-
        - name: argocd-vault-plugin-with-helm
          init:
            command: [sh, -c]
            args: ["helm dependency build"]
          generate:
            command: ["sh", "-c"]
            args: ["helm template $ARGOCD_APP_NAME . > all.yaml && argocd-vault-plugin generate all.yaml -c /etc/config/vault-config.yaml"]

Okay, it seems I had to add the dependency repositories and restart the repo-server. It does work now.

Heck, I forgot to add plugin back to Application. Now I can see the error:
rpc error: code = Unknown desc = `sh -c helm dependency build` failed exit status 1: Error: no repository definition for https://charts.omegion.dev. Please add the missing repos via 'helm repo add'

Seems like this may be a workaround.. Instead, you can add those repos in your init script.. Something like helm repo add https://charts.omegion.dev && helm dependency build. You could also vendor the helm dependencies.

Vendoring the dependencies is the way to go for me. Adding all repos in the init does not make sense. Thanks.

Vendoring the dependencies is the way to go for me. Adding all repos in the init does not make sense. Thanks.

What do you mean by vendoring the dependencies?

@tuananh https://helm.sh/docs/helm/helm_dependency_update/
You can sync your dependencies on your repo, then ArgoCD will use them rather than fetching from remote.

@omegion thanks. when i do helm dependency update, it will download the chart to charts folder. so i will use that instead right?
do i need to update configManagementPlugins init and generate steps?

@tuananh you do not have to change.

Because in Chart.yaml, it still has the url to the private repo? that remains unchanged and charts folder will take priority over that?

Indeed, you can read more here: https://helm.sh/docs/helm/helm_dependency/

Thank you. I got it working now.

I am running into the same problem... what do your plugin config and app look like @omegion , @tuananh ?
I have below.... I tried changing the args for init to helm dependency update with and without helm repo add...
plugin
  configManagementPlugins: |-
    - name: argocd-vault-plugin-helm
      init:
        command: ["sh", "-c"]
        args: ["helm repo add ${helm_dependency_name} ${helm_dependency_repo} --debug && helm dependency build"]
      generate:
        command: ["sh", "-c"]
        args: ["helm template ${helm_args} . > all.yaml && argocd-vault-plugin generate all.yaml"]

Application
spec:
  source:
    plugin:
      name: argocd-vault-plugin-helm
      env:
      - name: AVP_K8S_ROLE
        value: xxx
      - name: AVP_TYPE
        value: vault
      - name: AVP_AUTH_TYPE
        value: k8s
      - name: AVP_K8S_MOUNT_PATH
        value: xxx
      - name: VAULT_ADDR
        value: 'xxx'
      - name: helm_args
        value: -f values.yaml
      - name: helm_dependency_name
        value: jetstack
      - name: helm_dependency_repo
        value: 'https://charts.jetstack.io'

Getting below error now:
rpc error: code = Unknown desc = `sh -c helm repo add ${helm_dependency_name} ${helm_dependency_repo} --debug && helm dependency build` failed exit status 1: Error: looks like "https://charts.jetstack.io" is not a valid chart repository or cannot be reached: open /home/argocd/.cache/helm/repository/jetstack-index.yaml: read-only file system helm.go:81: [debug] open /home/argocd/.cache/helm/repository/jetstack-index.yaml: read-only file system looks like "https://charts.jetstack.io" is not a valid chart repository or cannot be reached main.(*repoAddOptions).run helm.sh/helm/v3/cmd/helm/repo_add.go:184 main.newRepoAddCmd.func1 helm.sh/helm/v3/cmd/helm/repo_add.go:80 github.com/spf13/cobra.(*Command).execute github.com/spf13/cobra@v1.1.3/command.go:852 github.com/spf13/cobra.(*Command).ExecuteC github.com/spf13/cobra@v1.1.3/command.go:960 github.com/spf13/cobra.(*Command).Execute github.com/spf13/cobra@v1.1.3/command.go:897 main.main helm.sh/helm/v3/cmd/helm/helm.go:80 runtime.main runtime/proc.go:225 runtime.goexit runtime/asm_amd64.s:1371

It's read only filesystem issue introduced in argocd 2.1
https://github.com/argoproj/argo-cd/issues/7144

Seems like this may be a workaround.. Instead, you can add those repos in your init script.. Something like helm repo add https://charts.omegion.dev && helm dependency build. You could also vendor the helm dependencies.

Hi @werne2j, I had the same issue and fixed it by adding the env variables helm_dependency_name/repo/user/password to my argocd-vault-plugin-credentials (inspired by @rwong2888🧡🙏🏻).
Maybe this a good idea to add @rwong2888's solution above and my solution into argocd-vault-plugin documentation?

@tuananh https://helm.sh/docs/helm/helm_dependency_update/ You can sync your dependencies on your repo, then ArgoCD will use them rather than fetching from remote.

Even with the chart archive containing the sub-charts I still get the same error. I am pulling the upstream chart together with its dependencies inside a private helm repo and using that in my ArgoCD app. Is there something I am missing? Can someone explain why is ArgoCD not able to view the local sub-charts when using argocd-vault-plugin-helm?

The issue looks more related to helm: https://github.com/helm/helm/issues/8036

ok, folks, maybe dump question, but how would I know which repo I need to install if I can have avp with absolutely random helm charts?

currently I'm trying to migrate to sidecar configuration with avp, and it used to work (repo dependencies ) by itself when I was using argocd-cm ConfigMap previously like this:
configManagementPlugins: |-
- name: argocd-vault-plugin
  generate:
    command: ["argocd-vault-plugin"]
    args: ["generate", "./"]
- name: argocd-vault-plugin-helm
  init:
    command: [sh, -c]
    args: ["env > /tmp/plugin_env; helm dependency build"]
  generate:
    command: ["bash", "-c"]
    args: ['helm template $ARGOCD_APP_NAME -n $ARGOCD_APP_NAMESPACE -f ${ARGOCD_ENV_HELM_VALUES_FILE:-values.yaml} -f <(echo "$ARGOCD_ENV_HELM_VALUES") . | tee /tmp/last_manifest.yaml | argocd-vault-plugin generate -']

FYI: was able to make it working with sidecars by injecting this into the side car:
                env:
                  - name: HELM_CACHE_HOME
                    value: /helm-working-dir
                  - name: HELM_CONFIG_HOME
                    value: /helm-working-dir
                  - name: HELM_DATA_HOME
                    value: /helm-working-dir

and also mounting helm-working-dir volume (from argocd-cmp-server container) into sidecar plugin container.
helm dependency update solves everything and I don't have to add repos during init stage.

Thanks @olegeech-me your solution saved me other tons of hours trying to make it work. Hope it will be documented

@olegeech-me did you still have env > /tmp/plugin_env in your command?

I spend quite some time trying to set this plugin up for applications with dependencies. Turns out it's easier to not go through all these hoops to restore default behavior and instead use https://github.com/crumbhole/argocd-lovely-plugin which has a nice feature to chain plugins.
There's also a build of it which has this vault plugin bundled and ready to use out of the box.


fix(main.tf): handle enabled boolean in manage_rules

what
use enabled boolean in managed_rules variable
why
aws_config_config_rule resources were still being created despite enabled being set to false

@aknysh
@milldr

/terratest

NOTE: Bats is an issue for the repo and not caused by this PR

/terratest


404 page is missing it's favicon

(Ironically) the request for the favicon on our 404 page results in a 404. It's probably just a simple fix of updating the path to the favicon.

Fixed in #161