Not parsing font size properly

Greetings, I'm testing with a basic PSD file and I have 3 layers with text. All different sizes. And it's reporting two with size 5.58981 when the font size should be 16.8pt and another layer is getting parsed as 13 when it should be 65pt. Also, will the font weight be added soon?

The font weight is actually included as a part of the font name. If you look at the font name, it's represented like HelveticaNeue-Light or HelveticaNeue-Bold.
Alternatively, there is some extra data in the styles hash that you can use. For example:
node.get('typeTool').styles().FauxBold[0] //= false

If it would help, I can build in parsing for the font weight to reduce the amount of boilerplate code.

Regarding the font sizes - not sure what's up with that. Among the PSDs I've tested, it's parsed it correctly. Any chance you can post that PSD with the parsing issue?

Actually it would be nice if you could split up the styles if it's not too much work. Posting PSD shortly.

Here is a test PSD that reports the wrong font sizes. Now that I think about it. It may be due to the document DPI. https://www.dropbox.com/s/csz3ywkuytye582/Iphone_White.psd?dl=0

No, it's 72 dpi

This is definitely what I would call a new and interesting bug. However, it's a bit weird that I've never run into this before. I think fixing it will mean finding out what's different about this particular PSD.

I actually have another PSD doing the same thing that came from my co-worker (designer). It is a rather large PSD though. 120MB

So far the only major difference I've found is that the problem PSD was created on Windows, while most of the PSDs I've dealt with were created on OSX. Not sure if there's anything to that, but I'll keep looking.

I have seen the export JSON, the text value is like this:
"text": { "value": "Why Choose US? Don’t you think ", "font": { "name": "AdobeInvisFont", "sizes": [ 72, 72, 90 ], "colors": [ [ 2, 2, 2, 255 ], [ 2, 2, 2, 255 ], [ 2, 2, 2, 255 ] ], "alignment": [ "left" ] },
and there is array of font-size, color etc.  But the value is only one. How to delimit which value is using which font or color??

Seems to happen when the font has been resized afterwards. Try to select the text, then create a new text layer, you will see that the font size of this new layer is the size reported by PSD.js. When doing exactly the same text from scratch without resizing the font size is correct.

I also have 1.98pt reported be PSD.js as size of some text layer when it is actually 16pt. and as as @jide sad, i click in text layer and then click outside so that other text layer is created that new layer's size is 1.98pt.

I've run into a similar issue in the past with every PSD parser I tried. Clicking around in the PSD would defeat the purpose of the project (automation), but was finally able to get PhotoShop reporting properly by applying the returned transform to the font size and line height manually. Seems to be a decade old PS bug that has yet to be resolved.
Hope it helps someone out - it nearly drove me insane...
var data = node.export().text;
var transY = data.transform.yy; // 2.000077137715913
var fontSize = data.font.sizes[0]; // 15.99938 ✘
var lineHeight = data.font.leadings[0];  // 60 ✘

fontSize = Math.round((fontSize * transY) * 100) * 0.01; // 32 ✔
lineHeight = Math.round((fontSize * transY) * 100) * 0.01; // 64 ✔

@tylerjpeterson  thank you!

@tylerjpeterson have you found that you can do this calculation every time and it will always yield the correct size? Even when the font size is, in fact, stored correctly?

@meltingice so far in my tests it works well regardless of whether or not the text box was transformed. In a case of there being no transform, the font size would effectively be multiplied by 1 with a little redundant / unnecessary rounding.
I still see some slightly incorrect sizes reported on custom fonts from time to time, but usually within an acceptable deviation (1-5%). However, this happens independently of factoring in the transform when calculating font size. I believe it's entirely unrelated, and may be explained by disparities between desktop and web font files.

As this issue was mostly resolved by the solution from @tylerjpeterson i am closing this. If this issue comes up again, please open a new issue for it.

@RajeshBattu, see my comment https://github.com/meltingice/psd.js/issues/26#issuecomment-170095991

Ah, I forgot, but the technique described by @tylerjpeterson here works perfectly and solves the issue :
https://github.com/meltingice/psd.js/issues/26#issuecomment-192171777

I have tried the solution provided by @tylerjpeterson but its not working.  So i have commented before.  Please let me know if you want me to provide that PSD file to look into it.

@tylerjpeterson Hi, how can you get the lineHeight information? I cannot find the leadings property on the exported text object.


[suggestion] Supplementary license

Supplementary license .
Add source dependency about license.
DolphinDescriptorGenerator from https://github.com/prestosql/presto-maven-plugin Apache 2.0
SpiDependencyChecker files from https://github.com/prestosql/presto-maven-plugin Apache 2.0

test


fixed terraform validation error message & format terraform file

Fixed error messages - Validation rules

reviewed changes in dev branch


Update sonarqube-sonar-scanner-reference.md

Updating secrets reference to replace the FirstGen docs link with the NextGen link and clarified the example since the format would be different for org and account-level secrets.
Harness Developer Pull Request
Thanks for helping us make the Developer Hub better. The PR will be looked at
by the maintainers.
What Type of PR is This?

[ ] Issue
[ ] Feature
[ ] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[ ] Tested Locally
[ ] Optional Screen Shoot.

Preview environment: https://ci.pr.harness.io/pr-399


in devicelogin, redirected to http://localhost:8400/

Describe the bug
When tried to az login, new browser window opened. When tried to change account, redirected to localhost URL.
To Reproduce

az login
select account from list (already have multiple accounts logged in previously)
click on back arrow at password prompt page to go back to the list of accounts
got redirected to http://localhost:8400/?error=access_denied&error_description=AADSTS90123%3A+Token+issuance+cannot+proceed+because+identity+or+claim+issuance+provider+denied+the+request.
Trace+ID%3A+46d4a4fe-088b-44d4-82c4-65f537804700
Correlation+ID%3A+2169e8c8-d117-44f0-ae36-2ac59e2e99f7
Timestamp%3A+2018-07-24+18%3A56%3A22Z&state=code

Expected behavior

Display the list of previously used account to select for az login

Environment summary

Win 10
azure-cli-2.0.42.msi used to install

Additional context
Screenshots of steps:
1.

4- EXPECTED

Thanks for reporting this. Before I fix this, you can ctrl+c to stop the cli command, and then rerun it.

Thanks Yugang :)

I am not able to reproduce this.  Can you please try again? By default, account tile selection should not cause any errors, and should not post back to the CLI. This is a server end error trigger'd by browser page reload.

Please reactivate when you have repro

How can this be closed?
Azure cli is using code authorization when I try "login" and it is redirect to https://localhost:8400... This is a bug in the cli itself.

I am seeing the same issue. Using a Chromebook, so probably related to the fact that I am running the command from a docker on the machine.

@mdangear, when running inside docker, CLI will default to device code unless the image has UI browser, which is rare.  But if you see the original issue, let me know and i will reopen the issue

Intermittently upon issuing az login, I get this issue now after installing docker desktop for mac.

I am also facing same issue. After giving command az login below URL is opened in browser. It has redirect_uri set to http://localhost:8400. I also have docker desktop for windows installed. Please note not issuing these commands from docker.
https://login.microsoftonline.com/common/oauth2/authorize?response_type=code&client_id=04b07795-8ddb-461a-bbee-02f9e1bf7b46&redirect_uri=http://localhost:8400&state=ja4dweq5o1lcixmxrxq8&resource=https://management.core.windows.net/&prompt=select_account

Same problem here @iamrahul127


Hacktoberfest 2017 - Looking for contributions

The Hacktoberfest 2017 has started 🎉

Support open source and earn a limited edition T-shirt
Event details
Hacktoberfest is open to everyone in our global community!
Pull requests can be made in any GitHub-hosted repositories/projects.
You can sign up anytime between October 1 and October 31.
Rules
To get a shirt, you must make four pull requests between October 1–31 in any timezone. Pull requests can be to any public repo on GitHub, not just the ones we’ve highlighted. The pull request must contains commits you made yourself. Pull requests reported by maintainers as spam or that are automated will be marked as invalid and won’t count towards the shirt.

Sqlectron is looking for any kind of contribution:

Fix typos
Improve documentation
Small fixings
Or even new features

If the ticket you wanna work doesn't have a Hacktoberfest label, just let us know.

Am looking for contributions... Where can I help???

@iamonuwa you can start by looking at all the Hacktoberfest tag
https://github.com/sqlectron/sqlectron-gui/labels/Hacktoberfest
or looking the app searching for typo, bug, .... and improving doc?


Question? Support for snyk code test

Reading through the docs, it seems like I'll need to integrate directly with the CLI in order to run "Snyk Code" scans.
snyk code test <my-folder-path>
Is this correct, and if so, is this a planned feature for this Azure Pipeline Task?

Hi, I'm struggling with the same issue.
What was the solution for you?
Now I'm using bare cli example, but I'd prefer using Tasks:
- script: |
    npm install -g snyk snyk-to-html
    set +e
  displayName: 'snyk install & auth'

- script: |
    snyk auth MY_API_KEY
  displayName: 'snyk auth'

# snyk code
- script: |
    snyk code test --sarif-file-output=results.sarif
    RESULT=$?
    snyk-to-html -o $(Build.ArtifactStagingDirectory)/results-code.html < results.sarif
    exit $RESULT
  continueOnError: true
  displayName: 'snyk code'


Extra field shown on the output screen

