Crash on Laravel 5 when using config::cache

PHP Fatal error: Call to undefined method Closure::__set_state()
I found a very similar bug report on another l5 package https://github.com/efficiently/authority-controller/issues/27.
Thanks for the great package !

Ok so the workaround to this is that the permission closure in the administrator.php config can be a string to a helper function or class method that can be called. So if you do that then your config::cache will work.  Closure caching is not supported by Laravel's cacheing as it is expensive to keep serializing and unserializing the config, and defeats the purpose of the cache.
helpers.php
function authorize_admin()
{
    return Auth::check();
}

administrator.php
'permission'=> 'authorize_admin',

#davematthews, I did as you instructed, because an update to Laravel 5.4.24 is now enforcing this for me.
here is my helpers.php:
<?php

function authorize_admin()
{
	return \Auth::check();
}

Here is my updated composer.json (snippet):
"autoload" : {
		"classmap" : [
			"database"
		],
		"psr-4" : {
			"App\\" : "app/",
			"MyApp\\" : "app/MyApp/"
		},
		"files": ["app/Helpers/helpers.php"] // <- this line was added
	},

and here is my updated administrator.php (snippet):
'permission'=> 'authorize_admin',
But now I'm getting:
exception 'InvalidArgumentException' with message 'There are problems with your administrator.php config: The permission option must be a function' in C:\xampp\htdocs\tikitour\vendor\exodusanto\administrator\src\Frozennode\Administrator\Config\Factory.php:106
I've cleared the config cache, performed a composer dump-autoload ... ?


IstioOperator spec.meshConfig is not applied

Bug description
IstioOperator spec.meshConfig is not applied.
Expected behavior
When I apply the IstioOperator CRD like this
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  namespace: istio-system
  name: istio
spec:
  namespace: istio-system
  profile: default
  meshConfig:
    outboundTrafficPolicy:
      mode: REGISTRY_ONLY

The generated config map should have synchronized meshConfig
Steps to reproduce the bug

Run istioctl manfiest generate -f operator.yaml with the above manifest
See that the output config map still has outboundTrafficPolicy.mode set to ALWAYS_ALLOW

Version (include the output of istioctl version --remote and kubectl version and helm version if you used Helm)

How was Istio installed?
Using the istioctl
Environment where bug was observed (cloud vendor, OS, etc)
Cloud vendor: AWS (EKS)
OS: AWS Container Optimized EC2 Linux

Hi,
I managed to get that working with:
spec:
profile: demo
values:
global:
outboundTrafficPolicy:
mode: REGISTRY_ONLY
However it is not clear to me why this config does not work under spec.meshConfig...

I think its specifically this setting, or more likely enums in general. On master:
$ cat <<EOF | go run ./istioctl/cmd/istioctl manifest generate -f - | grep outboundTrafficPolicy -C 2
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  meshConfig:
    outboundTrafficPolicy:
      mode: "ALLOW_ANY"
EOF
Error: error unmarshaling JSON: unknown value "ALLOW_ANY" for enum istio.mesh.v1alpha1.MeshConfig_OutboundTrafficPolicy_Mode:

YAML:
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  meshConfig:
    outboundTrafficPolicy:
      mode: "ALLOW_ANY"

exit status 1

drain duration is broken as well (I assume all durations)

https://github.com/istio/istio/pull/22593 may give some more hints about what is going on as well

Root cause is https://github.com/istio/istio/blob/master/operator/pkg/translate/translate.go#L256 maybe?

I'm also bumping into this error. Specifically when defining a field under ingressGateways[*].k8s.service.

That's a pretty good guess. Some places in the code are using regular yaml unmarshal which has problems with enums I believe.

Yep it is the marshal/unmarshal issue again, we actually had these settings defined in values proto as well, but we use jsonpb to unmarshall for them, which works well with enum.

I don't want to change back to jsonpb unmarshaller because we intended to replace that with normal yaml unmarshaller before? Another workaround is to patch the meshConfig part of the generated pb.go file to update the json tag, any idea? @ostromart @morvencao

Have tried with following IOP instance:
# cat << EOF | out/linux_amd64/istioctl manifest generate -o istio-manifests -f -
> apiVersion: install.istio.io/v1alpha1
> kind: IstioOperator
> spec:
>   meshConfig:
>     outboundTrafficPolicy:
>       mode: 1
> EOF
2020-04-03T03:20:26.722482Z	warn	Config not found: /root/.kube/config
Component dependencies tree:
Base
  Pilot

Rendering manifests to output dir istio-manifests
Rendering: Base
Writing manifest to istio-manifests/Base/Base.yaml
Rendering: Pilot
Writing manifest to istio-manifests/Base/Pilot/Pilot.yaml
Rendering: Cni
Writing manifest to istio-manifests/Base/Pilot/Cni/Cni.yaml
Rendering: IngressGateways
Writing manifest to istio-manifests/Base/Pilot/IngressGateways/IngressGateways.yaml
Rendering: EgressGateways
Writing manifest to istio-manifests/Base/Pilot/EgressGateways/EgressGateways.yaml
Rendering: AddonComponents
Writing manifest to istio-manifests/Base/Pilot/AddonComponents/AddonComponents.yaml
Rendering: Policy
Writing manifest to istio-manifests/Base/Pilot/Policy/Policy.yaml
Rendering: Telemetry
Writing manifest to istio-manifests/Base/Pilot/Telemetry/Telemetry.yaml
Rendering: Galley
Writing manifest to istio-manifests/Base/Pilot/Galley/Galley.yaml

Looks like the issue is similar to https://github.com/istio/istio/issues/21554, as @richardwxn mentioned,
it is caused by the json unmarshaler.
Actually I tried to raised a PR to fix this: https://github.com/istio/api/pull/1363 and tried locally it still doesn't work unfortunately.

I think its not just the jsonpb vs json, its also because we do not properly distinguish between explicitly setting an option, and it being the default option. Its made worse from the fact that there is about 8 ways to configure every option

Regarding the enum unmarshal problem, I think the issue is that afaics there's no UnmarshalJSON generated for mesh. There is for operator and I think the enums in there do unmarshal correctly with json as a result.

I also thought the root cause is that there's no UnmarshalJSON generated for meshConfig, so I tried to add it in https://github.com/istio/api/pull/1363
Unfortunately, it was still not working as expected.

My understanding for registry_only is at some point we lose the information because we cannot distinguish between unset and registry_only since it's the default value

yes, probably.
It's weird because we encountered the same issue for IOP status: https://github.com/istio/api/blob/master/operator/v1alpha1/operator.pb.go#L26-L56
And it was fixed by adding MarshalJSON/UnmarshalJSON.

It doesn't matter how it is unmarshalled. The problem is once we go from json -> struct we lose information, regardless of how we do the conversion

Agreed.

https://github.com/istio/istio/pull/22951 should fix this

Fixed by ^

@howardjohn I see this missed 1.5.2. Will we not see the fix until 1.6?


Facing Issue while installing

Below are the steps.. Run below commands on windows 10

npm install -g react-native-cli
npm install -g yarn
react-native init SignUp
cd SignUp
npm install --save react-native-ui-kitten
react-native run-android and getting below error
Command run-android unrecognized.

Any suggestion ?
Thank you

Hi @indokely
Did you tried to run npm install?

Hey,
I tried everything.. something wrong with YARN and NPM seems... both are not working together "properly...  npm install --save react-native-ui-kitten " deletes other packages and i dont know why ?
I am trying on windows
Thank you !

remove your node_modules folder and make npm install without any parameter. I believe this should work

Sure.. Let me try. Thank you for the reply

Closing this due to inactivity.


IPTT > Disaggregation filter: When a disaggregation has no categories, don't include in filter

Affects: Both types of IPTT.
Issue
Right now, disaggregations appear in the filter panel even when they have no categories. This leads to some odd edge cases... For example, with Timor-Leste'S 33050 - CROPS program, if I select the country-level custom SADD disaggregation (with zero categories), this is what I see:

The rows are automatically expanded, as you can see from the down-facing carets... but have no category rows under them.
Requested fix
If a disaggregation has no categories, do not include it in the Disaggregations menu.

Passed. I am no longer seeing disaggregations with no categories in the Disaggregations filter menu.


Wiki update for ng test

Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x ] feature request - documentation update to be precise

Area
- [x ] devkit

Versions
Current angular-cli wiki
Desired functionality
Angular cli < 6 allowed a custom karma conf file to be specified on the command line with --conf. This is replace in version 6 with --configuration, but this needs to point to an entry in angular.json, not the actual conf file. It would be useful to note this on the wiki https://github.com/angular/angular-cli/wiki/test. Suggested text for this is:

  configuration

    --configuration (alias: -c)

    Specify the configuration to use. This needs to point to an entry in a configuration section added to the 'test' section in the angular.json file, not the actual karma.conf file, eg.

        "test": {
          "builder": "@angular-devkit/build-angular:karma",
          "configurations": {
            "build": {
                "karmaConfig": "./karma.custom.conf.js"
            }
          }
        }

The run  ng test --configuration=build

Hi @glendaviesnz
There seems to be a new command line option to specify the Karma configuration file:  --karma-config . For example
ng test --karma-config=./src/circle-karma.conf.ts

cheers
Charlie

Documentation for ng test can now be found https://angular.io/cli/test


client side exception

I tried to add a PluploadField to a form and got a client side exception:

Error performing server to client RPC callsjava.lang.IllegalStateException: There is no information about pl.exsio.plupload.client.PluploadClientRpc.setOption Did you remember to compile the right widgetset?
.....
Caused by: com.vaadin.client.metadata.NoDataException: There are no parameter type data for pl.exsio.plupload.client.PluploadClientRpc.setOption

The WidgetSet was recompiled.
Can anyone help me please?

Maybe you encountered this bug in Vaadin: https://github.com/vaadin/framework/issues/2823
Please try to move your client RPC class outside of the containing class; there is a bug in Vaadin which manifests when the client RPC is an inner class.


[ClangImporter] Add support for swift_attr(“@Sendable”) on ObjC protocols

When ClangImporter imports a nominal type with @Sendable attached,
it adds a SynthesizedProtocolAttr to the type. That did the right thing
for concrete types, but protocols currently ignore these attributes.
Manually add them where necessary.
Fixes rdar://99758612
Partially based on https://github.com/apple/swift/pull/66188 (which I discovered later :))

@swift-ci please test

@swift-ci please test source compatibility

@swift-ci please test

@swift-ci please test source compatibility

@swift-ci please smoke test macOS platform


Maven project inheritance is not resolved

I noticed the following:

