wip jetstream client helper

@derekcollison I dont know what you have in mind for client helpers but I had this lying around and did some renaming in anticipation of yours and filled it out a bit.
Let me know what you think as a direction for adding to nats.go?
Basically I want general use to be like this:
c, _ := jsch.LoadConsumer("ORDERS", "NEW")
c.Subscribe(func(m *nats.Msg) {
  // do stuff
})

I might add something like LoadOrCreateConsumer etc, anyway, let me know what you have in mind like I said I had parts of this lying about so figured I'd throw it up

Before we spoke about templates I added some concept of template configs here ...


Allow access to Presto specific error information in JDBC driver

It would be helpful to expose the error name and type. The numeric code is already available via vendorCode field of the JDBC driver (which is why we have a numeric code at all). A SQLException subclass is one approach. For example, PostgreSQL has org.postgresql.util.PSQLException that contains extra error information. Another approach is to provide this as part of the SQLException causal chain.
We should survey different drivers and see what they do, and if there are any common or clever approaches.


Add file references for plugin/theme headers

Fixes #376

FYI @ocean90 — would like to know if you think this makes sense or not.

Yeah I thought about that as well. Always thought that requires a more complex solution (see #65) but maybe using PREG_OFFSET_CAPTURE would suffice (see this SO post). I'll see how feasible it is and otherwise will file a follow-up issue.

@wp-cli/committers would appreciate a quick review here so I can merge this


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_42cbba83-de59-4138-9b80-92d3fc50ee24/pull/1 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target_42cbba83-de59-4138-9b80-92d3fc50ee24.git

Docs Build status updates of commit a814fdd:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error-GitBranchDeletedOrForcePushed] Cannot sync git repo to specified commit because branch Release_Archive_master_2021-05-27-05-19-57 has been deleted or has been force pushed

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


fix: remove redundant Cloudflare worker asset check

closes https://github.com/sveltejs/kit/issues/9039
Removes the generated file check in the worker and adds the no-cache header value for /_app/version.json in the generated headers.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
[x] This message body should clearly illustrate what problems it solves.
[ ] Ideally, include a test that fails without this PR but passes with it.

Tests

[x] Run the tests with pnpm test and lint the project with pnpm lint and pnpm check

Changesets

[x] If your PR makes a change that should be noted in one or more packages' changelogs, generate a changeset by running pnpm changeset and following the prompts. Changesets that add features should be minor and those that fix bugs should be patch. Please prefix changeset messages with feat:, fix:, or chore:.

@s3812497<EMAIL_ADDRESS>seems to have broken the deployment for me and some others (Svelte Discord Thread).
While local preview looks fine, some assets are not served anymore when accessing from a Cloudflare Pages deployment.

Previously, a lot of assets were returned immediatly without any additional checks. Could this be the issue?
https://github.com/s3812497/kit/blob/32cbe071bb3fe5093c3946a39507f8b04a9eb737/packages/adapter-cloudflare/src/worker.js#L22-L38

Hi @s3812497<EMAIL_ADDRESS>seems to have broken the deployment for me and some others (Svelte Discord Thread).
While local preview looks fine, some assets are not served anymore when accessing from a Cloudflare Pages deployment.

Previously, a lot of assets were returned immediately without any additional checks. Could this be the issue?
https://github.com/s3812497/kit/blob/32cbe071bb3fe5093c3946a39507f8b04a9eb737/packages/adapter-cloudflare/src/worker.js#L22-L38

I'm terribly sorry for that! I'll investigate more as soon as I can. Serves me right for thinking the static requests would be served just fine through the _routes.json file

I am facing the same issue as @TimoWilhelm. Worked fine 2 days a go but not working today. Works in dev and preview after building but not in cloudflare.


Constructor of class Group limits outputs

The constructor in groups.py https://github.com/andrewvillazon/pbipy/blob/e8fcdd204d0f30abab254326113f5acd03d41d8f/pbipy/groups.py#L8C1-L12C6  Limits the fields available in admin reporting.
As a result calling the function group_data = admin.groups(top = 5000, expand = 'reports,dashboards,datasets,dataflows,workbooks') limits the output to only id and name.  That or the raw isn't fulling passing through the rest of the raw data.

If the Groups have the values listed in expand, and the endpoint supplied them in the response, they should be set on each Group object. The Group.__init__() only requires an id to be supplied, and will set the rest of the attributes using the _load_from_raw() method if it received a raw argument. There is a unit test  which confirms this behaviour with the expand argument, albeit this only does one element in the expand.
If the Group objects in your group_data have a name attribute, that would suggest the endpoint returned it and was correctly set. Are you able to see if the Group objects in group_data have any of the other data listed in the expand argument? Something like this hasattr(group_data[0], "reports"), which should return True if the Group has a reports component and it was supplied by the endpoint. You could also inspect the group objects using dir(), e.g., dir(group_data[0]), to see if the any of the attributes there match what you requested in expand.
The other thing to check would be the response from the endpoint. You can do this at the documentation, using the green "Try It" link on the page, and add the $expand value above as a parameter. This should confirm if the endpoint is actually returning what's expected. Alternatively you could re-create a request manually using requests, but the documentation link is a bit quicker.

I see. I was not grasping that the lists that were returned were subscriptable. Thanks for tolerating my Qs!

No problem. It's raised a couple of things to test out, so all good.


Problem extracting deps

When I run:
NAF = text_to_NAF(text, nlp, dct=datetime.now(), layers={'raw', 'text', 'terms', 'entities', 'deps', 'chunks'})
It correctly processes all sections except for the deps section.
For the deps section it only displays </deps> (so not even an opening tag)

It seems there was a typo in the code, which I fixed in 5eec556.
No time to test the code this week, could you try to see whether it works now?

Unfortunately now it just slowly clogs my memory until my computer freezes :sweat_smile:

Progress! 😄 I'll see what I can do.

Hi Emile, did you get the chance to have a look at this issue yet?

I just committed a version in which it should be fixed.

Thanks Marten! I've been meaning to fix this, but haven't had the time..
Op vr 20 sep. 2019 15:30 schreef Marten Postma<EMAIL_ADDRESS>
Closed #3 https://github.com/cltl/SpaCy-to-NAF/issues/3.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/cltl/SpaCy-to-NAF/issues/3?email_source=notifications&email_token=AALRPC4DWBUI55SL7PF7BXTQKTF5VA5CNFSM4IPPRMO2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTX4MRLI#event-2650327213,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALRPC26TZNYRXJERDVDLBDQKTF5VANCNFSM4IPPRMOQ
.


Content is null on IOS

Hi,
your widget has always worked in my project, but in the last week the videos have not been played anymore (Only on iOS, on Android they work). The response json doesn't include the "content" attribute and so
var isHighQuality = response.content['player_data']['fmt_stream_map'] != null;
var streamUrl = isHighQuality ? response.content['player_data']['fmt_stream_map'][0].url : '';
give me back an undefined error. Youtube may be changed some policy?
Thanks for your help, your work is great!
Example request:
http://m.youtube.com/watch?ajax=1&layout=mobile&tsp=1&utcoffset=330&v=_fWSx10SHlA

Did it work with you? I have the same issue...


Is it possible to train on stronger depth estimator?

Hi, That's a great idea to get accurate metric depth based on lidar sparse depth. While the depth-anything models are great in some cases, a recent work : https://github.com/microsoft/moge might perform better on the depth map accuracy than depth anything. Is it possible to train your model on Moge to obtain better reconstruction results?

Yes, it's possible in theory and in practice. We currently have no such plans.


Response Body keeps on returning null

I'm using Fuel for an android project, but every time I check the response body I get a null.
Fuel.post("http://students.anu.ac.ke/index.asp").header( "Cookie" to tmp, "Accept" to "*/*").response{
            request, response, result ->
            Log.d(" response header" , request.toString())
            var head =  response.headers
            var body = head["Body"].toString()
            Log.d("HTML body", body)
            Log.d("HTML response", html.toString())
        }

If I print the response as a string in request.toString() I see the HTML response in the logs, but when I use response.headers["Body"] or response.headers.get("Body") I see Body: null in the output.

There was no documentation of response.data and converting it to a string. This gave me the correct result:
val str = String(response.data)
Log.d("Response in HTML", str)


GP Regression with missing values

This commit achieves two things:

It changes the regression computations such that NaN observations are treated as missing observations and consequently removed from the computation. This makes it possible, that also a part of an observation can be specified (e.g. only the x component in a deformation vector). When no NaN values are present, the computations are exactly the same as now.
The regression code was duplicated in the discreteLowRankGP and lowRankGP classes. This commit introduces a new class, which factors all the computations in one place.

This feature is becoming important now, as people start to work with more complicated output domain, e.g. building joint models of intensity and shape, or pose and shape. With this small change makes it becomes possible to use all the existing functionality, of scalismo also for this richer output domain. For example, we could condition on the intensity only, to get a posterior of the corresponding shape variations.
This PR is meant as a discussion and should be thoroughly tested on such richer use cases before being merged

I was just pushing an extension, where the use of partial data is only allowed when calling the regression function explicitly (as opposed to the posterior method). In addition, the strategy needs to be explicitly set when calling the function.
@Andreas-Forster What do you think?

At first glance, I like the solution. It looks as it offers the desired new opportunities while still having a mechanism to not accidentally remove values.
I think we could give it a try like this.


Some JPG files give errors

I have attached the jpg image that generates the error.
var doc = new jsPDF();
doc.addImage(jpgFile, 'JPEG', 0, 0, 150, 150);

