Check for an run post-process script

As discussed outside of this issue, a post-process script could be useful to fix style issues with eslint --fix and perhaps do other things in the future. We could also use this script to do an initial npm install for users. Here's how it might be implemented:

Directly after template files are generated, check for a post-process.js file in a template. (Not sure what the exact name or format should be.)
If it exists, run the script with the project root as the working directory.

(cc @LinusBorg, who started the discussion resulting in this issue)

Thanks for opening the issue!
I certainly like this idea. the npm install hook could be a standard,
One thing to keep in mind is that this should be somehow "sandboxed". I feel uncomfortable with the thought of vue-cli running arbitrary command-line stuff someone might have added to his/her custom template. If there's some malicious stuff (or sloppy errors), this can potentially damage the user's setup/fie-system.

We can start by just running eslint --fix on vue-cli
What kind of post processing are you thinking about? (Apart from eslint)

@LinusBorg I'm not sure the npm install hook should be built-in, because the CLI could be used to generate templates that aren't managed by NPM (and actually, our simple template is one of them). There could also be templates with a frontend and backend folder for example, that each have their own package.json in place of one in the root.
As for sandboxing, I had that thought as well, but it'd also be easy to sneak something into a build script, postinstall script, etc - so even now, people only want to install templates from trusted sources.
@posva I don't think it's feasible to just always run eslint --fix, as many templates won't have ESLint installed. I think it'd be simpler to just not make assumptions about templates and have them take care of what they need.

because the CLI could be used to generate templates that aren't managed by NPM

Oh, right, of course.

As for sandboxing, I had that thought as well, but it'd also be easy to sneak something into a build script, postinstall script, etc - so even now, people only want to install templates from trusted sources.

I though about this as well, but to me, the CLI running something immediatly after init has a different quality than a malicious npm script which I, the user, can thoroughly analyse in my project files before I actually run it.

If we allow vue-cli to run "arbitrary" commands, we would expect users to first analyse the templates repo before they install it.
If we don't allow such commands, the user can install a project without any risks and then have a thorough look at the files, commands etc before he runs npm install

Does that make sense?

@chrisvfritz I was actually thinking about vue-cli running eslint. It may also run other commands in the future.
I'm talking about this because we may not need anything complicated yet. Maybe no other need appears in the future. Also, I think it's a good idea to let the cli decide what executables can be called and what options can or cannot be passed

@LinusBorg Well to be totally safe right now, one would have to not only read the source after generating files, but before installing, they'd have to also read the source of every dependency and even nested sub-dependency (I believe the Webpack template has over 1000!). If someone really had malicious intentions, it'd be extremely easy to sneak something in.
So I feel like setting up some fancy sandboxing or command whitelisting might provide the illusion of greater security by eliminating one of the more obvious attack vectors, but it wouldn't actually make users safer. 😕  And by including such security features, we might even be making users less safe, as the false sense of security might make them feel like they can use any template they want, without first considering where it came from.
@posva I'm a bit worried about coupling the CLI tool to specific template implementations. Some might want to add JSHint, HTMLLint, Stylelint, etc and then we'd have set a precedent for adding all these integrations within vue-cli. Then on the template maintainer side, people would have to open issues/PRs on whenever they wanted to do some post-processing we didn't allow yet.
By keeping things simple with the post-generate script, we're not closing off any future, as-yet-unforeseen possibilities and we won't have to do a lot of maintenance on this feature, because sufficient power is given to template authors to do whatever they'd like.

@chrisvfritz Ok, you have me convinced. :)

@chrisvfritz But doesn't that mean that template authors can create unsafe post-generate scripts?

@posva Yeah, but since they can already generate unsafe templates in general (see the explanation to Linus), users won't be any less safe than they used to be. Installing a template from someone simply requires some trust. Does that make sense?

Okay, I didn't understand that at the beginning.
You convinced me too 👌
On Thu, 15 Sep 2016, 15:22 Chris Fritz<EMAIL_ADDRESS>wrote:

@posva https://github.com/posva Yeah, but since they can already
generate unsafe templates in general (see the explanation to Linus), users
won't be any less safe than they used to be. Installing a template from
someone simply requires some trust. Does that make sense?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/vuejs/vue-cli/issues/168#issuecomment-247326293, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAoicX_cXUfKvTIqF6z3mehd8sSUaY04ks5qqUacgaJpZM4J7IGh
.


Nodeinit Daemonset no longer pre-pulls Cilium image

~In Cilium v1.9.0-rc0 (and all prior versions with nodeinit DS), the nodeinit DS deliberately pulled the Cilium image in order to pre-pull it to the node, then subsequently ran scripts to prepare the node for Cilium installation.~
https://github.com/cilium/cilium/blob/c1d63f79e31e8946e3a729c7890932b3a80ed0dc/install/kubernetes/cilium/charts/nodeinit/templates/daemonset.yaml#L24-L30
Since #13259 , it appears that the image prepull portion of this mechanism was broken as it is pulling a specific startup-script container instead:
https://github.com/cilium/cilium/blob/9ab7bfc943c3290805d7033ef030a43bfd279d48/install/kubernetes/cilium/values.yaml#L1079-L1085
Was this change intentional?

Hmm, upon deeper inspection it seems like the latest v1.8.x releases are also formatted like this, so perhaps my understanding of the scripts is out-of-date.


ajaxMultiSelect onChange

as discussed
http://stackoverflow.com/questions/9024279/lift-ajax-multi-select-box
https://groups.google.com/forum/#!searchin/liftweb/ajaxMultiSelect/liftweb/mxc19m8eFUE/W6DRROUvH64J
https://groups.google.com/forum/#!searchin/liftweb/ajaxMultiSelect/liftweb/Rg6bm0KMo8E/ObiwM8lVpmYJ
simple test
HtmlMultiSelectSnippet.scala
package code.snippet
import net.liftweb.http.js.JsCmd
import net.liftweb.http._
import net.liftweb.util.Helpers._
import net.liftweb.http.SHtml.ajaxMultiSelect
class HtmlMultiSelectSnippet {
def select_multi (a : List[String]) : JsCmd ={
println(a)
}
def render = {
val options = List(("0","0"),("1","1"))
"#ajaxmulti" #> SHtml.ajaxMultiSelect(options, SeqString , select_multi )
}
}
index.html

Can you tell me what's wrong with the commit quality so I can improve it ?

Hi there,
Thank you for the contribution, but there are a few issues with this PR.
First, according to the guidelines set out in our contributing guidelines we cannot accept major pull requests from non-committers without explicit request for 3rd party solution from a non-committer.
Second, In this case I typically ask that you open a post on the Mailing List to get a discussing rolling on this issue, but in this case it might make sense to bump one of the existing posts. That would have been the right first step in our community.
Third, this is using someone else's code (from Stack Overflow) without attribution which is almost certainly a violation of the license that Stack Overflow uses.
Fourth, this isn't really the approach I would prefer us to use in solving this problem. That's an opinion that I would normally express in the Mailing List post about this solution, but you didn't give us an opportunity to do that before submitting the Pull Request, so I'm noting it here.
I'm going to close this Pull Request. Please feel free to follow up on the Mailing List and we can go from there.

Also worth noting, we recently clarified the verbiage in the CONTRIBUTING.md file, so if that was the source of confusion then that's our bad. :)

Thanks for the feedback

I've posted here
https://groups.google.com/forum/?fromgroups=#!searchin/liftweb/ajaxMultiselect/liftweb/mxc19m8eFUE/W6DRROUvH64J


Aspire: Discover exposed port from the result of dotnet publish

We have the following TODO in the code, which is a corner we cut in our first preview of the aspire work:
https://github.com/Azure/azure-dev/blob/67cfc5a1aa315f8e4e983ede4dfb339a563bca11/cli/azd/pkg/apphost/generate.go#L450-L462
This should hopefully be straightforward to fix.  We need to adjust the PublishContainer method on the DotnetCli type so that we get this information back and the part the JSON object and return it up stack.  We also need to update the code in the Deploy method of dotnetContainerAppTarget to then take that result and overwrite the TargetPort value in the context before we evaluate the template.
We also need to consider what we do in the infra synth case.  I suspect we need to publish the container to a local temporary file (which we then delete) so we can get the port that should be exposed from the publish task.  Let's chat about what that looks like after we've done the first part.  We can always land the first part first and then add the infra synth support later.