Not clear why, but when I debug I see a field "Append-Only Comments".  When I check the NewEmployeeSeattle list I do not see that field.  I have checked the columns view and also clicked Content Types button, neither show it.  What am I missing?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: aac83aaa-403c-bbb5-1381-9e1e39913e41
Version Independent ID: 6cb358f2-72b2-aa3d-6ac4-48352f199eda
Content: Add a web part to a page in a SharePoint-hosted SharePoint Add-in
Content Source: docs/sp-add-ins/add-a-web-part-to-a-page-in-a-sharepoint-hosted-sharepoint-add-in.md
Product: sharepoint
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

Here is a screenshot showing the columns and the fields when I click the content types button.  I cannot find the field anywhere in my code.

Here's what I see in the browser.

Can I get an update?

I found it.  The schema.xml contains the following line:
<ContentType ID="0x01008CB8FAE3BA7C4894B8706227A7506CDB" Name="NewEmployee" Group="Employee  Orientation" Description="My Content Type" Inherits="FALSE" Version="0"><FieldRefs><FieldRef ID="{6DF9BD52-550E-4a30-BC31-A4366832A87E}" DisplayName="$Resources:core,AppendOnlyComments;" Name="V3Comments" Sortable="FALSE" /><FieldRef ID="{e532d801-1bb0-44ee-beca-c7b24eebda4e}" DisplayName="Division" Required="FALSE" Description="The division of the company where the employee works" Name="Division" /><FieldRef ID="{dd9bb4a5-2129-4cd8-bd95-a0e9b1086c65}" DisplayName="Orientation Stage" Required="TRUE" Description="The current orientation stage of the employee." Name="OrientationStage" /><FieldRef Name="LinkTitle" ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" DisplayName="Employee" /><FieldRef Name="Title" ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" DisplayName="Employee" /></FieldRefs></ContentType>.
I changed it to:
<ContentType ID="0x01008CB8FAE3BA7C4894B8706227A7506CDB" Name="NewEmployee" Group="Employee  Orientation" Description="My Content Type" Inherits="FALSE" Version="0">
        <FieldRefs> Name="V3Comments" Sortable="FALSE" /><FieldRef ID="{e532d801-1bb0-44ee-beca-c7b24eebda4e}" DisplayName="Division" Required="FALSE" Description="The division of the company where the employee works" Name="Division" /><FieldRef ID="{dd9bb4a5-2129-4cd8-bd95-a0e9b1086c65}" DisplayName="Orientation Stage" Required="TRUE" Description="The current orientation stage of the employee." Name="OrientationStage" /><FieldRef Name="LinkTitle" ID="{82642ec8-ef9b-478f-acf9-31f7d45fbc31}" DisplayName="Employee" /><FieldRef Name="Title" ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" DisplayName="Employee" /> </FieldRefs>
      </ContentType>

And now the field is gone.


Improve sidebar style for deeply nested pages

The current sidebar is almost unusable for the deeply nested pages (like those in KFP). The sidebar gets all bunched up and it's hard to know which pages are in what folders.
This PR significantly improves the readability of the sidebar links by doing the following:

Expands the sidebar width
Remove unnecessary padding and indents
Putting a vertical line to show where each folder starts and ends
Bolding the "chain" of pages which leads to the currently active page

This PR also does the following:

applies a max-width to the site, to prevent very wide screens making the site hard to read
fixes the top navigation bar for smaller screens, the issue was the long "event promo" links were ending up underneath the logo
adds a subtle rotation on the "expand section" arrow when you are hovering
removes an invalid OWNERS.md file (note the .md), which was showing up as a nameless page.

Laptop Screenshots
OLD

NEW

Widescreen Desktop Screenshots
OLD

NEW

Mobile
OLD / NEW

||||

@james-jwu @jbottum @andreyvelich @terrytangyuan can one of you please review or approve this website PR?
It's a very important readability change, and makes no changes to the content so it should not be controversial.

Thank you for this. Additionally, we should discuss how we can decrease the left panel since this change will reduce the actual size of the document (cc @StefanoFioravanzo )

@thesuperzapper Thanks for this, it's a great UX improvement.
I back @ederign's proposal - can we remove the ~30 degree on-hover animation? I get why you put it, it can be a nice visual touch, but I feel like it overstimulates in this case.
@andreyvelich  On the sidebar width, we do have an issue with a content tree that's too deep. When the sidebar is too narrow, you end up with folding titles. In the current preview the sidebar does seem too wide though. @thesuperzapper would you consider finding a balance between the current width and the one you propose? Maybe something in the middle would work?
Overall awesome change, thanks

Locally, the left panel sidebar issue only happens on large screens. In the end, it is a matter of taste. If we:
If we change the left sidebar to col-xl-2 (instead of col-xl-3) and the main to col-xl-8 (from col-xl-7), it will look like this:

