Crash upon loading

crash-2024-04-29_18.35.06-client.txt
I have the latest cloth config, fabric api, and Falling leaves for 1.19.4 Fabric but when I load up the game it crashes

Apparently the config migration fails.
Can you send the fallingleaves.json file from the config folder? Would really like to know what's going on with it.
After that you can simply delete the file and the issue should be gone.
Ah and btw, for 1.19.4 you should be using Falling Leaves 1.15.6.

Sorry for the late reply. Thanks for not closing my issue due to inactivity. Here is the config json file
fallingleaves.json

Doing what you said fixed my issue. Thank you!

Thanks for coming through with the config!
So let's take a look...
Huh, the config file is empty!
This is what I expected from looking at the code, but at the same time I still have no idea how that empty config even came to be.
Maybe your game crashed at some point while it was writing the config and thus left it empty?
Either way I can finally patch this issue, you weren't the first to run into it I believe.
Probably won't do a backport since it's so rare and easily fixed manually though.

The titular issue needs to be fixed in Cloth Config.
In the meantime I released 1.15.8 with a Mixin to patch Cloth Config.


Validate either a host or cluster is selected when provisioning on VMware

VMware allows you to select just a cluster (and not a host) if that cluster supports DRS, this updates the validation method to check that:

A host or a cluster is explicitly selected
The selected cluster has DRS enabled if no host is selected

https://bugzilla.redhat.com/show_bug.cgi?id=1377975

cc @gmcculloug @bdunne

@agrare Please apply the appropriate euwe label

Euwe Backport details:
$ git log
commit ac19cd3bc3a59bc314854cb28b6125f814aed434
Author: Brandon Dunne<EMAIL_ADDRESS>Date:   Wed Oct 5 09:54:44 2016 -0400

    Merge pull request #11665 from agrare/vmware_infra_provisioning_cluster_validation

    Validate either a host or cluster is selected when provisioning on VMware
    (cherry picked from commit 5ef33b185bfc6f961089595ef5ab4b142efcc45c)

Darga BZ https://bugzilla.redhat.com/show_bug.cgi?id=1378116
Backport after https://github.com/ManageIQ/manageiq/pull/11437

Darga Backport details:
$ git log
commit 8263d1b798be931ce5bc53ee6015dd2b26538a05
Author: Brandon Dunne<EMAIL_ADDRESS>Date:   Wed Oct 5 09:54:44 2016 -0400

    Merge pull request #11665 from agrare/vmware_infra_provisioning_cluster_validation

    Validate either a host or cluster is selected when provisioning on VMware
    (cherry picked from commit 5ef33b185bfc6f961089595ef5ab4b142efcc45c)

    https://bugzilla.redhat.com/show_bug.cgi?id=1378116


feat: headers and trailers

Makes it possible to implement 1xx responses and trailers using the internal kEnqueue API (which all the public API methods are based upon). I'm considering making this API public (possibly with a better name).
Basically the internal request callback is a "stream/callbag" which is invoked multiple times:
callback({ type: 'headers', statusCode, headers }) // 1xx
callback({ type: 'body', statusCode, headers, body }) // body
callback({ type: 'trailers', headers }) // trailers
callback(null) // eof

Missing tests and actually making the API public.

I don't think invoking a callback multiple times is a good thing to do. We should pass in a onTrailers option that is called if there are trailers. Or we can emit a trailers event on the body.

This lacks tests, it's a bit hard to review right now.

Yep, just brainstorming at the moment.

I don't think invoking a callback multiple times is a good thing to do. We should pass in a onTrailers option that is called if there are trailers. Or we can emit a trailers event on the body.

Hm, I'll give this some more thought.


[WIP] MGMT-18578 - Add nmstatectl binary to initrd in minimal ISO for OCP 4.13-4.17 (x86_64 architecture)

Description

As part of integrating the nmstate service into our flow, it's necessary to include the nmstatectl binary in the initrd for minimal ISO cases. This ensures that the pre-network-manager-config service can run the nmstate service early during the boot process, allowing the nmstate YAML to be applied as keyfiles.
Note: In a later phase, I will fetch the binary from the rootfs. This PR is just the initial implementation. See - MGMT-18577
How was this code tested?

To verify this, I used test-infra's Minikube, generated and downloaded the minimal ISO, then interrupted the boot process to confirm that the nmstate.img was successfully added to the initrd.
Assignees

/cc @danielerez
/cc @carbonin
/cc @jhernand
/cc @AlonaKaplan
Links

Checklist

[X] Title and description added to both, commit and PR
[ ] Relevant issues have been associated
[X] Reviewers have been listed
[X] This change does not require a documentation update (docstring, docs, README, etc)
[X] Does this change include unit tests (note that code changes require unit tests)

/test all

Putting the binary inside the repository and inside the image of the service may be problematic: it will be very hard to replace it if we find a bug, for example. I know that eventually it will be taken from the rootfs, but could we meanwhile take it from some configurable place outside of the image? For example, could we have a new EXTRA_INITRD_FILES environment pointing to a directory containing them? Maybe with sub-directories for different architectures? I mean something like this:
$ find "${EXTRA_INITRD_FILES}" -type f
.../x86_64/usr/bin/nmstatectl
.../arm64/usr/bin/nmstatectl

Then providing the files will be done when the service is deployed, not when it is built.
I'd also suggest to make this optional: if the variable isn't set then the behavior should be to not include the new initrd in the ISO. That will help with upgrades of existing environments.
Finally I'd suggest to give a more generic name to the initrd file, something like extra.img, because that way we can reuse it for other files not related to nmstate.

Putting the binary inside the repository and inside the image of the service may be problematic: it will be very hard to replace it if we find a bug, for example. I know that eventually it will be taken from the rootfs, but could we meanwhile take it from some configurable place outside of the image? For example, could we have a new EXTRA_INITRD_FILES environment pointing to a directory containing them? Maybe with sub-directories for different architectures? I mean something like this:
$ find "${EXTRA_INITRD_FILES}" -type f
.../x86_64/usr/bin/nmstatectl
.../arm64/usr/bin/nmstatectl

Then providing the files will be done when the service is deployed, not when it is built.
I'd also suggest to make this optional: if the variable isn't set then the behavior should be to not include the new initrd in the ISO. That will help with upgrades of existing environments.

Hey @jhernand, so with this approach it means we'd need to manually add the nmstatectl binary on SaaS, right? Which means one more thing to maintain :/
Maybe, as an alternative, for now we can simply amend the code to download the binary: https://github.com/nmstate/nmstate/releases/download/v2.2.35/nmstatectl-linux-x64.zip
It could be of course cached, as we do for the ISOs.
wdyt?

Maybe, as an alternative, for now we can simply amend the code to download the binary: https://github.com/nmstate/nmstate/releases/download/v2.2.35/nmstatectl-linux-x64.zip

How does this work for disconnected on-prem installs?

If we're only doing x86 could we install the RPM in the container build and use that?
That would also allow us to take advantage of security scanning for images. Also on the security note I think it's generally not good practice to include non-source-based binaries in images. I'm not sure if anything in our build pipeline will block us though as I can't remember where I read this.