Here's the output of the run when --getProperty:GeneratedContainerConfiguration:
{
  "config": {
    "ExposedPorts": {
      "8080/tcp": {}
    },
    "Labels": {
      "org.opencontainers.image.created": "2024-01-03T22:08:58.5987590Z",
      "org.opencontainers.artifact.created": "2024-01-03T22:08:58.5987590Z",
      "org.opencontainers.image.authors": "AspireStarter.Web",
      "org.opencontainers.image.version": "1.0.0",
      "org.opencontainers.image.base.name": "mcr.microsoft.com/dotnet/aspnet:8.0"
    },
    "Env": [
      "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
      "APP_UID=1654",
      "ASPNETCORE_HTTP_PORTS=8080",
      "DOTNET_RUNNING_IN_CONTAINER=true",
      "DOTNET_VERSION=8.0.0",
      "ASPNET_VERSION=8.0.0"
    ],
    "WorkingDir": "/app",
    "Entrypoint": [
      "dotnet",
      "AspireStarter.Web.dll"
    ],
    "User": "1654"
  },
  "created": "2024-01-03T22:08:58.9778210Z",
  "rootfs": {
    "type": "layers",
    "diff_ids": [
      "sha256:7292cf786aa89399bca4e3edd105d3b2ee0683a46ef1f5ff436c0f9d1d49e765",
      "sha256:4b703ea23cb9b0cf3b6c8328d8e6afe078e5b058c5e62f45fa1ba93d1a9e0c5b",
      "sha256:93287e66966fa218cfac6e09ba36e3ccdb63336d636eae372c67440ce7a4ed54",
      "sha256:82cc5cf93bd215f3fc1c84d99d37c957eb1c9ec550312c438ad0a1164c6d4f78",
      "sha256:6e906a70a0663d193fd84fbc9ab0b8208e7c8f62545f993f300178f35cf0d162",
      "sha256:828e2dabde3f35d367b68bb50f3a75f5360feb4a972c5870adea8589120f5e4b",
      "sha256:36618edd221deb062bb073a5d8e22e2bd42dfd7500b7c2329569d75a8e7cf1ec"
    ]
  },
  "architecture": "amd64",
  "os": "linux",
  "history": [
    {
      "created": "2023-12-19T01:20:27.6491128Z",
      "created_by": "/bin/sh -c #(nop) ADD file:ac3cd70031d35e46d86b876934946ffc8756de4de065fbc926dce642dac07ff3 in / "
    },
    {
      "created": "2023-12-19T01:20:28.0096269Z",
      "created_by": "/bin/sh -c #(nop)  CMD [\"bash\"]",
      "empty_layer": true
    },
    {
      "comment": "buildkit.dockerfile.v0",
      "created": "2023-12-19T08:13:09.7653922Z",
      "created_by": "ENV APP_UID=1654 ASPNETCORE_HTTP_PORTS=8080 DOTNET_RUNNING_IN_CONTAINER=true",
      "empty_layer": true
    },
    {
      "comment": "buildkit.dockerfile.v0",
      "created": "2023-12-19T08:13:09.7653922Z",
      "created_by": "RUN /bin/sh -c apt-get update     && apt-get install -y --no-install-recommends         ca-certificates                 libc6         libgcc-s1         libicu72         libssl3         libstdc++6         tzdata         zlib1g     && rm -rf /var/lib/apt/lists/* # buildkit"
    },
    {
      "comment": "buildkit.dockerfile.v0",
      "created": "2023-12-19T08:13:10.0824019Z",
      "created_by": "RUN /bin/sh -c groupadd         --gid=$APP_UID         app     && useradd -l         --uid=$APP_UID         --gid=$APP_UID         --create-home         app # buildkit"
    },
    {
      "comment": "buildkit.dockerfile.v0",
      "created": "2023-12-19T08:13:12.6657510Z",
      "created_by": "ENV DOTNET_VERSION=8.0.0",
      "empty_layer": true
    },
    {
      "comment": "buildkit.dockerfile.v0",
      "created": "2023-12-19T08:13:12.6657510Z",
      "created_by": "COPY /dotnet /usr/share/dotnet # buildkit"
    },
    {
      "comment": "buildkit.dockerfile.v0",
      "created": "2023-12-19T08:13:12.8940272Z",
      "created_by": "RUN /bin/sh -c ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet # buildkit"
    },
    {
      "comment": "buildkit.dockerfile.v0",
      "created": "2023-12-19T08:13:15.0392053Z",
      "created_by": "ENV ASPNET_VERSION=8.0.0",
      "empty_layer": true
    },
    {
      "comment": "buildkit.dockerfile.v0",
      "created": "2023-12-19T08:13:15.0392053Z",
      "created_by": "COPY /shared/Microsoft.AspNetCore.App /usr/share/dotnet/shared/Microsoft.AspNetCore.App # buildkit"
    },
    {
      "author": ".NET SDK",
      "created": "2024-01-03T22:08:58.9778150Z",
      "created_by": ".NET SDK Container Tooling, version 8.0.100-rtm.23551.6+e9d13cbe7e8c1d52ce276a8655f52a87e1017c46"
    }
  ]
}

Not a blocker for Aspire Preview 4. Moving it to next milestone.


Add unix socket connection by url stirng.

There is only one way if you choose to connect to redis by url string: connect by tcp socket.
This PR offers the way to connect to unix socket using url string as well.

Thanks!


Initial package warnings section and unhide filtered components

Description
This moves any deprecated package warnings into the warnings section of the Zarf confirm page.
Related Issue
Fixes #1722
Fixes #1752
Fixes #1751
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Other (security config, docs update, etc)

Checklist before merging

[X] Test, docs, adr added or updated as needed
[X] Contributor Guide Steps followed

This is what this change looks like

Here are the updates to both SBOMs and warnings now:

Here are the updates to both SBOMs and warnings now:

nit: can we throw a newline between these? the block of yellow just messes w/ my brain box

Normalized the warnings:

Fixed #1751 as well

New msg


Fix CATS code language label issue per User Story #1549006

This PR fixes the "Missing language spec" issue for User Story https://mseng.visualstudio.com/TechnicalContent/_workitems/edit/1549006, Address CATS content quality issues for content linked from Python dev center.

Docs Build status updates of commit 840b465:
:clock10: Full build: the average full build time is 220 min(s) 47 sec(s), this is based on the last 55 build(s) for this repository.

Docs Build status updates of commit 840b465:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-services/cognitive-services.md
:white_check_mark:Succeeded
View (azure-python)

docs-ref-services/hdinsight.md
:white_check_mark:Succeeded
View (azure-python)

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


Can RTLAMR2MQTT run in parallel with RTL_433 with two RTL-SDR sticks on one RPi 4 in Home Assistant?

