Cannot run application without doing a brew install opencv@4

Hey @fakob, I was trying to test the application with some of my changes and run the packaged application on a mac.
However, the app shows a blank white screen. After some debugging, I found that opencv-build dependency in app/node-modules/ does not have the opencv dylibs.
I think you did resolve a similar issue with your changes here. I also did follow the issue you filed, however I am currently able to resolve the opencv dependency.
However, when I download the app that you have on the website, it works fine without having to install opencv on the users machine (the opencv-build directory does have the dylibs there).
Any idea what I might be missing out here?

Hi @arpwal
It has been a while since I did a clean install so it is a bit of a guess work.
As far as I remember, I did not get opencv 4 to work. I don't remember if this was an issue with packaging though. I am still using opencv 3.4.6 and my opencv.js script which fixes the dependencies might not work properly with opencv 4.
This is also the reason why I have not upgraded opencv4nodejs to the newest version. See issue here, unfortunately I am stuck there.
What do the logs say when you start the application in debug mode (Application menu -> View -> Restart in debug mode and then check the developer tools console logs of the different renderers. See Debug menu)?
What is the output when you run yarn opencv? Is the copying and relinking successful?
Sorry, it is a bit of a guess work. I had spent quite some time on it to make it work. Unfortunately it is not straight forward.

Hey @fakob
Thanks for getting back to me. I am just running yarn install at this point, and that seems to be failing for me with auto_build on.
Logs for running yarn install in the parent directory
Also, I'm using the following environment variables:
export OPENCV4NODEJS_DISABLE_AUTOBUILD=0
export OPENCV4NODEJS_AUTOBUILD_OPENCV_VERSION=3.4.6
export NODE_GYP_FORCE_PYTHON=/usr/bin/python