If not the RPM approach (and we don't plan the committed-binary to prod) is there some reason to not be doing the download in the container build where we would at least be able to see how the binary is downloaded and what version it is?

My understanding is that as @linoyaslan says in the description this is a temporary implementation to ease further development, and in the future (near future, I hope) we will change this code to extract the binary from the rootfs.img file. What I suggest is to let this pull request move forward, with the capability to enable/disable this functionality at will, and without including the binaries in the repository or the image.
Downloading the file in runtime like @danielerez suggests seems reasonable to me as well, as long we understand that is also a temporary implementation that can be enabled/disabled.
Installing the RPM, even if it is in the container build, also makes it hard to replace those files without upgrading the service, but it is better than having the binary in the repository.
Or maybe we should just wait till the rootfs.img implementation is ready?

@jhernand @carbonin  I would appreciate your review again.

/all tests

/test [|all]

/test all

/test all

/retest

/test edge-e2e-ai-operator-ztp

/test edge-lint

/test edge-lint


Update readme.md ( recipe generator FAQS)

I have added some frequently asked questions about recipe generator in python.  This is my first time as a git hub contributor
If this request is merged ,kindly label this request with hacktoberfest accepted. Thank you

Please add the label of hacktoberfest accepted to it. It'll be a great help.
Thank you.


Taxon names api

Includes taxon_names API endpoint to experiment. Please merge only if development won't be merged into master very soon.

Coverage remained the same at 71.665% when pulling 30b76a2bfc70806c18a5597f46b75fa6cda8d591 on taxon-names-api into de0e8dd1607c1e4186296a54995c8be3532d6648 on development.


Tutorial

I need a tutorial on what to do. Help me since I do not know what to do, Dont delete since I need help what to do.

BrightFrye has really good tutorials on YouTube for modding Friday Night Funkin: https://www.youtube.com/playlist?list=PLAPMw90C3Tr58Z7ayeQvdod5Mxb7D_ciN

https://kadedev.github.io/Kade-Engine/building
https://kadedev.github.io/Kade-Engine/guides/


Error in running rcnn object detector

I tried to follow the steps to run the rccn object detector. But the client call exists with the following error.
~/serving-caffe# bazel-bin/tensorflow_serving/example/obj_detector_client --server=localhost:9000 \

--imgdir=/tmp/images --num_tests=10 --concurrency=2

Connected. Input Shape: (3, 800, 600)
/usr/local/lib/python2.7/dist-packages/skimage/transform/_warps.py:84: UserWarning: The default mode, 'constant', will be changed to 'reflect' in skimage 0.15.
warn("The default mode, 'constant', will be changed to 'reflect' in "
Traceback (most recent call last):
File "/root/serving-caffe/bazel-bin/tensorflow_serving/example/obj_detector_client.runfiles/tf_serving/tensorflow_serving/example/obj_detector_client.py", line 228, in
tf.app.run()
File "/root/serving-caffe/bazel-bin/tensorflow_serving/example/obj_detector_client.runfiles/org_tensorflow/tensorflow/python/platform/app.py", line 44, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "/root/serving-caffe/bazel-bin/tensorflow_serving/example/obj_detector_client.runfiles/tf_serving/tensorflow_serving/example/obj_detector_client.py", line 214, in main
stats, results = do_inference(stub, FLAGS.concurrency, n, ims)
File "/root/serving-caffe/bazel-bin/tensorflow_serving/example/obj_detector_client.runfiles/tf_serving/tensorflow_serving/example/obj_detector_client.py", line 140, in do_inference
im_input = im_transpose(im)
File "/root/serving-caffe/bazel-bin/tensorflow_serving/example/obj_detector_client.runfiles/tf_serving/tensorflow_serving/example/obj_detector_client.py", line 86, in im_transpose
R, G, B = im.transpose((2, 0, 1))
ValueError: too many values to unpack
An RPC error occured: CancellationError(code=StatusCode.CANCELLED, details="Cancelled")
Appreciate any help in solving this .

Looks like the error occurs when transposing an input image (which is just a numpy array). The image must be RGB for this example. Perhaps yours isn't?

Thanks for replying. Actually when I start the server its keeps printing a lot of statements on screen
-------- Code trace -----------------
2017-08-04 06:17:50: I tensorflow_serving/example/obj_detector.cc:514] Waiting for models to be loaded...
2017-08-04 06:17:51: I tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:324] File-system polling update: Servable:{name: default version: 1}; Servable path: /tmp/obj_detector/00000001; Polling frequency: 1
2017-08-04 06:17:51: I tensorflow_serving/example/obj_detector.cc:514] Waiting for models to be loaded...
2017-08-04 06:17:52: I tensorflow_serving/servables/caffe/caffe_serving_session.cc:155] Caffe execution mode: GPU (device id: 0)
2017-08-04 06:17:52: I tensorflow_serving/servables/caffe/caffe_serving_session.cc:201] Loaded Network:
name: VGG_ILSVRC_16_layers
inputs: 2
outputs: 2
initial batch-size: 1
output classes: Tensor<type: string shape: [1,21] values: background aeroplane bicycle...>
2017-08-04 06:17:52: I tensorflow_serving/servables/caffe/caffe_session_bundle.cc:107] Running restore op for CaffeSessionBundle
2017-08-04 06:17:52: I tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:324] File-system polling update: Servable:{name: default version: 1}; Servable path: /tmp/obj_detector/00000001; Polling frequency: 1
2017-08-04 06:17:52: I tensorflow_serving/example/obj_detector.cc:514] Waiting for models to be loaded...
2017-08-04 06:17:53: I tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:324] File-system polling update: Servable:{name: default version: 1}; Servable path: /tmp/obj_detector/00000001; Polling frequency: 1
2017-08-04 06:17:53: I tensorflow_serving/example/obj_detector.cc:514] Waiting for models to be loaded...
2017-08-04 06:17:54: I tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:324] File-system polling update: Servable:{name: default version: 1}; Servable path: /tmp/obj_detector/00000001; Polling frequency: 1
2017-08-04 06:17:54: I tensorflow_serving/example/obj_detector.cc:514] Waiting for models to be loaded...
2017-08-04 06:17:55: I tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:324] File-system polling update: Servable:{name: default version: 1}; Servable path: /tmp/obj_detector/00000001; Polling frequency: 1
2017-08-04 06:17:55: I tensorflow_serving/example/obj_detector.cc:514] Waiting for models to be loaded...
2017-08-04 06:17:56: I tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:324] File-system polling update: Servable:{name: default version: 1}; Servable path: /tmp/obj_detector/00000001; Polling frequency: 1
2017-08-04 06:17:56: I tensorflow_serving/example/obj_detector.cc:514] Waiting for models to be loaded...
[libprotobuf WARNING external/protobuf/src/google/protobuf/io/coded_stream.cc:605] Reading dangerously large protocol message.  If the message turns out to be larger than<PHONE_NUMBER> bytes, parsing will be halted for security reasons.  To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.
[libprotobuf WARNING external/protobuf/src/google/protobuf/io/coded_stream.cc:82] The total number of bytes read was 548317115
2017-08-04 06:17:57: I tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:324] File-system polling update: Servable:{name: default version: 1}; Servable path: /tmp/obj_detector/00000001; Polling frequency: 1
2017-08-04 06:17:57: I tensorflow_serving/example/obj_detector.cc:514] Waiting for models to be loaded...
2017-08-04 06:17:58: I tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:324] File-system polling update: Servable:{name: default version: 1}; Servable path: /tmp/obj_detector/00000001; Polling frequency: 1
2017-08-04 06:17:58: I tensorflow_serving/example/obj_detector.cc:514] Waiting for models to be loaded...
2017-08-04 06:17:59: I tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:324] File-system polling update: Servable:{name: default version: 1}; Servable path: /tmp/obj_detector/00000001; Polling frequency: 1
2017-08-04 06:17:59: I tensorflow_serving/example/obj_detector.cc:514] Waiting for models to be loaded...
2017-08-04 06:18:00: I tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:324] File-system polling update: Servable:{name: default version: 1}; Servable path: /tmp/obj_detector/00000001; Polling frequency: 1
2017-08-04 06:18:00: I tensorflow_serving/example/obj_detector.cc:514] Waiting for models to be loaded...
2017-08-04 06:18:01: I tensorflow_serving/servables/caffe/caffe_session_bundle.cc:146] Done loading SessionBundle
2017-08-04 06:18:01: I tensorflow_serving/core/loader_harness.cc:122] Successfully loaded servable version {name: default version: 1}
2017-08-04 06:18:01: I tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:324] File-system polling update: Servable:{name: default version: 1}; Servable path: /tmp/obj_detector/00000001; Polling frequency: 1
2017-08-04 06:18:01: I tensorflow_serving/example/obj_detector.cc:414] Running...
2017-08-04 06:18:02: I tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:324] File-system polling update: Servable:{name: default version: 1}; Servable path: /tmp/obj_detector/00000001; Polling frequency: 1
2017-08-04 06:18:03: I tensorflow_serving/sources/storage_path/file_system_storage_path_source.cc:324] File-system polling update: Servable:{name: default version: 1}; Servable path: /tmp/obj_detector/00000001; Polling frequency: 1
After sometime I get MemoryDump issues.
---------ps -ef results --------------
root      21183 119214  7 06:17 ?        00:00:13 ./bazel-bin/tensorflow_serving/example/obj_detector --port=9
root     119399      0 26 05:54 ?        00:07:01 bazel(root) -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath
----- Question ----------
Do you have any idea what is wrong?
As an alternative:
I used a tensorflow implementation of faster rcnn to get a checkpoint file. (https://github.com/endernewton/tf-faster-rcnn)
Can you give some pointers into how I can make TFS work for that. I face issues with all the extra python code that come with the tensorflow faster-rcnn implementation.
Also
I am trying to understand how you made caffe to work with Tensorflow serving as an example of custom models like scikit-learn to work with TFS. Any ideas where to start?
Thanks!

Very difficult to see what could be wrong without a stack trace within the core dump. You could use gdb to do this.
As for making scikit-learn 'just work' with TFS, it would be both hard and complex. You would have to be an expert at embedding Python in multi-threaded c++ applications.


az keyvault create silently zaps existing access policy when run on existing vault

Describe the bug
A bug or a "feature"? Regardless, makes az keyvault create rather unsafe.
When we run az keyvault create --name=EXISTING_VAULT and EXISTING_VAULT does exist, the command succeeds. However, any access policy set up in that vault is now gone and has to be recreated again.
The az keyvault create --name=EXISTING_VAULT does not produce any warning. Neither it does allow to fail is vault already exists.
To Reproduce

Run az keyvault create --name=EXISTING_VAULT
Set up extensive access policy on it in Azure Portal.
Run az keyvault create --name=EXISTING_VAULT again.
Observe in Azure Portal the policy is now all gone and is now in default state.

Expected behavior

Subsequent runs of az keyvault create --name=EXISTING_VAULT preserve all settings unless these differ as supplied by command line parameters.  All access policies should be preserved. Essentially, this should be "don't change anything unless told" and should be safe to run at any times with the same command line args.

Environment summary
brew on OS X:
az --version
azure-cli (2.0.48)

This is expected behavior for nearly all create commands in Azure CLI. If you want it to preserve the existing settings, you must use the update command. You can check whether the vault already exists by running az keyvault show. If it does not, you will get exit code 3.

@tjprescott
I'm not sure I agree with the summary closure of this issue due to "This is expected behavior for nearly all create commands" -- note nearly here.
Cases in point:

az group create always succeeds but does not zap all resources if the resource group already exists
az storage container create always succeeds but does not zap the contents of the existing blob container; and additionally has --fail-on-exist parameter

It would be hilarious it if the above commands followed az keyvault create behaviour, would you agree? :)
The problems with using "You can check whether the vault already exists by running az keyvault show. If it does not, you will get exit code 3" are several.

It's a pain in the butt to remember and code for this every time;
Running az keyvault create is very easy and existing behaviour makes it really unsafe and can break a lot of stuff;
It is it's racy -- just because the vault didn't exist when we checked for it does not mean it does not exist when we start running az keyvault create.

I think it would be better for everyone if at the very minimum all potentially destructive commands, including az keyvault create fail if the target resource exists, with advice error message to use update rather than silently zapping.
And for those who really want unsafe current behaviour -- add --force flag or something.
Please reconsider.

I'll leave it open to KeyVault team to respond. If their service supports precondition headers or something similar, this would be something they could incorporate.

I've put out a more general feature/discussion issue which was prompted by this and is related. It would also address this if implemented :)
See https://github.com/Azure/azure-cli/issues/7613

@ppanyukov @tjprescott After discussion with the key vault team, we have decided to change the behavior to not replace by default, but rather error, and add a --force parameter which can be specified to override this.  This PR has the change, https://github.com/Azure/azure-cli/pull/7948.

@ppanyukov I suppose I spoke too soon.  From the feedback on this PR looks like there are plans to address this more broadly with #7613.  Given that I've closed that PR and I'm closing this issue.

As of Aug 03, 2021, az keyvault create will return an error when you try to create a keyvault that already exists.
https://docs.microsoft.com/en-us/cli/azure/release-notes-azure-cli?tabs=azure-cli#key-vault

@IIIHeloIII, this behavior is now being discussed at #19165.


Modularization

Broken down the code into three files where the functions are related in some way. (Untested)

I will make a new one. Old one had an error I forgot about


[Bug]: AssertionError When deploy API serve of Qwen2-VL-72B

Your current environment