org.springframework.data:spring-data-commons:3.0.2 claims to be licensed under Apache 2.0 – cdxgen doesn't reflect this
io.cucumber:tag-expressions:4.0.2 claims to be licensed under MIT – cdxgen doesn't reflect this
but: org.apache.tomcat.embed:tomcat-embed-websocket:10.1.5 claims to be licensed under Apache 2.0 – and cdxgen does say the same!

I tried to find the reason, and I think it's in the POM cdxgen queries: spring-data-commons-3.0.2.pom has no licenses, tag-expressions-4.0.2.pom has no licenses, but tomcat-embed-websocket-10.1.5.pom has.
So how can the Maven UI display a license? And, btw, how can cyclonedx-gradle-plugin find one? I think the reason is inheritance: POM files can specify a parent, and both spring-data-commons and tag-expressions do: spring-data-parent-3.0.2.pom (containing the missing Apache 2.0!) and cucumber-parent-2.1.2.pom (containing the missing MIT!).
So the issue here is, that cdxgen does not follow this inheritance.

Thanks, @crusy. Love your bug reports! Do you use dependency track, or how are you integrating cdxgen in your workflow? Is it possible to discuss more over zoom?
https://calendly.com/prabhusp/hi

No, currently I do not use anything. But I need to generate a list of licenses (including their texts :wink:) and would like to omit said cyclonedx-gradle-plugin, as that requires to be added to my projects (at least temporarily). But since cdxgen does not include the licenses text and obviously not even all the licenses I think I have to go back. But at least I wanted to let you know about the issue.

Thanks, @crusy. I will look at adding parent pom parsing functionality and let you know once it's done.


Provincial page error_data handling

https://trello.com/c/ZPJrMFgI/582-provincial-pages-dont-show-because-some-dataset-is-missing
handle the estimates of nationa/provincial expenditure dataset being missing. Show a "data not available" message while presenting whatever's available, instead of resulting in a Server Error.

I'm currently getting these failures locally
======================================================================
FAIL: test_guide_page (budgetportal.tests.test_guides_pages.GuidePagesTestCase)
Simple test of template response for guide page
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/budgetportal/tests/test_guides_pages.py", line 57, in test_guide_page
    "http://minio:9000/budgetportal-storage/images/photo.max-320x200.jpg",
  File "/usr/local/lib/python3.7/site-packages/django/test/testcases.py", line 454, in assertContains
    self.assertTrue(real_count != 0, msg_prefix + "Couldn't find %s in response" % text_repr)
AssertionError: False is not true : Couldn't find 'http://minio:9000/budgetportal-storage/images/photo.max-320x200.jpg' in response

======================================================================
FAIL: test_department_detail_page (budgetportal.tests.test_pages.BasicPagesTestCase)
Test that it loads and that some text is present
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/code/budgetportal/tests/test_pages.py", line 144, in test_department_detail_page
    self.assertContains(response, "Budget (Main appropriation) 2019-20")
  File "/usr/local/lib/python3.7/site-packages/django/test/testcases.py", line 454, in assertContains
    self.assertTrue(real_count != 0, msg_prefix + "Couldn't find %s in response" % text_repr)
AssertionError: False is not true : Couldn't find 'Budget (Main appropriation) 2019-20' in response

----------------------------------------------------------------------
Ran 150 tests in 276.098s

I was getting the first one locally on master but not in CI.
The second error might be due to the changes we've made and needs attention

so we need to figure this out - google it and get the tests to run

Department page of this branch against production ckan

department page of this branch against sandbox ckan with https://sandbox-data.vulekamali.gov.za/dataset/groups/estimates-of-national-expenditure-2019-20 briefly removed from the ENE group to simulate it being missing

New test failure


lower KITTI 2D Tracking inference resullt

nice work firstly. I download the pre-trained model and create the kitti data info and inference the tracking, and I get the lower MOTA than yours, and you also said that We observe up to 1.5 MOTA jittering due to randomness is it because the centernet Gaussion distribution? Very appreciate for you reply!

me too . but test.py has a error no such file or directory: '. / tools / Eval_ kitti_ track/data/tracking/evaluate_ trackingtest.seqmap '.

evaluate_ trackingtest.seqmap is used when you want to run centerTrack on kitti test set. you can replace it to 'evaluate_ trackingval.seqmap' in code @lushbng

I've solved this problem. Thank you. Mota has 87.
At 2020-12-18 17:39:09, "yustaub"<EMAIL_ADDRESS>wrote:
evaluate_ trackingtest.seqmap is used when you want to run centerTrack on kitti test set. you can replace it to 'evaluate_ trackingval.seqmap' in code @lushbng
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


REQ Easier content management

Made a big post about the on gitlab, and going to rephrase it here.
I believe that it would be easier to handle content if things are broken down into different kinds of containers/blocks.
Content blocks - the actual content such as TV shows and/or movies.  Typically, one show would be added, but multiple shows can be added if needed or desired, such as the same show continuing under a new name (example, Roseanne and then The Conners).  Or if there are several shows that are part of a group and there is a desire to have the episodes show in chronological order (example, Arrowverse shows).  Content can be defaulted to being in order by (manual, airdate, season/episode, random).  Episodes can also be "unchecked" or deactivated to prevent them from being shown without having to remove it from the list (but individual episodes can be added or removed).  Settings include minimum time chunks for an episode before the next episode can be shown.  Example would be 30 minutes for shows that take roughly 20 minutes, so if an hour is allocated to the content block, two episodes could air.  Another example would be 5 minutes for a show if it has random length episodes that range from under 10 minutes to roughly 25 minutes (like SpongeBob).  So if a full episode has 3 smaller parts that are under 10 minutes each, each would start at the "10 min" mark (:00, :10, :20), but if it only has 2 parts that are ~11 minutes each, it would be :00 and :15 for the start times.  Of courage, a one part episode would take ~23 minutes, not leaving enough time for anything more to show.
Program blocks - Containers for content blocks.  One or more content blocks can be added, with the content being shown in that order within the program block.  The minimum amount of time for a content block would default to the largest episode, though that can be manually changed to be longer or shorter, but in "default length" increments (default length being 30 minutes, but can be changed per Program block).  So if the longest episode takes a 30 minute block but the content block is given two blocks, then that content block would have an hour for showing content.  (Like some stations do with old sitcoms, airing two episodes back to back, the same could be done.)  As said before, multiple content blocks can be added, so a person could have a few different content blocks with different shows in each.  Another option is the maximum time of the program block, and if content blocks should be rotated in order, or if extra content blocks should be kept in reserve until an existing content block has finished with all it's content.  (ie, say you have blocks A, B, C, D, E, and F, and only room for four at a time.  With rotating, first A, B, C, and D would show, with E, F, A, and B on the next run, followed by C, D, E, and F and the third use, etc.  Reserve would keep showing A, B, C, and D until one of those finished, then would be replaced by E, and the next one replaced by F, then with the first one that got replaced, etc.)
Schedule blocks - Containers for Program blocks (and for content blocks of course).  Add in a block and set the day of the week and the time (or a specific date and time) for that block to show.  Specific date & time blocks would take priority over day-of-week based time blocks.
Each block type should also have a "filler content" option, where content can be added to fill in empty time until the end of the current content block is finished.  Priority would go from Content Blocks being the highest, to Schedule Blocks being the lowest, but still chosen randomly.  Idea here is on a Content Block level, someone could add in videos related to that content.  On a Program Block level, it could be theme related (like if the program block is only sitcoms, could have funny "commercials" or micro programs show).  On a Schedule Block level, could be content based on the time it's showing (morning might have kid related filler content, while at night it might be more mature type content).  Filler content could be either individually picked videos, or a "Content Block" that was made with filler videos.
Within a programming block, one or more of the Content blocks should also be able to "override" all or part of the block IF the item is going to show needs more time than already allocated to it.  For example, when TGIF was around with Sabrina the Teenage Witch showing, there were a couple of "episodes" that were TV movies, taking up two hours (the entire TGIF block) instead of 30 minutes.  This option would look for any content blocks that need the have more time (in order) and make any necessary adjustments.  So in a similar situation (as Sabrina), if two blocks need the entire block, a "first come, first served" policy kicks in and would get the full time, then the next time the program block is used, the second one would take the entire block.  (It wouldn't have content blocks playing until it sees that one needs an entire block and then is like, "oh crap, not enough time!"  Thus the function of looking ahead of time so it's figured out properly.)
 to this but still, gotta admit that it's a nice idea overall. 😁
To summarize it all, using containers that can have other containers, might also fix problems with channels that have entirely too many items on the list.

Unless we have some brave soul come in and tackle that mess of time logic, I don't think that complicated of a schedule will be happening anytime soon. i'll keep this up as an enhancement, but I wouldn't hold my breath.

Unless we have some brave soul come in and tackle that mess of time logic...

LOL yeah I know my idea is super advanced...  Though the containers concept in itself should be easy enough to implement.  After all, it's like collecting a bunch of 'links' to episodes, then referring to the collection (vs the individual episodes) when adding it to a channel.  Then just have it repeat the different content blocks.  The filler content (per block) should also be possible to do, if the block has a maximum length and it grabs for something to fill the empty time.  A filler idea would be a still image (possibly with text telling what's coming up next).
Perhaps that much would be possible?    Essentially breaking things down into manageable chunks.

A little update to the original concept here.
Content blocks - be able to link individual items together to form custom "episodes."  Optional, of course, but those items remain linked so if any randomizing is done, they stay together.
Example of use:  Being able to combine video shorts of different shows to make your own show.
The show "Woody Woodpecker and Friends" is a combination of a few different shows, including "The Woody Woodpecker Show," "Chilly Willy," etc.  But let's say that they were only individual shows.  If someone wanted to make their own recreation of the show that had segments from different shows, simply randomizing might not be suitable, as the user may want each 'episode' start with a Woody Woodpecker segment, or not have multiple segments in a row of the same character, etc.  May also want the same segments to always be shown together.  Thus having custom episodes which can contain content from different shows to make a custom show.


Run Wasm guest code in separate threads

Motivation

Wasm guest modules were executed inside asynchronous threads. This worked by polling the Wasm guest's functions that implemented future-like asynchronous code. That code could call back the host, so the asynchronous waker (inside the task context) had to be forwarded from the host before calling the guest to the host handler of the guest's call. In other words, the execution path can be visualized as host { guest { host } }, and the waker available to the outer host code needed to be available to the inner host segment.
This had a few downsides. One was that Wasm guest execution was CPU intensive, and not necessarily IO intensive, so it would occupy a thread that was best used for IO intensive tasks. The second was that blocking system API implementations in the host could not return to the guest until the request finished, so the asynchronous task was blocked during the call. This not only was a possible performance bottleneck, but also could lead to deadlocks if there weren't enough asynchronous threads running.
Proposal

