Debian / Ubuntu packaging

To faster and support a secure adoption of the library it would be important to have txacme packaged for Debian/Ubuntu.
A good target could be probably to reach the Ubuntu xenial/Debian stretch that are just release so maybe there is still possibility for this.

As a Debian developer I can take care of this myself easily enough, on the Debian side at least, and then the package should be synced to Ubuntu universe automatically. I think I may try to get at least 0.9.1 out the door first, since there are some API-breaking changes expected in that release (probably more to come after that, but that's why this isn't 1.0 yet.)

@mithrandi do you have any update on this front?

Hello @mithrandi;
we are about to integrate letsencrypt in GlobaLeaks; i was looking for making the package of tx-acme but sadly i saw that an important amount of the libraries that you are using would have to be packaged as well.
What i can do in order to support you project is to try to use python-acme directly by implementing the more that we can the same as txacme is doing; this way at least we should come to debug same possibile issues and fix it.
sounds like a good plan?
\cc @NSkelsey @fpietrosanti

One possibility might be to just ship txacme and the other dependencies privately in your GlobaLeaks package. I still intend to package txacme for Debian but getting the dependencies packaged etc. will take some time and probably nothing will happen before stretch's release on account of the freeze and time constraints.

FYI:
https://ftp-master.debian.org/new/txsni_0.1.9-1.html
https://ftp-master.debian.org/new/python-eliot_1.6.0-1.html
https://ftp-master.debian.org/new/pyrsistent_0.14.10-1.html
https://ftp-master.debian.org/new/python-pem_18.2.0-1.html
https://ftp-master.debian.org/new/txacme_0.9.2-1.html

I notice that txacme package is still sitting in the NEW queue, ten months later, and still at the same version, but it hasn't entered the archive yet and now the "last modified" date is 2019-11-16.
I'm not very familiar with how new packages enter Debian, or how to track their progress. Can you describe what's going on, or point me to a public issue tracker or mailing list or something that I can read to find out?

Just to answer my own question, I found a rejection notice for the current txacme package, but for what look like minor paperwork issues, so I'm hoping they'll be straightforward to fix.

It’s just got in: https://packages.qa.debian.org/t/txacme.html


How to refresh the font list dynamically?

My list of available fonts can change dynamically - the list is the user's favourites, so they can add and remove them from it.
What is the best method for updating the font list shown in the editor? I tried just setting
editor..core.options.font = [new array];
but the actual editor didn't update.
I would appreciate any guidance

editorInstance.setOptions({
  font: [new array]
})

cheers, sorry i missed that


Add Description of where to find information on the page

For Detroit's Purchasing Website, you need to scroll down to the section marked "Urgent Vendor Notice" and then understand that "Informal Purchase" is the last purchase amount up until Competitive Bidding.
I think we need to specify more directly where to find this information on the page of the website.

This is sort of related to #20, but is more specifically for locating the item on a website, rather than in the municipal code.


Add play()/rec()/playrec()/stop()/wait()

This is a possible (maybe partial) solution to #19.
The implementation can for sure be improved, for now I think the API is the most important aspect of this PR.

I don't think that these functions make PySoundCard easier to use. I have seen how these functions turn out in PySoundFile, and learned my lesson: Library code should be as minimal as possible. Look at SoundDevice for a module with more of a focus on interactive use.


Fail the task if memoizer.store fails.

A new PR to fix commit mess of #44

@rouzwawi I closed #44 as my repo was in a very weird state.

@honnix are your concerns about deadlock still valid in this new PR?

No. This is a much better solution. Basically constructing a new Value.

I see, nice! Let's update the JavaDocs with the new behaviour of store.
We should also improve the printed logs in case of errors to make clear which Task failed publishing.

There is no new behaviour of store. We might want to make it explicitly declare throwing a checked exception, or in Javadoc make it clear what if the implementation throws RuntimeException.

In terms of logging, we are actually printing task id. E.g.
11:04:47.229 flo-worker-0                 | WARN | FloRunner  |> streamCount1(2016-10-01T00)#f5f57287 Failed
java.lang.RuntimeException: forced failure
...

👍


refactor(core-api): keychain plugin get/set generic type parameters

Description
https://github.com/hyperledger/cactus/blob/acfa6380c774f6651cf256851ea6c02972474503/packages/cactus-core-api/src/main/typescript/plugin/keychain/i-plugin-keychain.ts
  get<T>(key: string): Promise<T>;
  set<T>(key: string, value: T): Promise<void>;

Right now we have these methods as generic, but it may be better to lock it down to work on strings only since that's the most common (likely the only?) type we'll be dealing with as the plugin implementations are just passing information between calling code and the keychain backends anyway.
cc: @takeutak @sfuji822 @hartm @jonathan-m-hamilton

cc: @ty-lazar @Jeff-Ushry @twiggins120 @awadhana @Leeyoungone

I'll work on this.


fqdn: Correct race when the DNS proxy updates FQDN selectors

Edit 2020-03-06-15:40 UTC: I pulled out the original test change that was this PR since it wasn't clear to me that it was testing the issue correctly. I'll have to revisit it. I included the "fix" here in one commit, since doing just locking or queueing in 2 commits broke.
UpdateGenerateDNS updated the cache and generate selector updates as two
separate lock-holding sections. When updates happened concurrently, via
DNS lookups, DNS GC, or endpoint restores, the snapshot of data that
eventually updated the selectors could be out-of-order. This created an
A-B-A race for selectors that needed an update and those that needed to
be cleared.
These races have been observed on agent starts with pending pods but may
manifest between multiple pods making DNS updates or the DNS garbage
collector controller and any pod.
The code now holds the NameManager lock for the entirety of
UpdateGenerateDNS and ForceRegenerateDNS. This forces the update to
complete in its entirety before allowing another to modify the FQDN
cache or registered selectors.
The more aggressive locking, alone, causes a deadlock with the
config.updateSelectors callback (actually daemon.UpdateSelectors). These
calls syncronously update NameManager via RegisterForIdentityUpdates and
UnregisterForIdentityUpdates, taking the NameManager lock. This
deadlocks with UpdateGenerateDNS and ForceGenerateDNS, which are still
waiting to release the locks.
The deadlock is mitigated by serializing updates in UpdateGenerateDNS
and ForceGenerateDNS but keeping the ability to wait on them to
complete. This was previously implemented with a sync.WaitGroup but is
now simply an error channel (which carries errors that, previously,
would be returned immediately by UpdateGenerateDNS).
Note: This will lengthen the time DNS updates take internally,
ultimately also slowing the amount of time the DNS proxy must wait
before responding with a DNS response. A timeout of 50ms already exists
for this with warnings when it happens, so it should be apparent if it
does.

This change is

test-focus K8sFQDNTest Restart.*

Hit #10276, some cilium-agent not running issue (seen before in different forms), as well as some relevant-looking failures around DNS / FQDN timeouts:
15:54:50  RuntimeFQDNPolicies
15:54:50  /home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-Validated/runtime-gopath/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:385
15:54:50    Implements matchPattern: "*" [It]
15:54:50    /home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-Validated/runtime-gopath/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:420
15:54:50
15:54:50    FQDN policy didn't correctly update the policy selectors
[2020-03-05T23:54:50.216Z]   Expected
[2020-03-05T23:54:50.216Z]       <*errors.errorString | 0xc0004c62e0>: {
[2020-03-05T23:54:50.216Z]           s: "Timeout reached: ToFQDNs did not update any Selectors",
[2020-03-05T23:54:50.216Z]       }
[2020-03-05T23:54:50.216Z]   to be nil
15:54:50
15:54:50    /home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-Validated/runtime-gopath/src/github.com/cilium/cilium/test/runtime/fqdn.go:309

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

test-me-please

test-gke K8sFQDN.*

test-me-please

test-me-please

test-me-please

@raybejjani @jrajahalme I presume that #10501 will supersede this PR, and we will backport that one instead?

@joestringer yup! #10501 is the one. sorry, I'll close this now.


builder: Pass the DEBUG flag when using docker

When using docker, pass the DEBUG flag to trace the commands as well.
Signed-off-by: Li Yuxuan<EMAIL_ADDRESS>

Hi @darfux - Thanks for raising and good catch! :smile:
Travis is failing since our checkcommits tool is complaining there is no "Fixes #XXX" comment in you commit, and pointing you to:

https://github.com/kata-containers/community/blob/master/CONTRIBUTING.md#patch-format

The error from Travis shows:
ound 1 commit between commit 4915c36c386632e6ddeb73e883a21caf63f4e313 and branch master
ERROR: No "Fixes" found
ERROR: checkcommits failed. See the document below for help on formatting
commits for the project.
https://github.com/kata-containers/community/blob/master/CONTRIBUTING.md#patch-format

To resolve this issue, please can you:

Raise an issue in this repo for this work item.
Change your commit to include Fixes #XXX where XXX is the issue number (see https://github.com/kata-containers/community/blob/master/CONTRIBUTING.md#general-format).
git rebase -i master
git push -f
Put a comment on this PR when you're re-pushed so we get notified to re-review.

Thanks very much!

@jodh-intel Thanks, I have raised an issue and re-pushed :)

Great - Travis is happy so we just need some more review acks now.


Concept of 'moving a qubit'

According to @mlihc15 , their ion traps are divided into three areas: logic area, measurement area, and storage area (in that order in a line). Qubits are moved back and forth between the areas as needed. At the moment they can't re-order the qubits, so this means that if you want to measure qubit number 2 then you need to move qubits 3 through N out of the logic area, past the measurement area, and into the storage area. Then you can move qubit 2 into the measurement area, measure it, and move everything back into the logic area.
This poses a bit of a problem for cirq as-is, because it means the duration of an operation depends on a classical state associated with the qubit (its position in the trap). We don't have that kind of concept.
This issue is a place for suggesting ideas on how to make representing the shuttling around of qubits possible. Personally I see two ways to do it:

In addition to gates modifying the quantum state, they can also modify an associated classical state of the circuit. The Device is responsible for tracking this and recomputing it as needed. We have "move qubit" gates which update the classical information.