Also, for some reason (I don't have the context), the content was to max-width:80%, which makes the main use only a partial size of the screen. On the screenshot, I've changed to max-width:100% locally, but not sure if this breaks anything.

@ederign @andreyvelich @StefanoFioravanzo thanks for everyone's feedback.
I have made the following changes:

removed the rotation on the hovering of the arrows
made the sidebar slightly smaller
fixed the issue raised by @ederign about content only being able to use 80% of the main section
applied a max-width to make the site much more readable on very wide screens:

This was a nightmare to get working cleanly across the entire site, but I think it has significantly improved readability for wide screens, try it for yourself and see.

Please take another look on the preview site but I think this PR should be ready to merge now.

1 and 2 are fixed!
For 3 and 4, I found an issue:

After this change I can see that content is centralized on the big screens and only occupies 50%:

Suggestion that may be out of scope for this PR: How about we auto-collapse the current open top-level menu when you open a new one? So we avoid an excessively long sidebar tree

@ederign that issue was actually present in the existing page, it was caused by someone including the entirety of bootstrap CSS in a

@StefanoFioravanzo this is already the behavior, when you click on a page, only the "chain" leading to your current page remains open.
It would be very unexpected for us to close pages while people were "browsing" for a page (before clicking).

After this change I can see that content is centralized on the big screens and only occupies 50%

@andreyvelich is this a positive or negative comment?
The width-limit increases the readability by preventing very wide screens from having content on the far edges of the screen.
If there are no more comments, and people are ok with the width-limit, I think we can merge this.

I did one last small cleanup to the styling in https://github.com/kubeflow/website/pull/3816/commits/1f89a55465360a1d5479162a49a471a13ca8d7c9.
The main fixes were:

Homepage is now properly centered
On small screens, there was a slight stripe of the darker border color, which should have only been visible on larger screens (with sidebars)
Added a small border outline at the top of the page on mobile (below the search box).

I think this should be ready to merge now.

After this change I can see that content is centralized on the big screens and only occupies 50%

@andreyvelich is this a positive or negative comment?
The width-limit increases the readability by preventing very wide screens from having content on the far edges of the screen.
If there are no more comments, and people are ok with the width-limit, I think we can merge this.

From my point of view this is makes our docs harder to read since the documentation area is very small.
Can we just follow the same settings as Kubernetes docs since they also use Hugo ?
https://kubernetes.io/docs/concepts/overview/components/
I prefer their settings.

@thesuperzapper

This is already the behavior, when you click on a page, only the "chain" leading to your current page remains open.

That's not true. See my screenshot above. If what you said was true, how could I have found myself with that content tree?

@StefanoFioravanzo once you click on any page everything but the current page will close. Note, I am not talking about clicking the arrow, I am talking about clicking the page.
Similarly when you refresh the page all other open sections are closed.
Either way, feel free to raise a separate PR if you want different behavior.

After this change I can see that content is centralized on the big screens and only occupies 50%

@andreyvelich is this a positive or negative comment?
The width-limit increases the readability by preventing very wide screens from having content on the far edges of the screen.
If there are no more comments, and people are ok with the width-limit, I think we can merge this.

From my point of view this makes our docs harder to read since the documentation area is very small.
Can we just follow the same settings as Kubernetes docs since they also use Hugo ?
https://kubernetes.io/docs/concepts/overview/components/
I prefer their settings.

@andreyvelich having a max-width makes reading the page easier. Without it, the page is hard to read on a very wide screen.
It's well established that people find it easier to read things with margins and shorter line lengths.  Give it a try yourself, show people the two pages and ask which they prefer.
If you are concerned about the specific max-width I have used, this is easy to change with a single variable. However, in my testing (and when compared to other websites), a max-width of 1440px/100rem was typical and easiest to read.
For reference, other docs websites already do this this like ArgoCD/Workflows, Istio and more.
PS: what's also interesting is that even with the width-limit, the height of the page remains the same in most cases.
PSS: let's do some user testing, or just ask a few other community members. But remember, this change affects only a small fraction of users, as almost no one reads these pages on a wide/4k screen.

It's well established that people find it easier to read things with margins and shorter line lengths. Give it a try yourself, show people the two pages and ask which they prefer.

I mean this is very subjective, we can't say it for all of the users.
Looking at other Kubernetes project, they all have wider section for doc content:

Kubernetes: https://kubernetes.io/docs/tutorials/hello-minikube/
Kueue: https://kueue.sigs.k8s.io/docs/concepts/admission_check/
Istio: https://istio.io/latest/docs/overview/what-is-istio/

My feeling is that we should just make the same settings as Kubernetes Hugo website, given that their website has the largest user attention.

It's well established that people find it easier to read things with margins and shorter line lengths. Give it a try yourself, show people the two pages and ask which they prefer.

I mean this is very subjective, we can't say it for all of the users.
Looking at other Kubernetes project, they all have wider section for doc content:

Kubernetes: https://kubernetes.io/docs/tutorials/hello-minikube/
Kueue: https://kueue.sigs.k8s.io/docs/concepts/admission_check/
Istio: https://istio.io/latest/docs/overview/what-is-istio/

My feeling is that we should just make the same settings as Kubernetes Hugo website, given that their website has the largest user attention.

@andreyvelich the Istio site you linked uses a max-width of 1440px (like what I am proposing in this PR), and I think it's much easier to read than the Kubernetes website.
If we are talking about the Kubernetes website specifically, it's likely not because they don't want a width-limit, but because the default theme does not have it, and it was quite complex to implement.
Here is a screenshot of the Istio website:

Yeah, but even Istio has large width (902 vs 768) for content.

@andreyvelich as long as we agree a fixed-width makes sense, we can discuss making the sidebar smaller.
But I still think it's worth keeping the wider sidebar because we have much more deeply nested pages than istio.
Perhaps @ederign can share some of his design experience and weigh in on what he thinks is best?

BTW, I am going to be on vacation till next Monday 30th July, so if you need any follow up commits to this (or other) PRs, it will need to wait till then.
This PR should be ready to merge (if we all can agree on the sidebar width), so feel free to do that if you want these fixes in.
@ederign could make a follow up PR if needed, because I think the changes are worth having soon, with the influx of 1.9 users.

I agree with @thesuperzapper that having a fixed max-width makes reading the page easier and more accessible. A max width of 1440px/100rem sounds to me like a good starting point for large screens, especially when balanced with the depth of our submenus.
If people are interested in reading more about this:

Having the right amount of characters on each line is key to the readability of your text.
...
Too wide: if a line of text is too long the reader’s eyes will have a hard time focusing on the text. This is because the line length makes it difficult to gauge where the line starts and ends. Furthermore it can be difficult to continue onto the correct line in large blocks of text.
[link]

If a font size is too small and the line length too long, readers will have to strain to read the text, which causes their eyes to fatigue [link]

We can always discuss the size of our main panel, but I think a maximum width is important for readability.
This PR looks good to me!

/lgtm

From my point of view, we should at least follow the Istio settings.
Right now the area for docs looks very small.

@andreyvelich in the interest of getting this PR merged, I have reverted the sidebar to be the same size as the current website.
I think we are good to merge if @andreyvelich and @ederign give it a look over.

Also, in the last commit I made the following changes:

Fixed a bug where the homepage header would disappear on large mobile screens
Implemented a proper swagger-ui page for the pipelines API:

Preview: v1beta1
Preview: v2beta1

Made the "feedback on this page" links pre-populate the issue with which page the user was on

This PR includes important changes that improve the web page, and I would like to see it merged as soon as possible. I'm totally fine with having the 'Try out' issue fixed in another PR (I can even send the PR myself later).

@ederign rather than disabling the "try it out" feature, I have made a system to allow users to put their own URL in.
It will still not work unless they have the appropriate authentication setup, but it makes it much easier to use the UI to formulate a request to run locally.
I have also added a preamble that explains a bit more about the API and how to use it on the Swagger pages.
Please review again and LGTM if you are happy now.

@thesuperzapper is this header expected? (at link)

@thesuperzapper is this header expected? (at link)

@ederign I have changed the way the Swagger JSON is embedded so I can remove the hard-coded introduction/google-email, take a look:

v2 API Page
v1 API Page

@ederign I have made some final tweaks based on feedback from people I showed:

made it so the logo is always the leftmost thing on the page (looks better)
fixed the sidebar color bleeding into the page on mobile screens (where there are no sidebars)
improved the padding of the table-of-contents on mobile (it was squished up on the left side of the screen)

People seem to be happy with it now, so if you can do a final review, then we can merge this.
For reference, here is a page: OLD, NEW

@thesuperzapper LGTM to me. Thank you so much for accommodating our requests.
/lgtm

@andreyvelich can you please approve if you are happy with the changes?

Thanks for the update @thesuperzapper.
@thesuperzapper @ederign Do we make the width for the content similar to Istio, 902px: https://github.com/kubeflow/website/pull/3816#issuecomment-2248949756 ?
Right now, it is 777px.
/assign @kubeflow/wg-pipeline-leads @rimolive
This PR has some changes into KFP docs to add Swagger for API server, please take a look.

@andreyvelich on a 4k screen the content area is currently 864px (with padding it is 960px).

Personally, I think it's very readable right now, and making it any wider or decreasing the padding/margins would decrease the readability.

For the @kubeflow/wg-pipeline-leads reviewers, here is a direct link to the new Swagger UI pages:

v2 REST API
v1 REST API

Sure, maybe we can start with that setup.
/lgtm
cc @jbottum @kubeflow/wg-pipeline-leads @rimolive

Thanks for the update @thesuperzapper. @thesuperzapper @ederign Do we make the width for the content similar to Istio, 902px: #3816 (comment) ? Right now, it is 777px.
/assign @kubeflow/wg-pipeline-leads @rimolive This PR has some changes into KFP docs to add Swagger for API server, please take a look.

Changes in the pipelines docs look great to me.
/lgtm


[monitor] az monitor log-analytics query-pack: Add new commands

Related command

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

monitor


fix: add syncSecret.enabled=true in helm install for load test

Signed-off-by: Anish Ramasekar<EMAIL_ADDRESS>
Reason for Change:

Adds secrets-store-csi-driver.syncSecret.enabled=true for helm install in load test pipeline.

Requirements

[x] squashed commits
[x] included documentation
[x] added unit tests and e2e tests (if applicable).

Issue Fixed:

Does this change contain code from or inspired by another project?

[ ] Yes
[x] No

If "Yes," did you notify that project's maintainers and provide attribution?
Special Notes for Reviewers:

Codecov Report

Merging #538 (8d573b5) into master (21fe08c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #538   +/-   ##
=======================================
  Coverage   61.49%   61.49%
=======================================
  Files           7        7
  Lines         535      535
=======================================
  Hits          329      329
  Misses        172      172
  Partials       34       34


Fixes #1958 - Fix JSON schema for command health check

@ssk2 You might want to include that fix in the dcos CLI soon. You cannot create apps with the COMMAND health check currently.
(is there actually an option to ignore the json schema?)

Thanks for the notification @kolloch! I'll make sure it gets done.

Could you add a test for invalid cases?

yes, I'll do that. Thanks for the suggestion, @aquamatthias .

I hope that the new patch will meet your expectations ;)

My high expectations are met. Thank you!


jsonDecode not working on flutter WEB getObject: NoSuchMethodError: The getter 'uri' was called on null.

jsonDecode is returning :<getObject: NoSuchMethodError: The getter 'uri' was called on null.> when decoding anything in flutter web.
The exact same code works fine on flutter for Android or iOS.

You can recreate the issue by creating a new flutter web project and adding the following line to the _incrementCounter() function: -
var ted = jsonDecode('{"ted":1}');
Then inspect the variable
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, 1.23.0-18.1.pre, on Microsoft Windows [Version 10.0.18362.1139], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 3.6)
[√] VS Code (version 1.50.1)
[√] Connected device (3 available)
• No issues found!
Thanks
Ted

Hi @tedfire
I cannot reproduce this on latest beta and master channel.

