Navi script build failed

Hello,
When trying to build my blog, I'm getting
[ohshit] An error occured while building your app Couldn't find window.NaviScripts - did you call register()? Error: Couldn't find window.NaviScripts - did you call register()? at crawl (D:\blogReact\node_modules\navi-scripts\lib\crawl.js:22:15) at build (D:\blogReact\node_modules\navi-scripts\lib\build.js:9:32) at Command.<anonymous> (D:\blogReact\node_modules\navi-scripts\bin\ navi-scripts.js:89:7)
I have register in my index.js file. I have build the website before on another machine and it was working.
navi version: 0.12.6
navi-scripts version: 0.12.4
Any ideas what can be causing this?

No idea why this would be happening now. I think you're the second person to come across this, so there's probably something going on. However, it's still working fine for me, so it's difficult to test.
Does it still build properly on the previous machine?

it happened when you have google tag manager installed on index.html

I had the same problem with Node v12.10, downgrading to v11.15 fixed it for me.

Ran into this issue on node v12.11.1, downgrading fixed it for me as well. It looks like the latest version of node breaks navi.

Confirmed that v12 and v13 will cause this error.  Downgrade to v11.15 works.

Running with node v12.10.0, and get the error:
You may serve it with a static server:

  npm install -g serve
  serve -s build

Find out more about deployment here:

  https://bit.ly/CRA-deploy

navi-scripts: Using config at /apps/PG/project/PG/blog/navi.config.js
Error: Uncaught [Error: ]
    at reportException (/apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:62:24)
    at processJavaScript (/apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:243:7)
    at HTMLScriptElementImpl._innerEval (/apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:168:5)
    at onLoadExternalScript (/apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:90:12)
    at onLoadWrapped (/apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/browser/resources/per-document-resource-loader.js:53:33)
    at Object.check (/apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/browser/resources/resource-queue.js:76:23)
    at /apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/browser/resources/resource-queue.js:83:27 Error:
    at XMLHttpRequest.send (/apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js:616:17)
    at s (/static/js/2.9369d994.chunk.js:1:1043462)
    at H (/static/js/main.6cdcf9ed.chunk.js:1:3982)
    at Object.156 (/static/js/main.6cdcf9ed.chunk.js:1:4104)
    at p (about:blank:1:526)
    at Module.775 (/static/js/main.6cdcf9ed.chunk.js:1:8467)
    at p (about:blank:1:526)
    at Object.310 (/static/js/main.6cdcf9ed.chunk.js:1:7943)
    at p (about:blank:1:526)
    at l (about:blank:1:387)
Error: Uncaught [Error: ]
    at reportException (/apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:62:24)
    at processJavaScript (/apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:243:7)
    at HTMLScriptElementImpl._innerEval (/apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:168:5)
    at onLoadExternalScript (/apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/living/nodes/HTMLScriptElement-impl.js:90:12)
    at onLoadWrapped (/apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/browser/resources/per-document-resource-loader.js:53:33)
    at Object.check (/apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/browser/resources/resource-queue.js:76:23)
    at /apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/browser/resources/resource-queue.js:83:27 Error:
    at XMLHttpRequest.send (/apps/PG/project/PG/blog/node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js:616:17)
    at s (/static/js/2.9369d994.chunk.js:1:1043462)
    at H (/static/js/main.6cdcf9ed.chunk.js:1:3982)
    at Object.156 (/static/js/main.6cdcf9ed.chunk.js:1:4104)
    at p (about:blank:1:526)
    at Module.775 (/static/js/main.6cdcf9ed.chunk.js:1:8467)
    at p (about:blank:1:526)
    at Object.310 (/static/js/main.6cdcf9ed.chunk.js:1:7943)
    at p (about:blank:1:526)
    at l (about:blank:1:387)