Instead of treating the ions as the qubits, we treat the locations the ions can be as the qubits. So we would have qubits L_0 through L_k for the logic area, M_0 through M_k for the measurement area, and S_0 through S_k for the storage area. We introduce operations for bulk-moving ions between the three regions. Note that it is crucial that simulators understand the bulk-moving operations, since otherwise the simulation cost will cube from 2^k to 2^(3k) since there are three times as many locations as qubits. Alternatively, we could do a rewrite pass on the circuit before passing it into the simulator and this rewrite would relabel qubits instead of moving them.

Personally I'm leaning towards (2) because a) it allows us to better represent the actual scheduling problem and b) having a better concept of "qubit was moved" that allows us to avoid unnecessary overhead in simulations seems good.

(2) seems better because the "physical" and "logical" qubit concept isn't restricted to ion traps. In particular, some of the code from the acquaintance module can be repurposed.

2 is definitely better.  Certainly there is a sense in which the move operations map down to real hardware commands.  Because I like gates and operations and not new operation classes, I would suggest a fix which is a ShuffleGate that corresponds to moving the qubits.  Simulators would need to be updated to support this without doing the permutation directly on the state (i.e. keep a map of qubit locations to qubit locations).  Hardware would, of course, have to do the actual moves.  And the duration depending on locations would be taken care of in Device classes.

I propose moving cirq.contrib.acquaintance.permutation out of contrib. The PermutationGate there is what I think @dabacon means by a ShuffleGate.
One change I would make is to remove the restriction (which IIRC only affects typing and not runtime) of LogicalIndex to int and cirq.Qid.

I think #4169 would address the performance implications of (2) here, at least for state vector and density matrix simulators.

Keeping this before-1.0 in case the final design requires backward-incompatible changes. cc @MichaelBroughton

I believe this is basically done. When in split_untangled_qubits mode (perhaps we should rename that) you could have 3k qubits, with each position being a qubit in the circuit, but the state vector would never exceed 2^k since only the k qubits would ever be entangled. Also swap is not an entangling operation; internally it just swaps the indices.
To get the final state vector without merging all 3k qubits, there's a TrialResult.get_state_containing_qubit you can use. This works with DensityMatrixSimulator and CliffordSimulator too.

I agree with @daxfohl's assessment - the process described in the top comment can now be expressed using a sequence of SWAPs on the intervening qubits and other operations on the target qubit(s), and (Cirq) simulators will handle it gracefully. Users would need to keep track of which qubits correspond to which locations, but I think that's consistent with the rest of Cirq's design.


Implement getBuiltinClass

This had a few hits in the CoreCLR test run. Not sure how many tests it
will actually fix (a lot of them were for TypedReference and friends),
but it certainly lets us bucket them better with a better error message.

Hi @MichalStrehovsky, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;

LGTM


(Android) textDecorationLine style doesn't update after removed in Text inside a Textinput

After applying textDecorationLine style into a Text component that is inside a TextInput component, removing the style doesn't remove the visual effect. This applies to underline and line-through or both.
<TextInput>
  <Text style={{textDecorationLine: 'line-through'}} />
</TextInput>

Environment
Environment:
  OS: macOS High Sierra 10.13.3
  Node: 9.3.0
  Yarn: 1.3.2
  npm: 5.6.0
  Watchman: 4.9.0
  Xcode: Xcode 9.2 Build version 9C40b
  Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
  react: 16.2.0 => 16.2.0
  react-native: 0.53.2 => 0.53.2

Expected Behavior
Removing the textDecorationLine style applied into the text should remove the text effect.
Actual Behavior
Apply textDecorationLine style, then remove it. The underline and line-through effects are still there.
Steps to Reproduce
https://snack.expo.io/Hkjuj2JYz

Open the expo
Press the buttons to toggle the styles to see the issue

Environment:
  OS: macOS High Sierra 10.13.3
  Node: 9.3.0
  Yarn: 1.3.2
  npm: 5.6.0
  Watchman: 4.9.0
  Xcode: Xcode 9.2 Build version 9C40b
  Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
  react: 16.2.0 => 16.2.0
  react-native: 0.54 => 0.54.0

Tested in latest stable release, still it can be repro'd.

@react-native-bot could you update the labels? thanks!


Error running inference

I just followed the steps for Usage, but get this error when running this command. How to solve it?

python3 tools/test.py configs/changer/changer_ex_r18_512x512_40k_levircd.py  changer_r18_levir_workdir/latest.pth --show-dir tmp_infer

