Workflows improvements

Codecov Report

Merging #149 (4b8996c) into master (bce4a65) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #149   +/-   ##
=======================================
  Coverage   89.51%   89.51%
=======================================
  Files          11       11
  Lines        1192     1192
=======================================
  Hits         1067     1067
  Misses        125      125

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 bce4a65...4b8996c. Read the comment docs.


[Feature Request] Swipe in full screen to next picture

Would be nice, when it is possible to swipe between pictures, when they are in full screen

would be a nice feature. I'll focus on the app starting from February


TONC CBB Demo display wrong sprites/backgrounds on screen

Compare to

Note that MGBA displays

which doesn't match either...

cbb_demo.zip

So only thing missing for me is the sprite in the top left, dispcnt is set with bg mode 0, bg 0,1 and objs displayed.
The sprite in the top left is sprite 0 and is enabled at 8*8 and priority 0 so no reason it shouldn't appear


managed-gitops: Upgrade OpenShift GitOps Subscription to v1.10

Upgrade OpenShift GitOps Operator Subscription to gitops-1.10 channel.

[{"lastTransitionTime":"2023-11-04T15:57:43Z","message":"Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = `kustomize build \u003cpath to cached source\u003e/components/sandbox/toolchain-host-operator/development` failed exit status 1: Error: kustomization.yaml is empty","type":"ComparisonError"}]
toolchain-member-operator-in-cluster-local failed with:
[{"lastTransitionTime":"2023-11-04T15:57:43Z","message":"Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = `kustomize build \u003cpath to cached source\u003e/components/sandbox/toolchain-member-operator/development` failed exit status 1: Error: kustomization.yaml is empty","type":"ComparisonError"}]
Switched to branch 'upgrade-to-openshift-gitops-110'
Your branch is up to date with 'origin/upgrade-to-openshift-gitops-110'.
Error: error when bootstrapping cluster: reached maximum number of attempts (2). error: exit status 1
make: *** [Makefile:19: ci/test/e2e] Error 1
{"component":"entrypoint","error":"wrapped process failed: exit status 2","file":"k8s.io/test-infra/prow/entrypoint/run.go:84","func":"k8s.io/test-infra/prow/entrypoint.Options.internalRun","level":"error","msg":"Error executing test process","severity":"error","time":"2023-11-04T16:04:04Z"}
error: failed to execute wrapped command: exit status 2

/retest

/hold


Error: Reverse for 'avatar_change' not found

My code had been working fine since long with this package in django but suddenly, it has stopped with the following message.
Reverse for 'avatar_change' not found. 'avatar_change' is not a valid view function or pattern name.
I verified, all is setup correctly. Look like the problem is in this code:
href="{% url 'avatar_change' %}"
I noticed the django-avatar code was changed 2 weeks ago to fix the references. Could that be causing it?

I fixed the issue after discovering that indeed the url reference were modified 2 weeks ago in django-avatar.
I made the changed in url calls in my code and that fixed it.
I opened the ticket to report that your documentation is out of sync with the application changes.

I fixed the issue after discovering that indeed the url reference were modified 2 weeks ago in django-avatar.
I made the changed in url calls in my code and that fixed it.
I opened the ticket to report that your documentation is out of sync with the application changes.

What did you do to fix it?

Change log 8.0 says
'Use path and path converters (changes all url names from prefix avatar_ to avatar:.)'
avatar_change is now avatar:change

I fixed the issue after discovering that indeed the url reference were modified 2 weeks ago in django-avatar.
I made the changed in url calls in my code and that fixed it.
I opened the ticket to report that your documentation is out of sync with the application changes.

What did you do to fix it?

Sorry for the delay in responding. I did precisely what georgemahnuson wrote above.
I changed  it to {% url 'avatar:change' %}


Add _experimental_buffer_containers

Add _experimental_buffer_containers to app.function(...) and app.cls(...), as well as function definition proto.

(Could also use small unit test that verifies that when an @app.function is decorated with this field, the underlying proto is annotated as you'd expect.)


pkg/bpf: generate ASM output if debug enabled

pkg/endpoint: add GetDebug to Owner interface
daemon: regenerate bindata to account for changes in pkg/bpf/join_ep.sh
Add GetDebug to Owner interface, implement in daemon, and utilize this method to determine whether debug mode is enabled to pass in as a parameter to join_ep.sh to generate ASM when BPF is generated.
Signed-off by: Ian Vernon<EMAIL_ADDRESS>

@tgraf should we also generate ASM output of bpf_netdev, bpf_lb and bpf_overlay?

I think this is fine to get started. There is no code generation for these static programs so one can always invoke clang manually to generate it.


Explore attestation of docker containers

So that we can ensure that the container is running the expected code

@shankari will update with potential solutions
both @shankari and @njriasan will explore

@shankari did you find the Linux tools you were discussing? I did a brief search and didn't find anything. I assumed the easiest thing to do would be use the docker image, which appears to be a SHA256 hash of the image contents (with some layering component too that I'm not sure what to investigate about this). This seems like the most natural check because docker added this support primarily for this purpose. Of course using a hash introduces issues when making small changes, but I think its reasonable to assume that like all other software when updates are release you have to decide whether or not to upgrade.

@njriasan I can't find it 😦 I know I saw it earlier, but I looked through both apache and LF and I can't find anything related to this. I will take another look tomorrow am, but right now, I assume that we will have to roll our own.

I think this was maybe SPIRE https://spiffe.io/spire/concepts/
The name sounds vaguely familiar, but I can't remember where I saw it if so

The Security and Compilance section of the CNCF has some interesting projects linked as well.
https://landscape.cncf.io/

Docker also has built-in capability tuning based on AppArmor
https://opensource.com/business/15/3/docker-security-tuning

aha! spire is in fact part of the CNCF. Dunno why they are not in the main projects list.

Inspired by production infrastructure at Facebook, Google, Netflix, and more, SPIFFE and SPIRE launched in December 2017 and were invited into the CNCF in March 2018.

Hm. It looks like it is not there any more
https://www.cncf.io/projects/
Maybe it was removed, or chose to remove itself. I must have seen it when it was still part of the CNCF.

Here is another project that I found: https://github.com/GoogleContainerTools/container-structure-test.
You should be able to check hashes through command tests and then file existence/permissions and container permissions also seem reasonable to integrate. I don't know if you think we need an intricate example of using a tool like this but its probably at least useful to mention in the thesis. Personally I think this seems like the most straightforward to implement but I also haven't explored the other projects in great detail (this just seemed so straightforward).


(WIP) 470 dynamic attributes in alarms tab

The ability to preview attributes by selecting or un-selecting checkboxes.
Resolves my feature request #470

@sergibondarenko @lmangani you need to check style etc.


Fill in Stub Functions for Microphone

[x] Commit reference
[x] Describe how to use function
[x] Describe design decisions
[x] Describe test

I am placing this issue under review. Checkmarks 2-4 are described in section 3 of my Individual Parts Report.
Link:
https://docs.google.com/document/d/1B9sd3u-u8swBZ98E6752jMQrhfnkgwvYMWnpLR8MzK4/edit?usp=sharing

Reviewed and done


Added EMPD2 samples contributed by Remazani

Hi! I'm your friendly automated EMPD-admin bot!
Thank you very much for your data submission! I will now run some tests on your data.
In the meantime: please review your test data on the EMPD viewer using
this link: https://EMPD2.github.io/?repo=EMPD2/EMPD-data&branch=Remazani&meta=Remazani.tsv
This bot is helping you merging your data. I am checking for common issues and I can fix your climate, country or elevation data.
Type @EMPD-admin help in a new comment in this PR for usage information.
Make sure, that all the commands for the @EMPD-admin are on one single line and nothing else. Only
@EMPD-admin help
will work, not something like
<other words> @EMPD-admin help
or
@EMPD-admin help <other words>
Note that you can also run these tests on your local machine with
pytest.

Hi! I'm your friendly automated EMPD-admin bot!
This is just to inform you that I tested your data submission in your PR (Remazani.tsv) and found it in an excellent condition!

@EMPD-admin finish --commit

Hi! I'm your friendly automated EMPD-admin bot!
I processed your command and hope that I can help you!

finish --commit