I'm using MacOS Catalina 10.15.4, 16gb memory, if that helps.
I updated the OpenCV version as per your suggestion too to 3.4.6
The opencv.js script seems to look good, just that the that /app/node_nodules/opencv-build/opencv/build/lib/ is empty at this point still (which is referenced by the opencv.js script.
Any idea what is going on?

Hi @arpwal
The error you are getting fatal error: 'opencv2/core.hpp' file not found seems to indicate that<EMAIL_ADDRESS>version was installed, which unfortunately does not work at the moment. See previously linked issue.
So I would suggest to downgrade opencv4nodejs. The latest version which worked for me is 4.17.0.
Sorry, I should probably change the app/package.json so it does not automatically install the newest version.

Hey @fakob
Good point.. I did force the package json to install opencv4nodejs v4.17.0. package.json from opencv4nodejs in the app/node_modules dir.
I'm still getting the same error: fatal error: 'opencv2/core.hpp' file not found. logs
What version of node-gyp do you have installed?

That is strange, I can not remember every having this error with my usual setup.
Did you do a clean install?
Another thing, I don't think I had ever used environment variables to override opencv4nodejs settings. Could you try without?
I currently do not have access to my build machine, but according to the submitted yarn.lock file I was using node-gyp: 6.1.0.

Yeah the environment variables seemed to cause some problems.
After removing them, I moved a little forward but got another set of errors: install.log.trim
snippet from the logs --
[ 78%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/torch/THDiskFile.cpp.o
[ 78%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/torch/THFile.cpp.o
[ 78%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/torch/THGeneral.cpp.o
[ 78%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/torch/torch_importer.cpp.o
[ 78%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/layers/layers_common.avx.cpp.o
[ 78%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/layers/layers_common.avx2.cpp.o
[ 78%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/layers/layers_common.avx512_skx.cpp.o
[ 78%] Linking CXX shared library ../../lib/libopencv_dnn.dylib
[ 78%] Built target opencv_dnn
make: *** [all] Error 2
ERR! child process exited with code 2 (for more info, set '--loglevel silly')
  stackTrace=

Thoughts?

Ahh, shoot. I have never built it on Catalina. Not sure if this is the problem, but currently I would not know what else is. To be honest, the building of native modules I never fully understood, so there was lots of trial and error for me to make it work.
I will try to find some time in the coming week to set up a virtual catalina machine and see how far I get with building it from scratch.
I am sorry that I do not have any more suggestions at the moment.

Oh no! Please let me know if you find something new. I've tried the following things:

tried with python3.x & python2.7 none worked,
tried installing opencv3 on catalina from source, following this blog, and that went fine,
also, as I mentioned before -- opencv4nodejs (5.3.x) worked fine when installed with brew install opencv@4

Inspired by your scripts/opencv.js, do you think we could repurpose that script to use the libs generated in /usr/local/opencv/ and use them while packaging the app in the dependencies folder?

With python3 I had also never worked for me.
What cmake version do you have installed?
The script could work. You could try changing the opencvLibDir variable

Hi @arpwal
I have now made a clean install on a catalina virtual machine. I ran into some issues, but got them resolved and could build and package the app doing the following steps

install brew

installs command line tools for xcode

brew install yarn
brew install cmake
install node 12.8.1 with installer
this I had forgotten to mention, though the error messages you had gotten pointed to something else. Having the wrong node version usually was only an issue for the face-api.js dependency tfjs-node. I have to update the readme
git clone --depth=1 https://github.com/fakob/MoviePrint_v004.git MoviePrint_v004
Get the original weights files from face-api.js and replace the ones in /resources/weights
Somehow one of the weights in my repo is corrupted. Will push an update soon.
cd MoviePrint_v004
cd app
yarn
running yarn separately for the native packages should not be necessary as it should be called from the top level yarn, but it seemed to me that I get different results
cd ..
yarn
yarn includeInDist
copy fonts and weights into dist folder
yarn dev
test run in dev
yarn package-dir
run package only creating the app file

Hope that helps

Hey @fakob -- thanks for the detailed installation steps.
I was doing the same steps as you wrote in detail above, however I still seem to land into the same error. Probably my machine setup is borked (I was using the opencv4nodejs package with opencv4 from brew before)? I'll give it a try on a mac vm to see if that points to a possible solution.
Thanks for trying to debug this with me!


Install JDK8 on build/test machines to support latest Jenkins version

The new version of Jenkins requires JDK8.  Our nodes currently have JDK7, so need to be upgraded (via Ansible?) to install the later JDK before upgrading Jenkins.
Consider running AdoptOpenJDK builds of JDK8 on each node?

Need to make sure that this JDK is separate from the Java 7 boot JDK we'd be using for the builds.  Should be possible though..

Assigning to @bblondin. Can you check which machines do and don't already have java 8?

Most systems already had Java 8 on them. Installed Java 8 on those there were missing.

Hostname:
IP Address:
Default Java on Path
Java 8 if not Default:

build-1and1-win2008r2-1
<IP_ADDRESS>
java version 1.7.0_80
/cygdrive/c/Program Files/Java/jre1.8.0_60/bin/java.exe

build-joyent-x64-freebsd-11-1
<IP_ADDRESS>
openjdk 1.8.0_131

build-joyent-x64-smartOS-14-1
<IP_ADDRESS>
openjdk version 1.8.0_102-internal

build-linaro-armv8-centos7-1
<IP_ADDRESS>
openjdk 1.8.0_131

build-linaro-armv8-centos7-2
<IP_ADDRESS>
openjdk 1.8.0_131

build-macstadium-macos1010-1
<IP_ADDRESS>
java version 1.8.0_131

build-macstadium-macos1010-2
<IP_ADDRESS>
java version 1.8.0_131

build-marist-s390x-rhel-6
<IP_ADDRESS>
java version 1.5.0
/opt/java8/bin/java

build-marist-s390x-rhel-7.3
<IP_ADDRESS>
openjdk version 1.8.0_111

build-marist-s390x-sles-12
<IP_ADDRESS>
java version 1.7.0_131
/opt/java8/bin/java

build-marist-s390x-ubuntu-16.04
<IP_ADDRESS>
openjdk 1.8.0_131

build-osuosl-ppc64-aix-71-1
<IP_ADDRESS>
java version 1.8.0

build-osuosl-ppc64-aix-71-2
<IP_ADDRESS>
java version 1.8.0

build-osuosl-ppc64le-centos-7.2
<IP_ADDRESS>
openjdk 1.8.0_131

build-osuosl-ppc64le-fedora-24-1
<IP_ADDRESS>
openjdk 1.8.0_131

build-osuosl-ppc64le-fedora-24-2
<IP_ADDRESS>
openjdk 1.8.0_131

build-osuosl-ppc64le-ubuntu-16.10
<IP_ADDRESS>
openjdk 1.8.0_131

build-packet-armv8-ubuntu-16.04
<IP_ADDRESS>
openjdk 1.8.0_131

build-packet-x64-ubuntu-16
<IP_ADDRESS>
openjdk 1.8.0_131

build-scaleway-armv7-ubuntu16.04-1
<IP_ADDRESS>
openjdk 1.8.0_131

build-scaleway-armv7-ubuntu16.04-2
<IP_ADDRESS>
openjdk 1.8.0_131

build-scaleway-x64-ubuntu-16.04-1
<IP_ADDRESS>
openjdk 1.8.0_131

build-scaleway-x64-ubuntu-16.04-2
<IP_ADDRESS>
openjdk 1.8.0_131

ci.adoptopenjdk.net
<IP_ADDRESS>
openjdk 1.8.0_131

test-macincloud-macos1010-1
<IP_ADDRESS>
java version 1.8.0_131

test-macincloud-macos1010-2
<IP_ADDRESS>
java version 1.8.0_131

test-packet-x64-ubuntu-16.04-1
<IP_ADDRESS>
openjdk 1.8.0_131

test-packet-x64-windows-2012r2-1
<IP_ADDRESS>
java version 1.8.0_131

test-scaleway-x64-ubuntu-16.04-1
<IP_ADDRESS>
openjdk 1.8.0_131

Nagios Server
<IP_ADDRESS>
openjdk 1.8.0_131

ansible.adoptopenjdk.net
<IP_ADDRESS>
openjdk 1.8.0_131

openjdk-api-server
<IP_ADDRESS>
openjdk 1.8.0_131

keybox.adoptopenjdk.net
<IP_ADDRESS>
openjdk 1.8.0_131

@bblondin do you reckon we are good to update jenkins to the new version then?

upgraded jenkins, let's see how it goes this time


Upgrade yaml package

What this PR does / why we need it:
This PR upgrades cspell, fork-ts-checker-webpack-plugin and add cosmiconfig resolution in order to upgrade the package yaml version. The main reason the older version of yaml was used was due to a transitive dependency of an older version of cosmiconfig.
fork-ts-checker-webpack-plugin and cspell were on older versions requiring an older version of cosmiconfig.
fork-ts-checker-webpack-plugin and cspell were updated, but finally @emotion/css still used an older version of cosmiconfig. So the latest version of cosmiconfig was added to resolutions.
Which issue(s) this PR fixes:

Fixes https://github.com/grafana/oss-plugin-partnerships/issues/465
Special notes for your reviewer:
Is the following message during yarn install any issue?
Resolving packages...
warning Resolution field<EMAIL_ADDRESS>is incompatible with requested version<EMAIL_ADDRESS>warning Resolution field<EMAIL_ADDRESS>is incompatible with requested version<EMAIL_ADDRESS>
I sanity checked this locally and saw no issues.
Thank you Kevin and Ida for the help!

Sorry apparently a higher version of yaml was needed https://github.com/grafana/iot-sitewise-datasource/pull/253


First 10 Fibonacci numbers are 1, 2, 3, 5, 8, 13, 21, 34, 55, 89.

According to the problem description 144 is the 11th term in our Fibonacci series.
Also the variable i in for loop should start from 3 as 1 and 2 are our first and second, fibonacci numbers respectively!
In recursion fib should be [1, 1, 2] instead of [1, 2].

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Closes #XXXXX

Hello, please look into this thoroughly.


Install and start C* using ctool

This is without using cstar_perf and running fine for test2.yaml successfully. There needs to be a change in both updateConf() and readClusterLogs() for ctool.
Also, following changes needs to be made in cassandra.yaml before we scp it to the remote nodes so that they could be connected.
"rpc_address: localhost" to be changes to "rpc_address: <IP_ADDRESS>"
"# broadcast_rpc_address: <IP_ADDRESS>" just needs to be not commented

Is ctool_launch.py just copied from cstar_perf? Why not make cstar_perf a requirement somehow, so we don't have to worry about keeping in sync

Yeah for now I have just copies the ctool_launch.py as I was trying to make it work. I still would like to discuss on the usage of cstar_perf as I have some concerns of using cstar_perf.

Made the suggested changes and also move ctool_launch.py and cluster.json to ctoolbridge directory. I am assuming many of the functions might change depending on the cstar_perf requirements though.

The new code looks fine, but can you please remove ctool_launch.py from this PR? It's fine to reference, but not to upload

Also be sure to squash the commits

You still left ctoolbridge/ctool_launch.py. As discussed, that shouldn't be on github.

Got involved in squashing the commits that missed the real task.. Sorry about that. Remove the files though


updateChartData in Swift

Is it possible to use utilize update chart data in the Swift library or just the ObjC one?

Use objc One

Thank you for the quick response!


Feature request: Jinja2 variable or global way to act based on current model

Very commonly, the tags you would use for e.g. a Danbooru model vs vanilla 1.5 model are completely different. One option is to simply create different wildcard files for each, but it makes organization somewhat difficult. It would be pretty handy to be able to switch dynamically based on which model is currently active.
For Jinja2, I imagine it could look something like this:
{% if model == "waifu.cpt"}
    1girl
    2girls
    ...
    {% else %}
    one woman
    two women
{% endif %}

Even better would be a general syntax that makes it easy to simply prefix a line in a wildcard file so it gets ignored if not matching a certain model, like maybe so, imagine this was a file called styles.txt:
{@sd-v1-4,v1-5-pruned-emaonly@} half body portrait
{@arcane*, comic*@} high detail illustration
# alternate hash based lookup
{@318a302e@} high detail illustration

Obviously all pseudo syntax quickly hacked together, but regardless of how, being able to match models would be amazing!

Have a  look here: https://github.com/adieyal/sd-dynamic-prompts/blob/main/jinja2.md#environment-variables

aaaah perfect. Thank you, will give this a try! Feel free to close this issue.


[stable/prometheus-snmp-exporter] ServiceMonitor is created with wrong selector

Describe the bug
When the helm chart creates the ServiceMonitor (if enabled in values.yml) the selector of the ServiceMonitor get the wrong label to look for.
The selector looks like this:
selector:
matchLabels:
app: prometheus-snmp-exporter
It also doesn't get a namespaceSelector and at least in Rancher rke clusters with monitoring enabled that is needed. This is how I changed the ServiceMonitor manually and then it started working:
namespaceSelector:
matchNames:

prometheus-snmp-exporter
selector:
matchLabels:
app.kubernetes.io/name: prometheus-snmp-exporter

Version of Helm and Kubernetes:
Kubernetes: v1.17.4
Helm: Rancher built-in
Which chart:
stable/prometheus-snmp-exporter
What happened:
The ServiceMonitor's selector is wrong and the prometheus operator therefor doesn't pick up the snmp service.
What you expected to happen:
The ServiceMonitors selector to be what is defined in the specs for the snmp exporter service
How to reproduce it (as minimally and precisely as possible):
Rancher rke cluster->Apps->Launch->"Prometheus-Snmp-Exporter" (from helm stable)
Add
serviceMonitor.enabled: true
serviceMonitor.namespace: [THE_NAMESPACE_INSTALLED_TO]
As extra variables
Anything else we need to know:
Rancher is using helm in the background so this is behaving the same with helm install

This hasn't been fixed, but I changed to using kustomize for all my projects so not relevant for me anymore


Webpack integration

I have added webpack 5 to the runtime at build and start commands. Also i have created the dev command to run the server and watch for the changes in it. At the last point, i have fixed some dependencies that were broken as express.

Hello, once this pr is accepted shall we delete the .dist folder?

Yes, it will be re-created at build and start but it's not needed while you run the dev command anyway.


HTTP parser doesn't parse responses correctly

Describe the bug
If I do curl -I https://www.google.com for instance, it starts with
HTTP/2 200
content-type: text/html; charset=ISO-8859-1
...

You can see I used the http language here and it's marking red the first line.
Expected behaviour
It syntax highlight the HTTP response correctly
Additional notes
Found via those tweets https://twitter.com/jankomarohnic/status/1473547382143045632

As per the specific section in the troubleshooting doc, please report this in the upstream grammar repo.
Closing as this is an issue with the upstream grammar and not Linguist.

oops, opening the issue there


Small patch to add ES6 deconstructor

Just a small patch to add the noted ES6 deconstructor. Feels a little
weird after using that pattern for so long.
JSHint current has an open issue for deconstructing throwing errors.
#1941 will allow us to
remove the jshint ignore line.

CLA is valid!

Although I love destructures, let me think about this one.  I am worried a bit by the readability

@jasonmit No worries; just saw it noted in the pull request.  Wrote it up and wasn't sure myself.  Might just be something we get used to once ES6 is in all the "how-to" tutorials.

I would say this patch introduces a readability hazard

I vote close then.  I don't want to justify / maintain something we feel is odd. =]


Add way to apply changes from AvanteAsk without diff

I think i'd be useful the ability to apply () the changes on the AvanteAsk window without having to go to the diff and select it, just apply it directly.

Yes, I agree! We can simply undo if its wrong.

There is already option for this. You can set auto_apply_diff_after_generation = true in config then cA to choose all theirs.
If you just want to get the change from diff then you should use suggest instead, it is basically the same.

There is already option for this. You can set auto_apply_diff_after_generation = true in config then cA to choose all theirs.
If you just want to get the change from diff then you should use suggest instead, it is basically the same.

It's not quite what I mean, I mean after the generation, go to the chunks of code to apply them, press something like <g>(instead of <A>) and overwrite the lines directly, without having to 'choose all theirs', choose all theirs by default after pressing the <a> and then <cA>

https://github.com/yetone/avante.nvim/blob/d395aa3fea0cc24bd5c15e84aebed511ce29daa0/lua/avante/config.lua#L99

I'm not sure if this is what you mean, but: In addition to  to submit your query and produce the diff, you could also have  or something which would auto apply any changes - like an "I'm Feeling Lucky" button.
auto_apply_diff_after_generation = false
This setting is broken for me. Most of the time it outputs a different diff from which it says in the sidebar, or it will output the LAST thing I asked for instead of the current query.


Checkbox needs an initial value field and constructor.

In short, there are some cases when I need to have an initial value for a checkbox, say "true", be able to change to the value to "false" and save that value into an object later on using a different callback from a "validate" or "submit" button.
Currently, there are no good ways to do this.

Now a checkbox has constructor:
const Checkbox({
    Key key,
    @required this.value,
    this.tristate = false,
    @required this.onChanged,
    this.activeColor,
    this.checkColor,
    this.materialTapTargetSize,
  }) : assert(tristate != null),
       assert(tristate || value != null),
       super(key: key);

  /// Whether this checkbox is checked.
  ///
  /// This property must not be null.
  final bool value;

  /// Called when the value of the checkbox should change.
  ///
  /// The checkbox passes the new value to the callback but does not actually
  /// change state until the parent widget rebuilds the checkbox with the new
  /// value.
  ///
  /// If this callback is null, the checkbox will be displayed as disabled
  /// and will not respond to input gestures.
  ///
  /// When the checkbox is tapped, if [tristate] is false (the default) then
  /// the [onChanged] callback will be applied to `!value`. If [tristate] is
  /// true this callback cycle from false to true to null.
  ///
  /// The callback provided to [onChanged] should update the state of the parent
  /// [StatefulWidget] using the [State.setState] method, so that the parent
  /// gets rebuilt; for example:
  ///
  /// ```dart
  /// Checkbox(
  ///   value: _throwShotAway,
  ///   onChanged: (bool newValue) {
  ///     setState(() {
  ///       _throwShotAway = newValue;
  ///     });
  ///   },
  /// )
  /// ```
  final ValueChanged<bool> onChanged;

@required this.value

Initialial value

@required this.onChanged,

Change call back.
If you think it's not enough, please elaborate your request.

Please consider asking support questions in one of the other channels listed at http://flutter.io/support .


ABI submission for transaction data decoding

Hi, I want to submit 2 contracts' abis for data decoding

RouterV3
Chain: Optimism (10)
Contract Address: 0x89f2E8F1c8d6D7cb276c81dd89128D08fc8E3363
It's already verified on scanner and sourcify
Also you can see Safe interaction with this contract
But despite all that for some reason the contract is not decoding by Safe tx service

Create2Factory
Chain: Optimism (10)
Contract Address: 0x95345a4d55daf6864924fc8861b311b9bc860e5f
It's alsoverified on scanner and sourcify
But here is a bit different situation, because Safe decodes this contract but only partially as you can see here

It should be picked automatically, but somehow it didn't work for this case. I did it manually, sorry for the delay


Datagrid no bottom border

Select one ...  (check one with "x")
[x] bug
[ ] feature request
[ ] enhancement

Expected behavior
Datagrid should have a bottom border when summary panel is removed.
Actual behavior
When no summary is provided, the datagrid has an awkward look. There's no border on the bottom of the grid.

Angular version: 2.0.X

Clarity version:

OS and version:

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Hi @whizkidwwe1217,
Could you please provide a screenshot, or a plunker reproducing the problem?
I've been working with the datagrid for a while now, and the only "awkward" border issues that I've observed were when my browser was accidentally set to 90% Zoom.
Here's the plunker template you can use: https://plnkr.co/8TwwdL

We actually know about this. Duplicate of #217, should be fixed as part of #511.
That said, you should look at the last comment of #217, which states that we do not recommend (and will probably not go out of our way to support) datagrids without a footer. Right now it only contains pagination information but we have already several planned features, like column selection, which intend to use the remaining space.

Considering the last comment, this is a duplicate


Visual Builder: check if hover is the active mode.

Problem Description
I would like to add Hover support for styling options in the Visual Builder.
looks like CSS should be dependent on the status of the "Hover tab"

The question is: how to check if hover is the active mode?

Did you ever find the answer to this question? I would like to know this as well!


separate repository and gateway database for helm install

Summary
fix #592
Details and comments
Create 2 new databases in postgres db for gateway and repository services

Do these changes need to be made in values-ibm.yaml also?


Add "Getting Started" section to documentation

Take people through an example data file and how scoring those would work, so they have the context to go through the reference if they want.

Started in 59920bf


Table columns with confusing names

State and state transitions are confusing (State Action Status Info)

Hi @dbbaughe , can you elaborate more on this issue. Thanks

Users were getting the "State" column name confused between the Policy State (which it is) vs the Index State (i.e. is it in warm or hot on the managed service). Similar confusion around transitions and just in general the column names needed to be refreshed. That being said I believe this has already been done to a degree. They were modified and then the current work Annie is doing also further modified them so I think we can close this one out for now.


Warning for RNGoogleSigninButton on RN 0.42.2 Android

Warning: Native component for "RNGoogleSigninButton" does not exist
What's wrong?

Was a problem with some other library I was using.

hi @eshwartm how did you solve the error if you remember?

@bodaz Yes so I was using react-native-navigation and due to that I had to import this package in a different place than what is mentioned here. Not sure how that helps you.


Add icon animation for login/logout

Currently when logging in and logging out the icon changes abruptly.
Apply some CSS3 animation when state changes.

Hi there! I've tried to clone and run so that I can have a look at this icon, but I'm getting this error:
python.js:1 Uncaught ReferenceError: ace is not defined
    at Object../node_modules/brace/mode/python.js (python.js:1)

What do you recommend?

I guess its due to SmartEditor, try cloning from skipeditor branch.


[WIP] Use consistent margins around content elements

Add top/bottom margin to all content elements - except for position
full to ensure the section backdrop does not become visible
above/below full width elements in single element sections.
REDMINE-17672

Coverage remained the same at ?% when pulling 4e6cdd05400abd0c8a1b4691d4ff03ab65034235 on tf:content-element-margins into 351d7c7a04d3776102ebcfe513cb57279a36cc67 on codevise:master.


can't localize BootstrapBlazor.Components.TableFilter

Which class is this unit test associated with?
For some reason, IStringLocalizer<BootstrapBlazor.Components.TableFilter> does not find and localize my lines in ru.json.

{
"BootstrapBlazor.Components.TableFilter": {
"ClearButtonText": "Сброс",
"FilterButtonText": "Фильтр",
"BoolFilter.AllText": "Все",
"BoolFilter.TrueText": "True",
"BoolFilter.FalseText": "False",
"GreaterThanOrEqual": "GreaterThanOrEqual",
"LessThanOrEqual": "LessThanOrEqual",
"GreaterThan": "GreaterThan",
"LessThan": "LessThan",
"Equal": "Equal",
"NotEqual": "NotEqual",
"Contains": "Contains",
"NotContains": "NotContains",
"EnumFilter.AllText": "All",
"NotSupportedMessage": "Unsupported filter type, Please customize the filter use FilterTemplate"
}
}

My test repo: https://github.com/Dimasikkk1/MP1TestRepo
I use BootstrapBlazor 8.0.7-beta03

@Dimasikkk1 could you provider a mini-project for repro this issue?

@Dimasikkk1

builder.Services.AddBootstrapBlazor(localizationConfigure: options =>
{
    options.AdditionalJsonAssemblies = [typeof(App).Assembly];
});

@Dimasikkk1
The next version will not need to add this. v8.0.7

@Dimasikkk1 you can upgrade the package to v8.1.0


Collection deleted when selected and mouse dragged to left

Describe the bug
In the Collection window, if you select the Collection, hold the mouse button down and drag to the left, the Collection is deleted.
To Reproduce
Steps to reproduce the behavior:

Go to the Collection window
Select a Collection
As the Collection is selected, hold down the left mouse button
Drag to the left
The Collection is deleted.

Expected behavior
At least a warning popup should be displayed, if this behavior is correct.
Screenshots

Desktop (please complete the following information):

OS: Windows 11
Version 22H2

Additional context
Is there a way to recover the deleted collection?  This is not a behavior that I am expecting.  If the Collection was moved somewhere instead, where is it.  I have had to recreate work because this happened inadvertently.

@Mayo-API-Management we just tried this scenario, the collection is not actually deleted.
when a collection is dragged out of the collection window, it doesn’t get deleted but may be moved into another collection as a subfolder if the mouse is released within the window. We're working on a fix that will add a popup to confirm the destination folder ensuring the collection is only moved once confirmed. This update will be included in the next minor version.
For now, please search in other collections, and you should be able to find the collection you think was deleted.
While trying this, we also found a minor issue where the search function doesn’t include subcollections. We're fixing that as well. In the meantime, you can manually expand collections to search for it.
Please let us know if you were able to locate the collection!

@Mayo-API-Management This is fixed now. Please update to latest (V#1.0.67).
Fix : You will get a confirmation popup when moving collections around.


⚠ Bofrost.de has degraded performance

In b361cfd, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1031 ms

Resolved: Bofrost.de performance has improved in 0845787.


Add a version number

Is your feature request related to a problem? Please describe
When reporting an issue, users may simply have an older version of the cli that is bugged or does not have the requested feature, but the cli in its latest version may no longer bugged or has the feature. I would like the CLI to have versioning.
Describe the solution you'd like
The version should be able to be printed out via argparse 'version' action: https://docs.python.org/3/library/argparse.html#action

Added #21 to fix this. Please review and merge. It is a lightweight change.


brew installation does not work

Description

brew install layer5io/mesheryctl does not work for me. Nothing specific happens. I see no mesheryctl binary in brew list
Expected Behavior

expect mesheryctl version to work!
Screenshots

Environment:

Host OS: Mac OS X 10.15.7 x86_64
Meshery Version: N/A
Brew: Homebrew 2.5.11

[Optional] To Reproduce
Steps to reproduce the behavior:

use brew install layer5io/mesheryctl
Tip on mesheryctl version

[Optional] Additional Context

Maybe I am the only only one having this issue?

@jiraguha thank you for raising this issue. Will you paste the output of the brew install layer5io/mesheryctl command here?

Are you sure you tapped the layer5io/tap before installing?

Ho, sorry, I had more logs shown the first time I tried. Now I have only:
❯ brew install layer5io/mesheryctl
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask-versions).
==> Updated Casks
appcode-eap

not sure it help!

Are you sure you tapped the layer5io/tap before installing?

@jiraguha

@kushthedude Meshery's instructions include do not include the tap command explicitly, but are trying to be as concise as possible and use layer5io in the install command to assist with the potentially missing tap.

@kushthedude. I have just tapped and nothing! In my previous attempt I did... but If tap was needed I would assume to have a specific error showing that I need to tap?

@jiraguha if you run brew tap layer5io/homebrew-tap, then install, does this help?

@jiraguha if you run brew tap layer5io/homebrew-tap, then install, does this help?

No :-/
I moved to the bash installation which works :-)

@jiraguha Please do
brew tap layer5io/tap
brew install mesheryctl

Great this works! Even if I have conflic with my bash installation which was waited. Thanks.
Maybe the doc should include tap process.

Thanks for confirming @jiraguha , I guess we need some docs update.
/cc @leecalcote @chandrashritii

Thank you, gents! Yes, indeed. @chandrashritii, will you kindly have issues opened for meshery.io, docs.meshery.io and layer5.io/meshery to include the tap command?


🎨 Added folders.

Changed folder structure.

We need to bump the version number as per the readme.


feat: refactor order-detail component to be CMS-driven Part 2

Closes #1624

That's a proposal for refactor of Order Details Page.
@Platonn
@dunqan
@tobi-or-not-tobi
Please give me feedback if you like this solution. I will update unit tests at the end.

After discuss with Tobias and Staszek I elaborated this solution.


Host-Agent process not existing when Installer initialization failed

What steps did you take and what happened:
Any errors returned by Installer.New are only logged in main.go but the process should also exit.
E0419 05:52:10.009133   15591 checks.go:38]  “msg”=“Failed pre-requisite packages precheck” “error”=“required package(s): [socat conntrack] not found”
E0419 05:52:10.009238   15591 main.go:206]  “msg”=“failed to instantiate installer” “error”=“precheck failed”

and later process failed with

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0xca0fe7]

What did you expect to happen:
Host-Agent process should exit when the Installer initialization failed.

Hey hii @dharmjit .
I was going through this issue and would like to work on this.
What I understood is that :
This funtion returns the error whenever it encounters it.
That error gets logged in the main.go file
But apart from logging, the process should also exit.
Which process are you exactly talking about here ?? Like I see that New function returns / doesn't proceed further execution whenever it encounters any error.

I mean to exit the host-agent process i.e. return if error in Installater initialization.

ok Idk if my assumption is right or not.
we just need to write return here if error is encountered :||
Is it that simple ??
Idk I am assuming this only because what I see now is error is just logged here and process continues. we just need to return whenever we encounter error. Means just a return statement after this line

we just need to write return

Yup. Sounds about right to me. What would be good though is to have an integration test for this.

Okay sounds interesting.
Can someone assign this to me. Will work on this :))

/assign @VibhorChinda

The test can go in this file - host-agent-test.go
Here are some notes on testing tools and techniques that we use / follow - https://github.com/vmware-tanzu/cluster-api-provider-bringyourownhost/blob/main/CONTRIBUTING.md#writing-tests

do we really need to write test

Most of the times, the answer is yes :)
This is a very important workflow. I know its a single line fix. But it has repercussions if it remains untested. The idea is to have installer return nil if something goes wrong in initialization - mostly pre-checks failing.
Pre-checks are something that should be detected early on in the lifecycle of the agent. Like you rightly pointed, it returns false in some condition later on - and then we have to revert the state etc. All of this adds to the complexity and rolling back may not be cheap.
These checks were introduced to fail fast if something is not right. Hope that answers your question. Happy to debate further as to why we need a test for this 😄

Hey @anusha94 thanks for such long reply. Now I know more why such tests are important for projects and why they should be written.
But the main thing where I am stuck is what test should I write which validates my changes.
Like all I could have thought about was to write an else condition for this if block and return nil or condition false.
Which is already there. So I could not think of any other way of testing it.
Some help will be good :)) Thanks.