Traceback (most recent call last):
  File "/home/user/.local/lib/python3.10/site-packages/mmengine/registry/build_functions.py", line 122, in build_from_cfg
    obj = obj_cls(**args)  # type: ignore
  File "/mnt/d/Userdata/user/Downloads/open-cd/opencd/datasets/levir_cd.py", line 18, in __init__
    super().__init__(
  File "/mnt/d/Userdata/user/Downloads/open-cd/opencd/datasets/basecddataset.py", line 141, in __init__
    self.full_init()
  File "/home/user/.local/lib/python3.10/site-packages/mmengine/dataset/base_dataset.py", line 296, in full_init
    self.data_list = self.load_data_list()
  File "/mnt/d/Userdata/user/Downloads/open-cd/opencd/datasets/basecddataset.py", line 269, in load_data_list
    assert sorted(list(file_list_from)) == sorted(list(file_list_to)), \
  File "/home/user/.local/lib/python3.10/site-packages/mmengine/fileio/io.py", line 760, in list_dir_or_file
    yield from backend.list_dir_or_file(dir_path, list_dir, list_file, suffix,
  File "/home/user/.local/lib/python3.10/site-packages/mmengine/fileio/backends/local_backend.py", line 527, in _list_dir_or_file
    for entry in os.scandir(dir_path):
FileNotFoundError: [Errno 2] No such file or directory: 'data/LEVIR-CD/test/A'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/.local/lib/python3.10/site-packages/mmengine/registry/build_functions.py", line 122, in build_from_cfg
    obj = obj_cls(**args)  # type: ignore
  File "/home/user/.local/lib/python3.10/site-packages/mmengine/runner/loops.py", line 410, in __init__
    super().__init__(runner, dataloader)
  File "/home/user/.local/lib/python3.10/site-packages/mmengine/runner/base_loop.py", line 26, in __init__
    self.dataloader = runner.build_dataloader(
  File "/home/user/.local/lib/python3.10/site-packages/mmengine/runner/runner.py", line 1351, in build_dataloader
    dataset = DATASETS.build(dataset_cfg)
  File "/home/user/.local/lib/python3.10/site-packages/mmengine/registry/registry.py", line 570, in build
    return self.build_func(cfg, *args, **kwargs, registry=self)
  File "/home/user/.local/lib/python3.10/site-packages/mmengine/registry/build_functions.py", line 144, in build_from_cfg
    raise type(e)(
FileNotFoundError: class `LEVIR_CD_Dataset` in opencd/datasets/levir_cd.py: [Errno 2] No such file or directory: 'data/LEVIR-CD/test/A'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/mnt/d/Userdata/user/Downloads/open-cd/tools/test.py", line 114, in <module>
    main()
  File "/mnt/d/Userdata/user/Downloads/open-cd/tools/test.py", line 110, in main
    runner.test()
  File "/home/user/.local/lib/python3.10/site-packages/mmengine/runner/runner.py", line 1774, in test
    self._test_loop = self.build_test_loop(self._test_loop)  # type: ignore
  File "/home/user/.local/lib/python3.10/site-packages/mmengine/runner/runner.py", line 1577, in build_test_loop
    loop = LOOPS.build(
  File "/home/user/.local/lib/python3.10/site-packages/mmengine/registry/registry.py", line 570, in build
    return self.build_func(cfg, *args, **kwargs, registry=self)
  File "/home/user/.local/lib/python3.10/site-packages/mmengine/registry/build_functions.py", line 144, in build_from_cfg
    raise type(e)(
FileNotFoundError: class `TestLoop` in mmengine/runner/loops.py: class `LEVIR_CD_Dataset` in opencd/datasets/levir_cd.py: [Errno 2] No such file or directory: 'data/LEVIR-CD/test/A'

Solution: We have to download training data as the models are running on training/test data. They need to go under /data folder.


Timesheet - 22/04/2021 - Bojan Ilijevski

Task 1
Managing social media
Answering private messages on Instagram and Facebook
Following/Unfollowing people on social media
Time Spent
1 hour

Task 2
Posted job opening for UX Designer on all social media
Proof of Work

https://www.reddit.com/r/thenewboston/comments/mw8osy/were_looking_for_a_creative_and_motivated_ux/
https://twitter.com/thenewboston_og/status/1385268880474611718
https://www.facebook.com/thenewbostoncoin/photos/a.465171006850699/4290797087621386/
https://www.instagram.com/p/CN-imUEgLn9/

Time Spent
0.5 hours

Task 3
Marketing meeting
Proof of Work

https://docs.google.com/document/d/1SEqm_ylYhHikRrDgpfILhK3UBQd8AlFFwPCgDjeJbio/edit

Time Spent
0.5 hours

Total Time Spent
2 hours
Account Number
b1b1e90107d804e5317c8527129ceaededdcb162a6737112b88712742a08bb72

Approved

Approved


Nicer SQL errors when permissions can't be obtained

Instead of spamming the console with errors most users don't understand, create a storage/MySQL/(SQL?) permission check and print errors or warnings and gracefully shut down the plugin or prevent it from loading.
This would also prevent tables from being partially created and even more obscure errors occurring later.
Related: #71

New version (6.0.0) addresses this with ebeans.


HELM: add options for configuring image

I'm standardising the image options across all our charts (https://github.com/cert-manager/cert-manager/issues/6329).

/retest

/kind cleanup

/approve


Bug when comparing untagged versions

The error can be seen in this build log.
When an update happens between 2 commits and some of them happen to be formed as valid PEP 440 versions, they get compared and can actually be considered a downgrade. That'd be a false positive.
Gotta fix that.

Hey @Yajo, the logs have expired, could you provide a new example and hardpost it here :sweat_smile: ?

As for commit sha identified as a PEP440 version, I guess it happens when the commit sha is only composed of digits.
I never saw a version like 57339573 or 2039958, so maybe there's an easy way to fix this by checking the version length (in this specific case of all-digit version of course).

the logs have expired, could you provide a new example and hardpost it here 😅 ?

😬 I didn't know that happens. I'll do it the next time I hit it.
Regarding the issue, I see that, if you pip-install any project from git, pip converts any commit into a valid PEP440 version. I'd like to find out how it works and reuse that if possible.

I was trying to solve this one, but I guess I need somebody to answer https://stackoverflow.com/q/68234174/1468388.

There's an answer now :slightly_smiling_face:
So you can look into poetry-dynamic-versioning. PDM also has code to build such PEP440 versions in a git repository.
I'll try to give a concrete example later.

Somebody answered something useful. It turns out https://github.com/mtkennerly/dunamai is the library that handles that part. This might work.

https://github.com/mtkennerly/dunamai/issues/20 would answer the last part of my question.


System crashes with kernel version 4.0.x

I am using Debian sid and the kernel version in Debian sid is 4.0.2 amd64.
When I try to run create_ap wlan0 eth0 AP password, the system crashes. I cannot do anything to it. I cannot login through ssh or tty.
So, I reboot and use the 3.16.7 kernel and everything is OK.
Before crash, the last commands run by create_ap.sh were:
++ cat /proc/sys/kernel/random/entropy_avail
+ [[ 1723 -lt 1000 ]]
+ mutex_unlock
+ local counter_mutex_fd
+ local counter
++ get_avail_fd
++ local x
++++ ulimit -n
+++ seq 1 65536

Personally I don't think that create_ap is the issue. It probably the driver of your wifi adapter.
Anyway, checkout at cafef2e and try again.

Also, the above logs are from the haveged watchdog that I have in the script which run the same commands every 2 seconds. So also try:
bash -x ./create_ap --no-haveged wlan0 eth0 AP password

I checkout at cafef2e and try bash -x ./create_ap --no-haveged wlan0 eth0 AP password, but it still does not work.
I also test it on the latest Fedora 22 with kernel 4.0 and the same issue occurs. Maybe the driver of RTL8188EE is the issue.

I use ArchLinux with kernel 4.0 and I don't have any crash. Can you show me the last command that create_ap executes (use --no-haveged)?

The create_ap is at cafef2e :
bash -x ./create_ap --no-haveged wlan0 eth0 AP password
+ modprobe nf_nat_pptp
+ [[ nat != \b\r\i\d\g\e ]]
+ iptables -I INPUT -p tcp -m tcp --dport 53 -j ACCEPT
+ iptables -I INPUT -p udp -m udp --dport 53 -j ACCEPT
+ iptables -I INPUT -p udp -m udp --dport 67 -j ACCEPT
+ dnsmasq -C /tmp/create_ap.wlan0.conf.lMmq9Iyw/dnsmasq.conf -x  /tmp/create_ap.wlan0.conf.lMmq9Iyw/dnsmasq.pid
+ echo 'hostapd command-lineinterface: hostapd_cli -p /tmp/create_ap.wlan0.conf.lMmq9Iyw/hostapd.conf'
+ trap clean_exit SIGINT
+ trap clean_exit SIGUSR1
+ echo 2599
+ hostapd /tmp/create_ap.wlan0.conf.lMmq9Iyw/hostapd.conf
+ wait 2599

Thanks. The above shows that the bug is probably in the driver since hostapd is using it.
You can try Realtek drivers that are not in the kernel[1] and follow my howto[2]. Just keep in mind that in my howto Install driver section is about rtl8192cu driver and not rtl8188eu, so check the readme of rtl8188eu driver.
Another solution is to use another adapter with stable drivers. From my experience Realtek adapters are not stable when it comes to AP.
[1] https://github.com/lwfinger/rtl8188eu
[2] https://github.com/oblique/create_ap/blob/master/howto/realtek.md
I'm closing the issue since the bug in not in create_ap.


Call to a member function api()

I am trying to create a order outside the app. I want to create an api to make order from shopify frontend.
`

all();
	      //let we have all order data in $order
	      $order = array("order"=>$line_items);
	      $shop = ShopifyApp::shop();
	        $domain =  $shop->shopify_domain;
	        $accesstoken = $shop->shopify_token;

	        $api = new BasicShopifyAPI();
	        $api->setVersion('2020-01'); // "YYYY-MM" or "unstable"
	        $api->setShop($domain);
	        $api->setAccessToken($accesstoken);
	        $shop_data = $shop->api()->rest('POST', '/admin/api/2020-07/orders.json', $order);
		 return json_encode($shop_data);

	  }
	  }

`

Please use the template and format code properly.

I want to create an order from shopify frontend.
I want to use app as an API . Is it possible ? If yes, how ??


If "dad.curCharacter" is same as "gf.curCharacter"

Basically, ya know-how in the tutorial gf is technically the dad? Well, this makes it (I hope) so it can work with anyone other than just gf.

change the "dad.curCharacter.startsWith(gf.curCharacter)" to "dad.curCharacter == gf.curCharacter"
for every if statement.

That would definitely work better.

:(


Implement Smt struct (replacement to TieredSmt)

Builds on #245

@bobbinth addressed PR comments, and fixed SmtLeaf as discussed in a880c88


Check for "WIP" commits before pushing

Possibly offer a warning suggesting a rebase to squash such commits.

I like it!

Could also check if previous commit was WIP and suggest --amend


Updated the validations.py script

Fixed the issue with valiadation
Fixed the issue that allowed usernames starting with dots and underscores to be validated ad true.
Added an extra if statement to catch that case.
Fixes #1

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

@googlebot I signed it!

@googlebot I fixed it


Correctly serialize STU3 ConceptMap and ActivityDefinition element order

This PR fixes #634.
The cause was the paths in the ChildOrder annotation on these resources used '[x]'. However, the forcedOrder logic in BaseRuntimeElementCompositeDefinition.scanCompositeElementForChildren() method didn't account for the '[x]'. This leads to e.g. in ConceptMap, the sourceUri/sourceReference element being written first before url element, leading to a validation failure later on if the serialized resource is validated.
I did a scan of the code and it seems like ChildOrder annotation is only used in the STU3 model classes. Moreover, it seems only ConceptMap and ActivityDefinition resources are the ones who have paths that have '[x]'.
Since the fix was made to generated code, I think a more permanent fix to this would be to update the FHIR code generator not to use '[x]' in ChildOrder annotation paths.

Coverage decreased (-0.003%) to 76.905% when pulling d26fba161eedecb1d5224547ea60f8e2adb1d15c on CarthageKing:bugfix-issue634 into 294d080bd3e297e6c8d78746e770c5b1bd5483b2 on jamesagnew:master.

Ah this is interesting. Will require a modification to the source generator too, which shouldn't be too hard. I'm going to leave this open until that fix is made, just to track that too.

(Incidentally I can take care of that part.. it's easy enough, especially since you've supplied a unit test)


Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.

I can not run my application on the windows platform.
Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.
Error launching application on Windows.

flutter doctor -v
$ flutter doctor -v
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
[√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.17763.2686], locale zh-CN)
    • Flutter version 2.10.4 at D:\SDK\fvm\current
    • Upstream repository https://github.com/flutter/flutter.git
    • FLUTTER_GIT_URL = https://github.com/flutter/flutter.git
    • Framework revision c860cba910 (7 days ago), 2022-03-25 00:23:12 -0500
    • Engine revision 57d3bac3dd
    • Dart version 2.16.2
    • DevTools version 2.9.2
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at D:\SDK\Android
    • Platform android-32, build-tools 30.0.3
    • ANDROID_HOME = D:\SDK\Android
    • ANDROID_SDK_ROOT = D:\SDK\Android
    • Java binary at: C:\Program Files\Java\jdk1.8.0_251\bin\java
    • Java version Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • CHROME_EXECUTABLE = C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.11)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.11.32228.343
    • Windows 10 SDK version 10.0.17763.0

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

[√] IntelliJ IDEA Community Edition (version 2021.2)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.2.3
    • Flutter plugin version 61.2.4
    • Dart plugin version 212.5486

[√] VS Code (version 1.55.2)
    • VS Code at C:\Users\Zhanghuifeng\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.15.0

[!] Proxy Configuration
    • HTTP_PROXY is set
    • NO_PROXY is localhost,<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>,<IP_ADDRESS>,192.168.*,<IP_ADDRESS>,169.254.*
    • NO_PROXY contains localhost
    ! NO_PROXY does not contain ::1
    • NO_PROXY contains <IP_ADDRESS>

[√] Connected device (4 available)
    • rk3288 (mobile)   • EOLWZ9X3CK • android-arm    • Android 8.1.0 (API 27)
    • Windows (desktop) • windows    • windows-x64    • Microsoft Windows [Version 10.0.17763.2686]
    • Chrome (web)      • chrome     • web-javascript • unknown
    • Edge (web)        • edge       • web-javascript • Microsoft Edge 99.0.1150.55

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

! Doctor found issues in 2 categories.

flutter run -d windows
$ flutter run -d windows
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
Launching lib\main.dart on Windows in debug mode...
Building Windows application...
Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.
Error launching application on Windows.

flutter run -d windows -v
$ flutter run -d windows -v
[  +56 ms] executing: [D:\SDK\fvm\current/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +51 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] c860cba910319332564e1e9d470a17074c1f2dfd
[        ] executing: [D:\SDK\fvm\current/] git tag --points-at c860cba910319332564e1e9d470a17074c1f2dfd
[  +36 ms] Exit code 0 from: git tag --points-at c860cba910319332564e1e9d470a17074c1f2dfd
[        ] 2.10.4
[   +6 ms] executing: [D:\SDK\fvm\current/] git rev-parse --abbrev-ref --symbolic @{u}
[  +25 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [D:\SDK\fvm\current/] git ls-remote --get-url origin
[  +23 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +81 ms] executing: [D:\SDK\fvm\current/] git rev-parse --abbrev-ref HEAD
[  +26 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +55 ms] 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.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] 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.
[   +4 ms] Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
[  +48 ms] 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.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] 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.
[ +104 ms] Skipping pub get: version match.
[  +10 ms] Found plugin bitsdojo_window at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\bitsdojo_window-0.1.1+1\
[   +3 ms] Found plugin bitsdojo_window_linux at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\bitsdojo_window_linux-0.1.1\
[   +1 ms] Found plugin bitsdojo_window_macos at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\bitsdojo_window_macos-0.1.0\
[   +2 ms] Found plugin bitsdojo_window_windows at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\bitsdojo_window_windows-0.1.0\
[  +16 ms] Found plugin package_info_plus at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\package_info_plus-1.4.0\
[   +2 ms] Found plugin package_info_plus_macos at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\package_info_plus_macos-1.3.0\
[   +1 ms] Found plugin package_info_plus_web at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\package_info_plus_web-1.0.4\
[   +2 ms] Found plugin path_provider at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider-2.0.9\
[   +1 ms] Found plugin path_provider_android at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_android-2.0.12\
[   +1 ms] Found plugin path_provider_ios at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_ios-2.0.8\
[   +1 ms] Found plugin path_provider_linux at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_linux-2.1.5\
[   +1 ms] Found plugin path_provider_macos at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_macos-2.0.5\
[   +2 ms] Found plugin path_provider_windows at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_windows-2.0.5\
[  +61 ms] Found plugin bitsdojo_window at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\bitsdojo_window-0.1.1+1\
[        ] Found plugin bitsdojo_window_linux at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\bitsdojo_window_linux-0.1.1\
[        ] Found plugin bitsdojo_window_macos at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\bitsdojo_window_macos-0.1.0\
[   +1 ms] Found plugin bitsdojo_window_windows at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\bitsdojo_window_windows-0.1.0\
[   +9 ms] Found plugin package_info_plus at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\package_info_plus-1.4.0\
[   +1 ms] Found plugin package_info_plus_macos at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\package_info_plus_macos-1.3.0\
[   +2 ms] Found plugin package_info_plus_web at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\package_info_plus_web-1.0.4\
[   +1 ms] Found plugin path_provider at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider-2.0.9\
[        ] Found plugin path_provider_android at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_android-2.0.12\
[   +1 ms] Found plugin path_provider_ios at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_ios-2.0.8\
[        ] Found plugin path_provider_linux at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_linux-2.1.5\
[        ] Found plugin path_provider_macos at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_macos-2.0.5\
[   +1 ms] Found plugin path_provider_windows at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_windows-2.0.5\
[  +14 ms] Generating D:\workspace\proitav\git\touch10\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +77 ms] Initializing file store
[   +9 ms] Skipping target: gen_localizations
[   +4 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: D:\workspace\proitav\git\touch10\.dart_tool\package_config_subset,D:\workspace\proitav\git\touch10\.dart_tool\flutter_build\generated_main.dart}
[   +6 ms] Found plugin bitsdojo_window at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\bitsdojo_window-0.1.1+1\
[   +1 ms] Found plugin bitsdojo_window_linux at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\bitsdojo_window_linux-0.1.1\
[        ] Found plugin bitsdojo_window_macos at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\bitsdojo_window_macos-0.1.0\
[   +1 ms] Found plugin bitsdojo_window_windows at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\bitsdojo_window_windows-0.1.0\
[   +7 ms] Found plugin package_info_plus at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\package_info_plus-1.4.0\
[   +1 ms] Found plugin package_info_plus_macos at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\package_info_plus_macos-1.3.0\
[   +1 ms] Found plugin package_info_plus_web at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\package_info_plus_web-1.0.4\
[   +1 ms] Found plugin path_provider at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider-2.0.9\
[        ] Found plugin path_provider_android at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_android-2.0.12\
[        ] Found plugin path_provider_ios at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_ios-2.0.8\
[        ] Found plugin path_provider_linux at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_linux-2.1.5\
[        ] Found plugin path_provider_macos at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_macos-2.0.5\
[   +1 ms] Found plugin path_provider_windows at C:\Users\Zhanghuifeng\AppData\Local\Pub\Cache\hosted\pub.flutter-io.cn\path_provider_windows-2.0.5\
[  +12 ms] gen_dart_plugin_registrant: Complete
[   +1 ms] Skipping target: _composite
[   +1 ms] complete
[   +4 ms] Launching lib\main.dart on Windows in debug mode...
[   +4 ms] D:\SDK\fvm\current\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev D:\SDK\fvm\current\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root D:\SDK\fvm\current\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill C:\Users\ZHANGH~1\AppData\Local\Temp\flutter_tools.bb2f2419\flutter_tool.7e60d39a\app.dill --packages D:\workspace\proitav\git\touch10\.dart_tool\package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build\c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy
[  +24 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products * -utf8 -latest -version 16 -requires Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[  +34 ms] Exit code 0 from: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products * -utf8 -latest -version 16 -requires Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[        ] [
             {
               "instanceId": "0d13811a",
               "installDate": "2021-02-03T01:25:07Z",
               "installationName": "VisualStudio/16.11.11+32228.343",
               "installationPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community",
               "installationVersion": "16.11.32228.343",
               "productId": "Microsoft.VisualStudio.Product.Community",
               "productPath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\IDE\\devenv.exe",
               "state":<PHONE_NUMBER>,
               "isComplete": true,
               "isLaunchable": true,
               "isPrerelease": false,
               "isRebootRequired": false,
               "displayName": "Visual Studio Community 2019",
               "description": "功能强大的 IDE，供学生、开放源代码参与者和个人免费使用",
               "channelId": "VisualStudio.16.Release",
               "channelUri": "https://aka.ms/vs/16/release/channel",
               "enginePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\resources\\app\\ServiceHub\\Services\\Microsoft.VisualStudio.Setup.Service",
               "releaseNotes": "https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes-v16.11#16.11.11",
               "thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=660909",
               "updateDate": "2022-04-01T06:19:06.8973888Z",
               "catalog": {
                 "buildBranch": "d16.11",
                 "buildVersion": "16.11.32228.343",
                 "id": "VisualStudio/16.11.11+32228.343",
                 "localBuild": "build-lab",
                 "manifestName": "VisualStudio",
                 "manifestType": "installer",
                 "productDisplayVersion": "16.11.11",
                 "productLine": "Dev16",
                 "productLineVersion": "2019",
                 "productMilestone": "RTW",
                 "productMilestoneIsPreRelease": "False",
                 "productName": "Visual Studio",
                 "productPatchVersion": "11",
                 "productPreReleaseMilestoneSuffix": "1.0",
                 "productSemanticVersion": "16.11.11+32228.343",
                 "requiredEngineVersion": "<IP_ADDRESS>712"
               },
               "properties": {
                 "campaignId": "44450884.1594276487",
                 "channelManifestId": "VisualStudio.16.Release/16.11.11+32228.343",
                 "nickname": "",
                 "setupEngineFilePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\vs_installershell.exe"
               }
             }
           ]
[   +2 ms] Building Windows application...
[  +28 ms] <- compile file:///D:/workspace/proitav/git/touch10/.dart_tool/flutter_build/generated_main.dart
[   +1 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -S D:\workspace\proitav\git\touch10\windows -B build\windows -G Visual Studio 16 2019
[ +107 ms] -- Configuring done
[  +71 ms] -- Generating done
[   +5 ms] -- Build files have been written to: D:/workspace/proitav/git/touch10/build/windows
[   +8 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe --build build\windows --config Debug --target INSTALL --verbose
[ +151 ms] 用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.11.2+f32259642
[        ] 版权所有(C) Microsoft Corporation。保留所有权利。
[  +54 ms] 生成启动时间为 2022/4/1 15:06:48。
[ +225 ms] 节点 1 上的项目“D:\workspace\proitav\git\touch10\build\windows\INSTALL.vcxproj”(默认目标)。
[        ] 项目“D:\workspace\proitav\git\touch10\build\windows\INSTALL.vcxproj”(1)正在节点 1 上生成“D:\workspace\proitav\git\touch10\build\windows\ZERO_CHECK.vcxproj”(2) (默认目标)。
[        ] InitializeBuildStatus:
[        ]   正在创建“x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild”，因为已指定“AlwaysCreate”。
[  +28 ms] CustomBuild:
[        ]   所有输出均为最新。
[  +26 ms] FinalizeBuildStatus:
[        ]   正在删除文件“x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild”。
[        ]   正在对“x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate”执行 Touch 任务。
[        ] 已完成生成项目“D:\workspace\proitav\git\touch10\build\windows\ZERO_CHECK.vcxproj”(默认目标)的操作。
[  +92 ms] 项目“D:\workspace\proitav\git\touch10\build\windows\INSTALL.vcxproj”(1)正在节点 1 上生成“D:\workspace\proitav\git\touch10\build\windows\ALL_BUILD.vcxproj”(3) (默认目标)。
[        ] 项目“D:\workspace\proitav\git\touch10\build\windows\ALL_BUILD.vcxproj”(3)正在节点 1 上生成“D:\workspace\proitav\git\touch10\build\windows\plugins\bitsdojo_window_windows\bitsdojo_window_windows_plugin.vcxproj”(4) (默认目标)。
[        ] 项目“D:\workspace\proitav\git\touch10\build\windows\plugins\bitsdojo_window_windows\bitsdojo_window_windows_plugin.vcxproj”(4)正在节点 1 上生成“D:\workspace\proitav\git\touch10\build\windows\flutter\flutter_assemble.vcxproj”(5) (默认目标)。
[        ] InitializeBuildStatus:
[        ]   正在创建“x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild”，因为已指定“AlwaysCreate”。
[  +36 ms] CustomBuild:
[        ]   “‘D:\workspace\proitav\git\touch10\build\windows\CMakeFiles\9317e7fdd9bd0a0a7dc11306d6e76bc5\flutter_assemble.rule’的生成依赖于由‘D:\workspace\proitav\git\touch10\build\windows\CMakeFiles\bf770a288a13d1e705b30778469f6228\flutter_windows.dll.rule’的生成所产生的‘D:\WORKSPACE\PROITAV\GIT\TOUCH10\WINDOWS\FLUTTER\EPHEMERAL\FLUTTER_WINDOWS.DLL’。无法并行生成项。”
[  +60 ms]   Generating D:/workspace/proitav/git/touch10/windows/flutter/ephemeral/flutter_windows.dll, D:/workspace/proitav/git/touch10/windows/flutter/ephemeral/flutter_export.h, D:/workspace/proitav/git/touch10/windows/flutter/ephemeral/flutter_windows.h, D:/workspace/proitav/git/touch10/windows/flutter/ephemeral/flutter_messenger.h, D:/workspace/proitav/git/touch10/windows/flutter/ephemeral/flutter_plugin_registrar.h, D:/workspace/proitav/git/touch10/windows/flutter/ephemeral/flutter_texture_registrar.h, D:/workspace/proitav/git/touch10/windows/flutter/ephemeral/cpp_client_wrapper/core_implementations.cc, D:/workspace/proitav/git/touch10/windows/flutter/ephemeral/cpp_client_wrapper/standard_codec.cc, D:/workspace/proitav/git/touch10/windows/flutter/ephemeral/cpp_client_wrapper/plugin_registrar.cc, D:/workspace/proitav/git/touch10/windows/flutter/ephemeral/cpp_client_wrapper/flutter_engine.cc, D:/workspace/proitav/git/touch10/windows/flutter/ephemeral/cpp_client_wrapper/flutter_view_controller.cc, _phony_
[ +921 ms]   [  +57 ms] executing: [D:\SDK\fvm\current/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +48 ms]   [  +66 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ]   [        ] c860cba910319332564e1e9d470a17074c1f2dfd
[        ]   [        ] executing: [D:\SDK\fvm\current/] git tag --points-at c860cba910319332564e1e9d470a17074c1f2dfd
[  +47 ms]   [  +47 ms] Exit code 0 from: git tag --points-at c860cba910319332564e1e9d470a17074c1f2dfd
[        ]   [        ] 2.10.4
[   +8 ms]   [   +6 ms] executing: [D:\SDK\fvm\current/] git rev-parse --abbrev-ref --symbolic @{u}
[  +30 ms]   [  +32 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ]   [        ] origin/stable
[        ]   [        ] executing: [D:\SDK\fvm\current/] git ls-remote --get-url origin
[  +30 ms]   [  +30 ms] Exit code 0 from: git ls-remote --get-url origin
[        ]   [        ] https://github.com/flutter/flutter.git
[  +48 ms]   [  +48 ms] executing: [D:\SDK\fvm\current/] git rev-parse --abbrev-ref HEAD
[  +34 ms]   [  +33 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ]   [        ] stable
[  +50 ms]   [  +51 ms] 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.
[        ]   [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms]   [   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ]   [        ] 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.
[   +4 ms]   [   +4 ms] Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
[  +85 ms]   [  +85 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'GradleWrapper' 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.
[        ]   [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[   +2 ms]   [   +3 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ]   [        ] 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.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[  +74 ms]   [  +75 ms] Initializing file store
[  +15 ms]   [  +15 ms] Done initializing file store
[  +40 ms]   [  +40 ms] Skipping target: gen_localizations
[  +11 ms]   [  +11 ms] Skipping target: gen_dart_plugin_registrant
[+2568 ms]   [+2569 ms] Skipping target: unpack_windows
[ +612 ms]   [ +612 ms] Skipping target: kernel_snapshot
[ +297 ms]   [ +297 ms] Skipping target: debug_bundle_windows_assets
[        ]   [        ] Persisting file store
[  +10 ms]   [  +10 ms] Done persisting file store
[   +5 ms]   [   +5 ms] build succeeded.
[   +7 ms]   [   +7 ms] "flutter assemble" took 3,761ms.
[ +256 ms]   [ +256 ms] ensureAnalyticsSent: 253ms
[        ]   [        ] Running shutdown hooks
[        ]   [        ] Shutdown hooks complete
[        ]   [        ] exiting with code 0
[  +63 ms] FinalizeBuildStatus:
[        ]   正在删除文件“x64\Debug\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild”。
[        ]   正在对“x64\Debug\flutter_assemble\flutter_assemble.tlog\flutter_assemble.lastbuildstate”执行 Touch 任务。
[        ] 已完成生成项目“D:\workspace\proitav\git\touch10\build\windows\flutter\flutter_assemble.vcxproj”(默认目标)的操作。
[  +35 ms] 项目“D:\workspace\proitav\git\touch10\build\windows\plugins\bitsdojo_window_windows\bitsdojo_window_windows_plugin.vcxproj”(4)正在节点 1 上生成“D:\workspace\proitav\git\touch10\build\windows\flutter\flutter_wrapper_plugin.vcxproj”(6) (默认目标)。
[        ] InitializeBuildStatus:
[        ]   正在创建“flutter_wrapper_plugin.dir\Debug\flutter_.540D076A.tlog\unsuccessfulbuild”，因为已指定“AlwaysCreate”。
[   +1 ms] CustomBuild:
[        ]   所有输出均为最新。
[  +35 ms] ClCompile:
[        ]   所有输出均为最新。
[  +17 ms] Lib:
[        ]   所有输出均为最新。
[        ]   flutter_wrapper_plugin.vcxproj -> D:\workspace\proitav\git\touch10\build\windows\flutter\Debug\flutter_wrapper_plugin.lib
[  +15 ms] FinalizeBuildStatus:
[        ]   正在删除文件“flutter_wrapper_plugin.dir\Debug\flutter_.540D076A.tlog\unsuccessfulbuild”。
[        ]   正在对“flutter_wrapper_plugin.dir\Debug\flutter_.540D076A.tlog\flutter_wrapper_plugin.lastbuildstate”执行 Touch 任务。
[        ] 已完成生成项目“D:\workspace\proitav\git\touch10\build\windows\flutter\flutter_wrapper_plugin.vcxproj”(默认目标)的操作。
[   +5 ms] InitializeBuildStatus:
[        ]   正在创建“bitsdojo_window_windows_plugin.dir\Debug\bitsdojo.E88AAB62.tlog\unsuccessfulbuild”，因为已指定“AlwaysCreate”。
[   +1 ms] CustomBuild:
[        ]   所有输出均为最新。
[   +7 ms] ClCompile:
[        ]   所有输出均为最新。
[   +2 ms] Lib:
[        ]   所有输出均为最新。
[        ]   bitsdojo_window_windows_plugin.vcxproj -> D:\workspace\proitav\git\touch10\build\windows\plugins\bitsdojo_window_windows\Debug\bitsdojo_window_windows_plugin.lib
[   +4 ms] FinalizeBuildStatus:
[        ]   正在删除文件“bitsdojo_window_windows_plugin.dir\Debug\bitsdojo.E88AAB62.tlog\unsuccessfulbuild”。
[        ]   正在对“bitsdojo_window_windows_plugin.dir\Debug\bitsdojo.E88AAB62.tlog\bitsdojo_window_windows_plugin.lastbuildstate”执行 Touch 任务。
[        ] 已完成生成项目“D:\workspace\proitav\git\touch10\build\windows\plugins\bitsdojo_window_windows\bitsdojo_window_windows_plugin.vcxproj”(默认目标)的操作。
[  +31 ms] 项目“D:\workspace\proitav\git\touch10\build\windows\ALL_BUILD.vcxproj”(3)正在节点 1 上生成“D:\workspace\proitav\git\touch10\build\windows\flutter\flutter_wrapper_app.vcxproj”(7) (默认目标)。
[        ] InitializeBuildStatus:
[        ]   正在创建“flutter_wrapper_app.dir\Debug\flutter_.5C8B1B4E.tlog\unsuccessfulbuild”，因为已指定“AlwaysCreate”。
[   +1 ms] CustomBuild:
[        ]   所有输出均为最新。
[   +6 ms] ClCompile:
[        ]   所有输出均为最新。
[   +2 ms] Lib:
[        ]   所有输出均为最新。
[        ]   flutter_wrapper_app.vcxproj -> D:\workspace\proitav\git\touch10\build\windows\flutter\Debug\flutter_wrapper_app.lib
[   +4 ms] FinalizeBuildStatus:
[        ]   正在删除文件“flutter_wrapper_app.dir\Debug\flutter_.5C8B1B4E.tlog\unsuccessfulbuild”。
[        ]   正在对“flutter_wrapper_app.dir\Debug\flutter_.5C8B1B4E.tlog\flutter_wrapper_app.lastbuildstate”执行 Touch 任务。
[        ] 已完成生成项目“D:\workspace\proitav\git\touch10\build\windows\flutter\flutter_wrapper_app.vcxproj”(默认目标)的操作。
[  +29 ms] 项目“D:\workspace\proitav\git\touch10\build\windows\ALL_BUILD.vcxproj”(3)正在节点 1 上生成“D:\workspace\proitav\git\touch10\build\windows\runner\touch10.vcxproj”(8) (默认目标)。
[        ] InitializeBuildStatus:
[        ]   正在创建“touch10.dir\Debug\touch10.tlog\unsuccessfulbuild”，因为已指定“AlwaysCreate”。
[   +1 ms] CustomBuild:
[        ]   所有输出均为最新。
[  +29 ms] ClCompile:
[        ]   C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\CL.exe /c /ID:\workspace\proitav\git\touch10\windows /ID:\workspace\proitav\git\touch10\windows\flutter\ephemeral /ID:\workspace\proitav\git\touch10\windows\flutter\ephemeral\cpp_client_wrapper\include /ID:\workspace\proitav\git\touch10\windows\flutter\ephemeral\.plugin_symlinks\bitsdojo_window_windows\windows\include /Zi /nologo /W4 /WX /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D _HAS_EXCEPTIONS=0 /D _DEBUG /D NOMINMAX /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Debug\"" /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++17 /Fo"touch10.dir\Debug\\" /Fd"touch10.dir\Debug\vc142.pdb" /external:W4 /Gd /TP /wd4100 /errorReport:queue D:\workspace\proitav\git\touch10\windows\flutter\generated_plugin_registrant.cc D:\workspace\proitav\git\touch10\windows\runner\flutter_window.cpp
[  +64 ms]   generated_plugin_registrant.cc
[ +347 ms]   flutter_window.cpp
[ +642 ms]   正在生成代码...
[  +67 ms] ResourceCompile:
[        ]   所有输出均为最新。
[  +25 ms] Link:
[        ]   C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:"D:\workspace\proitav\git\touch10\build\windows\runner\Debug\touch10.exe" /INCREMENTAL /ILK:"touch10.dir\Debug\touch10.ilk" /NOLOGO ..\flutter\Debug\flutter_wrapper_app.lib ..\plugins\bitsdojo_window_windows\Debug\bitsdojo_window_windows_plugin.lib ..\flutter\Debug\flutter_wrapper_plugin.lib D:\workspace\proitav\git\touch10\windows\flutter\ephemeral\flutter_windows.dll.lib Dwmapi.lib Comctl32.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /manifestinput:D:\workspace\proitav\git\touch10\windows\runner\runner.exe.manifest /DEBUG /PDB:"D:/workspace/proitav/git/touch10/build/windows/runner/Debug/touch10.pdb" /SUBSYSTEM:WINDOWS /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/workspace/proitav/git/touch10/build/windows/runner/Debug/touch10.lib" /MACHINE:X64  /machine:x64 touch10.dir\Debug\Runner.res
[        ]   touch10.dir\Debug\flutter_window.obj
[        ]   touch10.dir\Debug\main.obj
[        ]   touch10.dir\Debug\utils.obj
[        ]   touch10.dir\Debug\win32_window.obj
[        ]   touch10.dir\Debug\generated_plugin_registrant.obj
[ +280 ms]   touch10.vcxproj -> D:\workspace\proitav\git\touch10\build\windows\runner\Debug\touch10.exe
[   +6 ms] FinalizeBuildStatus:
[        ]   正在删除文件“touch10.dir\Debug\touch10.tlog\unsuccessfulbuild”。
[        ]   正在对“touch10.dir\Debug\touch10.tlog\touch10.lastbuildstate”执行 Touch 任务。
[        ] 已完成生成项目“D:\workspace\proitav\git\touch10\build\windows\runner\touch10.vcxproj”(默认目标)的操作。
[   +6 ms] InitializeBuildStatus:
[        ]   正在创建“x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild”，因为已指定“AlwaysCreate”。
[   +2 ms] CustomBuild:
[        ]   所有输出均为最新。
[   +6 ms] FinalizeBuildStatus:
[        ]   正在删除文件“x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild”。
[        ]   正在对“x64\Debug\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate”执行 Touch 任务。
[        ] 已完成生成项目“D:\workspace\proitav\git\touch10\build\windows\ALL_BUILD.vcxproj”(默认目标)的操作。
[   +8 ms] InitializeBuildStatus:
[        ]   正在创建“x64\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild”，因为已指定“AlwaysCreate”。
[  +53 ms] PostBuildEvent:
[        ]   setlocal
[        ]   "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -DBUILD_TYPE=Debug -P cmake_install.cmake
[        ]   if %errorlevel% neq 0 goto :cmEnd
[        ]   :cmEnd
[        ]   endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
[        ]   :cmErrorLevel
[        ]   exit /b %1
[        ]   :cmDone
[        ]   if %errorlevel% neq 0 goto :VCEnd
[        ]   :VCEnd
[  +88 ms]   -- Install configuration: "Debug"
[   +1 ms]   -- Up-to-date: D:/workspace/proitav/git/touch10/build/windows/runner/Debug/data/icudtl.dat
[        ]   -- Up-to-date: D:/workspace/proitav/git/touch10/build/windows/runner/Debug/flutter_windows.dll
[        ]   -- Up-to-date: D:/workspace/proitav/git/touch10/build/windows/runner/Debug/bitsdojo_window_windows_plugin.lib
[   +7 ms]   -- Installing: D:/workspace/proitav/git/touch10/build/windows/runner/Debug/data/flutter_assets
[        ]   -- Installing: D:/workspace/proitav/git/touch10/build/windows/runner/Debug/data/flutter_assets/AssetManifest.json
[        ]   -- Installing: D:/workspace/proitav/git/touch10/build/windows/runner/Debug/data/flutter_assets/FontManifest.json
[        ]   -- Installing: D:/workspace/proitav/git/touch10/build/windows/runner/Debug/data/flutter_assets/fonts
[        ]   -- Installing: D:/workspace/proitav/git/touch10/build/windows/runner/Debug/data/flutter_assets/fonts/MaterialIcons-Regular.otf
[   +4 ms]   -- Installing: D:/workspace/proitav/git/touch10/build/windows/runner/Debug/data/flutter_assets/kernel_blob.bin
[  +80 ms]   -- Installing: D:/workspace/proitav/git/touch10/build/windows/runner/Debug/data/flutter_assets/NOTICES.Z
[   +1 ms]   -- Installing: D:/workspace/proitav/git/touch10/build/windows/runner/Debug/data/flutter_assets/packages
[        ]   -- Installing: D:/workspace/proitav/git/touch10/build/windows/runner/Debug/data/flutter_assets/packages/cupertino_icons
[        ]   -- Installing: D:/workspace/proitav/git/touch10/build/windows/runner/Debug/data/flutter_assets/packages/cupertino_icons/assets
[        ]   -- Installing: D:/workspace/proitav/git/touch10/build/windows/runner/Debug/data/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
[  +11 ms] FinalizeBuildStatus:
[        ]   正在删除文件“x64\Debug\INSTALL\INSTALL.tlog\unsuccessfulbuild”。
[        ]   正在对“x64\Debug\INSTALL\INSTALL.tlog\INSTALL.lastbuildstate”执行 Touch 任务。
[        ] 已完成生成项目“D:\workspace\proitav\git\touch10\build\windows\INSTALL.vcxproj”(默认目标)的操作。
[   +1 ms] 已成功生成。
[        ]     0 个警告
[        ]     0 个错误
[        ] 已用时间 00:00:07.72
[  +23 ms] Building Windows application... (completed in 8.2s)
[+52691 ms] Error waiting for a debug connection: The log reader stopped unexpectedly, or never started.
[   +1 ms] Error launching application on Windows.
[   +2 ms] "flutter run" took 61,414ms.
[   +3 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:687:9)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #8      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #9      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #10     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>

[ +254 ms] ensureAnalyticsSent: 253ms
[   +3 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[   +1 ms] exiting with code 1

pubspec.yaml
name: touch10
description: A new Flutter project.

# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1

environment:
  sdk: ">=2.16.2 <3.0.0"

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.2
  get: ^4.6.1
  bitsdojo_window: ^0.1.1+1
  package_info_plus: ^1.4.0
  path_provider: ^2.0.9

dev_dependencies:
  flutter_test:
    sdk: flutter

  # The "flutter_lints" package below contains a set of recommended lints to
  # encourage good coding practices. The lint set provided by the package is
  # activated in the `analysis_options.yaml` file located at the root of your
  # package. See that file for information about deactivating specific lint
  # rules and activating additional ones.
  flutter_lints: ^1.0.0

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:

  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  # assets:
  #   - images/a_dot_burr.jpeg
  #   - images/a_dot_ham.jpeg

  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.dev/assets-and-images/#resolution-aware.

  # For details regarding adding assets from package dependencies, see
  # https://flutter.dev/assets-and-images/#from-packages

  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.dev/custom-fonts/#from-packages

@bitsdojo
I found the problem is caused by bitsdojo_window plugin.
windows/runner.main.cpp:
#include <bitsdojo_window_windows/bitsdojo_window_plugin.h>
auto bdw = bitsdojo_window_configure(BDW_CUSTOM_FRAME | BDW_HIDE_ON_STARTUP);

#include <flutter/dart_project.h>
#include <flutter/flutter_view_controller.h>
#include <windows.h>

#include "flutter_window.h"
#include "utils.h"

int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev,
                      _In_ wchar_t *command_line, _In_ int show_command) {
......

When I remove the BDW_CUSTOM_FRAME flag, it works normally.

Hi @YowFung, thanks for filing the issue. I am seeing application crash too but with the debugger still running on adding  the below two lines to runner/main.cpp.
#include <bitsdojo_window_windows/bitsdojo_window_plugin.h>
auto bdw = bitsdojo_window_configure(BDW_CUSTOM_FRAME | BDW_HIDE_ON_STARTUP);

When I remove the BDW_CUSTOM_FRAME flag, it works normally.

This doesn't seem to make any dfference for me, I still see the crash on changing the line to
auto bdw = bitsdojo_window_configure(BDW_HIDE_ON_STARTUP);

Is there any additional configuration apart from adding those two lines I am running the default counter app in main.dart?

Thanks for the info @YowFung, However, I think that this crash is due to the third-party plugin bitsdojo_window. I would suggest you please file that issue in the dedicated repo. I am going to close this issue for now since this issue doesn't provide sufficient info to point out a bug in the flutter. If you have any further info for us that points bug in flutter code feel free to comment on this issue and we will reopen it.
Thank you.


alldirusergroup

I was running your excellent script fine until just recently it complained (after an update):
No option 'alldirusergroup' in section: 'zabbix'
Traceback (most recent call last):
  File "/usr/lib64/python3.6/configparser.py", line 789, in get
    value = d[option]
  File "/usr/lib64/python3.6/collections/__init__.py", line 883, in __getitem__
    return self.__missing__(key)            # support subclasses that define __missing__
  File "/usr/lib64/python3.6/collections/__init__.py", line 875, in __missing__
    raise KeyError(key)
KeyError: 'alldirusergroup'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/zabbix-ldap-sync/lib/zabbixldapconf.py", line 75, in __init__
    self.zbx_alldirusergroup = parser.get('zabbix', 'alldirusergroup')
  File "/usr/lib64/python3.6/configparser.py", line 792, in get
    raise NoOptionError(option, section)
configparser.NoOptionError: No option 'alldirusergroup' in section: 'zabbix'
Configuration issues detected in /data/.zbx-ldap-conf/CYC_Admins.cfg

Looking at the git, it seems a new parameter "alldirusergroup" has been added and is required, but I am not sure why it is there, why it is mandatory or indeed what it does.
I created the required "catch all" group in my Zabbix implementation and of course it works but personally I would rather not have such a group; if I delete users I want them deleted for security purposes not lingering in an unusable Zabbix group - is it possible to give more explanation of this parameter and more importantly can it be bypassed\made optional?
Many thanks.
STEVE

Oh, i am sorry for the inconvenience,
We already added some documentation about this:
(see https://github.com/zabbix-tooling/zabbix-ldap-sync/blob/master/README.md)
Group in Zabbix where to put all users created from the ldap directory.
Create this group before using this tool and give members of this group no permissions to your zabbix instance.
If a user is not available anymore by the directory, the user remains in this single group.

We added this feature because simply deleting users has the disadvantage that this chnages the zabbix audit trail.
I changed the code now to allow it not to use that functionality.
Can you provide feedback about that and if there are still things needed to be changed for your case?

Thank you Marc.
Thank for the clarification. I had read the README but was not sure why it was needed. But in truth, changing the audit trail is actually an advantage for me.
We manage all our users from our RedHat Identity Manager LDAP instance, which itself also has an audit trail. When we delete users we have to a) make sure they are deleted and b) prove it to demonstrate security. So the audit trail is an advantage; having the users still exist in Zabbix is a disadvantage as we then have to manually delete them in Zabbix as well - which defeats the object of the LDAP synchronisation :)
So I would like to have the option for it to work the way you had it before this change; either by an "off switch" to the command line parameters or something like "alldirusergroup=null" in the config file to allow us to optionally not use this feature?
Thanks for your help.
STEVE

With the current implementation you should be capable to just delete the "alldirusergroup" attribute and to delete orphaned users with "--delete-orphans" /the old behavior).

Hi Marc - thanks for responding. I am not sure exactly what you mean - if I delete the "alldirusergroup" attribute from my config file, I get the error published at the top!
Anyway - I have done testing and found that if I make the value of "alldirusergroup=" to be the same as the "groups=" attribute value in the LDAP section, I get around the creation of what to me was a superfluous Zabbix group. It was having two groups that was the problem but it seems I have worked around it. So many thanks but I now have a workable solution :)

You should update your git-clone to use the improved implementation. :-)


ADAPT-000 | @mattanglin | hotfix | remove duplicate lockup merge conflict

HOTFIX

Must be a Friday deploy. Ok, lessons learned.

Lol I was just thinking that.... Friday deploys 😬  Have a great weekend guys!


Listen for delete

Hi,
how can I as a child listen for the delete event through the parent? I did not found a solution through the observer.
Thanks

@ben182 Unfortunately, this seems like more of a question for the forums or StackOverflow. It is not something addressed by this package.


URL postfix

This doesn't seem like it's been reported before, so I'm going to assume it's not actually a bug, but rather something I'm doing wrong.
Rails.application.routes.draw do
  devise_for :users, skip: [:sessions]

  as :user do
    get 'sign-in' =>         'users/sessions#new',       as: :new_user_session
    post 'sign-in' =>        'users/sessions#create',    as: :user_session
    delete 'sign-out' =>     'users/sessions#destroy',   as: :destroy_user_session
  end

  root                       'static_pages#home'
end

The routes seem to work fine, as I can visit http://localhost:3000/sign-in. However, any links or form submissions to other pages result in the URL having ".user" at the end. For example, on the sign in page, the "Sign up" link is http://localhost:3000/users/sign_up.user, and the "Forgot your password?" link is http://localhost:3000/users/password/new.user
I tried removing the custom routes by just having this:
Rails.application.routes.draw do
  devise_for :users

  root  'static_pages#home'
end

and the URLs still have ".user" at the end.
Any help is much appreciated.

That's because you are passing the some user as information to your URL helpers and they don't need it. Verify how you are calling the url helpers and you shuold be good.
Also,  Please use the mailing list or StackOverflow for questions/help, where a wider community will be able to help you. We reserve the issues tracker for issues only.


Add a default bucket to Dataflow runner

There is a dependency failure that I'm not sure how to debug; all other tests pass.
@tgroh could you please take a look?

I absolutely do not understand the dependency issue you're seeing - given that you haven't modified any of the maven stuff especially

R: @tgroh for review
R: @dhalperi for committing

status? @tgroh

R: -@dhalperi

@tgroh any thoughts on
"Going forward, I'm unclear on whether we can easily solve this issue in this PR. The most expedient option seems like it would be to move the default bucket code to gcpTempLocation, but I imagine there are downsides."?

I'm happy to remove the tests, if the overall  approach LGTY.  Wanted to verify before adding churn.

Yes, the approach LGTM

Updated tests, please take another look.

Would you be willing to squash the commits and reword them prior to push or should I?

I can do that
On Wed, Jan 18, 2017 at 11:54 AM, Thomas Groh<EMAIL_ADDRESS>wrote:

Would you be willing to squash the commits and reword them prior to push
or should I?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/apache/beam/pull/1041#issuecomment-273582710, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACQVgc-ESOdF2KuUlTCNKVHncSWa2o2_ks5rTm3tgaJpZM4KN3ve
.

Done

Coverage increased (+0.02%) to 69.937% when pulling 7e6e642a7b1f9bf378960c31b0257fc488ffc11b on sammcveety:sgmc/bucket_staging into faa2277b5d85c848ec935a4a0a1d4ba75291a9bc on apache:master.


Use IUnitPat for unit expression in parens

Is it possible to also remove the check here? https://github.com/JetBrains/fsharp-support/blob/793cdba6ecaf6b32e71b74968fb0b4b0f0fc98b1/ReSharper.FSharp/src/FSharp.Psi.Features/src/Parsing/FSharpImplTreeBuilder.fs#L440

Argh, no. It's not possible there, the FCS AST is puzzling there. Could you combine these cases instead please?


python38Packages.google-cloud-trace: 1.2.0 -> 1.3.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python38Packages.google-cloud-trace is: "Cloud Trace API client library"
meta.homepage for python38Packages.google-cloud-trace is: "https://github.com/googleapis/python-trace"
meta.changelog for python38Packages.google-cloud-trace is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

/nix/store/g95j38crvszpsra5jdxdzfdg2simjk3j-python3.8-google-cloud-trace-1.3.2/bin/fixup_trace_v1_keywords.py passed the binary check.

/nix/store/g95j38crvszpsra5jdxdzfdg2simjk3j-python3.8-google-cloud-trace-1.3.2/bin/fixup_trace_v2_keywords.py passed the binary check.

/nix/store/g95j38crvszpsra5jdxdzfdg2simjk3j-python3.8-google-cloud-trace-1.3.2/bin/.fixup_trace_v1_keywords.py-wrapped passed the binary check.

/nix/store/g95j38crvszpsra5jdxdzfdg2simjk3j-python3.8-google-cloud-trace-1.3.2/bin/.fixup_trace_v2_keywords.py-wrapped passed the binary check.

0 of 4 passed binary check by having a zero exit code.

4 of 4 passed binary check by having the new version present in output.

found 1.3.2 with grep in /nix/store/g95j38crvszpsra5jdxdzfdg2simjk3j-python3.8-google-cloud-trace-1.3.2

found 1.3.2 in filename of file in /nix/store/g95j38crvszpsra5jdxdzfdg2simjk3j-python3.8-google-cloud-trace-1.3.2

directory tree listing: https://gist.github.com/7beb5adb2ec051adf4ff3b58f85c56ab

du listing: https://gist.github.com/5374d08ae89fcc5d24649b690d7616d9

Rebuild report (if merged into master) (click to expand)

8 total rebuild path(s)

2 package rebuild(s)

2 x86_64-linux rebuild(s)
2 i686-linux rebuild(s)
2 x86_64-darwin rebuild(s)
2 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
python38Packages.google-cloud-trace
python39Packages.google-cloud-trace

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/g95j38crvszpsra5jdxdzfdg2simjk3j-python3.8-google-cloud-trace-1.3.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python38Packages.google-cloud-trace https://github.com/r-ryantm/nixpkgs/archive/2f34c57d1450816140cf263a70ce2c7fb0081d59.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/g95j38crvszpsra5jdxdzfdg2simjk3j-python3.8-google-cloud-trace-1.3.2
ls -la /nix/store/g95j38crvszpsra5jdxdzfdg2simjk3j-python3.8-google-cloud-trace-1.3.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages built:

python38Packages.google-cloud-trace
python39Packages.google-cloud-trace

Maintainer pings
cc @SuperSandro2000 for testing.

Result of nixpkgs-review pr 134163 at 2f34c57d run on aarch64-linux 1

2 packages built successfully:

python38Packages.google-cloud-trace
python39Packages.google-cloud-trace


Add a custom parser for The Daily Meal.

CHANGE SUMMARY

Added a custom parser for The Daily Meal.  Now extracts servings into the yield field, and handles some older-style ingredient lists.
Added unit tests for two The Daily Meal recipes.

TESTS
Successfully executed all tests via phpunit.  Specific The Daily Meal test output follows.
amd:tests adamdonahue$ phpunit RecipeParser_Parser_ThedailymealcomTest.php
PHPUnit 4.5.1 by Sebastian Bergmann and contributors.

..

Time: 93 ms, Memory: 3.50Mb

OK (2 tests, 20 assertions)

Thanks, Adam. This is super!

Pleasure was mine.


Memory leak when allocating arrays in function in parallel loop

I tired to accelerate a numerical simulation using the excellent nb.prange for simple parallelization. At its core, my simulation calls a single function (update in the code below) many times during each timestep. This function updates the central data array in arbitrary (i.e. hard to predict) locations. I wanted to accelerate the inner loop using nb.prange and used a chunked iteration with temporary arrays to avoid the race condition when multiple threads write to the same data array. However, using the simplest implementation, I ran into a memory leak, which I consider a bug.
To illustrate the problem, I attach a working example, where calling test(parallel) shows the memory leak. The allocated memory seems to scale linearly with the number rep of repetitions. I saw this problem with the following Numba environment on MacOs 10.14.6 using python 3.7:

version: 0.46.0
using_svml: False
threading_layer: tbb
omp_num_threads: None
mkl_num_threads: None
num_threads: 12

If you cannot see the problem on your setup, it might help to increase rep, which makes the memory leak for longer on my setup.
#!/usr/bin/env python3

import numpy as np
import numba as nb

num = 10_000_000
rep = 1000
threads = 5
dim = 10_000

@nb.jit
def update(arr, out, offset=0):
    """ inner update function """
    for i in range(arr.size):
        out[(i + offset) % dim] += arr[i]

@nb.jit
def basic(arr, offset=0):
    """ basic usage of the update function """
    out = np.zeros(dim, np.int64)
    update(arr, out, offset)
    return out

@nb.jit(parallel=True)
def race_condition(arr):
    """ naive parallization with race condition """
    out = np.zeros(dim, np.int64)
    size = int(np.ceil(arr.size / threads))
    for i in nb.prange(threads):
        arr_junk = arr[i * size:(i + 1) * size]
        update(arr_junk, out, i * size)
    return out

def iter_in_junks(arr):
    """ junked iteration guarding against race condition """
    # get size of a single junk
    res = np.zeros(dim, np.int64)
    size = int(np.ceil(arr.size / threads))
    for i in nb.prange(threads):
        arr_junk = arr[i * size:(i + 1) * size]
        res += basic(arr_junk, i * size)

    return res

# compile without and with parallel support
single = nb.jit()(iter_in_junks)
parallel = nb.jit(parallel=True)(iter_in_junks)

arr = np.arange(num)
expect = basic(arr)

def test(func):
    """ test function that repeatably calls func and test result """

    @nb.jit
    def inner():
        for i in range(rep):
            res = func(arr)
            if not np.array_equal(res, expect):
                return False
        return True

    return inner()

# test the different variants
print('Race condition:', test(race_condition))
print('Single thread:', test(single))
print('Multiple threads:', test(parallel))

I can confirm the memory leak.

Ping @DrTodd13


https://github.com/lscalese/openapi-suite/issues/18

Added support for content-type "application/x-www-form-urlencoded"
Moved code for #19 so that the LoadHttpRequestObject method is again proiperly generated

Thank you for this implementation @isc-tstolker

Just a question, I see this line :
Set clsUtils = ##class(%Dictionary.ClassDefinition).%OpenId("dc.openapi.client.UrlEncodedRequest").%ConstructClone()

but there is no class dc.openapi.client.UrlEncodedRequest in the repository is it a forgotten commit?
Thank you.


[ENUMERABLE]: swap out contains for includes since contains is deprec…

…ated somewhere around 2.8

sry forgot to run ember try :( .  Here is the deps warning in using contains fyi.
http://emberjs.com/deprecations/v2.x/
What does it take to upgrade various pkgs btw?  I'm guessing you don't keep it at the latest, but maybe a couple versions behind?

^^ upgrading might be a better first start than getting rid of the dep warnings.

@snewcomer I'm happy to remove this deprecation but I'd still like to support ember 1.13/2.0 if possible for others using the addon. Can you rework this to use the polyfill mentioned in the 2.8 blog post (to help it work deprecation free for you) ?
https://github.com/rwjblue/ember-runtime-enumerable-includes-polyfill

@toranb ah that makes sense.  ^^Looks like a random fail on travis.

@snewcomer seems solid -works on 1.13+ :) nice work dude

@snewcomer I just published this as v5.1.0 :) let me know if you run into a problem


organizations sites --json should include Site UUIDs

 $ terminus organizations sites --org=$ORG --json
[
    {
        "name": "ari-wp",
        "service level": "free",
        "framework": "wordpress",
        "created": "2015-01-07 20:47:16"
    },
<snip>

+1 for this - the UUID is a highly valuable piece of data, even though we support the site shortname as a convenience for interactive input, for scripting circumstances having the UUID available is worth doing.


Weird y-axis spacing

Codepen
The spacing of the y-axis is inconsistent when there is one x-axis vs multiple y-axis. This is problematic for me, as I am dynamically switching between having one and multiple.
https://codepen.io/philfontaine/pen/MWYrXry
Notice here how the y-axises are well spaced.

Notice here how the y-axis is really too close from the border

If it helps, I think this behavior might have changed recently because I have not encountered this problem before. (I was on 3.10.1, and now using 3.12.0)

If you need to have a fixed yaxis width no matter how many y-axes are there, you can use yaxis.labels.minWidth property - https://apexcharts.com/docs/options/yaxis/#minWidth
yaxis: {
  labels: {
    minWidth: 100
  }
}


Microsoft.EntityFrameworkCore.DbUpdateException   HResult=0x80131500   Message=An error occurred while updating the entries.

Microsoft.EntityFrameworkCore.DbUpdateException   HResult=0x80131500   Message=An error occurred while updating the entries. See the inner exception for details.
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_City_Country_IdofCountry". The conflict occurred in database "MyVinylProject", table "dbo.Country", column 'Id'.
The statement has been terminated.
-whole exception code is under code
UPDATE: Well, i fixed this with ViewModels, how? I put under comment line(remove) field "Country CityCountry" , and left only making "int IdofCountry" where i will remember just Id, and when i need to write it, i will use ViewModel , or something like that.
IF ANYONE HAS BETTER SOLUTION, PLEASE EXPLAIN IT. I dont like this solution but since it works ..
Anyone knows what i did wrong, and what is solution ?! Thanks!

public class Country
    {
     [System.ComponentModel.DataAnnotations.ScaffoldColumn(false)]
[System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        public string Name { get; set; }

        public virtual IEnumerable<City> CitiesinCountry { get; set; }
    }

public class City
    {
      [System.ComponentModel.DataAnnotations.ScaffoldColumn(false)]
 [System.ComponentModel.DataAnnotations.Schema.DatabaseGenerated(System.ComponentModel.DataAnnotations.Schema.DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        public string Name { get; set; }

        //public Country CityCountry { get; set; }                                   <----FIX
        //[System.ComponentModel.DataAnnotations.Schema.ForeignKey("CityCountry")] <----FIX
        public int IdofCountry { get; set; }
     }
public class VShContextClass : DbContext
    {
         public VShContextClass()
         {
         }
         public VShContextClass(DbContextOptions<VShContextClass> options)
            : base(options) { }
        public DbSet<Country> Country { get; set; }
        public DbSet<City> City { get; set; }
}
//controller
        public IActionResult CreateCity()
        {
            return View();
        }
        [HttpPost]
        public IActionResult CreateCity(CityViewModel City)
        {
            if (ModelState.IsValid)
            {
                City newCity = new City()
                {
                    Name = City.Name,
                    IdofCountry = City.CountryId

                };
                _repository.AddCity(newCity);
            }
            ModelState.Clear();

            return View();
        }

//repository
public void AddCity(VinylShop.Models.Record.City newCity)
        {
            db.City.Add(newCity);
            db.SaveChanges();                 //----> THROWS EXCEPTION HERE
        }

So i guess you see in code where it throws exception:

Microsoft.EntityFrameworkCore.DbUpdateException   HResult=0x80131500   Message=An error occurred while updating the entries. See the inner exception for details.   Source=Microsoft.EntityFrameworkCore.Relational   StackTrace:    at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)    at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(Tuple2 parameters)    at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](TState state, Func3 operation, Func3 verifySucceeded)    at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult](IExecutionStrategy strategy, TState state, Func2 operation)    at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable1 commandBatches, IRelationalConnection connection)    at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IReadOnlyList1 entries)    at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IReadOnlyList`1 entriesToSave)    at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)    at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)    at Microsoft.EntityFrameworkCore.DbContext.SaveChanges()    at VinylShop.Repository.ShopRepo.AdministratorRepo.AddCity(City newCity) in C:\Users\Bobejn\Desktop\MyProject-Core\VinylShop\VinylShop\Repository\ShopRepo\AdministratorRepo.cs:line 61    at VinylShop.Controllers.Administrator.AdminController.CreateCity(CityViewModel City) in C:\Users\Bobejn\Desktop\MyProject-Core\VinylShop\VinylShop\Controllers\Administrator\AdminController.cs:line 83    at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)    at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__12.MoveNext()  Inner Exception 1: SqlException: Invalid column name 'CountryId'.
Further technical details
EF Core version: 2.0.6
Database Provider: Microsoft.EntityFrameworkCore.SqlServer Version="2.0.2"
Operating system:  Windows 10
IDE: Visual Studio 2017 15.4

Does Country with City.CountryId exist in database?

No, it doesnt.

No, it doesnt.

This is pretty much data dependent. The newCity you are trying to save has been assigned value to IdOfCountry property. If there is no Country in database which has Country.Id value same as IdOfCountry then it is going to fail. As exception message says

The INSERT statement conflicted with the FOREIGN KEY constraint "FK_City_Country_IdofCountry". The conflict occurred in database "MyVinylProject", table "dbo.Country", column 'Id'.

You violated FK constraint so insert failed. That is the reason it works when you remove the navigation property or FK attribute.


Last elements getters

Q
A

Bug fix?
no

New feature?
yes

BC breaks?
no

Deprecations?
no

Related tickets
fixes #16

Documentation
https://github.com/php-http/documentation/pull/213

License
MIT

What's in this PR?
Add getters for last response, exception and request.
Why?
Because @sagikazarmark asked for it. :wink:
Example Usage
See the doc PR
Checklist

[x] Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix
[x] Documentation pull request created (if not simply a bugfix)

or is there a good use case for them?

Well, not for me personally. Maybe @sagikazarmark cans explain it?

Because @sagikazarmark asked for it. 😉

I would like to....... 😝
Jokes aside: I can't recall the exact use case for those two (maybe I could have written a better issue description).
I can think of a case when you configure the MockClient outside of your test case (with some common input) and you can't access that input directly. In those cases these methods could be useful, not sure how valid this case is.

I can think of a case when you configure the MockClient outside of your test case

Maybe as a Symfony service for example? https://github.com/php-http/HttplugBundle/issues/212

Conflicts resolved.

Hm, maybe. Can't decide whether it's good or bad, but I can't see any issues with having them. @dbu ?

i find them confusing because i don't see legit use cases for it. they can be added when somebody has an actual use case for them imho.
but i can life with them if you insist on having them ;-)

i like the getLastRequest method

Do you still think this is useful? Or should we just drop this (BTW sorry @Soullivaneuh )

getlastrequest sounds more useful to me. you can check what the last request that has been sent contained, and make  assertions on it and so on.

So do you want me to let only getLastRequest on this PR?

I updated this PR.
Well, it looks @Nyholm merge the docs one too quickly, here is a correction: https://github.com/php-http/documentation/pull/216