The output of `python collect_env.py`
[pip3] numpy==1.26.4
[pip3] nvidia-cublas-cu12==<IP_ADDRESS>
[pip3] nvidia-cuda-cupti-cu12==12.1.105
[pip3] nvidia-cuda-nvrtc-cu12==12.1.105
[pip3] nvidia-cuda-runtime-cu12==12.1.105
[pip3] nvidia-cudnn-cu12==<IP_ADDRESS>
[pip3] nvidia-cufft-cu12==<IP_ADDRESS>
[pip3] nvidia-curand-cu12==<IP_ADDRESS>
[pip3] nvidia-cusolver-cu12==<IP_ADDRESS>
[pip3] nvidia-cusparse-cu12==<IP_ADDRESS>
[pip3] nvidia-ml-py==12.555.43
[pip3] nvidia-nccl-cu12==2.20.5
[pip3] nvidia-nvjitlink-cu12==12.5.82
[pip3] nvidia-nvtx-cu12==12.1.105
[pip3] pyzmq==26.0.3
[pip3] sentence-transformers==3.1.1
[pip3] torch==2.4.0
[pip3] torchvision==0.19.0
[pip3] transformers==4.45.0
[pip3] transformers-stream-generator==0.0.5
[pip3] triton==3.0.0
[conda] numpy                     1.26.4                   pypi_0    pypi
[conda] nvidia-cublas-cu12        <IP_ADDRESS>                 pypi_0    pypi
[conda] nvidia-cuda-cupti-cu12    12.1.105                 pypi_0    pypi
[conda] nvidia-cuda-nvrtc-cu12    12.1.105                 pypi_0    pypi
[conda] nvidia-cuda-runtime-cu12  12.1.105                 pypi_0    pypi
[conda] nvidia-cudnn-cu12         <IP_ADDRESS>                 pypi_0    pypi
[conda] nvidia-cufft-cu12         <IP_ADDRESS>                pypi_0    pypi
[conda] nvidia-curand-cu12        <IP_ADDRESS>               pypi_0    pypi
[conda] nvidia-cusolver-cu12      <IP_ADDRESS>               pypi_0    pypi
[conda] nvidia-cusparse-cu12      <IP_ADDRESS>               pypi_0    pypi
[conda] nvidia-ml-py              12.555.43                pypi_0    pypi
[conda] nvidia-nccl-cu12          2.20.5                   pypi_0    pypi
[conda] nvidia-nvjitlink-cu12     12.5.82                  pypi_0    pypi
[conda] nvidia-nvtx-cu12          12.1.105                 pypi_0    pypi
[conda] pyzmq                     26.0.3                   pypi_0    pypi
[conda] sentence-transformers     3.1.1                    pypi_0    pypi
[conda] torch                     2.4.0                    pypi_0    pypi
[conda] torchvision               0.19.0                   pypi_0    pypi
[conda] transformers              4.45.0                   pypi_0    pypi
[conda] transformers-stream-generator 0.0.5                    pypi_0    pypi
[conda] triton                    3.0.0                    pypi_0    pypi

Model Input Dumps
No response
🐛 Describe the bug

bash command of vllm

    CUDA_VISIBLE_DEVICES=2,3,4,5 vllm serve ./models/qwen-vl/qwen2-vl-72b-instruct --tensor-parallel-size 4

The Error output

    INFO 09-27 15:11:19 api_server.py:164] Multiprocessing frontend to use ipc:///tmp/169e02dc-9b25-405d-b27c-8f4ac3083348 for IPC Path.
    INFO 09-27 15:11:19 api_server.py:177] Started engine process with PID 747048
    Unrecognized keys in `rope_scaling` for 'rope_type'='default': {'mrope_section'}
    ...
    assert "factor" in rope_scaling
    AssertionError

Before submitting a new issue...

[X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

+1

You need to install vLLM from source to use Qwen2-VL with transformers>=4.45.

You need to install vLLM from source to use Qwen2-VL with transformers>=4.45.

install from source is slow, maybe caused by network unreachable when install flash-attn?

Closing per @DarkLight1337's response.

You need to install vLLM from source to use Qwen2-VL with transformers>=4.45.

that means fix not included in vllm 0.6.2？

Yeah, it's not in vLLM 0.6.2. The fix was applied after the release.

I believe v0.6.2 should have 4.45. I think this is the issue with 4.45


Questions about paper description and code implementation

Thank you for your excellent work. After reading the paper and code, I have two more questions about the SVA section:
Firstly, the SVA module in Figure 2 of the paper contains 4 self attention and 5 cross attention, but in the code implementation, there are only 2 self attention and 3 cross attention.
Secondly, the SVA described in Figure 3 of the paper is also different from the code implementation. What troubles me the most is that $F_0^{l+1}$ and $F_i^{l+1}$  in Figure 3 serves as both input and output of SVA, and the inference order of self attention, cross attention, and Adaptive Layer Scaling $S^l$ is different from the code implementation.

I apologize for the misunderstanding . Due to the age of the code, it was initially trained based on the code structure.  We  implemented SVA module using CrossVITDecoder and FMT. Then our design approach, as illustrated in Figure 3,  utilizing features $F^{l}$ from the l-th layer and features $F^{l+1}$ from the subsequent layer of DINOv2 within the attention mechanism to generate new features $F^{l+1}$.

We use norm layer inside the attention block, and we only normalized the query q  .

Thank you for your reply. I have tried the SVA module in my own code and the improvement is quite significant. The overall reconstruction error on the DTU test set has been reduced from 0.317 to 0.305 with a certain Gipuma parameter. This is an outstanding achievement.


Is there a easy way to get the most relevant words?

Dear OpenAI group,
Thank you for sharing with us this great work.
Is there a way to get the most relevant words for a given image? Similar to bag of words?
For example, given a face, it may output male/female, color of hair, simile or not smile. I understand it is possible to construct sentences like 'a smiling face', but there are a number of words and different way of combination. It is not easy to create a bank of sentences like this.
Thank you very much for your help.
Best Wishes,
Alex

We'll always need a set of candidate expressions so that their features can be ranked w.r.t. the similarity with the input image.
Prompt engineering can be cumbersome, but you can expect a decent performance boost even with some very simple constructions.
We're preparing another notebook that has the template sentences that we used during prompt engineering for ImageNet! Hope it'll help

We'll always need a set of candidate expressions so that their features can be ranked w.r.t. the similarity with the input image.
Prompt engineering can be cumbersome, but you can expect a decent performance boost even with some very simple constructions.
We're preparing another notebook that has the template sentences that we used during prompt engineering for ImageNet! Hope it'll help

@jongwook Thank you for your reply. I believe this notebook will be very helpful for the community.

@jongwook Thank you for your reply. I believe this notebook will be very helpful for the community.

For info, the notebook is available:
https://colab.research.google.com/github/openai/clip/blob/master/notebooks/Prompt_Engineering_for_ImageNet.ipynb

For info, the notebook is available:
https://colab.research.google.com/github/openai/clip/blob/master/notebooks/Prompt_Engineering_for_ImageNet.ipynb

@woctezuma Thx a lot, the notebook is very helfpful.

@woctezuma Thx a lot, the notebook is very helfpful.

You are welcome. It was a nice question of yours.
I have written a small app (no GPU though) to play with the zero-shot classifier: https://dry-taiga-80279.herokuapp.com/

You are welcome. It was a nice question of yours.
I have written a small app (no GPU though) to play with the zero-shot classifier: https://dry-taiga-80279.herokuapp.com/

@woctezuma I just try it, it works very well. Maybe add this to the CLIP main page, so other people can also use it. I believe a lot of people will kile it.

@woctezuma I just try it, it works very well. Maybe add this to the CLIP main page, so other people can also use it. I believe a lot of people will kile it.

Thanks!
It is just a small app, no need to add it to the repo.
I have done it out of curiosity, and because it is slightly more user-friendly than a Colab notebook.

Thanks!
It is just a small app, no need to add it to the repo.
I have done it out of curiosity, and because it is slightly more user-friendly than a Colab notebook.


Comments are showing up twice

Type: Bug
After the recent VSCode update that changed the styles of the in-editor PR comments UI, the comments from my PRs having been showing up with duplicates, both in the editor itself and in the "Comments" drawer. In the comments drawer filter input, the total says "Showing 6 of 4", which definitely indicates some error.
I do not know if this is because of interference with another extension or anything like that - I also have GitLens installed.
As far as I can tell, these are the steps to reproduce:

Checkout a branch with an open PR and comments

Open the "Comments" drawer and view the PR comments

The comments will be duplicated.

Click on any of the comments to open it in the editor

The comment will appear twice at the commented line.

Extension version: 0.50.0
VS Code version: Code 1.71.2 (Universal) (74b1f979648cc44d385a2286793c226e611f59e7, 2022-09-14T21:05:37.721Z)
OS version: Darwin x64 20.6.0
Modes:
Sandboxed: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2600)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
4, 3, 3

Memory (System)
16.00GB (0.61GB free)

Process Argv
--crash-reporter-id 5a87eb07-c55f-4254-9796-cd8121b0b85e

Screen Reader
no

VM
0%

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30557514
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
hb751961:30553087
dsvsc012:30540252
azure-dev_surveyonecf:30548226
i497e931:30553904
fc301958:30567733

I had the same issue a few days ago but I can't reproduce it.

@alexr00 Unfortunately it was a private repository and can't be shared. I also don't use the feature very often so I haven't seen it since, but it was consistent for that entire week or so.
This may be helpful: I believe their were comments from multiple pull requests on the same branch - a previously closed one and a new one. Perhaps that had something to do with it?
Sorry I don't have much more info for you!

I tried with multiple PRs from the same branch, but I still can't reproduce this issue. Leaving open for now to see if others have ideas on how to trigger this issue.

I found a case where this happens and fix it with 21db0b3


Problem in OASA Example

The example seems to have been coded incorrectly, because if you create a person and do nothing else, that person qualifies.

Resolved in 1.5.0-alpha


Should update build introduction for submodule

The build introduction(README) doesn't work right now. After some investigation, just found you have made dcasgd updater as a submodule.

The ENABLE_DCASGD in CMakeList.txt is OFF by default now.


Katex fails and crashes entirely!

Before reporting a bug

[x] Check common issues.
[x] Check the bug is reproducible in the demo. If not, check KaTeX is up-to-date and installed correctly.
[x] Search for existing issues.

Describe the bug:
Go to the Katex demo. Insert the following text: \begin{\pmatrix}. Disable "throw on error".
Now notice that this will crash Katex. This is not an error message that is generated by katex that can be rendered. It actually throws an exception. This breaks for example react-katex completely, making the entire page go blank!
Expected behavior:
It should not crash. Instead, it should return a nicely formatted error messages etc.
The rest is already explained since it is reproducible on the current and latest Katex Demo!

Probably we should be throwing a ParseError instead of using an assertion like this.


bug (cdk/drag-drop): Can't add Theme style '.cdk-drag-preview'

The theme class is set on the app-component which is the first (and only) element of the body.
When executing drag-and-drop the dragged element (with the class .cdk-drag-preview) is attached to the body.

Due to this the .cdk-drag-preview isn't controlled by themes system.
This bug was already reported twice see:

https://github.com/angular/components/issues/17089
https://github.com/angular/components/pull/17304

The first bug was resolved with a workaround - Set the theme class directly on the body, not on the app-component.
The 2nd bug was resolved with some code change by the material team.
However I'm still getting this problem. Can someone tell me how to fix this?? (putting the theme selector on the body will not work for me)

The theme class is set on the app-component

Nothing in Angular Material sets a theme class to any element like this. It sounds like something your app would be doing. It sounds like you may just be having a CSS targeting or specificity issue, which you would have a better chance debugging on StackOverflow or gitter. Feel free to open another issue with a reproduction if you believe there's some bug in cdk/drag-drop.


'DTWeakSupport.h' file not found in DTAttributedTextContentView.h

compile failed due to 'DTWeakSupport.h' file not found,however,I can find DTWeakSupport.h in the project