Run the execution runtime (i.e., the handler of system APIs) in an asynchronous actor, and run the guest Wasm module in a synchronous actor in a separate (non-asynchronous) thread.
The GuestFuture type and the HostFuture type, together with the waker forwarder mechanism were replaced by a new GuestFutureActor type. The new type runs the Wasm guest in a separate thread, and uses a PollSender type to send poll requests from the asynchronous thread to the synchronous thread.
The guest Wasm future also is now created inside the actor thread, so the GuestFutureInterface now requires a new method that runs the Wasm code to set up the future. Also, because the runtime is now an actor, configuring the available fuel in contracts also must be done in the synchronous actor thread so that it can wait for the runtime actor to respond to fuel information requests without blocking an asynchronous thread.
Test Plan

This is an internal refactoring, so all existing tests must continue to pass.
Release Plan

Nothing needed.
Links

Closes #971

reviewer checklist

In case it helps with the review, you can see only the new commits I added before I merged them with the previous commits here: https://github.com/jvff/linera-protocol/compare/run-wasm-runtimes-in-separate-threads-r3-rebased..run-wasm-runtimes-in-separate-threads-r3-fixes


Optaplanner: Investigate on why we need to add Drools classes for reflection and runtime init

Linked to https://github.com/apache/camel-quarkus/issues/4463

Well, I did managed to fix it with https://github.com/apache/camel-quarkus/pull/4912


Support for projects depending on the concept instances of another project

If source code is separated into multiple projects, the generation of this code is often also separated in multiple source-amazing code generation projects (=domain units). Often, there are core concepts that have to be referenced in this various domain units, but only generated once in the code project.
This task should introduce a declaration to express dependencies to other domain units. The build of the model tree (concept instances tree) should be done in the correct order (first depending projects and this recursively/transitively).
On a project B depending on a project A, only the concept instance tree of A should be generated and be part of the concept instance tree of project B. The code itself should not be generated in project B.

This issue will be obsolete with the new 3.0.0 release and can be implemented by the consumer of the framework (instead of the framework itself).


Install Issue

When attempting to install I get this Error:

error in blendplot setup command: "values of 'package_data' dict" must be a list of strings (got '[LICENSE]')

Able to fix it with this quick change to setup.py:
Change Line 21 from

'': 'LICENSE'

to

'': ['LICENSE']

Not sure if this is the best fix, or something else can solve the problem.
P.S. - this is a really fun, easy to use tool!

Ah, yep it looks like that might be due to https://github.com/pypa/setuptools/commit/8f848bd777278fc8dcb42dc45751cd8b95ec2a02
I'll make the change you mentioned (and update the Travis CI Python versions while I'm at it, 3.5 is pretty old now).
Thanks for letting me know!
I'm glad you enjoyed this tool! I wrote it back in college for a project where I was trying to create a video of a fly-through of a 3D plot for a planetarium video. I'm glad someone else found it useful.

Here is a Travis CI build that reproduced the issue: https://travis-ci.org/github/ExcaliburZero/blender-astro-visualization/jobs/702929457

Okay, this should be fixed now. The Travis CI build were able to reproduce it, and after the changes in #4 it looks to be fixed in the Travis CI builds.
Feel free to re-open the issue if it still occurs for you.


Fixes the version of vagrant box in code.

Fixes the version of vagrant box in code so it's controlled programmatically and we can test other released versions in branches.

:+1:


Pub install crashes with NoSuchMethodError : method not found: 'forEach'

This issue was originally filed by<EMAIL_ADDRESS>
What steps will reproduce the problem?

Using latest Editor/SDK on Ubuntu 64bit
Ran pub install from the menu
3.

What is the expected output? What do you see instead?
Pub should install without dying.
What version of the product are you using? On what operating system?
Dart Editor version 0.5.11_r23200
Dart SDK version <IP_ADDRESS>_r23200
Ubuntu 13.04
Please provide any additional information below.
$ pub --trace 'install'
The null object does not have a method 'forEach'.
NoSuchMethodError : method not found: 'forEach'
Receiver: null
Arguments: [Closure: (dynamic, dynamic, dynamic) => dynamic]
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:19:25)
#1      LockFile._parse (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/lock_file.dart:26:29)
#2      LockFile.LockFile.load (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/lock_file.dart:15:27)
#3      Entrypoint.loadLockFile (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart:75:12)
#4      Entrypoint.installDependencies.<anonymous closure> (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart:47:74)
#5      Future.Future.sync (dart:async/future.dart:10:31)
#6      Entrypoint.installDependencies (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart:46:12)
#7      InstallCommand.onRun (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/command_install.dart:15:42)
#8      PubCommand.run.<anonymous closure> (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/command.dart:69:32)
#9      Future.Future.sync (dart:async/future.dart:10:31)
#10     PubCommand.run (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/command.dart:65:5)
#11     main.<anonymous closure> (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/bin/pub.dart:72:50)
#12     _ThenFuture._sendValue (dart:async/future_impl.dart:265:24)
#13     _FutureImpl._addListener.<anonymous closure> (dart:async/future_impl.dart:190:30)
#14     _asyncRunCallback._asyncRunCallback (dart:async/event_loop.dart:15:17)
#15     Timer.Timer.<anonymous closure> (dart:async-patch/timer_patch.dart:9:15)
---- Log transcript ----
FINE: Pub 0.5.11+1.r23200
FINE: Clean up system cache temp directory /home/richard/.pub-cache/_temp.
ERR : The null object does not have a method 'forEach'.
    |
    | NoSuchMethodError : method not found: 'forEach'
    | Receiver: null
    | Arguments: [Closure: (dynamic, dynamic, dynamic) => dynamic]
ERR : #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:19:25)
    | #1      LockFile._parse (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/lock_file.dart:26:29)
    | #2      LockFile.LockFile.load (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/lock_file.dart:15:27)
    | #3      Entrypoint.loadLockFile (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart:75:12)
    | #4      Entrypoint.installDependencies.<anonymous closure> (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart:47:74)
    | #5      Future.Future.sync (dart:async/future.dart:10:31)
    | #6      Entrypoint.installDependencies (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/entrypoint.dart:46:12)
    | #7      InstallCommand.onRun (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/command_install.dart:15:42)
    | #8      PubCommand.run.<anonymous closure> (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/command.dart:69:32)
    | #9      Future.Future.sync (dart:async/future.dart:10:31)
    | #10     PubCommand.run (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/lib/src/command.dart:65:5)
    | #11     main.<anonymous closure> (file:///mnt/data/b/build/slave/dart-editor-linux-trunk/build/dart/sdk/lib/_internal/pub/bin/pub.dart:72:50)
    | #12     _ThenFuture._sendValue (dart:async/future_impl.dart:265:24)
    | #13     _FutureImpl._addListener.<anonymous closure> (dart:async/future_impl.dart:190:30)
    | #14     _asyncRunCallback._asyncRunCallback (dart:async/event_loop.dart:15:17)
    | #15     Timer.Timer.<anonymous closure> (dart:async-patch/timer_patch.dart:9:15)
    |
---- End log transcript ----

This issue has been moved to dart-lang/pub#566.


Installation instructions

Could you provide some installation instructions please? I "think" I have modula, toolkit and schematics monitor installed correctly, but I cannot get any output whatsoever. A semi-detailed "put this here, put that there, and ingame do this and that" would be highly appreciated!
I have the script compiled, but ingame I keep getting "attempt to index a nil value" errors

/Edit:
ok, got farther a bit:

I put the compiled script in a programming board
attached a screen
attached a core (got incompatible link error, attached anyway)
got output on the screen. it reads "schematics status" but nothing more.

please provide some high-level steps on how to use this

Digging a bit further, I guess the install was successful - it just happens to read "0" for all schematics

Hey, sorry, just seen this. Thanks for checking the script out - it’s pretty rough at the moment, as you can see.
I absolutely do need some better instructions! I also intend to make a release so that you can just download a JSON file, but I’ve not done so yet.


Update marshmallow_apispec.py

Fix for error, https://github.com/rochacbruno/flasgger/issues/285

Hello @bhanduroshan! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file flasgger/marshmallow_apispec.py:

Line 13:80: E501 line too long (109 > 79 characters)


git-mirrors: set BUILDKITE_REPO_MIRROR=/path/to/mirror/repo

When git-mirrors (currently an experiment) is enabled, export a BUILDKITE_REPO_MIRROR=/path/to/mirror/repo environment variable. This makes it easy to mount the mirror as a volume in docker containers, so that git within the container can access the git reference repository data.
The name BUILDKITE_REPO_MIRROR was chosen to reflect the existing BUILDKITE_REPO environment variable.
This environment variable enables transparent support for git-mirrors in our docker plugin and our docker-compose plugin:

https://github.com/buildkite-plugins/docker-buildkite-plugin/pull/167
https://github.com/buildkite-plugins/docker-compose-buildkite-plugin/pull/287

Here's a before (current agent master branch) and after (this PR) running a build that does a git log using docker#0c53b57a02e35024b8f55c5bdfab3b4453ef63e3 plugin from https://github.com/buildkite-plugins/docker-buildkite-plugin/pull/167

… seems good.
Here's the pipeline I tested:
env:
  GREETING: hello world

steps:
  - command: "git --no-pager log"
    plugins:
      - docker#0c53b57a02e35024b8f55c5bdfab3b4453ef63e3:
          image: "golang:1.15"
    retry:
      manual:
        permit_on_passed: true

Thank you! Literally just ran into this issue.


canLoadMore() not working

Hi,
we just encountered a bug on one of our product list, the pagination is not working.
In Searcher.swift, the canLoadMore function return false in this particular case.

As you can see on the screenshot, the isEqual function return false, specifically when comparing the numeric filters. In this case they are the same, just not in the same order.
The solution will be to sort both numericRefinements.keys or remove the cast in Array.
Have a nice day,

Thanks for reporting this @FrancoisObob! This is fixed in #26 and is being deployed right now with v3.2.5.


Audio