Error message in console:
DOMException: Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
    at Object.b.convertStringToImageData (https://unpkg.com/jspdf@1.4.1/dist/jspdf.min.js:49:8077)
    at Object.b.addImage (https://unpkg.com/jspdf@1.4.1/dist/jspdf.min.js:49:6374)
    at VueComponent.generatePdf (webpack-internal:///146:215:41)
    at VueComponent.boundFn [as generatePdf] (webpack-internal:///9:191:14)
    at VueComponent.created (webpack-internal:///146:71:14)
    at callHook (webpack-internal:///9:2894:21)
    at VueComponent.Vue._init (webpack-internal:///9:4559:5)
    at new VueComponent (webpack-internal:///9:4727:12)
    at createComponentInstanceForVnode (webpack-internal:///9:4241:10)
    at init (webpack-internal:///9:4058:45)

I doubt it. More probable, that your base64 string or dataurl is faulty.

Well, this exact JPG image is giving no problems in Photoshop, paint, in an  etc...
That is why I am so surprised...

It comes directly out of Photoshop. What should I do to prevent the faulty behaviour?

Do you know what a base64 string is?

Haha mr smarty pants :)
Yep I do.
Found something; it was not clear that passing a path is not quite the way to add an image; it should be a loaded image. That is not clear in the documentation.
I used the trick in examples/basic.html and that worked for one file that created an error. So the file is not corrupt, but it was not completely loaded.
Now I only have to find a way to handle multiple images in one PDF. In my application this could be up to 1168 images.
Could you recommend a pattern for that?

1168 is an huge amount of images.
Keeping this issue open for 2 weeks. If not active till then I will close this.

1. You can try another way of adding image.
var pdf = new jsPDF();
var img = new Image;
img.onload = function() {
pdf.addImage(this, 10, 10);
pdf.save("test.pdf");
};
img.crossOrigin = "";  // You can use it if your are using any outsource image..
img.src = "";  // Image url
2. Or you can try this link to convert the image in base64 format.
https://www.base64-image.de/


VSCode LSP plugin crashes for no apparent reason after the 1.30.0 release.

Do you have any repro steps for this crash? Also can you set luau.server.trace to messages and send the logs

Do you have any repro steps for this crash? Also can you set luau.server.trace to messages and send the logs

No, not really. All I did was update the extension and suddenly it started almost immediately crashing whenever I opened an instance of VSCode. I've tried everything I could think of but the problem persists. Here are the logs with luau.trace.server set to messages.
4-Luau Language Server.log
I've checked, and the problem also persists on new projects.

Sorry about that, I will try to resolve this when I have some time. Please downgrade to the previous version in the meantime

I'm unable to repro this crash so far. Could you try disabling sourcemap support and trying again to see if it crashes? Please also send the logs

Hiya, I'm having a similar-looking problem. Tried disabling sourcemaps and still got this:
1-Luau Language Server.log
If I downgrade it works fine with sourcemaps enabled. Good luck fixing :)

I found the bug related to sourcemaps which should be fixed in 1dfbc66
I've generated a new nightly release at https://github.com/JohnnyMorganz/luau-lsp/actions/runs/9651994809 which should build in ~20 mins. Please try installing the generated .vsix and seeing if you still experience crashes.

@alastairbarron if you still experience crashes, could you set luau.trace.server to verbose or messages then send the logs? (Note that verbose can contain source code about your project, so please clean out anything sensitive. Messages will only include paths)

Hiya :) I installed from the nightly release and appear to still be getting the same problem. Here are the verbose logs:
3-Luau Language Server.log
Thanks!

Sorry for the late response. I installed the nightly build and made a whole new rojo project, now I'm getting different results depending on what I set for sourcemaps. All of the below are with luau.trace.server set to verbose.
Here's what I get with sourcemaps enabled:
4-Luau Language Server.log
And here's what I get with sourcemaps disabled:
5-Luau Language Server.log
6-Luau Language Server.log
Yes, I get two separate logs when I set sourcemaps to disabled, which is also what happens if I don't have a rojo project at all and try to edit a .lua/.luau file.

Downgrading to v1.29.1 has stopped the crashing for me, the latest release was causing crashes for me as well.

I have tested the latest nightly 1.30.1 build on Windows 11 here are my logs.
Verbose Log with Sourcemaps Enabled
7-Luau.Language.Server.log
Verbose Log with Sourcemaps Disabled
8-Luau.Language.Server.log
Messages Log with Sourcemaps Enabled
9-Luau.Language.Server.log
Messages Log with Sourcemaps Disabled
10-Luau.Language.Server.log

Appreciate you trying it out! These logs are somewhat surprising, i am very much confused on what could be tripping it up

Ok, the only thing that I can think of left. Please can you try the new nightly release: https://github.com/JohnnyMorganz/luau-lsp/actions/runs/9702934716

Hello, how exactly are you supposed to install extensions through the .vsix? When using the plugin through the Install from VSIX option in extensions still getting this log
2-Luau Language Server.log

Hey, I'm getting the same issue. I'm using the nightly release (https://github.com/JohnnyMorganz/luau-lsp/actions/runs/9702934716).
Here are the logs, with verbose tracing.
log.txt

Hey folks, still unable to track down the issue unfortunately.
I have another nightly release with some more trace debugging lines: https://github.com/JohnnyMorganz/luau-lsp/actions/runs/9730580051
This printf debugging isn't really working though, and I can't reproduce the crashes myself. I've started to ship debug symbols in the nightly release, so if anyone would be interested in trying to attach a debugger to find the crash stack trace, it would be immensely helpful

I fixed my issue by installing vc_redist x64. Seems like it was just a user problem and not a problem with luau-lsp.

I fixed my issue by installing vc_redist x64. Seems like it was just a user problem and not a problem with luau-lsp.

Well, this is interesting. Although I had already installed it previously, it seems like "repairing" it fixed the problem. It wasn't an issue with luau-lsp for sure, but I also wonder why this caused the issue. Anyway, if anyone else is encountering the same problem, installing/repairing vc_redist is the fix.

I fixed my issue by installing vc_redist x64. Seems like it was just a user problem and not a problem with luau-lsp.

This also fixed the crash for me on Windows 11. I'm curious how you discovered this fix.

Wow great find, this is looking like the problem. I've been struggling on this for so long. Thank you!
I think i might know the cause of why we started depending on the vc redistributable. Maybe I can get rid of that dependency

Perhaps you could make the program check for dependency if that is possible, and when it is found to be missing, the extension could ask the user whether they would like to have the extension download the dependency for them.

This should be resolved in new release v1.31.0. https://github.com/JohnnyMorganz/luau-lsp/releases/tag/1.31.0 If you still experience issues, let me know!

Hello, this is still crashing.
log.log

This should be fixed for real in the next release. Thanks!


Console log is not shown in report

Hi,
The report is good. But console output is missing in this report.

please try new version 1.0.3 could see logs in report


Updates in preparation for upcoming Dancer2::Plugin rewrite.

The new plugin system (to be released soon) requires small changes in some plugins.
Also add some tests.

Thanks for the contribution. Much appreciated.
Best Regards,
Mohammad S Anwar


Trying to finish feature

> git checkout devel
M	(**submodule** path)
Your branch is up-to-date with 'origin/devel'.
Switched to branch 'devel'
> git pull
Already up-to-date.
> git merge --no-ff feature/MS-712 **(it must be WMS-712)**
merge: feature/MS-712 **(Again)** - not something we can merge

Error (2919 ms @ 15.08.2016 11:59:33)

So, in my case submodule changed without creating new branch and now with head on devel.
Expected simple behaviour: TGit just merge main repo without submodules.
Expected extended behaviour: TGit gives me a choose a submodules to merge or only if my submodule head on feature/.., shows me error (or choice) ("Your submodule stand on feature branch, pls merge it").

It looks like it is not handling spaces in branch names correctly

How did you create the branch?
Please try this: switch to the branch and then execute 'git symbolic-ref -q --short HEAD', what is the output?

$ git symbolic-ref -q --short HEAD
feature/WMS-712

It's correct name.
I do not remember exactly how I created the branch, but it was either TGit or SourceTree with GitFlow.

Found it, will be fixed in the next version

Thank you!


Raidboss: Ala Mhigo oopsy, timeline, and triggers

This one was easy enough. I ended up doing some of the testing for the make_timeline changes on this. Magitek Scorpion is boring and a terrible boss.
Aulus Mal Asina is sort of interesting, in that the party members are cloned during the intermission, and everything then happens to the clones. It's fascinating how Square handles these things.
Zenos is just a well-designed battle overall. Each of the phases flows naturally into the next, and it's all put together so cleanly that I never noticed the divisions before deliberately looking for them. The action list within each block is also long enough to disguise the rotation once he is brought under 65% HP, especially combined with the randomizing of Storm and Swell. Square really outdid themselves with this one, and I wish I had appreciated it more at Stormblood's release.

Well then, that should do it. Always good when the dungeons aren't difficult to put things together for.

Yeah, I'm glad this one was more straightforward!


How do we include .html and .css files from aurelia packages?

Like aurelia-dialog, or aurelia-bs-modal etc?

to include aurelia-dialog, I've done the following:
    includes: [
       ...
        'aurelia-dialog/*',
        'aurelia-dialog/**/*.html!text',
        'aurelia-dialog/**/*.css!text',
      ...],

the !text means use the text loader, so just omit that if you're using the html template importer

Just make sure you include 'text' in jspm section of package.json
"text"<EMAIL_ADDRESS>


Version 2.0.2 not available on pub.dev

The latest release of version 2.0.2 is tagged in GitHub but not available on pub.dev
I've tried this version on Android and it seems to solve the crashing issue that everyone is having. Is there any reason I cannot use this version, or can we get that on to pub.dev to use?
To use it in the meantime within my project I updated my pubspec.yaml to show like this
  advance_pdf_viewer:
    git:
      url: git@github.com:lohanidamodar/pdf_viewer.git
      ref: 4e5d96be29de515f1081c0b6897741b8dca84722

@frankperez87 I am getting this error after trying purposed solution. I think this is something related to my configurations but can you help me?
pub get failed (server unavailable) -- attempting retry 7 in 64 seconds...
Git error. Command: `git clone --mirror git@github.com:lohanidamodar/pdf_viewer.git /Users/username/Developer/flutter/.pub-cache/git/cache/pdf_viewer-82ab6a243193a92c143e8d94d0f623fb0f089a6e`
stdout:
stderr: Cloning into bare repository '/Users/username/Developer/flutter/.pub-cache/git/cache/pdf_viewer-82ab6a243193a92c143e8d94d0f623fb0f089a6e'...
<EMAIL_ADDRESS>Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
exit code: 128

Hi,
Although the providing git ref works fine, but do we have any update on why version 2.0.2 not available on pub.dev?

Hi,
Although the providing git ref works fine, but do we have any update on why version 2.0.2 not available on pub.dev?

The https version worked for me too. 👌


Support non-installer .exe (Direct download or via Pwsh script)

Description of the new feature/enhancement
Some companies maintain windows binaries without an installation package. But perfectly valid. I would like to be able to use Winget to install such a package without the need to create a .msi or similar. (which would make the process more complex and difficult to maintain)
Something like Homebrew. But focusing on the Windows context.
Proposed technical implementation details (optional)
e.g:

OBS. Windows, today, has native support for TAR.

Via YAML
Id: Dgraph-io.Dgraph
Publisher: Dgraph Labs Inc.
Name: Dgraph
Description: Fast, Distributed Graph DB.
Version: 20.03.0
Homepage: https://dgraph.io
Tags: Go,Graph,DB
License: Apache 2.0
LicenseUrl: https://raw.githubusercontent.com/dgraph-io/dgraph/master/licenses/DCL.txt
InstallerType: gz # enumeration of supported installer types (exe, msi, msix, zip, tar, gz, ps1)
Installers:
  - Arch: x64 # enumeration of supported architectures
    URL: https://github.com/dgraph-io/dgraph/releases/download/v20.03.0/dgraph-windows-amd64.tar.gz
    Sha256: string # SHA256 calculated from installer
    InstallerType: manual
    pathToInstall: "%SystemDrive%\program files\dgraph-io\"
# ManifestVersion: 0.1.0

Via PS1
InstallerType: ps1 # enumeration of supported installer types (exe, msi, msix, zip, tar, gz, ps1)
Installers:
  - Arch: x64 # enumeration of supported architectures
    URL: https://raw.githubusercontent.com/dgraph-io/install-scripts/master/install.ps1
    Sha256: string # SHA256 would be calculated in a TMP path with the downloaded .exe via install.ps1
# ManifestVersion: 0.1.0

Seems to be a refinement of https://github.com/microsoft/winget-cli/issues/182.
Strongly related:

https://github.com/microsoft/winget-cli/issues/194 (which just asks for support of downloading .exe files and copying it to some directory reachable from the PATH).
https://github.com/microsoft/winget-cli/issues/140 (which asks for some unzipping. The discussion is interesting)
https://github.com/microsoft/winget-pkgs/issues/174 (which asks for zip files)
https://github.com/microsoft/winget-cli/issues/182 (asks for support of portable apps; which are typically contained in a .zip archive)

@MichelDiz this looks like a Duplicate of #182. We do plan to support portable/standalone applications and .zip in a similar manner. The intent would be to have the Windows Package Manager generate entries in Apps & Features so we can make sure the path is maintained, and we can perform upgrades.


ZomboDB

Hey @ChakshuGautam
Can you please assign me to this one as well !

Sure. Please go ahead.

@jayanth-kumar-morem Codespaces are up if you need to test it out there.


chore: refactor operations docs

Refactor operations docs.

@eddycharly  but the test failed here.

yeah, will fix in follow up

            	            	expected: []string{"ASSERT: [RUNNING...]", "ASSERT: [ERROR\nresource test-pod doesn't match expectation:\n    spec.containers[0].name: Invalid value: \"fake-container\": Expected value: \"test-container\"\n    spec.containers[0].image: Invalid value: \"fake-image\": Expected value: \"test-image\"]"}

            	            	actual  : []string{"ASSERT: [RUNNING...]", "ASSERT: [ERROR\nresource test-pod doesn't match expectation:\n    spec.containers[0].image: Invalid value: \"fake-image\": Expected value: \"test-image\"\n    spec.containers[0].name: Invalid value: \"fake-container\": Expected value: \"test-container\"]"}

@eddycharly Actually This was happening to me also. This didn't happen when I tested it locally


Revert 8169844f09 and ac72bca41a

Looks like 0224f2c508df154ffc9c1ecffaf0b06608d6b623 is causing CI failures due to timing for few qemu platforms. Details have been discussed in discord, landed on this specific patch by trial and error in the zephyr-testing repository (see #releases discord for more details).
Reverting 8169844f09 and ac72bca41a (they depend on each other) seems to be making CI pass again in a test push:

Partial revert of https://github.com/zephyrproject-rtos/zephyr/pull/48092

What is the plan to get those changes back in tree?


Fix owner warning when importing FBX.

Clears the owner of a skinned mesh instance before adding it to a skeleton to silence a warning.

Thanks!


Support typing.Self

Hey Brent -- thanks once again for this great library! I am using it in several projects.
I was wondering if you can add support for the typing.Self (or typing_extensions.Self) type.
As a minimal example, I think the following script should have a CLI prompt for --a [int] --b [int].
from dataclasses import dataclass

import tyro
from typing_extensions import Self

@dataclass
class Experiment:
    a: int
    b: int

    @classmethod
    def run(cls, experiment: Self) -> None:
        print(experiment.a + experiment.b)

if __name__ == "__main__":
    tyro.cli(Experiment.run)

But it results in the following error:
Traceback (most recent call last):
  File "test.py", line 18, in <module>
    tyro.cli(Experiment.run)
  File ".venv/lib/python3.9/site-packages/tyro/_cli.py", line 187, in cli
    output = _cli_impl(
  File ".venv/lib/python3.9/site-packages/tyro/_cli.py", line 378, in _cli_impl
    parser_spec = _parsers.ParserSpecification.from_callable_or_type(
  File ".venv/lib/python3.9/site-packages/tyro/_parsers.py", line 123, in from_callable_or_type
    if field_out.lowered.required:
  File ".venv/lib/python3.9/functools.py", line 993, in __get__
    val = self.func(instance)
  File ".venv/lib/python3.9/site-packages/tyro/_arguments.py", line 200, in lowered
    return functools.reduce(
  File ".venv/lib/python3.9/site-packages/tyro/_arguments.py", line 201, in <lambda>
    lambda lowered, rule: rule(self, lowered),
  File ".venv/lib/python3.9/site-packages/tyro/_arguments.py", line 313, in _rule_recursive_instantiator_from_type
    instantiator, metadata = _instantiators.instantiator_from_type(
  File ".venv/lib/python3.9/site-packages/tyro/_instantiators.py", line 214, in instantiator_from_type
    elif not is_type_string_converter(typ):
  File ".venv/lib/python3.9/site-packages/tyro/_instantiators.py", line 124, in is_type_string_converter
    type_annotations = _resolver.get_type_hints_with_nicer_errors(typ)
  File ".venv/lib/python3.9/site-packages/tyro/_resolver.py", line 369, in get_type_hints_with_nicer_errors
    raise e
  File ".venv/lib/python3.9/site-packages/tyro/_resolver.py", line 345, in get_type_hints_with_nicer_errors
    return get_type_hints(obj, include_extras=include_extras)
  File ".venv/lib/python3.9/site-packages/typing_extensions.py", line 1104, in get_type_hints
    hint = typing.get_type_hints(
  File ".venv/lib/python3.9/typing.py", line 1482, in get_type_hints
    raise TypeError('{!r} is not a module, class, method, '

I know that I could create a separate function (i.e. not a @classmethod) to do this, but I would prefer to do it this way, because I would like to subclass my Experiment class and this way would be more convenient.
Thanks for your consideration!

That's awesome, thanks so much for the quick addition @brentyi!
I tried it and it works on my end 👍


Owner property

Related to https://github.com/OrchardCMS/Orchard2/issues/384
In O1 there is an Owner property on a content item. It doesn't vary by version. It is used on the admin screens to represent the author, and in the security layer to asses ownership.
I changed it to call it ModifiedBy in O2 so we can use the latest user who modified a content instead, and it's attached to each version.
In the end I think we need both values, OwnedBy and ModifiedBy (or Owner and Modifier). Which would be set on each version. The owner doesn't change automatically, the modifier does. There is a UI to change the owner (optionally, like in O1) but not for the modifier.

/cc @bleroy

Yes, being the owner actually gives you rights. Last modifier is only informative, and useful for auditing, but doesn't give rights. Those are two distinct properties.

I could only find author in DecentCMS, which I assume could be used as the modifier.

Yes, author in Decent is informative only. There's no notion of permissions yet in there, so owner has not been necessary yet, and I haven't introduced it.

Author and Owner Implemented in #496


Suggestion for more secure prod deployment on public instances

The following files are exposed if the http server is badly configured:

./cache
./.git

Particularly the ./cache folder can contain sensitive material e.g. private feeds with authentication token.
The remedy is to turn off directory listing and prevent dotfiles from being accessed.
In nginx:
# Is off by default
autoindex off;

# Disallow dotfiles e.g. .git
location ~ /\. {
  deny all;
}

In apache:
<Directory /var/www/mysite>
     Options -Indexes
</Directory>

Or Options -Indexes in ./htaccess
Another solution for the future is to create a dedicated document root e.g. ./public which only contains index.php and other http assets.

Hi, @dvikan! Good idea!
Just leaving note, that to implement it, it is required

to have backward compatibility if possible. When admin runs git pull, his instance can suddenly break. If backward compatibility is not possible, then it is required to announce it before it is implemented.
PixivBridge (https://github.com/RSS-Bridge/rss-bridge/blob/2ae9793f2c2a4f2155ba71b0bfccff9908d31b94/bridges/PixivBridge.php) does actually use cache directory to store files and use as permalinks. This can be fixed after implementing https://github.com/RSS-Bridge/rss-bridge/issues/2365

1. to have backward compatibility if possible. When admin runs `git pull`, his instance can suddenly break. If backward compatibility is not possible, then it is required to announce it before it is implemented.

Yes this is important. A BC break like this requires a new major version bump e.g. 1.2.3 => 2.0.

I don't think a new directory root can be done without a BC break. It requires a new major version bump e.g. 1.2.3 => 2.0.0.

We use yyyy-mm-dd as version format. https://github.com/RSS-Bridge/rss-bridge/releases

Hi, @dvikan!
This suggestion is still valid. What is the reason of closing it?

This issue was mostly a tip to public bridge instances.I think creating a dedicated root is a big change that we probably never will implement because it would require manual work from all bridge instances to reconfigure document root in nginx/apache etc.


Branch quick pick should list exact match first

Type: Bug

In a repo with a branch: abc/main and main, where you have recently switched to abc/main
Open the branch selector and type main

expected
The exact branch name match is listed first
actual

VS Code version: Code - Insiders 1.87.0-insider (Universal) (9db1b0571e119289a2264971bdac75793965e063, 2024-02-07T05:48:09.043Z)
OS version: Darwin arm64 23.3.0
Modes:

System Info

Item
Value

CPUs
Apple M2 Max (12 x 24)

GPU Status
2d_canvas: unavailable_softwarecanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: disabled_softwaremultiple_raster_threads: enabled_onopengl: disabled_offrasterization: disabled_softwareraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: disabled_softwarevideo_encode: disabled_softwarewebgl: unavailable_softwarewebgl2: unavailable_softwarewebgpu: unavailable_software

Load (avg)
4, 4, 4

Memory (System)
64.00GB (1.01GB free)

Process Argv
--crash-reporter-id 0fffb5da-9cd7-46fd-9e7f-a1564e8c5fda

Screen Reader
no

VM
0%

This appears to be fixed:

I think this is from the branch picker using sortByLabel: false. Gonna assign to Lad since I didn't do anything here.


"Advanced" fzf + rg integration - Can the preview grow/shrink dynamically based on the number of results?

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf
[x] I have searched through the existing issues

Info

OS

[x] Linux
[x] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[ ] bash
[x] zsh
[ ] fish

Question
I have implemented the fzf + rg integration found in ADVANCED.md. It is amazing.
However, it wastes a lot of screen real estate, with the results/preview split fixed at 40%/60%. When almost all the results have been filtered out, this means 40% of the screen is wasted.
Can this "dead space" be dynamically taken up by the preview? For example, by setting the size of the preview window to equal something like max(60%, 100% - results%)? So if there are tons of matches, the results would take up 40% and the preview would take up 60%, but if I add to the query such that the number of matches decreases and takes up less than 40%, the preview window will grow to pick up the slack.
Is this currently possible? I know preview-window takes a "threshold", however the man page also says "only one alternative layout is allowed", which sounds like dynamic resizing is not possible. But I wanted to confirm.

In fzf, there isn't a pre-existing variable to get the total number of listed items. However, a
workaround exists, although it's somewhat lengthy. This method involves using the --listen flag to
query fzf about the totalCount and matchCount, and then sending an update to fzf to modify
the preview size whenever the matchCount changes. Writing this as a bash script is should be
doable.
The image below displays two terminals. The top one shows the standard fzf list with a query,
while the bottom terminal queries fzf in a headless manner[^1].

The maintainer recently provided a related response[^2].
[^1]: Preview window sizing - specify size of finder list instead of preview window · Issue #3570 ·
junegunn/fzf · GitHub
[^2]: CHANGELOG.md 0.43.0

Alternatively, I often assign a unique keyboard shortcut to change the size of the preview window,
allowing me to toggle through the size that suits best.
man fzf
…
     CHANGE PREVIEW WINDOW ATTRIBUTES
         change-preview-window action can be used to change the properties of the
         preview window. Unlike the --preview-window option, you can specify mul-
        tiple sets of options separated by '|' characters.

         e.g.
              # Rotate through the options using CTRL-/
              fzf   --preview   'cat   {}'   --bind   'ctrl-/:change-preview-win-
         dow(right,70%|down,40%,border-horizontal|hidden|right)'

              # The default properties given by `--preview-window` are inherited,
          so an empty string in the list is interpreted as the default

@LangLangBart That is brilliant, thanks for the idea! I have taken a stab at implementing this, and here's what I've got:
--bind="change:execute($SHELL -c 'MATCHCOUNT=$(curl -qs localhost:\$FZF_PORT | jq .matchCount) && curl -qs localhost:\$FZF_PORT -d change-preview\(\' \$(( 100 * (\$LINES - \$MATCHCOUNT) / \$LINES ))%\'\)')"

But when I run fzf and trigger the change event, I see the following error:
zsh:1:unmatched '

So obviously there is an issue with my quoting, always a pain point for me with complex commands like this.
However, even after running MATCHCOUNT=$(curl -qs localhost:$FZF_PORT | jq .matchCount) within the keybinding, $MATCHCOUNT seems empty.
I'm pretty sure I'm close, and just need a helping hand. Do you see what is wrong with my attempt to implement your idea?

Prototype for dynamically adjusting the preview window

Save the file as rfv.
Make it executable by running chmod +x rfv.
Execute it by running ./rfv.

[!NOTE]
The minimum size of the preview-window is set inside the jq query to $rows/3,
and the maximum size is $rows - $buffer_space.

Script

#!/usr/bin/env bash
set -o allexport -o errexit -o nounset -o pipefail
# https://www.gnu.org/software/bash/manual/bash.html#The-Set-Builtin

SHELL=$(which bash)

# Set rows to the number of lines in the terminal
rows=$(tput lines)
buffer_space="5"

# =================== helper functions ====================

die() {
	echo ERROR: "$*" >&2
	exit 1
}

# Function to send GET/POST request to fzf with optional data load
curl_fzf() {
	command curl --silent --request "$1" --data "${2-}" "localhost:$FZF_PORT"
}

spin_me() {
	local old_size=""
	# Loop as long 'fzf' (parent process) is alive
	while command kill -0 "$PPID" 2>/dev/null; do
		# Calculate the new size of the preview window based on the number of matches and rows in
		# the terminal
		new_size="$(
			curl_fzf GET |
				jq --raw-output --argjson rows "$rows" --argjson buffer_space "$buffer_space" \
					'[
					([($rows/3), ($rows - .matchCount - $buffer_space) ] | max),
					($rows - $buffer_space)
				] | min | floor'
		)"
		# If new size is different from old size, update the preview window size and header
		if [ "$new_size" != "$old_size" ]; then
			curl_fzf POST "change-header(Preview Window Size: $new_size/ ∑ Rows: $rows)+change-preview-window:$new_size"
			old_size=$new_size
		fi
		sleep 0.5
	done
}

# =================== check requirements ====================

if ((rows <= 1)); then
	die "'rows' must be higher than 1."
fi

for tool in curl fzf jq; do
	if ! type -p $tool >/dev/null; then
		die "'$tool' was not found."
	fi
done

# ===================== let's begin ========================

# https://github.com/junegunn/fzf/blob/master/ADVANCED.md#ripgrep-integration
rg --color=always --line-number --no-heading --smart-case "${*:-}" |
	FZF_DEFAULT_OPTS="" fzf \
		--ansi \
		--bind 'start:execute-silent:spin_me &' \
		--color "hl:-1:underline,hl+:-1:underline:reverse" \
		--delimiter : \
		--listen \
		--preview 'bat --color=always {1} --highlight-line {2}' \
		--preview-window 'up,border-bottom,+{2}+3/3,~3' \
		--bind 'enter:become(vim {1} +{2})'

Exemplary GIF:

Amazing, thanks! This is exactly the behavior I had in mind.
However, your implementation is completely different from mine (and may be Bash-specific?)? Why is that? Is there some fatal flaw with the way I attempted to do it above?
--bind="change:execute($SHELL -c 'MATCHCOUNT=$(curl -qs localhost:\$FZF_PORT | jq .matchCount) && \
        curl -qs localhost:\$FZF_PORT -d change-preview\(\' \$(( 100 * (\$LINES - \$MATCHCOUNT) / \$LINES ))%\'\)')"

If possible, I'd love to define how this works all within the binding, no need for e.g., an extra executable. Though if that's the only way, I can certainly capitulate.

@LangLangBart Following up - For some reason I can't replicate your GIF, even using the code you shared exactly: create rfv file, make executable, run it. No matter how I execute it, or whether with bash or zsh, the preview window remains fixed (and incidentally, so does the header).
Can you assist? I would absolutely kill to have what you've shown via your GIF (though personally I'd like to run it via keybinding (bindkey "\e/" fzf-ripgrep), not a dedicated executable).

If possible, I'd love to define how this works all within the binding, no need for e.g., an extra executable.

Could you try this minimal working example on a directory with some files for example the fzf repo ?
find . -type f -maxdepth 1 | FZF_DEFAULT_OPTS="" fzf \
	--listen \
	--preview 'bat --color=always {}' \
	--preview-window 'up,border-bottom' \
	--bind $'change:execute-silent:(new_size=$(curl -s localhost:$FZF_PORT | jq --raw-output --argjson rows "$LINES" \'[([($rows/3), ($rows - .matchCount - 5) ] | max),($rows - 5)] | min | floor\'); curl -s localhost:$FZF_PORT -d "change-header(Preview Window Size: $new_size / Rows: $LINES)+change-preview-window:$new_size") &'

From the fzf repo, as directed:

Again, the preview window size remains fixed. I wonder why the difference between you and me?
For context:

Apple Silicon M1 Pro
MacOS Sonoma 14.2.1
iTerm2 3.4.23
zsh 5.9 (x86_64-apple-darwin23.0)
fzf 0.45.0 (202401011)

Again, the preview window size remains fixed. I wonder why the difference between you and me?

Thank you for testing. We could attempt to debug it using set -x, and save the contents to a file named ~/test_debug.txt. Hopefully, this will help us identify where things are going wrong.
# Try this debug command: Enter a few characters in the FZF query, then inspect the contents of '~/test_debug.txt'.
find . -type f -maxdepth 1 | FZF_DEFAULT_OPTS="" fzf --listen --preview 'bat --color=always {}' --preview-window 'up,border-bottom' --bind $'change:execute-silent:(set -x; { new_size=$(curl -s localhost:$FZF_PORT | jq --raw-output --argjson rows "$LINES" \'[([($rows/3), ($rows - .matchCount - 5) ] | max),($rows - 5)] | min | floor\'); curl -s localhost:$FZF_PORT -d "change-header(Preview Window Size: $new_size / Rows: $LINES)+change-preview-window:$new_size" }  2>&1 | tee -a ~/test_debug.txt ) &'

Exemplary result of '~/test_debug.txt'
+zsh:1> new_size=+zsh:1> curl -s localhost:50332
+zsh:1> new_size=+zsh:1> jq --raw-output --argjson rows 28 '[([($rows/3), ($rows - .matchCount - 5) ] | max),($rows - 5)] | min | floor'
+zsh:1> new_size=11
+zsh:1> curl -s localhost:50332 -d 'change-header(Preview Window Size: 11 / Rows: 28)+change-preview-window:11'
+zsh:1> new_size=+zsh:1> curl -s localhost:50332
+zsh:1> new_size=+zsh:1> jq --raw-output --argjson rows 28 '[([($rows/3), ($rows - .matchCount - 5) ] | max),($rows - 5)] | min | floor'
+zsh:1> new_size=15
+zsh:1> curl -s localhost:50332 -d 'change-header(Preview Window Size: 15 / Rows: 28)+change-preview-window:15'

Thanks so much for that minimal command!
Redirecting to a file helped me find the issue myself: I had set FZF_API_KEY elsewhere, but wasn't passing it into the server via curl. Hence the requests were being silently rejected and change-preview-window was never being triggered.
In the end, the following keybinding works for me and now she's purring like a kitten!
  --bind=$'change:execute-silent:(
    PREVIEW_SIZE=$(
      curl -qsH "x-api-key: $FZF_API_KEY" localhost:$FZF_PORT \|
        jq -r --argjson LINES $LINES \'[([($LINES/3), ($LINES - .matchCount - 5) ] | max),($LINES - 5)] | min | floor\'
    );
    curl -qsH "x-api-key: $FZF_API_KEY" localhost:$FZF_PORT -d "change-preview-window:$PREVIEW_SIZE"
  ) &'

Thanks again for all your help!

I'll close the issue now as it's been resolved. However, @LangLangBart, since I have the individual attention of a board-certified shell+fzf wizard like you, I'd like to briefly co-opt this thread with a loosely-related question that's stumped me for weeks.
The following snippet gets sourced from my .zshrc and attempts to configure fzf's CTRL-T keybinding in a nice, readable manner:
export FZF_DEFAULT_COMMAND="fd --color=always --hidden"

FZF_CTRL_T_PREVIEW_COMMAND="bat --color=always --line-range=:500 {}"
FZF_CTRL_T_KEYBINDINGS_ARRAY=(
  "alt-b:become(bat {})"
  "alt-l:become(${${BAT_PAGER}:-less} {})"
  "alt-n:become(${EDITOR:-vim} {})"
)
FZF_CTRL_T_KEYBINDINGS=$(echo "${FZF_CTRL_T_KEYBINDINGS_ARRAY}" | sed 's/) a/),a/g')
FZF_CTRL_T_OPTS_ARRAY=(
  "--bind='${FZF_CTRL_T_KEYBINDINGS}'"
  "--header-first"
  "--no-height"
  "--preview='${FZF_CTRL_T_PREVIEW_COMMAND}'"
  "--preview-window=hidden"
)
FZF_CTRL_T_COMMAND_ARRAY=(
  "${FZF_DEFAULT_COMMAND}"
  "--exclude=.git"
  "--follow"
  "--type=file"
  "--type=symlink"
)
export FZF_CTRL_T_OPTS=$(echo "${FZF_CTRL_T_OPTS_ARRAY}")
export FZF_CTRL_T_COMMAND=$(echo "${FZF_CTRL_T_COMMAND_ARRAY}")

I'd like to draw your attention to these lines specifically:
FZF_CTRL_T_KEYBINDINGS_ARRAY=(
  "alt-b:become(bat {})"
  "alt-l:become(${${BAT_PAGER}:-less} {})"
  "alt-n:become(${EDITOR:-vim} {})"
)
FZF_CTRL_T_KEYBINDINGS=$(echo "${FZF_CTRL_T_KEYBINDINGS_ARRAY}" | sed 's/) a/),a/g')

Their ultimate purpose is to populate a string of keybindings that pipe the selected file into the appropriate program (e.g., bat, less). This string then get passed to --bind when setting FZF_CTRL_T_OPTS.
After sourcing everything, FZF_CTRL_T_OPTS looks like this:
❯ echo "${FZF_CTRL_T_OPTS}"
--bind='alt-b:become(bat {}),alt-l:become(less --chop-long-lines --header=1 --jump-target=3 --line-num-width=0 --LONG-PROMPT --no-number-headers --shift=4 --status-column --use-color --color=HGk --color=NGk {}),alt-n:become(nvim {})' --header-first --no-height --preview='bat --color=always --line-range=:500 {}' --preview-window=hidden

Seems fine, right? In fact, when I copy that string and pass it into fzf directly (i.e., fzf --bind= [...] --preview-window=hidden), my alt-{b,l,n} keybindings all work as intended. Here's an illustration using alt-l (less) and alt-b (bat):

But here's where things get weird: When I activate fzf via the CTRL-T keybinding and attempt alt-{b,l,n}, something completely different happens. Rather than opening the file with the desired program, it just cats the file to stdout with all these escaped characters. Here's an example where I show this, first with alt-b then with alt-l:

In the end, this strange behavior prevents me from using my keybindings despite that they seem free of syntax errors.
Can you speculate what the issue might be? Note that I set all my fzf keybindings in the same way shown in my snippet, and everything has worked out until now.
Many thanks in advance for your ongoing discussions and support!

I'll close the issue now as it's been resolved. However, @LangLangBart, since I have the individual attention of a board-certified shell+fzf wizard like you, I'd like to briefly co-opt this thread with a loosely-related question that's stumped me for weeks.
The following snippet gets sourced from my .zshrc and attempts to configure fzf's CTRL-T keybinding in a nice, readable manner:
export FZF_DEFAULT_COMMAND="fd --color=always --hidden"

FZF_CTRL_T_PREVIEW_COMMAND="bat --color=always --line-range=:500 {}"
FZF_CTRL_T_KEYBINDINGS_ARRAY=(
  "alt-b:become(bat {})"
  "alt-l:become(${${BAT_PAGER}:-less} {})"
  "alt-n:become(${EDITOR:-vim} {})"
)
FZF_CTRL_T_KEYBINDINGS=$(echo "${FZF_CTRL_T_KEYBINDINGS_ARRAY}" | sed 's/) a/),a/g')
FZF_CTRL_T_OPTS_ARRAY=(
  "--bind='${FZF_CTRL_T_KEYBINDINGS}'"
  "--header-first"
  "--no-height"
  "--preview='${FZF_CTRL_T_PREVIEW_COMMAND}'"
  "--preview-window=hidden"
)
FZF_CTRL_T_COMMAND_ARRAY=(
  "${FZF_DEFAULT_COMMAND}"
  "--exclude=.git"
  "--follow"
  "--type=file"
  "--type=symlink"
)
export FZF_CTRL_T_OPTS=$(echo "${FZF_CTRL_T_OPTS_ARRAY}")
export FZF_CTRL_T_COMMAND=$(echo "${FZF_CTRL_T_COMMAND_ARRAY}")

I'd like to draw your attention to these lines specifically:
FZF_CTRL_T_KEYBINDINGS_ARRAY=(
  "alt-b:become(bat {})"
  "alt-l:become(${${BAT_PAGER}:-less} {})"
  "alt-n:become(${EDITOR:-vim} {})"
)
FZF_CTRL_T_KEYBINDINGS=$(echo "${FZF_CTRL_T_KEYBINDINGS_ARRAY}" | sed 's/) a/),a/g')

Their ultimate purpose is to populate a string of keybindings that pipe the selected file into the appropriate program (e.g., bat, less). This string then get passed to --bind when setting FZF_CTRL_T_OPTS.
After sourcing everything, FZF_CTRL_T_OPTS looks like this:
❯ echo "${FZF_CTRL_T_OPTS}"
--bind='alt-b:become(bat {}),alt-l:become(less --chop-long-lines --header=1 --jump-target=3 --line-num-width=0 --LONG-PROMPT --no-number-headers --shift=4 --status-column --use-color --color=HGk --color=NGk {}),alt-n:become(nvim {})' --header-first --no-height --preview='bat --color=always --line-range=:500 {}' --preview-window=hidden

Seems fine, right? In fact, when I copy that string and pass it into fzf directly (i.e., fzf --bind= [...] --preview-window=hidden), my alt-{b,l,n} keybindings all work as intended. Here's an illustration using alt-l (less) and alt-b (bat):

But here's where things get weird: When I activate fzf via the CTRL-T keybinding and attempt alt-{b,l,n}, something completely different happens. Rather than opening the file with the desired program, it just cats the file to stdout with all these escaped characters. Here's an example where I show this, first with alt-b then with alt-l:

In the end, this strange behavior prevents me from using my alt-{b,l,n} keybindings despite that they seem free of syntax errors.
Can you speculate what the issue might be? Note that I set all my fzf keybindings in the same way shown in my snippet, and everything has worked out until now.
Many thanks in advance for your ongoing discussions and support!

In the end, the following keybinding works for me and now she's purring like a kitten!
  --bind=$'change:execute-silent:(
    PREVIEW_SIZE=$(
      curl -qsH "x-api-key: $FZF_API_KEY" localhost:$FZF_PORT \|
        jq -r --argjson LINES $LINES \'[([($LINES/3), ($LINES - .matchCount - 5) ] | max),($LINES - 5)] | min | floor\'
    );
    curl -qsH "x-api-key: $FZF_API_KEY" localhost:$FZF_PORT -d "change-preview-window:$PREVIEW_SIZE"
  ) &'

Thanks again for all your help!

Before setting PREVIEW_SIZE=, one can consider adding a check to ensure progress has reached 100.
--bind=$'change:execute-silent:(while (($(curl -s localhost:$FZF_PORT | jq -r \'.progress\') < 100));do; ! command kill -0 "$PPID" 2>/dev/null && break || sleep 0.1;done || exit ; PREVIEW_SIZE=…

individual attention of a board-certified shell+fzf wizard like you

I'll do my best to assist you, but for more complex issues, you might want to reach out to experts like junegunn.

When I activate fzf via the CTRL-T keybinding and attempt alt-{b,l,n}, something completely different happens. Rather than opening the file with the desired program, it just cats the file to stdout with all these escaped characters.

I assume your ⌃ Control + T hotkey is assigned to the unmodified fzf-file-widget?
bindkey | grep fzf-file-widget
# "^T" fzf-file-widget

Your response is then passed through the __fsel and assigned to the LBUFFER, which significantly
alters the output. This occurs because the widget is attempting to place the command on the command
line while escaping special characters. See related discussion[^1].
https://github.com/junegunn/fzf/blob/952b6af4454ed55626d78e3845c6b5b640ac831d/shell/key-bindings.zsh#L63-L68
https://github.com/junegunn/fzf/blob/952b6af4454ed55626d78e3845c6b5b640ac831d/shell/key-bindings.zsh#L42-L56
Possible options:

You would need to create your own widget or modify the existing one.
Instead of using "alt-b:become(bat {})", consider using "alt-b:execute(bat {} >/dev/tty)" [^2]

[!NOTE]
This line appears to be a hacky workaround:
FZF_CTRL_T_KEYBINDINGS=$(echo "${FZF_CTRL_T_KEYBINDINGS_ARRAY}" | sed 's/) c/),c/g')

The following format may be a better alternative in zsh [^3]
FZF_CTRL_T_KEYBINDINGS="${(j:,:)FZF_CTRL_T_KEYBINDINGS_ARRAY}"

[^1]: Manual output on enter, no linebreak. · Discussion #3514
[^2]: '>/dev/tty' Issue #2579
[^3]: zsh: 14 Parameter-Expansion-Flags

That's pretty impressive @LangLangBart, thanks for sharing your solution.
I was curious how you got it to work when accessing the GET / endpoint from execute-* or transform-* action would put fzf into a deadlock, but I noticed & at the end. That's clever. But at the same time, it's unfortunate that someone would need a deep knowledge of the inner workings of fzf to use such a workaround. I suppose it would be very helpful to expose counters, right? i.e. {fzf:total-count}, {fzf:match-count}, etc. What do you think? I have also thought about exposing the information via environment variables instead. e.g. $FZF_TOTAL_COUNT, but I haven't really thought through the pros and cons of both methods.


quality of image bad when resize

I have code for resize with multer upload:
 productThumb(files) {
    let promises = [];
    let thumbs = [];
    _.forEach(files, (file) => {
        let promise = new Promise((resolve, reject) => {
            var jimpThumb = pathUpload + file.filename;

            new Jimp(jimpThumb, (err, jimpImage) => {
                if (err) {
                    reject(err);
                    return;
                }

                var productImgSize = settings.productImgSize;
                productImgSize.forEach(function(thumbSize) {
                    var sizeThumb = thumbSize.width + "x" + thumbSize.height;
                    var nameThumb = thumbSize.size + "-" + common.transString(common.removeExtension(file.filename)) + "-" + Date.now() + "-" + sizeThumb + "." + common.getExtension(file.filename);
                    var pathThumb = pathUpload + nameThumb;

                    jimpImage
                        .resize(thumbSize.width, thumbSize.height, Jimp.RESIZE_BEZIER)
                        .quality(thumbSize.quality) //thumbSize.quality
                        .write(pathThumb);
                    thumbs.push(nameThumb);

                });

                fs.unlink(jimpThumb);
                resolve(thumbs);

            });

        });
        promises.push(promise);
    });
    return Promise.all(promises);
}

When resize:
Before:

After:

thankyou any help.
UPDATE:
I try remove productImgSize.forEach(function(thumbSize) { and jimpImage.resize(500, 500, Jimp.RESIZE_BEZIER)  set quality .quality(100)  then return good quality image.
Why? resize place in forEach return bad quality images
UPDATE: i change order array productImgSize:
500 -> 350 -> 66 return good quality and 66 -> 350 -> 500 return bad quality.

If you resize it to a small size, save it, and then resize it to a bigger size, it won't be the original image you resized but the smaller one (containing a lot less data). So the blur is normal.

I faced the same problem, I solved it resizing first to the big size, then to the mid size, and finally to the smal (thumbnail).

Because you don't resize a copy, you resize the image itself.
If you resize it to a small size, save it, and then resize it to a bigger size, it won't be the original image you resized but the smaller one (containing a lot less data). So the blur is normal.

I faced the same problem, I solved it resizing first to the big size, then to the mid size, and finally to the smal (thumbnail).

Yep. That's the best approach

Because you don't resize a copy, you resize the image itself.
If you resize it to a small size, save it, and then resize it to a bigger size, it won't be the original image you resized but the smaller one (containing a lot less data). So the blur is normal.

thank a lot


Dockerfile missing

The Dockerfile & source for the images are missing:

docker.bintray.io/jfrog/nginx-artifactory-pro:5.5.1
docker.bintray.io/jfrog/artifactory-pro:5.5.1

There's quite a lot going on with the entrypoints, and fixing issues/forking is difficult.
Diff'ing the history, It seems the postgres image is an unmodifed postgres:9.5.2 image.

@markeijsermans - we have plans on adding the files. No time estimate yet - sorry.

Closing for now. The files are in process of being added.

Unfortunate close, since it's not solved yet and the closing makes it harder to find. (Read as: I first looked att open issues, then searched for it a couple of hours and then found this. Making me trust JFrog less.)
Is there any time estimate? Even one on the level: days, months or years would be useful to decide if I should do the reverse engineering to be able to deploy.

@MrShark - the addition of the Dockerfiles for the Artifactory Docker images is in one of the coming minor releases (weeks away).

@markeijsermans, @MrShark,
The newly released Artifactory 5.7.0 now includes the Dockerfile(s) for the relevant images.
You can see the content with a simple docker run command:
# OpenJDK base image Dockerfile
$ docker run --rm -t --entrypoint="/bin/sh" docker.bintray.io/jfrog/artifactory-pro:5.7.0 -c "cat /docker/openjdk/Dockerfile"

# Artifactory Dockerfile
$ docker run --rm -t --entrypoint="/bin/sh" docker.bintray.io/jfrog/artifactory-pro:5.7.0 -c "cat /docker/artifactory-pro/Dockerfile.artifactory"

# Artifactory Nginx Dockerfile
$ docker run --rm -t --entrypoint="/bin/sh" docker.bintray.io/jfrog/nginx-artifactory-pro:5.7.0 -c "cat /docker/nginx-artifactory-pro/Dockerfile.nginx"

I hope this meets your needs.


Recursive gometalinting

I'm missing something like gometalinter ./.... Instead, I need to run gometalinter on each of my submodules. Am I missing something or is this the way to be?

Unfortunately not all of the linters support recursion, which is why gometalinter does not provide it as an option. It could be emulated I guess, but that seems like it's a bit out of scope.

I also think that this would be a nice feature.
Isn't emulation somewhat simple?

run linter on each package directory

In my ci scripts I've worked around the issue by calling gometalinter on each sub-package, but that means I need to update ci scripts each time I add new sub-project which is unnecessary and error prone.
Adding gometalinter ./... would also mean that you get multiple package support no matter if linter supports it or not.

Sure it is simple, but my thought was that using find is just as easy:
find . -type d | xargs -n1 | gometalinter

That said, it sounds like people are interested in the feature, so I'll take a look.

:clap:

So, this change has made me realize I have been running gometalinter incorrectly all this time. I've been successfully (or so I thought) running it as gometalinter jobsetc/..., where jobsetc is the root of a repo containing a few packages. I erroneously thought that all of the linter tools would use the same package semantics as tools like go list.
With this changeset, the above command started crashing, and while trying to figure out why, I've learned a few things that may help others:

Some linters support package lists, some only support directories/files, including "official" tools like gotype.
All of the default linters support at least single argument that is a directory representing a package. This directory must be relative to $PWD.
The logic for parsing package lists is not exposed by any official go library, but has been extracted by a 3rd party at https://github.com/kisielk/gotool. Some linters like structcheck use this package to support package lists.
There is an open issue to make path pattern matching functions available to go programmers but it doesn't appear likely that it will make it into the standard library.
Linters that don't support package lists will fail silently in gometalinter unless the debug flag is used, in which case you get warning: <linter> returned exit status <n>.
gometalinter will exit with non-zero status if any linter finds issues, even if you use the --exclude flag. This makes relying on the exit status difficult.
gometalinter now crashes on gometalinter jobsetc/... if the 'jobsetc' directory does not exist relative to $PWD. Or, more generally, it crashes if path arg ends with '/...' and that path can't be found by filepath.Walk().
The recursion implementation in this changeset is not consistent with the package list semantics of go list, et al.

It doesn't ignore paths that start with _ like import path parsers do.
It doesn't ignore directories that are not packages (with no .go files in them), which will causes many of the linters to error out.

And I discovered a command that works for me:
(cd $GOPATH/src && go list jobsetc/... | xargs gometalinter)

I'm not sure if there is a good general solution for normalizing the inputs to the various linters, but I will try to make a pull request for the crashing issue. I'll create an issue for the --exclude issue as well; not sure what the solution is for that yet, though.
For those of you still reading, here's the breakdown of what inputs the default linters accept:

go-nyet: accepts list of directories or files, recurses if ends with ...; ignores dirs that are not go packages
go-cyclo: accepts list of directories or files, does not recurse, only processes *.go in each dir.
deadcode: accepts list of directories only, passes dir to parser.ParseDir()
go vet: When launched with go vet, accepts go list style import paths. When launched with go tool vet, accepts list of directories or files, not both at the same time, file list must be in same pkg; otw very similar to go-nyet.
gotype: accepts single directory or list of files (or an entire pkg on stdin)
golint: accepts single directory, directory ending in ..., list of files, or single import path,
structcheck, errcheck, defercheck, varcheck: go list style import paths

Yes, it is unfortunately quite complicated because there's no "standard" mechanism used by all tools. Another complication is that some tools automatically check directories recursively (eg. go tool vet .) by default.
It's a mess, and basically the reason why I originally decided to check only one directory at a time.
PS. I merged your request and the --exclude issue should be fixed in the latest commit.

I think that last commit should fix the last of the issues.
The current behaviour is not 100% optimal, but seems to work in all cases that I've tested.

Directories are recursed correctly: paths without .go files are skipped, paths with a leading _ or . are skipped.
Each linter is called with exactly one path at a time. This is not optimal, as some linters (like errcheck) are much faster if called once with a single recursive path.

PS. Thanks for compiling that comprehensive breakdown.


feat: dpp::slashcommand constructor for context menu commands

[ ] My pull request is made against the dev branch.
[ ] I have ensured that the changed library can be built on your target system. I did not introduce any platform-specific code.
[ ] I have ensured that all methods and functions are fully documented using doxygen style comments.
[ ] I tested my commits, by adding a test case to the unit tests if needed
[ ] I have ensured that I did not break any existing API calls.
[ ] My code follows the coding style guide (if you are not sure, match the code style of existing files including indent style etc).
[ ] I have not built my pull request using AI, a static analysis tool or similar without any human oversight. Where I have generated this pull request using a tool, I have justified why this is needed.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


build multiarch images on amd64 machine

fixes https://github.com/IBM/meta-operator/issues/39
The newly added targets will be skipped when running on non-amd64 machine.
/cc @morvencao @gyliu513 @DanielXLee @horis233

/lgtm
/approve

Fixed a makefile in https://github.com/IBM/meta-operator/pull/41

template repo: https://github.com/IBM/go-repo-template/blob/master/Makefile#L139-L177


Explaining log_softmax

The existing qualitative description is already pretty long, I think we should just make it clear how log_softmax works.
Actually the description is slightly inaccurate. The worry about large numbers is the reason we do the subtraction of max in softmax (this hasn't been explained in other tutorials I think). The log softmax is mainly to deal with underflow (i.e. avoid exact zero softmax probably output).

Thanks @dingran !


v-model doesn't update the displayed value with Vuetify 2

I have Vuetify 2.1.0. Assigning a model to the component updates the datetime prop, but the input field won't update. In other words, the data ('date' and 'time') is not updating when the v-model's related variable changes.
For a bit of context, here is a simple example of how I use the picker:
<template>
  <v-datetime-picker
    v-model="event.start"
    label="Start"
  ></v-datetime-picker>
</template>

<script>
export default {
  data: () => ({
    event: {
      start: null
    }
  })
}

Modifying 'event.start' won't update the data in the picker.
The reason I need this is because the picker is in a form that is only shown once the user clicks a date in a calendar. They can create events and that field is filled for them, making things easier. That means I should be able to change its value from the parent component after the picker is created. This is something that used to work when I used Vuetify ^1.5.5. Probably because it was destroying the picker.
For now, all I can do is using v-if so the picker is destroyed once my dialog closes. And is created again when the form opens. I hoped there would be something more efficient and intuitive.

You can also add a :key with the date to force update.
            <v-datetime-picker               label="Date"               v-model="booking.start_date"               :key="booking.start_date"             >             </v-datetime-picker>

@raphael-jolimoi that proposed workaround does not work with vue2 + vuetifyjs 2.1.0. you have to watch the property, otherwise the prop is not updated.

Working on it.


add politeia welcome page

Currently on the proposals page, proposals are being downloaded automatically.
What is expected is that when the user accesses the Proposals page for the first time, they should see a welcome screen just like the StakeShuffle page, with a button at the bottom asking if they will like to download proposals.
Only then are the proposals to be downloaded based on the users consent.

Okay, that sounds right, I will work on getting this page done.


Add sub items

What does it do?
Adds a little form for creating sub items on stories.
Where should the reviewer start?
Yay for action-creators being reusable! This is really just a small addition to the SubItems component and some styling.
I also jimmied with some of the padding and layout in the item card detail to make things flow a bit better.
Background Context
Some flexbox magic in the form—that's becoming one of my favorite tricks.
Screenshots

:+1: yay flexbox just working and feeling like :fireworks:


Timeout waiting for rbd mirror daemon health

Sometimes after configuring rbd mirroring the rbd-daemon never becomes ready.
Example log:
$ grep -E '(dr1/0|rdr/0)' out/029.log
2024-04-04 23:58:40,122 INFO    [dr1/0] Running addons/rook-operator/start
2024-04-04 23:58:40,305 DEBUG   [dr1/0] Deploying rook ceph operator
2024-04-04 23:58:43,523 DEBUG   [dr1/0] namespace/rook-ceph created
2024-04-04 23:58:43,551 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephblockpoolradosnamespaces.ceph.rook.io created
2024-04-04 23:58:43,594 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephblockpools.ceph.rook.io created
2024-04-04 23:58:43,637 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephbucketnotifications.ceph.rook.io created
2024-04-04 23:58:43,664 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephbuckettopics.ceph.rook.io created
2024-04-04 23:58:43,705 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephclients.ceph.rook.io created
2024-04-04 23:58:43,982 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephclusters.ceph.rook.io created
2024-04-04 23:58:44,024 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephcosidrivers.ceph.rook.io created
2024-04-04 23:58:44,065 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephfilesystemmirrors.ceph.rook.io created
2024-04-04 23:58:44,249 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephfilesystems.ceph.rook.io created
2024-04-04 23:58:44,329 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephfilesystemsubvolumegroups.ceph.rook.io created
2024-04-04 23:58:44,434 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephnfses.ceph.rook.io created
2024-04-04 23:58:44,469 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephobjectrealms.ceph.rook.io created
2024-04-04 23:58:44,648 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephobjectstores.ceph.rook.io created
2024-04-04 23:58:44,694 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephobjectstoreusers.ceph.rook.io created
2024-04-04 23:58:44,872 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephobjectzonegroups.ceph.rook.io created
2024-04-04 23:58:44,937 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephobjectzones.ceph.rook.io created
2024-04-04 23:58:45,000 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/cephrbdmirrors.ceph.rook.io created
2024-04-04 23:58:45,030 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/objectbucketclaims.objectbucket.io created
2024-04-04 23:58:45,083 DEBUG   [dr1/0] customresourcedefinition.apiextensions.k8s.io/objectbuckets.objectbucket.io created
2024-04-04 23:58:45,122 DEBUG   [dr1/0] serviceaccount/objectstorage-provisioner created
2024-04-04 23:58:45,154 DEBUG   [dr1/0] serviceaccount/rook-ceph-cmd-reporter created
2024-04-04 23:58:45,213 DEBUG   [dr1/0] serviceaccount/rook-ceph-mgr created
2024-04-04 23:58:45,231 DEBUG   [dr1/0] serviceaccount/rook-ceph-osd created
2024-04-04 23:58:45,250 DEBUG   [dr1/0] serviceaccount/rook-ceph-purge-osd created
2024-04-04 23:58:45,264 DEBUG   [dr1/0] serviceaccount/rook-ceph-rgw created
2024-04-04 23:58:45,279 DEBUG   [dr1/0] serviceaccount/rook-ceph-system created
2024-04-04 23:58:45,294 DEBUG   [dr1/0] serviceaccount/rook-csi-cephfs-plugin-sa created
2024-04-04 23:58:45,316 DEBUG   [dr1/0] serviceaccount/rook-csi-cephfs-provisioner-sa created
2024-04-04 23:58:45,338 DEBUG   [dr1/0] serviceaccount/rook-csi-rbd-plugin-sa created
2024-04-04 23:58:45,352 DEBUG   [dr1/0] serviceaccount/rook-csi-rbd-provisioner-sa created
2024-04-04 23:58:45,366 DEBUG   [dr1/0] role.rbac.authorization.k8s.io/cephfs-external-provisioner-cfg created
2024-04-04 23:58:45,380 DEBUG   [dr1/0] role.rbac.authorization.k8s.io/rbd-csi-nodeplugin created
2024-04-04 23:58:45,403 DEBUG   [dr1/0] role.rbac.authorization.k8s.io/rbd-external-provisioner-cfg created
2024-04-04 23:58:45,421 DEBUG   [dr1/0] role.rbac.authorization.k8s.io/rook-ceph-cmd-reporter created
2024-04-04 23:58:45,437 DEBUG   [dr1/0] role.rbac.authorization.k8s.io/rook-ceph-mgr created
2024-04-04 23:58:45,459 DEBUG   [dr1/0] role.rbac.authorization.k8s.io/rook-ceph-osd created
2024-04-04 23:58:45,478 DEBUG   [dr1/0] role.rbac.authorization.k8s.io/rook-ceph-purge-osd created
2024-04-04 23:58:45,496 DEBUG   [dr1/0] role.rbac.authorization.k8s.io/rook-ceph-rgw created
2024-04-04 23:58:45,521 DEBUG   [dr1/0] role.rbac.authorization.k8s.io/rook-ceph-system created
2024-04-04 23:58:45,531 DEBUG   [dr1/0] clusterrole.rbac.authorization.k8s.io/cephfs-csi-nodeplugin created
2024-04-04 23:58:45,548 DEBUG   [dr1/0] clusterrole.rbac.authorization.k8s.io/cephfs-external-provisioner-runner created
2024-04-04 23:58:45,558 DEBUG   [dr1/0] clusterrole.rbac.authorization.k8s.io/objectstorage-provisioner-role created
2024-04-04 23:58:45,570 DEBUG   [dr1/0] clusterrole.rbac.authorization.k8s.io/rbd-csi-nodeplugin created
2024-04-04 23:58:45,584 DEBUG   [dr1/0] clusterrole.rbac.authorization.k8s.io/rbd-external-provisioner-runner created
2024-04-04 23:58:45,597 DEBUG   [dr1/0] clusterrole.rbac.authorization.k8s.io/rook-ceph-cluster-mgmt created
2024-04-04 23:58:45,609 DEBUG   [dr1/0] clusterrole.rbac.authorization.k8s.io/rook-ceph-global created
2024-04-04 23:58:45,629 DEBUG   [dr1/0] clusterrole.rbac.authorization.k8s.io/rook-ceph-mgr-cluster created
2024-04-04 23:58:45,643 DEBUG   [dr1/0] clusterrole.rbac.authorization.k8s.io/rook-ceph-mgr-system created
2024-04-04 23:58:45,658 DEBUG   [dr1/0] clusterrole.rbac.authorization.k8s.io/rook-ceph-object-bucket created
2024-04-04 23:58:45,667 DEBUG   [dr1/0] clusterrole.rbac.authorization.k8s.io/rook-ceph-osd created
2024-04-04 23:58:45,684 DEBUG   [dr1/0] clusterrole.rbac.authorization.k8s.io/rook-ceph-system created
2024-04-04 23:58:45,698 DEBUG   [dr1/0] rolebinding.rbac.authorization.k8s.io/cephfs-csi-provisioner-role-cfg created
2024-04-04 23:58:45,730 DEBUG   [dr1/0] rolebinding.rbac.authorization.k8s.io/rbd-csi-nodeplugin-role-cfg created
2024-04-04 23:58:45,750 DEBUG   [dr1/0] rolebinding.rbac.authorization.k8s.io/rbd-csi-provisioner-role-cfg created
2024-04-04 23:58:45,783 DEBUG   [dr1/0] rolebinding.rbac.authorization.k8s.io/rook-ceph-cluster-mgmt created
2024-04-04 23:58:45,805 DEBUG   [dr1/0] rolebinding.rbac.authorization.k8s.io/rook-ceph-cmd-reporter created
2024-04-04 23:58:45,822 DEBUG   [dr1/0] rolebinding.rbac.authorization.k8s.io/rook-ceph-mgr created
2024-04-04 23:58:45,840 DEBUG   [dr1/0] rolebinding.rbac.authorization.k8s.io/rook-ceph-mgr-system created
2024-04-04 23:58:45,862 DEBUG   [dr1/0] rolebinding.rbac.authorization.k8s.io/rook-ceph-osd created
2024-04-04 23:58:45,880 DEBUG   [dr1/0] rolebinding.rbac.authorization.k8s.io/rook-ceph-purge-osd created
2024-04-04 23:58:45,899 DEBUG   [dr1/0] rolebinding.rbac.authorization.k8s.io/rook-ceph-rgw created
2024-04-04 23:58:45,918 DEBUG   [dr1/0] rolebinding.rbac.authorization.k8s.io/rook-ceph-system created
2024-04-04 23:58:45,929 DEBUG   [dr1/0] clusterrolebinding.rbac.authorization.k8s.io/cephfs-csi-nodeplugin-role created
2024-04-04 23:58:45,955 DEBUG   [dr1/0] clusterrolebinding.rbac.authorization.k8s.io/cephfs-csi-provisioner-role created
2024-04-04 23:58:45,979 DEBUG   [dr1/0] clusterrolebinding.rbac.authorization.k8s.io/objectstorage-provisioner-role-binding created
2024-04-04 23:58:46,003 DEBUG   [dr1/0] clusterrolebinding.rbac.authorization.k8s.io/rbd-csi-nodeplugin created
2024-04-04 23:58:46,022 DEBUG   [dr1/0] clusterrolebinding.rbac.authorization.k8s.io/rbd-csi-provisioner-role created
2024-04-04 23:58:46,050 DEBUG   [dr1/0] clusterrolebinding.rbac.authorization.k8s.io/rook-ceph-global created
2024-04-04 23:58:46,061 DEBUG   [dr1/0] clusterrolebinding.rbac.authorization.k8s.io/rook-ceph-mgr-cluster created
2024-04-04 23:58:46,084 DEBUG   [dr1/0] clusterrolebinding.rbac.authorization.k8s.io/rook-ceph-object-bucket created
2024-04-04 23:58:46,102 DEBUG   [dr1/0] clusterrolebinding.rbac.authorization.k8s.io/rook-ceph-osd created
2024-04-04 23:58:46,120 DEBUG   [dr1/0] clusterrolebinding.rbac.authorization.k8s.io/rook-ceph-system created
2024-04-04 23:58:46,179 DEBUG   [dr1/0] configmap/rook-ceph-operator-config created
2024-04-04 23:58:46,278 DEBUG   [dr1/0] deployment.apps/rook-ceph-operator created
2024-04-04 23:58:46,287 DEBUG   [dr1/0] Waiting until rook ceph operator is rolled out
2024-04-04 23:58:46,466 DEBUG   [dr1/0] Waiting for deployment "rook-ceph-operator" rollout to finish: 0 of 1 updated replicas are available...
2024-04-04 23:59:30,404 DEBUG   [dr1/0] deployment "rook-ceph-operator" successfully rolled out
2024-04-04 23:59:30,411 DEBUG   [dr1/0] Waiting until rook ceph operator is ready
2024-04-04 23:59:30,640 DEBUG   [dr1/0] pod/rook-ceph-operator-6d6b84b579-fsq29 condition met
2024-04-04 23:59:30,696 INFO    [dr1/0] addons/rook-operator/start completed in 50.57 seconds
2024-04-04 23:59:30,696 INFO    [dr1/0] Running addons/rook-cluster/start
2024-04-04 23:59:30,906 DEBUG   [dr1/0] Deploying rook ceph cluster
2024-04-04 23:59:31,505 DEBUG   [dr1/0] cephblockpool.ceph.rook.io/builtin-mgr created
2024-04-04 23:59:31,528 DEBUG   [dr1/0] cephcluster.ceph.rook.io/my-cluster created
2024-04-04 23:59:31,534 DEBUG   [dr1/0] Waiting for ceph cluster Progressing condition
2024-04-04 23:59:31,763 DEBUG   [dr1/0] cephcluster.ceph.rook.io/my-cluster condition met
2024-04-04 23:59:31,766 DEBUG   [dr1/0] Waiting for ceph cluster Ready condition
2024-04-05 00:02:42,806 DEBUG   [dr1/0] cephcluster.ceph.rook.io/my-cluster condition met
2024-04-05 00:02:43,004 DEBUG   [dr1/0] ceph cluster status:
2024-04-05 00:02:43,004 DEBUG   [dr1/0]   conditions:
2024-04-05 00:02:43,004 DEBUG   [dr1/0]   - lastHeartbeatTime: '2024-04-04T21:02:42Z'
2024-04-05 00:02:43,004 DEBUG   [dr1/0]     lastTransitionTime: '2024-04-04T21:02:42Z'
2024-04-05 00:02:43,004 DEBUG   [dr1/0]     message: Cluster created successfully
2024-04-05 00:02:43,004 DEBUG   [dr1/0]     reason: ClusterCreated
2024-04-05 00:02:43,004 DEBUG   [dr1/0]     status: 'True'
2024-04-05 00:02:43,004 DEBUG   [dr1/0]     type: Ready
2024-04-05 00:02:43,004 DEBUG   [dr1/0]   message: Cluster created successfully
2024-04-05 00:02:43,004 DEBUG   [dr1/0]   observedGeneration: 2
2024-04-05 00:02:43,004 DEBUG   [dr1/0]   phase: Ready
2024-04-05 00:02:43,005 DEBUG   [dr1/0]   state: Created
2024-04-05 00:02:43,005 DEBUG   [dr1/0]   storage:
2024-04-05 00:02:43,005 DEBUG   [dr1/0]     osd:
2024-04-05 00:02:43,005 DEBUG   [dr1/0]       storeType:
2024-04-05 00:02:43,005 DEBUG   [dr1/0]         bluestore: 1
2024-04-05 00:02:43,005 DEBUG   [dr1/0]   version:
2024-04-05 00:02:43,005 DEBUG   [dr1/0]     image: quay.io/ceph/ceph:v18
2024-04-05 00:02:43,005 DEBUG   [dr1/0]     version: 18.2.2-0
2024-04-05 00:02:43,005 DEBUG   [dr1/0]
2024-04-05 00:02:43,044 INFO    [dr1/0] addons/rook-cluster/start completed in 192.35 seconds
2024-04-05 00:02:43,044 INFO    [dr1/0] Running addons/rook-toolbox/start
2024-04-05 00:02:43,245 DEBUG   [dr1/0] Deploying rook ceph toolbox
2024-04-05 00:02:43,921 DEBUG   [dr1/0] deployment.apps/rook-ceph-tools created
2024-04-05 00:02:43,926 DEBUG   [dr1/0] Waiting until rook-ceph-tools is rolled out
2024-04-05 00:02:44,201 DEBUG   [dr1/0] Waiting for deployment "rook-ceph-tools" rollout to finish: 0 out of 1 new replicas have been updated...
2024-04-05 00:02:44,247 DEBUG   [dr1/0] Waiting for deployment "rook-ceph-tools" rollout to finish: 0 of 1 updated replicas are available...
2024-04-05 00:02:50,607 DEBUG   [dr1/0] deployment "rook-ceph-tools" successfully rolled out
2024-04-05 00:02:50,611 DEBUG   [dr1/0] ceph status:
2024-04-05 00:02:54,391 DEBUG   [dr1/0]   cluster:
2024-04-05 00:02:54,391 DEBUG   [dr1/0]     id:     34169d10-23bb-4087-b218-6b474627b8e7
2024-04-05 00:02:54,391 DEBUG   [dr1/0]     health: HEALTH_OK
2024-04-05 00:02:54,391 DEBUG   [dr1/0]
2024-04-05 00:02:54,391 DEBUG   [dr1/0]   services:
2024-04-05 00:02:54,391 DEBUG   [dr1/0]     mon: 1 daemons, quorum a (age 74s)
2024-04-05 00:02:54,391 DEBUG   [dr1/0]     mgr: a(active, since 36s)
2024-04-05 00:02:54,391 DEBUG   [dr1/0]     osd: 1 osds: 0 up, 1 in (since 24s)
2024-04-05 00:02:54,392 DEBUG   [dr1/0]
2024-04-05 00:02:54,392 DEBUG   [dr1/0]   data:
2024-04-05 00:02:54,392 DEBUG   [dr1/0]     pools:   0 pools, 0 pgs
2024-04-05 00:02:54,392 DEBUG   [dr1/0]     objects: 0 objects, 0 B
2024-04-05 00:02:54,392 DEBUG   [dr1/0]     usage:   0 B used, 0 B / 0 B avail
2024-04-05 00:02:54,392 DEBUG   [dr1/0]     pgs:
2024-04-05 00:02:54,471 INFO    [dr1/0] addons/rook-toolbox/start completed in 11.43 seconds
2024-04-05 00:02:54,472 INFO    [dr1/0] Running addons/rook-pool/start
2024-04-05 00:02:54,756 DEBUG   [dr1/0] Creating rbd pool and storage class
2024-04-05 00:02:55,209 DEBUG   [dr1/0] cephblockpool.ceph.rook.io/replicapool created
2024-04-05 00:02:55,260 DEBUG   [dr1/0] storageclass.storage.k8s.io/rook-ceph-block created
2024-04-05 00:02:55,262 DEBUG   [dr1/0] Waiting until ceph block pool is ready
2024-04-05 00:02:55,503 DEBUG   [dr1/0] 'cephblockpool/replicapool' output='jsonpath={.status.phase}' found in 0.24 seconds
2024-04-05 00:04:34,734 DEBUG   [dr1/0] cephblockpool.ceph.rook.io/replicapool condition met
2024-04-05 00:04:34,737 DEBUG   [dr1/0] Waiting for replica pool peer token
2024-04-05 00:04:34,999 DEBUG   [dr1/0] cephblockpool.ceph.rook.io/replicapool condition met
2024-04-05 00:04:35,177 DEBUG   [dr1/0] ceph pool status:
2024-04-05 00:04:35,177 DEBUG   [dr1/0]   info:
2024-04-05 00:04:35,177 DEBUG   [dr1/0]     rbdMirrorBootstrapPeerSecretName: pool-peer-token-replicapool
2024-04-05 00:04:35,177 DEBUG   [dr1/0]   observedGeneration: 1
2024-04-05 00:04:35,178 DEBUG   [dr1/0]   phase: Ready
2024-04-05 00:04:35,178 DEBUG   [dr1/0]
2024-04-05 00:04:35,219 INFO    [dr1/0] addons/rook-pool/start completed in 100.75 seconds
2024-04-05 00:07:35,741 INFO    [rdr/0] Running addons/rbd-mirror/start
2024-04-05 00:07:35,984 DEBUG   [rdr/0] Getting mirroring info site name for cluster 'dr1'
2024-04-05 00:07:36,145 DEBUG   [rdr/0] 'cephblockpools.ceph.rook.io/replicapool' output='jsonpath={.status.mirroringInfo.site_name}' found in 0.17 seconds
2024-04-05 00:07:36,145 DEBUG   [rdr/0] Getting rbd mirror boostrap peer secret name for cluster 'dr1'
2024-04-05 00:07:36,313 DEBUG   [rdr/0] Getting secret pool-peer-token-replicapool token for cluster 'dr1'
2024-04-05 00:07:36,454 DEBUG   [rdr/0] Getting mirroring info site name for cluster 'dr2'
2024-04-05 00:07:36,598 DEBUG   [rdr/0] 'cephblockpools.ceph.rook.io/replicapool' output='jsonpath={.status.mirroringInfo.site_name}' found in 0.14 seconds
2024-04-05 00:07:36,598 DEBUG   [rdr/0] Getting rbd mirror boostrap peer secret name for cluster 'dr2'
2024-04-05 00:07:36,782 DEBUG   [rdr/0] Getting secret pool-peer-token-replicapool token for cluster 'dr2'
2024-04-05 00:07:36,910 DEBUG   [rdr/0] Setting up mirroring from 'dr2' to 'dr1'
2024-04-05 00:07:36,911 DEBUG   [rdr/0] Applying rbd mirror secret in cluster 'dr1'
2024-04-05 00:07:37,172 DEBUG   [rdr/0] secret/7995131f-5ee5-49cd-8c7c-ddfe0ccf086a created
2024-04-05 00:07:37,177 DEBUG   [rdr/0] Configure peers for cluster 'dr1'
2024-04-05 00:07:37,400 DEBUG   [rdr/0] cephblockpool.ceph.rook.io/replicapool patched
2024-04-05 00:07:37,405 DEBUG   [rdr/0] Apply rbd mirror to cluster 'dr1'
2024-04-05 00:07:37,690 DEBUG   [rdr/0] cephrbdmirror.ceph.rook.io/my-rbd-mirror created
2024-04-05 00:07:37,698 DEBUG   [rdr/0] Setting up mirroring from 'dr1' to 'dr2'
2024-04-05 00:07:37,698 DEBUG   [rdr/0] Applying rbd mirror secret in cluster 'dr2'
2024-04-05 00:07:38,014 DEBUG   [rdr/0] secret/34169d10-23bb-4087-b218-6b474627b8e7 created
2024-04-05 00:07:38,022 DEBUG   [rdr/0] Configure peers for cluster 'dr2'
2024-04-05 00:07:38,201 DEBUG   [rdr/0] cephblockpool.ceph.rook.io/replicapool patched
2024-04-05 00:07:38,208 DEBUG   [rdr/0] Apply rbd mirror to cluster 'dr2'
2024-04-05 00:07:38,485 DEBUG   [rdr/0] cephrbdmirror.ceph.rook.io/my-rbd-mirror created
2024-04-05 00:07:38,490 DEBUG   [rdr/0] Waiting until rbd mirror is ready in cluster 'dr1'
2024-04-05 00:07:48,266 DEBUG   [rdr/0] 'cephrbdmirror/my-rbd-mirror' output='jsonpath={.status.phase}' found in 9.78 seconds
2024-04-05 00:07:48,611 DEBUG   [rdr/0] cephrbdmirror.ceph.rook.io/my-rbd-mirror condition met
2024-04-05 00:07:48,812 DEBUG   [rdr/0] rbd mirror status:
2024-04-05 00:07:48,812 DEBUG   [rdr/0]   observedGeneration: 1
2024-04-05 00:07:48,812 DEBUG   [rdr/0]   phase: Ready
2024-04-05 00:07:48,812 DEBUG   [rdr/0]
2024-04-05 00:07:48,812 DEBUG   [rdr/0] Waiting until rbd mirror is ready in cluster 'dr2'
2024-04-05 00:07:54,960 DEBUG   [rdr/0] 'cephrbdmirror/my-rbd-mirror' output='jsonpath={.status.phase}' found in 6.15 seconds
2024-04-05 00:07:55,222 DEBUG   [rdr/0] cephrbdmirror.ceph.rook.io/my-rbd-mirror condition met
2024-04-05 00:07:55,457 DEBUG   [rdr/0] rbd mirror status:
2024-04-05 00:07:55,457 DEBUG   [rdr/0]   observedGeneration: 1
2024-04-05 00:07:55,457 DEBUG   [rdr/0]   phase: Ready
2024-04-05 00:07:55,457 DEBUG   [rdr/0]
2024-04-05 00:07:55,457 DEBUG   [rdr/0] Waiting until ceph mirror daemon is healthy in cluster 'dr1'

The wait times out after 600 seconds:
2024-04-05 00:17:55,596 ERROR   Command failed
Traceback (most recent call last):
  ...
drenv.commands.Error: Command failed:
   command: ('addons/rbd-mirror/start', 'dr1', 'dr2')
   exitcode: 1
   error:
      Traceback (most recent call last):
        ...
      drenv.commands.Error: Command failed:
         command: ('kubectl', 'wait', '--context', 'dr1', 'cephblockpools.ceph.rook.io', 'replicapool', '--for=jsonpath={.status.mirroringStatus.summary.daemon_health}=OK', '--namespace=rook-ceph', '--timeout=600s')
         exitcode: 1
         error:
            error: timed out waiting for the condition on cephblockpools/replicapool

Tasks

[x] Reproduce and stop the stress test (run with -x)
[x] Collect logs and state at the time of the failure
[ ] Report rook/ceph bug

Duplicate of #1332. The new issue has more details so I'm closing this one.


remove log, extra function

Left a log statement in the code, and also left in the function that turned out to be rather unnecessary.

@grechaw Here's a suggestion for some further cleanup.
Instead of this:
    let $instance := json:object()
        =>map:with('$attachments', $source)
(: The previous line adds the original source document as an attachment.            :)
(: If the source document is JSON, remove the previous line and replace it with     :)
(: =>map:with('$attachments', xdmp:quote($source))                                  :)

how about give them a function to automagically do it:
    let $instance := json:object()
        (: Add the original source document as an attachment.            :)
        => map:with('$attachments',
            if (prefix:is-json($source)) then
                xdmp:quote($source)
            else
                $source
        )

Here's the is-json function:
declare function prefix:is-json($input)
{
  let $o :=
    if ($input instance of document-node()) then
      $input/node()
    else
      $input
  return
    typeswitch($o)
      case object-node() |
        array-node() |
        number-node() |
        boolean-node() |
        null-node() return fn:true()
      default return fn:false()
};

You could even put is-json into es: if you were feeling crazy.

i guess it's not really a decision, just something you gotta do for JSON.
Seems like automagical is OK in this case.

Please go ahead Charles.

Maybe just inline.... won't ever be a number, boolean or null node so it's pretty compact.
  (: Add the original source document as an attachment.            :)
        =>map:with('$attachments'
            typeswitch($source-node)
            case object-node() then xdmp:quote($source)
            case array-node() then xdmp:quote($source)
            else $source)

Thanks @bsrikan

I think I finally got this right... will merge after tests confirm.

This PR was merged on the command line, closing manually


examples/AA: some light editing of markdown

Mainly spelling fixes on the first big block of AA markdown in the ipython notebook.
(Any change not in that block of the notebook is just an artifact of opening and closing the file - perhaps in a slightly different version)
Note: didn't run the full tests for this as it was intended to just be a warmup exercise of typo fixes.

Thanks a lot!!! I'll check the reddit thread you mentioned


Asyncio ZMQSelector improvements and zap authentication

The existing implementation of ZMQSelector was randomly failing on me with KeyErrors for unkown/unregistered file objects. The other existing asyncio.selectors ignore this error so I decided to rewrite ZMQSelector to behave alike.
This PR also adds a zap authenticator based on a asyncio task.
Consider this an RFC, I'm open for sugestions/ideas/changes.

I'm not comfortable with using an undocumented private API as the base class, but otherwise this does seem like an improvement. A little work will need to be added to get the tests running, mostly adding the right skips for Python 2, etc.

Ok, I'll base on BaseSelector and implement the missing bits based on _BaseSelectorImpl.
Do you want the authenticator with examples and tests in a separate pull request or is it ok as is?

I copied the missing bit's from python 3.5 selectors.py.
Do you know if this is allowed, and if yes if and how to properly attribute for license and copyright?

The authenticator is fine. For copying code from stdlib, that's fine, too. Just add a comment at the top:
# Derived from Python 3.5.1 selectors._BaseSelectorImpl, used under PSF License

Thanks!


Cannot build Parse with Xcode 7.1.1 and Swift 2.0

New project.
Tried importing Parse SDK with CocoaPods, failed.
Tried importing Parse SDK manually, failed.

Getting 'Parse' has no member errors.
The rest of the Parse SDK is working (PFAnalytics, PFUser, PFACL, etc)

i'm an idiot... close this haha

I am also an idiot... but I still haven't found the solution. =/

My problem was I created a Class Parse {} within my project which overwrote my Parse framework.


genshin.errors.GenshinException: [10104] Upon attempting to get the notes for another user.

As the title suggests, attempting to use client.get_notes({uidOfSomeoneElse}) on another user that has a publicly open battle chronicle returns this exception. Is this because Hoyolab doesn't allow you to get notes for other users? If that's the case, the description "Tried to use a beta feature in an invalid context." doesn't sound correct (unless this is a beta feature that's actually being worked on, in that case go you!).

The error used to say something along those lines but in Chinese. Now it returns an empty string so I'm guessing Hoyo no longer wants to support that. Considering there are no API docs I am constantly forced to guess the intentions of the developers.
The error should definitely be changed but the client.get_notes isn't supposed to be used with any arguments anyways (t's there just for consistency) so you should never get that error in the first place.

For me it ping-pongs between
GET https://bbs-api-os.hoyolab.com/game_record/genshin/api/dailyNote?role_id=(foreign uid)&server=os_euro

and
DEBUG:genshin.client.components.base:POST https://bbs-api-os.hoyolab.com/game_record/card/wapi/changeDataSwitch
{"switch_id":3,"is_public":true,"game_id":2}

on v1.2.1
while going through a browser xhr the code is
{"data":null,"message":"Data is not public for the user","retcode":10102}

probably related to https://github.com/thesadru/genshin.py/commit/d0b9e34fc1f621bb785408ad58134db15d901c33

Are you using the same account cookies for which you are getting the notes

Well, no, in the context of this ticket the attempt is to read someone else's notes.
But the point should stand, maybe add some counter to avoid the infinite looping?

What I'd do is a new parameter like force which would determine whether enabling the notes should be allowed.


[BUG] Deleting a prefab crashes the engine

Describe the bug
When a prefab is deleted, the engine crashes.
To Reproduce
Steps to reproduce the behavior:

Create a prefab GameObject from Project Explrorer.
Delete it.
Profit.

Expected behavior
Not crashing.

Fixed in #55


Deal with markup within Modspec blocks

https://github.com/metanorma/mn-samples-plateau/pull/126

[requirement]
.拡張製品仕様書に含めることが望ましい地物型等について
====
[%metadata]
identifier:: /att/decision/1
subject:: 3D都市モデル
statement:: 拡張製品仕様書に含めることが望ましい地物型
+
--
* 「拡張製品仕様書に含めることが望ましい地物型とLODの組み合わせ」（<<tab-1-1>>）として「基本セット」に含まれる「建築物」、「道路」、「都市計画決定情報」、「土地利用」、「災害リスク」及び「地形」の各地物型は、ユースケースの利用有無によらず、3D都市モデルに含むことが望ましい。

* これらの地物型に定義された地物属性のうち、主題属性（名称や種類、面積など、図形以外の属性）について、拡張製品仕様書に含むことが望ましい主題属性を「Annex A拡張製品仕様のための様式」の「取得項目一覧」に示す。

* 拡張製品仕様書に含むべき地物型等の選定においては、「取得項目一覧」を参考にすること。
--
====

The crash was an outright typo which hadn't been caught in testing, but with that typo fixed, three other issues emerge.
The first is that Modspec is NOT the default requirements markup in Metanorma, it is specific to OGC. We have a default model that is used instead. We don't use it, because it is generic and underspecified compared to modspec, but we cannot just assume Modspec everywhere. And statement is not a defined term in the default model, it is specific to Modspec.
I am about to make Modspec the default for Plateau, in response to https://github.com/metanorma/metanorma-plateau/issues/80, so that will forestall this issue.
The second issue is that in the default model, if a tag is not recognised (and statement isn't), it is treated as a classification tag. That is not a bad thing to do, given that classification tags are open-ended key/value pairs. The problem here is, classification tags are assumed to be single paragraphs of text (stripped of their paragraph wrapper); so the default model ignores multi-block values of unrecognised tags.
That strips all but the first paragraph of the statement encoding, and it cannot stand in an open-ended field, so I am going to allow blocks in the classification key/value pairs, except if the value is a single paragraph. Obviously classifications should not be rich text, but then again, markup should not be introducing categories that the actual requirements model does not recognise, either.
The third issue is @ronaldtse wanting to move to modspec-ruby for Modspec. That would have made no difference here, because the requirement was not being processed as Modspec to begin with, and Modspec deals with multi-block statements already (since it expects them). That is a separate ticket, https://github.com/metanorma/mn-requirements/issues/30


Cursor style overrided

If I add a different cursor style to the style attribute for BAR, it gets overridden by a child element that I don't know where it comes from.
Here's the React code:
                 <Bar size={3} style={{ background: '#888888', cursor: "default"}} />
And here is the DOM:

I've gone through the package files, but I don't know where that child-element with the col-resize cursor is being injected, because it overrides the parent's style.

Hi @appietr, sorry for the late response. The code for the cursor style was originally located in this file:  https://github.com/runjuu/column-resizer/blob/21661caea6b491e81883c6c15e9a2dbd18298763/packages/react/src/bar/styled.tsx#L24
I've removed the cursor style, as it seems unnecessary, and your code should now work as expected in version 1.1.0.


Live Mapping: Use WSS/TLS and IP whitelist for better security

Description
In order to make the connection(s) between the DPS and the live nodes, we need to:

Allow connections only from the known IP of the DPS
Use an encrypted connection (TLS on top of Websocket -> WSS) for pub/sub
Use an encrypted connection (TLS on top of TCP) for sync

@Ullaakut please create and link the corresponding issue on the Flow Go repository.


Selected value not being submitted on form, using remote data.

Prerequisites

[x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate
[x] The issue still exists against the latest master branch of Select2
[x] This is not a usage question (Those should be directed to the community)
[x] I have attempted to find the simplest possible steps to reproduce the issue

Steps to reproduce the issue

Create a select2 that uses remote data, inside a form. Make sure it has name attribute.
Submit the form.
Inspect that the submitted data does not included the data for the select2 selected value from remote data.

Environment
Browsers

[x] Google Chrome

Operating System

[x] Linux

Libraries

jQuery version: 3.2.1
Select2 version: 4.0.3

FALSE ALARM!!!