Please see #5 -- you need to check out / update the submodules


前端-配置中心-UDF模板、新增UDF函数模板时，代码块样式BUG

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened

What you expected to happen

How to reproduce

Anything else
No response
Version
0.7.0
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

pr #1388


Nice job, @Matthelonianxl, you've successfully merged your pull request!

Nice job, @Matthelonianxl, you've successfully merged your pull request!
Depending on the type of merge you selected, your history now looks something like this:

Notice a new commit has been added to master. This commit is called a merge commit and marks the point in time when your branch was merged into the master branch.

Go to the next pull request now!
Originally posted by @github-learning-lab in https://github.com/Matthelonianxl/merge-conflict/pull/9#issuecomment-590901544

BUILDKITE_PROJECT_PROVIDER
This has been renamed to BUILDKITE_PIPELINE_PROVIDER.

This has been renamed to BUILDKITE_PIPELINE_SLUG.

This has been renamed to BUILDKITE_COMMAND

This has been renamed to BUILDKITE_STEP_KEY

Parallel Services Credits 4 patch build http:/2.0 iOS


CS8401 incorrectly reported

Issue Description
dotnet build runs well, however, vscode with C# extension reports an error
To use '@$' instead of '$@' for an interpolated verbatim string, please use language version '8.0' or greater. [Lab31]
Steps to Reproduce

install dotnetcore sdk 3.1 on Mac
dotnet new console -n Lab31
cd Lab31
code .
update code a little bit as below,
Console.WriteLine(@$"Hello World!");

Expected Behavior
No error
Actual Behavior
To use '@$' instead of '$@' for an interpolated verbatim string, please use language version '8.0' or greater. [Lab31]
Logs
OmniSharp log
Starting OmniSharp server at 12/11/2019, 12:43:48 AM
    Target: /Users/xx/devel/src/csharp/Lab31
OmniSharp server started with Mono 6.4.0.
Path: /Users/xx/.vscode/extensions/ms-vscode.csharp-1.21.8/.omnisharp/1.34.8/omnisharp/OmniSharp.exe
PID: 5574
    Starting OmniSharp on MacOS 10.15.2 (x64)

    DotNetPath set to dotnet

    Located 2 MSBuild instance(s)
        1: Mono 16.3 - "/Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/msbuild/Current/bin"
        2: StandAlone 16.3 - "/Users/xx/.vscode/extensions/ms-vscode.csharp-1.21.8/.omnisharp/1.34.8/omnisharp/.msbuild/Current/Bin"

    Registered MSBuild instance: Mono 16.3 - "/Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/msbuild/Current/bin"
        CscToolExe = csc.exe
        CscToolPath = /Users/xx/.vscode/extensions/ms-vscode.csharp-1.21.8/.omnisharp/1.34.8/omnisharp/.msbuild/Current/Bin/Roslyn

    Detecting Cake files in '/Users/xx/devel/src/csharp/Lab31'.

    Could not find any Cake files

    No solution files found in '/Users/xx/devel/src/csharp/Lab31'

    Queue project update for '/Users/xx/devel/src/csharp/Lab31/Lab31.csproj'

    Detecting CSX files in '/Users/xx/devel/src/csharp/Lab31'.

    Could not find any CSX files

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

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

    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200

    Configuration finished.

    Omnisharp server running using Stdio at location '/Users/xx/devel/src/csharp/Lab31' on host 5547.

    Loading project: /Users/xx/devel/src/csharp/Lab31/Lab31.csproj

    Successfully loaded project file '/Users/xx/devel/src/csharp/Lab31/Lab31.csproj'.

    Adding project '/Users/xx/devel/src/csharp/Lab31/Lab31.csproj'

    Update project: Lab31

C# log
Nothing
Environment information
VSCode version: 1.40.2
C# Extension: 1.21.8
Mono Information
        OmniSharp using global mono :6.4.0
Dotnet Information
.NET Core SDK (reflecting any global.json):
 Version:   3.1.100
 Commit:    cd82f021f4
