text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">If an exception is handled by exception handlers and a valid response is generated then the response should also be processed using <code class="notranslate">process_response</code>.</p>
<p dir="auto">Is <code class="notranslate">flask run</code> supposed to spin up a TLS listener if the app is configured with TLS?</p> <p dir="auto">Take this <code class="notranslate">app.py</code>:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if __name__ == &quot;__main__&quot;: app.run(ssl_context=('cert.pem', 'key.pem'))"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>: <span class="pl-s1">app</span>.<span class="pl-en">run</span>(<span class="pl-s1">ssl_context</span><span class="pl-c1">=</span>(<span class="pl-s">'cert.pem'</span>, <span class="pl-s">'key.pem'</span>))</pre></div> <ul dir="auto"> <li>If i run <code class="notranslate">python app.py</code> i get the expected <code class="notranslate">Listening on https://...</code> and all is well - note the http<strong>s</strong>.</li> <li>If i run <code class="notranslate">flask run</code> i get an HTTP listener, <code class="notranslate">Listening on http://...</code>. No TLS.</li> </ul> <p dir="auto">Is this expected behaviour? May i suggest mentioning this somewhere in the quickstart? - <a href="http://flask.pocoo.org/docs/0.12/quickstart/" rel="nofollow">http://flask.pocoo.org/docs/0.12/quickstart/</a></p> <p dir="auto">Would be great if someone would lay out the difference between the two invocations.</p> <p dir="auto">Ref:<br> <a href="https://stackoverflow.com/questions/48518584/" rel="nofollow">https://stackoverflow.com/questions/48518584/</a></p>
0
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-target-html-elements-with-selectors-using-jquery?solution=fccss%0A%20%20%24%28document%29.ready%28function%28%29%20%7B%20%20%20%0A%20%20%20%20%24%28%22button%22%29.addClass%28%22animated%20bounce%22%29%0A%20%20%7D%29%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Waypoint: Target HTML Elements with Selectors Using jQuery</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;script&gt; $(document).ready(function() { $(&quot;button&quot;).addClass(&quot;animated bounce&quot;) }); &lt;/script&gt; &lt;!-- Only change code above this line. --&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h3 class=&quot;text-primary text-center&quot;&gt;jQuery Playground&lt;/h3&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#left-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;left-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target1&quot;&gt;#target1&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target2&quot;&gt;#target2&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target3&quot;&gt;#target3&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#right-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;right-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target4&quot;&gt;#target4&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target5&quot;&gt;#target5&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target6&quot;&gt;#target6&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"button"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">addClass</span><span class="pl-kos">(</span><span class="pl-s">"animated bounce"</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- Only change code above this line. --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">&gt;</span>jQuery Playground<span class="pl-kos">&lt;/</span><span class="pl-ent">h3</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#left-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">&gt;</span>#target1<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">&gt;</span>#target2<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">&gt;</span>#target3<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#right-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">&gt;</span>#target4<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">&gt;</span>#target5<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">&gt;</span>#target6<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-hex-code-for-specific-colors?solution=%3Cstyle%3E%0A%20%20body%20%7B%0A%20%20%20%20background-color%3A%20%23000000%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A" rel="nofollow">Waypoint: Use Hex Code for Specific Colors</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My answer is correct but wrongly flagged as erroneous.<br> My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style&gt; body { background-color: #000000; } &lt;/style&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-ent">body</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>000000</span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span></pre></div>
1
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li>AWS</li> <li>Xenial</li> <li>Terraform</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> I am setting up a K8s cluster using Terraform + kubeadm in AWS. Etcd, kube master, and all kube nodes are in auto-scaling groups and behind load balancers, with the idea being that if some or all nodes fail, the cluster will heal itself. Most recently, I have been working to get the aws cloud-provider to work. At one point, I corrected my kubelet systemd file and deleted the kmaster and knode instances. When they came back up, the discovery service failed to start on the master node.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;master/discovery&gt; failed to create &quot;kube-discovery&quot; deployment [deployments.extensions &quot;kube-discovery&quot; already exists]"><pre class="notranslate"><code class="notranslate">&lt;master/discovery&gt; failed to create "kube-discovery" deployment [deployments.extensions "kube-discovery" already exists] </code></pre></div> <p dir="auto">With the existing deployment, I was surprised that a new discovery pod wasn't scheduled, but it stayed in pending.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@ip-10-253-128-238:~# kubectl describe pod/kube-discovery-1150918428-aca0v --namespace=kube-system Name: kube-discovery-1150918428-aca0v Namespace: kube-system Node: / Labels: component=kube-discovery k8s-app=kube-discovery kubernetes.io/cluster-service=true name=kube-discovery pod-template-hash=1150918428 tier=node Status: Pending IP: Controllers: ReplicaSet/kube-discovery-1150918428 Containers: kube-discovery: Image: gcr.io/google_containers/kube-discovery-amd64:1.0 Port: 9898/TCP Command: /usr/local/bin/kube-discovery Volume Mounts: /tmp/secret from clusterinfo (ro) /var/run/secrets/kubernetes.io/serviceaccount from default-token-lhygh (ro) Environment Variables: &lt;none&gt; Conditions: Type Status PodScheduled False Volumes: clusterinfo: Type: Secret (a volume populated by a Secret) SecretName: clusterinfo default-token-lhygh: Type: Secret (a volume populated by a Secret) SecretName: default-token-lhygh QoS Class: BestEffort Tolerations: dedicated=master:NoSchedule Events: FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 59m 20s 147 {default-scheduler } Warning FailedScheduling pod (kube-discovery-1150918428-aca0v) failed to fit in any node fit failure on node (ip-10-253-128-238.ec2.internal): MatchNodeSelector"><pre class="notranslate"><code class="notranslate">root@ip-10-253-128-238:~# kubectl describe pod/kube-discovery-1150918428-aca0v --namespace=kube-system Name: kube-discovery-1150918428-aca0v Namespace: kube-system Node: / Labels: component=kube-discovery k8s-app=kube-discovery kubernetes.io/cluster-service=true name=kube-discovery pod-template-hash=1150918428 tier=node Status: Pending IP: Controllers: ReplicaSet/kube-discovery-1150918428 Containers: kube-discovery: Image: gcr.io/google_containers/kube-discovery-amd64:1.0 Port: 9898/TCP Command: /usr/local/bin/kube-discovery Volume Mounts: /tmp/secret from clusterinfo (ro) /var/run/secrets/kubernetes.io/serviceaccount from default-token-lhygh (ro) Environment Variables: &lt;none&gt; Conditions: Type Status PodScheduled False Volumes: clusterinfo: Type: Secret (a volume populated by a Secret) SecretName: clusterinfo default-token-lhygh: Type: Secret (a volume populated by a Secret) SecretName: default-token-lhygh QoS Class: BestEffort Tolerations: dedicated=master:NoSchedule Events: FirstSeen LastSeen Count From SubobjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 59m 20s 147 {default-scheduler } Warning FailedScheduling pod (kube-discovery-1150918428-aca0v) failed to fit in any node fit failure on node (ip-10-253-128-238.ec2.internal): MatchNodeSelector </code></pre></div> <p dir="auto"><strong>What you expected to happen</strong>:<br> Either for kubeadm to delete the existing deployment, or for that deployment to sucessfully schedule new pods on the new master node.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br> Bring up a cluster using kubeadm and external etcd. After the cluster is up, delete the master node and try to bring it back up (using the same command as the first time).</p>
<p dir="auto">From <a href="https://00e9e64bac6b200a32447dc4f63b6030019cc0bc3a44f16a27-apidata.googleusercontent.com/download/storage/v1_internal/b/kubernetes-jenkins/o/pr-logs%2Fpull%2F21439%2Fkubernetes-pull-test-unit-integration%2F14897%2Fbuild-log.txt?qk=AD5uMEvhvtd0nU5LWkcTBK9YLg-hvrEQTWAt9cK36vzC3Zy2HiqUXBVZSnxKHiCp67X0z0Xd-JeEOgnBtccHilLhlzARzAhmuSSrBVr6Sssz4EvF10NRGnV6OpUdMT4VHvSiR4wt_U8vT66ZBARu7PucUuFuQQVnROKuqqXqcmLLyfR5VMD1uPfcE-oWhIGvuiDqnwACkUj4zikLoQa1E9D5Opnz6XKovcPH_KO17jL6y6nioOIFphUdGAQ9Ogs1Ikncr1uA4kAarWbGkij4edu1FwKiQGuY2LO1idJwDWIRNkZwf5LKacsDEw1QnDAi_0TqR94ckcR8ZzQ4SxqxxVIM5TKqkkskyD620HMvL2zgX-bjNnMuLEEsWXEYvzluupu9qTemAXRHxg9i7WfUkqk4gI3YWbxp-2BwCfoimtxVzeaACfVMFOQrihSNKc9dacf7CQZeDnUGpLumteoCehJehE09pX2pM8P4dPnuiUPNXgYDZLBcvyc8ftSMJJ1q_fZ7R1TTgVXdVkt4O3CjFBVjeBbU-ngH6DLFmns-x11gw_vaAGyLSmLzp7oHQE0cpBM2-6yJglezpJTcQ5MTVUVDNfziVud-PZ8wK59zJJRPkDoxmq8FQmmoci-fuZWUEoQM1atW0PvjRJZOFNY2Bwo91TWGA7lIFdJxCiVD0ehMSFo9YV4JUuRuQpE0mHeM6sS-DYPc3_Pf2Cm9ll029iiCq6NTTbmYZ4lnKcFZE3VnVvL3X8NaG6kHz3yQ1TlGon0hkSUDg0ZEuTNpOhWQUHxGAuV4rXMKDSF3xj1dt3_bulKbx3v1op9ILbQYCda3XrPypKpJGFiwmAPo1FwHi0tjkFlLJh7IzLRRR2xplm_Mpe3Y5lT2C7ikJHP32aAY360PhujaDB18oF8ORHre3aG_ljlm-CBNod4BqX7n4loZacseJa4h_GE" rel="nofollow">build-log.txt</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="134445638" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/21439" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/21439/hovercard" href="https://github.com/kubernetes/kubernetes/pull/21439">#21439</a> (before I retest) (Tried to find a flake dupe but didn't see an obvious one):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I0217 18:27:49.485036 12269 manager.go:1620] Found pod infra container for &quot;phantom.baz_default(3324bd82-d5e7-11e5-bf2a-0242ac110003)&quot; I0217 18:27:49.485120 12269 manager.go:1633] Pod infra container looks good, keep it &quot;phantom.baz_default(3324bd82-d5e7-11e5-bf2a-0242ac110003)&quot; I0217 18:27:49.485169 12269 manager.go:1657] pod &quot;phantom.baz_default(3324bd82-d5e7-11e5-bf2a-0242ac110003)&quot; container &quot;c1&quot; exists as /k8s_c1.cd1b02d5_phantom.baz_default_3324bd82-d5e7-11e5-bf2a-0242ac110003_46090a9a I0217 18:27:49.485201 12269 manager.go:1725] Got container changes for pod &quot;phantom.baz_default(3324bd82-d5e7-11e5-bf2a-0242ac110003)&quot;: {StartInfraContainer:false InfraChanged:false InfraContainerId:/k8s_POD.6d140183_phantom.baz_default_3324bd82-d5e7-11e5-bf2a-0242ac110003_e7f1f119 ContainersToStart:map[] ContainersToKeep:map[/k8s_POD.6d140183_phantom.baz_default_3324bd82-d5e7-11e5-bf2a-0242ac110003_e7f1f119:-1 /k8s_c1.cd1b02d5_phantom.baz_default_3324bd82-d5e7-11e5-bf2a-0242ac110003_46090a9a:0]} I0217 18:27:49.692180 12269 integration.go:958] Scheduler doesn't make phantom pods: test passed. I0217 18:27:49.692211 12269 integration.go:1068] Logging high latency metrics from the 10250 kubelet I0217 18:27:49.716299 12269 server.go:1083] GET /metrics: (23.237036ms) 200 [[Go-http-client/1.1] 127.0.0.1:56949] �������iI0217 18:27:49.725600 12269 integration.go:1070] Logging high latency metrics from the 10251 kubelet Feb 17 18:27:49.725: INFO: Latency metrics for node localhost:10250 Feb 17 18:27:49.725: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.99 Latency:6.002896s} Feb 17 18:27:49.725: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.9 Latency:5.002607s} Feb 17 18:27:49.725: INFO: {Operation: Method:pod_worker_start_latency_microseconds Quantile:0.99 Latency:5.002121s} Feb 17 18:27:49.725: INFO: {Operation: Method:pod_worker_start_latency_microseconds Quantile:0.9 Latency:5.002121s} Feb 17 18:27:49.725: INFO: {Operation:sync Method:pod_worker_latency_microseconds Quantile:0.99 Latency:1.001256s} Error deleting container: Error response from daemon: Conflict, You cannot remove a running container. Stop the container before attempting removal or use -f Unrecognized input header Build step 'Execute shell' marked build as failure Recording test results"><pre class="notranslate"><code class="notranslate">I0217 18:27:49.485036 12269 manager.go:1620] Found pod infra container for "phantom.baz_default(3324bd82-d5e7-11e5-bf2a-0242ac110003)" I0217 18:27:49.485120 12269 manager.go:1633] Pod infra container looks good, keep it "phantom.baz_default(3324bd82-d5e7-11e5-bf2a-0242ac110003)" I0217 18:27:49.485169 12269 manager.go:1657] pod "phantom.baz_default(3324bd82-d5e7-11e5-bf2a-0242ac110003)" container "c1" exists as /k8s_c1.cd1b02d5_phantom.baz_default_3324bd82-d5e7-11e5-bf2a-0242ac110003_46090a9a I0217 18:27:49.485201 12269 manager.go:1725] Got container changes for pod "phantom.baz_default(3324bd82-d5e7-11e5-bf2a-0242ac110003)": {StartInfraContainer:false InfraChanged:false InfraContainerId:/k8s_POD.6d140183_phantom.baz_default_3324bd82-d5e7-11e5-bf2a-0242ac110003_e7f1f119 ContainersToStart:map[] ContainersToKeep:map[/k8s_POD.6d140183_phantom.baz_default_3324bd82-d5e7-11e5-bf2a-0242ac110003_e7f1f119:-1 /k8s_c1.cd1b02d5_phantom.baz_default_3324bd82-d5e7-11e5-bf2a-0242ac110003_46090a9a:0]} I0217 18:27:49.692180 12269 integration.go:958] Scheduler doesn't make phantom pods: test passed. I0217 18:27:49.692211 12269 integration.go:1068] Logging high latency metrics from the 10250 kubelet I0217 18:27:49.716299 12269 server.go:1083] GET /metrics: (23.237036ms) 200 [[Go-http-client/1.1] 127.0.0.1:56949] �������iI0217 18:27:49.725600 12269 integration.go:1070] Logging high latency metrics from the 10251 kubelet Feb 17 18:27:49.725: INFO: Latency metrics for node localhost:10250 Feb 17 18:27:49.725: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.99 Latency:6.002896s} Feb 17 18:27:49.725: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.9 Latency:5.002607s} Feb 17 18:27:49.725: INFO: {Operation: Method:pod_worker_start_latency_microseconds Quantile:0.99 Latency:5.002121s} Feb 17 18:27:49.725: INFO: {Operation: Method:pod_worker_start_latency_microseconds Quantile:0.9 Latency:5.002121s} Feb 17 18:27:49.725: INFO: {Operation:sync Method:pod_worker_latency_microseconds Quantile:0.99 Latency:1.001256s} Error deleting container: Error response from daemon: Conflict, You cannot remove a running container. Stop the container before attempting removal or use -f Unrecognized input header Build step 'Execute shell' marked build as failure Recording test results </code></pre></div>
0
<p dir="auto">I was not able to find it, but is it possible to fetch dependencies from protected sources such as private GitHub or Azure DevOps repositories by providing an Authorization header with Personal Access Token?</p>
<p dir="auto">When importing the standard library without specifying a version, there are two warnings:</p> <ol dir="auto"> <li>Implicitly using latest version (&lt;version&gt;) for &lt;url&gt;;</li> <li>The import of "&lt;url&gt;" was redirected to "&lt;new-url&gt;".</li> </ol> <p dir="auto">But it shows wrong redirect and wrong latest version (older ones).<br> You could see on screenshots, that version offered by Deno is <code class="notranslate">0.151.0</code>; but the real redirect refers to version <code class="notranslate">0.156.0</code>:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32432324/191333419-6483c111-cb91-42a1-9f75-62d78e479296.png"><img src="https://user-images.githubusercontent.com/32432324/191333419-6483c111-cb91-42a1-9f75-62d78e479296.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Quick fix "Update specifier to its redirected specifier" updates the link to the outdated version.</p> <p dir="auto">Expected behavior:<br> When no version is defined, show real redirects in hints; follow real redirects on "quick fix".</p>
0
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-pre-release/518/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-pre-release/518/</a></p> <p dir="auto">Failed: Up {e2e.go}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error running up: exit status 1"><pre class="notranslate"><code class="notranslate">error running up: exit status 1 </code></pre></div> <p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178786165" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33357" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33357/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33357">#33357</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178925015" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33377" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33377/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33377">#33377</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180814107" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33993" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33993/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33993">#33993</a></p>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-federation/4526/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-federation/4526/</a></p> <p dir="auto">Failed: Up {e2e.go}</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error running up: exit status 1"><pre class="notranslate"><code class="notranslate">error running up: exit status 1 </code></pre></div> <p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178786165" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33357" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33357/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33357">#33357</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178925015" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33377" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33377/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33377">#33377</a></p>
1
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OSX 10.14.5</li> <li>TensorFlow installed from (source or binary): source</li> <li>TensorFlow version: 1.13.1</li> <li>Python version: 2.7</li> <li>Installed using virtualenv? pip? conda?: docker</li> <li>Bazel version (if compiling from source):</li> <li>GCC/Compiler version (if compiling from source):</li> <li>CUDA/cuDNN version:</li> <li>GPU model and memory:</li> </ul> <p dir="auto"><strong>Describe the problem</strong></p> <p dir="auto">I am following <a href="https://www.tensorflow.org/install/source_rpi" rel="nofollow">this official guide</a> to cross-compile for the Raspberry Pi. I am doing:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" tensorflow/tools/ci_build/ci_build.sh PI \ tensorflow/tools/ci_build/pi/build_raspberry_pi.sh"><pre class="notranslate"><code class="notranslate"> tensorflow/tools/ci_build/ci_build.sh PI \ tensorflow/tools/ci_build/pi/build_raspberry_pi.sh </code></pre></div> <p dir="auto">The process hungs (all CPUs being used 100% for a long long time) while compiling. Each time I kill it and the next time hungs at a different place. The scenario is always very similar.. I paste below some examples:</p> <h3 dir="auto">Example1</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[1,152 / 1,160] Compiling tensorflow/core/kernels/data/experimental/group_by_reducer_dataset_op.cc; 131s local ... (4 actions running) ERROR: /workspace/tensorflow/core/kernels/BUILD:3114:1: C++ compilation of rule '//tensorflow/core/kernels:batch_matmul_op' failed (Exit 4): arm-linux-gnueabihf-gcc failed: error executing command (cd /Users/mariano/Trabajo/Instantiations/InstantiationsShared/TensorFlow/tensorflow/bazel-ci_build-cache/.cache/bazel/_bazel_mariano/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow &amp;&amp; \ exec env - \ LD_LIBRARY_PATH='' \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin \ PWD=/proc/self/cwd \ PYTHON_BIN_PATH=/usr/bin/python \ PYTHON_LIB_PATH=/usr/local/lib/python2.7/dist-packages \ TF_DOWNLOAD_CLANG=0 \ TF_NEED_CUDA=0 \ TF_NEED_OPENCL_SYCL=0 \ TF_NEED_ROCM=0 \ /Users/mariano/Trabajo/Instantiations/InstantiationsShared/TensorFlow/tensorflow/bazel-ci_build-cache/.cache/bazel/_bazel_mariano/eab0d61a99b6696edb3d2aff87b585e8/external/arm_compiler/bin/arm-linux-gnueabihf-gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -DRASPBERRY_PI -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -isystem /usr/include/arm-linux-gnueabihf -isystem /usr/include/python2.7 -isystem /usr/include/ -MD -MF bazel-out/armeabi-opt/bin/tensorflow/core/kernels/_objs/batch_matmul_op/batch_matmul_op_real.d '-frandom-seed=bazel-out/armeabi-opt/bin/tensorflow/core/kernels/_objs/batch_matmul_op/batch_matmul_op_real.o' -DEIGEN_MPL2_ONLY '-DEIGEN_MAX_ALIGN_BYTES=64' '-DEIGEN_HAS_TYPE_TRAITS=0' -D__CLANG_SUPPORT_DYN_ANNOTATION__ -DTF_USE_SNAPPY -DCURL_STATICLIB -iquote . -iquote bazel-out/armeabi-opt/genfiles -iquote bazel-out/armeabi-opt/bin -iquote external/bazel_tools -iquote bazel-out/armeabi-opt/genfiles/external/bazel_tools -iquote bazel-out/armeabi-opt/bin/external/bazel_tools -iquote external/eigen_archive -iquote bazel-out/armeabi-opt/genfiles/external/eigen_archive -iquote bazel-out/armeabi-opt/bin/external/eigen_archive -iquote external/local_config_sycl -iquote bazel-out/armeabi-opt/genfiles/external/local_config_sycl -iquote bazel-out/armeabi-opt/bin/external/local_config_sycl -iquote external/com_google_absl -iquote bazel-out/armeabi-opt/genfiles/external/com_google_absl -iquote bazel-out/armeabi-opt/bin/external/com_google_absl -iquote external/nsync -iquote bazel-out/armeabi-opt/genfiles/external/nsync -iquote bazel-out/armeabi-opt/bin/external/nsync -iquote external/gif_archive -iquote bazel-out/armeabi-opt/genfiles/external/gif_archive -iquote bazel-out/armeabi-opt/bin/external/gif_archive -iquote external/jpeg -iquote bazel-out/armeabi-opt/genfiles/external/jpeg -iquote bazel-out/armeabi-opt/bin/external/jpeg -iquote external/protobuf_archive -iquote bazel-out/armeabi-opt/genfiles/external/protobuf_archive -iquote bazel-out/armeabi-opt/bin/external/protobuf_archive -iquote external/com_googlesource_code_re2 -iquote bazel-out/armeabi-opt/genfiles/external/com_googlesource_code_re2 -iquote bazel-out/armeabi-opt/bin/external/com_googlesource_code_re2 -iquote external/farmhash_archive -iquote bazel-out/armeabi-opt/genfiles/external/farmhash_archive -iquote bazel-out/armeabi-opt/bin/external/farmhash_archive -iquote external/fft2d -iquote bazel-out/armeabi-opt/genfiles/external/fft2d -iquote bazel-out/armeabi-opt/bin/external/fft2d -iquote external/highwayhash -iquote bazel-out/armeabi-opt/genfiles/external/highwayhash -iquote bazel-out/armeabi-opt/bin/external/highwayhash -iquote external/zlib_archive -iquote bazel-out/armeabi-opt/genfiles/external/zlib_archive -iquote bazel-out/armeabi-opt/bin/external/zlib_archive -iquote external/double_conversion -iquote bazel-out/armeabi-opt/genfiles/external/double_conversion -iquote bazel-out/armeabi-opt/bin/external/double_conversion -iquote external/snappy -iquote bazel-out/armeabi-opt/genfiles/external/snappy -iquote bazel-out/armeabi-opt/bin/external/snappy -iquote external/curl -iquote bazel-out/armeabi-opt/genfiles/external/curl -iquote bazel-out/armeabi-opt/bin/external/curl -iquote external/boringssl -iquote bazel-out/armeabi-opt/genfiles/external/boringssl -iquote bazel-out/armeabi-opt/bin/external/boringssl -iquote external/jsoncpp_git -iquote bazel-out/armeabi-opt/genfiles/external/jsoncpp_git -iquote bazel-out/armeabi-opt/bin/external/jsoncpp_git -iquote external/aws -iquote bazel-out/armeabi-opt/genfiles/external/aws -iquote bazel-out/armeabi-opt/bin/external/aws -isystem external/eigen_archive -isystem bazel-out/armeabi-opt/genfiles/external/eigen_archive -isystem bazel-out/armeabi-opt/bin/external/eigen_archive -isystem external/nsync/public -isystem bazel-out/armeabi-opt/genfiles/external/nsync/public -isystem bazel-out/armeabi-opt/bin/external/nsync/public -isystem external/gif_archive/lib -isystem bazel-out/armeabi-opt/genfiles/external/gif_archive/lib -isystem bazel-out/armeabi-opt/bin/external/gif_archive/lib -isystem external/protobuf_archive/src -isystem bazel-out/armeabi-opt/genfiles/external/protobuf_archive/src -isystem bazel-out/armeabi-opt/bin/external/protobuf_archive/src -isystem external/farmhash_archive/src -isystem bazel-out/armeabi-opt/genfiles/external/farmhash_archive/src -isystem bazel-out/armeabi-opt/bin/external/farmhash_archive/src -isystem external/zlib_archive -isystem bazel-out/armeabi-opt/genfiles/external/zlib_archive -isystem bazel-out/armeabi-opt/bin/external/zlib_archive -isystem external/double_conversion -isystem bazel-out/armeabi-opt/genfiles/external/double_conversion -isystem bazel-out/armeabi-opt/bin/external/double_conversion -isystem external/curl/include -isystem bazel-out/armeabi-opt/genfiles/external/curl/include -isystem bazel-out/armeabi-opt/bin/external/curl/include -isystem external/boringssl/src/include -isystem bazel-out/armeabi-opt/genfiles/external/boringssl/src/include -isystem bazel-out/armeabi-opt/bin/external/boringssl/src/include -isystem external/jsoncpp_git/include -isystem bazel-out/armeabi-opt/genfiles/external/jsoncpp_git/include -isystem bazel-out/armeabi-opt/bin/external/jsoncpp_git/include -isystem external/aws/aws-cpp-sdk-core/include -isystem bazel-out/armeabi-opt/genfiles/external/aws/aws-cpp-sdk-core/include -isystem bazel-out/armeabi-opt/bin/external/aws/aws-cpp-sdk-core/include -isystem external/aws/aws-cpp-sdk-kinesis/include -isystem bazel-out/armeabi-opt/genfiles/external/aws/aws-cpp-sdk-kinesis/include -isystem bazel-out/armeabi-opt/bin/external/aws/aws-cpp-sdk-kinesis/include -isystem external/aws/aws-cpp-sdk-s3/include -isystem bazel-out/armeabi-opt/genfiles/external/aws/aws-cpp-sdk-s3/include -isystem bazel-out/armeabi-opt/bin/external/aws/aws-cpp-sdk-s3/include '-march=armv7-a' '-mfpu=neon-vfpv4' '-std=gnu11' '-DS_IREAD=S_IRUSR' '-DS_IWRITE=S_IWUSR' -O3 -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 -funsafe-math-optimizations -ftree-vectorize -fomit-frame-pointer -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare -fno-exceptions '-ftemplate-depth=900' -DTENSORFLOW_MONOLITHIC_BUILD -pthread -Wno-builtin-macro-redefined '-D__DATE__=&quot;redacted&quot;' '-D__TIMESTAMP__=&quot;redacted&quot;' '-D__TIME__=&quot;redacted&quot;' -no-canonical-prefixes -fno-canonical-system-headers -c tensorflow/core/kernels/batch_matmul_op_real.cc -o bazel-out/armeabi-opt/bin/tensorflow/core/kernels/_objs/batch_matmul_op/batch_matmul_op_real.o) Execution platform: @bazel_tools//platforms:host_platform cc1plus: warning: command line option '-std=gnu11' is valid for C/ObjC but not for C++ arm-linux-gnueabihf-gcc: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See &lt;http://gcc.gnu.org/bugs.html&gt; for instructions. INFO: Elapsed time: 781.885s, Critical Path: 218.64s INFO: 108 processes: 108 local. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully &gt;&gt;&gt; elapsed time 16m45s"><pre class="notranslate"><code class="notranslate">[1,152 / 1,160] Compiling tensorflow/core/kernels/data/experimental/group_by_reducer_dataset_op.cc; 131s local ... (4 actions running) ERROR: /workspace/tensorflow/core/kernels/BUILD:3114:1: C++ compilation of rule '//tensorflow/core/kernels:batch_matmul_op' failed (Exit 4): arm-linux-gnueabihf-gcc failed: error executing command (cd /Users/mariano/Trabajo/Instantiations/InstantiationsShared/TensorFlow/tensorflow/bazel-ci_build-cache/.cache/bazel/_bazel_mariano/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow &amp;&amp; \ exec env - \ LD_LIBRARY_PATH='' \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin \ PWD=/proc/self/cwd \ PYTHON_BIN_PATH=/usr/bin/python \ PYTHON_LIB_PATH=/usr/local/lib/python2.7/dist-packages \ TF_DOWNLOAD_CLANG=0 \ TF_NEED_CUDA=0 \ TF_NEED_OPENCL_SYCL=0 \ TF_NEED_ROCM=0 \ /Users/mariano/Trabajo/Instantiations/InstantiationsShared/TensorFlow/tensorflow/bazel-ci_build-cache/.cache/bazel/_bazel_mariano/eab0d61a99b6696edb3d2aff87b585e8/external/arm_compiler/bin/arm-linux-gnueabihf-gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -DRASPBERRY_PI -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections '-std=c++11' -isystem /usr/include/arm-linux-gnueabihf -isystem /usr/include/python2.7 -isystem /usr/include/ -MD -MF bazel-out/armeabi-opt/bin/tensorflow/core/kernels/_objs/batch_matmul_op/batch_matmul_op_real.d '-frandom-seed=bazel-out/armeabi-opt/bin/tensorflow/core/kernels/_objs/batch_matmul_op/batch_matmul_op_real.o' -DEIGEN_MPL2_ONLY '-DEIGEN_MAX_ALIGN_BYTES=64' '-DEIGEN_HAS_TYPE_TRAITS=0' -D__CLANG_SUPPORT_DYN_ANNOTATION__ -DTF_USE_SNAPPY -DCURL_STATICLIB -iquote . -iquote bazel-out/armeabi-opt/genfiles -iquote bazel-out/armeabi-opt/bin -iquote external/bazel_tools -iquote bazel-out/armeabi-opt/genfiles/external/bazel_tools -iquote bazel-out/armeabi-opt/bin/external/bazel_tools -iquote external/eigen_archive -iquote bazel-out/armeabi-opt/genfiles/external/eigen_archive -iquote bazel-out/armeabi-opt/bin/external/eigen_archive -iquote external/local_config_sycl -iquote bazel-out/armeabi-opt/genfiles/external/local_config_sycl -iquote bazel-out/armeabi-opt/bin/external/local_config_sycl -iquote external/com_google_absl -iquote bazel-out/armeabi-opt/genfiles/external/com_google_absl -iquote bazel-out/armeabi-opt/bin/external/com_google_absl -iquote external/nsync -iquote bazel-out/armeabi-opt/genfiles/external/nsync -iquote bazel-out/armeabi-opt/bin/external/nsync -iquote external/gif_archive -iquote bazel-out/armeabi-opt/genfiles/external/gif_archive -iquote bazel-out/armeabi-opt/bin/external/gif_archive -iquote external/jpeg -iquote bazel-out/armeabi-opt/genfiles/external/jpeg -iquote bazel-out/armeabi-opt/bin/external/jpeg -iquote external/protobuf_archive -iquote bazel-out/armeabi-opt/genfiles/external/protobuf_archive -iquote bazel-out/armeabi-opt/bin/external/protobuf_archive -iquote external/com_googlesource_code_re2 -iquote bazel-out/armeabi-opt/genfiles/external/com_googlesource_code_re2 -iquote bazel-out/armeabi-opt/bin/external/com_googlesource_code_re2 -iquote external/farmhash_archive -iquote bazel-out/armeabi-opt/genfiles/external/farmhash_archive -iquote bazel-out/armeabi-opt/bin/external/farmhash_archive -iquote external/fft2d -iquote bazel-out/armeabi-opt/genfiles/external/fft2d -iquote bazel-out/armeabi-opt/bin/external/fft2d -iquote external/highwayhash -iquote bazel-out/armeabi-opt/genfiles/external/highwayhash -iquote bazel-out/armeabi-opt/bin/external/highwayhash -iquote external/zlib_archive -iquote bazel-out/armeabi-opt/genfiles/external/zlib_archive -iquote bazel-out/armeabi-opt/bin/external/zlib_archive -iquote external/double_conversion -iquote bazel-out/armeabi-opt/genfiles/external/double_conversion -iquote bazel-out/armeabi-opt/bin/external/double_conversion -iquote external/snappy -iquote bazel-out/armeabi-opt/genfiles/external/snappy -iquote bazel-out/armeabi-opt/bin/external/snappy -iquote external/curl -iquote bazel-out/armeabi-opt/genfiles/external/curl -iquote bazel-out/armeabi-opt/bin/external/curl -iquote external/boringssl -iquote bazel-out/armeabi-opt/genfiles/external/boringssl -iquote bazel-out/armeabi-opt/bin/external/boringssl -iquote external/jsoncpp_git -iquote bazel-out/armeabi-opt/genfiles/external/jsoncpp_git -iquote bazel-out/armeabi-opt/bin/external/jsoncpp_git -iquote external/aws -iquote bazel-out/armeabi-opt/genfiles/external/aws -iquote bazel-out/armeabi-opt/bin/external/aws -isystem external/eigen_archive -isystem bazel-out/armeabi-opt/genfiles/external/eigen_archive -isystem bazel-out/armeabi-opt/bin/external/eigen_archive -isystem external/nsync/public -isystem bazel-out/armeabi-opt/genfiles/external/nsync/public -isystem bazel-out/armeabi-opt/bin/external/nsync/public -isystem external/gif_archive/lib -isystem bazel-out/armeabi-opt/genfiles/external/gif_archive/lib -isystem bazel-out/armeabi-opt/bin/external/gif_archive/lib -isystem external/protobuf_archive/src -isystem bazel-out/armeabi-opt/genfiles/external/protobuf_archive/src -isystem bazel-out/armeabi-opt/bin/external/protobuf_archive/src -isystem external/farmhash_archive/src -isystem bazel-out/armeabi-opt/genfiles/external/farmhash_archive/src -isystem bazel-out/armeabi-opt/bin/external/farmhash_archive/src -isystem external/zlib_archive -isystem bazel-out/armeabi-opt/genfiles/external/zlib_archive -isystem bazel-out/armeabi-opt/bin/external/zlib_archive -isystem external/double_conversion -isystem bazel-out/armeabi-opt/genfiles/external/double_conversion -isystem bazel-out/armeabi-opt/bin/external/double_conversion -isystem external/curl/include -isystem bazel-out/armeabi-opt/genfiles/external/curl/include -isystem bazel-out/armeabi-opt/bin/external/curl/include -isystem external/boringssl/src/include -isystem bazel-out/armeabi-opt/genfiles/external/boringssl/src/include -isystem bazel-out/armeabi-opt/bin/external/boringssl/src/include -isystem external/jsoncpp_git/include -isystem bazel-out/armeabi-opt/genfiles/external/jsoncpp_git/include -isystem bazel-out/armeabi-opt/bin/external/jsoncpp_git/include -isystem external/aws/aws-cpp-sdk-core/include -isystem bazel-out/armeabi-opt/genfiles/external/aws/aws-cpp-sdk-core/include -isystem bazel-out/armeabi-opt/bin/external/aws/aws-cpp-sdk-core/include -isystem external/aws/aws-cpp-sdk-kinesis/include -isystem bazel-out/armeabi-opt/genfiles/external/aws/aws-cpp-sdk-kinesis/include -isystem bazel-out/armeabi-opt/bin/external/aws/aws-cpp-sdk-kinesis/include -isystem external/aws/aws-cpp-sdk-s3/include -isystem bazel-out/armeabi-opt/genfiles/external/aws/aws-cpp-sdk-s3/include -isystem bazel-out/armeabi-opt/bin/external/aws/aws-cpp-sdk-s3/include '-march=armv7-a' '-mfpu=neon-vfpv4' '-std=gnu11' '-DS_IREAD=S_IRUSR' '-DS_IWRITE=S_IWUSR' -O3 -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 -funsafe-math-optimizations -ftree-vectorize -fomit-frame-pointer -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare -fno-exceptions '-ftemplate-depth=900' -DTENSORFLOW_MONOLITHIC_BUILD -pthread -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -no-canonical-prefixes -fno-canonical-system-headers -c tensorflow/core/kernels/batch_matmul_op_real.cc -o bazel-out/armeabi-opt/bin/tensorflow/core/kernels/_objs/batch_matmul_op/batch_matmul_op_real.o) Execution platform: @bazel_tools//platforms:host_platform cc1plus: warning: command line option '-std=gnu11' is valid for C/ObjC but not for C++ arm-linux-gnueabihf-gcc: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See &lt;http://gcc.gnu.org/bugs.html&gt; for instructions. INFO: Elapsed time: 781.885s, Critical Path: 218.64s INFO: 108 processes: 108 local. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully &gt;&gt;&gt; elapsed time 16m45s </code></pre></div> <h3 dir="auto">Example2</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: /Users/mariano/Trabajo/Instantiations/InstantiationsShared/TensorFlow/tensorflow/bazel-ci_build-cache/.cache/bazel/_bazel_mariano/eab0d61a99b6696edb3d2aff87b585e8/external/com_github_nanopb_nanopb/BUILD.bazel:1:1: C++ compilation of rule '@com_github_nanopb_nanopb//:nanopb' failed (Exit 1): arm-linux-gnueabihf-gcc failed: error executing command (cd /Users/mariano/Trabajo/Instantiations/InstantiationsShared/TensorFlow/tensorflow/bazel-ci_build-cache/.cache/bazel/_bazel_mariano/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow &amp;&amp; \ exec env - \ LD_LIBRARY_PATH='' \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin \ PWD=/proc/self/cwd \ PYTHON_BIN_PATH=/usr/bin/python \ PYTHON_LIB_PATH=/usr/local/lib/python2.7/dist-packages \ TF_DOWNLOAD_CLANG=0 \ TF_NEED_CUDA=0 \ TF_NEED_OPENCL_SYCL=0 \ TF_NEED_ROCM=0 \ /Users/mariano/Trabajo/Instantiations/InstantiationsShared/TensorFlow/tensorflow/bazel-ci_build-cache/.cache/bazel/_bazel_mariano/eab0d61a99b6696edb3d2aff87b585e8/external/arm_compiler/bin/arm-linux-gnueabihf-gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -DRASPBERRY_PI -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -MD -MF bazel-out/armeabi-opt/bin/external/com_github_nanopb_nanopb/_objs/nanopb/pb_decode.pic.d -fPIC '-DPB_FIELD_32BIT=1' -iquote external/com_github_nanopb_nanopb -iquote bazel-out/armeabi-opt/genfiles/external/com_github_nanopb_nanopb -iquote bazel-out/armeabi-opt/bin/external/com_github_nanopb_nanopb -iquote external/bazel_tools -iquote bazel-out/armeabi-opt/genfiles/external/bazel_tools -iquote bazel-out/armeabi-opt/bin/external/bazel_tools '-march=armv7-a' '-mfpu=neon-vfpv4' '-std=gnu11' '-DS_IREAD=S_IRUSR' '-DS_IWRITE=S_IWUSR' -O3 -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 -funsafe-math-optimizations -ftree-vectorize -fomit-frame-pointer -Wno-builtin-macro-redefined '-D__DATE__=&quot;redacted&quot;' '-D__TIMESTAMP__=&quot;redacted&quot;' '-D__TIME__=&quot;redacted&quot;' -no-canonical-prefixes -fno-canonical-system-headers -c external/com_github_nanopb_nanopb/pb_decode.c -o bazel-out/armeabi-opt/bin/external/com_github_nanopb_nanopb/_objs/nanopb/pb_decode.pic.o) Execution platform: @bazel_tools//platforms:host_platform external/com_github_nanopb_nanopb/pb_decode.c:18:23: fatal error: pb_common.h: No such file or directory #include &quot;pb_common.h&quot; ^ compilation terminated. INFO: Elapsed time: 380.977s, Critical Path: 35.72s INFO: 390 processes: 390 local. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully"><pre class="notranslate"><code class="notranslate">ERROR: /Users/mariano/Trabajo/Instantiations/InstantiationsShared/TensorFlow/tensorflow/bazel-ci_build-cache/.cache/bazel/_bazel_mariano/eab0d61a99b6696edb3d2aff87b585e8/external/com_github_nanopb_nanopb/BUILD.bazel:1:1: C++ compilation of rule '@com_github_nanopb_nanopb//:nanopb' failed (Exit 1): arm-linux-gnueabihf-gcc failed: error executing command (cd /Users/mariano/Trabajo/Instantiations/InstantiationsShared/TensorFlow/tensorflow/bazel-ci_build-cache/.cache/bazel/_bazel_mariano/eab0d61a99b6696edb3d2aff87b585e8/execroot/org_tensorflow &amp;&amp; \ exec env - \ LD_LIBRARY_PATH='' \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin \ PWD=/proc/self/cwd \ PYTHON_BIN_PATH=/usr/bin/python \ PYTHON_LIB_PATH=/usr/local/lib/python2.7/dist-packages \ TF_DOWNLOAD_CLANG=0 \ TF_NEED_CUDA=0 \ TF_NEED_OPENCL_SYCL=0 \ TF_NEED_ROCM=0 \ /Users/mariano/Trabajo/Instantiations/InstantiationsShared/TensorFlow/tensorflow/bazel-ci_build-cache/.cache/bazel/_bazel_mariano/eab0d61a99b6696edb3d2aff87b585e8/external/arm_compiler/bin/arm-linux-gnueabihf-gcc -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -DRASPBERRY_PI -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -MD -MF bazel-out/armeabi-opt/bin/external/com_github_nanopb_nanopb/_objs/nanopb/pb_decode.pic.d -fPIC '-DPB_FIELD_32BIT=1' -iquote external/com_github_nanopb_nanopb -iquote bazel-out/armeabi-opt/genfiles/external/com_github_nanopb_nanopb -iquote bazel-out/armeabi-opt/bin/external/com_github_nanopb_nanopb -iquote external/bazel_tools -iquote bazel-out/armeabi-opt/genfiles/external/bazel_tools -iquote bazel-out/armeabi-opt/bin/external/bazel_tools '-march=armv7-a' '-mfpu=neon-vfpv4' '-std=gnu11' '-DS_IREAD=S_IRUSR' '-DS_IWRITE=S_IWUSR' -O3 -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 -U__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 -funsafe-math-optimizations -ftree-vectorize -fomit-frame-pointer -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -no-canonical-prefixes -fno-canonical-system-headers -c external/com_github_nanopb_nanopb/pb_decode.c -o bazel-out/armeabi-opt/bin/external/com_github_nanopb_nanopb/_objs/nanopb/pb_decode.pic.o) Execution platform: @bazel_tools//platforms:host_platform external/com_github_nanopb_nanopb/pb_decode.c:18:23: fatal error: pb_common.h: No such file or directory #include "pb_common.h" ^ compilation terminated. INFO: Elapsed time: 380.977s, Critical Path: 35.72s INFO: 390 processes: 390 local. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully </code></pre></div> <p dir="auto"><strong>Any other info / logs</strong><br> The very very same instructions, running on a Linux Mint 18.3 work perfectly. Docker version on OSX is "Docker version 18.09.2, build 6247962" and in Mint "Docker version 18.09.6, build 481bc77". The documentation says nothing about which Docker version to use and it does says that MacOS is supported:</p> <blockquote> <p dir="auto">it's easier to build TensorFlow on a more powerful host machine running Linux, macOS, or Windows.</p> </blockquote> <p dir="auto">Any ideas?</p>
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>TensorFlow version (you are using): 1.13.1</li> <li>Are you willing to contribute it (Yes/No): yes, at least as a tester</li> </ul> <p dir="auto"><strong>Describe the feature and the current behavior/state.</strong></p> <p dir="auto">There is no pre-build binary for Raspberry Pi / ARM and the instructions to build from scratch <a href="https://www.tensorflow.org/install/source_rpi#build_from_source" rel="nofollow">here</a>. However, there is nothing for any kind of SBC (like Raspberry Pi, ODroid, Pine64, etc) with a aarch64 architecture.</p> <p dir="auto">I cannot use the Python wheel. I need the C library to bind to a different language.</p> <p dir="auto"><strong>Will this change the current api? How?</strong></p> <p dir="auto">No.</p> <p dir="auto"><strong>Who will benefit with this feature?</strong></p> <p dir="auto">Anyone using a SBC with a aarch64 OS.</p>
1
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.0-beta</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for (const v of [1,2,3]);"><pre class="notranslate"><span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">v</span> <span class="pl-k">of</span> <span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span><span class="pl-c1">2</span><span class="pl-kos">,</span><span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong></p> <p dir="auto">A compiler error: re-assignment of <code class="notranslate">const</code>-variable in loop.</p> <p dir="auto"><strong>Actual behavior:</strong></p> <p dir="auto">Compiled successfully.</p>
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.7</p> <p dir="auto"><strong>Code</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type OnlyNumberKeys = {[key: number]: any}; let a: OnlyNumberKeys = {}; a[&quot;abcd&quot;] = 1; // No error? let x = a[&quot;abcd&quot;]; // No error?"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">OnlyNumberKeys</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">[</span><span class="pl-s1">key</span>: <span class="pl-smi">number</span><span class="pl-kos">]</span>: <span class="pl-smi">any</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">a</span>: <span class="pl-smi">OnlyNumberKeys</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-s1">a</span><span class="pl-kos">[</span><span class="pl-s">"abcd"</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// No error?</span> <span class="pl-k">let</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span><span class="pl-kos">[</span><span class="pl-s">"abcd"</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">// No error?</span></pre></div> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type OnlyStringKeys = {[key: string]: any}; let b: OnlyStringKeys = {}; b[1234] = 1; // No error? let y = b[1234]; // No error?"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">OnlyStringKeys</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">[</span><span class="pl-s1">key</span>: <span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">any</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-s1">b</span>: <span class="pl-smi">OnlyStringKeys</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-s1">b</span><span class="pl-kos">[</span><span class="pl-c1">1234</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// No error?</span> <span class="pl-k">let</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span><span class="pl-kos">[</span><span class="pl-c1">1234</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">// No error?</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> Should error</p> <p dir="auto"><strong>Actual behavior:</strong><br> Doesn't error</p> <p dir="auto"><em>(Sorry if this is a duplicate but a search did not yield anything on this)</em></p>
0
<p dir="auto">The quality of <code class="notranslate">three.js</code> tagged questions on SO is horrible. Each question that makes sense and is properly formatted is followed by 20 that are just incomprehensible, RTFM, <code class="notranslate">i've no idea wtf im doing</code> sort of thing. At one point I started getting frustrated, but for some reason, I can't stop looking at them. I'm under the impression that some experts who used to frequent SO have stopped doing so.</p> <p dir="auto">I'm still learning how SO works, so I posted this, and got some interesting information, but i'm not sure what to make out of it:<br> <a href="https://meta.stackoverflow.com/questions/357466/three-js-tag-has-really-bad-questions" rel="nofollow">https://meta.stackoverflow.com/questions/357466/three-js-tag-has-really-bad-questions</a></p> <ol dir="auto"> <li>40% overall unanswered questions seem to be really bad, average is 29%, good is 10-15%. Sounds like it's <strong>worse than one of the two worst tags,</strong> almost as bad as the other.</li> <li>three.js seems to end up in the same spot as categories that attract many non-programmer types <code class="notranslate">3D graphics attracts a lot of beginners who neither have the math skills nor the programming skills to handle these APIs.</code></li> </ol> <p dir="auto">Since people do get referred to SO from here:<br> <code class="notranslate">If you need help, please use [stackoverflow](http://stackoverflow.com/questions/tagged/three.js).</code></p> <p dir="auto">I thought i'd share this.</p> <p dir="auto">I'm also under the impression that a few years ago, there were more good quality questions overall. I've even seen links to West Langley's answers on SO as a three learning reference, but it looks like those are coming in less frequently.</p> <p dir="auto">I've heard that the resources and tutorials can be quite out of date. Three moves quite quick, and often has major overhauls (?), which would explain this. Maybe having more official tutorials that have to be fixed and working the same way examples do could address this?</p> <p dir="auto">Maybe some strategy and effort could be put to clean up SO's [three.js] tag. Perhaps rather than sending people to SO, we could send them to the docs, and possibly some three agnostic literature on graphics, webgl, math etc.</p> <p dir="auto">Also might be worth having a discussion on who uses three, and how. It feels that all the shortcuts that three offers work while someone is copy pasting the code, as soon as some modification occurs, things start breaking up.</p> <p dir="auto">The current situation could be good for the experts though. The more people dive into projects thinking it will be easy but get stuck, the more consultancy gigs should come, maybe i just need to jump on that boat.</p>
<p dir="auto">The <code class="notranslate">shading</code> property has been removed from <code class="notranslate">MeshLambertMaterial</code>, it is only rendered the <code class="notranslate">SmoothShading</code> way.</p> <p dir="auto">Is it the desired effect ? Phong looks heavier to get this result.</p>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number:Microsoft Windows NT 10.0.18363.0 Windows Terminal version (if applicable):0.6.2951.0 Any other software? no"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number:Microsoft Windows NT 10.0.18363.0 Windows Terminal version (if applicable):0.6.2951.0 Any other software? no </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">on a touchpad capable device try scroll using the 2 finger gesture on any terminal<br> with some lines on the buffer</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">an slow by line scrolling like on conhost.exe</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">1st - it is too sensitive, milimeters of movement on the touchpad is enough to go all the way up or down on the buffer<br> 2nd - it scrolls 4 lines at a time instead of 1 line</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18898.1000], Microsoft Windows [Version 10.0.18908.1000] (both) Windows Terminal version (if applicable): commit d24d647 and even before. PC Info: Samsung NT901X5L"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18898.1000], Microsoft Windows [Version 10.0.18908.1000] (both) Windows Terminal version (if applicable): commit d24d647 and even before. PC Info: Samsung NT901X5L </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Just scroll (up and down) by touchpad. (two-hand scrolling)<br> That's all.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Smooth scrolling</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Terminal scrolls too fast.</p>
1
<p dir="auto">It appears that the Angular2, http and router typings files are no longer included in the npm package under bundles/typings.<br> Are they hosted somewhere else now?</p>
<p dir="auto">As a follow up to the closed PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115358880" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/5149" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/5149/hovercard" href="https://github.com/angular/angular/pull/5149">#5149</a> and in particular to the <a href="https://github.com/angular/angular/pull/5149#issue-115358880" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/5149/hovercard">comments on the downside of the approach taken</a> here is a new proposal:</p> <ul dir="auto"> <li>let's produce 2 UMD bundles: <ul dir="auto"> <li>core + RxJS</li> <li>core + http + router + RxJS</li> </ul> </li> <li>those bundles, being UMD, should be usable via a <code class="notranslate">&lt;script&gt;</code> tag and CJS-based tooling (WebPack etc.)</li> <li>those bundles won't contain "truly" external dependencies (zone, reflect-metadata, shims) - we are going to publish a separate file with those</li> </ul> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jeffbcross/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jeffbcross">@jeffbcross</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/robwormald/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/robwormald">@robwormald</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vsavkin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vsavkin">@vsavkin</a> - feel free to comment.</p> <p dir="auto">//cc.: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/IgorMinar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/IgorMinar">@IgorMinar</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rkirov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rkirov">@rkirov</a></p>
0
<p dir="auto">This doesn't parse in 0.3.0, and I'm not sure it's entirely-documented syntax on release-0.3 at the moment. There was a backport somewhere to make it parse, but it looks like there's a bug.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" | | |_| | | | (_| | | Version 0.3.7-pre+15 (2015-03-02 23:43 UTC) _/ |\__'_|_|_|\__'_| | Commit 0f0b136* (7 days old release-0.3) |__/ | x86_64-linux-gnu julia&gt; [1, 2, 3, 4;] == [3, 2, 1, 4] true"><pre class="notranslate"><code class="notranslate"> | | |_| | | | (_| | | Version 0.3.7-pre+15 (2015-03-02 23:43 UTC) _/ |\__'_|_|_|\__'_| | Commit 0f0b136* (7 days old release-0.3) |__/ | x86_64-linux-gnu julia&gt; [1, 2, 3, 4;] == [3, 2, 1, 4] true </code></pre></div>
<p dir="auto">On <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/beb54861478f70e855f1a84fe49dc198620c102e/hovercard" href="https://github.com/JuliaLang/julia/commit/beb54861478f70e855f1a84fe49dc198620c102e"><tt>beb5486</tt></a>:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; [1,2,3;] 3-element Array{Int64,1}: 2 1 3 julia&gt; [1,2,3,4;] 4-element Array{Int64,1}: 3 2 1 4 julia&gt; [1,2;] 2-element Array{Int64,1}: 1 2"><pre class="notranslate">julia<span class="pl-k">&gt;</span> [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>;] <span class="pl-c1">3</span><span class="pl-k">-</span>element Array{Int64,<span class="pl-c1">1</span>}<span class="pl-k">:</span> <span class="pl-c1">2</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span> julia<span class="pl-k">&gt;</span> [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>;] <span class="pl-c1">4</span><span class="pl-k">-</span>element Array{Int64,<span class="pl-c1">1</span>}<span class="pl-k">:</span> <span class="pl-c1">3</span> <span class="pl-c1">2</span> <span class="pl-c1">1</span> <span class="pl-c1">4</span> julia<span class="pl-k">&gt;</span> [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>;] <span class="pl-c1">2</span><span class="pl-k">-</span>element Array{Int64,<span class="pl-c1">1</span>}<span class="pl-k">:</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span></pre></div> <p dir="auto">This syntax is not supported on v0.3 (probably because of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42098881" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/8250" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/8250/hovercard" href="https://github.com/JuliaLang/julia/pull/8250">#8250</a>). I would expect this to behave the same as, e.g. <code class="notranslate">[1,2,3]</code>, but maybe that's naive. I definitely wasn't expecting this, though.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.1</li> <li>Operating System version: MacOS 10.14.3</li> <li>Java version: 1.8.0_152</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>multiple threads invoke same dubbo method with validation</li> <li>two threads invoke <a href="https://github.com/apache/incubator-dubbo/blob/c1be6c61605c76c7656bde921b2a3505ebd8db1e/dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidator.java#L112">https://github.com/apache/incubator-dubbo/blob/c1be6c61605c76c7656bde921b2a3505ebd8db1e/dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidator.java#L112</a> at same time</li> <li>thread1 calls <a href="https://github.com/apache/incubator-dubbo/blob/c1be6c61605c76c7656bde921b2a3505ebd8db1e/dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidator.java#L123">https://github.com/apache/incubator-dubbo/blob/c1be6c61605c76c7656bde921b2a3505ebd8db1e/dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidator.java#L123</a></li> <li>thread2 calls <code class="notranslate">CtClass ctClass = pool.makeClass(parameterClassName);</code> before thread1 calls <code class="notranslate">CtField ctField = CtField.make("public " + type.getCanonicalName() + " " + fieldName + ";", pool.getCtClass(parameterClassName));</code></li> <li>thread1 calls <a href="https://github.com/apache/incubator-dubbo/blob/c1be6c61605c76c7656bde921b2a3505ebd8db1e/dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidator.java#L155">https://github.com/apache/incubator-dubbo/blob/c1be6c61605c76c7656bde921b2a3505ebd8db1e/dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidator.java#L155</a>, then thread1 get the class which is generated by thread2</li> <li>thread1 calls <a href="https://github.com/apache/incubator-dubbo/blob/c1be6c61605c76c7656bde921b2a3505ebd8db1e/dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidator.java#L157">https://github.com/apache/incubator-dubbo/blob/c1be6c61605c76c7656bde921b2a3505ebd8db1e/dubbo-filter/dubbo-filter-validation/src/main/java/org/apache/dubbo/validation/support/jvalidation/JValidator.java#L157</a> and throws <code class="notranslate">javassist.CannotCompileException: cannot add</code></li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <blockquote> <p dir="auto">thread1 calls the method without validation</p> </blockquote> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="javassist.CannotCompileException: cannot add at javassist.CtClassType.addField(CtClassType.java:1283) at javassist.CtClass.addField(CtClass.java:1089) at com.alibaba.dubbo.validation.support.jvalidation.JValidator.getMethodParameterBean(JValidator.java:164) at com.alibaba.dubbo.validation.support.jvalidation.JValidator.validate(JValidator.java:273) at com.alibaba.dubbo.validation.filter.ValidationFilter.invoke(ValidationFilter.java:48) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:61) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:74) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:41) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:77) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:71) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:131) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:37) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:37) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:98) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:96) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:168) at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:50) at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:79) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)"><pre class="notranslate"><code class="notranslate">javassist.CannotCompileException: cannot add at javassist.CtClassType.addField(CtClassType.java:1283) at javassist.CtClass.addField(CtClass.java:1089) at com.alibaba.dubbo.validation.support.jvalidation.JValidator.getMethodParameterBean(JValidator.java:164) at com.alibaba.dubbo.validation.support.jvalidation.JValidator.validate(JValidator.java:273) at com.alibaba.dubbo.validation.filter.ValidationFilter.invoke(ValidationFilter.java:48) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:61) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:74) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:41) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:77) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:71) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:131) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:37) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:37) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:68) at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:98) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:96) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:168) at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:50) at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:79) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3</li> <li>Operating System version: 10.12.6</li> <li>Java version: 1.8</li> </ul> <p dir="auto">now dubbo provider can only have a tag, assuming that consumer with a tag A or Tag B can send request to provider with tagA and tagB by tag-router.</p>
0
<ol dir="auto"> <li>Create a new JS file in a project set to ES6</li> <li>Add the following code<br> var mytext = <code class="notranslate">some ES6 \'text\'</code>;<br> // this comment is brown<br> console.log('the console log is brown but this string inside it is coloured!');</li> </ol> <p dir="auto">You will see that everything after the first ' is brown. I am aware that there is no need to use the backslash to escape the ' character, but as far as I am aware it is also not invalid javascript. And if it is invalid, I would expect some other kind of error to indicate that it is invalid.</p>
<p dir="auto">Right now, those keywords like <code class="notranslate">import</code> <code class="notranslate">class</code> <code class="notranslate">from</code> are all plain white.</p>
1
<p dir="auto">xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="325097289" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/21160" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/21160/hovercard" href="https://github.com/pandas-dev/pandas/pull/21160">#21160</a></p> <p dir="auto">it maybe possible to change the impl of intna to be backed by</p> <ul dir="auto"> <li><code class="notranslate">bitarray</code> (for mask)</li> <li><code class="notranslate">pyarrow</code> (for both)</li> </ul> <p dir="auto">to improve the memory footprint of the mask</p>
<p dir="auto">Currently, our nullable / masked extension arrays (boolean, integer, for now) are using a numpy boolean array as their <code class="notranslate">_mask</code> to keep track of missing values. A potential route for improving memory and performance would be using a bitarray instead of a boolean numpy array (which is a byte per value).</p> <p dir="auto">This should require some exploration: what are options how to implement this? (existing libraries, custom implementation) What is the performance impact? (some things like masking will also be slower, since we still rely on numpy for that, which needs boolean arrays) Is this worth it to do a custom implementation rather than using pyarrow for this? etc</p>
1
<p dir="auto">Hi,<br> I encountered a 'problem' when my program tried to groupby a dataframe with an empty (ie full of nan) column. Here a code sample with pandas 0.19.2 :</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [4]: a = pd.DataFrame({'a': [2,2,3,4,5], 'b': [5,5,6,6,7], 'c': [np.nan]*5, 'sum': [1]*5}) In [5]: a Out[5]: a b c sum 0 2 5 NaN 1 1 2 5 NaN 1 2 3 6 NaN 1 3 4 6 NaN 1 4 5 7 NaN 1 In [6]: a.groupby(['a','b','c']).agg({'sum':'sum'}) Out[6]: Empty DataFrame Columns: [sum] Index: [] In [7]: a.groupby(['a','b']).agg({'sum':'sum'}) Out[7]: sum a b 2 5 2 3 6 1 4 6 1 5 7 1"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'a'</span>: [<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>], <span class="pl-s">'b'</span>: [<span class="pl-c1">5</span>,<span class="pl-c1">5</span>,<span class="pl-c1">6</span>,<span class="pl-c1">6</span>,<span class="pl-c1">7</span>], <span class="pl-s">'c'</span>: [<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>]<span class="pl-c1">*</span><span class="pl-c1">5</span>, <span class="pl-s">'sum'</span>: [<span class="pl-c1">1</span>]<span class="pl-c1">*</span><span class="pl-c1">5</span>}) <span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">a</span> <span class="pl-v">Out</span>[<span class="pl-c1">5</span>]: <span class="pl-s1">a</span> <span class="pl-s1">b</span> <span class="pl-s1">c</span> <span class="pl-s1">sum</span> <span class="pl-c1">0</span> <span class="pl-c1">2</span> <span class="pl-c1">5</span> <span class="pl-v">NaN</span> <span class="pl-c1">1</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">5</span> <span class="pl-v">NaN</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">6</span> <span class="pl-v">NaN</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span> <span class="pl-c1">4</span> <span class="pl-c1">6</span> <span class="pl-v">NaN</span> <span class="pl-c1">1</span> <span class="pl-c1">4</span> <span class="pl-c1">5</span> <span class="pl-c1">7</span> <span class="pl-v">NaN</span> <span class="pl-c1">1</span> <span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">a</span>.<span class="pl-en">groupby</span>([<span class="pl-s">'a'</span>,<span class="pl-s">'b'</span>,<span class="pl-s">'c'</span>]).<span class="pl-en">agg</span>({<span class="pl-s">'sum'</span>:<span class="pl-s">'sum'</span>}) <span class="pl-v">Out</span>[<span class="pl-c1">6</span>]: <span class="pl-v">Empty</span> <span class="pl-v">DataFrame</span> <span class="pl-v">Columns</span>: [<span class="pl-s1">sum</span>] <span class="pl-v">Index</span>: [] <span class="pl-v">In</span> [<span class="pl-c1">7</span>]: <span class="pl-s1">a</span>.<span class="pl-en">groupby</span>([<span class="pl-s">'a'</span>,<span class="pl-s">'b'</span>]).<span class="pl-en">agg</span>({<span class="pl-s">'sum'</span>:<span class="pl-s">'sum'</span>}) <span class="pl-v">Out</span>[<span class="pl-c1">7</span>]: <span class="pl-s1">sum</span> <span class="pl-s1">a</span> <span class="pl-s1">b</span> <span class="pl-c1">2</span> <span class="pl-c1">5</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span> <span class="pl-c1">6</span> <span class="pl-c1">1</span> <span class="pl-c1">4</span> <span class="pl-c1">6</span> <span class="pl-c1">1</span> <span class="pl-c1">5</span> <span class="pl-c1">7</span> <span class="pl-c1">1</span></pre></div> <p dir="auto">I think we could throw a warning (or maybe an error) when this case is encountered in addition to return an empty dataframe.</p> <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.1.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-75-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 <p dir="auto">pandas: 0.19.2<br> nose: 1.3.7<br> pip: 9.0.1<br> setuptools: 27.2.0<br> Cython: 0.25.2<br> numpy: 1.11.3<br> scipy: 0.18.1<br> statsmodels: 0.6.1<br> xarray: None<br> IPython: 5.1.0<br> sphinx: 1.5.1<br> patsy: 0.4.1<br> dateutil: 2.6.0<br> pytz: 2016.10<br> blosc: None<br> bottleneck: 1.2.0<br> tables: 3.3.0<br> numexpr: 2.6.1<br> matplotlib: 2.0.0<br> openpyxl: 2.4.1<br> xlrd: 1.0.0<br> xlwt: 1.2.0<br> xlsxwriter: 0.9.6<br> lxml: 3.7.2<br> bs4: 4.5.3<br> html5lib: None<br> httplib2: None<br> apiclient: None<br> sqlalchemy: 1.1.5<br> pymysql: 0.7.9.None<br> psycopg2: None<br> jinja2: 2.9.4<br> boto: 2.45.0<br> pandas_datareader: None</p> </details>
<p dir="auto">ENH: maybe for now just provide a warning if dropping the nan rows when pivotting...</p> <p dir="auto">rom ml</p> <p dir="auto"><a href="http://stackoverflow.com/questions/16860172/python-pandas-pivot-table-silently-drops-indices-with-nans" rel="nofollow">http://stackoverflow.com/questions/16860172/python-pandas-pivot-table-silently-drops-indices-with-nans</a></p> <p dir="auto">This is effectivly trying to groupby on a NaN, currently not allowed</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [13]: a = [['a', 'b', 12, 12, 12], ['a', nan, 12.3, 233., 12], ['b', 'a', 123.23, 123, 1], ['a', 'b', 1, 1, 1.]] In [14]: df = DataFrame(a, columns=['a', 'b', 'c', 'd', 'e']) In [15]: df.groupby(['a','b']).sum() Out[15]: c d e a b a b 13.00 13 13 b a 123.23 123 1"><pre class="notranslate"><code class="notranslate">In [13]: a = [['a', 'b', 12, 12, 12], ['a', nan, 12.3, 233., 12], ['b', 'a', 123.23, 123, 1], ['a', 'b', 1, 1, 1.]] In [14]: df = DataFrame(a, columns=['a', 'b', 'c', 'd', 'e']) In [15]: df.groupby(['a','b']).sum() Out[15]: c d e a b a b 13.00 13 13 b a 123.23 123 1 </code></pre></div> <p dir="auto">Workaround to fill the index with a dummy, pivot, and replace</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" In [31]: df2 = df.copy() In [32]: df2['dummy'] = np.nan In [33]: df2['b'] = df2['b'].fillna('dummy') In [34]: df2 Out[34]: a b c d e dummy 0 a b 12.00 12 12 NaN 1 a dummy 12.30 233 12 NaN 2 b a 123.23 123 1 NaN 3 a b 1.00 1 1 NaN In [35]: df2.pivot_table(rows=['a', 'b'], values=['c', 'd', 'e'], aggfunc=sum) Out[35]: a b c d e 0 a b 13.00 13 13 1 a dummy 12.30 233 12 2 b a 123.23 123 1 In [36]: df2.pivot_table(rows=['a', 'b'], values=['c', 'd', 'e'], aggfunc=sum).replace('dummy',np.nan) Out[36]: a b c d e 0 a b 13.00 13 13 1 a NaN 12.30 233 12 2 b a 123.23 123 1 "><pre class="notranslate"><code class="notranslate"> In [31]: df2 = df.copy() In [32]: df2['dummy'] = np.nan In [33]: df2['b'] = df2['b'].fillna('dummy') In [34]: df2 Out[34]: a b c d e dummy 0 a b 12.00 12 12 NaN 1 a dummy 12.30 233 12 NaN 2 b a 123.23 123 1 NaN 3 a b 1.00 1 1 NaN In [35]: df2.pivot_table(rows=['a', 'b'], values=['c', 'd', 'e'], aggfunc=sum) Out[35]: a b c d e 0 a b 13.00 13 13 1 a dummy 12.30 233 12 2 b a 123.23 123 1 In [36]: df2.pivot_table(rows=['a', 'b'], values=['c', 'd', 'e'], aggfunc=sum).replace('dummy',np.nan) Out[36]: a b c d e 0 a b 13.00 13 13 1 a NaN 12.30 233 12 2 b a 123.23 123 1 </code></pre></div>
1
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import pandas as pd &gt;&gt;&gt; from collections import OrderedDict &gt;&gt;&gt; od = [OrderedDict([('z', 0), ('a', 1), ('*', 2)])] &gt;&gt;&gt; pd.DataFrame(od) * a z 0 2 1 0 &gt;&gt;&gt; pd.DataFrame.from_dict(od) * a z 0 2 1 0"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">from</span> <span class="pl-s1">collections</span> <span class="pl-k">import</span> <span class="pl-v">OrderedDict</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">od</span> <span class="pl-c1">=</span> [<span class="pl-v">OrderedDict</span>([(<span class="pl-s">'z'</span>, <span class="pl-c1">0</span>), (<span class="pl-s">'a'</span>, <span class="pl-c1">1</span>), (<span class="pl-s">'*'</span>, <span class="pl-c1">2</span>)])] <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">od</span>) <span class="pl-c1">*</span> <span class="pl-s1">a</span> <span class="pl-s1">z</span> <span class="pl-c1">0</span> <span class="pl-c1">2</span> <span class="pl-c1">1</span> <span class="pl-c1">0</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>.<span class="pl-en">from_dict</span>(<span class="pl-s1">od</span>) <span class="pl-c1">*</span> <span class="pl-s1">a</span> <span class="pl-s1">z</span> <span class="pl-c1">0</span> <span class="pl-c1">2</span> <span class="pl-c1">1</span> <span class="pl-c1">0</span></pre></div> <p dir="auto">If OrderedDicts are used, I would expect the column order of the first OrderDict that is encountered to be preserved, as the following:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; pd.DataFrame(od, columns=od[0].keys()) z a * 0 0 1 2 &gt;&gt;&gt;"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">od</span>, <span class="pl-s1">columns</span><span class="pl-c1">=</span><span class="pl-s1">od</span>[<span class="pl-c1">0</span>].<span class="pl-en">keys</span>()) <span class="pl-s1">z</span> <span class="pl-s1">a</span> <span class="pl-c1">*</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">If different orders occur in the list, the earlier would overwrite the later. If new columns are introduced with subsequent list entries, I would expect all new columns to be appended to the original columns, with their relative order preserved.</p>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Your code here "><pre class="notranslate"><span class="pl-c"># Your code here</span></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">[this should explain <strong>why</strong> the current behaviour is a problem and why the expected output is a better solution.]</p> <p dir="auto"><strong>Note</strong>: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!</p> <p dir="auto"><strong>Note</strong>: Many problems can be resolved by simply upgrading <code class="notranslate">pandas</code> to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if <code class="notranslate">master</code> addresses this issue, but that is not necessary.</p> <p dir="auto">For documentation-related issues, you can check the latest versions of the docs on <code class="notranslate">master</code> here:</p> <p dir="auto"><a href="https://pandas-docs.github.io/pandas-docs-travis/" rel="nofollow">https://pandas-docs.github.io/pandas-docs-travis/</a></p> <p dir="auto">If the issue has not been resolved there, go ahead and file it in the issue tracker.</p> <h4 dir="auto">Expected Output</h4> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <p dir="auto">[paste the output of <code class="notranslate">pd.show_versions()</code> here below this line]</p> </details>
0
<p dir="auto">Hi,</p> <p dir="auto">when switching the 'action' and 'dropdown' button in the segmented input group from the docs causes a wrong border radius for the buttons.<br> Interestingly enough it works fine on the left side, but comes out wrong on the right side. See screenshot for clarity:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/adcede723ec10b8649d84950b6681a5a282247ca5988a805f68629206c2a5e0f/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313130353035362f323439313837352f64343565306533342d623230322d313165332d383635332d3835306337623435653636382e706e67"><img src="https://camo.githubusercontent.com/adcede723ec10b8649d84950b6681a5a282247ca5988a805f68629206c2a5e0f/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313130353035362f323439313837352f64343565306533342d623230322d313165332d383635332d3835306337623435653636382e706e67" alt="screen shot 2014-03-22 at 21 44 02" data-canonical-src="https://f.cloud.github.com/assets/1105056/2491875/d45e0e34-b202-11e3-8653-850c7b45e668.png" style="max-width: 100%;"></a></p>
<p dir="auto"><a href="https://dl.dropboxusercontent.com/u/37682778/index.html" rel="nofollow">https://dl.dropboxusercontent.com/u/37682778/index.html</a></p>
1
<p dir="auto">After i integrated <code class="notranslate">console.command</code> tags into Shopware <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156152216" data-permission-text="Title is private" data-url="https://github.com/shopware5/shopware/issues/559" data-hovercard-type="pull_request" data-hovercard-url="/shopware5/shopware/pull/559/hovercard" href="https://github.com/shopware5/shopware/pull/559">shopware5/shopware#559</a> we hade a discussion about <code class="notranslate">Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass</code> and its FrameworkBundle dependency.</p> <p dir="auto">A project with <code class="notranslate">symfony/console</code> and <code class="notranslate">symfony/dependency-injection</code> need to copy this CompilerPass. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bcremer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bcremer">@bcremer</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/xabbuh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xabbuh">@xabbuh</a> had some ideas to move this class.</p> <p dir="auto">Maybe we can optimize command registration over dic somehow.</p>
<p dir="auto">Symfony: 2.5.9<br> Doctrine ORM: 2.4.6<br> Doctrine bundle: 1.2</p> <p dir="auto">Hello -</p> <p dir="auto">I have come across a strange issue with processing form collections in Symfony.</p> <p dir="auto">I have a User entity that has a collection of List Items associated with it. Each List Item entity also references another entity, Topic. I have setup a UNIQUE constraint on the List Item table that will only allow unique combinations of the User and Topic foreign keys. Essentially - no List Items with a duplicate reference to the Topic entity are allowed for each user.</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/** * @ORM\Entity(repositoryClass=&quot;App\MyBundle\Repository\ListItemRepository&quot;) * @ORM\Table( * name=&quot;list_items&quot;, * uniqueConstraints={@ORM\UniqueConstraint(name=&quot;list_item_user_topic&quot;, columns={&quot;user_id&quot;,&quot;topic_id&quot;})} * ) * * @Gedmo\SoftDeleteable(fieldName=&quot;deleted_at&quot;, timeAware=true) */ class ListItem { ..."><pre class="notranslate"><span class="pl-c">/**</span> <span class="pl-c"> * @ORM\Entity(repositoryClass="App\MyBundle\Repository\ListItemRepository")</span> <span class="pl-c"> * @ORM\Table(</span> <span class="pl-c"> * name="list_items",</span> <span class="pl-c"> * uniqueConstraints={@ORM\UniqueConstraint(name="list_item_user_topic", columns={"user_id","topic_id"})}</span> <span class="pl-c"> * )</span> <span class="pl-c"> *</span> <span class="pl-c"> * @Gedmo\SoftDeleteable(fieldName="deleted_at", timeAware=true)</span> <span class="pl-c"> */</span> <span class="pl-k">class</span> <span class="pl-v">ListItem</span> { ...</pre></div> <p dir="auto">I am using Symfony form builder to build the form. This is working great. I have added javascript for add/remove buttons on the frontend. In general - I am able to save and persist the form collection without any problems.</p> <p dir="auto">However - there are time when I will be attempting to persist the User entity and the List Item form collection and it will fail with an integrity constraint violation.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '6-1' for key 'list_item_user_topic'"><pre class="notranslate"><code class="notranslate">SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '6-1' for key 'list_item_user_topic' </code></pre></div> <p dir="auto">This was initially very strange to me because I also have an event listener that is listening to the Doctrine "onFlush" event that does the following:</p> <ol dir="auto"> <li>Check if the entity is a List Item</li> <li>If it is a List Item, it checks the database for an existing record for that user</li> <li>Since I am using SoftDeletes - if the record exists and it's been soft deleted - it will un-delete the record and replace the new duplicate record with it - maintaining the record in the database.</li> <li>If a duplicate record that is published is found - it will simply remove the new duplicate record from the scheduled inserts and keep the one in the database.</li> </ol> <p dir="auto">This is all happening onFlush - which occurs AFTER handleRequest. What I discovered is that when the form is being processed - something is happening within the handleRequest() method that is swapping out foreign key references on different rows. Like so:</p> <p dir="auto">Original Item List for a user:</p> <table role="table"> <tbody><tr><td>ID</td><td>user_id</td><td>topic_id</td><td>info</td></tr> <tr><td>1</td><td>10</td><td>57</td><td>extra info</td></tr> <tr><td>2</td><td>10</td><td>83</td><td>extra info</td></tr> <tr><td>3</td><td>10</td><td>233</td><td>extra info</td></tr> </tbody></table> <p dir="auto">After form passes through the handleRequest() method:</p> <table role="table"> <tbody><tr><td>ID</td><td>user_id</td><td>topic_id</td><td>info</td></tr> <tr><td>1</td><td>10</td><td>233</td><td>extra info</td></tr> <tr><td>2</td><td>10</td><td>83</td><td>extra info</td></tr> <tr><td>3</td><td>10</td><td>57</td><td>extra info</td></tr> </tbody></table> <p dir="auto">This then causes the integrity constraint violation when it attempts to write the first record because it is violating the unique constraint on the List Items table. What I do not understand is how/why the handleRequest() method would be swapping foreign keys on update.</p> <p dir="auto">The other really strange thing is that in many cases - the form will persist fine for a user. I hate to use the word "random" here but I have not been able to identify a way to duplicate the issue other than just working with the entity for a while and performing CRUD operations on it. Many times the form persists fine - other times the foreign key references get swapped and I am unable to submit the form to update the entity because of the UNIQUE constraint.</p> <p dir="auto">Has anyone experienced similar issues or have some insight on why this might be occurring? Is this a bug in the handleRequest() method? This will occur even if I have not made any changes to the List Item collection. As in - if I edit a user and simply submit the form without making any changes - this behavior will still occur.</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" public function editAction($id, Request $request) { // Get entity manager $em = $this-&gt;getDoctrine()-&gt;getManager(); // Fetch data to populate form $user = $this -&gt;get('user_repository') -&gt;fetchProfileById($id) -&gt;getQuery() -&gt;getSingleResult(); // Build form $form = $this-&gt;createForm('user', $user); // Handle request $form-&gt;handleRequest($request); // Form validation if ($form-&gt;isValid()) { try { $em-&gt;flush(); $message = 'User updated successfully!'; // Return successful message $this-&gt;get('session') -&gt;getFlashBag() -&gt;add('success', $message); } catch (Exception $e) { $message = 'There was an error updating the user.' . $e-&gt;getMessage(); // Return error message $this-&gt;get('session') -&gt;getFlashBag() -&gt;add('error', $message); } // Return view return new RedirectResponse($this-&gt;generateUrl('users_list')); } }"><pre class="notranslate"> <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">editAction</span>(<span class="pl-s1"><span class="pl-c1">$</span>id</span>, <span class="pl-smi"><span class="pl-smi">Request</span></span> <span class="pl-s1"><span class="pl-c1">$</span>request</span>) { <span class="pl-c">// Get entity manager</span> <span class="pl-s1"><span class="pl-c1">$</span>em</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">getDoctrine</span>()-&gt;<span class="pl-en">getManager</span>(); <span class="pl-c">// Fetch data to populate form</span> <span class="pl-s1"><span class="pl-c1">$</span>user</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span> -&gt;<span class="pl-en">get</span>(<span class="pl-s">'user_repository'</span>) -&gt;<span class="pl-en">fetchProfileById</span>(<span class="pl-s1"><span class="pl-c1">$</span>id</span>) -&gt;<span class="pl-en">getQuery</span>() -&gt;<span class="pl-en">getSingleResult</span>(); <span class="pl-c">// Build form</span> <span class="pl-s1"><span class="pl-c1">$</span>form</span> = <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">createForm</span>(<span class="pl-s">'user'</span>, <span class="pl-s1"><span class="pl-c1">$</span>user</span>); <span class="pl-c">// Handle request</span> <span class="pl-s1"><span class="pl-c1">$</span>form</span>-&gt;<span class="pl-en">handleRequest</span>(<span class="pl-s1"><span class="pl-c1">$</span>request</span>); <span class="pl-c">// Form validation</span> <span class="pl-k">if</span> (<span class="pl-s1"><span class="pl-c1">$</span>form</span>-&gt;<span class="pl-en">isValid</span>()) { <span class="pl-k">try</span> { <span class="pl-s1"><span class="pl-c1">$</span>em</span>-&gt;<span class="pl-en">flush</span>(); <span class="pl-s1"><span class="pl-c1">$</span>message</span> = <span class="pl-s">'User updated successfully!'</span>; <span class="pl-c">// Return successful message</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'session'</span>) -&gt;<span class="pl-en">getFlashBag</span>() -&gt;<span class="pl-en">add</span>(<span class="pl-s">'success'</span>, <span class="pl-s1"><span class="pl-c1">$</span>message</span>); } <span class="pl-k">catch</span> (<span class="pl-smi"><span class="pl-smi">Exception</span></span> <span class="pl-s1"><span class="pl-c1">$</span>e</span>) { <span class="pl-s1"><span class="pl-c1">$</span>message</span> = <span class="pl-s">'There was an error updating the user.'</span> . <span class="pl-s1"><span class="pl-c1">$</span>e</span>-&gt;<span class="pl-en">getMessage</span>(); <span class="pl-c">// Return error message</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">get</span>(<span class="pl-s">'session'</span>) -&gt;<span class="pl-en">getFlashBag</span>() -&gt;<span class="pl-en">add</span>(<span class="pl-s">'error'</span>, <span class="pl-s1"><span class="pl-c1">$</span>message</span>); } <span class="pl-c">// Return view</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">RedirectResponse</span>(<span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-en">generateUrl</span>(<span class="pl-s">'users_list'</span>)); } }</pre></div>
0
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd dat = pd.DataFrame([ {'a':1,'b':2,'c':3}, {'a':1,'b':2,'c':3} ]) dat.drop_duplicates(subset=['a','d'])"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">dat</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>([ {<span class="pl-s">'a'</span>:<span class="pl-c1">1</span>,<span class="pl-s">'b'</span>:<span class="pl-c1">2</span>,<span class="pl-s">'c'</span>:<span class="pl-c1">3</span>}, {<span class="pl-s">'a'</span>:<span class="pl-c1">1</span>,<span class="pl-s">'b'</span>:<span class="pl-c1">2</span>,<span class="pl-s">'c'</span>:<span class="pl-c1">3</span>} ]) <span class="pl-s1">dat</span>.<span class="pl-en">drop_duplicates</span>(<span class="pl-s1">subset</span><span class="pl-c1">=</span>[<span class="pl-s">'a'</span>,<span class="pl-s">'d'</span>])</pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" a b c 0 1 2 3 "><pre class="notranslate"> <span class="pl-s1">a</span> <span class="pl-s1">b</span> <span class="pl-s1">c</span> <span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">3</span></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">When using <code class="notranslate">drop_duplicates()</code> with the <code class="notranslate">subset</code> option, a warning should probably be raised when trying to subset on a column that doesn't exist.</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.6.3.final.0<br> python-bits: 64<br> OS: Darwin<br> OS-release: 17.5.0<br> machine: x86_64<br> processor: i386<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.UTF-8<br> LOCALE: en_US.UTF-8</p> <p dir="auto">pandas: 0.22.0<br> pytest: 3.3.1<br> pip: 10.0.1<br> setuptools: 28.8.0<br> Cython: None<br> numpy: 1.13.3<br> scipy: 1.0.1<br> pyarrow: None<br> xarray: None<br> IPython: 6.2.1<br> sphinx: None<br> patsy: None<br> dateutil: 2.6.1<br> pytz: 2017.2<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> feather: None<br> matplotlib: 2.2.2<br> openpyxl: None<br> xlrd: 1.1.0<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: 1.0.1<br> sqlalchemy: 1.1.15<br> pymysql: None<br> psycopg2: 2.7 (dt dec pq3 ext lo64)<br> jinja2: 2.10<br> s3fs: None<br> fastparquet: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
<p dir="auto">There's a duplicate plot created when calling <code class="notranslate">Series.hist</code> as well as a duplicate plot when calling <code class="notranslate">groupby.plot</code> that I think would be fixed by resolving this issue.<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16318826" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/4113" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/4113/hovercard" href="https://github.com/pandas-dev/pandas/pull/4113">#4113</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2344354" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/413" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/413/hovercard" href="https://github.com/pandas-dev/pandas/issues/413">#413</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8080244" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/2168" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/2168/hovercard" href="https://github.com/pandas-dev/pandas/issues/2168">#2168</a></p>
0
<h3 dir="auto">Is there an existing issue for this?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li> </ul> <h3 dir="auto">This issue exists in the latest npm version</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">I'm using <code class="notranslate">[email protected]</code> and making use of the workspaces feature, my (simplified) project's structure is the following:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="my_project |_ packages |_ commons |_ logger |_ metrics |_ tracing package.json "><pre class="notranslate">my_project <span class="pl-k">|</span>_ packages <span class="pl-k">|</span>_ commons <span class="pl-k">|</span>_ logger <span class="pl-k">|</span>_ metrics <span class="pl-k">|</span>_ tracing package.json </pre></div> <p dir="auto">In my <code class="notranslate">package.json</code> file I have the following config:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;workspaces&quot;: [ &quot;packages/*&quot; ]"><pre class="notranslate"><span class="pl-ent">"workspaces"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>packages/*<span class="pl-pds">"</span></span> ]</pre></div> <p dir="auto">The project uses TypeScript and the packages <code class="notranslate">logger</code>, <code class="notranslate">metrics</code>, <code class="notranslate">tracing</code> all depend on <code class="notranslate">commons</code>.</p> <p dir="auto">When I run <code class="notranslate">npm ci</code> in my CI/CD environment (GitHub Actions) after installing the dependencies npm tries to build (<code class="notranslate">tsc</code>) the packages but appear to do so in parallel and so the build of all the dependant packages fails because it's being done before <code class="notranslate">commons</code> is ready.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Npm to understand that some packages of the workspace are dependant on others and build accordingly.</p> <p dir="auto">Alternatively to allow me to specify that I want to use a remote (i.e. not linked) version of the package even though the version number is the same as the local one.</p> <h3 dir="auto">Steps To Reproduce</h3> <p dir="auto">Read above, also you can see the error (with <code class="notranslate">logLevel == silly</code>) here <a href="https://github.com/dreamorosi/aws-lambda-powertools-typescript/runs/5345787297?check_suite_focus=true#step:6:5380">https://github.com/dreamorosi/aws-lambda-powertools-typescript/runs/5345787297?check_suite_focus=true#step:6:5380</a> (&lt;- Line that causes the error)</p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>npm: 8.5.2</li> <li>Node.js: lts/fermium (aka 14.x)</li> <li>OS Name: Ubuntu</li> <li>System Model Name: GitHub Actions</li> <li>npm config: N/A</li> </ul>
<h3 dir="auto">Is there an existing issue for this?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li> </ul> <h3 dir="auto">This issue exists in the latest npm version</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto"><code class="notranslate">npm i</code> runs Prepare script concurrently across all workspaces.</p> <p dir="auto">This causes <strong>major</strong> problems when using TypeScript and having one workspace dependent on another, since the build (prepare script) runs concurrently, there is no way to ensure the prepare command is done on one workspace before running on the next.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">It to <strong>actually</strong> follow what the documentation says (<a href="https://docs.npmjs.com/cli/v7/using-npm/workspaces#running-commands-in-the-context-of-workspaces" rel="nofollow">https://docs.npmjs.com/cli/v7/using-npm/workspaces#running-commands-in-the-context-of-workspaces</a>):</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/860375/143791673-95e0e9ed-e268-493b-a5b5-6c7b94064b0e.png"><img width="686" alt="Screen Shot 2021-11-28 at 5 01 30 PM" src="https://user-images.githubusercontent.com/860375/143791673-95e0e9ed-e268-493b-a5b5-6c7b94064b0e.png" style="max-width: 100%;"></a></p> <p dir="auto">Nothing in there says anything about commands being run concurrently, or at the same time.</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>Create 2 workspaces</li> <li>Add a prepare command to each where the second is reliant on the first completing</li> <li>Run <code class="notranslate">npm i</code></li> <li>Notice that everything fails since the commands are run concurrently</li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>npm: 8.1.0</li> <li>Node: v16.13.0</li> <li>OS: macOS 12.1 Beta (21C5039b)</li> <li>platform: MacBook Pro M1 Max</li> <li>npm config:</li> </ul> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; &quot;user&quot; config from /Users/charliefish/.npmrc //npm.pkg.github.com/:_authToken = (protected) //registry.npmjs.com/:_authToken = (protected) registry = &quot;https://npm.network.charlie.fish/&quot; ; node bin location = /Users/charliefish/.nvm/versions/node/v16.13.0/bin/node ; cwd = /Users/charliefish ; HOME = /Users/charliefish ; Run `npm config ls -l` to show all defaults."><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> "user" config from /Users/charliefish/.npmrc</span> //npm.pkg.github.com/:<span class="pl-k">_authToken</span> = (protected) //registry.npmjs.com/:<span class="pl-k">_authToken</span> = (protected) <span class="pl-k">registry</span> = <span class="pl-s"><span class="pl-pds">"</span>https://npm.network.charlie.fish/<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">;</span> node bin location = /Users/charliefish/.nvm/versions/node/v16.13.0/bin/node</span> <span class="pl-c"><span class="pl-c">;</span> cwd = /Users/charliefish</span> <span class="pl-c"><span class="pl-c">;</span> HOME = /Users/charliefish</span> <span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.</span></pre></div>
1
<p dir="auto">Hi,</p> <p dir="auto">I just noticed that the nodes on our (AWS) cluster also have the region in the zone label:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="failure-domain.beta.kubernetes.io/region=eu-west-1 failure-domain.beta.kubernetes.io/zone=eu-west-1a"><pre class="notranslate"><code class="notranslate">failure-domain.beta.kubernetes.io/region=eu-west-1 failure-domain.beta.kubernetes.io/zone=eu-west-1a </code></pre></div> <p dir="auto">This doesn't make sense to me as it prevents you from using the zone label as a selector without knowing the region upfront (which is not always the case).</p> <p dir="auto">If for example you want to duplicate a k8s cluster on a different region it would require me to edit the manifest and change the zone label everywhere to contain the new region.</p> <p dir="auto">So say you have 2 nodes in separate availability zones and want to deploy a pod in availability zone <strong>a</strong> I would expect to just specify the zone as <strong>a</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" nodeSelector: failure-domain.beta.kubernetes.io/zone=a"><pre class="notranslate"><code class="notranslate"> nodeSelector: failure-domain.beta.kubernetes.io/zone=a </code></pre></div> <p dir="auto">If for some reason I need to also specify the region you can alway use the <em>failure-domain.beta.kubernetes.io/region</em> label.</p>
<p dir="auto">Several things do or will use a <code class="notranslate">.kubernetes_auth</code> file:</p> <ul dir="auto"> <li>kubectl</li> <li>cmd/e2e/e2e.go</li> <li>kubecfg</li> <li>I'd like kubelet to use it too.</li> <li>I'd like things in pods that talk to the API to use it too (e.g scheduler running in a pod on a non-master node).</li> </ul> <p dir="auto">They use different ways to specify its location:</p> <ul dir="auto"> <li>kubectl has a persistent flag called <code class="notranslate">auth-path</code></li> <li>e2e test uses <code class="notranslate">--auth_config</code></li> <li>kubecfg uses <code class="notranslate">--auth</code></li> </ul> <p dir="auto">There are several routines for loading the file:</p> <ul dir="auto"> <li>kubecfg uses <code class="notranslate">kubecfg.LoadAuthInfo</code>, which does prompting for user/pass if the file does not exist</li> <li>kubectl uses <code class="notranslate">kubectl.LoadAuthInfo</code>, which is identical to kubecfg code.</li> <li>e2e test uses ``kubecfg.LoadAuthInfo`</li> </ul> <p dir="auto">There are several format definitions:</p> <ul dir="auto"> <li>kubecfg uses <code class="notranslate">kubecfg.AuthInfo</code></li> <li>kubectl uses <code class="notranslate">kubectl.AuthInfo</code> which is identical to kubcfg's <ul dir="auto"> <li>e2e test uses <code class="notranslate">kubecfg.AuthInfo</code> indirectly.<br> The Marshalled file contents then get copied from the kubec*.AuthInfo into the almost-but-not-quite same-named fields of <code class="notranslate">Config</code> in <code class="notranslate">pkg/client</code>.</li> </ul> </li> </ul> <p dir="auto">Questions:</p> <ol dir="auto"> <li>Can we standardize on a flag name for the path to the .kubernetes_auth file?</li> <li>Should there be a single format for a .kubernetes_auth file?</li> <li>Should the go type that defines that format be the same file or a copy of the code in pkg/client? If the former, should the type in pkg/client be put in a less obscure location than pkg/client/helpers.go.</li> <li>Should there be a single parser for a .kubernetes_auth file, to also be used by kubelet, scheduler, etc?</li> </ol>
0
<p dir="auto">This is a feature request to have text optionally end with ellipsis when overflowing its container. (regardless of multi-line or not)</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/abarth/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/abarth">@abarth</a></p>
1
<p dir="auto">by <strong>daniel.crettol</strong>:</p> <pre class="notranslate">package main import "fmt" type A struct { i int } func new1() *A { return &amp;A{10} } func new2() *A { p := A{} p.i = 11 return &amp;p } func dummy(p *A) { } func new3() *A { p := A{} p.i = 12 dummy(&amp;p) return &amp;p } func main() { a1 := new1() fmt.Printf("a1=%p %+v\n", a1, a1) a2 := new2() fmt.Printf("a2=%p %+v\n", a2, a2) a3 := new3() fmt.Printf("a3=%p %+v\n", a3, a3) } $ go build -gcflags '-N' bugtst.go &amp;&amp; ./bugtst a1=0xc208000150 &amp;{i:10} a2=0x7f31b606ddc0 &amp;{i:11} a3=0xc2080001e0 &amp;{i:12} $ go build -gcflags '' bugtst.go &amp;&amp; ./bugtst a1=0xc208000150 &amp;{i:10} a2=0xc2080001a8 &amp;{i:11} a3=0xc2080001e8 &amp;{i:12} $ go version go version go1.3.1 linux/amd64 I had this pattern in a program and the struct generated by the new2 function was corrupted after returned. It seems to me that the compiler does not generate a copy of the structure when using the new2 function but does it when we call the new1 and new2 function. As the -N -L flags seems to be required to debug with gcc, it's really annoying. Happy debugging :)</pre>
<p dir="auto">by <strong>linuxhacker100</strong>:</p> <pre class="notranslate">What is the problem? time.Nanoseconds() returns int64 os.Dir.Mtime_ns is uint64 What is the expected output? What do you see instead? I would expect that all of the standard go libraries would use the same type to represent the same type of data. What is your $GOOS? $GOARCH? AMD64 Linux Which revision are you using? (hg identify) 3887d4d81bca tip Please provide any additional information below. This is not too important. But you should not need to caste to manipulate the same type of data.</pre>
0
<p dir="auto">Apologies if this is the wrong place to ask the question, but I thought it might be better to have this explained somewhere that wasn't as ephemeral as the IRC channel…</p> <p dir="auto">Storing an instance and trying to reuse it results in <a href="https://github.com/facebook/react/blob/eebcf9f888b8a8fc3ed1f31c2789584a235aa089/src/core/ReactComponent.js#L255-L261">an error</a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Can only mount an unmounted component. Make sure to avoid storing components between renders or reusing a single component instance in multiple places."><pre class="notranslate"><code class="notranslate">Can only mount an unmounted component. Make sure to avoid storing components between renders or reusing a single component instance in multiple places. </code></pre></div> <p dir="auto">Recently, I started wondering, if these are just descriptors, why is that desired behavior? Or is it a concession for the sake of performance? It seems like there are some good reasons (memoization, worry-free duplication, etc) why it would be preferable for React not to mutate them so they could be reused.</p> <p dir="auto">Thanks!</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> Feature</p> <p dir="auto"><strong>What is the current behavior?</strong><br> There is no way to run a side-effect generating hook before the first render.</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> For certain platforms (like Meteor) the reactive data access paradigm both runs immediately (data can be available on first render), and sets up side effects for later updates. I'd like to be able to set all that up <em>before</em> the first render, instead of waiting a render pass with <code class="notranslate">useEffect</code>. <a href="https://github.com/meteor/react-packages/pull/271" data-hovercard-type="pull_request" data-hovercard-url="/meteor/react-packages/pull/271/hovercard">Currently</a>, we have to jump through hoops to make sure sure we don't generate side-effects early, then duplicate effort later to actually set up the desired side effects. (we had been simply setting up the side-effects in sync with render, but understand that <a href="https://overreacted.io/algebraic-effects-for-the-rest-of-us/#how-is-all-of-this-relevant-to-react" rel="nofollow">upcoming Suspense features</a> may cancel a render cycle, and never run the <code class="notranslate">useEffect</code> cleanup hook). A hook which ran before render (or synchronously with first render) with it's cleanup method in case the render pass is thrown away, would solve the issue nicely, without hoop jumping.</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong><br> 16.8.x. Previous versions of react had life cycle methods <code class="notranslate">componentWillMount</code> or even just the constructor which could be used for similar behavior.</p>
0
<p dir="auto">When batchnorm is used inside a model that is invoked more than once (e.g inside an auto regression step) it produces very different results during prediction (non train time). I have isolated a toy problem and the suspected reason is that the updated values are accumulated across all invocations and then updated using <code class="notranslate">K.moving_average_update</code>. In the example bellow we use momentum 0.5 on the means 2, 4, 8 then we should get <code class="notranslate">6.5 = ((0.5 * 0 + 0.5 * 2) * 0.5 + 0.5 * 4) + 0.5 * 8</code> or <code class="notranslate">2.33 = 0.5 * 0 +0.5* (2 + 4 + 8) / 3</code> but we have (with tensorflow)<br> <code class="notranslate">7 = 0.5 * 0 + 0.5 * (2 + 4 + 8)</code> also if we use momentum=0.1 for example the output is <code class="notranslate">12.666 = 0.1 * + 0.9 * (2 + 4 + 8)</code></p> <p dir="auto">With theano, only the first invocation is considered</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np from keras.models import Model from keras.layers import Layer, Input, Dense from keras import initializers import keras.backend as K class CollectAvg(Layer): def build(self, input_shape): self.moving_mean = self.add_weight(shape=(input_shape[1], ), name='moving_mean', initializer=initializers.get('zeros'), trainable=False) self.built = True def call(self, inputs): mean = K.mean(inputs) self.add_update([K.moving_average_update(self.moving_mean, mean, 0.5)], inputs) return inputs def get_shared_model(): x = shared_input = Input(shape=(1, )) w = np.array([2]).reshape((1, 1, 1)) x = Dense(1, use_bias=False, weights = w)(x) x = CollectAvg()(x) shared_model = Model(inputs=[shared_input], outputs=[x]) return shared_model def get_auto_regressive(submodel, n): x = model_input = Input(shape=(1, )) outputs = [] for i in range(n): x = submodel(x) outputs.append(x) model = Model(inputs=[model_input], outputs = outputs) model.compile(optimizer='sgd', loss='mse') return model submodel = get_shared_model() submodel.summary() model = get_auto_regressive(submodel, 3) model.summary() sample_input = np.asarray([[1]]) for i in range(2): sample_output = model.predict(sample_input) model.train_on_batch(sample_input, sample_output) print (&quot;collected avg:&quot;, submodel.layers[-1].get_weights()) print (&quot;outputs:&quot;, np.array(sample_output))"><pre class="notranslate"><code class="notranslate">import numpy as np from keras.models import Model from keras.layers import Layer, Input, Dense from keras import initializers import keras.backend as K class CollectAvg(Layer): def build(self, input_shape): self.moving_mean = self.add_weight(shape=(input_shape[1], ), name='moving_mean', initializer=initializers.get('zeros'), trainable=False) self.built = True def call(self, inputs): mean = K.mean(inputs) self.add_update([K.moving_average_update(self.moving_mean, mean, 0.5)], inputs) return inputs def get_shared_model(): x = shared_input = Input(shape=(1, )) w = np.array([2]).reshape((1, 1, 1)) x = Dense(1, use_bias=False, weights = w)(x) x = CollectAvg()(x) shared_model = Model(inputs=[shared_input], outputs=[x]) return shared_model def get_auto_regressive(submodel, n): x = model_input = Input(shape=(1, )) outputs = [] for i in range(n): x = submodel(x) outputs.append(x) model = Model(inputs=[model_input], outputs = outputs) model.compile(optimizer='sgd', loss='mse') return model submodel = get_shared_model() submodel.summary() model = get_auto_regressive(submodel, 3) model.summary() sample_input = np.asarray([[1]]) for i in range(2): sample_output = model.predict(sample_input) model.train_on_batch(sample_input, sample_output) print ("collected avg:", submodel.layers[-1].get_weights()) print ("outputs:", np.array(sample_output)) </code></pre></div> <p dir="auto">with output being</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Layer (type) Output Shape Param # ================================================================= input_1 (InputLayer) (None, 1) 0 _________________________________________________________________ dense_1 (Dense) (None, 1) 1 _________________________________________________________________ collect_avg_1 (CollectAvg) (None, 1) 1 ================================================================= Total params: 2 Trainable params: 1 Non-trainable params: 1 _________________________________________________________________ _________________________________________________________________ Layer (type) Output Shape Param # ================================================================= input_2 (InputLayer) (None, 1) 0 _________________________________________________________________ model_1 (Model) (None, 1) 2 ================================================================= Total params: 2 Trainable params: 1 Non-trainable params: 1 _________________________________________________________________"><pre class="notranslate"><code class="notranslate">Layer (type) Output Shape Param # ================================================================= input_1 (InputLayer) (None, 1) 0 _________________________________________________________________ dense_1 (Dense) (None, 1) 1 _________________________________________________________________ collect_avg_1 (CollectAvg) (None, 1) 1 ================================================================= Total params: 2 Trainable params: 1 Non-trainable params: 1 _________________________________________________________________ _________________________________________________________________ Layer (type) Output Shape Param # ================================================================= input_2 (InputLayer) (None, 1) 0 _________________________________________________________________ model_1 (Model) (None, 1) 2 ================================================================= Total params: 2 Trainable params: 1 Non-trainable params: 1 _________________________________________________________________ </code></pre></div> <p dir="auto">for theano:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="collected avg: [array([ 1.], dtype=float32)] collected avg: [array([ 1.5], dtype=float32)] outputs: [[[ 2.]] [[ 4.]] [[ 8.]]]"><pre class="notranslate"><code class="notranslate">collected avg: [array([ 1.], dtype=float32)] collected avg: [array([ 1.5], dtype=float32)] outputs: [[[ 2.]] [[ 4.]] [[ 8.]]] </code></pre></div> <p dir="auto">for tensorflow</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="collected avg: [array([ 7.], dtype=float32)] collected avg: [array([ 3.5], dtype=float32)] outputs: [[[ 2.]] [[ 4.]] [[ 8.]]]"><pre class="notranslate"><code class="notranslate">collected avg: [array([ 7.], dtype=float32)] collected avg: [array([ 3.5], dtype=float32)] outputs: [[[ 2.]] [[ 4.]] [[ 8.]]] </code></pre></div>
<p dir="auto">Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on <a href="http://stackoverflow.com/questions/tagged/keras" rel="nofollow">StackOverflow</a> or <a href="https://keras-slack-autojoin.herokuapp.com/" rel="nofollow">join the Keras Slack channel</a> and ask there instead of filing a GitHub issue.</p> <p dir="auto">Thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check that you are up-to-date with the master branch of Keras. You can update with:<br> pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found <a href="https://www.tensorflow.org/get_started/os_setup" rel="nofollow">here</a>.</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:<br> pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).</p> </li> </ul> <p dir="auto">This is a duplicate of: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="243590522" data-permission-text="Title is private" data-url="https://github.com/keras-team/keras/issues/7365" data-hovercard-type="issue" data-hovercard-url="/keras-team/keras/issues/7365/hovercard" href="https://github.com/keras-team/keras/issues/7365">#7365</a>.</p> <p dir="auto"><code class="notranslate">Bidirectional.call(self, inputs, training=None, mask=None):</code> does not accept an <code class="notranslate">initial_state</code> keyword argument.</p> <p dir="auto">Furthermore, invoking <code class="notranslate">Bidirectional.call</code> with a list of inputs doesn't allow you to specify the initial state either, since <code class="notranslate">Recurrent.call</code> only has this code to handle list inputs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if isinstance(inputs, list): inputs = inputs[0]"><pre class="notranslate"><code class="notranslate">if isinstance(inputs, list): inputs = inputs[0] </code></pre></div> <p dir="auto">I would fix this myself but I'm not sure what the right solution is. My guess is to switch <code class="notranslate">Bidirectional</code> to use <code class="notranslate">self.forward_layer.__call__</code> instead of <code class="notranslate">self.forward_layer.call</code>.</p>
0
<p dir="auto">Flutter crash report; please file at <a href="https://github.com/flutter/flutter/issues">https://github.com/flutter/flutter/issues</a>.</p> <h2 dir="auto">command</h2> <p dir="auto">flutter doctor</p> <h2 dir="auto">exception</h2> <p dir="auto">ProcessException: ProcessException: The system cannot find the file specified.</p> <p dir="auto">Command: C:\Users\vinayak.bedage\AppData\Local\Android\sdk\tools\bin\sdkmanager.BAT --licenses</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0 AndroidWorkflow.licensesAccepted (package:flutter_tools/src/android/android_workflow.dart:193) &lt;asynchronous suspension&gt; #1 AndroidWorkflow.validate (package:flutter_tools/src/android/android_workflow.dart:152) &lt;asynchronous suspension&gt; #2 Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:88) #3 Doctor.diagnose (package:flutter_tools/src/doctor.dart:145) &lt;asynchronous suspension&gt; #4 DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:29) &lt;asynchronous suspension&gt; #5 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:344) &lt;asynchronous suspension&gt; #6 FlutterCommand.run.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command.dart:279) &lt;asynchronous suspension&gt; #7 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #8 _rootRun (dart:async/zone.dart:1126) #9 _CustomZone.run (dart:async/zone.dart:1023) #10 runZoned (dart:async/zone.dart:1501) #11 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #12 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:270) #13 CommandRunner.runCommand (package:args/command_runner.dart:194) &lt;asynchronous suspension&gt; #14 FlutterCommandRunner.runCommand.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command_runner.dart:309) &lt;asynchronous suspension&gt; #15 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #16 _rootRun (dart:async/zone.dart:1126) #17 _CustomZone.run (dart:async/zone.dart:1023) #18 runZoned (dart:async/zone.dart:1501) #19 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #20 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:265) &lt;asynchronous suspension&gt; #21 CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109) #22 new Future.sync (dart:async/future.dart:222) #23 CommandRunner.run (package:args/command_runner.dart:109) #24 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:174) #25 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:59) &lt;asynchronous suspension&gt; #26 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #27 _rootRun (dart:async/zone.dart:1126) #28 _CustomZone.run (dart:async/zone.dart:1023) #29 runZoned (dart:async/zone.dart:1501) #30 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #31 runInContext (package:flutter_tools/src/context_runner.dart:43) &lt;asynchronous suspension&gt; #32 run (package:flutter_tools/runner.dart:50) #33 main (package:flutter_tools/executable.dart:49) &lt;asynchronous suspension&gt; #34 main (file:///D:/Softwares/flutter/packages/flutter_tools/bin/flutter_tools.dart:8) #35 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277) #36 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)"><pre class="notranslate"><code class="notranslate">#0 AndroidWorkflow.licensesAccepted (package:flutter_tools/src/android/android_workflow.dart:193) &lt;asynchronous suspension&gt; #1 AndroidWorkflow.validate (package:flutter_tools/src/android/android_workflow.dart:152) &lt;asynchronous suspension&gt; #2 Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:88) #3 Doctor.diagnose (package:flutter_tools/src/doctor.dart:145) &lt;asynchronous suspension&gt; #4 DoctorCommand.runCommand (package:flutter_tools/src/commands/doctor.dart:29) &lt;asynchronous suspension&gt; #5 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:344) &lt;asynchronous suspension&gt; #6 FlutterCommand.run.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command.dart:279) &lt;asynchronous suspension&gt; #7 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #8 _rootRun (dart:async/zone.dart:1126) #9 _CustomZone.run (dart:async/zone.dart:1023) #10 runZoned (dart:async/zone.dart:1501) #11 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #12 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:270) #13 CommandRunner.runCommand (package:args/command_runner.dart:194) &lt;asynchronous suspension&gt; #14 FlutterCommandRunner.runCommand.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command_runner.dart:309) &lt;asynchronous suspension&gt; #15 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #16 _rootRun (dart:async/zone.dart:1126) #17 _CustomZone.run (dart:async/zone.dart:1023) #18 runZoned (dart:async/zone.dart:1501) #19 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #20 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:265) &lt;asynchronous suspension&gt; #21 CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109) #22 new Future.sync (dart:async/future.dart:222) #23 CommandRunner.run (package:args/command_runner.dart:109) #24 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:174) #25 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:59) &lt;asynchronous suspension&gt; #26 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #27 _rootRun (dart:async/zone.dart:1126) #28 _CustomZone.run (dart:async/zone.dart:1023) #29 runZoned (dart:async/zone.dart:1501) #30 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #31 runInContext (package:flutter_tools/src/context_runner.dart:43) &lt;asynchronous suspension&gt; #32 run (package:flutter_tools/runner.dart:50) #33 main (package:flutter_tools/executable.dart:49) &lt;asynchronous suspension&gt; #34 main (file:///D:/Softwares/flutter/packages/flutter_tools/bin/flutter_tools.dart:8) #35 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277) #36 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165) </code></pre></div> <h2 dir="auto">flutter doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="encountered exception: ProcessException: The system cannot find the file specified. Command: C:\Users\vinayak.bedage\AppData\Local\Android\sdk\tools\bin\sdkmanager.BAT --licenses #0 AndroidWorkflow.licensesAccepted (package:flutter_tools/src/android/android_workflow.dart:193) &lt;asynchronous suspension&gt; #1 AndroidWorkflow.validate (package:flutter_tools/src/android/android_workflow.dart:152) &lt;asynchronous suspension&gt; #2 Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:88) #3 Doctor.diagnose (package:flutter_tools/src/doctor.dart:145) &lt;asynchronous suspension&gt; #4 _doctorText.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:194) #5 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #6 _rootRun (dart:async/zone.dart:1126) #7 _CustomZone.run (dart:async/zone.dart:1023) #8 runZoned (dart:async/zone.dart:1501) #9 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #10 _doctorText (package:flutter_tools/runner.dart:193) &lt;asynchronous suspension&gt; #11 _createLocalCrashReport (package:flutter_tools/runner.dart:171) &lt;asynchronous suspension&gt; #12 _handleToolError (package:flutter_tools/runner.dart:126) &lt;asynchronous suspension&gt; #13 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:63) &lt;asynchronous suspension&gt; #14 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #15 _rootRun (dart:async/zone.dart:1126) #16 _CustomZone.run (dart:async/zone.dart:1023) #17 runZoned (dart:async/zone.dart:1501) #18 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #19 runInContext (package:flutter_tools/src/context_runner.dart:43) &lt;asynchronous suspension&gt; #20 run (package:flutter_tools/runner.dart:50) #21 main (package:flutter_tools/executable.dart:49) &lt;asynchronous suspension&gt; #22 main (file:///D:/Softwares/flutter/packages/flutter_tools/bin/flutter_tools.dart:8) #23 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277) #24 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)"><pre class="notranslate"><code class="notranslate">encountered exception: ProcessException: The system cannot find the file specified. Command: C:\Users\vinayak.bedage\AppData\Local\Android\sdk\tools\bin\sdkmanager.BAT --licenses #0 AndroidWorkflow.licensesAccepted (package:flutter_tools/src/android/android_workflow.dart:193) &lt;asynchronous suspension&gt; #1 AndroidWorkflow.validate (package:flutter_tools/src/android/android_workflow.dart:152) &lt;asynchronous suspension&gt; #2 Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:88) #3 Doctor.diagnose (package:flutter_tools/src/doctor.dart:145) &lt;asynchronous suspension&gt; #4 _doctorText.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:194) #5 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #6 _rootRun (dart:async/zone.dart:1126) #7 _CustomZone.run (dart:async/zone.dart:1023) #8 runZoned (dart:async/zone.dart:1501) #9 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #10 _doctorText (package:flutter_tools/runner.dart:193) &lt;asynchronous suspension&gt; #11 _createLocalCrashReport (package:flutter_tools/runner.dart:171) &lt;asynchronous suspension&gt; #12 _handleToolError (package:flutter_tools/runner.dart:126) &lt;asynchronous suspension&gt; #13 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:63) &lt;asynchronous suspension&gt; #14 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142) &lt;asynchronous suspension&gt; #15 _rootRun (dart:async/zone.dart:1126) #16 _CustomZone.run (dart:async/zone.dart:1023) #17 runZoned (dart:async/zone.dart:1501) #18 AppContext.run (package:flutter_tools/src/base/context.dart:141) &lt;asynchronous suspension&gt; #19 runInContext (package:flutter_tools/src/context_runner.dart:43) &lt;asynchronous suspension&gt; #20 run (package:flutter_tools/runner.dart:50) #21 main (package:flutter_tools/executable.dart:49) &lt;asynchronous suspension&gt; #22 main (file:///D:/Softwares/flutter/packages/flutter_tools/bin/flutter_tools.dart:8) #23 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277) #24 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165) </code></pre></div>
<p dir="auto">i want installing flutter at the first time but when run flutter doctor i got this log<br> all the path git, flutter and sndroid_home are already checked, i'm new here<br> it says cannot find specified file sdkmanager.bat but i check iin that dir and that file are exist. i don't know what's going on.<br> <a href="https://github.com/flutter/flutter/files/1874542/flutter_07.log">flutter_07.log</a></p> <p dir="auto">Flutter crash report; please file at <a href="https://github.com/flutter/flutter/issues">https://github.com/flutter/flutter/issues</a>.</p> <h2 dir="auto">command</h2> <p dir="auto">flutter analyze -v</p> <h2 dir="auto">exception</h2> <p dir="auto">ProcessException: ProcessException: The system cannot find the file specified.</p> <p dir="auto">Command: E:\Rofi\Else\Flutter\flutter\bin\cache\dart-sdk\bin\dartanalyzer.BAT C:\Users\Lawencon</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0 runCommandAndStreamOutput (package:flutter_tools/src/base/process.dart:133) &lt;asynchronous suspension&gt; #1 AnalyzeOnce.analyze (package:flutter_tools/src/commands/analyze_once.dart:98) &lt;asynchronous suspension&gt; #2 AnalyzeCommand.runCommand (package:flutter_tools/src/commands/analyze.dart:70) #3 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:290) &lt;asynchronous suspension&gt; #4 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:228) &lt;asynchronous suspension&gt; #5 CommandRunner.runCommand (package:args/command_runner.dart:194) &lt;asynchronous suspension&gt; #6 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:286) &lt;asynchronous suspension&gt; #7 CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109) #8 new Future.sync (dart:async/future.dart:222) #9 CommandRunner.run (package:args/command_runner.dart:109) #10 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:166) #11 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:90) &lt;asynchronous suspension&gt; #12 AppContext._run (package:flutter_tools/src/base/context.dart:76) &lt;asynchronous suspension&gt; #13 AppContext.runInZone.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:66) #14 _rootRun (dart:async/zone.dart:1126) #15 _CustomZone.run (dart:async/zone.dart:1023) #16 runZoned (dart:async/zone.dart:1501) #17 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65) #18 run (package:flutter_tools/runner.dart:61) &lt;asynchronous suspension&gt; #19 main (package:flutter_tools/executable.dart:48) &lt;asynchronous suspension&gt; #20 main (file:///E:/Rofi/Else/Flutter/flutter/packages/flutter_tools/bin/flutter_tools.dart:16) #21 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277) #22 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)"><pre class="notranslate"><code class="notranslate">#0 runCommandAndStreamOutput (package:flutter_tools/src/base/process.dart:133) &lt;asynchronous suspension&gt; #1 AnalyzeOnce.analyze (package:flutter_tools/src/commands/analyze_once.dart:98) &lt;asynchronous suspension&gt; #2 AnalyzeCommand.runCommand (package:flutter_tools/src/commands/analyze.dart:70) #3 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:290) &lt;asynchronous suspension&gt; #4 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:228) &lt;asynchronous suspension&gt; #5 CommandRunner.runCommand (package:args/command_runner.dart:194) &lt;asynchronous suspension&gt; #6 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:286) &lt;asynchronous suspension&gt; #7 CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109) #8 new Future.sync (dart:async/future.dart:222) #9 CommandRunner.run (package:args/command_runner.dart:109) #10 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:166) #11 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:90) &lt;asynchronous suspension&gt; #12 AppContext._run (package:flutter_tools/src/base/context.dart:76) &lt;asynchronous suspension&gt; #13 AppContext.runInZone.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:66) #14 _rootRun (dart:async/zone.dart:1126) #15 _CustomZone.run (dart:async/zone.dart:1023) #16 runZoned (dart:async/zone.dart:1501) #17 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65) #18 run (package:flutter_tools/runner.dart:61) &lt;asynchronous suspension&gt; #19 main (package:flutter_tools/executable.dart:48) &lt;asynchronous suspension&gt; #20 main (file:///E:/Rofi/Else/Flutter/flutter/packages/flutter_tools/bin/flutter_tools.dart:16) #21 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277) #22 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165) </code></pre></div> <h2 dir="auto">flutter doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="encountered exception: ProcessException: The system cannot find the file specified. Command: E:\SDK\tools\bin\sdkmanager.BAT --licenses #0 AndroidWorkflow.licensesAccepted (package:flutter_tools/src/android/android_workflow.dart:188) &lt;asynchronous suspension&gt; #1 AndroidWorkflow.validate (package:flutter_tools/src/android/android_workflow.dart:149) &lt;asynchronous suspension&gt; #2 Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:71) #3 Doctor.diagnose (package:flutter_tools/src/doctor.dart:128) &lt;asynchronous suspension&gt; #4 _doctorText.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:237) #5 AppContext._run (package:flutter_tools/src/base/context.dart:76) &lt;asynchronous suspension&gt; #6 AppContext.runInZone.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:66) #7 _rootRun (dart:async/zone.dart:1126) #8 _CustomZone.run (dart:async/zone.dart:1023) #9 runZoned (dart:async/zone.dart:1501) #10 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65) #11 _doctorText (package:flutter_tools/runner.dart:237) &lt;asynchronous suspension&gt; #12 _createLocalCrashReport (package:flutter_tools/runner.dart:212) &lt;asynchronous suspension&gt; #13 _handleToolError (package:flutter_tools/runner.dart:167) &lt;asynchronous suspension&gt; #14 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:94) &lt;asynchronous suspension&gt; #15 AppContext._run (package:flutter_tools/src/base/context.dart:76) &lt;asynchronous suspension&gt; #16 AppContext.runInZone.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:66) #17 _rootRun (dart:async/zone.dart:1126) #18 _CustomZone.run (dart:async/zone.dart:1023) #19 runZoned (dart:async/zone.dart:1501) #20 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65) #21 run (package:flutter_tools/runner.dart:61) &lt;asynchronous suspension&gt; #22 main (package:flutter_tools/executable.dart:48) &lt;asynchronous suspension&gt; #23 main (file:///E:/Rofi/Else/Flutter/flutter/packages/flutter_tools/bin/flutter_tools.dart:16) #24 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277) #25 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)"><pre class="notranslate"><code class="notranslate">encountered exception: ProcessException: The system cannot find the file specified. Command: E:\SDK\tools\bin\sdkmanager.BAT --licenses #0 AndroidWorkflow.licensesAccepted (package:flutter_tools/src/android/android_workflow.dart:188) &lt;asynchronous suspension&gt; #1 AndroidWorkflow.validate (package:flutter_tools/src/android/android_workflow.dart:149) &lt;asynchronous suspension&gt; #2 Doctor.startValidatorTasks (package:flutter_tools/src/doctor.dart:71) #3 Doctor.diagnose (package:flutter_tools/src/doctor.dart:128) &lt;asynchronous suspension&gt; #4 _doctorText.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:237) #5 AppContext._run (package:flutter_tools/src/base/context.dart:76) &lt;asynchronous suspension&gt; #6 AppContext.runInZone.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:66) #7 _rootRun (dart:async/zone.dart:1126) #8 _CustomZone.run (dart:async/zone.dart:1023) #9 runZoned (dart:async/zone.dart:1501) #10 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65) #11 _doctorText (package:flutter_tools/runner.dart:237) &lt;asynchronous suspension&gt; #12 _createLocalCrashReport (package:flutter_tools/runner.dart:212) &lt;asynchronous suspension&gt; #13 _handleToolError (package:flutter_tools/runner.dart:167) &lt;asynchronous suspension&gt; #14 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:94) &lt;asynchronous suspension&gt; #15 AppContext._run (package:flutter_tools/src/base/context.dart:76) &lt;asynchronous suspension&gt; #16 AppContext.runInZone.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:66) #17 _rootRun (dart:async/zone.dart:1126) #18 _CustomZone.run (dart:async/zone.dart:1023) #19 runZoned (dart:async/zone.dart:1501) #20 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65) #21 run (package:flutter_tools/runner.dart:61) &lt;asynchronous suspension&gt; #22 main (package:flutter_tools/executable.dart:48) &lt;asynchronous suspension&gt; #23 main (file:///E:/Rofi/Else/Flutter/flutter/packages/flutter_tools/bin/flutter_tools.dart:16) #24 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/dart:isolate/isolate_patch.dart:277) #25 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165) </code></pre></div>
1
<h1 dir="auto">Summary: FancyZones autofilling</h1> <p dir="auto">Idea-Feature / Feature request</p> <p dir="auto">When enabled, new windows (that are not ignored) snap to the next empty fancy zone. This would allow users to quick populate layouts with high zone counts.</p>
<h3 dir="auto">The "Window-Tiling" PowerToy</h3> <p dir="auto">Here's an idea, add the ability to tile windows automatically. What I mean by that is when a window would open, it'll cover the whole screen but when another window would open, it'll cover the half of the screen automatically and the first app would also resize to the half of the screen. If the third window opens it'll open below the second window, resizing the second window to half vertically. And the new window would take place under the second window.</p> <p dir="auto">It has been done before in some Linux window managers like "i3". And a lot of people really appreciate the ability to do that.</p> <h3 dir="auto">Concept Shots</h3> <p dir="auto">I've prepared some concept shots to show that:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/54409865/81105312-2f6a0900-8f2d-11ea-89be-db96ea9445ea.png"><img src="https://user-images.githubusercontent.com/54409865/81105312-2f6a0900-8f2d-11ea-89be-db96ea9445ea.png" alt="Surface Book - 1 (24)" style="max-width: 100%;"></a></p> <p dir="auto">In the image above, a single window is opened. When the user wants open another window, they would need to click the start button or hit the start key on the keyboard. The Start Menu would be replaced with Power Run. The user would be able to select the desired app by typing it's name and selecting one of the results by using the arrow keys. Or just type the name and hit enter</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/54409865/81105842-07c77080-8f2e-11ea-9275-3cc5536915f8.png"><img src="https://user-images.githubusercontent.com/54409865/81105842-07c77080-8f2e-11ea-9275-3cc5536915f8.png" alt="Surface Book - 3 (9)" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/54409865/81105857-0d24bb00-8f2e-11ea-9ad8-ed2addcef7b6.png"><img src="https://user-images.githubusercontent.com/54409865/81105857-0d24bb00-8f2e-11ea-9ad8-ed2addcef7b6.png" alt="Surface Book - 2 (17)" style="max-width: 100%;"></a></p> <p dir="auto">And when more than two apps are opened:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/54409865/81105885-1ada4080-8f2e-11ea-8985-545e3fc7ceb6.png"><img src="https://user-images.githubusercontent.com/54409865/81105885-1ada4080-8f2e-11ea-8985-545e3fc7ceb6.png" alt="Surface Book - 4 (4)" style="max-width: 100%;"></a></p> <p dir="auto">And when more than three apps are opened, the third app would be resized to half of it's size and the fourth window would appear in the empty space created by the third app.</p> <p dir="auto">There are better explanations of tiling window managers (than what I've done here) online</p> <h3 dir="auto">Conclusion</h3> <p dir="auto">The window tiling feature is inspired by some window managers in Linux (like i3). I think it'll help with productivity stuff. I've posted these concept shots on Twitter and many people wanted this feature to be in PowerToys. Maybe integrate it in FancyZones by adding a toggle for this feature. What do you think? :)</p>
1
<p dir="auto">Just deleted 91 since gke-ci was completely hosed on quota. We hit the limit on <a href="http://kubekins.dls.corp.google.com/job/kubernetes-e2e-gke-ci/10377/" rel="nofollow">http://kubekins.dls.corp.google.com/job/kubernetes-e2e-gke-ci/10377/</a> so it was some set of suites before that.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="19:06:05 client [kubectl]. To install, run 19:06:05 $ gcloud components install kubectl 19:06:05 19:06:06 ERROR: (gcloud.container.clusters.create) ResponseError: code=403, message=Insufficient project quota to satisfy request for resource: &quot;ROUTES&quot;. The request requires '3.0' and is short '2.0'. The project has a quota of '100.0' with '1.0' available. 19:06:06 2016/01/17 19:06:06 e2e.go:309: Error running up: exit status 1 19:06:06 2016/01/17 19:06:06 e2e.go:305: Step 'up' finished in 2.107868944s 19:06:06 2016/01/17 19:06:06 e2e.go:141: Error starting e2e cluster. Aborting. 19:06:06 exit status 1"><pre class="notranslate"><code class="notranslate">19:06:05 client [kubectl]. To install, run 19:06:05 $ gcloud components install kubectl 19:06:05 19:06:06 ERROR: (gcloud.container.clusters.create) ResponseError: code=403, message=Insufficient project quota to satisfy request for resource: "ROUTES". The request requires '3.0' and is short '2.0'. The project has a quota of '100.0' with '1.0' available. 19:06:06 2016/01/17 19:06:06 e2e.go:309: Error running up: exit status 1 19:06:06 2016/01/17 19:06:06 e2e.go:305: Step 'up' finished in 2.107868944s 19:06:06 2016/01/17 19:06:06 e2e.go:141: Error starting e2e cluster. Aborting. 19:06:06 exit status 1 </code></pre></div> <p dir="auto">@kubernetes/goog-testing</p>
<p dir="auto">Our <code class="notranslate">kubernetes-upgrade-gce</code> Jenkins job has been broken for quite a while now, and it looks like it's due to target pools and/or forwarding rules leaking and exceeding quota:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Sep 2 00:48:45.094: INFO: event for mutability-service-test: {service-controller } creating loadbalancer: creating loadbalancer Sep 2 00:48:45.094: INFO: event for mutability-service-test: {service-controller } creating loadbalancer failed: error creating load balancer (will retry): failed to create external load balancer for service e2e-tests-services-mrlvq/mutability-service-test: googleapi: Error 403: Quota 'TARGET_POOLS' exceeded. Limit: 50.0"><pre class="notranslate"><code class="notranslate">Sep 2 00:48:45.094: INFO: event for mutability-service-test: {service-controller } creating loadbalancer: creating loadbalancer Sep 2 00:48:45.094: INFO: event for mutability-service-test: {service-controller } creating loadbalancer failed: error creating load balancer (will retry): failed to create external load balancer for service e2e-tests-services-mrlvq/mutability-service-test: googleapi: Error 403: Quota 'TARGET_POOLS' exceeded. Limit: 50.0 </code></pre></div> <p dir="auto">I've cleared out the old rules, and I'll try to diagnose what's leaking them and why.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Material design table <a href="https://material.io/guidelines/components/data-tables.html#data-tables-tables-within-cards" rel="nofollow">example</a><br> Table's text-weight should be 500.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15093892/35914254-ad5067fa-0c13-11e8-863b-5a6fc6e20354.png"><img src="https://user-images.githubusercontent.com/15093892/35914254-ad5067fa-0c13-11e8-863b-5a6fc6e20354.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Your table <a href="https://codesandbox.io/s/34m25wk0o1" rel="nofollow">example</a><br> text-weigth is 400<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15093892/35914286-cabb503e-0c13-11e8-9769-518b0710aa98.png"><img src="https://user-images.githubusercontent.com/15093892/35914286-cabb503e-0c13-11e8-9769-518b0710aa98.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>beta.32</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td>Chrome 64.0.3282.140</td> </tr> </tbody> </table>
<p dir="auto">On some Android devices the SelectField's Menu renders in the top-left, and then pops down to where the field is.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">That the menu animates in, vs rendering and just "popping" over the textfield.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto"><em>NOTE</em>: Steps below using Galaxy S5 running Android 6.0.1 using Chrome 62.0.3202.84</p> <ol dir="auto"> <li>Open up material-ui.com site</li> <li>Open side-nav and interact w/ the version dropdown</li> <li>Navigate to SelectField component examples</li> <li>Start interacting w/ select fields</li> </ol> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>0.19.4</td> </tr> <tr> <td>React</td> <td>15.5.4</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> <tr> <td>device</td> <td>Galaxy S5</td> </tr> </tbody> </table> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5077928/32794895-bf941438-c92f-11e7-9e9b-4a9ca3769391.gif"><img src="https://user-images.githubusercontent.com/5077928/32794895-bf941438-c92f-11e7-9e9b-4a9ca3769391.gif" alt="selectfield2" data-animated-image="" style="max-width: 100%;"></a></p>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/728" rel="nofollow">http://projects.scipy.org/scipy/ticket/728</a> on 2008-08-25 by trac user jschrod3, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wnbell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wnbell">@wnbell</a>.</em></p> <p dir="auto">I'm using scipy version<br> Out[4]: scipy.version.version<br> Out[5]: '0.7.0.dev4561'</p> <p dir="auto">When I use the gmres routine from scipy.sparse.linalg, I cannot control its maximum number of iterations through the maxiter variable, nor does the "callback" routine ever seem to get called, so I can't track convergence.</p> <p dir="auto">I found this ticket,<br> <a href="http://www.scipy.org/scipy/scipy/attachment/ticket/360/new_iterative_gmres.py" rel="nofollow">http://www.scipy.org/scipy/scipy/attachment/ticket/360/new_iterative_gmres.py</a><br> which I was able to adapt to the current gmres (see attached modified iterative.py) so that I can get access to residuals in gmres and track convergence. However since maxiter is broken, gmres will sometimes iterate an insane number of times before returning and my residual history can be about 10,000 values long for a 744x744 matrix. This also takes a long time, so that doing automated numerical tests is not at all efficient. (note the 10,000 gmres iterations are what my research aims to fix. I'm well aware that a well-preconditioned gmres call will terminate much sooner.)</p> <p dir="auto">Could gmres be extended so that it<br> (1) uses maxiter<br> (2) executes "callback(resid)" every full gmres iteration so that I can track convergence?</p> <p dir="auto">These functionalities are critical if I'm to use gmres at all. I would imagine that others are in my boat.</p> <p dir="auto">Thanks</p>
<p dir="auto">With Python 3.9a3</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_____________________________________________________________________ TestFactorialFunctions.test_mixed_nan_inputs ______________________________________________________________________ scipy/special/tests/test_basic.py:1835: in test_mixed_nan_inputs result = special.factorial(x, exact=True) scipy/special/_basic.py:2354: in factorial val = math.factorial(un[0]) E DeprecationWarning: Using factorial() with floats is deprecated"><pre class="notranslate"><code class="notranslate">_____________________________________________________________________ TestFactorialFunctions.test_mixed_nan_inputs ______________________________________________________________________ scipy/special/tests/test_basic.py:1835: in test_mixed_nan_inputs result = special.factorial(x, exact=True) scipy/special/_basic.py:2354: in factorial val = math.factorial(un[0]) E DeprecationWarning: Using factorial() with floats is deprecated </code></pre></div>
0
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.32.3]</li> <li>Operating System: [All]</li> <li>Browser: [All]</li> <li>Other info: Typescript version is ^5.0</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto"><a href="https://github.com/mattjennings/playwright-ts-export-type-bug">https://github.com/mattjennings/playwright-ts-export-type-bug</a></p> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Run <code class="notranslate">npm install</code></li> <li>Run <code class="notranslate">npm run typecheck</code> and note that there are no errors</li> <li>Run <code class="notranslate">npm run test</code></li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">Test runs with no compile errors</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto"><code class="notranslate">playwright test</code> errors with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: /Users/mattjennings/tmp/tspw/tests/utils/index.ts: Unexpected token (1:12) &gt; 1 | export type * from './types' | ^ 2 | export { something } from './types' at example.spec.ts:2 1 | import { test, expect } from '@playwright/test'; &gt; 2 | import { something } from './utils' | ^ 3 | 4 | test('has title', async ({ page }) =&gt; { 5 | something()"><pre class="notranslate"><code class="notranslate">Error: /Users/mattjennings/tmp/tspw/tests/utils/index.ts: Unexpected token (1:12) &gt; 1 | export type * from './types' | ^ 2 | export { something } from './types' at example.spec.ts:2 1 | import { test, expect } from '@playwright/test'; &gt; 2 | import { something } from './utils' | ^ 3 | 4 | test('has title', async ({ page }) =&gt; { 5 | something() </code></pre></div> <p dir="auto">This syntax is supported as of <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#support-for-export-type" rel="nofollow">Typescript 5.0</a>, and Playwright seems to be using Typescript ^5.0.0, so I'm unsure why this error is thrown.</p>
<p dir="auto">Hi! <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aslushnikov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aslushnikov">@aslushnikov</a> sorry to bother, Just linked to this issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1389776186" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/17670" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/17670/hovercard" href="https://github.com/microsoft/playwright/issues/17670">#17670</a> - I could see it stopped happening when using less workers. I was using 8 and setting only 2 or 4 the tests pass constantly.</p> <p dir="auto">Is there any where I can look at ? Could that be due to the application not behaving properly when running multiple tests at same time or could be a bug ?</p> <p dir="auto">I know it's hard as I Can't share the repo, but the tests are pretty simple and can share info (I hope it helps), if it does not help at all, please feel free to just close it, no problem at all!:</p> <p dir="auto"><a href="https://github.com/microsoft/playwright/files/9723447/playwright.txt">playwright.txt</a></p> <p dir="auto">And the config I am using:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="projects:[ { name: 'chromium', use: { headless: true, ...devices['Desktop Chrome'], launchOptions: { proxy: { server: myserver, username: myuser, password: mypassword } } } } ]"><pre class="notranslate">projects:<span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">headless</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Chrome'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">launchOptions</span>: <span class="pl-kos">{</span> <span class="pl-c1">proxy</span>: <span class="pl-kos">{</span> <span class="pl-c1">server</span>: <span class="pl-s1">myserver</span><span class="pl-kos">,</span> <span class="pl-c1">username</span>: <span class="pl-s1">myuser</span><span class="pl-kos">,</span> <span class="pl-c1">password</span>: <span class="pl-s1">mypassword</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span></pre></div> <p dir="auto">I triggered them using DEBUG=pw:test but I could not see any issues in the logs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pw:test test finished &quot;@MODALERROR @COMPONENT Should show duplicate error&quot; +10s …um] › components\modal\modalError.spec.js:102:5 › Modal Error Popup › @MODALERROR @COMPONENT Should show duplicate error pw:test teardown page +0ms pw:test teardown context +0ms pw:test teardown _contextFactory +0ms 4) [chromium] › components\modal\modalError.spec.js:102:5 › Modal Error Popup › @MODALERROR @COMPONENT Should show duplicate error Test timeout of 30000ms exceeded while tearing down &quot;context&quot;."><pre class="notranslate"><code class="notranslate">pw:test test finished "@MODALERROR @COMPONENT Should show duplicate error" +10s …um] › components\modal\modalError.spec.js:102:5 › Modal Error Popup › @MODALERROR @COMPONENT Should show duplicate error pw:test teardown page +0ms pw:test teardown context +0ms pw:test teardown _contextFactory +0ms 4) [chromium] › components\modal\modalError.spec.js:102:5 › Modal Error Popup › @MODALERROR @COMPONENT Should show duplicate error Test timeout of 30000ms exceeded while tearing down "context". </code></pre></div> <p dir="auto">And with DEBUG=pw:browser:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" pw:browser writing frame 1665048293.218038 +48ms pw:browser writing frame 1665048293.237627 +57ms pw:browser writing frame 1665048293.257545 +18ms pw:browser writing frame 1665048293.273618 +29ms 3) [chromium] › components\modal\modalError.spec.js:59:5 › Bank Modal Error Popup › @MODALERROR @COMPONENT Should show redirect to forgot password page Test timeout of 30000ms exceeded while tearing down &quot;context&quot;."><pre class="notranslate"><code class="notranslate"> pw:browser writing frame 1665048293.218038 +48ms pw:browser writing frame 1665048293.237627 +57ms pw:browser writing frame 1665048293.257545 +18ms pw:browser writing frame 1665048293.273618 +29ms 3) [chromium] › components\modal\modalError.spec.js:59:5 › Bank Modal Error Popup › @MODALERROR @COMPONENT Should show redirect to forgot password page Test timeout of 30000ms exceeded while tearing down "context". </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Thanks!"><pre class="notranslate"><code class="notranslate">Thanks! </code></pre></div>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">os_router_module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">Master, just checked <a href="https://github.com/ansible/ansible-modules-core/blob/devel/cloud/openstack/os_router.py">https://github.com/ansible/ansible-modules-core/blob/devel/cloud/openstack/os_router.py</a></p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Currently there is no way of adding static routes with the os_router module</p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">ansible-vault</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.13 (default, Jan 12 2017, 17:59:37) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.13 (default, Jan 12 2017, 17:59:37) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">No changes</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Fedora 25, latest patch level as of 2017/04/28</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Piping the output of echo into ansible-vault (as suggested in the man page) fails with the output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR! [Errno 2] No such file or directory: '/working-directory/-'"><pre class="notranslate"><code class="notranslate">ERROR! [Errno 2] No such file or directory: '/working-directory/-' </code></pre></div> <p dir="auto">"working-directory" is the directory from where the command is executed (=$(pwd)).</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <ol dir="auto"> <li>Open a terminal on the host</li> <li>Execute:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="echo &quot;foo&quot; | ansible-vault encrypt --output '/tmp/foobar'"><pre class="notranslate"><code class="notranslate">echo "foo" | ansible-vault encrypt --output '/tmp/foobar' </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">An encrypted file named 'foobar' containing "foo" is created in /tmp/.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="New Vault password: Confirm New Vault password: ERROR! [Errno 2] No such file or directory: '/working-directory/-'"><pre class="notranslate"><code class="notranslate">New Vault password: Confirm New Vault password: ERROR! [Errno 2] No such file or directory: '/working-directory/-' </code></pre></div>
0
<p dir="auto">When building a native addon for Electron on Windows, node-gyp downloads the <code class="notranslate">.lib</code> files for linking from <code class="notranslate">https://atom.io/download/electron/&lt;version number&gt;/win-x86/node.lib</code>. This link is now accessible for version numbers 4.0.0 and above, and 404 for lower version numbers. I assume that is unintentional because I have not seen any announcement about those versions no longer being supported.</p>
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Problem Description</h3> <p dir="auto">Electron's docs indicate that it is not possible to run an electron app without a display server running (see <a href="https://www.electronjs.org/docs/tutorial/testing-on-headless-ci" rel="nofollow">https://www.electronjs.org/docs/tutorial/testing-on-headless-ci</a> ).</p> <p dir="auto">However, chromium no longer needs a display server to run in headless mode.</p> <p dir="auto">I believe it should be possible for electron to be run in the same way as chromium and no longer require that the linux system have xvfb installed or have a display server.</p> <h3 dir="auto">Proposed Solution</h3> <p dir="auto">Ideally, this ends up being a documentation issue only and electron can already be run without a display server but the docs need to be updated to reflect that.</p> <p dir="auto">Electron might need a different set of startup flags to run in a headless mode. Chromium needs to be run using its own <code class="notranslate">--headless</code> flag to enable this behavior. Maybe that flag could be used for electron as well.</p> <h3 dir="auto">Alternatives Considered</h3> <p dir="auto">Electron already interacts with the environment variable <code class="notranslate">ELECTRON_RUN_AS_NODE</code> to spawn electron as a node process. Maybe that is a better escape hatch for the display server requirement.</p> <h3 dir="auto">Additional Information</h3> <p dir="auto">I'm filling this bug since I wish to be able run the cypress test runner without having to use <code class="notranslate">xvfb</code>. I've filed an associated issue on their repo with a bit more context for that use case <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="891226699" data-permission-text="Title is private" data-url="https://github.com/cypress-io/cypress/issues/16505" data-hovercard-type="issue" data-hovercard-url="/cypress-io/cypress/issues/16505/hovercard" href="https://github.com/cypress-io/cypress/issues/16505">cypress-io/cypress#16505</a></p>
0
<p dir="auto">Method/accessor decorators use <code class="notranslate">defineProperty</code> and <code class="notranslate">getOwnPropertyDescriptor</code>, which are not allowed in ES3. But class and property decorators don't use them. So class/property decorators can be allowed when targeting ES3.</p> <p dir="auto">It would be helpful. E.g. I must support old browsers and I use the property like methods instead of pure properties:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="value(v?) { if (arguments.length) { // setter } else { // getter } }"><pre class="notranslate"><span class="pl-en">value</span><span class="pl-kos">(</span><span class="pl-s1">v</span>?<span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-smi">arguments</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// setter</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-c">// getter</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">I have the factory function that creates such method:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Accessor&lt;T&gt; { (): T; (v: T): void; } function accessor&lt;T&gt;(propName: string): Accessor&lt;T&gt;; function accessor&lt;T&gt;(propName: string) { return function (v?: T) { // if (arguments.length) and bla-bla-bla } }"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Accessor</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-s1">v</span>: <span class="pl-smi">T</span><span class="pl-kos">)</span>: <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-s1">accessor</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">propName</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span>: <span class="pl-smi">Accessor</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">accessor</span><span class="pl-c1">&lt;</span><span class="pl-smi">T</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">propName</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">v</span>?: <span class="pl-smi">T</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// if (arguments.length) and bla-bla-bla</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Currently I have to set such properties in the class prototype explicitly:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo { value: Accessor&lt;string&gt;; } Foo.prototype.value = accessor&lt;string&gt;(&quot;value&quot;);"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-c1">value</span>: <span class="pl-smi">Accessor</span><span class="pl-kos">&lt;</span><span class="pl-smi">string</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-smi">Foo</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-c1">=</span> <span class="pl-en">accessor</span><span class="pl-kos">&lt;</span><span class="pl-smi">string</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-s">"value"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">With decorators I could write more cleaner code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function Accessor(proto, propName: string) { proto[propName] = accessor(propName); } class Foo { @Accessor value: Accessor&lt;string&gt;; }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-smi">Accessor</span><span class="pl-kos">(</span><span class="pl-s1">proto</span><span class="pl-kos">,</span> <span class="pl-s1">propName</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">proto</span><span class="pl-kos">[</span><span class="pl-s1">propName</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">accessor</span><span class="pl-kos">(</span><span class="pl-s1">propName</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> @<span class="pl-smi">Accessor</span> <span class="pl-c1">value</span>: <span class="pl-smi">Accessor</span><span class="pl-kos">&lt;</span><span class="pl-smi">string</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Also there is no need to duplicate the property name (<code class="notranslate">"value"</code> in the example above).</p>
<p dir="auto">Update: This issue is now only for the following collections:</p> <ul dir="auto"> <li>MediaList</li> <li>StyleSheetList</li> <li>CSSRuleList</li> </ul> <p dir="auto">Originally it was about NodeList as well, but that was fixed (along with DOMTokenList) in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="85519980" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/3393" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/3393/hovercard" href="https://github.com/microsoft/TypeScript/pull/3393">#3393</a></p> <hr> <p dir="auto">Original:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var paragraphs = document.querySelectorAll(&quot;p&quot;); for (let p of paragraphs) { console.log(p); }"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">paragraphs</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">querySelectorAll</span><span class="pl-kos">(</span><span class="pl-s">"p"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">p</span> <span class="pl-k">of</span> <span class="pl-s1">paragraphs</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">p</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo.ts(2,15): error TS2488: The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator."><pre class="notranslate"><code class="notranslate">foo.ts(2,15): error TS2488: The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator. </code></pre></div> <p dir="auto">Seems it just needs an update to lib.es6.d.ts to add the <code class="notranslate">[Symbol.iterator()]</code> to all the collections that have an indexer and length property. <del>The ones I found that have it in Nightly are below. The rest were either IE-only or didn't exist.</del> Removed my list since it seems FF has more than the specs allow. See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="118683757" data-permission-text="Title is private" data-url="https://github.com/zloirock/core-js/issues/137" data-hovercard-type="issue" data-hovercard-url="/zloirock/core-js/issues/137/hovercard?comment_id=159531781&amp;comment_type=issue_comment" href="https://github.com/zloirock/core-js/issues/137#issuecomment-159531781">zloirock/core-js#137 (comment)</a> for a more accurate list.</p>
0
<p dir="auto">Failed CHECK while running tests here <a href="https://mac-ci.electronjs.org/blue/organizations/jenkins/Electron%20org%2Felectron/detail/PR-11321/3/pipeline/" rel="nofollow">https://mac-ci.electronjs.org/blue/organizations/jenkins/Electron%20org%2Felectron/detail/PR-11321/3/pipeline/</a><br> I'm not sure on what test exactly, and if the failure is stable.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok 163 BrowserWindow module &quot;webPreferences&quot; option nativeWindowOpen option retains the original web preferences when window.location is changed to a new origin [32195:1207/101313.842623:FATAL:wrappable.cc(27)] Check failed: !wrapper_.IsEmpty(). 0 libbase.dylib 0x00000001081f6fee base::debug::StackTrace::StackTrace(unsigned long) + 174 1 libbase.dylib 0x00000001081f70bd base::debug::StackTrace::StackTrace(unsigned long) + 29 2 libbase.dylib 0x00000001081f543c base::debug::StackTrace::StackTrace() + 28 3 libbase.dylib 0x00000001082879af logging::LogMessage::~LogMessage() + 479 4 libbase.dylib 0x0000000108285325 logging::LogMessage::~LogMessage() + 21 5 Electron Framework 0x0000000104b3fd3f mate::WrappableBase::GetWrapper() + 175 6 Electron Framework 0x00000001047bbef5 mate::EventEmitter&lt;atom::api::WebContents&gt;::GetWrapper() + 21 7 Electron Framework 0x00000001047c3e62 bool mate::EventEmitter&lt;atom::api::WebContents&gt;::EmitWithSender&lt;int&gt;(base::BasicStringPiece&lt;std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; &gt; const&amp;, content::WebContents*, IPC::Message*, int const&amp;) + 98 8 Electron Framework 0x00000001047aaecc bool mate::EventEmitter&lt;atom::api::WebContents&gt;::Emit&lt;int&gt;(base::BasicStringPiece&lt;std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; &gt; const&amp;, int const&amp;) + 44 9 Electron Framework 0x00000001047aae8f atom::api::WebContents::RenderViewDeleted(content::RenderViewHost*) + 95 10 Electron Framework 0x00000001047a83a3 atom::api::WebContents::~WebContents() + 307 11 Electron Framework 0x00000001047a87b5 atom::api::WebContents::~WebContents() + 21 12 Electron Framework 0x00000001047a8899 atom::api::WebContents::~WebContents() + 25 13 Electron Framework 0x0000000104b40318 mate::WrappableBase::SecondWeakCallback(v8::WeakCallbackInfo&lt;mate::WrappableBase&gt; const&amp;) + 56 14 libv8.dylib 0x000000010798586c v8::internal::FlagList::Hash() + 91916 15 libv8.dylib 0x00000001079863c3 v8::internal::FlagList::Hash() + 94819 16 libv8.dylib 0x000000010798645f v8::internal::FlagList::Hash() + 94975 17 libv8.dylib 0x000000010799c9fa v8::internal::Heap::CreateFillerObjectAt(unsigned char*, int, v8::internal::ClearRecordedSlots) + 3146 18 libv8.dylib 0x000000010799b694 v8::internal::GCTracer::NotifyIncrementalMarkingStart() + 30196 19 libv8.dylib 0x000000010799bb2b v8::internal::GCTracer::NotifyIncrementalMarkingStart() + 31371 20 libv8.dylib 0x000000010756789a v8::Isolate::LowMemoryNotification() + 314 21 Electron Framework 0x0000000104842b5d void base::internal::FunctorTraits&lt;void (v8::Isolate::*)(), void&gt;::Invoke&lt;v8::Isolate*&gt;(void (v8::Isolate::*)(), v8::Isolate*&amp;&amp;) + 125 22 Electron Framework 0x0000000104842aa4 void base::internal::InvokeHelper&lt;false, void&gt;::MakeItSo&lt;void (v8::Isolate::* const&amp;)(), v8::Isolate*&gt;(void (v8::Isolate::* const&amp;&amp;&amp;)(), v8::Isolate*&amp;&amp;) + 68 23 Electron Framework 0x0000000104842a55 void base::internal::Invoker&lt;base::internal::BindState&lt;void (v8::Isolate::*)(), base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt;, void ()&gt;::RunImpl&lt;void (v8::Isolate::* const&amp;)(), std::__1::tuple&lt;base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt; const&amp;, 0ul&gt;(void (v8::Isolate::* const&amp;&amp;&amp;)(), std::__1::tuple&lt;base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt; const&amp;&amp;&amp;, base::IndexSequence&lt;0ul&gt;) + 85 24 Electron Framework 0x000000010484299c base::internal::Invoker&lt;base::internal::BindState&lt;void (v8::Isolate::*)(), base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt;, void ()&gt;::Run(base::internal::BindStateBase*) + 44 25 libbase.dylib 0x000000010818f26d base::AtExitManager::RegisterTask(base::Callback&lt;void (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1&gt;) + 333 26 libbase.dylib 0x00000001084cd4b6 base::Timer::RunScheduledTask() + 294 27 libbase.dylib 0x00000001084cd319 base::Timer::GetTaskRunner() + 329 28 libbase.dylib 0x00000001084cd80d base::Timer::RunScheduledTask() + 1149 29 libbase.dylib 0x00000001084cd754 base::Timer::RunScheduledTask() + 964 30 libbase.dylib 0x00000001084cd6e3 base::Timer::RunScheduledTask() + 851 31 libbase.dylib 0x00000001084cd629 base::Timer::RunScheduledTask() + 665 32 libbase.dylib 0x000000010819840f base::BarrierClosure(int, base::Callback&lt;void (), (base::internal::CopyMode)0, (base::internal::RepeatMode)0&gt;) + 703 33 libbase.dylib 0x00000001081f9590 base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask*) + 1040 34 libbase.dylib 0x00000001082d6b96 base::MessageLoop::RunTask(base::PendingTask*) + 710 35 libbase.dylib 0x00000001082d7007 base::MessageLoop::DeferOrRunPendingTask(base::PendingTask) + 71 36 libbase.dylib 0x00000001082d88b2 base::MessageLoop::DoDelayedWork(base::TimeTicks*) + 2178 37 libbase.dylib 0x00000001082e6aad base::MessagePumpCFRunLoopBase::RunWork() + 157 38 libbase.dylib 0x00000001082e69fc base::MessagePumpCFRunLoopBase::CanInvalidateCFRunLoopTimers() + 716 39 libbase.dylib 0x000000010828fbca base::mac::CallWithEHFrame(void () block_pointer) + 10 40 libbase.dylib 0x00000001082e5f05 base::MessagePumpCFRunLoopBase::RunWorkSource(void*) + 101 41 CoreFoundation 0x00007fffd34cd3e1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 42 CoreFoundation 0x00007fffd34ae65c __CFRunLoopDoSources0 + 556 43 CoreFoundation 0x00007fffd34adb46 __CFRunLoopRun + 934 44 CoreFoundation 0x00007fffd34ad544 CFRunLoopRunSpecific + 420 45 HIToolbox 0x00007fffd2a0cebc RunCurrentEventLoopInMode + 240 46 HIToolbox 0x00007fffd2a0ccf1 ReceiveNextEventCommon + 432 47 HIToolbox 0x00007fffd2a0cb26 _BlockUntilNextEventMatchingListInModeWithFilter + 71 48 AppKit 0x00007fffd0fa3a54 _DPSNextEvent + 1120 49 AppKit 0x00007fffd171f7ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796 50 AppKit 0x00007fffd0f983db -[NSApplication run] + 926 51 libbase.dylib 0x00000001082e773c base::MessagePumpNSRunLoop::Quit() + 604 52 libbase.dylib 0x00000001082e56ee base::MessagePumpCFRunLoopBase::Run(base::MessagePump::Delegate*) + 110 53 libbase.dylib 0x00000001082d650b base::MessageLoop::Run() + 299 54 libbase.dylib 0x00000001083bd9dd base::RunLoop::Run() + 125 55 libcontent.dylib 0x0000000110afdb97 content::BrowserMainLoop::MainMessageLoopRun() + 263 56 libcontent.dylib 0x0000000110afd948 content::BrowserMainLoop::RunMainMessageLoopParts() + 488 57 libcontent.dylib 0x0000000110b06fab content::BrowserMainRunner::ExitedMainMessageLoop() + 3339 58 libcontent.dylib 0x0000000110af1acd content::BrowserMain(content::MainFunctionParams const&amp;) + 397 59 libcontent.dylib 0x0000000112f44125 content::ContentMain(content::ContentMainParams const&amp;) + 741 60 libcontent.dylib 0x0000000112f4590c content::ContentMainRunner::Create() + 5772 61 libcontent.dylib 0x0000000112f4273d content::CreateInProcessUtilityThread(content::InProcessChildThreadParams const&amp;) + 281821"><pre class="notranslate"><code class="notranslate">ok 163 BrowserWindow module "webPreferences" option nativeWindowOpen option retains the original web preferences when window.location is changed to a new origin [32195:1207/101313.842623:FATAL:wrappable.cc(27)] Check failed: !wrapper_.IsEmpty(). 0 libbase.dylib 0x00000001081f6fee base::debug::StackTrace::StackTrace(unsigned long) + 174 1 libbase.dylib 0x00000001081f70bd base::debug::StackTrace::StackTrace(unsigned long) + 29 2 libbase.dylib 0x00000001081f543c base::debug::StackTrace::StackTrace() + 28 3 libbase.dylib 0x00000001082879af logging::LogMessage::~LogMessage() + 479 4 libbase.dylib 0x0000000108285325 logging::LogMessage::~LogMessage() + 21 5 Electron Framework 0x0000000104b3fd3f mate::WrappableBase::GetWrapper() + 175 6 Electron Framework 0x00000001047bbef5 mate::EventEmitter&lt;atom::api::WebContents&gt;::GetWrapper() + 21 7 Electron Framework 0x00000001047c3e62 bool mate::EventEmitter&lt;atom::api::WebContents&gt;::EmitWithSender&lt;int&gt;(base::BasicStringPiece&lt;std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; &gt; const&amp;, content::WebContents*, IPC::Message*, int const&amp;) + 98 8 Electron Framework 0x00000001047aaecc bool mate::EventEmitter&lt;atom::api::WebContents&gt;::Emit&lt;int&gt;(base::BasicStringPiece&lt;std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; &gt; const&amp;, int const&amp;) + 44 9 Electron Framework 0x00000001047aae8f atom::api::WebContents::RenderViewDeleted(content::RenderViewHost*) + 95 10 Electron Framework 0x00000001047a83a3 atom::api::WebContents::~WebContents() + 307 11 Electron Framework 0x00000001047a87b5 atom::api::WebContents::~WebContents() + 21 12 Electron Framework 0x00000001047a8899 atom::api::WebContents::~WebContents() + 25 13 Electron Framework 0x0000000104b40318 mate::WrappableBase::SecondWeakCallback(v8::WeakCallbackInfo&lt;mate::WrappableBase&gt; const&amp;) + 56 14 libv8.dylib 0x000000010798586c v8::internal::FlagList::Hash() + 91916 15 libv8.dylib 0x00000001079863c3 v8::internal::FlagList::Hash() + 94819 16 libv8.dylib 0x000000010798645f v8::internal::FlagList::Hash() + 94975 17 libv8.dylib 0x000000010799c9fa v8::internal::Heap::CreateFillerObjectAt(unsigned char*, int, v8::internal::ClearRecordedSlots) + 3146 18 libv8.dylib 0x000000010799b694 v8::internal::GCTracer::NotifyIncrementalMarkingStart() + 30196 19 libv8.dylib 0x000000010799bb2b v8::internal::GCTracer::NotifyIncrementalMarkingStart() + 31371 20 libv8.dylib 0x000000010756789a v8::Isolate::LowMemoryNotification() + 314 21 Electron Framework 0x0000000104842b5d void base::internal::FunctorTraits&lt;void (v8::Isolate::*)(), void&gt;::Invoke&lt;v8::Isolate*&gt;(void (v8::Isolate::*)(), v8::Isolate*&amp;&amp;) + 125 22 Electron Framework 0x0000000104842aa4 void base::internal::InvokeHelper&lt;false, void&gt;::MakeItSo&lt;void (v8::Isolate::* const&amp;)(), v8::Isolate*&gt;(void (v8::Isolate::* const&amp;&amp;&amp;)(), v8::Isolate*&amp;&amp;) + 68 23 Electron Framework 0x0000000104842a55 void base::internal::Invoker&lt;base::internal::BindState&lt;void (v8::Isolate::*)(), base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt;, void ()&gt;::RunImpl&lt;void (v8::Isolate::* const&amp;)(), std::__1::tuple&lt;base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt; const&amp;, 0ul&gt;(void (v8::Isolate::* const&amp;&amp;&amp;)(), std::__1::tuple&lt;base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt; const&amp;&amp;&amp;, base::IndexSequence&lt;0ul&gt;) + 85 24 Electron Framework 0x000000010484299c base::internal::Invoker&lt;base::internal::BindState&lt;void (v8::Isolate::*)(), base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt;, void ()&gt;::Run(base::internal::BindStateBase*) + 44 25 libbase.dylib 0x000000010818f26d base::AtExitManager::RegisterTask(base::Callback&lt;void (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1&gt;) + 333 26 libbase.dylib 0x00000001084cd4b6 base::Timer::RunScheduledTask() + 294 27 libbase.dylib 0x00000001084cd319 base::Timer::GetTaskRunner() + 329 28 libbase.dylib 0x00000001084cd80d base::Timer::RunScheduledTask() + 1149 29 libbase.dylib 0x00000001084cd754 base::Timer::RunScheduledTask() + 964 30 libbase.dylib 0x00000001084cd6e3 base::Timer::RunScheduledTask() + 851 31 libbase.dylib 0x00000001084cd629 base::Timer::RunScheduledTask() + 665 32 libbase.dylib 0x000000010819840f base::BarrierClosure(int, base::Callback&lt;void (), (base::internal::CopyMode)0, (base::internal::RepeatMode)0&gt;) + 703 33 libbase.dylib 0x00000001081f9590 base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask*) + 1040 34 libbase.dylib 0x00000001082d6b96 base::MessageLoop::RunTask(base::PendingTask*) + 710 35 libbase.dylib 0x00000001082d7007 base::MessageLoop::DeferOrRunPendingTask(base::PendingTask) + 71 36 libbase.dylib 0x00000001082d88b2 base::MessageLoop::DoDelayedWork(base::TimeTicks*) + 2178 37 libbase.dylib 0x00000001082e6aad base::MessagePumpCFRunLoopBase::RunWork() + 157 38 libbase.dylib 0x00000001082e69fc base::MessagePumpCFRunLoopBase::CanInvalidateCFRunLoopTimers() + 716 39 libbase.dylib 0x000000010828fbca base::mac::CallWithEHFrame(void () block_pointer) + 10 40 libbase.dylib 0x00000001082e5f05 base::MessagePumpCFRunLoopBase::RunWorkSource(void*) + 101 41 CoreFoundation 0x00007fffd34cd3e1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 42 CoreFoundation 0x00007fffd34ae65c __CFRunLoopDoSources0 + 556 43 CoreFoundation 0x00007fffd34adb46 __CFRunLoopRun + 934 44 CoreFoundation 0x00007fffd34ad544 CFRunLoopRunSpecific + 420 45 HIToolbox 0x00007fffd2a0cebc RunCurrentEventLoopInMode + 240 46 HIToolbox 0x00007fffd2a0ccf1 ReceiveNextEventCommon + 432 47 HIToolbox 0x00007fffd2a0cb26 _BlockUntilNextEventMatchingListInModeWithFilter + 71 48 AppKit 0x00007fffd0fa3a54 _DPSNextEvent + 1120 49 AppKit 0x00007fffd171f7ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796 50 AppKit 0x00007fffd0f983db -[NSApplication run] + 926 51 libbase.dylib 0x00000001082e773c base::MessagePumpNSRunLoop::Quit() + 604 52 libbase.dylib 0x00000001082e56ee base::MessagePumpCFRunLoopBase::Run(base::MessagePump::Delegate*) + 110 53 libbase.dylib 0x00000001082d650b base::MessageLoop::Run() + 299 54 libbase.dylib 0x00000001083bd9dd base::RunLoop::Run() + 125 55 libcontent.dylib 0x0000000110afdb97 content::BrowserMainLoop::MainMessageLoopRun() + 263 56 libcontent.dylib 0x0000000110afd948 content::BrowserMainLoop::RunMainMessageLoopParts() + 488 57 libcontent.dylib 0x0000000110b06fab content::BrowserMainRunner::ExitedMainMessageLoop() + 3339 58 libcontent.dylib 0x0000000110af1acd content::BrowserMain(content::MainFunctionParams const&amp;) + 397 59 libcontent.dylib 0x0000000112f44125 content::ContentMain(content::ContentMainParams const&amp;) + 741 60 libcontent.dylib 0x0000000112f4590c content::ContentMainRunner::Create() + 5772 61 libcontent.dylib 0x0000000112f4273d content::CreateInProcessUtilityThread(content::InProcessChildThreadParams const&amp;) + 281821 </code></pre></div>
<ul dir="auto"> <li>Electron version: 1.6.7</li> <li>Operating system: Linux 4.9.0-2 x64</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto"><code class="notranslate">webContents.create().executeJavaScript()</code> should not hang and crash.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Running the following code in a minimal electron app (nothing but the <code class="notranslate">index.html</code>, basic <code class="notranslate">index.js</code> and <code class="notranslate">app.js</code> results in a hang and crash.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">index.js</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const electron = require('electron') const app = electron.app const BrowserWindow = electron.BrowserWindow const path = require('path') const url = require('url') let mainWindow function createWindow () { mainWindow = new BrowserWindow({width: 800, height: 600}) mainWindow.loadURL(url.format({ pathname: path.join(__dirname, 'index.html'), protocol: 'file:', slashes: true })) mainWindow.on('closed', () =&gt; mainWindow = null ) } app.on('ready', createWindow)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">electron</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">app</span> <span class="pl-k">const</span> <span class="pl-v">BrowserWindow</span> <span class="pl-c1">=</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">BrowserWindow</span> <span class="pl-k">const</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'url'</span><span class="pl-kos">)</span> <span class="pl-k">let</span> <span class="pl-s1">mainWindow</span> <span class="pl-k">function</span> <span class="pl-en">createWindow</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">mainWindow</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">width</span>: <span class="pl-c1">800</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">600</span><span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">loadURL</span><span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">.</span><span class="pl-en">format</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">pathname</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'index.html'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">protocol</span>: <span class="pl-s">'file:'</span><span class="pl-kos">,</span> <span class="pl-c1">slashes</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'closed'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">mainWindow</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span> <span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'ready'</span><span class="pl-kos">,</span> <span class="pl-s1">createWindow</span><span class="pl-kos">)</span></pre></div> <p dir="auto">app.js</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { remote } = require('electron') const contents = remote.webContents.create() contents.executeJavaScript('console.log(this)') .then(console.log) .catch(console.error) "><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> remote <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">contents</span> <span class="pl-c1">=</span> <span class="pl-s1">remote</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">contents</span><span class="pl-kos">.</span><span class="pl-en">executeJavaScript</span><span class="pl-kos">(</span><span class="pl-s">'console.log(this)'</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-c1">log</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">catch</span><span class="pl-kos">(</span><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-c1">error</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Wait approximately 15-20 seconds.</p> <p dir="auto">Crash:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; electron . [32195:1207/101313.842623:FATAL:wrappable.cc(27)] Check failed: !wrapper_.IsEmpty(). 0 libbase.dylib 0x00000001081f6fee base::debug::StackTrace::StackTrace(unsigned long) + 174 1 libbase.dylib 0x00000001081f70bd base::debug::StackTrace::StackTrace(unsigned long) + 29 2 libbase.dylib 0x00000001081f543c base::debug::StackTrace::StackTrace() + 28 3 libbase.dylib 0x00000001082879af logging::LogMessage::~LogMessage() + 479 4 libbase.dylib 0x0000000108285325 logging::LogMessage::~LogMessage() + 21 5 Electron Framework 0x0000000104b3fd3f mate::WrappableBase::GetWrapper() + 175 6 Electron Framework 0x00000001047bbef5 mate::EventEmitter&lt;atom::api::WebContents&gt;::GetWrapper() + 21 7 Electron Framework 0x00000001047c3e62 bool mate::EventEmitter&lt;atom::api::WebContents&gt;::EmitWithSender&lt;int&gt;(base::BasicStringPiece&lt;std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; &gt; const&amp;, content::WebContents*, IPC::Message*, int const&amp;) + 98 8 Electron Framework 0x00000001047aaecc bool mate::EventEmitter&lt;atom::api::WebContents&gt;::Emit&lt;int&gt;(base::BasicStringPiece&lt;std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; &gt; const&amp;, int const&amp;) + 44 9 Electron Framework 0x00000001047aae8f atom::api::WebContents::RenderViewDeleted(content::RenderViewHost*) + 95 10 Electron Framework 0x00000001047a83a3 atom::api::WebContents::~WebContents() + 307 11 Electron Framework 0x00000001047a87b5 atom::api::WebContents::~WebContents() + 21 12 Electron Framework 0x00000001047a8899 atom::api::WebContents::~WebContents() + 25 13 Electron Framework 0x0000000104b40318 mate::WrappableBase::SecondWeakCallback(v8::WeakCallbackInfo&lt;mate::WrappableBase&gt; const&amp;) + 56 14 libv8.dylib 0x000000010798586c v8::internal::FlagList::Hash() + 91916 15 libv8.dylib 0x00000001079863c3 v8::internal::FlagList::Hash() + 94819 16 libv8.dylib 0x000000010798645f v8::internal::FlagList::Hash() + 94975 17 libv8.dylib 0x000000010799c9fa v8::internal::Heap::CreateFillerObjectAt(unsigned char*, int, v8::internal::ClearRecordedSlots) + 3146 18 libv8.dylib 0x000000010799b694 v8::internal::GCTracer::NotifyIncrementalMarkingStart() + 30196 19 libv8.dylib 0x000000010799bb2b v8::internal::GCTracer::NotifyIncrementalMarkingStart() + 31371 20 libv8.dylib 0x000000010756789a v8::Isolate::LowMemoryNotification() + 314 21 Electron Framework 0x0000000104842b5d void base::internal::FunctorTraits&lt;void (v8::Isolate::*)(), void&gt;::Invoke&lt;v8::Isolate*&gt;(void (v8::Isolate::*)(), v8::Isolate*&amp;&amp;) + 125 22 Electron Framework 0x0000000104842aa4 void base::internal::InvokeHelper&lt;false, void&gt;::MakeItSo&lt;void (v8::Isolate::* const&amp;)(), v8::Isolate*&gt;(void (v8::Isolate::* const&amp;&amp;&amp;)(), v8::Isolate*&amp;&amp;) + 68 23 Electron Framework 0x0000000104842a55 void base::internal::Invoker&lt;base::internal::BindState&lt;void (v8::Isolate::*)(), base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt;, void ()&gt;::RunImpl&lt;void (v8::Isolate::* const&amp;)(), std::__1::tuple&lt;base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt; const&amp;, 0ul&gt;(void (v8::Isolate::* const&amp;&amp;&amp;)(), std::__1::tuple&lt;base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt; const&amp;&amp;&amp;, base::IndexSequence&lt;0ul&gt;) + 85 24 Electron Framework 0x000000010484299c base::internal::Invoker&lt;base::internal::BindState&lt;void (v8::Isolate::*)(), base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt;, void ()&gt;::Run(base::internal::BindStateBase*) + 44 25 libbase.dylib 0x000000010818f26d base::AtExitManager::RegisterTask(base::Callback&lt;void (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1&gt;) + 333 26 libbase.dylib 0x00000001084cd4b6 base::Timer::RunScheduledTask() + 294 27 libbase.dylib 0x00000001084cd319 base::Timer::GetTaskRunner() + 329 28 libbase.dylib 0x00000001084cd80d base::Timer::RunScheduledTask() + 1149 29 libbase.dylib 0x00000001084cd754 base::Timer::RunScheduledTask() + 964 30 libbase.dylib 0x00000001084cd6e3 base::Timer::RunScheduledTask() + 851 31 libbase.dylib 0x00000001084cd629 base::Timer::RunScheduledTask() + 665 32 libbase.dylib 0x000000010819840f base::BarrierClosure(int, base::Callback&lt;void (), (base::internal::CopyMode)0, (base::internal::RepeatMode)0&gt;) + 703 33 libbase.dylib 0x00000001081f9590 base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask*) + 1040 34 libbase.dylib 0x00000001082d6b96 base::MessageLoop::RunTask(base::PendingTask*) + 710 35 libbase.dylib 0x00000001082d7007 base::MessageLoop::DeferOrRunPendingTask(base::PendingTask) + 71 36 libbase.dylib 0x00000001082d88b2 base::MessageLoop::DoDelayedWork(base::TimeTicks*) + 2178 37 libbase.dylib 0x00000001082e6aad base::MessagePumpCFRunLoopBase::RunWork() + 157 38 libbase.dylib 0x00000001082e69fc base::MessagePumpCFRunLoopBase::CanInvalidateCFRunLoopTimers() + 716 39 libbase.dylib 0x000000010828fbca base::mac::CallWithEHFrame(void () block_pointer) + 10 40 libbase.dylib 0x00000001082e5f05 base::MessagePumpCFRunLoopBase::RunWorkSource(void*) + 101 41 CoreFoundation 0x00007fffd34cd3e1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 42 CoreFoundation 0x00007fffd34ae65c __CFRunLoopDoSources0 + 556 43 CoreFoundation 0x00007fffd34adb46 __CFRunLoopRun + 934 44 CoreFoundation 0x00007fffd34ad544 CFRunLoopRunSpecific + 420 45 HIToolbox 0x00007fffd2a0cebc RunCurrentEventLoopInMode + 240 46 HIToolbox 0x00007fffd2a0ccf1 ReceiveNextEventCommon + 432 47 HIToolbox 0x00007fffd2a0cb26 _BlockUntilNextEventMatchingListInModeWithFilter + 71 48 AppKit 0x00007fffd0fa3a54 _DPSNextEvent + 1120 49 AppKit 0x00007fffd171f7ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796 50 AppKit 0x00007fffd0f983db -[NSApplication run] + 926 51 libbase.dylib 0x00000001082e773c base::MessagePumpNSRunLoop::Quit() + 604 52 libbase.dylib 0x00000001082e56ee base::MessagePumpCFRunLoopBase::Run(base::MessagePump::Delegate*) + 110 53 libbase.dylib 0x00000001082d650b base::MessageLoop::Run() + 299 54 libbase.dylib 0x00000001083bd9dd base::RunLoop::Run() + 125 55 libcontent.dylib 0x0000000110afdb97 content::BrowserMainLoop::MainMessageLoopRun() + 263 56 libcontent.dylib 0x0000000110afd948 content::BrowserMainLoop::RunMainMessageLoopParts() + 488 57 libcontent.dylib 0x0000000110b06fab content::BrowserMainRunner::ExitedMainMessageLoop() + 3339 58 libcontent.dylib 0x0000000110af1acd content::BrowserMain(content::MainFunctionParams const&amp;) + 397 59 libcontent.dylib 0x0000000112f44125 content::ContentMain(content::ContentMainParams const&amp;) + 741 60 libcontent.dylib 0x0000000112f4590c content::ContentMainRunner::Create() + 5772 61 libcontent.dylib 0x0000000112f4273d content::CreateInProcessUtilityThread(content::InProcessChildThreadParams const&amp;) + 281821"><pre class="notranslate"><code class="notranslate">&gt; electron . [32195:1207/101313.842623:FATAL:wrappable.cc(27)] Check failed: !wrapper_.IsEmpty(). 0 libbase.dylib 0x00000001081f6fee base::debug::StackTrace::StackTrace(unsigned long) + 174 1 libbase.dylib 0x00000001081f70bd base::debug::StackTrace::StackTrace(unsigned long) + 29 2 libbase.dylib 0x00000001081f543c base::debug::StackTrace::StackTrace() + 28 3 libbase.dylib 0x00000001082879af logging::LogMessage::~LogMessage() + 479 4 libbase.dylib 0x0000000108285325 logging::LogMessage::~LogMessage() + 21 5 Electron Framework 0x0000000104b3fd3f mate::WrappableBase::GetWrapper() + 175 6 Electron Framework 0x00000001047bbef5 mate::EventEmitter&lt;atom::api::WebContents&gt;::GetWrapper() + 21 7 Electron Framework 0x00000001047c3e62 bool mate::EventEmitter&lt;atom::api::WebContents&gt;::EmitWithSender&lt;int&gt;(base::BasicStringPiece&lt;std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; &gt; const&amp;, content::WebContents*, IPC::Message*, int const&amp;) + 98 8 Electron Framework 0x00000001047aaecc bool mate::EventEmitter&lt;atom::api::WebContents&gt;::Emit&lt;int&gt;(base::BasicStringPiece&lt;std::__1::basic_string&lt;char, std::__1::char_traits&lt;char&gt;, std::__1::allocator&lt;char&gt; &gt; &gt; const&amp;, int const&amp;) + 44 9 Electron Framework 0x00000001047aae8f atom::api::WebContents::RenderViewDeleted(content::RenderViewHost*) + 95 10 Electron Framework 0x00000001047a83a3 atom::api::WebContents::~WebContents() + 307 11 Electron Framework 0x00000001047a87b5 atom::api::WebContents::~WebContents() + 21 12 Electron Framework 0x00000001047a8899 atom::api::WebContents::~WebContents() + 25 13 Electron Framework 0x0000000104b40318 mate::WrappableBase::SecondWeakCallback(v8::WeakCallbackInfo&lt;mate::WrappableBase&gt; const&amp;) + 56 14 libv8.dylib 0x000000010798586c v8::internal::FlagList::Hash() + 91916 15 libv8.dylib 0x00000001079863c3 v8::internal::FlagList::Hash() + 94819 16 libv8.dylib 0x000000010798645f v8::internal::FlagList::Hash() + 94975 17 libv8.dylib 0x000000010799c9fa v8::internal::Heap::CreateFillerObjectAt(unsigned char*, int, v8::internal::ClearRecordedSlots) + 3146 18 libv8.dylib 0x000000010799b694 v8::internal::GCTracer::NotifyIncrementalMarkingStart() + 30196 19 libv8.dylib 0x000000010799bb2b v8::internal::GCTracer::NotifyIncrementalMarkingStart() + 31371 20 libv8.dylib 0x000000010756789a v8::Isolate::LowMemoryNotification() + 314 21 Electron Framework 0x0000000104842b5d void base::internal::FunctorTraits&lt;void (v8::Isolate::*)(), void&gt;::Invoke&lt;v8::Isolate*&gt;(void (v8::Isolate::*)(), v8::Isolate*&amp;&amp;) + 125 22 Electron Framework 0x0000000104842aa4 void base::internal::InvokeHelper&lt;false, void&gt;::MakeItSo&lt;void (v8::Isolate::* const&amp;)(), v8::Isolate*&gt;(void (v8::Isolate::* const&amp;&amp;&amp;)(), v8::Isolate*&amp;&amp;) + 68 23 Electron Framework 0x0000000104842a55 void base::internal::Invoker&lt;base::internal::BindState&lt;void (v8::Isolate::*)(), base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt;, void ()&gt;::RunImpl&lt;void (v8::Isolate::* const&amp;)(), std::__1::tuple&lt;base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt; const&amp;, 0ul&gt;(void (v8::Isolate::* const&amp;&amp;&amp;)(), std::__1::tuple&lt;base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt; const&amp;&amp;&amp;, base::IndexSequence&lt;0ul&gt;) + 85 24 Electron Framework 0x000000010484299c base::internal::Invoker&lt;base::internal::BindState&lt;void (v8::Isolate::*)(), base::internal::UnretainedWrapper&lt;v8::Isolate&gt; &gt;, void ()&gt;::Run(base::internal::BindStateBase*) + 44 25 libbase.dylib 0x000000010818f26d base::AtExitManager::RegisterTask(base::Callback&lt;void (), (base::internal::CopyMode)1, (base::internal::RepeatMode)1&gt;) + 333 26 libbase.dylib 0x00000001084cd4b6 base::Timer::RunScheduledTask() + 294 27 libbase.dylib 0x00000001084cd319 base::Timer::GetTaskRunner() + 329 28 libbase.dylib 0x00000001084cd80d base::Timer::RunScheduledTask() + 1149 29 libbase.dylib 0x00000001084cd754 base::Timer::RunScheduledTask() + 964 30 libbase.dylib 0x00000001084cd6e3 base::Timer::RunScheduledTask() + 851 31 libbase.dylib 0x00000001084cd629 base::Timer::RunScheduledTask() + 665 32 libbase.dylib 0x000000010819840f base::BarrierClosure(int, base::Callback&lt;void (), (base::internal::CopyMode)0, (base::internal::RepeatMode)0&gt;) + 703 33 libbase.dylib 0x00000001081f9590 base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask*) + 1040 34 libbase.dylib 0x00000001082d6b96 base::MessageLoop::RunTask(base::PendingTask*) + 710 35 libbase.dylib 0x00000001082d7007 base::MessageLoop::DeferOrRunPendingTask(base::PendingTask) + 71 36 libbase.dylib 0x00000001082d88b2 base::MessageLoop::DoDelayedWork(base::TimeTicks*) + 2178 37 libbase.dylib 0x00000001082e6aad base::MessagePumpCFRunLoopBase::RunWork() + 157 38 libbase.dylib 0x00000001082e69fc base::MessagePumpCFRunLoopBase::CanInvalidateCFRunLoopTimers() + 716 39 libbase.dylib 0x000000010828fbca base::mac::CallWithEHFrame(void () block_pointer) + 10 40 libbase.dylib 0x00000001082e5f05 base::MessagePumpCFRunLoopBase::RunWorkSource(void*) + 101 41 CoreFoundation 0x00007fffd34cd3e1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 42 CoreFoundation 0x00007fffd34ae65c __CFRunLoopDoSources0 + 556 43 CoreFoundation 0x00007fffd34adb46 __CFRunLoopRun + 934 44 CoreFoundation 0x00007fffd34ad544 CFRunLoopRunSpecific + 420 45 HIToolbox 0x00007fffd2a0cebc RunCurrentEventLoopInMode + 240 46 HIToolbox 0x00007fffd2a0ccf1 ReceiveNextEventCommon + 432 47 HIToolbox 0x00007fffd2a0cb26 _BlockUntilNextEventMatchingListInModeWithFilter + 71 48 AppKit 0x00007fffd0fa3a54 _DPSNextEvent + 1120 49 AppKit 0x00007fffd171f7ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796 50 AppKit 0x00007fffd0f983db -[NSApplication run] + 926 51 libbase.dylib 0x00000001082e773c base::MessagePumpNSRunLoop::Quit() + 604 52 libbase.dylib 0x00000001082e56ee base::MessagePumpCFRunLoopBase::Run(base::MessagePump::Delegate*) + 110 53 libbase.dylib 0x00000001082d650b base::MessageLoop::Run() + 299 54 libbase.dylib 0x00000001083bd9dd base::RunLoop::Run() + 125 55 libcontent.dylib 0x0000000110afdb97 content::BrowserMainLoop::MainMessageLoopRun() + 263 56 libcontent.dylib 0x0000000110afd948 content::BrowserMainLoop::RunMainMessageLoopParts() + 488 57 libcontent.dylib 0x0000000110b06fab content::BrowserMainRunner::ExitedMainMessageLoop() + 3339 58 libcontent.dylib 0x0000000110af1acd content::BrowserMain(content::MainFunctionParams const&amp;) + 397 59 libcontent.dylib 0x0000000112f44125 content::ContentMain(content::ContentMainParams const&amp;) + 741 60 libcontent.dylib 0x0000000112f4590c content::ContentMainRunner::Create() + 5772 61 libcontent.dylib 0x0000000112f4273d content::CreateInProcessUtilityThread(content::InProcessChildThreadParams const&amp;) + 281821 </code></pre></div> <p dir="auto">Reproducible repo: <a href="https://github.com/stevelacy/electron-bug-9487">https://github.com/stevelacy/electron-bug-9487</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $ git clone https://github.com/stevelacy/electron-bug-9487 $ npm install $ npm start"><pre class="notranslate"><code class="notranslate"> $ git clone https://github.com/stevelacy/electron-bug-9487 $ npm install $ npm start </code></pre></div> <p dir="auto"><em>alexeykuzmin</em>: Added a more informative stacktrace from a debug build.</p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">I'm fairly new to matplotlib and I was trying to create a confusion matrix following the tutorial here: <a href="https://scikit-learn.org/stable/auto_examples/model_selection/plot_confusion_matrix.html" rel="nofollow">https://scikit-learn.org/stable/auto_examples/model_selection/plot_confusion_matrix.html</a>. I downloaded the example code and when I ran it, the plots looked slightly cropped on the top and bottom edges.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="print(__doc__) import numpy as np import matplotlib.pyplot as plt from sklearn import svm, datasets from sklearn.model_selection import train_test_split from sklearn.metrics import confusion_matrix from sklearn.utils.multiclass import unique_labels # import some data to play with iris = datasets.load_iris() X = iris.data y = iris.target class_names = iris.target_names # Split the data into a training set and a test set X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=0) # Run classifier, using a model that is too regularized (C too low) to see # the impact on the results classifier = svm.SVC(kernel='linear', C=0.01) y_pred = classifier.fit(X_train, y_train).predict(X_test) def plot_confusion_matrix(y_true, y_pred, classes, normalize=False, title=None, cmap=plt.cm.Blues): &quot;&quot;&quot; This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. &quot;&quot;&quot; if not title: if normalize: title = 'Normalized confusion matrix' else: title = 'Confusion matrix, without normalization' # Compute confusion matrix cm = confusion_matrix(y_true, y_pred) # Only use the labels that appear in the data classes = classes[unique_labels(y_true, y_pred)] if normalize: cm = cm.astype('float') / cm.sum(axis=1)[:, np.newaxis] print(&quot;Normalized confusion matrix&quot;) else: print('Confusion matrix, without normalization') print(cm) fig, ax = plt.subplots() im = ax.imshow(cm, interpolation='nearest', cmap=cmap) ax.figure.colorbar(im, ax=ax) # We want to show all ticks... ax.set(xticks=np.arange(cm.shape[1]), yticks=np.arange(cm.shape[0]), # ... and label them with the respective list entries xticklabels=classes, yticklabels=classes, title=title, ylabel='True label', xlabel='Predicted label') # Rotate the tick labels and set their alignment. plt.setp(ax.get_xticklabels(), rotation=45, ha=&quot;right&quot;, rotation_mode=&quot;anchor&quot;) # Loop over data dimensions and create text annotations. fmt = '.2f' if normalize else 'd' thresh = cm.max() / 2. for i in range(cm.shape[0]): for j in range(cm.shape[1]): ax.text(j, i, format(cm[i, j], fmt), ha=&quot;center&quot;, va=&quot;center&quot;, color=&quot;white&quot; if cm[i, j] &gt; thresh else &quot;black&quot;) fig.tight_layout() return ax np.set_printoptions(precision=2) # Plot non-normalized confusion matrix plot_confusion_matrix(y_test, y_pred, classes=class_names, title='Confusion matrix, without normalization') # Plot normalized confusion matrix plot_confusion_matrix(y_test, y_pred, classes=class_names, normalize=True, title='Normalized confusion matrix') plt.show()"><pre class="notranslate"><span class="pl-en">print</span>(<span class="pl-s1">__doc__</span>) <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span> <span class="pl-k">import</span> <span class="pl-s1">svm</span>, <span class="pl-s1">datasets</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">model_selection</span> <span class="pl-k">import</span> <span class="pl-s1">train_test_split</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">metrics</span> <span class="pl-k">import</span> <span class="pl-s1">confusion_matrix</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">utils</span>.<span class="pl-s1">multiclass</span> <span class="pl-k">import</span> <span class="pl-s1">unique_labels</span> <span class="pl-c"># import some data to play with</span> <span class="pl-s1">iris</span> <span class="pl-c1">=</span> <span class="pl-s1">datasets</span>.<span class="pl-en">load_iris</span>() <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">iris</span>.<span class="pl-s1">data</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">iris</span>.<span class="pl-s1">target</span> <span class="pl-s1">class_names</span> <span class="pl-c1">=</span> <span class="pl-s1">iris</span>.<span class="pl-s1">target_names</span> <span class="pl-c"># Split the data into a training set and a test set</span> <span class="pl-v">X_train</span>, <span class="pl-v">X_test</span>, <span class="pl-s1">y_train</span>, <span class="pl-s1">y_test</span> <span class="pl-c1">=</span> <span class="pl-en">train_test_split</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>, <span class="pl-s1">random_state</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-c"># Run classifier, using a model that is too regularized (C too low) to see</span> <span class="pl-c"># the impact on the results</span> <span class="pl-s1">classifier</span> <span class="pl-c1">=</span> <span class="pl-s1">svm</span>.<span class="pl-v">SVC</span>(<span class="pl-s1">kernel</span><span class="pl-c1">=</span><span class="pl-s">'linear'</span>, <span class="pl-v">C</span><span class="pl-c1">=</span><span class="pl-c1">0.01</span>) <span class="pl-s1">y_pred</span> <span class="pl-c1">=</span> <span class="pl-s1">classifier</span>.<span class="pl-en">fit</span>(<span class="pl-v">X_train</span>, <span class="pl-s1">y_train</span>).<span class="pl-en">predict</span>(<span class="pl-v">X_test</span>) <span class="pl-k">def</span> <span class="pl-en">plot_confusion_matrix</span>(<span class="pl-s1">y_true</span>, <span class="pl-s1">y_pred</span>, <span class="pl-s1">classes</span>, <span class="pl-s1">normalize</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">title</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s1">plt</span>.<span class="pl-s1">cm</span>.<span class="pl-v">Blues</span>): <span class="pl-s">"""</span> <span class="pl-s"> This function prints and plots the confusion matrix.</span> <span class="pl-s"> Normalization can be applied by setting `normalize=True`.</span> <span class="pl-s"> """</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">title</span>: <span class="pl-k">if</span> <span class="pl-s1">normalize</span>: <span class="pl-s1">title</span> <span class="pl-c1">=</span> <span class="pl-s">'Normalized confusion matrix'</span> <span class="pl-k">else</span>: <span class="pl-s1">title</span> <span class="pl-c1">=</span> <span class="pl-s">'Confusion matrix, without normalization'</span> <span class="pl-c"># Compute confusion matrix</span> <span class="pl-s1">cm</span> <span class="pl-c1">=</span> <span class="pl-en">confusion_matrix</span>(<span class="pl-s1">y_true</span>, <span class="pl-s1">y_pred</span>) <span class="pl-c"># Only use the labels that appear in the data</span> <span class="pl-s1">classes</span> <span class="pl-c1">=</span> <span class="pl-s1">classes</span>[<span class="pl-en">unique_labels</span>(<span class="pl-s1">y_true</span>, <span class="pl-s1">y_pred</span>)] <span class="pl-k">if</span> <span class="pl-s1">normalize</span>: <span class="pl-s1">cm</span> <span class="pl-c1">=</span> <span class="pl-s1">cm</span>.<span class="pl-en">astype</span>(<span class="pl-s">'float'</span>) <span class="pl-c1">/</span> <span class="pl-s1">cm</span>.<span class="pl-en">sum</span>(<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)[:, <span class="pl-s1">np</span>.<span class="pl-s1">newaxis</span>] <span class="pl-en">print</span>(<span class="pl-s">"Normalized confusion matrix"</span>) <span class="pl-k">else</span>: <span class="pl-en">print</span>(<span class="pl-s">'Confusion matrix, without normalization'</span>) <span class="pl-en">print</span>(<span class="pl-s1">cm</span>) <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>() <span class="pl-s1">im</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">imshow</span>(<span class="pl-s1">cm</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">'nearest'</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s1">cmap</span>) <span class="pl-s1">ax</span>.<span class="pl-s1">figure</span>.<span class="pl-en">colorbar</span>(<span class="pl-s1">im</span>, <span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">ax</span>) <span class="pl-c"># We want to show all ticks...</span> <span class="pl-s1">ax</span>.<span class="pl-en">set</span>(<span class="pl-s1">xticks</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-s1">cm</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">1</span>]), <span class="pl-s1">yticks</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-s1">cm</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>]), <span class="pl-c"># ... and label them with the respective list entries</span> <span class="pl-s1">xticklabels</span><span class="pl-c1">=</span><span class="pl-s1">classes</span>, <span class="pl-s1">yticklabels</span><span class="pl-c1">=</span><span class="pl-s1">classes</span>, <span class="pl-s1">title</span><span class="pl-c1">=</span><span class="pl-s1">title</span>, <span class="pl-s1">ylabel</span><span class="pl-c1">=</span><span class="pl-s">'True label'</span>, <span class="pl-s1">xlabel</span><span class="pl-c1">=</span><span class="pl-s">'Predicted label'</span>) <span class="pl-c"># Rotate the tick labels and set their alignment.</span> <span class="pl-s1">plt</span>.<span class="pl-en">setp</span>(<span class="pl-s1">ax</span>.<span class="pl-en">get_xticklabels</span>(), <span class="pl-s1">rotation</span><span class="pl-c1">=</span><span class="pl-c1">45</span>, <span class="pl-s1">ha</span><span class="pl-c1">=</span><span class="pl-s">"right"</span>, <span class="pl-s1">rotation_mode</span><span class="pl-c1">=</span><span class="pl-s">"anchor"</span>) <span class="pl-c"># Loop over data dimensions and create text annotations.</span> <span class="pl-s1">fmt</span> <span class="pl-c1">=</span> <span class="pl-s">'.2f'</span> <span class="pl-k">if</span> <span class="pl-s1">normalize</span> <span class="pl-k">else</span> <span class="pl-s">'d'</span> <span class="pl-s1">thresh</span> <span class="pl-c1">=</span> <span class="pl-s1">cm</span>.<span class="pl-en">max</span>() <span class="pl-c1">/</span> <span class="pl-c1">2.</span> <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">cm</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>]): <span class="pl-k">for</span> <span class="pl-s1">j</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">cm</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">1</span>]): <span class="pl-s1">ax</span>.<span class="pl-en">text</span>(<span class="pl-s1">j</span>, <span class="pl-s1">i</span>, <span class="pl-en">format</span>(<span class="pl-s1">cm</span>[<span class="pl-s1">i</span>, <span class="pl-s1">j</span>], <span class="pl-s1">fmt</span>), <span class="pl-s1">ha</span><span class="pl-c1">=</span><span class="pl-s">"center"</span>, <span class="pl-s1">va</span><span class="pl-c1">=</span><span class="pl-s">"center"</span>, <span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s">"white"</span> <span class="pl-k">if</span> <span class="pl-s1">cm</span>[<span class="pl-s1">i</span>, <span class="pl-s1">j</span>] <span class="pl-c1">&gt;</span> <span class="pl-s1">thresh</span> <span class="pl-k">else</span> <span class="pl-s">"black"</span>) <span class="pl-s1">fig</span>.<span class="pl-en">tight_layout</span>() <span class="pl-k">return</span> <span class="pl-s1">ax</span> <span class="pl-s1">np</span>.<span class="pl-en">set_printoptions</span>(<span class="pl-s1">precision</span><span class="pl-c1">=</span><span class="pl-c1">2</span>) <span class="pl-c"># Plot non-normalized confusion matrix</span> <span class="pl-en">plot_confusion_matrix</span>(<span class="pl-s1">y_test</span>, <span class="pl-s1">y_pred</span>, <span class="pl-s1">classes</span><span class="pl-c1">=</span><span class="pl-s1">class_names</span>, <span class="pl-s1">title</span><span class="pl-c1">=</span><span class="pl-s">'Confusion matrix, without normalization'</span>) <span class="pl-c"># Plot normalized confusion matrix</span> <span class="pl-en">plot_confusion_matrix</span>(<span class="pl-s1">y_test</span>, <span class="pl-s1">y_pred</span>, <span class="pl-s1">classes</span><span class="pl-c1">=</span><span class="pl-s1">class_names</span>, <span class="pl-s1">normalize</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">title</span><span class="pl-c1">=</span><span class="pl-s">'Normalized confusion matrix'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/56123251/66134690-b2f1ff00-e5c6-11e9-9c34-f96644eaf220.png"><img src="https://user-images.githubusercontent.com/56123251/66134690-b2f1ff00-e5c6-11e9-9c34-f96644eaf220.png" alt="Screenshot from 2019-10-03 10-12-56" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">The plots were expected to not look cropped.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Ubunto 18.04</li> <li>Matplotlib version: 3.1.1</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>):</li> <li>Python version: 3.7</li> <li>Jupyter version (if applicable):</li> <li>Other libraries:</li> </ul> <p dir="auto">matplotlib installed via pip.</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">The very top and bottom of the heatmaps are getting truncated to 1/2 height in version <code class="notranslate">3.1.1</code>. This does not happen for version <code class="notranslate">3.0.3</code>.</p> <p dir="auto">This is the code from a Jupyter Notebook</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib import pandas as pd import numpy as np import seaborn as sb %pylab inline print(matplotlib.__version__) print(sb.__version__) grid = pd.DataFrame(np.arange(9).reshape((3,3))/10) fig, ax = subplots(1, 1, figsize=(5, 5)) sb.heatmap(grid, annot=True, fmt=&quot;.0f&quot;, ax=ax, cmap='RdBu', vmin=0, vmax=1, cbar=True);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sb</span> <span class="pl-c1">%</span><span class="pl-s1">pylab</span> <span class="pl-s1">inline</span> <span class="pl-en">print</span>(<span class="pl-s1">matplotlib</span>.<span class="pl-s1">__version__</span>) <span class="pl-en">print</span>(<span class="pl-s1">sb</span>.<span class="pl-s1">__version__</span>) <span class="pl-s1">grid</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">9</span>).<span class="pl-en">reshape</span>((<span class="pl-c1">3</span>,<span class="pl-c1">3</span>))<span class="pl-c1">/</span><span class="pl-c1">10</span>) <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-en">subplots</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">5</span>, <span class="pl-c1">5</span>)) <span class="pl-s1">sb</span>.<span class="pl-en">heatmap</span>(<span class="pl-s1">grid</span>, <span class="pl-s1">annot</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">fmt</span><span class="pl-c1">=</span><span class="pl-s">".0f"</span>, <span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">ax</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s">'RdBu'</span>, <span class="pl-s1">vmin</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">vmax</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">cbar</span><span class="pl-c1">=</span><span class="pl-c1">True</span>);</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Populating the interactive namespace from numpy and matplotlib 3.1.1 0.9.0"><pre class="notranslate"><code class="notranslate">Populating the interactive namespace from numpy and matplotlib 3.1.1 0.9.0 </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1696066/60530345-87f5c780-9cc6-11e9-9e31-a251283f3f7e.png"><img src="https://user-images.githubusercontent.com/1696066/60530345-87f5c780-9cc6-11e9-9e31-a251283f3f7e.png" alt="download" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Ubuntu Linux</li> <li>Matplotlib version: 3.1.1</li> <li>Matplotlib backend: module://ipykernel.pylab.backend_inline</li> <li>Python version: 3.6</li> <li>Jupyter version (if applicable): 4.4.0</li> <li>Other libraries:</li> </ul>
1
<p dir="auto">Hi,</p> <p dir="auto">I have (mocha) specs which have the same filename as the subject under test and only another extension. Example: subject.js and subject.spec.js. Since the AMD and the System formatter inherit from the Default formatter all file extensions are removed. This results in duplicate module ids. How about making the removal of the file extension or configurable? So that either I have module ids matching the filenames or that just the last "extension" is removed.</p> <p dir="auto">Thanks</p>
<blockquote> <p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/loganfsmyth/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/loganfsmyth">@loganfsmyth</a></p> </blockquote> <h3 dir="auto">Input code</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function fn(){ true; // Comment false; }"><pre class="notranslate"><code class="notranslate">function fn(){ true; // Comment false; } </code></pre></div> <h3 dir="auto">Description</h3> <p dir="auto">Output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; function fn() { true; // Comment false; }"><pre class="notranslate"><code class="notranslate">"use strict"; function fn() { true; // Comment false; } </code></pre></div> <p dir="auto">with map:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{&quot;version&quot;:3,&quot;sources&quot;:[&quot;main.js&quot;],&quot;names&quot;:[],&quot;mappings&quot;:&quot;;;AAAA,SAAS,EAAT,GAAa;AACT;;;AADS,SAIT,CAJS;CAAb&quot;,&quot;file&quot;:&quot;main-out.js&quot;,&quot;sourcesContent&quot;:[&quot;function fn(){\n true;\n\n // Comment\n false;\n}\n&quot;]}"><pre class="notranslate"><code class="notranslate">{"version":3,"sources":["main.js"],"names":[],"mappings":";;AAAA,SAAS,EAAT,GAAa;AACT;;;AADS,SAIT,CAJS;CAAb","file":"main-out.js","sourcesContent":["function fn(){\n true;\n\n // Comment\n false;\n}\n"]} </code></pre></div> <p dir="auto">running through <code class="notranslate">source-map</code> results in the following bindings:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ { &quot;source&quot;: &quot;main.js&quot;, &quot;generatedLine&quot;: 3, &quot;generatedColumn&quot;: 0, &quot;originalLine&quot;: 1, &quot;originalColumn&quot;: 0, &quot;name&quot;: null }, { &quot;source&quot;: &quot;main.js&quot;, &quot;generatedLine&quot;: 3, &quot;generatedColumn&quot;: 9, &quot;originalLine&quot;: 1, &quot;originalColumn&quot;: 9, &quot;name&quot;: null }, { &quot;source&quot;: &quot;main.js&quot;, &quot;generatedLine&quot;: 3, &quot;generatedColumn&quot;: 11, &quot;originalLine&quot;: 1, &quot;originalColumn&quot;: 0, &quot;name&quot;: null }, { &quot;source&quot;: &quot;main.js&quot;, &quot;generatedLine&quot;: 3, &quot;generatedColumn&quot;: 14, &quot;originalLine&quot;: 1, &quot;originalColumn&quot;: 13, &quot;name&quot;: null }, { &quot;source&quot;: &quot;main.js&quot;, &quot;generatedLine&quot;: 4, &quot;generatedColumn&quot;: 0, &quot;originalLine&quot;: 2, &quot;originalColumn&quot;: 4, &quot;name&quot;: null }, { &quot;source&quot;: &quot;main.js&quot;, &quot;generatedLine&quot;: 7, &quot;generatedColumn&quot;: 0, &quot;originalLine&quot;: 1, &quot;originalColumn&quot;: 13, &quot;name&quot;: null }, { &quot;source&quot;: &quot;main.js&quot;, &quot;generatedLine&quot;: 7, &quot;generatedColumn&quot;: 9, &quot;originalLine&quot;: 5, &quot;originalColumn&quot;: 4, &quot;name&quot;: null }, { &quot;source&quot;: &quot;main.js&quot;, &quot;generatedLine&quot;: 7, &quot;generatedColumn&quot;: 10, &quot;originalLine&quot;: 1, &quot;originalColumn&quot;: 13, &quot;name&quot;: null }, { &quot;source&quot;: &quot;main.js&quot;, &quot;generatedLine&quot;: 8, &quot;generatedColumn&quot;: 1, &quot;originalLine&quot;: 1, &quot;originalColumn&quot;: 0, &quot;name&quot;: null } ]"><pre class="notranslate"><code class="notranslate">[ { "source": "main.js", "generatedLine": 3, "generatedColumn": 0, "originalLine": 1, "originalColumn": 0, "name": null }, { "source": "main.js", "generatedLine": 3, "generatedColumn": 9, "originalLine": 1, "originalColumn": 9, "name": null }, { "source": "main.js", "generatedLine": 3, "generatedColumn": 11, "originalLine": 1, "originalColumn": 0, "name": null }, { "source": "main.js", "generatedLine": 3, "generatedColumn": 14, "originalLine": 1, "originalColumn": 13, "name": null }, { "source": "main.js", "generatedLine": 4, "generatedColumn": 0, "originalLine": 2, "originalColumn": 4, "name": null }, { "source": "main.js", "generatedLine": 7, "generatedColumn": 0, "originalLine": 1, "originalColumn": 13, "name": null }, { "source": "main.js", "generatedLine": 7, "generatedColumn": 9, "originalLine": 5, "originalColumn": 4, "name": null }, { "source": "main.js", "generatedLine": 7, "generatedColumn": 10, "originalLine": 1, "originalColumn": 13, "name": null }, { "source": "main.js", "generatedLine": 8, "generatedColumn": 1, "originalLine": 1, "originalColumn": 0, "name": null } ] </code></pre></div> <p dir="auto">Given this map, if you want to find the original position of line 7 column 4, which should be line 5 column 4, instead we get line 1 column 13 (the start of the body)</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <p dir="auto">branch: master</p> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">When the rc.getParameters() return null,cc.getParameters() will be null too.</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (rc.getParameters() != null) { Map&lt;String, String&gt; configParams = cc.getParameters() == null ? new HashMap&lt;&gt;() : cc.getParameters(); configParams.putAll(rc.getParameters()); cc.setParameters(configParams); } cc.getParameters().put(org.apache.dubbo.remoting.Constants.CLIENT_KEY,rc.getClient());"><pre class="notranslate"><span class="pl-k">if</span> (<span class="pl-s1">rc</span>.<span class="pl-en">getParameters</span>() != <span class="pl-c1">null</span>) { <span class="pl-smi">Map</span>&lt;<span class="pl-smi">String</span>, <span class="pl-smi">String</span>&gt; <span class="pl-s1">configParams</span> = <span class="pl-s1">cc</span>.<span class="pl-en">getParameters</span>() == <span class="pl-c1">null</span> ? <span class="pl-k">new</span> <span class="pl-smi">HashMap</span>&lt;&gt;() : <span class="pl-s1">cc</span>.<span class="pl-en">getParameters</span>(); <span class="pl-s1">configParams</span>.<span class="pl-en">putAll</span>(<span class="pl-s1">rc</span>.<span class="pl-en">getParameters</span>()); <span class="pl-s1">cc</span>.<span class="pl-en">setParameters</span>(<span class="pl-s1">configParams</span>); } <span class="pl-s1">cc</span>.<span class="pl-en">getParameters</span>().<span class="pl-en">put</span>(<span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">dubbo</span>.<span class="pl-s1">remoting</span>.<span class="pl-s1">Constants</span>.<span class="pl-c1">CLIENT_KEY</span>,<span class="pl-s1">rc</span>.<span class="pl-en">getClient</span>());</pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7</li> <li>Operating System version: window7</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>使用注解Method进行回调通知存在bug<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12370508/56722468-bbbde980-6779-11e9-9842-e05c8c6ebc8a.png"><img src="https://user-images.githubusercontent.com/12370508/56722468-bbbde980-6779-11e9-9842-e05c8c6ebc8a.png" alt="image" style="max-width: 100%;"></a><br> 这样做仅仅会将字符串进行设置,显然通常他需要的是一个合理的对象,在spring中,这导致后面的回调会出现错误,<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12370508/56722605-063f6600-677a-11e9-9a7f-7e22fbdec62e.png"><img src="https://user-images.githubusercontent.com/12370508/56722605-063f6600-677a-11e9-9a7f-7e22fbdec62e.png" alt="image" style="max-width: 100%;"></a><br> spring的这里使用RuntimeBeanReference在后续解析后会引用到具体回调实现。</li> </ol>
0
<p dir="auto">See <a href="http://jsfiddle.net/PnLkH/1/" rel="nofollow">http://jsfiddle.net/PnLkH/1/</a>.</p> <p dir="auto">Using contextual classes (e.g. <code class="notranslate">panel-warning</code>) on <code class="notranslate">panel</code>s doesn't style their <code class="notranslate">panel-footer</code> of the right color, whereas it does for <code class="notranslate">panel-heading</code>s.</p>
<p dir="auto">Perhaps this was just an oversight, but I was surprised to see that the .panel-footer class isn't set to pick up the contextual panel styles.</p> <p dir="auto">Since the existing contextual panel styles (.panel-primary, etc.) don't just affect the background and border colors of .panel-heading, but also the border color for .panel itself, it seems odd that .panel-footer isn't also styled accordingly.</p> <p dir="auto">See the following examples:</p> <ol dir="auto"> <li><a href="http://jsfiddle.net/binvisions/p9dRb/" rel="nofollow">Bootstrap 3 RC2 Contextual Panel with Panel Footer</a></li> <li><a href="http://jsfiddle.net/binvisions/th7yx/2/" rel="nofollow">Proposed Panel with Contextual Panel Styles Applied to Panel Footers</a></li> </ol>
1
<p dir="auto"><strong>Current behavior</strong><br> According to Victor Savkin <a href="https://vsavkin.com/immutability-vs-encapsulation-90549ab74487#.jt71oqqbv" rel="nofollow">article</a> when using the OnPush strategy if the component Input does not change, there is no need to check the component’s template. But in my example when I am clicking on the trigger button and the Input does not change the <em>ngAfterViewChecked</em> hook still running.</p> <p dir="auto"><strong>Expected behavior</strong><br> The <em>ngAfterViewChecked</em> in the component should not run.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> This is a working <a href="https://plnkr.co/edit/GnKMfAxMl65ttBQVIeSj?p=preview" rel="nofollow">plunker</a>.</p>
<p dir="auto"><strong>I'm submitting a bug report</strong></p> <p dir="auto"><strong>Current behavior</strong><br> Published code &amp; umd bundles from npm such as <code class="notranslate">@angular/platform-browser/bundles/platform-browser.umd.js</code> from <code class="notranslate">@angular/platform-browser</code> include extra licenses and empty abstract methods.</p> <p dir="auto"><strong>Expected behavior</strong><br> Ideally our .umd bundles would not include these abstract no-op methods or the duplicate license information. This would probably result in bundle size reduction and performance increase for all Angular apps using these bundles.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install @angular/platform-browser grep &quot;) { }&quot; node_modules/@angular/platform-browser/bundles/platform-browser.umd.js"><pre class="notranslate"><code class="notranslate">npm install @angular/platform-browser grep ") { }" node_modules/@angular/platform-browser/bundles/platform-browser.umd.js </code></pre></div> <p dir="auto"><strong>Angular version:</strong> 2.4.1 &amp; master</p>
0
<p dir="auto">THe docker network interface cbr0 does not get created after rebooting a minion on gce.</p>
<p dir="auto">When a minion reboots, docker tries to start before salt has created the cbr0 bridge device. Docker gives up and fails to start.</p> <p dir="auto">From dcoker's log:<br> 364aa5b3.init_networkdriver()] bridge not found: cbr0<br> net: no such interface<br> [364aa5b3] -job init_networkdriver() = ERR (1)</p> <p dir="auto">Eventually salt makes the bridge and docker can be started, but nobody<br> tries. Unless you SSH in manually.</p> <p dir="auto">I do not know enough about salt to tackle this right now.</p>
1
<p dir="auto">I experience these strange behavior of <code class="notranslate">unstack()</code> when its <code class="notranslate">level</code> parameter gets a list instead of string.<br> This changes <code class="notranslate">dtype</code> of some columns from numeric to object, which is obviously a worrying change.<br> I am wondering if this a bug or there is something I am missing about dealing with this.<br> I am on pandas 0.16.0, numpy 1.9.2.</p> <p dir="auto">Here is a code to illustrate the problem:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="data = &quot;&quot;&quot;a,b,c,d 2,101,A,11 3,101,A,12 1,201,B,21 2,201,B,22 3,201,B,23 1,301,C,33 2,301,C,32&quot;&quot;&quot; df = pd.read_csv(pd.core.common.StringIO(data)) print df.dtypes df_str = df.set_index(['a','b']).unstack(level='a') # Note that level has a str print df_str.dtypes df_list = df.set_index(['a','b']).unstack(level=['a']) # Note that level has a list print df_list.dtypes"><pre class="notranslate"><code class="notranslate">data = """a,b,c,d 2,101,A,11 3,101,A,12 1,201,B,21 2,201,B,22 3,201,B,23 1,301,C,33 2,301,C,32""" df = pd.read_csv(pd.core.common.StringIO(data)) print df.dtypes df_str = df.set_index(['a','b']).unstack(level='a') # Note that level has a str print df_str.dtypes df_list = df.set_index(['a','b']).unstack(level=['a']) # Note that level has a list print df_list.dtypes </code></pre></div> <p dir="auto">Which produces:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a int64 b int64 c object d int64 &lt;-- Note original dtype dtype: object a c 1 object 2 object 3 object d 1 float64 &lt;-- expected change of dtype due to NaN addition 2 float64 &lt;-- expected change of dtype due to NaN addition 3 float64 &lt;-- expected change of dtype due to NaN addition dtype: object a c 2 object 3 object 1 object d 2 object &lt;-- UNexpected change of dtype, when level got list 3 object &lt;-- UNexpected change of dtype, when level got list 1 object &lt;-- UNexpected change of dtype, when level got list dtype: object"><pre class="notranslate"><code class="notranslate">a int64 b int64 c object d int64 &lt;-- Note original dtype dtype: object a c 1 object 2 object 3 object d 1 float64 &lt;-- expected change of dtype due to NaN addition 2 float64 &lt;-- expected change of dtype due to NaN addition 3 float64 &lt;-- expected change of dtype due to NaN addition dtype: object a c 2 object 3 object 1 object d 2 object &lt;-- UNexpected change of dtype, when level got list 3 object &lt;-- UNexpected change of dtype, when level got list 1 object &lt;-- UNexpected change of dtype, when level got list dtype: object </code></pre></div>
<p dir="auto">shouldn't the last two examples remove the innermost index level?</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [69]: from pandas.util.testing import makeCustomDataframe as mkdf ...: mkdf(4,2,r_idx_nlevels=1).set_index(&quot;C_l0_g0&quot;,append=True,drop=False) Out[69]: C0 C_l0_g0 C_l0_g1 R0 C_l0_g0 R_l0_g0 R0C0 R0C0 R0C1 R_l0_g1 R1C0 R1C0 R1C1 R_l0_g2 R2C0 R2C0 R2C1 R_l0_g3 R3C0 R3C0 R3C1 In [70]: from pandas.util.testing import makeCustomDataframe as mkdf ...: mkdf(4,2,r_idx_nlevels=1).set_index(&quot;C_l0_g0&quot;,append=True,drop=False).reset_index(0) Out[70]: C0 R0 C_l0_g0 C_l0_g1 C_l0_g0 R0C0 R_l0_g0 R0C0 R0C1 R1C0 R_l0_g1 R1C0 R1C1 R2C0 R_l0_g2 R2C0 R2C1 R3C0 R_l0_g3 R3C0 R3C1"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">69</span>]: <span class="pl-s1">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">util</span>.<span class="pl-s1">testing</span> <span class="pl-s1">import</span> <span class="pl-s1">makeCustomDataframe</span> <span class="pl-k">as</span> <span class="pl-s1">mkdf</span> ...: <span class="pl-en">mkdf</span>(<span class="pl-c1">4</span>,<span class="pl-c1">2</span>,<span class="pl-s1">r_idx_nlevels</span><span class="pl-c1">=</span><span class="pl-c1">1</span>).<span class="pl-en">set_index</span>(<span class="pl-s">"C_l0_g0"</span>,<span class="pl-s1">append</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,<span class="pl-s1">drop</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-v">Out</span>[<span class="pl-c1">69</span>]: <span class="pl-v">C0</span> <span class="pl-v">C_l0_g0</span> <span class="pl-v">C_l0_g1</span> <span class="pl-v">R0</span> <span class="pl-v">C_l0_g0</span> <span class="pl-v">R_l0_g0</span> <span class="pl-v">R0C0</span> <span class="pl-v">R0C0</span> <span class="pl-v">R0C1</span> <span class="pl-v">R_l0_g1</span> <span class="pl-v">R1C0</span> <span class="pl-v">R1C0</span> <span class="pl-v">R1C1</span> <span class="pl-v">R_l0_g2</span> <span class="pl-v">R2C0</span> <span class="pl-v">R2C0</span> <span class="pl-v">R2C1</span> <span class="pl-v">R_l0_g3</span> <span class="pl-v">R3C0</span> <span class="pl-v">R3C0</span> <span class="pl-v">R3C1</span> <span class="pl-v">In</span> [<span class="pl-c1">70</span>]: <span class="pl-s1">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">util</span>.<span class="pl-s1">testing</span> <span class="pl-s1">import</span> <span class="pl-s1">makeCustomDataframe</span> <span class="pl-k">as</span> <span class="pl-s1">mkdf</span> ...: <span class="pl-en">mkdf</span>(<span class="pl-c1">4</span>,<span class="pl-c1">2</span>,<span class="pl-s1">r_idx_nlevels</span><span class="pl-c1">=</span><span class="pl-c1">1</span>).<span class="pl-en">set_index</span>(<span class="pl-s">"C_l0_g0"</span>,<span class="pl-s1">append</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,<span class="pl-s1">drop</span><span class="pl-c1">=</span><span class="pl-c1">False</span>).<span class="pl-en">reset_index</span>(<span class="pl-c1">0</span>) <span class="pl-v">Out</span>[<span class="pl-c1">70</span>]: <span class="pl-v">C0</span> <span class="pl-v">R0</span> <span class="pl-v">C_l0_g0</span> <span class="pl-v">C_l0_g1</span> <span class="pl-v">C_l0_g0</span> <span class="pl-v">R0C0</span> <span class="pl-v">R_l0_g0</span> <span class="pl-v">R0C0</span> <span class="pl-v">R0C1</span> <span class="pl-v">R1C0</span> <span class="pl-v">R_l0_g1</span> <span class="pl-v">R1C0</span> <span class="pl-v">R1C1</span> <span class="pl-v">R2C0</span> <span class="pl-v">R_l0_g2</span> <span class="pl-v">R2C0</span> <span class="pl-v">R2C1</span> <span class="pl-v">R3C0</span> <span class="pl-v">R_l0_g3</span> <span class="pl-v">R3C0</span> <span class="pl-v">R3C1</span></pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [71]: from pandas.util.testing import makeCustomDataframe as mkdf ...: mkdf(4,2,r_idx_nlevels=1).set_index(&quot;C_l0_g0&quot;,append=True,drop=False).reset_index(1) /home/user1/src/pandas/pandas/core/internals.pyc in insert(self, loc, item, value) 956 def insert(self, loc, item, value): 957 if item in self.items: --&gt; 958 raise Exception('cannot insert %s, already exists' % item) 959 960 new_items = self.items.insert(loc, item) Exception: cannot insert C_l0_g0, already exists"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">71</span>]: <span class="pl-s1">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">util</span>.<span class="pl-s1">testing</span> <span class="pl-s1">import</span> <span class="pl-s1">makeCustomDataframe</span> <span class="pl-k">as</span> <span class="pl-s1">mkdf</span> ...: <span class="pl-en">mkdf</span>(<span class="pl-c1">4</span>,<span class="pl-c1">2</span>,<span class="pl-s1">r_idx_nlevels</span><span class="pl-c1">=</span><span class="pl-c1">1</span>).<span class="pl-en">set_index</span>(<span class="pl-s">"C_l0_g0"</span>,<span class="pl-s1">append</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,<span class="pl-s1">drop</span><span class="pl-c1">=</span><span class="pl-c1">False</span>).<span class="pl-en">reset_index</span>(<span class="pl-c1">1</span>) <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">user1</span><span class="pl-c1">/</span><span class="pl-s1">src</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">internals</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">insert</span>(<span class="pl-s1">self</span>, <span class="pl-s1">loc</span>, <span class="pl-s1">item</span>, <span class="pl-s1">value</span>) <span class="pl-c1">956</span> <span class="pl-k">def</span> <span class="pl-en">insert</span>(<span class="pl-s1">self</span>, <span class="pl-s1">loc</span>, <span class="pl-s1">item</span>, <span class="pl-s1">value</span>): <span class="pl-c1">957</span> <span class="pl-k">if</span> <span class="pl-s1">item</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">items</span>: <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">958</span> <span class="pl-s1">raise</span> <span class="pl-v">Exception</span>(<span class="pl-s">'cannot insert %s, already exists'</span> <span class="pl-c1">%</span> <span class="pl-s1">item</span>) <span class="pl-c1">959</span> <span class="pl-c1">960</span> <span class="pl-s1">new_items</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">items</span>.<span class="pl-en">insert</span>(<span class="pl-s1">loc</span>, <span class="pl-s1">item</span>) <span class="pl-v">Exception</span>: <span class="pl-s1">cannot</span> <span class="pl-s1">insert</span> <span class="pl-v">C_l0_g0</span>, <span class="pl-s1">already</span> <span class="pl-s1">exists</span></pre></div> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [72]: from pandas.util.testing import makeCustomDataframe as mkdf ...: mkdf(4,2,r_idx_nlevels=1).set_index(&quot;C_l0_g0&quot;,append=True,drop=False).reset_index(-1) /home/user1/src/pandas/pandas/core/internals.pyc in insert(self, loc, item, value) 956 def insert(self, loc, item, value): 957 if item in self.items: --&gt; 958 raise Exception('cannot insert %s, already exists' % item) 959 960 new_items = self.items.insert(loc, item) Exception: cannot insert C_l0_g0, already exists "><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">72</span>]: <span class="pl-s1">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">util</span>.<span class="pl-s1">testing</span> <span class="pl-s1">import</span> <span class="pl-s1">makeCustomDataframe</span> <span class="pl-k">as</span> <span class="pl-s1">mkdf</span> ...: <span class="pl-en">mkdf</span>(<span class="pl-c1">4</span>,<span class="pl-c1">2</span>,<span class="pl-s1">r_idx_nlevels</span><span class="pl-c1">=</span><span class="pl-c1">1</span>).<span class="pl-en">set_index</span>(<span class="pl-s">"C_l0_g0"</span>,<span class="pl-s1">append</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,<span class="pl-s1">drop</span><span class="pl-c1">=</span><span class="pl-c1">False</span>).<span class="pl-en">reset_index</span>(<span class="pl-c1">-</span><span class="pl-c1">1</span>) <span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">user1</span><span class="pl-c1">/</span><span class="pl-s1">src</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">internals</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">insert</span>(<span class="pl-s1">self</span>, <span class="pl-s1">loc</span>, <span class="pl-s1">item</span>, <span class="pl-s1">value</span>) <span class="pl-c1">956</span> <span class="pl-k">def</span> <span class="pl-en">insert</span>(<span class="pl-s1">self</span>, <span class="pl-s1">loc</span>, <span class="pl-s1">item</span>, <span class="pl-s1">value</span>): <span class="pl-c1">957</span> <span class="pl-k">if</span> <span class="pl-s1">item</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">items</span>: <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">958</span> <span class="pl-s1">raise</span> <span class="pl-v">Exception</span>(<span class="pl-s">'cannot insert %s, already exists'</span> <span class="pl-c1">%</span> <span class="pl-s1">item</span>) <span class="pl-c1">959</span> <span class="pl-c1">960</span> <span class="pl-s1">new_items</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">items</span>.<span class="pl-en">insert</span>(<span class="pl-s1">loc</span>, <span class="pl-s1">item</span>) <span class="pl-v">Exception</span>: <span class="pl-s1">cannot</span> <span class="pl-s1">insert</span> <span class="pl-v">C_l0_g0</span>, <span class="pl-s1">already</span> <span class="pl-s1">exists</span></pre></div>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.8</li> <li>Operating System version: Windows 10</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>RpcStatus的beginCount的实现代码如下。</li> </ol> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" /** * @param url */ public static boolean beginCount(URL url, String methodName, int max) { max = (max &lt;= 0) ? Integer.MAX_VALUE : max; RpcStatus appStatus = getStatus(url); RpcStatus methodStatus = getStatus(url, methodName); if (methodStatus.active.get() == Integer.MAX_VALUE) { return false; } for (int i; ; ) { i = methodStatus.active.get(); if (i + 1 &gt; max) { return false; } if (methodStatus.active.compareAndSet(i, i + 1)) { break; } } appStatus.active.incrementAndGet(); return true; }"><pre class="notranslate"> <span class="pl-c">/**</span> <span class="pl-c"> * @param url</span> <span class="pl-c"> */</span> <span class="pl-k">public</span> <span class="pl-k">static</span> <span class="pl-smi">boolean</span> <span class="pl-s1">beginCount</span>(<span class="pl-smi">URL</span> <span class="pl-s1">url</span>, <span class="pl-smi">String</span> <span class="pl-s1">methodName</span>, <span class="pl-smi">int</span> <span class="pl-s1">max</span>) { <span class="pl-s1">max</span> = (<span class="pl-s1">max</span> &lt;= <span class="pl-c1">0</span>) ? <span class="pl-smi">Integer</span>.<span class="pl-c1">MAX_VALUE</span> : <span class="pl-s1">max</span>; <span class="pl-smi">RpcStatus</span> <span class="pl-s1">appStatus</span> = <span class="pl-en">getStatus</span>(<span class="pl-s1">url</span>); <span class="pl-smi">RpcStatus</span> <span class="pl-s1">methodStatus</span> = <span class="pl-en">getStatus</span>(<span class="pl-s1">url</span>, <span class="pl-s1">methodName</span>); <span class="pl-k">if</span> (<span class="pl-s1">methodStatus</span>.<span class="pl-s1">active</span>.<span class="pl-en">get</span>() == <span class="pl-smi">Integer</span>.<span class="pl-c1">MAX_VALUE</span>) { <span class="pl-k">return</span> <span class="pl-c1">false</span>; } <span class="pl-k">for</span> (<span class="pl-smi">int</span> <span class="pl-s1">i</span>; ; ) { <span class="pl-s1">i</span> = <span class="pl-s1">methodStatus</span>.<span class="pl-s1">active</span>.<span class="pl-en">get</span>(); <span class="pl-k">if</span> (<span class="pl-s1">i</span> + <span class="pl-c1">1</span> &gt; <span class="pl-s1">max</span>) { <span class="pl-k">return</span> <span class="pl-c1">false</span>; } <span class="pl-k">if</span> (<span class="pl-s1">methodStatus</span>.<span class="pl-s1">active</span>.<span class="pl-en">compareAndSet</span>(<span class="pl-s1">i</span>, <span class="pl-s1">i</span> + <span class="pl-c1">1</span>)) { <span class="pl-k">break</span>; } } <span class="pl-s1">appStatus</span>.<span class="pl-s1">active</span>.<span class="pl-en">incrementAndGet</span>(); <span class="pl-k">return</span> <span class="pl-c1">true</span>; }</pre></div> <p dir="auto">在以上代码的for循环中,存在着i + 1操作</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" for (int i; ; ) { i = methodStatus.active.get(); if (i + 1 &gt; max) { return false; } if (methodStatus.active.compareAndSet(i, i + 1)) { break; } }"><pre class="notranslate"> <span class="pl-k">for</span> (<span class="pl-smi">int</span> <span class="pl-s1">i</span>; ; ) { <span class="pl-s1">i</span> = <span class="pl-s1">methodStatus</span>.<span class="pl-s1">active</span>.<span class="pl-en">get</span>(); <span class="pl-k">if</span> (<span class="pl-s1">i</span> + <span class="pl-c1">1</span> &gt; <span class="pl-s1">max</span>) { <span class="pl-k">return</span> <span class="pl-c1">false</span>; } <span class="pl-k">if</span> (<span class="pl-s1">methodStatus</span>.<span class="pl-s1">active</span>.<span class="pl-en">compareAndSet</span>(<span class="pl-s1">i</span>, <span class="pl-s1">i</span> + <span class="pl-c1">1</span>)) { <span class="pl-k">break</span>; } }</pre></div> <p dir="auto">问题如下:<br> 当 i == Integer.MAX_VALUE的时候,i + 1会发生溢出吧?如果发生了溢出,导致的后果是 i + 1-&gt;溢出-&gt; 大于max不成立 -&gt;cas设置成功-&gt;成功调用。<br> 发生这种情况的条件比较极端,前提是i的值为Integer.MAX_VALUE。在循环的上面有对值的判断,但在并发的情况下,此判断会失效。</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (methodStatus.active.get() == Integer.MAX_VALUE) { return false; }"><pre class="notranslate"><span class="pl-k">if</span> (<span class="pl-s1">methodStatus</span>.<span class="pl-s1">active</span>.<span class="pl-en">get</span>() == <span class="pl-smi">Integer</span>.<span class="pl-c1">MAX_VALUE</span>) { <span class="pl-k">return</span> <span class="pl-c1">false</span>; }</pre></div> <p dir="auto">这算是bug吗?</p>
0
<p dir="auto">When we add new <code class="notranslate">.py</code> files, we are careful to add underscores to the file names to ensure everyone sees at a glance that this is not a new public namespace. However, we have lots of files that are missing that underscore. This is only because of historical reasons; in the early days of SciPy no one paid attention to this. We had a discussion about it once, probably about 9-10 years ago, and decided to not clean things up back then because the concrete benefits were unclear.</p> <p dir="auto">The public namespaces are documented in <a href="http://scipy.github.io/devdocs/reference/index.html#api-definition" rel="nofollow">http://scipy.github.io/devdocs/reference/index.html#api-definition</a>. No one reads the docs though. This has become much more of a problem recently, because authors of other libraries have started to reimplement parts of the SciPy API, for example:</p> <ul dir="auto"> <li>CuPy, see <a href="https://docs.cupy.dev/en/stable/reference/scipy.html" rel="nofollow">https://docs.cupy.dev/en/stable/reference/scipy.html</a></li> <li>JAX, see <a href="https://jax.readthedocs.io/en/latest/jax.scipy.html" rel="nofollow">https://jax.readthedocs.io/en/latest/jax.scipy.html</a></li> <li><code class="notranslate">dask_image</code>, see <a href="http://image.dask.org/en/latest/api.html" rel="nofollow">http://image.dask.org/en/latest/api.html</a></li> <li>PyTorch is adding a <code class="notranslate">torch.special</code> namespace that mirrors <code class="notranslate">scipy.special</code>: <a href="https://pytorch.org/docs/master/special.html" rel="nofollow">https://pytorch.org/docs/master/special.html</a></li> </ul> <p dir="auto">Those libraries can get it wrong by accident, or they just mirror what our actual filenames are even though we tell them it's not meant to be a public namespace. An example of each:</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="447182052" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/10204" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/10204/hovercard" href="https://github.com/scipy/scipy/issues/10204">#10204</a> discusses <code class="notranslate">dask_image</code> restructuring its namespace to match <code class="notranslate">scipy.ndimage</code></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="851639822" data-permission-text="Title is private" data-url="https://github.com/cupy/cupy/issues/5047" data-hovercard-type="pull_request" data-hovercard-url="/cupy/cupy/pull/5047/hovercard" href="https://github.com/cupy/cupy/pull/5047">cupy/cupy#5047</a> is about <code class="notranslate">scipy.stats.distributions</code></li> </ul> <p dir="auto">Long story short: we should clean this up. There's two ways we can go about this:</p> <ol dir="auto"> <li>don't deprecate anything. Just move <code class="notranslate">somefile.py</code> to <code class="notranslate">_somefile.py</code>, and then add a new <code class="notranslate">somefile.py</code> which reimports the public functions from <code class="notranslate">_somefile.py</code> and adds a big comment with warnings about this not being a public namespace at the top of the file.</li> <li>do (1), and then deprecate the functions in <code class="notranslate">somefile</code></li> </ol> <p dir="auto">I'd suggest to do (2) by default, and only make exceptions in case something is quite heavily used and adding deprecations would be too disruptive.</p> <p dir="auto">We should prioritize modules that are being duplicated in CuPy, JAX, PyTorch et al.</p> <p dir="auto">EDIT: a test should also be added that no new private-but-public-looking namespaces are added. The approach can be taken from <a href="https://github.com/numpy/numpy/blob/main/numpy/tests/test_public_api.py">https://github.com/numpy/numpy/blob/main/numpy/tests/test_public_api.py</a></p> <p dir="auto">EDIT 2: a basic API design principle is: <em>a public object should only be available from one namespace</em>. Having any function in two or more places is just extra technical debt, and with things like dispatching on an API or another library implementing a mirror API, the cost goes up.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; from scipy import ndimage &gt;&gt;&gt; ndimage.filters.gaussian_filter is ndimage.gaussian_filter # :( True"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">from</span> <span class="pl-s1">scipy</span> <span class="pl-k">import</span> <span class="pl-s1">ndimage</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">ndimage</span>.<span class="pl-s1">filters</span>.<span class="pl-s1">gaussian_filter</span> <span class="pl-c1">is</span> <span class="pl-s1">ndimage</span>.<span class="pl-s1">gaussian_filter</span> <span class="pl-c"># :(</span> <span class="pl-c1">True</span></pre></div> <p dir="auto">EDIT 3: now that it's decided we're going ahead with this, here is a tracker of which modules are done:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cluster</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> constants</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> fft</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> fftpack</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> integrate</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> interpolate</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> io</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> linalg</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> misc</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> ndimage</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> odr</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> optimize</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> signal</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> sparse</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> sparse.csgraph</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> sparse.linalg</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> spatial</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> special</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> stats</li> </ul> <p dir="auto">Also, we should take over the public API test from NumPy:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/numpy/numpy/blob/main/numpy/tests/test_public_api.py">https://github.com/numpy/numpy/blob/main/numpy/tests/test_public_api.py</a></li> </ul> <p dir="auto">EDIT 4:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> right before closing this issue, we should compare master with 1.7.0 and use some version of <code class="notranslate">sorted([x for x in dir(fitpack) if not (x.startswith('_') or x in ('np', 'warnings'))]</code> to compare for each file/namespace we gave an underscore that everything that looks like a regular SciPy function/object is present in the listings from which we raise deprecation warnings. That way, even if people used clearly private things that were not in <code class="notranslate">__all__</code> in that file, they will still get the warnings rather than a hard break.</li> </ul>
<p dir="auto">I should mention first that this is an enhancement request rather than a bug issue.</p> <p dir="auto">The return type of the <a href="https://github.com/scipy/scipy/blob/b5d8bab88af61d61de09641243848df63380a67f/scipy/stats/_stats_py.py#L5944"><code class="notranslate">stats.ttest_ind</code></a> function, testing for equal means two samples, comprises the t statistic and its associated p value. However, the degree of freedom parameter, computed in the function to estimate the p value from the t statistic, is missing in the return type, although it could be useful to the user (it is to me for instance).</p> <p dir="auto">In the <a href="https://github.com/scipy/scipy/issues/9485" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/9485/hovercard">distantly related issue</a>, the issue author points out to the <a href="https://www.rdocumentation.org/packages/stats/versions/3.6.2/topics/t.test" rel="nofollow">R function performing the t test</a> (factorized in one function instead of 3 functions, depending on function arguments). Efforts could be combined to factorize the functions and enhance the return type by getting inspired by the R function (other values could be useful for the user).</p>
0
<h2 dir="auto">Bug Report</h2> <h3 dir="auto">Development environment</h3> <p dir="auto">Spring Boot: 2.5.4<br> MyBatis Spring Boot Starter: 2.2.0<br> ShardingSphere JDBC: 5.0.0-beta<br> MySQL: 8.0.23</p> <h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">5.0.0-beta</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">shardingsphere-jdbc-core</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Throw an exception.<br> The username field is unique, an exception should be thrown when adding duplicates. It is normal when not using ShardingSphere.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.springframework.dao.DuplicateKeyException: ### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry 'suikenung' for key 'user.uk_username' ### The error may exist in file [D:\Software\JetBrains\Projects\Java\sugus\sugus-system\target\classes\mapper\UserMapper.xml] ### The error may involve com.lrq.sugus.system.mapper.UserMapper.insert-Inline ### The error occurred while setting parameters ### SQL: insert into `user` ( username, `password`, enabled, full_name, email, mobile, sex ) values ( ?, ?, ?, ?, ?, ?, ? ) ### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry 'suikenung' for key 'user.uk_username' ; Duplicate entry 'suikenung' for key 'user.uk_username'; nested exception is java.sql.SQLIntegrityConstraintViolationException: Duplicate entry 'suikenung' for key 'user.uk_username'"><pre class="notranslate"><code class="notranslate">org.springframework.dao.DuplicateKeyException: ### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry 'suikenung' for key 'user.uk_username' ### The error may exist in file [D:\Software\JetBrains\Projects\Java\sugus\sugus-system\target\classes\mapper\UserMapper.xml] ### The error may involve com.lrq.sugus.system.mapper.UserMapper.insert-Inline ### The error occurred while setting parameters ### SQL: insert into `user` ( username, `password`, enabled, full_name, email, mobile, sex ) values ( ?, ?, ?, ?, ?, ?, ? ) ### Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry 'suikenung' for key 'user.uk_username' ; Duplicate entry 'suikenung' for key 'user.uk_username'; nested exception is java.sql.SQLIntegrityConstraintViolationException: Duplicate entry 'suikenung' for key 'user.uk_username' </code></pre></div> <h3 dir="auto">Actual behavior</h3> <p dir="auto">When using ShardingSphere, nothing happened. And no exception is thrown.</p> <p dir="auto">Adding dependent antlr4-runtime has no effect.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;dependency&gt; &lt;groupId&gt;org.antlr&lt;/groupId&gt; &lt;artifactId&gt;antlr4-runtime&lt;/artifactId&gt; &lt;version&gt;4.7.2&lt;/version&gt; &lt;/dependency&gt;"><pre class="notranslate"><code class="notranslate">&lt;dependency&gt; &lt;groupId&gt;org.antlr&lt;/groupId&gt; &lt;artifactId&gt;antlr4-runtime&lt;/artifactId&gt; &lt;version&gt;4.7.2&lt;/version&gt; &lt;/dependency&gt; </code></pre></div> <h3 dir="auto">Reason analyze (If you can)</h3> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CREATE TABLE `user` ( ... UNIQUE INDEX `uk_username`(`username`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC;"><pre class="notranslate"><code class="notranslate">CREATE TABLE `user` ( ... UNIQUE INDEX `uk_username`(`username`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = DYNAMIC; </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;insert id=&quot;insert&quot; keyProperty=&quot;id&quot; parameterType=&quot;com.lrq.sugus.system.dataobject.UserDO&quot; useGeneratedKeys=&quot;true&quot;&gt; insert into `user` (username) values (#{username}) &lt;/insert&gt;"><pre class="notranslate"><code class="notranslate">&lt;insert id="insert" keyProperty="id" parameterType="com.lrq.sugus.system.dataobject.UserDO" useGeneratedKeys="true"&gt; insert into `user` (username) values (#{username}) &lt;/insert&gt; </code></pre></div> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<p dir="auto">Hi,</p> <p dir="auto">If you're interested in this one, please comment below so I can assign it to u. :)</p> <h3 dir="auto">Background</h3> <p dir="auto"><code class="notranslate">OptimizeContextFactory</code> is created in the constructor of <code class="notranslate">StandardMetaDataContexts</code> with <code class="notranslate">metaDataMap</code>.<br> If you dive into the constructor of <code class="notranslate">OptimizeContextFactory</code> and <code class="notranslate">MetaDataContextsBuilder</code>, you will find both handlings of them need loading table metadata. Therefore, this issue is to reduce the unnecessary and duplicated table metadata loading.</p> <h3 dir="auto">Expected result</h3> <ul dir="auto"> <li>Create <code class="notranslate">OptimizeContextFactory</code> in <code class="notranslate">MetaDataContextsBuilder</code></li> <li>Share the table metadata loading between <code class="notranslate">OptimizeContextFactory</code> and <code class="notranslate">Map&lt;String, ShardingSphereMetaData&gt;</code> of <code class="notranslate">StandardMetaDataContexts</code></li> </ul> <h3 dir="auto">How</h3> <ul dir="auto"> <li>The entrance is <code class="notranslate">buildSchema()</code> of <code class="notranslate">MetaDataContextsBuilder</code></li> <li>Change the result of <code class="notranslate">SchemaBuilder.build()</code> to <code class="notranslate">Map&lt;ActualTableMetadata, LogicTableMetadata&gt;</code><br> In <code class="notranslate">SchemaBuilder</code>,<br> <code class="notranslate">addRuleConfiguredTables</code> returns <code class="notranslate">logicTableMetadata</code>. On the other hand <code class="notranslate">appendRemainTables(materials, result);</code> returns <code class="notranslate">actualTableMetadata</code>. So we need to call <code class="notranslate">load()</code> and <code class="notranslate">decorate()</code> of <code class="notranslate">TableMetaDataBuilder</code> respectively to get the acutal and logic ones.</li> <li>Assemble <code class="notranslate">ShardingSphereSchema</code> using the list of logic table metadata</li> <li>Create <code class="notranslate">OptimizeContextFactory</code> by the list of actual table metadata</li> <li>Remove the deprecated constructors of <code class="notranslate">FederateSchemaMetadata</code> and <code class="notranslate">FederateTableMetadata</code></li> </ul>
0
<p dir="auto">I am facing an error when running <code class="notranslate">next build</code> on my project with Inferno.JS.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Build the project without errors.</p> <h2 dir="auto">Current Behavior</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="yarn run v1.5.1 $ next build &gt; Using external babel configuration &gt; Location: &quot;/home/gcfabri/Workspace/fazanicrm/.babelrc&quot; &gt; Failed to build { Error: (client) ./node_modules/inferno-compat/dist/index.mjs Module not found: Error: Can't resolve 'inferno-clone-vnode' in '/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist' resolve 'inferno-clone-vnode' in '/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist' Parsed request is a module using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist) Field 'browser' doesn't contain a valid alias configuration after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist) resolve as module looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules) using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-clone-vnode) no extension Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js doesn't exist .jsx Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx doesn't exist .json Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json doesn't exist as directory /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn't exist /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn't exist or is not a directory /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn't exist or is not a directory /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn't exist or is not a directory /home/gcfabri/Workspace/node_modules doesn't exist or is not a directory /home/gcfabri/node_modules doesn't exist or is not a directory /home/node_modules doesn't exist or is not a directory /node_modules doesn't exist or is not a directory looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules) using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-clone-vnode) no extension Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js doesn't exist .jsx Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx doesn't exist .json Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json doesn't exist as directory /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn't exist [/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode] [/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js] [/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx] [/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json] [/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode] [/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules] [/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules] [/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules] [/home/gcfabri/Workspace/node_modules] [/home/gcfabri/node_modules] [/home/node_modules] [/node_modules] [/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode] [/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js] [/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx] [/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json] [/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode] @ ./node_modules/inferno-compat/dist/index.mjs 3:0-49 4:0-77 @ ./node_modules/next/dist/client/index.js @ ./node_modules/next/dist/client/next.js @ multi ./node_modules/next/dist/client/next.js at /home/gcfabri/Workspace/fazanicrm/node_modules/next/dist/server/build/index.js:162:31 at runWithDependencies (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:154:4) at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:1126:9 at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:473:16 at iteratorCallback (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:1050:13) at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:958:16 at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:1123:13 at runCompilers (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:96:47) at fn (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:101:6) at compiler.run (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:150:5) at emitRecords.err (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:265:13) at Compiler.emitRecords (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:371:38) at emitAssets.err (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:258:10) at applyPluginsAsyncSeries1.err (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:364:12) at next (/home/gcfabri/Workspace/fazanicrm/node_modules/tapable/lib/Tapable.js:218:11) at Compiler.compiler.plugin (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4) errors: [ '(client) ./node_modules/inferno-compat/dist/index.mjs\nModule not found: Error: Can\'t resolve \'inferno-clone-vnode\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\nresolve \'inferno-clone-vnode\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\n Parsed request is a module\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n resolve as module\n looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-clone-vnode)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js doesn\'t exist\n .jsx\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json doesn\'t exist\n as directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn\'t exist\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/node_modules doesn\'t exist or is not a directory\n /home/node_modules doesn\'t exist or is not a directory\n /node_modules doesn\'t exist or is not a directory\n looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules\n using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-clone-vnode)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js doesn\'t exist\n .jsx\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json doesn\'t exist\n as directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn\'t exist\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules]\n[/home/gcfabri/Workspace/node_modules]\n[/home/gcfabri/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode]\n @ ./node_modules/inferno-compat/dist/index.mjs 3:0-49 4:0-77\n @ ./node_modules/next/dist/client/index.js\n @ ./node_modules/next/dist/client/next.js\n @ multi ./node_modules/next/dist/client/next.js', '(client) ./node_modules/inferno-compat/dist/index.mjs\nModule not found: Error: Can\'t resolve \'inferno-create-class\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\nresolve \'inferno-create-class\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\n Parsed request is a module\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n resolve as module\n looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-create-class)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.js doesn\'t exist\n .jsx\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.jsx doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.json doesn\'t exist\n as directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class doesn\'t exist\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/node_modules doesn\'t exist or is not a directory\n /home/node_modules doesn\'t exist or is not a directory\n /node_modules doesn\'t exist or is not a directory\n looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules\n using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-create-class)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.js doesn\'t exist\n .jsx\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.jsx doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.json doesn\'t exist\n as directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class doesn\'t exist\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules]\n[/home/gcfabri/Workspace/node_modules]\n[/home/gcfabri/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class]\n @ ./node_modules/inferno-compat/dist/index.mjs 5:0-51 6:0-51\n @ ./node_modules/next/dist/client/index.js\n @ ./node_modules/next/dist/client/next.js\n @ multi ./node_modules/next/dist/client/next.js', '(client) ./node_modules/inferno-compat/dist/index.mjs\nModule not found: Error: Can\'t resolve \'inferno-create-element\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\nresolve \'inferno-create-element\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\n Parsed request is a module\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n resolve as module\n looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-create-element)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.js doesn\'t exist\n .jsx\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.jsx doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.json doesn\'t exist\n as directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element doesn\'t exist\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/node_modules doesn\'t exist or is not a directory\n /home/node_modules doesn\'t exist or is not a directory\n /node_modules doesn\'t exist or is not a directory\n looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules\n using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-create-element)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.js doesn\'t exist\n .jsx\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.jsx doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.json doesn\'t exist\n as directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element doesn\'t exist\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules]\n[/home/gcfabri/Workspace/node_modules]\n[/home/gcfabri/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element]\n @ ./node_modules/inferno-compat/dist/index.mjs 7:0-55 8:0-55\n @ ./node_modules/next/dist/client/index.js\n @ ./node_modules/next/dist/client/next.js\n @ multi ./node_modules/next/dist/client/next.js' ], warnings: [] } error An unexpected error occurred: &quot;Command failed. Exit code: 1 Command: sh Arguments: -c next build Directory: /home/gcfabri/Workspace/fazanicrm Output: &quot;. info If you think this is a bug, please open a bug report with the information provided in &quot;/home/gcfabri/Workspace/fazanicrm/yarn-error.log&quot;. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command."><pre class="notranslate"><code class="notranslate">yarn run v1.5.1 $ next build &gt; Using external babel configuration &gt; Location: "/home/gcfabri/Workspace/fazanicrm/.babelrc" &gt; Failed to build { Error: (client) ./node_modules/inferno-compat/dist/index.mjs Module not found: Error: Can't resolve 'inferno-clone-vnode' in '/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist' resolve 'inferno-clone-vnode' in '/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist' Parsed request is a module using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist) Field 'browser' doesn't contain a valid alias configuration after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist) resolve as module looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules) using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-clone-vnode) no extension Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js doesn't exist .jsx Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx doesn't exist .json Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json doesn't exist as directory /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn't exist /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn't exist or is not a directory /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn't exist or is not a directory /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn't exist or is not a directory /home/gcfabri/Workspace/node_modules doesn't exist or is not a directory /home/gcfabri/node_modules doesn't exist or is not a directory /home/node_modules doesn't exist or is not a directory /node_modules doesn't exist or is not a directory looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules) Field 'browser' doesn't contain a valid alias configuration after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules) using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-clone-vnode) no extension Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn't exist .js Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js doesn't exist .jsx Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx doesn't exist .json Field 'browser' doesn't contain a valid alias configuration /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json doesn't exist as directory /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn't exist [/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode] [/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js] [/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx] [/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json] [/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode] [/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules] [/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules] [/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules] [/home/gcfabri/Workspace/node_modules] [/home/gcfabri/node_modules] [/home/node_modules] [/node_modules] [/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode] [/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js] [/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx] [/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json] [/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode] @ ./node_modules/inferno-compat/dist/index.mjs 3:0-49 4:0-77 @ ./node_modules/next/dist/client/index.js @ ./node_modules/next/dist/client/next.js @ multi ./node_modules/next/dist/client/next.js at /home/gcfabri/Workspace/fazanicrm/node_modules/next/dist/server/build/index.js:162:31 at runWithDependencies (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:154:4) at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:1126:9 at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:473:16 at iteratorCallback (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:1050:13) at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:958:16 at /home/gcfabri/Workspace/fazanicrm/node_modules/webpack/node_modules/async/dist/async.js:1123:13 at runCompilers (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:96:47) at fn (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:101:6) at compiler.run (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/MultiCompiler.js:150:5) at emitRecords.err (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:265:13) at Compiler.emitRecords (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:371:38) at emitAssets.err (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:258:10) at applyPluginsAsyncSeries1.err (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/Compiler.js:364:12) at next (/home/gcfabri/Workspace/fazanicrm/node_modules/tapable/lib/Tapable.js:218:11) at Compiler.compiler.plugin (/home/gcfabri/Workspace/fazanicrm/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4) errors: [ '(client) ./node_modules/inferno-compat/dist/index.mjs\nModule not found: Error: Can\'t resolve \'inferno-clone-vnode\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\nresolve \'inferno-clone-vnode\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\n Parsed request is a module\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n resolve as module\n looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-clone-vnode)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js doesn\'t exist\n .jsx\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json doesn\'t exist\n as directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode doesn\'t exist\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/node_modules doesn\'t exist or is not a directory\n /home/node_modules doesn\'t exist or is not a directory\n /node_modules doesn\'t exist or is not a directory\n looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules\n using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-clone-vnode)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js doesn\'t exist\n .jsx\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json doesn\'t exist\n as directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode doesn\'t exist\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-clone-vnode]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules]\n[/home/gcfabri/Workspace/node_modules]\n[/home/gcfabri/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-clone-vnode]\n @ ./node_modules/inferno-compat/dist/index.mjs 3:0-49 4:0-77\n @ ./node_modules/next/dist/client/index.js\n @ ./node_modules/next/dist/client/next.js\n @ multi ./node_modules/next/dist/client/next.js', '(client) ./node_modules/inferno-compat/dist/index.mjs\nModule not found: Error: Can\'t resolve \'inferno-create-class\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\nresolve \'inferno-create-class\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\n Parsed request is a module\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n resolve as module\n looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-create-class)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.js doesn\'t exist\n .jsx\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.jsx doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.json doesn\'t exist\n as directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class doesn\'t exist\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/node_modules doesn\'t exist or is not a directory\n /home/node_modules doesn\'t exist or is not a directory\n /node_modules doesn\'t exist or is not a directory\n looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules\n using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-create-class)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.js doesn\'t exist\n .jsx\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.jsx doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.json doesn\'t exist\n as directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class doesn\'t exist\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-class]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules]\n[/home/gcfabri/Workspace/node_modules]\n[/home/gcfabri/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-class]\n @ ./node_modules/inferno-compat/dist/index.mjs 5:0-51 6:0-51\n @ ./node_modules/next/dist/client/index.js\n @ ./node_modules/next/dist/client/next.js\n @ multi ./node_modules/next/dist/client/next.js', '(client) ./node_modules/inferno-compat/dist/index.mjs\nModule not found: Error: Can\'t resolve \'inferno-create-element\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\nresolve \'inferno-create-element\' in \'/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist\'\n Parsed request is a module\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/package.json (relative path: ./dist)\n resolve as module\n looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules)\n using description file: /home/gcfabri/Workspace/fazanicrm/node_modules/next/package.json (relative path: ./node_modules/inferno-create-element)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.js doesn\'t exist\n .jsx\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.jsx doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.json doesn\'t exist\n as directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element doesn\'t exist\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/Workspace/node_modules doesn\'t exist or is not a directory\n /home/gcfabri/node_modules doesn\'t exist or is not a directory\n /home/node_modules doesn\'t exist or is not a directory\n /node_modules doesn\'t exist or is not a directory\n looking for modules in /home/gcfabri/Workspace/fazanicrm/node_modules\n using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n Field \'browser\' doesn\'t contain a valid alias configuration\n after using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules)\n using description file: /home/gcfabri/Workspace/fazanicrm/package.json (relative path: ./node_modules/inferno-create-element)\n no extension\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element doesn\'t exist\n .js\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.js doesn\'t exist\n .jsx\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.jsx doesn\'t exist\n .json\n Field \'browser\' doesn\'t contain a valid alias configuration\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.json doesn\'t exist\n as directory\n /home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element doesn\'t exist\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/next/node_modules/inferno-create-element]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/dist/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-compat/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/node_modules]\n[/home/gcfabri/Workspace/node_modules]\n[/home/gcfabri/node_modules]\n[/home/node_modules]\n[/node_modules]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.js]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.jsx]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element.json]\n[/home/gcfabri/Workspace/fazanicrm/node_modules/inferno-create-element]\n @ ./node_modules/inferno-compat/dist/index.mjs 7:0-55 8:0-55\n @ ./node_modules/next/dist/client/index.js\n @ ./node_modules/next/dist/client/next.js\n @ multi ./node_modules/next/dist/client/next.js' ], warnings: [] } error An unexpected error occurred: "Command failed. Exit code: 1 Command: sh Arguments: -c next build Directory: /home/gcfabri/Workspace/fazanicrm Output: ". info If you think this is a bug, please open a bug report with the information provided in "/home/gcfabri/Workspace/fazanicrm/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. </code></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>next build</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">I followed the examples concerning use of <a href="https://github.com/zeit/next.js/tree/canary/examples/using-inferno">inferno</a>, <a href="https://github.com/zeit/next.js/tree/canary/examples/custom-server-express">custom-server-express</a> and <a href="https://github.com/zeit/next.js/tree/canary/examples/with-apollo">apollo</a>.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>5.0.1-canary.15</td> </tr> <tr> <td>node</td> <td>v9.5.0</td> </tr> <tr> <td>OS</td> <td>elementary OS 0.4.1 Loki</td> </tr> <tr> <td>inferno</td> <td>^4.0.8</td> </tr> <tr> <td>inferno-compat</td> <td>^4.0.8</td> </tr> <tr> <td>inferno-server</td> <td>^4.0.8</td> </tr> <tr> <td>react</td> <td>^16.2.0</td> </tr> <tr> <td>react-dom</td> <td>^16.2.0</td> </tr> </tbody> </table>
<h1 dir="auto">Feature request</h1> <p dir="auto">While I'm analyzing my bundle I realize that there are some packages (in my case huge momentjs with full languages) in both <code class="notranslate">_app</code> and in some pages.<br> IMHO there are no reasons to generate _app bundle. Merging the content of _app with common would have this benefits:</p> <ul dir="auto"> <li>remove 1 HTTP request for app bundle</li> <li>packages included in app bundle could be removed from pages</li> </ul> <h2 dir="auto">Describe the solution you'd like</h2> <p dir="auto">Update internal webpack config to "merge" <code class="notranslate">_app</code> and <code class="notranslate">commons</code> chunks</p> <h2 dir="auto">Describe alternatives you've considered</h2> <p dir="auto">In my case, I moved moment co common by adding something like this to next.config, but would be nice if it works out of the box.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Add moment to commons if (config.optimization.splitChunks.cacheGroups) { config.optimization.splitChunks.cacheGroups.moment = { test: /\/node_modules\/moment/, name: &quot;commons&quot;, chunks: &quot;all&quot;, } }"><pre class="notranslate"><code class="notranslate">// Add moment to commons if (config.optimization.splitChunks.cacheGroups) { config.optimization.splitChunks.cacheGroups.moment = { test: /\/node_modules\/moment/, name: "commons", chunks: "all", } } </code></pre></div>
0
<p dir="auto">The <code class="notranslate">script.sparse.linalg</code> module fails to import when running natively on an Apple M1 machine (<code class="notranslate">arm64-apple-darwin</code>). It segfaults while importing the fortran <code class="notranslate">_arpack</code> module. I encountered this while trying to do a density plot in pandas, but it's easy to reproduce separately.</p> <p dir="auto">(Thanks for scipy!)</p> <h4 dir="auto">Reproducing code example:</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# minimal/most-specific import: import scipy.sparse.linalg.eigen.arpack._arpack # more realistic import: import scipy.sparse.linalg"><pre class="notranslate"><span class="pl-c"># minimal/most-specific import:</span> <span class="pl-k">import</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">sparse</span>.<span class="pl-s1">linalg</span>.<span class="pl-s1">eigen</span>.<span class="pl-s1">arpack</span>.<span class="pl-s1">_arpack</span> <span class="pl-c"># more realistic import:</span> <span class="pl-k">import</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">sparse</span>.<span class="pl-s1">linalg</span></pre></div> <h4 dir="auto">Error message:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -c 'import scipy.sparse.linalg.eigen.arpack._arpack' zsh: segmentation fault python -c 'import scipy.sparse.linalg.eigen.arpack._arpack'"><pre class="notranslate"><code class="notranslate">$ python -c 'import scipy.sparse.linalg.eigen.arpack._arpack' zsh: segmentation fault python -c 'import scipy.sparse.linalg.eigen.arpack._arpack' </code></pre></div> <p dir="auto">Most relevant section of backtrace (from <code class="notranslate">lldb -o run -o bt -- $(pyenv which python) -c 'import scipy.sparse.linalg.eigen.arpack._arpack'</code>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xa90257f6a9015ff8) * frame #0: 0xffffd7f6a9015ff8 frame #1: 0x00000001079f4c80 _arpack.cpython-38-darwin.so`f2pyinitdebug_ + 160 frame #2: 0x00000001079f2e2c _arpack.cpython-38-darwin.so`PyFortranObject_New + 44 frame #3: 0x00000001079eb8b8 _arpack.cpython-38-darwin.so`PyInit__arpack + 888 frame #4: 0x0000000100114f38 python`_PyImport_LoadDynamicModuleWithSpec + 672 frame #5: 0x0000000100114708 python`_imp_create_dynamic + 376 frame #6: 0x00000001000603e0 python`cfunction_vectorcall_FASTCALL + 204 frame #7: 0x000000010002185c python`PyVectorcall_Call + 104 frame #8: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #9: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #10: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #11: 0x00000001000ec404 python`call_function + 288 frame #12: 0x00000001000e994c python`_PyEval_EvalFrameDefault + 23924 frame #13: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #14: 0x00000001000ec404 python`call_function + 288"><pre class="notranslate"><code class="notranslate">* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xa90257f6a9015ff8) * frame #0: 0xffffd7f6a9015ff8 frame #1: 0x00000001079f4c80 _arpack.cpython-38-darwin.so`f2pyinitdebug_ + 160 frame #2: 0x00000001079f2e2c _arpack.cpython-38-darwin.so`PyFortranObject_New + 44 frame #3: 0x00000001079eb8b8 _arpack.cpython-38-darwin.so`PyInit__arpack + 888 frame #4: 0x0000000100114f38 python`_PyImport_LoadDynamicModuleWithSpec + 672 frame #5: 0x0000000100114708 python`_imp_create_dynamic + 376 frame #6: 0x00000001000603e0 python`cfunction_vectorcall_FASTCALL + 204 frame #7: 0x000000010002185c python`PyVectorcall_Call + 104 frame #8: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #9: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #10: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #11: 0x00000001000ec404 python`call_function + 288 frame #12: 0x00000001000e994c python`_PyEval_EvalFrameDefault + 23924 frame #13: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #14: 0x00000001000ec404 python`call_function + 288 </code></pre></div> <details><summary>Click for full backtrace</summary> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xa90257f6a9015ff8) * frame #0: 0xffffd7f6a9015ff8 frame #1: 0x00000001079f4c80 _arpack.cpython-38-darwin.so`f2pyinitdebug_ + 160 frame #2: 0x00000001079f2e2c _arpack.cpython-38-darwin.so`PyFortranObject_New + 44 frame #3: 0x00000001079eb8b8 _arpack.cpython-38-darwin.so`PyInit__arpack + 888 frame #4: 0x0000000100114f38 python`_PyImport_LoadDynamicModuleWithSpec + 672 frame #5: 0x0000000100114708 python`_imp_create_dynamic + 376 frame #6: 0x00000001000603e0 python`cfunction_vectorcall_FASTCALL + 204 frame #7: 0x000000010002185c python`PyVectorcall_Call + 104 frame #8: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #9: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #10: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #11: 0x00000001000ec404 python`call_function + 288 frame #12: 0x00000001000e994c python`_PyEval_EvalFrameDefault + 23924 frame #13: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #14: 0x00000001000ec404 python`call_function + 288 frame #15: 0x00000001000e9930 python`_PyEval_EvalFrameDefault + 23896 frame #16: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #17: 0x00000001000ec404 python`call_function + 288 frame #18: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #19: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #20: 0x00000001000ec404 python`call_function + 288 frame #21: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #22: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #23: 0x00000001000ec404 python`call_function + 288 frame #24: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #25: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #26: 0x0000000100023498 python`object_vacall + 312 frame #27: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #28: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #29: 0x00000001000dffa4 python`builtin___import__ + 108 frame #30: 0x0000000100021b20 python`cfunction_call_varargs + 140 frame #31: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #32: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #33: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #34: 0x00000001000ec404 python`call_function + 288 frame #35: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #36: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #37: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #38: 0x0000000100023498 python`object_vacall + 312 frame #39: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #40: 0x00000001001135ec python`PyImport_ImportModuleLevelObject + 1940 frame #41: 0x00000001000e83b4 python`_PyEval_EvalFrameDefault + 18396 frame #42: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #43: 0x00000001000e3b44 python`PyEval_EvalCode + 60 frame #44: 0x00000001000e0f6c python`builtin_exec + 648 frame #45: 0x00000001000603e0 python`cfunction_vectorcall_FASTCALL + 204 frame #46: 0x000000010002185c python`PyVectorcall_Call + 104 frame #47: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #48: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #49: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #50: 0x00000001000ec404 python`call_function + 288 frame #51: 0x00000001000e994c python`_PyEval_EvalFrameDefault + 23924 frame #52: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #53: 0x00000001000ec404 python`call_function + 288 frame #54: 0x00000001000e9930 python`_PyEval_EvalFrameDefault + 23896 frame #55: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #56: 0x00000001000ec404 python`call_function + 288 frame #57: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #58: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #59: 0x00000001000ec404 python`call_function + 288 frame #60: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #61: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #62: 0x0000000100023498 python`object_vacall + 312 frame #63: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #64: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #65: 0x00000001000e83b4 python`_PyEval_EvalFrameDefault + 18396 frame #66: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #67: 0x00000001000e3b44 python`PyEval_EvalCode + 60 frame #68: 0x00000001000e0f6c python`builtin_exec + 648 frame #69: 0x00000001000603e0 python`cfunction_vectorcall_FASTCALL + 204 frame #70: 0x000000010002185c python`PyVectorcall_Call + 104 frame #71: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #72: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #73: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #74: 0x00000001000ec404 python`call_function + 288 frame #75: 0x00000001000e994c python`_PyEval_EvalFrameDefault + 23924 frame #76: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #77: 0x00000001000ec404 python`call_function + 288 frame #78: 0x00000001000e9930 python`_PyEval_EvalFrameDefault + 23896 frame #79: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #80: 0x00000001000ec404 python`call_function + 288 frame #81: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #82: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #83: 0x00000001000ec404 python`call_function + 288 frame #84: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #85: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #86: 0x0000000100023498 python`object_vacall + 312 frame #87: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #88: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #89: 0x00000001000e83b4 python`_PyEval_EvalFrameDefault + 18396 frame #90: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #91: 0x00000001000e3b44 python`PyEval_EvalCode + 60 frame #92: 0x00000001000e0f6c python`builtin_exec + 648 frame #93: 0x00000001000603e0 python`cfunction_vectorcall_FASTCALL + 204 frame #94: 0x000000010002185c python`PyVectorcall_Call + 104 frame #95: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #96: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #97: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #98: 0x00000001000ec404 python`call_function + 288 frame #99: 0x00000001000e994c python`_PyEval_EvalFrameDefault + 23924 frame #100: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #101: 0x00000001000ec404 python`call_function + 288 frame #102: 0x00000001000e9930 python`_PyEval_EvalFrameDefault + 23896 frame #103: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #104: 0x00000001000ec404 python`call_function + 288 frame #105: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #106: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #107: 0x00000001000ec404 python`call_function + 288 frame #108: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #109: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #110: 0x0000000100023498 python`object_vacall + 312 frame #111: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #112: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #113: 0x00000001000e83b4 python`_PyEval_EvalFrameDefault + 18396 frame #114: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #115: 0x00000001000e3b44 python`PyEval_EvalCode + 60 frame #116: 0x00000001000e0f6c python`builtin_exec + 648 frame #117: 0x00000001000603e0 python`cfunction_vectorcall_FASTCALL + 204 frame #118: 0x000000010002185c python`PyVectorcall_Call + 104 frame #119: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #120: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #121: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #122: 0x00000001000ec404 python`call_function + 288 frame #123: 0x00000001000e994c python`_PyEval_EvalFrameDefault + 23924 frame #124: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #125: 0x00000001000ec404 python`call_function + 288 frame #126: 0x00000001000e9930 python`_PyEval_EvalFrameDefault + 23896 frame #127: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #128: 0x00000001000ec404 python`call_function + 288 frame #129: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #130: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #131: 0x00000001000ec404 python`call_function + 288 frame #132: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #133: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #134: 0x0000000100023498 python`object_vacall + 312 frame #135: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #136: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #137: 0x00000001000dffa4 python`builtin___import__ + 108 frame #138: 0x0000000100021b20 python`cfunction_call_varargs + 140 frame #139: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #140: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #141: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #142: 0x00000001000ec404 python`call_function + 288 frame #143: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #144: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #145: 0x00000001000ec404 python`call_function + 288 frame #146: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #147: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #148: 0x0000000100023498 python`object_vacall + 312 frame #149: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #150: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #151: 0x00000001000dffa4 python`builtin___import__ + 108 frame #152: 0x0000000100021b20 python`cfunction_call_varargs + 140 frame #153: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #154: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #155: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #156: 0x00000001000ec404 python`call_function + 288 frame #157: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #158: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #159: 0x00000001000ec404 python`call_function + 288 frame #160: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #161: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #162: 0x0000000100023498 python`object_vacall + 312 frame #163: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #164: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #165: 0x00000001000dffa4 python`builtin___import__ + 108 frame #166: 0x0000000100021b20 python`cfunction_call_varargs + 140 frame #167: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #168: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #169: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #170: 0x00000001000ec404 python`call_function + 288 frame #171: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #172: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #173: 0x00000001000ec404 python`call_function + 288 frame #174: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #175: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #176: 0x0000000100023498 python`object_vacall + 312 frame #177: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #178: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #179: 0x00000001000e83b4 python`_PyEval_EvalFrameDefault + 18396 frame #180: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #181: 0x00000001000e3b44 python`PyEval_EvalCode + 60 frame #182: 0x0000000100129134 python`PyRun_StringFlags + 244 frame #183: 0x0000000100128fe4 python`PyRun_SimpleStringFlags + 64 frame #184: 0x0000000100145ac8 python`Py_RunMain + 432 frame #185: 0x0000000100146480 python`pymain_main + 340 frame #186: 0x00000001001464fc python`Py_BytesMain + 40 frame #187: 0x000000018e7c8f34 libdyld.dylib`start + 4"><pre class="notranslate"><code class="notranslate">* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xa90257f6a9015ff8) * frame #0: 0xffffd7f6a9015ff8 frame #1: 0x00000001079f4c80 _arpack.cpython-38-darwin.so`f2pyinitdebug_ + 160 frame #2: 0x00000001079f2e2c _arpack.cpython-38-darwin.so`PyFortranObject_New + 44 frame #3: 0x00000001079eb8b8 _arpack.cpython-38-darwin.so`PyInit__arpack + 888 frame #4: 0x0000000100114f38 python`_PyImport_LoadDynamicModuleWithSpec + 672 frame #5: 0x0000000100114708 python`_imp_create_dynamic + 376 frame #6: 0x00000001000603e0 python`cfunction_vectorcall_FASTCALL + 204 frame #7: 0x000000010002185c python`PyVectorcall_Call + 104 frame #8: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #9: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #10: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #11: 0x00000001000ec404 python`call_function + 288 frame #12: 0x00000001000e994c python`_PyEval_EvalFrameDefault + 23924 frame #13: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #14: 0x00000001000ec404 python`call_function + 288 frame #15: 0x00000001000e9930 python`_PyEval_EvalFrameDefault + 23896 frame #16: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #17: 0x00000001000ec404 python`call_function + 288 frame #18: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #19: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #20: 0x00000001000ec404 python`call_function + 288 frame #21: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #22: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #23: 0x00000001000ec404 python`call_function + 288 frame #24: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #25: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #26: 0x0000000100023498 python`object_vacall + 312 frame #27: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #28: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #29: 0x00000001000dffa4 python`builtin___import__ + 108 frame #30: 0x0000000100021b20 python`cfunction_call_varargs + 140 frame #31: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #32: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #33: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #34: 0x00000001000ec404 python`call_function + 288 frame #35: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #36: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #37: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #38: 0x0000000100023498 python`object_vacall + 312 frame #39: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #40: 0x00000001001135ec python`PyImport_ImportModuleLevelObject + 1940 frame #41: 0x00000001000e83b4 python`_PyEval_EvalFrameDefault + 18396 frame #42: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #43: 0x00000001000e3b44 python`PyEval_EvalCode + 60 frame #44: 0x00000001000e0f6c python`builtin_exec + 648 frame #45: 0x00000001000603e0 python`cfunction_vectorcall_FASTCALL + 204 frame #46: 0x000000010002185c python`PyVectorcall_Call + 104 frame #47: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #48: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #49: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #50: 0x00000001000ec404 python`call_function + 288 frame #51: 0x00000001000e994c python`_PyEval_EvalFrameDefault + 23924 frame #52: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #53: 0x00000001000ec404 python`call_function + 288 frame #54: 0x00000001000e9930 python`_PyEval_EvalFrameDefault + 23896 frame #55: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #56: 0x00000001000ec404 python`call_function + 288 frame #57: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #58: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #59: 0x00000001000ec404 python`call_function + 288 frame #60: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #61: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #62: 0x0000000100023498 python`object_vacall + 312 frame #63: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #64: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #65: 0x00000001000e83b4 python`_PyEval_EvalFrameDefault + 18396 frame #66: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #67: 0x00000001000e3b44 python`PyEval_EvalCode + 60 frame #68: 0x00000001000e0f6c python`builtin_exec + 648 frame #69: 0x00000001000603e0 python`cfunction_vectorcall_FASTCALL + 204 frame #70: 0x000000010002185c python`PyVectorcall_Call + 104 frame #71: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #72: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #73: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #74: 0x00000001000ec404 python`call_function + 288 frame #75: 0x00000001000e994c python`_PyEval_EvalFrameDefault + 23924 frame #76: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #77: 0x00000001000ec404 python`call_function + 288 frame #78: 0x00000001000e9930 python`_PyEval_EvalFrameDefault + 23896 frame #79: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #80: 0x00000001000ec404 python`call_function + 288 frame #81: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #82: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #83: 0x00000001000ec404 python`call_function + 288 frame #84: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #85: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #86: 0x0000000100023498 python`object_vacall + 312 frame #87: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #88: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #89: 0x00000001000e83b4 python`_PyEval_EvalFrameDefault + 18396 frame #90: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #91: 0x00000001000e3b44 python`PyEval_EvalCode + 60 frame #92: 0x00000001000e0f6c python`builtin_exec + 648 frame #93: 0x00000001000603e0 python`cfunction_vectorcall_FASTCALL + 204 frame #94: 0x000000010002185c python`PyVectorcall_Call + 104 frame #95: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #96: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #97: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #98: 0x00000001000ec404 python`call_function + 288 frame #99: 0x00000001000e994c python`_PyEval_EvalFrameDefault + 23924 frame #100: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #101: 0x00000001000ec404 python`call_function + 288 frame #102: 0x00000001000e9930 python`_PyEval_EvalFrameDefault + 23896 frame #103: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #104: 0x00000001000ec404 python`call_function + 288 frame #105: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #106: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #107: 0x00000001000ec404 python`call_function + 288 frame #108: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #109: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #110: 0x0000000100023498 python`object_vacall + 312 frame #111: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #112: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #113: 0x00000001000e83b4 python`_PyEval_EvalFrameDefault + 18396 frame #114: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #115: 0x00000001000e3b44 python`PyEval_EvalCode + 60 frame #116: 0x00000001000e0f6c python`builtin_exec + 648 frame #117: 0x00000001000603e0 python`cfunction_vectorcall_FASTCALL + 204 frame #118: 0x000000010002185c python`PyVectorcall_Call + 104 frame #119: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #120: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #121: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #122: 0x00000001000ec404 python`call_function + 288 frame #123: 0x00000001000e994c python`_PyEval_EvalFrameDefault + 23924 frame #124: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #125: 0x00000001000ec404 python`call_function + 288 frame #126: 0x00000001000e9930 python`_PyEval_EvalFrameDefault + 23896 frame #127: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #128: 0x00000001000ec404 python`call_function + 288 frame #129: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #130: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #131: 0x00000001000ec404 python`call_function + 288 frame #132: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #133: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #134: 0x0000000100023498 python`object_vacall + 312 frame #135: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #136: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #137: 0x00000001000dffa4 python`builtin___import__ + 108 frame #138: 0x0000000100021b20 python`cfunction_call_varargs + 140 frame #139: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #140: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #141: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #142: 0x00000001000ec404 python`call_function + 288 frame #143: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #144: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #145: 0x00000001000ec404 python`call_function + 288 frame #146: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #147: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #148: 0x0000000100023498 python`object_vacall + 312 frame #149: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #150: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #151: 0x00000001000dffa4 python`builtin___import__ + 108 frame #152: 0x0000000100021b20 python`cfunction_call_varargs + 140 frame #153: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #154: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #155: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #156: 0x00000001000ec404 python`call_function + 288 frame #157: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #158: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #159: 0x00000001000ec404 python`call_function + 288 frame #160: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #161: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #162: 0x0000000100023498 python`object_vacall + 312 frame #163: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #164: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #165: 0x00000001000dffa4 python`builtin___import__ + 108 frame #166: 0x0000000100021b20 python`cfunction_call_varargs + 140 frame #167: 0x00000001000e9ce8 python`_PyEval_EvalFrameDefault + 24848 frame #168: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #169: 0x0000000100022060 python`_PyFunction_Vectorcall + 248 frame #170: 0x00000001000ec404 python`call_function + 288 frame #171: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #172: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #173: 0x00000001000ec404 python`call_function + 288 frame #174: 0x00000001000e99c4 python`_PyEval_EvalFrameDefault + 24044 frame #175: 0x0000000100021ee0 python`function_code_fastcall + 120 frame #176: 0x0000000100023498 python`object_vacall + 312 frame #177: 0x0000000100023604 python`_PyObject_CallMethodIdObjArgs + 96 frame #178: 0x00000001001134e0 python`PyImport_ImportModuleLevelObject + 1672 frame #179: 0x00000001000e83b4 python`_PyEval_EvalFrameDefault + 18396 frame #180: 0x00000001000ed430 python`_PyEval_EvalCodeWithName + 3212 frame #181: 0x00000001000e3b44 python`PyEval_EvalCode + 60 frame #182: 0x0000000100129134 python`PyRun_StringFlags + 244 frame #183: 0x0000000100128fe4 python`PyRun_SimpleStringFlags + 64 frame #184: 0x0000000100145ac8 python`Py_RunMain + 432 frame #185: 0x0000000100146480 python`pymain_main + 340 frame #186: 0x00000001001464fc python`Py_BytesMain + 40 frame #187: 0x000000018e7c8f34 libdyld.dylib`start + 4 </code></pre></div> </details> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="scipy==1.6.0 numpy==1.20.2 python==sys.version_info(major=3, minor=8, micro=7, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">scipy==1.6.0 numpy==1.20.2 python==sys.version_info(major=3, minor=8, micro=7, releaselevel='final', serial=0) </code></pre></div>
<p dir="auto">The <code class="notranslate">fmin_cobyla</code> algorithm can terminate without actually satisfying the constraints.<br> Indeed, it has a <code class="notranslate">maxcv</code> return value that reports the constraint violation.</p> <p dir="auto">See e.g. <a href="http://stackoverflow.com/questions/18782092/python-scipy-optimization-issue-fmin-cobyla-one-constraint-is-not-respected" rel="nofollow">http://stackoverflow.com/questions/18782092/python-scipy-optimization-issue-fmin-cobyla-one-constraint-is-not-respected</a> <a href="http://pastebin.com/gjbeePgt" rel="nofollow">http://pastebin.com/gjbeePgt</a></p> <p dir="auto">This is quite surprising behavior, and definitely not adequately documented.<br> The COBYLA wrappers probably should check the constraint violation, and return with a failed status if it is bigger than some allowed tolerance.</p>
0
<h1 dir="auto">What / Why</h1> <p dir="auto"><code class="notranslate">npm install</code> fails to resolve two version ranges of one dependency into a version that is compatible with both requirements.</p> <p dir="auto">I have to use the unsafe <code class="notranslate">--legacy-peer-deps</code> flag to bypass this error.</p> <h2 dir="auto">When</h2> <p dir="auto">I try to add another package to a project with <code class="notranslate">"react": "^16.9.0"</code> I get a conflict, even though the ranges are compatible (<code class="notranslate">peerDependencies</code> of the package being installed is <code class="notranslate">"react": "^0.14.9 || &gt;=15.3.0"</code>).</p> <h2 dir="auto">How</h2> <h3 dir="auto">Current Behavior</h3> <p dir="auto">When resolving peer dependencies, <code class="notranslate">npm</code> picks the latest available edge version of <code class="notranslate">react</code> compatible with the installed <code class="notranslate">peerDependency</code> requirements, which is <code class="notranslate">17.0.2</code> at the moment, ignoring the rest of the range. And then fails with dependency version conflict.</p> <h3 dir="auto">Steps to Reproduce</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mkdir peer-dependency-conflict-demo cd peer-dependency-conflict-demo npm add react@^16.9.0 npm add react-bootstrap@=0.32.4"><pre class="notranslate">mkdir peer-dependency-conflict-demo <span class="pl-c1">cd</span> peer-dependency-conflict-demo npm add react@^16.9.0 npm add react-bootstrap@=0.32.4</pre></div> <details><summary>npm ERR! code ERESOLVE</summary> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: undefined@undefined npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@&quot;^16.14.0&quot; from the root project npm ERR! peer react@&quot;^0.14.9 || &gt;=15.3.0&quot; from [email protected] npm ERR! node_modules/react-bootstrap npm ERR! react-bootstrap@&quot;=0.32.4&quot; from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@&quot;17.0.2&quot; from [email protected] npm ERR! node_modules/react-dom npm ERR! peer react-dom@&quot;^0.14.9 || &gt;=15.3.0&quot; from [email protected] npm ERR! node_modules/react-bootstrap npm ERR! react-bootstrap@&quot;=0.32.4&quot; from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /home/ivan/.npm/eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! /home/ivan/.npm/_logs/2021-11-17T15_45_03_518Z-debug.log"><pre class="notranslate"><code class="notranslate">npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: undefined@undefined npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"^16.14.0" from the root project npm ERR! peer react@"^0.14.9 || &gt;=15.3.0" from [email protected] npm ERR! node_modules/react-bootstrap npm ERR! react-bootstrap@"=0.32.4" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"17.0.2" from [email protected] npm ERR! node_modules/react-dom npm ERR! peer react-dom@"^0.14.9 || &gt;=15.3.0" from [email protected] npm ERR! node_modules/react-bootstrap npm ERR! react-bootstrap@"=0.32.4" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /home/ivan/.npm/eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! /home/ivan/.npm/_logs/2021-11-17T15_45_03_518Z-debug.log </code></pre></div> </details> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">NPM installs the requested package, knowing that the current installed version of <code class="notranslate">react</code> is compatible with its peer requirements (<code class="notranslate">"react": "16.14.0"</code> satisfies <code class="notranslate">^0.14.9 || &gt;=15.3.0</code>).</p> <h2 dir="auto">References</h2> <p dir="auto"><a href="https://github.com/react-bootstrap/react-bootstrap/blob/v0.32.4/package.json#L54-L57">https://github.com/react-bootstrap/react-bootstrap/blob/v0.32.4/package.json#L54-L57</a></p>
<h3 dir="auto">Is there an existing issue for this?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li> </ul> <h3 dir="auto">This issue exists in the latest npm version</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">When I execute <code class="notranslate">npm install</code>, It's download the dependencies first but not <code class="notranslate">preinstall</code> script.</p> <h3 dir="auto">Expected Behavior</h3> <ol dir="auto"> <li><code class="notranslate">preinstall</code> script run</li> <li>Download Dependencies as part of the <code class="notranslate">install</code></li> </ol> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>Touch a file named <code class="notranslate">package.json</code> with script setting <code class="notranslate">"preinstall": "echo preinstall"</code>.</li> <li>Exec <code class="notranslate">npm install</code> in shell.</li> <li>Finally you can see that print after download all dependencies.</li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>npm:8.1.4</li> <li>Node:16.13.0</li> <li>OS:macOS Monterey 12.0.1</li> <li>platform:Macbook Pro</li> <li>npm config:</li> </ul> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; &quot;user&quot; config from /Users/edz/.npmrc //registry-node.aliyun.com/org/1294702234938741/registry/xdk/:_password = (protected) //registry-node.aliyun.com/org/1294702234938741/registry/xdk/:username = &quot;user_1294702425938741&quot; //registry.npmjs.org/:_authToken = (protected) email = &quot;[email protected]&quot; registry = &quot;https://registry-node.aliyun.com/org/1294702234938741/registry/xdk/&quot; ; node bin location = /Users/edz/.nvm/versions/node/v16.13.0/bin/node ; cwd = /Users/edz/Documents/work/xdk-wechat-mini/xiaodaka-client ; HOME = /Users/edz"><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> "user" config from /Users/edz/.npmrc</span> //registry-node.aliyun.com/org/1294702234938741/registry/xdk/:<span class="pl-k">_password</span> = (protected) //registry-node.aliyun.com/org/1294702234938741/registry/xdk/:<span class="pl-k">username</span> = <span class="pl-s"><span class="pl-pds">"</span>user_1294702425938741<span class="pl-pds">"</span></span> //registry.npmjs.org/:<span class="pl-k">_authToken</span> = (protected) <span class="pl-k">email</span> = <span class="pl-s"><span class="pl-pds">"</span>[email protected]<span class="pl-pds">"</span></span> <span class="pl-k">registry</span> = <span class="pl-s"><span class="pl-pds">"</span>https://registry-node.aliyun.com/org/1294702234938741/registry/xdk/<span class="pl-pds">"</span></span> <span class="pl-c"><span class="pl-c">;</span> node bin location = /Users/edz/.nvm/versions/node/v16.13.0/bin/node</span> <span class="pl-c"><span class="pl-c">;</span> cwd = /Users/edz/Documents/work/xdk-wechat-mini/xiaodaka-client</span> <span class="pl-c"><span class="pl-c">;</span> HOME = /Users/edz</span></pre></div>
0
<pre class="notranslate">gc handles struct/array comparisons by short-circuiting if it finds any unequal fields/elements, and this behavior is noticeable because the Go spec requires comparisons to panic in some cases; e.g., see <a href="http://play.golang.org/p/5jqSUAT1xC" rel="nofollow">http://play.golang.org/p/5jqSUAT1xC</a> However, unlike short-circuiting for evaluating "a &amp;&amp; b", it doesn't seem that short-circuiting of field/element comparisons is specified by the spec. Arguably, the spec currently requires that instead both comparisons in the above program should panic. Not a major issue, but thought I'd file an issue to note it. A couple possible ways to address it: 1. Ignore it since it probably doesn't matter in practice. 2. Specify gc's behavior since it's intuitive and easy to explain. 3. Specify a set of allowable behaviors (e.g., allow short-circuiting or not; and/or allow any particular ordering for element/field comparisons). 4. Change gc to not (visibly) short-circuit comparisons that involve comparing interface types; e.g., comparing two [512]int arrays can still short-circuit, but comparing two struct{a int; b, c interface{}; d int} structs would need to always compare the b and c fields, and a and d could be compared conditionally.</pre>
<pre class="notranslate">What steps will reproduce the problem? 1. Try to gofix a file containing an old-style (r60.3) "time" reference with a comment after it, e.g. example below or src/pkg/crypto/tls/generate_cert.go What is the expected output? file.go: fixed time+fileinfo What do you see instead? file.go:9:36: expected ')', found newline file.go:10:4: expected statement, found ')' Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? Ubuntu 11.10 Which revision are you using? weekly.2011-12-22 Please provide any additional information below. Example: --- package main import ( "fmt" "time" ) func main() { fmt.Println(time.SecondsToUTC(now)) // this won't work } --- With the comment: # gofix fix.go fix.go:9:36: expected ')', found newline fix.go:10:4: expected statement, found ')' Without: # gofix fix.go fix.go: fixed time+fileinfo</pre>
0
<p dir="auto">I can't match using a constant that was initialized using a byte string literal:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const ARRAY1: [u8; 0] = []; const ARRAY2: [u8; 0] = *b&quot;&quot;; fn main() { match [] { ARRAY1 =&gt; {} ARRAY2 =&gt; {} } }"><pre class="notranslate"><code class="notranslate">const ARRAY1: [u8; 0] = []; const ARRAY2: [u8; 0] = *b""; fn main() { match [] { ARRAY1 =&gt; {} ARRAY2 =&gt; {} } } </code></pre></div> <p dir="auto">This gets an error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a.rs:2:25: 2:29 error: constant evaluation error: unsupported constant expr a.rs:2 const ARRAY2: [u8; 0] = *b&quot;&quot;; ^~~~ a.rs:7:9: 7:15 note: in pattern here a.rs:7 ARRAY2 =&gt; {} ^~~~~~ a.rs:2:25: 2:29 error: unsupported constant expr a.rs:2 const ARRAY2: [u8; 0] = *b&quot;&quot;; ^~~~"><pre class="notranslate"><code class="notranslate">a.rs:2:25: 2:29 error: constant evaluation error: unsupported constant expr a.rs:2 const ARRAY2: [u8; 0] = *b""; ^~~~ a.rs:7:9: 7:15 note: in pattern here a.rs:7 ARRAY2 =&gt; {} ^~~~~~ a.rs:2:25: 2:29 error: unsupported constant expr a.rs:2 const ARRAY2: [u8; 0] = *b""; ^~~~ </code></pre></div>
<p dir="auto">Constants that dereference string literals cannot be currently used for pattern matching as show <a href="http://is.gd/F13Q7Q" rel="nofollow">below</a>:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const A: [u8; 4] = *b&quot;fooo&quot;; fn main() { match *b&quot;xxxx&quot; { A =&gt; {}, _ =&gt; {} } }"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">A</span><span class="pl-kos">:</span> <span class="pl-kos">[</span><span class="pl-smi">u8</span><span class="pl-kos">;</span> <span class="pl-c1">4</span><span class="pl-kos">]</span> = <span class="pl-c1">*</span><span class="pl-s">b"fooo"</span><span class="pl-kos">;</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">match</span> <span class="pl-c1">*</span><span class="pl-s">b"xxxx"</span> <span class="pl-kos">{</span> <span class="pl-v">A</span> =&gt; <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span> _ =&gt; <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Such constants can be used in other contexts without any problem. It is inconsistent, and a very prominent use case is missing.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.6</li> <li>Operating System version: xxx</li> <li>Java version: 1.8</li> </ul> <p dir="auto">dubbo 2.7.6 版本和之后的版本,当使用 <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/reference/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/reference">@reference</a> 注解修改 cluster 属性切换集群容错策略时,发现始终不生效,一直使用默认的 failover 策略。当使用 2.7.5 版本时,修改生效。</p> <p dir="auto">看了一下 RegistryDirectory.getUrl 方法的代码,发现从 2.7.6 版本开始,getUrl 返回的 url 为 RegistryDirectory 构造函数中传入的 url,在 2.7.5 版本中 getUrl 方法返回的是 overrideDirectoryUrl。overrideDirectoryUrl 中包含了用户设置的参数,而 url 中没有,导致无法切换集群容错策略。</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3</li> <li>Operating System version: ubuntu 18.04</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">it's a suggestion, the method "org.apache.dubbo.config.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor#getInjectedObject" is a protected method, but attr "injectedObjectsCache" is private. so when i override the method, it's very difficult, there are lots of modifitions. so can the attr be protected?</p>
0
<h2 dir="auto">Multi-values insertion bug with key-generator in sharding databases/tables</h2> <p dir="auto">We can reproduce the bug in a rule:</p> <blockquote> <p dir="auto">shard db by <code class="notranslate">id%2</code> : ds_0,ds_1<br> shard table by <code class="notranslate">id%3</code> : user0,user1,user2</p> </blockquote> <h3 dir="auto">Case 1, literal multi-values insertion</h3> <p dir="auto">Execute:<br> <code class="notranslate">insert into user(</code>name<code class="notranslate">,</code>age<code class="notranslate">) values ('name-11',11),('name-12',12),('name-13',13),('name-14',14)</code></p> <p dir="auto">Actual SQL:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ..ds_1 ::: insert into user1(`name`,`age`, id) values ('name-11', 11, 441401574401507332) ..ds_0 ::: insert into user2(`name`,`age`, id) values ('name-12', 12, 441401574401507331) ..ds_1 ::: insert into user0(`name`,`age`, id) values ('name-13', 13, 441401574401507330) ..ds_0 ::: insert into user1(`name`,`age`, id) values ('name-14', 14, 441401574401507329)"><pre class="notranslate"><code class="notranslate"> ..ds_1 ::: insert into user1(`name`,`age`, id) values ('name-11', 11, 441401574401507332) ..ds_0 ::: insert into user2(`name`,`age`, id) values ('name-12', 12, 441401574401507331) ..ds_1 ::: insert into user0(`name`,`age`, id) values ('name-13', 13, 441401574401507330) ..ds_0 ::: insert into user1(`name`,`age`, id) values ('name-14', 14, 441401574401507329) </code></pre></div> <p dir="auto">This are two issues:</p> <ol dir="auto"> <li>ids in descending order</li> <li>wrong sharding tables, lead to that those data can't be selected</li> </ol> <p dir="auto">The first row, id=441401574401507332,id%3=&gt;1,so shard to table <code class="notranslate">user1</code>,it's right。<br> The second row, id=441401574401507331,id%3=&gt;0,so should shard to table <code class="notranslate">user0</code>,but shard to table <code class="notranslate">user2</code>, it's wrong。<br> The second row, id%3=&gt;2,so should shard to table <code class="notranslate">user2</code>,but shard to table <code class="notranslate">user0</code>, it's wrong, too。<br> The last row, id%3=&gt;1,so shard to table <code class="notranslate">user1</code>,it's right。</p> <p dir="auto">We can find if make ids reverse, remainders are 1,2,0,1,just match the sharding tables number.</p> <p dir="auto">We learn more into shardingsphere sourcecodes,it generator 4 keys and binding them to sharding tables at first, like the ascending order. And then binding keys and literal columns fields(name, age),it reverse keys to descending order by <code class="notranslate">List.descendingIterator</code>. Finally, each key orders can't match its own row.</p> <p dir="auto">The related codes here:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.apache.shardingsphere.sharding.rewrite.token.generator.impl.keygen.GeneratedKeyInsertValuesTokenGenerator:generateSQLToken() Iterator&lt;Comparable&lt;?&gt;&gt; generatedValues = generatedKey.getGeneratedValues().descendingIterator();"><pre class="notranslate"><code class="notranslate">org.apache.shardingsphere.sharding.rewrite.token.generator.impl.keygen.GeneratedKeyInsertValuesTokenGenerator:generateSQLToken() Iterator&lt;Comparable&lt;?&gt;&gt; generatedValues = generatedKey.getGeneratedValues().descendingIterator(); </code></pre></div> <h3 dir="auto">Case 2, multi-values insertion with placeholders</h3> <p dir="auto">SQL:<br> <code class="notranslate">insert into user(</code>name<code class="notranslate">,</code>age<code class="notranslate">) values (?,?),(?,?),(?,?),(?,?)</code></p> <p dir="auto">Java codes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="try(PreparedStatement preparedStatement = con.prepareStatement(sql)){ for (int i = 0; i &lt; 4; i++){ preparedStatement.setString(i * 2 + 1,&quot;name-&quot; + i); preparedStatement.setInt(i * 2 + 2,i); } preparedStatement.execute(); }"><pre class="notranslate"><code class="notranslate">try(PreparedStatement preparedStatement = con.prepareStatement(sql)){ for (int i = 0; i &lt; 4; i++){ preparedStatement.setString(i * 2 + 1,"name-" + i); preparedStatement.setInt(i * 2 + 2,i); } preparedStatement.execute(); } </code></pre></div> <p dir="auto">Actual SQL:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="..ds_0 ::: insert into user1(`name`,`age`, id) values (?, ?, ?) ::: [name-0, 0, 441306093067436035] ..ds_1 ::: insert into user2(`name`,`age`, id) values (?, ?, ?) ::: [name-1, 1, 441306093067436034] ..ds_0 ::: insert into user0(`name`,`age`, id) values (?, ?, ?) ::: [name-2, 2, 441306093067436033] ..ds_1 ::: insert into user1(`name`,`age`, id) values (?, ?, ?) ::: [name-3, 3, 441306093067436032]"><pre class="notranslate"><code class="notranslate">..ds_0 ::: insert into user1(`name`,`age`, id) values (?, ?, ?) ::: [name-0, 0, 441306093067436035] ..ds_1 ::: insert into user2(`name`,`age`, id) values (?, ?, ?) ::: [name-1, 1, 441306093067436034] ..ds_0 ::: insert into user0(`name`,`age`, id) values (?, ?, ?) ::: [name-2, 2, 441306093067436033] ..ds_1 ::: insert into user1(`name`,`age`, id) values (?, ?, ?) ::: [name-3, 3, 441306093067436032] </code></pre></div> <p dir="auto">The same problem,but codes is in different class:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.apache.shardingsphere.sharding.rewrite.parameter.impl.ShardingGeneratedKeyInsertValueParameterRewriter:rewrite() Iterator&lt;Comparable&lt;?&gt;&gt; generatedValues = shardingRouteContext.getGeneratedKey().get().getGeneratedValues().descendingIterator();"><pre class="notranslate"><code class="notranslate">org.apache.shardingsphere.sharding.rewrite.parameter.impl.ShardingGeneratedKeyInsertValueParameterRewriter:rewrite() Iterator&lt;Comparable&lt;?&gt;&gt; generatedValues = shardingRouteContext.getGeneratedKey().get().getGeneratedValues().descendingIterator(); </code></pre></div> <p dir="auto">This case is also reported by issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="565175736" data-permission-text="Title is private" data-url="https://github.com/apache/shardingsphere/issues/4306" data-hovercard-type="issue" data-hovercard-url="/apache/shardingsphere/issues/4306/hovercard" href="https://github.com/apache/shardingsphere/issues/4306">#4306</a> .</p> <h3 dir="auto">fix</h3> <p dir="auto">We will fix it by replace <code class="notranslate">descendingIterator</code> to <code class="notranslate">iterator</code>.</p>
<h2 dir="auto">Background</h2> <p dir="auto">At present, when community users use ShardingSphere, they report that due to the large number of managed data sources, a large number of single tables are loaded into the memory by default, resulting in slower startup speed and taking up more memory space.</p> <p dir="auto">Considering that in the data source registered by the user, there are a large number of single tables that do not need to be used or managed by ShardingSphere, so it is necessary to design a mechanism that allows users to actively import single tables on demand, avoiding automatic Load single table metadata.</p> <h2 dir="auto">Metadata loading logic optimization</h2> <h3 dir="auto">Start-up phase</h3> <p dir="auto">According to the process of the startup phase, the automatic loading of a single table mainly depends on the automatic loading logic in <code class="notranslate">SingleTableRule</code>, so the loading logic needs to be removed. In addition, the <code class="notranslate">SingleTableRuleConfiguration</code> configuration needs to be added to support the needs of JDBC end users to import a single table, and the DistSQL <code class="notranslate">LOAD</code> statement configuration is stored through <code class="notranslate">SingleTableRuleConfiguration</code> to persist the YAML configuration to ZK. <code class="notranslate">SingleTableRuleConfiguration</code> is configured as follows:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# YAML configuration databaseName: sharding_db - !SINGLE tables: - ds_0.t_single # PostgreSQL, openGauss support multiple schemas - ds_1.public.t_config,ds_1.test.t_config - ds_2.* - ds_3.* - *.* # controls CREATE TABLE routing, required in DistSQL defaultDataSource: ds_0 # ZK structure (the original YAML will be loaded into a single table and then expanded and stored) - !SINGLE tables: - ds_0.t_single # PostgreSQL, openGauss support multiple schemas - ds_1.public.t_config,ds_1.test.t_config - ds_2.t_1,ds_2.t_2 - ds_3.t_3,ds_3.t_4 - ds_4.t_5,ds_4.t_6 # controls CREATE TABLE routing, required in DistSQL defaultDataSource: ds_0"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> YAML configuration</span> <span class="pl-ent">databaseName</span>: <span class="pl-s">sharding_db</span> - <span class="pl-k">!SINGLE</span> <span class="pl-ent">tables</span>: - <span class="pl-s">ds_0.t_single</span> <span class="pl-c"><span class="pl-c">#</span> PostgreSQL, openGauss support multiple schemas</span> - <span class="pl-s">ds_1.public.t_config,ds_1.test.t_config</span> - <span class="pl-s">ds_2.*</span> - <span class="pl-s">ds_3.*</span> <span class="pl-s">- *.*</span> <span class="pl-c"><span class="pl-c">#</span> controls CREATE TABLE routing, required in DistSQL</span> <span class="pl-ent">defaultDataSource</span>: <span class="pl-s">ds_0</span> <span class="pl-c"><span class="pl-c">#</span> ZK structure (the original YAML will be loaded into a single table and then expanded and stored)</span> - <span class="pl-k">!SINGLE</span> <span class="pl-ent">tables</span>: - <span class="pl-s">ds_0.t_single</span> <span class="pl-c"><span class="pl-c">#</span> PostgreSQL, openGauss support multiple schemas</span> - <span class="pl-s">ds_1.public.t_config,ds_1.test.t_config</span> - <span class="pl-s">ds_2.t_1,ds_2.t_2</span> - <span class="pl-s">ds_3.t_3,ds_3.t_4</span> - <span class="pl-s">ds_4.t_5,ds_4.t_6</span> <span class="pl-c"><span class="pl-c">#</span> controls CREATE TABLE routing, required in DistSQL</span> <span class="pl-ent">defaultDataSource</span>: <span class="pl-s">ds_0</span></pre></div> <ul dir="auto"> <li>The <code class="notranslate">tables</code> attribute allows users to configure single tables to be loaded, supports MySQL-style <code class="notranslate">database.table</code> configuration, and PostgreSQL/openGauss-style <code class="notranslate">database.schema.table</code> configuration. If users need to load all configurations, they can import all single tables under a certain data source through the <code class="notranslate">*</code> wildcard. If the user-configured data source is in a logical data source, the data source will be converted to a logical data source.</li> <li><code class="notranslate">defaultDataSource</code> is used to support the current DistSQL statement SET DEFAULT SINGLE TABLE STORAGE UNIT = ds_0, defaultDataSource will be used for CREATE TABLE statement routing processing;</li> </ul> <p dir="auto">The optimized new processing flow is as follows:</p> <ol dir="auto"> <li>In the startup phase, the DatabaseRuleConfiguration will be initialized first. When the SingleTableRuleConfiguration is initialized, the single table will be loaded according to the YAML configuration, and the expanded configuration will be built, then stored in the SingleTableRuleConfiguration, and then the SingleTableRuleConfiguration will be persisted in the ZK;</li> <li>Initialize DatabaseRule according to RuleConfiguration, and SingleTableRule initialization will load a single table according to the tables attribute configured in SingleTableRuleConfiguration;</li> <li>Get all the tables according to the TableContainedRule interface method, and load the real metadata;</li> <li>Decorate real metadata as logical metadata;</li> <li>Metadata is persisted to ZK and synchronized to each instance;</li> </ol> <h3 dir="auto">Register storage unit</h3> <p dir="auto">Execute REGISTER STORAGE UNIT DistSQL, the optimized execution flow is as follows:</p> <ol dir="auto"> <li>Call RegisterStorageUnitBackendHandler and verify the connectivity of the storage data source;</li> <li>Then call the ContextManager#addResources method to add storage resources through the management center;</li> <li>Call the ShardingSphereDatabasesFactory.create method to recreate the logic library object for adding storage resources (this step is consistent with the logic of loading metadata in the startup phase, first initialize SingleTableRuleConfiguration, and then initialize SingleTableRule, SingleTableRule will load a single table according to SingleTableRuleConfiguration, metadata loading engine Load according to Table in Rule);</li> <li>Replace the corresponding ShardingSphereDatabase object in ShardingSphereMetaData.</li> </ol> <h3 dir="auto">Execute DDL statements</h3> <p dir="auto">Execute the DDL statement because the logic itself is to load metadata according to a certain table, so the logic of loading metadata does not need to be adjusted, but after executing the DDL statement, refresh the SingleTableRuleConfiguration, persist the newly created single table into ZK, and synchronize to individual instances. The new processing flow is as follows:</p> <ol dir="auto"> <li>Process DDL statements through KernelProcessor, execute and merge;</li> <li>MetaDataRefreshEngine calls CreateTableStatementSchemaRefresher to execute metadata refresh logic;</li> <li>CreateTableStatementSchemaRefresher internally calls the GenericSchemaBuilder#build method to load and decorate the metadata of the new table;</li> <li>Synchronize metadata information through other Proxy nodes through the SchemaAlteredEvent event;</li> <li>Through the RuleConfigurationsChangedEvent event, the single table added or deleted by the DDL statement is synchronized to zk and each node;</li> </ol> <h3 dir="auto">New DistSQL</h3> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="LOAD SINGLE TABLE ds_0.t_single, ds_1.public.t_config, ds_1.test.t_config [INTO databaseName]; LOAD SINGLE TABLE ds_2.*, ds_3.* [INTO databaseName]; -- DistSQL queries the underlying used and unused single tables, not loaded into memory SHOW SINGLE TABLES SHOW UNLOADED SINGLE TABLES"><pre class="notranslate">LOAD SINGLE TABLE <span class="pl-c1">ds_0</span>.<span class="pl-c1">t_single</span>, <span class="pl-c1">ds_1</span>.<span class="pl-c1">public</span>.t_config, <span class="pl-c1">ds_1</span>.<span class="pl-c1">test</span>.t_config [INTO databaseName]; LOAD SINGLE TABLE ds_2.<span class="pl-k">*</span>, ds_3.<span class="pl-k">*</span> [INTO databaseName]; <span class="pl-c"><span class="pl-c">--</span> DistSQL queries the underlying used and unused single tables, not loaded into memory</span> SHOW SINGLE TABLES SHOW UNLOADED SINGLE TABLES</pre></div> <h2 dir="auto">Development task</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Rename SingleTableXXX to SingleXXX, such as SingleTableRuleConfiguration to SingleRuleConfiguration</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add SingleTableRuleConfiguration tables configuration, and implement configuration persistence &amp; initialization loading single table logic;</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> SingleTableRule load single table logic adjustment, load according to SingleTableRuleConfiguration configuration, no configuration will not be loaded;</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> MetaDataRefresher adds SingleTableRuleConfiguration refresh after DDL statement is executed;</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add LOAD, UNLOAD, SHOW LOADED TABLE, SHOW UNLOADED TABLE DistSQL</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Add test case</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Add document description</li> </ul>
0
<p dir="auto">Repro:</p> <ul dir="auto"> <li>Use "View/Toggle Menu Bar" to hide the menu bar</li> <li>Press and release "alt", the menu bar appears</li> <li>Try using the arrow keys or mnemonic keys ('F' for 'File' menu)</li> </ul> <p dir="auto">Actual: there is no way to interact with the menu bar from the keyboard<br> Expected: same as the Hide Menu Bar extension for VS, where pressing alt gives keyboard focus to the "file menu", which allows navigating with the keyboard arrows or mnemonic keys.</p> <p dir="auto">Windows 10, VSCode 0.10.8</p>
<p dir="auto">Navigating between File/Edit/View/Goto/Help using left and right arrow keys does not work. I can reproduce the problem in at least Windows 8 and Linux Mint Cinnamon 17.2.</p> <ul dir="auto"> <li>navigation using arrow keys works in submenus</li> <li>on Windows it is possible to switch between the menus using mnemonics (ALT-e to switch from File to Edit) but on Linux even this isn't working</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9029939/11951545/5e610a66-a89a-11e5-8cba-77fd7a9ed578.png"><img src="https://cloud.githubusercontent.com/assets/9029939/11951545/5e610a66-a89a-11e5-8cba-77fd7a9ed578.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>Open atom</li> <li>Go to File &gt; Open... &gt; Select "projects" folder &gt; Open random file from tree<br> The file opens, but several red error balloons show up as well.</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.166.0<br> <strong>System</strong>: Mac OS X 10.10.1<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: ENOENT, open 'undefined//Users/StruckRug67/Library/Mobile Documents/com<del>apple</del>CloudDocs/Projects/project.json'</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At fs.js:75 Error: ENOENT, open 'undefined//Users/StruckRug67/Library/Mobile Documents/com~apple~CloudDocs/Projects/project.json' at Error (native) "><pre class="notranslate"><code class="notranslate">At fs.js:75 Error: ENOENT, open 'undefined//Users/StruckRug67/Library/Mobile Documents/com~apple~CloudDocs/Projects/project.json' at Error (native) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 11x -0:00.0 core:close (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> 11x -0:00.0 core:close (atom-text-editor.editor) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;disabledPackages&quot;: [ &quot;linter&quot;, &quot;linter-puppet&quot; ], &quot;projectHome&quot;: &quot;/Users/StruckRug67/Projects&quot; }, &quot;editor&quot;: { &quot;fontFamily&quot;: &quot;source code pro&quot;, &quot;fontSize&quot;: 12, &quot;showIndentGuide&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>linter<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>linter-puppet<span class="pl-pds">"</span></span> ], <span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>/Users/StruckRug67/Projects<span class="pl-pds">"</span></span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"fontFamily"</span>: <span class="pl-s"><span class="pl-pds">"</span>source code pro<span class="pl-pds">"</span></span>, <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">12</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User language-docker, v1.1.2 language-dockerfile, v0.1.0 language-puppet, v0.10.0 linter-puppet-lint, v0.2.3 save-session, v0.11.2 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> language<span class="pl-k">-</span>docker, v1.<span class="pl-ii">1</span>.<span class="pl-ii">2</span> language<span class="pl-k">-</span>dockerfile, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> language<span class="pl-k">-</span>puppet, v0.<span class="pl-ii">10</span>.<span class="pl-ii">0</span> linter<span class="pl-k">-</span>puppet<span class="pl-k">-</span>lint, v0.<span class="pl-ii">2</span>.<span class="pl-ii">3</span> save<span class="pl-k">-</span>session, v0.<span class="pl-ii">11</span>.<span class="pl-ii">2</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>start an atom editor with save-session plugin on</li> <li>save action might cause this error</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.166.0<br> <strong>System</strong>: Mac OS X 10.10.1<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: ENOENT, open 'undefined//Users/alopex/.atom/project.json'</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At fs.js:75 Error: ENOENT, open 'undefined//Users/alopex/.atom/project.json' at Error (native) "><pre class="notranslate"><code class="notranslate">At fs.js:75 Error: ENOENT, open 'undefined//Users/alopex/.atom/project.json' at Error (native) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;disabledPackages&quot;: [ &quot;npm-install&quot;, &quot;save-session&quot; ], &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;base16-tomorrow-dark-theme&quot; ] }, &quot;editor&quot;: { &quot;fontSize&quot;: 14, &quot;invisibles&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>npm-install<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>save-session<span class="pl-pds">"</span></span> ], <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>base16-tomorrow-dark-theme<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"fontSize"</span>: <span class="pl-c1">14</span>, <span class="pl-ent">"invisibles"</span>: {} } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User color-picker, v1.2.6 linter, v0.9.1 minimap, v3.5.0 save-session, v0.11.2 npm-install, v2.0.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> color<span class="pl-k">-</span>picker, v1.<span class="pl-ii">2</span>.<span class="pl-ii">6</span> linter, v0.<span class="pl-ii">9</span>.<span class="pl-ii">1</span> minimap, v3.<span class="pl-ii">5</span>.<span class="pl-ii">0</span> save<span class="pl-k">-</span>session, v0.<span class="pl-ii">11</span>.<span class="pl-ii">2</span> npm<span class="pl-k">-</span>install, v2.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<p dir="auto">I had this issue on several machines running Windows 8.1 x64. <code class="notranslate">atom.exe</code> is flagged due to suspicious activities.</p> <p dir="auto">The antivirus programs tried:</p> <ul dir="auto"> <li>Avast</li> <li>Bitdefender</li> </ul>
<p dir="auto">Atom version: 0.136.0</p> <p dir="auto">From atom 0.136.0, the following two files are falsely detected as: Win32:Malware-gen:<br> atom-0.136.0\build\windows\Setup.exe<br> atom-0.136.0\build\windows\Update.exe</p> <p dir="auto">Avast version: 2015.10.0.2206<br> Virus signatures version: 141021-0</p> <p dir="auto">I will also submit this to avast.</p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 0.8 (devel 761330b125) last updated 2012/10/04 09:19:51 (GMT +200)"><pre class="notranslate"><code class="notranslate">ansible 0.8 (devel 761330b125) last updated 2012/10/04 09:19:51 (GMT +200) </code></pre></div> <p dir="auto">host variables specified in inventory file aren't stored in <em>hostvars</em>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat hosts [local] 127.0.0.1 person=&quot;John.Q&quot; ansible_python_interpreter=/usr/bin/python xxxx=&quot;foo&quot;"><pre class="notranslate"><code class="notranslate">$ cat hosts [local] 127.0.0.1 person="John.Q" ansible_python_interpreter=/usr/bin/python xxxx="foo" </code></pre></div> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" --- - hosts: 127.0.0.1 gather_facts: false connection: local tasks: - action: template src=templ.in dest=/tmp/t"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">127.0.0.1</span> <span class="pl-ent">gather_facts</span>: <span class="pl-c1">false</span> <span class="pl-ent">connection</span>: <span class="pl-s">local</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">action</span>: <span class="pl-s">template src=templ.in dest=/tmp/t</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat templ.in {{ hostvars | to_json }}"><pre class="notranslate"><code class="notranslate">$ cat templ.in {{ hostvars | to_json }} </code></pre></div> <p dir="auto">produces no mention of either <em>person</em>, <em>ansible_python_interpreter</em> or <em>xxxx</em>.</p>
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/simonpie/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/simonpie">@simonpie</a> on 2016-08-22T19:28:14Z</p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <ul dir="auto"> <li>lineinfile</li> </ul> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.1.0 config file = /Users/simonpie/Documents/WSO2/1.10/Ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.1.1.0 config file = /Users/simonpie/Documents/WSO2/1.10/Ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">The basic ansible version installed by brew on a fully patch El Capitan Mac controlling an oracle linux vm.</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">When trying to insert a convoluted line using the lineinfile module, outer quotes are printed in the file whilst they should not be. I can go around the problem by using variables.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Minimum example of failure for lineinfile module hosts: wso2 vars: wso2Home: ~wso2/WSO2API/wso2am-1.10.0 testString: &quot; -Djava.util.prefs.userRoot=\&quot;/home/wso2/.java/.userPrefsJijJa\&quot; \x5C&quot; become: yes become_user: root tasks: - name: Ajout des repertoires de prefs java Not OK lineinfile: dest={{wso2Home}}/bin/test-wso2server.sh line=&quot; -Djava.util.prefs.userRoot=\&quot;/home/wso2/.java/.userPrefs\&quot; \x5C&quot; insertafter='^(\s*)-Djava.util.logging.config.file(.*)' - name: Ajout des repertoires de prefs java OK lineinfile: dest={{wso2Home}}/bin/test-wso2server.sh line={{testString}} insertafter='^(\s*)-Djava.util.logging.config.file(.*)'"><pre class="notranslate"><code class="notranslate">- name: Minimum example of failure for lineinfile module hosts: wso2 vars: wso2Home: ~wso2/WSO2API/wso2am-1.10.0 testString: " -Djava.util.prefs.userRoot=\"/home/wso2/.java/.userPrefsJijJa\" \x5C" become: yes become_user: root tasks: - name: Ajout des repertoires de prefs java Not OK lineinfile: dest={{wso2Home}}/bin/test-wso2server.sh line=" -Djava.util.prefs.userRoot=\"/home/wso2/.java/.userPrefs\" \x5C" insertafter='^(\s*)-Djava.util.logging.config.file(.*)' - name: Ajout des repertoires de prefs java OK lineinfile: dest={{wso2Home}}/bin/test-wso2server.sh line={{testString}} insertafter='^(\s*)-Djava.util.logging.config.file(.*)' </code></pre></div> <p dir="auto">Use the following file as destination</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="do $JAVACMD \ -Xbootclasspath/a:&quot;$CARBON_XBOOTCLASSPATH&quot; \ $JVM_MEM_OPTS \ -XX:+HeapDumpOnOutOfMemoryError \ -XX:HeapDumpPath=&quot;$CARBON_HOME/repository/logs/heap-dump.hprof&quot; \ $JAVA_OPTS \ -Djava.util.logging.config.file=&quot;$CARBON_HOME/repository/conf/etc/logging-bridge.properties&quot; \ -DworkerNode=false \ org.wso2.carbon.bootstrap.Bootstrap $* status=$? done"><pre class="notranslate"><code class="notranslate">do $JAVACMD \ -Xbootclasspath/a:"$CARBON_XBOOTCLASSPATH" \ $JVM_MEM_OPTS \ -XX:+HeapDumpOnOutOfMemoryError \ -XX:HeapDumpPath="$CARBON_HOME/repository/logs/heap-dump.hprof" \ $JAVA_OPTS \ -Djava.util.logging.config.file="$CARBON_HOME/repository/conf/etc/logging-bridge.properties" \ -DworkerNode=false \ org.wso2.carbon.bootstrap.Bootstrap $* status=$? done </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">As can be seen, the lineinfile using a jinja template worked fine. But the first insertafter inserted quotes at the beginning and the end of my line.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="while [ &quot;$status&quot; = &quot;$START_EXIT_STATUS&quot; ] do $JAVACMD \ -Xbootclasspath/a:&quot;$CARBON_XBOOTCLASSPATH&quot; \ $JVM_MEM_OPTS \ -XX:+HeapDumpOnOutOfMemoryError \ -XX:HeapDumpPath=&quot;$CARBON_HOME/repository/logs/heap-dump.hprof&quot; \ $JAVA_OPTS \ -Djava.util.logging.config.file=&quot;$CARBON_HOME/repository/conf/etc/logging-bridge.properties&quot; \ -Djava.util.prefs.userRoot=&quot;/home/wso2/.java/.userPrefsJijJa&quot; \ &quot; -Djava.util.prefs.userRoot=&quot;/home/wso2/.java/.userPrefs&quot; \&quot; -DworkerNode=false \ org.wso2.carbon.bootstrap.Bootstrap $* status=$? done "><pre class="notranslate"><code class="notranslate">while [ "$status" = "$START_EXIT_STATUS" ] do $JAVACMD \ -Xbootclasspath/a:"$CARBON_XBOOTCLASSPATH" \ $JVM_MEM_OPTS \ -XX:+HeapDumpOnOutOfMemoryError \ -XX:HeapDumpPath="$CARBON_HOME/repository/logs/heap-dump.hprof" \ $JAVA_OPTS \ -Djava.util.logging.config.file="$CARBON_HOME/repository/conf/etc/logging-bridge.properties" \ -Djava.util.prefs.userRoot="/home/wso2/.java/.userPrefsJijJa" \ " -Djava.util.prefs.userRoot="/home/wso2/.java/.userPrefs" \" -DworkerNode=false \ org.wso2.carbon.bootstrap.Bootstrap $* status=$? done </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"> </code></pre></div> <p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="172533941" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/4499" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/4499/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/4499">ansible/ansible-modules-core#4499</a></p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.2</li> <li>Operating System version: windows 10 / CentOS release 6.9 (Final)</li> <li>Java version: 1.8.0_172-b11</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>use cxf 3.0.14 artifacts(core,frontend-simple,transports-http,binding,wsdl) as webservice lib</li> <li>define webservice protocol and services in dubbo provider xml file</li> <li>start the project</li> <li>use web browser to view wsdl file</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">The wsdl file should content address element like the following:<br> <a href="https://github.com/apache/dubbo/files/3697747/expacted.wsdl.txt">expacted.wsdl.txt</a></p> <h3 dir="auto">Actual Result</h3> <p dir="auto">The wsdl address element is missing! See the attachement below:<br> <a href="https://github.com/apache/dubbo/files/3697743/actual.wsdl.txt">actual.wsdl.txt</a></p>
0
<h3 dir="auto">Reproducing code example:</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np a = np.array([1, 2, 3]) b = np.array([0.5, 0.5, 0.5]) c = a - b # c = [0.5, 1.5, 2.5] # problem is here: n = np.array([0, 0, 0]) # n will be an integer array and will round c numbers automatically n[0] = c[0] n[1] = c[1] n[2] = c[2] print('n', n) # will print [0, 1, 2] without any exception # must print [0.5, 1.5, 2.5] or give some warning etc."><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>]) <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">0.5</span>, <span class="pl-c1">0.5</span>, <span class="pl-c1">0.5</span>]) <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span> <span class="pl-c1">-</span> <span class="pl-s1">b</span> <span class="pl-c"># c = [0.5, 1.5, 2.5]</span> <span class="pl-c"># problem is here:</span> <span class="pl-s1">n</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>]) <span class="pl-c"># n will be an integer array and will round c numbers automatically</span> <span class="pl-s1">n</span>[<span class="pl-c1">0</span>] <span class="pl-c1">=</span> <span class="pl-s1">c</span>[<span class="pl-c1">0</span>] <span class="pl-s1">n</span>[<span class="pl-c1">1</span>] <span class="pl-c1">=</span> <span class="pl-s1">c</span>[<span class="pl-c1">1</span>] <span class="pl-s1">n</span>[<span class="pl-c1">2</span>] <span class="pl-c1">=</span> <span class="pl-s1">c</span>[<span class="pl-c1">2</span>] <span class="pl-en">print</span>(<span class="pl-s">'n'</span>, <span class="pl-s1">n</span>) <span class="pl-c"># will print [0, 1, 2] without any exception</span> <span class="pl-c"># must print [0.5, 1.5, 2.5] or give some warning etc.</span></pre></div> <h3 dir="auto">Error message:</h3> <h3 dir="auto">NumPy/Python version information:</h3>
<h3 dir="auto">Reproducing code example:</h3> <p dir="auto">Create a file called <code class="notranslate">string.py</code> with the following content</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np if __name__ == &quot;__main__&quot;: pass"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>: <span class="pl-k">pass</span></pre></div> <p dir="auto">and run it via <code class="notranslate">python3 string.py</code>.</p> <h3 dir="auto">Error message:</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/home/user/Desktop/string.py&quot;, line 1, in &lt;module&gt; import numpy as np File &quot;/usr/local/lib/python3.6/dist-packages/numpy/__init__.py&quot;, line 228, in &lt;module&gt; from .testing import Tester File &quot;/usr/local/lib/python3.6/dist-packages/numpy/testing/__init__.py&quot;, line 10, in &lt;module&gt; from unittest import TestCase File &quot;/usr/lib/python3.6/unittest/__init__.py&quot;, line 59, in &lt;module&gt; from .case import (TestCase, FunctionTestCase, SkipTest, skip, skipIf, File &quot;/usr/lib/python3.6/unittest/case.py&quot;, line 6, in &lt;module&gt; import logging File &quot;/usr/lib/python3.6/logging/__init__.py&quot;, line 28, in &lt;module&gt; from string import Template ImportError: cannot import name 'Template' Error in sys.excepthook: Traceback (most recent call last): File &quot;/usr/lib/python3/dist-packages/apport_python_hook.py&quot;, line 63, in apport_excepthook from apport.fileutils import likely_packaged, get_recent_crashes File &quot;/usr/lib/python3/dist-packages/apport/__init__.py&quot;, line 5, in &lt;module&gt; from apport.report import Report File &quot;/usr/lib/python3/dist-packages/apport/report.py&quot;, line 21, in &lt;module&gt; from urllib.request import urlopen File &quot;/usr/lib/python3.6/urllib/request.py&quot;, line 88, in &lt;module&gt; import http.client File &quot;/usr/lib/python3.6/http/client.py&quot;, line 71, in &lt;module&gt; import email.parser File &quot;/usr/lib/python3.6/email/parser.py&quot;, line 12, in &lt;module&gt; from email.feedparser import FeedParser, BytesFeedParser File &quot;/usr/lib/python3.6/email/feedparser.py&quot;, line 27, in &lt;module&gt; from email._policybase import compat32 File &quot;/usr/lib/python3.6/email/_policybase.py&quot;, line 7, in &lt;module&gt; from email import header File &quot;/usr/lib/python3.6/email/header.py&quot;, line 16, in &lt;module&gt; import email.quoprimime File &quot;/usr/lib/python3.6/email/quoprimime.py&quot;, line 44, in &lt;module&gt; from string import ascii_letters, digits, hexdigits ImportError: cannot import name 'ascii_letters' Original exception was: Traceback (most recent call last): File &quot;/home/user/Desktop/string.py&quot;, line 1, in &lt;module&gt; import numpy as np File &quot;/usr/local/lib/python3.6/dist-packages/numpy/__init__.py&quot;, line 228, in &lt;module&gt; from .testing import Tester File &quot;/usr/local/lib/python3.6/dist-packages/numpy/testing/__init__.py&quot;, line 10, in &lt;module&gt; from unittest import TestCase File &quot;/usr/lib/python3.6/unittest/__init__.py&quot;, line 59, in &lt;module&gt; from .case import (TestCase, FunctionTestCase, SkipTest, skip, skipIf, File &quot;/usr/lib/python3.6/unittest/case.py&quot;, line 6, in &lt;module&gt; import logging File &quot;/usr/lib/python3.6/logging/__init__.py&quot;, line 28, in &lt;module&gt; from string import Template ImportError: cannot import name 'Template'"><pre class="notranslate">Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>/home/user/Desktop/string.py<span class="pl-pds">"</span></span>, line 1, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> import numpy as np File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.6/dist-packages/numpy/__init__.py<span class="pl-pds">"</span></span>, line 228, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from .testing import Tester File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.6/dist-packages/numpy/testing/__init__.py<span class="pl-pds">"</span></span>, line 10, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from unittest import TestCase File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3.6/unittest/__init__.py<span class="pl-pds">"</span></span>, line 59, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from .case import (TestCase, FunctionTestCase, SkipTest, skip, skipIf, File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3.6/unittest/case.py<span class="pl-pds">"</span></span>, line 6, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> import logging File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3.6/logging/__init__.py<span class="pl-pds">"</span></span>, line 28, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from string import Template ImportError: cannot import name <span class="pl-s"><span class="pl-pds">'</span>Template<span class="pl-pds">'</span></span> Error <span class="pl-k">in</span> sys.excepthook: Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3/dist-packages/apport_python_hook.py<span class="pl-pds">"</span></span>, line 63, <span class="pl-k">in</span> apport_excepthook from apport.fileutils import likely_packaged, get_recent_crashes File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3/dist-packages/apport/__init__.py<span class="pl-pds">"</span></span>, line 5, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from apport.report import Report File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3/dist-packages/apport/report.py<span class="pl-pds">"</span></span>, line 21, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from urllib.request import urlopen File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3.6/urllib/request.py<span class="pl-pds">"</span></span>, line 88, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> import http.client File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3.6/http/client.py<span class="pl-pds">"</span></span>, line 71, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> import email.parser File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3.6/email/parser.py<span class="pl-pds">"</span></span>, line 12, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from email.feedparser import FeedParser, BytesFeedParser File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3.6/email/feedparser.py<span class="pl-pds">"</span></span>, line 27, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from email._policybase import compat32 File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3.6/email/_policybase.py<span class="pl-pds">"</span></span>, line 7, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from email import header File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3.6/email/header.py<span class="pl-pds">"</span></span>, line 16, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> import email.quoprimime File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3.6/email/quoprimime.py<span class="pl-pds">"</span></span>, line 44, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from string import ascii_letters, digits, hexdigits ImportError: cannot import name <span class="pl-s"><span class="pl-pds">'</span>ascii_letters<span class="pl-pds">'</span></span> Original exception was: Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>/home/user/Desktop/string.py<span class="pl-pds">"</span></span>, line 1, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> import numpy as np File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.6/dist-packages/numpy/__init__.py<span class="pl-pds">"</span></span>, line 228, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from .testing import Tester File <span class="pl-s"><span class="pl-pds">"</span>/usr/local/lib/python3.6/dist-packages/numpy/testing/__init__.py<span class="pl-pds">"</span></span>, line 10, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from unittest import TestCase File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3.6/unittest/__init__.py<span class="pl-pds">"</span></span>, line 59, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from .case import (TestCase, FunctionTestCase, SkipTest, skip, skipIf, File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3.6/unittest/case.py<span class="pl-pds">"</span></span>, line 6, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> import logging File <span class="pl-s"><span class="pl-pds">"</span>/usr/lib/python3.6/logging/__init__.py<span class="pl-pds">"</span></span>, line 28, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from string import Template ImportError: cannot import name <span class="pl-s"><span class="pl-pds">'</span>Template<span class="pl-pds">'</span></span></pre></div> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">Numpy: 1.18.2<br> Python: 3.6.9<br> GCC 8.4.0</p> <h3 dir="auto">Operating system:</h3> <p dir="auto">Ubuntu 18.04.4 LTS</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.0 config file = None configured module search path = ['/Users/ecosta/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.6/site-packages/ansible-2.4.0-py3.6.egg/ansible executable location = build/scripts-3.6/ansible python version = 3.6.0 (default, Dec 24 2016, 08:01:42) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] "><pre class="notranslate"><code class="notranslate">ansible 2.4.0 config file = None configured module search path = ['/Users/ecosta/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.6/site-packages/ansible-2.4.0-py3.6.egg/ansible executable location = build/scripts-3.6/ansible python version = 3.6.0 (default, Dec 24 2016, 08:01:42) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">running on Mac<br> managing Redhat</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Does it possible add the option --auto-attach?</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"> </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">redhat_subscription</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible --version ansible 2.2.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible --version ansible 2.2.1.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">RHEL 7.3</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">As indicated in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="217375393" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/23013" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/23013/hovercard" href="https://github.com/ansible/ansible/issues/23013">#23013</a> autosubscribe is deprecated in favor of auto-attach so we should look to implement that functionality in this module. It was suggested that we copy that logic to address <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="196220980" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/19466" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/19466/hovercard" href="https://github.com/ansible/ansible/issues/19466">#19466</a> but wanted to suggest breaking it out as its own parameter.</p>
1
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/escape-sequences-in-strings" rel="nofollow">Escape Sequences in Strings</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.84 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" var myStr = &quot;Here is a backslash: \\.\n\t\tHere is a new line with two tabs.&quot;; // Change this line "><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">myStr</span> <span class="pl-c1">=</span> <span class="pl-s">"Here is a backslash: \\.\n\t\tHere is a new line with two tabs."</span><span class="pl-kos">;</span> <span class="pl-c">// Change this line</span> </pre></div> <p dir="auto">Part of the error for this says "myStr should not have any spaces in between consecutive escape sequences."</p> <p dir="auto">What it fails to mention is to not have a space between the escape sequence and a word which is (Here). This code works fine....... var myStr = "Here is a backslash: .\n\t\tHere is a new line with two tabs."; // Change this line</p>
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/basic-css/adjust-the-padding-of-an-element" rel="nofollow">adjust-the-padding-of-an-element</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">Code will not reload on phone display, If coming from previous assignment, phone will display previous assignment's code, if not, phone will display blank page. Phone code will load properly upon submitting challenge.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;style&gt; .injected-text { margin-bottom: -25px; text-align: center; } .box { border-style: solid; border-color: black; border-width: 5px; text-align: center; } .yellow-box { background-color: yellow; padding: 10px; } .red-box { background-color: red; padding: 20px; } .green-box { background-color: green; padding: 10px; } &lt;/style&gt; &lt;h5 class=&quot;injected-text&quot;&gt;margin&lt;/h5&gt; &lt;div class=&quot;box yellow-box&quot;&gt; &lt;h5 class=&quot;box red-box&quot;&gt;padding&lt;/h5&gt; &lt;h5 class=&quot;box green-box&quot;&gt;padding&lt;/h5&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">injected-text</span> { <span class="pl-c1">margin-bottom</span><span class="pl-kos">:</span> <span class="pl-c1">-25<span class="pl-smi">px</span></span>; <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; } .<span class="pl-c1">box</span> { <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-color</span><span class="pl-kos">:</span> black; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">5<span class="pl-smi">px</span></span>; <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; } .<span class="pl-c1">yellow-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> yellow; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; } .<span class="pl-c1">red-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> red; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">20<span class="pl-smi">px</span></span>; } .<span class="pl-c1">green-box</span> { <span class="pl-c1">background-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">injected-text</span>"<span class="pl-kos">&gt;</span>margin<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">box yellow-box</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">box red-box</span>"<span class="pl-kos">&gt;</span>padding<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h5</span> <span class="pl-c1">class</span>="<span class="pl-s">box green-box</span>"<span class="pl-kos">&gt;</span>padding<span class="pl-kos">&lt;/</span><span class="pl-ent">h5</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div>
0
<h4 dir="auto">Description</h4> <p dir="auto">For binary tasks with wrapped down custom scoring functions by the <code class="notranslate">metrics.make_scorerer</code>-scheme <code class="notranslate">roc_auc_score</code> is behaving unexpectedly. When requiring the probability output from a binary classifier, which is a shape( n , 2) object, while the training/testing lables are an expected shape (n, ) input, A scoring will fail.<br> However, the binary task and internal handling of different y shapes is incidentially correctly understood by <code class="notranslate">metrics.log_loss</code> by internal evaluations, but <code class="notranslate">roc_auc_score</code> currently fails at this. This especially cumbersome, if the scoring function is wrapped down in a <code class="notranslate">cross_val_score</code> and a <code class="notranslate">make_scorer</code> much deeper in the code with possible nested pipelines etc, where the automatic correct evaluation of this particular metric is required.</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <p dir="auto">This should illustrate what is failing</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.metrics import roc_auc_score, log_loss y_true0 = np.array([False, False, True, True]) y_true1 = ~y_true0 y_true = np.matrix([y_true0, y_true1]).T y_proba0 = np.array([0.1, 0.4, 0.35, 0.8]) #predict_proba component [:,0] y_proba1 = 1 - y_proba0 #predict_proba component [:,1] y_proba = np.matrix([y_proba0, y_proba1]).T #as obtained by classifier.predict_proba() log_loss(y_true1, y_proba1) # compute for positive class component &gt;&gt;&gt; OK log_loss(y_true, y_proba) # compute for all class &gt;&gt;&gt; OK log_loss(y_true1, y_proba) # compute for mixed component &gt;&gt;&gt; OK roc_auc_score(y_true1, y_proba1) # compute for positive class component &gt;&gt;&gt; OK roc_auc_score(y_true, y_proba) # compute for all class &gt;&gt;&gt; OK roc_auc_score(y_true1, y_proba) # compute for mixed component &gt;&gt;&gt; FAIL: bad input shape (4, 2) #last above line is source of error in this snippet: of binary classification and scoring task from sklearn.datasets import make_hastie_10_2 from sklearn.ensemble import GradientBoostingClassifier X, y = make_hastie_10_2(random_state=0) X_train, X_test = X[:2000], X[2000:] y_train, y_test = y[:2000], y[2000:] clf = GradientBoostingClassifier(n_estimators=100, learning_rate=1.0, max_depth=1, random_state=0).fit(X_train, y_train) from sklearn.metrics import make_scorer, roc_auc_score make_scorer(roc_auc_score, needs_proba=True)(clf, X_test, y_test) # &gt;&gt;&gt; FAIL: bad input shape (1000, 2) #compare make_scorer(log_loss, greater_is_better=True, needs_proba=True)(clf, X_test, y_test) # &gt;&gt;&gt; OK"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">metrics</span> <span class="pl-k">import</span> <span class="pl-s1">roc_auc_score</span>, <span class="pl-s1">log_loss</span> <span class="pl-s1">y_true0</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">False</span>, <span class="pl-c1">False</span>, <span class="pl-c1">True</span>, <span class="pl-c1">True</span>]) <span class="pl-s1">y_true1</span> <span class="pl-c1">=</span> <span class="pl-c1">~</span><span class="pl-s1">y_true0</span> <span class="pl-s1">y_true</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">matrix</span>([<span class="pl-s1">y_true0</span>, <span class="pl-s1">y_true1</span>]).<span class="pl-v">T</span> <span class="pl-s1">y_proba0</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">0.1</span>, <span class="pl-c1">0.4</span>, <span class="pl-c1">0.35</span>, <span class="pl-c1">0.8</span>]) <span class="pl-c">#predict_proba component [:,0]</span> <span class="pl-s1">y_proba1</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span> <span class="pl-c1">-</span> <span class="pl-s1">y_proba0</span> <span class="pl-c">#predict_proba component [:,1]</span> <span class="pl-s1">y_proba</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">matrix</span>([<span class="pl-s1">y_proba0</span>, <span class="pl-s1">y_proba1</span>]).<span class="pl-v">T</span> <span class="pl-c">#as obtained by classifier.predict_proba()</span> <span class="pl-en">log_loss</span>(<span class="pl-s1">y_true1</span>, <span class="pl-s1">y_proba1</span>) <span class="pl-c"># compute for positive class component &gt;&gt;&gt; OK</span> <span class="pl-en">log_loss</span>(<span class="pl-s1">y_true</span>, <span class="pl-s1">y_proba</span>) <span class="pl-c"># compute for all class &gt;&gt;&gt; OK</span> <span class="pl-en">log_loss</span>(<span class="pl-s1">y_true1</span>, <span class="pl-s1">y_proba</span>) <span class="pl-c"># compute for mixed component &gt;&gt;&gt; OK</span> <span class="pl-en">roc_auc_score</span>(<span class="pl-s1">y_true1</span>, <span class="pl-s1">y_proba1</span>) <span class="pl-c"># compute for positive class component &gt;&gt;&gt; OK</span> <span class="pl-en">roc_auc_score</span>(<span class="pl-s1">y_true</span>, <span class="pl-s1">y_proba</span>) <span class="pl-c"># compute for all class &gt;&gt;&gt; OK</span> <span class="pl-en">roc_auc_score</span>(<span class="pl-s1">y_true1</span>, <span class="pl-s1">y_proba</span>) <span class="pl-c"># compute for mixed component &gt;&gt;&gt; FAIL: bad input shape (4, 2)</span> <span class="pl-c">#last above line is source of error in this snippet: of binary classification and scoring task</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">datasets</span> <span class="pl-k">import</span> <span class="pl-s1">make_hastie_10_2</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">ensemble</span> <span class="pl-k">import</span> <span class="pl-v">GradientBoostingClassifier</span> <span class="pl-v">X</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">make_hastie_10_2</span>(<span class="pl-s1">random_state</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-v">X_train</span>, <span class="pl-v">X_test</span> <span class="pl-c1">=</span> <span class="pl-v">X</span>[:<span class="pl-c1">2000</span>], <span class="pl-v">X</span>[<span class="pl-c1">2000</span>:] <span class="pl-s1">y_train</span>, <span class="pl-s1">y_test</span> <span class="pl-c1">=</span> <span class="pl-s1">y</span>[:<span class="pl-c1">2000</span>], <span class="pl-s1">y</span>[<span class="pl-c1">2000</span>:] <span class="pl-s1">clf</span> <span class="pl-c1">=</span> <span class="pl-v">GradientBoostingClassifier</span>(<span class="pl-s1">n_estimators</span><span class="pl-c1">=</span><span class="pl-c1">100</span>, <span class="pl-s1">learning_rate</span><span class="pl-c1">=</span><span class="pl-c1">1.0</span>, <span class="pl-s1">max_depth</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">random_state</span><span class="pl-c1">=</span><span class="pl-c1">0</span>).<span class="pl-en">fit</span>(<span class="pl-v">X_train</span>, <span class="pl-s1">y_train</span>) <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">metrics</span> <span class="pl-k">import</span> <span class="pl-s1">make_scorer</span>, <span class="pl-s1">roc_auc_score</span> <span class="pl-en">make_scorer</span>(<span class="pl-s1">roc_auc_score</span>, <span class="pl-s1">needs_proba</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)(<span class="pl-s1">clf</span>, <span class="pl-v">X_test</span>, <span class="pl-s1">y_test</span>) <span class="pl-c"># &gt;&gt;&gt; FAIL: bad input shape (1000, 2)</span> <span class="pl-c">#compare</span> <span class="pl-en">make_scorer</span>(<span class="pl-s1">log_loss</span>, <span class="pl-s1">greater_is_better</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">needs_proba</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)(<span class="pl-s1">clf</span>, <span class="pl-v">X_test</span>, <span class="pl-s1">y_test</span>) <span class="pl-c"># &gt;&gt;&gt; OK</span></pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto"><code class="notranslate">roc_auc_score</code> should behave in a similar way as <code class="notranslate">log_loss</code>, guessing the binary classification task and handle different shape input correctly</p> <h4 dir="auto">Versions</h4> <p dir="auto">Windows-10-10.0.15063-SP0<br> Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD64)]<br> NumPy 1.13.3<br> SciPy 0.19.1<br> Scikit-Learn 0.19.1</p>
<p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25636854" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/2755" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/2755/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/2755">#2755</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175273552" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/7346" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/7346/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/7346">#7346</a> .</p> <p dir="auto"><code class="notranslate">BaseEstimator.get_params</code> has logic which:</p> <ul dir="auto"> <li>sets a warnings filter to always show DeprecationWarnings. Always. Even if they're not from scikit-learn, or triggered outside of <code class="notranslate">get_params</code>.</li> <li>refuses to return from <code class="notranslate">get_params</code> a parameter (as defined by <code class="notranslate">BaseEstimator._get_param_names</code> to be a constructor parameter) whose attribute access raises a <code class="notranslate">DeprecationWarning</code>.</li> </ul> <p dir="auto">I find both these behaviours wrong. Clearly modifying the global warning filter setting is being a bad citizen (and doing so once per parameter is even weirder, even if duplicates are ignored by the warnings module), and we use a more circumspect formulation in <code class="notranslate">sklearn.__init__</code> which only affects warnings coming from <code class="notranslate">sklearn.*</code>.</p> <p dir="auto">While we rarely use <code class="notranslate">DeprecationWarnings</code> on parameter access (e.g. through a <code class="notranslate">property</code> with the deprecated parameter's name) within Scikit-learn itself, we <em>do</em> tend to allow parameters that are in the process of deprecation to have effect (e.g. <code class="notranslate">SGDClassifier.n_iter</code>), to be displayed by <code class="notranslate">get_params</code>, and to be set by <code class="notranslate">set_params</code>. (No doubt this <code class="notranslate">get_params</code> implementation was written before some of the "do not validate during construction" API policies were clear.) Whose code are we going to break if we just include the deprecated parameters in <code class="notranslate">get_params</code>??</p> <p dir="auto">I understand that <code class="notranslate">get_params</code> should not show any <code class="notranslate">DeprecationWarning</code>. And I understand that silencing them will in all cases run risks in terms of multithreading. (I also think we need to clarify the risks of solving <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25636854" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/2755" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/2755/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/2755">#2755</a> with locking, as I think it really should be solved ASAP. But it's a separate issue.)</p> <p dir="auto">Ping <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ogrisel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ogrisel">@ogrisel</a>.</p>
0
<p dir="auto">I've run into a strange problem involving both <code class="notranslate">tf.train.Saver</code> and an input pipeline based on <code class="notranslate">tf.train.string_input_producer()</code>. It seems as though the <code class="notranslate">num_epochs</code> parameter to <code class="notranslate">tf.train.string_input_producer()</code> stops working as intended after loading a saved model.</p> <p dir="auto">I'm currently using v0.8 but I suspect this is still an issue on v0.9 and above.</p> <h3 dir="auto">Environment info</h3> <p dir="auto">Operating System: Mac OSX (10.11.6)<br> Tensorflow version: 0.8<br> pip version: 8.1.1</p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">1 - Create a new directory and add to it the files from the following gist: <a href="https://gist.github.com/6d730e1b3d331c4be34c9a57b0a39ccf">https://gist.github.com/6d730e1b3d331c4be34c9a57b0a39ccf</a> . The <code class="notranslate">1.txt</code> and <code class="notranslate">2.txt</code> files simulate training data. The <code class="notranslate">training.py</code> file implements a simple input pipeline, taking in text files, and printing them line by line. Notice that the <code class="notranslate">num_epochs</code> parameter on line 28 is set to 1.</p> <p dir="auto">2 - Run <code class="notranslate">$ python training.py test 1.txt</code>. The output should resemble the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="The multiplying villanies of nature Do swarm upon him--from the western isles And fortune, on his damned quarrel smiling, Show'd like a rebel's whore: but all's too weak: For brave Macbeth--well he deserves that name-- Model saved to ./model-test-0 As two spent swimmers, that do cling together Disdaining fortune, with his brandish'd steel, And fix'd his head upon our battlements. Like valour's minion carved out his passage Which smoked with bloody execution, Model saved to ./model-test-1 Till he unseam'd him from the nave to the chaps, And choke their art. The merciless Macdonwald-- Of kerns and gallowglasses is supplied; Worthy to be a rebel, for to that Doubtful it stood; Model saved to ./model-test-2 Done training! Model saved to ./model-test-3"><pre class="notranslate"><code class="notranslate">The multiplying villanies of nature Do swarm upon him--from the western isles And fortune, on his damned quarrel smiling, Show'd like a rebel's whore: but all's too weak: For brave Macbeth--well he deserves that name-- Model saved to ./model-test-0 As two spent swimmers, that do cling together Disdaining fortune, with his brandish'd steel, And fix'd his head upon our battlements. Like valour's minion carved out his passage Which smoked with bloody execution, Model saved to ./model-test-1 Till he unseam'd him from the nave to the chaps, And choke their art. The merciless Macdonwald-- Of kerns and gallowglasses is supplied; Worthy to be a rebel, for to that Doubtful it stood; Model saved to ./model-test-2 Done training! Model saved to ./model-test-3 </code></pre></div> <p dir="auto">3 - Run <code class="notranslate">$ python training.py test 2.txt</code>. The output should be:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Done training! Model saved to ./model-test-3"><pre class="notranslate"><code class="notranslate">Done training! Model saved to ./model-test-3 </code></pre></div> <p dir="auto">4 - Now, change the <code class="notranslate">num_epochs</code> parameter on line 28 from 1 to 2, and run <code class="notranslate">$ python training.py test 2.txt</code> again. In this case, we have something that resembles:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Letting 'I dare not' wait upon 'I would,' As thou art in desire? Wouldst thou have that Such I account thy love. Art thou afeard Which thou esteem'st the ornament of life, And wakes it now, to look so green and pale Model saved to ./model-test-3 And live a coward in thine own esteem, At what it did so freely? From this time Like the poor cat i' the adage? Wherein you dress'd yourself? hath it slept since? To be the same in thine own act and valour Model saved to ./model-test-4 Done training! Model saved to ./model-test-5"><pre class="notranslate"><code class="notranslate">Letting 'I dare not' wait upon 'I would,' As thou art in desire? Wouldst thou have that Such I account thy love. Art thou afeard Which thou esteem'st the ornament of life, And wakes it now, to look so green and pale Model saved to ./model-test-3 And live a coward in thine own esteem, At what it did so freely? From this time Like the poor cat i' the adage? Wherein you dress'd yourself? hath it slept since? To be the same in thine own act and valour Model saved to ./model-test-4 Done training! Model saved to ./model-test-5 </code></pre></div> <p dir="auto">5 - To cleanup, run <code class="notranslate">$ rm checkpoint model-test-*</code>.</p> <p dir="auto">There are two problems: First, the model does not continue to "train" in step 3. Second, when the <code class="notranslate">num_epochs</code> parameter is modified and it does continue to train, it doesn't reproduce the input twice, as it should (step 4).</p> <p dir="auto">Playing around with this, I notice that the initial value of <code class="notranslate">num_epochs</code> works as expected, e.g. if at step 1, <code class="notranslate">num_epochs</code> is set to 3, three copies of the input file will be produced. Further, step 4 yields similar results when the new value for <code class="notranslate">num_epochs</code> is larger than the previous value.</p>
<p dir="auto">The <a href="https://github.com/tensorflow/docs/blob/master/site/en/r2/guide/upgrade.md"><code class="notranslate">tf_upgrade_v2</code></a> tool fails to parse commands with common IPython functions (for example, <code class="notranslate">!pip install tf-nightly</code> and <code class="notranslate">%matplotlib inline</code>).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: Failed to parse. Traceback (most recent call last): File &quot;/usr/local/lib/python3.6/dist-packages/tensorflow/tools/compatibility/ast_edits.py&quot;, line 510, in update_string_pasta t = pasta.parse(text) File &quot;/usr/local/lib/python3.6/dist-packages/pasta/__init__.py&quot;, line 23, in parse t = ast_utils.parse(src) File &quot;/usr/local/lib/python3.6/dist-packages/pasta/base/ast_utils.py&quot;, line 56, in parse tree = ast.parse(sanitize_source(src)) File &quot;/usr/lib/python3.6/ast.py&quot;, line 35, in parse return compile(source, filename, mode, PyCF_ONLY_AST) File &quot;&lt;unknown&gt;&quot;, line 37 !pip install tf-nightly ^ SyntaxError: invalid syntax"><pre class="notranslate"><code class="notranslate">ERROR: Failed to parse. Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/tensorflow/tools/compatibility/ast_edits.py", line 510, in update_string_pasta t = pasta.parse(text) File "/usr/local/lib/python3.6/dist-packages/pasta/__init__.py", line 23, in parse t = ast_utils.parse(src) File "/usr/local/lib/python3.6/dist-packages/pasta/base/ast_utils.py", line 56, in parse tree = ast.parse(sanitize_source(src)) File "/usr/lib/python3.6/ast.py", line 35, in parse return compile(source, filename, mode, PyCF_ONLY_AST) File "&lt;unknown&gt;", line 37 !pip install tf-nightly ^ SyntaxError: invalid syntax </code></pre></div>
0
<p dir="auto">#### Summary</p> <p dir="auto">I want the <a href="https://github.com/axios/axios/blob/master/index.d.ts#L23">AxiosRequestConfig interface</a> to be this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ url?: string; method?: string; baseURL?: string; transformRequest?: AxiosTransformer | AxiosTransformer[]; transformResponse?: AxiosTransformer | AxiosTransformer[]; headers?: any; params?: any; paramsSerializer?: (params: any) =&gt; string; data?: any; timeout?: number; withCredentials?: boolean; adapter?: AxiosAdapter; auth?: AxiosBasicCredentials; responseType?: string; xsrfCookieName?: string; xsrfHeaderName?: string; onUploadProgress?: (progressEvent: any) =&gt; void; onDownloadProgress?: (progressEvent: any) =&gt; void; maxContentLength?: number; validateStatus?: (status: number) =&gt; boolean; maxRedirects?: number; httpAgent?: any; httpsAgent?: any; proxy?: AxiosProxyConfig | false; cancelToken?: CancelToken; // custom config [someOtherConfig: string]: any; }"><pre class="notranslate"><code class="notranslate">{ url?: string; method?: string; baseURL?: string; transformRequest?: AxiosTransformer | AxiosTransformer[]; transformResponse?: AxiosTransformer | AxiosTransformer[]; headers?: any; params?: any; paramsSerializer?: (params: any) =&gt; string; data?: any; timeout?: number; withCredentials?: boolean; adapter?: AxiosAdapter; auth?: AxiosBasicCredentials; responseType?: string; xsrfCookieName?: string; xsrfHeaderName?: string; onUploadProgress?: (progressEvent: any) =&gt; void; onDownloadProgress?: (progressEvent: any) =&gt; void; maxContentLength?: number; validateStatus?: (status: number) =&gt; boolean; maxRedirects?: number; httpAgent?: any; httpsAgent?: any; proxy?: AxiosProxyConfig | false; cancelToken?: CancelToken; // custom config [someOtherConfig: string]: any; } </code></pre></div> <p dir="auto">So i can add some custom config without type matching error</p> <p dir="auto">#### Context</p> <ul dir="auto"> <li>axios version: <em>e.g.: v0.17.1</em></li> </ul>
<h4 dir="auto">Summary</h4> <p dir="auto">Allow for typesafe extension of AxiosConfiguration</p> <h4 dir="auto">Context</h4> <p dir="auto">Allow for the following user case (without the cast)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" interface Config extends AxiosRequestConfig { start?: Date } const requestConfig: Config = { ... } const instance = axios.create(requestConfig) instance.interceptors.request.use(axiosConfig =&gt; { const config = axiosConfig as Config // Cast is needed as axiosConfig is infered to AxiosConfiguration and not Config config.start = new Date() return config }) "><pre class="notranslate"><code class="notranslate"> interface Config extends AxiosRequestConfig { start?: Date } const requestConfig: Config = { ... } const instance = axios.create(requestConfig) instance.interceptors.request.use(axiosConfig =&gt; { const config = axiosConfig as Config // Cast is needed as axiosConfig is infered to AxiosConfiguration and not Config config.start = new Date() return config }) </code></pre></div>
1
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.7</p> <p dir="auto"><strong>Code</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for"><pre class="notranslate"><code class="notranslate">for </code></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> Emit something that's not an infinite loop. It's a syntax error so it should probably stay a syntax error in the output js.<br> <strong>Actual behavior:</strong><br> A for loop with no parameters or body emits this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for (; ; ) ;"><pre class="notranslate"><code class="notranslate">for (; ; ) ; </code></pre></div>
<p dir="auto">Consider this code:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Super { _view:Element; constructor(view?:Element) { this._view = view || document.createElement('div'); }; } class Inherits extends Super { test = 1; view:Element; constructor() { let view = document.createElement('span'); super(view); this.view = view; }; }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Super</span> <span class="pl-kos">{</span> <span class="pl-c1">_view</span>:<span class="pl-smi">Element</span><span class="pl-kos">;</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">view</span>?:<span class="pl-smi">Element</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_view</span> <span class="pl-c1">=</span> <span class="pl-s1">view</span> <span class="pl-c1">||</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">'div'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">class</span> <span class="pl-smi">Inherits</span> <span class="pl-k">extends</span> <span class="pl-smi">Super</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c1">view</span>:<span class="pl-smi">Element</span><span class="pl-kos">;</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> <span class="pl-s1">view</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">'span'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-s1">view</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">view</span> <span class="pl-c1">=</span> <span class="pl-s1">view</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">And it says: <code class="notranslate">2376 A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties.</code></p> <p dir="auto">I understand that it's because of <code class="notranslate">test</code> property. but can you allow not-<code class="notranslate">this</code> code before <code class="notranslate">super()</code> call how ES6 does?</p> <p dir="auto">Also, this won't work too, of course:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Inherits extends Super { test = 1; view:Element = document.createElement('span'); constructor() { super(this.view); // 2332 'this' cannot be referenced in current location. }; }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Inherits</span> <span class="pl-k">extends</span> <span class="pl-smi">Super</span> <span class="pl-kos">{</span> <span class="pl-c1">test</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c1">view</span>:<span class="pl-smi">Element</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">'span'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">view</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// 2332 'this' cannot be referenced in current location.</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div>
0
<p dir="auto">This is the issue in Tensorflow <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="936962718" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/50612" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/50612/hovercard" href="https://github.com/tensorflow/tensorflow/issues/50612">tensorflow/tensorflow#50612</a></p> <p dir="auto">And this is my PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="947914332" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/50844" data-hovercard-type="pull_request" data-hovercard-url="/tensorflow/tensorflow/pull/50844/hovercard" href="https://github.com/tensorflow/tensorflow/pull/50844">tensorflow/tensorflow#50844</a></p> <p dir="auto">Now the issues of keras are done here. If it's necessary I can duplicate the issue here.</p>
<p dir="auto">I am getting unexpected behaviour when using mean_squared_error loss.</p> <p dir="auto">My original issue was that fit_generator was reporting an incorrect validation loss. I was unable to reproduce that bug in a gist that I can make public, but I was able to demonstrate an incorrect training loss.</p> <p dir="auto">Bafflingly, if I change max_queue_size to 1 instead of the default 10 in fit_generator, the issue is resolved.</p> <p dir="auto"><a href="https://gist.github.com/alekseynp/1bb6cbe4ee7fb6e8ea46d68c675b934d">https://gist.github.com/alekseynp/1bb6cbe4ee7fb6e8ea46d68c675b934d</a></p>
0
<p dir="auto">Platform: OS X 10.10<br> Atom Version: 0.201.0</p> <p dir="auto">Description:<br> Changing tabs using the mouse button (clicking on them) steals the focus from the editor window and requires another click into the text to continue writing.</p> <p dir="auto">Expected behavior:<br> Text editor regains focus after tabs are switched.</p> <p dir="auto">Note:<br> Changing tabs using keyboard shortcuts works and won't steal the focus</p>
<p dir="auto">When you are working in multiple files and going back and forth between the file tabs, the cursor position for that tab is forgotten and you can't type text right away.</p> <p dir="auto">This is rather frustrating behaviour, as it forces you to grab your mouse and click somewhere in the code before you can start typing.</p> <p dir="auto">Sublime remembers the cursor position per tab/file, so that when you go back to a tab, the cursor is at the position where you left off, and you can start typing right away.</p> <p dir="auto">Can this be enabled for Atom as well? I couldn't find a package that does it.</p>
1
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> I've updated to 7.5 and have been following the developments with issues that should have been resolved with <a href="https://github.com/babel/babel/releases/tag/v7.5.1">https://github.com/babel/babel/releases/tag/v7.5.1</a> however after stripping and reinstalling everything babel-related, I'm still getting this error.</p> <p dir="auto"><strong>Babel packages</strong><br> @babel/cli: "^7.5.0"<br> @babel/core: "^7.5.0"<br> @babel/helpers: "^7.5.1"<br> @babel/plugin-proposal-object-rest-spread: "^7.5.1"<br> @babel/plugin-transform-runtime: "^7.5.0"<br> @babel/polyfill: "^7.4.4"<br> @babel/preset-env: "^7.5.0"<br> @babel/preset-react: "^7.0.0"<br> babel-eslint: "^10.0.2"<br> babel-jest: "^24.8.0"<br> babel-loader: "^8.0.6"<br> babel-plugin-dynamic-import-node: "^2.3.0"<br> babel-plugin-jsx-remove-data-test-id: "^2.0.0"<br> babel-plugin-transform-class-properties: "^6.24.1"<br> babel-plugin-transform-decorators-legacy: "^1.3.5"<br> babel-plugin-transform-export-extensions: "^6.22.0"<br> babel-plugin-transform-object-rest-spread: "^6.26.0"</p> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;env&quot;: { &quot;test&quot;: { &quot;plugins&quot;: [ &quot;transform-class-properties&quot;, &quot;dynamic-import-node&quot;, &quot;@babel/plugin-transform-runtime&quot; ] }, &quot;production&quot;: { &quot;plugins&quot;: [&quot;babel-plugin-jsx-remove-data-test-id&quot;] } }, &quot;presets&quot;: [&quot;@babel/preset-env&quot;, &quot;@babel/preset-react&quot;], &quot;plugins&quot;: [&quot;transform-class-properties&quot;] } "><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"env"</span>: <span class="pl-kos">{</span> <span class="pl-s">"test"</span>: <span class="pl-kos">{</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span> <span class="pl-s">"transform-class-properties"</span><span class="pl-kos">,</span> <span class="pl-s">"dynamic-import-node"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/plugin-transform-runtime"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"production"</span>: <span class="pl-kos">{</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span><span class="pl-s">"babel-plugin-jsx-remove-data-test-id"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span><span class="pl-s">"@babel/preset-env"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/preset-react"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span><span class="pl-s">"transform-class-properties"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version(s): 7.5.0</li> <li>Node/npm version: 6.5.0</li> <li>OS: Linux Mint Cinnamon</li> <li>Monorepo: yes</li> </ul>
<h3 dir="auto">Input Code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const user = { name: 'Max', password: '123', _id: 1, __v: 42 } const fields = ['__v', 'password'] const filtered = fields.reduce((a, c) =&gt; (({ [c]: _, ...rest } = a), rest), user)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">user</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'Max'</span><span class="pl-kos">,</span> <span class="pl-c1">password</span>: <span class="pl-s">'123'</span><span class="pl-kos">,</span> <span class="pl-c1">_id</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">__v</span>: <span class="pl-c1">42</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-s1">fields</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s">'__v'</span><span class="pl-kos">,</span> <span class="pl-s">'password'</span><span class="pl-kos">]</span> <span class="pl-k">const</span> <span class="pl-s1">filtered</span> <span class="pl-c1">=</span> <span class="pl-s1">fields</span><span class="pl-kos">.</span><span class="pl-en">reduce</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">c</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">c</span><span class="pl-kos">]</span>: <span class="pl-s1">_</span><span class="pl-kos">,</span> ...<span class="pl-s1">rest</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">rest</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">user</span><span class="pl-kos">)</span></pre></div> <p dir="auto">this code compiled and works as expected on <strong>node</strong>, but fails on <strong>babel</strong></p> <h3 dir="auto">Babel/Babylon Configuration (.babelrc, package.json, cli command)</h3> <p dir="auto">Using babel 6.26.0</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package.json ... &quot;devDependencies&quot;: { &quot;babel&quot;: &quot;^6.23.0&quot;, &quot;babel-cli&quot;: &quot;^6.26.0&quot;, &quot;babel-core&quot;: &quot;^6.26.0&quot;, &quot;babel-plugin-transform-object-rest-spread&quot;: &quot;^6.26.0&quot;, &quot;babel-preset-env&quot;: &quot;^1.6.1&quot; }"><pre class="notranslate"><span class="pl-s1">package</span><span class="pl-kos">.</span><span class="pl-c1">json</span> <span class="pl-kos">.</span><span class="pl-kos">.</span><span class="pl-kos">.</span> <span class="pl-s">"devDependencies"</span>: <span class="pl-kos">{</span> <span class="pl-s">"babel"</span>: <span class="pl-s">"^6.23.0"</span><span class="pl-kos">,</span> <span class="pl-s">"babel-cli"</span>: <span class="pl-s">"^6.26.0"</span><span class="pl-kos">,</span> <span class="pl-s">"babel-core"</span>: <span class="pl-s">"^6.26.0"</span><span class="pl-kos">,</span> <span class="pl-s">"babel-plugin-transform-object-rest-spread"</span>: <span class="pl-s">"^6.26.0"</span><span class="pl-kos">,</span> <span class="pl-s">"babel-preset-env"</span>: <span class="pl-s">"^1.6.1"</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Get filtered user without <code class="notranslate">__v</code> and <code class="notranslate">password</code> fields</p> <h3 dir="auto">Current Behavior</h3> <p dir="auto">Cannot compile code. Output log:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ babel --plugins transform-object-rest-spread src/index.js babel-preset-env: `DEBUG` option Using targets: {} Modules transform: commonjs Using plugins: check-es2015-constants {} transform-es2015-arrow-functions {} transform-es2015-block-scoped-functions {} transform-es2015-block-scoping {} transform-es2015-classes {} transform-es2015-computed-properties {} transform-es2015-destructuring {} transform-es2015-duplicate-keys {} transform-es2015-for-of {} transform-es2015-function-name {} transform-es2015-literals {} transform-es2015-object-super {} transform-es2015-parameters {} transform-es2015-shorthand-properties {} transform-es2015-spread {} transform-es2015-sticky-regex {} transform-es2015-template-literals {} transform-es2015-typeof-symbol {} transform-es2015-unicode-regex {} transform-regenerator {} transform-exponentiation-operator {} transform-async-to-generator {} syntax-trailing-function-commas {} TypeError: src/index.js: Property arguments[0] of CallExpression expected node to be of a type [&quot;Expression&quot;,&quot;SpreadElement&quot;] but instead got undefined at validate (node_modules\babel-cli\node_modules\babel-types\lib\definitions\index.js:109:13) at validator (node_modules\babel-cli\node_modules\babel-types\lib\definitions\index.js:57:7) at Object.validate (node_modules\babel-cli\node_modules\babel-types\lib\definitions\index.js:190:10) at validate (node_modules\babel-cli\node_modules\babel-types\lib\index.js:505:9) at Object.builder (node_modules\babel-cli\node_modules\babel-types\lib\index.js:466:7) at createObjectSpread (C:\Tools\projects\em2\backpack-test\node_modules\babel-plugin-transform-object-rest-spread\lib\index.js:70:38) at PluginPass.AssignmentExpression (C:\Tools\projects\em2\backpack-test\node_modules\babel-plugin-transform-object-rest-spread\lib\index.js:186:38) at newFn (node_modules\babel-cli\node_modules\babel-traverse\lib\visitors.js:276:21) at NodePath._call (node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:76:18) at NodePath.call (node_modules\babel-cli\node_modules\babel-traverse\lib\path\context.js:48:17)"><pre class="notranslate">$ babel --plugins transform-object-rest-spread src/index.js babel-preset-env: <span class="pl-s"><span class="pl-pds">`</span>DEBUG<span class="pl-pds">`</span></span> option Using targets: {} Modules transform: commonjs Using plugins: check-es2015-constants {} transform-es2015-arrow-functions {} transform-es2015-block-scoped-functions {} transform-es2015-block-scoping {} transform-es2015-classes {} transform-es2015-computed-properties {} transform-es2015-destructuring {} transform-es2015-duplicate-keys {} transform-es2015-for-of {} transform-es2015-function-name {} transform-es2015-literals {} transform-es2015-object-super {} transform-es2015-parameters {} transform-es2015-shorthand-properties {} transform-es2015-spread {} transform-es2015-sticky-regex {} transform-es2015-template-literals {} transform-es2015-typeof-symbol {} transform-es2015-unicode-regex {} transform-regenerator {} transform-exponentiation-operator {} transform-async-to-generator {} syntax-trailing-function-commas {} TypeError: src/index.js: Property arguments[0] of CallExpression expected node to be of a <span class="pl-c1">type</span> [<span class="pl-s"><span class="pl-pds">"</span>Expression<span class="pl-pds">"</span></span>,<span class="pl-s"><span class="pl-pds">"</span>SpreadElement<span class="pl-pds">"</span></span>] but instead got undefined at validate (node_modules<span class="pl-cce">\b</span>abel-cli<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\b</span>abel-types<span class="pl-cce">\l</span>ib<span class="pl-cce">\d</span>efinitions<span class="pl-cce">\i</span>ndex.js:109:13) at validator (node_modules<span class="pl-cce">\b</span>abel-cli<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\b</span>abel-types<span class="pl-cce">\l</span>ib<span class="pl-cce">\d</span>efinitions<span class="pl-cce">\i</span>ndex.js:57:7) at Object.validate (node_modules<span class="pl-cce">\b</span>abel-cli<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\b</span>abel-types<span class="pl-cce">\l</span>ib<span class="pl-cce">\d</span>efinitions<span class="pl-cce">\i</span>ndex.js:190:10) at validate (node_modules<span class="pl-cce">\b</span>abel-cli<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\b</span>abel-types<span class="pl-cce">\l</span>ib<span class="pl-cce">\i</span>ndex.js:505:9) at Object.builder (node_modules<span class="pl-cce">\b</span>abel-cli<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\b</span>abel-types<span class="pl-cce">\l</span>ib<span class="pl-cce">\i</span>ndex.js:466:7) at createObjectSpread (C:<span class="pl-cce">\T</span>ools<span class="pl-cce">\p</span>rojects<span class="pl-cce">\e</span>m2<span class="pl-cce">\b</span>ackpack-test<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\b</span>abel-plugin-transform-object-rest-spread<span class="pl-cce">\l</span>ib<span class="pl-cce">\i</span>ndex.js:70:38) at PluginPass.AssignmentExpression (C:<span class="pl-cce">\T</span>ools<span class="pl-cce">\p</span>rojects<span class="pl-cce">\e</span>m2<span class="pl-cce">\b</span>ackpack-test<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\b</span>abel-plugin-transform-object-rest-spread<span class="pl-cce">\l</span>ib<span class="pl-cce">\i</span>ndex.js:186:38) at newFn (node_modules<span class="pl-cce">\b</span>abel-cli<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\b</span>abel-traverse<span class="pl-cce">\l</span>ib<span class="pl-cce">\v</span>isitors.js:276:21) at NodePath._call (node_modules<span class="pl-cce">\b</span>abel-cli<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\b</span>abel-traverse<span class="pl-cce">\l</span>ib<span class="pl-cce">\p</span>ath<span class="pl-cce">\c</span>ontext.js:76:18) at NodePath.call (node_modules<span class="pl-cce">\b</span>abel-cli<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\b</span>abel-traverse<span class="pl-cce">\l</span>ib<span class="pl-cce">\p</span>ath<span class="pl-cce">\c</span>ontext.js:48:17)</pre></div> <h3 dir="auto">Possible Solution</h3> <p dir="auto">rewrite filtered like this</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const filtered = fields.reduce((a, c) =&gt; { const { [c]: _, ...rest } = a return rest }, user)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">filtered</span> <span class="pl-c1">=</span> <span class="pl-s1">fields</span><span class="pl-kos">.</span><span class="pl-en">reduce</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">c</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">c</span><span class="pl-kos">]</span>: <span class="pl-s1">_</span><span class="pl-kos">,</span> ...<span class="pl-s1">rest</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span> <span class="pl-k">return</span> <span class="pl-s1">rest</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">user</span><span class="pl-kos">)</span></pre></div> <h3 dir="auto">Context</h3> <p dir="auto">I was trying to do code in one line like this</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(a, c) =&gt; (({ [c]: _, ...rest } = a), rest)"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">c</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">c</span><span class="pl-kos">]</span>: <span class="pl-s1">_</span><span class="pl-kos">,</span> ...<span class="pl-s1">rest</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">rest</span><span class="pl-kos">)</span></pre></div> <p dir="auto">instead of this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(a, c) =&gt; { const { [c]: _, ...rest } = a return rest }"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">c</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">c</span><span class="pl-kos">]</span>: <span class="pl-s1">_</span><span class="pl-kos">,</span> ...<span class="pl-s1">rest</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span> <span class="pl-k">return</span> <span class="pl-s1">rest</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Your Environment</h3> <table role="table"> <thead> <tr> <th>software</th> <th>version(s)</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td>6.26.0 (babel-core 6.26.0)</td> </tr> <tr> <td>node</td> <td>v9.11.1</td> </tr> <tr> <td>npm</td> <td>5.6.0</td> </tr> <tr> <td>Operating System</td> <td>Win10</td> </tr> </tbody> </table>
0
<p dir="auto">If you hover over an <code class="notranslate">&lt;a&gt;</code> with a tooltip within a <code class="notranslate">.btn-group</code> the tooltip will inserted between the <code class="notranslate">&lt;a&gt;</code> and its descendants. Because this css rule</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".btn-group &gt; .btn + .btn { margin-left: -1px; }"><pre class="notranslate"><code class="notranslate">.btn-group &gt; .btn + .btn { margin-left: -1px; } </code></pre></div> <p dir="auto">doesn't apply any longer to the following <code class="notranslate">&lt;a&gt;</code> you'll see an additional grey border.</p> <p dir="auto">It's kinda hard to explain, so just go there and watch for the second button when hovering it:<br> <a href="http://jsfiddle.net/4MBp8/" rel="nofollow">http://jsfiddle.net/4MBp8/</a></p>
<p dir="auto">This change breaks the possibilities of having tooltips and popovers on table cells.</p> <p dir="auto"><a class="commit-link" href="https://github.com/twbs/bootstrap/commit/88b1e44dd61afd8f08761346555521bd216ed73a#L3L1086"><tt>88b1e44</tt>#L3L1086</a></p> <p dir="auto">Please let me know the reasoning behind the change of strategy so that I get an understanding of If I may have to change my code.</p> <p dir="auto">Thanks</p>
1
<h3 dir="auto">Vue.js version</h3> <p dir="auto">v2.0.0-alpha.8</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto"><a href="https://jsbin.com/dajovivoye/1/edit?html,js,output" rel="nofollow">https://jsbin.com/dajovivoye/1/edit?html,js,output</a></p> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li>new Vue</li> <li>assign data</li> </ol> <h3 dir="auto">What is Expected?</h3> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">A tag with <code class="notranslate">v-if</code> will also has style attribute</p>
<h3 dir="auto">Version</h3> <p dir="auto">2.6.8</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://github.com/Cameron637/vue-runtime-error-reproduction">https://github.com/Cameron637/vue-runtime-error-reproduction</a></p> <h3 dir="auto">Environment info</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Environment Info: System: OS: macOS 10.14.3 CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz Binaries: Node: 10.15.2 - ~/.nvm/versions/node/v10.15.2/bin/node Yarn: Not Found npm: 6.9.0 - ~/.nvm/versions/node/v10.15.2/bin/npm Browsers: Chrome: 72.0.3626.121 Firefox: 59.0.2 Safari: 12.0.3 npmPackages: @vue/babel-helper-vue-jsx-merge-props: 1.0.0-beta.2 @vue/babel-plugin-transform-vue-jsx: 1.0.0-beta.2 @vue/babel-preset-app: 3.5.1 @vue/babel-preset-jsx: 1.0.0-beta.2 @vue/babel-sugar-functional-vue: 1.0.0-beta.2 @vue/babel-sugar-inject-h: 1.0.0-beta.2 @vue/babel-sugar-v-model: 1.0.0-beta.2 @vue/babel-sugar-v-on: 1.0.0-beta.2 @vue/cli-overlay: 3.5.1 @vue/cli-plugin-babel: ^3.5.0 =&gt; 3.5.1 @vue/cli-plugin-eslint: ^3.5.0 =&gt; 3.5.1 @vue/cli-plugin-unit-mocha: ^3.5.0 =&gt; 3.5.1 @vue/cli-service: ^3.5.0 =&gt; 3.5.1 @vue/cli-shared-utils: 3.5.1 @vue/component-compiler-utils: 2.6.0 @vue/eslint-config-airbnb: ^4.0.0 =&gt; 4.0.0 @vue/preload-webpack-plugin: 1.1.0 @vue/test-utils: 1.0.0-beta.29 =&gt; 1.0.0-beta.29 @vue/web-component-wrapper: 1.2.0 eslint-plugin-vue: ^5.0.0 =&gt; 5.2.2 vue: ^2.6.6 =&gt; 2.6.9 vue-eslint-parser: 2.0.3 vue-hot-reload-api: 2.3.3 vue-loader: 15.7.0 vue-style-loader: 4.1.2 vue-template-compiler: ^2.5.21 =&gt; 2.6.9 vue-template-es2015-compiler: 1.9.1 npmGlobalPackages: @vue/cli: 3.5.0 "><pre class="notranslate"><code class="notranslate"> Environment Info: System: OS: macOS 10.14.3 CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz Binaries: Node: 10.15.2 - ~/.nvm/versions/node/v10.15.2/bin/node Yarn: Not Found npm: 6.9.0 - ~/.nvm/versions/node/v10.15.2/bin/npm Browsers: Chrome: 72.0.3626.121 Firefox: 59.0.2 Safari: 12.0.3 npmPackages: @vue/babel-helper-vue-jsx-merge-props: 1.0.0-beta.2 @vue/babel-plugin-transform-vue-jsx: 1.0.0-beta.2 @vue/babel-preset-app: 3.5.1 @vue/babel-preset-jsx: 1.0.0-beta.2 @vue/babel-sugar-functional-vue: 1.0.0-beta.2 @vue/babel-sugar-inject-h: 1.0.0-beta.2 @vue/babel-sugar-v-model: 1.0.0-beta.2 @vue/babel-sugar-v-on: 1.0.0-beta.2 @vue/cli-overlay: 3.5.1 @vue/cli-plugin-babel: ^3.5.0 =&gt; 3.5.1 @vue/cli-plugin-eslint: ^3.5.0 =&gt; 3.5.1 @vue/cli-plugin-unit-mocha: ^3.5.0 =&gt; 3.5.1 @vue/cli-service: ^3.5.0 =&gt; 3.5.1 @vue/cli-shared-utils: 3.5.1 @vue/component-compiler-utils: 2.6.0 @vue/eslint-config-airbnb: ^4.0.0 =&gt; 4.0.0 @vue/preload-webpack-plugin: 1.1.0 @vue/test-utils: 1.0.0-beta.29 =&gt; 1.0.0-beta.29 @vue/web-component-wrapper: 1.2.0 eslint-plugin-vue: ^5.0.0 =&gt; 5.2.2 vue: ^2.6.6 =&gt; 2.6.9 vue-eslint-parser: 2.0.3 vue-hot-reload-api: 2.3.3 vue-loader: 15.7.0 vue-style-loader: 4.1.2 vue-template-compiler: ^2.5.21 =&gt; 2.6.9 vue-template-es2015-compiler: 1.9.1 npmGlobalPackages: @vue/cli: 3.5.0 </code></pre></div> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Run <code class="notranslate">npm install</code> and then run <code class="notranslate">npm run test:unit</code></p> <h3 dir="auto">What is expected?</h3> <p dir="auto">This is a freshly created vue project with the vue-cli. Running the example unit test should pass successfully.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">The unit test fails with a reference error from vue.runtime.esm.js.</p> <hr> <p dir="auto">This is happening because vue 2.6.9 (which is installed by npm by default even though it is ahead of the latest stable release) references the global performance attribute that should be available in the browser on line 4251 of vue.runtime.esm.js, but it is not available in the globals provided by jsdom-global. I've made a pull request to jsdom-global (here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="421646244" data-permission-text="Title is private" data-url="https://github.com/rstacruz/jsdom-global/issues/49" data-hovercard-type="pull_request" data-hovercard-url="/rstacruz/jsdom-global/pull/49/hovercard" href="https://github.com/rstacruz/jsdom-global/pull/49">rstacruz/jsdom-global#49</a>) to fix its unavailability, but that repo doesn't seem to be actively maintained and it's doubtful that the fix will be merged anytime soon. It would probably be wise to use a different package or a fork of this one. If it helps, you're welcome to use my fork which already has the fix: <a href="https://github.com/Cameron637/jsdom-global">https://github.com/Cameron637/jsdom-global</a></p>
0
<h3 dir="auto">Is there an existing issue for this?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li> </ul> <h3 dir="auto">This issue exists in the latest npm version</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">In a package <code class="notranslate">foo</code> with a bin, run <code class="notranslate">npx foo</code>, and you'll see <code class="notranslate">sh: foo: command not found</code>.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">In a package <code class="notranslate">foo</code> with a bin, run <code class="notranslate">npx foo</code>, and the bin is invoked.</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>Clone any repo, presumably, but in this case, <a href="https://github.com/ljharb/publishers">https://github.com/ljharb/publishers</a></li> <li>Run <code class="notranslate">npx [email protected] exec publishers</code>, see that it invokes the binary properly.</li> <li>Run <code class="notranslate">npx [email protected] exec publishers</code>, see that it errors.</li> </ol> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>npm: &lt;= 8.7, &gt;= 8.8</li> <li>Node.js: 19</li> </ul>
<h1 dir="auto">What / Why</h1> <p dir="auto">I am behind an authenticated corporate proxy.</p> <p dir="auto">To set the proxy i am using</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm config set proxy http://username:[email protected] npm config set https-proxy http://username:[email protected]"><pre class="notranslate"><code class="notranslate">npm config set proxy http://username:[email protected] npm config set https-proxy http://username:[email protected] </code></pre></div> <p dir="auto">I had to reset the passord but forgot to reset it for npm.</p> <p dir="auto">When running:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install"><pre class="notranslate"><code class="notranslate">npm install </code></pre></div> <p dir="auto">npm responded with the error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" error cb() never called!"><pre class="notranslate"><code class="notranslate"> error cb() never called! </code></pre></div> <p dir="auto">Changing the password with <code class="notranslate">npm config set proxy</code> fixed the problem.</p> <h2 dir="auto">Where</h2> <ul dir="auto"> <li>Windows 10 VM</li> <li>[email protected]</li> <li>[email protected]</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">npm install throws error <code class="notranslate">cb() never called!</code></p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">I would like to see a 407 Proxy Authentication Error printed to console and not just to the log.</p> <h2 dir="auto">Log</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 info it worked if it ends with ok 1 verbose cli [ 'C:\\MYFOLDER\\nodejs\\node.exe', 1 verbose cli 'C:\\MYFOLDER\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'update' ] 2 info using [email protected] 3 info using [email protected] 4 verbose npm-session 66cb6a3319a6069e 5 verbose update computing outdated modules to update 6 http fetch GET 407 https://registry.npmjs.org/@thekla%2fconfig 365ms 7 http fetch GET 407 https://registry.npmjs.org/@thekla%2fcore 364ms 8 http fetch GET 407 https://registry.npmjs.org/del-cli 392ms 9 http fetch GET 407 https://registry.npmjs.org/@thekla%2fweb-and-mobile-abilities 425ms 10 http fetch GET 407 https://registry.npmjs.org/cucumber-html-reporter 446ms 11 http fetch GET 407 https://registry.npmjs.org/npm 667ms 12 http fetch GET 407 https://registry.npmjs.org/thekla 1061ms 13 http fetch GET 407 https://registry.npmjs.org/eslint-plugin-standard 1149ms 14 http fetch GET 407 https://registry.npmjs.org/eslint-plugin-node 1357ms 15 http fetch GET 407 https://registry.npmjs.org/eslint-config-standard 1358ms 16 http fetch GET 407 https://registry.npmjs.org/eslint-plugin-import 1472ms 17 http fetch GET 407 https://registry.npmjs.org/junit-report-builder 1637ms 18 http fetch GET 407 https://registry.npmjs.org/eslint-plugin-promise 1854ms 19 http fetch GET 407 https://registry.npmjs.org/typescript 1884ms 20 http fetch GET 407 https://registry.npmjs.org/@typescript-eslint%2fparser 2157ms 21 http fetch GET 407 https://registry.npmjs.org/@typescript-eslint%2feslint-plugin 2277ms 22 http fetch GET 407 https://registry.npmjs.org/log4js 2283ms 23 http fetch GET 407 https://registry.npmjs.org/eslint 2286ms 24 timing npm Completed in 4030ms 25 error cb() never called! 26 error This is an error with npm itself. Please report this error at: 27 error &lt;https://npm.community&gt;"><pre class="notranslate"><code class="notranslate">0 info it worked if it ends with ok 1 verbose cli [ 'C:\\MYFOLDER\\nodejs\\node.exe', 1 verbose cli 'C:\\MYFOLDER\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'update' ] 2 info using [email protected] 3 info using [email protected] 4 verbose npm-session 66cb6a3319a6069e 5 verbose update computing outdated modules to update 6 http fetch GET 407 https://registry.npmjs.org/@thekla%2fconfig 365ms 7 http fetch GET 407 https://registry.npmjs.org/@thekla%2fcore 364ms 8 http fetch GET 407 https://registry.npmjs.org/del-cli 392ms 9 http fetch GET 407 https://registry.npmjs.org/@thekla%2fweb-and-mobile-abilities 425ms 10 http fetch GET 407 https://registry.npmjs.org/cucumber-html-reporter 446ms 11 http fetch GET 407 https://registry.npmjs.org/npm 667ms 12 http fetch GET 407 https://registry.npmjs.org/thekla 1061ms 13 http fetch GET 407 https://registry.npmjs.org/eslint-plugin-standard 1149ms 14 http fetch GET 407 https://registry.npmjs.org/eslint-plugin-node 1357ms 15 http fetch GET 407 https://registry.npmjs.org/eslint-config-standard 1358ms 16 http fetch GET 407 https://registry.npmjs.org/eslint-plugin-import 1472ms 17 http fetch GET 407 https://registry.npmjs.org/junit-report-builder 1637ms 18 http fetch GET 407 https://registry.npmjs.org/eslint-plugin-promise 1854ms 19 http fetch GET 407 https://registry.npmjs.org/typescript 1884ms 20 http fetch GET 407 https://registry.npmjs.org/@typescript-eslint%2fparser 2157ms 21 http fetch GET 407 https://registry.npmjs.org/@typescript-eslint%2feslint-plugin 2277ms 22 http fetch GET 407 https://registry.npmjs.org/log4js 2283ms 23 http fetch GET 407 https://registry.npmjs.org/eslint 2286ms 24 timing npm Completed in 4030ms 25 error cb() never called! 26 error This is an error with npm itself. Please report this error at: 27 error &lt;https://npm.community&gt; </code></pre></div>
0
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">When I try to import <code class="notranslate">react-redux</code> from my client code the server throws this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ node dist/ssr-server.js internal/modules/cjs/loader.js:1153 throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath); ^ Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/dev/testssr/node_modules/@babel/runtime/helpers/esm/extends.js require() of ES modules is not supported. require() of /home/dev/testssr/node_modules/@babel/runtime/helpers/esm/extends.js from /home/dev/testssr/dist/ssr-server.js is an ES module file as it is a .js file whose nearest parent package.json contains &quot;type&quot;: &quot;module&quot; which defines all .js files in that package scope as ES modules. Instead rename extends.js to end in .cjs, change the requiring code to use import(), or remove &quot;type&quot;: &quot;module&quot; from /home/dev/testssr/node_modules/@babel/runtime/helpers/esm/package.json. at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:13) at Module.load (internal/modules/cjs/loader.js:985:32) at Function.Module._load (internal/modules/cjs/loader.js:878:14) at Module.require (internal/modules/cjs/loader.js:1025:19) at require (internal/modules/cjs/helpers.js:72:18) at eval (webpack:///external_%22@babel/runtime/helpers/esm/extends%22?:1:18) at Object.@babel/runtime/helpers/esm/extends (/home/dev/testssr/dist/ssr-server.js:456:1) at __webpack_require__ (/home/dev/testssr/dist/ssr-server.js:21:30) at eval (webpack:///./client/node_modules/react-redux/es/components/connectAdvanced.js?:3:92) at Module../client/node_modules/react-redux/es/components/connectAdvanced.js (/home/dev/testssr/dist/ssr-server.js:134:1) { code: 'ERR_REQUIRE_ESM' }"><pre class="notranslate"><code class="notranslate">$ node dist/ssr-server.js internal/modules/cjs/loader.js:1153 throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath); ^ Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/dev/testssr/node_modules/@babel/runtime/helpers/esm/extends.js require() of ES modules is not supported. require() of /home/dev/testssr/node_modules/@babel/runtime/helpers/esm/extends.js from /home/dev/testssr/dist/ssr-server.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules. Instead rename extends.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/dev/testssr/node_modules/@babel/runtime/helpers/esm/package.json. at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:13) at Module.load (internal/modules/cjs/loader.js:985:32) at Function.Module._load (internal/modules/cjs/loader.js:878:14) at Module.require (internal/modules/cjs/loader.js:1025:19) at require (internal/modules/cjs/helpers.js:72:18) at eval (webpack:///external_%22@babel/runtime/helpers/esm/extends%22?:1:18) at Object.@babel/runtime/helpers/esm/extends (/home/dev/testssr/dist/ssr-server.js:456:1) at __webpack_require__ (/home/dev/testssr/dist/ssr-server.js:21:30) at eval (webpack:///./client/node_modules/react-redux/es/components/connectAdvanced.js?:3:92) at Module../client/node_modules/react-redux/es/components/connectAdvanced.js (/home/dev/testssr/dist/ssr-server.js:134:1) { code: 'ERR_REQUIRE_ESM' } </code></pre></div> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto">I've uploaded a simple reproduction of the error: <a href="https://github.com/l09a/webpack-babel-bug">https://github.com/l09a/webpack-babel-bug</a></p> <p dir="auto">To reproduce:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/l09a/webpack-babel-bug $ cd webpack-babel-bug/client $ npm i $ cd .. $ npm i $ npm start $ node dist/ssr-server.js"><pre class="notranslate"><code class="notranslate">$ git clone https://github.com/l09a/webpack-babel-bug $ cd webpack-babel-bug/client $ npm i $ cd .. $ npm i $ npm start $ node dist/ssr-server.js </code></pre></div> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">The code runs without error.</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 5.1.0<br> Node.js version: v12.18.4<br> Operating System: Ubuntu 20.04.1 LTS<br> Additional tools:</p>
<h1 dir="auto">Bug report</h1> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">When saving a file it appears Webpack is recompiling twice.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p> <p dir="auto">Create a barebones project <a href="https://github.com/webpack/webpack/files/8126010/test.zip">test.zip</a>. Run Webpack in watch mode. Save a file.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1622446/155362119-cb227dfc-7aab-44b8-8374-84e9268c21bb.gif"><img src="https://user-images.githubusercontent.com/1622446/155362119-cb227dfc-7aab-44b8-8374-84e9268c21bb.gif" alt="2022-02-23 10 20 24" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">It should only recompile once.</p> <p dir="auto"><strong>Other relevant information:</strong><br> webpack version: 5.69.1<br> Node.js version: 14.15.4<br> Operating System: Mac OS 11.6.4<br> Additional tools: yarn 1.22.5</p>
0
<pre class="notranslate">Reported at tip with 6g changeset: 18385:db021a4c7b4a This program: ====== package main import ( "html/template" "os" ) func main() { template.Must(template.New("test").Parse(text)).Execute(os.Stdout, nil) } const text = `&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;body&gt; &lt;script id="test" type="html/template"&gt; &lt;a href="<a href="https://twitter.com/share&quot;" rel="nofollow">https://twitter.com/share"</a>;&gt;&lt;/a&gt; &lt;a href="<a href="https://www.facebook.com/sharer/sharer.php&quot;" rel="nofollow">https://www.facebook.com/sharer/sharer.php"</a>;&gt;&lt;/a&gt; &lt;a href="<a href="https://plus.google.com/share&quot;" rel="nofollow">https://plus.google.com/share"</a>;&gt;&lt;/a&gt; &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; ` ====== Produces this output: ====== &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;body&gt; &lt;script id="test" type="html/template"&gt; &lt;a href="<a href="https://twitter.com/share&quot;" rel="nofollow">https://twitter.com/share"</a>;&gt;&lt;/a&gt; &lt;a href="<a href="https://www.facebook.com/sharer/sharer.php&quot;" rel="nofollow">https://www.facebook.com/sharer/sharer.php"</a>;&gt;&lt;/a&gt; &lt;a href="https: &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; ====== Notice that the third URL is truncated. Deleting either of the other two from the input restores the final one.</pre>
<p dir="auto">by <strong>ryguillian</strong>:</p> <pre class="notranslate">I'm running Go 1.2. My issues are about io.MultiReader: I went to go use MultiReader and its behavior confused me. MultiReader's documentation sez: “MultiReader returns a Reader that's the logical concatenation of the provided input readers. They're read sequentially. Once all inputs are drained, Read will return EOF.” This documentation is pretty bad. It only says what happens once “all inputs are drained”—whatever the hell that means. I wish this were just a bug report about documentation, but I'm sad to say I think MultiReader's behavior is pretty dumb. Like, uh, is MultiReader.Read supposed to stop after the first Reader returns EOF? Because that's what it does. In other words, if I run `cat file1 file2 file3` I get the concatenation of file1, file2, and file3. Even if file2 is empty! I only use this example because Go is replete with analogies to Unix commandlineisms (io.MultiWriter mentions 'tee(1)' explicitly). And in case differs drastically from the expected behavior. Although in a talk I saw online Rob Pike said something about breaking analogies, so I guess it's OK. Right? Go is obviously very opinionated software, and that's good. But if you want the user to use io.ReadAtLeast to get the expected behavior then document it. Although I'd argue that using io.ReadAtLeast to invoke a continuation (think about it) is a little too subtle for me. I'd argue for changing the behavior of this, though. It's weird because you're providing an abstraction over Readers and then still preserving reader boundaries. I guess this all has to work with network code where things can get unpredictable. If that's what led to this wacky design, then maybe offer a non-network-oriented MultiReader. This seems more like a 'ReaderPool' or something. It just seems hard to imagine a case where you'd have intermittently available resources somewhere and want to still read them sequentially. I suppose I could contrive an example, but this can't be the #1 use case. I can imagine a lot more situations where you'd want to do something like a queue and use MultiReader to read from the queue if it's not empty and then read from an underlying Reader otherwise. "And then" is implicit when you use a word like "logical concatenation". So yeah, I'd call for the redesign of io.MultiReader.readLessThanSliceLengthOrIfEOFReturnNilCallAgainIfYouWantMore. Thanks, Ryan P.S. The only code in the Go 'pkg' directory that uses MultiReader is 'io/multireader_test.go'.</pre>
0
<p dir="auto">Dear all, I am fine-tuning T5 for Q&amp;A task using the MedQuAD (<a href="https://github.com/abachaa/MedQuAD">GitHub - abachaa/MedQuAD: Medical Question Answering Dataset of 47,457 QA pairs created from 12 NIH websites</a>) dataset. In the dataset, there are many long answers with thousands of words. I have used pytorch_lightning to train the T5-large model. I have two questions.</p> <p dir="auto">For example, I set both the max_length, max_input_length, max_output_length to 128.</p> <p dir="auto">How to deal with those long answers? I just left them as is and the T5Tokenizer can automatically handle. I would assume the tokenizer just truncates an answer at the position of 128th word (or 127th). Is it possible that I manually split an answer into different parts, each part has 128 words; and then all these sub-answers serve as a separate answer to the same question?</p> <p dir="auto">Another question is that I get incomplete (truncated) answers when using the fine-tuned model in inference, even though the predicted answer is shorter than 128 words. I found a message posted 2 years ago saying that one should add at the end of texts when fine-tuning T5. I followed that but then got a warning message that duplicated were found. I am assuming that this is because the tokenizer truncates an answer text, thus is missing in the truncated answer, such that the end token is not produced in predicted answer. However, I am not sure. Can anybody point out how to address this issue?</p> <p dir="auto">Any suggestions are highly appreciated.</p> <p dir="auto">`<br> import pytorch_lightning as pl<br> from torch.utils.data import DataLoader<br> import torch<br> import numpy as np<br> import time<br> from pathlib import Path</p> <p dir="auto">from transformers import (<br> Adafactor,<br> T5ForConditionalGeneration,<br> T5Tokenizer,<br> get_linear_schedule_with_warmup<br> )<br> from torch.utils.data import RandomSampler<br> from question_answering.utils import *</p> <p dir="auto">class T5FineTuner(pl.LightningModule):<br> def <strong>init</strong>(self, hyparams):<br> super(T5FineTuner, self).<strong>init</strong>()<br> self.hyparams = hyparams<br> self.model = T5ForConditionalGeneration.from_pretrained(hyparams.model_name_or_path)<br> self.tokenizer = T5Tokenizer.from_pretrained(hyparams.tokenizer_name_or_path)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if self.hyparams.freeze_embeds: self.freeze_embeds() if self.hyparams.freeze_encoder: self.freeze_params(self.model.get_encoder()) # assert_all_frozen() self.step_count = 0 self.output_dir = Path(self.hyparams.output_dir) n_observations_per_split = { 'train': self.hyparams.n_train, 'validation': self.hyparams.n_val, 'test': self.hyparams.n_test } self.n_obs = {k: v if v &gt;= 0 else None for k, v in n_observations_per_split.items()} self.em_score_list = [] self.subset_score_list = [] data_folder = r'C:\Datasets\MedQuAD-master' self.train_data, self.val_data, self.test_data = load_medqa_data(data_folder) def freeze_params(self, model): for param in model.parameters(): param.requires_grad = False def freeze_embeds(self): try: self.freeze_params(self.model.model.shared) for d in [self.model.model.encoder, self.model.model.decoder]: self.freeze_params(d.embed_positions) self.freeze_params(d.embed_tokens) except AttributeError: self.freeze_params(self.model.shared) for d in [self.model.encoder, self.model.decoder]: self.freeze_params(d.embed_tokens) def lmap(self, f, x): return list(map(f, x)) def is_logger(self): return self.trainer.proc_rank &lt;= 0 def forward(self, input_ids, attention_mask=None, decoder_input_ids=None, decoder_attention_mask=None, labels=None): return self.model( input_ids, attention_mask=attention_mask, decoder_input_ids=decoder_input_ids, decoder_attention_mask=decoder_attention_mask, labels=labels ) def _step(self, batch): labels = batch['target_ids'] labels[labels[:, :] == self.tokenizer.pad_token_id] = -100 outputs = self( input_ids = batch['source_ids'], attention_mask=batch['source_mask'], labels=labels, decoder_attention_mask=batch['target_mask'] ) loss = outputs[0] return loss def ids_to_clean_text(self, generated_ids): gen_text = self.tokenizer.batch_decode(generated_ids, skip_special_tokens=True, clean_up_tokenization_spaces=True) return self.lmap(str.strip, gen_text) def _generative_step(self, batch): t0 = time.time() generated_ids = self.model.generate( batch[&quot;source_ids&quot;], attention_mask=batch[&quot;source_mask&quot;], use_cache=True, decoder_attention_mask=batch['target_mask'], max_length=128, num_beams=2, early_stopping=True ) preds = self.ids_to_clean_text(generated_ids) targets = self.ids_to_clean_text(batch[&quot;target_ids&quot;]) gen_time = (time.time() - t0) / batch[&quot;source_ids&quot;].shape[0] loss = self._step(batch) base_metrics = {'val_loss': loss} summ_len = np.mean(self.lmap(len, generated_ids)) base_metrics.update(gen_time=gen_time, gen_len=summ_len, preds=preds, target=targets) em_score, subset_match_score = calculate_scores(preds, targets) self.em_score_list.append(em_score) self.subset_score_list.append(subset_match_score) em_score = torch.tensor(em_score, dtype=torch.float32) subset_match_score = torch.tensor(subset_match_score, dtype=torch.float32) base_metrics.update(em_score=em_score, subset_match_score=subset_match_score) # rouge_results = self.rouge_metric.compute() # rouge_dict = self.parse_score(rouge_results) return base_metrics def training_step(self, batch, batch_idx): loss = self._step(batch) tensorboard_logs = {'train_loss': loss} return {'loss': loss, 'log': tensorboard_logs} def training_epoch_end(self, outputs): avg_train_loss = torch.stack([x['loss'] for x in outputs]).mean() tensorboard_logs = {'avg_train_loss': avg_train_loss} # return {'avg_train_loss': avg_train_loss, 'log': tensorboard_logs, 'progress_bar': tensorboard_logs} def validation_step(self, batch, batch_idx): return self._generative_step(batch) def validation_epoch_end(self, outputs): avg_loss = torch.stack([x['val_loss'] for x in outputs]).mean() tensorboard_logs = {'val_loss': avg_loss} if len(self.em_score_list) &lt;= 2: average_em_score = sum(self.em_score_list) / len(self.em_score_list) average_subset_match_score = sum(self.subset_score_list) / len(self.subset_score_list) else: latest_em_score = self.em_score_list[:-2] latest_subset_score = self.subset_score_list[:-2] average_em_score = sum(latest_em_score) / len(latest_em_score) average_subset_match_score = sum(latest_subset_score) / len(latest_subset_score) average_em_score = torch.tensor(average_em_score, dtype=torch.float32) average_subset_match_score = torch.tensor(average_subset_match_score, dtype=torch.float32) tensorboard_logs.update(em_score=average_em_score, subset_match_score=average_subset_match_score) self.target_gen = [] self.prediction_gen = [] return { 'avg_val_loss': avg_loss, 'em_score': average_em_score, 'subset_match_socre': average_subset_match_score, 'log': tensorboard_logs, 'progress_bar': tensorboard_logs } def configure_optimizers(self): model = self.model no_decay = [&quot;bias&quot;, &quot;LayerNorm.weight&quot;] optimizer_grouped_parameters = [ { &quot;params&quot;: [p for n, p in model.named_parameters() if not any(nd in n for nd in no_decay)], &quot;weight_decay&quot;: self.hyparams.weight_decay, }, { &quot;params&quot;: [p for n, p in model.named_parameters() if any(nd in n for nd in no_decay)], &quot;weight_decay&quot;: 0.0, }, ] optimizer = Adafactor(optimizer_grouped_parameters, lr=self.hyparams.learning_rate, scale_parameter=False, relative_step=False) self.opt = optimizer return [optimizer] def optimizer_step(self, epoch, batch_idx, optimizer, optimizer_idx, optimizer_closure=None, on_tpu=False, using_native_amp=False, using_lbfgs=False): optimizer.step(closure=optimizer_closure) optimizer.zero_grad() self.lr_scheduler.step() def get_tqdm_dict(self): tqdm_dict = {&quot;loss&quot;: &quot;{:.3f}&quot;.format(self.trainer.avg_loss), &quot;lr&quot;: self.lr_scheduler.get_last_lr()[-1]} return tqdm_dict def train_dataloader(self): n_samples = self.n_obs['train'] train_dataset = get_dataset(tokenizer=self.tokenizer, data=self.train_data, num_samples=n_samples, args=self.hyparams) sampler = RandomSampler(train_dataset) dataloader = DataLoader(train_dataset, sampler=sampler, batch_size=self.hyparams.train_batch_size, drop_last=True, num_workers=4) # t_total = ( # (len(dataloader.dataset) // (self.hyparams.train_batch_size * max(1, self.hyparams.n_gpu))) # // self.hyparams.gradient_accumulation_steps # * float(self.hyparams.num_train_epochs) # ) t_total = 100000 scheduler = get_linear_schedule_with_warmup( self.opt, num_warmup_steps=self.hyparams.warmup_steps, num_training_steps=t_total ) self.lr_scheduler = scheduler return dataloader def val_dataloader(self): n_samples = self.n_obs['validation'] validation_dataset = get_dataset(tokenizer=self.tokenizer, data=self.val_data, num_samples=n_samples, args=self.hyparams) sampler = RandomSampler(validation_dataset) return DataLoader(validation_dataset, shuffle=False, batch_size=self.hyparams.eval_batch_size, sampler=sampler, num_workers=4) def test_dataloader(self): n_samples = self.n_obs['test'] test_dataset = get_dataset(tokenizer=self.tokenizer, data=self.test_data, num_samples=n_samples, args=self.hyparams) return DataLoader(test_dataset, batch_size=self.hyparams.eval_batch_size, num_workers=4) def on_save_checkpoint(self, checkpoint): save_path = self.output_dir.joinpath(&quot;best_tfmr&quot;) self.model.config.save_step = self.step_count self.model.save_pretrained(save_path) self.tokenizer.save_pretrained(save_path)"><pre class="notranslate"><code class="notranslate"> if self.hyparams.freeze_embeds: self.freeze_embeds() if self.hyparams.freeze_encoder: self.freeze_params(self.model.get_encoder()) # assert_all_frozen() self.step_count = 0 self.output_dir = Path(self.hyparams.output_dir) n_observations_per_split = { 'train': self.hyparams.n_train, 'validation': self.hyparams.n_val, 'test': self.hyparams.n_test } self.n_obs = {k: v if v &gt;= 0 else None for k, v in n_observations_per_split.items()} self.em_score_list = [] self.subset_score_list = [] data_folder = r'C:\Datasets\MedQuAD-master' self.train_data, self.val_data, self.test_data = load_medqa_data(data_folder) def freeze_params(self, model): for param in model.parameters(): param.requires_grad = False def freeze_embeds(self): try: self.freeze_params(self.model.model.shared) for d in [self.model.model.encoder, self.model.model.decoder]: self.freeze_params(d.embed_positions) self.freeze_params(d.embed_tokens) except AttributeError: self.freeze_params(self.model.shared) for d in [self.model.encoder, self.model.decoder]: self.freeze_params(d.embed_tokens) def lmap(self, f, x): return list(map(f, x)) def is_logger(self): return self.trainer.proc_rank &lt;= 0 def forward(self, input_ids, attention_mask=None, decoder_input_ids=None, decoder_attention_mask=None, labels=None): return self.model( input_ids, attention_mask=attention_mask, decoder_input_ids=decoder_input_ids, decoder_attention_mask=decoder_attention_mask, labels=labels ) def _step(self, batch): labels = batch['target_ids'] labels[labels[:, :] == self.tokenizer.pad_token_id] = -100 outputs = self( input_ids = batch['source_ids'], attention_mask=batch['source_mask'], labels=labels, decoder_attention_mask=batch['target_mask'] ) loss = outputs[0] return loss def ids_to_clean_text(self, generated_ids): gen_text = self.tokenizer.batch_decode(generated_ids, skip_special_tokens=True, clean_up_tokenization_spaces=True) return self.lmap(str.strip, gen_text) def _generative_step(self, batch): t0 = time.time() generated_ids = self.model.generate( batch["source_ids"], attention_mask=batch["source_mask"], use_cache=True, decoder_attention_mask=batch['target_mask'], max_length=128, num_beams=2, early_stopping=True ) preds = self.ids_to_clean_text(generated_ids) targets = self.ids_to_clean_text(batch["target_ids"]) gen_time = (time.time() - t0) / batch["source_ids"].shape[0] loss = self._step(batch) base_metrics = {'val_loss': loss} summ_len = np.mean(self.lmap(len, generated_ids)) base_metrics.update(gen_time=gen_time, gen_len=summ_len, preds=preds, target=targets) em_score, subset_match_score = calculate_scores(preds, targets) self.em_score_list.append(em_score) self.subset_score_list.append(subset_match_score) em_score = torch.tensor(em_score, dtype=torch.float32) subset_match_score = torch.tensor(subset_match_score, dtype=torch.float32) base_metrics.update(em_score=em_score, subset_match_score=subset_match_score) # rouge_results = self.rouge_metric.compute() # rouge_dict = self.parse_score(rouge_results) return base_metrics def training_step(self, batch, batch_idx): loss = self._step(batch) tensorboard_logs = {'train_loss': loss} return {'loss': loss, 'log': tensorboard_logs} def training_epoch_end(self, outputs): avg_train_loss = torch.stack([x['loss'] for x in outputs]).mean() tensorboard_logs = {'avg_train_loss': avg_train_loss} # return {'avg_train_loss': avg_train_loss, 'log': tensorboard_logs, 'progress_bar': tensorboard_logs} def validation_step(self, batch, batch_idx): return self._generative_step(batch) def validation_epoch_end(self, outputs): avg_loss = torch.stack([x['val_loss'] for x in outputs]).mean() tensorboard_logs = {'val_loss': avg_loss} if len(self.em_score_list) &lt;= 2: average_em_score = sum(self.em_score_list) / len(self.em_score_list) average_subset_match_score = sum(self.subset_score_list) / len(self.subset_score_list) else: latest_em_score = self.em_score_list[:-2] latest_subset_score = self.subset_score_list[:-2] average_em_score = sum(latest_em_score) / len(latest_em_score) average_subset_match_score = sum(latest_subset_score) / len(latest_subset_score) average_em_score = torch.tensor(average_em_score, dtype=torch.float32) average_subset_match_score = torch.tensor(average_subset_match_score, dtype=torch.float32) tensorboard_logs.update(em_score=average_em_score, subset_match_score=average_subset_match_score) self.target_gen = [] self.prediction_gen = [] return { 'avg_val_loss': avg_loss, 'em_score': average_em_score, 'subset_match_socre': average_subset_match_score, 'log': tensorboard_logs, 'progress_bar': tensorboard_logs } def configure_optimizers(self): model = self.model no_decay = ["bias", "LayerNorm.weight"] optimizer_grouped_parameters = [ { "params": [p for n, p in model.named_parameters() if not any(nd in n for nd in no_decay)], "weight_decay": self.hyparams.weight_decay, }, { "params": [p for n, p in model.named_parameters() if any(nd in n for nd in no_decay)], "weight_decay": 0.0, }, ] optimizer = Adafactor(optimizer_grouped_parameters, lr=self.hyparams.learning_rate, scale_parameter=False, relative_step=False) self.opt = optimizer return [optimizer] def optimizer_step(self, epoch, batch_idx, optimizer, optimizer_idx, optimizer_closure=None, on_tpu=False, using_native_amp=False, using_lbfgs=False): optimizer.step(closure=optimizer_closure) optimizer.zero_grad() self.lr_scheduler.step() def get_tqdm_dict(self): tqdm_dict = {"loss": "{:.3f}".format(self.trainer.avg_loss), "lr": self.lr_scheduler.get_last_lr()[-1]} return tqdm_dict def train_dataloader(self): n_samples = self.n_obs['train'] train_dataset = get_dataset(tokenizer=self.tokenizer, data=self.train_data, num_samples=n_samples, args=self.hyparams) sampler = RandomSampler(train_dataset) dataloader = DataLoader(train_dataset, sampler=sampler, batch_size=self.hyparams.train_batch_size, drop_last=True, num_workers=4) # t_total = ( # (len(dataloader.dataset) // (self.hyparams.train_batch_size * max(1, self.hyparams.n_gpu))) # // self.hyparams.gradient_accumulation_steps # * float(self.hyparams.num_train_epochs) # ) t_total = 100000 scheduler = get_linear_schedule_with_warmup( self.opt, num_warmup_steps=self.hyparams.warmup_steps, num_training_steps=t_total ) self.lr_scheduler = scheduler return dataloader def val_dataloader(self): n_samples = self.n_obs['validation'] validation_dataset = get_dataset(tokenizer=self.tokenizer, data=self.val_data, num_samples=n_samples, args=self.hyparams) sampler = RandomSampler(validation_dataset) return DataLoader(validation_dataset, shuffle=False, batch_size=self.hyparams.eval_batch_size, sampler=sampler, num_workers=4) def test_dataloader(self): n_samples = self.n_obs['test'] test_dataset = get_dataset(tokenizer=self.tokenizer, data=self.test_data, num_samples=n_samples, args=self.hyparams) return DataLoader(test_dataset, batch_size=self.hyparams.eval_batch_size, num_workers=4) def on_save_checkpoint(self, checkpoint): save_path = self.output_dir.joinpath("best_tfmr") self.model.config.save_step = self.step_count self.model.save_pretrained(save_path) self.tokenizer.save_pretrained(save_path) </code></pre></div> <p dir="auto">import os<br> import argparse<br> import pytorch_lightning as pl</p> <p dir="auto">from question_answering.t5_closed_book import T5FineTuner</p> <p dir="auto">if <strong>name</strong> == '<strong>main</strong>':<br> os.environ['REQUESTS_CA_BUNDLE'] = r'C:\ProgramData\NORCE\cer\NORCE_CA.cer'<br> # os.environ["PL_TORCH_DISTRIBUTED_BACKEND"] = "gloo"<br> # nltk.download('punkt')<br> args_dict = dict(<br> output_dir="", # path to save the checkpoints<br> model_name_or_path='t5-large',<br> tokenizer_name_or_path='t5-large',<br> max_input_length=128,<br> max_output_length=256,<br> freeze_encoder=False,<br> freeze_embeds=False,<br> learning_rate=1e-5,<br> weight_decay=0.0,<br> adam_epsilon=1e-8,<br> warmup_steps=0,<br> train_batch_size=4,<br> eval_batch_size=4,<br> num_train_epochs=2,<br> gradient_accumulation_steps=10,<br> n_gpu=1,<br> resume_from_checkpoint=None,<br> val_check_interval=0.5,<br> n_val=4000,<br> n_train=-1,<br> n_test=-1,<br> early_stop_callback=False,<br> fp_16=False, # if you want to enable 16-bit training then install apex and set this to true<br> opt_level='O1',<br> # you can find out more on optimisation levels here <a href="https://nvidia.github.io/apex/amp.html#opt-levels-and-properties" rel="nofollow">https://nvidia.github.io/apex/amp.html#opt-levels-and-properties</a><br> max_grad_norm=1.0, # if you enable 16-bit training then set this to a sensible value, 0.5 is a good default<br> seed=101,<br> )</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="args_dict.update({'output_dir': 't5_large_MedQuAD_256', 'num_train_epochs': 100, 'train_batch_size': 8, 'eval_batch_size': 8, 'learning_rate': 1e-3}) # 'resume_from_checkpoint': 't5_trivia_qa_closedbook/checkpointepoch=53.ckpt'}) args = argparse.Namespace(**args_dict) checkpoint_callback = pl.callbacks.ModelCheckpoint(dirpath=args.output_dir, monitor=&quot;em_score&quot;, mode=&quot;max&quot;, save_top_k=1) ## If resuming from checkpoint, add an arg resume_from_checkpoint train_params = dict( accumulate_grad_batches=args.gradient_accumulation_steps, gpus=args.n_gpu, max_epochs=args.num_train_epochs, # early_stop_callback=False, precision=16 if args.fp_16 else 32, # amp_level=args.opt_level, # resume_from_checkpoint=args.resume_from_checkpoint, gradient_clip_val=args.max_grad_norm, checkpoint_callback=checkpoint_callback, val_check_interval=args.val_check_interval, # accelerator='dp' # logger=wandb_logger, # callbacks=[LoggingCallback()], ) model = T5FineTuner(args) trainer = pl.Trainer(**train_params) trainer.fit(model)"><pre class="notranslate"><code class="notranslate">args_dict.update({'output_dir': 't5_large_MedQuAD_256', 'num_train_epochs': 100, 'train_batch_size': 8, 'eval_batch_size': 8, 'learning_rate': 1e-3}) # 'resume_from_checkpoint': 't5_trivia_qa_closedbook/checkpointepoch=53.ckpt'}) args = argparse.Namespace(**args_dict) checkpoint_callback = pl.callbacks.ModelCheckpoint(dirpath=args.output_dir, monitor="em_score", mode="max", save_top_k=1) ## If resuming from checkpoint, add an arg resume_from_checkpoint train_params = dict( accumulate_grad_batches=args.gradient_accumulation_steps, gpus=args.n_gpu, max_epochs=args.num_train_epochs, # early_stop_callback=False, precision=16 if args.fp_16 else 32, # amp_level=args.opt_level, # resume_from_checkpoint=args.resume_from_checkpoint, gradient_clip_val=args.max_grad_norm, checkpoint_callback=checkpoint_callback, val_check_interval=args.val_check_interval, # accelerator='dp' # logger=wandb_logger, # callbacks=[LoggingCallback()], ) model = T5FineTuner(args) trainer = pl.Trainer(**train_params) trainer.fit(model) </code></pre></div> <p dir="auto">`</p>
<h2 dir="auto">Environment info</h2> <ul dir="auto"> <li><code class="notranslate">transformers</code> version: 4.9.0.dev0</li> <li>Platform: Linux-5.4.0-1043-gcp-x86_64-with-glibc2.29</li> <li>Python version: 3.8.10</li> <li>PyTorch version (GPU?): 1.9.0+cpu (False)</li> <li>Tensorflow version (GPU?): 2.7.0-dev20210705 (False)</li> <li>Flax version: 0.3.4 (tpu)</li> <li>Jax version: 0.2.16</li> <li>JaxLib version: 0.1.68</li> <li>Using distributed or parallel set-up in script?: Yes</li> </ul> <h3 dir="auto">Who can help</h3> <p dir="auto">examples/research_projects/jax/model_parallel<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/patil-suraj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/patil-suraj">@patil-suraj</a></p> <h2 dir="auto">Information</h2> <p dir="auto">Model I am using GPTNeo-1.3B (for instance the one with resized to multiple of 8 embedding can be found <a href="https://huggingface.co/flax-community/gpt-neo-1.3B-resized-embed" rel="nofollow">here</a>)</p> <p dir="auto">The problem arises when using:</p> <ul dir="auto"> <li> <p dir="auto">the official example scripts</p> </li> <li> <p dir="auto">my own modified scripts:<br> Same error is observed with <a href="https://github.com/ncoop57/gpt-code-clippy/blob/main/run_clm_mp_apps.py">customized script</a></p> </li> </ul> <h2 dir="auto">To reproduce</h2> <p dir="auto">Run the command below in <code class="notranslate">examples/research_projects/jax-projects/model parallel</code> folder in cloned tarnsformers repo:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python run_clm_mp.py \ --model_name_or_path flax-community/gpt-neo-1.3B-resized-embed \ --tokenizer_name gpt2 \ --dataset_name wikitext --dataset_config_name wikitext-2-raw-v1 \ --do_train --do_eval \ --block_size 1024 \ --num_train_epochs 5 \ --learning_rate 4e-6 \ --per_device_train_batch_size 3 --per_device_eval_batch_size 3 \ --overwrite_output_dir --output_dir ~/tmp/flax-clm \ --cache_dir ~/datasets_cache/wikitext --dtype bfloat16 \ --logging_steps 96 --eval_steps 96"><pre class="notranslate"><code class="notranslate">python run_clm_mp.py \ --model_name_or_path flax-community/gpt-neo-1.3B-resized-embed \ --tokenizer_name gpt2 \ --dataset_name wikitext --dataset_config_name wikitext-2-raw-v1 \ --do_train --do_eval \ --block_size 1024 \ --num_train_epochs 5 \ --learning_rate 4e-6 \ --per_device_train_batch_size 3 --per_device_eval_batch_size 3 \ --overwrite_output_dir --output_dir ~/tmp/flax-clm \ --cache_dir ~/datasets_cache/wikitext --dtype bfloat16 \ --logging_steps 96 --eval_steps 96 </code></pre></div> <p dir="auto">Stack trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="07/16/2021 13:59:13 - INFO - absl - A polynomial schedule was set with a non-positive `transition_steps` value; this results in a constant schedule with value `init_value`. /home/arto/jenv/lib/python3.8/site-packages/jax/experimental/pjit.py:160: UserWarning: pjit is an experimental feature and probably has bugs! warn(&quot;pjit is an experimental feature and probably has bugs!&quot;) 07/16/2021 13:59:21 - INFO - __main__ - ***** Running training ***** 07/16/2021 13:59:21 - INFO - __main__ - Num examples = 2318 07/16/2021 13:59:21 - INFO - __main__ - Num Epochs = 5 07/16/2021 13:59:21 - INFO - __main__ - Instantaneous batch size per device = 3 07/16/2021 13:59:21 - INFO - __main__ - Total train batch size (w. parallel &amp; distributed) = 24 07/16/2021 13:59:21 - INFO - __main__ - Total optimization steps = 480 Epoch ... (1/5): 0%| | 0/5 [00:00&lt;?, ?it/sF0716 13:59:49.611617 14290 array.h:414] Check failed: n &lt; sizes_size | 0/96 [00:00&lt;?, ?it/s] *** Check failure stack trace: *** @ 0x7efd6d030347 (unknown) @ 0x7efd6d02eed4 (unknown) @ 0x7efd6d02e9c3 (unknown) @ 0x7efd6d030cc9 (unknown) @ 0x7efd68c98eee (unknown) @ 0x7efd68c2bb2f (unknown) @ 0x7efd68c29cc2 (unknown) @ 0x7efd6c7aedb4 (unknown) @ 0x7efd6c7b0212 (unknown) @ 0x7efd6c7ade23 (unknown) @ 0x7efd62c0956f (unknown) @ 0x7efd68c54248 (unknown) @ 0x7efd68c55d2b (unknown) @ 0x7efd687a302b (unknown) @ 0x7efd68c94001 (unknown) @ 0x7efd68c91d6a (unknown) @ 0x7efd68c918bd (unknown) @ 0x7efd68c94001 (unknown) @ 0x7efd68c91d6a (unknown) @ 0x7efd68c918bd (unknown) @ 0x7efd6831013f (unknown) @ 0x7efd6830b52e (unknown) @ 0x7efd68315292 (unknown) @ 0x7efd68322ffd (unknown) @ 0x7efd67f0d6b6 (unknown) @ 0x7efd67f0d014 TpuCompiler_Compile @ 0x7efd73180956 xla::(anonymous namespace)::TpuCompiler::Compile() @ 0x7efd709300d4 xla::Service::BuildExecutables() @ 0x7efd709261a0 xla::LocalService::CompileExecutables() @ 0x7efd7086ae07 xla::LocalClient::Compile() @ 0x7efd708452a0 xla::PjRtStreamExecutorClient::Compile() @ 0x7efd6e440152 xla::PyClient::Compile() @ 0x7efd6e1ba5e2 pybind11::detail::argument_loader&lt;&gt;::call_impl&lt;&gt;() @ 0x7efd6e1baa51 pybind11::cpp_function::initialize&lt;&gt;()::{lambda()#3}::operator()() @ 0x7efd6e1a1460 pybind11::cpp_function::dispatcher() @ 0x5f2cc9 PyCFunction_Call https://symbolize.stripped_domain/r/?trace=7efd6d030347,7efd6d02eed3,7efd6d02e9c2,7efd6d030cc8,7efd68c98eed,7efd68c2bb2e,7efd68c29cc1,7efd6c7aedb3,7efd6c7b0211,7efd6c7ade22,7efd62c0956e,7efd68c54247,7efd68c55d2a,7efd687a302a,7efd68c94000,7efd68c91d69,7efd68c918bc,7efd68c94000,7efd68c91d69,7efd68c918bc,7efd6831013e,7efd6830b52d,7efd68315291,7efd68322ffc,7efd67f0d6b5,7efd67f0d013,7efd73180955,7efd709300d3,7efd7092619f,7efd7086ae06,7efd7084529f,7efd6e440151,7efd6e1ba5e1,7efd6e1baa50,7efd6e1a145f,5f2cc8&amp;map=20957999b35a518f734e5552ed1ebec946aa0e35:7efd6db3c000-7efd74a2efc0,2a762cd764e70bc90ae4c7f9747c08d7:7efd600de000-7efd6d35f280 https://symbolize.stripped_domain/r/?trace=7eff9cd0b18b,7eff9cd0b20f,7efd6d030487,7efd6d02eed3,7efd6d02e9c2,7efd6d030cc8,7efd68c98eed,7efd68c2bb2e,7efd68c29cc1,7efd6c7aedb3,7efd6c7b0211,7efd6c7ade22,7efd62c0956e,7efd68c54247,7efd68c55d2a,7efd687a302a,7efd68c94000,7efd68c91d69,7efd68c918bc,7efd68c94000,7efd68c91d69,7efd68c918bc,7efd6831013e,7efd6830b52d,7efd68315291,7efd68322ffc,7efd67f0d6b5,7efd67f0d013,7efd73180955,7efd709300d3,7efd7092619f,7efd7086ae06,7efd7084529f&amp;map=20957999b35a518f734e5552ed1ebec946aa0e35:7efd6db3c000-7efd74a2efc0,2a762cd764e70bc90ae4c7f9747c08d7:7efd600de000-7efd6d35f280 *** SIGABRT received by PID 14290 (TID 14290) on cpu 89 from PID 14290; *** E0716 13:59:49.681807 14290 coredump_hook.cc:292] RAW: Remote crash data gathering hook invoked. E0716 13:59:49.681854 14290 coredump_hook.cc:384] RAW: Skipping coredump since rlimit was 0 at process start. E0716 13:59:49.681862 14290 client.cc:222] RAW: Coroner client retries enabled (b/136286901), will retry for up to 30 sec. E0716 13:59:49.681870 14290 coredump_hook.cc:447] RAW: Sending fingerprint to remote end. E0716 13:59:49.681876 14290 coredump_socket.cc:124] RAW: Stat failed errno=2 on socket /var/google/services/logmanagerd/remote_coredump.socket E0716 13:59:49.681886 14290 coredump_hook.cc:451] RAW: Cannot send fingerprint to Coroner: [NOT_FOUND] Missing crash reporting socket. Is the listener running? E0716 13:59:49.681891 14290 coredump_hook.cc:525] RAW: Discarding core. F0716 13:59:49.611617 14290 array.h:414] Check failed: n &lt; sizes_size E0716 13:59:49.953522 14290 process_state.cc:771] RAW: Raising signal 6 with default behavior Aborted (core dumped)"><pre class="notranslate"><code class="notranslate">07/16/2021 13:59:13 - INFO - absl - A polynomial schedule was set with a non-positive `transition_steps` value; this results in a constant schedule with value `init_value`. /home/arto/jenv/lib/python3.8/site-packages/jax/experimental/pjit.py:160: UserWarning: pjit is an experimental feature and probably has bugs! warn("pjit is an experimental feature and probably has bugs!") 07/16/2021 13:59:21 - INFO - __main__ - ***** Running training ***** 07/16/2021 13:59:21 - INFO - __main__ - Num examples = 2318 07/16/2021 13:59:21 - INFO - __main__ - Num Epochs = 5 07/16/2021 13:59:21 - INFO - __main__ - Instantaneous batch size per device = 3 07/16/2021 13:59:21 - INFO - __main__ - Total train batch size (w. parallel &amp; distributed) = 24 07/16/2021 13:59:21 - INFO - __main__ - Total optimization steps = 480 Epoch ... (1/5): 0%| | 0/5 [00:00&lt;?, ?it/sF0716 13:59:49.611617 14290 array.h:414] Check failed: n &lt; sizes_size | 0/96 [00:00&lt;?, ?it/s] *** Check failure stack trace: *** @ 0x7efd6d030347 (unknown) @ 0x7efd6d02eed4 (unknown) @ 0x7efd6d02e9c3 (unknown) @ 0x7efd6d030cc9 (unknown) @ 0x7efd68c98eee (unknown) @ 0x7efd68c2bb2f (unknown) @ 0x7efd68c29cc2 (unknown) @ 0x7efd6c7aedb4 (unknown) @ 0x7efd6c7b0212 (unknown) @ 0x7efd6c7ade23 (unknown) @ 0x7efd62c0956f (unknown) @ 0x7efd68c54248 (unknown) @ 0x7efd68c55d2b (unknown) @ 0x7efd687a302b (unknown) @ 0x7efd68c94001 (unknown) @ 0x7efd68c91d6a (unknown) @ 0x7efd68c918bd (unknown) @ 0x7efd68c94001 (unknown) @ 0x7efd68c91d6a (unknown) @ 0x7efd68c918bd (unknown) @ 0x7efd6831013f (unknown) @ 0x7efd6830b52e (unknown) @ 0x7efd68315292 (unknown) @ 0x7efd68322ffd (unknown) @ 0x7efd67f0d6b6 (unknown) @ 0x7efd67f0d014 TpuCompiler_Compile @ 0x7efd73180956 xla::(anonymous namespace)::TpuCompiler::Compile() @ 0x7efd709300d4 xla::Service::BuildExecutables() @ 0x7efd709261a0 xla::LocalService::CompileExecutables() @ 0x7efd7086ae07 xla::LocalClient::Compile() @ 0x7efd708452a0 xla::PjRtStreamExecutorClient::Compile() @ 0x7efd6e440152 xla::PyClient::Compile() @ 0x7efd6e1ba5e2 pybind11::detail::argument_loader&lt;&gt;::call_impl&lt;&gt;() @ 0x7efd6e1baa51 pybind11::cpp_function::initialize&lt;&gt;()::{lambda()#3}::operator()() @ 0x7efd6e1a1460 pybind11::cpp_function::dispatcher() @ 0x5f2cc9 PyCFunction_Call https://symbolize.stripped_domain/r/?trace=7efd6d030347,7efd6d02eed3,7efd6d02e9c2,7efd6d030cc8,7efd68c98eed,7efd68c2bb2e,7efd68c29cc1,7efd6c7aedb3,7efd6c7b0211,7efd6c7ade22,7efd62c0956e,7efd68c54247,7efd68c55d2a,7efd687a302a,7efd68c94000,7efd68c91d69,7efd68c918bc,7efd68c94000,7efd68c91d69,7efd68c918bc,7efd6831013e,7efd6830b52d,7efd68315291,7efd68322ffc,7efd67f0d6b5,7efd67f0d013,7efd73180955,7efd709300d3,7efd7092619f,7efd7086ae06,7efd7084529f,7efd6e440151,7efd6e1ba5e1,7efd6e1baa50,7efd6e1a145f,5f2cc8&amp;map=20957999b35a518f734e5552ed1ebec946aa0e35:7efd6db3c000-7efd74a2efc0,2a762cd764e70bc90ae4c7f9747c08d7:7efd600de000-7efd6d35f280 https://symbolize.stripped_domain/r/?trace=7eff9cd0b18b,7eff9cd0b20f,7efd6d030487,7efd6d02eed3,7efd6d02e9c2,7efd6d030cc8,7efd68c98eed,7efd68c2bb2e,7efd68c29cc1,7efd6c7aedb3,7efd6c7b0211,7efd6c7ade22,7efd62c0956e,7efd68c54247,7efd68c55d2a,7efd687a302a,7efd68c94000,7efd68c91d69,7efd68c918bc,7efd68c94000,7efd68c91d69,7efd68c918bc,7efd6831013e,7efd6830b52d,7efd68315291,7efd68322ffc,7efd67f0d6b5,7efd67f0d013,7efd73180955,7efd709300d3,7efd7092619f,7efd7086ae06,7efd7084529f&amp;map=20957999b35a518f734e5552ed1ebec946aa0e35:7efd6db3c000-7efd74a2efc0,2a762cd764e70bc90ae4c7f9747c08d7:7efd600de000-7efd6d35f280 *** SIGABRT received by PID 14290 (TID 14290) on cpu 89 from PID 14290; *** E0716 13:59:49.681807 14290 coredump_hook.cc:292] RAW: Remote crash data gathering hook invoked. E0716 13:59:49.681854 14290 coredump_hook.cc:384] RAW: Skipping coredump since rlimit was 0 at process start. E0716 13:59:49.681862 14290 client.cc:222] RAW: Coroner client retries enabled (b/136286901), will retry for up to 30 sec. E0716 13:59:49.681870 14290 coredump_hook.cc:447] RAW: Sending fingerprint to remote end. E0716 13:59:49.681876 14290 coredump_socket.cc:124] RAW: Stat failed errno=2 on socket /var/google/services/logmanagerd/remote_coredump.socket E0716 13:59:49.681886 14290 coredump_hook.cc:451] RAW: Cannot send fingerprint to Coroner: [NOT_FOUND] Missing crash reporting socket. Is the listener running? E0716 13:59:49.681891 14290 coredump_hook.cc:525] RAW: Discarding core. F0716 13:59:49.611617 14290 array.h:414] Check failed: n &lt; sizes_size E0716 13:59:49.953522 14290 process_state.cc:771] RAW: Raising signal 6 with default behavior Aborted (core dumped) </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Training in model parallel mode.</p>
0
<p dir="auto">Hello 🖐, can i reduce the amount of duplicate information in the log?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: expect(received).not.toBeVisible() Call log: - waiting for selector &quot;//div[div[@class=&quot;eos-date-picker-wrapper&quot;]] &gt;&gt; .SvgDot&quot; - selector resolved to &lt;svg width=&quot;1em&quot; height=&quot;1em&quot; class=&quot;SvgDot&quot; font-siz…&gt;…&lt;/svg&gt; - unexpected value &quot;true&quot; - selector resolved to &lt;svg width=&quot;1em&quot; height=&quot;1em&quot; class=&quot;SvgDot&quot; font-siz…&gt;…&lt;/svg&gt; - unexpected value &quot;true&quot; - selector resolved to &lt;svg width=&quot;1em&quot; height=&quot;1em&quot; class=&quot;SvgDot&quot; font-siz…&gt;…&lt;/svg&gt; - unexpected value &quot;true&quot; - selector resolved to &lt;svg width=&quot;1em&quot; height=&quot;1em&quot; class=&quot;SvgDot&quot; font-siz…&gt;…&lt;/svg&gt; - unexpected value &quot;true&quot; - selector resolved to &lt;svg width=&quot;1em&quot; height=&quot;1em&quot; class=&quot;SvgDot&quot; font-siz…&gt;…&lt;/svg&gt; - unexpected value &quot;true&quot; - selector resolved to &lt;svg width=&quot;1em&quot; height=&quot;1em&quot; class=&quot;SvgDot&quot; font-siz…&gt;…&lt;/svg&gt; - unexpected value &quot;true&quot; - selector resolved to &lt;svg width=&quot;1em&quot; height=&quot;1em&quot; class=&quot;SvgDot&quot; font-siz…&gt;…&lt;/svg&gt; - unexpected value &quot;true&quot; - selector resolved to &lt;svg width=&quot;1em&quot; height=&quot;1em&quot; class=&quot;SvgDot&quot; font-siz…&gt;…&lt;/svg&gt; - unexpected value &quot;true&quot; 427 | await control.datePickerInput.click();"><pre lang="code" class="notranslate"><code class="notranslate">Error: expect(received).not.toBeVisible() Call log: - waiting for selector "//div[div[@class="eos-date-picker-wrapper"]] &gt;&gt; .SvgDot" - selector resolved to &lt;svg width="1em" height="1em" class="SvgDot" font-siz…&gt;…&lt;/svg&gt; - unexpected value "true" - selector resolved to &lt;svg width="1em" height="1em" class="SvgDot" font-siz…&gt;…&lt;/svg&gt; - unexpected value "true" - selector resolved to &lt;svg width="1em" height="1em" class="SvgDot" font-siz…&gt;…&lt;/svg&gt; - unexpected value "true" - selector resolved to &lt;svg width="1em" height="1em" class="SvgDot" font-siz…&gt;…&lt;/svg&gt; - unexpected value "true" - selector resolved to &lt;svg width="1em" height="1em" class="SvgDot" font-siz…&gt;…&lt;/svg&gt; - unexpected value "true" - selector resolved to &lt;svg width="1em" height="1em" class="SvgDot" font-siz…&gt;…&lt;/svg&gt; - unexpected value "true" - selector resolved to &lt;svg width="1em" height="1em" class="SvgDot" font-siz…&gt;…&lt;/svg&gt; - unexpected value "true" - selector resolved to &lt;svg width="1em" height="1em" class="SvgDot" font-siz…&gt;…&lt;/svg&gt; - unexpected value "true" 427 | await control.datePickerInput.click(); </code></pre></div> <p dir="auto">Thank you for Playwright♥</p>
<p dir="auto">There appears to be an issue with running playwright on Linux with the <code class="notranslate">playwright install --with-deps chromium</code> command. Running with <code class="notranslate">playwright install</code> and installing everything works fine. There appear to be lots of others having <a href="https://github.com/nodesource/distributions/issues/1576" data-hovercard-type="issue" data-hovercard-url="/nodesource/distributions/issues/1576/hovercard">similar issues</a> so it's probably not just a playwright issue, but I'm wondering why one command works but the other doesn't?</p> <p dir="auto">Failing command <code class="notranslate">"test:playwright:setup": "playwright install --with-deps chromium"</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; [email protected] test:playwright:setup /runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop &gt; playwright install-deps chromium Installing dependencies... Switching to root user to install dependencies... Get:1 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease [23.8 kB] Get:2 https://deb.nodesource.com/node_16.x focal InRelease [4583 B] Get:3 http://ppa.launchpad.net/git-core/ppa/ubuntu focal/main amd64 Packages [3168 B] Get:4 https://deb.nodesource.com/node_16.x focal/main amd64 Packages [775 B] Err:4 https://deb.nodesource.com/node_16.x focal/main amd64 Packages File has unexpected size (776 != 775). Mirror sync in progress? [IP: 23.215.61.40 443] Hashes of expected file: - Filesize:775 [weak] - SHA256:0c6d8382f60bbb4bcc24ce922521673cd749c7530b2128b8dffb3e11297d1a15 - SHA1:1e1b1951e616fb84373ee32a26944b356a83149d [weak] - MD5Sum:fdee69ee72123acebf6c975c753f6182 [weak] Release file created at: Wed, 21 Jun 2023 21:26:29 +0000 Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Get:6 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB] Get:7 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1064 kB] Get:8 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Get:9 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB] Get:10 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB] Get:11 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB] Get:12 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB] Get:13 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [2416 kB] Get:14 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2820 kB] Get:15 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [28.5 kB] Get:16 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB] Get:17 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [2554 kB] Get:18 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1360 kB] Get:19 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [31.2 kB] Get:20 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3299 kB] Get:21 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB] Get:22 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB] Fetched 27.1 MB in 3s (10.7 MB/s) Reading package lists... E: Failed to fetch https://deb.nodesource.com/node_16.x/dists/focal/main/binary-amd64/Packages.gz File has unexpected size (776 != 775). Mirror sync in progress? [IP: 23.215.61.40 443] Hashes of expected file: - Filesize:775 [weak] - SHA256:0c6d8382f60bbb4bcc24ce922521673cd749c7530b2128b8dffb3e11297d1a15 - SHA1:1e1b1951e616fb84373ee32a26944b356a83149d [weak] - MD5Sum:fdee69ee72123acebf6c975c753f6182 [weak] Release file created at: Wed, 21 Jun 2023 21:26:29 +0000 E: Some index files failed to download. They have been ignored, or old ones used instead. Failed to install browser dependencies Error: Installation process exited with code: 100 undefined /runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop:  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  [email protected] test:playwright:setup: `playwright install-deps chromium` Exit status 1  ELIFECYCLE  Command failed with exit code 1."><pre class="notranslate"><code class="notranslate">&gt; [email protected] test:playwright:setup /runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop &gt; playwright install-deps chromium Installing dependencies... Switching to root user to install dependencies... Get:1 http://ppa.launchpad.net/git-core/ppa/ubuntu focal InRelease [23.8 kB] Get:2 https://deb.nodesource.com/node_16.x focal InRelease [4583 B] Get:3 http://ppa.launchpad.net/git-core/ppa/ubuntu focal/main amd64 Packages [3168 B] Get:4 https://deb.nodesource.com/node_16.x focal/main amd64 Packages [775 B] Err:4 https://deb.nodesource.com/node_16.x focal/main amd64 Packages File has unexpected size (776 != 775). Mirror sync in progress? [IP: 23.215.61.40 443] Hashes of expected file: - Filesize:775 [weak] - SHA256:0c6d8382f60bbb4bcc24ce922521673cd749c7530b2128b8dffb3e11297d1a15 - SHA1:1e1b1951e616fb84373ee32a26944b356a83149d [weak] - MD5Sum:fdee69ee72123acebf6c975c753f6182 [weak] Release file created at: Wed, 21 Jun 2023 21:26:29 +0000 Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Get:6 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB] Get:7 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [1064 kB] Get:8 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Get:9 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB] Get:10 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB] Get:11 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB] Get:12 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB] Get:13 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [2416 kB] Get:14 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2820 kB] Get:15 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [28.5 kB] Get:16 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB] Get:17 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [2554 kB] Get:18 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1360 kB] Get:19 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [31.2 kB] Get:20 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [3299 kB] Get:21 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [28.6 kB] Get:22 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB] Fetched 27.1 MB in 3s (10.7 MB/s) Reading package lists... E: Failed to fetch https://deb.nodesource.com/node_16.x/dists/focal/main/binary-amd64/Packages.gz File has unexpected size (776 != 775). Mirror sync in progress? [IP: 23.215.61.40 443] Hashes of expected file: - Filesize:775 [weak] - SHA256:0c6d8382f60bbb4bcc24ce922521673cd749c7530b2128b8dffb3e11297d1a15 - SHA1:1e1b1951e616fb84373ee32a26944b356a83149d [weak] - MD5Sum:fdee69ee72123acebf6c975c753f6182 [weak] Release file created at: Wed, 21 Jun 2023 21:26:29 +0000 E: Some index files failed to download. They have been ignored, or old ones used instead. Failed to install browser dependencies Error: Installation process exited with code: 100 undefined /runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop:  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  [email protected] test:playwright:setup: `playwright install-deps chromium` Exit status 1  ELIFECYCLE  Command failed with exit code 1. </code></pre></div> <p dir="auto">Succeeding command <code class="notranslate"> "test:playwright:setup": "playwright install"</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; [email protected] test:playwright:setup /runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop &gt; playwright install Downloading Chromium 114.0.5735.35 (playwright build v1064) from https://playwright.azureedge.net/builds/chromium/1064/chromium-linux.zip | | 0% of 145.2 Mb |■■■■■■■■ | 10% of 145.2 Mb |■■■■■■■■■■■■■■■■ | 20% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 145.2 Mb Chromium 114.0.5735.35 (playwright build v1064) downloaded to /home/runner/.cache/ms-playwright/chromium-1064 Downloading FFMPEG playwright build v1009 from https://playwright.azureedge.net/builds/ffmpeg/1009/ffmpeg-linux.zip | | 0% of 2.6 Mb |■■■■■■■■ | 10% of 2.6 Mb |■■■■■■■■■■■■■■■■ | 20% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 2.6 Mb FFMPEG playwright build v1009 downloaded to /home/runner/.cache/ms-playwright/ffmpeg-1009 Downloading Firefox 113.0 (playwright build v1408) from https://playwright.azureedge.net/builds/firefox/1408/firefox-ubuntu-20.04.zip | | 0% of 78.7 Mb |■■■■■■■■ | 10% of 78.7 Mb |■■■■■■■■■■■■■■■■ | 20% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 78.7 Mb Firefox 113.0 (playwright build v1408) downloaded to /home/runner/.cache/ms-playwright/firefox-1408 Downloading Webkit 16.4 (playwright build v1848) from https://playwright.azureedge.net/builds/webkit/1848/webkit-ubuntu-20.04.zip | | 0% of 114.2 Mb |■■■■■■■■ | 10% of 114.2 Mb |■■■■■■■■■■■■■■■■ | 20% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 114.2 Mb Webkit 16.4 (playwright build v1848) downloaded to /home/runner/.cache/ms-playwright/webkit-1848"><pre class="notranslate"><code class="notranslate">&gt; [email protected] test:playwright:setup /runner/_work/ledger-live/ledger-live/apps/ledger-live-desktop &gt; playwright install Downloading Chromium 114.0.5735.35 (playwright build v1064) from https://playwright.azureedge.net/builds/chromium/1064/chromium-linux.zip | | 0% of 145.2 Mb |■■■■■■■■ | 10% of 145.2 Mb |■■■■■■■■■■■■■■■■ | 20% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 145.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 145.2 Mb Chromium 114.0.5735.35 (playwright build v1064) downloaded to /home/runner/.cache/ms-playwright/chromium-1064 Downloading FFMPEG playwright build v1009 from https://playwright.azureedge.net/builds/ffmpeg/1009/ffmpeg-linux.zip | | 0% of 2.6 Mb |■■■■■■■■ | 10% of 2.6 Mb |■■■■■■■■■■■■■■■■ | 20% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 2.6 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 2.6 Mb FFMPEG playwright build v1009 downloaded to /home/runner/.cache/ms-playwright/ffmpeg-1009 Downloading Firefox 113.0 (playwright build v1408) from https://playwright.azureedge.net/builds/firefox/1408/firefox-ubuntu-20.04.zip | | 0% of 78.7 Mb |■■■■■■■■ | 10% of 78.7 Mb |■■■■■■■■■■■■■■■■ | 20% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 78.7 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 78.7 Mb Firefox 113.0 (playwright build v1408) downloaded to /home/runner/.cache/ms-playwright/firefox-1408 Downloading Webkit 16.4 (playwright build v1848) from https://playwright.azureedge.net/builds/webkit/1848/webkit-ubuntu-20.04.zip | | 0% of 114.2 Mb |■■■■■■■■ | 10% of 114.2 Mb |■■■■■■■■■■■■■■■■ | 20% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■ | 30% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 40% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 50% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 60% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 70% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 80% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ | 90% of 114.2 Mb |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 114.2 Mb Webkit 16.4 (playwright build v1848) downloaded to /home/runner/.cache/ms-playwright/webkit-1848 </code></pre></div> <h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.34.3]</li> <li>Operating System: [Linux] (on CI)</li> <li>Browser: [Chromium]</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">[https://github.com/LedgerHQ/ledger-live/actions/runs/5376764008/jobs/9754579726]</p>
0
<p dir="auto">When the first task sent by a client on a fresh celery setup is a group task (or possibly any set of tasks processed concurrently by multiple workers), and PostgreSQL is used as the result backend, the workers fail with an <code class="notranslate">IntegrityError</code> due to a duplicate key.</p> <h2 dir="auto">Steps to reproduce</h2> <ol dir="auto"> <li>Send a group task to multiple workers as the first task in a new setup</li> <li>Retrieve the group result</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">The workers are able to store their result at the PostgreSQL backend, and the group result is correctly retrieved by the client.</p> <h2 dir="auto">Actual behavior</h2> <p dir="auto">The <code class="notranslate">_store_result</code> operation fails on the workers with an <code class="notranslate">IntegrityError</code>. The operation is retried three times, but sometimes this is not sufficient and the group task fails with the <code class="notranslate">IntegrityError</code>.</p> <p dir="auto">Based on the traceback, my suspicion is that as multiple workers are concurrently processing a task and ultimately want to store their result at the backend, they are concurrently setting up sessions with the database:<br> </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/celery/celery/blob/02c977d64de54ae53ccbc79a9d86196005ab1beb/celery/backends/database/__init__.py#L95-L105">celery/celery/backends/database/__init__.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 95 to 105 in <a data-pjax="true" class="commit-tease-sha" href="/celery/celery/commit/02c977d64de54ae53ccbc79a9d86196005ab1beb">02c977d</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L95" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="95"></td> <td id="LC95" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">def</span> <span class="pl-v">ResultSession</span>(<span class="pl-s1">self</span>, <span class="pl-s1">session_manager</span><span class="pl-c1">=</span><span class="pl-v">SessionManager</span>()): </td> </tr> <tr class="border-0"> <td id="L96" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="96"></td> <td id="LC96" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-s1">session_manager</span>.<span class="pl-en">session_factory</span>( </td> </tr> <tr class="border-0"> <td id="L97" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="97"></td> <td id="LC97" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">dburi</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">url</span>, </td> </tr> <tr class="border-0"> <td id="L98" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="98"></td> <td id="LC98" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">short_lived_sessions</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">short_lived_sessions</span>, </td> </tr> <tr class="border-0"> <td id="L99" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="99"></td> <td id="LC99" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">**</span><span class="pl-s1">self</span>.<span class="pl-s1">engine_options</span>) </td> </tr> <tr class="border-0"> <td id="L100" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="100"></td> <td id="LC100" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L101" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="101"></td> <td id="LC101" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">@<span class="pl-s1">retry</span></span> </td> </tr> <tr class="border-0"> <td id="L102" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="102"></td> <td id="LC102" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">def</span> <span class="pl-en">_store_result</span>(<span class="pl-s1">self</span>, <span class="pl-s1">task_id</span>, <span class="pl-s1">result</span>, <span class="pl-s1">state</span>, </td> </tr> <tr class="border-0"> <td id="L103" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="103"></td> <td id="LC103" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">traceback</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">max_retries</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): </td> </tr> <tr class="border-0"> <td id="L104" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="104"></td> <td id="LC104" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">"""Store return value and state of an executed task."""</span> </td> </tr> <tr class="border-0"> <td id="L105" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="105"></td> <td id="LC105" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">session</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-v">ResultSession</span>() </td> </tr> </tbody></table> </div> </div> <br> As it is the first task the workers process, this entails preparing the models and creating the necessary tables with <code class="notranslate">create_all</code> (using SQLAlchemy):<br> <div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/celery/celery/blob/02c977d64de54ae53ccbc79a9d86196005ab1beb/celery/backends/database/session.py#L53-L60">celery/celery/backends/database/session.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 53 to 60 in <a data-pjax="true" class="commit-tease-sha" href="/celery/celery/commit/02c977d64de54ae53ccbc79a9d86196005ab1beb">02c977d</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L53" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="53"></td> <td id="LC53" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">def</span> <span class="pl-en">prepare_models</span>(<span class="pl-s1">self</span>, <span class="pl-s1">engine</span>): </td> </tr> <tr class="border-0"> <td id="L54" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="54"></td> <td id="LC54" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">self</span>.<span class="pl-s1">prepared</span>: </td> </tr> <tr class="border-0"> <td id="L55" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="55"></td> <td id="LC55" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-v">ResultModelBase</span>.<span class="pl-s1">metadata</span>.<span class="pl-en">create_all</span>(<span class="pl-s1">engine</span>) </td> </tr> <tr class="border-0"> <td id="L56" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="56"></td> <td id="LC56" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">self</span>.<span class="pl-s1">prepared</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> </td> </tr> <tr class="border-0"> <td id="L57" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="57"></td> <td id="LC57" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L58" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="58"></td> <td id="LC58" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">def</span> <span class="pl-en">session_factory</span>(<span class="pl-s1">self</span>, <span class="pl-s1">dburi</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>): </td> </tr> <tr class="border-0"> <td id="L59" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="59"></td> <td id="LC59" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">engine</span>, <span class="pl-s1">session</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">create_session</span>(<span class="pl-s1">dburi</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) </td> </tr> <tr class="border-0"> <td id="L60" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="60"></td> <td id="LC60" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">self</span>.<span class="pl-en">prepare_models</span>(<span class="pl-s1">engine</span>) </td> </tr> </tbody></table> </div> </div> <br> It seems PostgreSQL doesn't handle multiple sessions creating the same table very well (<a href="https://www.postgresql.org/message-id/4B967780.1040303%40opinioni.net" rel="nofollow">1</a>,<a href="https://stackoverflow.com/questions/48041134/postgres-create-table-asynchronously" rel="nofollow">2</a>,<a href="https://www.postgresql.org/message-id/CA%2BTgmoZAdYVtwBfp1FL2sMZbiHCWT4UPrzRLNnX1Nb30Ku3-gg%40mail.gmail.com" rel="nofollow">3</a>), so a duplicate key in an index for those tables cause an <code class="notranslate">IntegrityError</code>.<p></p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="257997430" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4267" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/4267/hovercard" href="https://github.com/celery/celery/issues/4267">#4267</a> could be an issue with a similar cause.</p> <h2 dir="auto">Traceback</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2018-04-10 13:46:40,433: WARNING/ForkPoolWorker-1] Failed operation _store_result. Retrying 2 more times. Traceback (most recent call last): File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1193, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py&quot;, line 507, in do_execute cursor.execute(statement, parameters) psycopg2.IntegrityError: duplicate key value violates unique constraint &quot;pg_type_typname_nsp_index&quot; DETAIL: Key (typname, typnamespace)=(celery_taskmeta, 2200) already exists. The above exception was the direct cause of the following exception: Traceback (most recent call last): File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 53, in _inner return fun(*args, **kwargs) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 105, in _store_result session = self.ResultSession() File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 99, in ResultSession **self.engine_options) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py&quot;, line 59, in session_factory self.prepare_models(engine) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py&quot;, line 54, in prepare_models ResultModelBase.metadata.create_all(engine) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/schema.py&quot;, line 4004, in create_all tables=tables) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1940, in _run_visitor conn._run_visitor(visitorcallable, element, **kwargs) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1549, in _run_visitor **kwargs).traverse_single(element) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py&quot;, line 121, in traverse_single return meth(obj, **kw) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 757, in visit_metadata _is_metadata_operation=True) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py&quot;, line 121, in traverse_single return meth(obj, **kw) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 791, in visit_table include_foreign_key_constraints=include_foreign_key_constraints File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 948, in execute return meth(self, multiparams, params) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 68, in _execute_on_connection return connection._execute_ddl(self, multiparams, params) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1009, in _execute_ddl compiled File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1200, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1413, in _handle_dbapi_exception exc_info File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py&quot;, line 203, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py&quot;, line 186, in reraise raise value.with_traceback(tb) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1193, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py&quot;, line 507, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint &quot;pg_type_typname_nsp_index&quot; DETAIL: Key (typname, typnamespace)=(celery_taskmeta, 2200) already exists. [SQL: '\nCREATE TABLE celery_taskmeta (\n\tid INTEGER NOT NULL, \n\ttask_id VARCHAR(155), \n\tstatus VARCHAR(50), \n\tresult BYTEA, \n\tdate_done TIMESTAMP WITHOUT TIME ZONE, \n\ttraceback TEXT, \n\tPRIMARY KEY (id), \n\tUNIQUE (task_id)\n)\n\n'] (Background on this error at: http://sqlalche.me/e/gkpj) [2018-04-10 13:46:40,575: WARNING/ForkPoolWorker-1] Failed operation _store_result. Retrying 1 more times. Traceback (most recent call last): File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1193, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py&quot;, line 507, in do_execute cursor.execute(statement, parameters) psycopg2.IntegrityError: duplicate key value violates unique constraint &quot;pg_type_typname_nsp_index&quot; DETAIL: Key (typname, typnamespace)=(taskset_id_sequence, 2200) already exists. The above exception was the direct cause of the following exception: Traceback (most recent call last): File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 53, in _inner return fun(*args, **kwargs) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 105, in _store_result session = self.ResultSession() File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 99, in ResultSession **self.engine_options) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py&quot;, line 59, in session_factory self.prepare_models(engine) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py&quot;, line 54, in prepare_models ResultModelBase.metadata.create_all(engine) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/schema.py&quot;, line 4004, in create_all tables=tables) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1940, in _run_visitor conn._run_visitor(visitorcallable, element, **kwargs) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1549, in _run_visitor **kwargs).traverse_single(element) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py&quot;, line 121, in traverse_single return meth(obj, **kw) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 757, in visit_metadata _is_metadata_operation=True) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py&quot;, line 121, in traverse_single return meth(obj, **kw) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 782, in visit_table self.traverse_single(column.default) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py&quot;, line 121, in traverse_single return meth(obj, **kw) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 820, in visit_sequence self.connection.execute(CreateSequence(sequence)) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 948, in execute return meth(self, multiparams, params) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 68, in _execute_on_connection return connection._execute_ddl(self, multiparams, params) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1009, in _execute_ddl compiled File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1200, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1413, in _handle_dbapi_exception exc_info File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py&quot;, line 203, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py&quot;, line 186, in reraise raise value.with_traceback(tb) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1193, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py&quot;, line 507, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint &quot;pg_type_typname_nsp_index&quot; DETAIL: Key (typname, typnamespace)=(taskset_id_sequence, 2200) already exists. [SQL: 'CREATE SEQUENCE taskset_id_sequence'] (Background on this error at: http://sqlalche.me/e/gkpj) [2018-04-10 13:46:40,670: WARNING/ForkPoolWorker-1] Failed operation _store_result. Retrying 0 more times. Traceback (most recent call last): File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1193, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py&quot;, line 507, in do_execute cursor.execute(statement, parameters) psycopg2.IntegrityError: duplicate key value violates unique constraint &quot;pg_type_typname_nsp_index&quot; DETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists. The above exception was the direct cause of the following exception: Traceback (most recent call last): File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 53, in _inner return fun(*args, **kwargs) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 105, in _store_result session = self.ResultSession() File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 99, in ResultSession **self.engine_options) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py&quot;, line 59, in session_factory self.prepare_models(engine) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py&quot;, line 54, in prepare_models ResultModelBase.metadata.create_all(engine) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/schema.py&quot;, line 4004, in create_all tables=tables) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1940, in _run_visitor conn._run_visitor(visitorcallable, element, **kwargs) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1549, in _run_visitor **kwargs).traverse_single(element) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py&quot;, line 121, in traverse_single return meth(obj, **kw) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 757, in visit_metadata _is_metadata_operation=True) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py&quot;, line 121, in traverse_single return meth(obj, **kw) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 791, in visit_table include_foreign_key_constraints=include_foreign_key_constraints File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 948, in execute return meth(self, multiparams, params) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 68, in _execute_on_connection return connection._execute_ddl(self, multiparams, params) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1009, in _execute_ddl compiled File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1200, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1413, in _handle_dbapi_exception exc_info File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py&quot;, line 203, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py&quot;, line 186, in reraise raise value.with_traceback(tb) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1193, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py&quot;, line 507, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint &quot;pg_type_typname_nsp_index&quot; DETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists. [SQL: '\nCREATE TABLE celery_tasksetmeta (\n\tid INTEGER NOT NULL, \n\ttaskset_id VARCHAR(155), \n\tresult BYTEA, \n\tdate_done TIMESTAMP WITHOUT TIME ZONE, \n\tPRIMARY KEY (id), \n\tUNIQUE (taskset_id)\n)\n\n'] (Background on this error at: http://sqlalche.me/e/gkpj) [2018-04-10 13:46:40,675: WARNING/ForkPoolWorker-1] /home/ubuntu/venv/lib/python3.6/site-packages/celery/app/trace.py:549: RuntimeWarning: Exception raised outside body: IntegrityError('(psycopg2.IntegrityError) duplicate key value violates unique constraint &quot;pg_type_typname_nsp_index&quot;\nDETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists.\n',): Traceback (most recent call last): File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1193, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py&quot;, line 507, in do_execute cursor.execute(statement, parameters) psycopg2.IntegrityError: duplicate key value violates unique constraint &quot;pg_type_typname_nsp_index&quot; DETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists. The above exception was the direct cause of the following exception: Traceback (most recent call last): File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/app/trace.py&quot;, line 434, in trace_task uuid, retval, task_request, publish_result, File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/base.py&quot;, line 152, in mark_as_done self.store_result(task_id, result, state, request=request) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/base.py&quot;, line 309, in store_result request=request, **kwargs) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 53, in _inner return fun(*args, **kwargs) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 105, in _store_result session = self.ResultSession() File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 99, in ResultSession **self.engine_options) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py&quot;, line 59, in session_factory self.prepare_models(engine) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py&quot;, line 54, in prepare_models ResultModelBase.metadata.create_all(engine) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/schema.py&quot;, line 4004, in create_all tables=tables) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1940, in _run_visitor conn._run_visitor(visitorcallable, element, **kwargs) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1549, in _run_visitor **kwargs).traverse_single(element) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py&quot;, line 121, in traverse_single return meth(obj, **kw) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 757, in visit_metadata _is_metadata_operation=True) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py&quot;, line 121, in traverse_single return meth(obj, **kw) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 791, in visit_table include_foreign_key_constraints=include_foreign_key_constraints File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 948, in execute return meth(self, multiparams, params) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 68, in _execute_on_connection return connection._execute_ddl(self, multiparams, params) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1009, in _execute_ddl compiled File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1200, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1413, in _handle_dbapi_exception exc_info File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py&quot;, line 203, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py&quot;, line 186, in reraise raise value.with_traceback(tb) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1193, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py&quot;, line 507, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint &quot;pg_type_typname_nsp_index&quot; DETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists. [SQL: '\nCREATE TABLE celery_tasksetmeta (\n\tid INTEGER NOT NULL, \n\ttaskset_id VARCHAR(155), \n\tresult BYTEA, \n\tdate_done TIMESTAMP WITHOUT TIME ZONE, \n\tPRIMARY KEY (id), \n\tUNIQUE (taskset_id)\n)\n\n'] (Background on this error at: http://sqlalche.me/e/gkpj) exc, exc_info.traceback))) [2018-04-10 13:46:40,712: ERROR/ForkPoolWorker-1] Task setup[cfe2557a-f9a1-4406-86d0-1499166cc1a6] raised unexpected: IntegrityError('(psycopg2.IntegrityError) duplicate key value violates unique constraint &quot;pg_type_typname_nsp_index&quot;\nDETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists.\n',) Traceback (most recent call last): File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1193, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py&quot;, line 507, in do_execute cursor.execute(statement, parameters) psycopg2.IntegrityError: duplicate key value violates unique constraint &quot;pg_type_typname_nsp_index&quot; DETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists. The above exception was the direct cause of the following exception: Traceback (most recent call last): File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/app/trace.py&quot;, line 434, in trace_task uuid, retval, task_request, publish_result, File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/base.py&quot;, line 152, in mark_as_done self.store_result(task_id, result, state, request=request) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/base.py&quot;, line 309, in store_result request=request, **kwargs) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 53, in _inner return fun(*args, **kwargs) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 105, in _store_result session = self.ResultSession() File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py&quot;, line 99, in ResultSession **self.engine_options) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py&quot;, line 59, in session_factory self.prepare_models(engine) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py&quot;, line 54, in prepare_models ResultModelBase.metadata.create_all(engine) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/schema.py&quot;, line 4004, in create_all tables=tables) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1940, in _run_visitor conn._run_visitor(visitorcallable, element, **kwargs) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1549, in _run_visitor **kwargs).traverse_single(element) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py&quot;, line 121, in traverse_single return meth(obj, **kw) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 757, in visit_metadata _is_metadata_operation=True) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py&quot;, line 121, in traverse_single return meth(obj, **kw) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 791, in visit_table include_foreign_key_constraints=include_foreign_key_constraints File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 948, in execute return meth(self, multiparams, params) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py&quot;, line 68, in _execute_on_connection return connection._execute_ddl(self, multiparams, params) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1009, in _execute_ddl compiled File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1200, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1413, in _handle_dbapi_exception exc_info File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py&quot;, line 203, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py&quot;, line 186, in reraise raise value.with_traceback(tb) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py&quot;, line 1193, in _execute_context context) File &quot;/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py&quot;, line 507, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint &quot;pg_type_typname_nsp_index&quot; DETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists. [SQL: '\nCREATE TABLE celery_tasksetmeta (\n\tid INTEGER NOT NULL, \n\ttaskset_id VARCHAR(155), \n\tresult BYTEA, \n\tdate_done TIMESTAMP WITHOUT TIME ZONE, \n\tPRIMARY KEY (id), \n\tUNIQUE (taskset_id)\n)\n\n'] (Background on this error at: http://sqlalche.me/e/gkpj)"><pre class="notranslate"><code class="notranslate">[2018-04-10 13:46:40,433: WARNING/ForkPoolWorker-1] Failed operation _store_result. Retrying 2 more times. Traceback (most recent call last): File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 507, in do_execute cursor.execute(statement, parameters) psycopg2.IntegrityError: duplicate key value violates unique constraint "pg_type_typname_nsp_index" DETAIL: Key (typname, typnamespace)=(celery_taskmeta, 2200) already exists. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 53, in _inner return fun(*args, **kwargs) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 105, in _store_result session = self.ResultSession() File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 99, in ResultSession **self.engine_options) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py", line 59, in session_factory self.prepare_models(engine) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py", line 54, in prepare_models ResultModelBase.metadata.create_all(engine) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4004, in create_all tables=tables) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1940, in _run_visitor conn._run_visitor(visitorcallable, element, **kwargs) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1549, in _run_visitor **kwargs).traverse_single(element) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 121, in traverse_single return meth(obj, **kw) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 757, in visit_metadata _is_metadata_operation=True) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 121, in traverse_single return meth(obj, **kw) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 791, in visit_table include_foreign_key_constraints=include_foreign_key_constraints File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 948, in execute return meth(self, multiparams, params) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 68, in _execute_on_connection return connection._execute_ddl(self, multiparams, params) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1009, in _execute_ddl compiled File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1200, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1413, in _handle_dbapi_exception exc_info File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 186, in reraise raise value.with_traceback(tb) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 507, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "pg_type_typname_nsp_index" DETAIL: Key (typname, typnamespace)=(celery_taskmeta, 2200) already exists. [SQL: '\nCREATE TABLE celery_taskmeta (\n\tid INTEGER NOT NULL, \n\ttask_id VARCHAR(155), \n\tstatus VARCHAR(50), \n\tresult BYTEA, \n\tdate_done TIMESTAMP WITHOUT TIME ZONE, \n\ttraceback TEXT, \n\tPRIMARY KEY (id), \n\tUNIQUE (task_id)\n)\n\n'] (Background on this error at: http://sqlalche.me/e/gkpj) [2018-04-10 13:46:40,575: WARNING/ForkPoolWorker-1] Failed operation _store_result. Retrying 1 more times. Traceback (most recent call last): File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 507, in do_execute cursor.execute(statement, parameters) psycopg2.IntegrityError: duplicate key value violates unique constraint "pg_type_typname_nsp_index" DETAIL: Key (typname, typnamespace)=(taskset_id_sequence, 2200) already exists. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 53, in _inner return fun(*args, **kwargs) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 105, in _store_result session = self.ResultSession() File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 99, in ResultSession **self.engine_options) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py", line 59, in session_factory self.prepare_models(engine) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py", line 54, in prepare_models ResultModelBase.metadata.create_all(engine) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4004, in create_all tables=tables) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1940, in _run_visitor conn._run_visitor(visitorcallable, element, **kwargs) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1549, in _run_visitor **kwargs).traverse_single(element) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 121, in traverse_single return meth(obj, **kw) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 757, in visit_metadata _is_metadata_operation=True) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 121, in traverse_single return meth(obj, **kw) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 782, in visit_table self.traverse_single(column.default) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 121, in traverse_single return meth(obj, **kw) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 820, in visit_sequence self.connection.execute(CreateSequence(sequence)) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 948, in execute return meth(self, multiparams, params) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 68, in _execute_on_connection return connection._execute_ddl(self, multiparams, params) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1009, in _execute_ddl compiled File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1200, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1413, in _handle_dbapi_exception exc_info File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 186, in reraise raise value.with_traceback(tb) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 507, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "pg_type_typname_nsp_index" DETAIL: Key (typname, typnamespace)=(taskset_id_sequence, 2200) already exists. [SQL: 'CREATE SEQUENCE taskset_id_sequence'] (Background on this error at: http://sqlalche.me/e/gkpj) [2018-04-10 13:46:40,670: WARNING/ForkPoolWorker-1] Failed operation _store_result. Retrying 0 more times. Traceback (most recent call last): File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 507, in do_execute cursor.execute(statement, parameters) psycopg2.IntegrityError: duplicate key value violates unique constraint "pg_type_typname_nsp_index" DETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 53, in _inner return fun(*args, **kwargs) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 105, in _store_result session = self.ResultSession() File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 99, in ResultSession **self.engine_options) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py", line 59, in session_factory self.prepare_models(engine) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py", line 54, in prepare_models ResultModelBase.metadata.create_all(engine) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4004, in create_all tables=tables) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1940, in _run_visitor conn._run_visitor(visitorcallable, element, **kwargs) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1549, in _run_visitor **kwargs).traverse_single(element) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 121, in traverse_single return meth(obj, **kw) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 757, in visit_metadata _is_metadata_operation=True) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 121, in traverse_single return meth(obj, **kw) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 791, in visit_table include_foreign_key_constraints=include_foreign_key_constraints File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 948, in execute return meth(self, multiparams, params) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 68, in _execute_on_connection return connection._execute_ddl(self, multiparams, params) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1009, in _execute_ddl compiled File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1200, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1413, in _handle_dbapi_exception exc_info File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 186, in reraise raise value.with_traceback(tb) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 507, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "pg_type_typname_nsp_index" DETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists. [SQL: '\nCREATE TABLE celery_tasksetmeta (\n\tid INTEGER NOT NULL, \n\ttaskset_id VARCHAR(155), \n\tresult BYTEA, \n\tdate_done TIMESTAMP WITHOUT TIME ZONE, \n\tPRIMARY KEY (id), \n\tUNIQUE (taskset_id)\n)\n\n'] (Background on this error at: http://sqlalche.me/e/gkpj) [2018-04-10 13:46:40,675: WARNING/ForkPoolWorker-1] /home/ubuntu/venv/lib/python3.6/site-packages/celery/app/trace.py:549: RuntimeWarning: Exception raised outside body: IntegrityError('(psycopg2.IntegrityError) duplicate key value violates unique constraint "pg_type_typname_nsp_index"\nDETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists.\n',): Traceback (most recent call last): File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 507, in do_execute cursor.execute(statement, parameters) psycopg2.IntegrityError: duplicate key value violates unique constraint "pg_type_typname_nsp_index" DETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/app/trace.py", line 434, in trace_task uuid, retval, task_request, publish_result, File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/base.py", line 152, in mark_as_done self.store_result(task_id, result, state, request=request) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/base.py", line 309, in store_result request=request, **kwargs) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 53, in _inner return fun(*args, **kwargs) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 105, in _store_result session = self.ResultSession() File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 99, in ResultSession **self.engine_options) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py", line 59, in session_factory self.prepare_models(engine) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py", line 54, in prepare_models ResultModelBase.metadata.create_all(engine) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4004, in create_all tables=tables) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1940, in _run_visitor conn._run_visitor(visitorcallable, element, **kwargs) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1549, in _run_visitor **kwargs).traverse_single(element) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 121, in traverse_single return meth(obj, **kw) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 757, in visit_metadata _is_metadata_operation=True) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 121, in traverse_single return meth(obj, **kw) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 791, in visit_table include_foreign_key_constraints=include_foreign_key_constraints File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 948, in execute return meth(self, multiparams, params) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 68, in _execute_on_connection return connection._execute_ddl(self, multiparams, params) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1009, in _execute_ddl compiled File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1200, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1413, in _handle_dbapi_exception exc_info File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 186, in reraise raise value.with_traceback(tb) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 507, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "pg_type_typname_nsp_index" DETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists. [SQL: '\nCREATE TABLE celery_tasksetmeta (\n\tid INTEGER NOT NULL, \n\ttaskset_id VARCHAR(155), \n\tresult BYTEA, \n\tdate_done TIMESTAMP WITHOUT TIME ZONE, \n\tPRIMARY KEY (id), \n\tUNIQUE (taskset_id)\n)\n\n'] (Background on this error at: http://sqlalche.me/e/gkpj) exc, exc_info.traceback))) [2018-04-10 13:46:40,712: ERROR/ForkPoolWorker-1] Task setup[cfe2557a-f9a1-4406-86d0-1499166cc1a6] raised unexpected: IntegrityError('(psycopg2.IntegrityError) duplicate key value violates unique constraint "pg_type_typname_nsp_index"\nDETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists.\n',) Traceback (most recent call last): File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 507, in do_execute cursor.execute(statement, parameters) psycopg2.IntegrityError: duplicate key value violates unique constraint "pg_type_typname_nsp_index" DETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/app/trace.py", line 434, in trace_task uuid, retval, task_request, publish_result, File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/base.py", line 152, in mark_as_done self.store_result(task_id, result, state, request=request) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/base.py", line 309, in store_result request=request, **kwargs) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 53, in _inner return fun(*args, **kwargs) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 105, in _store_result session = self.ResultSession() File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/__init__.py", line 99, in ResultSession **self.engine_options) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py", line 59, in session_factory self.prepare_models(engine) File "/home/ubuntu/venv/lib/python3.6/site-packages/celery/backends/database/session.py", line 54, in prepare_models ResultModelBase.metadata.create_all(engine) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/schema.py", line 4004, in create_all tables=tables) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1940, in _run_visitor conn._run_visitor(visitorcallable, element, **kwargs) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1549, in _run_visitor **kwargs).traverse_single(element) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 121, in traverse_single return meth(obj, **kw) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 757, in visit_metadata _is_metadata_operation=True) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/visitors.py", line 121, in traverse_single return meth(obj, **kw) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 791, in visit_table include_foreign_key_constraints=include_foreign_key_constraints File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 948, in execute return meth(self, multiparams, params) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/sql/ddl.py", line 68, in _execute_on_connection return connection._execute_ddl(self, multiparams, params) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1009, in _execute_ddl compiled File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1200, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1413, in _handle_dbapi_exception exc_info File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause reraise(type(exception), exception, tb=exc_tb, cause=cause) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 186, in reraise raise value.with_traceback(tb) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1193, in _execute_context context) File "/home/ubuntu/venv/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 507, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.IntegrityError: (psycopg2.IntegrityError) duplicate key value violates unique constraint "pg_type_typname_nsp_index" DETAIL: Key (typname, typnamespace)=(celery_tasksetmeta, 2200) already exists. [SQL: '\nCREATE TABLE celery_tasksetmeta (\n\tid INTEGER NOT NULL, \n\ttaskset_id VARCHAR(155), \n\tresult BYTEA, \n\tdate_done TIMESTAMP WITHOUT TIME ZONE, \n\tPRIMARY KEY (id), \n\tUNIQUE (taskset_id)\n)\n\n'] (Background on this error at: http://sqlalche.me/e/gkpj) </code></pre></div> <h2 dir="auto">Report</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.2.0rc2 (windowlicker) kombu:4.1.0 py:3.6.3 billiard:3.5.0.3 py-amqp:2.2.2 platform -&gt; system:Linux arch:64bit, ELF imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:db+postgresql://****"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.2.0rc2 (windowlicker) kombu:4.1.0 py:3.6.3 billiard:3.5.0.3 py-amqp:2.2.2 platform -&gt; system:Linux arch:64bit, ELF imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:db+postgresql://**** </code></pre></div> <p dir="auto">SQLAlchemy version 1.2.6</p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected). 5.0.0</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>: 5.0.0</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <p dir="auto">Try to install celery 5.0.0 now that click released version 8.0 - it will install click 8.0 and be broken since click_repl 0.1.6 does not work with click 8.0</p> <p dir="auto">When celery app is then started it produces this output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/bin/python /home/tomasz_kluczkowski/.virtualenvs/celery-experiments/bin/celery -A tasks worker -l INFO -E -c 4 Traceback (most recent call last): File &quot;/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/bin/celery&quot;, line 8, in &lt;module&gt; sys.exit(main()) File &quot;/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/celery/__main__.py&quot;, line 14, in main from celery.bin.celery import main as _main File &quot;/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/celery/bin/celery.py&quot;, line 10, in &lt;module&gt; from celery.bin.amqp import amqp File &quot;/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/celery/bin/amqp.py&quot;, line 7, in &lt;module&gt; from click_repl import register_repl File &quot;/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/click_repl/__init__.py&quot;, line 6, in &lt;module&gt; import click._bashcomplete ModuleNotFoundError: No module named 'click._bashcomplete' Process finished with exit code 1"><pre class="notranslate"><code class="notranslate">/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/bin/python /home/tomasz_kluczkowski/.virtualenvs/celery-experiments/bin/celery -A tasks worker -l INFO -E -c 4 Traceback (most recent call last): File "/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/bin/celery", line 8, in &lt;module&gt; sys.exit(main()) File "/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/celery/__main__.py", line 14, in main from celery.bin.celery import main as _main File "/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/celery/bin/celery.py", line 10, in &lt;module&gt; from celery.bin.amqp import amqp File "/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/celery/bin/amqp.py", line 7, in &lt;module&gt; from click_repl import register_repl File "/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/click_repl/__init__.py", line 6, in &lt;module&gt; import click._bashcomplete ModuleNotFoundError: No module named 'click._bashcomplete' Process finished with exit code 1 </code></pre></div> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: I tried on 3.9, but it has no influence</li> <li><strong>Minimal Celery Version</strong>: 5.0.0 exact</li> <li><strong>Minimal Kombu Version</strong>: N/A</li> <li><strong>Minimal Broker Version</strong>: N/A</li> <li><strong>Minimal Result Backend Version</strong>: N/A</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A</li> <li><strong>Minimal Broker Client Version</strong>: N/A</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> amqp==5.0.5 billiard==3.6.3.0 celery==5.0.0 click==8.0.0 click-didyoumean==0.0.3 click-plugins==1.1.1 click-repl==0.1.6 flower==1.0.1 humanize==0.5.1 kombu==5.0.2 prometheus-client==0.10.1 prompt-toolkit==3.0.17 pytz==2021.1 redis==3.5.3 six==1.15.0 tornado==6.1 vine==5.0.0 wcwidth==0.2.5 <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> pip uninstall celery click pip install celery==5 <p dir="auto">this will now pull celery 5 plus click 8.0 (and all the other stuff celery needs, only click 8.0 is to be fixed)</p> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">celery requires click version which can actually be used with click_repl</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">exception on starting celery app</p> <p dir="auto">Starting celery 5.0.0 with click 8.0 produces an exception as below:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/bin/python /home/tomasz_kluczkowski/.virtualenvs/celery-experiments/bin/celery -A tasks worker -l INFO -E -c 4 Traceback (most recent call last): File &quot;/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/bin/celery&quot;, line 8, in &lt;module&gt; sys.exit(main()) File &quot;/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/celery/__main__.py&quot;, line 14, in main from celery.bin.celery import main as _main File &quot;/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/celery/bin/celery.py&quot;, line 10, in &lt;module&gt; from celery.bin.amqp import amqp File &quot;/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/celery/bin/amqp.py&quot;, line 7, in &lt;module&gt; from click_repl import register_repl File &quot;/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/click_repl/__init__.py&quot;, line 6, in &lt;module&gt; import click._bashcomplete ModuleNotFoundError: No module named 'click._bashcomplete' Process finished with exit code 1"><pre class="notranslate"><code class="notranslate">/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/bin/python /home/tomasz_kluczkowski/.virtualenvs/celery-experiments/bin/celery -A tasks worker -l INFO -E -c 4 Traceback (most recent call last): File "/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/bin/celery", line 8, in &lt;module&gt; sys.exit(main()) File "/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/celery/__main__.py", line 14, in main from celery.bin.celery import main as _main File "/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/celery/bin/celery.py", line 10, in &lt;module&gt; from celery.bin.amqp import amqp File "/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/celery/bin/amqp.py", line 7, in &lt;module&gt; from click_repl import register_repl File "/home/tomasz_kluczkowski/.virtualenvs/celery-experiments/lib/python3.9/site-packages/click_repl/__init__.py", line 6, in &lt;module&gt; import click._bashcomplete ModuleNotFoundError: No module named 'click._bashcomplete' Process finished with exit code 1 </code></pre></div> <p dir="auto">This can be easily fixed by changing requirements for 5.0.0 tag for click to be same as on 5.0.5: click &gt;=7, &lt;8</p>
0
<p dir="auto">It would be great if we could use v-bind with an object of attributes to pass props to a component.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;component is=&quot;component&quot; v-bind=&quot;data&quot;&gt;&lt;/component&gt;"><pre class="notranslate"><code class="notranslate">&lt;component is="component" v-bind="data"&gt;&lt;/component&gt; </code></pre></div> <p dir="auto">Currently we need to explicitly state the props we are passing to the component.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;component is=&quot;component&quot; :prop-a=&quot;propA&quot; :prop-b=&quot;propB&quot;&gt;&lt;/component&gt;"><pre class="notranslate"><code class="notranslate">&lt;component is="component" :prop-a="propA" :prop-b="propB"&gt;&lt;/component&gt; </code></pre></div> <p dir="auto"><a href="http://jsbin.com/yudivokovi/edit?html,js,output" rel="nofollow">http://jsbin.com/yudivokovi/edit?html,js,output</a></p>
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">It's very difficult to read the docs for long time due to light theme. Please made a dark theme toggle</p> <h3 dir="auto">What does the proposed API look like?</h3> <p dir="auto">.</p>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var x = function() { if (!y) { y = 1; } }; x(); var y = null;"><pre class="notranslate"><code class="notranslate">var x = function() { if (!y) { y = 1; } }; x(); var y = null; </code></pre></div> <p dir="auto">The binding object for y:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="constant: true, references: 0, referenced: false,"><pre class="notranslate"><code class="notranslate">constant: true, references: 0, referenced: false, </code></pre></div> <p dir="auto">expected:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="constant: false, references: 2, referenced: true,"><pre class="notranslate"><code class="notranslate">constant: false, references: 2, referenced: true, </code></pre></div>
<p dir="auto">This results in a constant binding:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="bar = 2; var bar = 1;"><pre class="notranslate"><span class="pl-s1">bar</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">bar</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span></pre></div> <p dir="auto">So does this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function foo() { bar = 2; } var bar = 1;"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">bar</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-s1">bar</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span></pre></div> <p dir="auto">According to <code class="notranslate">scope.bindings.bar.constant</code>, but I would expect it to be <code class="notranslate">false</code>.</p> <p dir="auto">(Babel 5.8.25)</p>
1
<p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/20/2020 15:20:45<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<h2 dir="auto">ShardingSphere v5.1.2 XA transaction has errors, When spring boot integrations start running.</h2> <h2 dir="auto">The running logger info:</h2> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/110440830/182355594-0cb85fc9-bc5b-4b9e-86d4-4fe48a5d4209.png"><img src="https://user-images.githubusercontent.com/110440830/182355594-0cb85fc9-bc5b-4b9e-86d4-4fe48a5d4209.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/110440830/182355666-8ffbbe2f-3a20-437d-9f4f-c71da61076fe.png"><img src="https://user-images.githubusercontent.com/110440830/182355666-8ffbbe2f-3a20-437d-9f4f-c71da61076fe.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/110440830/182355753-2a167494-2f19-45dc-8d4c-eb76b7efe59c.png"><img src="https://user-images.githubusercontent.com/110440830/182355753-2a167494-2f19-45dc-8d4c-eb76b7efe59c.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/110440830/182355854-60e938a0-ccac-4864-a93d-a49024ae3ebd.png"><img src="https://user-images.githubusercontent.com/110440830/182355854-60e938a0-ccac-4864-a93d-a49024ae3ebd.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">So, How should I use XA transactions? Thanks a lot.</h2>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">5.1.2</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">ShardingSphere-JDBC</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">atomikos works well under 5.1.2. because it is normal in 5.0.0</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Caused by: java.lang.AbstractMethodError: com.atomikos.icatch.jta.JtaTransactionServicePlugin.beforeInit()V<br> at com.atomikos.icatch.config.Configuration.notifyBeforeInit(Configuration.java:417)<br> at com.atomikos.icatch.config.Configuration.init(Configuration.java:389)<br> at com.atomikos.icatch.config.UserTransactionServiceImp.initialize(UserTransactionServiceImp.java:100)<br> at com.atomikos.icatch.config.UserTransactionServiceImp.init(UserTransactionServiceImp.java:189)<br> at org.apache.shardingsphere.transaction.xa.atomikos.manager.AtomikosTransactionManagerProvider.init<br> (AtomikosTransactionManagerProvider.java:46)<br> at org.apache.shardingsphere.transaction.xa.XAShardingSphereTransactionManager.init<br> (XAShardingSphereTransactionManager.java:56)<br> at org.apache.shardingsphere.transaction.ShardingSphereTransactionManagerEngine.lambda$init$0<br> (ShardingSphereTransactionManagerEngine.java:67)<br> at java.util.Map.forEach(Map.java:630)<br> at org.apache.shardingsphere.transaction.ShardingSphereTransactionManagerEngine.init<br> (ShardingSphereTransactionManagerEngine.java:67)<br> at org.apache.shardingsphere.transaction.context.TransactionContextsBuilder.build(TransactionContextsBuilder.java:54)<br> at org.apache.shardingsphere.mode.manager.cluster.ClusterContextManagerBuilder.createContextManager<br> (ClusterContextManagerBuilder.java:154)<br> at org.apache.shardingsphere.mode.manager.cluster.ClusterContextManagerBuilder.build<br> (ClusterContextManagerBuilder.java:76)</p> <h3 dir="auto">Reason analyze (If you can)</h3> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <p dir="auto">spring boot startup error</p> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
1
<p dir="auto">This issue is created based on the discussion from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="220092580" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/15931" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/15931/hovercard" href="https://github.com/pandas-dev/pandas/pull/15931">#15931</a> following the deprecation of relabeling dicts in <code class="notranslate">groupby.agg</code>. A lot of what is summarized below was already discussed in the previous discussion. I would recommend in particular <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="220092580" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/15931" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/15931/hovercard?comment_id=336139085&amp;comment_type=issue_comment" href="https://github.com/pandas-dev/pandas/pull/15931#issuecomment-336139085">#15931 (comment)</a> where the problems are also clearly stated.</p> <p dir="auto">The motivation behind the deprecation of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="220092580" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/15931" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/15931/hovercard" href="https://github.com/pandas-dev/pandas/pull/15931">#15931</a> was mostly related to bringing a consistent interface for <code class="notranslate">agg()</code> between Series and Dataframe (see also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="189561770" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/14668" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/14668/hovercard" href="https://github.com/pandas-dev/pandas/pull/14668">#14668</a> for context).</p> <p dir="auto">The relabeling functionality with a nested dict has been described by some as being too complex and/or inconsistent and thus deprecated.</p> <p dir="auto">However, this comes at a price: the impossibility to aggregate and rename at the same time leads to very annoying issues and some backward incompatibility where no sensible workaround is available:</p> <ul dir="auto"> <li><em>[annoying]</em> no more control over the names of the resulting columns</li> <li><em>[annoying]</em> you need to find a way to rename the MultiIndex <em>after</em> performing the aggregation, requiring to keep track of the order of columns at two places in the code.... not practical at all and sometimes downright impossible (cases below).</li> <li><g-emoji class="g-emoji" alias="warning" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/26a0.png">⚠️</g-emoji> <em><strong>[breaking]</strong></em> cannot apply more than one callable with the same internal name on the same input column. This results in two sub-cases: <ul dir="auto"> <li><em><strong>[breaking]</strong></em> you can't apply anymore two or more lambda aggregators on the same column</li> <li><em><strong>[breaking]</strong></em> you can't apply anymore two or more aggregators from partial functions unless you alter their hidden <code class="notranslate">__name__</code> attribute</li> </ul> </li> </ul> <h2 dir="auto">Example</h2> <p dir="auto"><em>(please note, this is a crafted example for the purpose of demonstrating the problem in as short a code as possible, but all of the demonstrated issues here did bite me in real life since the change, and in situations not as simple as here)</em></p> <h3 dir="auto">Input Dataframe</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mydf = pd.DataFrame( { 'cat': ['A', 'A', 'A', 'B', 'B', 'C'], 'energy': [1.8, 1.95, 2.04, 1.25, 1.6, 1.01], 'distance': [1.2, 1.5, 1.74, 0.82, 1.01, 0.6] }, index=range(6) )"><pre class="notranslate"><span class="pl-s1">mydf</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>( { <span class="pl-s">'cat'</span>: [<span class="pl-s">'A'</span>, <span class="pl-s">'A'</span>, <span class="pl-s">'A'</span>, <span class="pl-s">'B'</span>, <span class="pl-s">'B'</span>, <span class="pl-s">'C'</span>], <span class="pl-s">'energy'</span>: [<span class="pl-c1">1.8</span>, <span class="pl-c1">1.95</span>, <span class="pl-c1">2.04</span>, <span class="pl-c1">1.25</span>, <span class="pl-c1">1.6</span>, <span class="pl-c1">1.01</span>], <span class="pl-s">'distance'</span>: [<span class="pl-c1">1.2</span>, <span class="pl-c1">1.5</span>, <span class="pl-c1">1.74</span>, <span class="pl-c1">0.82</span>, <span class="pl-c1">1.01</span>, <span class="pl-c1">0.6</span>] }, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-en">range</span>(<span class="pl-c1">6</span>) )</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" cat distance energy 0 A 1.20 1.80 1 A 1.50 1.95 2 A 1.74 2.04 3 B 0.82 1.25 4 B 1.01 1.60 5 C 0.60 1.01"><pre class="notranslate"><code class="notranslate"> cat distance energy 0 A 1.20 1.80 1 A 1.50 1.95 2 A 1.74 2.04 3 B 0.82 1.25 4 B 1.01 1.60 5 C 0.60 1.01 </code></pre></div> <h3 dir="auto">Before:</h3> <p dir="auto">easy to write and read, and works as expected</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import statsmodels.robust as smrb from functools import partial # median absolute deviation as a partial function # in order to demonstrate the issue with partial functions as aggregators mad_c1 = partial(smrb.mad, c=1) # renaming and specifying the aggregators at the same time # note that I want to choose the resulting column names myself # for example &quot;total_xxxx&quot; instead of just &quot;sum&quot; mydf_agg = mydf.groupby('cat').agg({ 'energy': { 'total_energy': 'sum', 'energy_p98': lambda x: np.percentile(x, 98), # lambda 'energy_p17': lambda x: np.percentile(x, 17), # lambda }, 'distance': { 'total_distance': 'sum', 'average_distance': 'mean', 'distance_mad': smrb.mad, # original function 'distance_mad_c1': mad_c1, # partial function wrapping the original function }, })"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">statsmodels</span>.<span class="pl-s1">robust</span> <span class="pl-k">as</span> <span class="pl-s1">smrb</span> <span class="pl-k">from</span> <span class="pl-s1">functools</span> <span class="pl-k">import</span> <span class="pl-s1">partial</span> <span class="pl-c"># median absolute deviation as a partial function</span> <span class="pl-c"># in order to demonstrate the issue with partial functions as aggregators</span> <span class="pl-s1">mad_c1</span> <span class="pl-c1">=</span> <span class="pl-en">partial</span>(<span class="pl-s1">smrb</span>.<span class="pl-s1">mad</span>, <span class="pl-s1">c</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c"># renaming and specifying the aggregators at the same time</span> <span class="pl-c"># note that I want to choose the resulting column names myself</span> <span class="pl-c"># for example "total_xxxx" instead of just "sum"</span> <span class="pl-s1">mydf_agg</span> <span class="pl-c1">=</span> <span class="pl-s1">mydf</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'cat'</span>).<span class="pl-en">agg</span>({ <span class="pl-s">'energy'</span>: { <span class="pl-s">'total_energy'</span>: <span class="pl-s">'sum'</span>, <span class="pl-s">'energy_p98'</span>: <span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-s1">np</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">x</span>, <span class="pl-c1">98</span>), <span class="pl-c"># lambda</span> <span class="pl-s">'energy_p17'</span>: <span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-s1">np</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">x</span>, <span class="pl-c1">17</span>), <span class="pl-c"># lambda</span> }, <span class="pl-s">'distance'</span>: { <span class="pl-s">'total_distance'</span>: <span class="pl-s">'sum'</span>, <span class="pl-s">'average_distance'</span>: <span class="pl-s">'mean'</span>, <span class="pl-s">'distance_mad'</span>: <span class="pl-s1">smrb</span>.<span class="pl-s1">mad</span>, <span class="pl-c"># original function</span> <span class="pl-s">'distance_mad_c1'</span>: <span class="pl-s1">mad_c1</span>, <span class="pl-c"># partial function wrapping the original function</span> }, })</pre></div> <p dir="auto">results in</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" energy distance total_energy energy_p98 energy_p17 total_distance average_distance distance_mad distance_mad_c1 cat A 5.79 2.0364 1.8510 4.44 1.480 0.355825 0.240 B 2.85 1.5930 1.3095 1.83 0.915 0.140847 0.095 C 1.01 1.0100 1.0100 0.60 0.600 0.000000 0.000"><pre class="notranslate"><code class="notranslate"> energy distance total_energy energy_p98 energy_p17 total_distance average_distance distance_mad distance_mad_c1 cat A 5.79 2.0364 1.8510 4.44 1.480 0.355825 0.240 B 2.85 1.5930 1.3095 1.83 0.915 0.140847 0.095 C 1.01 1.0100 1.0100 0.60 0.600 0.000000 0.000 </code></pre></div> <p dir="auto">and all is left is:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# get rid of the first MultiIndex level in a pretty straightforward way mydf_agg.columns = mydf_agg.columns.droplevel(level=0)"><pre class="notranslate"><span class="pl-c"># get rid of the first MultiIndex level in a pretty straightforward way</span> <span class="pl-s1">mydf_agg</span>.<span class="pl-s1">columns</span> <span class="pl-c1">=</span> <span class="pl-s1">mydf_agg</span>.<span class="pl-s1">columns</span>.<span class="pl-en">droplevel</span>(<span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)</pre></div> <p dir="auto">Happy dance praising pandas 💃 🕺 !</p> <h3 dir="auto">After</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import statsmodels.robust as smrb from functools import partial # median absolute deviation as a partial function # in order to demonstrate the issue with partial functions as aggregators mad_c1 = partial(smrb.mad, c=1) # no way of choosing the destination's column names... mydf_agg = mydf.groupby('cat').agg({ 'energy': [ 'sum', lambda x: np.percentile(x, 98), # lambda lambda x: np.percentile(x, 17), # lambda ], 'distance': [ 'sum', 'mean', smrb.mad, # original function mad_c1, # partial function wrapping the original function ], })"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">statsmodels</span>.<span class="pl-s1">robust</span> <span class="pl-k">as</span> <span class="pl-s1">smrb</span> <span class="pl-k">from</span> <span class="pl-s1">functools</span> <span class="pl-k">import</span> <span class="pl-s1">partial</span> <span class="pl-c"># median absolute deviation as a partial function</span> <span class="pl-c"># in order to demonstrate the issue with partial functions as aggregators</span> <span class="pl-s1">mad_c1</span> <span class="pl-c1">=</span> <span class="pl-en">partial</span>(<span class="pl-s1">smrb</span>.<span class="pl-s1">mad</span>, <span class="pl-s1">c</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c"># no way of choosing the destination's column names...</span> <span class="pl-s1">mydf_agg</span> <span class="pl-c1">=</span> <span class="pl-s1">mydf</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'cat'</span>).<span class="pl-en">agg</span>({ <span class="pl-s">'energy'</span>: [ <span class="pl-s">'sum'</span>, <span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-s1">np</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">x</span>, <span class="pl-c1">98</span>), <span class="pl-c"># lambda</span> <span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-s1">np</span>.<span class="pl-en">percentile</span>(<span class="pl-s1">x</span>, <span class="pl-c1">17</span>), <span class="pl-c"># lambda</span> ], <span class="pl-s">'distance'</span>: [ <span class="pl-s">'sum'</span>, <span class="pl-s">'mean'</span>, <span class="pl-s1">smrb</span>.<span class="pl-s1">mad</span>, <span class="pl-c"># original function</span> <span class="pl-s1">mad_c1</span>, <span class="pl-c"># partial function wrapping the original function</span> ], })</pre></div> <p dir="auto">The above breaks because the lambda functions will all result in columns named <code class="notranslate">&lt;lambda&gt;</code> which results in</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SpecificationError: Function names must be unique, found multiple named &lt;lambda&gt;"><pre class="notranslate"><code class="notranslate">SpecificationError: Function names must be unique, found multiple named &lt;lambda&gt; </code></pre></div> <p dir="auto"><strong>Backward incompatible regression: one cannot apply two different lambdas to the same original column anymore.</strong></p> <p dir="auto">If one removes the <code class="notranslate">lambda x: np.percentile(x, 98)</code> from above, we get the same issue with the partial function which inherits the function name from the original function:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SpecificationError: Function names must be unique, found multiple named mad"><pre class="notranslate"><code class="notranslate">SpecificationError: Function names must be unique, found multiple named mad </code></pre></div> <p dir="auto">Finally, after overwriting the <code class="notranslate">__name__</code> attribute of the partial (for example with <code class="notranslate">mad_c1.__name__ = 'mad_c1'</code>) we get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" energy distance sum &lt;lambda&gt; sum mean mad mad_c1 cat A 5.79 1.8510 4.44 1.480 0.355825 0.240 B 2.85 1.3095 1.83 0.915 0.140847 0.095 C 1.01 1.0100 0.60 0.600 0.000000 0.000"><pre class="notranslate"><code class="notranslate"> energy distance sum &lt;lambda&gt; sum mean mad mad_c1 cat A 5.79 1.8510 4.44 1.480 0.355825 0.240 B 2.85 1.3095 1.83 0.915 0.140847 0.095 C 1.01 1.0100 0.60 0.600 0.000000 0.000 </code></pre></div> <p dir="auto">with still</p> <ul dir="auto"> <li>one column missing (98th percentile)</li> <li>the handling of the MultiIndex columns</li> <li>and the renaming of the columns</li> </ul> <p dir="auto">to deal with in separate step.</p> <p dir="auto">There is no control possible for the column names after aggregation, the best we can get in an automated way is some combination of original column name and the <em>aggregate function's name</em> like this:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mydf_agg.columns = ['_'.join(col) for col in mydf_agg.columns]"><pre class="notranslate"><span class="pl-s1">mydf_agg</span>.<span class="pl-s1">columns</span> <span class="pl-c1">=</span> [<span class="pl-s">'_'</span>.<span class="pl-en">join</span>(<span class="pl-s1">col</span>) <span class="pl-k">for</span> <span class="pl-s1">col</span> <span class="pl-c1">in</span> <span class="pl-s1">mydf_agg</span>.<span class="pl-s1">columns</span>]</pre></div> <p dir="auto">which results in:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" energy_sum energy_&lt;lambda&gt; distance_sum distance_mean distance_mad distance_mad_c1 cat A 5.79 1.8510 4.44 1.480 0.355825 0.240 B 2.85 1.3095 1.83 0.915 0.140847 0.095 C 1.01 1.0100 0.60 0.600 0.000000 0.000"><pre class="notranslate"><code class="notranslate"> energy_sum energy_&lt;lambda&gt; distance_sum distance_mean distance_mad distance_mad_c1 cat A 5.79 1.8510 4.44 1.480 0.355825 0.240 B 2.85 1.3095 1.83 0.915 0.140847 0.095 C 1.01 1.0100 0.60 0.600 0.000000 0.000 </code></pre></div> <p dir="auto">and if you really need to have different names, you can do it like this:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mydf_agg.rename({ &quot;energy_sum&quot;: &quot;total_energy&quot;, &quot;energy_&lt;lambda&gt;&quot;: &quot;energy_p17&quot;, &quot;distance_sum&quot;: &quot;total_distance&quot;, &quot;distance_mean&quot;: &quot;average_distance&quot; }, inplace=True)"><pre class="notranslate"><span class="pl-s1">mydf_agg</span>.<span class="pl-en">rename</span>({ <span class="pl-s">"energy_sum"</span>: <span class="pl-s">"total_energy"</span>, <span class="pl-s">"energy_&lt;lambda&gt;"</span>: <span class="pl-s">"energy_p17"</span>, <span class="pl-s">"distance_sum"</span>: <span class="pl-s">"total_distance"</span>, <span class="pl-s">"distance_mean"</span>: <span class="pl-s">"average_distance"</span> }, <span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div> <p dir="auto">but that means that you need to be careful to keep the renaming code (which must now be located at another place in the code) in sync with the code where the aggregation is defined...</p> <p dir="auto">Sad pandas user <g-emoji class="g-emoji" alias="cry" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f622.png">😢</g-emoji> (which still loves pandas of course)</p> <hr> <p dir="auto">I am all in for consistency, and at the same time I deeply regret the deprecation of the <em>aggregate and rename</em> functionality. I hope the examples above make the pain points clear.</p> <hr> <h3 dir="auto">Possible solutions</h3> <ul dir="auto"> <li>Un-deprecate the dict-of-dict relabeling functionality</li> <li>Provide another API to be able to do it (but why should there be two methods for the same main purpose, namely aggregation?)</li> <li>??? (open to suggestions)</li> </ul> <hr> <p dir="auto"><em>Optional read:</em></p> <p dir="auto">With respect to the aforementioned discussion in the pull request which has been going on already for a few months, I only recently realized one of the reasons why I am so bothered by this deprecation: "aggregate and rename" is a natural thing to do with GROUP BY aggregations in SQL since in SQL you usually provide the destination column name directly next to the aggregation expression, e.g. <code class="notranslate">SELECT col1, avg(col2) AS col2_mean, stddev(col2) AS col2_var FROM mytable GROUP BY col1</code>.</p> <p dir="auto">I'm <strong><em>not</em></strong> saying that Pandas should necessarily provide the same functionalities as SQL of course. But the examples provided above demonstrate why the dict-of-dict API was in my opinion a clean and simple solution to many use-cases.</p> <p dir="auto">(* I don't personally agree that the dict-of-dict approach is complex.)</p>
<p dir="auto"><code class="notranslate">astype/convert_objects</code> should be able to do this type of coercion from string complex looking</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [45]: Series(['1.0+5j','1.5-3j']).apply(lambda x: np.complex(x)) Out[45]: 0 (1+5j) 1 (1.5-3j) dtype: complex128"><pre class="notranslate"><code class="notranslate">In [45]: Series(['1.0+5j','1.5-3j']).apply(lambda x: np.complex(x)) Out[45]: 0 (1+5j) 1 (1.5-3j) dtype: complex128 </code></pre></div> <p dir="auto"><a href="http://stackoverflow.com/questions/18919699/python-pandas-complex-number/18919965#18919965" rel="nofollow">http://stackoverflow.com/questions/18919699/python-pandas-complex-number/18919965#18919965</a></p>
0
<p dir="auto">Hi, the following attempt to take the gradient of a function involving a matrix exponential</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import jax.numpy as jnp import jax from jax.scipy.linalg import expm def foo(mat): return jnp.sum(expm(mat)) grad = jax.grad(foo)(jnp.eye(2))"><pre class="notranslate"><code class="notranslate">import jax.numpy as jnp import jax from jax.scipy.linalg import expm def foo(mat): return jnp.sum(expm(mat)) grad = jax.grad(foo)(jnp.eye(2)) </code></pre></div> <p dir="auto">is failing with the following assertion error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/anaconda3/envs/envname/lib/python3.7/site-packages/jax/interpreters/ad.py in linearize(traceable, *primals, **kwargs) 96 pval_primals, pval_tangents = tree_unflatten(out_tree(), out_pvals) 97 aval_primals, const_primals = unzip2(pval_primals) ---&gt; 98 assert all(aval_primal is None for aval_primal in aval_primals) 99 if not has_aux: 100 return const_primals, pval_tangents, jaxpr, consts AssertionError: "><pre class="notranslate"><code class="notranslate">~/anaconda3/envs/envname/lib/python3.7/site-packages/jax/interpreters/ad.py in linearize(traceable, *primals, **kwargs) 96 pval_primals, pval_tangents = tree_unflatten(out_tree(), out_pvals) 97 aval_primals, const_primals = unzip2(pval_primals) ---&gt; 98 assert all(aval_primal is None for aval_primal in aval_primals) 99 if not has_aux: 100 return const_primals, pval_tangents, jaxpr, consts AssertionError: </code></pre></div> <p dir="auto">I'm using <code class="notranslate">jax.__version__ == 0.1.62</code> and <code class="notranslate">jaxlib.__version__ == 0.1.43</code>, thanks!</p>
<p dir="auto">The pull request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="554529148" data-permission-text="Title is private" data-url="https://github.com/google/jax/issues/2062" data-hovercard-type="pull_request" data-hovercard-url="/google/jax/pull/2062/hovercard" href="https://github.com/google/jax/pull/2062">#2062</a> implements the jvp of the matrix exponential by using the Fréchet derivative. I think the vjp can be easily added by transposing the input matrix in <code class="notranslate">expm_frechet</code>:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="defvjp(expm, lambda g, ans, matrix: expm_frechet(_T(matrix), g, compute_expm=False))"><pre class="notranslate"><span class="pl-en">defvjp</span>(<span class="pl-s1">expm</span>, <span class="pl-k">lambda</span> <span class="pl-s1">g</span>, <span class="pl-s1">ans</span>, <span class="pl-s1">matrix</span>: <span class="pl-en">expm_frechet</span>(<span class="pl-en">_T</span>(<span class="pl-s1">matrix</span>), <span class="pl-s1">g</span>, <span class="pl-s1">compute_expm</span><span class="pl-c1">=</span><span class="pl-c1">False</span>))</pre></div> <p dir="auto">I can test and implement this solution if <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="554529148" data-permission-text="Title is private" data-url="https://github.com/google/jax/issues/2062" data-hovercard-type="pull_request" data-hovercard-url="/google/jax/pull/2062/hovercard" href="https://github.com/google/jax/pull/2062">#2062</a> is merged.</p>
1
<p dir="auto">Glide Version: 4.2.0<br> Integration libraries: OkHttp3<br> Device/Android Version: SM-G5510;Android 6.0.1,level 23</p> <p dir="auto">Wrap Code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public void onlyLoadAsGifBitmap(Context context, final View imageView, final String url, int width, int height, final int placeHoldId){ if(isActivityDestroy(context)){ return; } GlideApp.with(context).asGif().load(url).override(width, height).into(new SimpleTarget&lt;GifDrawable&gt;() { @Override public void onResourceReady(GifDrawable resource, Transition&lt;? super GifDrawable&gt; transition) { if(resource==null){ imageView.setBackgroundResource(placeHoldId); return; } if(imageView instanceof ImageView){ ((ImageView) imageView).setImageDrawable(resource); }else { imageView.setBackground(resource); } } @Override public void onLoadFailed( Drawable errorDrawable) { imageView.setBackgroundResource(placeHoldId); } }); }"><pre class="notranslate"><code class="notranslate">public void onlyLoadAsGifBitmap(Context context, final View imageView, final String url, int width, int height, final int placeHoldId){ if(isActivityDestroy(context)){ return; } GlideApp.with(context).asGif().load(url).override(width, height).into(new SimpleTarget&lt;GifDrawable&gt;() { @Override public void onResourceReady(GifDrawable resource, Transition&lt;? super GifDrawable&gt; transition) { if(resource==null){ imageView.setBackgroundResource(placeHoldId); return; } if(imageView instanceof ImageView){ ((ImageView) imageView).setImageDrawable(resource); }else { imageView.setBackground(resource); } } @Override public void onLoadFailed( Drawable errorDrawable) { imageView.setBackgroundResource(placeHoldId); } }); } </code></pre></div> <p dir="auto">Called Code:</p> <p dir="auto"><code class="notranslate">onlyLoadAsGifBitmap(LauncherUI.this, tiaImageView, imageUrl, UITools.getWidth(), UITools.getHeight(), R.drawable.flash);</code></p> <p dir="auto">Crash Report:</p> <p dir="auto"><code class="notranslate">java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference com.bumptech.glide.load.resource.gif.GifFrameLoader.int getWidth()(SourceFile:126) com.bumptech.glide.load.resource.gif.GifDrawable.int getIntrinsicWidth()(SourceFile:215) android.widget.ImageView.invalidateDrawable(ImageView.java:243) android.graphics.drawable.Drawable.invalidateSelf(Drawable.java:844) android.graphics.drawable.Drawable.setVisible(Drawable.java:1575) com.bumptech.glide.load.resource.gif.GifDrawable.boolean setVisible(boolean,boolean)(SourceFile:210) android.widget.ImageView.onDetachedFromWindow(ImageView.java:1511) android.view.View.dispatchDetachedFromWindow(View.java:15916) android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3377) android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3377) android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3377) android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3377) android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3377) android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3377) android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3377) android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3377) android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3838) android.view.ViewRootImpl.doDie(ViewRootImpl.java:7087) android.view.ViewRootImpl.die(ViewRootImpl.java:7060) android.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:424) android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:379) android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:140) android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5190) android.app.ActivityThread.access$1700(ActivityThread.java:229) android.app.ActivityThread$H.handleMessage(ActivityThread.java:1880) android.os.Handler.dispatchMessage(Handler.java:102) android.os.Looper.loop(Looper.java:148) android.app.ActivityThread.main(ActivityThread.java:7410) java.lang.reflect.Method.invoke(Native Method) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) </code></p> <p dir="auto">now the crash occurs less,only affecting two users.when readed <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="252315585" data-permission-text="Title is private" data-url="https://github.com/bumptech/glide/issues/2282" data-hovercard-type="issue" data-hovercard-url="/bumptech/glide/issues/2282/hovercard" href="https://github.com/bumptech/glide/issues/2282">#2282</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="249290516" data-permission-text="Title is private" data-url="https://github.com/bumptech/glide/issues/2231" data-hovercard-type="issue" data-hovercard-url="/bumptech/glide/issues/2231/hovercard" href="https://github.com/bumptech/glide/issues/2231">#2231</a> ,i find not same like those,i only load gifDrawable for the view,instead of using cross-fade animation. i read this <a href="https://stackoverflow.com/questions/40450023/caused-by-java-lang-nullpointerexception-attempt-to-invoke-virtual-method-int" rel="nofollow">answer</a> and souce code related to gifDrawable ,but i still do'nt kown detail reason..</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference at com.bumptech.glide.load.resource.gif.GifFrameLoader.getWidth(GifFrameLoader.java:127) at com.bumptech.glide.load.resource.gif.GifDrawable.getIntrinsicWidth(GifDrawable.java:215) at android.widget.ImageView.invalidateDrawable(ImageView.java:232) at android.graphics.drawable.Drawable.invalidateSelf(Drawable.java:385) at android.graphics.drawable.Drawable.setVisible(Drawable.java:764) at com.bumptech.glide.load.resource.gif.GifDrawable.setVisible(GifDrawable.java:210) at android.widget.ImageView.onDetachedFromWindow(ImageView.java:1485) at android.view.View.dispatchDetachedFromWindow(View.java:14555) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3063) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3063) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3063) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:4603) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:4576) at android.view.ViewGroup.removeView(ViewGroup.java:4507) at android.support.v4.view.ViewPager.removeView(ViewPager.java:1499) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1520) at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1740) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1809) at android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3217) at android.support.v4.app.FragmentManagerImpl.dispatchDestroy(FragmentManager.java:3208) at android.support.v4.app.FragmentController.dispatchDestroy(FragmentController.java:262) at android.support.v4.app.FragmentActivity.onDestroy(FragmentActivity.java:350) at android.support.v7.app.AppCompatActivity.onDestroy(AppCompatActivity.java:209) at org.thoughtcrime.securesms.PassphraseRequiredActionBarActivity.onDestroy(PassphraseRequiredActionBarActivity.java:83) at android.app.Activity.performDestroy(Activity.java:6407) at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1142) at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3818)"><pre class="notranslate"><code class="notranslate"> Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference at com.bumptech.glide.load.resource.gif.GifFrameLoader.getWidth(GifFrameLoader.java:127) at com.bumptech.glide.load.resource.gif.GifDrawable.getIntrinsicWidth(GifDrawable.java:215) at android.widget.ImageView.invalidateDrawable(ImageView.java:232) at android.graphics.drawable.Drawable.invalidateSelf(Drawable.java:385) at android.graphics.drawable.Drawable.setVisible(Drawable.java:764) at com.bumptech.glide.load.resource.gif.GifDrawable.setVisible(GifDrawable.java:210) at android.widget.ImageView.onDetachedFromWindow(ImageView.java:1485) at android.view.View.dispatchDetachedFromWindow(View.java:14555) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3063) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3063) at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:3063) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:4603) at android.view.ViewGroup.removeViewInternal(ViewGroup.java:4576) at android.view.ViewGroup.removeView(ViewGroup.java:4507) at android.support.v4.view.ViewPager.removeView(ViewPager.java:1499) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1520) at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1740) at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1809) at android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3217) at android.support.v4.app.FragmentManagerImpl.dispatchDestroy(FragmentManager.java:3208) at android.support.v4.app.FragmentController.dispatchDestroy(FragmentController.java:262) at android.support.v4.app.FragmentActivity.onDestroy(FragmentActivity.java:350) at android.support.v7.app.AppCompatActivity.onDestroy(AppCompatActivity.java:209) at org.thoughtcrime.securesms.PassphraseRequiredActionBarActivity.onDestroy(PassphraseRequiredActionBarActivity.java:83) at android.app.Activity.performDestroy(Activity.java:6407) at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1142) at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3818) </code></pre></div> <p dir="auto">I'm using Glide 4.3.0 to load GIFs into a RecyclerView. Some users are reporting that if they scroll quickly and then close the activity, they get a crash.</p> <p dir="auto"><strong>Glide Version</strong>: 4.3.0</p>
1
<p dir="auto">The "fetch" function does not allow to modify the "host" in the request header, resulting in the inability to implement the proxy request of the reverse proxy server.</p> <p dir="auto">This can be done in nodejs.</p> <p dir="auto">This is not possible in deno.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { serve } from &quot;https://deno.land/[email protected]/http/mod.ts&quot;; import { assertEquals } from &quot;https://deno.land/[email protected]/testing/asserts.ts&quot;; Deno.test(&quot;http-request-host&quot;, async () =&gt; { const ac = new AbortController(); const { signal } = ac; const p = serve(async (req) =&gt; new Response(req.url), { signal, port: 5000, }); const response = await fetch(&quot;http://127.0.0.1:5000/&quot;, { headers: { host: &quot;localhost.hello.world:9900&quot; }, }); const text = await response.text(); assertEquals(text, &quot;http://localhost.hello.world:9900/&quot;); ac.abort(); await p; }); "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">serve</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/[email protected]/http/mod.ts"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">assertEquals</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/[email protected]/testing/asserts.ts"</span><span class="pl-kos">;</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">"http-request-host"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">ac</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">AbortController</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> signal <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">ac</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">p</span> <span class="pl-c1">=</span> <span class="pl-en">serve</span><span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-k">new</span> <span class="pl-smi">Response</span><span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">.</span><span class="pl-c1">url</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> signal<span class="pl-kos">,</span> <span class="pl-c1">port</span>: <span class="pl-c1">5000</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-s">"http://127.0.0.1:5000/"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">headers</span>: <span class="pl-kos">{</span> <span class="pl-c1">host</span>: <span class="pl-s">"localhost.hello.world:9900"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">text</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-en">text</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">assertEquals</span><span class="pl-kos">(</span><span class="pl-s1">text</span><span class="pl-kos">,</span> <span class="pl-s">"http://localhost.hello.world:9900/"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">ac</span><span class="pl-kos">.</span><span class="pl-en">abort</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">p</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" http-request-host ... FAILED (30ms) ERRORS http-request-host =&gt; ./test.ts:4:6 error: AssertionError: Values are not equal: [Diff] Actual / Expected - http://127.0.0.1:5000/ + http://localhost.hello.world:9900/ throw new AssertionError(message); ^ at assertEquals (https://deno.land/[email protected]/testing/asserts.ts:176:9) at file:///C:/Documents/test/test.ts:15:5 FAILURES http-request-host =&gt; ./test.ts:4:6 test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out (59ms) error: Test failed "><pre class="notranslate"><code class="notranslate"> http-request-host ... FAILED (30ms) ERRORS http-request-host =&gt; ./test.ts:4:6 error: AssertionError: Values are not equal: [Diff] Actual / Expected - http://127.0.0.1:5000/ + http://localhost.hello.world:9900/ throw new AssertionError(message); ^ at assertEquals (https://deno.land/[email protected]/testing/asserts.ts:176:9) at file:///C:/Documents/test/test.ts:15:5 FAILURES http-request-host =&gt; ./test.ts:4:6 test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out (59ms) error: Test failed </code></pre></div>
<p dir="auto">Hey, I've look for the similar problem in stackoverflow and here in the repository but I haven't found anything. I hope it's not a duplicate.</p> <p dir="auto">I'm running subprocess command using code like this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const process = Deno.run({ cmd, stdout: &quot;piped&quot;, stderr: &quot;piped&quot; }); const buffer = await process.output(); const str = new TextDecoder().decode(buffer); console.log(str); process.close();"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">process</span> <span class="pl-c1">=</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-kos">{</span> cmd<span class="pl-kos">,</span> <span class="pl-c1">stdout</span>: <span class="pl-s">"piped"</span><span class="pl-kos">,</span> <span class="pl-c1">stderr</span>: <span class="pl-s">"piped"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">buffer</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-en">output</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">TextDecoder</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">decode</span><span class="pl-kos">(</span><span class="pl-s1">buffer</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">str</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">The command that I'm running is "persistent"/"not exiting" and it doesn't close but just waits for the connections and then it displays some data to the output. However, Deno expects subprocess to close and then display some data. I've also tried iterating over <code class="notranslate">stdout</code> with <code class="notranslate">Deno.iter</code> but the same effect - nothing is logged to the console.</p> <p dir="auto">How can I run "persistent"/"not exiting" subprocess and still be able to get output whenever something is written to stdout?</p>
0
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.7</p> <p dir="auto"><strong>Issue</strong></p> <p dir="auto">I am developing with Rails and I want to use Typescript to compile to Javascript. In IntelliJ IDEA I have enabled the compilation of Typescript to Javascript.<br> The files are properly compiled with both <code class="notranslate">SourceName.ts</code>, <code class="notranslate">SourceName.js</code> and <code class="notranslate">SourceName.js.map</code> files generated. However, when I access the <code class="notranslate">.ts</code> file in Chrome debugger, the source code I see is the compiled Javascript, not typescript.</p> <p dir="auto">I've tried putting them in separate folders and it still doesn't work. Only thing that works is building inline sourcemaps in the compiler, but that produces weirdly named files in the root structure of the project.</p> <p dir="auto">EDIT: SourceMaps are properly compiled, the <code class="notranslate">.ts</code> file shows in the Chrome file tree, but has the same content as the .js file</p> <p dir="auto">EDIT 2: I've tried compiling using the npm package <code class="notranslate">typescript</code>. I created a test file called <code class="notranslate">Testing.ts</code> and used it to demonstrate the problem:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Testing{ public static MakeWarn(){ console.log(&quot;abc&quot;); } }"><pre class="notranslate"><code class="notranslate">class Testing{ public static MakeWarn(){ console.log("abc"); } } </code></pre></div> <p dir="auto">I ran <code class="notranslate">tsc Testing.ts --sourceMap</code> which generated two files</p> <ul dir="auto"> <li><code class="notranslate">Testing.js</code></li> <li><code class="notranslate">Testing.js.map</code></li> </ul> <p dir="auto">The contents are as follows:</p> <p dir="auto">Testing.js</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var Testing = (function () { function Testing() { } Testing.MakeWarn = function () { console.log(&quot;abc&quot;); }; return Testing; }()); //# sourceMappingURL=Testing.js.map"><pre class="notranslate"><code class="notranslate">var Testing = (function () { function Testing() { } Testing.MakeWarn = function () { console.log("abc"); }; return Testing; }()); //# sourceMappingURL=Testing.js.map </code></pre></div> <p dir="auto">Testing.js.map</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{&quot;version&quot;:3,&quot;file&quot;:&quot;Testing.js&quot;,&quot;sourceRoot&quot;:&quot;&quot;,&quot;sources&quot;:[&quot;Testing.ts&quot;],&quot;names&quot;:[],&quot;mappings&quot;:&quot;AAAA;IAAA;IAIA,CAAC;IAHiB,gBAAQ,GAAtB;QACI,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IACL,cAAC;AAAD,CAAC,AAJD,IAIC&quot;}"><pre class="notranslate"><code class="notranslate">{"version":3,"file":"Testing.js","sourceRoot":"","sources":["Testing.ts"],"names":[],"mappings":"AAAA;IAAA;IAIA,CAAC;IAHiB,gBAAQ,GAAtB;QACI,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IACL,cAAC;AAAD,CAAC,AAJD,IAIC"} </code></pre></div> <p dir="auto">To my knowledge, these are properly defined <code class="notranslate">.js</code> and <code class="notranslate">.js.map</code> files.</p> <p dir="auto">When I open the link in Chrome, I get <code class="notranslate">Testing.self.js</code> and <code class="notranslate">Testing.ts</code> files which both have contents</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var Testing = (function () { function Testing() { } Testing.MakeWarn = function () { console.log(&quot;abc&quot;); }; return Testing; }()); //# sourceMappingURL=Testing.js.map"><pre class="notranslate"><code class="notranslate">var Testing = (function () { function Testing() { } Testing.MakeWarn = function () { console.log("abc"); }; return Testing; }()); //# sourceMappingURL=Testing.js.map </code></pre></div> <p dir="auto">This is not the expected behaviour. To my understanding, <code class="notranslate">.ts</code> file should look like the original source in Chrome debugger. And I should be able to put a breakpoint.</p> <p dir="auto"><strong>Expected behavior:</strong></p> <p dir="auto">Should have different files for .ts and .js</p> <p dir="auto"><strong>Actual behavior:</strong></p> <p dir="auto">In Chrome and Firefox Developer Edition has the same files for .ts and .js</p>
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.7</p> <p dir="auto"><strong>Issue</strong></p> <p dir="auto">I am developing with Rails and I want to use Typescript to compile to Javascript. In IntelliJ IDEA I have enabled the compilation of Typescript to Javascript.<br> The files are properly compiled with both <code class="notranslate">SourceName.ts</code>, <code class="notranslate">SourceName.js</code> and <code class="notranslate">SourceName.js.map</code> files generated. However, when I access the <code class="notranslate">.ts</code> file in Chrome debugger, the source code I see is the compiled Javascript, not typescript.</p> <p dir="auto">I've tried putting them in separate folders and it still doesn't work. Only thing that works is building inline sourcemaps in the compiler, but that produces weirdly named files in the root structure of the project.</p> <p dir="auto">SourceMaps are properly compiled, the <code class="notranslate">.ts</code> file shows in the Chrome file tree, but has the same content as the .js file</p> <p dir="auto">I've tried compiling using the npm package <code class="notranslate">typescript</code>. I created a test file called <code class="notranslate">Testing.ts</code> and used it to demonstrate the problem:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Testing{ public static MakeWarn(){ console.log(&quot;abc&quot;); } }"><pre class="notranslate"><code class="notranslate">class Testing{ public static MakeWarn(){ console.log("abc"); } } </code></pre></div> <p dir="auto">I ran <code class="notranslate">tsc Testing.ts --sourceMap</code> which generated two files</p> <ul dir="auto"> <li><code class="notranslate">Testing.js</code></li> <li><code class="notranslate">Testing.js.map</code></li> </ul> <p dir="auto">The contents are as follows:</p> <p dir="auto">Testing.js</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var Testing = (function () { function Testing() { } Testing.MakeWarn = function () { console.log(&quot;abc&quot;); }; return Testing; }()); //# sourceMappingURL=Testing.js.map"><pre class="notranslate"><code class="notranslate">var Testing = (function () { function Testing() { } Testing.MakeWarn = function () { console.log("abc"); }; return Testing; }()); //# sourceMappingURL=Testing.js.map </code></pre></div> <p dir="auto">Testing.js.map</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{&quot;version&quot;:3,&quot;file&quot;:&quot;Testing.js&quot;,&quot;sourceRoot&quot;:&quot;&quot;,&quot;sources&quot;:[&quot;Testing.ts&quot;],&quot;names&quot;:[],&quot;mappings&quot;:&quot;AAAA;IAAA;IAIA,CAAC;IAHiB,gBAAQ,GAAtB;QACI,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IACL,cAAC;AAAD,CAAC,AAJD,IAIC&quot;}"><pre class="notranslate"><code class="notranslate">{"version":3,"file":"Testing.js","sourceRoot":"","sources":["Testing.ts"],"names":[],"mappings":"AAAA;IAAA;IAIA,CAAC;IAHiB,gBAAQ,GAAtB;QACI,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IACL,cAAC;AAAD,CAAC,AAJD,IAIC"} </code></pre></div> <p dir="auto">To my knowledge, these are properly defined <code class="notranslate">.js</code> and <code class="notranslate">.js.map</code> files.</p> <p dir="auto">When I open the link in Chrome, I get <code class="notranslate">Testing.self.js</code> and <code class="notranslate">Testing.ts</code> files which both have contents</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var Testing = (function () { function Testing() { } Testing.MakeWarn = function () { console.log(&quot;abc&quot;); }; return Testing; }()); //# sourceMappingURL=Testing.js.map"><pre class="notranslate"><code class="notranslate">var Testing = (function () { function Testing() { } Testing.MakeWarn = function () { console.log("abc"); }; return Testing; }()); //# sourceMappingURL=Testing.js.map </code></pre></div> <p dir="auto">This is not the expected behaviour. To my understanding, <code class="notranslate">.ts</code> file should look like the original source in Chrome debugger. And I should be able to put a breakpoint.</p> <p dir="auto"><strong>Expected behavior:</strong></p> <p dir="auto">Should have different files for .ts and .js</p> <p dir="auto"><strong>Actual behavior:</strong></p> <p dir="auto">In Chrome and Firefox Developer Edition has the same files for .ts and .js</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.0-SNAPSHOT</li> <li>Operating System version: mac pro</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Step to reproduce this issue</h3> <ol dir="auto"> <li>Assume that the configuration file contains the following configuration:</li> </ol> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;dubbo:reference id=&quot;demoService&quot; check=&quot;false&quot; interface=&quot;org.apache.dubbo.http2.DemoService&quot; protocol-config=&quot;http2&quot;/&gt;"><pre class="notranslate">&lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">reference</span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>demoService<span class="pl-pds">"</span></span> <span class="pl-e">check</span>=<span class="pl-s"><span class="pl-pds">"</span>false<span class="pl-pds">"</span></span> <span class="pl-e">interface</span>=<span class="pl-s"><span class="pl-pds">"</span>org.apache.dubbo.http2.DemoService<span class="pl-pds">"</span></span> <span class="pl-e">protocol-config</span>=<span class="pl-s"><span class="pl-pds">"</span>http2<span class="pl-pds">"</span></span>/&gt;</pre></div> <ol start="2" dir="auto"> <li>Starting the application will give an error:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception in thread &quot;main&quot; org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoService': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'protocol-config' of bean class [org.apache.dubbo.config.spring.ReferenceBean]: Bean property 'protocol-config' is not writable or has an invalid setter method. Did you mean 'protocolConfig'? at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1570) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1280) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:93) at org.apache.dubbo.http2.consumer.Consumer.main(Consumer.java:29) Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'protocol-config' of bean class [org.apache.dubbo.config.spring.ReferenceBean]: Bean property 'protocol-config' is not writable or has an invalid setter method. Did you mean 'protocolConfig'? at org.springframework.beans.BeanWrapperImpl.createNotWritablePropertyException(BeanWrapperImpl.java:239) at org.springframework.beans.AbstractNestablePropertyAccessor.processLocalProperty(AbstractNestablePropertyAccessor.java:435) at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:290) at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:278) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:95) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:75) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1566)"><pre class="notranslate"><code class="notranslate">Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'demoService': Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'protocol-config' of bean class [org.apache.dubbo.config.spring.ReferenceBean]: Bean property 'protocol-config' is not writable or has an invalid setter method. Did you mean 'protocolConfig'? at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1570) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1280) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:93) at org.apache.dubbo.http2.consumer.Consumer.main(Consumer.java:29) Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'protocol-config' of bean class [org.apache.dubbo.config.spring.ReferenceBean]: Bean property 'protocol-config' is not writable or has an invalid setter method. Did you mean 'protocolConfig'? at org.springframework.beans.BeanWrapperImpl.createNotWritablePropertyException(BeanWrapperImpl.java:239) at org.springframework.beans.AbstractNestablePropertyAccessor.processLocalProperty(AbstractNestablePropertyAccessor.java:435) at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:290) at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:278) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:95) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:75) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1566) </code></pre></div>
<ul dir="auto"> <li>[yes] I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li>[yes] I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: excute "git clone <a href="https://github.com/apache/dubbo.git">https://github.com/apache/dubbo.git</a>" just now</li> <li>Operating System version: windows10</li> <li>Java version: java8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <p dir="auto">read the <a href="https://dubbo.apache.org/en-us/docs/admin/install/provider-demo.html" rel="nofollow">document</a>.<br> 1.<br> excute <code class="notranslate">git clone https://github.com/apache/dubbo.git ./dubbo</code><br> 2.<br> start IDEA and then ask IDEA to open "./dubbo". Then IDEA automatically calls maven to download dependencies.<br> 3.<br> It is reported that "Cannot resolve plugin org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0"<br> 4.<br> Ignore the error reported in the third step. Find the <code class="notranslate">org.apache.dubbo.demo.provider.Application</code> according to the documentation. And then try to run it by IDEA. (Zookeeper is running normally.)<br> 5.<br> It's reported that build failed.<br> "Build completed with 3 errors and 100 warnings ..."<br> the 3 errors:</p> <blockquote> <p dir="auto">D:\JAVA\projects\dubbo\dubbo-config\dubbo-config-api\src\test\java\org\apache\dubbo\config\bootstrap\rest\UserService.java<br> Error:(22, 50) java: 程序包org.apache.dubbo.rpc.protocol.rest.support不存在<br> Error:(37, 12) java: 找不到符号<br> 符号: 变量 ContentType<br> Error:(37, 48) java: 找不到符号<br> 符号: 变量 ContentType</p> </blockquote> <p dir="auto">after google translator translate:</p> <blockquote> <p dir="auto">D:\JAVA\projects\dubbo\dubbo-config\dubbo-config-api\src\test\java\org\apache\dubbo\config\bootstrap\rest\UserService.java<br> Error:(22, 50) java: The package org.apache.dubbo.rpc.protocol.rest.support does not exist<br> Error:(37, 12) java: Symbol not found<br> Symbol: Variable ContentType<br> Error::(37, 48) java: Symbol not found<br> Symbol: Variable ContentType</p> </blockquote> <h3 dir="auto">Expected Result</h3> <p dir="auto">The error reported in the third step and the fifth step no longer appears.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">Please see the third and fifth steps in Chapter ”Steps to reproduce this issue“.</p> <p dir="auto">Thanks.</p>
0
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">Running a 2d convolution (no padding, stride=1) on a 3x1 input, sliced from a 3x3 tensor, and a 3x1 weight, sliced from a 3x3 tensor. When trying to run it on CPU the convolution result is wrong, but when moving to GPU (by adding .cuda() after the tensors), the result is correct!</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Run the code below to reproduce the bug. It's pretty self explanatory.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch import torch.nn.functional as F x = torch.Tensor([[[[0., 2., 2.], [0., 0., 1.], [2., 0., 0.]]]]) w = torch.Tensor([[[[1., 1., 0.], [1., 0., 3.], [0., 3., 1.]]]]) x1 = x[:,:,:,2:] # Using only the last column from x, containing [2,1,0] w1 = w[:,:,:,2:] # Using only the last column from w, containing [0,3,1] #The result should be ((2*0) + (1*3) + (0*1)) = 3 print(F.conv2d(x1, w1, None, padding=0, stride=1)) # tensor([[[[1.]]]]) WRONG!!!! print(F.conv2d(x1.cuda(), w1.cuda(), None, padding=0, stride=1)) # tensor([[[[3.]]]], device='cuda:0') as expected"><pre class="notranslate"><code class="notranslate">import torch import torch.nn.functional as F x = torch.Tensor([[[[0., 2., 2.], [0., 0., 1.], [2., 0., 0.]]]]) w = torch.Tensor([[[[1., 1., 0.], [1., 0., 3.], [0., 3., 1.]]]]) x1 = x[:,:,:,2:] # Using only the last column from x, containing [2,1,0] w1 = w[:,:,:,2:] # Using only the last column from w, containing [0,3,1] #The result should be ((2*0) + (1*3) + (0*1)) = 3 print(F.conv2d(x1, w1, None, padding=0, stride=1)) # tensor([[[[1.]]]]) WRONG!!!! print(F.conv2d(x1.cuda(), w1.cuda(), None, padding=0, stride=1)) # tensor([[[[3.]]]], device='cuda:0') as expected </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">As seen in the code above, the CPU gives the result of 1, when the actual result should be 3.</p> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): 1.0</li> <li>OS (e.g., Linux): Ubuntu 16.04</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): pip</li> <li>Build command you used (if compiling from source):</li> <li>Python version: 3.5.2</li> <li>CUDA/cuDNN version: 9.0</li> <li>GPU models and configuration: GeForce GTX 1060</li> <li>Any other relevant information:</li> </ul> <h2 dir="auto">Additional context</h2>
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2> <p dir="auto">If I load convolution weights from a NumPy float32 array, the result of the forward pass does not match that of a layer with the same weights loaded from a NumPy float64 array or of a Keras convolution layer with the same weights. Casting the layer to <code class="notranslate">double</code> fixes the discrepancy, even after casting back to <code class="notranslate">float</code>. Comparing the convolution weights before and after casting shows that they have not changed.</p> <h2 dir="auto">To Reproduce</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import torch from torch import nn d_in = 25 d_out = 64 k = 7 B = 2 L = 10 conv = nn.Conv1d(d_in, d_out, k, stride=2, padding=0) pad = nn.ConstantPad1d((2, 3), 0) np.random.seed(1034) X = np.random.random((B, L, d_in)) X = torch.as_tensor(X).transpose(-1, -2) X = pad(X) w = np.random.random((k, d_in, d_out)) w = w.astype('float32') b = np.random.random((d_out, )) w = torch.as_tensor(w).permute(2, 1, 0).float() b = torch.as_tensor(b).float() conv.weight = nn.Parameter(w) conv.bias = nn.Parameter(b) out1 = conv(X.float()).detach().numpy() w1 = conv.weight.detach().numpy() out2 = conv.double()(X).detach().numpy() w2 = conv.weight.detach().numpy() out3 = conv.float()(X.float()).detach().numpy() w3 = conv.weight.detach().numpy() print('w == w1?') print(np.allclose(w.detach().numpy(), w1)) print('w1 == w2?') print(np.allclose(w1, w2)) print('w2 == w3?') print(np.allclose(w2, w3)) print('out1 == out2?') print(np.allclose(out1, out2, atol=1e-6)) print('out2 == out3?') print(np.allclose(out2, out3, atol=1e-6))"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-k">from</span> <span class="pl-s1">torch</span> <span class="pl-k">import</span> <span class="pl-s1">nn</span> <span class="pl-s1">d_in</span> <span class="pl-c1">=</span> <span class="pl-c1">25</span> <span class="pl-s1">d_out</span> <span class="pl-c1">=</span> <span class="pl-c1">64</span> <span class="pl-s1">k</span> <span class="pl-c1">=</span> <span class="pl-c1">7</span> <span class="pl-v">B</span> <span class="pl-c1">=</span> <span class="pl-c1">2</span> <span class="pl-v">L</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span> <span class="pl-s1">conv</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Conv1d</span>(<span class="pl-s1">d_in</span>, <span class="pl-s1">d_out</span>, <span class="pl-s1">k</span>, <span class="pl-s1">stride</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-s1">pad</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">ConstantPad1d</span>((<span class="pl-c1">2</span>, <span class="pl-c1">3</span>), <span class="pl-c1">0</span>) <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">1034</span>) <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>((<span class="pl-v">B</span>, <span class="pl-v">L</span>, <span class="pl-s1">d_in</span>)) <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">as_tensor</span>(<span class="pl-v">X</span>).<span class="pl-en">transpose</span>(<span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">-</span><span class="pl-c1">2</span>) <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-en">pad</span>(<span class="pl-v">X</span>) <span class="pl-s1">w</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>((<span class="pl-s1">k</span>, <span class="pl-s1">d_in</span>, <span class="pl-s1">d_out</span>)) <span class="pl-s1">w</span> <span class="pl-c1">=</span> <span class="pl-s1">w</span>.<span class="pl-en">astype</span>(<span class="pl-s">'float32'</span>) <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>((<span class="pl-s1">d_out</span>, )) <span class="pl-s1">w</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">as_tensor</span>(<span class="pl-s1">w</span>).<span class="pl-en">permute</span>(<span class="pl-c1">2</span>, <span class="pl-c1">1</span>, <span class="pl-c1">0</span>).<span class="pl-en">float</span>() <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">as_tensor</span>(<span class="pl-s1">b</span>).<span class="pl-en">float</span>() <span class="pl-s1">conv</span>.<span class="pl-s1">weight</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Parameter</span>(<span class="pl-s1">w</span>) <span class="pl-s1">conv</span>.<span class="pl-s1">bias</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Parameter</span>(<span class="pl-s1">b</span>) <span class="pl-s1">out1</span> <span class="pl-c1">=</span> <span class="pl-en">conv</span>(<span class="pl-v">X</span>.<span class="pl-en">float</span>()).<span class="pl-en">detach</span>().<span class="pl-en">numpy</span>() <span class="pl-s1">w1</span> <span class="pl-c1">=</span> <span class="pl-s1">conv</span>.<span class="pl-s1">weight</span>.<span class="pl-en">detach</span>().<span class="pl-en">numpy</span>() <span class="pl-s1">out2</span> <span class="pl-c1">=</span> <span class="pl-s1">conv</span>.<span class="pl-en">double</span>()(<span class="pl-v">X</span>).<span class="pl-en">detach</span>().<span class="pl-en">numpy</span>() <span class="pl-s1">w2</span> <span class="pl-c1">=</span> <span class="pl-s1">conv</span>.<span class="pl-s1">weight</span>.<span class="pl-en">detach</span>().<span class="pl-en">numpy</span>() <span class="pl-s1">out3</span> <span class="pl-c1">=</span> <span class="pl-s1">conv</span>.<span class="pl-en">float</span>()(<span class="pl-v">X</span>.<span class="pl-en">float</span>()).<span class="pl-en">detach</span>().<span class="pl-en">numpy</span>() <span class="pl-s1">w3</span> <span class="pl-c1">=</span> <span class="pl-s1">conv</span>.<span class="pl-s1">weight</span>.<span class="pl-en">detach</span>().<span class="pl-en">numpy</span>() <span class="pl-en">print</span>(<span class="pl-s">'w == w1?'</span>) <span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">allclose</span>(<span class="pl-s1">w</span>.<span class="pl-en">detach</span>().<span class="pl-en">numpy</span>(), <span class="pl-s1">w1</span>)) <span class="pl-en">print</span>(<span class="pl-s">'w1 == w2?'</span>) <span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">allclose</span>(<span class="pl-s1">w1</span>, <span class="pl-s1">w2</span>)) <span class="pl-en">print</span>(<span class="pl-s">'w2 == w3?'</span>) <span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">allclose</span>(<span class="pl-s1">w2</span>, <span class="pl-s1">w3</span>)) <span class="pl-en">print</span>(<span class="pl-s">'out1 == out2?'</span>) <span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">allclose</span>(<span class="pl-s1">out1</span>, <span class="pl-s1">out2</span>, <span class="pl-s1">atol</span><span class="pl-c1">=</span><span class="pl-c1">1e-6</span>)) <span class="pl-en">print</span>(<span class="pl-s">'out2 == out3?'</span>) <span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-en">allclose</span>(<span class="pl-s1">out2</span>, <span class="pl-s1">out3</span>, <span class="pl-s1">atol</span><span class="pl-c1">=</span><span class="pl-c1">1e-6</span>))</pre></div> <p dir="auto">Result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="w == w1? True w1 == w2? True w2 == w3? True out1 == out2? False out2 == out3? True"><pre class="notranslate"><code class="notranslate">w == w1? True w1 == w2? True w2 == w3? True out1 == out2? False out2 == out3? True </code></pre></div> <p dir="auto">Some notes:</p> <ol dir="auto"> <li>The type for the bias doesn't seem to matter.</li> <li><code class="notranslate">out2</code> and <code class="notranslate">out3</code> match the result for a Keras convolution layer with the same weights.</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto"><code class="notranslate">out1</code> should be within machine precision of <code class="notranslate">out2</code> and <code class="notranslate">out3</code>.</p> <h2 dir="auto">Environment</h2> <p dir="auto">PyTorch version: 1.0.0<br> Is debug build: No<br> CUDA used to build PyTorch: None</p> <p dir="auto">OS: Mac OSX 10.14.2<br> GCC version: Could not collect<br> CMake version: Could not collect</p> <p dir="auto">Python version: 3.7<br> Is CUDA available: No<br> CUDA runtime version: No CUDA<br> GPU models and configuration: No CUDA<br> Nvidia driver version: No CUDA<br> cuDNN version: No CUDA</p> <p dir="auto">Versions of relevant libraries:<br> [pip] Could not collect<br> [conda] blas 1.0 mkl<br> [conda] mkl 2019.1 144<br> [conda] mkl-service 1.1.2 py37hfbe908c_5<br> [conda] mkl_fft 1.0.6 py37h27c97d8_0<br> [conda] mkl_random 1.0.2 py37h27c97d8_0<br> [conda] pytorch 1.0.0 py3.7_1 pytorch<br> [conda] torchvision 0.2.1 py_2 pytorch<br> [conda] numpy 1.15.4</p>
1
<p dir="auto">i have copied the code in the ”Usage“ part to my project,and i have imported the react.js and JSXTransformer.js in my project. But why there's no button appear in the browser?</p>
<p dir="auto">When I customized the <code class="notranslate">fontSize</code> of my <code class="notranslate">Input</code>s, side-by-side <code class="notranslate">Select</code> and <code class="notranslate">TextField</code> components became vertically misaligned by one pixel:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1448194/34787925-91e4a54c-f5fe-11e7-9dff-0110ca208c87.png"><img src="https://user-images.githubusercontent.com/1448194/34787925-91e4a54c-f5fe-11e7-9dff-0110ca208c87.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">The JSS for <code class="notranslate">Select</code> overrides the <code class="notranslate">height</code>, <code class="notranslate">lineHeight</code>, <code class="notranslate">paddingTop</code>, and <code class="notranslate">paddingBottom</code> of the <code class="notranslate">input-singleLine</code> class, wrecking the vertical alignment. It seems to me all of the vertical sizing properties should match.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1448194/34788221-7e1a2040-f5ff-11e7-9ea3-aa91ac8216a5.png"><img src="https://user-images.githubusercontent.com/1448194/34788221-7e1a2040-f5ff-11e7-9ea3-aa91ac8216a5.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1448194/34788226-829b17a0-f5ff-11e7-8e3f-1a0f98f60bcb.png"><img src="https://user-images.githubusercontent.com/1448194/34788226-829b17a0-f5ff-11e7-8e3f-1a0f98f60bcb.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I will create a PR in a moment.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto"><code class="notranslate">Select</code> has same <code class="notranslate">height</code>, <code class="notranslate">lineHeight</code>, and vertical <code class="notranslate">padding</code> as <code class="notranslate">Input</code> by default.</p> <h2 dir="auto">Current Behavior</h2> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <h4 dir="auto">Customize <code class="notranslate">Input</code> <code class="notranslate">fontSize</code>:</h4> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="theme.overrides = { MuiInput: { root: { fontSize: theme.typography.pxToRem(20), }, }, }"><pre class="notranslate"><span class="pl-s1">theme</span><span class="pl-kos">.</span><span class="pl-c1">overrides</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">MuiInput</span>: <span class="pl-kos">{</span> <span class="pl-c1">root</span>: <span class="pl-kos">{</span> <span class="pl-c1">fontSize</span>: <span class="pl-s1">theme</span><span class="pl-kos">.</span><span class="pl-c1">typography</span><span class="pl-kos">.</span><span class="pl-en">pxToRem</span><span class="pl-kos">(</span><span class="pl-c1">20</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span></pre></div> <h4 dir="auto">Render a <code class="notranslate">Select</code> and a <code class="notranslate">TextField</code> side-by-side:</h4> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;table&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt; &lt;Select value=&quot;default&quot;&gt; &lt;MenuItem value=&quot;default&quot;&gt;Select&lt;/MenuItem&gt; &lt;Select&gt; &lt;/td&gt; &lt;td&gt; &lt;TextField placeholder=&quot;TextField&quot; /&gt; &lt;/td&gt; &lt;tr&gt; &lt;/tbody&gt; &lt;/table&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">table</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">tbody</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">tr</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">td</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Select</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-s">"default"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-s">"default"</span><span class="pl-c1">&gt;</span>Select<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">MenuItem</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Select</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">td</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">td</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">TextField</span> <span class="pl-c1">placeholder</span><span class="pl-c1">=</span><span class="pl-s">"TextField"</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">td</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">tr</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">tbody</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">table</span><span class="pl-c1">&gt;</span></pre></div> <h2 dir="auto">Workaround</h2> <p dir="auto">Use the following theme override:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" MuiSelect: { // see https://github.com/mui-org/material-ui/issues/9826 select: { padding: undefined, paddingRight: theme.spacing.unit * 4, height: undefined, }, selectMenu: { lineHeight: undefined, }, },"><pre class="notranslate"> <span class="pl-v">MuiSelect</span>: <span class="pl-kos">{</span> <span class="pl-c">// see https://github.com/mui-org/material-ui/issues/9826</span> <span class="pl-c1">select</span>: <span class="pl-kos">{</span> <span class="pl-c1">padding</span>: <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-c1">paddingRight</span>: <span class="pl-s1">theme</span><span class="pl-kos">.</span><span class="pl-c1">spacing</span><span class="pl-kos">.</span><span class="pl-c1">unit</span> <span class="pl-c1">*</span> <span class="pl-c1">4</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">selectMenu</span>: <span class="pl-kos">{</span> <span class="pl-c1">lineHeight</span>: <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span></pre></div> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.25</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td>Chrome 63.0.3239.132</td> </tr> </tbody> </table>
0
<p dir="auto"><strong>Migrated issue, originally created by mrudula chougule</strong></p> <p dir="auto">Hi,</p> <p dir="auto">I am having python+gtk application. I'm currently porting my python application from Ubuntu 10.04 to 14.04. I have sqlalchemy version of 0.8.4-1Ubuntu2.1 on Ubuntu 14.04.<br> When trying to run my application, when it is trying to insert column into database it is throwing this error:<br> <strong>sqlalchemy.exc.compileError: Unconsumed column Name</strong></p> <p dir="auto">Please share your views or ideas to resolve this error.<br> I'm stuck!!</p> <p dir="auto">Thanks,<br> Mrudula</p>
<p dir="auto"><strong>Migrated issue, originally created by Ashley Chaloner</strong></p> <p dir="auto">This bug appears when running in pypy but not cpython. It appears when using sqlite or postgres backends (these are the only two I've tested with). The bug does not cause a stack trace, but results in duplicate database rows being returned in non-identical sqlalchemy objects.</p> <h2 dir="auto">Versions</h2> <ul dir="auto"> <li>pypy: Python 2.7.13 (5.8.0+dfsg-2<del>ppa2</del>ubuntu16.04, Jun 17 2017, 18:50:19) [PyPy 5.8.0 with GCC 5.4.0 20160609]</li> <li>cffi==1.10.1</li> <li>greenlet==0.4.12</li> <li>readline==6.2.4.1</li> <li>six==1.10.0</li> <li>SQLAlchemy==1.1.13</li> <li>(if using <code class="notranslate">UUIDType</code>: SQLAlchemy-Utils==0.32.16)</li> </ul> <h2 dir="auto">bash script for venv setup</h2> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="virtualenv -p /usr/bin/pypy ~/test-venv source ~/test-venv/bin/activate pip install \ cffi==1.10.1 \ greenlet==0.4.12 \ readline==6.2.4.1 \ six==1.10.0 \ SQLAlchemy==1.1.13 # if using UUIDType: pip install SQLAlchemy-Utils==0.32.16"><pre class="notranslate">virtualenv -p /usr/bin/pypy <span class="pl-k">~</span>/test-venv <span class="pl-c1">source</span> <span class="pl-k">~</span>/test-venv/bin/activate pip install \ cffi==1.10.1 \ greenlet==0.4.12 \ readline==6.2.4.1 \ six==1.10.0 \ SQLAlchemy==1.1.13 <span class="pl-c"><span class="pl-c">#</span> if using UUIDType:</span> pip install SQLAlchemy-Utils==0.32.16</pre></div> <h2 dir="auto">Python script to reproduce bug</h2> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sqlalchemy import ( Column, ForeignKey, Index, Table, create_engine ) from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import joinedload, relationship, sessionmaker from sqlalchemy.types import Integer Base = declarative_base() class Base2(Base): __abstract__ = True attrlist = [&quot;id&quot;] # for easier debugging def __repr__(self): attrs = [&quot;%s:%s&quot; % (a, getattr(self, a)) for a in self.attrlist] return &quot;&lt;%s.%s object at 0x%016x: %s&gt;&quot; % ( self.__class__.__module__, self.__class__.__name__, id(self), &quot;, &quot;.join(attrs)) class Scene(Base2): __tablename__ = &quot;scene&quot; id = Column(Integer, primary_key=True) class ActScenes(Base2): __tablename__ = &quot;act_scenes&quot; attrlist = [&quot;id&quot;, &quot;act_id&quot;, &quot;scene_id&quot;] id = Column(Integer, primary_key=True) act_id = Column( Integer(), ForeignKey(&quot;act.id&quot;), nullable=False) scene_id = Column( Integer(), ForeignKey(&quot;scene.id&quot;), nullable=False) scene = relationship(Scene, lazy=&quot;joined&quot;) class Act(Base2): __tablename__ = &quot;act&quot; id = Column(Integer, primary_key=True) scenes = relationship(ActScenes) acts = Table( &quot;acts&quot;, Base.metadata, Column(&quot;play_id&quot;, Integer(), ForeignKey(&quot;play.id&quot;)), Column(&quot;act_id&quot;, Integer(), ForeignKey(&quot;act.id&quot;)) ) Index(&quot;ix_acts&quot;, acts.c.play_id, acts.c.act_id, unique=True) class Play(Base2): __tablename__ = &quot;play&quot; id = Column(Integer, primary_key=True) acts = relationship(&quot;Act&quot;, secondary=acts) def run_test(i): &quot;&quot;&quot;Run one test, and return True if something failed.&quot;&quot;&quot; engine = create_engine('sqlite:///:memory:') asessionmaker = sessionmaker() asessionmaker.configure(bind=engine) Base.metadata.create_all(engine) session = asessionmaker() play1 = Play() act = Act() act.scenes = [ ActScenes( act_id=act.id, scene=Scene() ) for _ in xrange(1000) ] play1.acts.append(act) scenecounts1 = len(play1.acts[0].scenes) session.add(play1) session.commit() # Comment out this block and watch the bug vanish. session.query(Play).options( joinedload(Play.acts).joinedload(Act.scenes) ).filter_by(id=play1.id).first() # End block. scenecounts1_again = len(play1.acts[0].scenes) if scenecounts1 != scenecounts1_again: print &quot;Iteration {} failed&quot;.format(i) seen_scene_ids = set() for scene in act.scenes: if scene.id in seen_scene_ids: # import pdb; pdb.set_trace() print &quot;Duplicate scene.id spotted: {}&quot;.format(scene.id) scenes_with_id = [s for s in act.scenes if s.id == scene.id] print &quot;Scenes with this id:\n{}&quot;.format( &quot;\n&quot;.join(repr(s) for s in scenes_with_id)) else: seen_scene_ids.add(scene.id) return scenecounts1 != scenecounts1_again if __name__ == &quot;__main__&quot;: N = 25 results = [run_test(i) for i in xrange(N)] print &quot;{} out of {} failed.&quot;.format(sum(results), N)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> ( <span class="pl-v">Column</span>, <span class="pl-v">ForeignKey</span>, <span class="pl-v">Index</span>, <span class="pl-v">Table</span>, <span class="pl-s1">create_engine</span> ) <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">ext</span>.<span class="pl-s1">declarative</span> <span class="pl-k">import</span> <span class="pl-s1">declarative_base</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-k">import</span> <span class="pl-s1">joinedload</span>, <span class="pl-s1">relationship</span>, <span class="pl-s1">sessionmaker</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">types</span> <span class="pl-k">import</span> <span class="pl-v">Integer</span> <span class="pl-v">Base</span> <span class="pl-c1">=</span> <span class="pl-en">declarative_base</span>() <span class="pl-k">class</span> <span class="pl-v">Base2</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__abstract__</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-s1">attrlist</span> <span class="pl-c1">=</span> [<span class="pl-s">"id"</span>] <span class="pl-c"># for easier debugging</span> <span class="pl-k">def</span> <span class="pl-en">__repr__</span>(<span class="pl-s1">self</span>): <span class="pl-s1">attrs</span> <span class="pl-c1">=</span> [<span class="pl-s">"%s:%s"</span> <span class="pl-c1">%</span> (<span class="pl-s1">a</span>, <span class="pl-en">getattr</span>(<span class="pl-s1">self</span>, <span class="pl-s1">a</span>)) <span class="pl-k">for</span> <span class="pl-s1">a</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">attrlist</span>] <span class="pl-k">return</span> <span class="pl-s">"&lt;%s.%s object at 0x%016x: %s&gt;"</span> <span class="pl-c1">%</span> ( <span class="pl-s1">self</span>.<span class="pl-s1">__class__</span>.<span class="pl-s1">__module__</span>, <span class="pl-s1">self</span>.<span class="pl-s1">__class__</span>.<span class="pl-s1">__name__</span>, <span class="pl-en">id</span>(<span class="pl-s1">self</span>), <span class="pl-s">", "</span>.<span class="pl-en">join</span>(<span class="pl-s1">attrs</span>)) <span class="pl-k">class</span> <span class="pl-v">Scene</span>(<span class="pl-v">Base2</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"scene"</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-k">class</span> <span class="pl-v">ActScenes</span>(<span class="pl-v">Base2</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"act_scenes"</span> <span class="pl-s1">attrlist</span> <span class="pl-c1">=</span> [<span class="pl-s">"id"</span>, <span class="pl-s">"act_id"</span>, <span class="pl-s">"scene_id"</span>] <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">act_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>( <span class="pl-v">Integer</span>(), <span class="pl-v">ForeignKey</span>(<span class="pl-s">"act.id"</span>), <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">scene_id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>( <span class="pl-v">Integer</span>(), <span class="pl-v">ForeignKey</span>(<span class="pl-s">"scene.id"</span>), <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-s1">scene</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-v">Scene</span>, <span class="pl-s1">lazy</span><span class="pl-c1">=</span><span class="pl-s">"joined"</span>) <span class="pl-k">class</span> <span class="pl-v">Act</span>(<span class="pl-v">Base2</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"act"</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">scenes</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-v">ActScenes</span>) <span class="pl-s1">acts</span> <span class="pl-c1">=</span> <span class="pl-v">Table</span>( <span class="pl-s">"acts"</span>, <span class="pl-v">Base</span>.<span class="pl-s1">metadata</span>, <span class="pl-v">Column</span>(<span class="pl-s">"play_id"</span>, <span class="pl-v">Integer</span>(), <span class="pl-v">ForeignKey</span>(<span class="pl-s">"play.id"</span>)), <span class="pl-v">Column</span>(<span class="pl-s">"act_id"</span>, <span class="pl-v">Integer</span>(), <span class="pl-v">ForeignKey</span>(<span class="pl-s">"act.id"</span>)) ) <span class="pl-v">Index</span>(<span class="pl-s">"ix_acts"</span>, <span class="pl-s1">acts</span>.<span class="pl-s1">c</span>.<span class="pl-s1">play_id</span>, <span class="pl-s1">acts</span>.<span class="pl-s1">c</span>.<span class="pl-s1">act_id</span>, <span class="pl-s1">unique</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-k">class</span> <span class="pl-v">Play</span>(<span class="pl-v">Base2</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"play"</span> <span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">acts</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>(<span class="pl-s">"Act"</span>, <span class="pl-s1">secondary</span><span class="pl-c1">=</span><span class="pl-s1">acts</span>) <span class="pl-k">def</span> <span class="pl-en">run_test</span>(<span class="pl-s1">i</span>): <span class="pl-s">"""Run one test, and return True if something failed."""</span> <span class="pl-s1">engine</span> <span class="pl-c1">=</span> <span class="pl-en">create_engine</span>(<span class="pl-s">'sqlite:///:memory:'</span>) <span class="pl-s1">asessionmaker</span> <span class="pl-c1">=</span> <span class="pl-en">sessionmaker</span>() <span class="pl-s1">asessionmaker</span>.<span class="pl-en">configure</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-s1">engine</span>) <span class="pl-v">Base</span>.<span class="pl-s1">metadata</span>.<span class="pl-en">create_all</span>(<span class="pl-s1">engine</span>) <span class="pl-s1">session</span> <span class="pl-c1">=</span> <span class="pl-en">asessionmaker</span>() <span class="pl-s1">play1</span> <span class="pl-c1">=</span> <span class="pl-v">Play</span>() <span class="pl-s1">act</span> <span class="pl-c1">=</span> <span class="pl-v">Act</span>() <span class="pl-s1">act</span>.<span class="pl-s1">scenes</span> <span class="pl-c1">=</span> [ <span class="pl-v">ActScenes</span>( <span class="pl-s1">act_id</span><span class="pl-c1">=</span><span class="pl-s1">act</span>.<span class="pl-s1">id</span>, <span class="pl-s1">scene</span><span class="pl-c1">=</span><span class="pl-v">Scene</span>() ) <span class="pl-k">for</span> <span class="pl-s1">_</span> <span class="pl-c1">in</span> <span class="pl-en">xrange</span>(<span class="pl-c1">1000</span>) ] <span class="pl-s1">play1</span>.<span class="pl-s1">acts</span>.<span class="pl-en">append</span>(<span class="pl-s1">act</span>) <span class="pl-s1">scenecounts1</span> <span class="pl-c1">=</span> <span class="pl-en">len</span>(<span class="pl-s1">play1</span>.<span class="pl-s1">acts</span>[<span class="pl-c1">0</span>].<span class="pl-s1">scenes</span>) <span class="pl-s1">session</span>.<span class="pl-en">add</span>(<span class="pl-s1">play1</span>) <span class="pl-s1">session</span>.<span class="pl-en">commit</span>() <span class="pl-c"># Comment out this block and watch the bug vanish.</span> <span class="pl-s1">session</span>.<span class="pl-en">query</span>(<span class="pl-v">Play</span>).<span class="pl-en">options</span>( <span class="pl-en">joinedload</span>(<span class="pl-v">Play</span>.<span class="pl-s1">acts</span>).<span class="pl-en">joinedload</span>(<span class="pl-v">Act</span>.<span class="pl-s1">scenes</span>) ).<span class="pl-en">filter_by</span>(<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-s1">play1</span>.<span class="pl-s1">id</span>).<span class="pl-en">first</span>() <span class="pl-c"># End block.</span> <span class="pl-s1">scenecounts1_again</span> <span class="pl-c1">=</span> <span class="pl-en">len</span>(<span class="pl-s1">play1</span>.<span class="pl-s1">acts</span>[<span class="pl-c1">0</span>].<span class="pl-s1">scenes</span>) <span class="pl-k">if</span> <span class="pl-s1">scenecounts1</span> <span class="pl-c1">!=</span> <span class="pl-s1">scenecounts1_again</span>: <span class="pl-k">print</span> <span class="pl-s">"Iteration {} failed"</span>.<span class="pl-en">format</span>(<span class="pl-s1">i</span>) <span class="pl-s1">seen_scene_ids</span> <span class="pl-c1">=</span> <span class="pl-en">set</span>() <span class="pl-k">for</span> <span class="pl-s1">scene</span> <span class="pl-c1">in</span> <span class="pl-s1">act</span>.<span class="pl-s1">scenes</span>: <span class="pl-k">if</span> <span class="pl-s1">scene</span>.<span class="pl-s1">id</span> <span class="pl-c1">in</span> <span class="pl-s1">seen_scene_ids</span>: <span class="pl-c"># import pdb; pdb.set_trace()</span> <span class="pl-k">print</span> <span class="pl-s">"Duplicate scene.id spotted: {}"</span>.<span class="pl-en">format</span>(<span class="pl-s1">scene</span>.<span class="pl-s1">id</span>) <span class="pl-s1">scenes_with_id</span> <span class="pl-c1">=</span> [<span class="pl-s1">s</span> <span class="pl-k">for</span> <span class="pl-s1">s</span> <span class="pl-c1">in</span> <span class="pl-s1">act</span>.<span class="pl-s1">scenes</span> <span class="pl-k">if</span> <span class="pl-s1">s</span>.<span class="pl-s1">id</span> <span class="pl-c1">==</span> <span class="pl-s1">scene</span>.<span class="pl-s1">id</span>] <span class="pl-k">print</span> <span class="pl-s">"Scenes with this id:<span class="pl-cce">\n</span>{}"</span>.<span class="pl-en">format</span>( <span class="pl-s">"<span class="pl-cce">\n</span>"</span>.<span class="pl-en">join</span>(<span class="pl-en">repr</span>(<span class="pl-s1">s</span>) <span class="pl-k">for</span> <span class="pl-s1">s</span> <span class="pl-c1">in</span> <span class="pl-s1">scenes_with_id</span>)) <span class="pl-k">else</span>: <span class="pl-s1">seen_scene_ids</span>.<span class="pl-en">add</span>(<span class="pl-s1">scene</span>.<span class="pl-s1">id</span>) <span class="pl-k">return</span> <span class="pl-s1">scenecounts1</span> <span class="pl-c1">!=</span> <span class="pl-s1">scenecounts1_again</span> <span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">"__main__"</span>: <span class="pl-v">N</span> <span class="pl-c1">=</span> <span class="pl-c1">25</span> <span class="pl-s1">results</span> <span class="pl-c1">=</span> [<span class="pl-en">run_test</span>(<span class="pl-s1">i</span>) <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">xrange</span>(<span class="pl-v">N</span>)] <span class="pl-k">print</span> <span class="pl-s">"{} out of {} failed."</span>.<span class="pl-en">format</span>(<span class="pl-en">sum</span>(<span class="pl-s1">results</span>), <span class="pl-v">N</span>)</pre></div> <h2 dir="auto">Sample output</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(test-venv) user@host:~$ pypy test_chained_joinedload.py Iteration 0 failed Duplicate scene.id spotted: 185 Scenes with this id: &lt;__main__.ActScenes object at 0x00007f77de383948: id:185, act_id:1, scene_id:185&gt; &lt;__main__.ActScenes object at 0x00007f77de9c4790: id:185, act_id:1, scene_id:185&gt; 1 out of 25 failed."><pre class="notranslate"><code class="notranslate">(test-venv) user@host:~$ pypy test_chained_joinedload.py Iteration 0 failed Duplicate scene.id spotted: 185 Scenes with this id: &lt;__main__.ActScenes object at 0x00007f77de383948: id:185, act_id:1, scene_id:185&gt; &lt;__main__.ActScenes object at 0x00007f77de9c4790: id:185, act_id:1, scene_id:185&gt; 1 out of 25 failed. </code></pre></div>
0
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">The following template describes using a structural directive with 2 options:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;h1 *myDirective=&quot;firstOption: true; secondOption: false&quot;&gt;Hello&lt;/h1&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">h1</span> <span class="pl-c1">*myDirective</span>="<span class="pl-s">firstOption: true; secondOption: false</span>"<span class="pl-kos">&gt;</span>Hello<span class="pl-kos">&lt;/</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">But writing such a template results in the error: <code class="notranslate">Error: Template parse errors: TypeError: Cannot read property 'toUpperCase' of undefined</code>.</p> <p dir="auto"><strong>Expected behavior</strong></p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;h1 *myDirective=&quot;firstOption: true; secondOption: false&quot;&gt;Hello&lt;/h1&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">h1</span> <span class="pl-c1">*myDirective</span>="<span class="pl-s">firstOption: true; secondOption: false</span>"<span class="pl-kos">&gt;</span>Hello<span class="pl-kos">&lt;/</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">should de-sugarize to:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;template myDirective [myDirectiveFirstOption]=&quot;true&quot; [myDirectiveSecondOption]=&quot;false&quot;&gt; &lt;h1&gt;Hello&lt;/h1&gt; &lt;/template&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">template</span> <span class="pl-c1">myDirective</span> <span class="pl-c1">[myDirectiveFirstOption]</span>="<span class="pl-s">true</span>" <span class="pl-c1">[myDirectiveSecondOption]</span>="<span class="pl-s">false</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span>Hello<span class="pl-kos">&lt;/</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">template</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">This is what the microsyntax documentation describes.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto"><a href="http://plnkr.co/edit/sMFv2iGJoOdCRlWpIs40?p=preview" rel="nofollow">http://plnkr.co/edit/sMFv2iGJoOdCRlWpIs40?p=preview</a><br> The plunker crashes with the described error.<br> Using the manually de-sugarized</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;ng-template myDirective [myDirectiveFirstOption]=&quot;true&quot; [myDirectiveSecondOption]=&quot;false&quot;&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">ng-template</span> <span class="pl-c1">myDirective</span> <span class="pl-c1">[myDirectiveFirstOption]</span>="<span class="pl-s">true</span>" <span class="pl-c1">[myDirectiveSecondOption]</span>="<span class="pl-s">false</span>"<span class="pl-kos">&gt;</span></pre></div> <p dir="auto">makes it work fine.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">When writing reusable components and directives, offering the asterisk syntax is an important part of making the API easy to learn and understand. It follows the <code class="notranslate">*ngIf</code> and <code class="notranslate">*ngFor</code> lead people are used to.</p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.4.X</li> </ul> <ul dir="auto"> <li><strong>Browser:</strong> all</li> </ul> <ul dir="auto"> <li><strong>Language:</strong> all</li> </ul>
<p dir="auto">See example: <a href="http://plnkr.co/edit/9GdLbXM0mh5zHPKhcwCL?p=info" rel="nofollow">http://plnkr.co/edit/9GdLbXM0mh5zHPKhcwCL?p=info</a></p> <p dir="auto">Both of these should parse correctly:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div *bsPane=&quot;title exp&quot;&gt;&lt;/div&gt; &lt;div *bsPane=&quot;title: exp&quot;&gt;&lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div *bsPane="title exp"&gt;&lt;/div&gt; &lt;div *bsPane="title: exp"&gt;&lt;/div&gt; </code></pre></div> <p dir="auto">Given:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Directive({ selector: '[bsPane]' }) class Foo { @Input() bsPaneTitle: string; }"><pre class="notranslate"><code class="notranslate">@Directive({ selector: '[bsPane]' }) class Foo { @Input() bsPaneTitle: string; } </code></pre></div> <p dir="auto">instead get error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Can't bind to 'bsPane' since it isn't a known native property (&quot; Demo: &lt;div [ERROR -&gt;]*bsPane=&quot;title 'Overview'&quot;&gt;&lt;/div&gt; &lt;div *bsPane=&quot;title 'Summary'&quot;&gt;&lt;/div&gt;&quot;): DiDemo@2:9 Property binding bsPane not used by any directive on an embedded template (&quot; Demo: [ERROR -&gt;]&lt;div *bsPane=&quot;title 'Overview'&quot;&gt;&lt;/div&gt; &lt;div *bsPane=&quot;title 'Summary'&quot;&gt;&lt;/div&gt;&quot;): DiDemo@2:4 Can't bind to 'bsPane' since it isn't a known native property (&quot; Demo: &lt;div *bsPane=&quot;title 'Overview'&quot;&gt;&lt;/div&gt; &lt;div [ERROR -&gt;]*bsPane=&quot;title 'Summary'&quot;&gt;&lt;/div&gt;&quot;): DiDemo@3:9 Property binding bsPane not used by any directive on an embedded template (&quot; Demo: &lt;div *bsPane=&quot;title 'Overview'&quot;&gt;&lt;/div&gt; [ERROR -&gt;]&lt;div *bsPane=&quot;title 'Summary'&quot;&gt;&lt;/div&gt;&quot;): DiDemo@3:4```"><pre class="notranslate"><code class="notranslate">Can't bind to 'bsPane' since it isn't a known native property (" Demo: &lt;div [ERROR -&gt;]*bsPane="title 'Overview'"&gt;&lt;/div&gt; &lt;div *bsPane="title 'Summary'"&gt;&lt;/div&gt;"): DiDemo@2:9 Property binding bsPane not used by any directive on an embedded template (" Demo: [ERROR -&gt;]&lt;div *bsPane="title 'Overview'"&gt;&lt;/div&gt; &lt;div *bsPane="title 'Summary'"&gt;&lt;/div&gt;"): DiDemo@2:4 Can't bind to 'bsPane' since it isn't a known native property (" Demo: &lt;div *bsPane="title 'Overview'"&gt;&lt;/div&gt; &lt;div [ERROR -&gt;]*bsPane="title 'Summary'"&gt;&lt;/div&gt;"): DiDemo@3:9 Property binding bsPane not used by any directive on an embedded template (" Demo: &lt;div *bsPane="title 'Overview'"&gt;&lt;/div&gt; [ERROR -&gt;]&lt;div *bsPane="title 'Summary'"&gt;&lt;/div&gt;"): DiDemo@3:4``` </code></pre></div> <p dir="auto">and</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="EXCEPTION: Template parse errors: Parser Error: Unexpected token :, expected identifier, keyword, or string at column 13 in [bsPane title: 'Overview'] in DiDemo@2:9 (&quot; Demo: &lt;div [ERROR -&gt;]*bsPane=&quot;title: 'Overview'&quot;&gt;&lt;/div&gt; &lt;div *bsPane=&quot;title: 'Summary'&quot;&gt;&lt;/div&gt;&quot;): DiDemo@2:9 Parser Error: Unexpected token :, expected identifier, keyword, or string at column 13 in [bsPane title: 'Summary'] in DiDemo@3:9 (&quot; Demo: &lt;div *bsPane=&quot;title: 'Overview'&quot;&gt;&lt;/div&gt; &lt;div [ERROR -&gt;]*bsPane=&quot;title: 'Summary'&quot;&gt;&lt;/div&gt;&quot;): DiDemo@3:9"><pre class="notranslate"><code class="notranslate">EXCEPTION: Template parse errors: Parser Error: Unexpected token :, expected identifier, keyword, or string at column 13 in [bsPane title: 'Overview'] in DiDemo@2:9 (" Demo: &lt;div [ERROR -&gt;]*bsPane="title: 'Overview'"&gt;&lt;/div&gt; &lt;div *bsPane="title: 'Summary'"&gt;&lt;/div&gt;"): DiDemo@2:9 Parser Error: Unexpected token :, expected identifier, keyword, or string at column 13 in [bsPane title: 'Summary'] in DiDemo@3:9 (" Demo: &lt;div *bsPane="title: 'Overview'"&gt;&lt;/div&gt; &lt;div [ERROR -&gt;]*bsPane="title: 'Summary'"&gt;&lt;/div&gt;"): DiDemo@3:9 </code></pre></div>
1
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Launch an iPhone simulator, then in the flutter repo:</p> <ol dir="auto"> <li><code class="notranslate">cd examples/layers</code></li> <li><code class="notranslate">flutter run -t services/lifecycle.dart</code></li> </ol> <p dir="auto">Expected behaviour: launches app on simulator.<br> Actual behaviour: fails to launch, with messages:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% flutter run services/lifecycle.dart Launching services/lifecycle.dart on iPhone 7 in debug mode... ... The path lib/main.dart does not exist Command /bin/sh failed with exit code 255 Could not build the application for the simulator. Error launching application on iPhone 7."><pre class="notranslate"><code class="notranslate">% flutter run services/lifecycle.dart Launching services/lifecycle.dart on iPhone 7 in debug mode... ... The path lib/main.dart does not exist Command /bin/sh failed with exit code 255 Could not build the application for the simulator. Error launching application on iPhone 7. </code></pre></div> <p dir="auto">Contents of <code class="notranslate">ios/Flutter/Generated.xcconfig</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FLUTTER_ROOT=/Users/cbracken/src/flutter/flutter FLUTTER_APPLICATION_PATH=/Users/cbracken/src/flutter/flutter/examples/layers FLUTTER_TARGET=lib/main.dart FLUTTER_BUILD_MODE=debug FLUTTER_BUILD_DIR=build SYMROOT=${SOURCE_ROOT}/../build/ios FLUTTER_FRAMEWORK_DIR=/Users/cbracken/src/flutter/flutter/bin/cache/artifacts/engine/ios"><pre class="notranslate"><code class="notranslate">FLUTTER_ROOT=/Users/cbracken/src/flutter/flutter FLUTTER_APPLICATION_PATH=/Users/cbracken/src/flutter/flutter/examples/layers FLUTTER_TARGET=lib/main.dart FLUTTER_BUILD_MODE=debug FLUTTER_BUILD_DIR=build SYMROOT=${SOURCE_ROOT}/../build/ios FLUTTER_FRAMEWORK_DIR=/Users/cbracken/src/flutter/flutter/bin/cache/artifacts/engine/ios </code></pre></div> <p dir="auto">Note that we claim to launch <code class="notranslate">services/lifecycle.dart</code> but when I examine the contents of <code class="notranslate">Generated.xcconfig</code>, we're #pointing at <code class="notranslate">FLUTTER_TARGET=lib/main.dart</code>.</p> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% flutter run services/lifecycle.dart Launching services/lifecycle.dart on iPhone 7 in debug mode... Running Xcode build... 1.3s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** The following build commands failed: PhaseScriptExecution Run\ Script /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh (1 failure) Xcode's output: ↳ Build settings from command line: ARCHS = x86_64 BUILD_DIR = /Users/cbracken/src/flutter/flutter/examples/layers/build/ios ONLY_ACTIVE_ARCH = YES SDKROOT = iphonesimulator10.3 === CLEAN TARGET Pods-Runner OF PROJECT Pods WITH CONFIGURATION Release === Check dependencies Clean.Remove clean /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build builtin-rm -rf /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build Clean.Remove clean /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework builtin-rm -rf /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework === CLEAN TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release === Check dependencies Clean.Remove clean /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app builtin-rm -rf /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app Clean.Remove clean /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app.dSYM builtin-rm -rf /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app.dSYM Clean.Remove clean /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build builtin-rm -rf /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build ** CLEAN SUCCEEDED ** === BUILD TARGET Pods-Runner OF PROJECT Pods WITH CONFIGURATION Release === Check dependencies Write auxiliary files /bin/mkdir -p /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources/Pods_Runner_vers.c write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-all-target-headers.hmap /bin/mkdir -p /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64 write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods_Runner.LinkFileList write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/module.modulemap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-all-non-framework-target-headers.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-generated-files.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-own-target-headers.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-project-headers.hmap Create product structure /bin/mkdir -p /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework /bin/mkdir -p /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Headers ProcessInfoPlistFile /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Info.plist Target\ Support\ Files/Pods-Runner/Info.plist cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export PATH=&quot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin&quot; builtin-infoPlistUtility /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Target\ Support\ Files/Pods-Runner/Info.plist -expandbuildsettings -format binary -platform iphonesimulator -o /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Info.plist CompileC /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods_Runner_vers.o /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources/Pods_Runner_vers.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export LANG=en_US.US-ASCII export PATH=&quot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin&quot; /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fmodules -gmodules -fmodules-cache-path=/Users/cbracken/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/cbracken/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Xclang -fmodule-implementation-of -Xclang Pods_Runner -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wdocumentation -Wunreachable-code -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DPOD_CONFIGURATION_RELEASE=1 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -iquote /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-generated-files.hmap -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-own-target-headers.hmap -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-all-non-framework-target-headers.hmap -ivfsoverlay /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/all-product-headers.yaml -iquote /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-project-headers.hmap -I/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/include -I/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public -I/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources/x86_64 -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources -F/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator -F/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/../../../../bin/cache/artifacts/engine/ios -isystem /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public -isystem /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter -MMD -MT dependencies -MF /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods_Runner_vers.d --serialize-diagnostics /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods_Runner_vers.dia -c /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources/Pods_Runner_vers.c -o /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods_Runner_vers.o CompileC /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods-Runner-dummy.o Target\ Support\ Files/Pods-Runner/Pods-Runner-dummy.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export LANG=en_US.US-ASCII export PATH=&quot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin&quot; /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/cbracken/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/cbracken/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Xclang -fmodule-implementation-of -Xclang Pods_Runner -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DPOD_CONFIGURATION_RELEASE=1 -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-generated-files.hmap -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-own-target-headers.hmap -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-all-non-framework-target-headers.hmap -ivfsoverlay /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/all-product-headers.yaml -iquote /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-project-headers.hmap -I/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/include -I/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public -I/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources/x86_64 -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources -F/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator -F/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/../../../../bin/cache/artifacts/engine/ios -isystem /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public -isystem /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter -MMD -MT dependencies -MF /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods-Runner-dummy.d --serialize-diagnostics /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods-Runner-dummy.dia -c /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Target\ Support\ Files/Pods-Runner/Pods-Runner-dummy.m -o /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods-Runner-dummy.o Libtool /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Pods_Runner normal x86_64 cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export IPHONEOS_DEPLOYMENT_TARGET=8.0 export PATH=&quot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin&quot; /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -L/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator -filelist /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods_Runner.LinkFileList -framework Foundation -o /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Pods_Runner CpHeader Target\ Support\ Files/Pods-Runner/Pods-Runner-umbrella.h /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Headers/Pods-Runner-umbrella.h cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export PATH=&quot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin&quot; builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -strip-debug-symbols -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -resolve-src-symlinks /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Target\ Support\ Files/Pods-Runner/Pods-Runner-umbrella.h /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Headers Ditto /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/module.modulemap /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Modules/module.modulemap cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export PATH=&quot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin&quot; builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -strip-debug-symbols -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -resolve-src-symlinks /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/module.modulemap /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Modules Touch /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export PATH=&quot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin&quot; /usr/bin/touch -c /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework CodeSign /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export PATH=&quot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin&quot; Signing Identity: &quot;-&quot; /usr/bin/codesign --force --sign - --timestamp=none /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release === Check dependencies Write auxiliary files write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-532EA9D341340B1DCD08293D.sh chmod 0755 /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-532EA9D341340B1DCD08293D.sh write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-3B06AD1E1E4923F5004D2608.sh chmod 0755 /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-3B06AD1E1E4923F5004D2608.sh write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-generated-files.hmap /bin/mkdir -p /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects-normal/x86_64 write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner.LinkFileList write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh chmod 0755 /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-all-non-framework-target-headers.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-project-headers.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-all-target-headers.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-AB1344B0443C71CD721E1BB7.sh chmod 0755 /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-AB1344B0443C71CD721E1BB7.sh write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-95BB15E9E1769C0D146AA592.sh chmod 0755 /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-95BB15E9E1769C0D146AA592.sh write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-own-target-headers.hmap Create product structure /bin/mkdir -p /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app ProcessProductPackaging &quot;&quot; /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner.app.xcent cd /Users/cbracken/src/flutter/flutter/examples/layers/ios export PATH=&quot;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin&quot; Entitlements: { &quot;application-identifier&quot; = &quot;A7JQBCTFKQ.io.flutter.examples.Layers&quot;; &quot;keychain-access-groups&quot; = ( &quot;A7JQBCTFKQ.io.flutter.examples.Layers&quot; ); } builtin-productPackagingUtility -entitlements -format xml -o /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner.app.xcent PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-AB1344B0443C71CD721E1BB7.sh cd /Users/cbracken/src/flutter/flutter/examples/layers/ios /bin/sh -c /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-AB1344B0443C71CD721E1BB7.sh PhaseScriptExecution Run\ Script /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh cd /Users/cbracken/src/flutter/flutter/examples/layers/ios export ACTION=build export AD_HOC_CODE_SIGNING_ALLOWED=YES export ALTERNATE_GROUP=eng export ALTERNATE_MODE=u+w,go-w,a+rX export ALTERNATE_OWNER=cbracken export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO export ALWAYS_SEARCH_USER_PATHS=NO export ALWAYS_USE_SEPARATE_HEADERMAPS=NO export APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer export APPLE_INTERNAL_DIR=/AppleInternal export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools export APPLICATION_EXTENSION_API_ONLY=NO export APPLY_RULES_IN_COPY_FILES=NO export ARCHS=x86_64 export ARCHS_STANDARD=&quot;i386 x86_64&quot; export ARCHS_STANDARD_32_64_BIT=&quot;i386 x86_64&quot; export ARCHS_STANDARD_32_BIT=i386 export ARCHS_STANDARD_64_BIT=x86_64 export ARCHS_STANDARD_INCLUDING_64_BIT=&quot;i386 x86_64&quot; export ARCHS_UNIVERSAL_IPHONE_OS=&quot;i386 x86_64&quot; export ASSETCATALOG_COMPILER_APPICON_NAME=AppIcon export AVAILABLE_PLATFORMS=&quot;appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator&quot; export BITCODE_GENERATION_MODE=marker export BUILD_ACTIVE_RESOURCES_ONLY=YES export BUILD_COMPONENTS=&quot;headers build&quot; export BUILD_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios export BUILD_ROOT=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Products export BUILD_STYLE= export BUILD_VARIANTS=normal export BUILT_PRODUCTS_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator export CACHE_ROOT=/var/folders/27/df2qlt3110355gth_5q76kpm0048dq/C/com.apple.DeveloperTools/8.3.2-8E2002/Xcode export CCHROOT=/var/folders/27/df2qlt3110355gth_5q76kpm0048dq/C/com.apple.DeveloperTools/8.3.2-8E2002/Xcode export CHMOD=/bin/chmod export CHOWN=/usr/sbin/chown export CLANG_ANALYZER_NONNULL=YES export CLANG_CXX_LANGUAGE_STANDARD=gnu++0x export CLANG_CXX_LIBRARY=libc++ export CLANG_ENABLE_MODULES=YES export CLANG_ENABLE_OBJC_ARC=YES export CLANG_MODULES_BUILD_SESSION_FILE=/Users/cbracken/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation export CLANG_WARN_BOOL_CONVERSION=YES export CLANG_WARN_CONSTANT_CONVERSION=YES export CLANG_WARN_DIRECT_OBJC_ISA_USAGE=YES_ERROR export CLANG_WARN_EMPTY_BODY=YES export CLANG_WARN_ENUM_CONVERSION=YES export CLANG_WARN_INFINITE_RECURSION=YES export CLANG_WARN_INT_CONVERSION=YES export CLANG_WARN_OBJC_ROOT_CLASS=YES_ERROR export CLANG_WARN_SUSPICIOUS_MOVE=YES export CLANG_WARN_UNREACHABLE_CODE=YES export CLANG_WARN__DUPLICATE_METHOD_MATCH=YES export CLASS_FILE_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/JavaClasses export CLEAN_PRECOMPS=YES export CLONE_HEADERS=NO export CODESIGNING_FOLDER_PATH=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app export CODE_SIGNING_ALLOWED=YES export CODE_SIGNING_REQUIRED=YES export CODE_SIGN_CONTEXT_CLASS=XCiPhoneSimulatorCodeSignContext export CODE_SIGN_IDENTITY=- export COLOR_DIAGNOSTICS=NO export COMBINE_HIDPI_IMAGES=NO export COMMAND_MODE=legacy export COMPOSITE_SDK_DIRS=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/CompositeSDKs export COMPRESS_PNG_FILES=YES export CONFIGURATION=Release export CONFIGURATION_BUILD_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator export CONFIGURATION_TEMP_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator export CONTENTS_FOLDER_PATH=Runner.app export COPYING_PRESERVES_HFS_DATA=NO export COPY_HEADERS_RUN_UNIFDEF=NO export COPY_PHASE_STRIP=NO export COPY_RESOURCES_FROM_STATIC_FRAMEWORKS=YES export CORRESPONDING_DEVICE_PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform export CORRESPONDING_DEVICE_PLATFORM_NAME=iphoneos export CORRESPONDING_DEVICE_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk export CORRESPONDING_DEVICE_SDK_NAME=iphoneos10.3 export CP=/bin/cp export CREATE_INFOPLIST_SECTION_IN_BINARY=NO export CURRENT_ARCH=x86_64 export CURRENT_VARIANT=normal export DEAD_CODE_STRIPPING=YES export DEBUGGING_SYMBOLS=YES export DEBUG_INFORMATION_FORMAT=dwarf-with-dsym export DEFAULT_COMPILER=com.apple.compilers.llvm.clang.1_0 export DEFAULT_KEXT_INSTALL_PATH=/System/Library/Extensions export DEFINES_MODULE=NO export DEPLOYMENT_LOCATION=NO export DEPLOYMENT_POSTPROCESSING=NO export DEPLOYMENT_TARGET_CLANG_ENV_NAME=IPHONEOS_DEPLOYMENT_TARGET export DEPLOYMENT_TARGET_CLANG_FLAG_NAME=mios-simulator-version-min export DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX=-mios-simulator-version-min= export DEPLOYMENT_TARGET_SETTING_NAME=IPHONEOS_DEPLOYMENT_TARGET export DEPLOYMENT_TARGET_SUGGESTED_VALUES=&quot;8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1 10.2 10.3&quot; export DERIVED_FILES_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/DerivedSources export DERIVED_FILE_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/DerivedSources export DERIVED_SOURCES_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/DerivedSources export DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Applications export DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer export DEVELOPER_FRAMEWORKS_DIR=/Applications/Xcode.app/Contents/Developer/Library/Frameworks export DEVELOPER_FRAMEWORKS_DIR_QUOTED=/Applications/Xcode.app/Contents/Developer/Library/Frameworks export DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/Developer/Library export DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs export DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Tools export DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr export DEVELOPMENT_LANGUAGE=English export DOCUMENTATION_FOLDER_PATH=Runner.app/English.lproj/Documentation export DO_HEADER_SCANNING_IN_JAM=NO export DSTROOT=/tmp/Runner.dst export DT_TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain export DWARF_DSYM_FILE_NAME=Runner.app.dSYM export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT=NO export DWARF_DSYM_FOLDER_PATH=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator export EFFECTIVE_PLATFORM_NAME=-iphonesimulator export EMBEDDED_CONTENT_CONTAINS_SWIFT=NO export EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE=NO export ENABLE_BITCODE=NO export ENABLE_DEFAULT_HEADER_SEARCH_PATHS=YES export ENABLE_HEADER_DEPENDENCIES=YES export ENABLE_NS_ASSERTIONS=NO export ENABLE_ON_DEMAND_RESOURCES=YES export ENABLE_STRICT_OBJC_MSGSEND=YES export ENABLE_TESTABILITY=NO export ENTITLEMENTS_REQUIRED=YES export EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS=&quot;.DS_Store .svn .git .hg CVS&quot; export EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES=&quot;*.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj&quot; export EXECUTABLES_FOLDER_PATH=Runner.app/Executables export EXECUTABLE_FOLDER_PATH=Runner.app export EXECUTABLE_NAME=Runner export EXECUTABLE_PATH=Runner.app/Runner export EXPANDED_CODE_SIGN_IDENTITY=- export EXPANDED_CODE_SIGN_IDENTITY_NAME=- export EXPANDED_PROVISIONING_PROFILE= export FILE_LIST=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects/LinkFileList export FIXED_FILES_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/FixedFiles export FLUTTER_APPLICATION_PATH=/Users/cbracken/src/flutter/flutter/examples/layers export FLUTTER_BUILD_DIR=build export FLUTTER_BUILD_MODE=debug export FLUTTER_FRAMEWORK_DIR=/Users/cbracken/src/flutter/flutter/bin/cache/artifacts/engine/ios export FLUTTER_ROOT=/Users/cbracken/src/flutter/flutter export FLUTTER_TARGET=lib/main.dart export FRAMEWORKS_FOLDER_PATH=Runner.app/Frameworks export FRAMEWORK_FLAG_PREFIX=-framework export FRAMEWORK_SEARCH_PATHS=&quot;/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/../../../../bin/cache/artifacts/engine/ios /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter&quot; export FRAMEWORK_VERSION=A export FULL_PRODUCT_NAME=Runner.app export GCC3_VERSION=3.3 export GCC_C_LANGUAGE_STANDARD=gnu99 export GCC_INLINES_ARE_PRIVATE_EXTERN=YES export GCC_NO_COMMON_BLOCKS=YES export GCC_OBJC_LEGACY_DISPATCH=YES export GCC_PFE_FILE_C_DIALECTS=&quot;c objective-c c++ objective-c++&quot; export GCC_PREPROCESSOR_DEFINITIONS=&quot; COCOAPODS=1 COCOAPODS=1&quot; export GCC_SYMBOLS_PRIVATE_EXTERN=YES export GCC_TREAT_WARNINGS_AS_ERRORS=NO export GCC_VERSION=com.apple.compilers.llvm.clang.1_0 export GCC_VERSION_IDENTIFIER=com_apple_compilers_llvm_clang_1_0 export GCC_WARN_64_TO_32_BIT_CONVERSION=YES export GCC_WARN_ABOUT_RETURN_TYPE=YES_ERROR export GCC_WARN_UNDECLARED_SELECTOR=YES export GCC_WARN_UNINITIALIZED_AUTOS=YES_AGGRESSIVE export GCC_WARN_UNUSED_FUNCTION=YES export GCC_WARN_UNUSED_VARIABLE=YES export GENERATE_MASTER_OBJECT_FILE=NO export GENERATE_PKGINFO_FILE=YES export GENERATE_PROFILING_CODE=NO export GENERATE_TEXT_BASED_STUBS=NO export GID=5000 export GROUP=eng export HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT=YES export HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES=YES export HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS=YES export HEADERMAP_INCLUDES_PROJECT_HEADERS=YES export HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES=YES export HEADERMAP_USES_VFS=NO export HEADER_SEARCH_PATHS=&quot;/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/include /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter&quot; export HIDE_BITCODE_SYMBOLS=YES export HOME=/Users/cbracken export ICONV=/usr/bin/iconv export INFOPLIST_EXPAND_BUILD_SETTINGS=YES export INFOPLIST_FILE=Runner/Info.plist export INFOPLIST_OUTPUT_FORMAT=binary export INFOPLIST_PATH=Runner.app/Info.plist export INFOPLIST_PREPROCESS=NO export INFOSTRINGS_PATH=Runner.app/English.lproj/InfoPlist.strings export INLINE_PRIVATE_FRAMEWORKS=NO export INSTALLHDRS_COPY_PHASE=NO export INSTALLHDRS_SCRIPT_PHASE=NO export INSTALL_DIR=/tmp/Runner.dst/Applications export INSTALL_GROUP=eng export INSTALL_MODE_FLAG=u+w,go-w,a+rX export INSTALL_OWNER=cbracken export INSTALL_PATH=/Applications export INSTALL_ROOT=/tmp/Runner.dst export IPHONEOS_DEPLOYMENT_TARGET=8.0 export JAVAC_DEFAULT_FLAGS=&quot;-J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8&quot; export JAVA_APP_STUB=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub export JAVA_ARCHIVE_CLASSES=YES export JAVA_ARCHIVE_TYPE=JAR export JAVA_COMPILER=/usr/bin/javac export JAVA_FOLDER_PATH=Runner.app/Java export JAVA_FRAMEWORK_RESOURCES_DIRS=Resources export JAVA_JAR_FLAGS=cv export JAVA_SOURCE_SUBDIR=. export JAVA_USE_DEPENDENCIES=YES export JAVA_ZIP_FLAGS=-urg export JIKES_DEFAULT_FLAGS=&quot;+E +OLDCSO&quot; export KEEP_PRIVATE_EXTERNS=NO export LD_DEPENDENCY_INFO_FILE=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner_dependency_info.dat export LD_GENERATE_MAP_FILE=NO export LD_MAP_FILE_PATH=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-LinkMap-normal-x86_64.txt export LD_NO_PIE=NO export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER=YES export LD_RUNPATH_SEARCH_PATHS=&quot; '@executable_path/Frameworks' '@loader_path/Frameworks' '@executable_path/Frameworks' '@loader_path/Frameworks' @executable_path/Frameworks&quot; export LEGACY_DEVELOPER_DIR=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer export LEX=lex export LIBRARY_FLAG_NOSPACE=YES export LIBRARY_FLAG_PREFIX=-l export LIBRARY_KEXT_INSTALL_PATH=/Library/Extensions export LIBRARY_SEARCH_PATHS=&quot;/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter&quot; export LINKER_DISPLAYS_MANGLED_NAMES=NO export LINK_FILE_LIST_normal_x86_64=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner.LinkFileList export LINK_WITH_STANDARD_LIBRARIES=YES export LOCALIZABLE_CONTENT_DIR= export LOCALIZED_RESOURCES_FOLDER_PATH=Runner.app/English.lproj export LOCAL_ADMIN_APPS_DIR=/Applications/Utilities export LOCAL_APPS_DIR=/Applications export LOCAL_DEVELOPER_DIR=/Library/Developer export LOCAL_LIBRARY_DIR=/Library export LOCROOT= export LOCSYMROOT= export MACH_O_TYPE=mh_execute export MAC_OS_X_PRODUCT_BUILD_VERSION=16F73 export MAC_OS_X_VERSION_ACTUAL=101205 export MAC_OS_X_VERSION_MAJOR=101200 export MAC_OS_X_VERSION_MINOR=1205 export METAL_LIBRARY_FILE_BASE=default export METAL_LIBRARY_OUTPUT_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app export MODULE_CACHE_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/ModuleCache export MTL_ENABLE_DEBUG_INFO=NO export NATIVE_ARCH=i386 export NATIVE_ARCH_32_BIT=i386 export NATIVE_ARCH_64_BIT=x86_64 export NATIVE_ARCH_ACTUAL=x86_64 export NO_COMMON=YES export OBJC_ABI_VERSION=2 export OBJECT_FILE_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects export OBJECT_FILE_DIR_normal=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects-normal export OBJROOT=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates export ONLY_ACTIVE_ARCH=YES export OS=MACOS export OSAC=/usr/bin/osacompile export OTHER_CFLAGS=&quot; -isystem \&quot;/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public\&quot; -isystem \&quot;/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter\&quot; -isystem \&quot;/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public\&quot; -isystem \&quot;/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter\&quot;&quot; export OTHER_CPLUSPLUSFLAGS=&quot; -isystem \&quot;/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public\&quot; -isystem \&quot;/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter\&quot; -isystem \&quot;/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public\&quot; -isystem \&quot;/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter\&quot;&quot; export OTHER_LDFLAGS=&quot; -framework \&quot;Flutter\&quot; -framework \&quot;Flutter\&quot;&quot; export PACKAGE_TYPE=com.apple.package-type.wrapper.application export PASCAL_STRINGS=YES export PATH=&quot;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Tools:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin&quot; export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES=&quot;/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms&quot; export PBDEVELOPMENTPLIST_PATH=Runner.app/pbdevelopment.plist export PFE_FILE_C_DIALECTS=objective-c export PKGINFO_FILE_PATH=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/PkgInfo export PKGINFO_PATH=Runner.app/PkgInfo export PLATFORM_DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications export PLATFORM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin export PLATFORM_DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library export PLATFORM_DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs export PLATFORM_DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Tools export PLATFORM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr export PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform export PLATFORM_DISPLAY_NAME=&quot;iOS Simulator&quot; export PLATFORM_NAME=iphonesimulator export PLATFORM_PREFERRED_ARCH=x86_64 export PLIST_FILE_OUTPUT_FORMAT=binary export PLUGINS_FOLDER_PATH=Runner.app/PlugIns export PODS_BUILD_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios export PODS_CONFIGURATION_BUILD_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator export PODS_PODFILE_DIR_PATH=/Users/cbracken/src/flutter/flutter/examples/layers/ios/. export PODS_ROOT=/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR=YES export PRECOMP_DESTINATION_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/PrefixHeaders export PRESERVE_DEAD_CODE_INITS_AND_TERMS=NO export PRIVATE_HEADERS_FOLDER_PATH=Runner.app/PrivateHeaders export PRODUCT_BUNDLE_IDENTIFIER=io.flutter.examples.Layers export PRODUCT_MODULE_NAME=Runner export PRODUCT_NAME=Runner export PRODUCT_SETTINGS_PATH=/Users/cbracken/src/flutter/flutter/examples/layers/ios/Runner/Info.plist export PRODUCT_TYPE=com.apple.product-type.application export PROFILING_CODE=NO export PROJECT=Runner export PROJECT_DERIVED_FILE_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/DerivedSources export PROJECT_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/ios export PROJECT_FILE_PATH=/Users/cbracken/src/flutter/flutter/examples/layers/ios/Runner.xcodeproj export PROJECT_NAME=Runner export PROJECT_TEMP_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build export PROJECT_TEMP_ROOT=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates export PUBLIC_HEADERS_FOLDER_PATH=Runner.app/Headers export RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS=YES export REMOVE_CVS_FROM_RESOURCES=YES export REMOVE_GIT_FROM_RESOURCES=YES export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES=YES export REMOVE_HG_FROM_RESOURCES=YES export REMOVE_SVN_FROM_RESOURCES=YES export REZ_COLLECTOR_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/ResourceManagerResources export REZ_OBJECTS_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/ResourceManagerResources/Objects export REZ_SEARCH_PATHS=&quot;/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator &quot; export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES=NO export SCRIPTS_FOLDER_PATH=Runner.app/Scripts export SCRIPT_INPUT_FILE_COUNT=0 export SCRIPT_OUTPUT_FILE_COUNT=0 export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk export SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk export SDK_DIR_iphonesimulator10_3=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk export SDK_NAME=iphonesimulator10.3 export SDK_NAMES=iphonesimulator10.3 export SDK_PRODUCT_BUILD_VERSION=14E269 export SDK_VERSION=10.3 export SDK_VERSION_ACTUAL=100300 export SDK_VERSION_MAJOR=100000 export SDK_VERSION_MINOR=300 export SED=/usr/bin/sed export SEPARATE_STRIP=NO export SEPARATE_SYMBOL_EDIT=NO export SET_DIR_MODE_OWNER_GROUP=YES export SET_FILE_MODE_OWNER_GROUP=NO export SHALLOW_BUNDLE=YES export SHARED_DERIVED_FILE_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/DerivedSources export SHARED_FRAMEWORKS_FOLDER_PATH=Runner.app/SharedFrameworks export SHARED_PRECOMPS_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/PrecompiledHeaders export SHARED_SUPPORT_FOLDER_PATH=Runner.app/SharedSupport export SKIP_INSTALL=NO export SOURCE_ROOT=/Users/cbracken/src/flutter/flutter/examples/layers/ios export SRCROOT=/Users/cbracken/src/flutter/flutter/examples/layers/ios export STRINGS_FILE_OUTPUT_ENCODING=binary export STRIP_BITCODE_FROM_COPIED_FILES=NO export STRIP_INSTALLED_PRODUCT=YES export STRIP_STYLE=all export SUPPORTED_DEVICE_FAMILIES=1,2 export SUPPORTED_PLATFORMS=&quot;iphonesimulator iphoneos&quot; export SUPPORTS_TEXT_BASED_API=NO export SWIFT_PLATFORM_TARGET_PREFIX=ios export SYMROOT=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Products export SYSTEM_ADMIN_APPS_DIR=/Applications/Utilities export SYSTEM_APPS_DIR=/Applications export SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices export SYSTEM_DEMOS_DIR=/Applications/Extras export SYSTEM_DEVELOPER_APPS_DIR=/Applications/Xcode.app/Contents/Developer/Applications export SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin export SYSTEM_DEVELOPER_DEMOS_DIR=&quot;/Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples&quot; export SYSTEM_DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer export SYSTEM_DEVELOPER_DOC_DIR=&quot;/Applications/Xcode.app/Contents/Developer/ADC Reference Library&quot; export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR=&quot;/Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools&quot; export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR=&quot;/Applications/Xcode.app/Contents/Developer/Applications/Java Tools&quot; export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR=&quot;/Applications/Xcode.app/Contents/Developer/Applications/Performance Tools&quot; export SYSTEM_DEVELOPER_RELEASENOTES_DIR=&quot;/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes&quot; export SYSTEM_DEVELOPER_TOOLS=/Applications/Xcode.app/Contents/Developer/Tools export SYSTEM_DEVELOPER_TOOLS_DOC_DIR=&quot;/Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools&quot; export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR=&quot;/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools&quot; export SYSTEM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr export SYSTEM_DEVELOPER_UTILITIES_DIR=/Applications/Xcode.app/Contents/Developer/Applications/Utilities export SYSTEM_DOCUMENTATION_DIR=/Library/Documentation export SYSTEM_KEXT_INSTALL_PATH=/System/Library/Extensions export SYSTEM_LIBRARY_DIR=/System/Library export TAPI_VERIFY_MODE=ErrorsOnly export TARGETED_DEVICE_FAMILY=1,2 export TARGETNAME=Runner export TARGET_BUILD_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator export TARGET_DEVICE_IDENTIFIER=&quot;dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder&quot; export TARGET_NAME=Runner export TARGET_TEMP_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build export TEMP_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build export TEMP_FILES_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build export TEMP_FILE_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build export TEMP_ROOT=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault export TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain export TREAT_MISSING_BASELINES_AS_TEST_FAILURES=NO export UID=139703 export UNLOCALIZED_RESOURCES_FOLDER_PATH=Runner.app export UNSTRIPPED_PRODUCT=NO export USER=cbracken export USER_APPS_DIR=/Users/cbracken/Applications export USER_LIBRARY_DIR=/Users/cbracken/Library export USE_DYNAMIC_NO_PIC=YES export USE_HEADERMAP=YES export USE_HEADER_SYMLINKS=NO export VALIDATE_PRODUCT=YES export VALID_ARCHS=&quot;i386 x86_64&quot; export VERBOSE_PBXCP=NO export VERSIONPLIST_PATH=Runner.app/version.plist export VERSION_INFO_BUILDER=cbracken export VERSION_INFO_FILE=Runner_vers.c export VERSION_INFO_STRING=&quot;\&quot;@(#)PROGRAM:Runner PROJECT:Runner-\&quot;&quot; export WRAPPER_EXTENSION=app export WRAPPER_NAME=Runner.app export WRAPPER_SUFFIX=.app export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES=NO export XCODE_APP_SUPPORT_DIR=/Applications/Xcode.app/Contents/Developer/Library/Xcode export XCODE_PRODUCT_BUILD_VERSION=8E2002 export XCODE_VERSION_ACTUAL=0832 export XCODE_VERSION_MAJOR=0800 export XCODE_VERSION_MINOR=0830 export XPCSERVICES_FOLDER_PATH=Runner.app/XPCServices export YACC=yacc export arch=x86_64 export variant=normal /bin/sh -c /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh ♦ mkdir -p -- /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter ♦ rm -rf -- /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter/Flutter.framework ♦ rm -rf -- /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter/App.framework ♦ rm -f -- /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter/app.flx ♦ cp -r -- /Users/cbracken/src/flutter/flutter/bin/cache/artifacts/engine/ios/Flutter.framework /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter ♦ find /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter/Flutter.framework -type f -exec chmod a-w {} ; The path lib/main.dart does not exist Command /bin/sh failed with exit code 255 Could not build the application for the simulator. Error launching application on iPhone 7."><pre class="notranslate"><code class="notranslate">% flutter run services/lifecycle.dart Launching services/lifecycle.dart on iPhone 7 in debug mode... Running Xcode build... 1.3s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** The following build commands failed: PhaseScriptExecution Run\ Script /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh (1 failure) Xcode's output: ↳ Build settings from command line: ARCHS = x86_64 BUILD_DIR = /Users/cbracken/src/flutter/flutter/examples/layers/build/ios ONLY_ACTIVE_ARCH = YES SDKROOT = iphonesimulator10.3 === CLEAN TARGET Pods-Runner OF PROJECT Pods WITH CONFIGURATION Release === Check dependencies Clean.Remove clean /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build builtin-rm -rf /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build Clean.Remove clean /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework builtin-rm -rf /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework === CLEAN TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release === Check dependencies Clean.Remove clean /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app builtin-rm -rf /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app Clean.Remove clean /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app.dSYM builtin-rm -rf /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app.dSYM Clean.Remove clean /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build builtin-rm -rf /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build ** CLEAN SUCCEEDED ** === BUILD TARGET Pods-Runner OF PROJECT Pods WITH CONFIGURATION Release === Check dependencies Write auxiliary files /bin/mkdir -p /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources/Pods_Runner_vers.c write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-all-target-headers.hmap /bin/mkdir -p /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64 write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods_Runner.LinkFileList write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/module.modulemap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-all-non-framework-target-headers.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-generated-files.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-own-target-headers.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-project-headers.hmap Create product structure /bin/mkdir -p /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework /bin/mkdir -p /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Headers ProcessInfoPlistFile /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Info.plist Target\ Support\ Files/Pods-Runner/Info.plist cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" builtin-infoPlistUtility /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Target\ Support\ Files/Pods-Runner/Info.plist -expandbuildsettings -format binary -platform iphonesimulator -o /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Info.plist CompileC /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods_Runner_vers.o /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources/Pods_Runner_vers.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export LANG=en_US.US-ASCII export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fmodules -gmodules -fmodules-cache-path=/Users/cbracken/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/cbracken/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Xclang -fmodule-implementation-of -Xclang Pods_Runner -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wdocumentation -Wunreachable-code -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DPOD_CONFIGURATION_RELEASE=1 -DCOCOAPODS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -iquote /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-generated-files.hmap -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-own-target-headers.hmap -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-all-non-framework-target-headers.hmap -ivfsoverlay /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/all-product-headers.yaml -iquote /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-project-headers.hmap -I/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/include -I/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public -I/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources/x86_64 -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources -F/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator -F/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/../../../../bin/cache/artifacts/engine/ios -isystem /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public -isystem /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter -MMD -MT dependencies -MF /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods_Runner_vers.d --serialize-diagnostics /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods_Runner_vers.dia -c /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources/Pods_Runner_vers.c -o /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods_Runner_vers.o CompileC /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods-Runner-dummy.o Target\ Support\ Files/Pods-Runner/Pods-Runner-dummy.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export LANG=en_US.US-ASCII export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/cbracken/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/cbracken/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Xclang -fmodule-implementation-of -Xclang Pods_Runner -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DPOD_CONFIGURATION_RELEASE=1 -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=8.0 -g -Wno-sign-conversion -Winfinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-generated-files.hmap -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-own-target-headers.hmap -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-all-non-framework-target-headers.hmap -ivfsoverlay /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/all-product-headers.yaml -iquote /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Pods_Runner-project-headers.hmap -I/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/include -I/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public -I/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources/x86_64 -I/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/DerivedSources -F/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator -F/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/../../../../bin/cache/artifacts/engine/ios -isystem /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public -isystem /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter -MMD -MT dependencies -MF /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods-Runner-dummy.d --serialize-diagnostics /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods-Runner-dummy.dia -c /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Target\ Support\ Files/Pods-Runner/Pods-Runner-dummy.m -o /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods-Runner-dummy.o Libtool /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Pods_Runner normal x86_64 cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export IPHONEOS_DEPLOYMENT_TARGET=8.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -L/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator -filelist /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/Objects-normal/x86_64/Pods_Runner.LinkFileList -framework Foundation -o /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Pods_Runner CpHeader Target\ Support\ Files/Pods-Runner/Pods-Runner-umbrella.h /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Headers/Pods-Runner-umbrella.h cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -strip-debug-symbols -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -resolve-src-symlinks /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Target\ Support\ Files/Pods-Runner/Pods-Runner-umbrella.h /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Headers Ditto /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/module.modulemap /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Modules/module.modulemap cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -strip-debug-symbols -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -resolve-src-symlinks /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Pods.build/Release-iphonesimulator/Pods-Runner.build/module.modulemap /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework/Modules Touch /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" /usr/bin/touch -c /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework CodeSign /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework cd /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" Signing Identity: "-" /usr/bin/codesign --force --sign - --timestamp=none /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Pods_Runner.framework === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release === Check dependencies Write auxiliary files write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-532EA9D341340B1DCD08293D.sh chmod 0755 /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-532EA9D341340B1DCD08293D.sh write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-3B06AD1E1E4923F5004D2608.sh chmod 0755 /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-3B06AD1E1E4923F5004D2608.sh write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-generated-files.hmap /bin/mkdir -p /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects-normal/x86_64 write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner.LinkFileList write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh chmod 0755 /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-all-non-framework-target-headers.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-project-headers.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-all-target-headers.hmap write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-AB1344B0443C71CD721E1BB7.sh chmod 0755 /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-AB1344B0443C71CD721E1BB7.sh write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-95BB15E9E1769C0D146AA592.sh chmod 0755 /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-95BB15E9E1769C0D146AA592.sh write-file /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-own-target-headers.hmap Create product structure /bin/mkdir -p /Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app ProcessProductPackaging "" /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner.app.xcent cd /Users/cbracken/src/flutter/flutter/examples/layers/ios export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" Entitlements: { "application-identifier" = "A7JQBCTFKQ.io.flutter.examples.Layers"; "keychain-access-groups" = ( "A7JQBCTFKQ.io.flutter.examples.Layers" ); } builtin-productPackagingUtility -entitlements -format xml -o /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner.app.xcent PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-AB1344B0443C71CD721E1BB7.sh cd /Users/cbracken/src/flutter/flutter/examples/layers/ios /bin/sh -c /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-AB1344B0443C71CD721E1BB7.sh PhaseScriptExecution Run\ Script /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh cd /Users/cbracken/src/flutter/flutter/examples/layers/ios export ACTION=build export AD_HOC_CODE_SIGNING_ALLOWED=YES export ALTERNATE_GROUP=eng export ALTERNATE_MODE=u+w,go-w,a+rX export ALTERNATE_OWNER=cbracken export ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO export ALWAYS_SEARCH_USER_PATHS=NO export ALWAYS_USE_SEPARATE_HEADERMAPS=NO export APPLE_INTERNAL_DEVELOPER_DIR=/AppleInternal/Developer export APPLE_INTERNAL_DIR=/AppleInternal export APPLE_INTERNAL_DOCUMENTATION_DIR=/AppleInternal/Documentation export APPLE_INTERNAL_LIBRARY_DIR=/AppleInternal/Library export APPLE_INTERNAL_TOOLS=/AppleInternal/Developer/Tools export APPLICATION_EXTENSION_API_ONLY=NO export APPLY_RULES_IN_COPY_FILES=NO export ARCHS=x86_64 export ARCHS_STANDARD="i386 x86_64" export ARCHS_STANDARD_32_64_BIT="i386 x86_64" export ARCHS_STANDARD_32_BIT=i386 export ARCHS_STANDARD_64_BIT=x86_64 export ARCHS_STANDARD_INCLUDING_64_BIT="i386 x86_64" export ARCHS_UNIVERSAL_IPHONE_OS="i386 x86_64" export ASSETCATALOG_COMPILER_APPICON_NAME=AppIcon export AVAILABLE_PLATFORMS="appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator" export BITCODE_GENERATION_MODE=marker export BUILD_ACTIVE_RESOURCES_ONLY=YES export BUILD_COMPONENTS="headers build" export BUILD_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios export BUILD_ROOT=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Products export BUILD_STYLE= export BUILD_VARIANTS=normal export BUILT_PRODUCTS_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator export CACHE_ROOT=/var/folders/27/df2qlt3110355gth_5q76kpm0048dq/C/com.apple.DeveloperTools/8.3.2-8E2002/Xcode export CCHROOT=/var/folders/27/df2qlt3110355gth_5q76kpm0048dq/C/com.apple.DeveloperTools/8.3.2-8E2002/Xcode export CHMOD=/bin/chmod export CHOWN=/usr/sbin/chown export CLANG_ANALYZER_NONNULL=YES export CLANG_CXX_LANGUAGE_STANDARD=gnu++0x export CLANG_CXX_LIBRARY=libc++ export CLANG_ENABLE_MODULES=YES export CLANG_ENABLE_OBJC_ARC=YES export CLANG_MODULES_BUILD_SESSION_FILE=/Users/cbracken/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation export CLANG_WARN_BOOL_CONVERSION=YES export CLANG_WARN_CONSTANT_CONVERSION=YES export CLANG_WARN_DIRECT_OBJC_ISA_USAGE=YES_ERROR export CLANG_WARN_EMPTY_BODY=YES export CLANG_WARN_ENUM_CONVERSION=YES export CLANG_WARN_INFINITE_RECURSION=YES export CLANG_WARN_INT_CONVERSION=YES export CLANG_WARN_OBJC_ROOT_CLASS=YES_ERROR export CLANG_WARN_SUSPICIOUS_MOVE=YES export CLANG_WARN_UNREACHABLE_CODE=YES export CLANG_WARN__DUPLICATE_METHOD_MATCH=YES export CLASS_FILE_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/JavaClasses export CLEAN_PRECOMPS=YES export CLONE_HEADERS=NO export CODESIGNING_FOLDER_PATH=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app export CODE_SIGNING_ALLOWED=YES export CODE_SIGNING_REQUIRED=YES export CODE_SIGN_CONTEXT_CLASS=XCiPhoneSimulatorCodeSignContext export CODE_SIGN_IDENTITY=- export COLOR_DIAGNOSTICS=NO export COMBINE_HIDPI_IMAGES=NO export COMMAND_MODE=legacy export COMPOSITE_SDK_DIRS=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/CompositeSDKs export COMPRESS_PNG_FILES=YES export CONFIGURATION=Release export CONFIGURATION_BUILD_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator export CONFIGURATION_TEMP_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator export CONTENTS_FOLDER_PATH=Runner.app export COPYING_PRESERVES_HFS_DATA=NO export COPY_HEADERS_RUN_UNIFDEF=NO export COPY_PHASE_STRIP=NO export COPY_RESOURCES_FROM_STATIC_FRAMEWORKS=YES export CORRESPONDING_DEVICE_PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform export CORRESPONDING_DEVICE_PLATFORM_NAME=iphoneos export CORRESPONDING_DEVICE_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk export CORRESPONDING_DEVICE_SDK_NAME=iphoneos10.3 export CP=/bin/cp export CREATE_INFOPLIST_SECTION_IN_BINARY=NO export CURRENT_ARCH=x86_64 export CURRENT_VARIANT=normal export DEAD_CODE_STRIPPING=YES export DEBUGGING_SYMBOLS=YES export DEBUG_INFORMATION_FORMAT=dwarf-with-dsym export DEFAULT_COMPILER=com.apple.compilers.llvm.clang.1_0 export DEFAULT_KEXT_INSTALL_PATH=/System/Library/Extensions export DEFINES_MODULE=NO export DEPLOYMENT_LOCATION=NO export DEPLOYMENT_POSTPROCESSING=NO export DEPLOYMENT_TARGET_CLANG_ENV_NAME=IPHONEOS_DEPLOYMENT_TARGET export DEPLOYMENT_TARGET_CLANG_FLAG_NAME=mios-simulator-version-min export DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX=-mios-simulator-version-min= export DEPLOYMENT_TARGET_SETTING_NAME=IPHONEOS_DEPLOYMENT_TARGET export DEPLOYMENT_TARGET_SUGGESTED_VALUES="8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1 10.2 10.3" export DERIVED_FILES_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/DerivedSources export DERIVED_FILE_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/DerivedSources export DERIVED_SOURCES_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/DerivedSources export DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Applications export DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer export DEVELOPER_FRAMEWORKS_DIR=/Applications/Xcode.app/Contents/Developer/Library/Frameworks export DEVELOPER_FRAMEWORKS_DIR_QUOTED=/Applications/Xcode.app/Contents/Developer/Library/Frameworks export DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/Developer/Library export DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs export DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Tools export DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr export DEVELOPMENT_LANGUAGE=English export DOCUMENTATION_FOLDER_PATH=Runner.app/English.lproj/Documentation export DO_HEADER_SCANNING_IN_JAM=NO export DSTROOT=/tmp/Runner.dst export DT_TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain export DWARF_DSYM_FILE_NAME=Runner.app.dSYM export DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT=NO export DWARF_DSYM_FOLDER_PATH=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator export EFFECTIVE_PLATFORM_NAME=-iphonesimulator export EMBEDDED_CONTENT_CONTAINS_SWIFT=NO export EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE=NO export ENABLE_BITCODE=NO export ENABLE_DEFAULT_HEADER_SEARCH_PATHS=YES export ENABLE_HEADER_DEPENDENCIES=YES export ENABLE_NS_ASSERTIONS=NO export ENABLE_ON_DEMAND_RESOURCES=YES export ENABLE_STRICT_OBJC_MSGSEND=YES export ENABLE_TESTABILITY=NO export ENTITLEMENTS_REQUIRED=YES export EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS=".DS_Store .svn .git .hg CVS" export EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES="*.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj" export EXECUTABLES_FOLDER_PATH=Runner.app/Executables export EXECUTABLE_FOLDER_PATH=Runner.app export EXECUTABLE_NAME=Runner export EXECUTABLE_PATH=Runner.app/Runner export EXPANDED_CODE_SIGN_IDENTITY=- export EXPANDED_CODE_SIGN_IDENTITY_NAME=- export EXPANDED_PROVISIONING_PROFILE= export FILE_LIST=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects/LinkFileList export FIXED_FILES_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/FixedFiles export FLUTTER_APPLICATION_PATH=/Users/cbracken/src/flutter/flutter/examples/layers export FLUTTER_BUILD_DIR=build export FLUTTER_BUILD_MODE=debug export FLUTTER_FRAMEWORK_DIR=/Users/cbracken/src/flutter/flutter/bin/cache/artifacts/engine/ios export FLUTTER_ROOT=/Users/cbracken/src/flutter/flutter export FLUTTER_TARGET=lib/main.dart export FRAMEWORKS_FOLDER_PATH=Runner.app/Frameworks export FRAMEWORK_FLAG_PREFIX=-framework export FRAMEWORK_SEARCH_PATHS="/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/../../../../bin/cache/artifacts/engine/ios /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter" export FRAMEWORK_VERSION=A export FULL_PRODUCT_NAME=Runner.app export GCC3_VERSION=3.3 export GCC_C_LANGUAGE_STANDARD=gnu99 export GCC_INLINES_ARE_PRIVATE_EXTERN=YES export GCC_NO_COMMON_BLOCKS=YES export GCC_OBJC_LEGACY_DISPATCH=YES export GCC_PFE_FILE_C_DIALECTS="c objective-c c++ objective-c++" export GCC_PREPROCESSOR_DEFINITIONS=" COCOAPODS=1 COCOAPODS=1" export GCC_SYMBOLS_PRIVATE_EXTERN=YES export GCC_TREAT_WARNINGS_AS_ERRORS=NO export GCC_VERSION=com.apple.compilers.llvm.clang.1_0 export GCC_VERSION_IDENTIFIER=com_apple_compilers_llvm_clang_1_0 export GCC_WARN_64_TO_32_BIT_CONVERSION=YES export GCC_WARN_ABOUT_RETURN_TYPE=YES_ERROR export GCC_WARN_UNDECLARED_SELECTOR=YES export GCC_WARN_UNINITIALIZED_AUTOS=YES_AGGRESSIVE export GCC_WARN_UNUSED_FUNCTION=YES export GCC_WARN_UNUSED_VARIABLE=YES export GENERATE_MASTER_OBJECT_FILE=NO export GENERATE_PKGINFO_FILE=YES export GENERATE_PROFILING_CODE=NO export GENERATE_TEXT_BASED_STUBS=NO export GID=5000 export GROUP=eng export HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT=YES export HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES=YES export HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS=YES export HEADERMAP_INCLUDES_PROJECT_HEADERS=YES export HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES=YES export HEADERMAP_USES_VFS=NO export HEADER_SEARCH_PATHS="/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/include /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public /Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter" export HIDE_BITCODE_SYMBOLS=YES export HOME=/Users/cbracken export ICONV=/usr/bin/iconv export INFOPLIST_EXPAND_BUILD_SETTINGS=YES export INFOPLIST_FILE=Runner/Info.plist export INFOPLIST_OUTPUT_FORMAT=binary export INFOPLIST_PATH=Runner.app/Info.plist export INFOPLIST_PREPROCESS=NO export INFOSTRINGS_PATH=Runner.app/English.lproj/InfoPlist.strings export INLINE_PRIVATE_FRAMEWORKS=NO export INSTALLHDRS_COPY_PHASE=NO export INSTALLHDRS_SCRIPT_PHASE=NO export INSTALL_DIR=/tmp/Runner.dst/Applications export INSTALL_GROUP=eng export INSTALL_MODE_FLAG=u+w,go-w,a+rX export INSTALL_OWNER=cbracken export INSTALL_PATH=/Applications export INSTALL_ROOT=/tmp/Runner.dst export IPHONEOS_DEPLOYMENT_TARGET=8.0 export JAVAC_DEFAULT_FLAGS="-J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8" export JAVA_APP_STUB=/System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub export JAVA_ARCHIVE_CLASSES=YES export JAVA_ARCHIVE_TYPE=JAR export JAVA_COMPILER=/usr/bin/javac export JAVA_FOLDER_PATH=Runner.app/Java export JAVA_FRAMEWORK_RESOURCES_DIRS=Resources export JAVA_JAR_FLAGS=cv export JAVA_SOURCE_SUBDIR=. export JAVA_USE_DEPENDENCIES=YES export JAVA_ZIP_FLAGS=-urg export JIKES_DEFAULT_FLAGS="+E +OLDCSO" export KEEP_PRIVATE_EXTERNS=NO export LD_DEPENDENCY_INFO_FILE=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner_dependency_info.dat export LD_GENERATE_MAP_FILE=NO export LD_MAP_FILE_PATH=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Runner-LinkMap-normal-x86_64.txt export LD_NO_PIE=NO export LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER=YES export LD_RUNPATH_SEARCH_PATHS=" '@executable_path/Frameworks' '@loader_path/Frameworks' '@executable_path/Frameworks' '@loader_path/Frameworks' @executable_path/Frameworks" export LEGACY_DEVELOPER_DIR=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer export LEX=lex export LIBRARY_FLAG_NOSPACE=YES export LIBRARY_FLAG_PREFIX=-l export LIBRARY_KEXT_INSTALL_PATH=/Library/Extensions export LIBRARY_SEARCH_PATHS="/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter" export LINKER_DISPLAYS_MANGLED_NAMES=NO export LINK_FILE_LIST_normal_x86_64=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner.LinkFileList export LINK_WITH_STANDARD_LIBRARIES=YES export LOCALIZABLE_CONTENT_DIR= export LOCALIZED_RESOURCES_FOLDER_PATH=Runner.app/English.lproj export LOCAL_ADMIN_APPS_DIR=/Applications/Utilities export LOCAL_APPS_DIR=/Applications export LOCAL_DEVELOPER_DIR=/Library/Developer export LOCAL_LIBRARY_DIR=/Library export LOCROOT= export LOCSYMROOT= export MACH_O_TYPE=mh_execute export MAC_OS_X_PRODUCT_BUILD_VERSION=16F73 export MAC_OS_X_VERSION_ACTUAL=101205 export MAC_OS_X_VERSION_MAJOR=101200 export MAC_OS_X_VERSION_MINOR=1205 export METAL_LIBRARY_FILE_BASE=default export METAL_LIBRARY_OUTPUT_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/Runner.app export MODULE_CACHE_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/ModuleCache export MTL_ENABLE_DEBUG_INFO=NO export NATIVE_ARCH=i386 export NATIVE_ARCH_32_BIT=i386 export NATIVE_ARCH_64_BIT=x86_64 export NATIVE_ARCH_ACTUAL=x86_64 export NO_COMMON=YES export OBJC_ABI_VERSION=2 export OBJECT_FILE_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects export OBJECT_FILE_DIR_normal=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Objects-normal export OBJROOT=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates export ONLY_ACTIVE_ARCH=YES export OS=MACOS export OSAC=/usr/bin/osacompile export OTHER_CFLAGS=" -isystem \"/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public\" -isystem \"/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter\" -isystem \"/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public\" -isystem \"/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter\"" export OTHER_CPLUSPLUSFLAGS=" -isystem \"/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public\" -isystem \"/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter\" -isystem \"/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public\" -isystem \"/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods/Headers/Public/Flutter\"" export OTHER_LDFLAGS=" -framework \"Flutter\" -framework \"Flutter\"" export PACKAGE_TYPE=com.apple.package-type.wrapper.application export PASCAL_STRINGS=YES export PATH="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/local/bin:/Applications/Xcode.app/Contents/Developer/Tools:/Users/cbracken/.dvm/darts/flutter/bin:/Users/cbracken/bin:/Users/cbracken/src/flutter/flutter/bin:/Users/cbracken/src/depot_tools:/Users/cbracken/src/goma:/Users/cbracken/.homebrew/bin:/usr/local/bin:/usr/local/git/current/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin" export PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES="/usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms" export PBDEVELOPMENTPLIST_PATH=Runner.app/pbdevelopment.plist export PFE_FILE_C_DIALECTS=objective-c export PKGINFO_FILE_PATH=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/PkgInfo export PKGINFO_PATH=Runner.app/PkgInfo export PLATFORM_DEVELOPER_APPLICATIONS_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications export PLATFORM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin export PLATFORM_DEVELOPER_LIBRARY_DIR=/Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library export PLATFORM_DEVELOPER_SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs export PLATFORM_DEVELOPER_TOOLS_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Tools export PLATFORM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr export PLATFORM_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform export PLATFORM_DISPLAY_NAME="iOS Simulator" export PLATFORM_NAME=iphonesimulator export PLATFORM_PREFERRED_ARCH=x86_64 export PLIST_FILE_OUTPUT_FORMAT=binary export PLUGINS_FOLDER_PATH=Runner.app/PlugIns export PODS_BUILD_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios export PODS_CONFIGURATION_BUILD_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator export PODS_PODFILE_DIR_PATH=/Users/cbracken/src/flutter/flutter/examples/layers/ios/. export PODS_ROOT=/Users/cbracken/src/flutter/flutter/examples/layers/ios/Pods export PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR=YES export PRECOMP_DESTINATION_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/PrefixHeaders export PRESERVE_DEAD_CODE_INITS_AND_TERMS=NO export PRIVATE_HEADERS_FOLDER_PATH=Runner.app/PrivateHeaders export PRODUCT_BUNDLE_IDENTIFIER=io.flutter.examples.Layers export PRODUCT_MODULE_NAME=Runner export PRODUCT_NAME=Runner export PRODUCT_SETTINGS_PATH=/Users/cbracken/src/flutter/flutter/examples/layers/ios/Runner/Info.plist export PRODUCT_TYPE=com.apple.product-type.application export PROFILING_CODE=NO export PROJECT=Runner export PROJECT_DERIVED_FILE_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/DerivedSources export PROJECT_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/ios export PROJECT_FILE_PATH=/Users/cbracken/src/flutter/flutter/examples/layers/ios/Runner.xcodeproj export PROJECT_NAME=Runner export PROJECT_TEMP_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build export PROJECT_TEMP_ROOT=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates export PUBLIC_HEADERS_FOLDER_PATH=Runner.app/Headers export RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS=YES export REMOVE_CVS_FROM_RESOURCES=YES export REMOVE_GIT_FROM_RESOURCES=YES export REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES=YES export REMOVE_HG_FROM_RESOURCES=YES export REMOVE_SVN_FROM_RESOURCES=YES export REZ_COLLECTOR_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/ResourceManagerResources export REZ_OBJECTS_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/ResourceManagerResources/Objects export REZ_SEARCH_PATHS="/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator " export SCAN_ALL_SOURCE_FILES_FOR_INCLUDES=NO export SCRIPTS_FOLDER_PATH=Runner.app/Scripts export SCRIPT_INPUT_FILE_COUNT=0 export SCRIPT_OUTPUT_FILE_COUNT=0 export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk export SDK_DIR=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk export SDK_DIR_iphonesimulator10_3=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk export SDK_NAME=iphonesimulator10.3 export SDK_NAMES=iphonesimulator10.3 export SDK_PRODUCT_BUILD_VERSION=14E269 export SDK_VERSION=10.3 export SDK_VERSION_ACTUAL=100300 export SDK_VERSION_MAJOR=100000 export SDK_VERSION_MINOR=300 export SED=/usr/bin/sed export SEPARATE_STRIP=NO export SEPARATE_SYMBOL_EDIT=NO export SET_DIR_MODE_OWNER_GROUP=YES export SET_FILE_MODE_OWNER_GROUP=NO export SHALLOW_BUNDLE=YES export SHARED_DERIVED_FILE_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator/DerivedSources export SHARED_FRAMEWORKS_FOLDER_PATH=Runner.app/SharedFrameworks export SHARED_PRECOMPS_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/PrecompiledHeaders export SHARED_SUPPORT_FOLDER_PATH=Runner.app/SharedSupport export SKIP_INSTALL=NO export SOURCE_ROOT=/Users/cbracken/src/flutter/flutter/examples/layers/ios export SRCROOT=/Users/cbracken/src/flutter/flutter/examples/layers/ios export STRINGS_FILE_OUTPUT_ENCODING=binary export STRIP_BITCODE_FROM_COPIED_FILES=NO export STRIP_INSTALLED_PRODUCT=YES export STRIP_STYLE=all export SUPPORTED_DEVICE_FAMILIES=1,2 export SUPPORTED_PLATFORMS="iphonesimulator iphoneos" export SUPPORTS_TEXT_BASED_API=NO export SWIFT_PLATFORM_TARGET_PREFIX=ios export SYMROOT=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Products export SYSTEM_ADMIN_APPS_DIR=/Applications/Utilities export SYSTEM_APPS_DIR=/Applications export SYSTEM_CORE_SERVICES_DIR=/System/Library/CoreServices export SYSTEM_DEMOS_DIR=/Applications/Extras export SYSTEM_DEVELOPER_APPS_DIR=/Applications/Xcode.app/Contents/Developer/Applications export SYSTEM_DEVELOPER_BIN_DIR=/Applications/Xcode.app/Contents/Developer/usr/bin export SYSTEM_DEVELOPER_DEMOS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples" export SYSTEM_DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer export SYSTEM_DEVELOPER_DOC_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library" export SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools" export SYSTEM_DEVELOPER_JAVA_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Java Tools" export SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR="/Applications/Xcode.app/Contents/Developer/Applications/Performance Tools" export SYSTEM_DEVELOPER_RELEASENOTES_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes" export SYSTEM_DEVELOPER_TOOLS=/Applications/Xcode.app/Contents/Developer/Tools export SYSTEM_DEVELOPER_TOOLS_DOC_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools" export SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR="/Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools" export SYSTEM_DEVELOPER_USR_DIR=/Applications/Xcode.app/Contents/Developer/usr export SYSTEM_DEVELOPER_UTILITIES_DIR=/Applications/Xcode.app/Contents/Developer/Applications/Utilities export SYSTEM_DOCUMENTATION_DIR=/Library/Documentation export SYSTEM_KEXT_INSTALL_PATH=/System/Library/Extensions export SYSTEM_LIBRARY_DIR=/System/Library export TAPI_VERIFY_MODE=ErrorsOnly export TARGETED_DEVICE_FAMILY=1,2 export TARGETNAME=Runner export TARGET_BUILD_DIR=/Users/cbracken/src/flutter/flutter/examples/layers/build/ios/Release-iphonesimulator export TARGET_DEVICE_IDENTIFIER="dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder" export TARGET_NAME=Runner export TARGET_TEMP_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build export TEMP_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build export TEMP_FILES_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build export TEMP_FILE_DIR=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build export TEMP_ROOT=/Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault export TOOLCHAIN_DIR=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain export TREAT_MISSING_BASELINES_AS_TEST_FAILURES=NO export UID=139703 export UNLOCALIZED_RESOURCES_FOLDER_PATH=Runner.app export UNSTRIPPED_PRODUCT=NO export USER=cbracken export USER_APPS_DIR=/Users/cbracken/Applications export USER_LIBRARY_DIR=/Users/cbracken/Library export USE_DYNAMIC_NO_PIC=YES export USE_HEADERMAP=YES export USE_HEADER_SYMLINKS=NO export VALIDATE_PRODUCT=YES export VALID_ARCHS="i386 x86_64" export VERBOSE_PBXCP=NO export VERSIONPLIST_PATH=Runner.app/version.plist export VERSION_INFO_BUILDER=cbracken export VERSION_INFO_FILE=Runner_vers.c export VERSION_INFO_STRING="\"@(#)PROGRAM:Runner PROJECT:Runner-\"" export WRAPPER_EXTENSION=app export WRAPPER_NAME=Runner.app export WRAPPER_SUFFIX=.app export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES=NO export XCODE_APP_SUPPORT_DIR=/Applications/Xcode.app/Contents/Developer/Library/Xcode export XCODE_PRODUCT_BUILD_VERSION=8E2002 export XCODE_VERSION_ACTUAL=0832 export XCODE_VERSION_MAJOR=0800 export XCODE_VERSION_MINOR=0830 export XPCSERVICES_FOLDER_PATH=Runner.app/XPCServices export YACC=yacc export arch=x86_64 export variant=normal /bin/sh -c /Users/cbracken/Library/Developer/Xcode/DerivedData/Runner-cugechdavhdtrgaugctstsbhngoa/Build/Intermediates/Runner.build/Release-iphonesimulator/Runner.build/Script-9740EEB61CF901F6004384FC.sh ♦ mkdir -p -- /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter ♦ rm -rf -- /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter/Flutter.framework ♦ rm -rf -- /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter/App.framework ♦ rm -f -- /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter/app.flx ♦ cp -r -- /Users/cbracken/src/flutter/flutter/bin/cache/artifacts/engine/ios/Flutter.framework /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter ♦ find /Users/cbracken/src/flutter/flutter/examples/layers/ios/Flutter/Flutter.framework -type f -exec chmod a-w {} ; The path lib/main.dart does not exist Command /bin/sh failed with exit code 255 Could not build the application for the simulator. Error launching application on iPhone 7. </code></pre></div> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (on Mac OS X 10.12.5 16F73, channel master) • Flutter at /Users/cbracken/src/flutter/flutter • Framework revision 9d3fb1f309 (5 hours ago), 2017-05-18 11:26:43 -0700 • Engine revision 82815836eb • Tools Dart version 1.23.0-dev.11.11"><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Mac OS X 10.12.5 16F73, channel master) • Flutter at /Users/cbracken/src/flutter/flutter • Framework revision 9d3fb1f309 (5 hours ago), 2017-05-18 11:26:43 -0700 • Engine revision 82815836eb • Tools Dart version 1.23.0-dev.11.11 </code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Connect an Android phone</li> <li>flutter run -v</li> </ol> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ +80 ms] executing: [/Users/johan/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +70 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/beta [ ] executing: [/Users/johan/flutter/] git rev-parse --abbrev-ref HEAD [ +11 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] beta [ ] executing: [/Users/johan/flutter/] git ls-remote --get-url origin [ +11 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] executing: [/Users/johan/flutter/] git log -n 1 --pretty=format:%H [ +40 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ +1 ms] 3b309bda072a6b326e8aa4591a5836af600923ce [ +5 ms] executing: [/Users/johan/flutter/] git log -n 1 --pretty=format:%ar [ +30 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ +1 ms] 3 weeks ago [ +1 ms] executing: [/Users/johan/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +21 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ +1 ms] v0.7.3-0-g3b309bda0 [ +663 ms] executing: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ +120 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ ] 3.1 [ +243 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb devices -l [ +11 ms] Exit code 0 from: /Users/johan/Library/Android/sdk/platform-tools/adb devices -l [ ] List of devices attached fb7f666b device usb:641728512X product:heroqltevzw model:SM_G930V device:heroqltevzw transport_id:1 [ +24 ms] executing: idevice_id -h [+1228 ms] /usr/bin/xcrun simctl list --json devices [ +604 ms] Found plugin fast_qr_reader_view at /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/ [ +236 ms] /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b shell getprop [ +124 ms] ro.hardware = qcom [+2017 ms] Launching lib/main.dart on SM G930V in debug mode... [ +74 ms] Initializing gradle... [ +14 ms] Using gradle from /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/gradlew. [ +100 ms] executing: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ +107 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ ] 3.1 [ +187 ms] executing: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/gradlew -v [+1996 ms] ------------------------------------------------------------ Gradle 4.1 ------------------------------------------------------------ Build time: 2017-08-07 14:38:48 UTC Revision: 941559e020f6c357ebb08d5c67acdb858a3defc2 Groovy: 2.4.11 Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015 JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b01) OS: Mac OS X 10.12.6 x86_64 [ ] Initializing gradle... (completed) [ ] Resolving dependencies... [ ] executing: [/Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/] /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/gradlew app:properties [+2567 ms] registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) :app:properties ------------------------------------------------------------ Project :app ------------------------------------------------------------ allprojects: [project ':app'] android: com.android.build.gradle.AppExtension_Decorated@4591456e androidDependencies: task ':app:androidDependencies' ant: org.gradle.api.internal.project.DefaultAntBuilder@ebe3391 antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@3d8e8036 archivesBaseName: app artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@5f645723 asDynamicObject: DynamicObject for project ':app' assemble: task ':app:assemble' assembleAndroidTest: task ':app:assembleAndroidTest' assembleDebug: task ':app:assembleDebug' assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest' assembleDebugUnitTest: task ':app:assembleDebugUnitTest' assembleDynamicProfile: task ':app:assembleDynamicProfile' assembleDynamicProfileUnitTest: task ':app:assembleDynamicProfileUnitTest' assembleDynamicRelease: task ':app:assembleDynamicRelease' assembleDynamicReleaseUnitTest: task ':app:assembleDynamicReleaseUnitTest' assembleProfile: task ':app:assembleProfile' assembleProfileUnitTest: task ':app:assembleProfileUnitTest' assembleRelease: task ':app:assembleRelease' assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest' baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@1011d394 buildDependents: task ':app:buildDependents' buildDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app buildFile: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/app/build.gradle buildNeeded: task ':app:buildNeeded' buildOutputs: BaseVariantOutput container buildScriptSource: org.gradle.groovy.scripts.UriScriptSource@6fcc58bc buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@268aea43 bundleAppClassesDebug: task ':app:bundleAppClassesDebug' bundleAppClassesDebugAndroidTest: task ':app:bundleAppClassesDebugAndroidTest' bundleAppClassesDebugUnitTest: task ':app:bundleAppClassesDebugUnitTest' bundleAppClassesDynamicProfile: task ':app:bundleAppClassesDynamicProfile' bundleAppClassesDynamicProfileUnitTest: task ':app:bundleAppClassesDynamicProfileUnitTest' bundleAppClassesDynamicRelease: task ':app:bundleAppClassesDynamicRelease' bundleAppClassesDynamicReleaseUnitTest: task ':app:bundleAppClassesDynamicReleaseUnitTest' bundleAppClassesProfile: task ':app:bundleAppClassesProfile' bundleAppClassesProfileUnitTest: task ':app:bundleAppClassesProfileUnitTest' bundleAppClassesRelease: task ':app:bundleAppClassesRelease' bundleAppClassesReleaseUnitTest: task ':app:bundleAppClassesReleaseUnitTest' check: task ':app:check' checkDebugManifest: task ':app:checkDebugManifest' checkDynamicProfileManifest: task ':app:checkDynamicProfileManifest' checkDynamicReleaseManifest: task ':app:checkDynamicReleaseManifest' checkProfileManifest: task ':app:checkProfileManifest' checkReleaseManifest: task ':app:checkReleaseManifest' childProjects: {} class: class org.gradle.api.internal.project.DefaultProject_Decorated classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@5b2a6cfe cleanBuildCache: task ':app:cleanBuildCache' compileDebugAidl: task ':app:compileDebugAidl' compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl' compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac' compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk' compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript' compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders' compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources' compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac' compileDebugNdk: task ':app:compileDebugNdk' compileDebugRenderscript: task ':app:compileDebugRenderscript' compileDebugShaders: task ':app:compileDebugShaders' compileDebugSources: task ':app:compileDebugSources' compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac' compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources' compileDynamicProfileAidl: task ':app:compileDynamicProfileAidl' compileDynamicProfileJavaWithJavac: task ':app:compileDynamicProfileJavaWithJavac' compileDynamicProfileNdk: task ':app:compileDynamicProfileNdk' compileDynamicProfileRenderscript: task ':app:compileDynamicProfileRenderscript' compileDynamicProfileShaders: task ':app:compileDynamicProfileShaders' compileDynamicProfileSources: task ':app:compileDynamicProfileSources' compileDynamicProfileUnitTestJavaWithJavac: task ':app:compileDynamicProfileUnitTestJavaWithJavac' compileDynamicProfileUnitTestSources: task ':app:compileDynamicProfileUnitTestSources' compileDynamicReleaseAidl: task ':app:compileDynamicReleaseAidl' compileDynamicReleaseJavaWithJavac: task ':app:compileDynamicReleaseJavaWithJavac' compileDynamicReleaseNdk: task ':app:compileDynamicReleaseNdk' compileDynamicReleaseRenderscript: task ':app:compileDynamicReleaseRenderscript' compileDynamicReleaseShaders: task ':app:compileDynamicReleaseShaders' compileDynamicReleaseSources: task ':app:compileDynamicReleaseSources' compileDynamicReleaseUnitTestJavaWithJavac: task ':app:compileDynamicReleaseUnitTestJavaWithJavac' compileDynamicReleaseUnitTestSources: task ':app:compileDynamicReleaseUnitTestSources' compileLint: task ':app:compileLint' compileProfileAidl: task ':app:compileProfileAidl' compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac' compileProfileNdk: task ':app:compileProfileNdk' compileProfileRenderscript: task ':app:compileProfileRenderscript' compileProfileShaders: task ':app:compileProfileShaders' compileProfileSources: task ':app:compileProfileSources' compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac' compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources' compileReleaseAidl: task ':app:compileReleaseAidl' compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac' compileReleaseNdk: task ':app:compileReleaseNdk' compileReleaseRenderscript: task ':app:compileReleaseRenderscript' compileReleaseShaders: task ':app:compileReleaseShaders' compileReleaseSources: task ':app:compileReleaseSources' compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac' compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources' components: SoftwareComponentInternal set configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@45b9897c configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@48bd20cf configurations: configuration container connectedAndroidTest: task ':app:connectedAndroidTest' connectedCheck: task ':app:connectedCheck' connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest' consumeConfigAttr: task ':app:consumeConfigAttr' convention: org.gradle.api.internal.plugins.DefaultConvention@39941369 copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug' copyFlutterAssetsDynamicProfile: task ':app:copyFlutterAssetsDynamicProfile' copyFlutterAssetsDynamicRelease: task ':app:copyFlutterAssetsDynamicRelease' copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile' copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease' createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests' createDynamicProfileCompatibleScreenManifests: task ':app:createDynamicProfileCompatibleScreenManifests' createDynamicReleaseCompatibleScreenManifests: task ':app:createDynamicReleaseCompatibleScreenManifests' createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests' createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests' defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@3151c539 defaultTasks: [] deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@38aa4806 dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@1930bc84 depth: 1 description: null deviceAndroidTest: task ':app:deviceAndroidTest' deviceCheck: task ':app:deviceCheck' displayName: project ':app' distsDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/distributions distsDirName: distributions docsDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/docs docsDirName: docs ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@a6fb90 extensions: org.gradle.api.internal.plugins.DefaultConvention@39941369 extractProguardFiles: task ':app:extractProguardFiles' fileOperations: org.gradle.api.internal.file.DefaultFileOperations@3fe18eb0 fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@55e11b32 flutter: FlutterExtension_Decorated@49294996 flutterBuildDebug: task ':app:flutterBuildDebug' flutterBuildDynamicProfile: task ':app:flutterBuildDynamicProfile' flutterBuildDynamicRelease: task ':app:flutterBuildDynamicRelease' flutterBuildProfile: task ':app:flutterBuildProfile' flutterBuildRelease: task ':app:flutterBuildRelease' flutterBuildX86Jar: task ':app:flutterBuildX86Jar' generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets' generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig' generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues' generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources' generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources' generateDebugAssets: task ':app:generateDebugAssets' generateDebugBuildConfig: task ':app:generateDebugBuildConfig' generateDebugResValues: task ':app:generateDebugResValues' generateDebugResources: task ':app:generateDebugResources' generateDebugSources: task ':app:generateDebugSources' generateDynamicProfileAssets: task ':app:generateDynamicProfileAssets' generateDynamicProfileBuildConfig: task ':app:generateDynamicProfileBuildConfig' generateDynamicProfileResValues: task ':app:generateDynamicProfileResValues' generateDynamicProfileResources: task ':app:generateDynamicProfileResources' generateDynamicProfileSources: task ':app:generateDynamicProfileSources' generateDynamicReleaseAssets: task ':app:generateDynamicReleaseAssets' generateDynamicReleaseBuildConfig: task ':app:generateDynamicReleaseBuildConfig' generateDynamicReleaseResValues: task ':app:generateDynamicReleaseResValues' generateDynamicReleaseResources: task ':app:generateDynamicReleaseResources' generateDynamicReleaseSources: task ':app:generateDynamicReleaseSources' generateProfileAssets: task ':app:generateProfileAssets' generateProfileBuildConfig: task ':app:generateProfileBuildConfig' generateProfileResValues: task ':app:generateProfileResValues' generateProfileResources: task ':app:generateProfileResources' generateProfileSources: task ':app:generateProfileSources' generateReleaseAssets: task ':app:generateReleaseAssets' generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig' generateReleaseResValues: task ':app:generateReleaseResValues' generateReleaseResources: task ':app:generateReleaseResources' generateReleaseSources: task ':app:generateReleaseSources' googleServices: com.google.gms.googleservices.GoogleServicesPlugin$GoogleServicesPluginConfig_Decorated@7e645158 gradle: build 'android' group: android identityPath: :app inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@4dc3d42a installDebug: task ':app:installDebug' installDebugAndroidTest: task ':app:installDebugAndroidTest' installDynamicProfile: task ':app:installDynamicProfile' installDynamicRelease: task ':app:installDynamicRelease' installProfile: task ':app:installProfile' installRelease: task ':app:installRelease' javaPreCompileDebug: task ':app:javaPreCompileDebug' javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest' javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest' javaPreCompileDynamicProfile: task ':app:javaPreCompileDynamicProfile' javaPreCompileDynamicProfileUnitTest: task ':app:javaPreCompileDynamicProfileUnitTest' javaPreCompileDynamicRelease: task ':app:javaPreCompileDynamicRelease' javaPreCompileDynamicReleaseUnitTest: task ':app:javaPreCompileDynamicReleaseUnitTest' javaPreCompileProfile: task ':app:javaPreCompileProfile' javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest' javaPreCompileRelease: task ':app:javaPreCompileRelease' javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest' layout: org.gradle.api.internal.file.DefaultProjectLayout@10267e2b libsDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/libs libsDirName: libs lint: task ':app:lint' lintDebug: task ':app:lintDebug' lintDynamicProfile: task ':app:lintDynamicProfile' lintDynamicRelease: task ':app:lintDynamicRelease' lintProfile: task ':app:lintProfile' lintRelease: task ':app:lintRelease' lintVitalRelease: task ':app:lintVitalRelease' logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@604c4b4f logging: org.gradle.internal.logging.services.DefaultLoggingManager@13c0e040 mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets' mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders' mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources' mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders' mergeDebugAssets: task ':app:mergeDebugAssets' mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders' mergeDebugResources: task ':app:mergeDebugResources' mergeDebugShaders: task ':app:mergeDebugShaders' mergeDynamicProfileAssets: task ':app:mergeDynamicProfileAssets' mergeDynamicProfileJniLibFolders: task ':app:mergeDynamicProfileJniLibFolders' mergeDynamicProfileResources: task ':app:mergeDynamicProfileResources' mergeDynamicProfileShaders: task ':app:mergeDynamicProfileShaders' mergeDynamicReleaseAssets: task ':app:mergeDynamicReleaseAssets' mergeDynamicReleaseJniLibFolders: task ':app:mergeDynamicReleaseJniLibFolders' mergeDynamicReleaseResources: task ':app:mergeDynamicReleaseResources' mergeDynamicReleaseShaders: task ':app:mergeDynamicReleaseShaders' mergeProfileAssets: task ':app:mergeProfileAssets' mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders' mergeProfileResources: task ':app:mergeProfileResources' mergeProfileShaders: task ':app:mergeProfileShaders' mergeReleaseAssets: task ':app:mergeReleaseAssets' mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders' mergeReleaseResources: task ':app:mergeReleaseResources' mergeReleaseShaders: task ':app:mergeReleaseShaders' mockableAndroidJar: task ':app:mockableAndroidJar' modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@4ff28df1 modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@60575952 module: org.gradle.api.internal.artifacts.ProjectBackedModule@3aa5bb9 name: app normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@1c4362a1 objects: org.gradle.api.internal.model.DefaultObjectFactory@45503d41 org.gradle.jvmargs: -Xmx1536M packageDebug: task ':app:packageDebug' packageDebugAndroidTest: task ':app:packageDebugAndroidTest' packageDynamicProfile: task ':app:packageDynamicProfile' packageDynamicRelease: task ':app:packageDynamicRelease' packageProfile: task ':app:packageProfile' packageRelease: task ':app:packageRelease' parent: root project 'android' parentIdentifier: root project 'android' path: :app platformAttrExtractor: task ':app:platformAttrExtractor' pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@3fb78024 plugins: [org.gradle.api.plugins.HelpTasksPlugin@12f3577c, com.android.build.gradle.api.AndroidBasePlugin@47862ecd, org.gradle.language.base.plugins.LifecycleBasePlugin@3c39fd3, org.gradle.api.plugins.BasePlugin@5cb5182a, org.gradle.api.plugins.ReportingBasePlugin@2b63f4f6, org.gradle.platform.base.plugins.ComponentBasePlugin@6e8de7db, org.gradle.language.base.plugins.LanguageBasePlugin@5afd6ab8, org.gradle.platform.base.plugins.BinaryBasePlugin@4962f849, org.gradle.api.plugins.JavaBasePlugin@1938212, com.android.build.gradle.internal.coverage.JacocoPlugin@585d5f7e, com.android.build.gradle.AppPlugin@3b15a6f0, FlutterPlugin@6230b622, com.google.gms.googleservices.GoogleServicesPlugin@2a2dbe4b] preBuild: task ':app:preBuild' preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild' preDebugBuild: task ':app:preDebugBuild' preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild' preDynamicProfileBuild: task ':app:preDynamicProfileBuild' preDynamicProfileUnitTestBuild: task ':app:preDynamicProfileUnitTestBuild' preDynamicReleaseBuild: task ':app:preDynamicReleaseBuild' preDynamicReleaseUnitTestBuild: task ':app:preDynamicReleaseUnitTestBuild' preProfileBuild: task ':app:preProfileBuild' preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild' preReleaseBuild: task ':app:preReleaseBuild' preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild' prepareLintJar: task ':app:prepareLintJar' processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes' processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest' processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources' processDebugGoogleServices: task ':app:processDebugGoogleServices' processDebugJavaRes: task ':app:processDebugJavaRes' processDebugManifest: task ':app:processDebugManifest' processDebugResources: task ':app:processDebugResources' processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes' processDynamicProfileGoogleServices: task ':app:processDynamicProfileGoogleServices' processDynamicProfileJavaRes: task ':app:processDynamicProfileJavaRes' processDynamicProfileManifest: task ':app:processDynamicProfileManifest' processDynamicProfileResources: task ':app:processDynamicProfileResources' processDynamicProfileUnitTestJavaRes: task ':app:processDynamicProfileUnitTestJavaRes' processDynamicReleaseGoogleServices: task ':app:processDynamicReleaseGoogleServices' processDynamicReleaseJavaRes: task ':app:processDynamicReleaseJavaRes' processDynamicReleaseManifest: task ':app:processDynamicReleaseManifest' processDynamicReleaseResources: task ':app:processDynamicReleaseResources' processDynamicReleaseUnitTestJavaRes: task ':app:processDynamicReleaseUnitTestJavaRes' processOperations: org.gradle.api.internal.file.DefaultFileOperations@3fe18eb0 processProfileGoogleServices: task ':app:processProfileGoogleServices' processProfileJavaRes: task ':app:processProfileJavaRes' processProfileManifest: task ':app:processProfileManifest' processProfileResources: task ':app:processProfileResources' processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes' processReleaseGoogleServices: task ':app:processReleaseGoogleServices' processReleaseJavaRes: task ':app:processReleaseJavaRes' processReleaseManifest: task ':app:processReleaseManifest' processReleaseResources: task ':app:processReleaseResources' processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes' project: project ':app' projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@2be1b572 projectDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/app projectEvaluationBroadcaster: ProjectEvaluationListener broadcast projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@70a728fa projectPath: :app projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@77760a25 properties: {...} providers: org.gradle.api.internal.provider.DefaultProviderFactory@567ff4e9 reporting: org.gradle.api.reporting.ReportingExtension_Decorated@74c3124f reportsDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/reports repositories: repository container resolveConfigAttr: task ':app:resolveConfigAttr' resources: org.gradle.api.internal.resources.DefaultResourceHandler@52af7380 rootDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android rootProject: root project 'android' scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@1b8661d7 scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@5c6677a0 serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@305b4709 services: ProjectScopeServices signingReport: task ':app:signingReport' sourceCompatibility: 1.8 sourceSets: SourceSet container splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug' splitsDiscoveryTaskDebugAndroidTest: task ':app:splitsDiscoveryTaskDebugAndroidTest' splitsDiscoveryTaskDynamicProfile: task ':app:splitsDiscoveryTaskDynamicProfile' splitsDiscoveryTaskDynamicRelease: task ':app:splitsDiscoveryTaskDynamicRelease' splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile' splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease' standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@13c0e040 state: project state 'EXECUTED' status: integration subprojects: [] targetCompatibility: 1.8 tasks: task set test: task ':app:test' testDebugUnitTest: task ':app:testDebugUnitTest' testDynamicProfileUnitTest: task ':app:testDynamicProfileUnitTest' testDynamicReleaseUnitTest: task ':app:testDynamicReleaseUnitTest' testProfileUnitTest: task ':app:testProfileUnitTest' testReleaseUnitTest: task ':app:testReleaseUnitTest' testReportDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/reports/tests testReportDirName: tests testResultsDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/test-results testResultsDirName: test-results transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug' transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest' transformClassesWithDexBuilderForDynamicProfile: task ':app:transformClassesWithDexBuilderForDynamicProfile' transformClassesWithDexBuilderForDynamicRelease: task ':app:transformClassesWithDexBuilderForDynamicRelease' transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile' transformClassesWithPreDexForRelease: task ':app:transformClassesWithPreDexForRelease' transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug' transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest' transformDexArchiveWithDexMergerForDynamicProfile: task ':app:transformDexArchiveWithDexMergerForDynamicProfile' transformDexArchiveWithDexMergerForDynamicRelease: task ':app:transformDexArchiveWithDexMergerForDynamicRelease' transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile' transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest' transformDexArchiveWithExternalLibsDexMergerForDynamicProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForDynamicProfile' transformDexArchiveWithExternalLibsDexMergerForDynamicRelease: task ':app:transformDexArchiveWithExternalLibsDexMergerForDynamicRelease' transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile' transformDexWithDexForRelease: task ':app:transformDexWithDexForRelease' transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug' transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest' transformNativeLibsWithMergeJniLibsForDynamicProfile: task ':app:transformNativeLibsWithMergeJniLibsForDynamicProfile' transformNativeLibsWithMergeJniLibsForDynamicRelease: task ':app:transformNativeLibsWithMergeJniLibsForDynamicRelease' transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile' transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease' transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug' transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest' transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest' transformResourcesWithMergeJavaResForDynamicProfile: task ':app:transformResourcesWithMergeJavaResForDynamicProfile' transformResourcesWithMergeJavaResForDynamicProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForDynamicProfileUnitTest' transformResourcesWithMergeJavaResForDynamicRelease: task ':app:transformResourcesWithMergeJavaResForDynamicRelease' transformResourcesWithMergeJavaResForDynamicReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForDynamicReleaseUnitTest' transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile' transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest' transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease' transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest' uninstallAll: task ':app:uninstallAll' uninstallDebug: task ':app:uninstallDebug' uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest' uninstallDynamicProfile: task ':app:uninstallDynamicProfile' uninstallDynamicRelease: task ':app:uninstallDynamicRelease' uninstallProfile: task ':app:uninstallProfile' uninstallRelease: task ':app:uninstallRelease' validateSigningDebug: task ':app:validateSigningDebug' validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest' validateSigningDynamicProfile: task ':app:validateSigningDynamicProfile' validateSigningDynamicRelease: task ':app:validateSigningDynamicRelease' validateSigningProfile: task ':app:validateSigningProfile' validateSigningRelease: task ':app:validateSigningRelease' version: unspecified writeDebugApplicationId: task ':app:writeDebugApplicationId' writeDynamicProfileApplicationId: task ':app:writeDynamicProfileApplicationId' writeDynamicReleaseApplicationId: task ':app:writeDynamicReleaseApplicationId' writeProfileApplicationId: task ':app:writeProfileApplicationId' writeReleaseApplicationId: task ':app:writeReleaseApplicationId' BUILD SUCCESSFUL in 2s 1 actionable task: 1 executed [ +6 ms] Resolving dependencies... (completed) [ +9 ms] executing: /Users/johan/Library/Android/sdk/build-tools/28.0.2/aapt dump xmltree /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/outputs/apk/app.apk AndroidManifest.xml [ +17 ms] Exit code 0 from: /Users/johan/Library/Android/sdk/build-tools/28.0.2/aapt dump xmltree /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/outputs/apk/app.apk AndroidManifest.xml [ ] N: android=http://schemas.android.com/apk/res/android E: manifest (line=2) A: android:versionCode(0x0101021b)=(type 0x10)0x1 A: android:versionName(0x0101021c)=&quot;1.0&quot; (Raw: &quot;1.0&quot;) A: package=&quot;co.apperto.fastqrreaderviewexample&quot; (Raw: &quot;co.apperto.fastqrreaderviewexample&quot;) E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b E: uses-permission (line=16) A: android:name(0x01010003)=&quot;android.permission.INTERNET&quot; (Raw: &quot;android.permission.INTERNET&quot;) E: uses-permission (line=17) A: android:name(0x01010003)=&quot;android.permission.CAMERA&quot; (Raw: &quot;android.permission.CAMERA&quot;) E: application (line=25) A: android:label(0x01010001)=&quot;fast_qr_reader_view_example&quot; (Raw: &quot;fast_qr_reader_view_example&quot;) A: android:icon(0x01010002)=@0x7f090000 A: android:name(0x01010003)=&quot;io.flutter.app.FlutterApplication&quot; (Raw: &quot;io.flutter.app.FlutterApplication&quot;) A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff E: activity (line=30) A: android:theme(0x01010000)=@0x7f0b0000 A: android:name(0x01010003)=&quot;co.apperto.fastqrreaderviewexample.MainActivity&quot; (Raw: &quot;co.apperto.fastqrreaderviewexample.MainActivity&quot;) A: android:launchMode(0x0101001d)=(type 0x10)0x1 A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4 A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10 A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff E: meta-data (line=44) A: android:name(0x01010003)=&quot;io.flutter.app.android.SplashScreenUntilFirstFrame&quot; (Raw: &quot;io.flutter.app.android.SplashScreenUntilFirstFrame&quot;) A: android:value(0x01010024)=(type 0x12)0xffffffff E: intent-filter (line=48) E: action (line=49) A: android:name(0x01010003)=&quot;android.intent.action.MAIN&quot; (Raw: &quot;android.intent.action.MAIN&quot;) E: category (line=51) A: android:name(0x01010003)=&quot;android.intent.category.LAUNCHER&quot; (Raw: &quot;android.intent.category.LAUNCHER&quot;) E: activity (line=54) A: android:theme(0x01010000)=@0x1030010 A: android:name(0x01010003)=&quot;com.google.android.gms.common.api.GoogleApiActivity&quot; (Raw: &quot;com.google.android.gms.common.api.GoogleApiActivity&quot;) A: android:exported(0x01010010)=(type 0x12)0x0 E: provider (line=59) A: android:name(0x01010003)=&quot;com.google.firebase.provider.FirebaseInitProvider&quot; (Raw: &quot;com.google.firebase.provider.FirebaseInitProvider&quot;) A: android:exported(0x01010010)=(type 0x12)0x0 A: android:authorities(0x01010018)=&quot;co.apperto.fastqrreaderviewexample.firebaseinitprovider&quot; (Raw: &quot;co.apperto.fastqrreaderviewexample.firebaseinitprovider&quot;) A: android:initOrder(0x0101001a)=(type 0x10)0x64 E: meta-data (line=65) A: android:name(0x01010003)=&quot;com.google.android.gms.version&quot; (Raw: &quot;com.google.android.gms.version&quot;) A: android:value(0x01010024)=@0x7f070001 E: meta-data (line=68) A: android:name(0x01010003)=&quot;android.support.VERSION&quot; (Raw: &quot;android.support.VERSION&quot;) A: android:value(0x01010024)=&quot;26.1.0&quot; (Raw: &quot;26.1.0&quot;) E: meta-data (line=71) A: android:name(0x01010003)=&quot;android.arch.lifecycle.VERSION&quot; (Raw: &quot;android.arch.lifecycle.VERSION&quot;) A: android:value(0x01010024)=&quot;27.0.0-SNAPSHOT&quot; (Raw: &quot;27.0.0-SNAPSHOT&quot;) [ +17 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b logcat -v time -t 1 [ +121 ms] Exit code 0 from: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b logcat -v time -t 1 [ ] --------- beginning of main 09-15 11:30:49.422 E/propClient(24393): PropClient failed to load [ +6 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b logcat -v time [ +977 ms] DependencyChecker: nothing is modified after 2018-09-15 10:39:03.000. [ +6 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb version [ +26 ms] Android Debug Bridge version 1.0.40 Version 4986621 Installed as /Users/johan/Library/Android/sdk/platform-tools/adb [ +5 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb start-server [ +16 ms] Building APK [ +18 ms] Running 'gradlew assembleDebug'... [ +4 ms] executing: [/Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/] /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/gradlew -Pverbose=true -Ptarget=/Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/lib/main.dart -Ppreview-dart-2=true -Ptarget-platform=android-arm64 assembleDebug [+3243 ms] registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) [ ] registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) [ +4 ms] registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) [ ] registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) [ +1 ms] registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) [ +382 ms] :app:preBuild UP-TO-DATE [ +1 ms] :fast_qr_reader_view:preBuild UP-TO-DATE [ ] :fast_qr_reader_view:preDebugBuild UP-TO-DATE [ +11 ms] :fast_qr_reader_view:checkDebugManifest UP-TO-DATE [ +1 ms] :fast_qr_reader_view:processDebugManifest UP-TO-DATE [ +74 ms] :app:preDebugBuild [ +2 ms] Warning: The app gradle file must have a dependency on com.google.firebase:firebase-core for Firebase services to work as intended. [ +38 ms] Warning: The app gradle file must have a dependency on com.google.firebase:firebase-core for Firebase services to work as intended. [ +21 ms] :app:preDebugBuild UP-TO-DATE [ +17 ms] :fast_qr_reader_view:compileDebugAidl UP-TO-DATE [ +7 ms] :app:compileDebugAidl UP-TO-DATE [ +10 ms] :fast_qr_reader_view:packageDebugRenderscript NO-SOURCE [ +1 ms] :app:compileDebugRenderscript UP-TO-DATE [ +25 ms] :app:flutterBuildX86Jar UP-TO-DATE [ ] :app:checkDebugManifest UP-TO-DATE [ ] :app:generateDebugBuildConfig UP-TO-DATE [ ] :app:prepareLintJar UP-TO-DATE [ +22 ms] :app:cleanMergeDebugAssets [ +125 ms] :app:flutterBuildDebug UP-TO-DATE [ +10 ms] :app:mergeDebugShaders UP-TO-DATE [ ] :app:compileDebugShaders UP-TO-DATE [ ] :app:generateDebugAssets UP-TO-DATE [ ] :fast_qr_reader_view:mergeDebugShaders UP-TO-DATE [ +10 ms] :fast_qr_reader_view:compileDebugShaders UP-TO-DATE [ ] :fast_qr_reader_view:generateDebugAssets UP-TO-DATE [ ] :fast_qr_reader_view:mergeDebugAssets UP-TO-DATE [ +36 ms] :app:mergeDebugAssets [ +431 ms] :app:copyFlutterAssetsDebug [ ] :app:generateDebugResValues UP-TO-DATE [ ] :app:generateDebugResources UP-TO-DATE [ ] :app:processDebugGoogleServices [ ] Parsing json file: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/app/google-services.json [ +28 ms] :fast_qr_reader_view:compileDebugRenderscript UP-TO-DATE [ ] :fast_qr_reader_view:generateDebugResValues UP-TO-DATE [ ] :fast_qr_reader_view:generateDebugResources UP-TO-DATE [ ] :fast_qr_reader_view:packageDebugResources UP-TO-DATE [ +52 ms] :app:mergeDebugResources UP-TO-DATE [ ] :app:createDebugCompatibleScreenManifests UP-TO-DATE [ +10 ms] :app:processDebugManifest UP-TO-DATE [ ] :app:splitsDiscoveryTaskDebug UP-TO-DATE [ ] :fast_qr_reader_view:platformAttrExtractor UP-TO-DATE [ +20 ms] :fast_qr_reader_view:processDebugResources UP-TO-DATE [ +13 ms] :app:processDebugResources UP-TO-DATE [ ] :app:generateDebugSources UP-TO-DATE [ ] :fast_qr_reader_view:generateDebugBuildConfig UP-TO-DATE [ ] :fast_qr_reader_view:prepareLintJar UP-TO-DATE [ ] :fast_qr_reader_view:generateDebugSources UP-TO-DATE [ +6 ms] :fast_qr_reader_view:javaPreCompileDebug UP-TO-DATE [ +24 ms] :fast_qr_reader_view:compileDebugJavaWithJavac UP-TO-DATE [ ] :fast_qr_reader_view:processDebugJavaRes NO-SOURCE [ ] :fast_qr_reader_view:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE [ +9 ms] :app:javaPreCompileDebug UP-TO-DATE [ +11 ms] :app:compileDebugJavaWithJavac UP-TO-DATE [ ] :app:compileDebugNdk NO-SOURCE [ ] :app:compileDebugSources UP-TO-DATE [ +36 ms] :app:transformClassesWithDexBuilderForDebug UP-TO-DATE [ +11 ms] :app:transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE [ +13 ms] :app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE [ ] :app:mergeDebugJniLibFolders UP-TO-DATE [ ] :fast_qr_reader_view:compileDebugNdk NO-SOURCE [ +10 ms] :fast_qr_reader_view:mergeDebugJniLibFolders UP-TO-DATE [ ] :fast_qr_reader_view:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE [ ] :fast_qr_reader_view:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE [ +27 ms] :app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE [ ] :app:processDebugJavaRes NO-SOURCE [ +11 ms] :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE [ ] :app:validateSigningDebug [ +13 ms] :app:packageDebug UP-TO-DATE [ ] :app:assembleDebug UP-TO-DATE [ +27 ms] :fast_qr_reader_view:extractDebugAnnotations UP-TO-DATE [ ] :fast_qr_reader_view:mergeDebugConsumerProguardFiles UP-TO-DATE [ +1 ms] :fast_qr_reader_view:transformResourcesWithMergeJavaResForDebug UP-TO-DATE [ +10 ms] :fast_qr_reader_view:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE [ +21 ms] :fast_qr_reader_view:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE [ ] :fast_qr_reader_view:bundleDebug UP-TO-DATE [ ] :fast_qr_reader_view:compileDebugSources UP-TO-DATE [ ] :fast_qr_reader_view:assembleDebug UP-TO-DATE [ ] BUILD SUCCESSFUL in 4s [ ] 55 actionable tasks: 5 executed, 50 up-to-date [ +452 ms] Running 'gradlew assembleDebug'... (completed) [ +246 ms] calculateSha: LocalDirectory: '/Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/outputs/apk'/app.apk [+1262 ms] Built build/app/outputs/apk/debug/app-debug.apk. [ +1 ms] executing: /Users/johan/Library/Android/sdk/build-tools/28.0.2/aapt dump xmltree /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/outputs/apk/app.apk AndroidManifest.xml [ +18 ms] Exit code 0 from: /Users/johan/Library/Android/sdk/build-tools/28.0.2/aapt dump xmltree /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/outputs/apk/app.apk AndroidManifest.xml [ ] N: android=http://schemas.android.com/apk/res/android E: manifest (line=2) A: android:versionCode(0x0101021b)=(type 0x10)0x1 A: android:versionName(0x0101021c)=&quot;1.0&quot; (Raw: &quot;1.0&quot;) A: package=&quot;co.apperto.fastqrreaderviewexample&quot; (Raw: &quot;co.apperto.fastqrreaderviewexample&quot;) E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b E: uses-permission (line=16) A: android:name(0x01010003)=&quot;android.permission.INTERNET&quot; (Raw: &quot;android.permission.INTERNET&quot;) E: uses-permission (line=17) A: android:name(0x01010003)=&quot;android.permission.CAMERA&quot; (Raw: &quot;android.permission.CAMERA&quot;) E: application (line=25) A: android:label(0x01010001)=&quot;fast_qr_reader_view_example&quot; (Raw: &quot;fast_qr_reader_view_example&quot;) A: android:icon(0x01010002)=@0x7f090000 A: android:name(0x01010003)=&quot;io.flutter.app.FlutterApplication&quot; (Raw: &quot;io.flutter.app.FlutterApplication&quot;) A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff E: activity (line=30) A: android:theme(0x01010000)=@0x7f0b0000 A: android:name(0x01010003)=&quot;co.apperto.fastqrreaderviewexample.MainActivity&quot; (Raw: &quot;co.apperto.fastqrreaderviewexample.MainActivity&quot;) A: android:launchMode(0x0101001d)=(type 0x10)0x1 A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4 A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10 A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff E: meta-data (line=44) A: android:name(0x01010003)=&quot;io.flutter.app.android.SplashScreenUntilFirstFrame&quot; (Raw: &quot;io.flutter.app.android.SplashScreenUntilFirstFrame&quot;) A: android:value(0x01010024)=(type 0x12)0xffffffff E: intent-filter (line=48) E: action (line=49) A: android:name(0x01010003)=&quot;android.intent.action.MAIN&quot; (Raw: &quot;android.intent.action.MAIN&quot;) E: category (line=51) A: android:name(0x01010003)=&quot;android.intent.category.LAUNCHER&quot; (Raw: &quot;android.intent.category.LAUNCHER&quot;) E: activity (line=54) A: android:theme(0x01010000)=@0x1030010 A: android:name(0x01010003)=&quot;com.google.android.gms.common.api.GoogleApiActivity&quot; (Raw: &quot;com.google.android.gms.common.api.GoogleApiActivity&quot;) A: android:exported(0x01010010)=(type 0x12)0x0 E: provider (line=59) A: android:name(0x01010003)=&quot;com.google.firebase.provider.FirebaseInitProvider&quot; (Raw: &quot;com.google.firebase.provider.FirebaseInitProvider&quot;) A: android:exported(0x01010010)=(type 0x12)0x0 A: android:authorities(0x01010018)=&quot;co.apperto.fastqrreaderviewexample.firebaseinitprovider&quot; (Raw: &quot;co.apperto.fastqrreaderviewexample.firebaseinitprovider&quot;) A: android:initOrder(0x0101001a)=(type 0x10)0x64 E: meta-data (line=65) A: android:name(0x01010003)=&quot;com.google.android.gms.version&quot; (Raw: &quot;com.google.android.gms.version&quot;) A: android:value(0x01010024)=@0x7f070001 E: meta-data (line=68) A: android:name(0x01010003)=&quot;android.support.VERSION&quot; (Raw: &quot;android.support.VERSION&quot;) A: android:value(0x01010024)=&quot;26.1.0&quot; (Raw: &quot;26.1.0&quot;) E: meta-data (line=71) A: android:name(0x01010003)=&quot;android.arch.lifecycle.VERSION&quot; (Raw: &quot;android.arch.lifecycle.VERSION&quot;) A: android:value(0x01010024)=&quot;27.0.0-SNAPSHOT&quot; (Raw: &quot;27.0.0-SNAPSHOT&quot;) [ +1 ms] Stopping app 'app.apk' on SM G930V. [ ] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b shell am force-stop co.apperto.fastqrreaderviewexample [ +106 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b shell pm list packages co.apperto.fastqrreaderviewexample [ +739 ms] Installing APK. [ +2 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb version [ +14 ms] Android Debug Bridge version 1.0.40 Version 4986621 Installed as /Users/johan/Library/Android/sdk/platform-tools/adb [ ] executing: /Users/johan/Library/Android/sdk/platform-tools/adb start-server [ +16 ms] Installing build/app/outputs/apk/app.apk... [ ] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b install -t -r /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/outputs/apk/app.apk [+6659 ms] Success [ ] Installing build/app/outputs/apk/app.apk... (completed) [ +4 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b shell echo -n 3761bf1b68c0dffcf5d25bf6c669035d298f3ac4 &gt; /data/local/tmp/sky.co.apperto.fastqrreaderviewexample.sha1 [ +79 ms] SM G930V startApp [ +3 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true co.apperto.fastqrreaderviewexample/co.apperto.fastqrreaderviewexample.MainActivity [ +251 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=co.apperto.fastqrreaderviewexample/.MainActivity (has extras) } [ ] Waiting for observatory port to be available... [+1956 ms] Observatory URL on device: http://127.0.0.1:40938/ [ +2 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b forward tcp:0 tcp:40938 [ +12 ms] 52922 [ ] Forwarded host port 52922 to device port 40938 for Observatory [ +10 ms] Connecting to service protocol: http://127.0.0.1:52922/ [ +613 ms] Successfully connected to service protocol: http://127.0.0.1:52922/ [ +5 ms] getVM: {} [ +26 ms] getIsolate: {isolateId: isolates/587171702} [ +7 ms] _flutter.listViews: {isolateId: isolates/587171702} [ +123 ms] DevFS: Creating new filesystem on the device (null) [ +3 ms] _createDevFS: {fsName: example} [ +64 ms] DevFS: Created new filesystem on the device (file:///data/user/0/co.apperto.fastqrreaderviewexample/cache/exampleYIRKSF/example/) [ +15 ms] Updating assets [ +453 ms] Syncing files to device SM G930V... [ +5 ms] DevFS: Starting sync from LocalDirectory: '/Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example' [ ] Scanning project files [ +6 ms] Scanning package files [ +297 ms] Scanning asset files [ +1 ms] Scanning for deleted files [ +19 ms] Compiling dart to kernel with 432 updated files [ +10 ms] /Users/johan/flutter/bin/cache/dart-sdk/bin/dart /Users/johan/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/johan/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --initialize-from-dill=foo --output-dill build/app.dill --packages /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/.packages --filesystem-scheme org-dartlang-root [ +27 ms] W/DynamiteModule(24548): Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found. [ +301 ms] I/DynamiteModule(24548): Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0 [ ] D/BarcodeNativeHandle(24548): Cannot load feature, fall back to load whole module. [ ] W/DynamiteModule(24548): Local module descriptor class for com.google.android.gms.vision.dynamite not found. [ +141 ms] W/zygote64(24548): Skipping duplicate class check due to unrecognized classloader [ +7 ms] I/DynamiteModule(24548): Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:1800 [ ] I/DynamiteModule(24548): Selected remote version of com.google.android.gms.vision.dynamite, version &gt;= 1800 [ +122 ms] W/zygote64(24548): Skipping duplicate class check due to unrecognized classloader [ +37 ms] I/CameraManager(24548): getCameraCharacteristics : cameraId = 0 [ +5 ms] I/zygote64(24548): Do partial code cache collection, code=29KB, data=26KB [ +51 ms] I/zygote64(24548): After code cache collection, code=24KB, data=26KB [ ] I/zygote64(24548): Increasing code cache capacity to 128KB [ +194 ms] D/ViewRootImpl@1cd1dda[MainActivity](24548): MSG_WINDOW_FOCUS_CHANGED 0 [ +82 ms] I/Vision (24548): Loading library libbarhopper.so [ +169 ms] I/zygote64(24548): find the special shared library, skip check [ ] I/zygote64(24548): find the special shared library, skip check [ +437 ms] W/linker (24548): &quot;/data/data/com.google.android.gms/app_vision/barcode/libs/arm64-v8a/libbarhopper.so&quot; unused DT entry: type 0x7ffffffd arg 0x6dd [ ] I/Vision (24548): libbarhopper.so library load status: true [ +95 ms] I/DynamiteModule(24548): Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:3 [ ] I/DynamiteModule(24548): Selected remote version of com.google.android.gms.flags, version &gt;= 3 [ +24 ms] W/zygote64(24548): Skipping duplicate class check due to unrecognized classloader [+1871 ms] D/ViewRootImpl@1cd1dda[MainActivity](24548): MSG_WINDOW_FOCUS_CHANGED 1 [ +8 ms] V/InputMethodManager(24548): Starting input: tba=android.view.inputmethod.EditorInfo@4015678 nm : co.apperto.fastqrreaderviewexample ic=null [ ] I/InputMethodManager(24548): startInputInner - mService.startInputOrWindowGainedFocus [ +11 ms] V/Surface (24548): sf_framedrop debug : 0x4f4c, game : false, logging : 0 [ +21 ms] I/CameraManager(24548): getCameraCharacteristics : cameraId = 0 [ +36 ms] I/zygote64(24548): Do partial code cache collection, code=61KB, data=43KB [ ] I/zygote64(24548): After code cache collection, code=51KB, data=39KB [ ] I/zygote64(24548): Increasing code cache capacity to 256KB [ +136 ms] V/Surface (24548): sf_framedrop debug : 0x4f4c, game : false, logging : 0 [ +469 ms] D/libGLESv2(24548): STS_GLApi : DTS, ODTC are not allowed for Package : co.apperto.fastqrreaderviewexample [ +76 ms] E/MethodChannel#fast_qr_reader_view(24548): Failed to handle method call [ ] E/MethodChannel#fast_qr_reader_view(24548): java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.Image.close()' on a null object reference [ ] E/MethodChannel#fast_qr_reader_view(24548): at co.apperto.fastqrreaderview.FastQrReaderViewPlugin.startScanning(FastQrReaderViewPlugin.java:315) [ ] E/MethodChannel#fast_qr_reader_view(24548): at co.apperto.fastqrreaderview.FastQrReaderViewPlugin.onMethodCall(FastQrReaderViewPlugin.java:220) [ ] E/MethodChannel#fast_qr_reader_view(24548): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191) [ ] E/MethodChannel#fast_qr_reader_view(24548): at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163) [ ] E/MethodChannel#fast_qr_reader_view(24548): at android.os.MessageQueue.nativePollOnce(Native Method) [ ] E/MethodChannel#fast_qr_reader_view(24548): at android.os.MessageQueue.next(MessageQueue.java:325) [ ] E/MethodChannel#fast_qr_reader_view(24548): at android.os.Looper.loop(Looper.java:142) [ ] E/MethodChannel#fast_qr_reader_view(24548): at android.app.ActivityThread.main(ActivityThread.java:6944) [ ] E/MethodChannel#fast_qr_reader_view(24548): at java.lang.reflect.Method.invoke(Native Method) [ ] E/MethodChannel#fast_qr_reader_view(24548): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) [ ] E/MethodChannel#fast_qr_reader_view(24548): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) [ ] E/FlutterNativeView(24548): Uncaught exception in binary message listener [ ] E/FlutterNativeView(24548): java.lang.IllegalStateException: Reply already submitted [ ] E/FlutterNativeView(24548): at io.flutter.view.FlutterNativeView$1.reply(FlutterNativeView.java:174) [ ] E/FlutterNativeView(24548): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:209) [ ] E/FlutterNativeView(24548): at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163) [ ] E/FlutterNativeView(24548): at android.os.MessageQueue.nativePollOnce(Native Method) [ ] E/FlutterNativeView(24548): at android.os.MessageQueue.next(MessageQueue.java:325) [ ] E/FlutterNativeView(24548): at android.os.Looper.loop(Looper.java:142) [ ] E/FlutterNativeView(24548): at android.app.ActivityThread.main(ActivityThread.java:6944) [ ] E/FlutterNativeView(24548): at java.lang.reflect.Method.invoke(Native Method) [ ] E/FlutterNativeView(24548): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) [ ] E/FlutterNativeView(24548): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) "><pre class="notranslate"><code class="notranslate">[ +80 ms] executing: [/Users/johan/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +70 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/beta [ ] executing: [/Users/johan/flutter/] git rev-parse --abbrev-ref HEAD [ +11 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] beta [ ] executing: [/Users/johan/flutter/] git ls-remote --get-url origin [ +11 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] executing: [/Users/johan/flutter/] git log -n 1 --pretty=format:%H [ +40 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ +1 ms] 3b309bda072a6b326e8aa4591a5836af600923ce [ +5 ms] executing: [/Users/johan/flutter/] git log -n 1 --pretty=format:%ar [ +30 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ +1 ms] 3 weeks ago [ +1 ms] executing: [/Users/johan/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +21 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ +1 ms] v0.7.3-0-g3b309bda0 [ +663 ms] executing: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ +120 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ ] 3.1 [ +243 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb devices -l [ +11 ms] Exit code 0 from: /Users/johan/Library/Android/sdk/platform-tools/adb devices -l [ ] List of devices attached fb7f666b device usb:641728512X product:heroqltevzw model:SM_G930V device:heroqltevzw transport_id:1 [ +24 ms] executing: idevice_id -h [+1228 ms] /usr/bin/xcrun simctl list --json devices [ +604 ms] Found plugin fast_qr_reader_view at /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/ [ +236 ms] /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b shell getprop [ +124 ms] ro.hardware = qcom [+2017 ms] Launching lib/main.dart on SM G930V in debug mode... [ +74 ms] Initializing gradle... [ +14 ms] Using gradle from /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/gradlew. [ +100 ms] executing: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ +107 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ ] 3.1 [ +187 ms] executing: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/gradlew -v [+1996 ms] ------------------------------------------------------------ Gradle 4.1 ------------------------------------------------------------ Build time: 2017-08-07 14:38:48 UTC Revision: 941559e020f6c357ebb08d5c67acdb858a3defc2 Groovy: 2.4.11 Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015 JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b01) OS: Mac OS X 10.12.6 x86_64 [ ] Initializing gradle... (completed) [ ] Resolving dependencies... [ ] executing: [/Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/] /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/gradlew app:properties [+2567 ms] registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) :app:properties ------------------------------------------------------------ Project :app ------------------------------------------------------------ allprojects: [project ':app'] android: com.android.build.gradle.AppExtension_Decorated@4591456e androidDependencies: task ':app:androidDependencies' ant: org.gradle.api.internal.project.DefaultAntBuilder@ebe3391 antBuilderFactory: org.gradle.api.internal.project.DefaultAntBuilderFactory@3d8e8036 archivesBaseName: app artifacts: org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler_Decorated@5f645723 asDynamicObject: DynamicObject for project ':app' assemble: task ':app:assemble' assembleAndroidTest: task ':app:assembleAndroidTest' assembleDebug: task ':app:assembleDebug' assembleDebugAndroidTest: task ':app:assembleDebugAndroidTest' assembleDebugUnitTest: task ':app:assembleDebugUnitTest' assembleDynamicProfile: task ':app:assembleDynamicProfile' assembleDynamicProfileUnitTest: task ':app:assembleDynamicProfileUnitTest' assembleDynamicRelease: task ':app:assembleDynamicRelease' assembleDynamicReleaseUnitTest: task ':app:assembleDynamicReleaseUnitTest' assembleProfile: task ':app:assembleProfile' assembleProfileUnitTest: task ':app:assembleProfileUnitTest' assembleRelease: task ':app:assembleRelease' assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest' baseClassLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@1011d394 buildDependents: task ':app:buildDependents' buildDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app buildFile: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/app/build.gradle buildNeeded: task ':app:buildNeeded' buildOutputs: BaseVariantOutput container buildScriptSource: org.gradle.groovy.scripts.UriScriptSource@6fcc58bc buildscript: org.gradle.api.internal.initialization.DefaultScriptHandler@268aea43 bundleAppClassesDebug: task ':app:bundleAppClassesDebug' bundleAppClassesDebugAndroidTest: task ':app:bundleAppClassesDebugAndroidTest' bundleAppClassesDebugUnitTest: task ':app:bundleAppClassesDebugUnitTest' bundleAppClassesDynamicProfile: task ':app:bundleAppClassesDynamicProfile' bundleAppClassesDynamicProfileUnitTest: task ':app:bundleAppClassesDynamicProfileUnitTest' bundleAppClassesDynamicRelease: task ':app:bundleAppClassesDynamicRelease' bundleAppClassesDynamicReleaseUnitTest: task ':app:bundleAppClassesDynamicReleaseUnitTest' bundleAppClassesProfile: task ':app:bundleAppClassesProfile' bundleAppClassesProfileUnitTest: task ':app:bundleAppClassesProfileUnitTest' bundleAppClassesRelease: task ':app:bundleAppClassesRelease' bundleAppClassesReleaseUnitTest: task ':app:bundleAppClassesReleaseUnitTest' check: task ':app:check' checkDebugManifest: task ':app:checkDebugManifest' checkDynamicProfileManifest: task ':app:checkDynamicProfileManifest' checkDynamicReleaseManifest: task ':app:checkDynamicReleaseManifest' checkProfileManifest: task ':app:checkProfileManifest' checkReleaseManifest: task ':app:checkReleaseManifest' childProjects: {} class: class org.gradle.api.internal.project.DefaultProject_Decorated classLoaderScope: org.gradle.api.internal.initialization.DefaultClassLoaderScope@5b2a6cfe cleanBuildCache: task ':app:cleanBuildCache' compileDebugAidl: task ':app:compileDebugAidl' compileDebugAndroidTestAidl: task ':app:compileDebugAndroidTestAidl' compileDebugAndroidTestJavaWithJavac: task ':app:compileDebugAndroidTestJavaWithJavac' compileDebugAndroidTestNdk: task ':app:compileDebugAndroidTestNdk' compileDebugAndroidTestRenderscript: task ':app:compileDebugAndroidTestRenderscript' compileDebugAndroidTestShaders: task ':app:compileDebugAndroidTestShaders' compileDebugAndroidTestSources: task ':app:compileDebugAndroidTestSources' compileDebugJavaWithJavac: task ':app:compileDebugJavaWithJavac' compileDebugNdk: task ':app:compileDebugNdk' compileDebugRenderscript: task ':app:compileDebugRenderscript' compileDebugShaders: task ':app:compileDebugShaders' compileDebugSources: task ':app:compileDebugSources' compileDebugUnitTestJavaWithJavac: task ':app:compileDebugUnitTestJavaWithJavac' compileDebugUnitTestSources: task ':app:compileDebugUnitTestSources' compileDynamicProfileAidl: task ':app:compileDynamicProfileAidl' compileDynamicProfileJavaWithJavac: task ':app:compileDynamicProfileJavaWithJavac' compileDynamicProfileNdk: task ':app:compileDynamicProfileNdk' compileDynamicProfileRenderscript: task ':app:compileDynamicProfileRenderscript' compileDynamicProfileShaders: task ':app:compileDynamicProfileShaders' compileDynamicProfileSources: task ':app:compileDynamicProfileSources' compileDynamicProfileUnitTestJavaWithJavac: task ':app:compileDynamicProfileUnitTestJavaWithJavac' compileDynamicProfileUnitTestSources: task ':app:compileDynamicProfileUnitTestSources' compileDynamicReleaseAidl: task ':app:compileDynamicReleaseAidl' compileDynamicReleaseJavaWithJavac: task ':app:compileDynamicReleaseJavaWithJavac' compileDynamicReleaseNdk: task ':app:compileDynamicReleaseNdk' compileDynamicReleaseRenderscript: task ':app:compileDynamicReleaseRenderscript' compileDynamicReleaseShaders: task ':app:compileDynamicReleaseShaders' compileDynamicReleaseSources: task ':app:compileDynamicReleaseSources' compileDynamicReleaseUnitTestJavaWithJavac: task ':app:compileDynamicReleaseUnitTestJavaWithJavac' compileDynamicReleaseUnitTestSources: task ':app:compileDynamicReleaseUnitTestSources' compileLint: task ':app:compileLint' compileProfileAidl: task ':app:compileProfileAidl' compileProfileJavaWithJavac: task ':app:compileProfileJavaWithJavac' compileProfileNdk: task ':app:compileProfileNdk' compileProfileRenderscript: task ':app:compileProfileRenderscript' compileProfileShaders: task ':app:compileProfileShaders' compileProfileSources: task ':app:compileProfileSources' compileProfileUnitTestJavaWithJavac: task ':app:compileProfileUnitTestJavaWithJavac' compileProfileUnitTestSources: task ':app:compileProfileUnitTestSources' compileReleaseAidl: task ':app:compileReleaseAidl' compileReleaseJavaWithJavac: task ':app:compileReleaseJavaWithJavac' compileReleaseNdk: task ':app:compileReleaseNdk' compileReleaseRenderscript: task ':app:compileReleaseRenderscript' compileReleaseShaders: task ':app:compileReleaseShaders' compileReleaseSources: task ':app:compileReleaseSources' compileReleaseUnitTestJavaWithJavac: task ':app:compileReleaseUnitTestJavaWithJavac' compileReleaseUnitTestSources: task ':app:compileReleaseUnitTestSources' components: SoftwareComponentInternal set configurationActions: org.gradle.configuration.project.DefaultProjectConfigurationActionContainer@45b9897c configurationTargetIdentifier: org.gradle.configuration.ConfigurationTargetIdentifier$1@48bd20cf configurations: configuration container connectedAndroidTest: task ':app:connectedAndroidTest' connectedCheck: task ':app:connectedCheck' connectedDebugAndroidTest: task ':app:connectedDebugAndroidTest' consumeConfigAttr: task ':app:consumeConfigAttr' convention: org.gradle.api.internal.plugins.DefaultConvention@39941369 copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug' copyFlutterAssetsDynamicProfile: task ':app:copyFlutterAssetsDynamicProfile' copyFlutterAssetsDynamicRelease: task ':app:copyFlutterAssetsDynamicRelease' copyFlutterAssetsProfile: task ':app:copyFlutterAssetsProfile' copyFlutterAssetsRelease: task ':app:copyFlutterAssetsRelease' createDebugCompatibleScreenManifests: task ':app:createDebugCompatibleScreenManifests' createDynamicProfileCompatibleScreenManifests: task ':app:createDynamicProfileCompatibleScreenManifests' createDynamicReleaseCompatibleScreenManifests: task ':app:createDynamicReleaseCompatibleScreenManifests' createProfileCompatibleScreenManifests: task ':app:createProfileCompatibleScreenManifests' createReleaseCompatibleScreenManifests: task ':app:createReleaseCompatibleScreenManifests' defaultArtifacts: org.gradle.api.internal.plugins.DefaultArtifactPublicationSet_Decorated@3151c539 defaultTasks: [] deferredProjectConfiguration: org.gradle.api.internal.project.DeferredProjectConfiguration@38aa4806 dependencies: org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler_Decorated@1930bc84 depth: 1 description: null deviceAndroidTest: task ':app:deviceAndroidTest' deviceCheck: task ':app:deviceCheck' displayName: project ':app' distsDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/distributions distsDirName: distributions docsDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/docs docsDirName: docs ext: org.gradle.api.internal.plugins.DefaultExtraPropertiesExtension@a6fb90 extensions: org.gradle.api.internal.plugins.DefaultConvention@39941369 extractProguardFiles: task ':app:extractProguardFiles' fileOperations: org.gradle.api.internal.file.DefaultFileOperations@3fe18eb0 fileResolver: org.gradle.api.internal.file.BaseDirFileResolver@55e11b32 flutter: FlutterExtension_Decorated@49294996 flutterBuildDebug: task ':app:flutterBuildDebug' flutterBuildDynamicProfile: task ':app:flutterBuildDynamicProfile' flutterBuildDynamicRelease: task ':app:flutterBuildDynamicRelease' flutterBuildProfile: task ':app:flutterBuildProfile' flutterBuildRelease: task ':app:flutterBuildRelease' flutterBuildX86Jar: task ':app:flutterBuildX86Jar' generateDebugAndroidTestAssets: task ':app:generateDebugAndroidTestAssets' generateDebugAndroidTestBuildConfig: task ':app:generateDebugAndroidTestBuildConfig' generateDebugAndroidTestResValues: task ':app:generateDebugAndroidTestResValues' generateDebugAndroidTestResources: task ':app:generateDebugAndroidTestResources' generateDebugAndroidTestSources: task ':app:generateDebugAndroidTestSources' generateDebugAssets: task ':app:generateDebugAssets' generateDebugBuildConfig: task ':app:generateDebugBuildConfig' generateDebugResValues: task ':app:generateDebugResValues' generateDebugResources: task ':app:generateDebugResources' generateDebugSources: task ':app:generateDebugSources' generateDynamicProfileAssets: task ':app:generateDynamicProfileAssets' generateDynamicProfileBuildConfig: task ':app:generateDynamicProfileBuildConfig' generateDynamicProfileResValues: task ':app:generateDynamicProfileResValues' generateDynamicProfileResources: task ':app:generateDynamicProfileResources' generateDynamicProfileSources: task ':app:generateDynamicProfileSources' generateDynamicReleaseAssets: task ':app:generateDynamicReleaseAssets' generateDynamicReleaseBuildConfig: task ':app:generateDynamicReleaseBuildConfig' generateDynamicReleaseResValues: task ':app:generateDynamicReleaseResValues' generateDynamicReleaseResources: task ':app:generateDynamicReleaseResources' generateDynamicReleaseSources: task ':app:generateDynamicReleaseSources' generateProfileAssets: task ':app:generateProfileAssets' generateProfileBuildConfig: task ':app:generateProfileBuildConfig' generateProfileResValues: task ':app:generateProfileResValues' generateProfileResources: task ':app:generateProfileResources' generateProfileSources: task ':app:generateProfileSources' generateReleaseAssets: task ':app:generateReleaseAssets' generateReleaseBuildConfig: task ':app:generateReleaseBuildConfig' generateReleaseResValues: task ':app:generateReleaseResValues' generateReleaseResources: task ':app:generateReleaseResources' generateReleaseSources: task ':app:generateReleaseSources' googleServices: com.google.gms.googleservices.GoogleServicesPlugin$GoogleServicesPluginConfig_Decorated@7e645158 gradle: build 'android' group: android identityPath: :app inheritedScope: org.gradle.api.internal.ExtensibleDynamicObject$InheritedDynamicObject@4dc3d42a installDebug: task ':app:installDebug' installDebugAndroidTest: task ':app:installDebugAndroidTest' installDynamicProfile: task ':app:installDynamicProfile' installDynamicRelease: task ':app:installDynamicRelease' installProfile: task ':app:installProfile' installRelease: task ':app:installRelease' javaPreCompileDebug: task ':app:javaPreCompileDebug' javaPreCompileDebugAndroidTest: task ':app:javaPreCompileDebugAndroidTest' javaPreCompileDebugUnitTest: task ':app:javaPreCompileDebugUnitTest' javaPreCompileDynamicProfile: task ':app:javaPreCompileDynamicProfile' javaPreCompileDynamicProfileUnitTest: task ':app:javaPreCompileDynamicProfileUnitTest' javaPreCompileDynamicRelease: task ':app:javaPreCompileDynamicRelease' javaPreCompileDynamicReleaseUnitTest: task ':app:javaPreCompileDynamicReleaseUnitTest' javaPreCompileProfile: task ':app:javaPreCompileProfile' javaPreCompileProfileUnitTest: task ':app:javaPreCompileProfileUnitTest' javaPreCompileRelease: task ':app:javaPreCompileRelease' javaPreCompileReleaseUnitTest: task ':app:javaPreCompileReleaseUnitTest' layout: org.gradle.api.internal.file.DefaultProjectLayout@10267e2b libsDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/libs libsDirName: libs lint: task ':app:lint' lintDebug: task ':app:lintDebug' lintDynamicProfile: task ':app:lintDynamicProfile' lintDynamicRelease: task ':app:lintDynamicRelease' lintProfile: task ':app:lintProfile' lintRelease: task ':app:lintRelease' lintVitalRelease: task ':app:lintVitalRelease' logger: org.gradle.internal.logging.slf4j.OutputEventListenerBackedLogger@604c4b4f logging: org.gradle.internal.logging.services.DefaultLoggingManager@13c0e040 mergeDebugAndroidTestAssets: task ':app:mergeDebugAndroidTestAssets' mergeDebugAndroidTestJniLibFolders: task ':app:mergeDebugAndroidTestJniLibFolders' mergeDebugAndroidTestResources: task ':app:mergeDebugAndroidTestResources' mergeDebugAndroidTestShaders: task ':app:mergeDebugAndroidTestShaders' mergeDebugAssets: task ':app:mergeDebugAssets' mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders' mergeDebugResources: task ':app:mergeDebugResources' mergeDebugShaders: task ':app:mergeDebugShaders' mergeDynamicProfileAssets: task ':app:mergeDynamicProfileAssets' mergeDynamicProfileJniLibFolders: task ':app:mergeDynamicProfileJniLibFolders' mergeDynamicProfileResources: task ':app:mergeDynamicProfileResources' mergeDynamicProfileShaders: task ':app:mergeDynamicProfileShaders' mergeDynamicReleaseAssets: task ':app:mergeDynamicReleaseAssets' mergeDynamicReleaseJniLibFolders: task ':app:mergeDynamicReleaseJniLibFolders' mergeDynamicReleaseResources: task ':app:mergeDynamicReleaseResources' mergeDynamicReleaseShaders: task ':app:mergeDynamicReleaseShaders' mergeProfileAssets: task ':app:mergeProfileAssets' mergeProfileJniLibFolders: task ':app:mergeProfileJniLibFolders' mergeProfileResources: task ':app:mergeProfileResources' mergeProfileShaders: task ':app:mergeProfileShaders' mergeReleaseAssets: task ':app:mergeReleaseAssets' mergeReleaseJniLibFolders: task ':app:mergeReleaseJniLibFolders' mergeReleaseResources: task ':app:mergeReleaseResources' mergeReleaseShaders: task ':app:mergeReleaseShaders' mockableAndroidJar: task ':app:mockableAndroidJar' modelRegistry: org.gradle.model.internal.registry.DefaultModelRegistry@4ff28df1 modelSchemaStore: org.gradle.model.internal.manage.schema.extract.DefaultModelSchemaStore@60575952 module: org.gradle.api.internal.artifacts.ProjectBackedModule@3aa5bb9 name: app normalization: org.gradle.normalization.internal.DefaultInputNormalizationHandler_Decorated@1c4362a1 objects: org.gradle.api.internal.model.DefaultObjectFactory@45503d41 org.gradle.jvmargs: -Xmx1536M packageDebug: task ':app:packageDebug' packageDebugAndroidTest: task ':app:packageDebugAndroidTest' packageDynamicProfile: task ':app:packageDynamicProfile' packageDynamicRelease: task ':app:packageDynamicRelease' packageProfile: task ':app:packageProfile' packageRelease: task ':app:packageRelease' parent: root project 'android' parentIdentifier: root project 'android' path: :app platformAttrExtractor: task ':app:platformAttrExtractor' pluginManager: org.gradle.api.internal.plugins.DefaultPluginManager_Decorated@3fb78024 plugins: [org.gradle.api.plugins.HelpTasksPlugin@12f3577c, com.android.build.gradle.api.AndroidBasePlugin@47862ecd, org.gradle.language.base.plugins.LifecycleBasePlugin@3c39fd3, org.gradle.api.plugins.BasePlugin@5cb5182a, org.gradle.api.plugins.ReportingBasePlugin@2b63f4f6, org.gradle.platform.base.plugins.ComponentBasePlugin@6e8de7db, org.gradle.language.base.plugins.LanguageBasePlugin@5afd6ab8, org.gradle.platform.base.plugins.BinaryBasePlugin@4962f849, org.gradle.api.plugins.JavaBasePlugin@1938212, com.android.build.gradle.internal.coverage.JacocoPlugin@585d5f7e, com.android.build.gradle.AppPlugin@3b15a6f0, FlutterPlugin@6230b622, com.google.gms.googleservices.GoogleServicesPlugin@2a2dbe4b] preBuild: task ':app:preBuild' preDebugAndroidTestBuild: task ':app:preDebugAndroidTestBuild' preDebugBuild: task ':app:preDebugBuild' preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild' preDynamicProfileBuild: task ':app:preDynamicProfileBuild' preDynamicProfileUnitTestBuild: task ':app:preDynamicProfileUnitTestBuild' preDynamicReleaseBuild: task ':app:preDynamicReleaseBuild' preDynamicReleaseUnitTestBuild: task ':app:preDynamicReleaseUnitTestBuild' preProfileBuild: task ':app:preProfileBuild' preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild' preReleaseBuild: task ':app:preReleaseBuild' preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild' prepareLintJar: task ':app:prepareLintJar' processDebugAndroidTestJavaRes: task ':app:processDebugAndroidTestJavaRes' processDebugAndroidTestManifest: task ':app:processDebugAndroidTestManifest' processDebugAndroidTestResources: task ':app:processDebugAndroidTestResources' processDebugGoogleServices: task ':app:processDebugGoogleServices' processDebugJavaRes: task ':app:processDebugJavaRes' processDebugManifest: task ':app:processDebugManifest' processDebugResources: task ':app:processDebugResources' processDebugUnitTestJavaRes: task ':app:processDebugUnitTestJavaRes' processDynamicProfileGoogleServices: task ':app:processDynamicProfileGoogleServices' processDynamicProfileJavaRes: task ':app:processDynamicProfileJavaRes' processDynamicProfileManifest: task ':app:processDynamicProfileManifest' processDynamicProfileResources: task ':app:processDynamicProfileResources' processDynamicProfileUnitTestJavaRes: task ':app:processDynamicProfileUnitTestJavaRes' processDynamicReleaseGoogleServices: task ':app:processDynamicReleaseGoogleServices' processDynamicReleaseJavaRes: task ':app:processDynamicReleaseJavaRes' processDynamicReleaseManifest: task ':app:processDynamicReleaseManifest' processDynamicReleaseResources: task ':app:processDynamicReleaseResources' processDynamicReleaseUnitTestJavaRes: task ':app:processDynamicReleaseUnitTestJavaRes' processOperations: org.gradle.api.internal.file.DefaultFileOperations@3fe18eb0 processProfileGoogleServices: task ':app:processProfileGoogleServices' processProfileJavaRes: task ':app:processProfileJavaRes' processProfileManifest: task ':app:processProfileManifest' processProfileResources: task ':app:processProfileResources' processProfileUnitTestJavaRes: task ':app:processProfileUnitTestJavaRes' processReleaseGoogleServices: task ':app:processReleaseGoogleServices' processReleaseJavaRes: task ':app:processReleaseJavaRes' processReleaseManifest: task ':app:processReleaseManifest' processReleaseResources: task ':app:processReleaseResources' processReleaseUnitTestJavaRes: task ':app:processReleaseUnitTestJavaRes' project: project ':app' projectConfigurator: org.gradle.api.internal.project.BuildOperationCrossProjectConfigurator@2be1b572 projectDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/app projectEvaluationBroadcaster: ProjectEvaluationListener broadcast projectEvaluator: org.gradle.configuration.project.LifecycleProjectEvaluator@70a728fa projectPath: :app projectRegistry: org.gradle.api.internal.project.DefaultProjectRegistry@77760a25 properties: {...} providers: org.gradle.api.internal.provider.DefaultProviderFactory@567ff4e9 reporting: org.gradle.api.reporting.ReportingExtension_Decorated@74c3124f reportsDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/reports repositories: repository container resolveConfigAttr: task ':app:resolveConfigAttr' resources: org.gradle.api.internal.resources.DefaultResourceHandler@52af7380 rootDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android rootProject: root project 'android' scriptHandlerFactory: org.gradle.api.internal.initialization.DefaultScriptHandlerFactory@1b8661d7 scriptPluginFactory: org.gradle.configuration.ScriptPluginFactorySelector@5c6677a0 serviceRegistryFactory: org.gradle.internal.service.scopes.ProjectScopeServices$4@305b4709 services: ProjectScopeServices signingReport: task ':app:signingReport' sourceCompatibility: 1.8 sourceSets: SourceSet container splitsDiscoveryTaskDebug: task ':app:splitsDiscoveryTaskDebug' splitsDiscoveryTaskDebugAndroidTest: task ':app:splitsDiscoveryTaskDebugAndroidTest' splitsDiscoveryTaskDynamicProfile: task ':app:splitsDiscoveryTaskDynamicProfile' splitsDiscoveryTaskDynamicRelease: task ':app:splitsDiscoveryTaskDynamicRelease' splitsDiscoveryTaskProfile: task ':app:splitsDiscoveryTaskProfile' splitsDiscoveryTaskRelease: task ':app:splitsDiscoveryTaskRelease' standardOutputCapture: org.gradle.internal.logging.services.DefaultLoggingManager@13c0e040 state: project state 'EXECUTED' status: integration subprojects: [] targetCompatibility: 1.8 tasks: task set test: task ':app:test' testDebugUnitTest: task ':app:testDebugUnitTest' testDynamicProfileUnitTest: task ':app:testDynamicProfileUnitTest' testDynamicReleaseUnitTest: task ':app:testDynamicReleaseUnitTest' testProfileUnitTest: task ':app:testProfileUnitTest' testReleaseUnitTest: task ':app:testReleaseUnitTest' testReportDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/reports/tests testReportDirName: tests testResultsDir: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/test-results testResultsDirName: test-results transformClassesWithDexBuilderForDebug: task ':app:transformClassesWithDexBuilderForDebug' transformClassesWithDexBuilderForDebugAndroidTest: task ':app:transformClassesWithDexBuilderForDebugAndroidTest' transformClassesWithDexBuilderForDynamicProfile: task ':app:transformClassesWithDexBuilderForDynamicProfile' transformClassesWithDexBuilderForDynamicRelease: task ':app:transformClassesWithDexBuilderForDynamicRelease' transformClassesWithDexBuilderForProfile: task ':app:transformClassesWithDexBuilderForProfile' transformClassesWithPreDexForRelease: task ':app:transformClassesWithPreDexForRelease' transformDexArchiveWithDexMergerForDebug: task ':app:transformDexArchiveWithDexMergerForDebug' transformDexArchiveWithDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithDexMergerForDebugAndroidTest' transformDexArchiveWithDexMergerForDynamicProfile: task ':app:transformDexArchiveWithDexMergerForDynamicProfile' transformDexArchiveWithDexMergerForDynamicRelease: task ':app:transformDexArchiveWithDexMergerForDynamicRelease' transformDexArchiveWithDexMergerForProfile: task ':app:transformDexArchiveWithDexMergerForProfile' transformDexArchiveWithExternalLibsDexMergerForDebug: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest: task ':app:transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest' transformDexArchiveWithExternalLibsDexMergerForDynamicProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForDynamicProfile' transformDexArchiveWithExternalLibsDexMergerForDynamicRelease: task ':app:transformDexArchiveWithExternalLibsDexMergerForDynamicRelease' transformDexArchiveWithExternalLibsDexMergerForProfile: task ':app:transformDexArchiveWithExternalLibsDexMergerForProfile' transformDexWithDexForRelease: task ':app:transformDexWithDexForRelease' transformNativeLibsWithMergeJniLibsForDebug: task ':app:transformNativeLibsWithMergeJniLibsForDebug' transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task ':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest' transformNativeLibsWithMergeJniLibsForDynamicProfile: task ':app:transformNativeLibsWithMergeJniLibsForDynamicProfile' transformNativeLibsWithMergeJniLibsForDynamicRelease: task ':app:transformNativeLibsWithMergeJniLibsForDynamicRelease' transformNativeLibsWithMergeJniLibsForProfile: task ':app:transformNativeLibsWithMergeJniLibsForProfile' transformNativeLibsWithMergeJniLibsForRelease: task ':app:transformNativeLibsWithMergeJniLibsForRelease' transformResourcesWithMergeJavaResForDebug: task ':app:transformResourcesWithMergeJavaResForDebug' transformResourcesWithMergeJavaResForDebugAndroidTest: task ':app:transformResourcesWithMergeJavaResForDebugAndroidTest' transformResourcesWithMergeJavaResForDebugUnitTest: task ':app:transformResourcesWithMergeJavaResForDebugUnitTest' transformResourcesWithMergeJavaResForDynamicProfile: task ':app:transformResourcesWithMergeJavaResForDynamicProfile' transformResourcesWithMergeJavaResForDynamicProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForDynamicProfileUnitTest' transformResourcesWithMergeJavaResForDynamicRelease: task ':app:transformResourcesWithMergeJavaResForDynamicRelease' transformResourcesWithMergeJavaResForDynamicReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForDynamicReleaseUnitTest' transformResourcesWithMergeJavaResForProfile: task ':app:transformResourcesWithMergeJavaResForProfile' transformResourcesWithMergeJavaResForProfileUnitTest: task ':app:transformResourcesWithMergeJavaResForProfileUnitTest' transformResourcesWithMergeJavaResForRelease: task ':app:transformResourcesWithMergeJavaResForRelease' transformResourcesWithMergeJavaResForReleaseUnitTest: task ':app:transformResourcesWithMergeJavaResForReleaseUnitTest' uninstallAll: task ':app:uninstallAll' uninstallDebug: task ':app:uninstallDebug' uninstallDebugAndroidTest: task ':app:uninstallDebugAndroidTest' uninstallDynamicProfile: task ':app:uninstallDynamicProfile' uninstallDynamicRelease: task ':app:uninstallDynamicRelease' uninstallProfile: task ':app:uninstallProfile' uninstallRelease: task ':app:uninstallRelease' validateSigningDebug: task ':app:validateSigningDebug' validateSigningDebugAndroidTest: task ':app:validateSigningDebugAndroidTest' validateSigningDynamicProfile: task ':app:validateSigningDynamicProfile' validateSigningDynamicRelease: task ':app:validateSigningDynamicRelease' validateSigningProfile: task ':app:validateSigningProfile' validateSigningRelease: task ':app:validateSigningRelease' version: unspecified writeDebugApplicationId: task ':app:writeDebugApplicationId' writeDynamicProfileApplicationId: task ':app:writeDynamicProfileApplicationId' writeDynamicReleaseApplicationId: task ':app:writeDynamicReleaseApplicationId' writeProfileApplicationId: task ':app:writeProfileApplicationId' writeReleaseApplicationId: task ':app:writeReleaseApplicationId' BUILD SUCCESSFUL in 2s 1 actionable task: 1 executed [ +6 ms] Resolving dependencies... (completed) [ +9 ms] executing: /Users/johan/Library/Android/sdk/build-tools/28.0.2/aapt dump xmltree /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/outputs/apk/app.apk AndroidManifest.xml [ +17 ms] Exit code 0 from: /Users/johan/Library/Android/sdk/build-tools/28.0.2/aapt dump xmltree /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/outputs/apk/app.apk AndroidManifest.xml [ ] N: android=http://schemas.android.com/apk/res/android E: manifest (line=2) A: android:versionCode(0x0101021b)=(type 0x10)0x1 A: android:versionName(0x0101021c)="1.0" (Raw: "1.0") A: package="co.apperto.fastqrreaderviewexample" (Raw: "co.apperto.fastqrreaderviewexample") E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b E: uses-permission (line=16) A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET") E: uses-permission (line=17) A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA") E: application (line=25) A: android:label(0x01010001)="fast_qr_reader_view_example" (Raw: "fast_qr_reader_view_example") A: android:icon(0x01010002)=@0x7f090000 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication") A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff E: activity (line=30) A: android:theme(0x01010000)=@0x7f0b0000 A: android:name(0x01010003)="co.apperto.fastqrreaderviewexample.MainActivity" (Raw: "co.apperto.fastqrreaderviewexample.MainActivity") A: android:launchMode(0x0101001d)=(type 0x10)0x1 A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4 A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10 A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff E: meta-data (line=44) A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw: "io.flutter.app.android.SplashScreenUntilFirstFrame") A: android:value(0x01010024)=(type 0x12)0xffffffff E: intent-filter (line=48) E: action (line=49) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=51) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: activity (line=54) A: android:theme(0x01010000)=@0x1030010 A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity") A: android:exported(0x01010010)=(type 0x12)0x0 E: provider (line=59) A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw: "com.google.firebase.provider.FirebaseInitProvider") A: android:exported(0x01010010)=(type 0x12)0x0 A: android:authorities(0x01010018)="co.apperto.fastqrreaderviewexample.firebaseinitprovider" (Raw: "co.apperto.fastqrreaderviewexample.firebaseinitprovider") A: android:initOrder(0x0101001a)=(type 0x10)0x64 E: meta-data (line=65) A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version") A: android:value(0x01010024)=@0x7f070001 E: meta-data (line=68) A: android:name(0x01010003)="android.support.VERSION" (Raw: "android.support.VERSION") A: android:value(0x01010024)="26.1.0" (Raw: "26.1.0") E: meta-data (line=71) A: android:name(0x01010003)="android.arch.lifecycle.VERSION" (Raw: "android.arch.lifecycle.VERSION") A: android:value(0x01010024)="27.0.0-SNAPSHOT" (Raw: "27.0.0-SNAPSHOT") [ +17 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b logcat -v time -t 1 [ +121 ms] Exit code 0 from: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b logcat -v time -t 1 [ ] --------- beginning of main 09-15 11:30:49.422 E/propClient(24393): PropClient failed to load [ +6 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b logcat -v time [ +977 ms] DependencyChecker: nothing is modified after 2018-09-15 10:39:03.000. [ +6 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb version [ +26 ms] Android Debug Bridge version 1.0.40 Version 4986621 Installed as /Users/johan/Library/Android/sdk/platform-tools/adb [ +5 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb start-server [ +16 ms] Building APK [ +18 ms] Running 'gradlew assembleDebug'... [ +4 ms] executing: [/Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/] /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/gradlew -Pverbose=true -Ptarget=/Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/lib/main.dart -Ppreview-dart-2=true -Ptarget-platform=android-arm64 assembleDebug [+3243 ms] registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) [ ] registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) [ +4 ms] registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) [ ] registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) [ +1 ms] registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) [ +382 ms] :app:preBuild UP-TO-DATE [ +1 ms] :fast_qr_reader_view:preBuild UP-TO-DATE [ ] :fast_qr_reader_view:preDebugBuild UP-TO-DATE [ +11 ms] :fast_qr_reader_view:checkDebugManifest UP-TO-DATE [ +1 ms] :fast_qr_reader_view:processDebugManifest UP-TO-DATE [ +74 ms] :app:preDebugBuild [ +2 ms] Warning: The app gradle file must have a dependency on com.google.firebase:firebase-core for Firebase services to work as intended. [ +38 ms] Warning: The app gradle file must have a dependency on com.google.firebase:firebase-core for Firebase services to work as intended. [ +21 ms] :app:preDebugBuild UP-TO-DATE [ +17 ms] :fast_qr_reader_view:compileDebugAidl UP-TO-DATE [ +7 ms] :app:compileDebugAidl UP-TO-DATE [ +10 ms] :fast_qr_reader_view:packageDebugRenderscript NO-SOURCE [ +1 ms] :app:compileDebugRenderscript UP-TO-DATE [ +25 ms] :app:flutterBuildX86Jar UP-TO-DATE [ ] :app:checkDebugManifest UP-TO-DATE [ ] :app:generateDebugBuildConfig UP-TO-DATE [ ] :app:prepareLintJar UP-TO-DATE [ +22 ms] :app:cleanMergeDebugAssets [ +125 ms] :app:flutterBuildDebug UP-TO-DATE [ +10 ms] :app:mergeDebugShaders UP-TO-DATE [ ] :app:compileDebugShaders UP-TO-DATE [ ] :app:generateDebugAssets UP-TO-DATE [ ] :fast_qr_reader_view:mergeDebugShaders UP-TO-DATE [ +10 ms] :fast_qr_reader_view:compileDebugShaders UP-TO-DATE [ ] :fast_qr_reader_view:generateDebugAssets UP-TO-DATE [ ] :fast_qr_reader_view:mergeDebugAssets UP-TO-DATE [ +36 ms] :app:mergeDebugAssets [ +431 ms] :app:copyFlutterAssetsDebug [ ] :app:generateDebugResValues UP-TO-DATE [ ] :app:generateDebugResources UP-TO-DATE [ ] :app:processDebugGoogleServices [ ] Parsing json file: /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/android/app/google-services.json [ +28 ms] :fast_qr_reader_view:compileDebugRenderscript UP-TO-DATE [ ] :fast_qr_reader_view:generateDebugResValues UP-TO-DATE [ ] :fast_qr_reader_view:generateDebugResources UP-TO-DATE [ ] :fast_qr_reader_view:packageDebugResources UP-TO-DATE [ +52 ms] :app:mergeDebugResources UP-TO-DATE [ ] :app:createDebugCompatibleScreenManifests UP-TO-DATE [ +10 ms] :app:processDebugManifest UP-TO-DATE [ ] :app:splitsDiscoveryTaskDebug UP-TO-DATE [ ] :fast_qr_reader_view:platformAttrExtractor UP-TO-DATE [ +20 ms] :fast_qr_reader_view:processDebugResources UP-TO-DATE [ +13 ms] :app:processDebugResources UP-TO-DATE [ ] :app:generateDebugSources UP-TO-DATE [ ] :fast_qr_reader_view:generateDebugBuildConfig UP-TO-DATE [ ] :fast_qr_reader_view:prepareLintJar UP-TO-DATE [ ] :fast_qr_reader_view:generateDebugSources UP-TO-DATE [ +6 ms] :fast_qr_reader_view:javaPreCompileDebug UP-TO-DATE [ +24 ms] :fast_qr_reader_view:compileDebugJavaWithJavac UP-TO-DATE [ ] :fast_qr_reader_view:processDebugJavaRes NO-SOURCE [ ] :fast_qr_reader_view:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE [ +9 ms] :app:javaPreCompileDebug UP-TO-DATE [ +11 ms] :app:compileDebugJavaWithJavac UP-TO-DATE [ ] :app:compileDebugNdk NO-SOURCE [ ] :app:compileDebugSources UP-TO-DATE [ +36 ms] :app:transformClassesWithDexBuilderForDebug UP-TO-DATE [ +11 ms] :app:transformDexArchiveWithExternalLibsDexMergerForDebug UP-TO-DATE [ +13 ms] :app:transformDexArchiveWithDexMergerForDebug UP-TO-DATE [ ] :app:mergeDebugJniLibFolders UP-TO-DATE [ ] :fast_qr_reader_view:compileDebugNdk NO-SOURCE [ +10 ms] :fast_qr_reader_view:mergeDebugJniLibFolders UP-TO-DATE [ ] :fast_qr_reader_view:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE [ ] :fast_qr_reader_view:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE [ +27 ms] :app:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE [ ] :app:processDebugJavaRes NO-SOURCE [ +11 ms] :app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE [ ] :app:validateSigningDebug [ +13 ms] :app:packageDebug UP-TO-DATE [ ] :app:assembleDebug UP-TO-DATE [ +27 ms] :fast_qr_reader_view:extractDebugAnnotations UP-TO-DATE [ ] :fast_qr_reader_view:mergeDebugConsumerProguardFiles UP-TO-DATE [ +1 ms] :fast_qr_reader_view:transformResourcesWithMergeJavaResForDebug UP-TO-DATE [ +10 ms] :fast_qr_reader_view:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE [ +21 ms] :fast_qr_reader_view:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE [ ] :fast_qr_reader_view:bundleDebug UP-TO-DATE [ ] :fast_qr_reader_view:compileDebugSources UP-TO-DATE [ ] :fast_qr_reader_view:assembleDebug UP-TO-DATE [ ] BUILD SUCCESSFUL in 4s [ ] 55 actionable tasks: 5 executed, 50 up-to-date [ +452 ms] Running 'gradlew assembleDebug'... (completed) [ +246 ms] calculateSha: LocalDirectory: '/Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/outputs/apk'/app.apk [+1262 ms] Built build/app/outputs/apk/debug/app-debug.apk. [ +1 ms] executing: /Users/johan/Library/Android/sdk/build-tools/28.0.2/aapt dump xmltree /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/outputs/apk/app.apk AndroidManifest.xml [ +18 ms] Exit code 0 from: /Users/johan/Library/Android/sdk/build-tools/28.0.2/aapt dump xmltree /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/outputs/apk/app.apk AndroidManifest.xml [ ] N: android=http://schemas.android.com/apk/res/android E: manifest (line=2) A: android:versionCode(0x0101021b)=(type 0x10)0x1 A: android:versionName(0x0101021c)="1.0" (Raw: "1.0") A: package="co.apperto.fastqrreaderviewexample" (Raw: "co.apperto.fastqrreaderviewexample") E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b E: uses-permission (line=16) A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET") E: uses-permission (line=17) A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA") E: application (line=25) A: android:label(0x01010001)="fast_qr_reader_view_example" (Raw: "fast_qr_reader_view_example") A: android:icon(0x01010002)=@0x7f090000 A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication") A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff E: activity (line=30) A: android:theme(0x01010000)=@0x7f0b0000 A: android:name(0x01010003)="co.apperto.fastqrreaderviewexample.MainActivity" (Raw: "co.apperto.fastqrreaderviewexample.MainActivity") A: android:launchMode(0x0101001d)=(type 0x10)0x1 A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4 A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10 A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff E: meta-data (line=44) A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw: "io.flutter.app.android.SplashScreenUntilFirstFrame") A: android:value(0x01010024)=(type 0x12)0xffffffff E: intent-filter (line=48) E: action (line=49) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=51) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: activity (line=54) A: android:theme(0x01010000)=@0x1030010 A: android:name(0x01010003)="com.google.android.gms.common.api.GoogleApiActivity" (Raw: "com.google.android.gms.common.api.GoogleApiActivity") A: android:exported(0x01010010)=(type 0x12)0x0 E: provider (line=59) A: android:name(0x01010003)="com.google.firebase.provider.FirebaseInitProvider" (Raw: "com.google.firebase.provider.FirebaseInitProvider") A: android:exported(0x01010010)=(type 0x12)0x0 A: android:authorities(0x01010018)="co.apperto.fastqrreaderviewexample.firebaseinitprovider" (Raw: "co.apperto.fastqrreaderviewexample.firebaseinitprovider") A: android:initOrder(0x0101001a)=(type 0x10)0x64 E: meta-data (line=65) A: android:name(0x01010003)="com.google.android.gms.version" (Raw: "com.google.android.gms.version") A: android:value(0x01010024)=@0x7f070001 E: meta-data (line=68) A: android:name(0x01010003)="android.support.VERSION" (Raw: "android.support.VERSION") A: android:value(0x01010024)="26.1.0" (Raw: "26.1.0") E: meta-data (line=71) A: android:name(0x01010003)="android.arch.lifecycle.VERSION" (Raw: "android.arch.lifecycle.VERSION") A: android:value(0x01010024)="27.0.0-SNAPSHOT" (Raw: "27.0.0-SNAPSHOT") [ +1 ms] Stopping app 'app.apk' on SM G930V. [ ] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b shell am force-stop co.apperto.fastqrreaderviewexample [ +106 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b shell pm list packages co.apperto.fastqrreaderviewexample [ +739 ms] Installing APK. [ +2 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb version [ +14 ms] Android Debug Bridge version 1.0.40 Version 4986621 Installed as /Users/johan/Library/Android/sdk/platform-tools/adb [ ] executing: /Users/johan/Library/Android/sdk/platform-tools/adb start-server [ +16 ms] Installing build/app/outputs/apk/app.apk... [ ] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b install -t -r /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/build/app/outputs/apk/app.apk [+6659 ms] Success [ ] Installing build/app/outputs/apk/app.apk... (completed) [ +4 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b shell echo -n 3761bf1b68c0dffcf5d25bf6c669035d298f3ac4 &gt; /data/local/tmp/sky.co.apperto.fastqrreaderviewexample.sha1 [ +79 ms] SM G930V startApp [ +3 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true co.apperto.fastqrreaderviewexample/co.apperto.fastqrreaderviewexample.MainActivity [ +251 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=co.apperto.fastqrreaderviewexample/.MainActivity (has extras) } [ ] Waiting for observatory port to be available... [+1956 ms] Observatory URL on device: http://127.0.0.1:40938/ [ +2 ms] executing: /Users/johan/Library/Android/sdk/platform-tools/adb -s fb7f666b forward tcp:0 tcp:40938 [ +12 ms] 52922 [ ] Forwarded host port 52922 to device port 40938 for Observatory [ +10 ms] Connecting to service protocol: http://127.0.0.1:52922/ [ +613 ms] Successfully connected to service protocol: http://127.0.0.1:52922/ [ +5 ms] getVM: {} [ +26 ms] getIsolate: {isolateId: isolates/587171702} [ +7 ms] _flutter.listViews: {isolateId: isolates/587171702} [ +123 ms] DevFS: Creating new filesystem on the device (null) [ +3 ms] _createDevFS: {fsName: example} [ +64 ms] DevFS: Created new filesystem on the device (file:///data/user/0/co.apperto.fastqrreaderviewexample/cache/exampleYIRKSF/example/) [ +15 ms] Updating assets [ +453 ms] Syncing files to device SM G930V... [ +5 ms] DevFS: Starting sync from LocalDirectory: '/Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example' [ ] Scanning project files [ +6 ms] Scanning package files [ +297 ms] Scanning asset files [ +1 ms] Scanning for deleted files [ +19 ms] Compiling dart to kernel with 432 updated files [ +10 ms] /Users/johan/flutter/bin/cache/dart-sdk/bin/dart /Users/johan/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root /Users/johan/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --initialize-from-dill=foo --output-dill build/app.dill --packages /Users/johan/vc/flut/qr-android/fast_qr_reader_view-master/example/.packages --filesystem-scheme org-dartlang-root [ +27 ms] W/DynamiteModule(24548): Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found. [ +301 ms] I/DynamiteModule(24548): Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0 [ ] D/BarcodeNativeHandle(24548): Cannot load feature, fall back to load whole module. [ ] W/DynamiteModule(24548): Local module descriptor class for com.google.android.gms.vision.dynamite not found. [ +141 ms] W/zygote64(24548): Skipping duplicate class check due to unrecognized classloader [ +7 ms] I/DynamiteModule(24548): Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:1800 [ ] I/DynamiteModule(24548): Selected remote version of com.google.android.gms.vision.dynamite, version &gt;= 1800 [ +122 ms] W/zygote64(24548): Skipping duplicate class check due to unrecognized classloader [ +37 ms] I/CameraManager(24548): getCameraCharacteristics : cameraId = 0 [ +5 ms] I/zygote64(24548): Do partial code cache collection, code=29KB, data=26KB [ +51 ms] I/zygote64(24548): After code cache collection, code=24KB, data=26KB [ ] I/zygote64(24548): Increasing code cache capacity to 128KB [ +194 ms] D/ViewRootImpl@1cd1dda[MainActivity](24548): MSG_WINDOW_FOCUS_CHANGED 0 [ +82 ms] I/Vision (24548): Loading library libbarhopper.so [ +169 ms] I/zygote64(24548): find the special shared library, skip check [ ] I/zygote64(24548): find the special shared library, skip check [ +437 ms] W/linker (24548): "/data/data/com.google.android.gms/app_vision/barcode/libs/arm64-v8a/libbarhopper.so" unused DT entry: type 0x7ffffffd arg 0x6dd [ ] I/Vision (24548): libbarhopper.so library load status: true [ +95 ms] I/DynamiteModule(24548): Considering local module com.google.android.gms.flags:2 and remote module com.google.android.gms.flags:3 [ ] I/DynamiteModule(24548): Selected remote version of com.google.android.gms.flags, version &gt;= 3 [ +24 ms] W/zygote64(24548): Skipping duplicate class check due to unrecognized classloader [+1871 ms] D/ViewRootImpl@1cd1dda[MainActivity](24548): MSG_WINDOW_FOCUS_CHANGED 1 [ +8 ms] V/InputMethodManager(24548): Starting input: tba=android.view.inputmethod.EditorInfo@4015678 nm : co.apperto.fastqrreaderviewexample ic=null [ ] I/InputMethodManager(24548): startInputInner - mService.startInputOrWindowGainedFocus [ +11 ms] V/Surface (24548): sf_framedrop debug : 0x4f4c, game : false, logging : 0 [ +21 ms] I/CameraManager(24548): getCameraCharacteristics : cameraId = 0 [ +36 ms] I/zygote64(24548): Do partial code cache collection, code=61KB, data=43KB [ ] I/zygote64(24548): After code cache collection, code=51KB, data=39KB [ ] I/zygote64(24548): Increasing code cache capacity to 256KB [ +136 ms] V/Surface (24548): sf_framedrop debug : 0x4f4c, game : false, logging : 0 [ +469 ms] D/libGLESv2(24548): STS_GLApi : DTS, ODTC are not allowed for Package : co.apperto.fastqrreaderviewexample [ +76 ms] E/MethodChannel#fast_qr_reader_view(24548): Failed to handle method call [ ] E/MethodChannel#fast_qr_reader_view(24548): java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.Image.close()' on a null object reference [ ] E/MethodChannel#fast_qr_reader_view(24548): at co.apperto.fastqrreaderview.FastQrReaderViewPlugin.startScanning(FastQrReaderViewPlugin.java:315) [ ] E/MethodChannel#fast_qr_reader_view(24548): at co.apperto.fastqrreaderview.FastQrReaderViewPlugin.onMethodCall(FastQrReaderViewPlugin.java:220) [ ] E/MethodChannel#fast_qr_reader_view(24548): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:191) [ ] E/MethodChannel#fast_qr_reader_view(24548): at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163) [ ] E/MethodChannel#fast_qr_reader_view(24548): at android.os.MessageQueue.nativePollOnce(Native Method) [ ] E/MethodChannel#fast_qr_reader_view(24548): at android.os.MessageQueue.next(MessageQueue.java:325) [ ] E/MethodChannel#fast_qr_reader_view(24548): at android.os.Looper.loop(Looper.java:142) [ ] E/MethodChannel#fast_qr_reader_view(24548): at android.app.ActivityThread.main(ActivityThread.java:6944) [ ] E/MethodChannel#fast_qr_reader_view(24548): at java.lang.reflect.Method.invoke(Native Method) [ ] E/MethodChannel#fast_qr_reader_view(24548): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) [ ] E/MethodChannel#fast_qr_reader_view(24548): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) [ ] E/FlutterNativeView(24548): Uncaught exception in binary message listener [ ] E/FlutterNativeView(24548): java.lang.IllegalStateException: Reply already submitted [ ] E/FlutterNativeView(24548): at io.flutter.view.FlutterNativeView$1.reply(FlutterNativeView.java:174) [ ] E/FlutterNativeView(24548): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:209) [ ] E/FlutterNativeView(24548): at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163) [ ] E/FlutterNativeView(24548): at android.os.MessageQueue.nativePollOnce(Native Method) [ ] E/FlutterNativeView(24548): at android.os.MessageQueue.next(MessageQueue.java:325) [ ] E/FlutterNativeView(24548): at android.os.Looper.loop(Looper.java:142) [ ] E/FlutterNativeView(24548): at android.app.ActivityThread.main(ActivityThread.java:6944) [ ] E/FlutterNativeView(24548): at java.lang.reflect.Method.invoke(Native Method) [ ] E/FlutterNativeView(24548): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) [ ] E/FlutterNativeView(24548): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.7.3, on Mac OS X 10.12.6 16G1510, locale en-US) • Flutter version 0.7.3 at /Users/johan/flutter • Framework revision 3b309bda07 (3 weeks ago), 2018-08-28 12:39:24 -0700 • Engine revision af42b6dc95 • Dart version 2.1.0-dev.1.0.flutter-ccb16f7282 [✓] Android toolchain - develop for Android devices (Android SDK 28.0.2) • Android SDK at /Users/johan/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 9.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.2, Build version 9C40b • ios-deploy 2.0.0 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 28.0.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] Connected devices (1 available) • SM G930V • fb7f666b • android-arm64 • Android 8.0.0 (API 26) • No issues found! "><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.7.3, on Mac OS X 10.12.6 16G1510, locale en-US) • Flutter version 0.7.3 at /Users/johan/flutter • Framework revision 3b309bda07 (3 weeks ago), 2018-08-28 12:39:24 -0700 • Engine revision af42b6dc95 • Dart version 2.1.0-dev.1.0.flutter-ccb16f7282 [✓] Android toolchain - develop for Android devices (Android SDK 28.0.2) • Android SDK at /Users/johan/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 9.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 9.2, Build version 9C40b • ios-deploy 2.0.0 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 28.0.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] Connected devices (1 available) • SM G930V • fb7f666b • android-arm64 • Android 8.0.0 (API 26) • No issues found! </code></pre></div>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18363.836 PowerToys version: v0.18.0 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.18363.836 PowerToys version: v0.18.0 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Open Run with alt+space</li> <li>Search for a file, for instance <em>DNI.jpg</em></li> <li>Run finds the file</li> <li>Select the file and press enter or click on it</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The file should be opened.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Run window is closed but file is not opened.<br> If I click on "Open containing folder", the explorer gets opened on "This PC" location.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/752676/82430479-a48d2080-9a8d-11ea-9068-7fbe94b7bc72.png"><img src="https://user-images.githubusercontent.com/752676/82430479-a48d2080-9a8d-11ea-9068-7fbe94b7bc72.png" alt="image" style="max-width: 100%;"></a></p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Versione 10.0.19041.264] PowerToys version: 0.18.0 PowerToy module for which you are reporting the bug (if applicable): launcher"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Versione 10.0.19041.264] PowerToys version: 0.18.0 PowerToy module for which you are reporting the bug (if applicable): launcher </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">search a file, press enter</p> <h1 dir="auto">Expected behavior</h1> I'm expecting that the file will be opened <h1 dir="auto">Actual behavior</h1> <p dir="auto">nothing</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17556189/82430146-3ba5a880-9a8d-11ea-9c4f-83215b877015.png"><img src="https://user-images.githubusercontent.com/17556189/82430146-3ba5a880-9a8d-11ea-9c4f-83215b877015.png" alt="82429389-16646a80-9a8c-11ea-8502-4e6d072208c0" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17556189/82430150-3cd6d580-9a8d-11ea-8696-d2915bedc293.png"><img src="https://user-images.githubusercontent.com/17556189/82430150-3cd6d580-9a8d-11ea-8696-d2915bedc293.png" alt="82429392-17959780-9a8c-11ea-942a-22c4fe1f3c8a" style="max-width: 100%;"></a></p>
1
<h3 dir="auto">Description</h3> <p dir="auto">Running on MacOS 12.2.1,<br> Scrapy 2.6.2 breaks with SSL error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 2022-09-26 15:22:01 [twisted] CRITICAL: Traceback (most recent call last): File &quot;/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/twisted/internet/defer.py&quot;, line 1696, in _inlineCallbacks result = context.run(gen.send, result) File &quot;/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/crawler.py&quot;, line 101, in crawl self.engine = self._create_engine() File &quot;/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/crawler.py&quot;, line 115, in _create_engine return ExecutionEngine(self, lambda _: self.stop()) File &quot;/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/core/engine.py&quot;, line 83, in __init__ self.downloader = downloader_cls(crawler) File &quot;/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/core/downloader/__init__.py&quot;, line 83, in __init__ self.middleware = DownloaderMiddlewareManager.from_crawler(crawler) File &quot;/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/middleware.py&quot;, line 59, in from_crawler return cls.from_settings(crawler.settings, crawler) File &quot;/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/middleware.py&quot;, line 40, in from_settings mwcls = load_object(clspath) File &quot;/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/utils/misc.py&quot;, line 61, in load_object mod = import_module(module) File &quot;/Users/barney/.pyenv/versions/3.10.2/lib/python3.10/importlib/__init__.py&quot;, line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1050, in _gcd_import File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1027, in _find_and_load File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1006, in _find_and_load_unlocked File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 688, in _load_unlocked File &quot;&lt;frozen importlib._bootstrap_external&gt;&quot;, line 883, in exec_module File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 241, in _call_with_frames_removed File &quot;/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/downloadermiddlewares/retry.py&quot;, line 27, in &lt;module&gt; from scrapy.core.downloader.handlers.http11 import TunnelError File &quot;/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/core/downloader/handlers/http11.py&quot;, line 23, in &lt;module&gt; from scrapy.core.downloader.contextfactory import load_context_factory_from_settings File &quot;/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/core/downloader/contextfactory.py&quot;, line 11, in &lt;module&gt; from scrapy.core.downloader.tls import DEFAULT_CIPHERS, openssl_methods, ScrapyClientTLSOptions File &quot;/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/core/downloader/tls.py&quot;, line 23, in &lt;module&gt; METHOD_SSLv3: SSL.SSLv3_METHOD, # SSL 3 (NOT recommended) AttributeError: module 'OpenSSL.SSL' has no attribute 'SSLv3_METHOD'"><pre class="notranslate"><code class="notranslate"> 2022-09-26 15:22:01 [twisted] CRITICAL: Traceback (most recent call last): File "/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/twisted/internet/defer.py", line 1696, in _inlineCallbacks result = context.run(gen.send, result) File "/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/crawler.py", line 101, in crawl self.engine = self._create_engine() File "/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/crawler.py", line 115, in _create_engine return ExecutionEngine(self, lambda _: self.stop()) File "/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/core/engine.py", line 83, in __init__ self.downloader = downloader_cls(crawler) File "/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/core/downloader/__init__.py", line 83, in __init__ self.middleware = DownloaderMiddlewareManager.from_crawler(crawler) File "/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/middleware.py", line 59, in from_crawler return cls.from_settings(crawler.settings, crawler) File "/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/middleware.py", line 40, in from_settings mwcls = load_object(clspath) File "/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/utils/misc.py", line 61, in load_object mod = import_module(module) File "/Users/barney/.pyenv/versions/3.10.2/lib/python3.10/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "&lt;frozen importlib._bootstrap&gt;", line 1050, in _gcd_import File "&lt;frozen importlib._bootstrap&gt;", line 1027, in _find_and_load File "&lt;frozen importlib._bootstrap&gt;", line 1006, in _find_and_load_unlocked File "&lt;frozen importlib._bootstrap&gt;", line 688, in _load_unlocked File "&lt;frozen importlib._bootstrap_external&gt;", line 883, in exec_module File "&lt;frozen importlib._bootstrap&gt;", line 241, in _call_with_frames_removed File "/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/downloadermiddlewares/retry.py", line 27, in &lt;module&gt; from scrapy.core.downloader.handlers.http11 import TunnelError File "/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/core/downloader/handlers/http11.py", line 23, in &lt;module&gt; from scrapy.core.downloader.contextfactory import load_context_factory_from_settings File "/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/core/downloader/contextfactory.py", line 11, in &lt;module&gt; from scrapy.core.downloader.tls import DEFAULT_CIPHERS, openssl_methods, ScrapyClientTLSOptions File "/Users/barney/git/netail_code/netail-crawling-infra/crawling/netail-crawler/.venv/lib/python3.10/site-packages/scrapy/core/downloader/tls.py", line 23, in &lt;module&gt; METHOD_SSLv3: SSL.SSLv3_METHOD, # SSL 3 (NOT recommended) AttributeError: module 'OpenSSL.SSL' has no attribute 'SSLv3_METHOD' </code></pre></div> <p dir="auto">I suspect this error is because PyOpenSSL pushed a new release that pins to <code class="notranslate">cryptography&gt;=38.0.0,&lt;39</code> (see: <a href="https://github.com/pyca/pyopenssl/pull/1150/files">https://github.com/pyca/pyopenssl/pull/1150/files</a>, and <a href="https://github.com/pyca/pyopenssl/blob/main/setup.py#L99">https://github.com/pyca/pyopenssl/blob/main/setup.py#L99</a>), as downgrading to <code class="notranslate">cryptography&gt;38</code> removes this error entirely.</p> <h3 dir="auto">Steps to Reproduce</h3> <ol dir="auto"> <li>Install scrapy == 2.6.2 on fresh virtualenv</li> <li>Run scrapy</li> <li>See error</li> <li>Downgrade cryptography&lt;38</li> <li>Error goes.</li> </ol> <p dir="auto"><strong>Expected behavior:</strong> [What you expect to happen]</p> <p dir="auto"><strong>Actual behavior:</strong> [What actually happens]</p> <p dir="auto"><strong>Reproduces how often:</strong> [What percentage of the time does it reproduce?]</p> <h3 dir="auto">Versions</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".venv ❯ scrapy version --verbose Scrapy : 2.6.2 lxml : 4.9.1.0 libxml2 : 2.9.4 cssselect : 1.1.0 parsel : 1.6.0 w3lib : 2.0.1 Twisted : 22.8.0 Python : 3.10.2 (main, Mar 25 2022, 12:18:40) [Clang 13.1.6 (clang-1316.0.21.2)] pyOpenSSL : 22.1.0 (OpenSSL 3.0.5 5 Jul 2022) cryptography : 38.0.1 Platform : macOS-12.2.1-arm64-arm-64bit"><pre class="notranslate"><code class="notranslate">.venv ❯ scrapy version --verbose Scrapy : 2.6.2 lxml : 4.9.1.0 libxml2 : 2.9.4 cssselect : 1.1.0 parsel : 1.6.0 w3lib : 2.0.1 Twisted : 22.8.0 Python : 3.10.2 (main, Mar 25 2022, 12:18:40) [Clang 13.1.6 (clang-1316.0.21.2)] pyOpenSSL : 22.1.0 (OpenSSL 3.0.5 5 Jul 2022) cryptography : 38.0.1 Platform : macOS-12.2.1-arm64-arm-64bit </code></pre></div> <h3 dir="auto">Additional context</h3> <p dir="auto">Any additional information, configuration, data or output from commands that might be necessary to reproduce or understand the issue. Please try not to include screenshots of code or the command line, paste the contents as text instead. You can use <a href="https://help.github.com/en/articles/creating-and-highlighting-code-blocks">GitHub Flavored Markdown</a> to make the text look better.</p>
<p dir="auto"><a href="https://github.com/scrapy/scrapy/blob/1.5.0/scrapy/core/downloader/tls.py#L17">WHAT THE F</a></p> <p dir="auto">does not exist in pyopenssl</p> <p dir="auto">no help anywhere</p>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-local-scope-and-functions#?solution=function%20myFunction%28%29%20%7B%0A%20%20var%20myVar%3B%0A%20%20console.log%28myVar%29%3B%0A%7D%0AmyFunction%28%29%3B%0A%0A%2F%2F%20run%20and%20check%20the%20console%20%0A%2F%2F%20myVar%20is%20not%20defined%20outside%20of%20myFunction%0A%2F%2Fconsole.log%28myVar%29%3B%0A%0A%2F%2F%20now%20remove%20the%20console.log%20line%20to%20pass%20the%20test%0A%0A" rel="nofollow">Waypoint: Local Scope and Functions</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function myFunction() { var myVar = &quot;Foo&quot;; console.log(myVar); } myFunction(); // run and check the console // myVar is not defined outside of myFunction //console.log(myVar); // now remove the console.log line to pass the test "><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">myFunction</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">myVar</span> <span class="pl-c1">=</span> <span class="pl-s">"Foo"</span><span class="pl-kos">;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">myVar</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">myFunction</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// run and check the console </span> <span class="pl-c">// myVar is not defined outside of myFunction</span> <span class="pl-c">//console.log(myVar);</span> <span class="pl-c">// now remove the console.log line to pass the test</span> </pre></div>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-local-scope-and-functions#?solution=function%20myFunction%28%29%20%7B%0A%20%20var%20myVar%20%3D%205%3B%20%20%0A%20%20console.log%28myVar%29%3B%0A%7D%0AmyFunction%28%29%3B%0A%0A%2F%2F%20run%20and%20check%20the%20console%20%0A%2F%2F%20myVar%20is%20not%20defined%20outside%20of%20myFunction%0A%0A%2F%2F%20now%20remove%20the%20console.log%20line%20to%20pass%20the%20test%0A%0A" rel="nofollow">Waypoint: Local Scope and Functions</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.48 Safari/537.36</code>.</p> <p dir="auto">The test asks you to remove the second console.log() to pass. When you remove the second console.log() it still fails. You have to remove both console.log() calls to pass(including the one inside myFunction().)</p> <p dir="auto">Reproducible every time by removing the console.log() outside of myFunction(), as asked by test. I'm assuming this is a bug in the test and not the text as there's no reason to remove the console.log() call within myFunction().</p>
1
<p dir="auto"><strong>Elasticsearch version</strong>: 2.3</p> <p dir="auto"><strong>JVM version</strong>: 1.8.0_25</p> <p dir="auto"><strong>OS version</strong>: OSX 10.11.5</p> <p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:</p> <p dir="auto"><strong>Steps to reproduce</strong>:</p> <ol dir="auto"> <li>Define a nested object type in your mapping</li> <li>Index some documents</li> <li>Perform a nested query with a query_string on on of the field of the nested object using a wildcard</li> </ol> <p dir="auto">I am indexing the following document with a nested type locations:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -X PUT 'http://localhost:9201/test_nested?pretty' -d '{ &quot;settings&quot;: { &quot;index&quot;: { &quot;number_of_shards&quot;: 5, &quot;number_of_replicas&quot;: 1 } }, &quot;mappings&quot;: { &quot;loc&quot;: { &quot;properties&quot;: { &quot;id&quot;: { &quot;type&quot;: &quot;string&quot;, &quot;index&quot;: &quot;not_analyzed&quot; }, &quot;locations&quot;: { &quot;type&quot;: &quot;nested&quot;, &quot;properties&quot;: { &quot;input&quot;: { &quot;type&quot;: &quot;string&quot;, &quot;index&quot;: &quot;not_analyzed&quot; }, &quot;country_code&quot;: { &quot;type&quot;: &quot;string&quot;, &quot;index&quot;: &quot;not_analyzed&quot; } } } } } } }' curl -X PUT 'http://localhost:9201/test_nested/loc/location_1' -d '{ id: &quot;location_1&quot;, &quot;locations&quot;: [ { input: &quot;xxx&quot;, country_code: &quot;BE&quot; }, { input: &quot;yyy&quot;, country_code: &quot;NL&quot; } ] }' curl -X PUT 'http://localhost:9201/test_nested/loc/location_2' -d '{ id: &quot;location_2&quot;, &quot;locations&quot;: [ { input: &quot;zzz&quot;, country_code: &quot;BR&quot; }, { input: &quot;vvv&quot;, country_code: &quot;US&quot; } ] }'"><pre class="notranslate"><code class="notranslate">curl -X PUT 'http://localhost:9201/test_nested?pretty' -d '{ "settings": { "index": { "number_of_shards": 5, "number_of_replicas": 1 } }, "mappings": { "loc": { "properties": { "id": { "type": "string", "index": "not_analyzed" }, "locations": { "type": "nested", "properties": { "input": { "type": "string", "index": "not_analyzed" }, "country_code": { "type": "string", "index": "not_analyzed" } } } } } } }' curl -X PUT 'http://localhost:9201/test_nested/loc/location_1' -d '{ id: "location_1", "locations": [ { input: "xxx", country_code: "BE" }, { input: "yyy", country_code: "NL" } ] }' curl -X PUT 'http://localhost:9201/test_nested/loc/location_2' -d '{ id: "location_2", "locations": [ { input: "zzz", country_code: "BR" }, { input: "vvv", country_code: "US" } ] }' </code></pre></div> <p dir="auto">When i try todo an extact match using query_string it works:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -X POST 'http://localhost:9201/test_nested/_search' -d ' { &quot;query&quot;: { &quot;nested&quot;: { &quot;path&quot;: &quot;locations&quot;, &quot;query&quot;: { &quot;query_string&quot;: { &quot;fields&quot;: [ &quot;locations.country_code&quot; ], &quot;query&quot;: &quot;BE&quot; } } } } } ' RESULT: {&quot;took&quot;:1,&quot;timed_out&quot;:false,&quot;_shards&quot;:{&quot;total&quot;:5,&quot;successful&quot;:5,&quot;failed&quot;:0},&quot;hits&quot;:{&quot;total&quot;:1,&quot;max_score&quot;:2.098612,&quot;hits&quot;:[{&quot;_index&quot;:&quot;test_nested&quot;,&quot;_type&quot;:&quot;loc&quot;,&quot;_id&quot;:&quot;location_1&quot;,&quot;_score&quot;:2.098612,&quot;_source&quot;:{ id: &quot;location_1&quot;, &quot;locations&quot;: [ { input: &quot;xxx&quot;, country_code: &quot;BE&quot; }, { input: &quot;yyy&quot;, country_code: &quot;NL&quot; }"><pre class="notranslate"><code class="notranslate">curl -X POST 'http://localhost:9201/test_nested/_search' -d ' { "query": { "nested": { "path": "locations", "query": { "query_string": { "fields": [ "locations.country_code" ], "query": "BE" } } } } } ' RESULT: {"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":2.098612,"hits":[{"_index":"test_nested","_type":"loc","_id":"location_1","_score":2.098612,"_source":{ id: "location_1", "locations": [ { input: "xxx", country_code: "BE" }, { input: "yyy", country_code: "NL" } </code></pre></div> <p dir="auto">When i try todo a wildcard it does not return anything:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -X POST 'http://localhost:9201/test_nested/_search' -d ' { &quot;query&quot;: { &quot;nested&quot;: { &quot;path&quot;: &quot;locations&quot;, &quot;query&quot;: { &quot;query_string&quot;: { &quot;fields&quot;: [ &quot;locations.country_code&quot; ], &quot;query&quot;: &quot;B*&quot; } } } } } ' RESULT: {&quot;took&quot;:1,&quot;timed_out&quot;:false,&quot;_shards&quot;:{&quot;total&quot;:5,&quot;successful&quot;:5,&quot;failed&quot;:0},&quot;hits&quot;:{&quot;total&quot;:0,&quot;max_score&quot;:null,&quot;hits&quot;:[]}}"><pre class="notranslate"><code class="notranslate">curl -X POST 'http://localhost:9201/test_nested/_search' -d ' { "query": { "nested": { "path": "locations", "query": { "query_string": { "fields": [ "locations.country_code" ], "query": "B*" } } } } } ' RESULT: {"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}} </code></pre></div> <p dir="auto">It seems to only not be working for nested datatypes because if i do a query_string with a wildcard on a property of the main document it works as expected:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -X POST 'http://localhost:9201/test_nested/_search' -d ' { &quot;query&quot;: { &quot;query_string&quot;: { &quot;fields&quot;: [ &quot;id&quot; ], &quot;query&quot;: &quot;location_*&quot; } } } ' RESULT: {&quot;took&quot;:1,&quot;timed_out&quot;:false,&quot;_shards&quot;:{&quot;total&quot;:5,&quot;successful&quot;:5,&quot;failed&quot;:0},&quot;hits&quot;:{&quot;total&quot;:2,&quot;max_score&quot;:1.0,&quot;hits&quot;:[{&quot;_index&quot;:&quot;test_nested&quot;,&quot;_type&quot;:&quot;loc&quot;,&quot;_id&quot;:&quot;location_1&quot;,&quot;_score&quot;:1.0,&quot;_source&quot;:{ id: &quot;location_1&quot;, &quot;locations&quot;: [ { input: &quot;xxx&quot;, country_code: &quot;BE&quot; }, { input: &quot;yyy&quot;, country_code: &quot;NL&quot; } ] }},{&quot;_index&quot;:&quot;test_nested&quot;,&quot;_type&quot;:&quot;loc&quot;,&quot;_id&quot;:&quot;location_2&quot;,&quot;_score&quot;:1.0,&quot;_source&quot;:{ id: &quot;location_2&quot;, &quot;locations&quot;: [ { input: &quot;zzz&quot;, country_code: &quot;BR&quot; }, { input: &quot;vvv&quot;, country_code: &quot;US&quot; } ] }}]}} "><pre class="notranslate"><code class="notranslate">curl -X POST 'http://localhost:9201/test_nested/_search' -d ' { "query": { "query_string": { "fields": [ "id" ], "query": "location_*" } } } ' RESULT: {"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":2,"max_score":1.0,"hits":[{"_index":"test_nested","_type":"loc","_id":"location_1","_score":1.0,"_source":{ id: "location_1", "locations": [ { input: "xxx", country_code: "BE" }, { input: "yyy", country_code: "NL" } ] }},{"_index":"test_nested","_type":"loc","_id":"location_2","_score":1.0,"_source":{ id: "location_2", "locations": [ { input: "zzz", country_code: "BR" }, { input: "vvv", country_code: "US" } ] }}]}} </code></pre></div> <p dir="auto">So is this a limitation of the nested datatype that it does not work with wildcard when using query_string? And if yes where is it documented? The weird thing is as well if i do a wildcard query it seems to work as well.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -X POST 'http://localhost:9201/test_nested/_search' -d ' { &quot;query&quot;: { &quot;nested&quot;: { &quot;path&quot;: &quot;locations&quot;, &quot;query&quot;: { &quot;wildcard&quot;: { &quot;locations.country_code&quot;: &quot;B*&quot; } } } } } ' {&quot;took&quot;:1,&quot;timed_out&quot;:false,&quot;_shards&quot;:{&quot;total&quot;:5,&quot;successful&quot;:5,&quot;failed&quot;:0},&quot;hits&quot;:{&quot;total&quot;:2,&quot;max_score&quot;:1.0,&quot;hits&quot;:[{&quot;_index&quot;:&quot;test_nested&quot;,&quot;_type&quot;:&quot;loc&quot;,&quot;_id&quot;:&quot;location_1&quot;,&quot;_score&quot;:1.0,&quot;_source&quot;:{ id: &quot;location_1&quot;, &quot;locations&quot;: [ { input: &quot;xxx&quot;, country_code: &quot;BE&quot; }, { input: &quot;yyy&quot;, country_code: &quot;NL&quot; } ] }},{&quot;_index&quot;:&quot;test_nested&quot;,&quot;_type&quot;:&quot;loc&quot;,&quot;_id&quot;:&quot;location_2&quot;,&quot;_score&quot;:1.0,&quot;_source&quot;:{ id: &quot;location_2&quot;, &quot;locations&quot;: [ { input: &quot;zzz&quot;, country_code: &quot;BR&quot; }, { input: &quot;vvv&quot;, country_code: &quot;US&quot; } ] }}]}}"><pre class="notranslate"><code class="notranslate">curl -X POST 'http://localhost:9201/test_nested/_search' -d ' { "query": { "nested": { "path": "locations", "query": { "wildcard": { "locations.country_code": "B*" } } } } } ' {"took":1,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":2,"max_score":1.0,"hits":[{"_index":"test_nested","_type":"loc","_id":"location_1","_score":1.0,"_source":{ id: "location_1", "locations": [ { input: "xxx", country_code: "BE" }, { input: "yyy", country_code: "NL" } ] }},{"_index":"test_nested","_type":"loc","_id":"location_2","_score":1.0,"_source":{ id: "location_2", "locations": [ { input: "zzz", country_code: "BR" }, { input: "vvv", country_code: "US" } ] }}]}} </code></pre></div>
<p dir="auto">for the record, i think we should remove this lowercasing option completely in parsers, disable it, and let the analysis chain take care. For multitermqueries, its a little tricky, which subset of the filters should be used? For example lowercasing is reasonable, stemming is not.</p> <p dir="auto">But lucene already annotates each analyzer component deemed to be "reasonable" for wildcards with a marker interface (MultiTermAwareComponent). Things like lowercasefilter have it and things like stemmers dont have it. This is enough to build a "chain", automatically from the query analyzer, that acts reasonably for multitermqueries.</p> <p dir="auto">I know we don't use the lucene factories (es has its own), but we have a table that maps between them, i know because its in a test I wrote. So the information is there :)</p> <p dir="auto">All queryparsers have hooks (e.g. factory methods for prefix/wildcard/range) that make it possible to use this, for example solr does it by default, as soon as it did this, people stopped complaining about confusing behavior: both for the unanalyzed, and the analyzed case. it just works.</p> <p dir="auto">Sorry for the long explanation.</p> <p dir="auto">Compare:</p> <ul dir="auto"> <li><a href="http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/LowerCaseFilterFactory.java?view=markup" rel="nofollow">http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/analysis/common/src/java/org/apache/lucene/analysis/core/LowerCaseFilterFactory.java?view=markup</a></li> <li><a href="http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/PorterStemFilterFactory.java?view=markup" rel="nofollow">http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/PorterStemFilterFactory.java?view=markup</a></li> </ul>
1
<p dir="auto">I think I might have located the root of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="216872266" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/8698" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/8698/hovercard" href="https://github.com/tensorflow/tensorflow/issues/8698">#8698</a><br> It seems that <code class="notranslate">merge_duplicate_nodes</code> is the reason that <code class="notranslate">quantize_nodes</code> malfunctions.<br> Whatever I do, whenever I apply a <code class="notranslate">merge_duplicate_nodes</code> somewhere during a graph transformation, the output becomes completely indifferent to the input.</p> <p dir="auto">(Unfortunately) I don't get any error messages concerning this...</p>
<p dir="auto">Hello everyone,</p> <p dir="auto">have the following problem after the tensorflow installation via pip:</p> <p dir="auto"><code class="notranslate">&gt;&gt;&gt; import tensorflow as tf I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcublas.so locally I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcudnn.so locally I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcufft.so locally I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcuda.so.1 locally I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcurand.so locally Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/usr/local/lib/python2.7/dist-packages/tensorflow/__init__.py", line 23, in &lt;module&gt; from tensorflow.python import * File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/__init__.py", line 94, in &lt;module&gt; from tensorflow.python.platform import test File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/test.py", line 62, in &lt;module&gt; from tensorflow.python.framework import test_util File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/test_util.py", line 41, in &lt;module&gt; from tensorflow.python.platform import googletest File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/googletest.py", line 32, in &lt;module&gt; from tensorflow.python.platform import benchmark # pylint: disable=unused-import File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/benchmark.py", line 112, in &lt;module&gt; class Benchmark(six.with_metaclass(_BenchmarkRegistrar, object)): File "/usr/lib/python2.7/dist-packages/six.py", line 617, in with_metaclass return meta("NewBase", bases, {}) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/benchmark.py", line 107, in __new__ if not newclass.is_abstract(): AttributeError: type object 'NewBase' has no attribute 'is_abstract'</code></p> <p dir="auto">I'm using Nvidia GTX Titan X (comp. capability 5.2) and CUDA 7.5. Does anybody have an idea?</p> <p dir="auto">Many thanks in advance for your help!</p> <p dir="auto">Cheers,<br> A</p>
0
<p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="323283498" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/7934" data-hovercard-type="pull_request" data-hovercard-url="/babel/babel/pull/7934/hovercard" href="https://github.com/babel/babel/pull/7934">#7934</a> the support for this new flow call type parameters has been implemented, but it was guarded by some check, namely that the file is actually checked by flow.<br> The problem is that the check doesn't work properly for us, where the <code class="notranslate">flow</code> pragma comes after a copyright comment, eg:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // @flow import * as React from 'react';"><pre class="notranslate"><span class="pl-c">/* This Source Code Form is subject to the terms of the Mozilla Public</span> <span class="pl-c"> * License, v. 2.0. If a copy of the MPL was not distributed with this</span> <span class="pl-c"> * file, You can obtain one at http://mozilla.org/MPL/2.0/. */</span> <span class="pl-c">// <span class="pl-k">@flow</span></span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-v">React</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span><span class="pl-kos">;</span></pre></div> <p dir="auto">As a result the stripping behavior isn't triggered.</p> <p dir="auto">If possible, it would be much better to check other comments at the top of the file until the first code line.</p> <p dir="auto">Using babel 7.4.3.</p>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong><br> When the <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/flow/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/flow">@flow</a> pragma is not specified as the first comment of a JS or JSX file, babel parser will not be able to parse any code that passes type arguments.</p> <p dir="auto"><strong>Input Code</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// arbitrary comment // @flow const n: number = 5; // this works fine const set = new Set&lt;number&gt;([1, 2, 3]); // unexpected token^"><pre class="notranslate"><span class="pl-c">// arbitrary comment</span> <span class="pl-c">// <span class="pl-k">@flow</span></span> <span class="pl-k">const</span> <span class="pl-s1">n</span>: <span class="pl-s1">number</span> <span class="pl-c1">=</span> <span class="pl-c1">5</span><span class="pl-kos">;</span> <span class="pl-c">// this works fine</span> <span class="pl-k">const</span> <span class="pl-s1">set</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Set</span><span class="pl-c1">&lt;</span><span class="pl-s1">number</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">3</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// unexpected token^</span></pre></div> <p dir="auto"><strong>Expected behavior/code</strong><br> Flow should be able to parse functions that are called with type arguments so long as the <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/flow/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/flow">@flow</a> pragma exists before any code.</p> <p dir="auto"><strong>Babel Configuration (.babelrc)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ presets: [ &quot;@babel/preset-env&quot;, &quot;@babel/preset-react&quot;, &quot;@babel/preset-flow&quot;, ] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">presets</span>: <span class="pl-kos">[</span> <span class="pl-s">"@babel/preset-env"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/preset-react"</span><span class="pl-kos">,</span> <span class="pl-s">"@babel/preset-flow"</span><span class="pl-kos">,</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version: [^7.0.0]</li> <li>Node/npm version: [Node 8.11.1]</li> <li>OS: [OSX 10.13.4]</li> <li>Monorepo: [yes]</li> <li>How you are using Babel: [<code class="notranslate">loader</code>]</li> </ul> <p dir="auto"><strong>Possible Solution</strong></p> <p dir="auto">It appears this line ignores the flow pragma if it isn't found in the first comment of the source file.<br> </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/babel/babel/blob/c586d4e8cac816941bf2ba559472fd9cc3150921/packages/babel-parser/src/plugins/flow.js#L77">babel/packages/babel-parser/src/plugins/flow.js</a> </p> <p class="mb-0 color-fg-muted"> Line 77 in <a data-pjax="true" class="commit-tease-sha" href="/babel/babel/commit/c586d4e8cac816941bf2ba559472fd9cc3150921">c586d4e</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L77" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="77"></td> <td id="LC77" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c">// to "@flow" or "@noflow" if we see a pragma. Transitions to null if we are</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">This could be changed a-la Flow-Strip-Types, which first checks all comments for a flow pragma before it begins transforming. (<a href="https://github.com/babel/babel/blob/c586d4e8cac816941bf2ba559472fd9cc3150921/packages/babel-plugin-transform-flow-strip-types/src/index.js">https://github.com/babel/babel/blob/c586d4e8cac816941bf2ba559472fd9cc3150921/packages/babel-plugin-transform-flow-strip-types/src/index.js</a>). Perhaps a solution like this could be used here as well.</p>
1
<p dir="auto">The Git menu has a couple items that use terminology that doesn't originate from within Git. ("Sync", "Clean All", "Publish"? What are these going to do?) Even when they do, it's still not always clear what exactly will happen when you click them. ("Pull" pulls from where? Origin? Using its branch of of the same name as the one that's checked out on your repo?)</p> <p dir="auto">Hovering over any of these items should show the commands that these items correspond with, so you know exactly what they're going to do.</p>
<p dir="auto">Why does this action have a background while all the other do not have one?<br> Setting to feb for discussion</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1926584/13249655/c4679c8c-da25-11e5-94f0-be9eb04a5f25.png"><img src="https://cloud.githubusercontent.com/assets/1926584/13249655/c4679c8c-da25-11e5-94f0-be9eb04a5f25.png" alt="screen shot 2016-02-23 at 12 05 21" style="max-width: 100%;"></a></p>
0
<p dir="auto">This example uses <code class="notranslate">rust-crypto 0.2.14</code>. Failing to import the <code class="notranslate">Encryptor</code> trait that implements <code class="notranslate">encrypt</code> causes an unexpected error message. The trait isn't private and importing it compiles as expected.</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="extern crate crypto; use crypto::{ buffer, aes, blockmodes }; use crypto::buffer::{ ReadBuffer, WriteBuffer }; fn enc(key: &amp;[u8], iv: &amp;[u8], data: &amp;[u8]) { // Don't import the trait that implements encrypt() //use crypto::symmetriccipher::Encryptor; let mut encryptor = aes::cbc_encryptor(aes::KeySize::KeySize256, key, iv, blockmodes::PkcsPadding); let mut read_buffer = buffer::RefReadBuffer::new(data); let mut buffer = [0; 4096]; let mut write_buffer = buffer::RefWriteBuffer::new(&amp;mut buffer); // Expected error: type `_` does not implement any method in scope named `encrypt` // Get error: source trait is private encryptor.encrypt(&amp;mut read_buffer, &amp;mut write_buffer, true); } fn main() { }"><pre class="notranslate"><span class="pl-k">extern</span> <span class="pl-k">crate</span> crypto<span class="pl-kos">;</span> <span class="pl-k">use</span> crypto<span class="pl-kos">::</span><span class="pl-kos">{</span> buffer<span class="pl-kos">,</span> aes<span class="pl-kos">,</span> blockmodes <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">use</span> crypto<span class="pl-kos">::</span>buffer<span class="pl-kos">::</span><span class="pl-kos">{</span> <span class="pl-v">ReadBuffer</span><span class="pl-kos">,</span> <span class="pl-v">WriteBuffer</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">fn</span> <span class="pl-en">enc</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-kos">[</span><span class="pl-smi">u8</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">iv</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-kos">[</span><span class="pl-smi">u8</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">data</span><span class="pl-kos">:</span> <span class="pl-c1">&amp;</span><span class="pl-kos">[</span><span class="pl-smi">u8</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Don't import the trait that implements encrypt()</span> <span class="pl-c">//use crypto::symmetriccipher::Encryptor;</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> encryptor = aes<span class="pl-kos">::</span><span class="pl-en">cbc_encryptor</span><span class="pl-kos">(</span>aes<span class="pl-kos">::</span><span class="pl-smi">KeySize</span><span class="pl-kos">::</span><span class="pl-v">KeySize256</span><span class="pl-kos">,</span> key<span class="pl-kos">,</span> iv<span class="pl-kos">,</span> blockmodes<span class="pl-kos">::</span><span class="pl-v">PkcsPadding</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> read_buffer = buffer<span class="pl-kos">::</span><span class="pl-smi">RefReadBuffer</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span>data<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> buffer = <span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-c1">4096</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> write_buffer = buffer<span class="pl-kos">::</span><span class="pl-smi">RefWriteBuffer</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> buffer<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Expected error: type `_` does not implement any method in scope named `encrypt`</span> <span class="pl-c">// Get error: source trait is private</span> encryptor<span class="pl-kos">.</span><span class="pl-en">encrypt</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> read_buffer<span class="pl-kos">,</span> <span class="pl-c1">&amp;</span><span class="pl-k">mut</span> write_buffer<span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="src/main.rs:19:5: 19:65 error: source trait is private src/main.rs:19 encryptor.encrypt(&amp;mut read_buffer, &amp;mut write_buffer, true); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"><pre class="notranslate"><code class="notranslate">src/main.rs:19:5: 19:65 error: source trait is private src/main.rs:19 encryptor.encrypt(&amp;mut read_buffer, &amp;mut write_buffer, true); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ </code></pre></div> <p dir="auto"><code class="notranslate">rustc 1.0.0-nightly (706be5ba1 2015-02-05 23:14:28 +0000)</code></p>
<p dir="auto">My attempt to call <code class="notranslate">Any::get_type_id()</code> and use its return value of as an instance of <code class="notranslate">fmt::Debug</code> does not work without import of <code class="notranslate">std::any::TypeId</code> <em>struct</em>: <a href="http://doc.rust-lang.org/std/any/struct.TypeId.html" rel="nofollow">http://doc.rust-lang.org/std/any/struct.TypeId.html</a></p> <p dir="auto">Example code:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::thread; // use std::any::TypeId; // uncomment this line to make the compile work fn main() { let b1 = Box::new(3u64); println!(&quot;hello world, b1: {:?}&quot;, b1); let child = thread::Thread::scoped(|| { let b2 = Box::new(4u64); println!(&quot;other thread b2: {:?}&quot;, b2); }); match child.join() { Ok(()) =&gt; {} Err(ref panic_arg) =&gt; { if let Some(s) = panic_arg.downcast_ref::&lt;&amp;str&gt;() { println!(&quot;whoops child died with str: {}&quot;, s); } else if let Some(s) = panic_arg.downcast_ref::&lt;String&gt;() { println!(&quot;whoops child died with String: {}&quot;, s); } else { let id = panic_arg.get_type_id(); println!(&quot;whoops child died with unknown panic arg, id: {:?}&quot;, id); } } } }"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>thread<span class="pl-kos">;</span> <span class="pl-c">// use std::any::TypeId; // uncomment this line to make the compile work</span> <span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> b1 = <span class="pl-smi">Box</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-c1">3u64</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"hello world, b1: {:?}"</span>, b1<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> child = thread<span class="pl-kos">::</span><span class="pl-smi">Thread</span><span class="pl-kos">::</span><span class="pl-en">scoped</span><span class="pl-kos">(</span>|| <span class="pl-kos">{</span> <span class="pl-k">let</span> b2 = <span class="pl-smi">Box</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-c1">4u64</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"other thread b2: {:?}"</span>, b2<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">match</span> child<span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-v">Ok</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> =&gt; <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-v">Err</span><span class="pl-kos">(</span><span class="pl-k">ref</span> panic_arg<span class="pl-kos">)</span> =&gt; <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-k">let</span> <span class="pl-v">Some</span><span class="pl-kos">(</span>s<span class="pl-kos">)</span> = panic_arg<span class="pl-kos">.</span><span class="pl-en">downcast_ref</span><span class="pl-kos">::</span><span class="pl-kos">&lt;</span><span class="pl-c1">&amp;</span><span class="pl-smi">str</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"whoops child died with str: {}"</span>, s<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-k">let</span> <span class="pl-v">Some</span><span class="pl-kos">(</span>s<span class="pl-kos">)</span> = panic_arg<span class="pl-kos">.</span><span class="pl-en">downcast_ref</span><span class="pl-kos">::</span><span class="pl-kos">&lt;</span><span class="pl-smi">String</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"whoops child died with String: {}"</span>, s<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> id = panic_arg<span class="pl-kos">.</span><span class="pl-en">get_type_id</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"whoops child died with unknown panic arg, id: {:?}"</span>, id<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Transcript of attempt to compile:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;anon&gt;:19:26: 19:49 error: source trait is private &lt;anon&gt;:19 let id = panic_arg.get_type_id(); ^~~~~~~~~~~~~~~~~~~~~~~ error: aborting due to previous error playpen: application terminated with error code 101"><pre class="notranslate"><code class="notranslate">&lt;anon&gt;:19:26: 19:49 error: source trait is private &lt;anon&gt;:19 let id = panic_arg.get_type_id(); ^~~~~~~~~~~~~~~~~~~~~~~ error: aborting due to previous error playpen: application terminated with error code 101 </code></pre></div>
1
<p dir="auto">sub2ind and ind2sub are implemented in a very slow way. Checkout my implementation and compare run time to the julia built in implementation. I observed factors of up to 50</p> <p dir="auto">julia&gt; include("test_sub2ind.jl")<br> Julia sub2ind 2D elapsed time: 3.071918131 seconds<br> My sub2ind 2D elapsed time: 0.061298908 seconds<br> Julia ind2sub 2D elapsed time: 1.626608852 seconds<br> My ind2sub 2D elapsed time: 0.253709231 seconds<br> Julia sub2ind 3D elapsed time: 4.206525844 seconds<br> My sub2ind 3D elapsed time: 0.080784239 seconds<br> Julia ind2sub 3D elapsed time: 2.85505408 seconds<br> My ind2sub 3D elapsed time: 0.491045143 seconds</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function mysub2ind( s::Vector{Int64}, ii::Vector{Int64},jj::Vector{Int64} ) # 2D sub2ind const nn = length(ii) if length(jj) != nn error(&quot;length(jj) != nn&quot;) elseif length(s) != 2 error(&quot;length(s) != 2&quot;) end idx = Array(Int64,nn) const m = s[1] for i = 1:nn idx[i] = ii[i] + (jj[i]-1)*m end return idx end # function mysub2ind #---------------------------------------------------- function mysub2ind( s::Vector{Int64}, ii::Vector{Int64},jj::Vector{Int64},kk::Vector{Int64} ) # 3D sub2ind const nn = length(ii) if length(jj) != nn || length(kk) != nn error(&quot;length(jj) != nn&quot;) elseif length(s) != 3 error(&quot;length(s) != 3&quot;) end idx = Array(Int64,nn) const m = s[1] const mn = s[1] * s[2] for i = 1:nn idx[i] = ii[i] + (jj[i]-1)*m + (kk[i]-1)*mn end return idx end # function mysub2ind #------------------------------------------------------- #------------------------------------------------------- function myind2sub( s::Vector{Int64}, idx::Vector{Int64} ) const nn = length(idx) if length(s) == 2 ii = Array(Int64,nn) jj = Array(Int64,nn) const s1 = s[1] for i = 1:nn it = idx[i] ji = div(it - 1, s1) + 1 jj[i] = ji ii[i] = it - (ji - 1)*s1 end # i return ii,jj elseif length(s) == 3 ii = Array(Int64,nn) jj = Array(Int64,nn) kk = Array(Int64,nn) const s1 = s[1] const s12 = s[1] * s[2] for i = 1:nn idxi = idx[i] ki = div(idxi - 1, s12) + 1 kk[i] = ki it = idxi - (ki - 1)*s12 ji = div(it - 1, s1) + 1 jj[i] = ji ii[i] = it - (ji - 1)*s1 end # i return ii,jj,kk else error(&quot;myind2sub only works for 2d or 3d arrays.&quot;) end end # function myind2sub"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">mysub2ind</span>( s<span class="pl-k">::</span><span class="pl-c1">Vector{Int64}</span>, ii<span class="pl-k">::</span><span class="pl-c1">Vector{Int64}</span>,jj<span class="pl-k">::</span><span class="pl-c1">Vector{Int64}</span> ) <span class="pl-c"><span class="pl-c">#</span> 2D sub2ind </span> <span class="pl-k">const</span> nn <span class="pl-k">=</span> <span class="pl-c1">length</span>(ii) <span class="pl-k">if</span> <span class="pl-c1">length</span>(jj) <span class="pl-k">!=</span> nn <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>length(jj) != nn<span class="pl-pds">"</span></span>) <span class="pl-k">elseif</span> <span class="pl-c1">length</span>(s) <span class="pl-k">!=</span> <span class="pl-c1">2</span> <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>length(s) != 2<span class="pl-pds">"</span></span>) <span class="pl-k">end</span> idx <span class="pl-k">=</span> <span class="pl-c1">Array</span>(Int64,nn) <span class="pl-k">const</span> m <span class="pl-k">=</span> s[<span class="pl-c1">1</span>] <span class="pl-k">for</span> i <span class="pl-k">=</span> <span class="pl-c1">1</span><span class="pl-k">:</span>nn idx[i] <span class="pl-k">=</span> ii[i] <span class="pl-k">+</span> (jj[i]<span class="pl-k">-</span><span class="pl-c1">1</span>)<span class="pl-k">*</span>m <span class="pl-k">end</span> <span class="pl-k">return</span> idx <span class="pl-k">end</span> <span class="pl-c"><span class="pl-c">#</span> function mysub2ind</span> <span class="pl-c"><span class="pl-c">#</span>----------------------------------------------------</span> <span class="pl-k">function</span> <span class="pl-en">mysub2ind</span>( s<span class="pl-k">::</span><span class="pl-c1">Vector{Int64}</span>, ii<span class="pl-k">::</span><span class="pl-c1">Vector{Int64}</span>,jj<span class="pl-k">::</span><span class="pl-c1">Vector{Int64}</span>,kk<span class="pl-k">::</span><span class="pl-c1">Vector{Int64}</span> ) <span class="pl-c"><span class="pl-c">#</span> 3D sub2ind </span> <span class="pl-k">const</span> nn <span class="pl-k">=</span> <span class="pl-c1">length</span>(ii) <span class="pl-k">if</span> <span class="pl-c1">length</span>(jj) <span class="pl-k">!=</span> nn <span class="pl-k">||</span> <span class="pl-c1">length</span>(kk) <span class="pl-k">!=</span> nn <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>length(jj) != nn<span class="pl-pds">"</span></span>) <span class="pl-k">elseif</span> <span class="pl-c1">length</span>(s) <span class="pl-k">!=</span> <span class="pl-c1">3</span> <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>length(s) != 3<span class="pl-pds">"</span></span>) <span class="pl-k">end</span> idx <span class="pl-k">=</span> <span class="pl-c1">Array</span>(Int64,nn) <span class="pl-k">const</span> m <span class="pl-k">=</span> s[<span class="pl-c1">1</span>] <span class="pl-k">const</span> mn <span class="pl-k">=</span> s[<span class="pl-c1">1</span>] <span class="pl-k">*</span> s[<span class="pl-c1">2</span>] <span class="pl-k">for</span> i <span class="pl-k">=</span> <span class="pl-c1">1</span><span class="pl-k">:</span>nn idx[i] <span class="pl-k">=</span> ii[i] <span class="pl-k">+</span> (jj[i]<span class="pl-k">-</span><span class="pl-c1">1</span>)<span class="pl-k">*</span>m <span class="pl-k">+</span> (kk[i]<span class="pl-k">-</span><span class="pl-c1">1</span>)<span class="pl-k">*</span>mn <span class="pl-k">end</span> <span class="pl-k">return</span> idx <span class="pl-k">end</span> <span class="pl-c"><span class="pl-c">#</span> function mysub2ind</span> <span class="pl-c"><span class="pl-c">#</span>-------------------------------------------------------</span> <span class="pl-c"><span class="pl-c">#</span>-------------------------------------------------------</span> <span class="pl-k">function</span> <span class="pl-en">myind2sub</span>( s<span class="pl-k">::</span><span class="pl-c1">Vector{Int64}</span>, idx<span class="pl-k">::</span><span class="pl-c1">Vector{Int64}</span> ) <span class="pl-k">const</span> nn <span class="pl-k">=</span> <span class="pl-c1">length</span>(idx) <span class="pl-k">if</span> <span class="pl-c1">length</span>(s) <span class="pl-k">==</span> <span class="pl-c1">2</span> ii <span class="pl-k">=</span> <span class="pl-c1">Array</span>(Int64,nn) jj <span class="pl-k">=</span> <span class="pl-c1">Array</span>(Int64,nn) <span class="pl-k">const</span> s1 <span class="pl-k">=</span> s[<span class="pl-c1">1</span>] <span class="pl-k">for</span> i <span class="pl-k">=</span> <span class="pl-c1">1</span><span class="pl-k">:</span>nn it <span class="pl-k">=</span> idx[i] ji <span class="pl-k">=</span> <span class="pl-c1">div</span>(it <span class="pl-k">-</span> <span class="pl-c1">1</span>, s1) <span class="pl-k">+</span> <span class="pl-c1">1</span> jj[i] <span class="pl-k">=</span> ji ii[i] <span class="pl-k">=</span> it <span class="pl-k">-</span> (ji <span class="pl-k">-</span> <span class="pl-c1">1</span>)<span class="pl-k">*</span>s1 <span class="pl-k">end</span> <span class="pl-c"><span class="pl-c">#</span> i</span> <span class="pl-k">return</span> ii,jj <span class="pl-k">elseif</span> <span class="pl-c1">length</span>(s) <span class="pl-k">==</span> <span class="pl-c1">3</span> ii <span class="pl-k">=</span> <span class="pl-c1">Array</span>(Int64,nn) jj <span class="pl-k">=</span> <span class="pl-c1">Array</span>(Int64,nn) kk <span class="pl-k">=</span> <span class="pl-c1">Array</span>(Int64,nn) <span class="pl-k">const</span> s1 <span class="pl-k">=</span> s[<span class="pl-c1">1</span>] <span class="pl-k">const</span> s12 <span class="pl-k">=</span> s[<span class="pl-c1">1</span>] <span class="pl-k">*</span> s[<span class="pl-c1">2</span>] <span class="pl-k">for</span> i <span class="pl-k">=</span> <span class="pl-c1">1</span><span class="pl-k">:</span>nn idxi <span class="pl-k">=</span> idx[i] ki <span class="pl-k">=</span> <span class="pl-c1">div</span>(idxi <span class="pl-k">-</span> <span class="pl-c1">1</span>, s12) <span class="pl-k">+</span> <span class="pl-c1">1</span> kk[i] <span class="pl-k">=</span> ki it <span class="pl-k">=</span> idxi <span class="pl-k">-</span> (ki <span class="pl-k">-</span> <span class="pl-c1">1</span>)<span class="pl-k">*</span>s12 ji <span class="pl-k">=</span> <span class="pl-c1">div</span>(it <span class="pl-k">-</span> <span class="pl-c1">1</span>, s1) <span class="pl-k">+</span> <span class="pl-c1">1</span> jj[i] <span class="pl-k">=</span> ji ii[i] <span class="pl-k">=</span> it <span class="pl-k">-</span> (ji <span class="pl-k">-</span> <span class="pl-c1">1</span>)<span class="pl-k">*</span>s1 <span class="pl-k">end</span> <span class="pl-c"><span class="pl-c">#</span> i</span> <span class="pl-k">return</span> ii,jj,kk <span class="pl-k">else</span> <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>myind2sub only works for 2d or 3d arrays.<span class="pl-pds">"</span></span>) <span class="pl-k">end</span> <span class="pl-k">end</span> <span class="pl-c"><span class="pl-c">#</span> function myind2sub</span></pre></div> <p dir="auto">Now the test</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" include(&quot;mysub2ind.jl&quot;) # 2D test mrow = 10000 ncol = 20000 pfil = 0.1 nz = trunc(Int64, mrow*ncol*pfil) # # of non-zeros ii = rand(1:mrow, nz) jj = rand(1:ncol, nz) print(&quot;Julia sub2ind 2D &quot;) tic() idx = sub2ind( (mrow,ncol), ii,jj ); toc() print(&quot;My sub2ind 2D &quot;) tic() idx2 = mysub2ind( [mrow,ncol], ii,jj ); toc() er = norm(idx - idx2) if er != 0 error(&quot;mysub2ind error&quot;) end print(&quot;Julia ind2sub 2D &quot;) tic() ii2,jj2 = ind2sub((mrow,ncol), idx) toc() er = norm(ii2 - ii) + norm(jj2 - jj) if er != 0 error(&quot;ind2sub error&quot;) end print(&quot;My ind2sub 2D &quot;) tic() ii3,jj3 = myind2sub([mrow,ncol], idx2) toc() er = norm(ii3 - ii) + norm(jj3 - jj) if er != 0 error(&quot;myind2sub error&quot;) end #------------------------------------------------ # 3D test m1 = 1024 m2 = 2048 m3 = 512 pfil = 0.02 nz = trunc(Int64, m1*m2*m3*pfil) # # of non-zeros ii = rand(1:m1, nz) jj = rand(1:m2, nz) kk = rand(1:m3, nz) print(&quot;Julia sub2ind 3D &quot;) tic() idx = sub2ind( (m1,m2,m3), ii,jj,kk ); toc() print(&quot;My sub2ind 3D &quot;) tic() idx2 = mysub2ind( [m1,m2,m3], ii,jj,kk ); toc() er = norm(idx - idx2) if er != 0 error(&quot;mysub2ind error&quot;) end print(&quot;Julia ind2sub 3D &quot;) tic() ii2,jj2,kk2 = ind2sub((m1,m2,m3), idx) toc() er = norm(ii2 - ii) + norm(jj2 - jj) + norm(kk2 - kk) if er != 0 error(&quot;ind2sub error&quot;) end print(&quot;My ind2sub 3D &quot;) tic() ii3,jj3,kk3 = myind2sub([m1,m2,m3], idx2) toc() er = norm(ii3 - ii) + norm(jj3 - jj) + norm(kk3 - kk) if er != 0 error(&quot;myind2sub error&quot;) end "><pre class="notranslate"><span class="pl-c1">include</span>(<span class="pl-s"><span class="pl-pds">"</span>mysub2ind.jl<span class="pl-pds">"</span></span>) <span class="pl-c"><span class="pl-c">#</span> 2D test</span> mrow <span class="pl-k">=</span> <span class="pl-c1">10000</span> ncol <span class="pl-k">=</span> <span class="pl-c1">20000</span> pfil <span class="pl-k">=</span> <span class="pl-c1">0.1</span> nz <span class="pl-k">=</span> <span class="pl-c1">trunc</span>(Int64, mrow<span class="pl-k">*</span>ncol<span class="pl-k">*</span>pfil) <span class="pl-c"><span class="pl-c">#</span> # of non-zeros</span> ii <span class="pl-k">=</span> <span class="pl-c1">rand</span>(<span class="pl-c1">1</span><span class="pl-k">:</span>mrow, nz) jj <span class="pl-k">=</span> <span class="pl-c1">rand</span>(<span class="pl-c1">1</span><span class="pl-k">:</span>ncol, nz) <span class="pl-c1">print</span>(<span class="pl-s"><span class="pl-pds">"</span>Julia sub2ind 2D <span class="pl-pds">"</span></span>) <span class="pl-c1">tic</span>() idx <span class="pl-k">=</span> <span class="pl-c1">sub2ind</span>( (mrow,ncol), ii,jj ); <span class="pl-c1">toc</span>() <span class="pl-c1">print</span>(<span class="pl-s"><span class="pl-pds">"</span>My sub2ind 2D <span class="pl-pds">"</span></span>) <span class="pl-c1">tic</span>() idx2 <span class="pl-k">=</span> <span class="pl-c1">mysub2ind</span>( [mrow,ncol], ii,jj ); <span class="pl-c1">toc</span>() er <span class="pl-k">=</span> <span class="pl-c1">norm</span>(idx <span class="pl-k">-</span> idx2) <span class="pl-k">if</span> er <span class="pl-k">!=</span> <span class="pl-c1">0</span> <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>mysub2ind error<span class="pl-pds">"</span></span>) <span class="pl-k">end</span> <span class="pl-c1">print</span>(<span class="pl-s"><span class="pl-pds">"</span>Julia ind2sub 2D <span class="pl-pds">"</span></span>) <span class="pl-c1">tic</span>() ii2,jj2 <span class="pl-k">=</span> <span class="pl-c1">ind2sub</span>((mrow,ncol), idx) <span class="pl-c1">toc</span>() er <span class="pl-k">=</span> <span class="pl-c1">norm</span>(ii2 <span class="pl-k">-</span> ii) <span class="pl-k">+</span> <span class="pl-c1">norm</span>(jj2 <span class="pl-k">-</span> jj) <span class="pl-k">if</span> er <span class="pl-k">!=</span> <span class="pl-c1">0</span> <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>ind2sub error<span class="pl-pds">"</span></span>) <span class="pl-k">end</span> <span class="pl-c1">print</span>(<span class="pl-s"><span class="pl-pds">"</span>My ind2sub 2D <span class="pl-pds">"</span></span>) <span class="pl-c1">tic</span>() ii3,jj3 <span class="pl-k">=</span> <span class="pl-c1">myind2sub</span>([mrow,ncol], idx2) <span class="pl-c1">toc</span>() er <span class="pl-k">=</span> <span class="pl-c1">norm</span>(ii3 <span class="pl-k">-</span> ii) <span class="pl-k">+</span> <span class="pl-c1">norm</span>(jj3 <span class="pl-k">-</span> jj) <span class="pl-k">if</span> er <span class="pl-k">!=</span> <span class="pl-c1">0</span> <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>myind2sub error<span class="pl-pds">"</span></span>) <span class="pl-k">end</span> <span class="pl-c"><span class="pl-c">#</span>------------------------------------------------</span> <span class="pl-c"><span class="pl-c">#</span> 3D test</span> m1 <span class="pl-k">=</span> <span class="pl-c1">1024</span> m2 <span class="pl-k">=</span> <span class="pl-c1">2048</span> m3 <span class="pl-k">=</span> <span class="pl-c1">512</span> pfil <span class="pl-k">=</span> <span class="pl-c1">0.02</span> nz <span class="pl-k">=</span> <span class="pl-c1">trunc</span>(Int64, m1<span class="pl-k">*</span>m2<span class="pl-k">*</span>m3<span class="pl-k">*</span>pfil) <span class="pl-c"><span class="pl-c">#</span> # of non-zeros</span> ii <span class="pl-k">=</span> <span class="pl-c1">rand</span>(<span class="pl-c1">1</span><span class="pl-k">:</span>m1, nz) jj <span class="pl-k">=</span> <span class="pl-c1">rand</span>(<span class="pl-c1">1</span><span class="pl-k">:</span>m2, nz) kk <span class="pl-k">=</span> <span class="pl-c1">rand</span>(<span class="pl-c1">1</span><span class="pl-k">:</span>m3, nz) <span class="pl-c1">print</span>(<span class="pl-s"><span class="pl-pds">"</span>Julia sub2ind 3D <span class="pl-pds">"</span></span>) <span class="pl-c1">tic</span>() idx <span class="pl-k">=</span> <span class="pl-c1">sub2ind</span>( (m1,m2,m3), ii,jj,kk ); <span class="pl-c1">toc</span>() <span class="pl-c1">print</span>(<span class="pl-s"><span class="pl-pds">"</span>My sub2ind 3D <span class="pl-pds">"</span></span>) <span class="pl-c1">tic</span>() idx2 <span class="pl-k">=</span> <span class="pl-c1">mysub2ind</span>( [m1,m2,m3], ii,jj,kk ); <span class="pl-c1">toc</span>() er <span class="pl-k">=</span> <span class="pl-c1">norm</span>(idx <span class="pl-k">-</span> idx2) <span class="pl-k">if</span> er <span class="pl-k">!=</span> <span class="pl-c1">0</span> <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>mysub2ind error<span class="pl-pds">"</span></span>) <span class="pl-k">end</span> <span class="pl-c1">print</span>(<span class="pl-s"><span class="pl-pds">"</span>Julia ind2sub 3D <span class="pl-pds">"</span></span>) <span class="pl-c1">tic</span>() ii2,jj2,kk2 <span class="pl-k">=</span> <span class="pl-c1">ind2sub</span>((m1,m2,m3), idx) <span class="pl-c1">toc</span>() er <span class="pl-k">=</span> <span class="pl-c1">norm</span>(ii2 <span class="pl-k">-</span> ii) <span class="pl-k">+</span> <span class="pl-c1">norm</span>(jj2 <span class="pl-k">-</span> jj) <span class="pl-k">+</span> <span class="pl-c1">norm</span>(kk2 <span class="pl-k">-</span> kk) <span class="pl-k">if</span> er <span class="pl-k">!=</span> <span class="pl-c1">0</span> <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>ind2sub error<span class="pl-pds">"</span></span>) <span class="pl-k">end</span> <span class="pl-c1">print</span>(<span class="pl-s"><span class="pl-pds">"</span>My ind2sub 3D <span class="pl-pds">"</span></span>) <span class="pl-c1">tic</span>() ii3,jj3,kk3 <span class="pl-k">=</span> <span class="pl-c1">myind2sub</span>([m1,m2,m3], idx2) <span class="pl-c1">toc</span>() er <span class="pl-k">=</span> <span class="pl-c1">norm</span>(ii3 <span class="pl-k">-</span> ii) <span class="pl-k">+</span> <span class="pl-c1">norm</span>(jj3 <span class="pl-k">-</span> jj) <span class="pl-k">+</span> <span class="pl-c1">norm</span>(kk3 <span class="pl-k">-</span> kk) <span class="pl-k">if</span> er <span class="pl-k">!=</span> <span class="pl-c1">0</span> <span class="pl-c1">error</span>(<span class="pl-s"><span class="pl-pds">"</span>myind2sub error<span class="pl-pds">"</span></span>) <span class="pl-k">end</span> </pre></div>
<p dir="auto">I'm updating ApproxFun and this caught me by surprise:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="abstract Foo julia&gt; (f::Foo)(x)=x ERROR: cannot add methods to an abstract type in eval(::Module, ::Any) at ./boot.jl:267"><pre class="notranslate">abstract Foo julia<span class="pl-k">&gt;</span> (f<span class="pl-k">::</span><span class="pl-c1">Foo</span>)(x)<span class="pl-k">=</span>x ERROR<span class="pl-k">:</span> cannot add methods to an <span class="pl-k">abstract type</span> <span class="pl-k">in</span> <span class="pl-c1">eval</span>(<span class="pl-k">::</span><span class="pl-c1">Module</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>) at <span class="pl-k">./</span>boot<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">267</span></pre></div> <p dir="auto">Is this intentional? Is there a way to get around this other than define for each subtype:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; immutable CFoo &lt;: Foo end julia&gt; (f::CFoo)(x)=x"><pre class="notranslate">julia<span class="pl-k">&gt;</span> immutable CFoo <span class="pl-k">&lt;:</span> <span class="pl-c1">Foo</span> <span class="pl-k">end</span> julia<span class="pl-k">&gt;</span> (f<span class="pl-k">::</span><span class="pl-c1">CFoo</span>)(x)<span class="pl-k">=</span>x</pre></div>
0
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 1.5.4</p> <h5 dir="auto">Environment:</h5> <p dir="auto">RHEL 5/6</p> <h5 dir="auto">Summary:</h5> <p dir="auto">When copying files to NFS, they fail with the following error:</p> <p dir="auto">failed: [myhost] =&gt; {"cur_context": ["system_u", "object_r", "nfs_t", "s0"], "failed": true, "gid": 0, "group": "root", "input_was": ["system_u", "object_r", "usr_t", "s0"], "md5sum": "mymd5sum", "mode": "0644", "new_context": ["system_u", "object_r", "usr_t", "s0"], "owner": "root", "path": "/my/nfs/mount", "secontext": "system_u:object_r:nfs_t:s0", "size": 1234, "state": "file", "uid": 0}<br> msg: invalid selinux context</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">Use copy module to copy a file to an nfs mount.</p> <h5 dir="auto">Expected Results:</h5> <p dir="auto">The file is copied to the nfs mount.</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">Error message from above:</p> <p dir="auto">failed: [myhost] =&gt; {"cur_context": ["system_u", "object_r", "nfs_t", "s0"], "failed": true, "gid": 0, "group": "root", "input_was": ["system_u", "object_r", "usr_t", "s0"], "md5sum": "mymd5sum", "mode": "0644", "new_context": ["system_u", "object_r", "usr_t", "s0"], "owner": "root", "path": "/my/nfs/mount", "secontext": "system_u:object_r:nfs_t:s0", "size": 1234, "state": "file", "uid": 0}<br> msg: invalid selinux context</p> <p dir="auto">I just ran into issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25656385" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/5632" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/5632/hovercard" href="https://github.com/ansible/ansible/issues/5632">#5632</a> - "invalid selinux context" with template over ZFS and NFS. The "fix" there was to add better debugging output, but that wasn't really a fix because it's still failing. the core of the issue seems to be that one cannot change context on NFS mounts (for the most part). Ansible should check for contexts of “nfs_t”, and not bother trying to change context if that's the case. I worked around this by forcing the context of the entire mount to the context ansible was trying to set, but that's not a great workaround because if ansible decides to set different contexts based on the files I'm copying over, one or the other will fail. Note I have selinux set to permissive, so the problem is not with selinux (per se).</p> <p dir="auto">There are a few potential fixes:</p> <ul dir="auto"> <li>have some way of allowing users to control the selinux context in the playbook/copy module. this would then let me override ansible and force the "nfs_t" context when copying to nfs. Not great as a user experience because I have to track when/if I'm copying to nfs, but better than nothing. Worth noting this use case in the docs if this is indeed the appropriate fix as it wouldn't be obvious from the error message.</li> <li>detecting if a file is destined for a nfs mount, and if so, skip the attempt to change selinux context. this seems to be the approach that puppet took, from my googling: <a href="http://projects.puppetlabs.com/issues/1681" rel="nofollow">http://projects.puppetlabs.com/issues/1681</a></li> </ul>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">handlers listen</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2.2"><pre class="notranslate"><code class="notranslate">2.2 </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">N/A</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">While writing test for handlers listen, I found inconsistencies in how handlers are marked for execution:</p> <p dir="auto">If handlers listen, it is not necessarily a must that they require a name (as we notify the listen param), if the task notifies two or more handlers having the same module (here set_fact) only one handler will be executed:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" handlers: - set_fact: notify_listen_ran_1: True listen: notify_listen - set_fact: notify_listen_ran_2: True listen: notify_listen"><pre class="notranslate"> <span class="pl-ent">handlers</span>: - <span class="pl-ent">set_fact</span>: <span class="pl-ent">notify_listen_ran_1</span>: <span class="pl-c1">True</span> <span class="pl-ent">listen</span>: <span class="pl-s">notify_listen</span> - <span class="pl-ent">set_fact</span>: <span class="pl-ent">notify_listen_ran_2</span>: <span class="pl-c1">True</span> <span class="pl-ent">listen</span>: <span class="pl-s">notify_listen</span></pre></div> <p dir="auto">Because ansible uses the "module/plugin" name (<a href="https://github.com/ansible/ansible/blob/devel/lib/ansible/playbook/task.py#L120">https://github.com/ansible/ansible/blob/devel/lib/ansible/playbook/task.py#L120</a> and <a href="https://github.com/ansible/ansible/blob/devel/lib/ansible/executor/task_queue_manager.py#L150">https://github.com/ansible/ansible/blob/devel/lib/ansible/executor/task_queue_manager.py#L150</a>), only the first handler will be executed.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: test handlers listen hosts: localhost gather_facts: false connection: local pre_tasks: - name: notify some handlers command: echo foo notify: - notify_listen tasks: - meta: flush_handlers - name: assert all defined handlers ran without error assert: that: - &quot;notify_listen_ran_1 is defined&quot; - &quot;notify_listen_ran_2 is defined&quot; handlers: - set_fact: notify_listen_ran_1: True listen: notify_listen - set_fact: notify_listen_ran_2: True listen: notify_listen"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">test handlers listen</span> <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">gather_facts</span>: <span class="pl-c1">false</span> <span class="pl-ent">connection</span>: <span class="pl-s">local</span> <span class="pl-ent">pre_tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">notify some handlers</span> <span class="pl-ent">command</span>: <span class="pl-s">echo foo</span> <span class="pl-ent">notify</span>: - <span class="pl-s">notify_listen</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">meta</span>: <span class="pl-s">flush_handlers</span> - <span class="pl-ent">name</span>: <span class="pl-s">assert all defined handlers ran without error</span> <span class="pl-ent">assert</span>: <span class="pl-ent">that</span>: - <span class="pl-s"><span class="pl-pds">"</span>notify_listen_ran_1 is defined<span class="pl-pds">"</span></span> - <span class="pl-s"><span class="pl-pds">"</span>notify_listen_ran_2 is defined<span class="pl-pds">"</span></span> <span class="pl-ent">handlers</span>: - <span class="pl-ent">set_fact</span>: <span class="pl-ent">notify_listen_ran_1</span>: <span class="pl-c1">True</span> <span class="pl-ent">listen</span>: <span class="pl-s">notify_listen</span> - <span class="pl-ent">set_fact</span>: <span class="pl-ent">notify_listen_ran_2</span>: <span class="pl-c1">True</span> <span class="pl-ent">listen</span>: <span class="pl-s">notify_listen</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">My suggestion is, that we enforce to have a handler name specified. So Ansible should fail for handlers without a name.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="No config file found; using defaults [WARNING]: Host file not found: /etc/ansible/hosts [WARNING]: provided hosts list is empty, only localhost is available PLAYBOOK: test_handlers_listen2.yml ******************************************** 1 plays in test_handlers_listen2.yml PLAY [test handlers listen] **************************************************** TASK [notify some handlers] **************************************************** task path: /home/resmo/Projects/resmo/ansible/test/integration/test_handlers_listen2.yml:6 NOTIFIED HANDLER set_fact changed: [localhost] =&gt; {&quot;changed&quot;: true, &quot;cmd&quot;: [&quot;echo&quot;, &quot;foo&quot;], &quot;delta&quot;: &quot;0:00:00.002432&quot;, &quot;end&quot;: &quot;2016-10-01 08:47:41.952511&quot;, &quot;rc&quot;: 0, &quot;start&quot;: &quot;2016-10-01 08:47:41.950079&quot;, &quot;stderr&quot;: &quot;&quot;, &quot;stdout&quot;: &quot;foo&quot;, &quot;stdout_lines&quot;: [&quot;foo&quot;], &quot;warnings&quot;: []} RUNNING HANDLER [set_fact] ***************************************************** ok: [localhost] =&gt; {&quot;ansible_facts&quot;: {&quot;notify_listen_ran_1&quot;: true}, &quot;changed&quot;: false} TASK [assert all defined handlers ran without error] *************************** task path: /home/resmo/Projects/resmo/ansible/test/integration/test_handlers_listen2.yml:13 fatal: [localhost]: FAILED! =&gt; { &quot;assertion&quot;: &quot;notify_listen_ran_2 is defined&quot;, &quot;changed&quot;: false, &quot;evaluated_to&quot;: false, &quot;failed&quot;: true } to retry, use: --limit @/home/resmo/Projects/resmo/ansible/test/integration/test_handlers_listen2.retry PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=1 "><pre class="notranslate"><code class="notranslate">No config file found; using defaults [WARNING]: Host file not found: /etc/ansible/hosts [WARNING]: provided hosts list is empty, only localhost is available PLAYBOOK: test_handlers_listen2.yml ******************************************** 1 plays in test_handlers_listen2.yml PLAY [test handlers listen] **************************************************** TASK [notify some handlers] **************************************************** task path: /home/resmo/Projects/resmo/ansible/test/integration/test_handlers_listen2.yml:6 NOTIFIED HANDLER set_fact changed: [localhost] =&gt; {"changed": true, "cmd": ["echo", "foo"], "delta": "0:00:00.002432", "end": "2016-10-01 08:47:41.952511", "rc": 0, "start": "2016-10-01 08:47:41.950079", "stderr": "", "stdout": "foo", "stdout_lines": ["foo"], "warnings": []} RUNNING HANDLER [set_fact] ***************************************************** ok: [localhost] =&gt; {"ansible_facts": {"notify_listen_ran_1": true}, "changed": false} TASK [assert all defined handlers ran without error] *************************** task path: /home/resmo/Projects/resmo/ansible/test/integration/test_handlers_listen2.yml:13 fatal: [localhost]: FAILED! =&gt; { "assertion": "notify_listen_ran_2 is defined", "changed": false, "evaluated_to": false, "failed": true } to retry, use: --limit @/home/resmo/Projects/resmo/ansible/test/integration/test_handlers_listen2.retry PLAY RECAP ********************************************************************* localhost : ok=2 changed=1 unreachable=0 failed=1 </code></pre></div>
0