Finished the PR!
You may want to have a final look into the viewer (https://EMPD2.github.io/?repo=EMPD2/EMPD-data&branch=Remazani) and then merge it.


[ADD]: KillPentest Tool

AIM
Pentest the Modern Web
Features
It is an All-In-One Tool for Penetration Testing. This is specially programmed for Penetration Testers and Security Researchers to make their job easier, instead of launching different tools for performing different task.
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (optional)
[X] I am a GSSoC'23 contributor

/assign


No grey filler

Allows you to load PJPEGs by pass rather than by line

Whoops! Meant to do this on the fork, sorry


Format

I think it's good to have consistent formatting across the Trixi ecosphere, see also https://github.com/trixi-framework/P4est.jl/pull/111.

I didn't format the wrapped file src/Libt8.jl since this is autogenerated.


Add threading model documentation

Adding documentation about the threading model of the versions >= 5.0.

Since the threading is a major change from v4 to v5, maybe it could be in the main Readme for now instead of being hidden away in its own document?

Thanks @GeoffKarnov !


Fix npm run start script options not forwarded with npm

Previously mentioned here https://github.com/roots/sage/commit/f5c5d2844c438ba53e9571c67e96871a3b92b1e8#r33668278
This is a known difference between yarn and npm and will eventually break with yarn once backwards compatibility is removed.
Currently it will cause this warning with Yarn:

warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.

Once Yarn removes the backwards compatibility this script will cause the following broken command to run:
webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js -- --watch

As this will eventually break I'm not sure if this the way to go but sending a PR so the issue is documented.
This behavior change was added in Yarn 1.0.0 with PR https://github.com/yarnpkg/yarn/pull/4152 where there's some discussion regarding the matter.

thank you!


Make it customizable

right now you can't change font, and some other things.
themes could be better
bindings and dependency properties could be much better

Is possible change font size ?

Hello @stefanofalasca,
if you want to change the font size of a menu entries, you can change the property FontSize of TextBlock with x:name="Txt" into the file MaterialMenu -> MenuButton.xaml


NtDll

Hello Sir just interested if you could complete NtDll implementation ?
Also a dll : win32u.dll

Ntdll is huge and is mostly low level driver functions. I believe most of the functions would never get used by the public. If there are specific functions you would like me to include, please list them here and I will include them.

I will look into win32u

Yes yes they seems to be similar with user32.dll
also do you implement SetDeskWallpaper for user32 ? I've searched it in your src but didn't find it.

I have not implemented either SetDeskWallpaper (see your issue #183) and likely won't do NtUserShowSystemCursor since both are undocumented and not supported API by Microsoft.

Okay okay no problem :)


Negative values from customer_lifetime_value

How can should I interpret the negative CLV from customer_lifetime_value?
I already turn on q_constrain on ggf.fit.
Thank you!

This is too broad a question and is mostly answered in the docs website. Besides doing a quick search on Google, please take a look at the docs before posting questions here.


Change Cloud auth to only use the encoded user id

Summary
This PR removes a check for the MM user's id in the HTTP header. This PR is sort of an RFC to see if this is something we can proceed with.
Here's a description of the flow before this PR (taken from https://github.com/mattermost/mattermost-plugin-jira/issues/606#issuecomment-689962904):

We generate a secret at runtime to store in a one time store
We create a JWT containing the user's id and the secret, and to have Jira place it in the URL params when the iframe is loaded
When the user is loading the iframe, we check:

The JWT is valid, and the secret it contains matches what we have tied to the user in the one time store
The user's MM session cookie is valid

With this PR, we skip the MM cookie check, and just use the encoded payload that contains the user id and OTS secret.
Ticket Link
Fixes https://github.com/mattermost/mattermost-plugin-jira/issues/606

Codecov Report

Merging #654 into master will increase coverage by 0.08%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #654      +/-   ##
==========================================
+ Coverage   34.48%   34.57%   +0.08%
==========================================
  Files          51       51
  Lines        5686     5677       -9
==========================================
+ Hits         1961     1963       +2
+ Misses       3532     3521      -11
  Partials      193      193

Impacted Files
Coverage Δ

server/user_cloud.go
0.00% <0.00%> (ø)

server/subscribe.go
68.89% <0.00%> (+0.38%)
:arrow_up:

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 f2e35fc...1955db6. Read the comment docs.

@crspeller @levb This is insecure, and we're going with a different fix. Thanks for the review!


Fix shared library references for MIGraphX driver

Prior to ROCm 3.9, MIGraphX sets a library search path using ldconfig.  This happens in the postinstall section of the *.deb package control script.  The postinstall section is generated using the rocm-cmake packages and more particularly the ROCmCreatePackake.cmake script.
The library search path is used by the migraphx-driver binary program, but can be over-ridden setting LD_LIBRARY_PATH.
In the ROCm 3.10 release, packages started getting built with ldconfig capability disabled - to enable more than one ROCm to be installed at the same time.  This broke the default path that was being set for MIGraphX.  migraphx-driver still works, but now LD_LIBRARY_PATH must be set explicitly.
This defect is to mark that issue and note we need to set the library path, perhaps RUNPATH or rpath as described in SWDEV-264994.

If release doesn't rely on ldconfig, we at least need to improve user documentation to avoid this usability issue.

If release doesn't rely on ldconfig, we at least need to improve user documentation to avoid this usability issue.

Updated MIGraphX documentation.


Enhance the contact page - as it has inconsistent spacing

The current contact page lacks professional styling and has cluttered elements that reduce its visual appeal. Enhancing the page involves adding more styling and proper spacing to create a clean, organized layout while maintaining the existing interface. This will improve readability and provide a more polished and professional appearance.
i would like to contribute to the project if needed under gssoc

please assign me this issue to me under gssoc 24
i will complete it very soon


launcher: auto-enable the Google geocoding API & get API key

Let's make the launcher do all the https://developers.google.com/maps/documentation/geocoding/start#get-a-key stuff so users don't need to.
Part of creating an instance should enable the API & get the key somehow.

https://camlistore-review.googlesource.com/#/c/camlistore/+/15866

https://perkeep-review.googlesource.com/c/perkeep/+/15866/3 was making the geocoding key available to the web UI, because the map aspect uses geocoding lookups too. But @bradfitz says the web UI should not have to do lookups itself (which in theory sounds right), so I've reverted that for now. I'll revisit once I remember why I had to do that for the map aspect.

@bradfitz after reading the code again, I now have the answer about why the map aspect uses geocoding lookup.
When loading the map aspect, the default behaviour (and what you were saying we should do) is indeed that we compute the relevant coordinates on where to automatically zoom in, from the results of the search query.
However, when the search bar has either a "loc" or a "locrect" predicate, I elected to make them take priority over the search results computation, and draw a rectangle on the map representing the area that was directly requested, like so:
https://storage.googleapis.com/camlistore-screenshots/Screenshot_20170622-232359.png
which seems like a nice feedback feature to me.
I guess I can remove it for the "loc" case, and then there's no need for the geocoding lookups anymore, and the feature will still work for a "locrect" case.
Or I can make the geocoding key available to the web UI, as I had initially done in the CL above, to make the "loc" case work again.

Remove all geocoding support from the browser.
Only zoom based on what the server says in its reply.

https://perkeep-review.googlesource.com/c/perkeep/+/17846


[FLINK-29615] Retain active subtasks in TaskMetricStore when fetching metrics to accommodate dynamic scaling

What is the purpose of the change
(For example: This pull request makes task deployment go through the blob server, rather than through RPC. That way we avoid re-transferring them on each deployment (during recovery).)
This pull request removes metrics of nonexistent subtasks when adaptive scheduler lowers job parallelism (aka, num of subtasks decreases).
Brief change log
Thanks to FLINK-29132 & FLINK-28588,  Flink will now update current execution attempts when updating metrics. Since the active subtask info is included in the current execution attempt info, we are able to retain active subtasks using the current execution attempt info.
Verifying this change
Added UT to test the case where the number of subtasks decrease and tested on standalone clusters as the following:

Start a job with reactive mode enabled on a standalone cluster.
Remove TMs to decrease parallelism.
Checked that extra subtasks are removed in backpressure monitoring page.

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no) no
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no) no
The serializers: (yes / no / don't know) no
The runtime per-record code paths (performance sensitive): (yes / no / don't know) no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know) no
The S3 file system connector: (yes / no / don't know) no

Documentation

Does this pull request introduce a new feature? (yes / no) no
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@flinkbot run azure

@flinkbot run azure

@flinkbot run azure


⚠ SceneTime has degraded performance

In 5dec445, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 1495 ms

Resolved: SceneTime performance has improved in fd30106 after 6 minutes.


Bug: "Open compiled" assumes "in-source": true.

problem
The extension only looks for source as siblings to .res files, but they may be in lib/*.
See https://rescript-lang.org/docs/manual/latest/build-configuration#package-specs
discussion
I propose that a recursive search for bsconfig.json should occur, parse, sniff for package-specs, and ascertain the source file location based on configuration.

So generally, I accounted for the files in the lib folder when I wrote this feature. But I may have missed something. Can you provide a bsconfig or even example repo where it fails?

hey @fhammerschmidt , sure thing. I may be off the mark about resolution, but nonetheless, it doesn't work in my project.
repro

clone it: clone https://github.com/cdaringe/wit-ml
use the git SHA from this moment in time: cd wit-ml && git checkout 51bde658e161cf145a06eb9a214c8c97a5ef8870
pnpm install && pnpm run build
pop open src/App.res
click the "Open compiled JS" button
Observe "No compiled file found" notification

We are in the process of making bsconfig JSON-compliant. This means no support for comments unfortunately. While I agree the error message could tell you about this, I think it should work for you if you remove the commented line, or just set in-source: false.
Also see the breaking change in the compiler changelog.


paraview crashes

Hi i installed the plugin in the latest version of paraview
opened a tile of 3d bag as .json.
The program then crashes.

Hi there, latest ParaView version this has been built with is 5.9.0, so odds are that it's crashing due to a newer version


[BUG]

Hello! Excellent work for making such a great tool. I am running into a problem with subcommands. I get a NameError: name  is not defined error when adding a command to another app.
An example of the sub command is created like this in a separate file named message.py.
import typer

app = typer.Typer()

@app.command()
def message():
    typer.echo(f'Message sent')

if __name__ == '__main__':
    app()

I then have a different cli that is importing that command and adding it to the an app, like so.
import typer
import message

app = typer.Typer()
app.add_typer(message.app, name='message')

@app.command()
def main():
    typer.echo('App starting')

if __name__ == '__main__':
    app()

I was unable to produce the error with the code you provided. Everything seems to be in order with that code too. Maybe something different in your actual code?

I cannot reproduce the error either. The provided code runs fine.

Also unable to reproduce. Would suggest that this can be closed A) due to being unable to reproduce it and B) because it's fairly old.

[Maintenance note]: I'll go ahead and close this issue as the issue could not be reproduced. Thanks all for the feedback! 🙏


Fix import of "babel-code-frame"

PR checklist

[ ] Addresses an existing issue: #0000
[X] New feature, bugfix, or enhancement

[ ] Includes tests

[ ] Documentation update

What changes did you make?
Fixed the syntax for importing "babel-code-frame". This was changed by DefinitelyTyped/DefinitelyTyped#13246.

Also bump the version of @types/babel-code-frame to ^6.20.0.


Performance: multiple cudaSetDevice calls before kernel launch

Profiling the execution of SYCL code on NVIDIA GPUs, I see that before each kernel launch there are about 7-10 calls to cudaSetDevice. These introduce considerable latency along with whatever is done on the CPU: for my smaller application it's up to ~150 us (and the execution of my kernel is ~130 us).
I'm not sure where this is coming from, but I can't think of a reason for calling cudaSetDevice repeatedly... It would considerably help kernel launch overheads to get rid of this.

Thanks for the analysis! I would definitely expect more calls than strictly necessary since SYCL does dynamic out-of-order processing, so before each operation we need to make sure that we're still on the right device (it could be that another operation on another device was executed in the meantime). However, I'm a bit surprised by that many calls to cudaSetDevice. I'm not sure why there would be so many before each kernel call. I'm also a bit suprised that they come with so much latency. After all, nvidia explicitly states that it should be considered a very low overhead call.
If cudaSetDevice really is so slow, we could just track the device that we're on (i.e. the device id of the last call to cudaSetDevice) ourselves in the hipSYCL runtime, and only call cudaSetDevice if we really need to switch.
Would it be possible for you to share your profiler timeline?

The time spent in the driver itself is actually not that bad (roughly 1-2 us), but there are considerable gaps in-between.
Below is the link for the nvprof timeline of the application. In some cases these are overlapped with kernel execution, but in others I need the synchronisation...
https://www.dropbox.com/s/o2zfxl2fagbm8ro/airfoil_sycl.nvprof?dl=0
I expect it will be very rare to be switching between devices in user code - there is probably more benefit from assuming people don't do that, and if they actually do, then do something more expensive...

Thanks for sharing your timeline. While that many calls to cudaSetDevice are certainly a little bizarre, I actually don't think they are related to your observed kernel launch latency. I'll have to do some investigating - it could well be that the current task graph implementation needs some revamping to fix that.

More recent versions of hipSYCL (0.9.x) should behave differently.


Badges on Nuget-Readme should indicate the state during the release

The badges in the readme that is shipped with the nuget packages should link to the status during the corresponding release tag and not the latest main branch

Unfortunately this is not supported with Stryker and SonarCloud :-(

Please check again!
https://docs.sonarcloud.io/enriching/branch-analysis-setup/
https://stryker-mutator.io/docs/stryker-net/configuration/#project-infoversion-committish

Test implementation in #126 and #127

Fixed with #128 and #129


[Parse/Migrator] Drop Swift3 migration support for type(of:)

In Swift3, shadowning type(of:) was impossible because it was a parser magic. In Swift4, type(of:) is resolved as normal function in stdlib so it can be shadowed.

Remove migrator TypeOfMigratorPass that was a targeted migration pass that prepend Swift. to type(of:) so that it refers Swift.type(of:) stdlib builtin function.
Stop parsing type(of:) as DynamicTypeExpr in Parser. That was only for TypeOfMigratorPass.

@swift-ci Please smoke test

Sweet!

@nkcsgexi Are you OK to merge this?


Merge pull request #1 contributing page

Remove spurious Pipfiles from top level folder
Signed-off-by: gokulnathg14<EMAIL_ADDRESS>

Very encouraging change -- thank you! As discussed we need to:

Exclude po and mo files from git commits with a gitignore file
Have an auto-build of docs changes to help initial translation reviews.
I think the pip file should only be in docs directory -- not top level -- we merged a change to fix this recently

I will speak to Pam about 2 and Aneena will create a gitignore file.  The PR will need to have the pip file removed at the top level -- it's fine in /docs.
Thanks again, Anthony.


Fix for selects not working in IE8

https://github.com/angular-ui/ui-select/issues/158, based on an observed (but maybe not well understood) code change by @careywalker. Basically, just move the ng-click/ng-mouseenter bindings from the LI (choices-row) to the contained DIV (choices-row-inner). So far, I haven't seen an affect on behavior in any browser, but this is with light manual testing.
All automated tests pass with these changes in place:

gulp test
[15:05:36] Using gulpfile C:\web\sites\ui-select\gulpfile.js
[15:05:36] Starting 'clean'...
[15:05:36] Finished 'clean' after 14 ms
[15:05:36] Starting 'scripts'...
[15:05:36] Starting 'styles'...
[15:05:36] Finished 'styles' after 61 ms
[15:05:37] Finished 'scripts' after 1.01 s
[15:05:37] Starting 'build'...
[15:05:37] Finished 'build' after 14 μs
[15:05:37] Starting 'karma'...
[15:05:38] Finished 'karma' after 880 ms
[15:05:38] Starting 'test'...
[15:05:38] Finished 'test' after 5.63 μs
INFO [karma]: Karma v0.12.31 server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
INFO [Chrome 41.0.2272 (Windows 7)]: Connected on socket gaw3nxxZW2Omee4BBX-X with id 17666700
Chrome 41.0.2272 (Windows 7): Executed 110 of 110 SUCCESS (2.483 secs / 2.465 secs)

Chiming in to say I've been using this fix (last version) in production and it works splendidly. I hope it gets included soon, since not being able to use Bower to install this dependency is driving me crazy ;-)
Does this need a test btw?

It passes tests (broke briefly after an update, but I fixed). Ultimately, I
forked my fork (!) and merged just this change to master of that repo. I
finally realized that Bower can reference a Github repo (and even a
specific branch), so no need to wait for the pull request to get
incorporated. Just create your own fork and do the same in your project.
On Wed, May 6, 2015 at 4:18 AM, Ronald Treur<EMAIL_ADDRESS>wrote:

Chiming in to say I've been using this fix (last version) in production
and it works splendidly. I hope it gets included soon, since not being able
to use Bower to install this dependency is driving me crazy ;-)
Does this need a test btw?
—
Reply to this email directly or view it on GitHub
https://github.com/Josh68/ui-select/pull/1#issuecomment-99421159.


Remove 'val lifetime from everywhere, add more helper traits

There's a way to make JsonValue<'s> covariant rather than invariant (sort of), see:
https://github.com/bearcove/merde_json/blob/105a734e552701a68c2446b9735833c2484aeb1a/merde_json/src/newtraits.rs#L28-L56
We can use that to get rid of 'val completely.

Closed in #31


Navigation bar rendering issue on a certain reolution

Hello. On the resolution of 1920x1080, the following can be observed on the navigation bar of open files: http://i.imgur.com/8kSLcWy.png
This can be fixed with zooming in / out.
Also, is there a way to change the font size of the code? It is unnecessarily huge on some devices.

Most probably fixed with https://github.com/ethereum/browser-solidity/pull/649
Can you please check it out @Zvezdin ?


⚠ Samsung has degraded performance

In bae0f80, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2553 ms

Resolved: Samsung performance has improved in e3ffdf0.


TODO: Docker - Containers to boot start network and RPC by default

Before we have a parameter to boot start with network and RPC up, in the neo-python itself, we can make containers take that work and make those default services started by default.

-= Assigned to nunojusto =-


Add nanstd

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 86.36%. Comparing base (0f7b447) to head (e8332f2).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #24      +/-   ##
==========================================
+ Coverage   86.15%   86.36%   +0.20%
==========================================
  Files          10       10
  Lines         130      132       +2
  Branches        8        8
==========================================
+ Hits          112      114       +2
  Misses         18       18

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


Add Cancellation to Pubsub Receive

Can we enable at some point the integration tests for pub sub? like the ones we have for kafka and amqp.

Yes, I will try to get those working sometime soon.

@n3wscott ping, you're the pubsub expert :)

LGTM


VOCASET data not found

In Data section, data_verts.npy, raw_audio_fixed.pkl, templates.pkl and subj_seq_to_idx.pkl are required, but I couldn't find them on https://voca.is.tue.mpg.de/. All downloaded files have the zip extension. Where can I find the required files or what operation should I do? Anyone can help me?

You can download them on https://voca.is.tue.mpg.de/. Click the Download button at the top to go to the new screen,you'll see training data at the bottom of the page.  data_verts.npy, raw_audio_fixed.pkl, templates.pkl and subj_seq_to_idx.pkl in this zip.

You can download them on https://voca.is.tue.mpg.de/. Click the Download button at the top to go to the new screen,you'll see training data at the bottom of the page. data_verts.npy, raw_audio_fixed.pkl, templates.pkl and subj_seq_to_idx.pkl in this zip.


Remove dhat feature and imports

During the past few months, we don't seem to have used dhat for memory profiling, so cleaning up the feature for now.
jemalloc should be used for memory profiling instead. I will update the docs later.

Updated the instruction to collect memory profiles.


updating chapter 11,12,13 code to pymc v4

Thank you for opening a pull request!
Please check our style guide, and also make sure that the notebooks you've modified pass the pre-commit checks. If, for example, you modified notebook1.ipynb and notebook2.ipynb, you could do this by running:
pre-commit run --files notebook1.ipynb notebook2.ipynb

You may need to run it a couple of times before all the checks pass.

I am in the process of updating chp 12 and 13 on this branch as well. I will re-open when those are finished.

@canyon289 yes, this is ready to merge. Thanks!


OpenSSL 1.1.1d sha256 Incorrect Result

I apologize for the masking, but it's performed to protect my client.
Below is the sha256 values of the -modulus output:
~ # openssl rsa -in xxxxxxxxxxxxxxxxxxxxxxxxxx_2020.key_118322_1 -modulus -noout | openssl sha256
(stdin)= 3a8dd4f7c71749cf0e91d66586d999963c68f6056ffd4c65ee2e746efa7063a5
~ # openssl rsa -in xxxxxxxxxxxxxxxxxxxxxxxxxx_2020.key_118322_2 -modulus -noout | openssl sha256
(stdin)= d0485379ee8546af757622fd78d7921df74e5a67e22605af908f68ed9a533d61
~ # openssl version
OpenSSL 1.0.1l-fips 15 Jan 2015

C:\>openssl x509 -in xxxxxxxxxxxxxxxxxxxxxxxxxx.cer -modulus -noout | openssl sha256
(stdin)= f59497243c5439822270a0f251fb4a8e61c9120f19dd061e7a86495935d0a9e4

C:\>openssl version
OpenSSL 1.1.1d  10 Sep 2019

The -modulus of xxxxxxxxxxxxxxxxxxxxxxxxxx_2020.key_118322_2 should match xxxxxxxxxxxxxxxxxxxxxxxxxx.cer. After uploading xxxxxxxxxxxxxxxxxxxxxxxxxx.cer to the host, the -modulus then matches.
~ # openssl x509 -in xxxxxxxxxxxxxxxxxxxxxxxxxx_2020.crt -modulus -noout
Modulus=E3FCD310EF4E8A1F08F34066F760B8D09B83439550CEB7B8D1A8EE229DAD00E7920ADE87F0E42B410B741EA98A74A975A0C2385092BDC9B18017F12F4C9D8D8A97A6AB1D8C741C0CCE5DD332E2C2F69D4EAB14EA0878396D6D4CD23E012BA9F3DC778EBF65199EBC14E1A5F72672D4A114767F2FCEEC6A2A781615B698D74EEF3687EAEC33B8A85398498EA87CDBDF7509E2E3E2D2AF4C566996F62DA1112C59E70CDA48DB4992E818254DC65FCA109E145140C3533F22A793A5289F550DF75416EF34B3079D90759EFA09DE894D98BD8D15AB426FDB78B1F49C31698729597E513572D78443D5081FE768DE9B7E146B5E6AA640D5FA0304B663176B9003E81D

C:\>openssl x509 -in xxxxxxxxxxxxxxxxxxxxxxxxxx.cer -modulus -noout > xxxxxxxxxxxxxxxxxxxxxxxxxx.modulus.txt

C:\>type xxxxxxxxxxxxxxxxxxxxxxxxxx.modulus.txt
Modulus=E3FCD310EF4E8A1F08F34066F760B8D09B83439550CEB7B8D1A8EE229DAD00E7920ADE87F0E42B410B741EA98A74A975A0C2385092BDC9B18017F12F4C9D8D8A97A6AB1D8C741C0CCE5DD332E2C2F69D4EAB14EA0878396D6D4CD23E012BA9F3DC778EBF65199EBC14E1A5F72672D4A114767F2FCEEC6A2A781615B698D74EEF3687EAEC33B8A85398498EA87CDBDF7509E2E3E2D2AF4C566996F62DA1112C59E70CDA48DB4992E818254DC65FCA109E145140C3533F22A793A5289F550DF75416EF34B3079D90759EFA09DE894D98BD8D15AB426FDB78B1F49C31698729597E513572D78443D5081FE768DE9B7E146B5E6AA640D5FA0304B663176B9003E81D

C:\>type xxxxxxxxxxxxxxxxxxxxxxxxxx.modulus.txt | openssl sha256
(stdin)= f59497243c5439822270a0f251fb4a8e61c9120f19dd061e7a86495935d0a9e4

It appears there is an excessive newline character in the -modulus -noout
>>> modulus_0 = open('xxxxxxxxxxxxxxxxxxxxxxxxxx.modulus.txt', 'r').read()
>>> modulus_1 = open('xxxxxxxxxxxxxxxxxxxxxxxxxx.modulus.1.txt', 'r').read()
>>> modulus_0
'Modulus=E3FCD310EF4E8A1F08F34066F760B8D09B83439550CEB7B8D1A8EE229DAD00E7920ADE87F0E42B410B741EA98A74A975A0C2385092BDC9B18017F12F4C9D8D8A97A6AB1D8C741C0CCE5DD332E2C2F69D4EAB14EA0878396D6D4CD23E012BA9F3DC778EBF65199EBC14E1A5F72672D4A114767F2FCEEC6A2A781615B698D74EEF3687EAEC33B8A85398498EA87CDBDF7509E2E3E2D2AF4C566996F62DA1112C59E70CDA48DB4992E818254DC65FCA109E145140C3533F22A793A5289F550DF75416EF34B3079D90759EFA09DE894D98BD8D15AB426FDB78B1F49C31698729597E513572D78443D5081FE768DE9B7E146B5E6AA640D5FA0304B663176B9003E81D\n'
>>> modulus_1
'Modulus=E3FCD310EF4E8A1F08F34066F760B8D09B83439550CEB7B8D1A8EE229DAD00E7920ADE87F0E42B410B741EA98A74A975A0C2385092BDC9B18017F12F4C9D8D8A97A6AB1D8C741C0CCE5DD332E2C2F69D4EAB14EA0878396D6D4CD23E012BA9F3DC778EBF65199EBC14E1A5F72672D4A114767F2FCEEC6A2A781615B698D74EEF3687EAEC33B8A85398498EA87CDBDF7509E2E3E2D2AF4C566996F62DA1112C59E70CDA48DB4992E818254DC65FCA109E145140C3533F22A793A5289F550DF75416EF34B3079D90759EFA09DE894D98BD8D15AB426FDB78B1F49C31698729597E513572D78443D5081FE768DE9B7E146B5E6AA640D5FA0304B663176B9003E81D'

C:\>cmd
Microsoft Windows [Version 10.0.18363.592]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\>openssl x509 -in xxxxxxxxxxxxxxxxxxxxxxxxxx.cer -modulus -noout | openssl sh
a256
(stdin)= f59497243c5439822270a0f251fb4a8e61c9120f19dd061e7a86495935d0a9e4

C:\>cmd
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

Okay - it's not just Windows 10; it's also Windows 2012 R2

pipes on windows might be adding a trailing newline or converting newlines, etc.  you should try doing just file-based (with the -in and -out flags) and see if it works better.

Rich,
Thank you for commenting, but that appears to not alleviate the issue; it still responds with the wrong value:
C:\>openssl x509 -in xxxxxxxxxxxxxxxxxxxxxxxxxx.cer -modulus -noout > modulus_xxxxxxxxxxxxxxxxxxxxxxxxxx.txt
C:\>openssl sha256 modulus_xxxxxxxxxxxxxxxxxxxxxxxxxx.txt
SHA256(modulus_xxxxxxxxxxxxxxxxxxxxxxxxxx.txt)= f59497243c5439822270a0f251fb4a8e61c9120f19dd061e7a86495935d0a9e4

The accepted value that I am expecting is d0485379ee8546af757622fd78d7921df74e5a67e22605af908f68ed9a533d61

>>> modulus = open('modulus_xxxxxxxxxxxxxxxxxxxxxxxxxx.txt', 'r').read()
>>> modulus
'Modulus=E3FCD310EF4E8A1F08F34066F760B8D09B83439550CEB7B8D1A8EE229DAD00E7920ADE87F0E42B410B741EA98A74A975A0C2385092BDC9B18017F12F4C9D8D8A97A6AB1D8C741C0CCE5DD332E2C2F69D4EAB14EA0878396D6D4CD23E012BA9F3DC778EBF65199EBC14E1A5F72672D4A114767F2FCEEC6A2A781615B698D74EEF3687EAEC33B8A85398498EA87CDBDF7509E2E3E2D2AF4C566996F62DA1112C59E70CDA48DB4992E818254DC65FCA109E145140C3533F22A793A5289F550DF75416EF34B3079D90759EFA09DE894D98BD8D15AB426FDB78B1F49C31698729597E513572D78443D5081FE768DE9B7E146B5E6AA640D5FA0304B663176B9003E81D\n'
>>> import hashlib
>>> hashlib.sha256(bytes(modulus, 'utf8')).hexdigest()
'd0485379ee8546af757622fd78d7921df74e5a67e22605af908f68ed9a533d61'

Your "modulus" has extra text, right?  "Modulus=" at the beginning and "\n" at the end.

I know it's frustrating, but it is extremely unlikely that openssl has a bug in sha256.

C:\>python -c  "import ssl; print(ssl.OPENSSL_VERSION)"
OpenSSL 1.1.1c  28 May 2019

Well - I guess I'll try and review the changes between 1.1.1c and 1.1.1d. Maybe it's just something compiled into this Windows PE.

Are you positive that bytes(modulus, 'utf8') gives the right value?  Why not just use modulus directly?

The hashlib.sha256 requires a bytes array; without using bytes, Python will bark with a "TypeError: Unicode-objects must be encoded before hashing"

Okay; yeah, it's not the publisher. Someone decided the output from -modulus -noout should include a <0x0d> CR character, which is causing the issue.

Windows line-endings are \r\n unix line endings are just \n.
so ths can be closed?  Glad you found it.

Yes; however, I'd like to suggest that the OpenSSL library accept one or the other not both (or strip CR while on Windows). Until such a time, I'll have to figure out how to quickly scrub CR from the openssl.exe outputs within a work chain.

I'll blame the publisher of the PE that I have; it doesn't seem to be 100% correlated with this project.


No changes have been made to our issues by Stale bot

We installed Stale bot on Friday and added the following stale.yml file:
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 90

# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7

# Issues with these labels will never be considered stale
exemptLabels:
  - Pinned

# Label to use when marking an issue as stale
staleLabel: Stale?

# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
  This issue has been automatically marked as stale because it has been open for over 90 days. If this
  posting is still relevant please comment below; otherwise, this posting will be closed in 7 days.

# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false

I didn't check the repo again until today, but when I checked Stale bot still had not made any comments or added any labels. I looked through the issues on here and saw where one person had issues with privileges so I uninstalled and re-installed the app. It's been almost 2 hours and we still haven't see any changes made by the bot. Are we doing something wrong?

Yaay it finally ran and updated all my issues. Not sure if it just needed more time or if it's because I updated my stale.yaml file to the following:
# Configuration for probot-stale - https://github.com/probot/stale

# Number of days of inactivity before an Issue or Pull Request becomes stale
daysUntilStale: 90

# Number of days of inactivity before a stale Issue or Pull Request is closed.
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
daysUntilClose: 7

# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
  - locked
  - pinned

# Set to true to ignore issues in a project (defaults to false)
exemptProjects: false

# Set to true to ignore issues in a milestone (defaults to false)
exemptMilestones: false

# Label to use when marking as stale
staleLabel: stale

# Comment to post when marking as stale. Set to `false` to disable
markComment: >
  Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue in 7 days. This is often because the posting wasn't updated or it's no longer applicable. If that's not the case, please respond before the issue is closed.
# Comment to post when removing the stale label.
# unmarkComment: >
#   Your comment here.

# Comment to post when closing a stale issue or pull request. Set to `false` to disable
closeComment: false
#closeComment: >
#  Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues

# Limit the number of actions per hour, from 1-30. Default is 30
limitPerRun: 30

# Limit to only `issues` or `pulls`
only: issues

# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
# pulls:
#   daysUntilStale: 30
#   markComment: >
#     This pull request has been automatically marked as stale because it has not had
#     recent activity. It will be closed if no further activity occurs. Thank you
#     for your contributions.

# issues:
#   exemptLabels:
#     - confirmed


Usage example with Next.js app-directory

Next.js' documentation explicitly mentions remark-frontmatter on their page to set up mdx-support in Next.js, but they aren't explaining how the generated exports can be used.
I'm not too deep into how remark-plugins work. Do you now how it works? If so, can it be explained simply?
If this is something you would be interested in, I could make two PRs to enhance both this repositories README.md and the Next.js docs. This wouldn't only help me out with what I currently want to do, but also potentially advertise this plugin to a bigger audience.

I don't really understand what needs to be explained. The generated export can be used like any other export.
If you would like to learn more about plugins, unified has some guides. You can also look at existing plugins. I also recommend using AST explorer to see what code generates what AST.
I'm not really interested in adding platform specific instructions to the readme, but it would be great if Next.js links to this plugin.


more validations on app payload

http://jira.dataman-inc.com/browse/BORSP-1115

Codecov Report

Merging #487 into master will decrease coverage by 0.25%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #487      +/-   ##
==========================================
- Coverage   42.48%   42.22%   -0.26%
==========================================
  Files          48       48
  Lines       12484    12489       +5
==========================================
- Hits         5304     5274      -30
- Misses       5880     5923      +43
+ Partials     1300     1292       -8

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 2210717...896b473. Read the comment docs.

AppName长度最大值, 内存分配最小值,  具体约束数字谁来确定 . @xychu

这些值都由 swan 来定，如果不想做限制，就没有限制。 @bbklab

暂定内存5m, cpu 0.01, 长度和页面js限制保持一致48

LGTM

👍


cmd/compile: arm64 build constraint not supported in bootstrapping ?

What version of Go are you using (go version)?

$ go version
branch tip

Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env

arm64 platform
What did you do?

Add an arch-specific file, say nat_arm64.go, but it's not built during bootstrapping, leading to unexpected build error.
Command line of building the math/big packge:
/usr/lib/go-1.10/pkg/tool/linux_arm64/compile -o $WORK/b089/pkg.a -trimpath $WORK/b089 -p bootstrap/math/big -complete -buildid A-inRWtP3l76bAqzsiqn/A-inRWtP3l76bAqzsiqn -goversion go1.10.4 -D "" -importcfg $WORK/b089/importcfg -pack -c=4 ./accuracy_string.go ./arith.go ./arith_decl_pure.go ./decimal.go ./doc.go ./float.go ./floatconv.go ./floatmarsh.go ./ftoa.go ./int.go ./intconv.go ./intmarsh.go ./nat.go ./natconv.go ./prime.go ./rat.go ./ratconv.go ./ratmarsh.go ./roundingmode_string.go ./sqrt.go
Seems that build constraint for arm64 is not supported by go-1.10?
Tried with amd64 (nat_amd64.go), it works fine.
What did you expect to see?
bootstrapping build support arm64 build constraint, or any workaround solution.
What did you see instead?
build error in "Building Go toolchain1 using /usr/lib/go-1.10." as the arch-specific file is not included.

As a comparison, command line of building math/big on amd64 where ./nat_amd64.go is included.
/home/xiaji01/util/go/pkg/tool/linux_amd64/compile -o $WORK/b097/pkg.a -trimpath "$WORK/b097=>" -p bootstrap/math/bi     g -lang=go1.14 -complete -buildid SuQcvfNw1-wahpUcxV9E/SuQcvfNw1-wahpUcxV9E -D "" -importcfg $WORK/b097/importcfg -pac     k -c=4 ./accuracy_string.go ./arith.go ./arith_decl_pure.go ./decimal.go ./doc.go ./float.go ./floatconv.go ./floatmar     sh.go ./ftoa.go ./int.go ./intconv.go ./intmarsh.go ./nat.go ./nat_amd64.go ./natconv.go ./prime.go ./rat.go ./ratconv     .go ./ratmarsh.go ./roundingmode_string.go ./sqrt.go
Thanks.

arm64 has been recognized since Go 1.5.
Please provide a complete repro.

@bradfitz I got the following error with the enclosed change. Thanks a lot.
Building Go cmd/dist using /usr/lib/go-1.10. (go1.10.4 linux/arm64)
Building Go toolchain1 using /usr/lib/go-1.10.
bootstrap/math/big
/home/xiaji01/src/go.natsqr.arm/src/math/big/nat.go:271: undefined: karatsubaThreshold
/home/xiaji01/src/go.natsqr.arm/src/math/big/nat.go:423: undefined: karatsubaThreshold
/home/xiaji01/src/go.natsqr.arm/src/math/big/nat.go:436: undefined: karatsubaThreshold
/home/xiaji01/src/go.natsqr.arm/src/math/big/nat.go:520: undefined: karatsubaSqrThreshold
/home/xiaji01/src/go.natsqr.arm/src/math/big/nat.go:565: undefined: basicSqrThreshold
/home/xiaji01/src/go.natsqr.arm/src/math/big/nat.go:570: undefined: karatsubaSqrThreshold
/home/xiaji01/src/go.natsqr.arm/src/math/big/nat.go:581: undefined: karatsubaSqrThreshold
go tool dist: FAILED: /usr/lib/go-1.10/bin/go install -gcflags=-l -tags=math_big_pure_go compiler_bootstrap bootstrap/cmd/...: exit status 2
nat.patch.txt

looks like *_arm64.go is excluded by /usr/lib/go-1.10. on arm64 platform, if I managed to bypass the error then toolchain1 recognizes them as expected.

Look at the command that failed; it includes tags=math_big_pure_go.

This is working as intended.


flutter run --route doesn't work on iOS

We should implement --route on iOS.

[ ] flutter run --route isn't implemented for iOS devices in flutter tool.
[ ] flutter run --route isn't implemented for iOS simulators in flutter tool.
[ ] There's no equivalent of receiving a route intent from the OS in the iOS engine.
[ ] The devicelab test at dev/devicelab/bin/tasks/routing_test.dart isn't run for iOS.

cc @cbracken

The relevant code location is here.

Merging into #4703


Use initWithEngine:nibName:bundle: method to create FlutterViewController, and then setInitialRoute not working

When I use initWithEngine:nibName:bundle: to create FlutterViewController, and then setInitialRoute: ;I find it doesn't work; When I use window.defaultRouteName in main.dart I get '/'
This is the code:
// Appdelegate

    FlutterEngine *engine = [[FlutterEngine alloc]<EMAIL_ADDRESS>project:nil allowHeadlessExecution:YES];
    self.engine = engine;
    [self.engine runWithEntrypoint:nil];

// ViewController

    FlutterEngine *flutterEngine = [(AppDelegate *)[[UIApplication sharedApplication] delegate] engine];

    FlutterViewController* flutterViewController = [[FlutterViewController alloc] initWithEngine:flutterEngine nibName:nil bundle:nil];

    [flutterViewController setInitialRoute:@"myApp"];

// main.dart

    void main() => runApp(_widgetForRoute(window.defaultRouteName));

    Widget _widgetForRoute(String route) {
      switch (route) {
        case 'myApp':
          return new MyApp();
        case 'home':
          return new HomePage();
        default:
          return Center(
            child: Text('Unknown route: $route', textDirection: TextDirection.ltr),
          );
      }
    }

I always get a Text and content is ''Unknown route: /'

When I use initWithEngine:nibName:bundle: to create FlutterViewController, and then setInitialRoute: ;I find it doesn't work; When I use window.defaultRouteName in main.dart I get '/'
This is the code:
// Appdelegate

    FlutterEngine *engine = [[FlutterEngine alloc]<EMAIL_ADDRESS>project:nil allowHeadlessExecution:YES];
    self.engine = engine;
    [self.engine runWithEntrypoint:nil];

// ViewController

    FlutterEngine *flutterEngine = [(AppDelegate *)[[UIApplication sharedApplication] delegate] engine];

    FlutterViewController* flutterViewController = [[FlutterViewController alloc] initWithEngine:flutterEngine nibName:nil bundle:nil];

    [flutterViewController setInitialRoute:@"myApp"];

// main.dart

    void main() => runApp(_widgetForRoute(window.defaultRouteName));

    Widget _widgetForRoute(String route) {
      switch (route) {
        case 'myApp':
          return new MyApp();
        case 'home':
          return new HomePage();
        default:
          return Center(
            child: Text('Unknown route: $route', textDirection: TextDirection.ltr),
          );
      }
    }

I always get a Text and content is ''Unknown route: /'

你好，你的这个问题解决了吗？

I have the same problem
//AppDelegate
self.flutterEngine = [[FlutterEngine alloc]<EMAIL_ADDRESS>project:nil];
[self.flutterEngine runWithEntrypoint:nil];
[GeneratedPluginRegistrant registerWithRegistry:self.flutterEngine];
//ViewController
FlutterViewController *flutterViewController = [FlutterViewController new];
[flutterViewController setInitialRoute:@"myApp"];
//main.dart
window.defaultRouteName  Is always ‘/’

@lupeihong if it's the same problem, why did you create another issue? #27882

Same problem.
But weird, use FlutterViewController *flutterViewController = [FlutterViewController new];  to init the FlutterViewController  ,  the setInitialRoute  work fine.
So what's different between  [FlutterViewController new] and  [[FlutterViewController alloc] initWithEngine:flutterEngine nibName:nil bundle:nil] ?

+1

@ungacy
Using "add reaction" on the initial comment would increase priority while +1 comments are rather pointless and cause lots of people to get notified for no reason.
To get notified yourself use the [Subscribe] button to the top right instead.

I use Swift, and i found problem is self.flutterEngine?.run(withEntrypoint: nil) in document https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps. If you do like that, FlutterEngine will run before you create FlutterViewController so you cannot setInitialRoute.
To solve, you must init FlutterViewController without FlutterEngine let flutterViewController = FlutterViewController(nibName: nil, bundle: nil), and setInitialRoute, final call flutterEngine?.run(withEntrypoint: nil).

+1

@YoungJam
Using "add reaction" on the initial comment would increase priority while +1 comments are rather pointless and cause lots of people to get notified for no reason.
To get notified yourself use the [Subscribe] button to the top right instead.

I solved the problem.
//=======================
@interface XXFlutterViewController : FlutterViewController
@EnD
(void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
FlutterEngine *flutterEngine = self.engine;
[GeneratedPluginRegistrant registerWithRegistry:flutterEngine];
//custom futter plugin
[XXXFlutterBridge registerWithRegistry:flutterEngine];
}
//open flutter vc
XXFlutterViewController *flutterViewController = [[XXFlutterViewController alloc] init];
[flutterViewController setInitialRoute:@"xxxxx/xxxx"];

I solved the problem.
//=======================
@interface XXFlutterViewController : FlutterViewController
@EnD
(void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
FlutterEngine *flutterEngine = self.engine;
[GeneratedPluginRegistrant registerWithRegistry:flutterEngine];
//custom futter plugin
[XXXFlutterBridge registerWithRegistry:flutterEngine];
}
//open flutter vc
XXFlutterViewController *flutterViewController = [[XXFlutterViewController alloc] init];
[flutterViewController setInitialRoute:@"xxxxx/xxxx"];

it works on me @kidzss

I solved the problem.
//=======================
@interface XXFlutterViewController : FlutterViewController
@EnD
(void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
FlutterEngine *flutterEngine = self.engine;
[GeneratedPluginRegistrant registerWithRegistry:flutterEngine];
//custom futter plugin
[XXXFlutterBridge registerWithRegistry:flutterEngine];
}
//open flutter vc
XXFlutterViewController *flutterViewController = [[XXFlutterViewController alloc] init];
[flutterViewController setInitialRoute:@"xxxxx/xxxx"];

Didn't U find the flutterVC dont release in this way?

I am still experiencing this issue on iOS platform, with the Flutter version shown below :
// --------- flutter doctor summary --------- //
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v1.3.10, on Mac OS X 10.14 18A391, locale en-HK)
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
✗ Verify that all connected devices have been paired with this computer in Xcode.
If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.
To update with Brew, run:
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
[✓] Android Studio (version 3.3)
[✓] Connected device (3 available)
// --------- flutter doctor summary --------- //
I am following the official guide on https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps.
SetInitialRoute() is working when using FlutterViewController(project: nil, nibName: nil, bundle: nil), however, this seems make the Flutter plugins not found with the FlutterViewController, when I try to access methods in Flutter plugins, it throws MissingPluginException. It seems that because of those Plugins are register with FlutterEngine, the FlutterViewController will not find them if not connected with the FlutterEngine.
Using FlutterViewController(engine: flutterEngine, nibName: nil, bundle: nil), makes the plugins work, but SetInitialRoute() is not working.
Is there any way or alternative to solve this issue, making both setInitialRoute and plugins work in the same FlutterViewController? Thanks!

I solved the problem.
//=======================
@interface XXFlutterViewController : FlutterViewController
@EnD
(void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
FlutterEngine *flutterEngine = self.engine;
[GeneratedPluginRegistrant registerWithRegistry:flutterEngine];
//custom futter plugin
[XXXFlutterBridge registerWithRegistry:flutterEngine];
}
//open flutter vc
XXFlutterViewController *flutterViewController = [[XXFlutterViewController alloc] init];
[flutterViewController setInitialRoute:@"xxxxx/xxxx"];

Didn't U find the flutterVC dont release in this way?

I meet the problem... almost nothing released...

I solved the problem.
//=======================
@interface XXFlutterViewController : FlutterViewController
@EnD
(void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
FlutterEngine *flutterEngine = self.engine;
[GeneratedPluginRegistrant registerWithRegistry:flutterEngine];
//custom futter plugin
[XXXFlutterBridge registerWithRegistry:flutterEngine];
}
//open flutter vc
XXFlutterViewController *flutterViewController = [[XXFlutterViewController alloc] init];
[flutterViewController setInitialRoute:@"xxxxx/xxxx"];

Didn't U find the flutterVC dont release in this way?

I meet the problem... almost nothing released...

When I use initWithEngine:nibName:bundle: to create FlutterViewController, and then setInitialRoute: ;I find it doesn't work; When I use window.defaultRouteName in main.dart I get '/'
This is the code:
// Appdelegate

    FlutterEngine *engine = [[FlutterEngine alloc]<EMAIL_ADDRESS>project:nil allowHeadlessExecution:YES];
    self.engine = engine;
    [self.engine runWithEntrypoint:nil];

// ViewController

    FlutterEngine *flutterEngine = [(AppDelegate *)[[UIApplication sharedApplication] delegate] engine];

    FlutterViewController* flutterViewController = [[FlutterViewController alloc] initWithEngine:flutterEngine nibName:nil bundle:nil];

    [flutterViewController setInitialRoute:@"myApp"];

// main.dart

    void main() => runApp(_widgetForRoute(window.defaultRouteName));

    Widget _widgetForRoute(String route) {
      switch (route) {
        case 'myApp':
          return new MyApp();
        case 'home':
          return new HomePage();
        default:
          return Center(
            child: Text('Unknown route: $route', textDirection: TextDirection.ltr),
          );
      }
    }

I always get a Text and content is ''Unknown route: /'
我遇到同样的问题 请问你解决了吗

I solved the problem.
//=======================
@interface XXFlutterViewController : FlutterViewController
@EnD
(void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
FlutterEngine *flutterEngine = self.engine;
[GeneratedPluginRegistrant registerWithRegistry:flutterEngine];
//custom futter plugin
[XXXFlutterBridge registerWithRegistry:flutterEngine];
}
//open flutter vc
XXFlutterViewController *flutterViewController = [[XXFlutterViewController alloc] init];
[flutterViewController setInitialRoute:@"xxxxx/xxxx"];

Didn't U find the flutterVC dont release in this way?

I meet the problem... almost nothing released...
我使用flutter 1.2.1 在dealloc断点是有的

I solved the problem.
//=======================
@interface XXFlutterViewController : FlutterViewController
@EnD
(void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
FlutterEngine *flutterEngine = self.engine;
[GeneratedPluginRegistrant registerWithRegistry:flutterEngine];
//custom futter plugin
[XXXFlutterBridge registerWithRegistry:flutterEngine];
}
//open flutter vc
XXFlutterViewController *flutterViewController = [[XXFlutterViewController alloc] init];
[flutterViewController setInitialRoute:@"xxxxx/xxxx"];

Didn't U find the flutterVC dont release in this way?

I meet the problem... almost nothing released...
我使用flutter 1.2.1 在dealloc断点是有的

i use the same solution and it fixed.But official should also give a solution.

I solved the problem.
//=======================
@interface XXFlutterViewController : FlutterViewController
@EnD
(void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
FlutterEngine *flutterEngine = self.engine;
[GeneratedPluginRegistrant registerWithRegistry:flutterEngine];
//custom futter plugin
[XXXFlutterBridge registerWithRegistry:flutterEngine];
}
//open flutter vc
XXFlutterViewController *flutterViewController = [[XXFlutterViewController alloc] init];
[flutterViewController setInitialRoute:@"xxxxx/xxxx"];

Didn't U find the flutterVC dont release in this way?

I meet the problem... almost nothing released...
我使用flutter 1.2.1 在dealloc断点是有的

I update 1.2.1 last week. Do you mean, at 1.2.1 version, this solution will release memory normally? I used this before and found memory increased linearly. I'll try 1.2.1 and test it.

WVFlutterViewController *controller = [[WVFlutterViewController alloc] init];
[GeneratedPluginRegistrant registerWithRegistry:controller];
[controller setInitialRoute:route];
使用这种方式可以成功传递route，并且不会影响插件的注册

the same Problem!

WVFlutterViewController *controller = [[WVFlutterViewController alloc] init];
[GeneratedPluginRegistrant registerWithRegistry:controller];
[controller setInitialRoute:route];
使用这种方式可以成功传递route，并且不会影响插件的注册

这个方式有效果，感谢。

create FlutterEngine
[_engine.get() createShell:nil libraryURI:nil];
[_engine.navigationChannel invokeMethod:@"setInitialRoute" arguments:route];
self.flutterVc = [[FlutterViewController alloc] initWithEngine:engine nibName:nil bundle:nil];
[engine launchEngine:nil libraryURI:nil];
[engine setViewController:self.flutterVc];

I solved the problem.
//=======================
@interface XXFlutterViewController : FlutterViewController
@EnD
(void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
FlutterEngine *flutterEngine = self.engine;
[GeneratedPluginRegistrant registerWithRegistry:flutterEngine];
//custom futter plugin
[XXXFlutterBridge registerWithRegistry:flutterEngine];
}
//open flutter vc
XXFlutterViewController *flutterViewController = [[XXFlutterViewController alloc] init];
[flutterViewController setInitialRoute:@"xxxxx/xxxx"];

Didn't U find the flutterVC dont release in this way?

I meet the problem... almost nothing released...
我使用flutter 1.2.1 在dealloc断点是有的

i use the same solution and it fixed.But official should also give a solution.

Creating a new FlutterViewController in the new or alloc init way does deliver routeName, but this way creates multiple flutter.io/gpu/ui threads over and over again.

I am still experiencing this issue on iOS platform, with the Flutter version shown below :
// --------- flutter doctor summary --------- //
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v1.3.10, on Mac OS X 10.14 18A391, locale en-HK)
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
✗ Verify that all connected devices have been paired with this computer in Xcode.
If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.
To update with Brew, run:
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
[✓] Android Studio (version 3.3)
[✓] Connected device (3 available)
// --------- flutter doctor summary --------- //
I am following the official guide on https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps.
SetInitialRoute() is working when using FlutterViewController(project: nil, nibName: nil, bundle: nil), however, this seems make the Flutter plugins not found with the FlutterViewController, when I try to access methods in Flutter plugins, it throws MissingPluginException. It seems that because of those Plugins are register with FlutterEngine, the FlutterViewController will not find them if not connected with the FlutterEngine.
Using FlutterViewController(engine: flutterEngine, nibName: nil, bundle: nil), makes the plugins work, but SetInitialRoute() is not working.
Is there any way or alternative to solve this issue, making both setInitialRoute and plugins work in the same FlutterViewController? Thanks!

i have the same question, have you solved it, please?

I am still experiencing this issue on iOS platform, with the Flutter version shown below :
// --------- flutter doctor summary --------- //
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v1.3.10, on Mac OS X 10.14 18A391, locale en-HK)
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
✗ Verify that all connected devices have been paired with this computer in Xcode.
If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.
To update with Brew, run:
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
[✓] Android Studio (version 3.3)
[✓] Connected device (3 available)
// --------- flutter doctor summary --------- //
I am following the official guide on https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps.
SetInitialRoute() is working when using FlutterViewController(project: nil, nibName: nil, bundle: nil), however, this seems make the Flutter plugins not found with the FlutterViewController, when I try to access methods in Flutter plugins, it throws MissingPluginException. It seems that because of those Plugins are register with FlutterEngine, the FlutterViewController will not find them if not connected with the FlutterEngine.
Using FlutterViewController(engine: flutterEngine, nibName: nil, bundle: nil), makes the plugins work, but SetInitialRoute() is not working.
Is there any way or alternative to solve this issue, making both setInitialRoute and plugins work in the same FlutterViewController? Thanks!

i have the same question, have you solved it, please?

When you create a FlutterViewController don't use FlutterEngine
let flutterViewController = FlutterViewController(nibName: nil, bundle: nil)
flutterVC.setInitialRoute("RouteName")

Use this way is working!

I use [FlutterViewController new] replace [[FlutterViewController alloc] initWithEngine:flutterEngine nibName:nil bundle:nil]， setInitialRoute  is working， but when native push this FlutterViewController firsh show splashScreen。 Anyone encounter the same problem，how to avoid show splashScreen？
my env is :
Xcode11.2 / iOS13
Flutter 1.10.14 • channel dev • https://github.com/flutter/flutter.git
Framework • revision 1946fc4da0 (3 weeks ago) • 2019-10-07 15:23:31 -0700
Engine • revision 1d62160fdb
Tools • Dart 2.6.0 (build 2.6.0-dev.1.0 d6c6d12ebf)

I use [FlutterViewController new] replace [[FlutterViewController alloc] initWithEngine:flutterEngine nibName:nil bundle:nil]， setInitialRoute  is working， but when native push this FlutterViewController firsh show splashScreen。 Anyone encounter the same problem，how to avoid show splashScreen？
my env is :
Xcode11.2 / iOS13
Flutter 1.10.14 • channel dev • https://github.com/flutter/flutter.git
Framework • revision 1946fc4da0 (3 weeks ago) • 2019-10-07 15:23:31 -0700
Engine • revision 1d62160fdb
Tools • Dart 2.6.0 (build 2.6.0-dev.1.0 d6c6d12ebf)

try to set a view to propertysplashScreenView to the instance of FlutterViewController

I use [FlutterViewController new] replace [[FlutterViewController alloc] initWithEngine:flutterEngine nibName:nil bundle:nil]， setInitialRoute  is working， but when native push this FlutterViewController firsh show splashScreen。 Anyone encounter the same problem，how to avoid show splashScreen？
my env is :
Xcode11.2 / iOS13
Flutter 1.10.14 • channel dev • https://github.com/flutter/flutter.git
Framework • revision 1946fc4da0 (3 weeks ago) • 2019-10-07 15:23:31 -0700
Engine • revision 1d62160fdb
Tools • Dart 2.6.0 (build 2.6.0-dev.1.0 d6c6d12ebf)

try to set a view to propertysplashScreenView to the instance of FlutterViewController

tks，I am so tried，push animation is not normal

    FlutterViewController *some = [FlutterViewController new];
    UIView *view = [[UIView alloc] initWithFrame:UIApplication.sharedApplication.keyWindow.bounds];
    view.backgroundColor = [UIColor whiteColor];
    some.splashScreenView = view;

    FlutterViewController *some = [FlutterViewController new];
    UIView *view = [[UIView alloc] initWithFrame:UIApplication.sharedApplication.keyWindow.bounds];
    view.backgroundColor = [UIColor whiteColor];
    some.splashScreenView = view;

tks, I am also try so, push animation firsh show white splashScreenView， I need to avoid show splashScreen.

我搞定了，经过测试既能够传入routeName,又可以flutter和原生交互正常。少一行代码都不行。如下
let flutterViewController = FlutterProjectListViewController.init(project: nil  , nibName: nil, bundle: nil)!;
flutterViewController.splashScreenView =  FlutterSplashViewController().view
GeneratedPluginRegistrant.register(with: flutterViewController)
flutterViewController.setModel(model: FLUTTER_PROJECT_LIST);
flutterViewController.view.frame = UIScreen.main.bounds;
self.navigationController?.pushViewController(flutterViewController, animated: true)
    self.flutterEngine = FlutterEngine(name: "io.flutter", project: nil)
    self.flutterEngine?.run(withEntrypoint: nil)
    GeneratedPluginRegistrant.register(with: self.flutterEngine)

我搞定了，可以传入routeName，又能保证交互好用。it work well
let flutterViewController = FlutterViewController.init(project: nil  , nibName: nil, bundle: nil)!;
flutterViewController.splashScreenView =  FlutterSplashViewController().view
GeneratedPluginRegistrant.register(with: flutterViewController)
flutterViewController.setInitialRoute("test1");
flutterViewController.view.frame = UIScreen.main.bounds;
self.navigationController?.pushViewController(flutterViewController, animated: true)
self.flutterEngine = FlutterEngine(name: "io.flutter", project: nil)
self.flutterEngine?.run(withEntrypoint: nil)
GeneratedPluginRegistrant.register(with: self.flutterEngine)

Use [FlutterViewController new] replace [[FlutterViewController alloc] initWithEngine:flutterEngine nibName:nil bundle:nil]  cause other problems。 I have two problems  encountered now.

Can't avoid show splashScreenView
Case package_info not normal work。 （Suspected that the native and Flutter could not communicate properly）

yes ,splashScreenView cannot be  ignored.  Use my code flutter plugin can work normal. Do you try other plugin?for example flutter share_preference
| |
自己
|
|
<EMAIL_ADDRESS>|
签名由 网易邮箱大师 定制
On 11/04/2019 11:31, Stellar wrote:
Use [FlutterViewController new] replace [[FlutterViewController alloc] initWithEngine:flutterEngine nibName:nil bundle:nil] cause other problems。 I have two problems encountered now.
Can't avoid show splashScreenView
Case package_info not normal work。 （Suspected that the native and Flutter could not communicate properly）
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

@zyg1982527  Should be caused by plugin registration issues，  use [GeneratedPluginRegistrant registerWithRegistry:flutterViewController]; after FlutterViewController init can resolve  it。 A little worried about whether other problems will be introduced later。

仔细研究了下Flutter/Engine里面的源码，setInitialRoute要在launchEngine:libraryURI:之前，
使用了initWithEngine方法，要求自定义的FlutterEngine初始化完毕，并且运行runWithEntrypoint:libraryURI:（内部还是会调用launchEngine:libraryURI:）。
所以使用initWithEngine初始化，setInitialRoute是无效的。
所以只能使用initWithProject（init,new都会调用该方法），但是带来了新问题会加载Launch图。
贴一个简单的思路，新建一个FlutterViewController的子类CSFlutterController，去除和launch有关的部分。
@interface CSFlutterViewController () <FlutterBinaryMessenger, FlutterStreamHandler> {
    BOOL _enigneNeedsLaunch;
}
@end

@implementation CSFlutterViewController

#pragma mark - Rewrite

- (BOOL)loadDefaultSplashScreenView {
    return NO;
}

- (void)installSplashScreenViewIfNecessary {
}

- (void)removeSplashScreenView:(dispatch_block_t _Nullable)onComplete {
    onComplete();
}

#pragma mark - Init Rewrite

- (instancetype)initWithProject:(FlutterDartProject *)project nibName:(NSString *)nibName bundle:(NSBundle *)nibBundle {
    self = [super initWithProject:project nibName:nibName bundle:nibBundle];
    if (self) {
        _enigneNeedsLaunch = NO;
        [self setInitialRoute:@"/userCenter"];
        [self.engine performSelector:@selector(launchEngine:libraryURI:) withObject:nil withObject:nil];
        [self.engine runWithEntrypoint:nil libraryURI:nil];
        [self.engine setViewController:self];
    }
    return self;
}

@end

WVFlutterViewController *controller = [[WVFlutterViewController alloc] init];
[GeneratedPluginRegistrant registerWithRegistry:controller];
[controller setInitialRoute:route];
使用这种方式可以成功传递route，并且不会影响插件的注册

Yes, it woks for me. You saved my 2 days time, thanks a lot.
亲们，这个法子真的可以啊，[GeneratedPluginRegistrant registerWithRegistry:controller]; 而不是[GeneratedPluginRegistrant registerWithRegistry:self.engine];
官网害死人啦。
---------来自被这个问题搞疯了两天的程序媛。。

哈哈，能帮到大家我很开心
| |
自己
|
|
<EMAIL_ADDRESS>|
签名由 网易邮箱大师 定制
On 11/19/2019 19:30, amazingrace wrote:
WVFlutterViewController *controller = [[WVFlutterViewController alloc] init];
[GeneratedPluginRegistrant registerWithRegistry:controller];
[controller setInitialRoute:route];
使用这种方式可以成功传递route，并且不会影响插件的注册
Yes, it woks for me. You saved my 2 days time, thanks a lot.
亲们，这个法子真的可以啊，[GeneratedPluginRegistrant registerWithRegistry:controller]; 而不是[GeneratedPluginRegistrant registerWithRegistry:self.engine];
官网害死人啦。
---------来自被这个问题搞疯了两天的程序媛。。
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

This is somewhat the same as https://github.com/flutter/flutter/issues/31185 and now covered under https://github.com/flutter/flutter/issues/31185. Also adding some clarifications in https://github.com/flutter/engine/pull/14367.
To be fair, this API is indeed unclear and confusing. I think we want to gradually discourage its use but don't have a great alternative yet.
In general, we should make all custom interop easier https://github.com/flutter/flutter/issues/32930 so you can pass any initialization data you'd like at startup, not only route.
Also, if we were to make built-in concepts like route easier, we should do it on top of the upcoming navigator APIs rather than adding more to the current imperative navigator APIs. https://github.com/flutter/flutter/issues/45938

I use Swift, and i found problem is self.flutterEngine?.run(withEntrypoint: nil) in document https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps. If you do like that, FlutterEngine will run before you create FlutterViewController so you cannot setInitialRoute.
To solve, you must remove that line in AppDelegate, init FlutterViewController without FlutterEngine let flutterViewController = FlutterViewController(nibName: nil, bundle: nil), and setInitialRoute, final call flutterEngine?.run(withEntrypoint: nil).

Yes, it woks for me.

I use Swift, and i found problem is self.flutterEngine?.run(withEntrypoint: nil) in document https://github.com/flutter/flutter/wiki/Add-Flutter-to-existing-apps. If you do like that, FlutterEngine will run before you create FlutterViewController so you cannot setInitialRoute.
To solve, you must remove that line in AppDelegate, init FlutterViewController without FlutterEngine let flutterViewController = FlutterViewController(nibName: nil, bundle: nil), and setInitialRoute, final call flutterEngine?.run(withEntrypoint: nil).

Yes, it woks for me.

its working, but showing splash screen before pushing to flutterViewController and when we are trying to pop from flutterViewController its pop to black screen instead of our native iOS ViewController.


ValueError: Specified \n as separator or delimiter.

Hi betsig,
Thank you for making this cool tool. I've tried to run the following code:
check_strandedness --gtf Homo_sapiens.GRCh38.106.gtf --transcripts Homo_sapiens.GRCh38.cdna.abinitio.fa --reads_1 r1.fastq.gz --reads_2 r2.fastq.gz
I am using:
kallisto                  0.44.0
python                    3.9.12
rseqc                     4.0.0
The first processing steps are fine:
converting gtf to bed
using kallisto_index as kallisto index
creating fastq files with first 200000 reads
quantifying with kallisto

[quant] fragment length distribution will be estimated from the data
[index] k-mer length: 31
[index] number of targets: 204,563
[index] number of k-mers: 116,332,896
[index] number of equivalence classes: 842,500
Warning: 60093 transcripts were defined in GTF file, but not in the index
[quant] running in paired-end mode
[quant] will process pair 1: r1.fq r2.fq
[quant] finding pseudoalignments for the reads ... done
[quant] processed 200,000 reads, 189,766 reads pseudoaligned
[quant] estimated average fragment length: 185.825
[   em] quantifying the abundances ... done
[   em] the Expectation-Maximization algorithm ran for 1,009 rounds
[  bam] writing pseudoalignments to BAM format .. done
[  bam] sorting BAM files .. done
[  bam] indexing BAM file .. done

checking strandedness
Reading reference gene model Homo_sapiens.GRCh38.106.bed ... Done
Loading SAM/BAM file ...  Total 200000 usable reads were sampled

But then I get the following error:
Traceback (most recent call last):
  File "/home/m.venkatesan/.conda/envs/strandedness/bin/check_strandedness", line 10, in <module>
    sys.exit(main())
  File "/home/m.venkatesan/.conda/envs/strandedness/lib/python3.9/site-packages/how_are_we_stranded_here/check_strandedness.py", line 185, in main
    result = pd.read_csv(test_folder + '/' + 'strandedness_check.txt', sep="\n", header=None)
  File "/home/m.venkatesan/.conda/envs/strandedness/lib/python3.9/site-packages/pandas/util/_decorators.py", line 311, in wrapper
    return func(*args, **kwargs)
  File "/home/m.venkatesan/.conda/envs/strandedness/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 665, in read_csv
    kwds_defaults = _refine_defaults_read(
  File "/home/m.venkatesan/.conda/envs/strandedness/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 1537, in _refine_defaults_read
    raise ValueError(
ValueError: Specified \n as separator or delimiter. This forces the python engine which does not accept a line terminator. Hence it is not allowed to use the line terminator as separator.

I currently don't know what's going on and your help would be appreciated.

I met the same situation, and it was perfectly solved when I switched from python 3.9 to python 3.6.

I was able resolve this by forking the library and change the line on line 185 to:
result = pd.read_csv(test_folder + '/' + 'strandedness_check.txt', sep="\r\n", header=None)

Fixed in https://github.com/betsig/how_are_we_stranded_here/commit/617b2166f460445f93c5678863df53b6ffc3b798

I've had this issue too, but fixed it by installing from github. Would it be possible to update the package so that it can also be installed via pip?


Bump to 2.50.7

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Display the bucket name on the dataset UI and potentially adding search via it

Is your idea related to a problem? Please describe.
Most of the other tooling in my organization is based on the bucket name.  Currently there is no way to know if the dataset I'm looking at in the data.all UI is one I'd need as the bucket name is not surfaced anywhere.
Describe the solution you'd like
I would like to be able to look at a particular dataset page and know the bucket name being used for this dataset. Preferably this would also be searchable in the catalog as an additional item

Probable duplicate of #1437


Add support for Combine Packages

#20

@aguilerapy Let's follow a process where you request a review from @romifz, who can then request a review from me.

Free to review! @romifz


Remove babelfishpg_tsql.enable_ownership_structure.

Previously, The GUC babelfishpg_tsql.enable_ownership_structure no longer serves a purpose as Babelfish cannot run without the ownership structure. Now have removed ownership structure.
Task: BABEL-3154
Signed-off-by: pratikzode<EMAIL_ADDRESS>

We also need to modify ownership.sql
./contrib/babelfishpg_tsql/sql/ownership.sql:197:       EXECUTE format('ALTER DATABASE %s SET babelfishpg_tsql.enable_ownership_structure = true', CURRENT_DATABASE());
./contrib/babelfishpg_tsql/sql/ownership.sql:198:       EXECUTE 'SET babelfishpg_tsql.enable_ownership_structure = true';
./contrib/babelfishpg_tsql/sql/ownership.sql:212:       EXECUTE format('ALTER DATABASE %s SET babelfishpg_tsql.enable_ownership_structure = false', CURRENT_DATABASE());

We also need to modify ownership.sql
./contrib/babelfishpg_tsql/sql/ownership.sql:197:       EXECUTE format('ALTER DATABASE %s SET babelfishpg_tsql.enable_ownership_structure = true', CURRENT_DATABASE());
./contrib/babelfishpg_tsql/sql/ownership.sql:198:       EXECUTE 'SET babelfishpg_tsql.enable_ownership_structure = true';
./contrib/babelfishpg_tsql/sql/ownership.sql:212:       EXECUTE format('ALTER DATABASE %s SET babelfishpg_tsql.enable_ownership_structure = false', CURRENT_DATABASE());

rdsutils.c actually relies on enable_ownership_structure as an indication of BBF being installed. So I think we'd have to keep this line for a while


Fix concurrent registrations bug

Fixes:

Multiple concurrent registration sessions
Return proper registration flow stages

Signed-off-by: Tak Wai Wong<EMAIL_ADDRESS>

Something wrong with branch merge. Discarding.


Resolves #3614 modify bagit help links

Pull Request Checklist:

[X] Positive Test Case Written by Dev

[ ] Automated Testing

[ ] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

Open a collection or generic resource, find the bagit ui and click the "Learn more about the BagIt download" link
Redirects to help.hydroshare

Resolves #3614

sorry for the typo in the unrelated issue #


Issue uploading a .txt file

As reported via email there is a reproducible upload issue shown below.

Reproducible example: navigate to https://atip.uk/scheme.html?authority=Norfolk#8.45/52.673/0.949 and upload the attached file.
Norfolk_scheme 2 Dereham Quebec Rd.txt

I have tried to reproduce the issue with a simple file but cannot. See attached minimal example.
Uploading Norfolk.txt…

tried again with this file and still not working
Norfolk_Scheme 2 B1146 Quebec Rd Dereham.txt

I can reproduce the failure. That file is failing checkOrigin. It doesn't have an authority or origin property at the top level of the JSON object.
@PhillReilly, did you produce this file with ATIP, or another program?

i used ATIP with link from active travel england - i plotted the object named and saved, then exported to GeoTSON and saved the text file produced.  then try to reload it form the saved location (its a networked drive rather than laptop desktop) and the error appears - ju

st tried again to no avail

odd that this one works
Norfolk_B1370 Church Lane 6th From College.txt

browser is MS edge

  "authority": "Norfolk",
  "origin": "atip-v1"

Add those new lines in the final 2 lines just before
}

And I predict: it will work 🤞

Still: I think upload should work without the authority and origin info. Any reason not to?

now trying adding thos lines .. ill let you know in 2! - nope! guess i put in in the wron place - put at th every bottom before the last bracket

ok got it to work! i had to paste in "authority": "Norfolk", after scheme name at bottom and all good

ok got it to work! i had to paste in "authority": "Norfolk", after scheme name at bottom and all good

:tada:

Awesome! There's still a bug lurking somewhere here -- ATIP export should've included those fields in the first place. We'll check into it before closing this issue.

Awesome! There's still a bug lurking somewhere here -- ATIP export should've included those fields in the first place. We'll check into it before closing this issue.

Thoughts on removing the need for authority and origin? I see that as a broader and potentially quicker fix.

Agreed but the input in this case is not junk. I think other solutions with fewer impacts could address that. Also that issue is less important from user perspective than this one I think.

Stumbled upon this but this issue is caused by creating an intervention, then clearing it which seems to remove "origin" and "authority".
This function maybe a bit too harsh? https://github.com/acteng/atip/blob/7e3ea66fc3d93e2c159db84f60436ba0fa4ef54d/components/EntireScheme.svelte#L26-L34

Confirmation that this is a priority issue:

We have been having issues with ATIP when re-loading scheme maps once created. ATIP claims that they are not ATIP GeoJSON compatible even though they were created using the software. This doesn't happen with every map, but around half of them and there does not appear to be a pattern. Has anyone else had this issue? Could this be passed on to the mapping team.

With 6 upvotes in session today.

Can we deploy this fix @dabreegster ? Then we can close this issue I think.

Got some upvotes on my reply saying this will be fixed too!

I think this issue, that valid data in the original post, cannot be upload. Just checked now: https://github.com/acteng/atip/pull/80#issuecomment-1431231850

Fixed by #81 and tested on dev.
After it's updated on production we can finally close this issue.

Production has been deployed; it should be fixed everywhere now

:tada:


Bloom tested dataset not exist in this repo

Dear Big-science
I checked the evaluation scores of hellaswag, piqa, lambada, winograde...etc. in the bloom model
But there is currently no corresponding dataset in this repo.

The original repo(EleutherAI/lm-evaluation-harness) has a corresponding dataset.
In the case of bloom, did you test it on the original repo?

If yes, do you plan to update that dataset to the current repo?

thank you

This library is specifically for prompted evaluation of language models. As a result, we only offer evaluation datasets for which we have human-written prompts merged into PromptSource. If you want scores on standard benchmarks that are (maybe) comparable to results on other models you should use the EleutherAI version for now. If you are interested in prompted evaluation on those datasets, we welcome you to submit a PR to PromptSource with the prompts and then we can add the dataset to this library.


Add convolution layers

It would be nice to have 2D and 3D convolutions in theanets!
This should be fairly straightforward, but will entail a bit of work:

add Conv2 and Conv3 layers
add a layer for reshaping inputs
write documentation
write tests
add an example

"Bump"
Came here to add this feature request but looks like you've got it covered. Any status update?
Thanks @lmjohns3 for this great library.

Commit b6416435 mostly takes care of this. I haven't written any larger-scale tests for it yet, however! Feel free to report issues that you find (including poor docs).


Note that cifs 3.0 is not supported on Ubuntu 16

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

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@erikdubbelboer : Thanks for your contribution to the Azure documentation! The author, @RenaShahMSFT, has been notified to review your proposed change.

We couldn't get it working using the example commands from this page so we contacted your support. Rajesh Chenna told us to change to 2.1 to make it work. Why 3.0 is not supported is something you'll have to ask your tech team I guess.

Thank you for contributing. We plan on rolling out a fix for this issue.

#please-close


feat(hook): add optimizeModules hook

Related issue (if exists)
fix #2423

looks good to me, @jerrykingxyz  would you mind having a look if this pr fits your needs?

One more thing,  you should add your newly added hooks here to make the hooks filter work, https://github.com/web-infra-dev/rspack/pull/2758/files#diff-65c9f2211aa3417321f820555fd1ec4a9647fdc6cba3c80c2b96587a4d4ad4fdR330-R331


app thinks it's .rbxlx not rbxl

Could you please provide more information on this issue?

i am guessing this issue is saying that that the converter thinks that .rblx file is a .rbxlx file but thats just my guess?

and sorry for like i dunno what word is it but like barging in this 1 year ago thing


Refactor omero-server role (breaking changes)

This implements https://github.com/openmicroscopy/design/pull/73 in conjunction with

https://github.com/openmicroscopy/ansible-role-omero-common
https://github.com/openmicroscopy/ansible-role-omego
https://github.com/openmicroscopy/ansible-role-omero-web

It also implements a variant of https://github.com/openmicroscopy/design/issues/70 using a systemd ExecStartPre script to reinitialise the omero configuration from a directory of *.omero files.
Major changes from version 1.* of this role are outlined in CHANGES.md.

The changes document reads quite well, but I haven't been able to review all of them individually (in terms of naming etc). To some degree, we almost need a period of low-version numbers (omero-server2:0.1.0) to work through the API here before saying that this is stable. Anyone have suggestions on how to manage that?

@sbesson we need some advice on naming versions 😄

@manics :) An alternative to https://github.com/openmicroscopy/ansible-role-omero-server/pull/8#issuecomment-290746153 might be to maintain the same role name but express the fact we are working towards an API-breaking 2.0.0 using explicit semver tags like 2.0.0-m1 or  2.0.0-alpha1. Are the latter supported by Ansible Galaxy as I could not find any doc on their versioning scheme? Also what happens if a Galaxy requirements file does not contain any version for a tagged role - does it default to the HEAD of master, the last role tag or does it fail?

I don't know what the behaviour of tags is. If we're happy to test without tagged versions we could create a separate develop branch, and depend on the git-hash?

Last four commits:

Change the system user to omero-server (requested on an issue in a private repo)
Add some travis/ansible/omego/omero workarounds.

Last four commits:

Change the system user to omero-server (requested on an issue in a private repo)
Add some travis/ansible/omego/omero workarounds.

Last commit uses https://pypi.python.org/pypi/ome-ansible-molecule-dependencies/ for bundling dependencies

As discussed with @joshmoore and @manics, assuming there is no additional planned breaking change, I would vote for merging this into master, tag it 2.0.0-m1 (or maybe 2.0.0-rc1), test it in the various places and then release 2.0.0post testing. If needed, we can derive a stable branch for1.x.y` releases.

:+1:


experiments is no longer support in terraform v1.3.1

In version.tf,
https://github.com/particuleio/terraform-scaleway-kapsule/blob/8d064e441b95c572c0f6fb33101e17ff5981061c/versions.tf#L3
the experiments attribute throws the following  error with terraform 1.3.1.
╷
│ Error: Experiment has concluded
│
│   on .terraform/modules/..../versions.tf line 3, in terraform:
│    3:   experiments = [module_variable_optional_attrs]
│
│ Experiment "module_variable_optional_attrs" is no longer available. The final feature corresponding to this experiment differs from the experimental
│ form and is available in the Terraform language from Terraform v1.3.0 onwards.
╵

a related link here.

Fixed in https://github.com/particuleio/terraform-scaleway-kapsule/releases/tag/v6.0.0


am / pm mixed with 24 h format

Hello @simonpoole and @johnjohndoe,
I detected a weird behavior when parsing opening hours in non-strict mode such as:

Before
After

Mo-Su 8:00 am -1:00 am
Mo-Su 08:00-25:00

Sun 9:00 am - 12:30 pm
Su 09:00-24:30

12:00 pm - 3:00 pm
24:00-39:00

Fri 12:00 pm - 3:30 pm
Fr 24:00-39:30

7.30 am - 14.00 pm
07:30-26:00

Is it common, that values over 24:00 are allowed? Let me know.

Times up 48:00 are possible in the opening hours specification (extended times that extend in to the next day), naturally not all of the above were likely intended to be interpreted that way, but that is a general issue with parsing non-specification-conformant strings. Not sure if there is a reasonable heuristic that works for all of the above. The 1st example is likely correct, 2nd one see below, third should have probably been 12:00 pm - 3:00 am (isse with 12:00 pm see below), the fourth is the same as the third , the fifth might be 7:30 to 14:00.
There is however one real bug, in that times like 12:30 pm, 12:00 pm and 12:30 am need to be special cased.

https://github.com/simonpoole/OpeningHoursParser/commit/0acfaa6f5be1d90b8b7316e9e4e98cde2f9bbc9c should significantly improve the handling of > 12 hour times.

After looking through my test data and more discussions with UK colleagues I've switched the behaviour for 12 am/pm in https://github.com/simonpoole/OpeningHoursParser/commit/648099ab60432b75a14f4845a287481287815c7a
This mainly because the test data would indicate that a majority of the relevant strings use that convention.
You test cases should now be:


Turbo monorepo next-plugin-preval response always cached

Hello there,
Here is my tech stack:

NextJS
next-plugin-preval
Turbo
Vercel
Prismic

I am working in a monorepo context and facing an issue with the cache of next-plugin-preval. I am using Prismic as a CMS, and when the client hits the deploy button, Vercel rebuilds the website and uses the Turbo cache if needed, which is what I want.
However, the problem I'm facing is that the preval data is cached by Turbo and not detected as a change when we update its data.
Has anyone faced this issue before, and does anyone know of any workarounds?

@pierremouchan You find a solution to this?

@pierremouchan You find a solution to this?

Outdated. I don't think this issue is relevant anymore and I don't think I found a solution to this in 2023.


Can OpenFPGA build a bidir segment FPGA architecture?

Hi, can OpenFPGA build a bidir segment FPGA architecture?
I tried to change a undir segment FPGA, which was k6_N10_sram_chain_HC_template.xml, to a bidir segment by modifying the content of the <segmentlist> tag and the <switchlist> tag. This way was successful in VPR, but was failed in OpenFPGA. I tried to look for the example xml files of the bidir FPGA architectures, but I found no one. I also read the OpenFPGA documentation, but I couldn't find the content about describing a bidir FPGA architecture.

Hello,
Currently, we support uni-direction architecture mainly. If you try to run a bi-dir architecture, OpenFPGA will tell you clearly it is not yet supported.
This decision is based on the well-known paper Directional and single-driver wires in FPGA interconnect
Majority of modern FPGAs use uni-directional routing architecture, which is far more efficient than the bi-directional.
Best regards,
Xifan Tang

Hi, Thanks for your response.
I am still interesting about describing a bidir structure in the OpenFPGA. If you can discuss it with me, I will be very grateful!

Hello,
Can you provide me an email address? So we can schedule a conference call? Thanks