Runtime Environment:
OS Name:     Mac OS X
OS Version:  10.15
OS Platform: Darwin
RID:         osx.10.15-x64
Base Path:   /usr/local/share/dotnet/sdk/3.1.100/
Host (useful for support):
Version: 3.1.0
Commit:  65f04fb6db
.NET Core SDKs installed:
2.2.402 [/usr/local/share/dotnet/sdk]
3.0.101 [/usr/local/share/dotnet/sdk]
3.1.100 [/usr/local/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.1.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions

Extension
Author
Version

cpptools
ms-vscode
0.26.2

csharp
ms-vscode
1.21.8

gitlens
eamodio
10.2.0

Go
ms-vscode
0.11.9

gotemplate
casualjim
0.3.0

java
redhat
0.54.2

python
ms-python
2019.11.50794

rest-client
humao
0.23.0

vscode-java-debug
vscjava
0.23.0

vscode-java-dependency
vscjava
0.6.0

vscode-java-pack
vscjava
0.8.1

vscode-java-test
vscjava
0.21.0

vscode-lldb
vadimcn
1.4.3

vscode-markdownlint
DavidAnson
0.32.0

vscode-maven
vscjava
0.20.0

vscode-proto3
zxh404
0.3.0

vscode-tlaplus
alygin
1.2.0

vscodeintellicode
VisualStudioExptTeam
1.2.0

xml
DotJoshJohnson
2.5.0

This is resolved in the latest prerelease build. You can try it by downloading VSIX from here https://github.com/OmniSharp/omnisharp-vscode/releases/tag/v1.21.9 and using the following instructions https://github.com/OmniSharp/omnisharp-vscode/wiki/Installing-Beta-Releases#installing-a-beta-release-of-the-c-extension

v.1.21.9 does not help in this case, I have installed it, but still reporting the error, can you reopen it?

can you share the repro project somewhere? I can't reproduce it with 1.21.9  (I can only with 1.21.8)

I can upload to github later, maybe tonight, it looks like 1.21.9 does not help to me

I see your OmniSharp is started with Mono 6.4.0.
You could also try setting "omnisharp.useGlobalMono": "never" and see if it helps. Alternatively, you could also try installing the latest Mono 6.6.0 https://www.mono-project.com/download/stable/

I see, sounds really fair, I believe 6.4.0 was installed by VS Mac, will try no to use global mono

Problem resolved after set useGlobalMono to never


Getting an unlink error after upgrade to Payload 2.0

Happens when uploading any image. Does not seem to impact the upload itself. Exiting and refreshing the upload collection shows that the image was uploaded complete with imageSizes transforms...etc.
Anyone else getting this error? I'm on the Payload Cloud service using this plugin.

Thank you for the report @thompsonsj . I'm seeing if I can recreate.

Do any errors except the above show in your logs?

Do any errors except the above show in your logs?

I'm afraid not. Just did another upload to double check, and in the Payload Cloud dashboard I only get the following message:
[2023-10-12T19:52:40] | (payload): Error: ENOENT: no such file or directory, unlink '/workspace/tmp/tmp-1-1697140358806'


JS/TS diagnostics not working

Check for existing issues

[X] Completed

Describe the bug / provide steps to reproduce it
I cannot see JavaScript/TypeScript diagnostics (errors and warnings). For example, when I type invalid syntax there are no red squiggly lines. Nor are there errors under the project diagnostics.
Autocomplete works. If I type document.get, it will give options such as getElementById, getElementsByClassName. So I assume the LSP is working besides for the diagnostics.
Steps to produce:

Install latest Zed release on macOS
Create a JavaScript file
Write invalid code
Check if there are any errors

I have tried:

Using the latest preview version of Zed
Deleting node_modules, package.json and related files from my home directory
Cloning relevant LSPs into the Zed application support folder
Deleting ~/Library/Application Support/Zed
Reinstalling Zed
Upgrading the NodeJS install using nvm
Checking other languages (Rust diagnostics do work)
Disabling features such as Copilot

Environment
Zed: v0.111.6 (stable)
OS: macOS 14.0.0
Memory: 8 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.
If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.
Zed.log

I'm using 0.112.3 preview. The JS/TS language server has been super unreliable lately, completely unusable. :/

If you type something in a project with type errors the LSP just spins... over 29K RPC messages now while not doing anything, still just looping... zed  using 700% CPU, 21GB of RAM.

Is there a project we can use to reproduce this?

Still broken in 0.112.3

Hey all, we will be talking about this issue in today's all-hands meeting.  I will update with what comes of it.

Looks like a fix might be incoming in 0.113.0?
Just spotted this in the Preview Releases

Bug Fixes
Fixed a few issues preventing Javascript/Typescript language server from working with latest upstream changes.

For me diagnostics or any sort of LSP support stopped working just this week, likely after an auto-update of Zed. I tried downgrading Zed, redownloading LSP packages, wiping the app clean, changing configuration, reverting to defaults. Nothing.
I can still LSP spitting out a ton of RPC messages, some with issues or hints related to my code, but Zed does not report anything in the UI, or for affected documents.
I have to switch back to VS Code, as otherwise I can't get any work done reliably, while Zed for me worked flawlessly for a few months now...

I have one test repo which is TypeScript heavy and should be a good testing ground. Will try to replicate over the weekend, using default and custom configs alike.

It looks like this is fixed in the latest preview release?

Appears to be fixed in the latest version, thanks so much.

I'll check the preview release and report back if it has worked.

So we have a few reports that it works, hence closing this.


C/C++ Code Analysis Extended support [Valgrind, PVS-Studio-cli]

It would be interesting to attach as an extra extension in xmake debugging code using valgrind and pvs-studio cli.
pvs-studio-cmake-example

You can write a custom on_run script to implement in xmake.lua
target("test")
    on_run(function (target)
        os.exec("")
    end)


Merge sync cf5f1cb

Summary
Sync to latest upstream #cf5f1cb
Updates

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 10 committers have signed the CLA.:white_check_mark: dkstyle:x: chenxsan:x: anshumanv:x: snitin315:x: saintmalik:x: okorz001:x: fr-pagesurfer:x: atesgoral:x: i-oliva:x: RyanGreyling2You have signed the CLA already but the status is still pending? Let us recheck it.


v1.12.4 helm chart is failing to unknown flag --ls-ct-skip-dst-lport-ips

Bug Report
kube-ovn-controller ( v1.12.4 ) , from helm chart ( https://github.com/kubeovn/kube-ovn/blob/release-1.12/charts/templates/controller-deploy.yaml#L102 ) fails to start due unknown flag: --ls-ct-skip-dst-lport-ips

The archive tgz file has also beed updated same as the released v1.12.4.
https://github.com/kubeovn/kube-ovn/releases/tag/v1.12.4


rf: S3C-1399 Use CRR metrics from Arsenal

PR has been updated. Reviewers, please be cautious.

PR has been updated. Reviewers, please be cautious.

PR has been updated. Reviewers, please be cautious.

PR has been updated. Reviewers, please be cautious.


[Bug]: Unknown object undefined when call exportSession().

Hello, dear developer! When I call exportSession() I receive error Error: Unknown object undefined.
To Reproduce

Log in to your account.
Call exportSession().
See result.

Expected behavior
Retrieve session string.
Logs
Error: Unknown object undefined
    at TlBinaryWriter.object (file:///home/lwjerri/projects/SpotiGram/node_modules/.pnpm/@mtcute+tl-runtime@0.7.0/node_modules/@mtcute/tl-runtime/esm/writer.js:243:19)
    at writeStringSession (file:///home/lwjerri/projects/SpotiGram/node_modules/.pnpm/@mtcute+core@0.7.0/node_modules/@mtcute/core/esm/utils/string-session.js:22:12)
    at BaseTelegramClient.exportSession (file:///home/lwjerri/projects/SpotiGram/node_modules/.pnpm/@mtcute+core@0.7.0/node_modules/@mtcute/core/esm/highlevel/base.js:168:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async saveSession (file:///home/lwjerri/projects/SpotiGram/dist/app.js:133:27)
    at async file:///home/lwjerri/projects/SpotiGram/dist/app.js:224:12

Environment

OS: Windows 11 (WSL 2 with Ubuntu 22.04).
Runtime: Node.js v21.6.1.
mtcute version: ^0.7.0.

Additional context
I'm use NodeTelegramClient client instance from @mtcute/node package.

:shipit:

Hi, @teidesu (again). Problem is still exists after upgrading package to v^0.7.1 ;(

bruh im retarded

un:shipit:


split github action

automatically updating the package to the latest cura version was a bad idea, as cura 5.7.0 is not working properly.
Instead, the workflow should be split into 2 separate ones:

One that builds the version defined as "stable" and labels it "latest"
One that builds the latest version, e.g. 5.7.0 and labels it "beta". If this version == "stable" version, it should do nothing

This will also require using build args, so the download_url can be passed to the docker build command, instead of being read from a file in the repo


feat: added mulitple reporters feature

:tada: This PR is included in version 2.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Please add ARM support!

Please add ARM support.

Please add ARM support.

This is planned and can be done very quickly, I just have to tweak the way the docker images are created.

also @walkxcode I looked at your profile, pretty interesting stuff ! Would you allow me to use your icon project ?
Maybe we could talk on discord, I'm really looking for all the help I can get on this project and you look pretty knowledgeable 👍🏻

Ofcourse! Add me, Walkx#3333

yes i would love arm support

multi-arch
docker pull ghcr.io/just5ky/myhomepage:master

multi-arch docker pull ghcr.io/just5ky/myhomepage:master

why not rebase your changes and send a pull req

multi-arch docker pull ghcr.io/just5ky/myhomepage:master

why not rebase your changes and send a pull req.
ps. it launched and running on my pi

I think i may have broke something while building. That's why i haven't a pull request yet.
It runs but i am not able to see Sonarr or Radarr data, after adding api keys
Also dark mode resets after refresh

multi-arch docker pull ghcr.io/just5ky/myhomepage:master

why not rebase your changes and send a pull req.
ps. it launched and running on my pi

I think i may have broke something while building. That's why i haven't a pull request yet. It runs but i am not able to see Sonarr or Radarr data, after adding api keys Also dark mode resets after refresh

havent tried sonarr and radarr apis but yes dark mode isnt sticking.

I am thinking of making another dockerfile. Npm can be integrated inside dockerfile, and does not need to be build separately. That might fix the issue

I am thinking of making another dockerfile. Npm can be integrated inside dockerfile, and does not need to be build separately. That might fix the issue

try it and let me know, im down to test

I am thinking of making another dockerfile. Npm can be integrated inside dockerfile, and does not need to be build separately. That might fix the issue

Thanks for all the work !
The previous dockefile used to build using the node image directly (you can check the file history). However, the yarn build wasn't working on arm v7 .
I switched to an easier dockefile and made the build run before the docker build on the GitHub action CI so that it would support and architecture but I forgot to make the CI build the image with all these architectures.

@axsddlr Can you check if your browser saves the dark mode cookie correctly ?

Weird that the darkmode is not saving, then. It works fine on my part
I might move to dark mode saving in config as stated in #38 , this should fix it.

I see you added multi-arch officially. Yay!

Marking this as closed since I (finally) managed to get the multi-arch images to deploy correctly ! 🚀


Support for Promise.pipe is needed...

I did not see this in your library, so the following feature is critical:
Promise.pipe( function(result) {
    ....
    return value || promise;
});

This feature supports promise chains, resolve() result transformations, resolve() rejections.
This is a HUGE missing feature. Please add to your library.

You are coming from jQuery, I see. In Q, such a method is not necessary; there is a much more elegant approach:
// Will return a promise for the value that anotherPromiseReturner's promise
// is fulfilled with, plus 5.
function returnsAPromise() {
    return anotherPromiseReturner().then(function (result) {
        return result + 5;
    });
}

All of the other things you describe have similar elegant solutions with Q. You can see some examples of them in my slides, starting around slide 48.
jQuery breaks this CommonJS promise semantic, i.e. breaks the promise fulfillment <-> method return value correspondence. (In short, this occurs because promises in jQuery can be fulfilled with multiple values.) That is why it needs a custom, nonstandard pipe method and the ugly code it generates.

Also, jQuery’s:
when(a, b, c)
.then(function (a, b, c) {
})

Is equivalent to Q’s
Q.all([a, b, c])
.spread(function (a, b, c) {
})

We should perhaps have a catalog of patterns.  then and spread both support the value or promise return in their callbacks like jQuery pipe.
Because when’s arguments are optional, you can do this exactly like jQuery…
Q.when(x).then(function (x) {
    …

@DomenicDenicola
It seems that you just described the $.Deferred().promise.then( ) syntax.
jQuery [and AS3 Promises] also has a $.when( func1, func2, func3, ...).then( ... ) feature which will process all promises (func1 returns a promise, etc.) in parallel as a batch group. Only when all items in the batch resolve will the .then( ) be invoked. .
What seems to be missing [in Q] is the feature to defer futures in a chain sequence; not a parallel batch. Other libraries supports this in two ways:
$.Deferred.promise.then( func1 ).then( func2.then( func3.then( ))) ).promise.then( ... )

$.Deferred( )
   .promise
   .pipe( func1 )
   .pipe( func2 )
   .pipe( func3 )
   .then( ... )

Promise::pipe() is very powerful in that it supports:

Transforming results of a resolved value
Rejecting a resolved value (for example, the resultHandler was invoked, but the data status code indicates an issue).
Sequence chaining to another deferred/promise

@ThomasBurleson, I'll try again. Q natively supports all three of your requirements, in a more elegant syntax than the hacked-on pipe extension.

As in my previous post.

doSomethingAsync().then(function (result) {
  if (result.statusCode !== 200) {
    throw new Error("Bad status code");
  }
});

Q.defer().promise.then(func1).then(func2).then(func3).then(...);

@DomenicDenicola
Thank you for your reply.
Your .then( ) sequence will work for me also; and seems equivalent to my .pipe( <promise> ) sequence.
Permit me to suggest an issue with your example .
Typically we have the .then() api as follows:
promise.then( resultHandler, faultHandler, progressHandler );

In the resultHandler, I do not want to throw an error; I want to process the expected result data. That is what the faultHandler will do. The pipe allows me to intercept the results before my true handlers are called.
Status code checks can the reject the resolve which calls the faultHandler.
Likewise the result data [in the .pipe() handlers] can parse the data to remove package constructs.
e.g. If the async response is an EventResult then I can do this:
.pipe( function(event:EventResult) {
  return event.result;   // only want the data; not the wrapper
)}
.then( function( result) {

)}

These seems more elegant to me. Thanks for your consideration regarding my thoughts.

@ThomasBurleson, in Q, chained .then calls are the same as jQuery chained .pipe calls. Q does not do parallel processing on the same promise for each .then call: .then returns a new promise for the return value, returned promise, returned rejection, or thrown exception of either the callback or the errback. Since there’s only one callback or errback for each .then call, and only one or the other will be called, which callback resolves the returned promise is unambiguous.  If you want to do parallel processing on the same promise in Q, you have to do this:
var p = getPromise();
p.then(function () {
    return "a";
}) // returns a promise for "a"
p.then(function () {
    return "b";
}) // returns a promise for "b"

@ThomasBurleson
Happy to help. As @kriskowal explains, then does exactly what you want. Your last example is written in Q as
.then(function (event) {
   return event.result;
}).then(function (result) {
  // ...
});

Similarly, my intercept-and-throw example from above can be expanded as
doSomethingAsync().then(function (response) {
  if (response.statusCode !== 200) {
    throw new Error("Bad status code");
  }
  return response.text;
}).then(
  function (responseText) {
    // ...
  },
  function (error) {
    // error here is either the original error from `doSomethingAsync`,
    // or the one we threw above for non-200 status codes.
    // This behavior is in direct correspondence with how exceptions bubble in sync code.
  }
);

Prompted by this discussion, I’ve started a Wiki page for jQuery users.
https://github.com/kriskowal/q/wiki/jQuery

@ThomasBurleson Thanks for your insights as well. You put a voice to jQuery users that I could address in the above wiki article.


Change cartservice external database calls to be separate spans

Adds artificial spans for an external database, which introduces a
little bit of real latency to the AddItem query as well. This replaces
the previous work of changing the existing redis spans into database
spans.

Sorry for all the whitespace formatting... :(


enhancement(folders): add a better files structure

Description
Proposal
During the development to improve the interface design, I'm felt lost with the current folder architecture, so this PR intends to improve the folder structure, basically, I move the source code in a folder called src.
This change gives us more control over the source code and scripts like plop-file.
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

@mverissimo Thanks for the PR. I have a request, it is recommended to create an issue first to confirm if that thing is needed or not so that your effort doesnt go waste when PR is not needed. Regarding this PR, I don't have a strong opnion to change the folder struture of the main code since it is a kind of nextjs folder structure may be. Lets wait what @atapas thinks about this.

Sure, I will open a issue about this so, tks

@mverissimo Thanks for the PR. I have a request, it is recommended to create an issue first to confirm if that thing is needed or not so that your effort doesnt go waste when PR is not needed. Regarding this PR, I don't have a strong opnion to change the folder struture of the main code since it is a kind of nextjs folder structure may be. Lets wait what @atapas thinks about this.

Sure, I will open a issue about this so, tks

Thanks for opening the issue. It helps from the acceptance point of view.

Are you making sure, you have the criteria explained here? https://nextjs.org/docs/advanced-features/src-directory
Have you tested the app from a run/build/feature perspective?


Prune GCBulkMovedObjectRanges from the ETLX

This event is large, but unused. Removing it allows for a substantial increase in the amount of GC allocation data that can be analyzed in one trace.

@sharwell, I don't think that we should remove this event from the resulting etlx.  The general pattern here is that any event whose data is captured in the resulting TraceLog side tables during creation can then be removed.  This rationale for this pattern is that many of these events are rundown events that might be present later in the trace but needed for analysis of earlier events.  The GCBulkMovedObjectRanges event is not encapsulated in the resulting TraceLog and is needed at processing time by any tools that might keep track of the heap state of the process.

I may have understated the impact of this event. This event is 75+% of the resulting ETLX, while the GC events are much smaller. By omitting this event, I can analyze ~10x the GC data I would otherwise be able to.

Another option is finding a way to exclude this event from the "GC Only" scenario.

When you collect with /GCOnly, what type of analysis are you doing?  For most GC analysis, we recommend /GCCollectOnly which only tells you about collections and should not contain heap information events such as GCBulkMovedObjectRanges.

I'm using GC Heap Alloc Ignore Free for scenarios that allocate 200-500GiB.

Are you using sampled allocations, or are you using the profiler API based .NET Alloc support?

I found a different way to achieve this goal


Test new contribution form

The reimplemented website is live, and there is a functioning (as far as I can tell) contribution form. @XeniaMonika, could you please test the form? I've done so already, but you'll know better. Does the download function work? Does the output JSON pass schema validation? Are there important fields or capabilities that are missing from the form in its current state? I'm sure there are, but the idea was to implement something very basic, then build back up to the feature set that is needed in practice.

Could you share the details of that API call here? Not a bad idea to improve documentation of our workflow…

Sure. I´m still using Jonas's account. Is it @Jomula? We can also create our own.
So for example, this is the API of Berlin
http://api.geonames.org/getJSON?geonameId=2950159&username=jomla&style=short&formatted=true
As you can see each city has its own ID, you can find it in the GeoNames ref:  https://www.geonames.org/2950159/berlin.html
In this Berlin´s case, it is 2950159, the same ID is also in the API link, so for other cities you just need to get it from the ref and paste it into the API. This is the Python code I use:
import urllib.request, json
import re
#get the coordinates from geonames
                api_link_1="http://api.geonames.org/getJSON?geonameId="
                api_link_2="&username=jomla&style=short&formatted=true"

                def add_lat_and_lng():
                    ref=d.get("place_name").get("ref")
                    if ref!=[]:
                        number=re.findall(r'\d+', ref[0])[0]
                    link=api_link_1 + number + api_link_2
                    with urllib.request.urlopen(link) as url:
                        api_data = json.loads(url.read().decode())
                    d["coordinates"]["lat"]=api_data.get("lat")
                    d["coordinates"]["lng"]=api_data.get("lng")

                for d in places:
                    if d.get("coordinates").get("lat") == "0":
                        add_lat_and_lng()

As I said, I could gladly do it as a little exercise ;)

It is probably best to create a project account for the GeoNames API, I don't need mine right now, but it is generally best to have it project-specific.

Ok, I´ll do it right now!

Ok, I´ve created an account for our project. Our user name is closing_the_gap
That the updated API link for Berlin:
http://api.geonames.org/getJSON?geonameId=2950159&username=closing_the_gap&style=short&formatted=true
api_link_1="http://api.geonames.org/getJSON?geonameId="
api_link_2="&username=closing_the_gap&style=short&formatted=true"

I think we are done with this one, right?

Yeah, probably. There are still improvements that could be made, but the initial issues are solved.


support inheritance of topics

a Topic should be allowed to extend another topic.
When using slots may be a topic hierarchy should be generated and recommended .

Description
Implement single inheritance support in pyMetaModel using the existing isA relationship. This will allow Topics to inherit properties from parent Topics


Bug: Trying to access array offset on value of type bool

PHP Version
8.1
CodeIgniter4 Version
4.2.1
CodeIgniter4 Installation Method
Manual (zip or tar.gz)
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
MariaDB 10.4.24
What happened?
nothing works anymore
Steps to Reproduce
Controllers :
$session = session();
$modelParametres = new ModelParametres();

$ClientRetourne = $modelParametres->retournerClientID($ClientID);
$session->set('noclient', $ClientRetourne["noclient"]);

Models :
public function retournerClientID($ClientID)
    {
        $builder = $this->db->table('client');
        $builder->join('obtenir', 'client.noclient = obtenir.noclient');
        $builder->join('grade', 'obtenir.nograde = grade.nograde');
        $builder->where('client.noclient', $ClientID);
        $query = $builder->get();
        if (count($query->getResultArray()) == 1) {
            return $query->getRowArray();
        }
        else
        {
            return false;
        }
    }

Expected Output
before I had no problem, I have the error that since a few days,
it is supposed to refer 1 specific customer
Anything else?
No response

Please use latest version. 4.2.6

When $modelParametres->retournerClientID() returns false,
you cannot access $ClientRetourne["noclient"].
We use GitHub issues to track BUGS and to track approved DEVELOPMENT work packages. We use our forum to provide SUPPORT and to discuss FEATURE REQUESTS.


Infinite loading email connect field

Describe the bug
Cannot acces to email field, there is an infinite activity indicator that is loading (v3.2.1)
https://github.com/WalletConnect/Web3ModalFlutter/assets/53000621/640cc132-b5cc-4477-a007-41bd57a2efa6
To Reproduce
Steps to reproduce the behavior:
Enable the email connection in W3MService
_w3mService = W3MService(
      projectId: '0c4489e57498a892c4fca2fb33e93f36',
      metadata: const PairingMetadata(
        name: 'Web3Modal Flutter Example',
        description: 'Web3Modal Flutter Example',
        url: 'https://www.walletconnect.com/',
        icons: ['https://walletconnect.com/walletconnect-logo.png'],
        redirect: Redirect(
          native: 'w3m://',
          universal: 'https://www.walletconnect.com',
        ),
      ),
      enableEmail: true,
    );

Add a W3MConnectWalletButton
Click on it
Cannot click on the email field and there is an infinite activity indicator
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Android samsung S6 and android one+
Additional context
full code
import 'package:flutter/material.dart';
import 'package:web3modal_flutter/web3modal_flutter.dart';

class SignInPage extends StatefulWidget {
  const SignInPage({super.key});

  @override
  State<SignInPage> createState() => _SignInPageState();
}

class _SignInPageState extends State<SignInPage> {
  late W3MService _w3mService;

  @override
  void initState() {
    super.initState();
    initializeState();
  }

  void initializeState() async {
    W3MChainPresets.chains.putIfAbsent(_chainId, () => _sepoliaChain);

    _w3mService = W3MService(
      projectId: '0c4489e57498a892c4fca2fb33e93f36',
      metadata: const PairingMetadata(
        name: 'Web3Modal Flutter Example',
        description: 'Web3Modal Flutter Example',
        url: 'https://www.walletconnect.com/',
        icons: ['https://walletconnect.com/walletconnect-logo.png'],
        redirect: Redirect(
          native: 'w3m://',
          universal: 'https://www.walletconnect.com',
        ),
      ),
      enableEmail: true,
    );

    // _w3mService.onModalConnect.subscribe((ModalConnect? event) {});

    await _w3mService.init();
  }

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        W3MConnectWalletButton(service: _w3mService),
        W3MNetworkSelectButton(service: _w3mService),
        W3MAccountButton(service: _w3mService),
      ],
    );
  }
}

const _chainId = "11155111";

final _sepoliaChain = W3MChainInfo(
  chainName: 'Sepolia',
  namespace: 'eip155:$_chainId',
  chainId: _chainId,
  tokenName: 'ETH',
  rpcUrl: 'https://rpc.sepolia.org/',
  blockExplorer: W3MBlockExplorer(
    name: 'Sepolia Explorer',
    url: 'https://sepolia.etherscan.io/',
  ),
);

Thank you very much @AlexScotte for the report! Allow me some time to investigate and I'll be back to you

Hello @AlexScotte Could you add logLevel: LogLevel.error, in your W3MService instance  and also add a listener to _w3mService.onModalError just to check if you see something valuable in the console?
So basically your code will be this:
import 'package:flutter/material.dart';
import 'package:web3modal_flutter/web3modal_flutter.dart';

class SignInPage extends StatefulWidget {
  const SignInPage({super.key});

  @override
  State<SignInPage> createState() => _SignInPageState();
}

class _SignInPageState extends State<SignInPage> {
  late W3MService _w3mService;

  @override
  void initState() {
    super.initState();
    initializeState();
  }

  void initializeState() async {
    W3MChainPresets.chains.putIfAbsent(_chainId, () => _sepoliaChain);

    _w3mService = W3MService(
      projectId: '0c4489e57498a892c4fca2fb33e93f36',
      logLevel: LogLevel.error,
      metadata: const PairingMetadata(
        name: 'Web3Modal Flutter Example',
        description: 'Web3Modal Flutter Example',
        url: 'https://www.walletconnect.com/',
        icons: ['https://walletconnect.com/walletconnect-logo.png'],
        redirect: Redirect(
          native: 'w3m://',
          universal: 'https://www.walletconnect.com',
        ),
      ),
      enableEmail: true,
    );

    // _w3mService.onModalConnect.subscribe((ModalConnect? event) {});
    _w3mService.onModalError.subscribe(_onModalError);

    await _w3mService.init();
  }

  void _onModalError(ModalError? args) {
    debugPrint('modal eror ${args?.toString()}');
  }

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        W3MConnectWalletButton(service: _w3mService),
        W3MNetworkSelectButton(service: _w3mService),
        W3MAccountButton(service: _w3mService),
      ],
    );
  }
}

const _chainId = "11155111";

final _sepoliaChain = W3MChainInfo(
  chainName: 'Sepolia',
  namespace: 'eip155:$_chainId',
  chainId: _chainId,
  tokenName: 'ETH',
  rpcUrl: 'https://rpc.sepolia.org/',
  blockExplorer: W3MBlockExplorer(
    name: 'Sepolia Explorer',
    url: 'https://sepolia.etherscan.io/',
  ),
);

Hello @quetool,
Thanks for your answer
Not sure it comes from the modal error event because i do not hit the break point that i put inside but now i have this in the console

other message in the console that can help you too

Thanks @AlexScotte, could you confirm your device is connected to internet? Asking just to discard that possible error, most of the times "Failed host lookup" happens when device is not connected to internet.

I tested again on my mobile to be sure that it's not a wifi issue, I do not have the same error in the debug console, so maybe i had an issue on my tablet but still the same behavior
https://github.com/WalletConnect/Web3ModalFlutter/assets/53000621/2efb15bf-bc9c-4e5b-b729-7fddf37bf3bc
The full debug console, i hope it will help

Could you add your bundleId and packageName inside cloud configuration?

LogIn into https://cloud.walletconnect.com/
Open Dashboard and scroll down to Mobile Application IDs menu
Add your iOS Bundle ID and your Android Package Name

Your Android Package Name it seems to be com.example.boilerplate wallet_web3 so should look like this

After this, please wait around 20 minutes and try again.

Hello @AlexScotte ! I identified the issue.
From one side, you do have to whitelist your bundleId and packageName as I mentioned in my previous comment (I'll add this into the docs)
On another side, there's an initialization bug that is affecting only Android. If you have an iOS device or simulator you can keep your development there and I'll push a fix for Android tomorrow.
Thank you very much for this report!

I added the package name in cloud wallet connect, I will test again after the fix
Thank you

GM @AlexScotte ! Do you mind trying now if it's working? 🙏

GM @quetool all is working great now ! Thank you for the quick fix
https://github.com/WalletConnect/Web3ModalFlutter/assets/53000621/a9ea3142-3f4f-49f6-a2ef-481009be62d5

Wonderful! Depending on your internet quality the loading behavior could take more or less! 💪

Sorry @quetool does the email connection available for windows app ? I have an issue on the initialization of W3MService but i wanted to be sure before creating a new ticket
The error appears only if I activate the enbleEmail: true

Thanks for the informations !


[Bug]: BABEL_2.X_DEV babelfish_extensions/contrib/babelfishpg_money to be unable to build

What happened?
When I execute sudo make on ubuntu22.04, the compilation reports an error. I don't know how to handle it. Please check whether the program is buggy.
Version
BABEL_1_X_DEV (Default)
Extension
babelfishpg_money
Which flavor of Linux are you using when you see the bug?
Ubuntu (Default)
Relevant log output
sudo make
/bin/sh: 1: --version: not found
/bin/sh: 1: --version: not found
/bin/sh: 1: --version: not found
make: --pgxs: 没有那个文件或目录
/bin/sh: 1: --version: not found
/bin/sh: 1: --version: not found
/bin/sh: 1: --version: not found
/bin/sh: 1: --version: not found
/bin/sh: 1: --version: not found
make: *** 没有规则可制作目标“/fixeddecimal--1.1.0_base.sql”，由“babelfishpg_money--1.1.0.sql” 需求。 停止。

Code of Conduct

[X] I agree to follow this project's Code of Conduct.

Version
IS BABEL_2_X_DEV

@liyuejin: Is this still a problem?


Explore nudges

Possible nudges:

Support creators
Get rewards eligible
Buy LBC?
Create a channel?
Did you like this? / Follow this?
Make a first comment?

Embed nudges!
Create an account nudges!

"Enter your phone number to keep your account safe"

Nudge from lbry.tv to Odysee?

Reactions from embeds would be a nudge https://github.com/lbryio/lbry-desktop/issues/4918

Other embed based nudges

Trigger a notification when they miss out on earning a reward
Notification lets them know to create account and claim

Homepage card nudge


Join on clauses for queries / relations

Is there a way to add join.on clauses for a given relation or query? It's easy enough to join and then add where clauses, but I can't find a way to add on clauses to the join operation itself.

You an add on clauses to plain joins like this:
Person
  .query()
  .join('Pet', join => {
    join.on('Person.id', 'Pet.ownerId').on(...)
  });

What do you mean by adding on clauses to a relation?

Check out this file for available methods on the join builder.

@jordansexton Was that what you were looking for? Can I close this?

Thanks for following up! I was writing up something to demonstrate the use case for this, as I thought a practical example would help. Essentially, I want to exclude related rows in the join clause rather than matching all related rows and then excluding them in the where clause. Aside from being more performant, this is practical for doing joins (esp. inner joins) against a related table where you want exclude items from the left table based on matching/not matching on clauses in the join.
As a simplified but concrete example, I have a jobs and job_statuses table. A job's status changes by inserting a new row into the job_statuses. The latest (by an auto-incrementingserial column) is the job's status; this allows viewing status changes over time by grabbing all the statuses related by a given jobId.
To find a queued job to run, I want to joinRelation('statuses') from jobs, but I want to only join where the latest status is queued, and do a self anti-join on the statuses table. The SQL I generate looks something like this:
SELECT "jobs".*
FROM "jobs"
     INNER JOIN "job_statuses" ON
                               "job_statuses"."jobId" = "jobs"."id" AND
                               "job_statuses"."status" = 'queued'
     LEFT JOIN "job_statuses"
               AS "job_statuses_2" ON
                                   "job_statuses_2"."jobId" = "job_statuses"."jobId" AND
                                   "job_statuses"."serial" < "job_statuses_2"."serial"
WHERE "job_statuses_2"."jobId" IS NULL

I hack this a bit right now by calling QueryBuilder methods on separate instances to perform joins, and then concating their _operations into a single QueryBuilder instance.
The API using joinRelations I'm imagining looks something like this:
class Job extends Model {
    static get relationMappings () {
        return {
            statuses: {
                relation: HasManyRelation,
                modelClass: JobStatus,
                from: 'Job.id',
                to: 'JobStatus.jobId'
            }
        };
    }
}

class JobStatus extends Model {
    static get relationMappings () {
        return {
            job: {
                relation: BelongsToOneRelation,
                modelClass: Job,
                from: 'JobStatus.jobId',
                to: 'Job.id'
            },
            forJob: {
                relation: HasManyRelation,
                modelClass: this,
                from: `JobStatus.jobId`,
                to: `JobStatus.jobId`
            }
        };
    }
}

Job.query()
    .joinRelation('statuses', function (join) {
        join.on('status', raw('queued'));
    })
    .joinRelation('statuses.forJob', function (join) {
        join.on('statuses.serial', '<', 'related.serial');
    });

(Edited the builder code above to match the SQL.)
Essentially, I want to be able to customize the join (while still using the inferred relation's aliases, on clauses, and filters) rather than just add where clauses.

That would be pretty difficult to implement. Currently both statuses and statuses.forJob join calls would create the same join and alias for statuses that would cause an "ambiguous identifier" error. There is no easy way to solve that because there is no way to test if an existing join equals the one we are creating in knex. We would need to build that mechanism to objection.
I think your are better off using plain knex joins for now.
By the way, have you actually measured the performance difference? Database engines have pretty amazing query optimizers that should be able to convert those wheres to ons.

On further consideration, I agree. The implementation would be complicated and likely appear ambiguous or magical, even if the ambiguities could be resolved. Also, it's not much more code to use join with a function (you're essentially just saving the first on clause), and to use copyFrom for composing complex queries.


(WIP) JPA support for blocking event strore

Disclaimer
:warning: This PR is a WIP (Im still struggling with some test stuff)
:warning: I havent given much thought to how other modules (besides the blocking event store) might be implemented using JPA. (e.g. something like subscriptions is probably more provider specific)
JPA support for blocking event store
Im curious if you'd be open to supporting JPA implementations of some of the Occurrent modules.
Why
Ill be the first to admit that I'm not a big fan of JPA. Especially for a project like Occurrent where the data access patterns are very clearly defined I thinks its probably more optimal to simply use a native driver directly.
That being said, supporting JPA might be an easy way to very quickly gain support for many different underlying stores (postgres, mysql, dynamo, redis, etc)
Additionally, it would not preclude the project from also support native drivers for those stores in the future.
Design choices
I mostly copied the Mongo implementation, tweaking some things for readability/organization. The Query DSL stuff is implemented using JPA's Specification library (see first link at bottom)
Lombok
I mostly just added this because I wanted to iterate quickly. If youd rather the project not use lombok, Id be happy to remove it!
Mixins
A lot of the heavy lifting that maps the query dsl functionality to JPA's query functionality is done via default interface methods. I called these things Mixins (I dont know if thats the most accurate technical term but :shrug:)
This pattern allows the library to specify a lot of default functionality but gives consumers the ability to override things if required.
Batteries not included
With this implementation, some assembly is required from the consumer of the JPA library. To get an idea of what consuming this library might look like, check out the batteries package in the test source set.
This pattern gives the consumer more control over the underlying concrete type that will be used

If using a relational database it gives the consumer control over how the schemas get applied (e.g. if they want to split out schema management into liquibase/etc they can because they own the types)
JPA has a lot of performance pitfalls when using related data. This approach completely offloads the problem of "make sure your JPA models are set up correctly" onto the consumer (see second linked resource)

Resources

https://vladmihalcea.com/spring-data-jpa-specification/
https://medium.com/@majbahbuet08/performance-pitfalls-while-using-spring-data-jpa-and-solutions-to-avoid-them-5eb4ee3fe4ea

WIP
I left this as a WIP because I wanted to get some feedback + see if you're even interested in merging it before I go any further. Let me know!

What a great initiative @nicklundin08! I've wanted to have a SQL implementation for a long time, but I've never had time to think about it or implement it myself. My initial thoughts were to use JDBC or something (just as you hinted at), but maybe JPA would work.
Could you maybe describe the thinking behind your design decisions? For example, if I understand it correctly, you serialize the data part of the CloudEvent to JSON as string. My idea was perhaps to use the native JSON type that I think exists in both MySQL and Postgres (and maybe others)? Not sure if JPA supports this though.
Also, do you have any experience with change streams? That's more or less required if you want a working application :)

Thanks for the reply!

Could you maybe describe the thinking behind your design decisions? For example, if I understand it correctly, you serialize the data part of the CloudEvent to JSON as string. My idea was perhaps to use the native JSON type that I think exists in both MySQL and Postgres (and maybe others)? Not sure if JPA supports this though.

Yeah wrt the data structure that you see in the init tables function, I was simply going fast. I think I better approach would be to either use the JSONB column type that postgres supports OR do something like convert the cloud event to 3NF. Im not sure if we could use the JPA specifications to grab nested objects outside of a JSONB column. Im sure once I implement some more tests it will become clear what the appropriate table structure would be
Disclaimer: I have no production experience with event sourcing

Also, do you have any experience with change streams? That's more or less required if you want a working application :)

Is this in the context of implementing subscriptions? I took a peek at the mongo implementation and I think I see whats going on. Correct me if Im wrong but under the hook you are using the mongodb changestream functionality to trigger various functions that "subscribe" to certain events (or types of events)
If so I can think of a few ways that you could do that in RDS land
Option1: Use JPA with polling
This would require/assume a few things

A new table that stores position-aware subscription information
Competing consumer model

Option 2: Use JPA's auditing entity listener
https://www.baeldung.com/jpa-entity-lifecycle-events

Use the JPA lifecycle hooks to fire subscription handlers when new events are inserted
The events would be guaranteed/force to be processed on the same "box" (process) from where the event originated

:warning: Unsure on what kind of delivery guarantees/data loss would be present in this solution. Needs more analysis
Option 3: Use a provider specific equivalent of mongodb's changestream
Postgres has the listen/notify concept

https://www.postgresql.org/docs/current/sql-notify.html
https://bitbucket.org/neilmcg/postgresql-websocket-example/src/master/src/main/java/PGNotifyToWebSocket.java

MySQL might have something similar
Option 4: CDC using integration tools
Use a solution like dbezium  to move events from your RDS system into a kafka stream. Subscribe to the kafka stream.

Option #1 would be the most generic to implement as it doesnt require any provider specific functionality nor an additional piece of infrastructure, but Im not sure if polling would cause other issues/not be an acceptable solution for the changestream problem
Do any of those jump out at you as the right place to start?
Does occurrent have any particular delivery/order guarantees with subscriptions?

e.g. I think the competing consumer model gives you at-least-once delivery but no order guarantees

Does the subscription model have to be position aware?

On another note, is there anything youd like to see code-wise before considering merging? Heres a few things Id like to do before marking this as "ready"

Port adaquate tests into the BaseTest class

Mostly just copying from the mongodb section

Add concrete JPA tests for the following providers

Postgres
[Optional] Dynamo
[Optional] Redis

Add javadocs to all public apis
Scrutinize dependencies

Currently using spring-data-starter-jpa
This is a very heavy package and Im only bringin it in to get tests to work
I think a better solution is to use the spring-data-jpa package instead

update the package structure to reflect the blocking/reactor structure in other package

Let me know if theres anything youd like me to add/remove!

Thanks for all your efforts. However, I think I would like to see better JSON support, i.e. not storing the data as a string :/ The reason is that I'd like to support query capabilities (https://occurrent.org/documentation#eventstore-queries), also inside the data property in the cloud event (I'm using this in production atm and I think it can be quite nice). If this is not possible with JPA, I think it might be better to implement support using other means (jdbc if that works). I don't have any experience with this myself though, but I guess it should work in both Postgres, MySQL and probably others.
Another thing I'm thinking of is subscription support (https://occurrent.org/documentation#subscriptions). Without subscriptions, it's hard to do anything useful. I think that we need subscription support from the get-go. I don't want to bring in Debezium unless it's really needed (to keep dependencies down), but maybe it would be a good starting point if it's too difficult to achieve it ourselves. I don't know if JDBC supports change streams or if one would need to write different change streams for different implementations. If so Debezium might be a more lucrative option, given that it supports everyone we want to do.
WDYT?

Hey sorry for the late reply. I was on vacation last week.

Re: JSON
Gotcha. Yeah I think have JSON support in a pretty good spot ATM (see above comment)

Re: Subscriptions
Makes sense not going down a route that makes use of dbezium or something like that
I think the two options that could be implemented then are

Some sort of table structure that stores subscription information + polling

:white_check_mark: Not provider specific
:x: Polling may not be as performant?

Using provider specific functioanlity to "listen" for changes

E.g. postgres supports Listen + Notify keywords
:x: Provider specific (different impls for postgres, mysql, etc)
:white_check_mark: Maybe more performant/beneficial for other reasons?

Do you prefer either of those options?

Ive got 14 failing tests that I need to wrap up before I take a stab at any of that

You should check out https://github.com/eugene-khyst/postgresql-event-sourcing in which the author has detailed a robust approach for implementing asynchronous subscribers using both polling as well as listen/notify on PostgreSQL. The readme goes into nice detail regarding the care that must be taken due to parallel transactions.
The discussion on Hacker News regarding that reference implementation gives further insight and mentions some alternative approaches: https://news.ycombinator.com/item?id=38084098
Perhaps you can ask @eugene-khyst whether or not he is interested in collaboration.


Prevent Navigation to Dates in the Past.

Is there a good way to prevent the Previous Navigation Button from scrolling the calendar into the past?  In playing around with it I can get that functionality by adding
onPreviousMonthClick(e) {
  ...
  const newMonth = this.state.currentMonth.clone().subtract(1, 'month');
  if (preventPastMonthNav && newMonth.isBefore(moment().startOf('month'))) {
    return;
  }
  ...
}

But I wasn't necessarily sure if that was the best way to add this functionality. And I would assume that I am not the only one that might want this functionality and it could also be added to prevent Navigation into the future.  I am happy to submit a PR for this.

@majapw, Can you give me some guidance on this?

Closing in favor of #631

Duplicate of #631


Add impl members assist shold not copy docstrings and attrs

when invoking assist for impl PartialEq for Diagnostics, I get
impl PartialEq for Diagnostics {
        /// This method tests for `self` and `other` values to be equal, and is used
        /// by `==`.
        #[must_use]
        #[stable(feature = "rust1", since = "1.0.0")]
        fn eq(&self, other: &Rhs) -> bool { unimplemented!() }
        /// This method tests for `!=`.
        #[inline]
        #[must_use]
        #[stable(feature = "rust1", since = "1.0.0")]
        fn ne(&self, other: &Rhs) -> bool { !self.eq(other) }
}

There are two problems here:

doc comments and attributes should not be copied
default methods like ne should not be copied

Code and tests for this feature are here:
https://github.com/rust-analyzer/rust-analyzer/blob/3d7a330f320ac2ebf73df012556d64be9b120445/crates/ra_assists/src/add_missing_impl_members.rs

We should have a new assist for adding default methods too I guess

I think adding default methods should be done via completions, i.e. if you type fn  inside an impl, it should propose all missing methods including default methods, and complete the whole signature if you choose the completion.


Frozen screen on quest after starting server

the server says im connected and in the headset viewer in steam vr shows my headset and controllers tracking fine but in the actual headset itself its just stuck on the "press trigger to start steamvr" screen, i had the same issue in alpha 4 and 3, alpha 5 didn't seem to help, i have tried changing the video codec, changing the sound settings, uninstalling and reinstalling ALVR, disabling firewall with absolutely no luck i don't know what else to try plzzzz help

Perhaps you couldn't get first video frame because of bad network state.
Try lower bitrate like 5~10Mbps.
And confirm that you are using 5GHz Wi-Fi.

oh im using a 2.4ghz wifi that might be the problem :(

i am now using a 5ghz wifi but still no difference

I'm having this same issue. Anyone find a resolution?


Linux build run not working fedora ( I have solution )

Steps to reproduce
karthi@hiwatari-fedora:~/your project path $ flutter run
Connected devices:
Linux (desktop) • linux  • linux-x64      • Fedora Linux 39 (Workstation Edition)
6.6.13-200.fc39.x86_64
Chrome (web)    • chrome • web-javascript • Google Chrome 121.0.6167.139
[1]: Linux (linux)
[2]: Chrome (chrome)
Please choose one (or "q" to quit): 1
Launching lib/main.dart on Linux in debug mode...
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:607 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_internal)
flutter/ephemeral/.plugin_symlinks/desktop_webview_auth/linux/CMakeLists.txt:21 (pkg_check_modules)
Building Linux application...
Exception: Unable to generate build files
Actual results
sudo dnf install libsecret-devel jsoncpp-devel
https://stackoverflow.com/a/76977437/18976379 solves the issue
Logs
No response
Flutter Doctor output
flutter doctor all checks are OK

flutter/ephemeral/.plugin_symlinks/desktop_webview_auth/linux/CMakeLists.txt:21 (pkg_check_modules)

Per the error message, this is coming from the build file for the desktop_webview_auth plugin. Issues with third-party packages need to be reported to the developers of the package.


This SCIM2 test case has a malformed request where userName is not used

Purpose
This test case sends validates the payload used for provisioning the user
Tested environment
1.ubuntu 18.04
2.java version "1.8.0_161"
3.Identity server wum updated pack wso2is-5.7.0+1543336788716.full with jdbc user store
Automation tests
The test attempts to provision a user with payload that users "name" instead of "userName" to set the user name for the new user. The response is asserted along with the error schema

closing the PR planning to send as one


Fix spelling and grammar in Components

@mkArtakMSFT
Using this PR in favour of previous PR #13953 which had rebase issues.

@adrianwright109 I guess, you forgot some things: https://github.com/aspnet/AspNetCore/issues/14355


pyOCD basic_test.py fails on 2nd dev.open call on device with non-matching target id

Synopsis: Running basic_test.py on a new installation of pyOCD on a Mac, with an nRF51-DK connected, yields a "IOError: open failed" error.
Scenario:
MacBook Pro, Core 2 Duo
Mac OS X "Yosemite" 10.3.3 (pre-release seed 3)
Python 2.7.6
Nordic nRF51-DK platform
mbed IF: nrf51822aa_atsam3u2c_if_mbed_V0218_19022015.bin
Enumerates as:
Product ID:	0x0204
Vendor ID:	0x0d28
Version:	1.00
Manufacturer:	MBED
Backtrace on failure
  File "basic_test.py", line 46, in <module>
    with MbedBoard.chooseBoard() as board:
  File "/Users/mwirth/Desktop/MacGitRepos/pyOCD/pyOCD/board/mbed_board.py", line 169, in chooseBoard
    all_mbeds = MbedBoard.getAllConnectedBoards(transport, False, blocking, target_override, frequency)
  File "/Users/mwirth/Desktop/MacGitRepos/pyOCD/pyOCD/board/mbed_board.py", line 122, in getAllConnectedBoards
    all_mbeds = INTERFACE[usb_backend].getAllConnectedInterface(mbed_vid, mbed_pid)
  File "/Users/mwirth/Desktop/MacGitRepos/pyOCD/pyOCD/interface/hidapi_backend.py", line 78, in getAllConnectedInterface
    dev.open(vid, pid)
  File "hid.pyx", line 48, in hid.device.open (hid.c:1263)
IOError: open failed

Diagnostics:
Original code snippet around dev.open call:
            try:
                dev.open(vid, pid)
            except AttributeError:
                pass

Added diagnostics:
            try:
                print "Getting ready to try dev.open"
                dev.open(vid, pid)
            except Exception, ex1:
                print "dev.open failed with exception: ", ex1

pyCharm debugger output:
pydev debugger: process 24017 is connecting

Connected to pydev debugger (build 139.1547)
Getting ready to try dev.open
INFO:root:Unsupported target found: 1100
INFO:root:Waiting for a USB device connected
Getting ready to try dev.open
dev.open failed with exception:  open failed

Process finished with exit code 139

Analysis:
So it looks like the dev.open is failing on the second pass, not the first (because the device is already open). On the first pass, it opens, but the code rejects the device later because the target id (1100) doesn't match.
I would suggest the following changes in the pyOCD code:

Add 1100 to the set of matching target ids (Or fix how the id gets extracted from the nRF51-DK.)
If the target id match fails (or the device is rejected for any other reason), make sure to close it.

Hi @mikew67 I have this branch to address your first point.  With this you should be able to get the nrf51-dk running: https://github.com/c1728p9/pyOCD/tree/nrf51-dk

Thanks for reporting @mikew67 . As @c1728p9 pointed out, the other nrf chips were not added (their id is missing).
As I can see, there will be added soon :+1:

Hi @mikew67 , the pull request #110 fixed the problem where the same board is opened twice if it is unsupported.  The pull request #142 adds support for the nrf51-dk.  Can this issue be closed, or do you see any further problems?

Yes, I'll close this.  Thanks for the followup.
Mike