@sachinkumarsingh092 whenever you're free. Can you help me here too please.
Thanks

Apologies for responding late here, One test case that I could think of is "should return when installer initialization fails due to empty downloadpath arg"

Thanks @dharmjit for giving some headway.
Will try to implement this :))


Add getProcessMemoryUsed iOS

Works on iOS as per OSX, same includes and calls.

Ouch. That shouldn't be there. Reverted the non-iOS lines.


Pixiu Console

What would you like to be added:
Pixiu控制面板

[ ] 支持API粒度的配置
[ ] TBD

Why is this needed:

正在开发中。


Requesting old events not returning anything

An event request, sent to wss://relayer.fiatjaf.com:
["REQ","p380vv138",{"ids":["b6a04d778cf5d991583b51112b78301f5dd8fe09824a12fee2b99281ffa879d3"]}]

It returns nothing - no notice, no nothin'. The same exact request, sent to wss://nostr-pub.wellorder.net (which runs nostr-rs-relay) gets me this result:
[
  "EVENT",
  "p380vv138",
  {
    "id": "b6a04d778cf5d991583b51112b78301f5dd8fe09824a12fee2b99281ffa879d3",
    "pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
    "created_at":<PHONE_NUMBER>,
    "kind": 1,
    "tags": [
      [
        "p",
        "b0635d6a9851d3aed0cd6c495b282167acf761729078d975fc341b22650b07b9"
      ],
      [
        "p",
        "e668a111aa647e63ef587c17fb0e2513d5c2859cd8d389563c7640ffea1fc216"
      ],
      [
        "e",
        "195418da26999c9ea0d3b594079c897c747ca0f3f16917e699aa739abac8243e"
      ],
      [
        "e",
        "8ea3f69a20e8630fc9f346a6dc635b1c3e6765f0e2561ced3439394098c541b4"
      ]
    ],
    "content": "what do you mean by \"branle is not for blog post\"? there is a client-side character limit on every note created on branle, but that doesn't prevent branle from displaying larger notes. and I think it is better for everybody is comments on a blog post can be made from branle.",
    "sig": "2250bd3f5cbcda6b6ad123108214195b04b479b3a36ea4486f1e422af872d8df7b1d6c9ced61cfa8e02a37fdbd7f57cb96d1ad7be61e673ac638316f6c5ca9a0"
  }
]