Good day,
i ahve an LG tv connected to a Receiver which is connected to my speakers, on my LG remote i can control the audio of the receiver through my normal audio controls, when trying to change control (using slider light bulb) this doesn't do anything and doesnt change thr audio of my receiver
Is this possible?
Config:
"accessories": [
    {
        "name": "My webOS tv",
        "ip": "<IP_ADDRESS>",
        "mac": "aa:aa:aa:aa:aa",
        "prefsDir": "~/.webosTv",
        "pollingInterval": 10,
        "legacyTvService": false,
        "showInputButtons": false,
        "volumeControl": "false",
        "volumeLimit": 100,
        "channelControl": false,
        "mediaControl": false,
        "inputs": [
            {
                "appId": "netflix",
                "name": "Netflix"
            },
            {
                "appId": "com.webos.app.hdmi1",
                "name": "PS4"
            },
            {
                "appId": "com.webos.app.hdmi2",
                "name": "KPN Itv"
            },
            {
                "appId": "cdp-30",
                "name": "Plex"
            },
            {
                "appId": "youtube.leanback.v4",
                "name": "YouTube"
            },
            {
                "appId": "videoland2014",
                "name": "Videoland"
            },
            {
                "appId": "rtl",
                "name": "RTLXL"
            },
            {
                "appId": "spotify-beehive",
                "name": "Spotify"
            }
        ],
        "infoButtonAction": "HOME",
        "accessory": "webostv"
    },

Unfortunately it is not possible to control the volume of external audio devices using the slider, you need to use the Volume Up/Volume Down buttons for that.
Try with that property:
"volumeControl": "buttons"


Do not compare error strings

Description
We are better than that.
Readiness checklist

[x] I added tests for new functionality or bugfixes.
[x] I ran task all, and it passed.
[ ] I added/updated comments for both exported and unexported top-level declarations (functions, types, etc).
[ ] I checked comments rendering with task godocs.
[x] I ensured that the title is good enough for the changelog.
[x] (for maintainers only) I set Reviewers (@FerretDB/core), Assignee, Labels, Project and project's Sprint fields.
[x] I marked all done items in this checklist.

@rumyantseva PTAL

It's a surprise to me that errors could be unwrapped from such deep states

You are entirely correct, and that PR was utterly bogus.

but I checked locally, and it seems to be working, yes

That's because that test (as written in #1318) is either skipped or tries to be smart and "fixes" itself in all possible combinations.
Yet both PRs were approved and merged. Why?

(my previous comment was completely wrong, deleted it)


Add the ability to limit Draggables to a single axis

Part 1 of solving #16763.
This adds a new field to the Draggable API: axis.  Behavior covered in the DartDoc, but setting it limits the underlying _DragAvatar's motion to the assigned axis.  When axis is null, the behavior is the same as before.  As a result, this won't break anything.

This got reformatted automatically by my editor, I will clean it up.

@googlebot I have updated the authorship.

LGTM too


CSS Errors

Description
Is this supposed to be there?
Screenshots

Gitea Version
1.22.0+dev-3-ge46274b5b
Can you reproduce the bug on the Gitea demo site?
Yes
Operating System
linux 6.2.0-1013-gcp
Browser Version
Microsoft Edge 117.0.2045.31 (Official build) (64-bit)

->  Fix repo sub menu #27169


Icon? in gitignore leads to ignoring the icons folder in pages/ui/components

I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Icon? in gitignore leads to ignoring the icons folder in pages/ui/components
---------Edit------
Don't want detail more to write, removing "Icon?" from gitignore solves the problem for me.
Environment
node v4.60
npm v3.10.8
git version 2.8.4 (Apple Git-73)
using webstorm.

I have the same problem, if I clean .gitignore then I can commit and push.

Hi @aavelyn, could you describe in details your case and post here your environment, please?

just updated the initial post

@aavelyn, @aavelyn we could not reproduce the issue on our side, unfortunately we more details we cannot make this change into the repository.

same here. duplicates #395. In #395 there are details how to reproduce the problem.


Upgrade OpenLayers to version 8.1.0

This upgrades OpenLayers to version 8.1.0.
I went through the upgrade notes and checked that there are no breaking changes, which will affect the code base of Wegue. Dev-setup and production build look fine so far.
Based on #352.
Fixes #329

Thanks for your reviews @JakobMiksch and @sronveaux. Going to merge now...


allow styles to work similarly as classes but takes a css object instead of class name

<Badge
    badgeContent={ '' }
    color="secondary"
    styles={{
        badge: {
            width: 12,
            height: 12
        }
    }}
>
    <PersonIcon />
</Badge>

Use case is that I don't want any content in the badge and want to style just the badge css instead of having to implement withStyles
I think this would be overrides if provided, instead of clearing the existing styles... but perhaps that why it was left out

@ilovett We don't expose a styles property on purpose. We want to encourage people to use the CSS API. You can always apply inline-style to the root element with the style property and to nested elements by using xxxProps. In the case of the Badge, we probably miss a badgeContentProps property.

having to implement withStyles

You don't have to use withStyles to use the classes API. You only have to provide class names, these class name origin doesn't matter: https://material-ui.com/guides/interoperability/.


Don't remove track from file on KeyboardInterrupt

This allows the download to continue from this KeyboardInterrupted
track on the next run, when using --list.

Codecov Report

Merging #724 into master will decrease coverage by 0.08%.
The diff coverage is 16.66%.

@@            Coverage Diff             @@
##           master     #724      +/-   ##
==========================================
- Coverage   63.10%   63.02%   -0.09%
==========================================
  Files          57       57
  Lines        2136     2139       +3
==========================================
  Hits         1348     1348
- Misses        788      791       +3

Impacted Files
Coverage Δ

spotdl/command_line/core.py
19.00% <0.00%> (-0.27%)
:arrow_down:

spotdl/version.py
100.00% <100.00%> (ø)

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 89735c2...19ae8fd. Read the comment docs.


Screen reader is not providing any information about 'Sent' message.

Actual Result:
After sending the "hi" message narrator is silent, not reading anything when message is in Sending state.
Narrator is not providing any information about the sent message.
Note: Same issue repro at -
Upload File button - After Uploading Image narrator not give information that Image has been uploaded.
Attachment -"Usable_Image uploading Information".
Expected Result:
Narrator should provide the information about the sent message.
Repro Steps:

Open URL https://microsoft.github.io/BotFramework-WebChat/full-bundle in Edge browser.
Notice 'Upload File' and 'Send' button icons present in bottom of screen.
Open Narrator (Caps+Win. Key+Enter)
Type 'hi' in the input control at the bottom of the screen and hit enter (or click on the send button) .
Observe that Narrator not is not providing any information about 'Sent' message.

User Impact:
Users depending on screen reader might get confused as screen reader is not providing information about the action.
Test Environment:
OS: Windows 10
OS Build: 17134.345
OS Version: 1803
Browser: Edge
Tool: Narrator
Attachment:

Usable_Messgae sending state.zip
Usable_Image uploading Information.zip

Add a screen reader only box that show the status.
aria-live="polite"
aria-relevant="text"

#HCL;#Accessibility;#HCL_BotFramework_WebChat;A11yMAS;WCAG1.3.1


Update dependencies to patch CVE

Description
Update httpclient, aws-java-sdk-core, wiremock, jetty-server, guava
Patch the following CVE:

CVE-2018-12536
CVE-2019-10241
CVE-2019-10247
CVE-2019-10426
CVE-2020-13956
CVE-2020-28491
CVE-2021-34428
CVE-2022-2047
CVE-2023-26048

Issues Resolved
Check List

[ ] New functionality includes testing.

[ ] All tests pass, including unit test, integration test and doctest

[ ] New functionality has been documented.

[ ] New functionality has javadoc added
[ ] New functionality has user manual doc added

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #1625 (03d3baa) into 1.3 (1b81f4e) will not change coverage.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff            @@
##                1.3    #1625   +/-   ##
=========================================
  Coverage     98.40%   98.40%
  Complexity     2746     2746
=========================================
  Files           266      266
  Lines          6758     6758
  Branches        427      427
=========================================
  Hits           6650     6650
  Misses          107      107
  Partials          1        1

Flag
Coverage Δ

sql-engine
98.40% <ø> (ø)

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


Please merge revision a21e3a5a7f954649434c1edfa6cba5c0e99f8bc9 into dev channel

@whesse @mit-mit @kasperl
<Fill in the labels for Milestone and Area to indicate what the merge applies to. E.g. if you're requesting a merge to fix an issue in Dart2JS, set the area to Area-Dart2JS. If this is a request to merge to stable please change the MergeToDev label to MergeToStable>
<Describe the problem this merge is fixing - include issue numbers if applicable>
This fixes exceptions in https://github.com/dart-lang/sdk/issues/24812
<What revision(s) needs to be merged - please annotate revisions with reason if more than one>
a21e3a5a7f954649434c1edfa6cba5c0e99f8bc9

EXAMPLE: This merged cleanly
scheglov@scheglov-macbookpro3:~/Source/Dart/sdk.git/sdk (merge_my_awesome)$ git cherry-pick a21e3a5a7f954649434c1edfa6cba5c0e99f8bc9
[merge_my_awesome b282e99] Issue 24812. Fix for detached CompilationUnitElement(s) after package version switch.
 Date: Thu Nov 12 13:22:04 2015 -0800
 4 files changed, 110 insertions(+), 20 deletions(-)

Merged to dev 426edff01629bb92ac8e88f27ae25404c35f769b


ci: make control plane sees nodes as online before completing node wait

chore: enable rustup for dev environments
When not running on CI (env CI set) and the arg devrustup is true then the nix-shell
setups an appropriate rust toolchain toml file.
This makes it easier to integrate with custom (non-nix) environments (or so I hope)
Signed-off-by: Tiago Castro<EMAIL_ADDRESS>
ci: make control plane sees nodes as online before completing node wait
This should resolve some CI errors we've seen where we start testing before the nodes are ready.
Signed-off-by: Tiago Castro<EMAIL_ADDRESS>

bors merge


Build Web Apps with Pyramid: Part 1: PyCharm Demo - App will not run

Hi Michael,
I'm on a windows machine, running PyCharm Pro (free trial), and I created a venv that did not offer 'None' as a Template Language setting, the only options are Django and Jinja2.

I mention that in case it has to do with the error message I got when I tried to run the app.
C:\Users\imonat\Desktop\Python_Scripts\blueyellow_pycharm_app\development.ini
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm 2016.3.2\helpers\pycharm\pycharm_load_entry_point.py", line 12, in
sys.exit(f())
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\scripts\pserve.py", line 40, in main
return command.run()
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\scripts\pserve.py", line 210, in run
setup_logging(config_path, global_conf=vars)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\scripts\common.py", line 34, in setup_logging
parser.read([path])
File "C:\Users\imonat\AppData\Local\Programs\Python\Python35-32\lib\configparser.py", line 696, in read
self._read(fp, filename)
File "C:\Users\imonat\AppData\Local\Programs\Python\Python35-32\lib\configparser.py", line 1089, in _read
fpname, lineno)
configparser.DuplicateOptionError: While reading from 'C:\Users\imonat\Desktop\Python_Scripts\blueyellow_pycharm_app\development.ini' [line 15]: option 'pyramid.includes' in section 'app:main' already exists
Process finished with exit code 1
Can you interpret the cause of the error? I'm not understanding what it wants. I was able to get the app to run using the cmd line, but love how much faster Pycharm is, just need to get it running! Thank you for your help!