Does the code bellow reproduce the issue?
Code
import 'dart:convert';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _incrementCounter() {
    setState(() {
      _counter++;

      var f = jsonDecode('{"ted":3}');
      final r = 0;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: _incrementCounter,
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

Let me check I'll come back to you. Thanks.

Yes unfortunately, using your code and switching to master channel also gets the same error for me....

Any idea what I can try ?
Thanks
Ted

Hi @tedfire
Please run the code above with flutter run -v and once the issue reproduce share the output here.
Will need your flutter doctor -v as well.

Hello,
I'm also experiencing the same uri was called on null error when using the URI class for requests to a server...

again it works fine on iOS and Android.
flutter doctor -v
[✓] Flutter (Channel dev, 1.24.0-6.0.pre, on Mac OS X 10.15.7 19H2 darwin-x64,
locale en-GB)
• Flutter version 1.24.0-6.0.pre at /Users/reece/Documents/flutter
• Framework revision 13896b3bd1 (6 days ago), 2020-10-28 19:43:19 -0700
• Engine revision 073263e39d
• Dart version 2.11.0 (build 2.11.0-260.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/reece/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.1, Build version 12A7403
• CocoaPods version 1.10.0
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• 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
1.8.0_242-release-1644-b3-6222593)
[✓] Connected device (2 available)
• Web Server (web) • web-server • web-javascript • Flutter Tools
• Chrome (web)     • chrome     • web-javascript • Google Chrome
86.0.4240.183
• No issues found!
Thanks.

Hi @pedromassango,
Here is the debug you requested: -
$ flutter doctor -v
[√] Flutter (Channel master, 1.24.0-7.0.pre.53, on Microsoft Windows [Version 10.0.18362.1139], locale en-US)
• Flutter version 1.24.0-7.0.pre.53 at C:\Users\Ted\Documents\MY_Code\flutter
• Framework revision ee5c080d7b (2 days ago), 2020-11-02 17:28:05 +0530
• Engine revision<PHONE_NUMBER>
• Dart version 2.12.0 (build 2.12.0-3.0.dev)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\Ted\AppData\Local\Android\sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 45.1.1
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[√] VS Code (version 1.50.1)
• VS Code at C:\Users\Ted\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.16.0
[√] Connected device (3 available)
• Web Server (web) • web-server • web-javascript • Flutter Tools
• Chrome (web)     • chrome     • web-javascript • Google Chrome 86.0.4240.111
• Edge (web)       • edge       • web-javascript • Microsoft Edge 86.0.622.58
• No issues found!
PS C:\Users\Ted\Documents\MY_Code\flutter_Apps\jsontest> flutter run -v
[ +121 ms] executing: [C:\Users\Ted\Documents\MY_Code\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +56 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] ee5c080d7b754177429b8559cbd006e88de8479c
[        ] executing: [C:\Users\Ted\Documents\MY_Code\flutter/] git tag --points-at HEAD
[  +59 ms] Exit code 0 from: git tag --points-at HEAD
[   +2 ms] executing: [C:\Users\Ted\Documents\MY_Code\flutter/] git describe --match ..* --first-parent --long --tags
[  +86 ms] Exit code 0 from: git describe --match ..* --first-parent --long --tags
[   +1 ms] 1.24.0-6.0.pre-53-gee5c080d7b
[  +15 ms] executing: [C:\Users\Ted\Documents\MY_Code\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +21 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [C:\Users\Ted\Documents\MY_Code\flutter/] git ls-remote --get-url origin
[  +19 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +61 ms] executing: [C:\Users\Ted\Documents\MY_Code\flutter/] git rev-parse --abbrev-ref HEAD
[  +22 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] master
[  +89 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[  +36 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[  +14 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +7 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +2 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +116 ms] executing: C:\Users\Ted\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +48 ms] List of devices attached
[   +5 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[  +17 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +82 ms] Multiple devices found:
[  +25 ms] Web Server (web) • web-server • web-javascript • Flutter Tools
[   +3 ms] Chrome (web)     • chrome     • web-javascript • Google Chrome 86.0.4240.111
[   +2 ms] Edge (web)       • edge       • web-javascript • Microsoft Edge 86.0.622.58
[  +54 ms] [0]: Web Server (web-server)
[   +7 ms] [1]: Chrome (chrome)
[   +1 ms] [2]: Edge (edge)
[   +4 ms] Please choose one (To quit, press "q/Q")
[   +2 ms] :
[+6749 ms] 1
[  +16 ms] Running "flutter pub get" in jsontest...
[   +4 ms] executing: [C:\Users\Ted\Documents\MY_Code\flutter_Apps\jsontest/] C:\Users\Ted\Documents\MY_Code\flutter\bin\cache\dart-sdk\bin\pub.bat --verbose get --no-precompile
[ +174 ms] FINE: Pub 2.12.0-3.0.dev
[  +75 ms] MSG : Resolving dependencies...
[  +38 ms] SLVR: fact: jsontest is 1.0.0+1
[   +6 ms] SLVR: derived: jsontest
[  +33 ms] SLVR: fact: jsontest depends on flutter any from sdk
[   +2 ms] SLVR: fact: jsontest depends on cupertino_icons ^1.0.0
[   +1 ms] SLVR: fact: jsontest depends on flutter_test any from sdk
[  +17 ms] SLVR:   selecting jsontest
[   +2 ms] SLVR:   derived: flutter_test any from sdk
[   +1 ms] SLVR:   derived: cupertino_icons ^1.0.0
[        ] SLVR:   derived: flutter any from sdk
[  +44 ms] SLVR:   fact: flutter_test 0.0.0 from sdk depends on flutter any from sdk
[   +2 ms] SLVR:   fact: flutter_test 0.0.0 from sdk depends on test_api 0.2.19-nullsafety.4
[   +1 ms] SLVR:   fact: flutter_test 0.0.0 from sdk depends on path 1.8.0-nullsafety.2
[   +1 ms] SLVR:   fact: flutter_test 0.0.0 from sdk depends on fake_async 1.2.0-nullsafety.2
[   +1 ms] SLVR:   fact: flutter_test 0.0.0 from sdk depends on clock 1.1.0-nullsafety.2
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on stack_trace 1.10.0-nullsafety.5
[   +1 ms] SLVR:   fact: flutter_test 0.0.0 from sdk depends on vector_math 2.1.0-nullsafety.4
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on async 2.5.0-nullsafety.2
[   +1 ms] SLVR:   fact: flutter_test 0.0.0 from sdk depends on boolean_selector 2.1.0-nullsafety.2
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on characters 1.1.0-nullsafety.4
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on charcode 1.2.0-nullsafety.2
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on collection 1.15.0-nullsafety.4
[   +1 ms] SLVR:   fact: flutter_test 0.0.0 from sdk depends on matcher 0.12.10-nullsafety.2
[   +1 ms] SLVR:   fact: flutter_test 0.0.0 from sdk depends on meta 1.3.0-nullsafety.5
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on source_span 1.8.0-nullsafety.3
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on stream_channel 2.1.0-nullsafety.2
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on string_scanner 1.1.0-nullsafety.2
[   +1 ms] SLVR:   fact: flutter_test 0.0.0 from sdk depends on term_glyph 1.2.0-nullsafety.2
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on typed_data 1.3.0-nullsafety.4
[   +1 ms] SLVR:     selecting flutter_test 0.0.0 from sdk
[        ] SLVR:     derived: typed_data 1.3.0-nullsafety.4
[        ] SLVR:     derived: term_glyph 1.2.0-nullsafety.2
[        ] SLVR:     derived: string_scanner 1.1.0-nullsafety.2
[        ] SLVR:     derived: stream_channel 2.1.0-nullsafety.2
[        ] SLVR:     derived: source_span 1.8.0-nullsafety.3
[        ] SLVR:     derived: meta 1.3.0-nullsafety.5
[   +2 ms] SLVR:     derived: matcher 0.12.10-nullsafety.2
[        ] SLVR:     derived: collection 1.15.0-nullsafety.4
[   +1 ms] SLVR:     derived: charcode 1.2.0-nullsafety.2
[   +1 ms] SLVR:     derived: characters 1.1.0-nullsafety.4
[  +15 ms] SLVR:     derived: boolean_selector 2.1.0-nullsafety.2
[   +3 ms] SLVR:     derived: async 2.5.0-nullsafety.2
[   +1 ms] SLVR:     derived: vector_math 2.1.0-nullsafety.4
[        ] SLVR:     derived: stack_trace 1.10.0-nullsafety.5
[   +1 ms] SLVR:     derived: clock 1.1.0-nullsafety.2
[   +1 ms] SLVR:     derived: fake_async 1.2.0-nullsafety.2
[   +1 ms] SLVR:     derived: path 1.8.0-nullsafety.2
[        ] SLVR:     derived: test_api 0.2.19-nullsafety.4
[   +5 ms] SLVR:       selecting cupertino_icons 1.0.0
[  +25 ms] SLVR:       fact: flutter 0.0.0 from sdk depends on characters 1.1.0-nullsafety.4
[   +4 ms] SLVR:       fact: flutter 0.0.0 from sdk depends on collection 1.15.0-nullsafety.4
[   +1 ms] SLVR:       fact: flutter 0.0.0 from sdk depends on meta 1.3.0-nullsafety.5
[        ] SLVR:       fact: flutter 0.0.0 from sdk depends on typed_data 1.3.0-nullsafety.4
[        ] SLVR:       fact: flutter 0.0.0 from sdk depends on vector_math 2.1.0-nullsafety.4
[        ] SLVR:       fact: flutter 0.0.0 from sdk depends on sky_engine any from sdk
[   +1 ms] SLVR:         selecting flutter 0.0.0 from sdk
[  +12 ms] SLVR:         derived: sky_engine any from sdk
[   +1 ms] SLVR:         fact: typed_data 1.3.0-nullsafety.4 depends on collection >=1.15.0-nullsafety <1.15.0
[   +1 ms] SLVR:           selecting typed_data 1.3.0-nullsafety.4
[        ] SLVR:             selecting term_glyph 1.2.0-nullsafety.2
[        ] SLVR:             fact: string_scanner 1.1.0-nullsafety.2 depends on charcode >=1.2.0-nullsafety <1.2.0
[        ] SLVR:             fact: string_scanner 1.1.0-nullsafety.2 depends on source_span >=1.8.0-nullsafety <1.8.0
[   +1 ms] SLVR:               selecting string_scanner 1.1.0-nullsafety.2
[   +1 ms] SLVR:               fact: stream_channel 2.1.0-nullsafety.2 depends on async >=2.5.0-nullsafety <2.5.0
[        ] SLVR:                 selecting stream_channel 2.1.0-nullsafety.2
[   +1 ms] SLVR:                 fact: source_span 1.8.0-nullsafety.3 depends on charcode >=1.2.0-nullsafety <1.2.0
[        ] SLVR:                 fact: source_span 1.8.0-nullsafety.3 depends on collection >=1.15.0-nullsafety <1.15.0
[        ] SLVR:                 fact: source_span 1.8.0-nullsafety.3 depends on path >=1.8.0-nullsafety <1.8.0
[        ] SLVR:                 fact: source_span 1.8.0-nullsafety.3 depends on term_glyph >=1.2.0-nullsafety <1.2.0
[        ] SLVR:                   selecting source_span 1.8.0-nullsafety.3
[   +1 ms] SLVR:                     selecting meta 1.3.0-nullsafety.5
[   +8 ms] SLVR:                     fact: matcher 0.12.10-nullsafety.2 depends on stack_trace >=1.10.0-nullsafety <1.10.0
[  +12 ms] SLVR:                       selecting matcher 0.12.10-nullsafety.2
[   +2 ms] SLVR:                         selecting collection 1.15.0-nullsafety.4
[   +6 ms] SLVR:                           selecting charcode 1.2.0-nullsafety.2
[   +8 ms] SLVR:                             selecting characters 1.1.0-nullsafety.4
[  +15 ms] SLVR:                             fact: boolean_selector 2.1.0-nullsafety.2 depends on source_span >=1.8.0-nullsafety <1.8.0
[   +1 ms] SLVR:                             fact: boolean_selector 2.1.0-nullsafety.2 depends on string_scanner >=1.1.0-nullsafety <1.1.0
[   +1 ms] SLVR:                               selecting boolean_selector 2.1.0-nullsafety.2
[   +2 ms] SLVR:                               fact: async 2.5.0-nullsafety.2 depends on collection >=1.15.0-nullsafety <1.15.0
[   +1 ms] SLVR:                                 selecting async 2.5.0-nullsafety.2
[   +8 ms] SLVR:                                   selecting vector_math 2.1.0-nullsafety.4
[   +9 ms] SLVR:                                   fact: stack_trace 1.10.0-nullsafety.5 depends on path ^1.8.0-nullsafety
[  +11 ms] SLVR:                                     selecting stack_trace 1.10.0-nullsafety.5
[   +2 ms] SLVR:                                       selecting clock 1.1.0-nullsafety.2
[   +4 ms] SLVR:                                       fact: fake_async 1.2.0-nullsafety.2 depends on clock >=1.1.0-nullsafety <1.1.0
[        ] SLVR:                                       fact: fake_async 1.2.0-nullsafety.2 depends on collection >=1.15.0-nullsafety <1.15.0
[   +1 ms] SLVR:                                         selecting fake_async 1.2.0-nullsafety.2
[   +5 ms] SLVR:                                           selecting path 1.8.0-nullsafety.2
[  +10 ms] SLVR:                                           fact: test_api 0.2.19-nullsafety.4 depends on async >=2.5.0-nullsafety <2.5.0
[   +5 ms] SLVR:                                           fact: test_api 0.2.19-nullsafety.4 depends on boolean_selector >=2.1.0-nullsafety <2.1.0
[   +2 ms] SLVR:                                           fact: test_api 0.2.19-nullsafety.4 depends on collection >=1.15.0-nullsafety <1.15.0
[   +1 ms] SLVR:                                           fact: test_api 0.2.19-nullsafety.4 depends on meta >=1.3.0-nullsafety <1.3.0
[        ] SLVR:                                           fact: test_api 0.2.19-nullsafety.4 depends on path >=1.8.0-nullsafety <1.8.0
[        ] SLVR:                                           fact: test_api 0.2.19-nullsafety.4 depends on source_span >=1.8.0-nullsafety <1.8.0
[        ] SLVR:                                           fact: test_api 0.2.19-nullsafety.4 depends on stack_trace >=1.10.0-nullsafety <1.10.0
[        ] SLVR:                                           fact: test_api 0.2.19-nullsafety.4 depends on stream_channel >=2.1.0-nullsafety <2.1.0
[        ] SLVR:                                           fact: test_api 0.2.19-nullsafety.4 depends on string_scanner >=1.1.0-nullsafety <1.1.0
[        ] SLVR:                                           fact: test_api 0.2.19-nullsafety.4 depends on term_glyph >=1.2.0-nullsafety <1.2.0
[        ] SLVR:                                           fact: test_api 0.2.19-nullsafety.4 depends on matcher >=0.12.10-nullsafety <0.12.10
[   +1 ms] SLVR:                                             selecting test_api 0.2.19-nullsafety.4
[   +1 ms] SLVR:                                               selecting sky_engine 0.0.99 from sdk
[   +3 ms] SLVR: Version solving took 0:00:00.375411 seconds.
[        ]     | Tried 1 solutions.
[   +1 ms] FINE: Resolving dependencies finished (0.413s).
[   +1 ms] MSG : Overriding the upper bound Dart SDK constraint to <=2.12.0-3.0.dev for the following packages:
[   +1 ms]     |
[        ]     | async, boolean_selector, characters, charcode, clock, collection, fake_async, matcher, meta, path, source_span, stack_trace, stream_channel, string_scanner,
term_glyph, test_api, typed_data, vector_math
[  +26 ms]     |
[   +2 ms]     | To disable this you can set the PUB_ALLOW_PRERELEASE_SDK system environment variable to false, or you can silence this message by setting it to quiet.
[  +28 ms] IO  : Writing 3689 characters to text file .\pubspec.lock.
[   +1 ms] FINE: Contents:
[   +1 ms]     | # Generated by pub
[        ]     | # See https://dart.dev/tools/pub/glossary#lockfile
[        ]     | packages:
[        ]     |   async:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: async
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "2.5.0-nullsafety.2"
[        ]     |   boolean_selector:
[  +15 ms]     |     dependency: transitive
[   +2 ms]     |     description:
[   +1 ms]     |       name: boolean_selector
[   +2 ms]     |       url: "https://pub.dartlang.org"
[   +1 ms]     |     source: hosted
[   +1 ms]     |     version: "2.1.0-nullsafety.2"
[   +1 ms]     |   characters:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: characters
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.1.0-nullsafety.4"
[        ]     |   charcode:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: charcode
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[   +8 ms]     |     version: "1.2.0-nullsafety.2"
[   +1 ms]     |   clock:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: clock
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.1.0-nullsafety.2"
[        ]     |   collection:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: collection
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.15.0-nullsafety.4"
[        ]     |   cupertino_icons:
[        ]     |     dependency: "direct main"
[        ]     |     description:
[        ]     |       name: cupertino_icons
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.0.0"
[        ]     |   fake_async:
[        ]     |     dependency: transitive
[        ]     |     description:
[  +28 ms]     |       name: fake_async
[   +1 ms]     |       url: "https://pub.dartlang.org"
[   +1 ms]     |     source: hosted
[        ]     |     version: "1.2.0-nullsafety.2"
[        ]     |   flutter:
[        ]     |     dependency: "direct main"
[        ]     |     description: flutter
[   +1 ms]     |     source: sdk
[   +1 ms]     |     version: "0.0.0"
[        ]     |   flutter_test:
[        ]     |     dependency: "direct dev"
[        ]     |     description: flutter
[        ]     |     source: sdk
[        ]     |     version: "0.0.0"
[        ]     |   matcher:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: matcher
[        ]     |       url: "https://pub.dartlang.org"
[   +9 ms]     |     source: hosted
[   +1 ms]     |     version: "0.12.10-nullsafety.2"
[   +1 ms]     |   meta:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: meta
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.3.0-nullsafety.5"
[        ]     |   path:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: path
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.8.0-nullsafety.2"
[        ]     |   sky_engine:
[        ]     |     dependency: transitive
[        ]     |     description: flutter
[        ]     |     source: sdk
[        ]     |     version: "0.0.99"
[        ]     |   source_span:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: source_span
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.8.0-nullsafety.3"
[        ]     |   stack_trace:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: stack_trace
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.10.0-nullsafety.5"
[        ]     |   stream_channel:
[   +9 ms]     |     dependency: transitive
[   +1 ms]     |     description:
[        ]     |       name: stream_channel
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "2.1.0-nullsafety.2"
[        ]     |   string_scanner:
[        ]     |     dependency: transitive
[        ]     |     description:
[   +1 ms]     |       name: string_scanner
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.1.0-nullsafety.2"
[        ]     |   term_glyph:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: term_glyph
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.2.0-nullsafety.2"
[        ]     |   test_api:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: test_api
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "0.2.19-nullsafety.4"
[        ]     |   typed_data:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: typed_data
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.3.0-nullsafety.4"
[        ]     |   vector_math:
[   +9 ms]     |     dependency: transitive
[   +1 ms]     |     description:
[        ]     |       name: vector_math
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "2.1.0-nullsafety.4"
[        ]     | sdks:
[        ]     |   dart: ">=2.11.0-0.0 <=2.12.0-3.0.dev"
[        ] IO  : Writing 2517 characters to text file ..packages.
[        ] FINE: Contents:
[        ]     | # Generated by pub on 2020-11-04 11:17:44.112535.
[        ]     | async:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/async-2.5.0-nullsafety.2/lib/
[        ]     | boolean_selector:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/boolean_selector-2.1.0-nullsafety.2/lib/
[        ]     | characters:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/characters-1.1.0-nullsafety.4/lib/
[   +1 ms]     | charcode:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/charcode-1.2.0-nullsafety.2/lib/
[        ]     | clock:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/clock-1.1.0-nullsafety.2/lib/
[   +1 ms]     | collection:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/collection-1.15.0-nullsafety.4/lib/
[        ]     | cupertino_icons:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/cupertino_icons-1.0.0/lib/
[   +1 ms] MSG : Got dependencies!
[        ]     | fake_async:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/fake_async-1.2.0-nullsafety.2/lib/
[   +1 ms]     | flutter:file:///C:/Users/Ted/Documents/MY_Code/flutter/packages/flutter/lib/
[        ]     | flutter_test:file:///C:/Users/Ted/Documents/MY_Code/flutter/packages/flutter_test/lib/
[        ]     | matcher:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/matcher-0.12.10-nullsafety.2/lib/
[        ]     | meta:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/meta-1.3.0-nullsafety.5/lib/
[        ]     | path:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/path-1.8.0-nullsafety.2/lib/
[   +1 ms]     | sky_engine:file:///C:/Users/Ted/Documents/MY_Code/flutter/bin/cache/pkg/sky_engine/lib/
[   +1 ms]     | source_span:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/source_span-1.8.0-nullsafety.3/lib/
[        ]     | stack_trace:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/stack_trace-1.10.0-nullsafety.5/lib/
[   +1 ms]     | stream_channel:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/stream_channel-2.1.0-nullsafety.2/lib/
[  +17 ms]     | string_scanner:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/string_scanner-1.1.0-nullsafety.2/lib/
[   +2 ms]     | term_glyph:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/term_glyph-1.2.0-nullsafety.2/lib/
[   +1 ms]     | test_api:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/test_api-0.2.19-nullsafety.4/lib/
[   +1 ms]     | typed_data:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/typed_data-1.3.0-nullsafety.4/lib/
[        ]     | vector_math:file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/vector_math-2.1.0-nullsafety.4/lib/
[        ]     | jsontest:lib/
[   +1 ms] IO  : Writing 5037 characters to text file ..dart_tool\package_config.json.
[        ] FINE: Contents:
[        ]     | {
[        ]     |   "configVersion": 2,
[        ]     |   "packages": [
[        ]     |     {
[        ]     |       "name": "async",
[        ]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/async-2.5.0-nullsafety.2",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "boolean_selector",
[  +17 ms]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/boolean_selector-2.1.0-nullsafety.2",
[   +1 ms]     |       "packageUri": "lib/",
[   +1 ms]     |       "languageVersion": "2.10"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "characters",
[        ]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/characters-1.1.0-nullsafety.4",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "charcode",
[        ]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/charcode-1.2.0-nullsafety.2",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "clock",
[        ]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/clock-1.1.0-nullsafety.2",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[  +11 ms]     |     },
[   +1 ms]     |     {
[   +1 ms]     |       "name": "collection",
[   +1 ms]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/collection-1.15.0-nullsafety.4",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "cupertino_icons",
[        ]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/cupertino_icons-1.0.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "fake_async",
[        ]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/fake_async-1.2.0-nullsafety.2",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "flutter",
[        ]     |       "rootUri": "file:///C:/Users/Ted/Documents/MY_Code/flutter/packages/flutter",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "flutter_test",
[        ]     |       "rootUri": "file:///C:/Users/Ted/Documents/MY_Code/flutter/packages/flutter_test",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[   +1 ms]     |     },
[  +15 ms]     |     {
[   +1 ms]     |       "name": "matcher",
[   +1 ms]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/matcher-0.12.10-nullsafety.2",
[   +1 ms]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "meta",
[        ]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/meta-1.3.0-nullsafety.5",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "path",
[        ]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/path-1.8.0-nullsafety.2",
[   +1 ms]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[   +1 ms]     |     },
[        ]     |     {
[   +1 ms]     |       "name": "sky_engine",
[   +1 ms]     |       "rootUri": "file:///C:/Users/Ted/Documents/MY_Code/flutter/bin/cache/pkg/sky_engine",
[   +1 ms]     |       "packageUri": "lib/",
[  +20 ms]     |       "languageVersion": "1.11"
[   +2 ms]     |     },
[   +1 ms]     |     {
[        ]     |       "name": "source_span",
[        ]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/source_span-1.8.0-nullsafety.3",
[        ]     |       "packageUri": "lib/",
[   +1 ms]     |       "languageVersion": "2.11"
[        ]     |     },
[   +1 ms]     |     {
[   +1 ms]     |       "name": "stack_trace",
[        ]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/stack_trace-1.10.0-nullsafety.5",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[  +10 ms]     |     },
[   +2 ms]     |     {
[   +1 ms]     |       "name": "stream_channel",
[   +1 ms]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/stream_channel-2.1.0-nullsafety.2",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[        ]     |     },
[   +1 ms]     |     {
[        ]     |       "name": "string_scanner",
[        ]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/string_scanner-1.1.0-nullsafety.2",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "term_glyph",
[        ]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/term_glyph-1.2.0-nullsafety.2",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "test_api",
[        ]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/test_api-0.2.19-nullsafety.4",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "typed_data",
[  +12 ms]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/typed_data-1.3.0-nullsafety.4",
[   +2 ms]     |       "packageUri": "lib/",
[   +1 ms]     |       "languageVersion": "2.10"
[   +1 ms]     |     },
[        ]     |     {
[        ]     |       "name": "vector_math",
[        ]     |       "rootUri": "file:///C:/Users/Ted/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/vector_math-2.1.0-nullsafety.4",
[   +1 ms]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.10"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "jsontest",
[        ]     |       "rootUri": "../",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.7"
[        ]     |     }
[        ]     |   ],
[        ]     |   "generated": "2020-11-04T07:17:44.182539Z",
[        ]     |   "generator": "pub",
[        ]     |   "generatorVersion": "2.12.0-3.0.dev"
[        ]     | }
[  +25 ms] Running "flutter pub get" in jsontest... (completed in 1,185ms)
[ +195 ms] Generating C:\Users\Ted\Documents\MY_Code\flutter_Apps\jsontest\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +76 ms] Launching lib\main.dart on Chrome in debug mode...
[ +128 ms] Updating assets
[ +158 ms] Syncing files to device Chrome...
[ +162 ms] <- reset
[   +7 ms] C:\Users\Ted\Documents\MY_Code\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\Ted\Documents\MY_Code\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
C:\Users\Ted\Documents\MY_Code\flutter\bin\cache\flutter_web_sdk/ --incremental --target=dartdevc --debugger-module-names --experimental-emit-debug-metadata
-Ddart.developer.causal_async_stacks=true --output-dill C:\Users\Ted\AppData\Local\Temp\flutter_tools.fe1f962b\flutter_tool.3ea9ed48\app.dill --libraries-spec
file:///C:/Users/Ted/Documents/MY_Code/flutter/bin/cache/flutter_web_sdk/libraries.json --packages .packages -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts
--track-widget-creation --filesystem-root C:\Users\Ted\AppData\Local\Temp\flutter_tools.fe1f962b\flutter_tools.16498f04 --filesystem-scheme org-dartlang-app --initialize-from-dill
build\fbbe6a61fb7a1de317d381f8df4814e5.cache.dill.track.dill --platform file:///C:/Users/Ted/Documents/MY_Code/flutter/bin/cache/flutter_web_sdk/kernel/flutter_ddc_sdk.dill
--no-sound-null-safety
[  +36 ms] <- compile org-dartlang-app:/web_entrypoint.dart
[+17440 ms] Syncing files to device Chrome... (completed in 17.6s)
[   +1 ms] Synced 28.4MB.
[   +1 ms] <- accept
[  +13 ms] Caching compiled dill
[ +239 ms] Using Opening in existing browser session.
[ +326 ms] [CHROME]:
[   +4 ms] [CHROME]:DevTools listening on ws://<IP_ADDRESS>:62540/devtools/browser/48f4f688-15d5-4a67-a5d8-50679d247fef
[+1254 ms] MetadataProvider: Loading debug metadata...
[   +9 ms] MetadataProvider: Loaded debug metadata
[+4782 ms] DevHandler: Debug service listening on ws://<IP_ADDRESS>:62568/SEUptP_R6U0=/ws
[   +6 ms] Debug service listening on ws://<IP_ADDRESS>:62568/SEUptP_R6U0=/ws
[  +10 ms] Warning: Flutter's support for web development is not stable yet and hasn't
[   +1 ms] been thoroughly tested in production environments.
[        ] For more information see https://flutter.dev/web
[   +1 ms]   To hot restart changes while running, press "r" or "R".
[   +2 ms] For a more detailed help message, press "h". To quit, press "q".

Hi @pedromassango , there are no errors when running the application it fails silently. You can only see the error output if you inspect the variable.

Hi @tedfire
Are you able to reproduce the issue by using Android Studio? Just to make sure it is not the debugger going crazy.

Hi @tedfire
Are you able to reproduce the issue by using Android Studio? Just to make sure it is not the debugger going crazy.

Hi @pedromassango you are right !
It does not happen in Android Studio !? Weird. Only in Visual Studio Code.
I will try uninstalling VSCode and re-installing then report back here the result.
Many Thanks for your help!
Ted

@tedfire are you still having this issue? I am facing the exact same thing with VSCode. Wondering if a re-install fixed it.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

I faced the same issue:
[+12396 ms] sending the message
[ +423 ms] Error: XMLHttpRequest error.
                        C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 906:28get
                        current
                    packages/http/src/browser_client.dart 84:22
<fn>
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/zone.dart 1446:54
runUnary
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 150:18
                    handleValue
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 703:44
                    handleValueCallback
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 732:32
                    _propagateToListeners
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 526:7
                    [_complete]
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/stream_pipe.dart 61:11
                    _cancelAndValue
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/stream.dart 1302:7
<fn>

C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 324:14
                    _checkAndCall

C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 329:39  dcall
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/html/dart2js/html_dart2js.dart 37307:58
<fn>

                        at Object.createErrorWithStack (http://localhost:54018/dart_sdk.js:5301:12)
                        at Object._rethrow (http://localhost:54018/dart_sdk.js:38819:16)
                        at async._AsyncCallbackEntry.new.callback (http://localhost:54018/dart_sdk.js:38813:13)
                        at Object._microtaskLoop (http://localhost:54018/dart_sdk.js:38645:13)
                        at _startMicrotaskLoop (http://localhost:54018/dart_sdk.js:38651:13)
                        at http://localhost:54018/dart_sdk.js:34178:9

i just make simple http request:
await http.put(
      '$serverUrl/sendMessage',
      headers: {
        'Content-Type': 'application/json',
      },
      body: jsonEncode(
        {
          "from_user": currentUsername,
          "to_user": "rinat",
          "msg_content": msg.msg,
        },
      ),
    );

I faced the same issue:
[+12396 ms] sending the message
[ +423 ms] Error: XMLHttpRequest error.
                        C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 906:28get
                        current
                    packages/http/src/browser_client.dart 84:22
<fn>
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/zone.dart 1446:54
runUnary
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 150:18
                    handleValue
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 703:44
                    handleValueCallback
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 732:32
                    _propagateToListeners
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 526:7
                    [_complete]
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/stream_pipe.dart 61:11
                    _cancelAndValue
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/stream.dart 1302:7
<fn>

C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 324:14
                    _checkAndCall

C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 329:39  dcall
                    C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/html/dart2js/html_dart2js.dart 37307:58
<fn>

                        at Object.createErrorWithStack (http://localhost:54018/dart_sdk.js:5301:12)
                        at Object._rethrow (http://localhost:54018/dart_sdk.js:38819:16)
                        at async._AsyncCallbackEntry.new.callback (http://localhost:54018/dart_sdk.js:38813:13)
                        at Object._microtaskLoop (http://localhost:54018/dart_sdk.js:38645:13)
                        at _startMicrotaskLoop (http://localhost:54018/dart_sdk.js:38651:13)
                        at http://localhost:54018/dart_sdk.js:34178:9

i just make simple http request:
await http.put(
      '$serverUrl/sendMessage',
      headers: {
        'Content-Type': 'application/json',
      },
      body: jsonEncode(
        {
          "from_user": currentUsername,
          "to_user": "rinat",
          "msg_content": msg.msg,
        },
      ),
    );

I have the exact same issue as @barak-innov .  A simple http request gives "NoSuchMethodError: The getter 'uri' was called on null".
This happened in VS Code and Android Studio in debug.
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, 1.25.0-8.3.pre, on Microsoft Windows [Version 10.0.19042.746], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.52.1)
[√] Connected device (2 available)
• No issues found!

I have the exact same issue as @barak-innov .  A simple http request gives "NoSuchMethodError: The getter 'uri' was called on null".
This happened in VS Code and Android Studio in debug.
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, 1.25.0-8.3.pre, on Microsoft Windows [Version 10.0.19042.746], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.52.1)
[√] Connected device (2 available)
• No issues found!

Hi @atgnatus @barak-innov
Can you please open a new issue?

Hi @atgnatus @barak-innov
Can you please open a new issue?

@pedromassangocode - can you reopen this issue?  It has the correct information, ways to reproduce and the history.

@pedromassangocode - can you reopen this issue?  It has the correct information, ways to reproduce and the history.

Note - to see the error message "NoSuchMethodError: The getter 'uri' was called on null" you need to inspect the http.Response in the watch window

Note - to see the error message "NoSuchMethodError: The getter 'uri' was called on null" you need to inspect the http.Response in the watch window

@pedromassangocode - can you reopen this issue? It has the correct information, ways to reproduce and the history.

As said before, can you please open a new issue?
The issue mentioned in https://github.com/flutter/flutter/issues/69564#issuecomment-761594935 is not the same as the one in the OP. Please open a new issue and provide what is asked in the template.
Thank you

@pedromassangocode - can you reopen this issue? It has the correct information, ways to reproduce and the history.

As said before, can you please open a new issue?
The issue mentioned in https://github.com/flutter/flutter/issues/69564#issuecomment-761594935 is not the same as the one in the OP. Please open a new issue and provide what is asked in the template.
Thank you

Ok.  I am writing a test case for the new issue but I have not tied down the problem.  There seems to be a change with the JSON decoding of the http response.

Ok.  I am writing a test case for the new issue but I have not tied down the problem.  There seems to be a change with the JSON decoding of the http response.

I'm facing the same issue but with dart:html, I'm building a plugin package and in my web file, this error occurs on every line which has a dart:html method, getter or object.

Hey @pedromassango,
I migrated to null safety and updated my Dio package as well and now I am facing an issue.
<error> <getObject: NoSuchMethodError: The getter 'uri' was called on null.>

screenshoot

flutter doctor -v

[√] Flutter (Channel stable, 2.0.3, on Microsoft Windows [Version 10.0.19042.867], locale en-US)
    • Flutter version 2.0.3 at C:\FlutterSDK\flutter
    • Framework revision 4d7946a68d (3 weeks ago), 2021-03-18 17:24:33 -0700
    • Engine revision 3459eb2436
    • Dart version 2.12.2

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\bplos\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • 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 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.55.0)
    • VS Code at C:\Users\bplos\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.21.0

[√] Connected device (3 available)
    • Redmi Note 5 (mobile) • df6a6acb • android-arm64  • Android 9 (API 28)
    • Chrome (web)          • chrome   • web-javascript • Google Chrome 89.0.4389.114
    • Edge (web)            • edge     • web-javascript • Microsoft Edge 89.0.774.68

• No issues found!

dio: ^4.0.0

Exact same issue described by @BartusZak. Tested with http package and dio.

Have the exact same issue for flutter-web. Simply copy and paste the code from the docs and the crash will occur as described.
name: covid_client
description: A new Flutter project.

publish_to: 'none'
version: 1.0.0+1

environment:
  sdk: ">=2.7.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^1.0.2
  qr_flutter: ^3.2.0
  universal_html: ^2.0.8
  universal_ui: ^0.0.8
  js: ^0.6.3
  uuid: ^3.0.4
  flutter_spinkit: ^5.0.0
  flutter_timeline: ^0.1.1+13
  intl: ^0.17.0
  google_fonts: ^2.0.0
  http: ^0.13.0

flutter:
  assets:
    - res/images/
  uses-material-design: true

Hi, having the same issue with VSCode on Linux.
I'm using web3dart to get data from a smart contract. Strangely I can print the value to console but it won't allow me to set it to a variable or return it. Inspecting the element shows the value with the error too.

Apologies if I've got format wrong or missing information.
Output of flutter doctor -v:
`[✓] Flutter (Channel stable, 2.0.4, on Linux, locale en_GB.UTF-8)
• Flutter version 2.0.4 at /home/tom/snap/flutter/common/flutter
• Framework revision b1395592de (4 weeks ago), 2021-04-01 14:25:01 -0700
• Engine revision 2dce47073a
• Dart version 2.12.2
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /home/tom/Android/Sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /snap/android-studio/current/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• CHROME_EXECUTABLE = /opt/google/chrome/chrome
[✓] Android Studio
• Android Studio at /snap/android-studio/current/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
• android-studio-dir = /snap/android-studio/current/android-studio
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.85 unknown`


Rename column to Minimum Supported Version

For tiles that do not support Maestro, set "Minimum Supported Version" as N/A

[#171500760]

Thanks @tylerphelan


modify behaviour to pull updates and then run server automatically

The current design uses command line arguments to determine what the executable does.
I find that I usually run the application to first sync and then run it in server mode. It would be sensible to modify the design/behaviour to do both by default, so the default operation would be to sync first and then run the server (and perhaps even open a web page directly to the server).

This has been mostly completed in #10 - the outstanding issue is to trap Ctrl-C such that the server gets terminated cleanly...

Fixed outstanding issue with #11 - closing.


Check both elements and behaviors when hiding Bundled sections

Fixes Polymer/polymer-element-catalog#183
page-element is only checking the current type so because iron-overlay-backdrop only has one element it doesn't render the "Bundled Elements" even though there are behaviors so once you select a behavior you can't select the element again

No longer needed with merge of https://github.com/Polymer/polymer-element-catalog/pull/185

Thanks for working on this.


Content-Encoding: gzip header is missing from response

Steps to reproduce: invite someone on Github to your team or organization.
This page will be broken:
https://github.com/orgs/AdguardTeam/invitations/USERNAME/edit

Cannot reproduce. Please, provide more details.

Well, I guess we should try reproducing this on my laptop then.

Duplicate of https://github.com/AdguardTeam/CoreLibs/issues/951


Unable to change tab indicator to icon

In vanilla mdc, you can set on mdc-tab-indicator mdc-tab-indicator__content--icon which allows you to replace the underlaying implementation and children of that node act as an icon.
However, in RMWC the prop to change this is missing.
https://github.com/material-components/material-components-web/tree/master/packages/mdc-tab-indicator

I've been waiting of this to come up for a while :). I'll add the feature for the next release.

Support has been added and will go out in the next release. Looking through their docs and demos, I'm not sure if the feature was every fully finished, or it might be abandoned. I did manage to get them working, but the indicators themselves require some manual positioning. Below is a screenshot of using the indicator as described in the docs followed by manually positioning the icon.

<DocsP>
  `material-components-web` has some light support for using icons as
  indicators (it's buried in their docs but there are no working examples
  or demos). Support has been added to RMWC, but your mileage may vary
  since it will require quite a bit of manual positioning and styling. By
  default, the icons appear full size at the center of the tab,
  effectively making them overlay images.
</DocsP>
<DocsExample label="Default Positioning">
  <TabBar>
    <Tab iconIndicator="star">Cookies</Tab>
    <Tab iconIndicator="favorite">Pizza</Tab>
    <Tab iconIndicator="mood">Icecream</Tab>
  </TabBar>
</DocsExample>

<DocsExample label="Manually Positioned">
  {function IconIndicatorExample() {
    const style = {
      transformOrigin: 'center center',
      transform: 'translateY(1rem) scale(0.45)'
    };

    return (
      <TabBar>
        <Tab
          label="Cookies"
          iconIndicator={{
            icon: 'star',
            style: style
          }}
        />
        <Tab
          label="Pizza"
          iconIndicator={{
            icon: 'favorite',
            style: style
          }}
        />
        <Tab
          label="Icecream"
          iconIndicator={{
            icon: 'mood',
            style: style
          }}
        />
      </TabBar>
    );
  }}
</DocsExample>

Yeah thanks. I did manage to get them working through shadowing your component and using vanilla mdc with ref and it seemed to work according to spec.
It's the animation of the indicator that is somehow hard to implement and seems working nicely.
Thanks again for your work.

Yes, the screenshots look ok. Thanks for adding this.


Envoy verifying certificate even though validation context is not configured

If you are reporting any crash or any potential security issue, do not
open an issue in this repo. Please report the issue via emailing
<EMAIL_ADDRESS>where the issue will be triaged appropriately.
Title: One line description
Envoy verifying certificate even though validation context is not configured
Description:

What issue is being seen? Describe what should be happening instead of
the bug, for example: Envoy should not crash, the expected value isn't
returned, etc.

We are routing request to target using simple TLS. Envoy is able to establish connection and envoy client disconnected connection due to "failure reason: TLS error: 268435581:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED"
Repro steps:

Include sample requests, environment, etc. All data and inputs
required to reproduce the bug.

Note: The Envoy_collect tool
gathers a tarball with debug logs, config and the following admin
endpoints: /stats, /clusters and /server_info. Please note if there are
privacy concerns, sanitize the data prior to sharing the tarball/pasting.

Admin and Stats Output:

Include the admin output for the following endpoints: /stats,
/clusters, /routes, /server_info. For more information, refer to the
admin endpoint documentation.

Note: If there are privacy concerns, sanitize the data prior to
sharing.

Config:

Include the config used to configure Envoy.
`address:
socket_address:
address: <IP_ADDRESS>
port_value: 10000
protocol: TCP
filter_chains:
- filters:
- name: envoy.http_connection_manager
typed_config:
'@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
http_filters:
- name: envoy.filters.http.dynamic_forward_proxy
typed_config:
'@type': type.googleapis.com/envoy.extensions.filters.http.dynamic_forward_proxy.v3.FilterConfig
dns_cache_config:
dns_lookup_family: V4_ONLY
name: dynamic_forward_proxy_cache_config
- name: envoy.router
typed_config:
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
route_config:
name: local_route
request_headers_to_remove:
- x-envoy-peer-metadata
- x-envoy-peer-metadata-id
virtual_hosts:
- domains:
- testfqdn*
name: https_service
routes:
- match:
prefix: /
route:
cluster: https_dynamic_forward_proxy_cluster
stat_prefix: ingress_http
name: proxy

applyTo: CLUSTER
match:
context: SIDECAR_OUTBOUND
patch:
operation: ADD
value:
cluster_type:
name: envoy.clusters.dynamic_forward_proxy
typed_config:
'@type': type.googleapis.com/envoy.extensions.clusters.dynamic_forward_proxy.v3.ClusterConfig
dns_cache_config:
dns_lookup_family: V4_ONLY
name: dynamic_forward_proxy_cache_config
connect_timeout: 1s
http2_protocol_options:
max_concurrent_streams:<PHONE_NUMBER>
lb_policy: CLUSTER_PROVIDED
name: https_dynamic_forward_proxy_cluster
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
'@type': type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext
common_tls_context:
alpn_protocols:
- h2`
Logs:

Include the access logs and the Envoy logs.

2022-08-03T15:15:43.804868Z     debug   envoy connection        [C5026] connecting to <IP_ADDRESS>:8000
2022-08-03T15:15:43.804966Z     debug   envoy connection        [C5026] connection in progress
2022-08-03T15:15:43.805010Z     debug   envoy http      [C127][S16165143462978876482] request end stream
2022-08-03T15:15:43.835305Z     debug   envoy connection        [C5026] connected
2022-08-03T15:15:43.883297Z     debug   envoy connection        [C5026] TLS error: 268435581:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
2022-08-03T15:15:43.883316Z     debug   envoy connection        [C5026] closing socket: 0
2022-08-03T15:15:43.883331Z     debug   envoy connection        [C5026] TLS error: 268435581:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
2022-08-03T15:15:43.883349Z     debug   envoy client    [C5026] disconnect. resetting 0 pending requests
2022-08-03T15:15:43.883360Z     debug   envoy pool      [C5026] client disconnected, failure reason: TLS error: 268435581:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
2022-08-03T15:15:43.883375Z     debug   envoy router    [C127][S16165143462978876482] upstream reset: reset reason: connection failure, transport failure reason: TLS error: 268435581:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
2022-08-03T15:15:43.883430Z     debug   envoy http      [C127][S16165143462978876482] Sending local reply with details upstream_reset_before_response_started{connection failure,TLS error: 268435581:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED}
2022-08-03T15:15:43.883463Z     debug   envoy http      [C127][S16165143462978876482] encoding headers via codec (end_stream=false):
':status', '503'
'content-length', '195'
'content-type', 'text/plain'
'date', 'Wed, 03 Aug 2022 15:15:43 GMT'
'server', 'envoy'

Note: If there are privacy concerns, sanitize the data prior to
sharing.

Call Stack:

If the Envoy binary is crashing, a call stack is required.
Please refer to the Bazel Stack trace documentation.

cc @zuercher @RyanTheOptimist

I think this is working as designed.
By default, the dynamic forward proxy requires auto_sni: true and auto_san_validation: true on the cluster's upstream_http_protocol_options. When no UpstreamHttpProtocolOptions are given those settings default to true for the dynamic forward proxy (but not for a static cluster).
I suspect the auto SAN validation is the issue here: the certificate's SAN and the authority sent to Envoy likely don't match. I think you can correct that in the certificate, but I don't have time to try it.
The other option is disable auto SAN validation in the Cluster config. I confirmed that with your settings and a self-signed certificate with incorrect SAN, I get the same TLS error and that disabling auto SAN validation "fixes" it. This configuration is less secure and you should understand the implications before allowing untrusted downstreams to connect.
In the Cluster, disable auto SAN validation:
      upstream_http_protocol_options:
        auto_san_validation: false

In the dynamic forward proxy ClusterConfig, allow insecure cluster options:
          allow_insecure_cluster_options: true

Hi @zuercher
Thanks for reply.
I was followed your configuration :
a. allow_insecure_cluster_options: true
b. though i have configured upstream_http_protocol_options as below
upstream_http_protocol_options:         auto_san_validation: false
it is showing as upstream_http_protocol_options: {} in istio configdump.
if you have full configuration please share, it will help me.
Anyway, with your inputs, I have proceeded further to next step.
I have one query regarding comment -  "the certificate's SAN and the authority sent to Envoy likely don't match. I think you can correct that in the certificate"
my authority is app.mnc008.mcc008.3gppanetwork.org:8447 where as SAN DNS is app.mnc008.mcc008.3gppanetwork.org in certificate. is that the issue ?
Also i have SAN IP configured in cert.
Thanks Again!


Windows Defender identifying quest-helper as 'Severe' trojan

Trojan:Script/Wacatac.B!ml
Assuming it's not a legitimate match, do you know why this suddenly matched today?

Getting the same issues with Windows detecting it as a severe trojan as well.

Same here

A post on reddit about it:
https://www.reddit.com/r/2007scape/comments/ugs7d8/potential_runelite_trojan_windows_caught_it_this/


#all_there? - Initial Recursion Logic

Fully TDD'd, with semi-functional test coverage and logic which partially works.
ping @tgaff for review/help/usage pointers (I know you asked).
NB: This currently is not "fully" compatible with .expected_items.

This now in theory "begins" to use .expected_items - But I've not given it anywhere near enough mileage to test this. @tgaff if you're up for giving this a bit of a runabout let me know if it works as you'd expect.

@faceless7171 @ineverov could you both take a look at this. See if it works / you can spot any issues.

re-ping @tgaff / @faceless7171 - Could you give me some feedback on this, otherwise I'll probably just leave it be.

Yes, sure, I will take a look!

This is now fully up to date with v3.2 of the gem, and has been tidied up and slightly optimised. There's still a chunk more stuff to do. But I think I'm going to get this released sooner rather than later and then work on splitting it out into its own gem, as there's a whole heap of stuff that's not possible with the recursion strategies we've uncovered.

@luke-hill Sorry was a little bit busy. For the things I can see this is looks good, great job!