[ohshit] An error occured while building your app
Couldn't find window.NaviScripts - did you call register()?
Error: Couldn't find window.NaviScripts - did you call register()?
    at crawl (/apps/PG/project/PG/blog/node_modules/navi-scripts/lib/crawl.js:22:15)
    at build (/apps/PG/project/PG/blog/node_modules/navi-scripts/lib/build.js:9:32)
    at Command.<anonymous> (/apps/PG/project/PG/blog/node_modules/navi-scripts/bin/navi-scripts.js:89:7)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>build: `react-scripts build && navi-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!  I am experiencing the same error.

Same errors here with navi-scripts builds. I can get the base blog to build, but when I try to link to a post or refresh the page on a post, I get that the page isn't found because navi-build fails and I'm guessing then is unable to create the static html files.
I am running

<EMAIL_ADDRESS><EMAIL_ADDRESS>node v11.15.0


GetReference shouldn't hardcode api prefix

#1475 assumes there is a fixed path prefixes in the apiserver and client, so that it can retrieve version like this:
var versionFromSelfLink = regexp.MustCompile("/api/([^/]*)/")
...
version := versionFromSelfLink.FindStringSubmatch(jsonBase.SelfLink())

But above assumption is not valid today, we should do something to enforce such assumption, or find another way to retrieve version.
@smarterclayton

I think this is prerequisite for #2098.

I dont see https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/api/ref.go using that regex anymore. It is extracting the version from ObjectReference.
API prefix is not harcoded anywhere in that function or file.


[Features] - Open discussion for feature requests

Leave your comments if you would like us to add anything, not limited to Terraform, Ansible, Cloud-init, and Docker.
TODO:

[x] Docker - Umami Support (#3)

#4 Hello...

#4 Hello...

Hi there, Nice to meet you!

great work, would be really appreciated if you can add a template to create custom windows 10 image with packer @yqlbu

This is really good stuff, Thank you for working on this!!!  I am looking at working Hashicorp Vault into this for password/Keystore and SSH Cert singing ( I am in a scenario where I could be ssh-ing from any number of machines to any number of machines{including newly created vms})....so I would like to basically give my Vault info to VMs and whatnot, then get signed cert from vault and ssh to the machine.  This will keep me from having to provide all of my ssh keys to everything...Is that something you are looking at?

Any PR is definitely welcome. I will suggest checking out the blog post for some foundation knowledge about the basic/advanced use cases before integrating new features into the existing module. As you can tell, the file structure is already modularized at some level.
Let me know how you think, and I am happy to work with you along the way :)


Finally a running version of the "Protein quant sil" tutorial

Hi.
Here comes a massive tutorial on labelled Protein Quantitation using OpenMS tools. A skeleton of the tutorial has been online for quite a while, but we had to fix quite a lot of OpenMS bugs before this tutorial could finally run.
Enjoy!
Florian

Oh, and I did not publish the test dataset on PRIDE, yet. Therefore, the link is still leading nowhere.


imporve the bug_report issue template

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
14 unchanged lines in 8 files lost coverage.
Overall coverage increased (+0.007%) to 66.843%

Files with Coverage Reduction
New Missed Lines
%

com/baidu/bifromq/dist/util/TopicFilterTrie.java
1
94.4%

com/baidu/bifromq/dist/util/TopicUtil.java
1
96.34%

com/baidu/bifromq/retain/store/RetainStoreCoProcFactory.java
1
88.89%

com/baidu/bifromq/basecluster/fd/FailureDetector.java
2
87.83%

com/baidu/bifromq/basekv/raft/RaftNodeStateFollower.java
2
86.15%

com/baidu/bifromq/basecrdt/store/AntiEntropyManager.java
2
76.61%

com/baidu/bifromq/basekv/store/range/KVRangeFSM.java
2
77.06%

com/baidu/bifromq/basehlc/HLC.java
3
67.74%

Totals

Change from base Build<PHONE_NUMBER>:
0.007%

Covered Lines:
21172

Relevant Lines:
30823

💛  - Coveralls


Add GA4 analytics ID into Dev Portal guided tours

For tracking integration with Google Analytics, the new guided tour flows need to be configured with the analytics ID of the developer portal. This should not be done until the feature has been merged into main and launched to production, to avoid having test data in the production guided demo analytics.

GA4 analytics ID now added to guided demos!


Fluent-ffmpeg Canvas streaming (blob -> RTMP streaming)

Version information

fluent-ffmpeg version:Latest
ffmpeg version:4.x.x
OS:UBUNTU SERVER 18.04 LTS

Code to reproduce
const inputStreamBuffer = new ReadableStreamBuffer()
     var cmd =  FFMpeg(inputStreamBuffer)
            .inputOption('-re')
            .addOptions(opt.split(' '))
            .on('start', function (commandLine) {
              console.log('commandLine: ' + commandLine);
            })
            .on('error', function(err) {
              console.log('An error occurred: ' + err.message);
            })
            .on('progress', function(progress) {
              console.log('FPS : ' + progress.currentFps);
            })
            .on('end', ()=>{
              console.log('end data in ffmpeg')
            })
            .save(rtmp)   //rtmp url

(note: if the problem only happens with some inputs, include a link to such an input file)
Expected results
-> I have set my Socket.io :
socket.on('data', function(data) {
inputStreamBuffer.put(data) // the data is a blob sended from canvas.captureStream()
});
I wan't to stream the canvas to youtube live using fluent ffmpeg
Observed results
Checklist

[x] I have read the FAQ
[x] I tried the same with command line ffmpeg and it works correctly (hint: if the problem also happens this way, this is an ffmpeg problem and you're not reporting it to the right place)
[x] I have included full stderr/stdout output from ffmpeg

#1008 i think we've the same issue here.... don't you think?

Yes i think is the same, i have a solution  but the fpsis too low, maybe i need to change my FFmpeg settings :

Note that the rtmp var is : youtube URL + RTMP key
var args = '-re -i - -movflags +faststart -vf scale=1280x720 -aspect 16:9 -vcodec libx264 -pix_fmt yuv420p -q:v 0 -r 30 -crf 13 -profile:v main -preset:v ultrafast -b:v 2500k -maxrate 2500k -bufsize 2500k -r 30 -c:a aac -b:a 128k -ar 44100 -threads 10 -f flv ' + rtmp

cmdFFmpeg = child_process.spawn(ffmpegPath, args.split(' '));
cmdFFmpeg.stderr.on('data', (data) => {
console.log('Data coming through STDERR:', data.toString());
});
// onWrite
cmdFFmpeg.stdin.on('write', (e)=>{
  console.log('something new was written', e);
})

//receiving data (blob) from canva.captureStream()
socket.on('data', function(data) {
if(cmdFFmpeg !== undefined){
cmdFFmpeg.stdin.write(data)
}
//cmdFFmpeg.ffmpegProc.stdin.write(data);
//cmd.stdin.write(data)

});
I don't know if my FFmpeg settings is correct.


Update packages, use chrome instead of phantomjs, fix scroll-type det…

…ection

Is Chrome headless a thing we can use yet? (instead of phantom)

Probably. But phantomjs/chrome is only used for local testing/dumping.

The failing test is Firefox, which is unrelated to the changes here.


Setting orgUrl is not required

If the org URL is not set, it will be computed with the issuer URL. See here

you are correct. Will fix in camunda 7.20 examples

fixed


Error with server side rendered pages

I'm not sure why but AWS Amplify is erroring with server side rendered pages, but I thought that it was capable of doing that...
Strange.
Example: https://nicholasgriffin.dev/sitemap.xml

This is sort of fixed in terms of other pages (it was happening with blog posts too) by moving to vercel for the site hosting.
The sitemap does have an issue though so will need to fix that.


Change commit message prefix

Hi,
I would like to change the 'fix' 'minor' and 'major' prefix in commit message which change the version to another prefix, for example:
'fix' --> 'bug'
'minor' --> 'feature'
'major' --> 'update'
I tried to understand from the documentaion but couldn't understand how, is it really possible?
If it does, can someone provide an example?
Thanks!

great question faced with the same few days ago would like to know how to handle it...

Anyone can help?


[QUESTION] Show side menu when not logged in, but not show when logged out

Question
In my side menu, I've got options for Sign In and Register. This is fine, if not already logged in. But once logged in, I want to hide it. I'm using the can for other menu's, but I can't seem to get this particular functionality to work. Is there a way of making this happen?

Never mind. I discovered listeners and was able to get it working.

@PiousVenom Why not use a login box, after login procedure you show the admin panel? We support customization of the legacy laravel/ui authentication scaffolding, check:

Installation / Step 3
Authentication Views

Laravel also offers other authentication scaffoldings, like breeze and jetstream, but we do not support views customization for these ones currently.
In my opinion, having a login link on the sidebar is not a good idea.

@PiousVenom Why not use a login box, after login procedure you show the admin panel? We support customization of the legacy laravel/ui authentication scaffolding, check:

Installation / Step 3
Authentication Views

Laravel also offers other authentication scaffoldings, like breeze and jetstream, but we do not support views customization for these ones currently.
In my opinion, having a login link on the sidebar is not a good idea.

I have a welcome page that is displayed when no one is logged in. You suggest a login box on that then? I have the login view that was published when I did the only _auths command. I'd thought just having a link to that in the sidebar would be sufficient.

@PiousVenom It is up to you, I prefer a login box by default when no one is authenticated. Then, on your routes, you can do something like next (assuming you have the authentication scaffolding):
//-----------------------------------------------------------------------------
// The next group of routes requires authentication. If the user is not
// authenticated, it will be redirected to the login screen.
//-----------------------------------------------------------------------------

Route::middleware('auth')->group(function()
{
    // TODO: Add here all routes that requires authentication.
});

Yeah, I do that part already for the routes I want auth'd. Like I said though, just wanted to have a straight landing page with some stats displayed before they login.


PocketNet / Bastyon logo

In the latest version there's still the "old" pocketnet logo instead of the new Bastyon logo.

Its a logo man, its not that hard to change

I know, if I want to change it in my personal distribution, I'd do. I'm speaking about the official app, and I don't have the original logo files from Bastyon. But it's not that normal to have the Pocketnet logo inside the Bastyon app, don't you think?

As I see, this issue is irrelevant now


Calling exit from a signal handler isn't safe

Here's a snippet from inside sigHandler, which calls exit at two occasions:
https://github.com/joan2937/pigpio/blob/934874be2fa34a525beb33e8cb75e378df587860/pigpio.c#L5518-L5532
According to man 7 signal, this is not a safe thing to do. Only _Exit and _exit are async-signal-safe, not the regular exit. In my case, this causes my atexit handler to run in signal context, which is very unexpected.
(note that this might not be the only signal safety issue in the handler)

If exit is called in that function something pretty dreadful has already happened.  Continuing as if nothing is wrong may not be sensible, aborting is probably the right solution.
What would you do?  Other threads are already potentially compromised.

The code is executed when the program is killed via SIGINT or SIGTERM, nothing is compromised in that case. You also shouldn't exit with a code of -1 in that case, which indicates an error.
I think it's best to just shutdown pigpio normally and don't call any exit function. The default action of the signal will then be executed and usually terminate the process.

@jonas-schievink , Do you have a proposal for a change?  If so, we will evaluate it.

Call _exit or _Exit instead of exit. I'm not qualified to review the handler for other signal safety issues though.

The signal handling was implemented in support of the daemon (pigpiod).  You can turn off the signal handler if you don't want to use it:
gpioCfgSetInternals(PI_CFG_NOSIGHANDLER);

The signal handler invokes undefined behavior. Please reopen until that is fixed.

Are you using the pigpiod?

I don't remember. It's still undefined behavior, whether it's in the daemon or not.

Yes, but as Joan stated, if things are in the midst of crashing, does it matter?  I suppose I could make the change.  Have you tested it?

if things are in the midst of crashing, does it matter?

Unfortunately yes, or I wouldn't have opened this issue – having atexit handlers called from a signal handler is very unexpected behavior. In my case I think it was some ROS handler running and causing havoc.

Have you tested it?

No, as I no longer have access to the hardware.

Will you help me to write a test case?  I'd like some confirmation that whatever change is made to the source if having the intended behavior (and that nothing else breaks).

I can try, but I'm not a C programmer. Basically you need to:

Register an atexit handler
Setup pigpio
Send a SIGINT signal to yourself using raise(SIGINT);

This will now call the registered handler, but should not (technically it's UB, so the handler doesn't have to be called)

Can you please clarify?

, but should not (technically it's UB, so the handler doesn't have to be called)

Yeah, atexit handlers are only called by exit, not the async-signal-safe alternatives _exit and _Exit.

I would not make any change to the existing behaviour.  Undefined behaviour is just that, an unknown number of people will be depending on the current behaviour.


Performance: avoid loading adal/requests in order to get current subscription/user name

Loading adal brings in requests. We don't need either if we are just going to read the current subscription/installationid.
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines

[N/A] The PR has modified HISTORY.rst with an appropriate description of the change (see Modifying change log).

Command Guidelines

[N/A] Each command and parameter has a meaningful description.
[N/A] Each new command has a test.

(see Authoring Command Modules)

Codecov Report

Merging #2853 into master will decrease coverage by <.01%.
The diff coverage is 59.09%.

@@            Coverage Diff             @@
##           master    #2853      +/-   ##
==========================================
- Coverage   63.11%   63.11%   -0.01%
==========================================
  Files         464      464
  Lines       25916    25925       +9
  Branches     3948     3948
==========================================
+ Hits        16358    16362       +4
- Misses       8507     8512       +5
  Partials     1051     1051

Impacted Files
Coverage Δ

src/azure-cli-core/azure/cli/core/telemetry.py
54.1% <0%> (ø)
:arrow_up:

src/azure-cli-core/azure/cli/core/_profile.py
84.29% <63.41%> (-0.97%)
:arrow_down:

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 5c53a3b...a5ce4f8. Read the comment docs.

A more thorough fix would be to delay initializing adal token cache till we really need. With that, a few other commands will also benefit from it such as account list, account set

Based on code review feedback, I'll refactor things in a different way.


[STYLE CHANGE] Improvement in footer styling

Description:
I want to reduce space between social icon in footer section.
Reason for Change:
The design of footer is not suitable according to website after changing it will look better.
Current Styling:
Currently there is to much space between two icons.
Proposed Styling:
I will reduced space between these icons.
Screenshots or Design Mockups (optional):
Before:

After:

Priority Level (optional):

[ ] Low
[x] Medium
[ ] High

@akshitagupta15june please assign this issue under GSSOC'23.


Add test for tabs on ListRecords class

Would be nice to have; has tabs with "Tab 1" "Tab 2" right? @dissto


scala_junit_test not working with bazel coverage

Description of the problem / feature request:
Add coverage_runfiles phase and _lcov_merger attr to scala_junit_test
Feature requests: what underlying problem are you trying to solve with this feature?
bazel coverage on bazel 4.0 barfs on scala_junit_test target types, seemingly because it's missing this phase.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Create a scala_junit_test target
Run bazel coverage on that target
This can be seen in this repo via bazel coverage //test:JunitTestWithDeps
What operating system are you running Bazel on?
OSX Catalina
What's the output of bazel info release?
release 4.0.0
Extra info
I've manually modified the rules_scala sources to do this, and it suddenly starts to work. I've also used the custom phase mechanism to build a custom scala_junit_test rule which does the same thing, and this also works. It's what I'm using now internally until upstream has a similar change.

@virusdave, thanks for reporting! Will you be able to prepare a PR too?

@virusdave, thanks for reporting! Will you be able to prepare a PR too?

Oh, I see there is #1239, thanks!

Solved by #1250


Demo version?!??

Downloaded Torsion install binary, installed it, and it asks me to register it! The shop is closed..

Please look this: http://www.garagegames.com/community/forums/viewthread/83947/8#comment-865865
You can download for free from here:
ghc-games.com/SC/Torsion.zip


Arbitrary MSYS2 Python failures on Windows builds

Description
I use MSYS2 to build Windows binaries of QEMU in my actions. Currently, I'm getting arbitrary python failures during the build process - sometimes the build works, and sometimes it fails despite there being no changes in the affected region.
Here is an example of a failed build:
https://github.com/vintagepc/MINI404/actions/runs/3404920110/jobs/5662636923#step:1:2
And this build completed successfully:
https://github.com/vintagepc/MINI404/actions/runs/3404850675/jobs/5662389192
Both builds ran within a few minutes of each other.
There were no differences to the build configuration or code between the two except to fix a warning (in a file that isn't even compiled until much, much later) The build.yml change is for a different job entirely.
https://github.com/vintagepc/MINI404/commit/1fc27420d2bc2dc838ca2f734aa74a9ce98b5ba4
Platforms affected

[ ] Azure DevOps
[X] GitHub Actions - Standard Runners
[ ] GitHub Actions - Larger Runners

Runner images affected

[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] macOS 10.15
[ ] macOS 11
[ ] macOS 12
[X] Windows Server 2019
[X] Windows Server 2022

Image version and build link
Build logs linked above.
Current runner version: '2.298.2'
Operating System
Microsoft Windows Server 2022
10.0.20348
Datacenter
Runner Image
Image: windows-2022
Version: 20221027.1
Is it regression?
OS 10.0.20348/ Runner image 20221019.1
Expected behavior
Build to complete successfully
Actual behavior
Python command to generate keymaps seems to be arbitrarily failing or passing with no detailed error. This area of the code hasn't been changed in months and comes directly from upstream QEMU.
https://github.com/vintagepc/MINI404/actions/runs/3381838302/jobs/5624470117 is an example of a build with a python failue elsewhere in the process, also in code that hasn't been altered.
Repro steps
See build_msys section in this workflow: https://github.com/vintagepc/MINI404/blob/MINI404/.github/workflows/build.yml
Summarily:

Install MSYS and required packages
Checkout MINI404 repository with autoCRLF false
configure and build per workflow commands.

Hey @vintagepc.
We will take a look at it.

hello @vintagepc! in successful build log i can see checkout step for  114-fix-workflows differs from checkout step from unsuccessful build

I think this is related to https://github.com/msys2/MINGW-packages/issues/11864

That's some interesting reading. Glad to hear it's not just me and others are also experiencing this problem in GA

@vintagepc do you still have the same issue? maybe using the previous version of msys2 could help? please check example here

As far as I know the problem still exists, but I was able to work around it by force-downgrading to an older MSYS2 python package. However, this is not a permanent fix, as MSYS doesn't support this and the old packages might be removed or become incompatible at any time.

@vintagepc since we cannot do more for now, i will close the issue. please feel free to reopen if you have any additional questions or concerns.


No longer resubscribe on every update

The current useEffect will subscribe and unsubscribe on every render. This change makes it so that it only creates the subscription on mount, and removes the subscription on unmount.
Docs here

This is similar to https://github.com/rehooks/window-size/pull/1

lol

lol, i watched the conference mostly without sound so I probably missed some important details 🤔


Backtest sell is not the same or near to candle close

Note: this is the technical bug tracker, please use other platforms for getting support and starting a (non technical) discussion. See the getting help page for details.
I'm submitting a ...
[ x] bug report
[ ] question about the decisions made in the repository
Action taken (what you did)
I'm testing a simple strategy of EMA cross in 120 minutes time frame, I've notices that the sell price in the log is far from the last candle,
calculated MACD properties for candle:
2018-07-22 20:23:55 (DEBUG):             short: 6681.34790094
2018-07-22 20:23:55 (DEBUG):             long: 6686.58195784
2018-07-22 20:23:55 (DEBUG):             macd: -5.23405690
2018-07-22 20:23:55 (DEBUG):             macdiff: -5.23405690
2018-07-22 20:23:55 (DEBUG):             price: 6632.22000000
2018-07-22 20:23:55 (DEBUG):    In downtrend since 1 candle(s)
2018-07-22 20:23:55 (INFO):     2018-07-10 08:00:00: Paper trader simulated a SELL      6386.67252783 USDT <= 0.00000000 BTC
My configuration is,
// EMAOBV settings:
config.EMAOBV = {
// EMA weight (α)
// the higher the weight, the more smooth (and delayed) the line
short: 9,
long: 26,
// the difference between the EMAs (to act as triggers)
thresholds: {
down: -0.025,
up: 0.025,
// How many candle intervals should a trend persist  before we consider it real?
persistence: 0
}
};
I made sure to start the backtest from correct hour for the selected time frame,
config.backtest = {
daterange: 'scan',
daterange: {
from: "2018-06-29 14:00",
to: "2018-07-21 18:01"
},
batchSize: 50
}
and I set slippage to 0.005.
what could be the problem?
Expected result (what you hoped would happen)
Expected result is sell price near to the candle close.
Actual result (unexpected outcome)
sell price is less by 200+ USD
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)

Regardless of what time is being displayed, it still shouldn't result in a very different price. I do want to look? - but why did you close this issue?

Thanks Mike for your support, this issue was due to the default asset and currency settings, when I adjusted the seetings it added up.


Bug fixed issue #25,#44

2 bug fixed.

Fixed deletePrivateData.
Fixed the query scope of getStateByRange, getPrivateDataByRange.

Nice. Could you also add some specific test cases for this?

Thank you for checking. OK, please wait for some days.

hi.
I've  committed some testcases for the Fixes #25 , #44 .
Please confirm.

Thanks for your contribution.


NPM 2.6.9 Not valid

I'm currently unable to get anything with this package as a dependency to install after the latest update to 2.6.9. The npm repo page says that there is a 2.6.9 package available, but the npm install does not list this and fails.
$ npm install
npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/skennedy/.nvm/versions/node/v6.10.2/bin/node" "/Users/skennedy/.nvm/versions/node/v6.10.2/bin/npm" "install"
npm ERR! node v6.10.2
npm ERR! npm  v3.10.10
npm ERR! code ETARGET

npm ERR! notarget No compatible version found<EMAIL_ADDRESS>npm ERR! notarget Valid install targets:
npm ERR! notarget 3.0.1, 3.0.0, 2.6.8, 2.6.7, 2.6.6, 2.6.5, 2.6.4, 2.6.3, 2.6.2, 2.6.1, 2.6.0, 2.5.2, 2.5.1, 2.5.0, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.3, 2.3.2, 2.3.1, 2.3.0, 2.2.0, 2.1.3, 2.1.2, 2.1.1, 2.1.0, 2.0.0, 1.0.5, 1.0.4, 1.0.3, 1.0.2, 1.0.1, 1.0.0, 0.8.1, 0.8.0, 0.7.4, 0.7.3, 0.7.2, 0.7.1, 0.7.0, 0.6.0, 0.5.0, 0.4.1, 0.4.0, 0.3.0, 0.2.0, 0.1.0, 0.0.1
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of 'body-parser'
npm ERR! notarget

It works for me:
$ npm install debug@2

+<EMAIL_ADDRESS>added 2 packages in 1.152s

Are you sure you're not being a caching npm proxy or something like that?

Yes, this points to an artifactory caching problem I think. I only had others behind the proxy test. I will pursue internally.


[MINOR] Rename the checkForConflicts

Which Delta project/connector is this regarding?

[ ] Spark
[x] Standalone
[ ] Flink
[ ] Kernel
[ ] Other (fill in here)

Description
While analyzing how does the commit work I found the checkForConflicts name a bit misleading. It does verify the conflicts but from my understanding, its main purpose is to return the next commit version if there are no conflicts with the last written transaction. Hence the renaming. I also added the @throws annotation to expose the possible errors returned. There is no inherent issue with the code itself.
How was this patch tested?
Compilation and existing tests should pass. It's just a renaming, no new features added.
Does this PR introduce any user-facing changes?
No
Signed-off-by: Bartosz Konieczny<EMAIL_ADDRESS>

p.s. The name of the PR should include "Which Delta project/connector is this regarding?" as per this rule:

Please add the component selected below to the beginning of the pull request title
For example: [Spark] Title of my pull request

Thank you @jaceklaskowski ! I fixed the PR name and the typo comment.
I got your point about doing multiple things at once but IMO, it's also a matter of perspective [how do we consider this conflicts checker eventually throwing the exception].

@prakharjain09 Could you please take a look at this?


Multicast between virtual machine and host - subscriber not receiving messages

I have the sample C++ BasicPublisher running on a CentOS virtual machine and the Java BasicSubscriber on the host Windows 10 machine. Each environment also has media drivers running, the host machine specifically using the logging media driver. When using Unicast UDP, the publisher is able to communicate successfully with the subscriber. However, when supplying a multicast address to both the publisher and subscriber, the BasicPublisher reports the following:
"offering x/N- Offer failed because publisher is not connected to subscriber No active subscribers detected"
The BasicSubscriber and logging media driver continually wait for a message from a publisher but never receive one. Neither logs anything to reveal that a publisher is attempting to connect. One fact to note is that I am able to communicate via multicast between the sample C++ BasicPublisher running on one CentOS virtual machine and the sample C++ BasicSubscriber running on a different CentOS virtual machine on the same host.
The firewalls on both the virtual machine and the host have been fully disabled and I have enabled Microsoft Message Queue Server core (including Multicasting Support) on the host machine.
Any direction here would be very helpful. Thanks.

Depending on the VM and the mode of the network, multicast may or may not be possible. Best to look at the details of the VM and network mode in use.

It appears that I'm also unable to have the Java Basic Publisher messages reach the Java Basic Subscriber via multicast when each is hosted on its own Windows 10 machine (no virtual machines). Each machine has its firewall disabled and MSMQ Multicasting enabled.

Sorry but we cannot comment of your platform setup as this is not an Aeron issue. Start with basic network tooling and confirm connectivity.

Seems like my Windows machine requires explicitly setting an IP interface when using multicast for the connection to work. Adding that to the Aeron channel solved my issues.

Some OSs set the default multicast interface to be first (in the list) that supports multicast and is not loopback. Others do not. It is not possible to easily tell. So, it is suggested to always set the interface when dealing with multicast. Even outside of Aeron, this is a good idea. Just FYI.


Possible Scripting Layer Support

@praydog What are your thoughts on having a scripting layer with bindings to the C++ to massively help facilitate the development of RE:2 mods?
Possibilities such as Lua/Angel Script/C#.
If we lower the level of complexity required to leverage the capabilities of this framework via a scripting language interface, we might foster a broader community for modding of RE:2.

Sure, I think it would be suitable once the project maps out the RE Engine in a broader sense than it is right now. There could be more ways hiding within the engine to easily facilitate automatic bindings. The game uses C++/CLI or something so that could probably be leveraged somehow.
For now, I think this project should be turned into a C++ mod loader until then, or do what Kanan is doing where popular mods are integrated as pull requests.

Sounds good; keep the scripting layer bindings separate and the project focused


Fix default value for dns_mode on the document

Related to:

https://github.com/kubernetes-incubator/kubespray/commit/d1a02bd3e9f22d95213bd1d91c466124ea63ccc9
https://github.com/kubernetes-incubator/kubespray/commit/31a7b7d24ec9de95e321a8b90c90c0360aa85fdb

@amaya382 please sign the CLA.


Unicode in XPath

2> mochiweb_xpath:compile_xpath("//div[text() = 'привет']").
** exception error: bad argument
     in function  list_to_binary/1
        called as list_to_binary([1087,1088,1080,1074,1077,1090])
     in call from mochiweb_xpath_parser:simplify/1 (src/mochiweb_xpath_parser.erl, line 29)
     in call from mochiweb_xpath_parser:simplify/1 (src/mochiweb_xpath_parser.erl, line 27)
     in call from mochiweb_xpath_parser:simplify_predicate/1 (src/mochiweb_xpath_parser.erl, line 66)
     in call from lists:map/2 (lists.erl, line 1237)
     in call from mochiweb_xpath_parser:simplify_path/1 (src/mochiweb_xpath_parser.erl, line 45)
     in call from mochiweb_xpath_parser:simplify_path/1 (src/mochiweb_xpath_parser.erl, line 47)
     in call from mochiweb_xpath_parser:simplify/1 (src/mochiweb_xpath_parser.erl, line 25)

Should be fixed by smth like
-    {literal,list_to_binary(L)};
+    {literal,unicode:characters_to_binary(L)};

https://github.com/retnuh/mochiweb_xpath/blob/master/src/mochiweb_xpath_parser.erl#L29
And the same with
3> mochiweb_xpath:compile_xpath("//div[processing-instruction('привет')]").
** exception error: bad argument
     in function  list_to_binary/1
        called as list_to_binary([1087,1088,1080,1074,1077,1090])
     in call from mochiweb_xpath_parser:simplify_node_test/1 (src/mochiweb_xpath_parser.erl, line 56)
...

-    {processing_instruction,list_to_binary(L)};
+    {processing_instruction,unicode:characters_to_binary(L)};

https://github.com/retnuh/mochiweb_xpath/blob/master/src/mochiweb_xpath_parser.erl#L56
Not sure about prefix_test...

Sorry this took so long, I haven't touched this project in a few years.
Thanks for the bug report and the patch!

Thanks!


⚠ Bofrost.lu has degraded performance

In 1d0cbb7, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1862 ms

Resolved: Bofrost.lu performance has improved in 7044f67 after 6 minutes.


UUID.generate collisions when called too often

Under JRuby I am calling UUID.generate quite often. I see a case in my logs where two successive calls returns the same UUID. Looking at the code, I see this comment:

    # The clock must be monotonically increasing. The clock resolution is at
    # best 100 ns (UUID spec), but practically may be lower (on my setup,
    # around 1ms). If this method is called too fast, we don't have a
    # monotonically increasing clock, so the solution is to just wait.
    #
    # It is possible for the clock to be adjusted backwards, in which case we
    # would end up blocking for a long time. When backward clock is detected,
    # we prevent duplicates by asking for a new sequence number and continue
    # with the new clock.

Judging by the comment, I assume that it is possible that a backward clock could be detected twice in a row, so asking for a new sequence number in that situation will still generate the same UUID when UUID.state_file=nil. If this assumption is correct, would it be reasonable to randomize the next sequence number?
e.g.
if self.class.state_file
  ....
else
  @sequence += rand(999)
end
...

If that is acceptable, I could provide a patch.

Backward clock happens when the system clock is adjusted backwards which is not likely to happen often enough for you to notice. That detection is done in mutex.synchronize block. If that block was not synchronized, you'd get duplicates much more frequently, see the all issue with drift.

So it sounds like my guess for why the dupes occur is in error. However, it does dupe fairly often even though I use this synchronized version everywhere. Aside from "don't call it so often" is there a fix or should I work around it?
Sent from my iPhone
On Jan 7, 2012, at 3:32 PM, Assaf<EMAIL_ADDRESS>wrote:

Backward clock happens when the system clock is adjusted backwards which is not likely to happen often enough for you to notice. That detection is done in mutex.synchronize block. If that block was not synchronized, you'd get duplicates much more frequently, see the all issue with drift.

Reply to this email directly or view it on GitHub:
https://github.com/assaf/uuid/issues/21#issuecomment-3398390

Frequency is not the issue, it either works or doesn't. I assume you're calling UUID.generate or calling that method on the same UUID object.

I am calling UUID.generate (based on our last conversation). It isn't working because I sometimes get duplicates. What do you suggest?
cr
On Jan 7, 2012, at 4:18 PM, Assaf Arkin wrote:

Frequency is not the issue, it either works or doesn't. I assume you're calling UUID.generate or calling that method on the same UUID object.

Reply to this email directly or view it on GitHub:
https://github.com/assaf/uuid/issues/21#issuecomment-3398689

My best guess is that the mutex is not working under that version of JRuby.


chore: update dependencies and suppressions

Description
Update a few dependencies, clean up suppressions

@hypertrace/trace-pipeline-owners review please


An error occurred while getting vioShield cookie value. Please check your session id.

i have checked and re checked everything. ive done it from the start multiple times even erasing every data, still get the same issue.
i dont know much or even anything about api so any help counts, thanks anyway

I think your problem is user_agent. Can you try this:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36

same issue still, i already had that user agent tho but i still rewrote it

same issue still, i already had that user agent tho but i still rewrote it

Can you write to me via Discord?

sure where can i send you my discord without leaking it?

When you run the bot, you can see my discord ID information there.

just added you

Just to let you know guys, the problem was fixed by clearing all cookies, logging in again to Key-Drop, and getting a new session ID.


Correct the date time format for deletedTime

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.

adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

/azp run automation - sdk

Can one of the admins verify this patch?

I don't see the .net SDK result. If it's pass, I am OK with it.

/azp run

Please go through the contribution checklist added as part of the review and mark them completed.

python SDK works for azure cli. @zfchen95 would you add such change in container in this PR?

python SDK works for azure cli. @zfchen95 would you add such change in container in this PR?

We will do the change in server for container soft delete. The existing format in swagger is good.

looks like a breaking change. also, i am not sure if the new format is supported. we should be consistent within all azure services here. and as far as I know, format: date-time is what we support. So, please confirm with SDK folks. @johanste - any comment on this?

Is this a change in service behavior? If so, it should not be made since it is a (semantic) breaking change. There are absolutely no guarantees that a given client understands RFC822 date times just because it can parse ISO 8601 formats.
While rfc1123 is a known format to autorest, it is an extension, and most clients/code generators would not be aware.


Main Action Button is transparent on Android devices

When displaying the FAB on android devices, the main button renders with a transparent background. Is this just happening in my device? Using rn0.36.0

EDIT -------------------------
Messing around with the code I seem to have found where the trouble is: changing the useNativeFeedback to false seems to work around the issue but the shadows are not displayed properly.

Good.


merge from template-node-app

package.json

chore(deps): add ^12.1.4 remove ^12.1.3 (devDependencies.npm-pkgbuild)

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

npm package (@latest dist-tag)
v6.4.5
GitHub release

Your semantic-release bot :package::rocket:


Pick target branch from first commit's suggestedTargetBranches in non-interactive mode

When using non-interactive mode (e.g. using backport-github-action) getTargetBranches() failed to find target branch when there are >1 commit in the PR to backport:
 "error": {
    "name": "BackportError",
    "errorContext": {
      "code": "no-branches-exception"
    }
  },
  "errorMessage": "There are no branches to backport to. Aborting."

Now it picks up target branch from first's commit suggestedTargetBranches. In backport-github-action every commit to backport has the same suggestedTargetBranches based on PR's labels.
Solves https://github.com/sorenlouv/backport-github-action/issues/103
FYI @sorenlouv

FYI @sorenlouv

Thank you for the contribution!


procedures/functions with . in the name, don't align correctly

  librar.procedura(k => 5,
  e => 7, s => kfh.kfldgk);

should be
  librar.procedura(
     k => 5,
     e => 7, s => kfh.kfldgk
  );

solved


Peer deps shouldn't be in dependencies

...that defeats the point :)
I am seeing this:

@revmischa yes, thanks! Totally make sense! Only you haven't moved material-ui related dependencies to the devDependencies... I suppose it won't work

Thanks! You are right.


DefaultAzureCredential exception issues

I get this exception without any creds set.
Overall there is way too much information returned and duplicated in this error message.
Suggestion: Only display exception messages once and clean them up as indicated below.
ManagedIdentityCredential is unavailable No managed identity endpoint found..

It is missing a period after unavailable
It ends with two periods

SharedTokenCacheCredential is unavailable No accounts were found in thecache.  To authenticate with the SharedTokenCacheCredential, login an account through developer tooling supporting Azure single sign on..

Same as above. Missing period. Ends with two periods.
"thecache" needs a space.
"login" should be "log in"
Suggest this: "To authenticate with the SharedTokenCacheCredential, log in with a development tool that supports Azure single sign on."

Unhandled exception. System.AggregateException: One or more errors occurred. (The DefaultAzureCredential failed to retrieve a token from the included credentials.
  EnvironmentCredential is unavailable Environment variables not fully configured. AZURE_TENANT_ID and AZURE_CLIENT_ID must be set, along with either AZURE_CLIENT_SECRET or AZURE_USERNAME and AZURE_PASSWORD. Currently set variables [  ].
  ManagedIdentityCredential is unavailable No managed identity endpoint found..
  SharedTokenCacheCredential is unavailable No accounts were found in thecache.  To authenticate with the SharedTokenCacheCredential, login an account through developer tooling supporting Azure single sign on..
See inner exception for more detail.)
 ---> Azure.Identity.AuthenticationFailedException: The DefaultAzureCredential failed to retrieve a token from the included credentials.
  EnvironmentCredential is unavailable Environment variables not fully configured. AZURE_TENANT_ID and AZURE_CLIENT_ID must be set, along with either AZURE_CLIENT_SECRET or AZURE_USERNAME and AZURE_PASSWORD. Currently set variables [  ].
  ManagedIdentityCredential is unavailable No managed identity endpoint found..
  SharedTokenCacheCredential is unavailable No accounts were found in thecache.  To authenticate with the SharedTokenCacheCredential, login an account through developer tooling supporting Azure single sign on..
See inner exception for more detail.
 ---> System.AggregateException: The DefaultAzureCredential failed to retrieve a token from the included credentials. (Environment variables not fully configured. AZURE_TENANT_ID and AZURE_CLIENT_ID must be set, along with either AZURE_CLIENT_SECRET or AZURE_USERNAME and AZURE_PASSWORD. Currently set variables [  ]) (No managed identity endpoint found.) (No accounts were found in thecache.  To authenticate with the SharedTokenCacheCredential, login an account through developer tooling supporting Azure single sign on.)
 ---> Azure.Identity.CredentialUnavailableException: Environment variables not fully configured. AZURE_TENANT_ID and AZURE_CLIENT_ID must be set, along with either AZURE_CLIENT_SECRET or AZURE_USERNAME and AZURE_PASSWORD. Currently set variables [  ]
   --- End of inner exception stack trace ---
 ---> (Inner Exception #1) Azure.Identity.CredentialUnavailableException: No managed identity endpoint found.<---

 ---> (Inner Exception #2) Azure.Identity.CredentialUnavailableException: No accounts were found in thecache.  To authenticate with the SharedTokenCacheCredential, login an account through developer tooling supporting Azure single sign on.<---

   --- End of inner exception stack trace ---
   at Azure.Identity.DefaultAzureCredential.GetTokenAsync(Boolean isAsync, TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Identity.DefaultAzureCredential.GetTokenAsync(TokenRequestContext requestContext, CancellationToken cancellationToken)
   at Azure.Core.Pipeline.BearerTokenAuthenticationPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline, Boolean async)
   at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline)
   at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline, Boolean async)
   at Azure.Core.Pipeline.RetryPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline, Boolean async)
   at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline)
   at Azure.Core.Pipeline.HttpPipelineSynchronousPolicy.ProcessAsync(HttpMessage message, ReadOnlyMemory`1 pipeline)
   at Azure.Storage.Blobs.BlobRestClient.Container.CreateAsync(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri resourceUri, PublicAccessType access, Nullable`1 timeout, IDictionary`2 metadata, String requestId, Boolean async, String operationName, CancellationToken cancellationToken)
   at Azure.Storage.Blobs.BlobContainerClient.CreateInternal(PublicAccessType publicAccessType, IDictionary`2 metadata, Boolean async, CancellationToken cancellationToken, String operationName)
   at Azure.Storage.Blobs.BlobContainerClient.CreateIfNotExistsInternal(PublicAccessType publicAccessType, IDictionary`2 metadata, Boolean async, CancellationToken cancellationToken)
   at Azure.Storage.Blobs.BlobContainerClient.CreateIfNotExistsAsync(PublicAccessType publicAccessType, IDictionary`2 metadata, CancellationToken cancellationToken)
   at blobmanid.Program.CreateBlockBlobAsync(String accountName, String containerName, String blobName) in C:\Users\jong\OneDriveMS\code\azure-blob-storage-test\blobmanid\Program.cs:line 37
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at blobmanid.Program.Main(String[] args) in C:\Users\jong\OneDriveMS\code\azure-blob-storage-test\blobmanid\Program.cs:line 19

Related to #8665

@tzhanl - Please do a PR to fix these issues.

@jongio, PRhttps://github.com/Azure/azure-sdk-for-net/pull/9038

More:
Please fix the spacing around these brackets and put a comma in between variable names
Currently set variables [  AZURE_TENANT_ID AZURE_CLIENT_SECRET ].
Also, put in an invalid tenant id and you get this:
Please ensure the fix includes this as well.  For example, we say 'unhandled exception' 4 times in the first sentence.
Azure.Identity.AuthenticationFailedException: The DefaultAzureCredential failed due to an unhandled exception:  EnvironmentCredential failed with unhandled exception The authentication request failed due to an unhandled exception.  See inner exception for details..
  EnvironmentCredential failed with The authentication request failed due to an unhandled exception.  See inner exception for details..
See inner exception for more detail.
 ---> System.AggregateException: The DefaultAzureCredential failed due to an unhandled exception:  EnvironmentCredential failed with unhandled exception The authentication request failed due to an unhandled exception.  See inner exception for details.. (The authentication request failed due to an unhandled exception.  See inner exception for details.)
 ---> Azure.Identity.AuthenticationFailedException: The authentication request failed due to an unhandled exception.  See inner exception for details.
 ---> Azure.RequestFailedException:
Status: 400 (Bad Request)

Content:
{"error":"invalid_request","error_description":"AADSTS90002: Tenant '72f988bf-86f1-41af-91ab-2d7cd011db47f' not found. This may happen if there are no active subscriptions for the tenant. Check to make sure you have the correct tenant ID. Check with your subscription administrator.\r\nTrace ID: dfc6e6ae-ed95-41c1-8e04-75186e9a0a00\r\nCorrelation ID: 0d2c3e24-a166-433b-8240-99f2285e5084\r\nTimestamp: 2019-12-09 19:04:31Z","error_codes":[90002],"timestamp":"2019-12-09 19:04:31Z","trace_id":"dfc6e6ae-ed95-41c1-8e04-75186e9a0a00","correlation_id":"0d2c3e24-a166-433b-8240-99f2285e5084","error_uri":"https://login.microsoftonline.com/error?code=90002"}

@tzhanl

Fixed by #9821


Use page.lang variable to handle future translated content

Assuming we get community translations in the future, we need to use the /{{ page.lang }}/ variable in links so that when contributors copy the English files they don't have to manually update all the links.

PR merged. In future, if there's a PR for something, we probably don't need an Issue as well.


Don't run docker containers as root

From #1397:
[INFO] 4 - Container Images and Build Files
[WARN] 4.1  - Create a user for the container
[WARN]      * Running as root: mesos-c829faa4-e622-4d71-961f-e1423cd8cba3-S0.5709f0c8-631d-41e5-9b90-fed0faef0ad7
[WARN]      * Running as root: logstash
[WARN]      * Running as root: mesos-c829faa4-e622-4d71-961f-e1423cd8cba3-S0.c46c6266-fbd6-4763-923c-4124cebc934f
[WARN]      * Running as root: skydns
[WARN]      * Running as root: nginx-consul

There are more, this is obviously just from one host. Let's compile a list!

Ansible version (ansible --version): 1.9.4
Python version (python --version): 2.7.11
Git commit hash or branch: master
Cloud Environment: all
Terraform version (terraform version): 0.7.0

Disabling this should happen at the same time that we enable user namespaces, another result from the benchmark.


Command + m on OSX does not respond (should minimize window)

Command + m
Nor does
Command + ctrl + f
OSX (Ysemite) does not respond (should minimize window || should fullscreen app)

thanks!


wrong pointer is printed for output parameters

toascii is printing the consumer output pointer, rather than the pointer that was stored in the capture file.
Repro
By diffing the output of two runs of of the same build of toascii on the same capture file, a bunch of pointers show up with different values. The offending pointers include struct members as well as function output parameters. If their values came from the trace files they would not differ.

Investigation
The VulkanAsciiConsumer process function for Vulkan calls using void data pointers plumbs through to this ToString function in custom_vulkan_ascii_consumer.h:
template <typename T>
inline std::string DataPointerDecoderToString(const T& pObj)
{
    // NOTE : Currently we just output the integer value of data void pointers, for
    //  fields that use a PointerDecoder<> we output the address of the decoder
    //  itself...this isn't terribly useful, but the capture time address wouldn't
    //  be a terribly useful thing anyway.  There are structures that have data
    //  fields that can be interpreted correctly...if we want to output interpreted
    //  void pointer data we can implement custom handlers for those structures.
    return "\"" + util::PtrToString(pObj) + "\"";
}

const T& pObj in this case is a reference to a const pointer to a decode::PointerDecoder<unsigned char, unsigned char>.   Note, that's a lot of NOTE.
That calls through to:
template <typename PtrType>
inline std::string PtrToString(PtrType* ptr)
{
    std::stringstream strStrm;
    strStrm << "0x" << std::hex << reinterpret_cast<uintptr_t>(ptr);
    return strStrm.str();
}

This function then outputs the address of the decode::PointerDecoder<unsigned char, unsigned char> pointed to by ptr rather than any representation of the pointer from the trace file stored inside it.
Since the PointerDecoder instances whose addresses are output are sitting on the stack in the local frame of a Decode_vk<SOME_FUNCTION> function, there are lots of duplicates in a trace of addresses of objects which happen to to be at the same location on the stack at the time they are output.

Fixed by PR #787


Add encoder/decoder for Byte

Fixes #1029
Problem
Missing Encoder/Decoder for Byte.
Solution
Added them!
Notes
Additional notes.
Checklist

[x] Unit test all changes
[x] Update README.md if applicable
[x] Add [WIP] to the pull request title if it's work in progress
[x] Squash commits that aren't meaningful changes
[x] Run sbt scalariformFormat test:scalariformFormat to make sure that the source files are formatted

@getquill/maintainers

@mentegy updated as well :)


request change to Apache license like PySCF

I would like the developers to consider changing the license of this project to match PySCF, i.e. use the Apache license.
Many companies, including my employer, are averse to copyleft licenses.  I can contribute to PySCF but not gpu4pyscf.  This is problematic since, in my case, the GPU stuff is what is most interesting.
The benefits to gpu4pyscf is the opportunity for more users and more developers.  GPL prevents adoption in projects with other licenses and greatly complicates a range of activities.  Even a free and open-source code like NWChem cannot interact directly with GPL software.
Thanks for your consideration.

The license of the recent release has been changed to Apache v2.0.


The "calendar" modal lacks in accessibility

The time and date pickers in the metadata tab are not fully accessible. The main issues are very weird screen reader output and some parts of the UI (e.g. time selector) cannot be controlled by keyboard. -Wien

This is an issue with the date and time picker package by material-ui. Unfortunately, programming such a tool is quite cumbersome, so I would like to keep relying on external packages. Even more unfortunately, in my research I was unable to find a more accessible tool.
Therefore, this is very likely to not get fixed (at least not by this project). However, all dates and times should also be fully editable by keyboard, without accessing the picker modals at all. Hopefully this allows users who cannot use the picker modal to still use the metadata editor

The exact package is mui-rff https://github.com/lookfirst/mui-rff.


Update issue templates

This prepares for https://github.com/workspacer/workspacer/issues/473.

For further improvements, contributors can update these templates to be more targeted towards workspacer compatible systems (i.e. iOS references removed in lieu of Windows). I am merging this as-is for the time being to provide a baseline for future issues, in the hopes that users will modify the template appropriately.


[Fix] Summary free interests

Se agrega la validación para que no se muestre intereses cuando el monto es cero.

Codecov Report

Merging #680 into develop will not change coverage.
The diff coverage is 0%.

@@           Coverage Diff            @@
##           develop     #680   +/-   ##
========================================
  Coverage    28.93%   28.93%
========================================
  Files          243      243
  Lines        17514    17514
  Branches      1520     1520
========================================
  Hits          5067     5067
  Misses       11922    11922
  Partials       525      525

Impacted Files
Coverage Δ

...dopago/providers/ReviewAndConfirmProviderImpl.java
3.96% <0%> (ø)
: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 c065ef7...3523d8d. Read the comment docs.


Create Script To Analyze Antenna Violations

The idea is, it detects if antenna violations surpass an acceptable threshold.
Minor antenna violations are considered an acceptable risk and are to be ignored.

Blocked by https://github.com/The-OpenROAD-Project/OpenROAD#634

I don't think we need this anymore.


Make updating optional?

When Goofy discovers that a new version is available it puts up a modal with an ”update now” button. There is no way to cancel this dialog. This is made worse by the endless loop of updating attempts (#404).

.... or make it work (as apparently it does not) :>

Oh damn is the endless loop happening for you? I've been testing that on my end with the last couple of builds and haven't been able to reproduce.  Do you know what version you're coming from?

I have the same issue. macbook pro 2017 15', os is Mojave 10.13.6, goofy version 3.3.1/2/3/4, for now the issue is replicating for every single version I've been running. I'm getting update dialog then after goofy closes nothing happens, and after I start the app again it asks for update again.

@jklp , I have the same situation as @brysnik describes. I should be able to repro at will by installing an older version. Is there something I can do to help pinpoint the issue? Paste the contents of some log or whatnot. Maybe we should continue this in #404

@PEZ Sounds good - can leave this issue for discussing to make updating optional

As of v3.4.0, have updated Goofy to Electron 4 and using autoUpdater with update.electronjs.org (instead of nuts).
Unfortunately due to the way the update API works, making updating doesn't seem to be an option (though there is an option to restart now or later - which I've implemented).
Let's see how v3.4.0 goes and if we're still getting update problems more than happy to reopen this.


Rebuilding nested navigator causes focus loss in top navigator

My app is build with a MaterialApp.router() as the outmost widget.
The routerDelegate is a navigator, which is the top navigator. The pages of this navigator is switching between a small and a large scaffold based on MediaQuery.of(context).size.
The inner navigator has a lot of pages, these pages can't all be const as some of them require a parameter, it could be a specific id for that page so it knows what info to show. Also when accessing the page via an URL the id can be specified there. So as I see it I have no way of making sure all pages are const.
The problem is, that because I use MediaQuery.of() around the inner navigator, it naturally causes a lot of rebuilds. So for example, having a TextField in a Drawer on the top navigator, or just anywhere above the inner navigator, that TextField will lose focus when the keyboard appears because the inner navigator pages rebuilds because they are not const.
Steps to Reproduce

Execute flutter run on the code sample on a device with on screen keyboard
Try the different TextFields
Notice how the one in the Drawer and the one in the bottom makes the keyboard disappear immediately

Expected results:
I expect that the TextField in the top navigator works just as the TextFeild in the inner navigator.
Actual results:
The top navigator loses focus for some reason when the inner navigator rebuilds, and therefore TextFields are unusable.
There are probably other widgets that has the same problem, but I only tested with TextField.

Code sample
https://github.com/Keetz/nested-navigator-error

The top navigator:
Navigator(
  key: navigatorKey,
  pages: <Page<dynamic>>[
    MaterialPage<Page<dynamic>>(
      child: MediaQuery.of(context).size.width < 400
          ? SmallScaffold(innerNavigatorKey: innerNavigatorKey)
          : LargeScaffold(innerNavigatorKey: innerNavigatorKey),
    )
  ],
  onPopPage: (Route<dynamic> route, dynamic result) {
    if (!route.didPop(result)) {
      return false;
    }
    notifyListeners();
    return true;
  },
)

The SmallScaffold:
Scaffold(
  appBar: AppBar(),
  drawer: const Drawer(child: Center(child: TextField())), // This textfield loses focus immediately!
  body: Column(
    children: [
      Expanded(
        child: Router<dynamic>(
          routerDelegate:
              InnerRouterDelegate(navigatorKey: innerNavigatorKey),
        ),
      ),
      const Divider(),
      const SizedBox(
        width: 200,
        height: 50,
        child: TextField(), // This textfield loses focus immediately!
      ),
      const SizedBox(height: 20)
    ],
  ),
  drawerEnableOpenDragGesture: false,
  resizeToAvoidBottomInset: false,
  extendBodyBehindAppBar: true,
)

The inner navigator:
Navigator(
  key: navigatorKey,
  pages: [
    // This works!
    // const MaterialPage(child: Home())

    // This does NOT work as the MaterialPage isn't const
    // MaterialPage(
    //   child: const Home(),
    //   key: ValueKey<MyPage>(HomePage()),
    // )

    // This does NOT work as the MaterialPage isn't const
    // I know there is no parameter for the Home() page here, but that is just to keep it simple! That is why I haven't made the Home() or MaterialPage() const as that would not be possible!
    MaterialPage(child: Home())
  ],
  onPopPage: (Route<dynamic> route, dynamic result) {
    if (!route.didPop(result)) {
      return false;
    }

    return true;
  },
)

Logs

https://pastebin.com/dYMg4vsL

These 6 issues can be ignore! They are there because I don't do consts as a proof of concept. The unused imports are just because I have different examples outcommented, so they are needed if testing those.
Analyzing navigator_test...

   info • Unused import: 'package:navigator_test/page_model.dart' • lib/inner_router_delegate.dart:2:8 • unused_import
   info • Unused import: 'package:provider/provider.dart' • lib/inner_router_delegate.dart:5:8 • unused_import
   info • Prefer const literals as parameters of constructors on @immutable classes • lib/inner_router_delegate.dart:26:16 • prefer_const_literals_to_create_immutables
   info • Prefer const with constant constructors • lib/inner_router_delegate.dart:35:11 • prefer_const_constructors
   info • Prefer const with constant constructors • lib/inner_router_delegate.dart:35:31 • prefer_const_constructors
   info • The declaration '_convertToMaterialPages' isn't referenced • lib/inner_router_delegate.dart:54:30 • unused_element

6 issues found. (ran in 1.9s)

[✓] Flutter (Channel stable, 3.3.2, on Ubuntu 22.04.1 LTS 5.15.0-48-generic, locale en_US.UTF-8)
    • Flutter version 3.3.2 on channel stable at /home/rke/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e3c29ec00c (12 days ago), 2022-09-14 08:46:55 -0500
    • Engine revision a4ff2c53d8
    • Dart version 2.18.1
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /home/rke/Android/Sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /home/rke/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • clang version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
    • cmake version 3.10.2
    • ninja version 1.8.2
    • pkg-config version 0.29.1

[✓] Android Studio (version 2021.2)
    • Android Studio at /home/rke/android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code
    • VS Code at /snap/code/current
    • Flutter extension version 3.48.0

[✓] Connected device (3 available)
    • Pixel 3a (mobile) • 94HAY0P9L3 • android-arm64  • Android 12 (API 32)
    • Linux (desktop)   • linux      • linux-x64      • Ubuntu 22.04.1 LTS 5.15.0-48-generic
    • Chrome (web)      • chrome     • web-javascript • Google Chrome 105.0.5195.125

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Hello @Keetz. Thank you for filing this issue. Can you please provide the following information?

A complete and minimal, reproducible example. Ideally a complete main.dart that can be run directly without change much of the code.

@exaby73 there is a link to the project in the "Code sample" section.
https://github.com/Keetz/nested-navigator-error

Could you produce a simpler example? See how to make a complete and minimal, reproducible example.

I made a simple example (I'm not the author of this issue).
Problem whenever InnerRouterDelegate rebuilds it's Navigator (which happens since it has some dependency on MediaQuery) then SimpleScreen(title: 'Inner') immediatly loses focus and if SimpleScreen(title: 'Outer') had previosly focus then it will obtain it.
https://user-images.githubusercontent.com/8436039/192343189-2066d3c2-63cd-446d-9b61-d0044f3b88d2.mp4
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class RouteParser extends RouteInformationParser<RouteInformation> {
  const RouteParser();

  @override
  Future<RouteInformation> parseRouteInformation(RouteInformation routeInformation) {
    return SynchronousFuture(routeInformation);
  }
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final routerDelegate = OuterRouterDelegate();

  @override
  void dispose() {
    routerDelegate.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      title: 'Nested Router Test',
      routerDelegate: routerDelegate,
      routeInformationParser: const RouteParser(),
    );
  }
}

class OuterRouterDelegate extends RouterDelegate<RouteInformation> with ChangeNotifier {
  @override
  Widget build(BuildContext context) {
    return Navigator(
      onPopPage: (_, __) => false,
      pages: const [MaterialPage(child: OuterScreen())],
    );
  }

  @override
  Future<bool> popRoute() async => true;

  @override
  Future<void> setNewRoutePath(RouteInformation configuration) async {}
}

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

  @override
  State<OuterScreen> createState() => _OuterScreenState();
}

class _OuterScreenState extends State<OuterScreen> {
  final routerDelegate = InnerRouterDelegate();

  @override
  void dispose() {
    routerDelegate.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        const Flexible(child: SimpleScreen(title: 'Inner')),
        const SizedBox(width: 8),
        Flexible(
          child: Router(
            routerDelegate: routerDelegate,
            routeInformationParser: const RouteParser(),
          ),
        ),
      ],
    );
  }
}

class SimpleScreen extends StatelessWidget {
  const SimpleScreen({
    super.key,
    required this.title,
  });

  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text(title)),
      body: const Center(
        child: TextField(),
      ),
    );
  }
}

class InnerRouterDelegate extends RouterDelegate<RouteInformation> with ChangeNotifier {
  @override
  Widget build(BuildContext context) {
    MediaQuery.of(context); // make some dependency (this will trigger when keyboard opens / closes)

    return Navigator(
      onPopPage: (_, __) => false,
      pages: [
        // TODO: add const modifier and everything works perfectly
        MaterialPage(child: SimpleScreen(title: 'Outer'), key: ValueKey('Outer')),
      ],
    );
  }

  @override
  Future<bool> popRoute() async => true;

  @override
  Future<void> setNewRoutePath(RouteInformation configuration) async {}
}

@maRci002 thanks for tuning in, unfortunately I don't think your example is helping.
First of all it is only using a single navigator, my problem is when using an outer and an inner navigator.
When I test your example on my phone, everything works? It doesn't lose focus on either TextFields.
@exaby73 I will try to make a simpler example

@Keetz it should work since MaterialApp using Navigator under the hood (it creates WidgetsApp which creates Navigator) so we are using nested navigator.
https://github.com/flutter/flutter/blob/3.3.2/packages/flutter/lib/src/widgets/app.dart#L1601-L1617
You are right when I test it on current stable Flutter (3.3.2) then my code sample works. However on Beta channel 3.4.0-17.1.pre my code brokes just like on attached video.
Here is a code which brokes on Stable Flutter (3.3.2).
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class RouteParser extends RouteInformationParser<RouteInformation> {
  const RouteParser();

  @override
  Future<RouteInformation> parseRouteInformation(RouteInformation routeInformation) {
    return SynchronousFuture(routeInformation);
  }
}

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final outerRouterDelegate = OuterRouterDelegate();

  @override
  void dispose() {
    outerRouterDelegate.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp.router(
      title: 'Nested Router Test',
      routerDelegate: outerRouterDelegate,
      routeInformationParser: const RouteParser(),
    );
  }
}

class OuterRouterDelegate extends RouterDelegate<RouteInformation> with ChangeNotifier {
  @override
  Widget build(BuildContext context) {
    MediaQuery.of(context); // make some dependency (this will trigger when keyboard opens / closes)

    return Navigator(
      pages: [MaterialPage(child: OuterScreen())],
      onPopPage: (_, __) => false,
    );
  }

  @override
  Future<bool> popRoute() async => true;

  @override
  Future<void> setNewRoutePath(RouteInformation configuration) async {}
}

class OuterScreen extends StatelessWidget {
  const OuterScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Flexible(child: SimpleScreen(title: 'Outer')),
        SizedBox(width: 8),
        Flexible(child: InnerScreen()),
      ],
    );
  }
}

class SimpleScreen extends StatelessWidget {
  const SimpleScreen({
    super.key,
    required this.title,
  });

  final String title;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text(title)),
      body: const Center(
        child: TextField(),
      ),
    );
  }
}

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

  @override
  State<InnerScreen> createState() => _InnerScreenState();
}

class _InnerScreenState extends State<InnerScreen> {
  final innerRouterDelegate = InnerRouterDelegate();

  @override
  void dispose() {
    innerRouterDelegate.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Router(
      routerDelegate: innerRouterDelegate,
      routeInformationParser: const RouteParser(),
    );
  }
}

class InnerRouterDelegate extends RouterDelegate<RouteInformation> with ChangeNotifier {
  @override
  Widget build(BuildContext context) {
    return Navigator(
      pages: [
        // TODO: add const modifier and everything works perfectly
        MaterialPage(child: SimpleScreen(title: 'Inner'), key: ValueKey('Inner')),
      ],
      onPopPage: (_, __) => false,
    );
  }

  @override
  Future<bool> popRoute() async => true;

  @override
  Future<void> setNewRoutePath(RouteInformation configuration) async {}
}

@exaby73
Here is a much simpler project without all the routing, just two navigators and some TextFields, hope it is better.
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  MyApp({super.key});

  final GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
  final GlobalKey<NavigatorState> innerNavigatorKey =
      GlobalKey<NavigatorState>();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Navigator Test',
      theme: ThemeData(primarySwatch: Colors.purple),
      builder: (BuildContext context, Widget? child) {
        return HeroControllerScope(
          controller: MaterialApp.createMaterialHeroController(),
          child: Navigator(
            key: navigatorKey,
            pages: <Page<dynamic>>[
              MaterialPage<Page<dynamic>>(
                child: MediaQuery.of(context).size.width < 400
                    ? MainScaffold(navigatorKey: innerNavigatorKey)
                    : MainScaffold(navigatorKey: innerNavigatorKey),
              )
            ],
            onPopPage: (Route<dynamic> route, dynamic result) {
              if (!route.didPop(result)) {
                return false;
              }
              return true;
            },
          ),
        );
      },
    );
  }
}

class MainScaffold extends StatelessWidget {
  const MainScaffold({super.key, required this.navigatorKey});

  final GlobalKey<NavigatorState> navigatorKey;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      drawer: const Drawer(
          child: Center(
              child: TextField())), // This textfield loses focus immediately!
      body: Column(
        children: [
          Expanded(child: InnerNavigator(navigatorKey: navigatorKey)),
          const Divider(),
          const SizedBox(
            width: 200,
            height: 50,
            child: TextField(), // This textfield loses focus immediately!
          ),
          const SizedBox(height: 20)
        ],
      ),
      drawerEnableOpenDragGesture: false,
      resizeToAvoidBottomInset: false,
      extendBodyBehindAppBar: true,
    );
  }
}

class InnerNavigator extends StatelessWidget {
  const InnerNavigator({super.key, required this.navigatorKey});

  final GlobalKey<NavigatorState> navigatorKey;

  @override
  Widget build(BuildContext context) {
    return HeroControllerScope(
      controller: MaterialApp.createMaterialHeroController(),
      child: Navigator(
        key: navigatorKey,
        pages: [
          // This works!
          // const MaterialPage(
          //   child: Center(child: TextField()),
          // ),

          // This doesn't work!
          MaterialPage(
            child: Center(child: TextField()),
          ),
        ],
        onPopPage: (Route<dynamic> route, dynamic result) {
          if (!route.didPop(result)) {
            return false;
          }
          return true;
        },
      ),
    );
  }
}

This is the behavior I am observing which seems to be different than the OP.

Video

@exaby73 make sure to not let your IDE add consts automatically, it is important to follow my comments and leave the MaterialPage as a non const.
The whole point is that in my real application, the pages have parameters which make it impossible to make them const, that is why I don't add const here in the example.
Can you double check that you didn't add const automatically as the formatter probably would do it or at least give you a hint that you should add it.

@exaby73 oh nevermind, I see what is happening!
When you press the middle TextField first, and you then press the arrow to hide the keyboard, it doesn't remove the focus from that TextField, so when you press another TextField the middle one still has focus and that is why the keyboard stays up.
Either test and don't press the middle TextField first or press the checkmark button instead of the arrow.

Triage Report
Versions reproducible on

Stable (3.3.3)
Master (3.4.0-34.0.pre.10)

Info

Video

Code Sample
// ignore_for_file: prefer_const_constructors, prefer_const_literals_to_create_immutables

import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  MyApp({super.key});

  final GlobalKey<NavigatorState> navigatorKey = GlobalKey<NavigatorState>();
  final GlobalKey<NavigatorState> innerNavigatorKey =
      GlobalKey<NavigatorState>();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Navigator Test',
      theme: ThemeData(primarySwatch: Colors.purple),
      builder: (BuildContext context, Widget? child) {
        return HeroControllerScope(
          controller: MaterialApp.createMaterialHeroController(),
          child: Navigator(
            key: navigatorKey,
            pages: <Page<dynamic>>[
              MaterialPage<Page<dynamic>>(
                child: MediaQuery.of(context).size.width < 400
                    ? MainScaffold(navigatorKey: innerNavigatorKey)
                    : MainScaffold(navigatorKey: innerNavigatorKey),
              )
            ],
            onPopPage: (Route<dynamic> route, dynamic result) {
              if (!route.didPop(result)) {
                return false;
              }
              return true;
            },
          ),
        );
      },
    );
  }
}

class MainScaffold extends StatelessWidget {
  const MainScaffold({super.key, required this.navigatorKey});

  final GlobalKey<NavigatorState> navigatorKey;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      drawer: const Drawer(
          child: Center(
              child: TextField())), // This textfield loses focus immediately!
      body: Column(
        children: [
          Expanded(child: InnerNavigator(navigatorKey: navigatorKey)),
          const Divider(),
          const SizedBox(
            width: 200,
            height: 50,
            child: TextField(), // This textfield loses focus immediately!
          ),
          const SizedBox(height: 20)
        ],
      ),
      drawerEnableOpenDragGesture: false,
      resizeToAvoidBottomInset: false,
      extendBodyBehindAppBar: true,
    );
  }
}

class InnerNavigator extends StatelessWidget {
  const InnerNavigator({super.key, required this.navigatorKey});

  final GlobalKey<NavigatorState> navigatorKey;

  @override
  Widget build(BuildContext context) {
    return HeroControllerScope(
      controller: MaterialApp.createMaterialHeroController(),
      child: Navigator(
        key: navigatorKey,
        pages: [
          // This works!
          // const MaterialPage(
          //   child: Center(child: TextField()),
          // ),

          // This doesn't work!
          MaterialPage(
            child: Center(child: TextField()),
          ),
        ],
        onPopPage: (Route<dynamic> route, dynamic result) {
          if (!route.didPop(result)) {
            return false;
          }
          return true;
        },
      ),
    );
  }
}

Flutter Doctor
flutter doctor -v (Stable)
[✓] Flutter (Channel stable, 3.3.3, on Microsoft Windows [Version 10.0.22000.978], locale en-US)
    • Flutter version 3.3.3 on channel stable at C:\Users\Nabeel\fvm\versions\stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18a827f393 (16 hours ago), 2022-09-28 10:03:14 -0700
    • Engine revision 5c984c26eb
    • Dart version 2.18.2
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\android-sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.3.2)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.3.32819.101
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 2021.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2022.2.2
    • Flutter plugin version 70.0.5
    • Dart plugin version 222.4167.21

[✓] VS Code (version 1.71.2)
    • VS Code at C:\Users\Nabeel\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.46.0

[✓] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22000.978]
    • Chrome (web)                 • chrome        • web-javascript • unknown
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 105.0.1343.53

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

flutter doctor -v (Master)
[✓] Flutter (Channel master, 3.4.0-34.0.pre.10, on Microsoft Windows [Version 10.0.22000.978], locale en-US)
    • Flutter version 3.4.0-34.0.pre.10 on channel master at C:\Users\Nabeel\fvm\versions\master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 07966e1adf (51 minutes ago), 2022-09-29 03:47:28 -0400
    • Engine revision 6f9ac80e56
    • Dart version 2.19.0 (build 2.19.0-253.0.dev)
    • DevTools version 2.17.0

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\android-sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.3.2)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.3.32819.101
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 2021.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2022.2.2
    • Flutter plugin version 70.0.5
    • Dart plugin version 222.4167.21

[✓] VS Code (version 1.71.2)
    • VS Code at C:\Users\Nabeel\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.46.0

[✓] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22000.978]
    • Chrome (web)                 • chrome        • web-javascript • unknown
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 105.0.1343.53

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

@chunhtai

Any update on this issue?

Maybe https://api.flutter.dev/flutter/widgets/Navigator/requestFocus.html is related

I ran into the same issue here and setting requestFocus on the nested Navigator prevents it from taking focus away from the current TextField when it rebuilds.
This issue's solution worked for me: https://github.com/flutter/flutter/issues/140781


CM-296 When to Use Static Classes in C#

Thanks for the feedback, I have made those changes.

Thanks for the feedback, I have made those changes thanks.

Everything looks alright now.
Please create a separate branch for the next article before you create a PR so we can have a clean commit history.


Fix swift packages not resolving

Fixes #29094

I was unable to create a backport for 1.21. @CEnnis91, please send one manually. :tea:
go run ./contrib/backport 29095
...  // fix git conflicts if any
go run ./contrib/backport --continue

Here is the correct link:
https://github.com/apple/swift-package-manager/blob/main/Documentation/PackageRegistry/Registry.md#endpoint-2
Thanks for the explanation, I see now where my typo was.


Initial darkmode support

As requested in #155

TODO: add darkmode switch to the UI

Well.... i did not think that would push to your branch.

But I managed to get a 3 button toggle in there, but I have no idea how to theme it and no idea how to make it do things when pushed lol

@JTF4 have you merged the wrong branch? It updates GitHub issue templates and version.
Have you fetched upstream before contributing?

Well I thought I would have pushed to my fork of your branch, but when I ran the command I forgot to do the correct remote repository commands before hand and it pushed to your repo. I did fetch upstream though. I rolled that back because I did not want that to happen, added my repo as the origin to the clone then pushed to my branch.

Besides, I couldn't see your contribution.

If you want, I'll move my contribution to a branch on the original TallyArbiter repository

Can you see the PR I made? If not I'll check it again.

Sorry, I didn't see it.

I'm rewriting darkmode service and darkmode switch. Closing this.


add C. elegans to the species list by default

Make sure parasite papers are not included in the pipeline

Looking at some parasite papers in postgres, it looks like they are not being handled consistently for various reasons.
In some cases, their primary/not primary status is actually 'not designated' so we wouldn't pick then up for AFP; in some cases there is a PDF, in others, there isn't.
I'll double-check the status of some parasite papers with status 'primary' and PDFs wrt the AFP pipeline.


zola: 0.11.0 -> 0.12.0

Motivation for this change
https://github.com/getzola/zola/releases/tag/v0.12.0
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[X] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

builds on NixOS, runs and tested basic function. Basic version bump and adds a dependency.
My only question is if RUSTONIG_SYSTEM_LIBONIG is needed, but others will have more experience about this than me.

My only question is if RUSTONIG_SYSTEM_LIBONIG is needed, but others will have more experience about this than me.

I think we should prefer dynamic linking and the crate only works with an environment variable. They don't add a system function as is commonly done by such crates:
https://github.com/rust-onig/rust-onig/blob/7610549966d95b984dc95cf71469d8fcada689d7/onig_sys/Cargo.toml#L31
Maybe it is worthwhile opening an issue upstream to ask them to make it possible to enable this with a feature as well? (Not that it would help us much in this case, since it would be a feature of a transitive dependency.)


Avoid multiple Vertex definitions on .proto files

We currently have double Vertex definitions on the network proto file and objects file. The network file is supposed to import the object one. Were having problems setting this because of the monorepo structure. buf is crying about something

Hi Kevin, to resolve the issue with the duplicated Vertex definition, I would first remove the duplicate definition from the network.proto file and instead import the objects.proto file where Vertex is already defined. Then, I would ensure that the network.proto file properly references the imported Vertex definition. After that, I’d verify that the import paths are correctly set in the buf.yaml or buf.gen.yaml configuration, aligned with the monorepo structure. Finally, I would run buf lint or buf generate to ensure that all duplications and path issues are resolved. This should address the complaints from buf.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
Hello @d-roak, to resolve the issue with the duplicated Vertex definition, I would first remove the duplicate definition from the network.proto file and instead import the objects.proto file where Vertex is already defined. Then, I would ensure that the network.proto file properly references the imported Vertex definition. After that, I’d verify that the import paths are correctly set in the buf.yaml or buf.gen.yaml configuration, aligned with the monorepo structure. Finally, I would run buf lint or buf generate to ensure that all duplications and path issues are resolved. This should address the complaints from buf.

Assigned! If you have any questions, feel free to join our community channels:
https://t.me/topologyfrens
https://discord.gg/GUDGzBP5mn

more than 1 week of inactivity, i'm going to take the assignment

@d-roak Can I be assigned to this?

sure

@d-roak hey boss, turns out i'm travelling and won't be available to handle this, thank you for the opportunity🙏🏽

Hey @d-roak ,
I have a solution for that but right now when you run proto-gen on main it will make a dir in packages/src/proto is that intended ?

completed in #205


Add a catch for module.hot exception fixes #14

This simple try / catch addition fixed issue mentioned in #14 for me, not sure how clean of the solution this is, but we can discuss this further.

See #14


Adding eslint

Eslint allow to specify the Javascript language. It is completely configurable and customizable to enhance Sprintf.js.
I saw that 'use strict mode' is used, so I suggest to use eslint to  make it more interesting and profitable.

I've decided in favor of JSHint for now.
Also, you may want to update your fork.


i want to add a child permission for a parent permission, but i saw a bug( i think )

What steps will reproduce the problem?
    $auth = Yii::$app->authManager;

    $parent = $auth->getPermission("/test/one");

    $child = $auth->createPermission("/test/two");
    $child->description = "这是one的子类";

    $child_is = $auth->addChild($parent, $child);

What is the expected result?
    我想给父权限项(也就是菜单) 添加子权限项(子菜单)

What do you get instead?
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (testyii.auth_item_child, CONSTRAINT auth_item_child_ibfk_2 FOREIGN KEY (child) REFERENCES auth_item (name) ON DELETE CASCADE ON UPDATE CASCADE)
The SQL being executed was: INSERT INTO auth_item_child (parent, child) VALUES ('/test/one', '/test/two')
Additional info

Q
A

Yii version
2.0.12

PHP version
7.0.23

Operating system
win7

please, help me,  thank you , everyone

You forgot to add the $child permission  into the RBAC table before declaring relations using addChild():
$child = $auth->createPermission("/test/two");
$child->description = "这是one的子类";

// The folllowing line is missing
$auth->add($child);

$child_is = $auth->addChild($parent, $child);

thank you @drodata