These requests were sent using Rust CLI client (https://github.com/vinliao/clust). This bug only happens whenever client requests old event - recent events works fine.

That is simply because wss://relayer.fiatjaf.com doesn't have that event. Either it had it but deleted it as part of its normal eviction policy or it was never published to that relay in the first place. We can't ever expect all relays to have all events.

That event appeared on https://branle.netlify.app. Is it because it pulled that specific event from other relays? (By the way, eviction policy seems to be about auto-deleting events, can you point me somewhere to read about that? It doesn't seem to be a part of NIP-01...)

No, that's part of relayer.fiatjaf.com's internal policy, it's out of the spec.
branle.netlify.app can talk to any relay, not only relayer.fiatjaf.com. It comes with some relays by default but you can change.

Understood. Thank you.


producer restore (question)

After doing a restore on the producer side, is there anyway to get the data from the producer (back into my domain objects)?
For example, if my app allows CRUD operations on a List<Person> that it holds in memory. And my producer writes that out (upon any change to my List<Person> I give the list to hollow to write/produce). All is fine.
But now, when I restart my app, I do a producer restore, so the producer is back up-to-date, but is there anyway to load my List<Person> back up? Or do I have to create a consumer (in my producer project) that can consume things back (only on startup) just to get my List<Person> hydrated again.
Because if I don't load my List<Person> back up, the next time a CRUD operation occurs, I'll basically be wiping out my data when I give the List<Person> to the producer to write/produce.

However, I think you could use the Incremental Producer and write deltas.
For example, let's say you have this POJO:
public class Person {
   public long id;
   public String name;

   public Person(long id, String name) {
     this.id = id;
     this.name = name;
   }
}

If you write to Hollow a List of Person let's say:
HollowIncrementalProducer incrementalProducer = new HollowIncrementalProducer(producer);
incrementalProducer.addOrModify(new Person(1, "Roberto"));
incrementalProducer.addOrModify(new Person(2, "Gina"));
incrementalProducer.runCycle();

This will write those two person to Hollow. Then if you restart your producer and restore, you would have those.
And then if you write more persons:
HollowIncrementalProducer incrementalProducer = new HollowIncrementalProducer(producer);
incrementalProducer.addOrModify(new Person(3, "MyName"));
incrementalProducer.addOrModify(new Person(4, "Hollow"));
incrementalProducer.runCycle();

It will keep the old records and store the new ones because the incremental producer attaches all the objects from the previous cycle (https://github.com/Netflix/hollow/blob/b35bb2a7050fa824a255021669f1fd41a2792659/hollow/src/main/java/com/netflix/hollow/api/producer/HollowIncrementalProducer.java#L83) then removes and adds records for the new state (delta).
Don't know if the above is doable on your use case, if you have something like
public class OtherClass {
   public Set<Person> persons;
}

And you want to maintain the state of the Set, then I think you would need to explore if the incremental is doable for that.. haven't tried that, I'd suggest asking in the Gitter room (https://gitter.im/Netflix/hollow?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)... perhaps @dkoszewnik or @toolbear have better ideas for this

@podollb
Thanks for your question. It's a good question, one we've encountered from other teams at Netflix. It may indicate a gap in our documentation.
In general, the design of Hollow assumes your producer has a source-of-truth other than the Hollow data states it produces, i.e. other than itself. The design of HollowProducer is geared in this way, specifically the requirement that you populate the entire dataset every cycle (and Hollow determines what, if anything, has changed).
The assumption also manifests with the POJO-based data model used on the producer. Hollow provides no direct mechanism for rehydrating producer POJOs from a consumed data state. Our biggest use-case, and one of the reasons Hollow exists, is because we have datasets large enough that keeping the entire data state as POJOs in memory is unwieldy. The assumed pattern is to iterate over your source of truth, mint a POJO on the fly, add it to the write state, and discard the POJO.
Another way of saying this is that Hollow is a disseminated total cache and, like other caching solutions, they are typically backed by some other source of truth. Unlike other caching solutions, consumers have the entire dataset in memory so it's easy to start thinking of Hollow like a database and its own source-of-truth. And, just as you could use a caching solution (if it's durable) as a source of truth, you can use Hollow that way, but it is going against the grain somewhat.
A potential gotcha of using the producer as it's own source of truth is eventual consistency on your announced states. If, for instance, every cycle rehydrated POJOs from the previously announced state, it's possible delays in announcement propagation will get you out of sync. Technically this is possible even for the normal restore case; we assume that a restart or new instance start is long enough that announcement will be consistent by the time we're ready to restore.
As @rpalcolea mentions, the HollowIncrementalProducer makes some inroads on the producer-as-source-of-truth use-case, though that isn't our driver for the feature. It's a beta API subject to change, but you can achieve similar results following the advice under Delta-Based Producer Input. Either approach are good fits when you want to do the bookkeeping yourself of what's changed versus relying on Hollow to figure it out.
I'm going to close this for now. Feel free to reply with more questions and re-open if you don't feel we answered you. As mentioned, we're available to chat on Gitter as well.


[Question] Would you support less too?

Question
Thanks for making this awesome library. Is there any chance that you would be interested working on a @styled-jsx/plugin-less module? I know not many people use less, but for projects which use antd, less is still somehow needed. There is already one https://github.com/erasmo-marin/styled-jsx-plugin-less but when I tried it, it doesn't work.

Hey @dzcpy  👋,
This package is about supporting sass with styled-jsx, so there is no plan to support less, please open a issue in https://github.com/erasmo-marin/styled-jsx-plugin-less.
Or maybe you could fork the repo, and try to maintain a plugin to support less with styled-jsx yourself.


Dynamic link does not work if it is opened from facebook

Bug report
I have been working with dynamic links for open a specific product of my app. When I tried to share the link in Facebook, the link redirects to the play store even if you have the application installed. The problem only occurs from Android in IOS everything is OK. I think that the problem happens by Facebook InAppBrowser
Steps to reproduce
Steps to reproduce the behavior:

Create a dynamic link
Share dynamic link in a Facebook post

Expected behavior
Links redirect you to Play Store even if you have the app installed. It should redirect to app If the app has already been installed
Additional context
In App Browser does not recognize If the app is already installed

Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
[✓] Flutter (Channel stable, 2.0.5, on macOS 11.2.3 20D91 darwin-arm, locale es-419)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.55.2)
[✓] Connected device (2 available)

• No issues found!

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
Dart SDK 2.12.3
Flutter SDK 2.0.5
appie_app 1.2.2+8

dependencies:
- adaptive_dialog 0.10.0+5 [animations flutter meta]
- algolia 1.0.0+1 [meta http uuid]
- animations 2.0.0 [flutter]
- badges 1.2.0 [flutter]
- bot_toast 4.0.1 [flutter]
- bubble_lens 1.0.3 [flutter]
- cached_network_image 3.0.0 [flutter flutter_cache_manager octo_image]
- circular_profile_avatar 2.0.1-nullsafety [flutter cached_network_image]
- cloud_firestore 1.0.5 [cloud_firestore_platform_interface cloud_firestore_web firebase_core firebase_core_platform_interface flutter meta]
- connectivity_wrapper 1.0.4 [flutter provider]
- content_placeholder 0.1.0 [flutter shimmer]
- cupertino_icons 1.0.2
- dartz 0.9.2
- day_night_time_picker 1.0.1 [flutter]
- dotted_line 3.0.0 [flutter]
- expandable 5.0.1 [flutter]
- firebase_analytics 8.0.0 [firebase_analytics_platform_interface firebase_analytics_web firebase_core flutter meta]
- firebase_auth 1.0.1 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 1.0.3 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_crashlytics 2.0.0 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
- firebase_database 6.1.2 [firebase_core flutter]
- firebase_dynamic_links 2.0.0 [firebase_core flutter]
- firebase_messaging 9.0.0 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- firebase_performance 0.7.0 [firebase_core flutter]
- firebase_storage 8.0.0 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter]
- flare_flutter 3.0.0 [collection flutter meta]
- flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine]
- flutter_cupertino_date_picker_fork 1.0.3 [flutter]
- flutter_image_compress 1.0.0 [flutter]
- flutter_keyboard_visibility 5.0.1 [meta flutter_keyboard_visibility_platform_interface flutter_keyboard_visibility_web flutter]
- flutter_localizations 0.0.0 [flutter intl characters clock collection meta path typed_data vector_math]
- flutter_secure_storage 4.1.0 [meta flutter]
- flutter_staggered_grid_view 0.4.0 [flutter]
- flutter_swiper 1.1.6 [flutter transformer_page_view flutter_page_indicator]
- flutter_tags 0.4.8+2 [flutter]
- flutter_vibrate 1.0.0 [flutter]
- geocoding 2.0.0 [flutter geocoding_platform_interface]
- geoflutterfire 2.2.1 [flutter cloud_firestore rxdart]
- geolocator 7.0.3 [flutter geolocator_platform_interface geolocator_web]
- get_storage 2.0.2 [flutter get path_provider]
- google_maps_flutter 2.0.3 [flutter flutter_plugin_android_lifecycle google_maps_flutter_platform_interface]
- google_nav_bar 5.0.3 [flutter]
- great_circle_distance2 1.0.1+1
- image 3.0.2 [archive meta xml]
- image_cropper 1.4.0 [flutter]
- image_picker 0.7.4 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface image_picker_for_web]
- line_awesome_flutter 1.0.1 [flutter]
- location 4.1.1 [flutter location_platform_interface location_web meta]
- material_segmented_control 2.1.1+1 [flutter]
- modal_bottom_sheet 2.0.0 [flutter]
- month_picker_dialog 0.4.0 [flutter flutter_localizations intl rxdart]
- page_transition 1.1.7+6 [flutter]
- permission_handler 6.1.3 [flutter meta permission_handler_platform_interface]
- provider 5.0.0 [collection flutter nested]
- rive 0.7.2 [collection flutter graphs meta]
- rive_splash_screen 0.0.1 [rive_loading flutter]
- share 2.0.1 [meta mime flutter]
- styled_text 1.0.3+4 [flutter xmlstream]
- syncfusion_flutter_sliders 18.3.35-beta [flutter intl syncfusion_flutter_core]
- transparent_image 2.0.0
- url_launcher 6.0.3 [flutter url_launcher_platform_interface url_launcher_linux url_launcher_macos url_launcher_windows url_launcher_web]