I ran into the same error message, seems to be a bug in Pycharm. The
Develoment.ini file includes two "pyramid.includes" statements, and you
have to move the pyramid_debugtoolbar up from the second one - see
http://stackoverflow.com/questions/36941351/getting-configparser-duplicateoptionerror-option-pyramid-includes-in-section
On Sat, Feb 25, 2017 at 2:03 PM IanM<EMAIL_ADDRESS>wrote:

Hi Michael,
I'm on a windows machine, running PyCharm Pro (free trial), and I created
a venv that did not offer 'None' as a Template Language setting, the only
options are Django and Jinja2.
[image: template settings]
https://cloud.githubusercontent.com/assets/20530405/23333878/ac00cebc-fb48-11e6-8f3a-a233772273e2.JPG
I mention that in case it has to do with the error message I got when I
tried to run the app.
C:\Users\imonat\Desktop\Python_Scripts\blueyellow_pycharm_app\development.ini
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm
2016.3.2\helpers\pycharm\pycharm_load_entry_point.py", line 12, in
sys.exit(f())
File
"C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\scripts\pserve.py",
line 40, in main
return command.run()
File
"C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\scripts\pserve.py",
line 210, in run
setup_logging(config_path, global_conf=vars)
File
"C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\scripts\common.py",
line 34, in setup_logging
parser.read([path])
File
"C:\Users\imonat\AppData\Local\Programs\Python\Python35-32\lib\configparser.py",
line 696, in read
self._read(fp, filename)
File
"C:\Users\imonat\AppData\Local\Programs\Python\Python35-32\lib\configparser.py",
line 1089, in _read
fpname, lineno)
configparser.DuplicateOptionError: While reading from
'C:\Users\imonat\Desktop\Python_Scripts\blueyellow_pycharm_app\development.ini'
[line 15]: option 'pyramid.includes' in section 'app:main' already exists
Process finished with exit code 1
Can you interpret the cause of the error? I'm not understanding what it
wants. I was able to get the app to run using the cmd line, but love how
much faster Pycharm is, just need to get it running! Thank you for your
help!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mikeckennedy/python-for-entrepreneurs-course-demos/issues/3,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APG86Gw5qs9yJfKnIq-H95ciICWw8erpks5rgHsBgaJpZM4MMGnx
.

Thanks Dan - I made the change per your recommendation but unfortunately it seems the error grew!

C:\Users\imonat\blueyellowpy\Scripts\python.exe "C:\Program Files (x86)\JetBrains\PyCharm 2016.3.2\helpers\pycharm\pycharm_load_entry_point.py" C:\Users\imonat\Desktop\Python_Scripts\blueyellow_pycharm_app\development.ini
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm 2016.3.2\helpers\pycharm\pycharm_load_entry_point.py", line 12, in
sys.exit(f())
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\scripts\pserve.py", line 40, in main
return command.run()
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\scripts\pserve.py", line 222, in run
app_spec, name=app_name, relative_to=base, global_conf=vars)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\paste\deploy\loadwsgi.py", line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\paste\deploy\loadwsgi.py", line 272, in loadobj
return context.create()
File "C:\Users\imonat\blueyellowpy\lib\site-packages\paste\deploy\loadwsgi.py", line 710, in create
return self.object_type.invoke(self)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\paste\deploy\loadwsgi.py", line 146, in invoke
return fix_call(context.object, context.global_conf, **context.local_conf)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\paste\deploy\util.py", line 55, in fix_call
val = callable(*args, **kw)
File "C:\Users\imonat\Desktop\Python_Scripts\blueyellow_pycharm_app\blueyellow_pycharm_app_init_.py", line 7, in main
config = Configurator(settings=settings)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\config_init_.py", line 329, in init
exceptionresponse_view=exceptionresponse_view,
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\config_init_.py", line 446, in setup_registry
self.include(inc)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\config_init_.py", line 776, in include
c = self.maybe_dotted(callable)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\config_init_.py", line 876, in maybe_dotted
return self.name_resolver.maybe_resolve(dotted)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\path.py", line 320, in maybe_resolve
return self._resolve(dotted, package)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\path.py", line 327, in _resolve
return self._zope_dottedname_style(dotted, package)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\path.py", line 376, in _zope_dottedname_style
found = import(used)
ImportError: No module named 'pyramid_django'
Process finished with exit code 1

in development.ini I just replaced "pyramid_django" with
"pyramid_chameleon" - I think you have to do it in setup.py also.
Stupid windows!
[image: pasted1]
Try that and see if it helps!
On Sat, Feb 25, 2017 at 3:38 PM IanM<EMAIL_ADDRESS>wrote:

Thanks Dan - I made the change per your recommendation but unfortunately
it seems the error grew!
[image: capture]
https://cloud.githubusercontent.com/assets/20530405/23334589/dbeff8ce-fb56-11e6-8097-e4ed2beef925.JPG
C:\Users\imonat\blueyellowpy\Scripts\python.exe "C:\Program Files
(x86)\JetBrains\PyCharm
2016.3.2\helpers\pycharm\pycharm_load_entry_point.py"
C:\Users\imonat\Desktop\Python_Scripts\blueyellow_pycharm_app\development.ini
Traceback (most recent call last):
File "C:\Program Files (x86)\JetBrains\PyCharm
2016.3.2\helpers\pycharm\pycharm_load_entry_point.py", line 12, in
sys.exit(f())
File
"C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\scripts\pserve.py",
line 40, in main
return command.run()
File
"C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\scripts\pserve.py",
line 222, in run
app_spec, name=app_name, relative_to=base, global_conf=vars)
File
"C:\Users\imonat\blueyellowpy\lib\site-packages\paste\deploy\loadwsgi.py",
line 247, in loadapp
return loadobj(APP, uri, name=name, **kw)
File
"C:\Users\imonat\blueyellowpy\lib\site-packages\paste\deploy\loadwsgi.py",
line 272, in loadobj
return context.create()
File
"C:\Users\imonat\blueyellowpy\lib\site-packages\paste\deploy\loadwsgi.py",
line 710, in create
return self.object_type.invoke(self)
File
"C:\Users\imonat\blueyellowpy\lib\site-packages\paste\deploy\loadwsgi.py",
line 146, in invoke
return fix_call(context.object, context.global_conf, **context.local_conf)
File
"C:\Users\imonat\blueyellowpy\lib\site-packages\paste\deploy\util.py", line
55, in fix_call
val = callable(*args, **kw)
File
"C:\Users\imonat\Desktop\Python_Scripts\blueyellow_pycharm_app\blueyellow_pycharm_app_
init.py", line 7, in main
config = Configurator(settings=settings)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\configinit.py",
line 329, in init
exceptionresponse_view=exceptionresponse_view,
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\configinit.py",
line 446, in setup_registry
self.include(inc)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\configinit.py",
line 776, in include
c = self.maybe_dotted(callable)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\configinit_.py",
line 876, in maybe_dotted
return self.name_resolver.maybe_resolve(dotted)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\path.py",
line 320, in maybe_resolve
return self._resolve(dotted, package)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\path.py",
line 327, in _resolve
return self._zope_dottedname_style(dotted, package)
File "C:\Users\imonat\blueyellowpy\lib\site-packages\pyramid\path.py",
line 376, in _zope_dottedname_style
found = import(used)
ImportError: No module named 'pyramid_django'
Process finished with exit code 1
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mikeckennedy/python-for-entrepreneurs-course-demos/issues/3#issuecomment-282510739,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APG86ESmXqozvrB014rUUix1bZ_6uv2Bks5rgJE3gaJpZM4MMGnx
.

It worked! Thanks so much for your help. Onward and upward.


feat: Validium mode

What ❔
This PR adds the necessary changes for supporting Validium mode on the zksync-era side. For the moment, these are:

Skipping some pubdata checks in Executor.sol when Validium mode is on.
The PubdataPricingMode should be initialized correctly depending on the mode.

Why ❔

Checklist

[ ] PR title corresponds to the body of PR (we generate changelog entries from PRs).
[ ] Tests for the changes have been added / updated.
[ ] Documentation comments have been added / updated.

TODOs

[ ] Using PubdataPricingMode we can get rid of the use of the pre-processor.
[ ] Passing the --validium-mode flag from zksync-era we can get rid of VALIDIUM_MODE env finally (the above point is required as we won't be using the env for the preprocessor).

Superseded by https://github.com/matter-labs/era-contracts/pull/236


Add abbr-tips

Help you remembering abbreviations by displaying tips when you can use them

https://github.com/Gazorby/abbr-tips

This looks pretty cool and useful @Gazorby. I'll see if we can merge this soon! Thank you. 👋

Thanks for the feedback!

Any update on this?

Thanks for the tip!

Thank you, @Gazorby! 🎉


✖ There was an error initializing your environment.

Hi I'm trying to initialize amplify on a blank project as a test but I am getting an error.
Everything seems to go as planned until the last line
? Do you want to use an existing environment? Yes
? Choose the environment you would like to use: dev
Using default provider  awscloudformation
⠋ Initializing your environment: dev(node:66730) ExperimentalWarning: The fs.promises API is experimental
✔ Initialized provider successfully.
✖ There was an error initializing your environment.
init failed
/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/queue-microtask/index.js:1
ReferenceError: globalThis is not defined
at Object. (/usr/local/lib/node_modules/@aws-amplify/cli/node_modules/queue-microtask/index.js:5:25)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:734:10)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:734:10)
I am using Xcode 12.4
Amplify 4.44.2

@andrewJermaine-ios what version of Node are you using? Can you provide more details around the other options you selected during the init workflow?

Thanks for getting back to me.
Node --version = 11.4.0
My selections during the init workflow:
Note: It is recommended to run this command from the root of your app directory
? Enter a name for the project amplifySetupTest
? Enter a name for the environment dev
? Choose your default editor: Visual Studio Code
? Choose the type of app that you're building ios
Using default provider  awscloudformation
AWS access credentials can not be found.
? Setup new user (Y/n) (node:71484) ExperimentalWarning: The fs.promises API is experimental
? Setup new user Yes
Follow these steps to set up access to your AWS account:
Sign in to your AWS administrator account:
https://console.aws.amazon.com/
Press Enter to continue
Specify the AWS Region
? region:  us-west-2
Created a new user with no problem and set that user as default profile. Literally all goes well until that last line.
The workflow also makes the amplifyconfiguration.json and the awsconfiguration.json files right before this line fails.
I tried this on amplify cli version 4.37.1 and got the same result.

Dawg I updated my node to 15.11.0 and it worked. Thank you for the suggestion. Your team rocks.


Add plotnine

It looks like ggpy has not been updated for some time, and plotnine has stepped in. It would be great if you could add this package to your figure (maybe as a leaf of ggpy).

Done.


Fixed CFRunLoopStop that will stop other image operation