I successfully installed this setup and receive some old thermometers via a generic RTL-SDR stick (https://linux-hardware.org/index.php?id=usb:0bda-2838) on Bus 001 Device 004: ID 0bda:2838 followling these instructions: https://community.home-assistant.io/t/home-assistant-add-on-rtl-433-with-mqtt-auto-discovery/260665 on a Raspberry Pi 4.
Now I added a second generic RTL-SDR stick (https://linux-hardware.org/index.php?id=usb:0bda-2838) on Bus 001 Device 006: ID 0bda:2838 and would like to run rtlamr2mqtt in parallel to the well working rtl_433. Two of my meters are smart: water http://fcc.io/EWQ100W Itron 100WRD Water ERT Type 11 903/927 Mhz and gas http://fcc.io/100GDLAN Itron 100GDLAN Gas ERT Type 12 908/926.8 Mhz and they are also listed here: https://github.com/bemasher/rtlamr.
So far, I am unable to figure out how to "tell" HA, to continue to use this RTL-SDR Bus 001 Device 004: ID 0bda:2838 for the old thermometers etc. via rtl_433 (https://github.com/pbkhrv/rtl_433-hass-addons) and Bus 001 Device 006: ID 0bda:2838 for gas and water via https://github.com/allangood/rtlamr2mqtt.
In the RTLAMR2MQTT configuration file I entered:
general:
usb_reset: '006:001'
I was hoping this would select the 2nd RTL-SDR.
The system log shows this: 22-04-09 11:48:48 WARNING (MainThread) [supervisor.misc.tasks] Watchdog found a problem with 6713e36e_rtlamr2mqtt!
22-04-09 11:48:48 INFO (SyncWorker_6) [supervisor.docker.interface] Cleaning addon_6713e36e_rtlamr2mqtt application
22-04-09 11:48:50 INFO (SyncWorker_6) [supervisor.docker.addon] Starting Docker add-on 6713e36e/aarch64-addon-rtlamr2mqtt with version 1.7.0
The message keeps repeating itself endlessly. Uninstalling and rebuilding have not helped. The reason I plugged in two RTL-SDR sticks was that I was hoping that I can receive two frequency ranges in parallel with two independent hardware devices, since I thought trying it with one stikc would cause conflicts of rtl_433 and rtlamr. But maybe that is wrong?
And, when I type in "rtl_tcp" or "rtlamr" into the SSH sheel inside HA, I don't see anything but an error message.
[core-ssh /]$ rtl_tcp
bash: rtl_tcp: command not found
[core-ssh /]$ rtlamr
bash: rtlamr: command not found
Also, identifying the meters via this command "docker run --rm -ti -e LISTEN_ONLY=yes -e RTL_MSGTYPE="all" --device=/dev/bus/usb:/dev/bus/usb allangood/rtlamr2mqtt" probably requires some adjustments I guess?
I have found some numbers on the smart meters, but to be sure, I would like to use this feature to "discover them".
Any help would be greatly appreciated!

Please, use the discussion to ask questions as this is not an issue :)
RTL_TCP has the parameter -d to define which device to use, i.e.: -d 0 for the first device, -d 1 for the second and so on.
With this rtlamr2mqtt application, you can change the custom_parameters section to add this parameter, like this:
custom_parameters:
  rtltcp: "-s 2048000 -d 1"
  rtlamr: "-unique=true -symbollength=32"

Refer to the other container documentation to learn how to add the parameter there.
Regards.


Add "DocsLink" feature

Twyyx (forum) @jshook during 11/18/2020 P2 Live Forum suggested making a "DocsLink" feature where some action on a word in source (such as CTRL+Double-Click) causes Propeller Tool to emit a URL POST (in the form of a user-configurable domain plus the Propeller type plus the selected word/phrase.  Developers can make use of that to provide documentation or other info based on those keywords.
From Twyyx on the forum:

Jeff, if you do add the docslink feature we talked about, I'd like to know even if you don't publish it as a user-facing feature.
I would like to do some R&D and experimentation for linking in some docs on an editable view. If I get anything of value to come from it, I'll share it back and demo to you and whoever is interested in learning about the idea.
I can't guarantee success, but I have some particular ideas on how to streamline docs construction, feedback, and hosting by leveraging some specific projects already out there.

@jshook - I've been considering this more.
The easiest is to implement it the way you suggested.  I also dreamed up some enhancements from there that can be implemented later if deemed helpful.

Make the DocsLink action bring up a small overlay near the cursor to show summarized information, with a button to read more.  This would require that the "service" provide a result like that, perhaps via a simple REST interface, or it could fetch the HTML and simply pare it down to a limited summary.

This could act like a very quick, in-app informative response that gives the user everything needed for a "refresher" or "intro" and then it's out of the way again, whether or not the user chooses the read more option.

I think it'd be best if it's not an exclusive implementation - meaning that it'd be great if multiple sources could be entered and the DocsLink activation could provide a summary from each (for further exploration) or some other way to make each source visible.

Thoughts?

I was thinking in this direction as well. However, I did avoid elaborating too much because I knew I was asking for something that could be a distraction while you are all so busy. The limited version of this is good enough to get started with and also enable those who want to prototype doc site support to work with it.
That said, I think we're both imagining that we can do much more, and I like the direction of it. The local views, multiple sources, summary vs details.. it's all nice to have.
On local views, to keep the implementation simple, it would be best to call out to a "summary" if that is what is wanted, and also have a different view which is "detail". This would allow the tool to just look at HTTP and just display the contents in a borrowed browser frame. attached to the proptool (I'm not clear on how that works, but it seem to be a common tactic.)
For the calling interface to be simple, you can provide a couple of tokens in addition to the ones we already provided. It would be up to the person configuring the URL what the target scheme is. For example, you can be selective with 'htts://my.docs.example.com/$PASMVER$/$LEVEL_OF_DETAIL$/$TERM$.html` where each of the tokens is required to be one of a known set. LEVEL_OF_DETAIL could be required to always be either 'summary' or 'detail' or 'see_also'.
On multiple sources, I like the idea, but it seems to fit more in the realm of "see_also" as hinted above. This is because you will prop tool users to be able to suggest improvements to a common set of community docs, or at least docs which can be used as the standard source. We just don't have one that fits this form yet. I wouldn't expect users to be reconfiguring their docs URL in general, and if we allowed it, there should be a really simple way to let them reset back to the "standard docs", and also a way to warn them if they've changed this setting and their doc lookups come back empty or with errors.

Yes, on the reset option, the preference window keeps defaults available and a simple click of the Reset (or is it Restore?) option will reset them back to defaults.
Thanks for the feedback.  If you have more ideas, or more details you want to provide, put them here anytime.
My thoughts are that initially, the extra source(s) will be very beneficial - then over time it may naturally culminate into just one source (or maybe two) that people use.  Ideally, we'd like to make our documentation improvable in real time (or near real time) by customers, with the whole set of it online and consumable in bite-sized amounts.  Tutorials could be written blog format, with links to the deeper bite-sized tidbits sprinkled in for good measure.


Allow download everything

Use generator pattern to stream the CSV file to a user rather than creating an Upload and buffering it in memory.  Include CSV in generated zip download.
fixes #261

@BryonLewis thanks for your review.

duplicates fixed in 31d7fcb
#262 fixed in 31d7fcb
Added trivial unit tests for export, we should add more robust transcoding tests later.  Added github actions


chore: remove code coverage checks

Sadly our setup is somewhat broken and constantly generates wrong coverage numbers.
Those result in red checks, causing auto merges to fail.
Remove the coverage - which was unreliable anyway - and unblock automatic merging.

The tests are also a tiny bit faster now since we can more easily parallelize the several tests


Make the underscore wrapper iterable

Thoughts on making the Underscore wrapper an iterator and iterable?
It would require detecting Symbol.iterator and doing something like
_.prototype[Symbol.iterator] = function() {
  return this;
};
_.prototype.next = function() {
  if (this.__values__ === undefined) {
    this.__values__ = _.toArray(this.value());
  }
  var done = this.__index__ >= this.__values__.length,
      value = done ? undefined : this.__values__[this.__index__++];
  return { 'done': done, 'value': value };
};

Related to https://github.com/jashkenas/backbone/issues/3954#issuecomment-189552205.

Should only be implemented if #2147 is implemented, too. In addition, I disagree with the above code example as it would be possible to iterate the wrapper only once, despite the fact that the underlying values are not really consumed.


fix(PaymentMethodNonce): wrap nonce in result in #find

The docs for the java SDK indicate that the PaymentMethodNonce.find() method returns a Result, but the code is returning a PaymentMethodNonce.
By looking at the implementation in Ruby, it looks like it is wrapping the nonce in a result. So I guess there is a bug in the java SDK.
Please, ignore this PR if the class has the expected behavior. If so, I don't know how to suggest an edit to the docs so they reflect what the code is actually doing.
Thanks.

You're right—our docs are wrong. find is supposed to return a PaymentMethodNonce but is documented incorrectly.
We'll close this issue once our docs are fixed.

@tagoro9 Hi, sorry for the delay. https://developers.braintreepayments.com/reference/request/payment-method-nonce/find/java should be updated with the correct docs. Thanks for reporting the issue.

No problem. Thanks for fixing it!


MAINTAINERS: Fix outdated reference to modules/Kconfig.mcuboot_bootutil

The commit 837245fcecf1883d37540db04b562003918d0cf2 relocated modules/Kconfig.mcuboot_bootutil to modules/Kconfig.mcuboot.

Hotfix for the currently failing "Pull Request Assigner" workflow.

@stephanosio I'm still seeing the issue when I rerun the check.


ISPN-7166 WriteSkewConsistencyTest random failures

https://issues.jboss.org/browse/ISPN-7166

Integrated into master, thanks @danberindei !


Improper connection handling in ConfigsManager

If RabbitMQ is taken down after PANIC is running, the ConfigsManager enters in a loop of starting and stopping. We need to check that proper connection handling is being done inside the ConfigsManager.


Need access to Prototek on November 2nd at 11:00

Okc-Sharp needs someone to let them into Prototek on Monday November 2nd at 11:00.

@the-simian will swing by at 11 to let you in :+1:


Editorconfig plugin visibility

          Hi, I just noticed this new plugin in Vim source code and saw this thread. I'm sorry to resurface the discussion but it seemed like some folks were making the argument for enabling this by default, with the basic assumption that EditorConfig is enabled by most editors other than Vim. However, I just tried VSCode (the most popular text editor in the world) and it doesn't seem to be the case? The [EditorConfig extension](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) doesn't seem to be installed by default and you have to manually do it yourself as a user. FWIW I think this is the desired behavior. I think users who want to use it can just add a one liner in their vimrc to enable it and most of the times you are working on a project long-term and it's literally a one-time thing. I personally would prefer my text editor not scan all the parent folders of all text files I edit. Vim is not designed as a "no config" text editor. (Neovim does enable it by default though)

That said, I wonder if we can do a better job documenting the bundled packages? Right now, this is quite undiscoverable. The only bundled optional package that I can find documentation on is "matchit", and it's kind of in a weird location. I think it would be nice to list all optional Vim packages/components that can be loaded on demand. For example, I think typing :h editorconfig should show… something. Bundled packages are part of Vim because we have essentially stamped our seal of approval, and therefore the documentation should reflect that. For example if you do :h filetype you will see documentation for misc bundled file types like if-rust.
There are also odd balls like the ones in $VIMRUNTIME/tools/emoji_list.vim but maybe that's out of scope for this.
Originally posted by @ychin in https://github.com/vim/vim/issues/2286#issuecomment-1714675869

may be somewhere close to where currently matchit is mentioned?
https://github.com/vim/vim/blob/596ad66d1ddb742ef349e98eb06b8e4052f68f51/runtime/doc/usr_05.txt#L394-L430

Currently, there are a few older plugins (netrw etc.) that are not packages. These were added before Vim's package-feature existed and are located in $VIMRUNTIME/plugin/. I think, we should put all plugins under pack/dist/, either under opt or start. Then we can list them all under a dedicated "bundled packages/plugins" help section.

I do wonder if that will just mean a lot of loose folders in pack. If they are enabled by default then placing them under autoload/plugin isn't too bad, but it does make it messy. I do like the general idea of a centralized "here are the list of bundled extensions and these are enabled, those are optional" documentation page. Just helps to keep it in one place and easy to understand.
I personally also don't understand why ftplugin/man.vim (for :Man) and misc files under syntax (e.g. colortest.vim, 2html.vim) are where they are as they seem kind of out of place but maybe it's out of scope.

I do wonder if that will just mean a lot of loose folders in pack. If they are enabled by default then placing them under autoload/plugin isn't too bad, but it does make it messy. I do like the general idea of a centralized "here are the list of bundled extensions and these are enabled, those are optional" documentation page. Just helps to keep it in one place and easy to understand.
I personally also don't understand why ftplugin/man.vim (for :Man) and misc files under syntax (e.g. colortest.vim, 2html.vim) are where they are as they seem kind of out of place but maybe it's out of scope.

2html.vim in particular mostly is where it is for backwards compatibility. Some people (notably in the past, Bram) have scripts and tooling that just source the script with a runtime command rather than loading and running the command defined in the plugin file. I personally have no objections to refactoring it and moving to a more logical place, I feel like I suggested that to Bram once upon a time but he wanted to keep the ability to source it the old way.
That said, one of Vim's big strengths is the expectation that something you make that works today is mostly expected to continue working whenever you upgrade.


pubsub: support IAM methods

pubsub should support Get/SetIAMPolicy methods for subscriptions and topics.
@broady
@mcgreevy

Also TestIAMPolicy.

@jba I think this is already implemented right? Want to make sure before closing.

Yep, it's there!


Payloads are too old

Add new payload I want to buy 15-16 on the go wifi rubber ducky from AliExpress and update your code...

What do you mean with too old?
There are payloads for both WHIDGUI/ESPloitV2 and WifiDucky.


fix: fixing the onlyi_prc condition

Regarding: https://github.com/southalc/podman/issues/93
The check condition always return false and hence the container removal does not happen. Due to which, changes in flags do not go through.

Thanks for your contribution


Allow event's model to have relationship

Attempt to fix #43

@invaders-xx can u test and see if this works for you? thanks

@saade, how do I test it ? I am not a github expert ;-)

Hi @tiagof, it seems that this does not work for people that does not use a model to represent event. (like me).
I've reverted that since i do not have time to debug this myself, feel free to reopen this with the fix.

Hi @saade, happy to look into it if you/someone provides the bug report.
Cheers


Fix a bug in gcsTileBounds

When asking for a specific gcs transform in gcsTileBounds, the transform was reversed.
Add a test to prove that this works as we expect.

Current coverage is 81.77% (diff: 100%)

Merging #611 into master will increase coverage by 0.01%

@@             master       #611   diff @@
==========================================
  Files            83         83
  Lines          7563       7563
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           6184       6185     +1
+ Misses         1379       1378     -1
  Partials          0          0

Powered by Codecov. Last update 12a68a2...3773214

LGTM


feat: .gitignore

expect => power-assert

Codecov Report

Merging #2 into master will decrease coverage by 81.81%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master       #2       +/-   ##
===========================================
- Coverage     100%   18.18%   -81.82%
===========================================
  Files           2        1        -1
  Lines          53       22       -31
  Branches        5        3        -2
===========================================
- Hits           53        4       -49
- Misses          0       18       +18

Impacted Files
Coverage Δ

lib/util.js
18.18% <0%> (-81.82%)
:arrow_down:

lib/start-combo-server.js

Continue to review full report at Codecov.

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

Codecov Report

Merging #2 into master will decrease coverage by 81.81%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master       #2       +/-   ##
===========================================
- Coverage     100%   18.18%   -81.82%
===========================================
  Files           2        1        -1
  Lines          53       22       -31
  Branches        5        3        -2
===========================================
- Hits           53        4       -49
- Misses          0       18       +18

Impacted Files
Coverage Δ

lib/util.js
18.18% <0%> (-81.82%)
:arrow_down:

lib/start-combo-server.js

Continue to review full report at Codecov.

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


Update enabling-hyper-v-extensibility-switch-extensions.md

Changes to Enable-VMSwitchExtension based on PM feedback

Hi @EliotSeattle, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

It looks like you're a Microsoft contributor (Eliot Graff). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;


[Bug Report] el-select window wobble

Element UI version
2.4.6
OS/Browsers version
win10 /QQ browser
Vue version
2.5.2
Reproduction Link
https://jsfiddle.net/mmx38qxw/6711/
Steps to reproduce
Window shaking occurs when multiple candidates are selected.
What is Expected?
No window wobble is required.
What is actually happening?
window wobble

Can't reproduce.

Duplicate of #13173


fix(types)!: properly format listing methods with gaxOptions

[x] Ensure the tests and linter pass
[x] Code coverage does not decrease (if any source code was changed)
[x] Appropriate docs were updated (if necessary)

@stephenplusplus, let us know if there's anything else we should change in this PR. Your requested changes status is blocking merging this PR :)

@skuruppu sorry about that!


Using SkeletonNode to identify and attach models to bones

I want to use the SkeletonNode to identify and attach models to bones , as in the Animation sample,I replaced Andy with another animation resource, but the hat didn't move with it .

My guess is that the model does not have a bone in it named "hat_point" like the example andy model does. You can look at the bones in modeling software like Maya or print them all out by using ModelRenderable.getBoneName and ModelRenderable.getBoneCount

The issue was solved quickly according to your suggestion. Thank you very much!

The issue was solved quickly according to your suggestion. Thank you very much!


Iam getting an error while running ./install-script for Kinesis video stream in Raspberry pi

Setting up for KVS Producer SDK installation
Include building GStreamer extra plugins= Y
Checking openssl at /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib/libssl.a
Checking curl at /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib/libcurl.a
Checking log4cplus at /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib/liblog4cplus.dylib/.so
Checking gettext at /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib/libgettextlib.dylib/.so
Checking libffi at /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib/libffi.a
Checking pcre at /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib/libpcre.dylib/.so
Checking zlib at /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib/libz.dylib/.so
Checking iconv at /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib/libiconv.dylib/.so
Checking util-linux at /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib/libmount.dylib/.so
Checking glib at /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/lib/libglib-2.0.dylib/.so
Checking googletest at /home/pi/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads
automake not found. Installing
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0 1474k    0  4863    0     0   6540      0  0:03:50 --:--:--  0:03:50  6545
curl: (23) Failed writing body (1949 != 2716)

Hi @Raghava248,
From the log seems either your network was having issue to the link or your disk run out of space causing incomplete download of automake.
As install script will pull down all dependencies and build from scratch, it will take very long time to build on RaspberryPi (~12 hours). If possible, can you remove downloads directory under kinesis-video-native-build directory and follow the steps in here to use min-install-script, this can be built in ~30 minutes.
Thanks,
ZH

Yeah I solved that thank you
The new error Iam getting is
gst-launch-1.0 -v v4l2src device=/dev/video0 ! videoconvert ! video/x-raw,format=I420,width=640,height=480,framerate=30/1 ! x264enc  bframes=0 key-int-max=45 bitrate=512 tune=zerolatency ! video/x-h264,stream-format=avc,alignment=au ! kvssink stream-name= storage-size=512 access-key="" secret-key="" aws-region=""
Setting pipeline to PAUSED ...
log4cplus:ERROR could not open file ./kvs_log_configuration
INFO - Initializing curl.
2019-05-18 17:32:52 [1995522048] INFO -
createKinesisVideoClient(): Creating Kinesis Video Client
2019-05-18 17:32:52 [1995522048] INFO -
heapInitialize(): Initializing native heap with limit size 536870912, spill ratio 0% and flags 0x00000001
2019-05-18 17:32:52 [1995522048] INFO -
heapInitialize(): Creating AIV heap.
2019-05-18 17:32:52 [1995522048] INFO -
heapInitialize(): Heap is initialized OK
2019-05-18 17:32:52 [1995522048] DEBUG - Refreshing credentials. Force refreshing: 0 Now time is:<PHONE_NUMBER>639066798 Expiration: 0
2019-05-18 17:32:52 [1995522048] INFO - New credentials expiration is<PHONE_NUMBER>
2019-05-18 17:32:52 [1995522048] DEBUG - createDeviceHandler invoked
2019-05-18 17:32:52 [1995522048] INFO -
createDeviceResultEvent(): Create device result event.
2019-05-18 17:32:52 [1995522048] DEBUG - clientReadyHandler invoked
2019-05-18 17:32:52 [1995522048] DEBUG - Awaiting for the producer to become ready...
2019-05-18 17:32:52 [1995522048] DEBUG - Kinesis Video producer is Ready.
2019-05-18 17:32:52 [1995522048] INFO - try creating stream
2019-05-18 17:32:52 [1995522048] INFO - Creating Kinesis Video Stream Aerologiks2
2019-05-18 17:32:52 [1995522048] INFO -
createKinesisVideoStream(): Creating Kinesis Video Stream.
2019-05-18 17:32:52 [1995522048] DEBUG - describeStreamHandler invoked
2019-05-18 17:32:52 [1995522048] DEBUG - Awaiting for the stream to become ready...
2019-05-18 17:32:52 [1995522048] DEBUG - Refreshing credentials. Force refreshing: 0 Now time is:<PHONE_NUMBER>640586071 Expiration: 0
2019-05-18 17:32:52 [1437906032] WARN - HTTP Error 403: Response: {"Message":"User: arn:aws:iam::393234083493:user/kinesis-video-raspberry-pi-producer is not authorized to perform: kinesisvideo:DescribeStream on resource: Aerologiks2"}
Request URL: https://kinesisvideo.us-east-1.amazonaws.com/describeStream
Request Headers:
Authorization: AWS4-HMAC-SHA256 Credential=AKIAVXDUT52SRK3Z6MRW/20190518/us-east-1/kinesisvideo/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date, Signature=15292b36146a8367a0befda205a0a467410942bb92536df37dfcca58bf571264
content-type: application/json
host: kinesisvideo.us-east-1.amazonaws.com
user-agent: AWS-SDK-KVS-CLIENT/1.7.9 GCC/6.3.0 Linux/4.9.26-v7+ armv7l
X-Amz-Date: 20190518T163252Z
2019-05-18 17:32:54 [1437906032] DEBUG - describeStream response: {"Message":"User: arn:aws:iam::393234083493:user/kinesis-video-raspberry-pi-producer is not authorized to perform: kinesisvideo:DescribeStream on resource: Aerologiks2"}
2019-05-18 17:32:54 [1437906032] INFO - Describe stream did not find the stream Aerologiks2 in Kinesis Video (stream will be created)
2019-05-18 17:32:54 [1437906032] INFO -
describeStreamResultEvent(): Describe stream result event.
2019-05-18 17:32:54 [1437906032] ERROR - Submitting event result for stream: 2191209 failed with:<PHONE_NUMBER>
2019-05-18 17:32:54 [1437906032] ERROR - Reporting stream error. Errored timecode: 0 Status: 0x52000010
2019-05-18 17:32:54 [1437906032] INFO - Freeing Kinesis Video Stream Aerologiks2
2019-05-18 17:33:22 [1995522048] INFO -
freeKinesisVideoStream(): Freeing Kinesis Video stream.
2019-05-18 17:33:22 [1995522048] ERROR - Failed to create Kinesis Video Stream - timed out.
2019-05-18 17:33:22 [1995522048] DEBUG - streamClosedHandler invoked for upload handle:<PHONE_NUMBER>3709551615
2019-05-18 17:33:22 [1437906032] INFO - Freeing Kinesis Video Stream Aerologiks2
2019-05-18 17:33:22 [1437906032] INFO - try creating stream
2019-05-18 17:33:23 [1995522048] INFO - Creating Kinesis Video Stream Aerologiks2
2019-05-18 17:33:23 [1995522048] INFO -
createKinesisVideoStream(): Creating Kinesis Video Stream.
2019-05-18 17:33:23 [1995522048] DEBUG - describeStreamHandler invoked
2019-05-18 17:33:23 [1995522048] DEBUG - Awaiting for the stream to become ready...
2019-05-18 17:33:23 [1995522048] DEBUG - Refreshing credentials. Force refreshing: 0 Now time is:<PHONE_NUMBER>042688473 Expiration: 0
2019-05-18 17:33:23 [1437906032] WARN - HTTP Error 403: Response: {"Message":"User: arn:aws:iam::393234083493:user/kinesis-video-raspberry-pi-producer is not authorized to perform: kinesisvideo:DescribeStream on resource: Aerologiks2"}
Request URL: https://kinesisvideo.us-east-1.amazonaws.com/describeStream
Request Headers:
Authorization: AWS4-HMAC-SHA256 Credential=AKIAVXDUT52SRK3Z6MRW/20190518/us-east-1/kinesisvideo/aws4_request, SignedHeaders=content-type;host;user-agent;x-amz-date, Signature=073d17db83dc8b4aa66e3890c61bd8bd24297f988a8b034a569e6ed9e1bf9ace
content-type: application/json
host: kinesisvideo.us-east-1.amazonaws.com
user-agent: AWS-SDK-KVS-CLIENT/1.7.9 GCC/6.3.0 Linux/4.9.26-v7+ armv7l
X-Amz-Date: 20190518T163323Z
2019-05-18 17:33:24 [1437906032] DEBUG - describeStream response: {"Message":"User: arn:aws:iam::393234083493:user/kinesis-video-raspberry-pi-producer is not authorized to perform: kinesisvideo:DescribeStream on resource: Aerologiks2"}
2019-05-18 17:33:24 [1437906032] INFO - Describe stream did not find the stream Aerologiks2 in Kinesis Video (stream will be created)
2019-05-18 17:33:24 [1437906032] INFO -
describeStreamResultEvent(): Describe stream result event.
2019-05-18 17:33:24 [1437906032] ERROR - Submitting event result for stream: 2191209 failed with:<PHONE_NUMBER>
2019-05-18 17:33:24 [1437906032] ERROR - Reporting stream error. Errored timecode: 0 Status: 0x52000010
^C
pi@raspberrypi:~/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build/downloads/local/bin $ pip install log4cplus
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in
from pip import main
File "/usr/lib/python2.7/dist-packages/pip/init.py", line 21, in
from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning
File "/usr/lib/python2.7/dist-packages/pip/_vendor/init.py", line 64, in
vendored("cachecontrol")
File "/usr/lib/python2.7/dist-packages/pip/_vendor/init.py", line 36, in vendored
import(modulename, globals(), locals(), level=0)
File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/init.py", line 9, in
File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/wrapper.py", line 1, in
File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 4, in
File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/init.py", line 52, in
File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/packages/init.py", line 59, in
File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/packages/init.py", line 32, in vendored
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/contrib/pyopenssl.py", line 48, in
File "/usr/lib/python2.7/dist-packages/cryptography/x509/init.py", line 7, in
from cryptography.x509.base import (
File "/usr/lib/python2.7/dist-packages/cryptography/x509/base.py", line 16, in
from cryptography.x509.extensions import Extension, ExtensionType
File "/usr/lib/python2.7/dist-packages/cryptography/x509/extensions.py", line 30, in
class _SubjectPublicKeyInfo(univ.Sequence):
AttributeError: 'module' object has no attribute 'Sequence'
@zhiyua-git
Thank u

Hi
You need to set IAM policy to avoid “"Message":"User: arn:aws:iam::393234083493:user/kinesis-video-raspberry-pi-producer is not authorized to perform: kinesisvideo:DescribeStream on resource: Aerologiks2"}”
To find the ./kvs_log_configuration, you need to run the command under kinesis-video-native-build directory or copy it to your current directory from kinesis-video-native-build.
Thanks,
ZH

Resolving as answered. Please create another issue if you have other questions.

Thank you @zhiyua-git  I solved it


Fixed invalid link of redis dashboard

Description
Redis Dashboardのリンク先の更新ミスです

Fixes # (issue)
Type of change

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

How Has This Been Tested?

[ ] I have checked backward/forward compatibility that may cause regarding this change.

#2998 の反映漏れなのでセルフマージします


Oops! Koel installation or upgrade didn't finish successfully.

Describe the bug
When I execute a command php artisan koel:init I get this error:
To reproduce
Steps to reproduce the behavior:
1.php artisan koel:init
2. Attempting to install or upgrade Koel.
Remember, you can always install/upgrade manually following the guide here:
📙  https://koel.phanan.net/docs
Generating app key
JWT secret exists -- skipping
Migrating database
Oops! Koel installation or upgrade didn't finish successfully.
Please try again, or visit https://koel.phanan.net/docs for manual installation.
😥 Sorry for this. You deserve better.
Expected behavior
I was expecting a successful installation
Screenshots
The console message does not make sense to take a screenshot
Environment

Koel version [v4.2.2]
OS: [ Ubuntu 18.04.3 LTS]
Browser [Chrome 78.0.3904.108]
PHP version [php-fpm v7.3.11]
Node version [v12.10.0]

Additional context
Please help solve the problem.
Thanks.

I had the same problem. Took forever for me to figure this out, since the documentation doesn't do a good job of explaining dependencies.
I got it working by doing the following:
sudo apt-get install libpng-dev
composer install
npm install
npm install --global yarn
php artisan koel:init
Also, make sure you point your server to the root, not to the public directory.
I feel like this app should have release branches with the front end already built. This is very difficult to install unless you're familiar with all of these front-end tools and how they work.

It turned out, though not the first time, thanks.  The server is running.
If you can still ask ... The service works only for the administrator or for the user that the administrator has registered. How can you make a site so that music is available to any site visitors? To do this, you need to create another site and so that it interacts with the server via api? Or is there some kind of ready-made solution? I would like to see examples of sites working on this engine or interacting with it through api. If not difficult, please provide links.

I'm not sure about that. I'm not familiar enough with this app yet. Doesn't seem like that is something this was built for, but could probably be done with the API.

In any case, thanks for the help in solving the problem. Thank you very much.

Same Problem, no solution works...


Brightness

Type: Performance Issue
As I am typing code or if I am moving between apps and get back to visual studio, the brightness keeps on changing although the level of brightness on the computer itself does not change.
VS Code version: Code 1.82.2 (abd2f3db4bdb28f9e95536dfa84d8479f1eb312d, 2023-09-14T05:55:25.390Z)
OS version: Windows_NT x64 10.0.22621

/gifPlease

Thanks for reporting this issue! Unfortunately, it's hard for us to understand what issue you're seeing. Please help us out by providing a screen recording showing exactly what isn't working as expected. While we can work with most standard formats, .gif files are preferred as they are displayed inline on GitHub. You may find https://gifcap.dev helpful as a browser-based gif recording tool.
If the issue depends on keyboard input, you can help us by enabling screencast mode for the recording (Developer: Toggle Screencast Mode in the command palette). Lastly, please attach this file via the GitHub web interface as emailed responses will strip files out from the issue.
Happy coding!

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


[Bug report] The new project  failed to compile

Version
photo_manager: ^3.2.2
Platforms
iOS
Device Model
iPhone15(ios17.5)
flutter info
[✓] Flutter (Channel stable, 3.22.3, on macOS 14.5 23F79 darwin-arm64 (Rosetta), locale zh-Hans-CN)
    • Flutter version 3.22.3 on channel stable at /Users/mobvista/software/flutter/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision b0850beeb2 (3 周前), 2024-07-16 21:43:41 -0700
    • Engine revision 235db911ba
    • Dart version 3.4.4
    • DevTools version 2.34.3
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).

[✓] IntelliJ IDEA Community Edition (version 2022.1.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.92.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.94.0

[✓] Connected device (4 available)
    • iPhone 15 (mobile)              • 1EEFE1C5-D1C0-4BAE-944D-C38F5134CBF5 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-5 (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64   • macOS 14.5 23F79 darwin-arm64 (Rosetta)
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 14.5 23F79 darwin-arm64 (Rosetta)
    • Chrome (web)                    • chrome                               • web-javascript • Google Chrome 127.0.6533.89
    ! Error: Browsing on the local area network for CrazyWolf. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

How to reproduce?
The new project  import"photo_manager" failed to compile
cupertino_icons: ^1.0.6
get: 4.6.6
photo_manager: ^3.2.2
flutter:
sdk: flutter
Logs
――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

               ### Command

               /usr/local/bin/pod install --verbose
               ```

               ### Report

               * What did you do?

               * What did you expect to happen?

               * What happened instead?

               ### Stack

               ```
                  CocoaPods : 1.15.2
                       Ruby : ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.x86_64-darwin23]
                   RubyGems : <IP_ADDRESS>
                       Host : macOS 14.5 (23F79)
                      Xcode : 15.4 (15F31d)
                        Git : git version 2.45.1
               Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
               Repositories : trunk - CDN - https://cdn.cocoapods.org/
               ```

               ### Plugins

               ```
               cocoapods-deintegrate : 1.0.5
               cocoapods-plugins     : 1.0.0
               cocoapods-search      : 1.0.1
               cocoapods-trunk       : 1.6.0
               cocoapods-try         : 1.2.0
               ```

               ### Podfile

               # Uncomment this line to define a global platform for your project
               # platform :ios, '12.0'

               # CocoaPods analytics sends network stats synchronously affecting flutter build latency.
               ENV['COCOAPODS_DISABLE_STATS'] = 'true'

               project 'Runner', {
                 'Debug' => :debug,
                 'Profile' => :release,
                 'Release' => :release,
               }

               def flutter_root
                 generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
                 unless File.exist?(generated_xcode_build_settings_path)
                   raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
                 end

                 File.foreach(generated_xcode_build_settings_path) do |line|
                   matches = line.match(/FLUTTER_ROOT\=(.*)/)
                   return matches[1].strip if matches
                 end
                 raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
               end

               require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

               flutter_ios_podfile_setup

               target 'Runner' do
                 use_frameworks!
                 use_modular_headers!

                 flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
                 target 'RunnerTests' do
                   inherit! :search_paths
                 end
               end

               post_install do |installer|
                 installer.pods_project.targets.each do |target|
                   flutter_additional_ios_build_settings(target)
                 end
               end
               ```

               ### Error

               ```
               REXML::ParseException - #<TypeError: wrong argument type String (expected Regexp)>
               /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/source.rb:220:in `scan'
               /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/source.rb:220:in `match'
               /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/baseparser.rb:227:in `pull_event'
               /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/baseparser.rb:207:in `pull'
               /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/treeparser.rb:23:in `parse'
               /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/document.rb:448:in `build'
               /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/document.rb:101:in `initialize'
               /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `new'
               /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `from_s'
               /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:66:in `new_from_xcworkspace'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/user_project_integrator.rb:102:in `create_workspace'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/user_project_integrator.rb:71:in `integrate!'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:929:in `block in integrate_user_project'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in `section'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:925:in `integrate_user_project'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:185:in `integrate'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:170:in `install!'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:52:in `run'
               /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
               /usr/local/bin/pod:23:in `load'
               /usr/local/bin/pod:23:in `<main>'
               ...
               wrong argument type String (expected Regexp)
               Line: 1
               Position: 38
               Last 80 unconsumed characters:
               <?xml version="1.0" encoding="UTF-8"?>
               /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/treeparser.rb:96:in `rescue in parse'
               /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/parsers/treeparser.rb:21:in `parse'
               /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/document.rb:448:in `build'
               /Library/Ruby/Gems/2.6.0/gems/rexml-3.2.9/lib/rexml/document.rb:101:in `initialize'
               /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `new'
               /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:83:in `from_s'
               /Library/Ruby/Gems/2.6.0/gems/xcodeproj-1.24.0/lib/xcodeproj/workspace.rb:66:in `new_from_xcworkspace'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/user_project_integrator.rb:102:in `create_workspace'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer/user_project_integrator.rb:71:in `integrate!'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:929:in `block in integrate_user_project'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/user_interface.rb:64:in `section'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:925:in `integrate_user_project'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:185:in `integrate'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/installer.rb:170:in `install!'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:52:in `run'
               /Library/Ruby/Gems/2.6.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run'
               /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>'
               /usr/local/bin/pod:23:in `load'
               /usr/local/bin/pod:23:in `<main>'
               ```

               ――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

               [!] Oh no, an error occurred.

               Search for existing GitHub issues similar to yours:

https://github.com/CocoaPods/CocoaPods/search?q=%23%3CTypeError%3A+wrong+argument+type+String+%28expected+Regexp%29%3E%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Frexml-3.2.9%2Flib%2Frexml%2Fsource.rb

%3A220%3Ain+%60scan%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Frexml-3.2.9%2Flib%2Frexml%2Fsource.rb%3A220%3Ain+%60match%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Frexml-3.2.9%2Flib%2Frexml%2F

parsers%2Fbaseparser.rb%3A227%3Ain+%60pull_event%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Frexml-3.2.9%2Flib%2Frexml%2Fparsers%2Fbaseparser.rb%3A207%3Ain+%60pull%27%0A%2FLibrary%2FRuby%2FGems%2F2

.6.0%2Fgems%2Frexml-3.2.9%2Flib%2Frexml%2Fparsers%2Ftreeparser.rb%3A23%3Ain+%60parse%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Frexml-3.2.9%2Flib%2Frexml%2Fdocument.rb%3A448%3Ain+%60build%27%0A%2F

Library%2FRuby%2FGems%2F2.6.0%2Fgems%2Frexml-3.2.9%2Flib%2Frexml%2Fdocument.rb%3A101%3Ain+%60initialize%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fxcodeproj-1.24.0%2Flib%2Fxcodeproj%2Fworkspace.rb

%3A83%3Ain+%60new%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fxcodeproj-1.24.0%2Flib%2Fxcodeproj%2Fworkspace.rb%3A83%3Ain+%60from_s%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fxcodeproj-1.24.0%2

Flib%2Fxcodeproj%2Fworkspace.rb%3A66%3Ain+%60new_from_xcworkspace%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fcocoapods-1.15.2%2Flib%2Fcocoapods%2Finstaller%2Fuser_project_integrator.rb%3A102%3Ain+

%60create_workspace%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fcocoapods-1.15.2%2Flib%2Fcocoapods%2Finstaller%2Fuser_project_integrator.rb%3A71%3Ain+%60integrate%21%27%0A%2FLibrary%2FRuby%2FGems%2

F2.6.0%2Fgems%2Fcocoapods-1.15.2%2Flib%2Fcocoapods%2Finstaller.rb%3A929%3Ain+%60block+in+integrate_user_project%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fcocoapods-1.15.2%2Flib%2Fcocoapods%2Fuser

_interface.rb%3A64%3Ain+%60section%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fcocoapods-1.15.2%2Flib%2Fcocoapods%2Finstaller.rb%3A925%3Ain+%60integrate_user_project%27%0A%2FLibrary%2FRuby%2FGems%2

F2.6.0%2Fgems%2Fcocoapods-1.15.2%2Flib%2Fcocoapods%2Finstaller.rb%3A185%3Ain+%60integrate%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fcocoapods-1.15.2%2Flib%2Fcocoapods%2Finstaller.rb%3A170%3Ain+%6

0install%21%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fcocoapods-1.15.2%2Flib%2Fcocoapods%2Fcommand%2Finstall.rb%3A52%3Ain+%60run%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fclaide-1.1.0%2Flib%

2Fclaide%2Fcommand.rb%3A334%3Ain+%60run%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fcocoapods-1.15.2%2Flib%2Fcocoapods%2Fcommand.rb%3A52%3Ain+%60run%27%0A%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fc

ocoapods-1.15.2%2Fbin%2Fpod%3A55%3Ain+%60%3Ctop+%28required%29%3E%27%0A%2Fusr%2Flocal%2Fbin%2Fpod%3A23%3Ain+%60load%27%0A%2Fusr%2Flocal%2Fbin%2Fpod%3A23%3Ain+%60%3Cmain%3E%27%0A...%0Awrong+argument+ty
               pe+String+%28expected+Regexp%29%0ALine%3A+1%0APosition%3A+38%0ALast+80+unconsumed+characters%3A%0A%3C%3Fxml+version%3D%221.0%22+encoding%3D%22UTF-8%22%3F%3E&type=Issues

               If none exists, create a ticket, with the template displayed above, on:
               https://github.com/CocoaPods/CocoaPods/issues/new

               Be sure to first read the contributing guide for details on how to properly submit a ticket:
               https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

               Don't forget to anonymize any private data!

               Looking for related issues on cocoapods/cocoapods...

[   +7 ms] Error output from CocoaPods:
           ↳
[        ]     /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin23/rbconfig.rb:21: warning: Insecure world writable dir
/Users/mobvista/workspace/jianwen/photo_cloud in PATH,
               mode 040777
               Searching for inspections failed: undefined method `map' for nil:NilClass

               [!] Automatically assigning platform `iOS` with version `12.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See
               `https://guides.cocoapods.org/syntax/podfile.html#platform`.

[   +2 ms] Error running pod install
[   +1 ms] Error launching application on iPhone 15.
[   +2 ms] "flutter run" took 11,108ms.
[  +25 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:840:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1394:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:372:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:308:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:130:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:93:3)
           <asynchronous suspension>

[  +71 ms] ensureAnalyticsSent: 70ms
[        ] Running 1 shutdown hook
[   +3 ms] Shutdown hooks complete
[  +63 ms] exiting with code 1

Example code (optional)
cupertino_icons: ^1.0.6
  get: 4.6.6
  photo_manager: ^3.2.2
  flutter:
    sdk: flutter

Contact
<EMAIL_ADDRESS>

The Ruby version is too old; install the latest version of Ruby using RVM.


I hope that Visual Studio IntelliCode can provide similar code hints for Java in idea

Product and Version [VS/VSCode]:
OS Version [macOS/Windows]:
IntelliCode Extension Version:
Target Platform or Language [e.g. Node.js]:
Steps to Reproduce / Scenario:
I hope that Visual Studio IntelliCode can provide similar code prompting functions for Java in the idea, especially xx.for, xx.if, xx.null, xx.var and other functions, that is, the design for the trigger content of the variable suffix "." , This is very in line with user habits and very user-friendly. Please refer to, improve the performance of intelliCode, make it smarter and smarter, he also needs to learn from idea in the Java field

Thanks for your feedback @ldzqdrm ! We're hard at work improving this experience and it's great to get precise feedback like yours on where IntelliCode misses the mark.


Predicted hit filter option

Would it be possible to add an option filters the predicted hit based on what style you are using? I would like to hide the predicted hit ffor melee since its almost always pretty instant anyway, however it would be nice to have it so the predicted hit shows up for magic and ranged since they have a potentially long delay.

I'll see if i can do this sometime.

https://github.com/runelite/plugin-hub/pull/2487


Fix issues with lsp_diagnostic and file_size error on non-files

Hi,
This is a great statusline.
When I am using it I have encountered two issues with the statusline.

Currently I am using nvim_lsp. The vim.lsp.diagnostic.get_count takes buffer as the first parameter.
I got an error opening non-file buffer like "[lua-dev]". So it's better to check if it is file at all.

suggest to use galaxyline


"TypeError: 'NoneType' object is not iterable" when running docker build

If there's a docker build container running, I am getting the above error for commands like userdocker run and userdocker ps --gpu-free, in the line
for dev in devs:

in userdocker/helpers/nvidia.py, presumably caused by the output of docker inspect being different than expected for containers created during docker build. My quick & dirty solution was to skip containers where no devs were found.

this should be fixed with dd061bd8b6908c9961e522059dd511069a166b39 ... inspect proved to be more unreliable than intended, so we're now depending on own env-vars. In case more memory of a GPU is used by docker build, the GPU should be excluded by NV_GPU_UNAVAILABLE_ABOVE_MEMORY_USED
reopen if still a problem


submit task to OpenPAI cluster failed

Describe the issue:
I have deployed a PAI platform, and everything is ok if I submit the task through PAI-Web. But when I used NNI to create a task, it always fails. My config content is as follow:
searchSpaceFile: search_space.json
trialCommand: python3 mnist.py
trialGpuNumber: 0
trialConcurrency: 4
maxTrialNumber: 10
nniManagerIp: <IP_ADDRESS>
tuner:
  name: TPE
  classArgs:
    optimize_mode: maximize
trainingService:
  platform: openpai
  host: https://<IP_ADDRESS>
  username: admin
  token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImFkbWluIiwiYXBwbGljYXRpb24iOmZhbHNlLCJqb2JTcGVjaWZpYyI6ZmFsc2UsImVuY29kZWRGcmFtZXdvcmtOYW1lIjoiIiwiaWF0IjoxNjI4MDcxNjQxLCJleHAiOjE2Mjg2NzY0NDF9.8UkAX_Rf08V3bPeijoJKf5fguVt6RCeB6Un_qoDwAlE
  dockerImage: msranni/nni
  trialCpuNumber: 4
  trialMemorySize: 8GB
  storageConfigName: nfs-data
  localStorageMountPoint: /schinper-nni
  containerStorageMountPoint: /mnt/nfs-storage

Environment:

NNI version: 2.3
Training service (local|remote|pai|aml|etc): pai
Client OS: Ubuntu20.04
Server OS (for remote mode only): Ubuntu20.04
Python version: Python 3.7.6
PyTorch/TensorFlow version:
Is conda/virtualenv/venv used?: virtualenv
Is running in Docker?:

Log message:

nnimanager.log:

[2021-08-04 21:03:59] ERROR (NNIManager) TypeError: this.internalJoin is not a function
    at StorageService.joinPath (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/training_service/reusable/storageService.js:127:29)
    at TrialDispatcher.run (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/training_service/reusable/trialDispatcher.js:187:43)
[2021-08-04 21:03:59] ERROR (NNIExperimentsManager) Error: File has been locked.
    at Object.withLockSync (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/common/utils.js:364:19)
    at NNIExperimentsManager.withLockSync (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/core/nniExperimentsManager.js:91:24)
    at NNIExperimentsManager.setExperimentInfo (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/core/nniExperimentsManager.js:55:18)
    at NNIManager.setEndtime (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/core/nnimanager.js:705:32)
    at NNIManager.logError (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/core/nnimanager.js:693:14)
    at NNIManager.criticalError (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/core/nnimanager.js:685:14)
    at run.catch (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/core/nnimanager.js:138:18)
[2021-08-04 21:03:59] INFO (NNIManager) Change NNIManager status from: RUNNING to: ERROR
[2021-08-04 21:03:59] ERROR (NNIExperimentsManager) Error: File has been locked.
    at Object.withLockSync (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/common/utils.js:364:19)
    at NNIExperimentsManager.withLockSync (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/core/nniExperimentsManager.js:91:24)
    at NNIExperimentsManager.setExperimentInfo (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/core/nniExperimentsManager.js:55:18)
    at NNIManager.setStatus (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/core/nnimanager.js:700:36)
    at NNIManager.logError (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/core/nnimanager.js:694:14)
    at NNIManager.criticalError (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/core/nnimanager.js:685:14)
    at run.catch (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/core/nnimanager.js:138:18)

dispatcher.log:

[2021-08-04 21:03:59] INFO (hyperopt.tpe/Thread-1) tpe_transform took 0.003151 seconds
[2021-08-04 21:03:59] INFO (hyperopt.tpe/Thread-1) TPE using 0 trials
[2021-08-04 21:03:59] INFO (hyperopt.tpe/Thread-1) tpe_transform took 0.002367 seconds
[2021-08-04 21:03:59] INFO (hyperopt.tpe/Thread-1) TPE using 0 trials
[2021-08-04 21:03:59] INFO (hyperopt.tpe/Thread-1) tpe_transform took 0.002332 seconds
[2021-08-04 21:03:59] INFO (hyperopt.tpe/Thread-1) TPE using 0 trials
[2021-08-04 21:03:59] INFO (hyperopt.tpe/Thread-1) tpe_transform took 0.002332 seconds
[2021-08-04 21:03:59] INFO (hyperopt.tpe/Thread-1) TPE using 0 trials

nnictl stdout and stderr:

-----------------------------------------------------------------------
                Experiment start time 2021-08-04 21:03:58
-----------------------------------------------------------------------
{ TypeError: this.internalJoin is not a function
    at StorageService.joinPath (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/training_service/reusable/storageService.js:127:29)
    at TrialDispatcher.run (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/training_service/reusable/trialDispatcher.js:187:43)
  name: '',
  cause:
   TypeError: this.internalJoin is not a function
       at StorageService.joinPath (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/training_service/reusable/storageService.js:127:29)
       at TrialDispatcher.run (/opt/virtualenvs/nni/lib/python3.7/site-packages/nni_node/training_service/reusable/trialDispatcher.js:187:43) }

How to reproduce it?:
Running command as the following,
nnictl create -c demo.yaml --port 1500

I have checked the latest ts code in NNI project, nnimanager.ts. In the initTrainingService() function, I didn't see NNI import paiTrainingService.  Why?
public async setClusterMetadata(key: string, value: string): Promise<void> {
        // Hack for supporting v2 config, need refactor
        if (this.trainingService === undefined) {
            this.log.info('Setup training service...');
            switch (key) {
                case 'kubeflow_config': {
                    const kubeflowModule = await import('../training_service/kubernetes/kubeflow/kubeflowTrainingService');
                    this.trainingService = new kubeflowModule.KubeflowTrainingService();
                    break;
                }
                case 'frameworkcontroller_config': {
                    const fcModule = await import('../training_service/kubernetes/frameworkcontroller/frameworkcontrollerTrainingService');
                    this.trainingService = new fcModule.FrameworkControllerTrainingService();
                    break;
                }
                case 'adl_config': {
                    const adlModule = await import('../training_service/kubernetes/adl/adlTrainingService');
                    this.trainingService = new adlModule.AdlTrainingService();
                    break;
                }
                default:
                    throw new Error("Setup training service failed.");
            }
        }
        await this.trainingService.setClusterMetadata(key, value);
    }

PAI has enabled reuse mode, this is a bug in latest code. I've created a pr to fix this bug https://github.com/microsoft/nni/pull/4027.
You can follow the pr to change your local code, or wait for the pr to merge into master branch and sync with master branch code, and install NNI from source code to mitigate this issue. This bug fix will merge into next NNI release in recent days.

PAI has enabled reuse mode, this is a bug in latest code. I've created a pr to fix this bug #4027.
You can follow the pr to change your local code, or wait for the pr to merge into master branch and sync with master branch code, and install NNI from source code to mitigate this issue. This bug fix will merge into next NNI release in recent days.

Thanks for your reply. I look forward to the new release.

Hi,  @guoxiaojie-schinper ,
I have also used the latest coe,  met the same error, after followed you step and  changed the local code,  reintall NNI, but the error still exist.  I think that the bug have not been fix completely .

fixed in #4027.


[Bug] Web build race conditions

Description
There appears to be a possible issue with race conditions for the web build. While logged in, if two requests are sent at similar times, strange errors can occur.

Solved as of the time of writing.


Replace usage of evaluate with string parsing

For transforming some input properties to proper map objects, the evaluate method was used, which is a security concern. This is replaced with some simple string parsing.

 I had to rebase to get the commit sign-offs in. Ready now.


Minor fixes for CIDR

Log errors attempting to insert CIDRs into the BPF maps
Avoid erroring out due to invalid prefix length when we expect to support the specified prefix length

I'd like to propose at least the log commit for backport.

test-me-please

Hit #3462, retrying.

test-me-please

Backported https://github.com/cilium/cilium/pull/3638


clipSelector support for Nightwatch

Issue : IRIS-1143

Description
clipSelector support for Nightwatch
Types of Changes

New feature (non-breaking change which adds functionality)

Additionnally, can we add it to the integration tests please ?


libpq vs2022 vcpkg install err

Host Environment

OS: [e.g. Windows/Linux etc...]
Compiler: revision

To Reproduce
Steps to reproduce the behavior:
./vcpkg install libpq
Failure logs

Cut and paste the appropriate build messages from the console output.
Attach every failure log file mentioned in the console output.

Additional context
Add any other context about the problem here, such as what you have already tried to resolve the issue.
issue_body.md

i install english pack but 。。。

@DaXiaWei  Duplicate of https://github.com/microsoft/vcpkg/issues/26416

update VS problem solved think you @FrankXie05 and @JonLiu1993


sbt-assembly case insensitive?

I'm trying to use sbt-assembly with an unmanaged jar which has classes which are case sensitive. i.e. it may have both ABC.class and Abc.class.
the assembly leaves only one of the classes, is there some configuration to make sure both will be packaged?
I'm using sbt-assembly 0.14.0

Both Windows and Mac by default uses case insensitive filesystem I think. sbt-assembly unzips all the files from jars, so that could cause your issue?

Any solution already to that?
I am having the same problem.


PEP8 Fixes

@dexter1691 I have fixed all the PEP8 issues. Please review the PR. Still some of the errors need to be fixed. Can you look into these:

./app/executable/vqa_files/tools.py:7:24: F821 undefined name 'svm'
./app/executable/vqa_files/tools.py:19:20: F821 undefined name 'svm'
./app/executable/vqa_files/tools.py:36:14: F821 undefined name 'KMeans'
./app/executable/vqa_files/tools.py:38:11: F821 undefined name 'euclidean_distances'
./app/executable/poi_files/svmutil.py:211:13: F811 redefinition of unused 'info' from line 200
./celeryTasks/apiTasks/tasks.py:293:17: F821 undefined name 'mlab_obj'
./celeryTasks/webTasks/trainTask.py:181:28: F821 undefined name 'caffe_classify_image'
./celeryTasks/webTasks/poi_files/svmutil.py:207:13: F811 redefinition of unused 'info' from line 196
./app/executable/vqa_files/driver.py:222:13: F821 undefined name 'Word2Vec'

As soon we get these errors fixed, we can start writing unit tests.

Will fix the above mentioned issues in a separate PR.

@dexter1691 ok :+1:


[Bug Report]

Bug Report
Technical Information

Server Software: Spigot
Plugin Version:  2.5.3
Dump File:  https://pastebin.com/Lj7CpUr8

Use /mpet dump to get the dump file.

General Information
Bug Description
i was messing around with npc integration and i tried to solve the NPC laying eggs problem. after i created the mpet npc it started laying eggs (i assume because the anchor was a chicken). I tried to do /npc type and change his type but when i do it the Nametag of the mob is stuck to the name of the mob type. Ex. i tried to make my pet a "cat" type to avoid the eggs and now his name is cat (and i can't change it i need to delete and recreate the npc)
Instructions To Produce
Again, don't save any words, use the format below to describe every step of producing the bug, if you are unsure, try to say what you think caused it.

/mpet npc to create npc
/npc select and /npc type to prevent him laying eggs
now he is renamed as the mob type i selected,
i can't rename it with /npc rename

Logs
If you have any logs, this is the time to include them, you can use tools like Pastebin or Hastebin to post the links to them here. Alternatively, you can use Markdown.
Visual Demonstration
If you have any images or videos of the bug, you can post them here. Try to use services like YouTube or Imgur and not upload it to your own servers.

Could you give us some screenshots?


parameter help not shown when command was completed

When removing the parenthesis and adding them again it works as expected.

Maybe @jakobhellermann has an idea here?

See https://github.com/microsoft/language-server-protocol/issues/274
I tried to add the editor.action.triggerParameterHints command for all CompletionItems but it doesn't work for me, and would also be only a solution for clients that implement this command.

https://github.com/beeb/typst-lsp/blob/completion-to-param-hint/src/main.rs#L438-L442

I just noticed that this does not work in other language servers either (for example clangd). What clangd does instead is just auto complete the required parameters. They can then be changed and switched between by pressing tab.


login crashing the server

okay so I was logged in and was going to go to rivermage's house to leave him a present.  I don't remember if I hit the page in the book or not when I crashed, but then we waited for the server to come back up and it did, and as soon as I log on to it, it would crash again.  tested by having others log on and they are fine, but if I log in it will crash again.....it crashes right as it says I have logged in so not sure if I am at home or if I did end up at rivermage's base.
here is the log:
http://paste.atlauncher.com/view/d7245ab4

Update: Lucifletch went to my base and he is not crashing, so it is most likely not anything at my base.  So it might be me or something at rivermage's base, sorry I wish I paid more attention before this happened. so I knew where I was when it happened.

I too seem to crash the server when logging in. I will admit I was flying around in the overworld when it had crashed. Might or might not be same area. Just move me to spawn or home and I should be fine.

Seems as if it is Rivermage's property. I won't reset any player data at the moment but will try to fix the chunk first. Please remain off the server until this is posting is updated.

Rolled a backup of the chunk to June 2nd. Seems to cause no issues now.

Rivermage was getting kicked as well but did not know with to do about it, so the rollback did fix it for all of us.  thanks so much for the help.


Mocking

Mocking
Resolves: #630
What's Changed:
Adds a new mock() function to the UnitTest module that will allow us to mock certain Values. In the current implementation it will allow us to mock a given class and also return given values on certain method calls.
If no return values are specified via the second argument dictionary then it will implicitly create an empty method that returns nil.
Example script:
from UnitTest import mock;

class Base {
    base() {
        print("hello!");
    }
}

class Test < Base {
    test() {
        print('hello');
    }

    someFunc() {
        return 100;
    }
}

const mockObj = mock(Test, {
    "test": [1, 2, 3]
});

print(mockObj.base()); // nil
print(mockObj.test()); // [1, 2, 3]
print(mockObj.someFunc()); // nil

Type of Change:

[ ] Bug fix
[x] New feature
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Housekeeping:

[ ] Tests have been updated to reflect the changes done within this PR (if applicable).
[ ] Documentation has been updated to reflect the changes done within this PR (if applicable).

Screenshots (If Applicable):

@briandowns before going much further with this one I was thinking what you think of this ^?

@briandowns Do the stack tests fail for you locally? I'm not seeing this happen and I'm currently unsure why

@briandowns Do the stack tests fail for you locally? I'm not seeing this happen and I'm currently unsure why

Ah okay I got it, there is a problem with both the stack and queue modules. We are storing references to values within the abstract data type that will never get marked by the GC

Didn't see anything weird locally. My bad on missing the GC.

It's all good, it's quite a nasty issue actually! None of the abstracts have a way of graying any values so was a needed change. I also didn't see anything locally, but I noticed the tests are mainly using numbers, if we change a test to say:
testStackShrink() {
        this.assertEquals(this.stack.cap(), this.defaultStackSize);
        [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16].forEach(def (x) => this.stack.push(x.toString()));
        this.assertEquals(this.stack.cap(), 32);
        const res = this.stack.pop();
        this.assertEquals(res, 16);
        this.assertEquals(this.stack.cap(), 32);
        this.stack.pop();
        this.stack.pop();
        this.stack.pop();
        this.stack.pop();
        this.stack.pop();
        this.stack.pop();
        this.stack.pop();
        this.assertEquals(this.stack.cap(), 16);
    }

And we have objects that we actually get wiped by the GC I see the segfault come through


Release to update semver with vulnerability fix

node-abi is a transitive dependency for a library I use. It depends on semver for which a vulnerability was recently fixed, which npm audit reports: https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
It seems dependabot already updated the semver dependency in this project to include the fixes. Could you please release a new version with this dependency update? Thanks!

@Shepard The published version of node-abi already has a dependency on semver in a range that is acceptable.  You can fix this in your app / dependency tree without us releasing a new version.


Basic authentication fails when specifying credentials for a realm that contains uppercase characters

Basic authentication works fine when credentials are added for a URI and the realm is not specified, or when the realm contains no uppercase characters. When credentials are added for a specific URI and realm combination, and the realm name contains uppercase characters, authentication will fail and throw an exception (Mechanize::UnauthorizedError).
Analysis
response_authenticate correctly determines that credentials exist in the AuthStore for the given URI and realm, but when the realm is extracted from the challenge in the following line:
realm = challenge.realm uri
the realm name in the AuthRealm object that is created has been converted to lowercase. The subsequent calls to request_auth and credentials_for fail to find credentials for the lowercased realm name.
As per RFC 1945 (section 11) and RFC 2617, the realm name is case sensitive.
The bug has been traced to Mechanize::HTTP::AuthRealm#initialize, which calls downcase on the realm parameter.
Test Case

ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux]
mechanize-2.7.3

Sample code
agent = Mechanize.new
agent.add_auth('https://httpbin.org/basic-auth/user/pass', 'user', 'pass', 'Fake Realm')
agent.get('https://httpbin.org/basic-auth/user/pass')
puts "Successfully retrieved test page" if agent.page.code == '200'

Expected behaviour
This should output "Successfully retrieved test page".
Actual behaviour
Mechanize throws an exception:
/home/chris/.rvm/gems/ruby-2.1.3/gems/mechanize-2.7.4/lib/mechanize/http/agent.rb:789:in `response_authenticate': 401 => Net::HTTPUnauthorized for https://httpbin.org/basic-auth/user/pass -- Basic authentication failed -- available realms: Fake Realm (Mechanize::UnauthorizedError)
        from /home/chris/.rvm/gems/ruby-2.1.3/gems/mechanize-2.7.4/lib/mechanize/http/agent.rb:310:in `fetch'
        from /home/chris/.rvm/gems/ruby-2.1.3/gems/mechanize-2.7.4/lib/mechanize/http/agent.rb:798:in `response_authenticate'
        from /home/chris/.rvm/gems/ruby-2.1.3/gems/mechanize-2.7.4/lib/mechanize/http/agent.rb:310:in `fetch'
        from /home/chris/.rvm/gems/ruby-2.1.3/gems/mechanize-2.7.4/lib/mechanize.rb:464:in `get'

This should be fixed, but there would be a compatibility problem if we just stopped downcasing.  I think it should first try exact match and if it fails then fall back to case insensitive match.  I'll implement it if no one does.

Ah, I may have misread your analysis.  Your fix is probably the right way to go.

When I initially looked at this I also thought there was the potential for compatibility issues, but I think we should be OK.
I did try adding credentials using a downcased equivalent of my realm name to try and work around this, but then the check towards the top of response_authenticate:
unless @auth_store.credentials? uri, challenges then
fails to find the credentials and aborts at that point.
Further analysis
AuthRealms are only created by instances of AuthChallenge, which are only created by the WWWAuthenticateParser, which is only called from within response_authenticate. Having said that, there must be something that I'm missing because I can't figure out how @authenticate_methods is populated after it is initialised.
So assuming that any code which creates AuthRealms must have passed through response_authenticate at some point, then I don't see how credentials tied to mixed-case realms could be working at this time: if the credentials are added for a realm that doesn't string-equal the realm that the server specifies (e.g. downcased) then the first check in response_authenticate (above) will fail as the check uses AuthChallenge#realm_name as the realm name (which has not been modified); if the credentials are added for the actual mixed-case realm then the code will make it past that check and then fail when trying to retrieve credentials in request_auth, which uses the downcased realm name from the AuthRealm object stored in @authenticate_methods (and which does not string-equal the realm name of the credentials in the AuthStore).

Is there anything further that you would like me to do in order to get this merged? My analysis suggests that this isn't a breaking change so should be safe.
The main area of uncertainty was around how @authenticate_methods was being populated, but looking more closely at the code I worked it out so I believe the analysis to be sound.

Sorry for keeping you waiting so long, it's only due to my having limited time to work on this project.  Will look into #459.

The latet specification (RFC 7235 somehow does not explicitly say it's case-sensitive, but it's probably OK to take it so if it does not say it's case-insensitive.

Thanks for merging. No apologies are necessary for the wait as I completely understand the lack of time, and I just want to say that I do really appreciate the time and effort that you and others have put into developing and supporting this incredibly tool, so thanks for that!
As far as RFC 7235 goes, although it doesn't explicitly state that authentication parameter values are case-sensitive, it is implicit, so I still believe this change is the right way to go.
Thanks again for your efforts.


Replace badly supported u128 TraceId with byte array

Binary serde codecs such as CBOR do not support Rusts u128/i128 datatypes (https://github.com/pyfisch/cbor/issues/140).
In order to be able to use these with tarpc, the u128 TraceId could be made serializable using a 16 byte array as the internal representation.

Thanks for the pr! What about keeping the u128 but having custom (de)serialize fns using the #[serde(with)] annotation?


Support for toggling like slideToggle / fadeToggle

At the moment there's no equivalent to jQuery's slideToggle/fadeToggle functions, which makes migration from jQuery more difficult, as with velocity it requires to convert everything to multiple lines of codes

Right now I'm on a situation where slideToggle would be useful. I have a button which shows/hides another div, and this is the code I'm having to use:
$obj.velocity($obj.is(':visible') ? 'slideUp' : 'slideDown', { duration:200 });
Instead of just:
$obj.velocity('slideToggle', { duration:200 });

Since I use own shorthand $.vel anyway I added this little workaround 😸
$.fn.vel = function(){
  if(arguments[0] === 'fadeToggle')
    arguments[0] = this.is(':visible') ? 'fadeOut' : 'fadeIn';
  return this.velocity.apply(this,arguments)
};

Though apparently it doesn't work good with stop etc.

There are very few cases where UI logic isn't dealing with additional in/out logic at the same time; the UI should almost always know which direction to go in.

This is a valid point, but there are cases when the direction is already internalized. Say a panel that shows or hides itself. A button that toggles the panel removes the abstractions of both "show" and "hide" from the logic of that code. All we want is to toggle two obvious states that can be beneath us, which are also visibly obvious in their consequences.
Now, maybe we want a button to be hot or cold depending on the panel being visible or hidden. We might try and synchronize the states by reading them, for which we would need to "know the direction". Or, if we have a simple button toggle function, we can just toggle both and internalize both the button and panel state. They just need to be synced once in the beginning.
Basically, if there are buttons that toggle things, we need code that toggles things. It's also easy to implement so no big deal, but if you ever feel like revisiting toggle in the future ;)

Reopening as a reminder - got an idea related to this (but needs the v2 velocity to be ready first) :-)

Adding support for this...
My use case is ScrollMagic with Velocity...  They don't work too well together.  Using Velocity on a scene does nothing when using ScrollMagic's 'duration' option.  Easy enough to work around using triggers.
However, animations do not reverse.  Using Velocity's 'fadeOut' at a particular trigger works fine.  But scrolling back in reverse it does not fade back in.  Haven't been able to find any way to get this to work using the libraries themselves.  Finally resorted to writing a function call at the triggers to have Velocity manually fade in/out.  And that is where the toggle would be nice.
The 'reverse' option requires something to have had first happened.  So basically I have to pull the element to check it's opacity each time the trigger is triggered...  Not a big deal but not that elegant either.

I think one of the biggest issues with things like this is the display type options - my idea (when I can get time for it) is to allow string based values such as display and visibility to be used as part of the normal properties map - using with force-feeding to begin with then makes "reverse" far more trivial to implement for toggles. This would need some easings that are basically "first frame change" or "last frame change", choosing automatically but allowing people to override if needed.
Current code:
Velocity(el, {
   opacity: 0
}, {
   display: "none"
});

New idea:
Velocity(el, {
   opacity: 0
   display: "none"
});

The second one is pretty obviously going to be easier (well, hopefully obvious lol) for reversing as all the properties are in one place, and not using shortcut options where properties are actually getting addressed - which should hopefully make toggle actions a lot easier to implement and more resilient too.

Going to close this for now - the best way to handle this is to use a new Sequence, and put it on a named queue, then simply call "reverse" on that queue when needed.
String based properties are in (display and visibility have moved over obviously), so you can now tell it when to switch the value with the string type "at-start", "at-end", and "during" easings.