dev dependencies:
- flutter_launcher_icons 0.9.0 [args image path yaml]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]

transitive dependencies:
- archive 3.1.2 [crypto path]
- args 2.0.0
- async 2.5.0 [collection]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.1.0
- charcode 1.2.0
- clock 1.1.0
- cloud_firestore_platform_interface 4.0.1 [collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 1.0.5 [cloud_firestore_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- collection 1.15.0
- crypto 3.0.1 [collection typed_data]
- fake_async 1.2.0 [clock collection]
- ffi 1.0.0
- file 6.1.0 [meta path]
- firebase 9.0.1 [http http_parser js]
- firebase_analytics_platform_interface 2.0.0 [flutter meta]
- firebase_analytics_web 0.3.0 [firebase firebase_analytics_platform_interface flutter flutter_web_plugins meta]
- firebase_auth_platform_interface 4.0.0 [firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 1.0.2 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_platform_interface 4.0.0 [flutter meta plugin_platform_interface]
- firebase_core_web 1.0.2 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_crashlytics_platform_interface 3.0.0 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_platform_interface 2.0.0 [firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 1.0.1 [firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta]
- firebase_storage_platform_interface 2.0.0 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_storage_web 1.0.1 [async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http js meta]
- flutter_blurhash 0.6.0 [flutter meta pedantic]
- flutter_cache_manager 3.0.1 [clock collection file flutter http image path path_provider pedantic rxdart sqflite uuid]
- flutter_keyboard_visibility_platform_interface 2.0.0 [flutter meta plugin_platform_interface]
- flutter_keyboard_visibility_web 2.0.0 [flutter_keyboard_visibility_platform_interface flutter_web_plugins flutter]
- flutter_page_indicator 0.0.3 [flutter]
- flutter_plugin_android_lifecycle 2.0.1 [flutter]
- flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math]
- geocoding_platform_interface 2.0.0 [flutter meta plugin_platform_interface]
- geolocator_platform_interface 2.0.2 [flutter plugin_platform_interface vector_math meta]
- geolocator_web 2.0.3 [flutter flutter_web_plugins geolocator_platform_interface]
- get 4.1.4 [flutter]
- google_maps_flutter_platform_interface 2.0.4 [flutter meta plugin_platform_interface stream_transform collection]
- graphs 1.0.0
- http 0.13.1 [http_parser meta path pedantic]
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- image_picker_for_web 2.0.0 [image_picker_platform_interface meta flutter flutter_web_plugins]
- image_picker_platform_interface 2.1.0 [flutter meta http plugin_platform_interface]
- intl 0.17.0 [clock path]
- js 0.6.3
- location_platform_interface 2.1.0 [flutter meta plugin_platform_interface]
- location_web 3.0.0 [flutter flutter_web_plugins http_parser js location_platform_interface meta]
- matcher 0.12.10 [stack_trace]
- meta 1.3.0
- mime 1.0.0
- nested 1.0.0 [flutter]
- octo_image 1.0.0+1 [flutter flutter_blurhash]
- path 1.8.0
- path_provider 2.0.1 [flutter path_provider_platform_interface path_provider_macos path_provider_linux path_provider_windows]
- path_provider_linux 2.0.0 [path xdg_directories path_provider_platform_interface flutter]
- path_provider_macos 2.0.0 [flutter]
- path_provider_platform_interface 2.0.1 [flutter meta platform plugin_platform_interface]
- path_provider_windows 2.0.0 [path_provider_platform_interface meta path flutter ffi win32]
- pedantic 1.11.0
- permission_handler_platform_interface 3.1.3 [flutter meta plugin_platform_interface]
- petitparser 4.1.0 [meta]
- platform 3.0.0
- plugin_platform_interface 2.0.0 [meta]
- process 4.2.1 [file path platform]
- rive_loading 0.0.4 [rive flutter]
- rxdart 0.26.0
- shimmer 1.1.2 [flutter]
- sky_engine 0.0.99
- source_span 1.8.0 [charcode collection path term_glyph]
- sqflite 2.0.0+3 [flutter sqflite_common path]
- sqflite_common 2.0.0+2 [synchronized path meta]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- stream_transform 2.0.0
- string_scanner 1.1.0 [charcode source_span]
- syncfusion_flutter_core 18.3.35 [flutter pedantic]
- synchronized 3.0.0
- term_glyph 1.2.0
- test_api 0.2.19 [async boolean_selector collection meta path source_span stack_trace stream_channel string_scanner term_glyph matcher]
- transformer_page_view 0.1.6 [flutter]
- typed_data 1.3.0 [collection]
- url_launcher_linux 2.0.0 [flutter]
- url_launcher_macos 2.0.0 [flutter]
- url_launcher_platform_interface 2.0.2 [flutter plugin_platform_interface]
- url_launcher_web 2.0.0 [url_launcher_platform_interface meta flutter flutter_web_plugins]
- url_launcher_windows 2.0.0 [flutter]
- uuid 3.0.4 [crypto]
- vector_math 2.1.0
- win32 2.0.5 [ffi]
- xdg_directories 0.2.0 [meta path process]
- xml 5.1.0 [collection meta petitparser]
- xmlstream 0.12.0
- yaml 3.1.0 [collection source_span string_scanner]

This is reproducible with firebase_dynamic_links: ^2.0.2 but it looks like it could be an issue with the android sdk?

flutter doctor -v
[√] Flutter (Channel master, 2.3.0-1.0.pre.168, on Microsoft Windows [Version 10.0.19041.928], locale et-EE)
    • Flutter version 2.3.0-1.0.pre.168 at C:\Development\flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 93242d7548 (5 hours ago), 2021-04-28 19:19:05 -0700
    • Engine revision e7939e091e
    • Dart version 2.14.0 (build 2.14.0-48.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\marku\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\201.7199119\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.7)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.7.30621.155
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\201.7199119
    • Flutter plugin version 55.1.1
    • Dart plugin version 201.9380
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] IntelliJ IDEA Ultimate Edition (version 2021.1)
    • IntelliJ at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\211.6693.111
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart

[√] Connected device (4 available)
    • SM G950F (mobile) • ce12171c51cc001c03 • android-arm64  • Android 9 (API 28)
    • Windows (desktop) • windows            • windows-x64    • Microsoft Windows [Version 10.0.19041.928]
    • Chrome (web)      • chrome             • web-javascript • Google Chrome 90.0.4430.93
    • Edge (web)        • edge               • web-javascript • Microsoft Edge 90.0.818.46

• No issues found!

Any update here? Facing the same issue

Unfortunately, there is nothing Flutterfire can do about this issue as outlined here.

Adding the Flutter Facebook SDK plugin solved it for me.


TextField should only set EditableText.cursorOffset for iOS

Fixes #27626
Restored the Material textfield tests that were changed in #24876.
Cleaned up the platform-specific configuration code in _TextFieldState.build().

LGTM

cc @jslavitz


fix #1417

Allow JOIN 0 with a confirmation code

yeah so long as we DON'T allow e.g.   /join #1234,0   to do that part-all-channels thing, and we require that confirmation code, that sounds fine


Add bulma to frameworks section

Nice little framework I stumbled upon a while ago; has a nice project page and documentation.

Thank you, Danny! 😄 🍻 😃


[question] Custom Aztec QR Code

Is possible to create a custom Aztec QR Code with this lib?

No. Only QR codes


challec

Baker ID: 1165

confirmed:B1
node:f831ab99788ead80

confirmed:ID1
account1:3obtF7qUPBVZABXAoMWEan2uDNPWwLiL8q6BERxLDNXfidNKRi
account2:4XE4fysx2Frt3zynV7tG9fvXuM7Q2gTJWjA6aqmuByk28ngfRE

confirmed:EI6

confirmed:EI6

It appears many of your submissions have duplicates which confused us. Given I've found standalone submissions for all the other items, I've untagged everything, and removed prior comments. We will review your individual submissions instead.

It appears many of your submissions have duplicates which confused us. Given I've found standalone submissions for all the other items, I've untagged everything, and removed prior comments. We will review your individual submissions instead.


Adobe XD template still on 1806

When it will be updated to 1810?

Hi @WallSoGB -- can you tell me which specific page in our docs you're referring to? This will help me route your question to the correct author. Thank you!

Hi, it should be there, don't know why it was sent here instead.

If you still need need a doc then that's it.


Cannot get precheck code for error case

Description
After execute transaction, I cannot get precheck code from HError for error cases.
Steps to reproduce
Here is an example code with HederaPrecheckStatusError but HederaPrecheckStatusError is not defined in the sdk yet.
do {
    let response = try await TransferTransaction()
        .tokenTransfer(tokenId, accountId1, -10)
        .tokenTransfer(tokenId, accountId2, 10)
        .freezeWith(client)
        .sign(privateKey1)
        .execute(client)
        .getReceipt(client)
} catch let error as HError {
    if let precheckError = error as? HederaPrecheckStatusError { // Cannot use HederaPrecheckStatusError
        // Handle precheck status errors
        let status = precheckError.status
        switch status {
        case .invalidAccountId:
            print("Invalid Account ID")
        case .tokenNotAssociatedToAccount:
            print("Token not associated to account")
        // Add other cases as needed
        default:
            print("Other precheck status error")
        }
    } else {
        // Handle other error cases
        print("Other error: \(error)")
    }
}

Additional context
No response
Hedera network
mainnet
Version
0.15.0
Operating system
macOS

We may want to tag this an an enhancement

@mgarbs Sure. Thanks for your explanation in discord.

Hi! Just wanted to let you know that it is absolutely doable, just not in the way you might expect currently
Currently errors are defined as a struct with an enum inside:
https://github.com/hashgraph/hedera-sdk-swift/blob/8f326c2765fe69d66d6c59ce6788551107293054/Sources/Hedera/HError.swift#L108
you can currently switch/if case on the following cases to perform the expected behavior:
https://github.com/hashgraph/hedera-sdk-swift/blob/8f326c2765fe69d66d6c59ce6788551107293054/Sources/Hedera/HError.swift#L84-L88
Note that this was only added as of 0.15, although that is the version that you wrote down.

@izik1 Thank you for your good guide. It worked like a charm 👍 👍


[Bug] Deleting account updates repository time

Gitea version (or commit ref): 2e3475f
Git version: not relevant
Operating system: not relevant
Database (use [x]):

[ ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[x] Yes (provide example URL)
[ ] No
[ ] Not relevant

Log gist:

Description
Every repository starred or watched by an user that deletes his Gitea account automatically updates its "Updated x x ago", and so it becomes first in "Explore" tab. That's odd, especially when there are a lot of repositories.
Screenshots
None

@cezar97
Thanks for reporting. Do you accidently know if this is a regression from 1.5-rc?

Can't get hands on a stable release at the moment so I've just test it on try.gitea.io. I'm sorry.


timeGetTime breaks the Time class comparison operators after very long machine uptime

see : https://www.freeallegiance.org/forums/index.php?s=&showtopic=68187&view=findpost&p=700567
possible solutions:

add a check at start and warn user to reboot his computer if uptime >24 days for instance
get a timeGetTime  reference when program starts and use it as a '0' for every call to timeGetTime
use c++11 chrono lib

BT has a fix - once it's tested & validated, cherry pick the commit.


Time sync is off when native TZ is not CDT

Can Confirm this is an issue
I have the timezone of EST(live in  PA)
When I enter in, say, 8:30 AM. I am sent to 9:30 AM
A friend of mine is having the same issue, but is 2 hours off,. he lives in CA

any updates?


Handling Large File Uploads and Timeouts

How do we handle a large upload from client(s), where the ASP.NET Core request is timing out.
Everything I've seen says it's not possible to change the maximum request timeout?

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

ID: 9a5cfa38-0e6c-4346-dafc-84ea5c513fcf
Version Independent ID: c6787f0f-3e9a-6efb-0e6e-5ccb957d3f4a
Content: File uploads in ASP.NET Core
Content Source: aspnetcore/mvc/models/file-uploads.md
Product: aspnet-core
Technology: aspnetcore-mvc
GitHub Login: @ardalis
Microsoft Alias: riande

You can see some sample code here: https://github.com/ardalis/DevBetterWeb/commit/25f9169a061d9ebc19553f6ee21587c602b6cc4f
Specifically, you want these bits:
.UseKestrel(options =>
                {
                    options.Limits.MaxRequestBodySize = Constants.MAX_UPLOAD_FILE_SIZE; //500MB
                });

and on your controller action:
[RequestSizeLimit(Constants.MAX_UPLOAD_FILE_SIZE)]
        public async Task<IActionResult> OnPost(List<IFormFile> files)

Does that help? It worked for me.

@ardalis We've got those, the problem is we have a 250Mb file which is fine when the user's are on a quick connection...when they're not, we get timeouts all over the show so the client can't continue.

Are you hosting on IIS? Have you set the timeout there? See https://medium.com/aspnetcore/increase-the-timeout-of-asp-net-core-application-9a7b4f6deebf for example.

Alas no, it's self-hosted - locally - and running as a docker container when it's live.
It's a real problem I've not found a solution too yet.

I'd file an issue in the aspnet repo, then, where the product team will see it, in addition to here (you can reference this one).

Good shout, thanks @ardalis.

We have the limits covered AFAIK on the PR for the File Uploads topic ...
https://github.com/aspnet/AspNetCore.Docs/pull/12344
Engineering is supposed to look at that PR in a bit and will let me/us know where it goes off the rails.
There was one limit that I don't think has been fully resolved, but I don't think it applies to your scenario. I'll just link it here for you to :eyes: and confirm that it doesn't apply. I don't recall the details or workarounds for it ...
https://github.com/aspnet/AspNetCore/issues/2711
Since we have an open PR with massive updates for this topic, I'm going to close this issue. If you look at the content on the PR and have feedback, provide it on the PR. I'll take a look over there. At the very least, placing the feedback on the PR will surface it to engineering when they review the PR. I don't have an ETA on that review tho ... it could be weeks, months, or ..... well ..... given that 3.0 is breathing down our necks .... it could be when the 🐄 come :house: ... i.e., lateer this year. :smile:

Thanks for the update @guardrex. It looks like we may need to go with another option in the mean time.


chore: add Mage-OS 1.0.2 release history

Adds Mage-OS 1.0.2 history JSON files following the examples of 1.0.0/1.0.1.

Removed 1.0.1.json history changes per feedback from Vinai, as that would impact hashes for that release.


Fix (InstallerUrl): Mullvad.Browser version 13.0

https://github.com/mullvad/mullvad-browser/issues/172
Microsoft Reviewers: Open in CodeFlow

Since the portable "installer" just extracts the portable files to the desktop and doesn't create any registry entry, should it even be included as a winget package? It can't be uninstalled and winget can't detect it after the exe extracts the files.


Remove 0.16 deprecations

I think it is time to remove old deprecations

Good to do this cleanup prior to v0.17. Thanks @tchak


WebSocket crashes during key negotiation on server side

Bugs
When building with Xcode 8.2 and running the Vapor WebClient (under XCTest) communicating with the WebServer under Vapor (running using startServers() to run it in the background), I get an Error: Array out of bounds error.
I have tracked it down to the code:
let combination = requestKey.bytes.trimmed([.space]).array + hashKey
Apparently, this generates an [Byte] and the next line of code then crashes.  Changing this to create a Data instance from the [Byte] allows the Hash code to call the ByteRepresentable code that allocates a new block and avoids this error.
The new line then reads:
let combination = Data(requestKey.bytes.trimmed([.space]).array + hashKey)

I tried to create an effective test for this issue.  Looks like my test configuration was creating some concurrency issue.  I cannot reproduce this bug stand-alone, so I am going to declare that this is my test configuration error.


Possible bug/limitation in dynamic where

Because of the way it's currently written, dynamicWhere method from Query Builder may have a hard time dealing with weird column names--those with or_ or and_. For instance, if I have a column name like or_id, a "dynamic where" call might be $model->whereOrId() and fails in a similar fashion like that of #694:
$finder = substr($method, 5);
// => where
$segments = preg_split('/(And|Or)(?=[A-Z])/', $finder, -1, PREG_SPLIT_DELIM_CAPTURE);
/**
array(3) {
  [0]=>
  string(0) ""
  [1]=>
  string(2) "Or"
  [2]=>
  string(2) "Id"
}
**/

foreach ($segments as $segment)
{
  // we can imagine what happens
}

Now does this happen in reality? Rarely, but I'd say yes, taking into account of different (spoken) languages.
Is it a bug? I'm not sure, but certainly it's a limitation.
How do we fix/improve this? I don't know, hence issue, not PR.

Don't use dynamic where calls for such "ambiguous" columns. Just use multiple where calls where the column is specified as first argument, then this is avoided.


Binary?

Can you post a working binary?

application app path is hardcoded in the code,
and limited options, better use another one
indolering, did u manage to find any good one?


Provide the option to expose the registry through https

Description
Provide a way to expose the docker registry using TLS certificates. It can be an optional setting that utilizes istio/api-gateway features.
Reasons
Some customers use tools that enforce secure access to the registry with TLS.
AC

[x] User has option to enable/disable tls communcation
[x] if istio is not installed, operator resolves the status to Warning
[x] https endpoint is visible in the status

Execution

[x] POC: manually expose docker registry via https using istio resources (document the steps in /docs/user )
[x] verify if docker CLI can be used against https exposed endpoint
[x] implement an "auto-pilot" mode : implement auto-exposure in docker registry operator

We decided to make dependency on the APIGateway module to reuse the built-in kyma-gateway and to not manage our own dnsentry, certificates, and gateway.

when I use hostPrefix configuration option than I can push to the url via docker CLI, but kubernetes cannot pull the image when scheduling a pod in arbitrary namespace (given exposed-registry-auth as imagePullSecret)
It looks as if the secret that is propagated accross namespaces doesnt have proper registry URL in the .dockerconfigjson field (it has the default url, not the one I changed via  hostPrefix option)

Also.. when using the dafult host registry-default-kyma-system I experience the same problem - image can be pushed ( by docker cli ) but not pulled.

@kwiatekus I think the problem is caused because you used the wrong registry secret. I don't know what the exposed-registry-auth is but the right one you can find in the DockerRegistry CR status. Example:
apiVersion: operator.kyma-project.io/v1alpha1
kind: DockerRegistry
metadata:
  finalizers:
  - dockerregistry-operator.kyma-project.io/deletion-hook
  name: default
  namespace: default
spec:
  externalAccess:
    enabled: true
    hostPrefix: test-registry
status:
  conditions:
  - lastTransitionTime: "2024-07-04T07:38:35Z"
    message: Configuration ready
    reason: Configured
    status: "True"
    type: Configured
  - lastTransitionTime: "2024-07-04T07:38:53Z"
    message: DockerRegistry installed
    reason: Installed
    status: "True"
    type: Installed
  externalAccess:
    enabled: "True"
    pullAddress: test-registry...
    pushAddress: test-registry...
    secretName: dockerregistry-config-external
  internalAccess:
    enabled: "True"
    pullAddress: localhost:32137
    pushAddress: dockerregistry.default.svc.cluster.local:5000
    secretName: dockerregistry-config
  served: "True"
  state: Ready
  storage: filesystem

You can follow this tutorial to make sure you do everything correctly.

dockerregistry-config-external is not propagated to every namespace. hence the problem. I schedule pod in default namespace, while the docker registry secret for external access is only available in kyma-system.

You are right. I forget about propagation.

In the latest main the status no longer contains the details how to use it (secret name and the pull/push addresses).


Add a new metric to show the number of full range compaction

Summary
Adding a new metric to show how many full range compaction is going on each host. Full range compaction takes in all the inactive log segment files and run compaction logic on top of them. It's a very slow process and consumes a lot of disk iops. Having a metric to show the number of full range compaction will provide us with more insight to the cluster.
Test
Unit test

Codecov Report
Attention: Patch coverage is 7.31707% with 38 lines in your changes are missing coverage. Please review.

Project coverage is 53.68%. Comparing base (b4f759e) to head (761f0c9).
Report is 3 commits behind head on master.

Files
Patch %
Lines

...java/com/github/ambry/store/CompactionDetails.java
0.00%
17 Missing :warning:

...java/com/github/ambry/store/CompactionManager.java
0.00%
8 Missing :warning:

...rc/main/java/com/github/ambry/store/BlobStore.java
0.00%
4 Missing :warning:

.../com/github/ambry/store/StorageManagerMetrics.java
42.85%
4 Missing :warning:

...ava/com/github/ambry/store/BlobStoreCompactor.java
0.00%
3 Missing :warning:

...om/github/ambry/store/CompactAllPolicyFactory.java
0.00%
2 Missing :warning:

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #2759       +/-   ##
=============================================
- Coverage     70.43%   53.68%   -16.76%
+ Complexity    11597     9009     -2588
=============================================
  Files           837      837
  Lines         71246    71277       +31
  Branches       8552     8560        +8
=============================================
- Hits          50184    38263    -11921
- Misses        18432    30519    +12087
+ Partials       2630     2495      -135

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Pinokio broken after installing comfyui ai and stable video diffusion

I tried to install the new comfyui ai with stable video diffusion. Pinokio kept me telling that the installion is complete after downloading the models for SDVideo. But the "install" button kept appearing instead of "start" button at the starting page.
Afterwards I tried to install the "stable video diffusion for NVIDIA" app on Pinokio. Now everything is broken and I just get a blank white page when I open Pinokio.
How can I uninstall and or reset Pinokio, without losing my previous SD webui installation, which was working perfectly?
OS Ubuntu 22.04

Same problem here on Windows 10.

yes. I tried also on windows 10. Pinokio is completely broken and cant start even after rebooting the computer.


Add view for all packages

currently we need to define link for every package in pypicloud separately in buildout.cfg, example:
find-links +=
https://whatever.herokuapp.com/simple/package1
https://whatever.herokuapp.com/simple/package2
with this change you can have cleaner buildout config files which is very nice when you have many packages, example:
find-links +=
https://whatever.herokuapp.com/packages

One tiny request, but otherwise looks good. Thanks for including all the docstrings and tests!

Agree with you, fixed that. Docstrings and tests are as important as other code, so np :)

Released in 0.3.7
Thanks for the PR!


set subnode and parent node timeout metadata for arraynode

Tracking issue
related to looking into this issue:
_https://github.com/flyteorg/flyte/issues/3875_
https://unionai.atlassian.net/browse/FLYTE-204

Why are the changes needed?
Currently don't set metadata for either the parent ArrayNode or Subnodes

What changes were proposed in this pull request?

enable timeouts to be defined for parent ArrayNodes. Set the timeout in the node's metadata
map_task(timeout= ...)

set the underlying entity (only task for now) timeout in the target array_node's metadata

Note the subnode task timeouts are not supported yet.
Given:
@task(timeout="4h")
def foo(x: int) -> int:
    pass

@workflow
def bar(x: List[int]) -> List[int]:
    maptask(foo, timeout="6h")(x=x)

We want:
Node:
	NodeMetadata:
		timeout:"6h"
	Target
		ArrayNode
			Node
				NodeMetadata
					timeout: "4h"
				Target
					TaskNode
							"foo"
			Parallelism
			SuccessCriteria

How was this patch tested?

Setup process
ran the map_task workflow in flytesnacks (updated to use array node map tasks) + set timeouts -> confirm appropriate timeout is set on NodeSpec and SubNodeSpec.
@task
def multi_input_task(quantity: int, price: float, shipping: float) -> float:
    return quantity * price * shipping

@workflow
def multiple_inputs_map_workflow(list_q: list[int] = [1, 2, 3, 4, 5], p: float = 6.0, s: float = 7.0) -> list[float]:
    partial_task = functools.partial(multi_input_task, price=p, shipping=s)
    return map_task(partial_task, timeout=timedelta(hours=1), metadata=TaskMetadata(timeout=timedelta(minutes=5)))(quantity=list_q)

Screenshots
Check all the applicable boxes

[ ] I updated the documentation accordingly.
[x] All new and existing tests passed.
[x] All commits are signed-off.

Related PRs

Docs link

The UX feels rather confusing to me. IMO the internal tasks NodeMetadata should just be populated from the internal Node (unsure how this works exactly in flytekit). Your example could be something like:
@task(timeout=timedelta(hours=5))
def multi_input_task(quantity: int, price: float, shipping: float) -> float:
    return quantity * price * shipping

@workflow
def multiple_inputs_map_workflow(list_q: list[int] = [1, 2, 3, 4, 5], p: float = 6.0, s: float = 7.0) -> list[float]:
    partial_task = functools.partial(multi_input_task, price=p, shipping=s)
    return map_task(partial_task, timeout=timedelta(hours=1)(quantity=list_q)

and this should produce the ArrayNode IDL spec you described.

@hamersaw I should've left a better example - the example you left also works. Setting the metadata param in the map_task(...) call takes precedent over metadata set in the task decorator. https://docs.flyte.org/en/latest/user_guide/advanced_composition/map_tasks.html shows the example of setting the mapped task's metadata with the param as opposed to decorator.
Would a "parent_timeout" be better to lead to less confusion for when the metadata is set?


--host flag wants registry index URL, not registry website host

If I do cargo publish --help, I see this documentation for the --host flag:
--host HOST              Host to upload the package to

If I wanted to upload to the staging instance of crates.io at https://staging-crates-io.herokuapp.com/, the name of this flag and the docs make me think I should specify --host staging-crates-io.herokuapp.com here. This does not publish to the staging instance, however.
By digging into the code, I've figured out that what this flag actually wants is the location of the index to which I want to publish:

In the publish binary, host gets used in the PublishOpts.index field
This code calls index.to_url(), which means it doesn't just want a host, it wants something that parses as a valid URL
The URL eventually gets used as a git index, and the config.json file gets read to extract the api_host.

When I'm running crates.io locally, i'm able to publish to my local instance by giving cargo --host=file:///path/to/crates.io/tmp/index-co/. I'm able to get to a sort-of-working point with staging crates.io by specifying --host=https://github.com/alexcrichton/cargo-registry-index.
So I think that --host should be renamed to --index-url, or at the very least, the documentation in all the commands that use --host should explain that it should be a URL to the index you want to publish to.

Yeah we should definitely update the docs at the very least, and I don't mind renaming as well.


Extension not working since latest update

Error verifying new BLIP Large pickled file. Can I download it manually to solve the issue?
HERE IS THE ERROR:
Loading CLIP Interrogator 0.6.0...
Loading caption model blip-large...
Error verifying pickled file from C:\Users\TD FILM STUDIO/.cache\huggingface\hub\models--Salesforce--blip-image-captioning-large\snapshots\44f04d56320e7d169fec18c4b19f7efb9ab83105\pytorch_model.bin:
Traceback (most recent call last):
File "C:\SD\stable-diffusion-webui-master\modules\safe.py", line 81, in check_pt
with zipfile.ZipFile(filename) as z:
File "C:\Program Files\Python310\lib\zipfile.py", line 1267, in init
self._RealGetContents()
File "C:\Program Files\Python310\lib\zipfile.py", line 1334, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\SD\stable-diffusion-webui-master\modules\safe.py", line 135, in load_with_extra
check_pt(filename, extra_handler)
File "C:\SD\stable-diffusion-webui-master\modules\safe.py", line 102, in check_pt
unpickler.load()
_pickle.UnpicklingError: persistent IDs in protocol 0 must be ASCII strings
-----> !!!! The file is most likely corrupted !!!! <-----
You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you.
Traceback (most recent call last):
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
output = await app.get_blocks().process_api(
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api
result = await self.call_function(
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\blocks.py", line 833, in call_function
prediction = await anyio.to_thread.run_sync(
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "C:\SD\stable-diffusion-webui-master\extensions\clip-interrogator-ext\scripts\clip_interrogator_ext.py", line 128, in image_to_prompt
load(clip_model_name, caption_model_name)
File "C:\SD\stable-diffusion-webui-master\extensions\clip-interrogator-ext\scripts\clip_interrogator_ext.py", line 66, in load
ci = Interrogator(config)
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\clip_interrogator\clip_interrogator.py", line 70, in init
self.load_caption_model()
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\clip_interrogator\clip_interrogator.py", line 84, in load_caption_model
caption_model = BlipForConditionalGeneration.from_pretrained(model_path, torch_dtype=self.dtype)
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\transformers\modeling_utils.py", line 2480, in from_pretrained
loaded_state_dict_keys = list(state_dict.keys())
AttributeError: 'NoneType' object has no attribute 'keys'

Is it failing to validate pytorch_model.bin because your virus scanner is removing it as soon as it's downloaded? I think you might be having the same problem being discussed here and here. It may only be happening with Windows Defender.

I have the same problem and after adding --disable-safe-unpickle to get over this error I got a new one, which seem to result of a front slash instead of a backslash.
OSError: [Errno 22] Invalid argument: 'C:\Users\myUsername/.cache\huggingface\hub\models--Salesforce--blip-image-captioning-base\snapshots\9f3084c0600e544506a2d414647492a036fb1aa0\pytorch_model.bin'

Can confirm, deactivating the Windows Defender real time protection made it work.

No, windows defender and firewall were already turned off. Moreover turning off all the firewall and all my antivirus did not help. I tried manually downloading the pytorch_model.bin for 'BLIP Large' and put it in the Clip Interrogator folder inside model folder of A1111. That didn't help either.
Loading CLIP Interrogator 0.6.0...
Loading caption model blip-large...
Error verifying pickled file from C:\Users\TD FILM STUDIO/.cache\huggingface\hub\models--Salesforce--blip-image-captioning-large\snapshots\44f04d56320e7d169fec18c4b19f7efb9ab83105\pytorch_model.bin:
Traceback (most recent call last):
File "C:\SD\stable-diffusion-webui-master\modules\safe.py", line 81, in check_pt
with zipfile.ZipFile(filename) as z:
File "C:\Program Files\Python310\lib\zipfile.py", line 1267, in init
self._RealGetContents()
File "C:\Program Files\Python310\lib\zipfile.py", line 1334, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\SD\stable-diffusion-webui-master\modules\safe.py", line 135, in load_with_extra
check_pt(filename, extra_handler)
File "C:\SD\stable-diffusion-webui-master\modules\safe.py", line 102, in check_pt
unpickler.load()
_pickle.UnpicklingError: persistent IDs in protocol 0 must be ASCII strings
-----> !!!! The file is most likely corrupted !!!! <-----
You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you.
Traceback (most recent call last):
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
output = await app.get_blocks().process_api(
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api
result = await self.call_function(
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\gradio\blocks.py", line 833, in call_function
prediction = await anyio.to_thread.run_sync(
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "C:\SD\stable-diffusion-webui-master\extensions\clip-interrogator-ext\scripts\clip_interrogator_ext.py", line 128, in image_to_prompt
load(clip_model_name, caption_model_name)
File "C:\SD\stable-diffusion-webui-master\extensions\clip-interrogator-ext\scripts\clip_interrogator_ext.py", line 66, in load
ci = Interrogator(config)
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\clip_interrogator\clip_interrogator.py", line 70, in init
self.load_caption_model()
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\clip_interrogator\clip_interrogator.py", line 84, in load_caption_model
caption_model = BlipForConditionalGeneration.from_pretrained(model_path, torch_dtype=self.dtype)
File "C:\SD\stable-diffusion-webui-master\venv\lib\site-packages\transformers\modeling_utils.py", line 2480, in from_pretrained
loaded_state_dict_keys = list(state_dict.keys())
AttributeError: 'NoneType' object has no attribute 'keys'

You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you.

^^
From your error message. I had this as well and can confirm, that the extension works with this command line argument and the Windows Defender real time protection deactivated – which is pretty messy.

This used to work fine but now I get the following error with starting Automatic1111:
Error loading script: clip_interrogator_ext.py
Traceback (most recent call last):
  File "F:\Automatic1111\modules\scripts.py", line 248, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "F:\Automatic1111\modules\script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "F:\Automatic1111\extensions\clip-interrogator-ext\scripts\clip_interrogator_ext.py", line 10, in <module>
    from clip_interrogator import Config, Interrogator, list_caption_models, list_clip_models
ImportError: cannot import name 'list_caption_models' from 'clip_interrogator' (F:\Automatic1111\venv\lib\site-packages\clip_interrogator\__init__.py)

@caj001 can you look up further in the output to see if it is failing to install clip_interrogator? It requires version 0.6.0 of clip_interrogator is installed. You can also try installing it manually to see what might be going wrong
F:\Automatic1111\> venv\Scripts\activate.bat
(venv) F:\Automatic1111\> pip install clip-interrogator==0.6.0

Thanks for the quick response.
There is no file called activate.bat in the venv\Scripts directory. Mostly lots of .exe files.
Maybe something else is wrong with my A1111 installation?
I get this error when the script tries to load clip-interrogator:
Thanks!
F:\Automatic1111\venv\lib\site-packages\pkg_resources\__init__.py:123: PkgResourcesDeprecationWarning: otobuf is an invalid version and will not be supported in a future release
  warnings.warn(
F:\Automatic1111\venv\lib\site-packages\pkg_resources\__init__.py:123: PkgResourcesDeprecationWarning: quests is an invalid version and will not be supported in a future release
  warnings.warn(
No module 'xformers'. Proceeding without it.
Error loading script: clip_interrogator_ext.py
Traceback (most recent call last):
  File "F:\Automatic1111\modules\scripts.py", line 248, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "F:\Automatic1111\modules\script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "F:\Automatic1111\extensions\clip-interrogator-ext\scripts\clip_interrogator_ext.py", line 10, in <module>
    from clip_interrogator import Config, Interrogator, list_caption_models, list_clip_models
ImportError: cannot import name 'list_caption_models' from 'clip_interrogator' (F:\Automatic1111\venv\lib\site-packages\clip_interrogator\__init__.py)

Thanks for the quick response.
There is no file called activate.bat in the venv\Scripts directory. Mostly lots of .exe files.
Maybe something else is wrong with my A1111 installation?
I get this error when the script tries to load clip-interrogator:
Thanks!
Error running install.py for extension extensions\clip-interrogator-ext.
Command: "F:\Automatic1111\venv\Scripts\python.exe" "extensions\clip-interrogator-ext\install.py"
Error code: 1
stdout: Installing requirements for CLIP Interrogator

stderr: Traceback (most recent call last):
  File "F:\Automatic1111\extensions\clip-interrogator-ext\install.py", line 14, in <module>
    launch.run_pip(f"install clip-interrogator=={CI_VERSION}", "requirements for CLIP Interrogator")
  File "F:\Automatic1111\launch.py", line 145, in run_pip
    return run(f'"{python}" -m pip {args} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}")
  File "F:\Automatic1111\launch.py", line 113, in run
    raise RuntimeError(message)
RuntimeError: Couldn't install requirements for CLIP Interrogator.
Command: "F:\Automatic1111\venv\Scripts\python.exe" -m pip install clip-interrogator==0.6.0 --prefer-binary
Error code: 1
stdout: Collecting clip-interrogator==0.6.0
  Using cached clip_interrogator-0.6.0-py3-none-any.whl (787 kB)
Collecting transformers>=4.27.1
  Using cached transformers-4.27.2-py3-none-any.whl (6.8 MB)
Requirement already satisfied: accelerate in f:\automatic1111\venv\lib\site-packages (from clip-interrogator==0.6.0) (0.15.0)
Requirement already satisfied: requests in f:\automatic1111\venv\lib\site-packages (from clip-interrogator==0.6.0) (2.28.2)
Requirement already satisfied: open-clip-torch in f:\automatic1111\venv\lib\site-packages (from clip-interrogator==0.6.0) (2.7.0)
Requirement already satisfied: Pillow in f:\automatic1111\venv\lib\site-packages (from clip-interrogator==0.6.0) (9.4.0)
Requirement already satisfied: safetensors in f:\automatic1111\venv\lib\site-packages (from clip-interrogator==0.6.0) (0.2.7)
Requirement already satisfied: torch in f:\automatic1111\venv\lib\site-packages (from clip-interrogator==0.6.0) (1.13.1+cu117)
Requirement already satisfied: torchvision in f:\automatic1111\venv\lib\site-packages (from clip-interrogator==0.6.0) (0.14.1+cu117)
Requirement already satisfied: tqdm in f:\automatic1111\venv\lib\site-packages (from clip-interrogator==0.6.0) (4.64.1)
Requirement already satisfied: numpy>=1.17 in f:\automatic1111\venv\lib\site-packages (from transformers>=4.27.1->clip-interrogator==0.6.0) (1.23.3)
Requirement already satisfied: filelock in f:\automatic1111\venv\lib\site-packages (from transformers>=4.27.1->clip-interrogator==0.6.0) (3.9.0)
Requirement already satisfied: huggingface-hub<1.0,>=0.11.0 in f:\automatic1111\venv\lib\site-packages (from transformers>=4.27.1->clip-interrogator==0.6.0) (0.12.0)
Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in f:\automatic1111\venv\lib\site-packages (from transformers>=4.27.1->clip-interrogator==0.6.0) (0.13.2)
Requirement already satisfied: pyyaml>=5.1 in f:\automatic1111\venv\lib\site-packages (from transformers>=4.27.1->clip-interrogator==0.6.0) (6.0)
Requirement already satisfied: regex!=2019.12.17 in f:\automatic1111\venv\lib\site-packages (from transformers>=4.27.1->clip-interrogator==0.6.0) (2022.10.31)
Requirement already satisfied: packaging>=20.0 in f:\automatic1111\venv\lib\site-packages (from transformers>=4.27.1->clip-interrogator==0.6.0) (23.0)
Requirement already satisfied: colorama in f:\automatic1111\venv\lib\site-packages (from tqdm->clip-interrogator==0.6.0) (0.4.6)
Requirement already satisfied: psutil in f:\automatic1111\venv\lib\site-packages (from accelerate->clip-interrogator==0.6.0) (5.9.4)
Requirement already satisfied: typing-extensions in f:\automatic1111\venv\lib\site-packages (from torch->clip-interrogator==0.6.0) (4.4.0)
Requirement already satisfied: ftfy in f:\automatic1111\venv\lib\site-packages (from open-clip-torch->clip-interrogator==0.6.0) (6.1.1)
Collecting protobuf==3.20.0
  Using cached protobuf-3.20.0-cp310-cp310-win_amd64.whl (903 kB)
Requirement already satisfied: sentencepiece in f:\automatic1111\venv\lib\site-packages (from open-clip-torch->clip-interrogator==0.6.0) (0.1.97)
Requirement already satisfied: charset-normalizer<4,>=2 in f:\automatic1111\venv\lib\site-packages (from requests->clip-interrogator==0.6.0) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in f:\automatic1111\venv\lib\site-packages (from requests->clip-interrogator==0.6.0) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in f:\automatic1111\venv\lib\site-packages (from requests->clip-interrogator==0.6.0) (1.26.14)
Requirement already satisfied: certifi>=2017.4.17 in f:\automatic1111\venv\lib\site-packages (from requests->clip-interrogator==0.6.0) (2022.12.7)
Requirement already satisfied: wcwidth>=0.2.5 in f:\automatic1111\venv\lib\site-packages (from ftfy->open-clip-torch->clip-interrogator==0.6.0) (0.2.6)
Installing collected packages: protobuf, transformers, clip-interrogator
  Attempting uninstall: protobuf
    Found existing installation: protobuf 3.19.6
    Uninstalling protobuf-3.19.6:
      Successfully uninstalled protobuf-3.19.6

Hi. I'm still experiencing an error with this.  I've installed clip-interrogator v0.6.0 but still, no luck.
Error loading script: clip_interrogator_ext.py
Traceback (most recent call last):
  File "F:\Automatic1111\modules\scripts.py", line 256, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "F:\Automatic1111\modules\script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "F:\Automatic1111\extensions\clip-interrogator-ext\scripts\clip_interrogator_ext.py", line 9, in <module>
    import clip_interrogator
  File "F:\Automatic1111\venv\lib\site-packages\clip_interrogator\__init__.py", line 1, in <module>
    from .clip_interrogator import Config, Interrogator, LabelTable, list_caption_models, list_clip_models, load_list
  File "F:\Automatic1111\venv\lib\site-packages\clip_interrogator\clip_interrogator.py", line 12, in <module>
    from transformers import AutoProcessor, AutoModelForCausalLM, BlipForConditionalGeneration, Blip2ForConditionalGeneration
ImportError: cannot import name 'BlipForConditionalGeneration' from 'transformers' (F:\Automatic1111\venv\lib\site-packages\transformers\__init__.py)


Add pip check, some build_number math

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin please rerender

I don't know if I should comment on this PR or (probably) make a new issue, but the current meta.yaml seems to be giving incorrect outputs.  You can't mix noarch and arch with the same output name, and noarch can't have python constraints.  Now the frozendict 2.3.10 installation seems to always give noarch, and built with 3.12 so it doesn't work right with 3.11.  I think we'd need a different output name?  (Not sure, this is beyond my depth except to say that we're not getting the right file)

Yep, sorry, was just trying some things. Basically, downstream, I'm getting:

the noarch package when there exists a (presumably better) platform/python-specific version
some shouty DEPRECATED warnings during pip check about the .egg that ends up from the setup.py install

Perhaps a re-render on main would decrease the noise.

You can build noarch on a more recent python than what you run on. Something else happened which I cannot quite figure out.

@Marco-Sulla Why does the noarch build contain a python .egg and not a straight copy of the source like I am more familiar with?

Tbh I don't think having noarch and arch builds for the same package makes sense. Noarch will always be picked since it comes really high in the solver priority.

Welp, in the interim, I've worked around depending on this package by paring down some other deps, so will close this... good luck!

Tbh I don't think having noarch and arch builds for the same package makes sense. Noarch will always be picked since it comes really high in the solver priority.

This is not how pip works. I do not really understand the sense of giving higher priority to noarch.

Yeah conda is not pip. This preference reduces the sizes of conda installs, but in general IDK why it is that way.