The CFRunLoopStop(CFRunLoopGetCurrent()) will stop other image operation's runloop if not in its thread, because network connections are asynchronous. So stopping runloop must run in its own thread. @rs do this to prevent  it from happening in cancel, but not in other places like connectionDidFinishLoading:.

Considering the changes from #1578, we no longer rely on CFRunLoop and we already call cancelInternalAndStop on the current thread, this PR is no longer relevant. Closing.


catkin_make error

Hi Jesse,
Thanks for contributing this. I'm just getting familiar with ROS. After I installed Moveit and placed the package files in my catkin_workspace/src I then attempted to build using catkin_make. I received this error.
......
[ 90%] Linking CXX executable /home/matthew/moveo_ws/devel/lib/moveo_moveit/moveit_convert
[ 90%] Built target moveit_convert
/home/matthew/moveo_ws/src/moveo_ros-master/moveo_moveit/src/move_group_interface_coor_1.cpp: In function ‘int main(int, char**)’:
/home/matthew/moveo_ws/src/moveo_ros-master/moveo_moveit/src/move_group_interface_coor_1.cpp:126:41: error: cannot convert ‘moveit::planning_interface::MoveItErrorCode’ to ‘bool’ in initialization
bool success = move_group.plan(my_plan);
^
moveo_ros-master/moveo_moveit/CMakeFiles/move_group_1.dir/build.make:62: recipe for target 'moveo_ros-master/moveo_moveit/CMakeFiles/move_group_1.dir/src/move_group_interface_coor_1.cpp.o' failed
make[2]: *** [moveo_ros-master/moveo_moveit/CMakeFiles/move_group_1.dir/src/move_group_interface_coor_1.cpp.o] Error 1
CMakeFiles/Makefile2:2806: recipe for target 'moveo_ros-master/moveo_moveit/CMakeFiles/move_group_1.dir/all' failed
make[1]: *** [moveo_ros-master/moveo_moveit/CMakeFiles/move_group_1.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
I tried to troubleshoot and the closest I could find is this:
https://github.com/ros-planning/moveit/commit/4033e577b64ab7ef0e4473342168494f69ef9324#diff-c41191af5080252e849ad41db505eac3
I tried modifying the first file listed, but could not locate the 2nd and 3rd files in order to modify.
When I ran again, I still received an error.
Please help.

Hi @wheemzy1, I tried the following and now I'm being able to build:
on moveo_moveit/src/move_group_interface_coor_1.cpp on line 126:
remove:

ROS_INFO_NAMED("moveo", "Visualizing plan 1 (pose goal) %s", success ? "" : "FAILED");```

and replace with:
```move_group.plan(my_plan);```

I tried this, because move_group.plan returns apparently a MoveItErrorCode instead of boolean. (I don't know yet how to catch the status code correctly)

thanks Nez, that solved it

https://github.com/ros-planning/moveit/issues/759

Hi @wheemzy1 great, so we can implement the solution offered by @BryceStevenWilley are you gonna make the PR? Otherwise I will :)

go for it bud.


Ferricore Axe with Eternal Stella will not break the tree

Just Dire Things version
1.4.6
Minecraft Version
1.12.1
(Neo)Forge Version
21.1.72
Modpack & Version
ATM 10 - 1.7
Do you have optifine or Rubidium installed?
None
Describe the issue
The ferricore axe with tree feller alone worked fine. But it refuses to break the tree if eternal stella is installed.
Steps to reproduce

Craft a ferricore axe
Install tree feller upgrade
Install Eternal Stella
Try breaking a tree

Expected behaviour
The tree been chopped down and durability stay unchanged.
Screenshots
No response
Log files
No response
Additional information
No response

This should be fixed, thanks for the report!


Adding self to rearangment.yaml

When running the package, you experience the following warning:
UserWarning: In 'rearrangement': Defaults list is missing `_self_`. See https://hydra.cc/docs/1.2/upgrades/1.0_to_1.1/default_composition_order for more information
  warnings.warn(msg, UserWarning)

which could be in principle to solved by modifying mujoco_robot_environments/config/rearrangment.yaml file to something like this:
# mujoco simulation parameters
physics_dt: 0.001
control_dt: 0.005
gravity: [0.0, 0.0, -9.8]
nconmax: 1000
njmax: 2000
offheight: 640
offwidth: 640
znear: 0.0005
viewer: False # whether or not to use passive viewer

# weights and biases experiment tracking
wandb:
  use: True
  experiment_name: rearrangement_transporter
  tags: ["original transporter network"]
  notes: "Curently debugging."
  track_gradients: False
  resume: False
  resume_run:
    id: xxxxx # not currently being used
    load_epoch: 1

  metrics:
    pick_loss:
      step_metric: epoch
      summary: min

  tables:
    data_table:
      columns: ["placeholder"]

simulation_tuning_mode: False

defaults:
  - __self__ # additional line
  - arena: rearrangement_table
  - robots: franka_robotiq_2f85
  - task: rearrangement
  - dataset: default

Would it be possible to extend or that would create unexpected behaviours in the codebase?

It's ok in this case, it's just a warning for hydra migration behaviour and doesn't affect the config as we are no overriding the defaults list.


Refactor and use latest Humanizer version

This PR works for PowerShell 7.4. All tests pass. Some tests fail against 7.2 and 7.3. The latest version of Humanizer doesn't work on 5.1 with simple netstandard2.0 targeting. It might be possible to get working with some additional work, but I don't have much incentive to make that time investment.
The files have been reorganized. The Humanizer library is pulled from Nuget and includes all available cultures. I haven't tested any and culture isn't explicitly passed to any methods, but it might work.
Help has been added to all of the functions and markdown generated.
Tests have been updated to use Pester 5.5.
build.ps1 handles most of the CI work including generating the PSD1 dynamically. A GitHub Actions workflow runs PSScriptAnalyzer and tests for multiple versions of PS. The repo needs a NUGETAPIKEY secret for publishing to the PowerShellGallery.
Fixes #17, #10

@cdhunt I got latest version of Humaziner v3.0.0-beta.54 to work with PowerShell 5.1:

Here's how I got it to work.  I have created netstandard2.0 project as usual, and then just added Humanizer package and published the project, and then just copied Humanizer.dll and all System.*.dll to the PowerShellHumanizer module folder (you can include resource systems as well):
mkdir pshumanizer
cd pshumanizer
dotnet new classlib --framework netstandard2.0
dotnet add package Humanizer --version=3.0.0-beta.54
dotnet publish
  Determining projects to restore...
  All projects are up-to-date for restore.
  PSHumanizer -> C:\PSHumanizer\bin\Debug\netstandard2.0\PSHumanizer.dll
  PSHumanizer -> C:\PSHumanizer\bin\Debug\netstandard2.0\publish\

dir bin\Debug\netstandard2.0\publish\*.dll

 Directory of C:\PSHumanizer\bin\Debug\netstandard2.0\publish

2024-05-30  18:10           591 616 Humanizer.dll
2020-02-19  12:05            21 376 System.Buffers.dll
2023-10-31  17:01           252 680 System.Collections.Immutable.dll
2018-05-15  15:29            81 040 System.ComponentModel.Annotations.dll
2022-05-08  05:31           142 752 System.Memory.dll
2017-07-19  12:01           163 712 System.Numerics.Vectors.dll
2021-10-23  01:40            18 024 System.Runtime.CompilerServices.Unsafe.dll

The only extra change I had to make is to replace missing Humanizer.Localisation.TimeUnit type with Humanizer.TimeUnit in the TimeSpan.Types.ps1xml:
<?xml version="1.0" encoding="utf-8" ?>
<Types>
    <Type>
        <Name>System.TimeSpan</Name>
        <Members>
            <ScriptMethod>
                <Name>Humanize</Name>
                <Script>
                    [OutputType([System.String])]
                    param(
                        [Int]$precision = 1,
                        [Humanizer.TimeUnit]$maxUnit = [Humanizer.TimeUnit]::Year,
                        [String]$collectionSeparator = ', ',
                        [Boolean]$toWords = $false
                    )
                    [Humanizer.TimeSpanHumanizeExtensions]::Humanize(
                        $this,
                        $precision,
                        [CultureInfo]::CurrentCulture,
                        $maxUnit,
                        [Humanizer.TimeUnit]::Millisecond,
                        $collectionSeparator,
                        $toWords
                    )
                </Script>
            </ScriptMethod>
        </Members>
    </Type>
</Types>

@cdhunt I had bit of a time, and I went through your PR and change you need to make, to make it compatible with PS 5.1 is in dependencies.csproj to copy the nuget dependencies as well:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <Version>3.0.0-beta.54</Version>
    <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Humanizer" Version="3.0.0-beta.54" />
  </ItemGroup>

</Project>

And then in build.ps1 manifest:
    PowerShellVersion    = '5.1'

@cdhunt Also, there is a bug when you select localized resource in case of Polish culture. It can be coded also as pl-PL not only as pl, so it will fail to load resource:
$PSCulture
pl-PL

We can fix it by also checking ISO language format:
[System.Globalization.CultureInfo]::CurrentCulture.TwoLetterISOLanguageName

or
(Get-Culture).TwoLetterISOLanguageName


Replace logo with deer logo

On the top left of https://mcss.club/, replace the logo there with our official logo. You can use this version:
https://www.utm.utoronto.ca/math-cs-stats/sites/files/math-cs-stats/styles/full_width_m/public/shared/MCSS.png.webp?itok=GbZS_1hA

I can take on this task, I have already forked the repository and made changes to mine with the new logo, ready for a pull request. However, I wanted to mention that the logo is not aligned with the main content and that it follows the design of the old page. And if interested I can change the alignment.
I also wanted to know if we were going to redesign the website as a whole or, keep it pretty much the same and edit things around?

Maybe it is possible to do a color adjustment of our logo. I will pitch that to the marketing team! Thanks for noticing!

Update:
The new logo is being made by the marketing team and will be proposed soon, if it gets approved Ill update the site otherwise Ill revert to the initial logo we wanted to use.


force:source:push creates invalid package for Bot metadata

Summary
When using new force:source:push command we are not able to deploy Bot metadata. Doing the same with force:source:legacy:push works as expected.
Steps To Reproduce:

Create project with following files:
force-app/main/default/bots/My_Bot/My_Bot.bot-meta.xml
force-app/main/default/bots/My_Bot/v1.botVersion-meta.xml
Use new force:source:push command

Expected result
Following package.xml file is generated:
<?xml version="1.0" encoding="UTF-8">
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>My_Bot</members>
        <name>Bot</name>
    </types>
    <types>
        <members>My_Bot.v1</members>
        <name>BotVersion</name>
    </types>
    <version>54.0</version>
</Package>

And files included in the package look like this:

package/bots/My_Bot.bot

Actual result
Following package.xml file is generated:
<?xml version="1.0" encoding="UTF-8">
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>My_Bot</members>
        <name>Bot</name>
    </types>
    <types>
        <members>My_Bot.v1</members>
        <members>v1</members>
        <name>BotVersion</name>
    </types>
    <version>54.0</version>
</Package>

And files included in the package look like this:

package/bots/My_Bot.bot
package/botVersions/v1.botVersion

System Information
{
        "cliVersion": "sfdx-cli/7.147.1",
        "architecture": "darwin-x64",
        "nodeVersion": "node-v16.14.2",
        "pluginVersions": [
                "@oclif/plugin-autocomplete 0.3.0 (core)",
                "@oclif/plugin-commands 1.3.0 (core)",
                "@oclif/plugin-help 3.3.1 (core)",
                "@oclif/plugin-not-found 1.2.6 (core)",
                "@oclif/plugin-plugins 1.10.11 (core)",
                "@oclif/plugin-update 1.5.0 (core)",
                "@oclif/plugin-warn-if-update-available 1.7.3 (core)",
                "@oclif/plugin-which 1.0.4 (core)",
                "@salesforce/lwc-dev-server 2.11.0",
                "@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)",
                "alias 2.0.0 (core)",
                "apex 0.11.0 (core)",
                "auth 2.0.1 (core)",
                "community 1.1.4 (core)",
                "config 1.3.30 (core)",
                "custom-metadata 1.0.12 (core)",
                "data 0.6.13 (core)",
                "generator 1.2.2 (core)",
                "info 2.0.0 (core)",
                "limits 2.0.0 (core)",
                "org 1.11.2 (core)",
                "salesforce-alm 54.2.0 (core)",
                "schema 2.0.0 (core)",
                "sfdx-cli 7.147.1 (core)",
                "signups 1.0.0 (core)",
                "source 1.9.3 (core)",
                "telemetry 1.4.0 (core)",
                "templates 54.3.0 (core)",
                "trust 1.1.0 (core)",
                "user 1.7.1 (core)"
        ],
        "osVersion": "Darwin 21.3.0"
}

Additional information
Push will fail with An object 'v1' of type BotVersion was named in package.xml, but was not found in zipped directory error message.

This issue is also happening for force:source:deploy command

Hello @filiprafalowicz and @aswin-popcornapps, this issue should be resolved in yesterday's latest-rc (7.150.0)
Please give it a try and let us know if are still seeing issues. Thanks!

CLI version 7.150.0 has been promoted to latest. Closing this issue.


Updated to Python 3

Tested on Python 3.7. Refactored to remove dependency on custom versions of libraries. Includes bug fixes.

Looks cool! My concern is that this will break native macOS compatibility unless the user manually installs a newer version of python. Perhaps I should merge this into a python3 branch?

Yes, that's a good idea


[ISSUE #5637] Try to make AutoSwitchRoleIntegrationTest more stable

Make sure set the target branch to develop
What is the purpose of the change
Close #5637
Try to make AutoSwitchRoleIntegrationTest more stable
Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Codecov Report

Merging #5638 (786d502) into develop (6f9c2f1) will increase coverage by 0.00%.
The diff coverage is 8.69%.

@@            Coverage Diff             @@
##             develop    #5638   +/-   ##
==========================================
  Coverage      42.41%   42.41%
- Complexity      7963     7973   +10
==========================================
  Files           1023     1023
  Lines          71454    71475   +21
  Branches        9442     9444    +2
==========================================
+ Hits           30305    30318   +13
- Misses         37309    37317    +8
  Partials        3840     3840

Impacted Files
Coverage Δ

...q/proxy/service/message/ClusterMessageService.java
13.46% <ø> (ø)

...ocketmq/proxy/service/mqclient/MQClientAPIExt.java
36.45% <0.00%> (-2.25%)
:arrow_down:

...ketmq/store/ha/autoswitch/AutoSwitchHAService.java
56.06% <ø> (ø)

...he/rocketmq/proxy/processor/ConsumerProcessor.java
47.03% <40.00%> (-0.17%)
:arrow_down:

...va/org/apache/rocketmq/store/FlushDiskWatcher.java
81.25% <0.00%> (-9.38%)
:arrow_down:

...org/apache/rocketmq/store/ha/WaitNotifyObject.java
80.35% <0.00%> (-5.36%)
:arrow_down:

...tmq/remoting/protocol/body/ConsumerConnection.java
95.83% <0.00%> (-4.17%)
:arrow_down:

...mq/store/ha/autoswitch/AutoSwitchHAConnection.java
71.35% <0.00%> (-1.36%)
:arrow_down:

.../apache/rocketmq/store/ha/DefaultHAConnection.java
65.86% <0.00%> (-1.21%)
:arrow_down:

.../org/apache/rocketmq/store/ha/DefaultHAClient.java
61.53% <0.00%> (-0.52%)
:arrow_down:

... and 13 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Stripe API update [Breaking change]

This PR will update the Stripe API to the most recent version (changes here).

This is a breaking change. Customers and Charges will now have sources instead of cards.

This still assumes that all sources of a customer are cards, there's no Bitcoin support right now.

This still has the customers/cards endpoints since the Stripe gem has that problem. See stripe/stripe-ruby#215

No version bump here, I'll leave that to the maintainers.

This fixes #189

Thanks for the PR! Can you write comments around the code that will become irrelevant once Stripe resolves stripe/stripe-ruby#215?

@mindeavor so Stripe just released a new version 1.20.1 that fixes the problem. I've removed the code and bumped the required Stripe version.

Thank you!

Good work!


Error in FinRL for Quantitative Finance  for multiple stocks, Missing parameters in DRLAgent.DRL_prediction, which are test_data and test_obs

trade = data_split(processed_full, '2019-01-01','2021-01-01')
e_trade_gym = StockTradingEnv(df = trade, turbulence_threshold = 380, **env_kwargs)
df_account_value, df_actions = DRLAgent.DRL_prediction(
model=model_sac,
environment = e_trade_gym)

in env_stocktrading.py
in line 354
def save_action_memory(self):
if len(self.df.tic.unique())>1:
# date and close price length must match actions length
date_list = self.date_memory[:-1]
df_date = pd.DataFrame(date_list)
df_date.columns = ['date']
        action_list = self.actions_memory
        df_actions = pd.DataFrame(action_list)
        df_actions.columns = self.data.tic.values
        df_actions.index = df_date.date
        #df_actions = pd.DataFrame({'date':date_list,'actions':action_list})
    else:
        date_list = self.date_memory[:-1]
        action_list = self.actions_memory
        df_actions = pd.DataFrame({'date':date_list,'actions':action_list})
    return df_actions

date_list in fact is a empty list
so here df_date.columns = ['date'] will cause error
I have not solve this error, I think this error is cause by the pandas version.
@louisowen6
can I see your pip list?

Hi @xjdbie96, I'm using the requirements.txt from the docker folder

Hi @xjdbie96, I'm using the requirements.txt from the docker folder

ok,pandas version is the same.I have used earlier version for FinRL .the earlier version can work.but after update,the trade code appear error for below:
trade = data_split(processed_full, '2019-01-01','2021-01-01')
e_trade_gym = StockTradingEnv(df = trade, turbulence_threshold = 380, **env_kwargs)
df_account_value, df_actions = DRLAgent.DRL_prediction(
model=model_sac,
environment = e_trade_gym)
I try to understand the code and
I still work on it to fix the problem .

ok,pandas version is the same.I have used earlier version for FinRL .the earlier version can work.but after update,the trade code appear error for below:
trade = data_split(processed_full, '2019-01-01','2021-01-01')
e_trade_gym = StockTradingEnv(df = trade, turbulence_threshold = 380, **env_kwargs)
df_account_value, df_actions = DRLAgent.DRL_prediction(
model=model_sac,
environment = e_trade_gym)
I try to understand the code and
I still work on it to fix the problem . @louisowen6


Implement Buf for std::io::Take<&[u8]>.

I stumbled upon https://github.com/rust-lang/rust/issues/27269 and noticed that it is fixed now, so I added an implementation.  The implementation only covers Take<&[u8]>, but I can't think of any more general type this could be implemented for.

The build fails for Rust 1.15, which does not yet have the new methods.  So if this version of Rust still needs to be supported, we need to protect this by a feature flag, which probably isn't worth it.

I will track this for the next breaking change 👍 Thanks.


Added Maven profile for Mongo build.

Description

What Changed?
Added Maven profile for Mongo build.

Tests
None, though manually tested mvn -Pmongodb,geoindexing jetty:run
Links
Jira
Checklist

[ ] Code Review
[ ] Squash Commits

People To Reivew
Someone please! :-)

can you fix the pull request to have only the relevant commits

asfbot build

Re: non-relevant commits - I regret that I am new to git and may have trashed my fork and may have to redo this pull request.

if you need help, let me know

Hi Andrew,
I think what happened is this:

I forked your repo.
A little while after, but before branching for my actual change, I
attempted to sync my fork following the instructions here:
https://help.github.com/articles/syncing-a-fork/. I pushed the changes
to my github fork after the merge - this appears to have assigned all new
commit ids for each of the commits that were merged from your upstream repo
during the sync to my local copy of my fork.
I created my branch and made the single commit I wanted to have pulled.
I created the pull request not realizing that I had actually created
all of those additional, redundant, commits during the sync. It is these
commits that I could not figure out how to get rid of.

It looks like my pull request was accepted and I hope that I have not
messed anything up in the process :-(
I think I need to find a better way to keep my fork up to date with the
upstream version such that I don't have re-commits of all the commits that
were made on your fork. Any suggestions you have would be appreciated.
Best Regards,
Lynne Lawrence
On Tue, Jan 3, 2017 at 2:25 PM, Andrew Smith<EMAIL_ADDRESS>wrote:

if you need help, let me know
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/apache/incubator-rya/pull/133#issuecomment-270200225,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACa8iUOpYDH1ExDLris_u7CigPBcc96fks5rOqCSgaJpZM4LUXhB
.

--
Lynne Lawrence
MACE | SNC
<EMAIL_ADDRESS>

I rarely(reads: never) keep my master up to date.  I generally make new branches straight from apache master and just keep them in my fork.  Not the best practice in the world, but its easy.


Rename Parameter.truth

Maybe call it "goal", or overload the term "target"?

There's not much value in renaming this.


Certificate generation fails with custom DocumentRoot

We use Capistrano to deploy sites to Plesk, which keeps previous deployments in folders on the server and references the current (latest) deployment folder via a 'current' symlink under the document root (example here).  As such, we reconfigure the Apache DocumentRoot via the Plesk 'Apache & nginx Settings' panel to be this symlink, i.e.:
DocumentRoot "/var/www/vhosts/getcodee.co.uk/httpdocs/current"

Screenshot: http://cloud.deucecreative.co.uk/0w0b1Y1D1Y1g
Unfortunately, certificate generation fails when this non-standard DocumentRoot is used (screenshot of error).
Temporarily removing the custom directives allows the certificate to be generated successfully.

@mattsims why don't you set relative path to the symlink (httpdocs/current in your case) in Hosting Settings > Document root?
I also use Capistrano for RoR projects and never set DocumentRoot in Apache settings.

@xgin Good thinking – that works! Thanks :+1:


IndexError: list index out of range

Not sure what is causing this issue.... anyone have an idea? it does it with every account that i put in there.

I've cloned a clean install, running into the same issue. Mac OS X.

How long have you been running it for? Please run it for at least 5 minutes and then try again.

@modrzew its been on for about 20 minutes now, but nothing has appeared on the map, and it says exception next to all of the workers in the console

Yeah same, got some exceptions at first but they recovered. Others ended up as KILLED. Sightings table is empty. Running on the fort branch.

I was running on the master branch, but i switched over to fort and its still doing the same thing.

to all the people reporting no pokemon seen: have you checked the worker.log ?
and did you get the .so file (or your operating systems variation)?

I think i might have forgotten to do that. where can i grab a copy of the .so file?

Looks like theres several different errors that pop up in the log
Traceback (most recent call last):   File "C:\Users\server\Desktop\pokeminer-master\worker.py", line 129, in run     self.main()   File "C:\Users\server\Desktop\pokeminer-master\worker.py", line 170, in main     map_objects = response_dict['responses'].get('GET_MAP_OBJECTS', {}) TypeError: sequence index must be integer, not 'str'
Traceback (most recent call last):   File "C:\Users\server\Desktop\pokeminer-master\worker.py", line 101, in run     password=config.ACCOUNTS[self.worker_no][1],   File "c:\users\server\desktop\pokeminer-master\src\pgoapi\pgoapi\pgoapi.py", line 164, in login     response = self.app_simulation_login()   File "c:\users\server\desktop\pokeminer-master\src\pgoapi\pgoapi\pgoapi.py", line 141, in app_simulation_login     response = request.call()   File "c:\users\server\desktop\pokeminer-master\src\pgoapi\pgoapi\pgoapi.py", line 210, in call     request.activate_signature(lib_path)   File "c:\users\server\desktop\pokeminer-master\src\pgoapi\pgoapi\rpc_api.py", line 85, in activate_signature     self._signature_lib = ctypes.cdll.LoadLibrary(lib_path)   File "C:\Python27\lib\ctypes\__init__.py", line 440, in LoadLibrary     return self._dlltype(name)   File "C:\Python27\lib\ctypes\__init__.py", line 362, in __init__     self._handle = _dlopen(self._name, mode) WindowsError: [Error 126] The specified module could not be found

@Aiyubi I compiled a libencrypt.so myself from another repo. After placing that into the folder I no longer got the error that I needed to install libencrypt.so so I'd assume its working correctly.
When I look at the worker.log there are no fatal errors, only the occasional exception which I mentioned earlier.
Traceback (most recent call last):
  File "worker.py", line 129, in run
    self.main()
  File "worker.py", line 170, in main
    map_objects = response_dict['responses'].get('GET_MAP_OBJECTS', {})
TypeError: sequence index must be integer, not 'str'

@Vashiru are you still not getting anything from the API? Did you investigate it further?

@nern9 for Windows you should use encypt.dll, 32 or 64 bit depend on your Windows. you get error on get_map_object because U6 things, just like when API changed

@modrzew I'll give it another go tonight. Been busy the last few days so haven't tried again.

@modrzew Gave it another go. Failed at first, decided to download libencrypt from pogom rather than use the one I compiled, that seemed to have solved it. So albeit the other one not throwing any errors, it was breaking something somewhere down the drain. However when you have an empty database, the list index out of range error is still not resolved.


installer: Allow adding more nodes to running cluster

+1
(Thought this is already possible?)

@philiplb you can manually add nodes to a cluster, this is for being able to do so through the installer UI

you can manually add nodes to a cluster
How?

@aaronshaf simply starting another node with the discovery token or using the --peer-ips argument is enough to add a new node to the cluster.
Note that this node will not participate in consensus so the existing nodes will need to remain members of the cluster until dynamic membership is implemented.
You can remove this new node by simply powering it down or terminating the flynn-host process.
Do not remove nodes from the existing set used to bootstrap due the consensus issue mentioned above.

@josephglanville is dynamic membership implemented now? What do you do if one of your original machines used to bootstrap just dies and never comes back and you have to setup a new one?

It's not yet implemented though changes have been merged upstream that may make this possible. We will be looking into this shortly along with other improvements to discoverd.

I think this is better managed in the controller/dashboard/cli with platform-aware clusters (#2687).


Add coverage for NeuralSearch class

Description
Adds test coverage for the main plugin class file
Related Issues
Part of #429
Check List

[x] New functionality includes testing.
[x] Commits are signed per the DCO using --signoff.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@dbwiddis can you check why gradle check is failing?

@dbwiddis can you check why gradle check is failing?

Unrelated to my PR:
Tests with failures:
 - org.opensearch.neuralsearch.query.HybridQueryWeightTests.testSubQueries_whenMultipleEqualSubQueries_thenSuccessful
 - org.opensearch.neuralsearch.query.HybridQueryWeightTests.classMethod
 - org.opensearch.neuralsearch.search.query.HybridQueryPhaseSearcherTests.testQueryResult_whenMultipleTextSubQueriesWithSomeHits_thenHybridResultsAreSet
 - org.opensearch.neuralsearch.search.query.HybridQueryPhaseSearcherTests.classMethod
446 tests completed, 4 failed

I can keep force-pushing until it's green but generally it's easier for repo maintainers to retry just the failed tests.

@dbwiddis can you add
@ThreadLeakScope(ThreadLeakScope.Scope.NONE)

HybridQueryWeightTests and HybridQueryPhaseSearcherTests classes and add it into your PR ?

@dbwiddis can you check why gradle check is failing?

Looking into the log, it seems it's timing out and it's likely related to thread locking.  Multiple threads show
  2> 	Locked synchronizers:
  2> 	- java.util.concurrent.ThreadPoolExecutor$Worker@386f0da3

This makes me suspect some interaction with this PR which does mock a threadpool and an ExcecutorService to be returned by the threadpool:
when(threadPool.executor(anyString())).thenReturn(executorService);

I expected that mock to be isolated only to this test, and of course when run in isolation the test passes.  However, looking at the plugin createComponents, I see this line:
https://github.com/opensearch-project/neural-search/blob/f58d989c68016b37e4c5e6354ab26c815a8ba7d5/src/main/java/org/opensearch/neuralsearch/plugin/NeuralSearch.java#L101C9-L101C22
That leads to this line:
https://github.com/opensearch-project/neural-search/blob/f58d989c68016b37e4c5e6354ab26c815a8ba7d5/src/main/java/org/opensearch/neuralsearch/executors/HybridQueryExecutor.java#L60
That sets the value of a static variable, which is therefore no longer isolated to that test: it remains stuck with a mocked value for any test run after this one.
https://github.com/opensearch-project/neural-search/blob/f58d989c68016b37e4c5e6354ab26c815a8ba7d5/src/main/java/org/opensearch/neuralsearch/executors/HybridQueryExecutor.java#L31
I could replace the mock with a real thread pool and executor, somewhat like this pattern we use in Flow Framework and that I've carried over into ML Commons in a few places:
public class ProcessNodeTests extends OpenSearchTestCase {

    private static TestThreadPool testThreadPool;

    @BeforeClass
    public static void setup() {
        testThreadPool = new TestThreadPool(
            ProcessNodeTests.class.getName(),
            new ScalingExecutorBuilder(
                PROVISION_WORKFLOW_THREAD_POOL,
                1,
                Math.max(1, OpenSearchExecutors.allocatedProcessors(Settings.EMPTY) - 1),
                TimeValue.timeValueMinutes(5),
                FLOW_FRAMEWORK_THREAD_POOL_PREFIX + PROVISION_WORKFLOW_THREAD_POOL
            )
        );
    }

    @AfterClass
    public static void cleanup() {
        ThreadPool.terminate(testThreadPool, 500, TimeUnit.MILLISECONDS);
    }

But this works because the static variable is confined to this class and used only within this test.  If I used this pattern in this test, it would still initialize the TaskExecutor in HybridQueryExecutor to this pool, and it would break tests when it was shut down.
I could leave it running for the entire duration of the test suite, but OpenSearchTestCase has leak detection mechanisms, which you've alluded to with the @ThreadLeakScope(ThreadLeakScope.Scope.NONE) annotation.
This still doesn't solve the underlying problem:  there is no way to ever execute createComponents without a real thread pool you want to use for all the tests, that you can shut down at the end of your testing.
Putting aside the question of whether a static object initialized by a different class is even a good idea at all (which I don't think it is), at this point I would prefer to just remove the perfunctory test of createComponents() whose entire raison d'être is to exercise the method and cover those lines to increase an abitrary coverage metric.

TLDR: I'll push a commit removing the coverage for createComponents() and leave it to a more well thought out design.

OpenSearch has a direct executor service that simulates the (Runnable::run) default behavior of the non-initialized taskExecutor, so I used that.
I still think there's a thread leak in the existing implementation, but that's not part of this PR.


Start Roadmap document

This project needs a feature roadmap. Create a roadmap document to contain planned features and a basic timeline.

Lets consider adding a basic 'Features' checklist/section to the README.


Remove .cpp, enum.d.ts, shims.d.ts

You can safely remove those 3 files (+ remove ref from pxt.json) since they don't do anything. having C++ triggers a cloud compilation which could be avoided here.

+1

OK - they were left from experimenting and learning how to incorporate C++ code into Microbit packages.

Can you remove them?


fix enzyme + sinon + webpack issue

cc/ @coopy
This change to the test webpack config allows us to start using Enzyme for testing. See this enzyme issue https://github.com/airbnb/enzyme/issues/47
I tested this change via node_modules in VictoryChart

Looks Reasonable To Me!


Fix/english particle verbs to dev

Correct results for pattern.en.lemma/pattern.en.conjugate/pattern.en.tenses with particle verbs by splitting the input into verb stem and sattelites (first word and everything else) before doing the base class _Verb processing.
example:
>>> import pattern.en as enp
>>> print(enp.conjugate("dispose of", list(enp.tenses("discarded"))[0])) # old result was: 'dispose offed'
'disposed of'

Coverage decreased (-0.1%) to 68.392% when pulling 9a51869d6f688d34e6604c5dd877ad016da00e80 on JakobSteixner:fix/english-particle-verbs-to-dev into 17f215438166729114762c3d9b3179dacd31490d on clips:development.