text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto"><strong>Elasticsearch version</strong>: 2.4.0</p> <p dir="auto"><strong>Plugins installed</strong>: [kopf, head]</p> <p dir="auto"><strong>JVM version</strong>: OpenJDK 64-Bit Server VM (build 25.92-b14, mixed mode)</p> <p dir="auto"><strong>Docker version</strong>: 1.10.3, build 1f8f545</p> <p dir="auto"><strong>OS version</strong>: 4.7.0-coreos</p> <p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:</p> <p dir="auto">Deploying elasticsearch cluster with 1 master node + 3 data nodes + 2 clients nodes within Kubernetes Petsets as mentioned here:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" NAME READY STATUS RESTARTS AGE es-client-petset-0 1/1 Running 0 1h es-client-petset-1 1/1 Running 0 1h es-data-petset-0 1/1 Running 0 1h es-data-petset-1 1/1 Running 0 1h es-data-petset-2 1/1 Running 0 1h es-master-petset-0 1/1 Running 0 1h"><pre class="notranslate"><code class="notranslate"> NAME READY STATUS RESTARTS AGE es-client-petset-0 1/1 Running 0 1h es-client-petset-1 1/1 Running 0 1h es-data-petset-0 1/1 Running 0 1h es-data-petset-1 1/1 Running 0 1h es-data-petset-2 1/1 Running 0 1h es-master-petset-0 1/1 Running 0 1h </code></pre></div> <p dir="auto">When i'm trying to create a new index i have this error in master node's logs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2016-09-21 13:00:34,438][WARN ][cluster.action.shard ] [Dragoness] [test][0] received shard failed for target shard [[test][0], node[Tzu-jiwLQRCdJVjup2sAJw], [P], v[1], s[INITIALIZING], a[id=0ofHwW7AQzGzB18TfJqY3A], unassigned_info[[reason=INDEX_CREATED], at[2016-09-21T13:00:34.381Z]]], indexUUID [kiW55aX0QvaDnzZIFESt-w], message [failed to create shard], failure [NullPointerException[null]] java.lang.NullPointerException at org.elasticsearch.index.shard.ShardPath.selectNewPathForShard(ShardPath.java:241) at org.elasticsearch.index.IndexService.createShard(IndexService.java:336) at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:620) at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:520) at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:177) at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:610) at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)"><pre class="notranslate"><code class="notranslate">[2016-09-21 13:00:34,438][WARN ][cluster.action.shard ] [Dragoness] [test][0] received shard failed for target shard [[test][0], node[Tzu-jiwLQRCdJVjup2sAJw], [P], v[1], s[INITIALIZING], a[id=0ofHwW7AQzGzB18TfJqY3A], unassigned_info[[reason=INDEX_CREATED], at[2016-09-21T13:00:34.381Z]]], indexUUID [kiW55aX0QvaDnzZIFESt-w], message [failed to create shard], failure [NullPointerException[null]] java.lang.NullPointerException at org.elasticsearch.index.shard.ShardPath.selectNewPathForShard(ShardPath.java:241) at org.elasticsearch.index.IndexService.createShard(IndexService.java:336) at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:620) at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:520) at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:177) at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:610) at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) </code></pre></div> <p dir="auto">The bug is mentioned that it was fixed here <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="177433899" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/20527" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/20527/hovercard" href="https://github.com/elastic/elasticsearch/pull/20527">#20527</a> .</p> <p dir="auto">Docker image used :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM quay.io/pires/docker-elasticsearch:2.4.1 MAINTAINER * ADD do_not_use.yml /elasticsearch/config/elasticsearch.yml # Install Elasticsearch plug-ins RUN /elasticsearch/bin/plugin install io.fabric8/elasticsearch-cloud-kubernetes/2.4.0_01 --verbose RUN /elasticsearch/bin/plugin install mobz/elasticsearch-head RUN /elasticsearch/bin/plugin install lmenezes/elasticsearch-kopf/2.0 # Override elasticsearch.yml config, otherwise plug-in install will fail ADD elasticsearch.yml /elasticsearch/config/elasticsearch.yml # Copy run script COPY run.sh /"><pre class="notranslate"><code class="notranslate">FROM quay.io/pires/docker-elasticsearch:2.4.1 MAINTAINER * ADD do_not_use.yml /elasticsearch/config/elasticsearch.yml # Install Elasticsearch plug-ins RUN /elasticsearch/bin/plugin install io.fabric8/elasticsearch-cloud-kubernetes/2.4.0_01 --verbose RUN /elasticsearch/bin/plugin install mobz/elasticsearch-head RUN /elasticsearch/bin/plugin install lmenezes/elasticsearch-kopf/2.0 # Override elasticsearch.yml config, otherwise plug-in install will fail ADD elasticsearch.yml /elasticsearch/config/elasticsearch.yml # Copy run script COPY run.sh / </code></pre></div> <p dir="auto">Explanation of the problem here <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="167111508" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/19554" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/19554/hovercard" href="https://github.com/elastic/elasticsearch/pull/19554">#19554</a><br> Kuberenetes elasticsearch integration :<br> <a href="https://github.com/pires/kubernetes-elasticsearch-cluster">https://github.com/pires/kubernetes-elasticsearch-cluster</a></p>
<p dir="auto">You can manage to slip unexpected characters into field names, like <code class="notranslate">\n</code>, <code class="notranslate">\0</code> (<code class="notranslate">\u0000</code>), <code class="notranslate">\t</code>, <code class="notranslate">\'</code>, <code class="notranslate">\"</code>, etc. I think that we should prevent this, but the change would create a backwards incompatible restriction.</p> <p dir="auto">Big caveat/counter argument: as long as they're escaped, these unexpected characters <em>are</em> valid JSON.</p>
0
<p dir="auto">Here is the ES7 proposal:<br> <a href="https://github.com/sebmarkbage/ecmascript-rest-spread">https://github.com/sebmarkbage/ecmascript-rest-spread</a></p> <p dir="auto">Rest Properties</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let { x, y, ...z } = { x: 1, y: 2, a: 3, b: 4 }; x; // 1 y; // 2 z; // { a: 3, b: 4 }"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-kos">{</span> x<span class="pl-kos">,</span> y<span class="pl-kos">,</span> ...<span class="pl-s1">z</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">x</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">y</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">a</span>: <span class="pl-c1">3</span><span class="pl-kos">,</span> <span class="pl-c1">b</span>: <span class="pl-c1">4</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-s1">x</span><span class="pl-kos">;</span> <span class="pl-c">// 1</span> <span class="pl-s1">y</span><span class="pl-kos">;</span> <span class="pl-c">// 2</span> <span class="pl-s1">z</span><span class="pl-kos">;</span> <span class="pl-c">// { a: 3, b: 4 }</span></pre></div> <p dir="auto">Spread Properties</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let n = { x, y, ...z }; n; // { x: 1, y: 2, a: 3, b: 4 }"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">n</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> x<span class="pl-kos">,</span> y<span class="pl-kos">,</span> ...<span class="pl-s1">z</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-s1">n</span><span class="pl-kos">;</span> <span class="pl-c">// { x: 1, y: 2, a: 3, b: 4 }</span></pre></div>
<p dir="auto">es7 proposal : <a href="https://github.com/sebmarkbage/ecmascript-rest-spread">https://github.com/sebmarkbage/ecmascript-rest-spread</a></p> <h2 dir="auto">Spread properties</h2> <h3 dir="auto">Typing</h3> <p dir="auto">In my opinion the goal of this method is to be able to duplicate an object and changing some props, so I think it's particularly important in this case to not check duplicate property declaration :</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var obj = { x: 1, y: 2}; var obj1 = {...obj, z: 3, y: 4}; // not an error"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">x</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">y</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">obj1</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>...<span class="pl-s1">obj</span><span class="pl-kos">,</span> <span class="pl-c1">z</span>: <span class="pl-c1">3</span><span class="pl-kos">,</span> <span class="pl-c1">y</span>: <span class="pl-c1">4</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c">// not an error</span></pre></div> <p dir="auto">I have a very naive <a href="https://github.com/fdecampredon/jsx-typescript/blob/3c692cbb80622b74d1b308b3c5dcab6b993b4111/src/compiler/checker.ts#L5665-L5671">type check algorithm</a> for a similar feature (<code class="notranslate">JSXSpreadAttribute</code>) in my little <code class="notranslate">jsx-typescript</code> fork: I just copy the properties of the <em>spread object</em> in the properties table when I encounter a spread object, and override those property if I encounter a declaration with a similar name.</p> <h3 dir="auto">Emitting</h3> <p dir="auto"><a href="https://github.com/facebook/jstransform/">jstransform</a> use <code class="notranslate">Object.assign</code>, <a href="https://babeljs.io/" rel="nofollow">babel</a> introduce a shim:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var _extends = Object.assign || function (target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">_extends</span> <span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-c1">assign</span> <span class="pl-c1">||</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">target</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">var</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">&lt;</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-s1">i</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">source</span> <span class="pl-c1">=</span> <span class="pl-smi">arguments</span><span class="pl-kos">[</span><span class="pl-s1">i</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">var</span> <span class="pl-s1">key</span> <span class="pl-k">in</span> <span class="pl-s1">source</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-v">Object</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-c1">hasOwnProperty</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-s1">source</span><span class="pl-kos">,</span> <span class="pl-s1">key</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">target</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">source</span><span class="pl-kos">[</span><span class="pl-s1">key</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">return</span> <span class="pl-s1">target</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">We could either force the presence of <code class="notranslate">assign</code> function on <code class="notranslate">ObjectConstructor</code> interface, or provide a similar function (with a different name).</p> <p dir="auto">I think that the optimal solution would be to not emit any helper in <code class="notranslate">es6</code> target (or if <code class="notranslate">Object.assign</code> is defined), and to emit an helper function for <code class="notranslate">es5</code>, <code class="notranslate">es3</code>.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var obj = { x: 1, y: 2}; var obj1 = {...obj, z: 3}; /// ES6 emit var obj = {x: 1, y: 2}; var obj1= Object.assign({}, obj, { z: 3 }); //ES3 emit var __assign = function (target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var obj = {x: 1, y: 2}; var obj1= __assign({}, obj, { z: 3 });"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">x</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">y</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">obj1</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>...<span class="pl-s1">obj</span><span class="pl-kos">,</span> <span class="pl-c1">z</span>: <span class="pl-c1">3</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c">/// ES6 emit</span> <span class="pl-k">var</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-c1">x</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">y</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">obj1</span><span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">assign</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">obj</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">z</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">//ES3 emit</span> <span class="pl-k">var</span> <span class="pl-en">__assign</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">target</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">var</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">&lt;</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-s1">i</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">source</span> <span class="pl-c1">=</span> <span class="pl-smi">arguments</span><span class="pl-kos">[</span><span class="pl-s1">i</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">var</span> <span class="pl-s1">key</span> <span class="pl-k">in</span> <span class="pl-s1">source</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-v">Object</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-c1">hasOwnProperty</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-s1">source</span><span class="pl-kos">,</span> <span class="pl-s1">key</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">target</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">source</span><span class="pl-kos">[</span><span class="pl-s1">key</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">return</span> <span class="pl-s1">target</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">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-c1">x</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">y</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">obj1</span><span class="pl-c1">=</span> <span class="pl-en">__assign</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">obj</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">z</span>: <span class="pl-c1">3</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h2 dir="auto">Rest properties</h2> <h3 dir="auto">Typing</h3> <p dir="auto">For simple object the new type is a subtype of the assignation that does not contains properties that has been captured before the rest properties :</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var obj = {x:1, y: 1, z: 1}; var {z, ...obj1} = obj; obj1// {x: number; y:number};"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-c1">x</span>:<span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">y</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">z</span>: <span class="pl-c1">1</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-kos">{</span>z<span class="pl-kos">,</span> ...<span class="pl-s1">obj1</span><span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">obj</span><span class="pl-kos">;</span> <span class="pl-s1">obj1</span><span class="pl-c">// {x: number; y:number};</span></pre></div> <p dir="auto">If the destructuring assignment has an index declaration, the result has also a similar index declaration:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var obj: { [string: string]: string }; var {[excludedId], ...obj1} = obj; obj1// { [string: string]: string };"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">obj</span>: <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">string</span>: <span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">string</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-kos">{</span><span class="pl-kos">[</span><span class="pl-s1">excludedId</span><span class="pl-kos">]</span><span class="pl-kos">,</span> ...<span class="pl-s1">obj1</span><span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">obj</span><span class="pl-kos">;</span> <span class="pl-s1">obj1</span><span class="pl-c">// { [string: string]: string };</span></pre></div> <p dir="auto">new/call declarations are obviously not captured:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var obj: { (): void; property: string}; var { ...obj1} = obj; obj1// { property: string };"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">obj</span>: <span class="pl-kos">{</span> <span class="pl-kos">(</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-c1">property</span>: <span class="pl-smi">string</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-kos">{</span> ...<span class="pl-s1">obj1</span><span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">obj</span><span class="pl-kos">;</span> <span class="pl-s1">obj1</span><span class="pl-c">// { property: string };</span></pre></div> <h3 dir="auto">Emitting</h3> <p dir="auto">It is not possible to emit <em>rest properties</em> without an helper function, this one is from babel:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var obj = {x:1, y: 1, z: 1}; var {z, ...obj1} = obj;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-c1">x</span>:<span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">y</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">z</span>: <span class="pl-c1">1</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-kos">{</span>z<span class="pl-kos">,</span> ...<span class="pl-s1">obj1</span><span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">obj</span><span class="pl-kos">;</span></pre></div> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var __objectWithoutProperties = function(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) &gt;= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }; var obj = {x:1, y: 1, z: 1}; var z = obj.z; var obj1 = __objectWithoutProperties(obj, [&quot;z&quot;]);"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-en">__objectWithoutProperties</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">obj</span><span class="pl-kos">,</span> <span class="pl-s1">keys</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">target</span> <span class="pl-c1">=</span> <span class="pl-kos">{</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">var</span> <span class="pl-s1">i</span> <span class="pl-k">in</span> <span class="pl-s1">obj</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-s1">keys</span><span class="pl-kos">.</span><span class="pl-en">indexOf</span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">)</span> <span class="pl-c1">&gt;=</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-k">continue</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-c1">hasOwnProperty</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-s1">obj</span><span class="pl-kos">,</span> <span class="pl-s1">i</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-k">continue</span><span class="pl-kos">;</span> <span class="pl-s1">target</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">obj</span><span class="pl-kos">[</span><span class="pl-s1">i</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-s1">target</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">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-c1">x</span>:<span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">y</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">z</span>: <span class="pl-c1">1</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">obj</span><span class="pl-kos">.</span><span class="pl-c1">z</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">obj1</span> <span class="pl-c1">=</span> <span class="pl-en">__objectWithoutProperties</span><span class="pl-kos">(</span><span class="pl-s1">obj</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"z"</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><em>Edit: added some little typing/emitting example</em></p>
1
<h2 dir="auto">ℹ Computer information</h2> <ul dir="auto"> <li>PowerToys version: 22.0</li> <li>PowerToy Utility: FancyZones</li> <li>Running PowerToys as Admin: yes</li> <li>Windows build number: version 1909 (OS build 18363.1082)</li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2> <ol dir="auto"> <li>2 monitors: 1 is 144hz the other is 60hz</li> <li>PC turns on, PT opens on startup as admin</li> <li>using win+` or opening the settings and then editor to select the zone set up I want to use</li> <li>hitting apply on a custom or template zone</li> <li>drag a window while holding shift or right click to place a window into a desired zone<br> <em>note</em> make windows transparent when dragging is on, also wallpaper engine is running, but that program provides no conflicts for FancyZones for my friend who uses 1 monitor.</li> </ol> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result:</h3> <p dir="auto">FancyZones works as intended and windows snap to their zones</p> <h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result:</h3> <p dir="auto">The windows will go transparent when I am dragging them, but they have nothing to snap to and refuse to snap. First screen shot is the preview of the zone being selected. Second screen shot is a clip from a quick recording of what happens when I have zones enabled(hence transparency) and try to drag it to the desired zone. Spotify was used as an example here.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/50849276/93447076-dae57b80-f886-11ea-8271-8198d09cbe76.png"><img src="https://user-images.githubusercontent.com/50849276/93447076-dae57b80-f886-11ea-8271-8198d09cbe76.png" alt="fzbr1" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/50849276/93447083-dcaf3f00-f886-11ea-9277-0d50e874a1c3.png"><img src="https://user-images.githubusercontent.com/50849276/93447083-dcaf3f00-f886-11ea-9277-0d50e874a1c3.png" alt="fzbr2" style="max-width: 100%;"></a></p>
<h2 dir="auto">ℹ Computer information</h2> <ul dir="auto"> <li>PowerToys version: v0.21.1</li> <li>PowerToy Utility: FancyZones</li> <li>Running PowerToys as Admin: No</li> <li>Windows build number: Windows 10 Version 2004: 19041.450</li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2> <ol dir="auto"> <li>Check the <strong>Allow zones to span across monitors</strong> checkbox</li> <li>Configure a zone which uses multiple monitors via the <strong>Launch zones editor</strong> and Apply</li> <li>Attempt to snap window to zones, or use Shift key to highlight zones while dragging</li> </ol> <h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3> <ul dir="auto"> <li>A window should snap to a zone</li> <li>Zone highlighting ought to be functional</li> <li>The <strong>Allow zones to span across monitors</strong> setting should persist even when closing settings</li> <li>If there are errors "Activating" the zones, these should be raised to the user</li> </ul> <h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3> <ul dir="auto"> <li>A window will not snap to a zone when the <strong>Allow zones to span across monitors</strong> is configured</li> <li>Window zone highlighting is also not functional</li> <li>When FancyZones settings is closed and re-opened, the <strong>Allow zones to span across monitors</strong> checkbox is unchecked</li> <li>When <strong>Allow zones to span across monitors</strong> is toggled to checked, then unchecked, zone highlighting and snapping functions, though obviously not with the multi-monitor zones</li> </ul> <h3 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Other Notes</h3> <ul dir="auto"> <li>There is a difference in framerate/refresh rate between the two monitors--could that be an issue?</li> <li>System is a SurfaceBook 2 in a Surface Dock which drives a 2560 x 1440 monitor at <strong>60 fps</strong> and a 2560 x 1440 monitor at <strong>30 fps</strong> <ul dir="auto"> <li>The fps cannot be made the same as far as I can tell. Likely a hardware limitation.</li> </ul> </li> <li>Display is an LG 49 ultra-wide ( 5120 x 1440)</li> </ul> <h2 dir="auto">📷 Screenshots</h2> <ul dir="auto"> <li> <p dir="auto">FancyZones Settings:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16561584/92046816-9ca57380-ed40-11ea-8b1a-745150357616.png"><img src="https://user-images.githubusercontent.com/16561584/92046816-9ca57380-ed40-11ea-8b1a-745150357616.png" alt="image" style="max-width: 100%;"></a></p> </li> <li> <p dir="auto">Zone Editor spanning monitors:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16561584/92046932-eee69480-ed40-11ea-8845-e7490a3e2687.png"><img src="https://user-images.githubusercontent.com/16561584/92046932-eee69480-ed40-11ea-8845-e7490a3e2687.png" alt="image" style="max-width: 100%;"></a></p> </li> <li> <p dir="auto">Monitor configuration:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/16561584/92046965-10e01700-ed41-11ea-8bc9-933e723b4998.png"><img src="https://user-images.githubusercontent.com/16561584/92046965-10e01700-ed41-11ea-8bc9-933e723b4998.png" alt="image" style="max-width: 100%;"></a></p> </li> </ul>
1
<p dir="auto">The Toolbar component not respecting custom theme settings.</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">The toolbar component should respect custom theme settings.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">When overriding the toolbar style params in a custom theme they are not being applied.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Create a custom theme overriding the toolbar defaults (e.g.)</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="createMuiTheme({ palette: { type: 'light', }, toolbar: { 'backgroundColor': 'red', 'minHeight': 60, '@media (min-width:0px) and (orientation: landscape)': { minHeight: 60 }, '@media (min-width:600px)': { minHeight: 60 } } });"><pre class="notranslate"><code class="notranslate">createMuiTheme({ palette: { type: 'light', }, toolbar: { 'backgroundColor': 'red', 'minHeight': 60, '@media (min-width:0px) and (orientation: landscape)': { minHeight: 60 }, '@media (min-width:600px)': { minHeight: 60 } } }); </code></pre></div> <ol start="2" dir="auto"> <li>Inspect the toolbar after render. The background color isn't red and the minHeight remains at the default 64px.</li> </ol> <p dir="auto">Doing the same with a direct style override works fine (with the exception that min-width in the <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/media/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/media">@media</a> query must be specified as minWidth (e.g.)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const styles = { toolbar: { backgroundColor': 'red', 'minHeight': 60, '@media (minWidth:0px) and (orientation: landscape)': { minHeight: 60 }, '@media (minWidth:600px)': { minHeight: 60 } } };"><pre class="notranslate"><code class="notranslate">const styles = { toolbar: { backgroundColor': 'red', 'minHeight': 60, '@media (minWidth:0px) and (orientation: landscape)': { minHeight: 60 }, '@media (minWidth:600px)': { minHeight: 60 } } }; </code></pre></div> ... <h2 dir="auto">Context</h2> <p dir="auto">Unable to use theme as designed</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>1.0.0-beta.12</td> </tr> <tr> <td>React</td> <td>16.0.0</td> </tr> <tr> <td>browser</td> <td>Chrome 61.0.3163.100</td> </tr> </tbody> </table>
<h2 dir="auto">Problem Description</h2> <p dir="auto">When browsing <a href="http://www.material-ui.com/" rel="nofollow">http://www.material-ui.com/</a> using tablet (e.g., Ipad), the website seems doesn't respond correctly.</p> <p dir="auto">For instance, <a href="http://www.material-ui.com/#/components/auto-complete" rel="nofollow">this page</a> can not be opened. Also, touch events in components like left nav behave strangely.</p> <h2 dir="auto">Versions</h2> <ul dir="auto"> <li>Material-UI: 0.14.4</li> <li>React: N/A</li> <li>Browser: ipad chrome, ipad safari</li> </ul>
0
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">A visual indication of how wide/tall a zone is would be very useful in creating accurate layouts. This could be done with a pixel count on the axis or a simple % of resolution.</p> <p dir="auto">For example, I use a 5120x1440 monitor with a centered 16:9 zone and two half size zones on the sides. If I could make sure that the center zone is exactly 2560 wide, it would ease my OCD greatly.</p> <p dir="auto">Just a minor idea!</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">I have two keyboards connected to my Windows 10 machine, one for gaming, and one for programming. The one I use for programming is a wired Mac keyboard, so I remap the Windows and Alt keys on this keyboard to be switched around, to match the layout on my gaming keyboard.<br> I'd love to have the option to have Keyboard Manager key remapping to apply to a specific keyboard only, rather than all keyboards.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">Have the option to choose which keyboard a Keyboard Manager key remapping applies to, in cases where more than one keyboard can be/is connected to the PC.</p>
0
<p dir="auto">Dear Scipy team,</p> <p dir="auto">I am the maintainer of a pyFAI and got a bug report that a feature in my code stopped working:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="732799537" data-permission-text="Title is private" data-url="https://github.com/silx-kit/pyFAI/issues/1421" data-hovercard-type="issue" data-hovercard-url="/silx-kit/pyFAI/issues/1421/hovercard" href="https://github.com/silx-kit/pyFAI/issues/1421">silx-kit/pyFAI#1421</a><br> On my side the bug comes down to the call to scipy.optimize.fmin_slsqp here:<br> <a href="https://github.com/silx-kit/pyFAI/blob/master/pyFAI/geometryRefinement.py#L361">https://github.com/silx-kit/pyFAI/blob/master/pyFAI/geometryRefinement.py#L361</a></p> <p dir="auto">The regression was introduced in scipy v1.5 an now I got a warning with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING:py.warnings:/opt/VirtualEnv/py38/lib/python3.8/site-packages/scipy/optimize/_numdiff.py:519: RuntimeWarning: invalid value encountered in true_divide J_transposed[i] = df / dx"><pre class="notranslate"><code class="notranslate">WARNING:py.warnings:/opt/VirtualEnv/py38/lib/python3.8/site-packages/scipy/optimize/_numdiff.py:519: RuntimeWarning: invalid value encountered in true_divide J_transposed[i] = df / dx </code></pre></div> <p dir="auto">and of course the optimization did not work.</p> <p dir="auto">Until now my code was offering to the use to "fix" some parameter during the optimization, which helps the optimizer to converge faster to the solution. To "fix" the parameter, I was enforcing both bounds to be equal to the fixed value but since the <code class="notranslate">approx_jacobian</code> in slsqp.py changed to call <code class="notranslate">approx_derivative</code> no more optimization occures.</p> <h4 dir="auto">Reproducing code example:</h4> <p dir="auto">If I already know the first parameter should be close to 1 and I want to fix it:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; f = lambda x:(x[0]-1)**2*(x[1]-3)**2 # solution expected to be (1,3) &gt;&gt;&gt; scipy.optimize.fmin_slsqp(f, [1,1], bounds=[(1,1), (None, None)]) /opt/VirtualEnv/py38/lib/python3.8/site-packages/scipy/optimize/_numdiff.py:519: RuntimeWarning: invalid value encountered in true_divide J_transposed[i] = df / dx Inequality constraints incompatible (Exit mode 4) Current function value: 0.0 Iterations: 1 Function evaluations: 3 Gradient evaluations: 1 Out[8]: array([1., 1.])"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; f = lambda x:(x[0]-1)**2*(x[1]-3)**2 # solution expected to be (1,3) &gt;&gt;&gt; scipy.optimize.fmin_slsqp(f, [1,1], bounds=[(1,1), (None, None)]) /opt/VirtualEnv/py38/lib/python3.8/site-packages/scipy/optimize/_numdiff.py:519: RuntimeWarning: invalid value encountered in true_divide J_transposed[i] = df / dx Inequality constraints incompatible (Exit mode 4) Current function value: 0.0 Iterations: 1 Function evaluations: 3 Gradient evaluations: 1 Out[8]: array([1., 1.]) </code></pre></div> <h4 dir="auto">Error message:</h4> <p dir="auto">There was not exception</p> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <p dir="auto">Python: 3.8.0<br> Numpy: 1.18.4<br> Scipy: 1.5.0 - 1.5.3</p> <p dir="auto">You may consider I have been misusing this feature ... but the I need to implement a work around on my side.</p>
<p dir="auto">Hello,</p> <p dir="auto">It seems that in _numdiff.py module the _dense_difference function does not take into account situation of an optimisation with equal bounds constraints and where initial solution respect this constraint for some .</p> <p dir="auto">In that case line 519 in _numdiff.py module dx and df are equal to zero and trigger nan in the jacobian.</p> <p dir="auto">It then triggers an exit n° 4 "Inequality constraints incompatible"</p> <h4 dir="auto">Scipy/Numpy/Python version information:</h4> <p dir="auto">1.5.1 1.16.5 sys.version_info(major=3, minor=7, micro=4, releaselevel='final', serial=0)</p> <p dir="auto">my script does not raise error with following setup</p> <p dir="auto">1.3.1 1.16.5 sys.version_info(major=3, minor=7, micro=4, releaselevel='final', serial=0)</p>
1
<p dir="auto">go version devel +7be32d0 Wed Mar 4 18:24:53 2015 +0000 linux/amd64</p> <p dir="auto">The following program crashes compiler with "internal compiler error: out of fixed registers" on amd64 and arm but not on 386.</p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package main func main() { type X struct { f int } var x X var xx []X var s0 []int var s1 []func() var s2 [][][]int var s3 [][]int var s4 [][]int16 s1[xx[int(s4[0][s0[s3[s0[s2[s3[s0[s0[s0[x.f]]-1]+1][0]-1][0][0]]-1][0]]+1])].f-1]() }"><pre class="notranslate"><span class="pl-k">package</span> main <span class="pl-k">func</span> <span class="pl-en">main</span>() { <span class="pl-k">type</span> <span class="pl-smi">X</span> <span class="pl-k">struct</span> { <span class="pl-c1">f</span> <span class="pl-smi">int</span> } <span class="pl-k">var</span> <span class="pl-s1">x</span> <span class="pl-smi">X</span> <span class="pl-k">var</span> <span class="pl-s1">xx</span> []<span class="pl-smi">X</span> <span class="pl-k">var</span> <span class="pl-s1">s0</span> []<span class="pl-smi">int</span> <span class="pl-k">var</span> <span class="pl-s1">s1</span> []<span class="pl-k">func</span>() <span class="pl-k">var</span> <span class="pl-s1">s2</span> [][][]<span class="pl-smi">int</span> <span class="pl-k">var</span> <span class="pl-s1">s3</span> [][]<span class="pl-smi">int</span> <span class="pl-k">var</span> <span class="pl-s1">s4</span> [][]<span class="pl-smi">int16</span> <span class="pl-s1">s1</span>[<span class="pl-s1">xx</span>[<span class="pl-en">int</span>(<span class="pl-s1">s4</span>[<span class="pl-c1">0</span>][<span class="pl-s1">s0</span>[<span class="pl-s1">s3</span>[<span class="pl-s1">s0</span>[<span class="pl-s1">s2</span>[<span class="pl-s1">s3</span>[<span class="pl-s1">s0</span>[<span class="pl-s1">s0</span>[<span class="pl-s1">s0</span>[<span class="pl-s1">x</span>.<span class="pl-c1">f</span>]]<span class="pl-c1">-</span><span class="pl-c1">1</span>]<span class="pl-c1">+</span><span class="pl-c1">1</span>][<span class="pl-c1">0</span>]<span class="pl-c1">-</span><span class="pl-c1">1</span>][<span class="pl-c1">0</span>][<span class="pl-c1">0</span>]]<span class="pl-c1">-</span><span class="pl-c1">1</span>][<span class="pl-c1">0</span>]]<span class="pl-c1">+</span><span class="pl-c1">1</span>])].<span class="pl-c1">f</span><span class="pl-c1">-</span><span class="pl-c1">1</span>]() }</pre></div>
<pre class="notranslate">1. What is a short input program that triggers the error? <a href="http://play.golang.org/p/m59dvc6cXo" rel="nofollow">http://play.golang.org/p/m59dvc6cXo</a> Also a reduced example: package main type T struct { F int } func f() { var ( A = [][1]int{} B = []int{3: 1, 4: 1} X [2]byte Y [2]int Z []float64 n int S []T Funcs = [0]func() uintptr{} ) var Var813 = Funcs[int(B[Y[S[A[X[int(Z[n])]-1][n]+1].F+1]])]() _ = Var813 } 2. What is the full compiler output? 0 0 1 0 2 0 3 40cee6 4 0 5 40a25c 6 0 7 0 8 40a25c 9 412470 10 40a25c 11 40a25c 12 40a25c 13 40999d 14 40ab97 15 40a2f5 bug1.go:20: internal compiler error: out of fixed registers 3. What version of the compiler are you using? (Run it with the -V flag.) go version devel +0a0e0c40901d Tue Jul 08 14:47:52 2014 -0400 linux/amd64</pre>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=baerrach" rel="nofollow">Baerrach bonDierne</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3039?redirect=false" rel="nofollow">SPR-3039</a></strong> and commented</p> <p dir="auto">Release spring-core-1.2.7-sources.jar seems to be the last version that bundled source jars when deployed to ibiblio.</p> <p dir="auto">Is it possible to get source builds deployed as well?</p> <p dir="auto">If you need help with this let me know.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.2</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398071837" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/7392" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/7392/hovercard" href="https://github.com/spring-projects/spring-framework/issues/7392">#7392</a> Create and upload Maven Source and Javadoc Bundles for Spring 2.0 (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=aleksabl" rel="nofollow">Aleksander Blomskøld</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1484?redirect=false" rel="nofollow">SPR-1484</a></strong> and commented</p> <p dir="auto">Maven 2 POMs with dependencies is missing for Spring. It's a lot of extra job for maven 2 users to find out which dependencies Spring needs, and to have to include them manually.</p> <hr> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/12005/buildsources.sh" rel="nofollow">buildsources.sh</a> (<em>590 bytes</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/11714/spring-maven.tgz" rel="nofollow">spring-maven.tgz</a> (<em>10.81 kB</em>)</li> <li><a href="https://jira.spring.io/secure/attachment/11912/spring-poms-1.2.8.zip" rel="nofollow">spring-poms-1.2.8.zip</a> (<em>22.40 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398061811" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6209" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6209/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6209">#6209</a> maven pom hosed on repo1.maven.org (<em><strong>"is duplicated by"</strong></em>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398064554" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6533" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6533/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6533">#6533</a> Missing m2 POMs at ibiblio.net (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">121 votes, 60 watchers</p>
1
<ul dir="auto"> <li>Your Windows build number: (Type <code class="notranslate">ver</code> at a Windows Command Prompt)</li> </ul> <p dir="auto">Microsoft Windows [Version 10.0.17738.1000]</p> <ul dir="auto"> <li>What you're doing and what's happening: (Copy &amp; paste specific commands and their output, or include screen shots)</li> </ul> <p dir="auto">The bottom lines of my screen get foozled, typically after a context switch in which they are redrawn. Here's a typical example in which the tmux status line somehow got duplicated, and an additional blank line was added. This is in full screen mode, no resizing has occurred, and nothing was being written to the screen - the problem just popped up after switching from another app back to the console:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/6b33cac6ec7b1ab0b2e5fd4028eda4de3fca83fda74cfcdf09c7182166f6516e/68747470733a2f2f692e696d6775722e636f6d2f626459646634422e706e67"><img src="https://camo.githubusercontent.com/6b33cac6ec7b1ab0b2e5fd4028eda4de3fca83fda74cfcdf09c7182166f6516e/68747470733a2f2f692e696d6775722e636f6d2f626459646634422e706e67" alt="messed up" data-canonical-src="https://i.imgur.com/bdYdf4B.png" style="max-width: 100%;"></a></p> <p dir="auto">This is in a multi-monitor setup, but I've seen exactly the same problem on a single-monitor setup.</p> <p dir="auto">When I look at the screen, sometimes I see a cursor down at the bottom - seems like it is in a funny position and just ready to cause trouble:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/9ba3759cb8d51f7f3142e17e7942900a6b55a9c9d08d8e164f1fea62b962475e/68747470733a2f2f692e696d6775722e636f6d2f527277636c37752e706e67"><img src="https://camo.githubusercontent.com/9ba3759cb8d51f7f3142e17e7942900a6b55a9c9d08d8e164f1fea62b962475e/68747470733a2f2f692e696d6775722e636f6d2f527277636c37752e706e67" alt="a" data-canonical-src="https://i.imgur.com/Rrwcl7u.png" style="max-width: 100%;"></a></p> <ul dir="auto"> <li>What's wrong / what should be happening instead:</li> </ul> <p dir="auto">Bottom line should not be corrupted!</p> <p dir="auto">I've seen a few other console corruption issues listed here, but none of them seem to match up exactly with this.</p> <p dir="auto">Note that I don't have exact steps to reproduce this, but it happens constantly. If needed we can probably create a recipe to reproduce it.</p> <p dir="auto">-Mark</p>
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">Add the ability to save the scroll buffer to a file so it can be easily searched and large regions can be copied and pasted.</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">You have the buffer... adding a context menu to the tab to save the history shouldn't be to hard.</p>
0
<h3 dir="auto">Describe the use case</h3> <p dir="auto">The current relationship dynamic lazy loader returns a query object.</p> <p dir="auto">This new lazy loader would instead present a 2.0 interface, so it would offer the methods <code class="notranslate">select()</code>, <code class="notranslate">insert()</code>, etc</p> <p dir="auto">Regarding the name, mike suggested <code class="notranslate">statement_only</code>, but that's still wip</p> <h3 dir="auto">Databases / Backends / Drivers targeted</h3> <p dir="auto">All</p> <h3 dir="auto">Example Use</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="loaded = session.scalars(User.address.select()).all()"><pre class="notranslate"><span class="pl-s1">loaded</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">scalars</span>(<span class="pl-v">User</span>.<span class="pl-s1">address</span>.<span class="pl-en">select</span>()).<span class="pl-en">all</span>()</pre></div> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
<p dir="auto"><strong>Migrated issue, originally created by Andrey Zholos (<a href="https://github.com/zholos">@zholos</a>)</strong></p> <p dir="auto">When updating a table with a specified schema name, some parts of the generated statement refer to the table with an alias and some parts don't.</p> <p dir="auto">A subquery uses an alias that was not introduced (it could be introduced in an mssql "from" clause):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="UPDATE [schema].sometable SET val= (SELECT [#other].newval FROM [#other] WHERE sometable_1.sym = [#other].sym)"><pre class="notranslate"><code class="notranslate">UPDATE [schema].sometable SET val= (SELECT [#other].newval FROM [#other] WHERE sometable_1.sym = [#other].sym) </code></pre></div> <p dir="auto">An alias is introduced but the "where" clause doesn't use it:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="UPDATE [schema].sometable SET val=[#other].newval FROM [schema].sometable AS sometable_1, [#other] WHERE [schema].sometable.sym = [#other].sym"><pre class="notranslate"><code class="notranslate">UPDATE [schema].sometable SET val=[#other].newval FROM [schema].sometable AS sometable_1, [#other] WHERE [schema].sometable.sym = [#other].sym </code></pre></div> <p dir="auto">Both of these statements fail. Complete program attached.</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/3424/update.py">update.py</a> | <a href="../wiki/imported_issue_attachments/3424/update_self.py">update_self.py</a></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/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">When I use auto layout the grid items must not go outside of the grid.</p> <p dir="auto">It is expected that the container outside the grid defines max width possible. When Grid items have <code class="notranslate">xs</code> property with no value, all columns align automatically.</p> <p dir="auto">(This is what I get from the demo docs).</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">I created an example here -<br> <a href="https://codesandbox.io/s/1ow4q5557l" rel="nofollow">https://codesandbox.io/s/1ow4q5557l</a></p> <p dir="auto">The text is going out of bounds because the second Grid Item (column) is bigger that what it should be.</p> <h2 dir="auto">Context</h2> <p dir="auto">Unable to align the items correctly.</p> <p dir="auto">Note what I have pasted in codesandbox is simplified code. In my actual grid item there are many more typography elements so I cannot fallback to using the "List" component.</p> <p dir="auto">If I am using this incorrectly then please let me know.</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>1.0.0-beta.29</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td>Chrome 63.0.3239.132</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<p dir="auto">Because of the location of conditional in styling, the implementation of <code class="notranslate">overlayStyle</code> on <code class="notranslate">RaisedButton</code> does not allow a customizable implementation of <code class="notranslate">backgroundColor</code></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">As far as I can tell, the implementation of <code class="notranslate">overlayStyle</code> in <code class="notranslate">RaisedButton</code> is intended to allow customization of the visual style of a button on hover and focus, such that if I'd like my <code class="notranslate">RaisedButton</code> to have an overlay that makes them 15% darker, I can implement that by <code class="notranslate">overlayStyle={{backgroundColor: 'rgba(0,0,0,0.15)'}}</code>.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Currently, using the prop <code class="notranslate">overlayStyle={{backgroundColor: 'rgba(0,0,0,0.15)'}}</code> on a <code class="notranslate">RaisedButton</code> means that the button is always 15% darker than the theme color, rather than being 15% darker only on hover and keyboardFocus. This prevents custom focus and hover styling on the raised button, and eliminates <em>any</em> focus or hover styling if it's used.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">See the effect in this <a href="https://codesandbox.io/embed/6zxl52mw2n" rel="nofollow">sandbox</a></p> <h2 dir="auto">Context</h2> <p dir="auto">This is an accessibility issue for raised buttons, specifically for users who rely on tabbing, especially because the <code class="notranslate">TouchRipple</code> effect on focus further lightens the button background, limiting the contrast/legibility of the text.</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>0.19.4</td> </tr> <tr> <td>React</td> <td>16.1.1</td> </tr> </tbody> </table>
0
<p dir="auto">npm ERR! cb() never called!</p> <p dir="auto">npm ERR! A complete log of this run can be found in:<br> npm ERR! C:\Users\abc\AppData\Roaming\npm-cache_logs\2020-11-03T13_58_52_163Z-de</p>
<p dir="auto">npm ERR! cb() never called!</p> <p dir="auto">npm ERR! This is an error with npm itself. Please report this error at:<br> npm ERR! <a href="https://npm.community" rel="nofollow">https://npm.community</a></p> <p dir="auto">npm ERR! A complete log of this run can be found in:<br> npm ERR! C:\Users\abc\AppData\Roaming\npm-cache_logs\2020-11-03T13_58_52_163Z-debug.log</p> <p dir="auto">please help me to get fix this</p>
1
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.6.1</p> <h3 dir="auto">What happened</h3> <p dir="auto">When using a <code class="notranslate">@task.group</code> for the depth first expansion functionality, a <code class="notranslate">@task.short_circuit</code> in that group throws a ForeignKeyViolation</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1905, in _execute_context self.dialect.do_execute( File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/default.py&quot;, line 736, in do_execute cursor.execute(statement, parameters) psycopg2.errors.ForeignKeyViolation: insert or update on table &quot;xcom&quot; violates foreign key constraint &quot;xcom_task_instance_fkey&quot; DETAIL: Key (dag_id, task_id, run_id, map_index)=(test_short_circuit, expansion_group.short_circuit, manual__2023-05-27T22:49:24.543812+00:00, -1) is not present in table &quot;task_instance&quot;. The above exception was the direct cause of the following exception: Traceback (most recent call last): File &quot;/home/airflow/.local/lib/python3.10/site-packages/airflow/decorators/base.py&quot;, line 220, in execute return_value = super().execute(context) File &quot;/home/airflow/.local/lib/python3.10/site-packages/airflow/operators/python.py&quot;, line 268, in execute self.skip(dag_run, execution_date, downstream_tasks) File &quot;/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/session.py&quot;, line 76, in wrapper return func(*args, session=session, **kwargs) File &quot;/home/airflow/.local/lib/python3.10/site-packages/airflow/models/skipmixin.py&quot;, line 139, in skip XCom.set( File &quot;/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/session.py&quot;, line 73, in wrapper return func(*args, **kwargs) File &quot;/home/airflow/.local/lib/python3.10/site-packages/airflow/models/xcom.py&quot;, line 264, in set session.flush() File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/orm/session.py&quot;, line 3449, in flush self._flush(objects) File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/orm/session.py&quot;, line 3588, in _flush with util.safe_reraise(): File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py&quot;, line 70, in __exit__ compat.raise_( File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/util/compat.py&quot;, line 211, in raise_ raise exception File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/orm/session.py&quot;, line 3549, in _flush flush_context.execute() File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/orm/unitofwork.py&quot;, line 456, in execute rec.execute(self) File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/orm/unitofwork.py&quot;, line 630, in execute util.preloaded.orm_persistence.save_obj( File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/orm/persistence.py&quot;, line 245, in save_obj _emit_insert_statements( File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/orm/persistence.py&quot;, line 1097, in _emit_insert_statements c = connection._execute_20( File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1710, in _execute_20 return meth(self, args_10style, kwargs_10style, execution_options) File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/sql/elements.py&quot;, line 334, in _execute_on_connection return connection._execute_clauseelement( File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1577, in _execute_clauseelement ret = self._execute_context( File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1948, in _execute_context self._handle_dbapi_exception( File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 2129, in _handle_dbapi_exception util.raise_( File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/util/compat.py&quot;, line 211, in raise_ raise exception File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py&quot;, line 1905, in _execute_context self.dialect.do_execute( File &quot;/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/default.py&quot;, line 736, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) insert or update on table &quot;xcom&quot; violates foreign key constraint &quot;xcom_task_instance_fkey&quot; DETAIL: Key (dag_id, task_id, run_id, map_index)=(test_short_circuit, expansion_group.short_circuit, manual__2023-05-27T22:49:24.543812+00:00, -1) is not present in table &quot;task_instance&quot;. [SQL: INSERT INTO xcom (dag_run_id, task_id, map_index, key, dag_id, run_id, value, timestamp) VALUES (%(dag_run_id)s, %(task_id)s, %(map_index)s, %(key)s, %(dag_id)s, %(run_id)s, %(value)s, %(timestamp)s)] [parameters: {'dag_run_id': 93, 'task_id': 'expansion_group.short_circuit', 'map_index': -1, 'key': 'skipmixin_key', 'dag_id': 'test_short_circuit', 'run_id': 'manual__2023-05-27T22:49:24.543812+00:00', 'value': &lt;psycopg2.extensions.Binary object at 0xffff7ae48b10&gt;, 'timestamp': datetime.datetime(2023, 5, 27, 22, 49, 57, 760293, tzinfo=Timezone('UTC'))}] (Background on this error at: https://sqlalche.me/e/14/gkpj) [2023-05-27, 22:49:57 UTC] {taskinstance.py:1345} INFO - Marking task as FAILED. dag_id=test_short_circuit, task_id=expansion_group.short_circuit, map_index=0, execution_date=20230527T224924, start_date=20230527T224955, end_date=20230527T224957 [2023-05-27, 22:49:57 UTC] {standard_task_runner.py:104} ERROR - Failed to execute job 1765 for task expansion_group.short_circuit ((psycopg2.errors.ForeignKeyViolation) insert or update on table &quot;xcom&quot; violates foreign key constraint &quot;xcom_task_instance_fkey&quot; DETAIL: Key (dag_id, task_id, run_id, map_index)=(test_short_circuit, expansion_group.short_circuit, manual__2023-05-27T22:49:24.543812+00:00, -1) is not present in table &quot;task_instance&quot;. [SQL: INSERT INTO xcom (dag_run_id, task_id, map_index, key, dag_id, run_id, value, timestamp) VALUES (%(dag_run_id)s, %(task_id)s, %(map_index)s, %(key)s, %(dag_id)s, %(run_id)s, %(value)s, %(timestamp)s)] [parameters: {'dag_run_id': 93, 'task_id': 'expansion_group.short_circuit', 'map_index': -1, 'key': 'skipmixin_key', 'dag_id': 'test_short_circuit', 'run_id': 'manual__2023-05-27T22:49:24.543812+00:00', 'value': &lt;psycopg2.extensions.Binary object at 0xffff7ae48b10&gt;, 'timestamp': datetime.datetime(2023, 5, 27, 22, 49, 57, 760293, tzinfo=Timezone('UTC'))}] (Background on this error at: https://sqlalche.me/e/14/gkpj); 104)"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1905, in _execute_context self.dialect.do_execute( File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 736, in do_execute cursor.execute(statement, parameters) psycopg2.errors.ForeignKeyViolation: insert or update on table "xcom" violates foreign key constraint "xcom_task_instance_fkey" DETAIL: Key (dag_id, task_id, run_id, map_index)=(test_short_circuit, expansion_group.short_circuit, manual__2023-05-27T22:49:24.543812+00:00, -1) is not present in table "task_instance". The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/airflow/.local/lib/python3.10/site-packages/airflow/decorators/base.py", line 220, in execute return_value = super().execute(context) File "/home/airflow/.local/lib/python3.10/site-packages/airflow/operators/python.py", line 268, in execute self.skip(dag_run, execution_date, downstream_tasks) File "/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/session.py", line 76, in wrapper return func(*args, session=session, **kwargs) File "/home/airflow/.local/lib/python3.10/site-packages/airflow/models/skipmixin.py", line 139, in skip XCom.set( File "/home/airflow/.local/lib/python3.10/site-packages/airflow/utils/session.py", line 73, in wrapper return func(*args, **kwargs) File "/home/airflow/.local/lib/python3.10/site-packages/airflow/models/xcom.py", line 264, in set session.flush() File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 3449, in flush self._flush(objects) File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 3588, in _flush with util.safe_reraise(): File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__ compat.raise_( File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/util/compat.py", line 211, in raise_ raise exception File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/orm/session.py", line 3549, in _flush flush_context.execute() File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/orm/unitofwork.py", line 456, in execute rec.execute(self) File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/orm/unitofwork.py", line 630, in execute util.preloaded.orm_persistence.save_obj( File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/orm/persistence.py", line 245, in save_obj _emit_insert_statements( File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/orm/persistence.py", line 1097, in _emit_insert_statements c = connection._execute_20( File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1710, in _execute_20 return meth(self, args_10style, kwargs_10style, execution_options) File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/sql/elements.py", line 334, in _execute_on_connection return connection._execute_clauseelement( File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1577, in _execute_clauseelement ret = self._execute_context( File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1948, in _execute_context self._handle_dbapi_exception( File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 2129, in _handle_dbapi_exception util.raise_( File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/util/compat.py", line 211, in raise_ raise exception File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/base.py", line 1905, in _execute_context self.dialect.do_execute( File "/home/airflow/.local/lib/python3.10/site-packages/sqlalchemy/engine/default.py", line 736, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) insert or update on table "xcom" violates foreign key constraint "xcom_task_instance_fkey" DETAIL: Key (dag_id, task_id, run_id, map_index)=(test_short_circuit, expansion_group.short_circuit, manual__2023-05-27T22:49:24.543812+00:00, -1) is not present in table "task_instance". [SQL: INSERT INTO xcom (dag_run_id, task_id, map_index, key, dag_id, run_id, value, timestamp) VALUES (%(dag_run_id)s, %(task_id)s, %(map_index)s, %(key)s, %(dag_id)s, %(run_id)s, %(value)s, %(timestamp)s)] [parameters: {'dag_run_id': 93, 'task_id': 'expansion_group.short_circuit', 'map_index': -1, 'key': 'skipmixin_key', 'dag_id': 'test_short_circuit', 'run_id': 'manual__2023-05-27T22:49:24.543812+00:00', 'value': &lt;psycopg2.extensions.Binary object at 0xffff7ae48b10&gt;, 'timestamp': datetime.datetime(2023, 5, 27, 22, 49, 57, 760293, tzinfo=Timezone('UTC'))}] (Background on this error at: https://sqlalche.me/e/14/gkpj) [2023-05-27, 22:49:57 UTC] {taskinstance.py:1345} INFO - Marking task as FAILED. dag_id=test_short_circuit, task_id=expansion_group.short_circuit, map_index=0, execution_date=20230527T224924, start_date=20230527T224955, end_date=20230527T224957 [2023-05-27, 22:49:57 UTC] {standard_task_runner.py:104} ERROR - Failed to execute job 1765 for task expansion_group.short_circuit ((psycopg2.errors.ForeignKeyViolation) insert or update on table "xcom" violates foreign key constraint "xcom_task_instance_fkey" DETAIL: Key (dag_id, task_id, run_id, map_index)=(test_short_circuit, expansion_group.short_circuit, manual__2023-05-27T22:49:24.543812+00:00, -1) is not present in table "task_instance". [SQL: INSERT INTO xcom (dag_run_id, task_id, map_index, key, dag_id, run_id, value, timestamp) VALUES (%(dag_run_id)s, %(task_id)s, %(map_index)s, %(key)s, %(dag_id)s, %(run_id)s, %(value)s, %(timestamp)s)] [parameters: {'dag_run_id': 93, 'task_id': 'expansion_group.short_circuit', 'map_index': -1, 'key': 'skipmixin_key', 'dag_id': 'test_short_circuit', 'run_id': 'manual__2023-05-27T22:49:24.543812+00:00', 'value': &lt;psycopg2.extensions.Binary object at 0xffff7ae48b10&gt;, 'timestamp': datetime.datetime(2023, 5, 27, 22, 49, 57, 760293, tzinfo=Timezone('UTC'))}] (Background on this error at: https://sqlalche.me/e/14/gkpj); 104) </code></pre></div> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">The short circuit to have short circuited (or not) as appropriate</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">This DAG causes the behavior:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@dag( dag_id=&quot;test_short_circuit&quot;, schedule=None, start_date=pendulum.datetime(2021, 1, 1, tz=&quot;UTC&quot;), catchup=False, ) def test_short_circuit() -&gt; None: @task def add_one(datum: int) -&gt; int: return datum + 1 @task.short_circuit def short_circuit(datum: int) -&gt; bool: return datum &gt; 3 @task def subtract_one(datum: int) -&gt; int: return datum - 1 @task_group def expansion_group(datum: int) -&gt; None: plus_one = add_one(datum) foo = short_circuit(plus_one) bar = subtract_one(plus_one) foo &gt;&gt; bar stuff = range(1, 10) expansion_group.expand(datum=stuff) test_short_circuit()"><pre class="notranslate"><code class="notranslate">@dag( dag_id="test_short_circuit", schedule=None, start_date=pendulum.datetime(2021, 1, 1, tz="UTC"), catchup=False, ) def test_short_circuit() -&gt; None: @task def add_one(datum: int) -&gt; int: return datum + 1 @task.short_circuit def short_circuit(datum: int) -&gt; bool: return datum &gt; 3 @task def subtract_one(datum: int) -&gt; int: return datum - 1 @task_group def expansion_group(datum: int) -&gt; None: plus_one = add_one(datum) foo = short_circuit(plus_one) bar = subtract_one(plus_one) foo &gt;&gt; bar stuff = range(1, 10) expansion_group.expand(datum=stuff) test_short_circuit() </code></pre></div> <h3 dir="auto">Operating System</h3> <p dir="auto">MacOS Ventura</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto">apache-airflow-providers-common-sql==1.2.0<br> apache-airflow-providers-ftp==3.1.0<br> apache-airflow-providers-google==8.4.0<br> apache-airflow-providers-http==4.0.0<br> apache-airflow-providers-imap==3.0.0<br> apache-airflow-providers-postgres==5.2.2<br> apache-airflow-providers-sendgrid==3.0.0<br> apache-airflow-providers-slack==6.0.0<br> apache-airflow-providers-sqlite==3.2.1</p> <h3 dir="auto">Deployment</h3> <p dir="auto">Other 3rd-party Helm chart</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Anything else</h3> <p dir="auto">It's every time. If I convert to an old fashioned <code class="notranslate">.expand()</code> (i.e. serial <code class="notranslate">.expand()</code> calls), it does not happen</p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
<h3 dir="auto">Apache Airflow version</h3> <p dir="auto">2.6.1</p> <h3 dir="auto">What happened</h3> <p dir="auto">I have a short circuit task which is in a task group that is expanded. The task work correctly when it returns true but the task fails when it returns false with the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) insert or update on table &quot;xcom&quot; violates foreign key constraint &quot;xcom_task_instance_fkey&quot; DETAIL: Key (dag_id, task_id, run_id, map_index)=(pipeline_output_to_s3, transfer_output_file.already_in_manifest_short_circuit, manual__2023-05-24T20:21:35.420606+00:00, -1) is not present in table &quot;task_instance&quot;."><pre class="notranslate"><code class="notranslate">sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) insert or update on table "xcom" violates foreign key constraint "xcom_task_instance_fkey" DETAIL: Key (dag_id, task_id, run_id, map_index)=(pipeline_output_to_s3, transfer_output_file.already_in_manifest_short_circuit, manual__2023-05-24T20:21:35.420606+00:00, -1) is not present in table "task_instance". </code></pre></div> <p dir="auto">It looks like it sets the map-index to -1 when false is returned which is causing the issue.<br> If one task fails this way in the the task group, all other mapped tasks fail as well, even if the short circuit returns true.<br> When this error occurs, all subsequent DAG runs will be stuck indefinitely in the running state unless the DAG is deleted.</p> <h3 dir="auto">What you think should happen instead</h3> <p dir="auto">Returning false from the short circuit operator should skip downstream tasks without affecting other task groups / map indexes or subsequent DAG runs.</p> <h3 dir="auto">How to reproduce</h3> <p dir="auto">include a short circuit operator in a mapped task group and have it return false.</p> <h3 dir="auto">Operating System</h3> <p dir="auto">Red Hat Enterprise Linux 7</p> <h3 dir="auto">Versions of Apache Airflow Providers</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Deployment</h3> <p dir="auto">Official Apache Airflow Helm Chart</p> <h3 dir="auto">Deployment details</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Anything else</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Are you willing to submit PR?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li> </ul> <h3 dir="auto">Code of Conduct</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li> </ul>
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: 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></li> </ol> <p dir="auto">Use a web container, for example tomcat, and use a context path, for example set the container context path "dubbo_samples_webservice_provider_war"</p> <ol start="2" dir="auto"> <li></li> </ol> <p dir="auto">config web.xml</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;servlet&gt; &lt;servlet-name&gt;dubbo&lt;/servlet-name&gt; &lt;servlet-class&gt;org.apache.dubbo.remoting.http.servlet.DispatcherServlet&lt;/servlet-class&gt; &lt;load-on-startup&gt;1&lt;/load-on-startup&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;dubbo&lt;/servlet-name&gt; &lt;url-pattern&gt;/services/*&lt;/url-pattern&gt; &lt;/servlet-mapping&gt;"><pre class="notranslate"> &lt;<span class="pl-ent">servlet</span>&gt; &lt;<span class="pl-ent">servlet-name</span>&gt;dubbo&lt;/<span class="pl-ent">servlet-name</span>&gt; &lt;<span class="pl-ent">servlet-class</span>&gt;org.apache.dubbo.remoting.http.servlet.DispatcherServlet&lt;/<span class="pl-ent">servlet-class</span>&gt; &lt;<span class="pl-ent">load-on-startup</span>&gt;1&lt;/<span class="pl-ent">load-on-startup</span>&gt; &lt;/<span class="pl-ent">servlet</span>&gt; &lt;<span class="pl-ent">servlet-mapping</span>&gt; &lt;<span class="pl-ent">servlet-name</span>&gt;dubbo&lt;/<span class="pl-ent">servlet-name</span>&gt; &lt;<span class="pl-ent">url-pattern</span>&gt;/services/*&lt;/<span class="pl-ent">url-pattern</span>&gt; &lt;/<span class="pl-ent">servlet-mapping</span>&gt;</pre></div> <ol start="3" dir="auto"> <li></li> </ol> <p dir="auto">config provider</p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;dubbo:application name=&quot;dubbo-webservice-app&quot; /&gt; &lt;dubbo:registry address=&quot;zookeeper://127.0.0.1:2181&quot; /&gt; &lt;dubbo:protocol name=&quot;webservice&quot; port=&quot;8083&quot; server=&quot;servlet&quot; contextpath=&quot;dubbo_samples_webservice_provider_war/services&quot;/&gt; &lt;dubbo:service interface=&quot;org.apache.dubbo.samples.webservice.DemoService&quot; ref=&quot;demoService&quot; /&gt; &lt;bean id=&quot;demoService&quot; class=&quot;org.apache.dubbo.samples.webservice.provider.impl.DemoServiceImpl&quot; /&gt;"><pre class="notranslate"> &lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">application</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>dubbo-webservice-app<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">registry</span> <span class="pl-e">address</span>=<span class="pl-s"><span class="pl-pds">"</span>zookeeper://127.0.0.1:2181<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">protocol</span> <span class="pl-e">name</span>=<span class="pl-s"><span class="pl-pds">"</span>webservice<span class="pl-pds">"</span></span> <span class="pl-e">port</span>=<span class="pl-s"><span class="pl-pds">"</span>8083<span class="pl-pds">"</span></span> <span class="pl-e">server</span>=<span class="pl-s"><span class="pl-pds">"</span>servlet<span class="pl-pds">"</span></span> <span class="pl-e">contextpath</span>=<span class="pl-s"><span class="pl-pds">"</span>dubbo_samples_webservice_provider_war/services<span class="pl-pds">"</span></span>/&gt; &lt;<span class="pl-ent">dubbo</span><span class="pl-ent">:</span><span class="pl-ent">service</span> <span class="pl-e">interface</span>=<span class="pl-s"><span class="pl-pds">"</span>org.apache.dubbo.samples.webservice.DemoService<span class="pl-pds">"</span></span> <span class="pl-e">ref</span>=<span class="pl-s"><span class="pl-pds">"</span>demoService<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">bean</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">class</span>=<span class="pl-s"><span class="pl-pds">"</span>org.apache.dubbo.samples.webservice.provider.impl.DemoServiceImpl<span class="pl-pds">"</span></span> /&gt;</pre></div> <ol start="4" dir="auto"> <li></li> </ol> <p dir="auto">start provider<br> start consumer</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">The consumer can invoke provider successfully.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">The invoke fails</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="org.apache.cxf.interceptor.Fault: Could not send Message. at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:67) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:441) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:356) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:314) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.frontend.ClientProxy.invoke(ClientProxy.java:81) at com.sun.proxy.$Proxy32.hello(Unknown Source) at org.apache.dubbo.common.bytecode.Wrapper0.invokeMethod(Wrapper0.java) at org.apache.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:47) at org.apache.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:84) at org.apache.dubbo.rpc.protocol.AbstractProxyProtocol$2.doInvoke(AbstractProxyProtocol.java:113) at org.apache.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:163) at org.apache.dubbo.rpc.protocol.AsyncToSyncInvoker.invoke(AsyncToSyncInvoker.java:52) at org.apache.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:78) at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:89) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:81) at org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:51) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:81) at org.apache.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:69) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:81) at org.apache.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56) at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:82) at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:259) at org.apache.dubbo.rpc.cluster.interceptor.ClusterInterceptor.intercept(ClusterInterceptor.java:47) at org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$InterceptorInvokerNode.invoke(AbstractCluster.java:92) at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:82) at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:74) at org.apache.dubbo.common.bytecode.proxy0.hello(proxy0.java) at org.apache.dubbo.samples.webservice.consumer.Application.main(Application.java:27) Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '404: null' when communicating with http://127.0.0.1:8083/dubbo_samples_webservice_provider_war/services/org.apache.dubbo.samples.webservice.DemoService at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1618) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1625) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1570) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:671) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63) ... 30 more"><pre class="notranslate"><code class="notranslate">org.apache.cxf.interceptor.Fault: Could not send Message. at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:67) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:530) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:441) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:356) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:314) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.frontend.ClientProxy.invoke(ClientProxy.java:81) at com.sun.proxy.$Proxy32.hello(Unknown Source) at org.apache.dubbo.common.bytecode.Wrapper0.invokeMethod(Wrapper0.java) at org.apache.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:47) at org.apache.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:84) at org.apache.dubbo.rpc.protocol.AbstractProxyProtocol$2.doInvoke(AbstractProxyProtocol.java:113) at org.apache.dubbo.rpc.protocol.AbstractInvoker.invoke(AbstractInvoker.java:163) at org.apache.dubbo.rpc.protocol.AsyncToSyncInvoker.invoke(AsyncToSyncInvoker.java:52) at org.apache.dubbo.rpc.listener.ListenerInvokerWrapper.invoke(ListenerInvokerWrapper.java:78) at org.apache.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:89) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:81) at org.apache.dubbo.rpc.protocol.dubbo.filter.FutureFilter.invoke(FutureFilter.java:51) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:81) at org.apache.dubbo.rpc.filter.ConsumerContextFilter.invoke(ConsumerContextFilter.java:69) at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:81) at org.apache.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:56) at org.apache.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:82) at org.apache.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:259) at org.apache.dubbo.rpc.cluster.interceptor.ClusterInterceptor.intercept(ClusterInterceptor.java:47) at org.apache.dubbo.rpc.cluster.support.wrapper.AbstractCluster$InterceptorInvokerNode.invoke(AbstractCluster.java:92) at org.apache.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:82) at org.apache.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:74) at org.apache.dubbo.common.bytecode.proxy0.hello(proxy0.java) at org.apache.dubbo.samples.webservice.consumer.Application.main(Application.java:27) Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '404: null' when communicating with http://127.0.0.1:8083/dubbo_samples_webservice_provider_war/services/org.apache.dubbo.samples.webservice.DemoService at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1618) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1625) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1570) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1371) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:671) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63) ... 30 more </code></pre></div> <p dir="auto">In fact, the wsdl url is<br> <a href="http://localhost:8083/dubbo_samples_webservice_provider_war/services/dubbo_samples_webservice_provider_war/services/org.apache.dubbo.samples.webservice.DemoService?wsdl" rel="nofollow">http://localhost:8083/dubbo_samples_webservice_provider_war/services/dubbo_samples_webservice_provider_war/services/org.apache.dubbo.samples.webservice.DemoService?wsdl</a></p> <p dir="auto"><strong>It's because the consumer cannot get the provider container context path and the servlet pattern defined in the provider.</strong></p>
<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.5</li> <li>Operating System version: windows10</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>application.properties</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dubbo.protocols.dubbo.port=-1 dubbo.protocols.dubbo.name=dubbo dubbo.protocols.dubbo.default=true dubbo.protocols.rest.port=-1 dubbo.protocols.rest.name=rest dubbo.protocols.rest.contextpath=upmRestServices dubbo.protocols.rest.default=false"><pre class="notranslate"><code class="notranslate">dubbo.protocols.dubbo.port=-1 dubbo.protocols.dubbo.name=dubbo dubbo.protocols.dubbo.default=true dubbo.protocols.rest.port=-1 dubbo.protocols.rest.name=rest dubbo.protocols.rest.contextpath=upmRestServices dubbo.protocols.rest.default=false </code></pre></div> <ol start="2" dir="auto"> <li>interfaces</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public interface UserBusinessService extends Serializable { // methods }"><pre class="notranslate"><code class="notranslate">public interface UserBusinessService extends Serializable { // methods } </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Path(&quot;noGeneratorRestService&quot;) @Consumes({&quot;application/json&quot;, &quot;text/xml&quot;}) @Produces({&quot;application/json; charset=UTF-8&quot;, &quot;text/xml; charset=UTF-8&quot;}) public interface NOGeneratorRestService { //methods }"><pre class="notranslate"><code class="notranslate">@Path("noGeneratorRestService") @Consumes({"application/json", "text/xml"}) @Produces({"application/json; charset=UTF-8", "text/xml; charset=UTF-8"}) public interface NOGeneratorRestService { //methods } </code></pre></div> <ol start="3" dir="auto"> <li>implements</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Service public class UserBusinessServiceImpl implements UserBusinessService { //methods }"><pre class="notranslate"><code class="notranslate">@Service public class UserBusinessServiceImpl implements UserBusinessService { //methods } </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Service(protocol = &quot;rest&quot;) public class NOGeneratorRestServiceImpl implements NOGeneratorRestService { //methods }"><pre class="notranslate"><code class="notranslate">@Service(protocol = "rest") public class NOGeneratorRestServiceImpl implements NOGeneratorRestService { //methods } </code></pre></div> <ol start="4" dir="auto"> <li>exception result</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.RuntimeException: RESTEASY003130: Class is not a root resource. It, or one of its interfaces must be annotated with @Path: xxx.UserBusinessService implements: java.io.Serializable"><pre class="notranslate"><code class="notranslate">java.lang.RuntimeException: RESTEASY003130: Class is not a root resource. It, or one of its interfaces must be annotated with @Path: xxx.UserBusinessService implements: java.io.Serializable </code></pre></div> <ol start="5" dir="auto"> <li>ConfigManager.isDefaultConfig is not working<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13428489/78758056-1747ae00-79b0-11ea-9f68-b8b282e95b51.png"><img src="https://user-images.githubusercontent.com/13428489/78758056-1747ae00-79b0-11ea-9f68-b8b282e95b51.png" alt="1586330358(1)" style="max-width: 100%;"></a></li> </ol> <p dir="auto">My Application has two protocols, one is the default dubbo procotol, and the other is rest. And I wish the rest working when I declearing at the <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/service/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/service">@service</a>,otherwise use the dubbo procotol. But now the dubbo.protocols.rest.default=false is not working.<br> 应用里面有两个协议,一个是默认的dubbo协议,一个是rest协议,我希望就是注解里面有显示声明rest就用rest协议,不然就默认用dubbo协议,现在的问题就是default属性没有生效,导致不声明的接口都会同时暴露两种协议,请问是哪里配置不对吗?</p>
0
<p dir="auto">Plotting a numpy matrix in matplotlib 1.3.1 breaks, with the exception:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; plot(matrix([[1,2,3]])) File &quot;/usr/local/lib/python2.7/dist-packages/matplotlib/units.py&quot;, line 148, in get_converter converter = self.get_converter(xravel[0]) File &quot;/usr/local/lib/python2.7/dist-packages/numpy/matrixlib/defmatrix.py&quot;, line 316, in __getitem__ out = N.ndarray.__getitem__(self, index) RuntimeError: maximum recursion depth exceeded"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; plot(matrix([[1,2,3]])) File "/usr/local/lib/python2.7/dist-packages/matplotlib/units.py", line 148, in get_converter converter = self.get_converter(xravel[0]) File "/usr/local/lib/python2.7/dist-packages/numpy/matrixlib/defmatrix.py", line 316, in __getitem__ out = N.ndarray.__getitem__(self, index) RuntimeError: maximum recursion depth exceeded </code></pre></div> <p dir="auto">On matplotlib 1.1.1 plots three lines, as expected. Reproduced on:</p> <ul dir="auto"> <li>python 2.7.3, linux, numpy 1.8.0</li> <li>python 2.7.5, windows, numpy 1.7.1</li> </ul>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">A figure created with <code class="notranslate">plot_directive</code> and preceeding label cannot be referenced with <code class="notranslate">:ref:</code> or <code class="notranslate">:numref:</code>.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-text-restructuredtext notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".. _bar: Testplot -------- .. _foo: .. plot:: import matplotlib.pyplot as plt import numpy as np plt.hist(np.random.randn(1000), 20) reference to plot: :ref:`foo` / :numref:`foo` reference to section: :ref:`bar` / :numref:`bar`"><pre class="notranslate">.. _<span class="pl-en">bar</span>: Testplot <span class="pl-mh">--------</span> .. _<span class="pl-en">foo</span>: .. <span class="pl-c1">plot</span>:: import matplotlib.pyplot as plt import numpy as np plt.hist(np.random.randn(1000), 20) reference to plot: <span class="pl-k">:ref:</span>`<span class="pl-corl">foo</span>` / <span class="pl-k">:numref:</span>`<span class="pl-corl">foo</span>` reference to section: <span class="pl-k">:ref:</span>`<span class="pl-corl">bar</span>` / <span class="pl-k">:numref:</span>`<span class="pl-corl">bar</span>`</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <p dir="auto">rendered HTML</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3985599/31398922-d75c4e24-adea-11e7-9347-cbec853efb33.png"><img src="https://user-images.githubusercontent.com/3985599/31398922-d75c4e24-adea-11e7-9347-cbec853efb33.png" alt="bildschirmfoto_2017-10-10_18-42-44" style="max-width: 100%;"></a></p> <p dir="auto">LaTeX code</p> <div class="highlight highlight-text-tex-latex notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="\subsection{Testplot} \label{\detokenize{M01/index:testplot}}\label{\detokenize{M01/index:bar}}\phantomsection\label{\detokenize{M01/index:foo}} \begin{figure}[H] \centering \noindent\sphinxincludegraphics{{index-1}.pdf} \end{figure} reference to plot: \DUrole{xref,std,std-ref}{foo} / \sphinxcode{foo} reference to section: {\hyperref[\detokenize{M01/index:bar}]{\sphinxcrossref{\DUrole{std,std-ref}{Testplot}}}} / \hyperref[\detokenize{M01/index:bar}]{Section \ref{\detokenize{M01/index:bar}}}"><pre class="notranslate"><span class="pl-c1">\subsection</span>{<span class="pl-en">Testplot</span>} <span class="pl-k">\label</span>{\<span class="pl-v">detokenize</span>{<span class="pl-v">M01/index:testplot</span>}}<span class="pl-k">\label</span>{\<span class="pl-v">detokenize</span>{<span class="pl-v">M01/index:bar</span>}}<span class="pl-c1">\phantomsection</span><span class="pl-k">\label</span>{\<span class="pl-v">detokenize</span>{<span class="pl-v">M01/index:foo</span>}} <span class="pl-c1">\begin</span>{<span class="pl-smi">figure</span>}[H] <span class="pl-c1">\centering</span> <span class="pl-c1">\noindent\sphinxincludegraphics</span>{{index-1}.pdf} <span class="pl-c1">\end</span>{<span class="pl-smi">figure</span>} reference to plot: <span class="pl-c1">\DUrole</span>{xref,std,std-ref}{foo} / <span class="pl-c1">\sphinxcode</span>{foo} reference to section: {<span class="pl-c1">\hyperref</span>[<span class="pl-c1">\detokenize</span>{M01/index:bar}]{<span class="pl-k">\sphinxcrossref</span>{\<span class="pl-c1">DUrole</span>{<span class="pl-c1">std,std-ref</span>}{Testplot}}}} / <span class="pl-c1">\hyperref</span>[<span class="pl-c1">\detokenize</span>{M01/index:bar}]{Section <span class="pl-k">\ref</span>{\<span class="pl-c1">detokenize</span>{<span class="pl-c1">M01/index:bar</span>}}}</pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">The <code class="notranslate">foo</code> references should be links like the <code class="notranslate">bar</code> references.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Linux 4.10.0-35-generic 39~16.04.1-Ubuntu 16.04.3 LTS SMP x86_64 GNU/Linux</li> <li>Matplotlib version: 2.1.0 via pip</li> <li>Python version: 3.5.2</li> <li>Other libraries: Sphinx (sphinx-build) 1.6.4</li> </ul>
0
<p dir="auto">MacOSX10.9: AtomShell v0.20.4</p> <p dir="auto">code</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="document.body.innerHTML = '&lt;webview src=&quot;https://github.com&quot;&gt;&lt;/webview&gt;' var webview = document.querySelector('webiview'); console.log(webview.getUrl()); // it works. setInterval(function(){ console.log(webview.getUrl()); // this causes crashing at display: none }, 1000); document.body.style.display = 'none';"><pre class="notranslate"><span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">.</span><span class="pl-c1">innerHTML</span> <span class="pl-c1">=</span> <span class="pl-s">'&lt;webview src="https://github.com"&gt;&lt;/webview&gt;'</span> <span class="pl-k">var</span> <span class="pl-s1">webview</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">querySelector</span><span class="pl-kos">(</span><span class="pl-s">'webiview'</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">webview</span><span class="pl-kos">.</span><span class="pl-en">getUrl</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// it works.</span> <span class="pl-en">setInterval</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">webview</span><span class="pl-kos">.</span><span class="pl-en">getUrl</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// this causes crashing at display: none</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">1000</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">.</span><span class="pl-c1">style</span><span class="pl-kos">.</span><span class="pl-c1">display</span> <span class="pl-c1">=</span> <span class="pl-s">'none'</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">OS: Windows 8.1 x64<br> Atom-Shell: 0.19</p> <p dir="auto">Sorry for all the editing and deleting of my previous reports but the issue is morphing and I've narrowed it down. Apparently the webview is garbage collected when you set it's CSS display property to none. If you do this then you cannot use the webview again and if you try to set it's src it will crash Atom-Shell.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;webview crash test&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;webview id=&quot;web&quot; style=&quot;width:100%;height:100%;position:absolute;&quot;&gt;&lt;/webview&gt; &lt;script&gt; window.onload = function() { var web = document.getElementById(&quot;web&quot;); web.src = &quot;http://msn.com&quot;; }; &lt;/script&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span>webview crash test<span class="pl-kos">&lt;/</span><span class="pl-ent">title</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">head</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">webview</span> <span class="pl-c1">id</span>="<span class="pl-s">web</span>" <span class="pl-c1">style</span>="<span class="pl-s">width:100%;height:100%;position:absolute;</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">webview</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-en">onload</span> <span class="pl-c1">=</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-k">var</span> <span class="pl-s1">web</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">"web"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">web</span><span class="pl-kos">.</span><span class="pl-c1">src</span> <span class="pl-c1">=</span> <span class="pl-s">"http://msn.com"</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-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Reproduce the crash:</p> <p dir="auto">In your main.js make sure you have it open the dev tools once it creates a new browser window. Use the dev tools to set the CSS display property for the webview to none. Set the src of the webview using the console. Observe Atom-Shell crash.</p> <p dir="auto">Now a point of clarification: This sounds convoluted but I was using display:none to hide the webview, set the source and then show it in my app. I should have been using visibility:hidden instead. My UI is just set up to show the webview in the entire width/height of the window but underneath of it there is a list of links to choose from. This is the reasoning I found this issue. Using visibility:hidden makes the crashing go away.</p> <p dir="auto">Question, does calling display:none on the webview cause the webview to be garbage collected?</p>
1
<p dir="auto">Raised by <a href="http://stackoverflow.com/q/42943875/102441" rel="nofollow">this</a> stackoverflow question. The following code , run on master...</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="x_actual = 49997 x3_actual = x_actual ** 3 for dtype in [np.int64, np.uint64, np.float64]: x = {} x['scalar'] = dtype(x_actual) x[ '0d'] = np.array(x_actual, dtype=dtype) x[ '1d'] = np.array([x_actual], dtype=dtype) x[ '2d'] = np.array([[x_actual]], dtype=dtype) x3 = {k: x**3 for k, x in x.items()} assert all(v == x3_actual for v in x3.values()) #ok print(&quot;input type of {}:&quot;.format(np.dtype(dtype))) for k, v in x3.items(): print(&quot;{:&gt;8s}: {}&quot;.format(k, v.dtype)) print()"><pre class="notranslate"><span class="pl-s1">x_actual</span> <span class="pl-c1">=</span> <span class="pl-c1">49997</span> <span class="pl-s1">x3_actual</span> <span class="pl-c1">=</span> <span class="pl-s1">x_actual</span> <span class="pl-c1">**</span> <span class="pl-c1">3</span> <span class="pl-k">for</span> <span class="pl-s1">dtype</span> <span class="pl-c1">in</span> [<span class="pl-s1">np</span>.<span class="pl-s1">int64</span>, <span class="pl-s1">np</span>.<span class="pl-s1">uint64</span>, <span class="pl-s1">np</span>.<span class="pl-s1">float64</span>]: <span class="pl-s1">x</span> <span class="pl-c1">=</span> {} <span class="pl-s1">x</span>[<span class="pl-s">'scalar'</span>] <span class="pl-c1">=</span> <span class="pl-en">dtype</span>(<span class="pl-s1">x_actual</span>) <span class="pl-s1">x</span>[ <span class="pl-s">'0d'</span>] <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-s1">x_actual</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">dtype</span>) <span class="pl-s1">x</span>[ <span class="pl-s">'1d'</span>] <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-s1">x_actual</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">dtype</span>) <span class="pl-s1">x</span>[ <span class="pl-s">'2d'</span>] <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([[<span class="pl-s1">x_actual</span>]], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">dtype</span>) <span class="pl-s1">x3</span> <span class="pl-c1">=</span> {<span class="pl-s1">k</span>: <span class="pl-s1">x</span><span class="pl-c1">**</span><span class="pl-c1">3</span> <span class="pl-k">for</span> <span class="pl-s1">k</span>, <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-s1">x</span>.<span class="pl-en">items</span>()} <span class="pl-k">assert</span> <span class="pl-en">all</span>(<span class="pl-s1">v</span> <span class="pl-c1">==</span> <span class="pl-s1">x3_actual</span> <span class="pl-k">for</span> <span class="pl-s1">v</span> <span class="pl-c1">in</span> <span class="pl-s1">x3</span>.<span class="pl-en">values</span>()) <span class="pl-c">#ok</span> <span class="pl-en">print</span>(<span class="pl-s">"input type of {}:"</span>.<span class="pl-en">format</span>(<span class="pl-s1">np</span>.<span class="pl-en">dtype</span>(<span class="pl-s1">dtype</span>))) <span class="pl-k">for</span> <span class="pl-s1">k</span>, <span class="pl-s1">v</span> <span class="pl-c1">in</span> <span class="pl-s1">x3</span>.<span class="pl-en">items</span>(): <span class="pl-en">print</span>(<span class="pl-s">"{:&gt;8s}: {}"</span>.<span class="pl-en">format</span>(<span class="pl-s1">k</span>, <span class="pl-s1">v</span>.<span class="pl-s1">dtype</span>)) <span class="pl-en">print</span>()</pre></div> <p dir="auto">Gives the alarming output of:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="input of int64 scalar: int64 0d: int64 1d: int64 2d: int64 input of uint64 scalar: float64 0d: float64 1d: uint64 # What? 2d: uint64 # What? input of float64 scalar: float64 0d: float64 1d: float64 2d: float64"><pre class="notranslate"><code class="notranslate">input of int64 scalar: int64 0d: int64 1d: int64 2d: int64 input of uint64 scalar: float64 0d: float64 1d: uint64 # What? 2d: uint64 # What? input of float64 scalar: float64 0d: float64 1d: float64 2d: float64 </code></pre></div> <p dir="auto">The return <code class="notranslate">dtype</code> of power should not depend on the shape of the input array</p>
<p dir="auto">This is to gather and close some other issues. The NEP 50 proposal would close it. In many cases using int64 as the default Python integer for scalar operations (where we disable value-based logic) can be surprising</p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10533985" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/2955" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/2955/hovercard" href="https://github.com/numpy/numpy/issues/2955">gh-2955</a> (bitwise_and)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="66254462" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/5746" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/5746/hovercard" href="https://github.com/numpy/numpy/issues/5746">gh-5746</a> (comparison) although uint64 and int64 comparisons of course have still more issues (covered by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="389178680" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/12525" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/12525/hovercard" href="https://github.com/numpy/numpy/issues/12525">gh-12525</a>)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7731593" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/2524" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/2524/hovercard" href="https://github.com/numpy/numpy/issues/2524">gh-2524</a> (bit shift operators)</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="216032133" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/8809" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/8809/hovercard" href="https://github.com/numpy/numpy/issues/8809">gh-8809</a> power is surprising for promotion (which is just the normal madness of scalar+value-based logic), again together with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="389178680" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/12525" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/12525/hovercard" href="https://github.com/numpy/numpy/issues/12525">gh-12525</a></li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="415655775" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/13057" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/13057/hovercard" href="https://github.com/numpy/numpy/issues/13057">gh-13057</a> (division of uint by Python int)</li> </ul> <p dir="auto">This issue is just to gather and close the other ones as duplicates.</p>
1
<p dir="auto">These are slow and should be unnecessary. They are showing up in Servo profiles.</p>
<p dir="auto"><code class="notranslate">c_char</code> is <code class="notranslate">i8</code>, so trying to use <code class="notranslate">string::raw::from_buf</code> involves this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let cstring: *c_char = .....; let s = string::raw::from_buf(cstring as *const i8 as *const u8);"><pre class="notranslate"><code class="notranslate">let cstring: *c_char = .....; let s = string::raw::from_buf(cstring as *const i8 as *const u8); </code></pre></div> <p dir="auto">Either <code class="notranslate">c_char</code> should switch to <code class="notranslate">u8</code>, or <code class="notranslate">string::raw::from_buf</code> should take <code class="notranslate">*const i8</code>. Right now using this is quite tedious.</p>
0
<p dir="auto">We have a <code class="notranslate">unique</code> function that produces a new collection similar to its argument, but with each item only occurring once (in order of first appearance). There should be a corresponding <code class="notranslate">unique!</code> function that removes recurrences of items and returns this modified collection. Note that for performance, at least on dense arrays, resizing of the array should only occur at end when you know the final size to shrink the array to. Part of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="204934755" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/20402" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/20402/hovercard" href="https://github.com/JuliaLang/julia/issues/20402">#20402</a>.</p>
<p dir="auto">When looking into <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="32603905" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/6708" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/6708/hovercard" href="https://github.com/JuliaLang/julia/issues/6708">#6708</a>, I noticed that the <code class="notranslate">sprand</code> function seems to generate sparse matrices with slightly the wrong density. For example:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; mean([nfilled(sprand(100,10,0.1)) for i=1:100]) 99.81 julia&gt; mean([nfilled(sprand(100,10,0.1)) for i=1:1000]) 99.833 julia&gt; mean([nfilled(sprand(100,10,0.1)) for i=1:10000]) 99.7546 julia&gt; mean([nfilled(sprand(100,10,0.1)) for i=1:100000]) 99.72917 julia&gt; mean([nfilled(sprand(100,10,0.1)) for i=1:1000000]) 99.722943"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">mean</span>([<span class="pl-c1">nfilled</span>(<span class="pl-c1">sprand</span>(<span class="pl-c1">100</span>,<span class="pl-c1">10</span>,<span class="pl-c1">0.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><span class="pl-c1">100</span>]) <span class="pl-c1">99.81</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">mean</span>([<span class="pl-c1">nfilled</span>(<span class="pl-c1">sprand</span>(<span class="pl-c1">100</span>,<span class="pl-c1">10</span>,<span class="pl-c1">0.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><span class="pl-c1">1000</span>]) <span class="pl-c1">99.833</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">mean</span>([<span class="pl-c1">nfilled</span>(<span class="pl-c1">sprand</span>(<span class="pl-c1">100</span>,<span class="pl-c1">10</span>,<span class="pl-c1">0.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><span class="pl-c1">10000</span>]) <span class="pl-c1">99.7546</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">mean</span>([<span class="pl-c1">nfilled</span>(<span class="pl-c1">sprand</span>(<span class="pl-c1">100</span>,<span class="pl-c1">10</span>,<span class="pl-c1">0.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><span class="pl-c1">100000</span>]) <span class="pl-c1">99.72917</span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">mean</span>([<span class="pl-c1">nfilled</span>(<span class="pl-c1">sprand</span>(<span class="pl-c1">100</span>,<span class="pl-c1">10</span>,<span class="pl-c1">0.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><span class="pl-c1">1000000</span>]) <span class="pl-c1">99.722943</span></pre></div> <p dir="auto">does not seem to be converging to 100.</p>
0
<p dir="auto">-关于2.6.3release版本优雅停机问题,之前我在社区也发提出的issue中于开发交流过,发现依然存在问题。</p> <ol dir="auto"> <li> <p dir="auto">框架的停机hook和spring的停机hook同时触发,导致服务的实现类中无法获取业务bean,导致服务无法正确完成。(因为spring context先于框架close了)<br> 场景一:Springboot+innerTomcat<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/SpringBootApplication/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/SpringBootApplication">@SpringBootApplication</a><br> @ComponetScan<br> @ImportResource({"classpath:/META-INF/spring/dubbo*.xml"})<br> public class GatewayApplication {<br> public static void main(String[] args) {<br> SpringApplication.run(GatewayApplication.class, args);<br> System.in.read();<br> //模拟停机<br> System.exit(0);<br> }<br> }<br> 场景二:<br> public static void main(String[] args) {<br> ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(classpath:/META-INF/spring/dubbo*.xml);<br> ctx.registerShutdownHook();<br> ctx.start();<br> }</p> </li> <li> <p dir="auto">我们分析了下2.6.3停机代码,针对spring容器需要关闭dubbo默认hook,通过spring的停机hook触发close事件listener来停机。初始化DubboApplicationListener目前只针对Main方法和Spring+web.xml方式。个人觉得DubboApplicationListener思路是对的,但是需要针对不同spring使用场景,不能总体覆盖。个人觉得DubboApplicationContextInitializer设计就有点别扭。</p> </li> <li> <p dir="auto">建议:针对Spring容器优雅停机,我们建议将spring close事件监听逻辑移到ApplicationConfig中,并在ApplicationConfig中注销默认停机hook,注册spring 停机hook。这样做的好处就是,如果框架是基于spring容器,可以一刀切的方式实现hook的管理,完全依赖spirng管理停机,使用者仅需要关系spring生命周期。核心修改如下:<br> ApplicationConfig implments ApplicationContextWare, ApplicationListener{<br> public void onApplicationEvent(ContextClosedEvent event){<br> DubboShutdownHook.getDubboShutDownHook().destroyAll();<br> }</p> <p dir="auto">public void setApplicationContext(ApplicationContext ctx){<br> //注销dubbohook,将removeShutdownHook从DubboBootstrap中迁移到DubboShutdownHook中<br> DubboShutdownHook.removeShutdownHook();<br> //注册spring hook<br> ctx.registerShutdownHook();<br> }<br> }</p> </li> </ol> <p dir="auto">4.我们应用在实际使用过程中碰到很多停机问题,我们也针对性的对框架优雅停机尝试研究和优化,个人对dubbo代码理解有限,恳请指正。</p>
<p dir="auto">我们在测试及生产环境下总结目前Dubbo优雅停机问题存在几个问题:<br> [1]Spring可能先于框架关闭,导致业务服务无法正确执行完成;<br> [2]tomcat+spring场景,中间件停机可能会导致class被回收,导致log日志无法输出,甚至报class not found;<br> [3]如果存在多个hook,如spring本身有hook,无法保证hook执行顺序;<br> [4]zk在大数据量同步通知下延迟严重,导致注销后仍有请求(目前版本简单sleep了一下);<br> [5]停机时间无法设置,官方关于“停机设置标志位”的描述有误。</p> <p dir="auto">综上所述,我们的优化作法是将框架的优雅停机委托给Spring管理,通过监听Spring的close事件触发停机,这样做有两个好处:(1)保证框架停机优于Spring关闭;(2)应用用起来简单,只需要维护Spring生命周期;(3)相对于hook方式,主动调用停机接口更让人放心。</p>
1
<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">Unmatched behavior of numpy and pytorch on indexing with a list of bool value.</p> <h2 dir="auto">To Reproduce</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch x = torch.randn(3,4) print(x[[True,False,True]]) print(x.numpy()[[True, False, True]])"><pre class="notranslate"><code class="notranslate">import torch x = torch.randn(3,4) print(x[[True,False,True]]) print(x.numpy()[[True, False, True]]) </code></pre></div> <p dir="auto">With output</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import torch &gt;&gt;&gt; x = torch.randn(3,4) &gt;&gt;&gt; x[[True,False,True]] tensor([[ 0.9176, 0.6378, 1.1367, -1.3373], [ 0.4389, 0.2105, -0.7689, -0.5038], [ 0.9176, 0.6378, 1.1367, -1.3373]]) &gt;&gt;&gt; x.numpy()[[True, False, True]] array([[ 0.43885437, 0.21049356, -0.76887 , -0.5038339 ], [-0.7998242 , 0.7215161 , 0.5523575 , -1.6851963 ]], dtype=float32)"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import torch &gt;&gt;&gt; x = torch.randn(3,4) &gt;&gt;&gt; x[[True,False,True]] tensor([[ 0.9176, 0.6378, 1.1367, -1.3373], [ 0.4389, 0.2105, -0.7689, -0.5038], [ 0.9176, 0.6378, 1.1367, -1.3373]]) &gt;&gt;&gt; x.numpy()[[True, False, True]] array([[ 0.43885437, 0.21049356, -0.76887 , -0.5038339 ], [-0.7998242 , 0.7215161 , 0.5523575 , -1.6851963 ]], dtype=float32) </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">pytorch should behave the same as tensor.</p> <p dir="auto">In fact, indexing with byte tensor works:<br> <code class="notranslate">x[torch.Tensor([True,False,True]).byte()]</code> works</p> <h2 dir="auto">Environment</h2> <p dir="auto">Collecting environment information...<br> PyTorch version: 1.0.0a0+7df6650<br> Is debug build: No<br> CUDA used to build PyTorch: 9.0.176</p> <p dir="auto">OS: Ubuntu 16.04.3 LTS<br> GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609<br> CMake version: version 3.12.0</p> <p dir="auto">Python version: 3.6<br> Is CUDA available: Yes<br> CUDA runtime version: 9.0.176<br> GPU models and configuration:<br> GPU 0: Tesla K40c<br> GPU 1: Tesla K40c</p> <p dir="auto">Nvidia driver version: 390.25<br> cuDNN version: Probably one of the following:<br> /usr/lib/x86_64-linux-gnu/libcudnn.so.7.0.5<br> /usr/lib/x86_64-linux-gnu/libcudnn_static_v7.a</p> <p dir="auto">Versions of relevant libraries:<br> [pip] numpy (1.15.0)<br> [pip] numpydoc (0.7.0)<br> [pip] torch (1.0.0a0+7df6650)<br> [pip] torchtext (0.2.1)<br> [pip] torchvision (0.2.1)<br> [conda] magma-cuda90 2.3.0 1 pytorch<br> [conda] torch 0.5.0a0+6f6a1f2 <br> [conda] torch 0.5.0a0+c425d03 <br> [conda] torch 0.5.0a0+d2f98fc <br> [conda] torch 0.5.0a0+2f311be <br> [conda] torch 1.0.0a0+7df6650 <br> [conda] torchtext 0.2.1 <br> [conda] torchvision 0.2.1 </p>
<p dir="auto">In numpy, indexing with a list of booleans is equivalent to indexing with a boolean array, which means it performs masking.</p> <p dir="auto">In PyTorch, the list of booleans is cast to a long tensor.</p> <p dir="auto">I believe this discrepancy should be fixed.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="a = torch.rand(3, 3) print(a) 0.1041 0.6888 0.7988 0.9398 0.9151 0.7642 0.5340 0.4715 0.8128 [torch.FloatTensor of size (3,3)] print(a[[True, False, False]] 0.9398 0.9151 0.7642 0.1041 0.6888 0.7988 0.1041 0.6888 0.7988 [torch.FloatTensor of size (3,3)] aa = a.numpy() print(aa[[True, False, False]]) array([[0.10411686, 0.6887991 , 0.7988465 ]], dtype=float32)"><pre class="notranslate"><span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">rand</span>(<span class="pl-c1">3</span>, <span class="pl-c1">3</span>) <span class="pl-en">print</span>(<span class="pl-s1">a</span>) <span class="pl-c1">0.1041</span> <span class="pl-c1">0.6888</span> <span class="pl-c1">0.7988</span> <span class="pl-c1">0.9398</span> <span class="pl-c1">0.9151</span> <span class="pl-c1">0.7642</span> <span class="pl-c1">0.5340</span> <span class="pl-c1">0.4715</span> <span class="pl-c1">0.8128</span> [<span class="pl-s1">torch</span>.<span class="pl-v">FloatTensor</span> <span class="pl-s1">of</span> <span class="pl-s1">size</span> (<span class="pl-c1">3</span>,<span class="pl-c1">3</span>)] <span class="pl-s1">print</span>(<span class="pl-s1">a</span>[[<span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">False</span>]] <span class="pl-c1">0.9398</span> <span class="pl-c1">0.9151</span> <span class="pl-c1">0.7642</span> <span class="pl-c1">0.1041</span> <span class="pl-c1">0.6888</span> <span class="pl-c1">0.7988</span> <span class="pl-c1">0.1041</span> <span class="pl-c1">0.6888</span> <span class="pl-c1">0.7988</span> [<span class="pl-s1">torch</span>.<span class="pl-v">FloatTensor</span> <span class="pl-s1">of</span> <span class="pl-s1">size</span> (<span class="pl-c1">3</span>,<span class="pl-c1">3</span>)] <span class="pl-s1">aa</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span>.<span class="pl-en">numpy</span>() <span class="pl-s1">print</span>(<span class="pl-s1">aa</span>[[<span class="pl-c1">True</span>, <span class="pl-c1">False</span>, <span class="pl-c1">False</span>]]) <span class="pl-s1">array</span>([[<span class="pl-c1">0.10411686</span>, <span class="pl-c1">0.6887991</span> , <span class="pl-c1">0.7988465</span> ]], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">float32</span>)</pre></div>
1
<p dir="auto">It has like 5.4k votes on <a href="https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7752519-implement-tabs?tracking_code=421857240f4fcb6135eadecade77a4e2" rel="nofollow">uservoice</a>, it's unfortunate that an issue of <em>taste</em> or style needs to be reviewed, it's like reviewing an issue about accessibility and debate whether it needs to be added to a modern program where the answer is definitely yes.</p> <p dir="auto">I <em>think</em> that the majority of developers either like it or just too used to it and some don't, that's fine too so why wouldn't you consider adding this as an option? many people that really likes the editor shy away from using it because an editor shouldn't force you into anything you don't like and the working files isn't working for many people.</p> <p dir="auto">Now, I can certainly use other editors instead of VSCode and I do but when I'm working with TypeScript/JavaScript I really like to use VSCode and it really bothers me that it doesn't have tabs.</p> <p dir="auto">I'm working with different languages and use many editors/IDEs in my work and all of them have tabs, it fits my workflow best because I've been using Visual Studio and IntelliJ to develop software for a very long time and it's just a thing for me and I guess for many others too.</p> <p dir="auto">What's interesting is that Visual Studio Code carries the title Visual Studio that not only has tabs but it's part of the experience in the IDE so a developer that uses VSCode should expect no less but to have tabs as part of the same <em>editing</em> experience.</p> <p dir="auto">Please, at least tell us what's going on with it, where it stands, etc...</p> <p dir="auto">Thanks.</p>
<p dir="auto">I <em>really</em> miss proper tabs for open files (like VS proper), and the ability to rip a tab out into its own window.</p>
1
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.2</p> <p dir="auto"><strong>Background</strong>:</p> <p dir="auto">I have been working on trying to get <a href="https://github.com/eslint/typescript-eslint-parser">https://github.com/eslint/typescript-eslint-parser</a>, a TypeScript parser plugin for ESLint, off the ground, and the job this weekend has been to begin adding JSX support.</p> <p dir="auto">ESLint uses espree and so the aim of the project is to convert the output of the tsc to an AST which espree expects. We already have a solid suite of JSX tests to develop against (taken from the espree project itself), but I have come up against a tsc error in one of them so far.</p> <p dir="auto">My issue is that it seems currently the tsc does not accept this "embedded-tags" JSX syntax:</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="&lt;LeftRight left=&lt;a /&gt; right=&lt;b&gt;monkeys /&gt; gorillas&lt;/b&gt; /&gt;; "><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-smi">LeftRight</span> <span class="pl-s1">left</span><span class="pl-c1">=</span><span class="pl-c1">&lt;</span><span class="pl-s1">a</span> <span class="pl-pds"><span class="pl-c1">/</span>&gt; right=&lt;b&gt;monkeys <span class="pl-c1">/</span></span><span class="pl-c1">&gt;</span> <span class="pl-s1">gorillas</span><span class="pl-c1">&lt;</span><span class="pl-pds"><span class="pl-c1">/</span>b&gt; <span class="pl-c1">/</span></span><span class="pl-c1">&gt;</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> Please note the AST produced by espree (see in particular the <code class="notranslate">tokens</code> array): <a href="http://astexplorer.net/#/9WAjizSvbC" rel="nofollow">http://astexplorer.net/#/9WAjizSvbC</a></p> <p dir="auto"><strong>Actual behavior:</strong><br> ...compared to the one produced by the tsc (note the issues found in <code class="notranslate">parseDiagnostics</code>):<br> <a href="http://astexplorer.net/#/YehKzLJYMW" rel="nofollow">http://astexplorer.net/#/YehKzLJYMW</a></p>
<p dir="auto">Since it's very unlikely that the extension methods will ever be implemented <a href="https://github.com/Microsoft/TypeScript/issues/9#issuecomment-74302592" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/9/hovercard">in a call-site-rewrite manner</a>, please consider adding infix operators to enable writing in functional style similarly to what can be done in Haskell:</p> <p dir="auto">Monoids</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function '+'&lt;a&gt;(left: a[], right: a[]) : a[] { return left.concat(right); } [1, 2, 3] '+' [4, 5]; // [1, 2, 3, 4, 5]"><pre class="notranslate"><span class="pl-k">function</span> '<span class="pl-c1">+</span><span class="pl-s">'&lt;a&gt;(left: a[], right: a[]) : a[] {</span> <span class="pl-s"> return left.concat(right);</span> <span class="pl-s">}</span> <span class="pl-s"></span> <span class="pl-s">[1, 2, 3] '</span><span class="pl-c1">+</span>' [4, 5]; // [1, 2, 3, 4, 5]</pre></div> <p dir="auto">Monads</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function '&gt;&gt;='&lt;a, b&gt;(promise: Promise&lt;a&gt;, bind: (value: a) =&gt; Promise&lt;b&gt;) : Promise&lt;b&gt; { return promise.then(bind); } $.get('/get') '&gt;&gt;=' x =&gt; $.post('/save', x + 1)"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-s">'&gt;&gt;='</span><span class="pl-c1">&lt;</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">promise</span>: <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">,</span> <span class="pl-s1">bind</span>: <span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">a</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">b</span><span class="pl-kos">&gt;</span><span class="pl-kos">)</span> : <span class="pl-smi">Promise</span><span class="pl-kos">&lt;</span><span class="pl-smi">b</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">promise</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-s1">bind</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">$</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'/get'</span><span class="pl-kos">)</span><span class="pl-kos"></span> <span class="pl-s">'&gt;&gt;='</span><span class="pl-kos"></span> <span class="pl-s1">x</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">$</span><span class="pl-kos">.</span><span class="pl-en">post</span><span class="pl-kos">(</span><span class="pl-s">'/save'</span><span class="pl-kos">,</span> <span class="pl-s1">x</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Functors</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function '.'&lt;a, b, c&gt;(inner: (value: a) =&gt; b, outer: (value: b) =&gt; c) : (value: a) =&gt; c { return function(value: a) : c { return outer(inner(value)) } } function f(x: X) : Y { } function g(y: Y) : Z { } (f '.' g)(x); // z "><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-s">'.'</span><span class="pl-c1">&lt;</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">,</span> <span class="pl-s1">c</span><span class="pl-c1">&gt;</span><span class="pl-kos">(</span><span class="pl-s1">inner</span>: <span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">a</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">b</span><span class="pl-kos">,</span> <span class="pl-s1">outer</span>: <span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">b</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">c</span><span class="pl-kos">)</span> : <span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">a</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">c</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">value</span>: <span class="pl-smi">a</span><span class="pl-kos">)</span> : <span class="pl-smi">c</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">outer</span><span class="pl-kos">(</span><span class="pl-en">inner</span><span class="pl-kos">(</span><span class="pl-s1">value</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">function</span> <span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-s1">x</span>: <span class="pl-smi">X</span><span class="pl-kos">)</span> : <span class="pl-smi">Y</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">g</span><span class="pl-kos">(</span><span class="pl-s1">y</span>: <span class="pl-smi">Y</span><span class="pl-kos">)</span> : <span class="pl-smi">Z</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">(</span><span class="pl-s1">f</span> <span class="pl-s">'.'</span> <span class="pl-s1">g</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// z</span></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: Microsoft Windows [Version 10.0.18362.267] Windows Terminal version (if applicable): 0.3.2142.0 WSL 1 with Ubuntu 18.04"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.267] Windows Terminal version (if applicable): 0.3.2142.0 WSL 1 with Ubuntu 18.04 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ol dir="auto"> <li>Open terminal with WSL Ubuntu</li> <li>Display something on stdout (e.g. <code class="notranslate">echo Hello world!</code>)</li> <li>Run <code class="notranslate">clear -x</code> or <code class="notranslate">Ctrl+L</code></li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Move promt to top of the screen and put what is currently dispalyed on the screen in the scrollback. This is how the old console functioned.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Moves promt to top of the screen, and clears what is currently displayed on the screen without putting it in the scrollback</p>
<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.18362.0 Windows Terminal version (if applicable): 0.5.2681.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0 Windows Terminal version (if applicable): 0.5.2681.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">I imagine this is similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="442403177" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/633" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/633/hovercard" href="https://github.com/microsoft/terminal/issues/633">#633</a>, except it seems like my arrows are rendering <em>too far to the left</em> (and/or too small), rather than having a gap. See:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2932786/65722911-22656d00-e062-11e9-9320-241d06be21e1.png"><img src="https://user-images.githubusercontent.com/2932786/65722911-22656d00-e062-11e9-9320-241d06be21e1.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I'm using a <code class="notranslate">Menlo for Powerline</code> patched font - with a powershell prompt generated by <a href="https://github.com/its-not-batch/PSPowerline">this</a>. For comparison, here's the same prompt in vscode's integrated terminal:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2932786/65723147-a7508680-e062-11e9-86b1-5d877c91eff1.png"><img src="https://user-images.githubusercontent.com/2932786/65723147-a7508680-e062-11e9-86b1-5d877c91eff1.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">With visible colors:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2932786/65723466-4ecdb900-e063-11e9-8038-08b683c778ef.png"><img src="https://user-images.githubusercontent.com/2932786/65723466-4ecdb900-e063-11e9-8038-08b683c778ef.png" alt="image" style="max-width: 100%;"></a></p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Arrows in the powerline font rendered in full size, aligned with the center of the line.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Powerline arrows are rendered at an incorrect size/location - the branch name text is also similarly reduced, it seems.</p>
0
<h1 dir="auto">Introduction</h1> <p dir="auto">Currently, type literals are capable of representing any instantiated (non-generic) type except those that are recursive. This is because, as an anonymous type, they do not have a name with which to create this type.</p> <p dir="auto">This proposal covers recursive type literals. These type literals add the additional ability of the literal referring to itself. This has one main advantage: emitting .d.ts files for expressions typed by class expressions now have a "flattened" representations. As class expressions could easily have recursive components, we'd like to be able to emit a corresponding type representation into the .d.ts file without contaminating the namespace with additional fresh type names.</p> <h1 dir="auto">Design</h1> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var x : &lt;Node&gt; { next: Node; value: number; };"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">x</span> : <span class="pl-c1">&lt;</span><span class="pl-smi">Node</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">next</span>: <span class="pl-smi">Node</span><span class="pl-kos">;</span> <span class="pl-c1">value</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">The above acts similarly to this example:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Node { next: Node; value: number; }; var x : Node; "><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Node</span> <span class="pl-kos">{</span> <span class="pl-c1">next</span>: <span class="pl-smi">Node</span><span class="pl-kos">;</span> <span class="pl-c1">value</span>: <span class="pl-smi">number</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">x</span> : <span class="pl-smi">Node</span><span class="pl-kos">;</span> </pre></div> <p dir="auto">with one critical exception: in the first example the 'Node' name is <strong>not</strong> visible outside of the type literal.</p> <h1 dir="auto">Typechecking</h1> <p dir="auto">Typechecking of recursive type literals works just as recursive interfaces, with the exception (as mentioned above) that the name given to the recursive type literal is not visible in the lexical scope outside of the type literal. Otherwise, these expand and are compared for equality structurally just as interfaces.</p> <h1 dir="auto">Differences with other designs</h1> <p dir="auto">This design differs from similar designs, named the 'self' type design where there is a specific keywords that the type can refer to its self. This proposal is strictly more expressive, albeit at the cost of some additional syntax. For example, embedded recursive types are possible:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var x: &lt;Node&gt; { up: &lt;Parent&gt;{ up: Parent; node: Node}; next: Node; value: number};"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">x</span>: <span class="pl-c1">&lt;</span><span class="pl-smi">Node</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">up</span>: <span class="pl-c1">&lt;</span><span class="pl-smi">Parent</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span> <span class="pl-c1">up</span>: <span class="pl-smi">Parent</span><span class="pl-kos">;</span> <span class="pl-c1">node</span>: <span class="pl-smi">Node</span><span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-c1">next</span>: <span class="pl-smi">Node</span><span class="pl-kos">;</span> <span class="pl-c1">value</span>: <span class="pl-smi">number</span><span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Using the allowJs compiler option, if <a href="https://github.com/feross/buffer">buffer</a> or <a href="https://github.com/pillarjs/send">send</a> are dependencies, Duplicate identifier errors are reported:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node_modules/buffer/index.js(94,5): error TS2300: Duplicate identifier 'length'. node_modules/buffer/index.js(95,5): error TS2300: Duplicate identifier 'parent'. node_modules/buffer/index.js(229,20): error TS2300: Duplicate identifier 'length'. node_modules/buffer/index.js(230,20): error TS2300: Duplicate identifier 'parent'. node_modules/send/index.js(203,22): error TS2300: Duplicate identifier 'root'. node_modules/send/index.js(212,22): error TS2300: Duplicate identifier 'root'."><pre lang="log" class="notranslate"><code class="notranslate">node_modules/buffer/index.js(94,5): error TS2300: Duplicate identifier 'length'. node_modules/buffer/index.js(95,5): error TS2300: Duplicate identifier 'parent'. node_modules/buffer/index.js(229,20): error TS2300: Duplicate identifier 'length'. node_modules/buffer/index.js(230,20): error TS2300: Duplicate identifier 'parent'. node_modules/send/index.js(203,22): error TS2300: Duplicate identifier 'root'. node_modules/send/index.js(212,22): error TS2300: Duplicate identifier 'root'. </code></pre></div> <p dir="auto">It seems similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="129199316" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/6645" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/6645/hovercard" href="https://github.com/microsoft/TypeScript/issues/6645">#6645</a>, but here in addition to this member assignment, prototypes are in play.</p>
0
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8863296/14146427/203f62f8-f65d-11e5-8a4a-dbeff09fb11d.png"><img src="https://cloud.githubusercontent.com/assets/8863296/14146427/203f62f8-f65d-11e5-8a4a-dbeff09fb11d.png" alt="camp" style="max-width: 100%;"></a><br> Challenge <a href="https://www.freecodecamp.com/challenges/local-scope-and-functions#?solution=%0Afunction%20myFunction%28%29%20%7B%0A%20%20'use%20strict'%3B%0A%20%20var%20myVar%3B%0A%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%0Aconsole.log%28myVar%29%3B%0A%0A%2F%2F%20now%20remove%20the%20console%20log%20line%20to%20pass%20the%20test%0A%0A" rel="nofollow">Local Scope and Functions</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 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() { 'use strict'; var myVar = &quot;&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-s">'use strict'</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">""</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-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-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/local-scope-and-functions#?solution=function%20myFunction%28%29%20%7B%0A%20%20'use%20strict'%3B%0A%20%20%0A%20%20%20var%20myVar%20%3D%20%22test%22%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%0Aconsole.log%28myVar%29%3B%0A%0A%2F%2F%20now%20remove%20the%20console%20log%20line%20to%20pass%20the%20test%0A%0A" rel="nofollow">Local Scope and Functions</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 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() { 'use strict'; var myVar = &quot;test&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-s">'use strict'</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">"test"</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-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-c">// now remove the console log line to pass the test</span> </pre></div> <p dir="auto">href="<a href="http://content.screencast.com/users/Pisstt/folders/Default/media/d1d59d3a-6ca0-493b-9910-3c421028f88b/2016-01-17_1925.png%22%3E" rel="nofollow">http://content.screencast.com/users/Pisstt/folders/Default/media/d1d59d3a-6ca0-493b-9910-3c421028f88b/2016-01-17_1925.png"&gt;</a><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/94333b194d57a5af43f64dcc2523d5fea5332f0343d20a92c18cdab737173b64/687474703a2f2f636f6e74656e742e73637265656e636173742e636f6d2f75736572732f5069737374742f666f6c646572732f44656661756c742f6d656469612f64316435396433612d366361302d343933622d393931302d3363343231303238663838622f323031362d30312d31375f313932352e706e67"><img src="https://camo.githubusercontent.com/94333b194d57a5af43f64dcc2523d5fea5332f0343d20a92c18cdab737173b64/687474703a2f2f636f6e74656e742e73637265656e636173742e636f6d2f75736572732f5069737374742f666f6c646572732f44656661756c742f6d656469612f64316435396433612d366361302d343933622d393931302d3363343231303238663838622f323031362d30312d31375f313932352e706e67" width="600" height="300" border="0" data-canonical-src="http://content.screencast.com/users/Pisstt/folders/Default/media/d1d59d3a-6ca0-493b-9910-3c421028f88b/2016-01-17_1925.png" style="max-width: 100%;"></a></p>
1
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/smallest-common-multiple" rel="nofollow">Smallest Common Multiple</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.108 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="//noprotect function smallestCommons(arr) { for (var j=Math.max(...arr)+1;;){ for (var i=2; i&lt;=Math.max(...arr);){ if (j%i!==0) {j++; i=2; } else {i++;} } console.log(j); return j; } }"><pre class="notranslate"><span class="pl-c">//noprotect</span> <span class="pl-k">function</span> <span class="pl-en">smallestCommons</span><span class="pl-kos">(</span><span class="pl-s1">arr</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">var</span> <span class="pl-s1">j</span><span class="pl-c1">=</span><span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">max</span><span class="pl-kos">(</span>...<span class="pl-s1">arr</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-kos">;</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">var</span> <span class="pl-s1">i</span><span class="pl-c1">=</span><span class="pl-c1">2</span><span class="pl-kos">;</span> <span class="pl-s1">i</span><span class="pl-c1">&lt;=</span><span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">max</span><span class="pl-kos">(</span>...<span class="pl-s1">arr</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">if</span> <span class="pl-kos">(</span><span class="pl-s1">j</span><span class="pl-c1">%</span><span class="pl-s1">i</span><span class="pl-c1">!==</span><span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-s1">j</span><span class="pl-c1">++</span><span class="pl-kos">;</span> <span class="pl-s1">i</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">else</span> <span class="pl-kos">{</span><span class="pl-s1">i</span><span class="pl-c1">++</span><span class="pl-kos">;</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">j</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">j</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Without <code class="notranslate">//noprotect</code>, the loop breaks early. I think this challenge should have a longer timeout, or at least a smaller test value than <code class="notranslate">13</code>.</p>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/smallest-common-multiple#?solution=%2F*%20This%20was%20a%20tough%20one%20for%20me.%0ALet's%20use%20the%20Euclidean%20Algorithm%20to%20first%20get%20the%20GCD%20and%20%0Athen%20use%20that%20to%20calculate%20the%20LCM%0AThis%20below%20function%20for%20obtaining%20the%20gcd%20was%20posted%20on%20StackOverflow%20by%20%22alex%22%20at%20%0Ahttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F17445231%2Fjs-how-to-find-the-greatest-common-divisor%2F17445304%2317445304.%20%0A*%2F%0Afunction%20gcd%28a%2C%20b%29%20%7B%0A%20%20%20%20if%20%28!b%29%20%7B%0A%20%20%20%20%20%20%20%20return%20a%3B%0A%20%20%20%20%7D%20%20%20%20%0A%20%20%20%20return%20gcd%28b%2C%20a%20%25%20b%29%3B%0A%7D%0A%0Afunction%20smallestCommons%28arr%29%20%7B%0A%20%20%20%20var%20newArr%20%3D%20%5B%5D%3B%20%2F*Will%20hold%20the%20range%20of%20numbers%20from%20arr%5B0%5D%20to%20arr%5B1%5D.*%2F%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20arr.sort%28function%28val1%2C%20val2%29%20%7B%20%2F*Order%20the%20array%20from%20least%20to%20greatest.*%2F%0A%20%20%20%20%20%20%20%20return%20val1%20-%20val2%3B%0A%20%20%20%20%7D%29%3B%0A%20%20%20%20%0A%20%20%20%20for%20%28var%20i%20%3D%20arr%5B0%5D%3B%20i%20%3C%3D%20arr%5B1%5D%3B%20i%2B%2B%29%20%7B%20%2F*Create%20the%20full%20range%20of%20values%20under%20consideration.*%2F%0A%20%20%20%20%20%20%20%20newArr.push%28i%29%3B%0A%20%20%20%20%7D%0A%20%20%20%20%0A%20%20%20%20%2F*Formula%20to%20use%20is%20LCM%28a%2Cb%29%20%3D%20a%20*%20b%20%2F%20GCD%28a%2C%20b%29.%20%0A%20%20%20%20Reduce%20array%20by%20recursively%20applying%20the%20formula%20to%20%0A%20%20%20%20the%20first%20two%20values%20until%20there%20is%20only%20one%20value%20left.*%2F%0A%20%20%20%20return%20newArr.reduce%28function%28a%2C%20b%29%20%7B%20%0A%20%20%20%20%20%20%20%20return%20%28a%20*%20b%29%20%2F%20%28gcd%28a%2C%20b%29%29%3B%0A%20%20%20%20%7D%29%3B%0A%7D%0A%0AsmallestCommons%28%5B1%2C%205%5D%29%3B%0A" rel="nofollow">Smallest Common Multiple</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36</code>.<br> I keep receiving this error: "SyntaxError: Illegal break statement." That doesn't make any sense, because my code isn't using a break statement anywhere, even in my for loop. The code works and passes all test cases when I log the output in the console. Am I missing something?</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="/* This was a tough one for me. Let's use the Euclidean Algorithm to first get the GCD and then use that to calculate the LCM This below function for obtaining the gcd was posted on StackOverflow by &quot;alex&quot; at https://stackoverflow.com/questions/17445231/js-how-to-find-the-greatest-common-divisor/. */ function gcd(a, b) { if (!b) { return a; } return gcd(b, a % b); } function smallestCommons(arr) { var newArr = []; /*Will hold the range of numbers from arr[0] to arr[1].*/ arr.sort(function(val1, val2) { /*Order the array from least to greatest.*/ return val1 - val2; }); for (var i = arr[0]; i &lt;= arr[1]; i++) { /*Create the full range of values under consideration.*/ newArr.push(i); } /*Formula to use is LCM(a,b) = a * b / GCD(a, b). Reduce array by recursively applying the formula to the first two values until there is only one value left.*/ return newArr.reduce(function(a, b) { return (a * b) / (gcd(a, b)); }); } smallestCommons([1, 5]); "><pre class="notranslate"><span class="pl-c">/* This was a tough one for me.</span> <span class="pl-c">Let's use the Euclidean Algorithm to first get the GCD and </span> <span class="pl-c">then use that to calculate the LCM</span> <span class="pl-c">This below function for obtaining the gcd was posted on StackOverflow by "alex" at </span> <span class="pl-c">https://stackoverflow.com/questions/17445231/js-how-to-find-the-greatest-common-divisor/. </span> <span class="pl-c">*/</span> <span class="pl-k">function</span> <span class="pl-en">gcd</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</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-c1">!</span><span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">a</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-en">gcd</span><span class="pl-kos">(</span><span class="pl-s1">b</span><span class="pl-kos">,</span> <span class="pl-s1">a</span> <span class="pl-c1">%</span> <span class="pl-s1">b</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-en">smallestCommons</span><span class="pl-kos">(</span><span class="pl-s1">arr</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">newArr</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">/*Will hold the range of numbers from arr[0] to arr[1].*/</span> <span class="pl-s1">arr</span><span class="pl-kos">.</span><span class="pl-en">sort</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">val1</span><span class="pl-kos">,</span> <span class="pl-s1">val2</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">/*Order the array from least to greatest.*/</span> <span class="pl-k">return</span> <span class="pl-s1">val1</span> <span class="pl-c1">-</span> <span class="pl-s1">val2</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">for</span> <span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-s1">arr</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">&lt;=</span> <span class="pl-s1">arr</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-s1">i</span><span class="pl-c1">++</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">/*Create the full range of values under consideration.*/</span> <span class="pl-s1">newArr</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">/*Formula to use is LCM(a,b) = a * b / GCD(a, b). </span> <span class="pl-c"> Reduce array by recursively applying the formula to </span> <span class="pl-c"> the first two values until there is only one value left.*/</span> <span class="pl-k">return</span> <span class="pl-s1">newArr</span><span class="pl-kos">.</span><span class="pl-en">reduce</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span><span class="pl-s1">a</span> <span class="pl-c1">*</span> <span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-c1">/</span> <span class="pl-kos">(</span><span class="pl-en">gcd</span><span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</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> <span class="pl-en">smallestCommons</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">5</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
1
<h3 dir="auto">Playwright version</h3> <p dir="auto">1.13.0</p> <h3 dir="auto">Operating system</h3> <p dir="auto">MacOS, Linux</p> <h3 dir="auto">What browsers are you seeing the problem on?</h3> <p dir="auto">Chromium</p> <h3 dir="auto">Other information</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">What happened? / Describe the bug</h3> <p dir="auto">When executing "sanitizeForFilePath", the return value may be the same.<br> This has caused the screenshot to be overwritten.</p> <p dir="auto">I want adjustment the regular expression condition or make it a unique value so that it will not be overwritten.</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/microsoft/playwright/blob/b1dc84c953ce275e9e48e30810be858ce2fd3b6d/src/test/workerRunner.ts#L566-L568">playwright/src/test/workerRunner.ts</a> </p> <p class="mb-0 color-fg-muted"> Lines 566 to 568 in <a data-pjax="true" class="commit-tease-sha" href="/microsoft/playwright/commit/b1dc84c953ce275e9e48e30810be858ce2fd3b6d">b1dc84c</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="L566" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="566"></td> <td id="LC566" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">function</span> <span class="pl-en">sanitizeForFilePath</span><span class="pl-kos">(</span><span class="pl-s1">s</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> </td> </tr> <tr class="border-0"> <td id="L567" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="567"></td> <td id="LC567" 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">s</span><span class="pl-kos">.</span><span class="pl-en">replace</span><span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span><span class="pl-kos">[</span>^<span class="pl-cce">\w</span><span class="pl-cce">\d</span><span class="pl-kos">]</span><span class="pl-c1">+</span><span class="pl-c1">/</span>g</span><span class="pl-kos">,</span> <span class="pl-s">'-'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L568" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="568"></td> <td id="LC568" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span> </td> </tr> </tbody></table> </div> </div> <p></p> <h3 dir="auto">Code snippet to reproduce your bug</h3> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// failtest.spec.ts import { test, expect } from '@playwright/test'; test('基本的なテスト', async ({ page }) =&gt; { await page.goto('https://playwright.dev/'); const name = await page.innerText('.navbar__title'); expect(name).toBe('Playwright!'); }); test('実験的なテスト', async ({ page }) =&gt; { await page.goto('https://playwright.dev/'); const name = await page.innerText('.navbar__title'); expect(name).toBe('Playwright!!'); }); // playwright.config.ts import { PlaywrightTestConfig } from '@playwright/test'; const config: PlaywrightTestConfig = { use: { screenshot: 'only-on-failure', }, }; export default config;"><pre class="notranslate">// failtest.spec.ts import { test, expect } from <span class="pl-s"><span class="pl-pds">'</span>@playwright/test<span class="pl-pds">'</span></span><span class="pl-k">;</span> test(<span class="pl-s"><span class="pl-pds">'</span>基本的なテスト<span class="pl-pds">'</span></span>, async ({ page }) =<span class="pl-k">&gt;</span> { await page.goto(<span class="pl-s"><span class="pl-pds">'</span>https://playwright.dev/<span class="pl-pds">'</span></span>)<span class="pl-k">;</span> const name = await page.innerText(<span class="pl-s"><span class="pl-pds">'</span>.navbar__title<span class="pl-pds">'</span></span>)<span class="pl-k">;</span> expect(name).toBe(<span class="pl-s"><span class="pl-pds">'</span>Playwright!<span class="pl-pds">'</span></span>)<span class="pl-k">;</span> })<span class="pl-k">;</span> test(<span class="pl-s"><span class="pl-pds">'</span>実験的なテスト<span class="pl-pds">'</span></span>, async ({ page }) =<span class="pl-k">&gt;</span> { await page.goto(<span class="pl-s"><span class="pl-pds">'</span>https://playwright.dev/<span class="pl-pds">'</span></span>)<span class="pl-k">;</span> const name = await page.innerText(<span class="pl-s"><span class="pl-pds">'</span>.navbar__title<span class="pl-pds">'</span></span>)<span class="pl-k">;</span> expect(name).toBe(<span class="pl-s"><span class="pl-pds">'</span>Playwright!!<span class="pl-pds">'</span></span>)<span class="pl-k">;</span> })<span class="pl-k">;</span> // playwright.config.ts import { PlaywrightTestConfig } from <span class="pl-s"><span class="pl-pds">'</span>@playwright/test<span class="pl-pds">'</span></span><span class="pl-k">;</span> const config: PlaywrightTestConfig = { use: { screenshot: <span class="pl-s"><span class="pl-pds">'</span>only-on-failure<span class="pl-pds">'</span></span>, }, }<span class="pl-k">;</span> <span class="pl-k">export</span> default config<span class="pl-k">;</span></pre></div> <h3 dir="auto">Relevant log output</h3> <p dir="auto"><em>No response</em></p>
<h3 dir="auto">Feature request</h3> <p dir="auto">Hi,<br> Currently Playwright-test's generated test output directory name is including the test's title, but it can only includes alphanumeric values, all non-ASCII character will be replaced with a hyphen <code class="notranslate">-</code>.</p> <p dir="auto">My tests title is in Japanese so it would be nice if it can include non-ASCII character in the output folder.</p>
1
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Mac 10.11.6</li> <li><strong>TensorFlow installed from (source or binary)</strong>: source</li> <li><strong>TensorFlow version (use command below)</strong>: master</li> <li><strong>Python version</strong>: 3.5</li> <li><strong>Bazel version (if compiling from source)</strong>: 0.5.3-homebrew</li> <li><strong>CUDA/cuDNN version</strong>: NA</li> <li><strong>GPU model and memory</strong>: NA</li> <li><strong>Exact command to reproduce</strong>:</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">It seems that tensorflow cannot work with clang of Mac. And even though I install gcc 4.8 with brew, and set <code class="notranslate">export CC=gcc_4_8_install_dir</code>, compile still failed.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="~ ❯❯❯ clang --version Apple LLVM version 8.0.0 (clang-800.0.42.1) Target: x86_64-apple-darwin15.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin"><pre class="notranslate"><span class="pl-k">~</span> ❯❯❯ clang --version Apple LLVM version 8.0.0 (clang-800.0.42.1) Target: x86_64-apple-darwin15.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin</pre></div> <h3 dir="auto">Source code / logs</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="~/W/g/tensorflow ❯❯❯ bazel test -c opt //tensorflow/contrib/learn:estimators_test WARNING: /Users/facai/Workshop/github/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately. WARNING: /Users/facai/Workshop/github/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately. INFO: Found 1 test target... ERROR: /private/var/tmp/_bazel_facai/c1230027f58dd63b64621179de2d0b21/external/boringssl/BUILD:116:1: C++ compilation of rule '@boringssl//:crypto' failed (Exit 1). error: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Werror,-Wunknown-warning-option] error: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Werror,-Wunknown-warning-option] Target //tensorflow/contrib/learn:estimators_test failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 1.079s, Critical Path: 0.07s Executed 0 out of 1 test: 1 fails to build."><pre class="notranslate"><span class="pl-c1">~</span><span class="pl-c1">/</span><span class="pl-v">W</span><span class="pl-c1">/</span><span class="pl-s1">g</span><span class="pl-c1">/</span><span class="pl-s1">tensorflow</span> ❯❯❯ <span class="pl-s1">bazel</span> <span class="pl-s1">test</span> <span class="pl-c1">-</span><span class="pl-s1">c</span> <span class="pl-s1">opt</span> <span class="pl-c1">//</span><span class="pl-s1">tensorflow</span><span class="pl-c1">/</span><span class="pl-s1">contrib</span><span class="pl-c1">/</span><span class="pl-s1">learn</span>:<span class="pl-s1">estimators_test</span> <span class="pl-v">WARNING</span>: <span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">facai</span><span class="pl-c1">/</span><span class="pl-v">Workshop</span><span class="pl-c1">/</span><span class="pl-s1">github</span><span class="pl-c1">/</span><span class="pl-s1">tensorflow</span><span class="pl-c1">/</span><span class="pl-s1">tensorflow</span><span class="pl-c1">/</span><span class="pl-s1">contrib</span><span class="pl-c1">/</span><span class="pl-s1">learn</span><span class="pl-c1">/</span><span class="pl-v">BUILD</span>:<span class="pl-c1">15</span>:<span class="pl-c1">1</span>: <span class="pl-c1">in</span> <span class="pl-s1">py_library</span> <span class="pl-s1">rule</span> <span class="pl-c1">//</span><span class="pl-s1">tensorflow</span><span class="pl-c1">/</span><span class="pl-s1">contrib</span><span class="pl-c1">/</span><span class="pl-s1">learn</span>:<span class="pl-s1">learn</span>: <span class="pl-s1">target</span> <span class="pl-s">'//tensorflow/contrib/learn:learn'</span> <span class="pl-s1">depends</span> <span class="pl-s1">on</span> <span class="pl-s1">deprecated</span> <span class="pl-s1">target</span> <span class="pl-s">'//tensorflow/contrib/session_bundle:exporter'</span>: <span class="pl-v">No</span> <span class="pl-s1">longer</span> <span class="pl-s1">supported</span>. <span class="pl-v">Switch</span> <span class="pl-s1">to</span> <span class="pl-v">SavedModel</span> <span class="pl-s1">immediately</span>. <span class="pl-v">WARNING</span>: <span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">facai</span><span class="pl-c1">/</span><span class="pl-v">Workshop</span><span class="pl-c1">/</span><span class="pl-s1">github</span><span class="pl-c1">/</span><span class="pl-s1">tensorflow</span><span class="pl-c1">/</span><span class="pl-s1">tensorflow</span><span class="pl-c1">/</span><span class="pl-s1">contrib</span><span class="pl-c1">/</span><span class="pl-s1">learn</span><span class="pl-c1">/</span><span class="pl-v">BUILD</span>:<span class="pl-c1">15</span>:<span class="pl-c1">1</span>: <span class="pl-c1">in</span> <span class="pl-s1">py_library</span> <span class="pl-s1">rule</span> <span class="pl-c1">//</span><span class="pl-s1">tensorflow</span><span class="pl-c1">/</span><span class="pl-s1">contrib</span><span class="pl-c1">/</span><span class="pl-s1">learn</span>:<span class="pl-s1">learn</span>: <span class="pl-s1">target</span> <span class="pl-s">'//tensorflow/contrib/learn:learn'</span> <span class="pl-s1">depends</span> <span class="pl-s1">on</span> <span class="pl-s1">deprecated</span> <span class="pl-s1">target</span> <span class="pl-s">'//tensorflow/contrib/session_bundle:gc'</span>: <span class="pl-v">No</span> <span class="pl-s1">longer</span> <span class="pl-s1">supported</span>. <span class="pl-v">Switch</span> <span class="pl-s1">to</span> <span class="pl-v">SavedModel</span> <span class="pl-s1">immediately</span>. <span class="pl-v">INFO</span>: <span class="pl-v">Found</span> <span class="pl-c1">1</span> <span class="pl-s1">test</span> <span class="pl-s1">target</span>... <span class="pl-v">ERROR</span>: <span class="pl-c1">/</span><span class="pl-s1">private</span><span class="pl-c1">/</span><span class="pl-s1">var</span><span class="pl-c1">/</span><span class="pl-s1">tmp</span><span class="pl-c1">/</span><span class="pl-s1">_bazel_facai</span><span class="pl-c1">/</span><span class="pl-s1">c1230027f58dd63b64621179de2d0b21</span><span class="pl-c1">/</span><span class="pl-s1">external</span><span class="pl-c1">/</span><span class="pl-s1">boringssl</span><span class="pl-c1">/</span><span class="pl-v">BUILD</span>:<span class="pl-c1">116</span>:<span class="pl-c1">1</span>: <span class="pl-v">C</span><span class="pl-c1">+</span><span class="pl-c1">+</span> <span class="pl-s1">compilation</span> <span class="pl-s1">of</span> <span class="pl-s1">rule</span> <span class="pl-s">'@boringssl//:crypto'</span> <span class="pl-en">failed</span> (<span class="pl-v">Exit</span> <span class="pl-c1">1</span>). <span class="pl-s1">error</span>: <span class="pl-s1">unknown</span> <span class="pl-s1">warning</span> <span class="pl-s1">option</span> <span class="pl-s">'-Wunused-but-set-parameter'</span>; <span class="pl-s1">did</span> <span class="pl-s1">you</span> <span class="pl-s1">mean</span> <span class="pl-s">'-Wunused-parameter'</span>? [<span class="pl-c1">-</span><span class="pl-v">Werror</span>,<span class="pl-c1">-</span><span class="pl-v">Wunknown</span><span class="pl-c1">-</span><span class="pl-s1">warning</span><span class="pl-c1">-</span><span class="pl-s1">option</span>] <span class="pl-s1">error</span>: <span class="pl-s1">unknown</span> <span class="pl-s1">warning</span> <span class="pl-s1">option</span> <span class="pl-s">'-Wno-free-nonheap-object'</span>; <span class="pl-s1">did</span> <span class="pl-s1">you</span> <span class="pl-s1">mean</span> <span class="pl-s">'-Wno-sequence-point'</span>? [<span class="pl-c1">-</span><span class="pl-v">Werror</span>,<span class="pl-c1">-</span><span class="pl-v">Wunknown</span><span class="pl-c1">-</span><span class="pl-s1">warning</span><span class="pl-c1">-</span><span class="pl-s1">option</span>] <span class="pl-v">Target</span> <span class="pl-c1">//</span><span class="pl-s1">tensorflow</span><span class="pl-c1">/</span><span class="pl-s1">contrib</span><span class="pl-c1">/</span><span class="pl-s1">learn</span>:<span class="pl-s1">estimators_test</span> <span class="pl-s1">failed</span> <span class="pl-s1">to</span> <span class="pl-s1">build</span> <span class="pl-v">Use</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-s1">verbose_failures</span> <span class="pl-s1">to</span> <span class="pl-s1">see</span> <span class="pl-s1">the</span> <span class="pl-s1">command</span> <span class="pl-s1">lines</span> <span class="pl-s1">of</span> <span class="pl-s1">failed</span> <span class="pl-s1">build</span> <span class="pl-s1">steps</span>. <span class="pl-v">INFO</span>: <span class="pl-v">Elapsed</span> <span class="pl-s1">time</span>: <span class="pl-c1">1.079</span><span class="pl-s1">s</span>, <span class="pl-v">Critical</span> <span class="pl-v">Path</span>: <span class="pl-c1">0.07</span><span class="pl-s1">s</span> <span class="pl-v">Executed</span> <span class="pl-c1">0</span> <span class="pl-s1">out</span> <span class="pl-s1">of</span> <span class="pl-c1">1</span> <span class="pl-s1">test</span>: <span class="pl-c1">1</span> <span class="pl-s1">fails</span> <span class="pl-s1">to</span> <span class="pl-s1">build</span>.</pre></div>
<hr> <h3 dir="auto">System information</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@:~/projects/tensorflow &lt;master&gt;$ cat tf_env.txt == cat /etc/issue =============================================== Darwin mn-mortutay 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64 Mac OS X 10.12.4 == are we in docker ============================================= No == compiler ===================================================== Apple LLVM version 8.1.0 (clang-802.0.42) Target: x86_64-apple-darwin16.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin == uname -a ===================================================== Darwin mn-mortutay 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64 == check pips =================================================== numpy (1.13.1) protobuf (3.3.0) tensorflow (1.2.1) == check for virtualenv ========================================= False == tensorflow import ============================================ tf.VERSION = 1.2.1 tf.GIT_VERSION = v1.2.0-5-g435cdfc tf.COMPILER_VERSION = v1.2.0-5-g435cdfc Sanity check: array([1], dtype=int32) Traceback (most recent call last): File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt; File &quot;tensorflow/__init__.py&quot;, line 24, in &lt;module&gt; from tensorflow.python import * File &quot;tensorflow/python/__init__.py&quot;, line 49, in &lt;module&gt; from tensorflow.python import pywrap_tensorflow File &quot;tensorflow/python/pywrap_tensorflow.py&quot;, line 52, in &lt;module&gt; raise ImportError(msg) ImportError: Traceback (most recent call last): File &quot;tensorflow/python/pywrap_tensorflow.py&quot;, line 41, in &lt;module&gt; from tensorflow.python.pywrap_tensorflow_internal import * ImportError: No module named pywrap_tensorflow_internal Failed to load the native TensorFlow runtime. See https://www.tensorflow.org/install/install_sources#common_installation_problems for some common reasons and solutions. Include the entire stack trace above this error message when asking for help. == env ========================================================== LD_LIBRARY_PATH is unset DYLD_LIBRARY_PATH is unset == nvidia-smi =================================================== tf_env_collect.sh: line 105: nvidia-smi: command not found == cuda libs ==================================================="><pre class="notranslate"><code class="notranslate">@:~/projects/tensorflow &lt;master&gt;$ cat tf_env.txt == cat /etc/issue =============================================== Darwin mn-mortutay 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64 Mac OS X 10.12.4 == are we in docker ============================================= No == compiler ===================================================== Apple LLVM version 8.1.0 (clang-802.0.42) Target: x86_64-apple-darwin16.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin == uname -a ===================================================== Darwin mn-mortutay 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64 == check pips =================================================== numpy (1.13.1) protobuf (3.3.0) tensorflow (1.2.1) == check for virtualenv ========================================= False == tensorflow import ============================================ tf.VERSION = 1.2.1 tf.GIT_VERSION = v1.2.0-5-g435cdfc tf.COMPILER_VERSION = v1.2.0-5-g435cdfc Sanity check: array([1], dtype=int32) Traceback (most recent call last): File "&lt;string&gt;", line 1, in &lt;module&gt; File "tensorflow/__init__.py", line 24, in &lt;module&gt; from tensorflow.python import * File "tensorflow/python/__init__.py", line 49, in &lt;module&gt; from tensorflow.python import pywrap_tensorflow File "tensorflow/python/pywrap_tensorflow.py", line 52, in &lt;module&gt; raise ImportError(msg) ImportError: Traceback (most recent call last): File "tensorflow/python/pywrap_tensorflow.py", line 41, in &lt;module&gt; from tensorflow.python.pywrap_tensorflow_internal import * ImportError: No module named pywrap_tensorflow_internal Failed to load the native TensorFlow runtime. See https://www.tensorflow.org/install/install_sources#common_installation_problems for some common reasons and solutions. Include the entire stack trace above this error message when asking for help. == env ========================================================== LD_LIBRARY_PATH is unset DYLD_LIBRARY_PATH is unset == nvidia-smi =================================================== tf_env_collect.sh: line 105: nvidia-smi: command not found == cuda libs =================================================== </code></pre></div> <p dir="auto">Building from commit:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="* d74f65bac (Yun Peng, 3 hours ago) Make Windows Bazel GPU build work again (#11901)"><pre class="notranslate"><code class="notranslate">* d74f65bac (Yun Peng, 3 hours ago) Make Windows Bazel GPU build work again (#11901) </code></pre></div> <h3 dir="auto">Describe the problem</h3> <p dir="auto">I'm following the instructions for Mac source installation (<a href="https://www.tensorflow.org/install/install_sources" rel="nofollow">https://www.tensorflow.org/install/install_sources</a>, "Prepare environment for Mac OS" and then "Build the pip package") but I'm running into issues with BoringSSL.</p> <p dir="auto">It looks like the <code class="notranslate">-Wunused-but-set-parameter</code> and <code class="notranslate">-Wno-free-nonheap-object</code> flags are causing the compilation to fail, since <code class="notranslate">clang</code> does not support them.</p> <p dir="auto">Expected behavior: The build system should detect this and handle it correctly, eg. by not using the un-available flags</p> <p dir="auto">Actual behavior: Error / fails to build</p> <h3 dir="auto">Source code / logs</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@:~/projects/tensorflow &lt;master&gt;$ bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package WARNING: /Users/mortutay/projects/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately. WARNING: /Users/mortutay/projects/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately. INFO: Found 1 target... INFO: From Compiling external/protobuf_archive/python/google/protobuf/internal/api_implementation.cc: warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option] warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option] 2 warnings generated. INFO: From Compiling external/swig/Source/Swig/typemap.c [for host]: warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option] warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option] 2 warnings generated. INFO: From Compiling external/grpc/src/core/lib/debug/trace.c: warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option] warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option] 2 warnings generated. INFO: From Compiling external/grpc/src/cpp/codegen/codegen_init.cc: warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option] warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option] 2 warnings generated. INFO: From Compiling external/grpc/src/core/ext/transport/chttp2/alpn/alpn.c: warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option] warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option] 2 warnings generated. ERROR: /private/var/tmp/_bazel_mortutay/dacb21c644505cd819865fa365d2b69e/external/boringssl/BUILD:116:1: C++ compilation of rule '@boringssl//:crypto' failed (Exit 1). error: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Werror,-Wunknown-warning-option] error: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Werror,-Wunknown-warning-option] Target //tensorflow/tools/pip_package:build_pip_package failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 2.829s, Critical Path: 0.91s"><pre class="notranslate"><code class="notranslate">@:~/projects/tensorflow &lt;master&gt;$ bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package WARNING: /Users/mortutay/projects/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately. WARNING: /Users/mortutay/projects/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately. INFO: Found 1 target... INFO: From Compiling external/protobuf_archive/python/google/protobuf/internal/api_implementation.cc: warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option] warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option] 2 warnings generated. INFO: From Compiling external/swig/Source/Swig/typemap.c [for host]: warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option] warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option] 2 warnings generated. INFO: From Compiling external/grpc/src/core/lib/debug/trace.c: warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option] warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option] 2 warnings generated. INFO: From Compiling external/grpc/src/cpp/codegen/codegen_init.cc: warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option] warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option] 2 warnings generated. INFO: From Compiling external/grpc/src/core/ext/transport/chttp2/alpn/alpn.c: warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option] warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option] 2 warnings generated. ERROR: /private/var/tmp/_bazel_mortutay/dacb21c644505cd819865fa365d2b69e/external/boringssl/BUILD:116:1: C++ compilation of rule '@boringssl//:crypto' failed (Exit 1). error: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Werror,-Wunknown-warning-option] error: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Werror,-Wunknown-warning-option] Target //tensorflow/tools/pip_package:build_pip_package failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 2.829s, Critical Path: 0.91s </code></pre></div>
1
<p dir="auto">I am using v0.1.2-3757-g063ac5b on ArchLinux and ~/.julia is empty. I get the following error when updating :</p> <p dir="auto">julia&gt; Pkg.update()<br> INFO: Initializing package repository /home/stef/.julia.<br> INFO: Cloning METADATA from git://github.com/JuliaLang/METADATA.jl<br> ERROR: gitenv not defined<br> in cmd at git.jl:17<br> in run at git.jl:18<br> in set_remote_url at git.jl:83<br> in anonymous at no file:45<br> in cd at file.jl:25<br> in cd at pkg/dir.jl:30<br> in init at pkg/dir.jl:42<br> in cd at pkg/dir.jl:27<br> in update at pkg.jl:173</p>
<p dir="auto">Working with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/edmondztt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/edmondztt">@edmondztt</a>, I was try to get IJulia running on his Windows 8 laptop, and we immediately ran into a problem with the latest 64-bit Julia binary: running <code class="notranslate">Pkg.update()</code> gives</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: could not start process `rm -rf 'C:\Users\Edmond\AppData\Roaming\Julia\packages'`: no such file or directory (ENOENT)"><pre class="notranslate"><code class="notranslate">ERROR: could not start process `rm -rf 'C:\Users\Edmond\AppData\Roaming\Julia\packages'`: no such file or directory (ENOENT) </code></pre></div> <p dir="auto">in <code class="notranslate">init</code> at <code class="notranslate">pkg/dir.jl:49</code>.</p> <p dir="auto">It looks like Julia is trying to run <code class="notranslate">rm</code>, which doesn't exist on Windows. Am I missing something? cc: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vtjnash/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vtjnash">@vtjnash</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/StefanKarpinski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/StefanKarpinski">@StefanKarpinski</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/staticfloat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/staticfloat">@staticfloat</a></p>
1
<p dir="auto">I get an ICE if I checkout <a href="https://github.com/andrew-d/tinycdb-rs/commit/a0f2ed6303bd389a2817e38851f1919b857eeec2">this commit</a> (note - library is a work in progress, but i committed exactly where I got the ICE) and run <code class="notranslate">cargo test</code>. The error is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;std macros&gt;:8:12: 154:35 error: cannot apply unary operator `!` to type `&amp;[u8]` &lt;std macros&gt;:8 if !$cond { &lt;std macros&gt;:9 fail!($($arg),+) &lt;std macros&gt;:10 } &lt;std macros&gt;:11 ); &lt;std macros&gt;:12 ) error: internal compiler error: unexpected failure note: the compiler hit an unexpected failure path. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' failed at 'index out of bounds: the len is 12 but the index is 12', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/lib.rs:1"><pre class="notranslate"><code class="notranslate">&lt;std macros&gt;:8:12: 154:35 error: cannot apply unary operator `!` to type `&amp;[u8]` &lt;std macros&gt;:8 if !$cond { &lt;std macros&gt;:9 fail!($($arg),+) &lt;std macros&gt;:10 } &lt;std macros&gt;:11 ); &lt;std macros&gt;:12 ) error: internal compiler error: unexpected failure note: the compiler hit an unexpected failure path. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' failed at 'index out of bounds: the len is 12 but the index is 12', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/lib.rs:1 </code></pre></div> <p dir="auto">I'm running today's nightly build of rustc (<code class="notranslate">rustc 0.12.0-pre-nightly (d30001d04 2014-08-16 00:46:15 +0000)</code>), and using a recent-ish version of Cargo (<code class="notranslate">cargo 0.0.1-pre-nightly (b272701 2014-08-14 23:16:18 -0700)</code>).</p> <p dir="auto">Running with <code class="notranslate">RUST_BACKTRACE=1</code> gives:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="stack backtrace: 1: 0x7f196752fa60 - rt::backtrace::imp::write::h915f70b87af05b8cmxr 2: 0x7f1967532b00 - failure::on_fail::h3bfbb66e809f10e63Sr 3: 0x7f1967d09ee0 - unwind::begin_unwind_inner::hdda436f89ca4acd6Zhe 4: 0x7f1967d09bd0 - unwind::begin_unwind_fmt::hb8e515de17081e67pfe 5: 0x7f1967d09b90 - rust_begin_unwind 6: 0x7f1967d4fa90 - failure::begin_unwind::h1c162896c5429cfbYDk 7: 0x7f1967d53730 - failure::fail_bounds_check::h8e9ee7819434fe19aCk 8: 0x7f1966142c80 - codemap::FileMap::get_line::h19b3f017dda66d96qzE 9: 0x7f196614d950 - diagnostic::emit::h3e86c6133df605f2j0F 10: 0x7f196614a1c0 - diagnostic::EmitterWriter.Emitter::emit::h58a90c7e6af80dd0QVF 11: 0x7f19661485f0 - diagnostic::Handler::emit::h2e5607c086da9d01fDF 12: 0x7f1966141480 - diagnostic::SpanHandler::span_err::ha9729a9b17106068urF 13: 0x7f19686531a0 - middle::typeck::infer::InferCtxt&lt;'a&gt;::type_error_message_str_with_expected::hc33c9099d20b534atde 14: 0x7f1968701930 - middle::typeck::infer::InferCtxt&lt;'a&gt;::type_error_message::h6af320b34ce8ad0eUke 15: 0x7f1968735220 - middle::typeck::check::check_expr_with_unifier::check_user_unop::closure.123804 16: 0x7f1968734760 - middle::typeck::check::check_expr_with_unifier::lookup_op_method::hb7de34575e112e04HbW 17: 0x7f19687142c0 - middle::typeck::check::check_expr_with_unifier::check_user_unop::h7fb43db6395c7721BqW 18: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV 19: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV 20: 0x7f19687656a0 - middle::typeck::check::check_stmt::h139e8f1cea959a0502X 21: 0x7f19686cf610 - middle::typeck::check::check_block_with_expected::h32b2d067c318c94ad7X 22: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV 23: 0x7f19686cf610 - middle::typeck::check::check_block_with_expected::h32b2d067c318c94ad7X 24: 0x7f19686cb3a0 - middle::typeck::check::check_fn::h11b95bd8147ec11f3dT 25: 0x7f1968714de0 - middle::typeck::check::check_expr_with_unifier::check_expr_fn::h0589615023e0987dLvW 26: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV 27: 0x7f19687042c0 - middle::typeck::check::check_argument_types::ha6ecc6e8415348b0xmV 28: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV 29: 0x7f19687656a0 - middle::typeck::check::check_stmt::h139e8f1cea959a0502X 30: 0x7f19686cf610 - middle::typeck::check::check_block_with_expected::h32b2d067c318c94ad7X 31: 0x7f19686cb3a0 - middle::typeck::check::check_fn::h11b95bd8147ec11f3dT 32: 0x7f19686cb0c0 - middle::typeck::check::check_bare_fn::h0b6077c308262260I2S 33: 0x7f19686c4220 - middle::typeck::check::check_item::habadeb79d560f4d0QBT 34: 0x7f19686c5f10 - visit::walk_item::h15187993146872906571 35: 0x7f19686c5f10 - visit::walk_item::h15187993146872906571 36: 0x7f19686caec0 - middle::typeck::check::check_item_types::h63a60aa7829eefedZ1S 37: 0x7f19680e3300 - util::common::time::h2328891505148832078 38: 0x7f19688d8b50 - middle::typeck::check_crate::h266f9d5cd5ece381vFk 39: 0x7f19689a6180 - driver::driver::phase_3_run_analysis_passes::h53949348bfafe8ffJfz 40: 0x7f19689a12c0 - driver::driver::compile_input::hd2d14ec13437de9cP1y 41: 0x7f1968a4e150 - driver::run_compiler::he03a385a4310d17aJzC 42: 0x7f1968a4e060 - driver::main_args::closure.137214 43: 0x7f1968a60a30 - task::TaskBuilder&lt;S&gt;::try_future::closure.138375 44: 0x7f1968a60830 - task::TaskBuilder&lt;S&gt;::spawn_internal::closure.138352 45: 0x7f19694afb30 - task::spawn_opts::closure.8325 46: 0x7f1967d61f70 - rust_try_inner 47: 0x7f1967d61f60 - rust_try 48: 0x7f1967d07540 - unwind::try::hc4ccde5733fe2f0cf6d 49: 0x7f1967d072e0 - task::Task::run::h4d1bcb29f70db0c3xcd 50: 0x7f19694af8f0 - task::spawn_opts::closure.8271 51: 0x7f1967d09120 - thread::thread_start::h8729f7243e18bd84jBd 52: 0x7f1966fbf060 - start_thread 53: 0x7f19679d8489 - __clone 54: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">stack backtrace: 1: 0x7f196752fa60 - rt::backtrace::imp::write::h915f70b87af05b8cmxr 2: 0x7f1967532b00 - failure::on_fail::h3bfbb66e809f10e63Sr 3: 0x7f1967d09ee0 - unwind::begin_unwind_inner::hdda436f89ca4acd6Zhe 4: 0x7f1967d09bd0 - unwind::begin_unwind_fmt::hb8e515de17081e67pfe 5: 0x7f1967d09b90 - rust_begin_unwind 6: 0x7f1967d4fa90 - failure::begin_unwind::h1c162896c5429cfbYDk 7: 0x7f1967d53730 - failure::fail_bounds_check::h8e9ee7819434fe19aCk 8: 0x7f1966142c80 - codemap::FileMap::get_line::h19b3f017dda66d96qzE 9: 0x7f196614d950 - diagnostic::emit::h3e86c6133df605f2j0F 10: 0x7f196614a1c0 - diagnostic::EmitterWriter.Emitter::emit::h58a90c7e6af80dd0QVF 11: 0x7f19661485f0 - diagnostic::Handler::emit::h2e5607c086da9d01fDF 12: 0x7f1966141480 - diagnostic::SpanHandler::span_err::ha9729a9b17106068urF 13: 0x7f19686531a0 - middle::typeck::infer::InferCtxt&lt;'a&gt;::type_error_message_str_with_expected::hc33c9099d20b534atde 14: 0x7f1968701930 - middle::typeck::infer::InferCtxt&lt;'a&gt;::type_error_message::h6af320b34ce8ad0eUke 15: 0x7f1968735220 - middle::typeck::check::check_expr_with_unifier::check_user_unop::closure.123804 16: 0x7f1968734760 - middle::typeck::check::check_expr_with_unifier::lookup_op_method::hb7de34575e112e04HbW 17: 0x7f19687142c0 - middle::typeck::check::check_expr_with_unifier::check_user_unop::h7fb43db6395c7721BqW 18: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV 19: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV 20: 0x7f19687656a0 - middle::typeck::check::check_stmt::h139e8f1cea959a0502X 21: 0x7f19686cf610 - middle::typeck::check::check_block_with_expected::h32b2d067c318c94ad7X 22: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV 23: 0x7f19686cf610 - middle::typeck::check::check_block_with_expected::h32b2d067c318c94ad7X 24: 0x7f19686cb3a0 - middle::typeck::check::check_fn::h11b95bd8147ec11f3dT 25: 0x7f1968714de0 - middle::typeck::check::check_expr_with_unifier::check_expr_fn::h0589615023e0987dLvW 26: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV 27: 0x7f19687042c0 - middle::typeck::check::check_argument_types::ha6ecc6e8415348b0xmV 28: 0x7f1968706960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV 29: 0x7f19687656a0 - middle::typeck::check::check_stmt::h139e8f1cea959a0502X 30: 0x7f19686cf610 - middle::typeck::check::check_block_with_expected::h32b2d067c318c94ad7X 31: 0x7f19686cb3a0 - middle::typeck::check::check_fn::h11b95bd8147ec11f3dT 32: 0x7f19686cb0c0 - middle::typeck::check::check_bare_fn::h0b6077c308262260I2S 33: 0x7f19686c4220 - middle::typeck::check::check_item::habadeb79d560f4d0QBT 34: 0x7f19686c5f10 - visit::walk_item::h15187993146872906571 35: 0x7f19686c5f10 - visit::walk_item::h15187993146872906571 36: 0x7f19686caec0 - middle::typeck::check::check_item_types::h63a60aa7829eefedZ1S 37: 0x7f19680e3300 - util::common::time::h2328891505148832078 38: 0x7f19688d8b50 - middle::typeck::check_crate::h266f9d5cd5ece381vFk 39: 0x7f19689a6180 - driver::driver::phase_3_run_analysis_passes::h53949348bfafe8ffJfz 40: 0x7f19689a12c0 - driver::driver::compile_input::hd2d14ec13437de9cP1y 41: 0x7f1968a4e150 - driver::run_compiler::he03a385a4310d17aJzC 42: 0x7f1968a4e060 - driver::main_args::closure.137214 43: 0x7f1968a60a30 - task::TaskBuilder&lt;S&gt;::try_future::closure.138375 44: 0x7f1968a60830 - task::TaskBuilder&lt;S&gt;::spawn_internal::closure.138352 45: 0x7f19694afb30 - task::spawn_opts::closure.8325 46: 0x7f1967d61f70 - rust_try_inner 47: 0x7f1967d61f60 - rust_try 48: 0x7f1967d07540 - unwind::try::hc4ccde5733fe2f0cf6d 49: 0x7f1967d072e0 - task::Task::run::h4d1bcb29f70db0c3xcd 50: 0x7f19694af8f0 - task::spawn_opts::closure.8271 51: 0x7f1967d09120 - thread::thread_start::h8729f7243e18bd84jBd 52: 0x7f1966fbf060 - start_thread 53: 0x7f19679d8489 - __clone 54: 0x0 - &lt;unknown&gt; </code></pre></div>
<h2 dir="auto"><em>Believed</em> current test case</h2> <p dir="auto">(pnkfelix says: "if you are looking at this bug, please try to keep this test up-to-date ... potentially by checking the newest linked dupes in the comment feed below.")</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Very // sensitive pub struct BytePos(pub u32); // to particular // line numberings / offsets fn main() { let x = BytePos(1); assert!(x, x); }"><pre class="notranslate"><span class="pl-c">// Very</span> <span class="pl-c">// sensitive</span> <span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">BytePos</span><span class="pl-kos">(</span><span class="pl-k">pub</span> <span class="pl-smi">u32</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// to particular</span> <span class="pl-c">// line numberings / offsets</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> x = <span class="pl-v">BytePos</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">assert</span><span class="pl-en">!</span><span class="pl-kos">(</span>x, x<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <h2 dir="auto">Original Bug Filed</h2> <p dir="auto">Script to reproduce:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() { // if any comment line is removed, the ICE disappears // adding more lines keep the ICE alive // // // // // // // // // assert!(vec!(1.0), vec!(1.0)) }"><pre class="notranslate"><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-c">// if any comment line is removed, the ICE disappears</span> <span class="pl-c">// adding more lines keep the ICE alive</span> <span class="pl-c">//</span> <span class="pl-c">//</span> <span class="pl-c">//</span> <span class="pl-c">//</span> <span class="pl-c">//</span> <span class="pl-c">//</span> <span class="pl-c">//</span> <span class="pl-c">//</span> <span class="pl-c">//</span> <span class="pl-en">assert</span><span class="pl-en">!</span><span class="pl-kos">(</span>vec!<span class="pl-kos">(</span><span class="pl-c1">1.0</span><span class="pl-kos">)</span>, vec!<span class="pl-kos">(</span><span class="pl-c1">1.0</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Backtrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ RUST_BACKTRACE=1 rustc ice.rs &lt;std macros&gt;:8:12: 13:23 error: cannot apply unary operator `!` to type `std::vec::Vec&lt;&lt;generic float #0&gt;&gt;` &lt;std macros&gt;:8 if !$cond { &lt;std macros&gt;:9 fail!($($arg),+) &lt;std macros&gt;:10 } &lt;std macros&gt;:11 ); &lt;std macros&gt;:12 ) error: internal compiler error: unexpected failure note: the compiler hit an unexpected failure path. this is a bug. note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' failed at 'index out of bounds: the len is 12 but the index is 12', /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/libsyntax/lib.rs:1 stack backtrace: 1: 0x7f0c3dda8180 - rt::backtrace::imp::write::h706b65acfe967902xTF::v0.11.pre 2: 0x7f0c3dd11730 - rt::unwind::begin_unwind_inner::hcc57db58853efcfdAtF::v0.11.pre 3: 0x7f0c3dda7e10 - &lt;unknown&gt; 4: 0x7f0c3dda7d30 - rust_fail_bounds_check 5: 0x7f0c3ddb9a90 - failure::fail_bounds_check::h8ed58f060b870dd6EwF::v0.11.pre 6: 0x7f0c3d1d80f0 - codemap::FileMap::get_line::hbf104ad3bfda6f77Drd::v0.11.pre 7: 0x7f0c3d1d4e90 - &lt;unknown&gt; 8: 0x7f0c3d1ccd40 - diagnostic::EmitterWriter.Emitter::emit::h7c42f3840a82760aQcc::v0.11.pre 9: 0x7f0c3d1c9f90 - diagnostic::Handler::emit::h971cc5635478154dV0b::v0.11.pre 10: 0x7f0c3d1c8ec0 - diagnostic::SpanHandler::span_err::h3735f152282993cc3Sb::v0.11.pre 11: 0x7f0c3eadda90 - middle::typeck::infer::InferCtxt&lt;'a&gt;::type_error_message_str_with_expected::he1b302cd7901cc2apJq::v0.11.pre 12: 0x7f0c3eb7f0e0 - middle::typeck::infer::InferCtxt&lt;'a&gt;::type_error_message::h6e536a01d806a7af7Qq::v0.11.pre 13: 0x7f0c3eb8d9f0 - &lt;unknown&gt; 14: 0x7f0c3eb8b250 - &lt;unknown&gt; 15: 0x7f0c3eb8d650 - &lt;unknown&gt; 16: 0x7f0c3eb7fb20 - &lt;unknown&gt; 17: 0x7f0c3eb7fb20 - &lt;unknown&gt; 18: 0x7f0c3eb5fd00 - middle::typeck::check::check_block_with_expected::hec61a0d86b711c5ck7c::v0.11.pre 19: 0x7f0c3eb5af90 - &lt;unknown&gt; 20: 0x7f0c3eb5ad30 - &lt;unknown&gt; 21: 0x7f0c3eb53790 - middle::typeck::check::check_item::he7c19452bac809220R8::v0.11.pre 22: 0x7f0c3eb5ab30 - middle::typeck::check::check_item_types::hca38e25e2d3c1969ek8::v0.11.pre 23: 0x7f0c3ec9d280 - &lt;unknown&gt; 24: 0x7f0c3ec9c090 - middle::typeck::check_crate::h540b9b663571145fQgw::v0.11.pre 25: 0x7f0c3f0e8e90 - driver::driver::phase_3_run_analysis_passes::h129732fc31300f8bbei::v0.11.pre 26: 0x7f0c3f0eef10 - driver::driver::compile_input::h36b4d97be6c65511gEi::v0.11.pre 27: 0x7f0c3f1143c0 - run_compiler::hd111892d49d8dfe1saq::v0.11.pre 28: 0x7f0c3f12ffb0 - &lt;unknown&gt; 29: 0x7f0c3f12e860 - &lt;unknown&gt; 30: 0x7f0c3f129020 - &lt;unknown&gt; 31: 0x7f0c3e2ce670 - &lt;unknown&gt; 32: 0x7f0c3dd9f430 - &lt;unknown&gt; 33: 0x7f0c3ddc04a0 - rust_try 34: 0x7f0c3dd9f270 - rt::task::Task::run::hd2e6ec18f16de5eeiiD::v0.11.pre 35: 0x7f0c3e2ce440 - &lt;unknown&gt; 36: 0x7f0c3dda6c60 - &lt;unknown&gt; 37: 0x7f0c3ba9c000 - start_thread 38: 0x7f0c3d9e43d9 - clone 39: 0x0 - &lt;unknown&gt;"><pre class="notranslate"><code class="notranslate">$ RUST_BACKTRACE=1 rustc ice.rs &lt;std macros&gt;:8:12: 13:23 error: cannot apply unary operator `!` to type `std::vec::Vec&lt;&lt;generic float #0&gt;&gt;` &lt;std macros&gt;:8 if !$cond { &lt;std macros&gt;:9 fail!($($arg),+) &lt;std macros&gt;:10 } &lt;std macros&gt;:11 ); &lt;std macros&gt;:12 ) error: internal compiler error: unexpected failure note: the compiler hit an unexpected failure path. this is a bug. note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace task 'rustc' failed at 'index out of bounds: the len is 12 but the index is 12', /var/tmp/paludis/build/dev-lang-rust-scm/work/rust-scm/src/libsyntax/lib.rs:1 stack backtrace: 1: 0x7f0c3dda8180 - rt::backtrace::imp::write::h706b65acfe967902xTF::v0.11.pre 2: 0x7f0c3dd11730 - rt::unwind::begin_unwind_inner::hcc57db58853efcfdAtF::v0.11.pre 3: 0x7f0c3dda7e10 - &lt;unknown&gt; 4: 0x7f0c3dda7d30 - rust_fail_bounds_check 5: 0x7f0c3ddb9a90 - failure::fail_bounds_check::h8ed58f060b870dd6EwF::v0.11.pre 6: 0x7f0c3d1d80f0 - codemap::FileMap::get_line::hbf104ad3bfda6f77Drd::v0.11.pre 7: 0x7f0c3d1d4e90 - &lt;unknown&gt; 8: 0x7f0c3d1ccd40 - diagnostic::EmitterWriter.Emitter::emit::h7c42f3840a82760aQcc::v0.11.pre 9: 0x7f0c3d1c9f90 - diagnostic::Handler::emit::h971cc5635478154dV0b::v0.11.pre 10: 0x7f0c3d1c8ec0 - diagnostic::SpanHandler::span_err::h3735f152282993cc3Sb::v0.11.pre 11: 0x7f0c3eadda90 - middle::typeck::infer::InferCtxt&lt;'a&gt;::type_error_message_str_with_expected::he1b302cd7901cc2apJq::v0.11.pre 12: 0x7f0c3eb7f0e0 - middle::typeck::infer::InferCtxt&lt;'a&gt;::type_error_message::h6e536a01d806a7af7Qq::v0.11.pre 13: 0x7f0c3eb8d9f0 - &lt;unknown&gt; 14: 0x7f0c3eb8b250 - &lt;unknown&gt; 15: 0x7f0c3eb8d650 - &lt;unknown&gt; 16: 0x7f0c3eb7fb20 - &lt;unknown&gt; 17: 0x7f0c3eb7fb20 - &lt;unknown&gt; 18: 0x7f0c3eb5fd00 - middle::typeck::check::check_block_with_expected::hec61a0d86b711c5ck7c::v0.11.pre 19: 0x7f0c3eb5af90 - &lt;unknown&gt; 20: 0x7f0c3eb5ad30 - &lt;unknown&gt; 21: 0x7f0c3eb53790 - middle::typeck::check::check_item::he7c19452bac809220R8::v0.11.pre 22: 0x7f0c3eb5ab30 - middle::typeck::check::check_item_types::hca38e25e2d3c1969ek8::v0.11.pre 23: 0x7f0c3ec9d280 - &lt;unknown&gt; 24: 0x7f0c3ec9c090 - middle::typeck::check_crate::h540b9b663571145fQgw::v0.11.pre 25: 0x7f0c3f0e8e90 - driver::driver::phase_3_run_analysis_passes::h129732fc31300f8bbei::v0.11.pre 26: 0x7f0c3f0eef10 - driver::driver::compile_input::h36b4d97be6c65511gEi::v0.11.pre 27: 0x7f0c3f1143c0 - run_compiler::hd111892d49d8dfe1saq::v0.11.pre 28: 0x7f0c3f12ffb0 - &lt;unknown&gt; 29: 0x7f0c3f12e860 - &lt;unknown&gt; 30: 0x7f0c3f129020 - &lt;unknown&gt; 31: 0x7f0c3e2ce670 - &lt;unknown&gt; 32: 0x7f0c3dd9f430 - &lt;unknown&gt; 33: 0x7f0c3ddc04a0 - rust_try 34: 0x7f0c3dd9f270 - rt::task::Task::run::hd2e6ec18f16de5eeiiD::v0.11.pre 35: 0x7f0c3e2ce440 - &lt;unknown&gt; 36: 0x7f0c3dda6c60 - &lt;unknown&gt; 37: 0x7f0c3ba9c000 - start_thread 38: 0x7f0c3d9e43d9 - clone 39: 0x0 - &lt;unknown&gt; </code></pre></div> <p dir="auto">Version:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc --version rustc 0.11-pre (1001635 2014-05-10 09:56:34 -0700) host: x86_64-unknown-linux-gnu"><pre class="notranslate"><code class="notranslate">$ rustc --version rustc 0.11-pre (1001635 2014-05-10 09:56:34 -0700) host: x86_64-unknown-linux-gnu </code></pre></div>
1
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Hello ! This is my first post on this Github, and first, I realy want to congratulate mrdoob and all of contributors for this awesome project.<br> This isnt an real issue, because i found a way to do what i wanted.</p> <p dir="auto">So the problem is that TextureLoader and more precisely ImageLoader doesnt allow to add custom headers to get an image from an url. I needed to add headers because in my application, i get all textures from an api that authenticate users on each request with a JWT Token.</p> <p dir="auto">To succeed I decided to change TextureLoader and ImageLoader load function this way :</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/** * @author mrdoob / http://mrdoob.com/ */ function ImageLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : DefaultLoadingManager; } Object.assign( ImageLoader.prototype, { load: function ( url, onLoad, onProgress, onError, customHeaders ) { console.log(url, 'TEST LOAD'); if ( url === undefined ) url = ''; if ( this.path !== undefined ) url = this.path + url; var scope = this; var cached = Cache.get( url ); if ( cached !== undefined ) { scope.manager.itemStart( url ); setTimeout( function () { if ( onLoad ) onLoad( cached ); scope.manager.itemEnd( url ); }, 0 ); return cached; } var image = document.createElementNS( 'http://www.w3.org/1999/xhtml', 'img' ); image.addEventListener( 'load', function () { Cache.add( url, this ); if ( onLoad ) onLoad( this ); scope.manager.itemEnd( url ); }, false ); // image.addEventListener( 'progress', function ( event ) { // if ( onProgress ) onProgress( event ); // }, false ); image.addEventListener( 'error', function ( event ) { if ( onError ) onError( event ); scope.manager.itemEnd( url ); scope.manager.itemError( url ); }, false ); if ( url.substr( 0, 5 ) !== 'data:' ) { if ( this.crossOrigin !== undefined ) image.crossOrigin = this.crossOrigin; } scope.manager.itemStart( url ); console.log(customHeaders); const options = { headers: customHeaders }; fetch(url, options) .then(res =&gt; res.blob()) .then(blob =&gt; { image.src = URL.createObjectURL(blob); }); // image.src = url; return image; }, setCrossOrigin: function ( value ) { this.crossOrigin = value; return this; }, setPath: function ( value ) { this.path = value; return this; } } );"><pre class="notranslate"><span class="pl-c">/**</span> <span class="pl-c">* <span class="pl-k">@author</span> mrdoob / http://mrdoob.com/</span> <span class="pl-c">*/</span> <span class="pl-k">function</span> <span class="pl-v">ImageLoader</span><span class="pl-kos">(</span> <span class="pl-s1">manager</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">manager</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span> <span class="pl-s1">manager</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span> <span class="pl-kos">)</span> ? <span class="pl-s1">manager</span> : <span class="pl-v">DefaultLoadingManager</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">assign</span><span class="pl-kos">(</span> <span class="pl-v">ImageLoader</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-en">load</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span> <span class="pl-s1">url</span><span class="pl-kos">,</span> <span class="pl-s1">onLoad</span><span class="pl-kos">,</span> <span class="pl-s1">onProgress</span><span class="pl-kos">,</span> <span class="pl-s1">onError</span><span class="pl-kos">,</span> <span class="pl-s1">customHeaders</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">url</span><span class="pl-kos">,</span> <span class="pl-s">'TEST LOAD'</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-s1">url</span> <span class="pl-c1">===</span> <span class="pl-c1">undefined</span> <span class="pl-kos">)</span> <span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s">''</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">path</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span> <span class="pl-kos">)</span> <span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">path</span> <span class="pl-c1">+</span> <span class="pl-s1">url</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">scope</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">cached</span> <span class="pl-c1">=</span> <span class="pl-v">Cache</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span> <span class="pl-s1">url</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-s1">cached</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">scope</span><span class="pl-kos">.</span><span class="pl-c1">manager</span><span class="pl-kos">.</span><span class="pl-en">itemStart</span><span class="pl-kos">(</span> <span class="pl-s1">url</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">setTimeout</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-k">if</span> <span class="pl-kos">(</span> <span class="pl-s1">onLoad</span> <span class="pl-kos">)</span> <span class="pl-s1">onLoad</span><span class="pl-kos">(</span> <span class="pl-s1">cached</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">scope</span><span class="pl-kos">.</span><span class="pl-c1">manager</span><span class="pl-kos">.</span><span class="pl-en">itemEnd</span><span class="pl-kos">(</span> <span class="pl-s1">url</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">0</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">cached</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-s1">image</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElementNS</span><span class="pl-kos">(</span> <span class="pl-s">'http://www.w3.org/1999/xhtml'</span><span class="pl-kos">,</span> <span class="pl-s">'img'</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">image</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span> <span class="pl-s">'load'</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-v">Cache</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span> <span class="pl-s1">url</span><span class="pl-kos">,</span> <span class="pl-smi">this</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-s1">onLoad</span> <span class="pl-kos">)</span> <span class="pl-s1">onLoad</span><span class="pl-kos">(</span> <span class="pl-smi">this</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">scope</span><span class="pl-kos">.</span><span class="pl-c1">manager</span><span class="pl-kos">.</span><span class="pl-en">itemEnd</span><span class="pl-kos">(</span> <span class="pl-s1">url</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">false</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// image.addEventListener( 'progress', function ( event ) {</span> <span class="pl-c">// if ( onProgress ) onProgress( event );</span> <span class="pl-c">// }, false );</span> <span class="pl-s1">image</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span> <span class="pl-s">'error'</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span> <span class="pl-s1">event</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-s1">onError</span> <span class="pl-kos">)</span> <span class="pl-s1">onError</span><span class="pl-kos">(</span> <span class="pl-s1">event</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">scope</span><span class="pl-kos">.</span><span class="pl-c1">manager</span><span class="pl-kos">.</span><span class="pl-en">itemEnd</span><span class="pl-kos">(</span> <span class="pl-s1">url</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">scope</span><span class="pl-kos">.</span><span class="pl-c1">manager</span><span class="pl-kos">.</span><span class="pl-en">itemError</span><span class="pl-kos">(</span> <span class="pl-s1">url</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">false</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-s1">url</span><span class="pl-kos">.</span><span class="pl-en">substr</span><span class="pl-kos">(</span> <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">5</span> <span class="pl-kos">)</span> <span class="pl-c1">!==</span> <span class="pl-s">'data:'</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">this</span><span class="pl-kos">.</span><span class="pl-c1">crossOrigin</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span> <span class="pl-kos">)</span> <span class="pl-s1">image</span><span class="pl-kos">.</span><span class="pl-c1">crossOrigin</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">crossOrigin</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">scope</span><span class="pl-kos">.</span><span class="pl-c1">manager</span><span class="pl-kos">.</span><span class="pl-en">itemStart</span><span class="pl-kos">(</span> <span class="pl-s1">url</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">customHeaders</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">options</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">headers</span>: <span class="pl-s1">customHeaders</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">,</span> <span class="pl-s1">options</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-s1">res</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-en">blob</span><span class="pl-kos">(</span><span class="pl-kos">)</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-s1">blob</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">image</span><span class="pl-kos">.</span><span class="pl-c1">src</span> <span class="pl-c1">=</span> <span class="pl-c1">URL</span><span class="pl-kos">.</span><span class="pl-en">createObjectURL</span><span class="pl-kos">(</span><span class="pl-s1">blob</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-c">// image.src = url;</span> <span class="pl-k">return</span> <span class="pl-s1">image</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">setCrossOrigin</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span> <span class="pl-s1">value</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">crossOrigin</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">setPath</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span> <span class="pl-s1">value</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">path</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-smi">this</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> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r110</li> <li>[x ] old version</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<p dir="auto">Hi, this is my first post so first I want to thank mrdoob and all the contributors for this fantastic library.</p> <h5 dir="auto">Description of the problem</h5> <p dir="auto">I need to send specific headers with my TextureLoader request (XMLHttpRequest.setRequestHeader()) but I do not see any way to do that (I'm currently using r80).</p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r80</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> IOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
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/zeit/next.js/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">Please visit <a href="https://codesandbox.io/s/325y47xk36" rel="nofollow">https://codesandbox.io/s/325y47xk36</a> for a code sample. It's a basic implementation of a menu using <a href="https://react.semantic-ui.com" rel="nofollow">https://react.semantic-ui.com</a>.<br> It creates a meta viewport as can be seen in the source code the rendered page: <code class="notranslate">&lt;meta name="viewport" content="width=device-width,initial-scale=1"&gt;</code><br> The above fix was released in <strong>semantic-ui-react v 0.76.0</strong>.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto"><code class="notranslate">&lt;meta name="viewport" content="width=device-width,initial-scale=1"&gt;</code> is not present.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Clone example with-semantic-ui</li> <li>Upgrade "semantic-ui-react": "^0.76.0" in package.json</li> <li>npm install</li> <li>npm run dev</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">meta viewport being added by semantic-react-ui gives the responsive character to a lot of elements. Without this, any semantic app using semantic-ui-react and next.js, we are missing responsiveness.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>node</td> <td>8.9.0</td> </tr> <tr> <td>OS</td> <td>Mac</td> </tr> <tr> <td>browser</td> <td>Chrome-latest</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table> <p dir="auto">Npm packages:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="+-- [email protected] +-- [email protected] +-- [email protected] `-- [email protected]```"><pre lang="[email protected]" class="notranslate"><code class="notranslate">+-- [email protected] +-- [email protected] +-- [email protected] `-- [email protected]``` </code></pre></div>
<p dir="auto">I have just heard about next.js so I wanted to give it a try, however as I ran <code class="notranslate">npm run dev</code> I get Internal Server Error on localhost:3000 and in console <code class="notranslate">GET http://localhost:3000/ 500 (Internal Server Error)</code></p> <p dir="auto"><strong>Same results using zeit/nextgram</strong></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked Next.js Issues and while my issue seems like a duplicate, there was no solution.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Followed everything as in Readme, used Powershell, Git bash, results are always the same.</li> </ul> <p dir="auto">Error text<br> <code class="notranslate">{ Error: Cannot find module D:\path\.next\dist\pages\_error at _callee$ (D\path\node_modules\next\dist\server\resolve.j s:220:19) at tryCatch (D:\path\node_modules\regenerator-runtime\runtim e.js:65:40) at Generator.invoke [as _invoke] (D:\path\node_modules\regen erator-runtime\runtime.js:303:22) at Generator.prototype.(anonymous function) [as next] (D:\DEV\ up\node_modules\regenerator-runtime\runtime.js:117:21) at step (D:\path\node_modules\babel-runtime\helpers\asyncToG enerator.js:17:30) at D:\\path\node_modules\babel-runtime\helpers\asyncToGenerat or.js:28:13 code: 'ENOENT' }</code></p> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>3.2.1</td> </tr> <tr> <td>node</td> <td>7.5.0</td> </tr> <tr> <td>npm</td> <td>4.1.2</td> </tr> <tr> <td>OS</td> <td>Windows 10</td> </tr> </tbody> </table>
0
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.8.10</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="new RegExp(/a/, &quot;g&quot;);"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-smi">RegExp</span><span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span>a<span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-s">"g"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> That code should be accepted by typescript</p> <p dir="auto"><strong>Actual behavior:</strong><br> <code class="notranslate">Argument of type 'RegExp' is not assignable to parameter of type 'string'.</code></p>
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">1.9.0-dev.20160522-1.0</p> <p dir="auto"><strong>Code</strong></p> <p dir="auto">Here's what I want to do:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {isEmail} from 'marker.validators'"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">isEmail</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'marker.validators'</span></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> For it to just work</p> <p dir="auto"><strong>Actual behavior:</strong><br> Submodules don't work that way</p> <hr> <p dir="auto">So currently I do this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {validators} from 'marker'; validators.isEmail('[email protected]'); // I want the `isEmail` symbol, without having to `const isEmail = validators.isEmail`"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">validators</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'marker'</span><span class="pl-kos">;</span> <span class="pl-s1">validators</span><span class="pl-kos">.</span><span class="pl-en">isEmail</span><span class="pl-kos">(</span><span class="pl-s">'[email protected]'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// I want the `isEmail` symbol, without having to `const isEmail = validators.isEmail`</span></pre></div> <h4 dir="auto">marker.d.ts</h4> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare var marker: marker.marker; declare module marker { export interface marker { validators: IValidators; } export interface IValidators { isEmail(input: string): boolean; } } export = marker;"><pre class="notranslate"><span class="pl-k">declare</span> <span class="pl-k">var</span> <span class="pl-s1">marker</span>: <span class="pl-s1">marker</span><span class="pl-kos">.</span><span class="pl-smi">marker</span><span class="pl-kos">;</span> <span class="pl-k">declare</span> module <span class="pl-s1">marker</span> <span class="pl-kos">{</span> <span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">marker</span> <span class="pl-kos">{</span> <span class="pl-c1">validators</span>: <span class="pl-smi">IValidators</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">IValidators</span> <span class="pl-kos">{</span> <span class="pl-c1">isEmail</span><span class="pl-kos">(</span><span class="pl-s1">input</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-s1">marker</span><span class="pl-kos">;</span></pre></div> <h4 dir="auto">index.ts</h4> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as vs from './validators' export const validators = vs;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">vs</span> <span class="pl-k">from</span> <span class="pl-s">'./validators'</span> <span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-s1">validators</span> <span class="pl-c1">=</span> <span class="pl-s1">vs</span><span class="pl-kos">;</span></pre></div> <h4 dir="auto">validators.ts</h4> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export function isEmail(input: string): boolean { return true }"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">function</span> <span class="pl-en">isEmail</span><span class="pl-kos">(</span><span class="pl-s1">input</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span>: <span class="pl-smi">boolean</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">true</span> <span class="pl-kos">}</span></pre></div> <hr> <p dir="auto">How am I meant to do this, e.g.: <code class="notranslate">namespace</code>s?</p> <p dir="auto">BTW: Asked on <a href="http://stackoverflow.com/q/37370601" rel="nofollow">StackOverlfow</a> also</p>
0
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/target-the-children-of-an-element-using-jquery#?solution=%0Afccss%0A%20%20%24%28document%29.ready%28function%28%29%20%7B%0A%20%20%20%20%24%28%22%23target1%22%29.css%28%22color%22%2C%20%22red%22%29%3B%0A%20%20%20%20%24%28%22%23target1%22%29.prop%28%22disabled%22%2C%20true%29%3B%0A%20%20%20%20%24%28%22%23target4%22%29.remove%28%29%3B%0A%20%20%20%20%24%28%22%23target2%22%29.appendTo%28%22%23right-well%22%29%3B%0A%20%20%20%20%24%28%22%23target5%22%29.clone%28%29.appendTo%28%22%23left-well%22%29%3B%0A%20%20%20%20%24%28%22%23target1%22%29.parent%28%29.css%28%22background-color%22%2C%20%22red%22%29%3B%0A%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">Target the Children of an Element Using jQuery</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/51.0.2704.84 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <ul dir="auto"> <li>As soon as the Challenge loads, button with ID target5 is duplicated in the left-well<br> <a href="url">https://drive.google.com/file/d/0B0-LhUhPNlwlYnRMa2g0TEhSVFU/view?usp=sharing</a></li> </ul> <p dir="auto">(Clicking on the link above does not seem to work, however highlighting the link text, right-clicking and selecting go to <a href="https://drive.goo" rel="nofollow">https://drive.goo</a>....... does work, or just copy and paste the link in a new Tab)</p> <ul dir="auto"> <li>Making any unrelated change in the code, updates the output properly and removes the duplicate target, even if you then remove the change that was made to force the output to update.</li> </ul> <p dir="auto">Default 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;#target1&quot;).css(&quot;color&quot;, &quot;red&quot;); $(&quot;#target1&quot;).prop(&quot;disabled&quot;, true); $(&quot;#target4&quot;).remove(); $(&quot;#target2&quot;).appendTo(&quot;#right-well&quot;); $(&quot;#target5&quot;).clone().appendTo(&quot;#left-well&quot;); $(&quot;#target1&quot;).parent().css(&quot;background-color&quot;, &quot;red&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">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</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">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">"disabled"</span><span class="pl-kos">,</span> <span class="pl-c1">true</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">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">remove</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">"#target2"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</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">"#target5"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</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">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">parent</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"background-color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</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">&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-clone-an-element-using-jquery#?solution=fccss%0A%20%20%24%28document%29.ready%28function%28%29%20%7B%0A%20%20%20%20%24%28%22%23target1%22%29.css%28%22color%22%2C%20%22red%22%29%3B%0A%20%20%20%20%24%28%22%23target1%22%29.prop%28%22disabled%22%2C%20true%29%3B%0A%20%20%20%20%24%28%22%23target4%22%29.remove%28%29%3B%0A%20%20%20%20%24%28%22%23target2%22%29.appendTo%28%22%23right-well%22%29%3B%0A%20%20%20%20%24%28%22%23target5%22%29.clone%28%29.appendTo%28%22%23left-well%22%29%3B%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: Clone an Element Using jQuery</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <h2 dir="auto">Issue</h2> <p dir="auto">I believe I've found bug in the phone simulation in <strong>Waypoint: Clone an Element Using jQuery</strong>:</p> <p dir="auto">I entered the code to clone <code class="notranslate">target5</code> and append it to <code class="notranslate">left-well</code>, and now I see three <strong>target5</strong> buttons in the phone simulator. FCC says my code is correct and advances me to the next challenge. The following challenges also show three target5 buttons:</p> <ul dir="auto"> <li>Waypoint: Target the Parent of an Element Using jQuery</li> <li>Waypoint: Target the Children of an Element Using jQuery</li> </ul> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/qualitymanifest/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/qualitymanifest">@qualitymanifest</a> confirms this issue on his <strong>Linux</strong> box.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5673126/11647398/76751658-9d35-11e5-8fcf-112ab89c6920.png"><img src="https://cloud.githubusercontent.com/assets/5673126/11647398/76751658-9d35-11e5-8fcf-112ab89c6920.png" alt="image" style="max-width: 100%;"></a></p> <h2 dir="auto">My code:</h2> <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;#target1&quot;).css(&quot;color&quot;, &quot;red&quot;); $(&quot;#target1&quot;).prop(&quot;disabled&quot;, true); $(&quot;#target4&quot;).remove(); $(&quot;#target2&quot;).appendTo(&quot;#right-well&quot;); $(&quot;#target5&quot;).clone().appendTo(&quot;#left-well&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">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</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">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">"disabled"</span><span class="pl-kos">,</span> <span class="pl-c1">true</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">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">remove</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">"#target2"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</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">"#target5"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</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">&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>
1
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> I believe there is a bug in React 16.4 regarding the <code class="notranslate">getDerivedStateFromProps</code>.</p> <p dir="auto"><strong>What is the current behavior?</strong><br> Trying to set the state based on the props kind of overrides the state forever, which makes it impossible to edit it later on.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (<a href="https://jsfiddle.net/Luktwrdm/" rel="nofollow">https://jsfiddle.net/Luktwrdm/</a>) or CodeSandbox (<a href="https://codesandbox.io/s/new" rel="nofollow">https://codesandbox.io/s/new</a>) example below:</strong><br> Example is as follows: <a href="http://jsbin.com/yawasoz/1/edit?html,js,output" rel="nofollow">http://jsbin.com/yawasoz/1/edit?html,js,output</a><br> Add some item, click on it, try to edit it.</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> To work like this (React 16.3): <a href="http://jsbin.com/luzimujiwi/1/edit?html,js,output" rel="nofollow">http://jsbin.com/luzimujiwi/1/edit?html,js,output</a></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> I think this happens only in React 16.4, 16.3 seems to work fine (same code, different React version): <a href="http://jsbin.com/luzimujiwi/1/edit?html,js,output" rel="nofollow">http://jsbin.com/luzimujiwi/1/edit?html,js,output</a></p>
<p dir="auto">According to semver, only non-breaking changes are supposed to go into minor and patch version releases. With the release of 16.4, you have made breaking changes to <code class="notranslate">getDerivedStateFromProps</code>. Our entire codebase, running perfectly on 16.3.2 is a dumpster fire as soon as we raise that dependency to 16.4.</p> <p dir="auto">The only thing in your CHANGELOG about this <em>breaking</em> change is:</p> <blockquote> <p dir="auto">Properly call getDerivedStateFromProps() regardless of the reason for re-rendering. (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/acdlite/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/acdlite">@acdlite</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="313087680" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/12600" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/12600/hovercard" href="https://github.com/facebook/react/pull/12600">#12600</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="322993706" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/12802" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/12802/hovercard" href="https://github.com/facebook/react/pull/12802">#12802</a>)</p> </blockquote> <p dir="auto">Please revert this change and save it for 17.0.0, or provide proper documentation to what this change actually entails so that its use can be adjusted by those who have already implemented <code class="notranslate">getDerivedStateFromProps</code>.</p>
1
<h3 dir="auto">First check</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> After submitting this, I commit to one of: <ul dir="auto"> <li>Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.</li> <li>I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.</li> <li>Implement a Pull Request for a confirmed bug.</li> </ul> </li> </ul> <h3 dir="auto">Example</h3> <p dir="auto">I am not sure if I am able to create a minimal example, see description below.</p> <h3 dir="auto">Description</h3> <p dir="auto">I have been using FastAPI for almost a year now without almost any issues, but I met one issue which is quite hard to reproduce and I might need your help.</p> <p dir="auto">My backend (simplified), consists of two parts: the API, and the worker. The API is run by gunicorn, and the worker is run separately, to avoid creating duplicate instances of background tasks. They are communicating between each other via redis.<br> What I have is, a background task that should mark an object (invoice) as expired after certain time.<br> What I did is an async function, that just does <code class="notranslate">asyncio.sleep</code>, and after that it marks invoice as expired in the database.<br> When invoice is created (from the API, via one of the workers gunicorn is serving), an asyncio task is created to mark invoice expired later.<br> Also, the background worker on startup checks pending invoices if they have expired.<br> Seems to be working fine even after server restarts.</p> <p dir="auto">But in very cases it doesn't work, I have checked server logs, and saw a few entries with "<code class="notranslate">[CRITICAL] Worker timeout</code>"<br> So as far as I understand, from time to time the workers time out and get restarted, so all started async tasks are lost.</p> <p dir="auto">It happens quite rarely, for now 3 times: on January 4th, 10th and 17th, and every time multiple workers get restarted or get restarted multiple times.<br> All my functions are async, and I am not sure what exactly might cause the timeout if all the long-running functions are delegated to the worker.</p> <p dir="auto">Attaching screenshots, and all the code is available at github too.</p> <p dir="auto">I am sorry that I am unable to provide a simple example, because the project is complex, and I think that I don't have any long-running tasks in the gunicorn process (proper distribution of tasks, this system has been working great on many systems, including the demo which is running without any issues except for this for 1 month already).</p> <p dir="auto">I think that the issue might be just my gunicorn configuration, which is the default one almost.</p> <p dir="auto">I understand that it might be hard to investigate the issue, so I am ready to provide all needed details and answer all the following questions in detail. I was directed here from discord.</p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: Linux; Docker environment with docker-compose; Custom setup:<br> <a href="https://github.com/bitcartcc/bitcart-docker/blob/master/generator/docker-components/backend.yml">backend component</a><br> <a href="https://github.com/bitcartcc/bitcart-docker/blob/master/generator/docker-components/worker.yml">worker component</a><br> <a href="https://github.com/bitcartcc/bitcart-docker/blob/master/compose/backend.Dockerfile">Dockerfile</a></li> <li>FastAPI Version: 0.63.0</li> <li>Python version: 3.6.12</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto">The function running as an async task:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/39452697/105222963-3ba1ff00-5b6c-11eb-9e10-44ecb35e9081.png"><img src="https://user-images.githubusercontent.com/39452697/105222963-3ba1ff00-5b6c-11eb-9e10-44ecb35e9081.png" alt="изображение" style="max-width: 100%;"></a><br> Server logs:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/39452697/105222977-3f358600-5b6c-11eb-914b-def7a8544379.png"><img src="https://user-images.githubusercontent.com/39452697/105222977-3f358600-5b6c-11eb-914b-def7a8544379.png" alt="изображение" style="max-width: 100%;"></a><br> How the task is started:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/39452697/105223484-e6b2b880-5b6c-11eb-8caa-0973a9db3e7f.png"><img src="https://user-images.githubusercontent.com/39452697/105223484-e6b2b880-5b6c-11eb-8caa-0973a9db3e7f.png" alt="изображение" style="max-width: 100%;"></a></p> <p dir="auto"><a href="https://github.com/bitcartcc/bitcart/blob/master/gunicorn.conf.py">Gunicorn config</a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import multiprocessing bind = &quot;0.0.0.0:8000&quot; workers = multiprocessing.cpu_count() * 2 + 1 worker_class = &quot;uvicorn.workers.UvicornWorker&quot;"><pre class="notranslate"><code class="notranslate">import multiprocessing bind = "0.0.0.0:8000" workers = multiprocessing.cpu_count() * 2 + 1 worker_class = "uvicorn.workers.UvicornWorker" </code></pre></div> <p dir="auto"><a href="https://github.com/bitcartcc/bitcart-docker/blob/master/compose/scripts/docker-entrypoint.sh">Backend startup script</a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#!/usr/bin/env sh set -ex alembic upgrade head gunicorn -c gunicorn.conf.py main:app"><pre class="notranslate"><code class="notranslate">#!/usr/bin/env sh set -ex alembic upgrade head gunicorn -c gunicorn.conf.py main:app </code></pre></div> <p dir="auto"><a href="https://github.com/bitcartcc/bitcart/blob/master/main.py">Entrypoint</a></p> <p dir="auto"><a href="https://github.com/bitcartcc/bitcart">Repository</a></p>
<h3 dir="auto">First check</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> After submitting this, I commit to one of: <ul dir="auto"> <li>Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.</li> <li>I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.</li> <li>Implement a Pull Request for a confirmed bug.</li> </ul> </li> </ul> <h3 dir="auto">Example</h3> <p dir="auto">Here's a self-contained, <a href="https://stackoverflow.com/help/minimal-reproducible-example" rel="nofollow">minimal, reproducible, example</a> with my use case:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from fastapi import WebSocket, Depends, FastAPI from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials from starlette.testclient import TestClient app = FastAPI() @app.websocket('/') async def socket( websocket: WebSocket, bearer_token: HTTPAuthorizationCredentials = Depends(HTTPBearer()) ): await websocket.accept() await websocket.send_text(&quot;hello there&quot;) await websocket.close() def test_socket(): client = TestClient(app) with client.websocket_connect(&quot;/&quot;) as ws: ws.read_text() ws.close()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">WebSocket</span>, <span class="pl-v">Depends</span>, <span class="pl-v">FastAPI</span> <span class="pl-k">from</span> <span class="pl-s1">fastapi</span>.<span class="pl-s1">security</span> <span class="pl-k">import</span> <span class="pl-v">HTTPBearer</span>, <span class="pl-v">HTTPAuthorizationCredentials</span> <span class="pl-k">from</span> <span class="pl-s1">starlette</span>.<span class="pl-s1">testclient</span> <span class="pl-k">import</span> <span class="pl-v">TestClient</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>() <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">websocket</span>(<span class="pl-s">'/'</span>)</span> <span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">socket</span>( <span class="pl-s1">websocket</span>: <span class="pl-v">WebSocket</span>, <span class="pl-s1">bearer_token</span>: <span class="pl-v">HTTPAuthorizationCredentials</span> <span class="pl-c1">=</span> <span class="pl-v">Depends</span>(<span class="pl-v">HTTPBearer</span>()) ): <span class="pl-k">await</span> <span class="pl-s1">websocket</span>.<span class="pl-en">accept</span>() <span class="pl-k">await</span> <span class="pl-s1">websocket</span>.<span class="pl-en">send_text</span>(<span class="pl-s">"hello there"</span>) <span class="pl-k">await</span> <span class="pl-s1">websocket</span>.<span class="pl-en">close</span>() <span class="pl-k">def</span> <span class="pl-en">test_socket</span>(): <span class="pl-s1">client</span> <span class="pl-c1">=</span> <span class="pl-v">TestClient</span>(<span class="pl-s1">app</span>) <span class="pl-k">with</span> <span class="pl-s1">client</span>.<span class="pl-en">websocket_connect</span>(<span class="pl-s">"/"</span>) <span class="pl-k">as</span> <span class="pl-s1">ws</span>: <span class="pl-s1">ws</span>.<span class="pl-en">read_text</span>() <span class="pl-s1">ws</span>.<span class="pl-en">close</span>()</pre></div> <h3 dir="auto">Description</h3> <p dir="auto">Adding any dependency that requires additional parameters makes this endpoint crash with a <code class="notranslate">TypeError __call__() missing 1 required positional argument: 'request'</code> when used from the <code class="notranslate">TestClient</code>.<br> It works fine when running with uvicorn.</p> <h4 dir="auto">Traceback:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test_websocket_depends.py:17 (test_socket) def test_socket(): client = TestClient(app) &gt; with client.websocket_connect(&quot;/&quot;) as ws: test_websocket_depends.py:20: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../venv/lib64/python3.8/site-packages/starlette/testclient.py:444: in websocket_connect super().request(&quot;GET&quot;, url, **kwargs) ../../venv/lib64/python3.8/site-packages/requests/sessions.py:530: in request resp = self.send(prep, **send_kwargs) ../../venv/lib64/python3.8/site-packages/requests/sessions.py:643: in send r = adapter.send(request, **kwargs) ../../venv/lib64/python3.8/site-packages/starlette/testclient.py:145: in send session = WebSocketTestSession(self.app, scope) ../../venv/lib64/python3.8/site-packages/starlette/testclient.py:277: in __init__ message = self.receive() ../../venv/lib64/python3.8/site-packages/starlette/testclient.py:339: in receive raise message ../../venv/lib64/python3.8/site-packages/starlette/testclient.py:300: in _run self._loop.run_until_complete(self.app(scope, receive, send)) /usr/lib64/python3.8/asyncio/base_events.py:616: in run_until_complete return future.result() ../../venv/lib64/python3.8/site-packages/fastapi/applications.py:179: in __call__ await super().__call__(scope, receive, send) ../../venv/lib64/python3.8/site-packages/starlette/applications.py:111: in __call__ await self.middleware_stack(scope, receive, send) ../../venv/lib64/python3.8/site-packages/starlette/middleware/errors.py:146: in __call__ await self.app(scope, receive, send) ../../venv/lib64/python3.8/site-packages/starlette/exceptions.py:58: in __call__ await self.app(scope, receive, send) ../../venv/lib64/python3.8/site-packages/starlette/routing.py:566: in __call__ await route.handle(scope, receive, send) ../../venv/lib64/python3.8/site-packages/starlette/routing.py:283: in handle await self.app(scope, receive, send) ../../venv/lib64/python3.8/site-packages/starlette/routing.py:57: in app await func(session) ../../venv/lib64/python3.8/site-packages/fastapi/routing.py:218: in app solved_result = await solve_dependencies( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def solve_dependencies( *, request: Union[Request, WebSocket], dependant: Dependant, body: Optional[Union[Dict[str, Any], FormData]] = None, background_tasks: Optional[BackgroundTasks] = None, response: Optional[Response] = None, dependency_overrides_provider: Optional[Any] = None, dependency_cache: Optional[Dict[Tuple[Callable, Tuple[str]], Any]] = None, ) -&gt; Tuple[ Dict[str, Any], List[ErrorWrapper], Optional[BackgroundTasks], Response, Dict[Tuple[Callable, Tuple[str]], Any], ]: values: Dict[str, Any] = {} errors: List[ErrorWrapper] = [] response = response or Response( content=None, status_code=None, # type: ignore headers=None, media_type=None, background=None, ) dependency_cache = dependency_cache or {} sub_dependant: Dependant for sub_dependant in dependant.dependencies: sub_dependant.call = cast(Callable, sub_dependant.call) sub_dependant.cache_key = cast( Tuple[Callable, Tuple[str]], sub_dependant.cache_key ) call = sub_dependant.call use_sub_dependant = sub_dependant if ( dependency_overrides_provider and dependency_overrides_provider.dependency_overrides ): original_call = sub_dependant.call call = getattr( dependency_overrides_provider, &quot;dependency_overrides&quot;, {} ).get(original_call, original_call) use_path: str = sub_dependant.path # type: ignore use_sub_dependant = get_dependant( path=use_path, call=call, name=sub_dependant.name, security_scopes=sub_dependant.security_scopes, ) use_sub_dependant.security_scopes = sub_dependant.security_scopes solved_result = await solve_dependencies( request=request, dependant=use_sub_dependant, body=body, background_tasks=background_tasks, response=response, dependency_overrides_provider=dependency_overrides_provider, dependency_cache=dependency_cache, ) ( sub_values, sub_errors, background_tasks, _, # the subdependency returns the same response we have sub_dependency_cache, ) = solved_result dependency_cache.update(sub_dependency_cache) if sub_errors: errors.extend(sub_errors) continue if sub_dependant.use_cache and sub_dependant.cache_key in dependency_cache: solved = dependency_cache[sub_dependant.cache_key] elif is_gen_callable(call) or is_async_gen_callable(call): stack = request.scope.get(&quot;fastapi_astack&quot;) if stack is None: raise RuntimeError( async_contextmanager_dependencies_error ) # pragma: no cover solved = await solve_generator( call=call, stack=stack, sub_values=sub_values ) elif is_coroutine_callable(call): &gt; solved = await call(**sub_values) E TypeError: __call__() missing 1 required positional argument: 'request' ../../venv/lib64/python3.8/site-packages/fastapi/dependencies/utils.py:550: TypeError"><pre class="notranslate"><code class="notranslate">test_websocket_depends.py:17 (test_socket) def test_socket(): client = TestClient(app) &gt; with client.websocket_connect("/") as ws: test_websocket_depends.py:20: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../../venv/lib64/python3.8/site-packages/starlette/testclient.py:444: in websocket_connect super().request("GET", url, **kwargs) ../../venv/lib64/python3.8/site-packages/requests/sessions.py:530: in request resp = self.send(prep, **send_kwargs) ../../venv/lib64/python3.8/site-packages/requests/sessions.py:643: in send r = adapter.send(request, **kwargs) ../../venv/lib64/python3.8/site-packages/starlette/testclient.py:145: in send session = WebSocketTestSession(self.app, scope) ../../venv/lib64/python3.8/site-packages/starlette/testclient.py:277: in __init__ message = self.receive() ../../venv/lib64/python3.8/site-packages/starlette/testclient.py:339: in receive raise message ../../venv/lib64/python3.8/site-packages/starlette/testclient.py:300: in _run self._loop.run_until_complete(self.app(scope, receive, send)) /usr/lib64/python3.8/asyncio/base_events.py:616: in run_until_complete return future.result() ../../venv/lib64/python3.8/site-packages/fastapi/applications.py:179: in __call__ await super().__call__(scope, receive, send) ../../venv/lib64/python3.8/site-packages/starlette/applications.py:111: in __call__ await self.middleware_stack(scope, receive, send) ../../venv/lib64/python3.8/site-packages/starlette/middleware/errors.py:146: in __call__ await self.app(scope, receive, send) ../../venv/lib64/python3.8/site-packages/starlette/exceptions.py:58: in __call__ await self.app(scope, receive, send) ../../venv/lib64/python3.8/site-packages/starlette/routing.py:566: in __call__ await route.handle(scope, receive, send) ../../venv/lib64/python3.8/site-packages/starlette/routing.py:283: in handle await self.app(scope, receive, send) ../../venv/lib64/python3.8/site-packages/starlette/routing.py:57: in app await func(session) ../../venv/lib64/python3.8/site-packages/fastapi/routing.py:218: in app solved_result = await solve_dependencies( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ async def solve_dependencies( *, request: Union[Request, WebSocket], dependant: Dependant, body: Optional[Union[Dict[str, Any], FormData]] = None, background_tasks: Optional[BackgroundTasks] = None, response: Optional[Response] = None, dependency_overrides_provider: Optional[Any] = None, dependency_cache: Optional[Dict[Tuple[Callable, Tuple[str]], Any]] = None, ) -&gt; Tuple[ Dict[str, Any], List[ErrorWrapper], Optional[BackgroundTasks], Response, Dict[Tuple[Callable, Tuple[str]], Any], ]: values: Dict[str, Any] = {} errors: List[ErrorWrapper] = [] response = response or Response( content=None, status_code=None, # type: ignore headers=None, media_type=None, background=None, ) dependency_cache = dependency_cache or {} sub_dependant: Dependant for sub_dependant in dependant.dependencies: sub_dependant.call = cast(Callable, sub_dependant.call) sub_dependant.cache_key = cast( Tuple[Callable, Tuple[str]], sub_dependant.cache_key ) call = sub_dependant.call use_sub_dependant = sub_dependant if ( dependency_overrides_provider and dependency_overrides_provider.dependency_overrides ): original_call = sub_dependant.call call = getattr( dependency_overrides_provider, "dependency_overrides", {} ).get(original_call, original_call) use_path: str = sub_dependant.path # type: ignore use_sub_dependant = get_dependant( path=use_path, call=call, name=sub_dependant.name, security_scopes=sub_dependant.security_scopes, ) use_sub_dependant.security_scopes = sub_dependant.security_scopes solved_result = await solve_dependencies( request=request, dependant=use_sub_dependant, body=body, background_tasks=background_tasks, response=response, dependency_overrides_provider=dependency_overrides_provider, dependency_cache=dependency_cache, ) ( sub_values, sub_errors, background_tasks, _, # the subdependency returns the same response we have sub_dependency_cache, ) = solved_result dependency_cache.update(sub_dependency_cache) if sub_errors: errors.extend(sub_errors) continue if sub_dependant.use_cache and sub_dependant.cache_key in dependency_cache: solved = dependency_cache[sub_dependant.cache_key] elif is_gen_callable(call) or is_async_gen_callable(call): stack = request.scope.get("fastapi_astack") if stack is None: raise RuntimeError( async_contextmanager_dependencies_error ) # pragma: no cover solved = await solve_generator( call=call, stack=stack, sub_values=sub_values ) elif is_coroutine_callable(call): &gt; solved = await call(**sub_values) E TypeError: __call__() missing 1 required positional argument: 'request' ../../venv/lib64/python3.8/site-packages/fastapi/dependencies/utils.py:550: TypeError </code></pre></div> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: [e.g. Linux / Windows / macOS]: Fedora 32</li> <li>FastAPI Version [e.g. 0.3.0]: 0.61.1</li> <li>Python version: Python 3.8.5</li> </ul>
0
<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="from pandas.compat import StringIO import pandas as pd t1 = &quot;&quot;&quot;float 1 &quot;&quot;&quot; t2 = &quot;&quot;&quot;float NaN &quot;&quot;&quot; for t in t1, t2: df = pd.read_csv(StringIO(t), dtype={'float': 'str'}) print(type(df['float'][0]))"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">compat</span> <span class="pl-k">import</span> <span class="pl-v">StringIO</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-s1">t1</span> <span class="pl-c1">=</span> <span class="pl-s">"""float</span> <span class="pl-s">1</span> <span class="pl-s">"""</span> <span class="pl-s1">t2</span> <span class="pl-c1">=</span> <span class="pl-s">"""float</span> <span class="pl-s">NaN</span> <span class="pl-s">"""</span> <span class="pl-k">for</span> <span class="pl-s1">t</span> <span class="pl-c1">in</span> <span class="pl-s1">t1</span>, <span class="pl-s1">t2</span>: <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-v">StringIO</span>(<span class="pl-s1">t</span>), <span class="pl-s1">dtype</span><span class="pl-c1">=</span>{<span class="pl-s">'float'</span>: <span class="pl-s">'str'</span>}) <span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">df</span>[<span class="pl-s">'float'</span>][<span class="pl-c1">0</span>]))</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Even when explicitly specifying <code class="notranslate">dtype</code> above, <code class="notranslate">read_csv</code> still converts values in the <code class="notranslate">float</code> column to a float when the string is "NaN". This behavior appears to be limited to "NaN" as it doesn't happen for regular numbers. Still, I unexpectedly ran across a "NaN" string in my application so it's blocking me.</p>
<p dir="auto">From <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="96377455" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/10647" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/10647/hovercard?comment_id=123715600&amp;comment_type=issue_comment" href="https://github.com/pandas-dev/pandas/issues/10647#issuecomment-123715600">#10647 (comment)</a></p> <p dir="auto">In context of discussion on the default parsing of 'NA' in a csv file as NaN, I don't think we can change the default of parsing <code class="notranslate">NA</code>, but we <em>may consider</em> parsing of <code class="notranslate">"NA"</code> as a string instead of NaN:</p> <blockquote> <p dir="auto">Another change that we would maybe be more likely to consider, is the parsing of quoted values of NA (so only changing "NA" not be converted automatically, but leaving NA and alike converted to NaN as it is now).<br> Personally, I would even this consider as a bug that it treats "NA" and NA the same, as I would expect that quoted values should be left untouched. But I don't know how long this behaviour has been this way.</p> </blockquote> <p dir="auto">Although I am not sure how invasive such a change would be, and difficult to assess, so maybe this is not worth risking many breakages?</p>
1
<p dir="auto">I'm trying to setup something like this with Symfony 2.6.1:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$builder -&gt;add('field', 'choice', [ 'choices' =&gt; array_combine(range(0.1, 1.0, 0.1), range(0.1, 1.0, 0.1)) ]);"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>builder</span> -&gt;<span class="pl-en">add</span>(<span class="pl-s">'field'</span>, <span class="pl-s">'choice'</span>, [ <span class="pl-s">'choices'</span> =&gt; array_combine(range(<span class="pl-c1">0.1</span>, <span class="pl-c1">1.0</span>, <span class="pl-c1">0.1</span>), range(<span class="pl-c1">0.1</span>, <span class="pl-c1">1.0</span>, <span class="pl-c1">0.1</span>)) ]);</pre></div> <p dir="auto">and this is the mapping for Doctrine:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" field: type: decimal precision: 2 scale: 1 options: default: 1.0"><pre class="notranslate"> <span class="pl-ent">field</span>: <span class="pl-ent">type</span>: <span class="pl-s">decimal</span> <span class="pl-ent">precision</span>: <span class="pl-c1">2</span> <span class="pl-ent">scale</span>: <span class="pl-c1">1</span> <span class="pl-ent">options</span>: <span class="pl-ent">default</span>: <span class="pl-c1">1.0</span></pre></div> <p dir="auto">The field never shows the value 1.0 as selected when it is (works fine for 0.1 =&gt; 0.9). I have tried converting all float values to string using <code class="notranslate">number_format</code> but doesn't work either.</p> <p dir="auto">I have also tried using <code class="notranslate">http://symfony.com/doc/current/reference/forms/types/choice.html#choice-list</code>, but taking the example on that page I get this:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;select&gt; &lt;option value=&quot;0&quot;&gt;Full&lt;/option&gt; &lt;option value=&quot;1&quot;&gt;Half&lt;/option&gt; &lt;/select&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">select</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">0</span>"<span class="pl-kos">&gt;</span>Full<span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">option</span> <span class="pl-c1">value</span>="<span class="pl-s">1</span>"<span class="pl-kos">&gt;</span>Half<span class="pl-kos">&lt;/</span><span class="pl-ent">option</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">select</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">as you can see, there's no float values here (shouldn't it be 1 =&gt; Full, 0.5 =&gt; Half?) Is this a bug with <code class="notranslate">ChoiceList</code> or the example is incorrect?</p> <p dir="auto">Thanks in advanced for any insight.</p>
<p dir="auto"><strong>Description</strong><br> The idea of this feature lies on the following <a href="https://www.owasp.org/index.php/REST_Security_Cheat_Sheet#Input_validation" rel="nofollow">OWASP recommendation</a>:</p> <blockquote> <p dir="auto">Define an appropriate request size limit and reject requests exceeding the limit with HTTP response status 413 Request Entity Too Large</p> </blockquote> <p dir="auto">After <a href="https://github.com/api-platform/api-platform/issues/680" data-hovercard-type="issue" data-hovercard-url="/api-platform/api-platform/issues/680/hovercard">discussion</a> with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dunglas/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dunglas">@dunglas</a> about implementing this feature in the api-platform project, the subject of implementing it directly in Symfony has been brought.</p> <p dir="auto">In my opinion, this feature makes sense in, but is not limited to, a Rest API context, so it'd make sense to implement it in the Symfony HttpKernel component. However, one could argue that this is a security related feature that should live in the Security component.</p> <p dir="auto">The implementation would rely on a <code class="notranslate">kernel.request</code> event listener configured with a request content max size (defaulting to <code class="notranslate">ini_get('post_max_size')</code>). Comparison would then be performed against the <code class="notranslate">Content-Length</code> request header. <a href="https://gist.github.com/gquemener/bbab91389e0d4656bc6c4c832618e4c5">Here's a gist showing how it could look like</a>.</p> <p dir="auto">The fact is that it must be implemented smartly in order not to conflict with the existing handling of request size exceeding in the <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Extension/HttpFoundation/HttpFoundationRequestHandler.php#L71">Symfony Form component</a>.</p> <p dir="auto">This feature could be disabled by default, for example.<br> It could be enablable on a global scope, on a route scope, on a pattern scope, ... The choices are quite wide.</p> <p dir="auto">Unlike how it's made in the Symfony Form component, I believe it makes sense to perform this check no matter which HTTP method is used.</p> <p dir="auto">Finally, unless duplicating <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Util/ServerParams.php">this logic</a> in the component which would welcome this feature, we should think about how to extract it in a common package (maybe a new <code class="notranslate">php-directive</code> package which would perform <code class="notranslate">ini_get</code> calls and <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Util/ServerParams.php#L46-L74">value normalizations</a>).</p> <p dir="auto">Thank you for your time and sharing thoughts about this,<br> Regards.</p> <p dir="auto"><strong>Example</strong></p> <p dir="auto">Enabling globaly</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="framework: prevent_content_length_exceeding: true max_content_length: 10M"><pre class="notranslate"><span class="pl-ent">framework</span>: <span class="pl-ent">prevent_content_length_exceeding</span>: <span class="pl-c1">true</span> <span class="pl-ent">max_content_length</span>: <span class="pl-c1">10M</span></pre></div> <p dir="auto">Enabling on a route</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="routes: index: path: / prevent_content_length_exceeding: true max_content_length: 10M"><pre class="notranslate"><span class="pl-ent">routes</span>: <span class="pl-ent">index</span>: <span class="pl-ent">path</span>: <span class="pl-s">/</span> <span class="pl-ent">prevent_content_length_exceeding</span>: <span class="pl-c1">true</span> <span class="pl-ent">max_content_length</span>: <span class="pl-c1">10M</span></pre></div>
0
<h3 dir="auto">Problem description</h3> <p dir="auto">You call setState on a timeout in Popover.js however if the component is already unmounted react gives a warning</p> <h3 dir="auto">Steps to reproduce</h3> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 0.15.4</li> <li>React: 15.3.1</li> <li>Browser: Chrome</li> </ul> <p dir="auto">I've fixed this by setting a property on this in componentWillUnmount</p> <p dir="auto">might be a bit hacky see unMounted below</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" _createClass(Popover, [{ key: 'componentWillReceiveProps', value: function componentWillReceiveProps(nextProps) { var _this2 = this; if (nextProps.open !== this.state.open) { if (nextProps.open) { this.anchorEl = nextProps.anchorEl || this.props.anchorEl; this.setState({ open: true, closing: false }); } else { if (nextProps.animated) { this.setState({ closing: true }); this.timeout = setTimeout(function () { if(!_this2.unMounted) { _this2.setState({ open: false }); } }, 500); } else { this.setState({ open: false }); } } } } }, { key: 'componentDidUpdate', value: function componentDidUpdate() { this.setPlacement(); } }, { key: 'componentWillUnmount', value: function componentWillUnmount() { this.unMounted=true; clearTimeout(this.timeout); } } "><pre class="notranslate"><span class="pl-s1">_createClass</span><span class="pl-kos">(</span><span class="pl-v">Popover</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-kos">{</span> <span class="pl-c1">key</span>: <span class="pl-s">'componentWillReceiveProps'</span><span class="pl-kos">,</span> <span class="pl-en">value</span>: <span class="pl-k">function</span> <span class="pl-en">componentWillReceiveProps</span><span class="pl-kos">(</span><span class="pl-s1">nextProps</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">_this2</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">nextProps</span><span class="pl-kos">.</span><span class="pl-c1">open</span> <span class="pl-c1">!==</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">open</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-s1">nextProps</span><span class="pl-kos">.</span><span class="pl-c1">open</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">anchorEl</span> <span class="pl-c1">=</span> <span class="pl-s1">nextProps</span><span class="pl-kos">.</span><span class="pl-c1">anchorEl</span> <span class="pl-c1">||</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">anchorEl</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">open</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">closing</span>: <span class="pl-c1">false</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">else</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">nextProps</span><span class="pl-kos">.</span><span class="pl-c1">animated</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-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">closing</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-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">timeout</span> <span class="pl-c1">=</span> <span class="pl-en">setTimeout</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-k">if</span><span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">_this2</span><span class="pl-kos">.</span><span class="pl-c1">unMounted</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">_this2</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">open</span>: <span class="pl-c1">false</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-c1">500</span><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-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">open</span>: <span class="pl-c1">false</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> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">key</span>: <span class="pl-s">'componentDidUpdate'</span><span class="pl-kos">,</span> <span class="pl-en">value</span>: <span class="pl-k">function</span> <span class="pl-en">componentDidUpdate</span><span class="pl-kos">(</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-en">setPlacement</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> <span class="pl-c1">key</span>: <span class="pl-s">'componentWillUnmount'</span><span class="pl-kos">,</span> <span class="pl-en">value</span>: <span class="pl-k">function</span> <span class="pl-en">componentWillUnmount</span><span class="pl-kos">(</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">unMounted</span><span class="pl-c1">=</span><span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-en">clearTimeout</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">timeout</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Problem description</h3> <p dir="auto">When props.animated is true, Popover calls setState from within a setTimeout.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// in componentWillReceiveProps if (nextProps.animated) { this.setState({ closing: true }); this.timeout = setTimeout(function () { _this2.setState({ open: false }); }, 500); }"><pre class="notranslate"><span class="pl-c">// in componentWillReceiveProps</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">nextProps</span><span class="pl-kos">.</span><span class="pl-c1">animated</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-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">closing</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-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">timeout</span> <span class="pl-c1">=</span> <span class="pl-en">setTimeout</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-s1">_this2</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">open</span>: <span class="pl-c1">false</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-c1">500</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Because <a href="https://facebook.github.io/react/blog/2016/01/08/A-implies-B-does-not-imply-B-implies-A.html" rel="nofollow">componentWillReceiveProps doesn't mean that props changed</a>, Popover has the potential to call setState from within the setTimeout multiple times, when no props have changed. For me, this is consistently causing an error where setState is called on an unmounted component.</p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Rapidly re-render Popover (animated=true) after having changed open to false.</p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 0.15.3</li> <li>React: 15.3.0</li> <li>Browser: Chrome Version 52.0.2743.116 (64-bit)</li> </ul>
1
<p dir="auto">Using the 'with-styled-components' example and upgrading styled-components to v2.1.0 results in the error: <code class="notranslate">Unfortunately nesting is not supported by styled-jsx</code></p>
<p dir="auto">Is there currently a way to completely disable <code class="notranslate">styled-jsx</code> that's bundled with Next.js? If not, it would be great to have this option as currently it sometimes clashes with other CSS solutions by doing preprocessing of its own.</p> <p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="236733650" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/2304" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/2304/hovercard" href="https://github.com/vercel/next.js/issues/2304">#2304</a> and I've also been having issues with importing plain CSS through <a href="https://github.com/davibe/babel-plugin-wrap-in-js"><code class="notranslate">wrap-in-js</code></a>.</p>
1
<p dir="auto">A Locator object apparently can be resolved to several elements, so can represent a list.<br> And there are some useful methods to use in this case (e.g. <code class="notranslate">Locator.first()</code> <code class="notranslate">Locator.nth()</code> etc).<br> Same time, If I need to iterate several locators, the only way I see (please correct me if I'm wrong) is to get the count first, and then take each new item by index from locator list manually:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let itemsCount = await this.pickLkistItem.count() // find the count for (let index = 0; index &lt; itemsCount; index++) { let item = this.pickLkistItem.nth(index) //get the element by index within locator list // . . . do what you need }"><pre class="notranslate"><code class="notranslate">let itemsCount = await this.pickLkistItem.count() // find the count for (let index = 0; index &lt; itemsCount; index++) { let item = this.pickLkistItem.nth(index) //get the element by index within locator list // . . . do what you need } </code></pre></div> <p dir="auto">And this looks really overwhelming.<br> If a locator can be a list, could we use the Iterable functions instead? E.g.:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for (const item of [this.pickLkistItem]) { item // . . . do what you need }"><pre class="notranslate"><code class="notranslate">for (const item of [this.pickLkistItem]) { item // . . . do what you need } </code></pre></div> <p dir="auto">Or:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="this.pickLkistItem.forEach(it =&gt; { arr.push(await it.textContent()) }); this.pickLkistItem.reduce((result, item) =&gt; { . . . }"><pre class="notranslate"><code class="notranslate">this.pickLkistItem.forEach(it =&gt; { arr.push(await it.textContent()) }); this.pickLkistItem.reduce((result, item) =&gt; { . . . } </code></pre></div> <p dir="auto">I guess that the count of the locator items should be frozen at the point of the iterable function start, so if it increases, additional iterations are ignored. Otherwise, a 'missing element' error should be thrown if the count decreased</p> <p dir="auto">Or I'm missing something and this is already supported somehow?</p>
<p dir="auto">Hey Team,</p> <p dir="auto">I think the Locator feature is really great, but what I think it lacks is some kind of enumeration. There are evaluations and stuff like getting text from all elements, but that's only a limited use case. While it is possible for us to enumerate by ourselves, I think we could benefit much more from a built in enumerator instead of opting for a for loop. This would allow plugging into more useful features of supported languages for working with collections much easier.</p> <p dir="auto">It would then be possible to enumerate in:</p> <ul dir="auto"> <li>Node.js</li> <li>.NET</li> <li>Python</li> <li>and probably Java</li> </ul>
1
<p dir="auto">I found that the example code for the histogram2d has an issue when adapted. The code below works for a symmetric amount of bins. But if one changes the number of bins (e.g. removing a bin on <a href="https://github.com/numpy/numpy/blob/4092a9e160cc247a4a45724579a0c829733688ca/numpy/lib/twodim_base.py#L655">line 655</a> <code class="notranslate"> xedges = [0, 1, 1.5, 3])</code> in only one dimensions, the example raises an exception:</p> <p dir="auto"><code class="notranslate">TypeError: Axes don't match array shape</code></p> <p dir="auto">My understanding of this error: This is due to the fact that <code class="notranslate"> im.set_data(xcenters, ycenters, H)</code> on line 696 is erroneous. The <code class="notranslate">set_data</code> functions behaves counter-intuitive and sets data in screen coordinates and not in plot coordinates, see theses <a href="https://github.com/matplotlib/matplotlib/blob/e18af550cf20c8c5e4499720afee2c1e38c020db/lib/matplotlib/image.py#L945">lines</a> in matplotlib. The fix for this is to invert the xedges, yedges order in the <code class="notranslate">set_data</code> call. With that adjustment the code works fine for an asymmetric number of bins. Although, I don't understand why the data is displayed correctly in the symmetric bin number case.</p> <p dir="auto">I am happy to fix this (by inverting the order), but am unsure about how to move on. Is it OK to just go along, fix it, and create a pull request? Can anyone guide me along?</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/numpy/numpy/blob/4092a9e160cc247a4a45724579a0c829733688ca/numpy/lib/twodim_base.py#L689-L702">numpy/numpy/lib/twodim_base.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 689 to 702 in <a data-pjax="true" class="commit-tease-sha" href="/numpy/numpy/commit/4092a9e160cc247a4a45724579a0c829733688ca">4092a9e</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="L689" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="689"></td> <td id="LC689" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> NonUniformImage displays exact bin edges with interpolation:</span> </td> </tr> <tr class="border-0"> <td id="L690" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="690"></td> <td id="LC690" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"></span> </td> </tr> <tr class="border-0"> <td id="L691" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="691"></td> <td id="LC691" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> &gt;&gt;&gt; ax = fig.add_subplot(133)</span> </td> </tr> <tr class="border-0"> <td id="L692" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="692"></td> <td id="LC692" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> &gt;&gt;&gt; ax.set_title('NonUniformImage: interpolated')</span> </td> </tr> <tr class="border-0"> <td id="L693" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="693"></td> <td id="LC693" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> &gt;&gt;&gt; im = mpl.image.NonUniformImage(ax, interpolation='bilinear')</span> </td> </tr> <tr class="border-0"> <td id="L694" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="694"></td> <td id="LC694" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> &gt;&gt;&gt; xcenters = xedges[:-1] + 0.5 * (xedges[1:] - xedges[:-1])</span> </td> </tr> <tr class="border-0"> <td id="L695" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="695"></td> <td id="LC695" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> &gt;&gt;&gt; ycenters = yedges[:-1] + 0.5 * (yedges[1:] - yedges[:-1])</span> </td> </tr> <tr class="border-0"> <td id="L696" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="696"></td> <td id="LC696" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> &gt;&gt;&gt; im.set_data(xcenters, ycenters, H)</span> </td> </tr> <tr class="border-0"> <td id="L697" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="697"></td> <td id="LC697" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> &gt;&gt;&gt; ax.images.append(im)</span> </td> </tr> <tr class="border-0"> <td id="L698" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="698"></td> <td id="LC698" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> &gt;&gt;&gt; ax.set_xlim(xedges[0], xedges[-1])</span> </td> </tr> <tr class="border-0"> <td id="L699" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="699"></td> <td id="LC699" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> &gt;&gt;&gt; ax.set_ylim(yedges[0], yedges[-1])</span> </td> </tr> <tr class="border-0"> <td id="L700" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="700"></td> <td id="LC700" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> &gt;&gt;&gt; ax.set_aspect('equal')</span> </td> </tr> <tr class="border-0"> <td id="L701" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="701"></td> <td id="LC701" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> &gt;&gt;&gt; plt.show()</span> </td> </tr> <tr class="border-0"> <td id="L702" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="702"></td> <td id="LC702" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"></span> </td> </tr> </tbody></table> </div> </div> <p></p>
<p dir="auto">Hi all,</p> <p dir="auto">np.histogram2d online documentation gives an non-functioning example.</p> <p dir="auto">Documentation page:<br> <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram2d.html" rel="nofollow">http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram2d.html</a></p> <p dir="auto">Non-functioning example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pcolormesh can display exact bin edges: &gt;&gt;&gt; ax = fig.add_subplot(132) &gt;&gt;&gt; ax.set_title('pcolormesh: exact bin edges') &gt;&gt;&gt; X, Y = np.meshgrid(xedges, yedges) &gt;&gt;&gt; ax.pcolormesh(X, Y, H) &gt;&gt;&gt; ax.set_aspect('equal')"><pre class="notranslate"><code class="notranslate">pcolormesh can display exact bin edges: &gt;&gt;&gt; ax = fig.add_subplot(132) &gt;&gt;&gt; ax.set_title('pcolormesh: exact bin edges') &gt;&gt;&gt; X, Y = np.meshgrid(xedges, yedges) &gt;&gt;&gt; ax.pcolormesh(X, Y, H) &gt;&gt;&gt; ax.set_aspect('equal') </code></pre></div> <p dir="auto">Problem with example:<br> numpy.histogram2d returns an array H shaped (nx, ny).<br> numpy.meshgrid returns X, Y arrays shaped (ny, nx). [When called with the default Cartesian indexing]<br> Therefore, X,Y are incompatible with H for pcolormesh, which gives an error.</p> <p dir="auto">Proposed updated example (transpose H):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pcolormesh can display exact bin edges: &gt;&gt;&gt; ax = fig.add_subplot(132) &gt;&gt;&gt; ax.set_title('pcolormesh: exact bin edges') &gt;&gt;&gt; X, Y = np.meshgrid(xedges, yedges) &gt;&gt;&gt; ax.pcolormesh(X, Y, H.T) &gt;&gt;&gt; ax.set_aspect('equal')"><pre class="notranslate"><code class="notranslate">pcolormesh can display exact bin edges: &gt;&gt;&gt; ax = fig.add_subplot(132) &gt;&gt;&gt; ax.set_title('pcolormesh: exact bin edges') &gt;&gt;&gt; X, Y = np.meshgrid(xedges, yedges) &gt;&gt;&gt; ax.pcolormesh(X, Y, H.T) &gt;&gt;&gt; ax.set_aspect('equal') </code></pre></div>
1
<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="[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] 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">[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] 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">Let say we have this code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Component({ selector:'my-app', template:` &lt;h2&gt;Chess&lt;/h2&gt; &lt;router-outlet [attr.name]=&quot;'a'&quot;&gt;&lt;/router-outlet&gt; &lt;router-outlet [attr.name]=&quot;'b'&quot;&gt;&lt;/router-outlet&gt; &lt;router-outlet *ngFor=&quot;let name of ['c', 'd']&quot; [attr.name]=&quot;name&quot;&gt;&lt;/router-outlet&gt; ` }) class Chess {} "><pre class="notranslate"><code class="notranslate">@Component({ selector:'my-app', template:` &lt;h2&gt;Chess&lt;/h2&gt; &lt;router-outlet [attr.name]="'a'"&gt;&lt;/router-outlet&gt; &lt;router-outlet [attr.name]="'b'"&gt;&lt;/router-outlet&gt; &lt;router-outlet *ngFor="let name of ['c', 'd']" [attr.name]="name"&gt;&lt;/router-outlet&gt; ` }) class Chess {} </code></pre></div> <p dir="auto">It doesn't work and it is right. Attribute in router-outlet directive is like a 'const' modifier in typescript. You can set it only manually in a template.<br> But what if I develop application and set routes and outlets dynamically. How expensive it will be to allow router-outlet directive to be dynamic?</p>
<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="[ ] bug report =&gt; search github for a similar issue or PR before submitting [X] 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">[ ] bug report =&gt; search github for a similar issue or PR before submitting [X] 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> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;router-outlet name=&quot;outlet1&quot;&gt;&lt;/router-outlet&gt; &lt;router-outlet name=&quot;outlet2&quot;&gt;&lt;/router-outlet&gt; &lt;router-outlet name=&quot;outlet3&quot;&gt;&lt;/router-outlet&gt;"><pre class="notranslate"><code class="notranslate">&lt;router-outlet name="outlet1"&gt;&lt;/router-outlet&gt; &lt;router-outlet name="outlet2"&gt;&lt;/router-outlet&gt; &lt;router-outlet name="outlet3"&gt;&lt;/router-outlet&gt; </code></pre></div> <p dir="auto"><strong>Expected behavior</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div *ngFor=&quot;let outlet of outletList&quot;&gt; &lt;router-outlet [name]=&quot;outlet.name&quot;&gt;&lt;/router-outlet&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div *ngFor="let outlet of outletList"&gt; &lt;router-outlet [name]="outlet.name"&gt;&lt;/router-outlet&gt; &lt;/div&gt; </code></pre></div> <p dir="auto">where outletList = [list1, list2, list3];<br> where list1.name = 'outlet1';<br> list2.name = 'outlet2';<br> list3.name = 'outlet3';</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> N/A</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> I am requesting a feature change of router-outlet's name type from <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Attribute/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Attribute">@Attribute</a> to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/input/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/input">@input</a> property, so developers can bind a name dynamically to a router-outlet.<br> Currently, developers need to hard code a string for router-outlet's name attribute in the html template. If a developer needs to create multiple router outlets, he/she would need to create multiple router outlets and manually add the unique name to each router-outlet.<br> This would enable developers to develop cleaner code when they use multiple router-outlets.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.X<br> Angular 2.0.0</li> <li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]<br> Chrome</li> <li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> Typescript</li> <li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =<br> node 6.4.0</li> </ul>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest <code class="notranslate">xxxx/xxxx.d.ts</code> file in this repo and had problems.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I want to talk about <code class="notranslate">xxxx/xxxx.d.ts</code>. <ul dir="auto"> <li>The authors of that type definition are cc/ @....</li> </ul> </li> </ul> <p dir="auto">The type definitions are causing TS2300/Duplicate identifier errors due to collision with ES6. Exact output is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="514 bold(): string; ~~~~ node_modules/typescript/lib/lib.es6.d.ts(514,5): error TS2300: Duplicate identifier 'bold'. 109 bold: string; ~~~~ typings/globals/colors/index.d.ts(109,5): error TS2300: Duplicate identifier 'bold'."><pre class="notranslate"><code class="notranslate">514 bold(): string; ~~~~ node_modules/typescript/lib/lib.es6.d.ts(514,5): error TS2300: Duplicate identifier 'bold'. 109 bold: string; ~~~~ typings/globals/colors/index.d.ts(109,5): error TS2300: Duplicate identifier 'bold'. </code></pre></div> <p dir="auto">It appears that the tscparams file for this is preventing the error from appearing in the unit tests. According to the package's documentation, using the 'colors/safe' module would not override the string classes native methods and would do away with this error. But, as the definitions do not have this sub module, Typescript does not allow the import of 'colors/safe'.</p>
<p dir="auto">Hi,<br> Getting the below exception with npm package @types/request-promise-native version 1.0.12, issue is not reproducible for previous versions. Could anyone look into this asap.<br> node_modules/@types/request-promise-native/index.d.ts(20,49): error TS2694: Namespace 'request' has no exported member 'Response'.<br> node_modules/@types/request-promise-native/index.d.ts(24,33): error TS2694: Namespace 'request' has no exported member 'Response'.</p> <p dir="auto">Got the below code that is causing the error:<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/DefinitelyTyped/DefinitelyTyped/blob/a436740d5ddaff62e522da2ae212031acb7ef935/types/request-promise-native/index.d.ts#L20">DefinitelyTyped/types/request-promise-native/index.d.ts</a> </p> <p class="mb-0 color-fg-muted"> Line 20 in <a data-pjax="true" class="commit-tease-sha" href="/DefinitelyTyped/DefinitelyTyped/commit/a436740d5ddaff62e522da2ae212031acb7ef935">a436740</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="L20" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="20"></td> <td id="LC20" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">transform</span>?<span class="pl-kos">(</span><span class="pl-s1">body</span>: <span class="pl-smi">any</span><span class="pl-kos">,</span> <span class="pl-s1">response</span>: <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-smi">Response</span><span class="pl-kos">,</span> <span class="pl-s1">resolveWithFullResponse</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">)</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">Thanks.</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: [run &quot;ver&quot; at a command prompt] PowerToys version: PowerToy module for which you are reporting the bug (if applicable):"><pre class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt] PowerToys version: PowerToy module for which you are reporting the bug (if applicable): </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Go to Keyboard Manager then click remap a key.<br> Choose any key on left dropdown and try to select any of the two keys that look like underscore on right key dropdown<br> It gets mapped to hyphen in any case and not to underscore.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Choose any key and map it to the underscore key.</p> <h1 dir="auto">Actual behavior</h1> <h1 dir="auto">Screenshots</h1>
<p dir="auto">Automatically switch display scaling when switching between desktop and tablet modes.</p> <p dir="auto">i.e. - desktop mode @ 150% scaling &amp; tablet mode @ 200% scaling. Allow user to choose each custom scaling amount per their preference.</p>
0
<p dir="auto">I'm trying to build tensorflow 1.9 for android but build always fails due to different reasons...</p> <p dir="auto">For android-ndk-r14b I've tried the following:</p> <p dir="auto"><strong>bazel --output_user_root=/mnt/d/ai/.madman/bazel build -c opt //tensorflow:libtensorflow_cc.so --crosstool_top=//external:android/crosstool --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --cpu=armeabi-v7a --cxxopt="-std=c++11" --cxxopt="-DTENSORFLOW_DISABLE_META" --jobs 1</strong></p> <p dir="auto"><em>But got this:</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO: Analysed target //tensorflow:libtensorflow_cc.so (0 packages loaded). INFO: Found 1 target... ERROR: /mnt/d/ai/.madman/tensorflow_r1.9/tensorflow/core/distributed_runtime/rpc/BUILD:160:1: C++ compilation of rule '//tensorflow/core/distributed_runtime/rpc:grpc_worker_service' failed (Exit 1) In file included from tensorflow/core/distributed_runtime/rpc/grpc_worker_service.cc:20: In file included from external/grpc/include/grpc++/alarm.h:26: In file included from external/grpc/include/grpcpp/alarm.h:25: In file included from external/grpc/include/grpcpp/impl/codegen/completion_queue.h:37: In file included from external/grpc/include/grpcpp/impl/codegen/core_codegen_interface.h:25: external/grpc/include/grpcpp/impl/codegen/config.h:37:12: error: no member named 'to_string' in namespace 'std' using std::to_string; ~~~~~^"><pre class="notranslate"><code class="notranslate">INFO: Analysed target //tensorflow:libtensorflow_cc.so (0 packages loaded). INFO: Found 1 target... ERROR: /mnt/d/ai/.madman/tensorflow_r1.9/tensorflow/core/distributed_runtime/rpc/BUILD:160:1: C++ compilation of rule '//tensorflow/core/distributed_runtime/rpc:grpc_worker_service' failed (Exit 1) In file included from tensorflow/core/distributed_runtime/rpc/grpc_worker_service.cc:20: In file included from external/grpc/include/grpc++/alarm.h:26: In file included from external/grpc/include/grpcpp/alarm.h:25: In file included from external/grpc/include/grpcpp/impl/codegen/completion_queue.h:37: In file included from external/grpc/include/grpcpp/impl/codegen/core_codegen_interface.h:25: external/grpc/include/grpcpp/impl/codegen/config.h:37:12: error: no member named 'to_string' in namespace 'std' using std::to_string; ~~~~~^ </code></pre></div> <p dir="auto"><em>... also tried to switch to llvm's STL like this:</em></p> <p dir="auto"><strong>bazel --output_user_root=/mnt/d/ai/.madman/bazel build -c opt //tensorflow:libtensorflow_cc.so --crosstool_top=@androidndk//:toolchain-libcpp --android_crosstool_top=@androidndk//:toolchain-libcpp --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --cpu=armeabi-v7a --cxxopt="-std=c++11" --cxxopt="-DTENSORFLOW_DISABLE_META" --jobs 1</strong></p> <p dir="auto"><em>... and got another issue:</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: /mnt/d/ai/.madman/bazel/cd3928a854e918c00cc4e280f6815890/external/grpc/BUILD:1960:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_encode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /mnt/d/ai/.madman/bazel/cd3928a854e918c00cc4e280f6815890/external/grpc/bazel/grpc_build_system.bzl:172:12 INFO: Analysed target //tensorflow:libtensorflow_cc.so (0 packages loaded). INFO: Found 1 target... ERROR: /mnt/d/ai/.madman/tensorflow_r1.9/tensorflow/core/kernels/BUILD:340:1: C++ compilation of rule '//tensorflow/core/kernels:stage_op' failed (Exit 1) In file included from tensorflow/core/kernels/stage_op.cc:22: In file included from ./tensorflow/core/framework/op_kernel.h:23: In file included from ./tensorflow/core/framework/allocator.h:23: In file included from ./tensorflow/core/framework/numeric_types.h:19: In file included from external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/complex:246: In file included from external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/cmath:305: In file included from external/androidndk/ndk/sources/android/support/include/math.h:31: external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:661:91: error: use of undeclared identifier 'acosl' inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return acosl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:673:91: error: use of undeclared identifier 'asinl' inline _LIBCPP_INLINE_VISIBILITY long double asin(long double __lcpp_x) _NOEXCEPT {return asinl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:685:91: error: use of undeclared identifier 'atanl' inline _LIBCPP_INLINE_VISIBILITY long double atan(long double __lcpp_x) _NOEXCEPT {return atanl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:697:114: error: use of undeclared identifier 'atan2l' inline _LIBCPP_INLINE_VISIBILITY long double atan2(long double __lcpp_y, long double __lcpp_x) _NOEXCEPT {return atan2l(__lcpp_y, __lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:732:90: error: use of undeclared identifier 'cosl' inline _LIBCPP_INLINE_VISIBILITY long double cos(long double __lcpp_x) _NOEXCEPT {return cosl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:744:91: error: use of undeclared identifier 'coshl' inline _LIBCPP_INLINE_VISIBILITY long double cosh(long double __lcpp_x) _NOEXCEPT {return coshl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:756:90: error: use of undeclared identifier 'expl' inline _LIBCPP_INLINE_VISIBILITY long double exp(long double __lcpp_x) _NOEXCEPT {return expl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:792:113: error: use of undeclared identifier 'fmodl' inline _LIBCPP_INLINE_VISIBILITY long double fmod(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return fmodl(__lcpp_x, __lcpp_y);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:839:90: error: use of undeclared identifier 'logl' inline _LIBCPP_INLINE_VISIBILITY long double log(long double __lcpp_x) _NOEXCEPT {return logl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:851:92: error: use of undeclared identifier 'log10l' inline _LIBCPP_INLINE_VISIBILITY long double log10(long double __lcpp_x) _NOEXCEPT {return log10l(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:863:114: error: use of undeclared identifier 'modfl' inline _LIBCPP_INLINE_VISIBILITY long double modf(long double __lcpp_x, long double* __lcpp_y) _NOEXCEPT {return modfl(__lcpp_x, __lcpp_y);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:870:112: error: use of undeclared identifier 'powl' inline _LIBCPP_INLINE_VISIBILITY long double pow(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return powl(__lcpp_x, __lcpp_y);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:893:90: error: use of undeclared identifier 'sinl' inline _LIBCPP_INLINE_VISIBILITY long double sin(long double __lcpp_x) _NOEXCEPT {return sinl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:905:91: error: use of undeclared identifier 'sinhl' inline _LIBCPP_INLINE_VISIBILITY long double sinh(long double __lcpp_x) _NOEXCEPT {return sinhl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:917:91: error: use of undeclared identifier 'sqrtl' inline _LIBCPP_INLINE_VISIBILITY long double sqrt(long double __lcpp_x) _NOEXCEPT {return sqrtl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:931:90: error: use of undeclared identifier 'tanl' inline _LIBCPP_INLINE_VISIBILITY long double tan(long double __lcpp_x) _NOEXCEPT {return tanl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:943:91: error: use of undeclared identifier 'tanhl' inline _LIBCPP_INLINE_VISIBILITY long double tanh(long double __lcpp_x) _NOEXCEPT {return tanhl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:955:92: error: use of undeclared identifier 'acoshl' inline _LIBCPP_INLINE_VISIBILITY long double acosh(long double __lcpp_x) _NOEXCEPT {return acoshl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:967:92: error: use of undeclared identifier 'asinhl' inline _LIBCPP_INLINE_VISIBILITY long double asinh(long double __lcpp_x) _NOEXCEPT {return asinhl(__lcpp_x);} ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. Target //tensorflow:libtensorflow_cc.so failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 7.012s, Critical Path: 1.84s INFO: 0 processes. FAILED: Build did NOT complete successfully"><pre class="notranslate"><code class="notranslate">WARNING: /mnt/d/ai/.madman/bazel/cd3928a854e918c00cc4e280f6815890/external/grpc/BUILD:1960:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_encode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /mnt/d/ai/.madman/bazel/cd3928a854e918c00cc4e280f6815890/external/grpc/bazel/grpc_build_system.bzl:172:12 INFO: Analysed target //tensorflow:libtensorflow_cc.so (0 packages loaded). INFO: Found 1 target... ERROR: /mnt/d/ai/.madman/tensorflow_r1.9/tensorflow/core/kernels/BUILD:340:1: C++ compilation of rule '//tensorflow/core/kernels:stage_op' failed (Exit 1) In file included from tensorflow/core/kernels/stage_op.cc:22: In file included from ./tensorflow/core/framework/op_kernel.h:23: In file included from ./tensorflow/core/framework/allocator.h:23: In file included from ./tensorflow/core/framework/numeric_types.h:19: In file included from external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/complex:246: In file included from external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/cmath:305: In file included from external/androidndk/ndk/sources/android/support/include/math.h:31: external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:661:91: error: use of undeclared identifier 'acosl' inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return acosl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:673:91: error: use of undeclared identifier 'asinl' inline _LIBCPP_INLINE_VISIBILITY long double asin(long double __lcpp_x) _NOEXCEPT {return asinl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:685:91: error: use of undeclared identifier 'atanl' inline _LIBCPP_INLINE_VISIBILITY long double atan(long double __lcpp_x) _NOEXCEPT {return atanl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:697:114: error: use of undeclared identifier 'atan2l' inline _LIBCPP_INLINE_VISIBILITY long double atan2(long double __lcpp_y, long double __lcpp_x) _NOEXCEPT {return atan2l(__lcpp_y, __lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:732:90: error: use of undeclared identifier 'cosl' inline _LIBCPP_INLINE_VISIBILITY long double cos(long double __lcpp_x) _NOEXCEPT {return cosl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:744:91: error: use of undeclared identifier 'coshl' inline _LIBCPP_INLINE_VISIBILITY long double cosh(long double __lcpp_x) _NOEXCEPT {return coshl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:756:90: error: use of undeclared identifier 'expl' inline _LIBCPP_INLINE_VISIBILITY long double exp(long double __lcpp_x) _NOEXCEPT {return expl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:792:113: error: use of undeclared identifier 'fmodl' inline _LIBCPP_INLINE_VISIBILITY long double fmod(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return fmodl(__lcpp_x, __lcpp_y);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:839:90: error: use of undeclared identifier 'logl' inline _LIBCPP_INLINE_VISIBILITY long double log(long double __lcpp_x) _NOEXCEPT {return logl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:851:92: error: use of undeclared identifier 'log10l' inline _LIBCPP_INLINE_VISIBILITY long double log10(long double __lcpp_x) _NOEXCEPT {return log10l(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:863:114: error: use of undeclared identifier 'modfl' inline _LIBCPP_INLINE_VISIBILITY long double modf(long double __lcpp_x, long double* __lcpp_y) _NOEXCEPT {return modfl(__lcpp_x, __lcpp_y);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:870:112: error: use of undeclared identifier 'powl' inline _LIBCPP_INLINE_VISIBILITY long double pow(long double __lcpp_x, long double __lcpp_y) _NOEXCEPT {return powl(__lcpp_x, __lcpp_y);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:893:90: error: use of undeclared identifier 'sinl' inline _LIBCPP_INLINE_VISIBILITY long double sin(long double __lcpp_x) _NOEXCEPT {return sinl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:905:91: error: use of undeclared identifier 'sinhl' inline _LIBCPP_INLINE_VISIBILITY long double sinh(long double __lcpp_x) _NOEXCEPT {return sinhl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:917:91: error: use of undeclared identifier 'sqrtl' inline _LIBCPP_INLINE_VISIBILITY long double sqrt(long double __lcpp_x) _NOEXCEPT {return sqrtl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:931:90: error: use of undeclared identifier 'tanl' inline _LIBCPP_INLINE_VISIBILITY long double tan(long double __lcpp_x) _NOEXCEPT {return tanl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:943:91: error: use of undeclared identifier 'tanhl' inline _LIBCPP_INLINE_VISIBILITY long double tanh(long double __lcpp_x) _NOEXCEPT {return tanhl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:955:92: error: use of undeclared identifier 'acoshl' inline _LIBCPP_INLINE_VISIBILITY long double acosh(long double __lcpp_x) _NOEXCEPT {return acoshl(__lcpp_x);} ^ external/androidndk/ndk/sources/cxx-stl/llvm-libc++/include/math.h:967:92: error: use of undeclared identifier 'asinhl' inline _LIBCPP_INLINE_VISIBILITY long double asinh(long double __lcpp_x) _NOEXCEPT {return asinhl(__lcpp_x);} ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. Target //tensorflow:libtensorflow_cc.so failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 7.012s, Critical Path: 1.84s INFO: 0 processes. FAILED: Build did NOT complete successfully </code></pre></div> <p dir="auto">So I've tried the same for android-ndk-r12b:</p> <p dir="auto"><em>first in this way:</em></p> <p dir="auto"><strong>bazel build -c opt //tensorflow/contrib/android:libtensorflow_inference.so --crosstool_top=//external:android/crosstool --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --cpu=armeabi-v7a --jobs 1</strong></p> <p dir="auto"><em>... but got another issue:</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: /mnt/d/ai/.madman/tensorflow_r1.9-gcc/tensorflow/core/BUILD:2891:1: C++ compilation of rule '//tensorflow/core:gpu_runtime_impl' failed (Exit 1) tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc: In member function 'virtual void* tensorflow::GPUNanResetAllocator::AllocateRaw(size_t, size_t)': tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc:176:27: error: 'nanf' is not a member of 'std' std::nanf(&quot;&quot;)); ^ tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc:176:27: note: suggested alternative: In file included from external/androidndk/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include/cmath:44:0, from external/androidndk/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include/complex:44, from ./tensorflow/core/framework/numeric_types.h:19, from ./tensorflow/core/framework/allocator.h:23, from ./tensorflow/core/common_runtime/visitable_allocator.h:20, from ./tensorflow/core/common_runtime/gpu/gpu_debug_allocator.h:24, from tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc:16: external/androidndk/ndk/platforms/android-14/arch-arm/usr/include/math.h:359:7: note: 'nanf' float nanf(const char *) __NDK_FPABI_MATH__ __pure2; ^ tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc: In member function 'virtual void tensorflow::GPUNanResetAllocator::DeallocateRaw(void*)': tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc:191:29: error: 'nanf' is not a member of 'std' std::nanf(&quot;&quot;)); ^ tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc:191:29: note: suggested alternative: In file included from external/androidndk/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include/cmath:44:0, from external/androidndk/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include/complex:44, from ./tensorflow/core/framework/numeric_types.h:19, from ./tensorflow/core/framework/allocator.h:23, from ./tensorflow/core/common_runtime/visitable_allocator.h:20, from ./tensorflow/core/common_runtime/gpu/gpu_debug_allocator.h:24, from tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc:16: external/androidndk/ndk/platforms/android-14/arch-arm/usr/include/math.h:359:7: note: 'nanf' float nanf(const char *) __NDK_FPABI_MATH__ __pure2; ^ Target //tensorflow:libtensorflow_cc.so failed to build"><pre class="notranslate"><code class="notranslate">ERROR: /mnt/d/ai/.madman/tensorflow_r1.9-gcc/tensorflow/core/BUILD:2891:1: C++ compilation of rule '//tensorflow/core:gpu_runtime_impl' failed (Exit 1) tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc: In member function 'virtual void* tensorflow::GPUNanResetAllocator::AllocateRaw(size_t, size_t)': tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc:176:27: error: 'nanf' is not a member of 'std' std::nanf("")); ^ tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc:176:27: note: suggested alternative: In file included from external/androidndk/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include/cmath:44:0, from external/androidndk/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include/complex:44, from ./tensorflow/core/framework/numeric_types.h:19, from ./tensorflow/core/framework/allocator.h:23, from ./tensorflow/core/common_runtime/visitable_allocator.h:20, from ./tensorflow/core/common_runtime/gpu/gpu_debug_allocator.h:24, from tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc:16: external/androidndk/ndk/platforms/android-14/arch-arm/usr/include/math.h:359:7: note: 'nanf' float nanf(const char *) __NDK_FPABI_MATH__ __pure2; ^ tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc: In member function 'virtual void tensorflow::GPUNanResetAllocator::DeallocateRaw(void*)': tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc:191:29: error: 'nanf' is not a member of 'std' std::nanf("")); ^ tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc:191:29: note: suggested alternative: In file included from external/androidndk/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include/cmath:44:0, from external/androidndk/ndk/sources/cxx-stl/gnu-libstdc++/4.9/include/complex:44, from ./tensorflow/core/framework/numeric_types.h:19, from ./tensorflow/core/framework/allocator.h:23, from ./tensorflow/core/common_runtime/visitable_allocator.h:20, from ./tensorflow/core/common_runtime/gpu/gpu_debug_allocator.h:24, from tensorflow/core/common_runtime/gpu/gpu_debug_allocator.cc:16: external/androidndk/ndk/platforms/android-14/arch-arm/usr/include/math.h:359:7: note: 'nanf' float nanf(const char *) __NDK_FPABI_MATH__ __pure2; ^ Target //tensorflow:libtensorflow_cc.so failed to build </code></pre></div> <p dir="auto"><em>... then again tried to switch to llvm:</em></p> <p dir="auto"><strong>bazel build tensorflow/core:android_tensorflow_lib --crosstool_top=//external:android/crosstool --cpu=armeabi-v7a --host_crosstool_top=@bazel_tools//tools/cpp:toolchain --config monolithic</strong></p> <p dir="auto"><em>and again no luck:</em></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: /mnt/d/ai/.madman/tensorflow_r1.9-gcc/tensorflow/core/BUILD:2014:1: C++ compilation of rule '//tensorflow/core:lib_internal_impl' failed (Exit 1) In file included from external/androidndk/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:614:0, from external/androidndk/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/functional:477, from ./tensorflow/core/lib/core/threadpool.h:19, from tensorflow/core/lib/core/threadpool.cc:16: external/androidndk/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/atomic: In member function 'void Eigen::EventCount::CommitWait(Eigen::EventCount::Waiter*)': external/androidndk/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/atomic:720:75: error: invalid failure memory model for '__atomic_compare_exchange' __gcc_atomic::__to_gcc_order(__failure)); ^ Target //tensorflow:libtensorflow_cc.so failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 617.731s, Critical Path: 11.03s INFO: 264 processes: 264 local. FAILED: Build did NOT complete successfully "><pre class="notranslate"><code class="notranslate">ERROR: /mnt/d/ai/.madman/tensorflow_r1.9-gcc/tensorflow/core/BUILD:2014:1: C++ compilation of rule '//tensorflow/core:lib_internal_impl' failed (Exit 1) In file included from external/androidndk/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/memory:614:0, from external/androidndk/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/functional:477, from ./tensorflow/core/lib/core/threadpool.h:19, from tensorflow/core/lib/core/threadpool.cc:16: external/androidndk/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/atomic: In member function 'void Eigen::EventCount::CommitWait(Eigen::EventCount::Waiter*)': external/androidndk/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/atomic:720:75: error: invalid failure memory model for '__atomic_compare_exchange' __gcc_atomic::__to_gcc_order(__failure)); ^ Target //tensorflow:libtensorflow_cc.so failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 617.731s, Critical Path: 11.03s INFO: 264 processes: 264 local. FAILED: Build did NOT complete successfully </code></pre></div> <p dir="auto">What am I doing wrong?</p> <p dir="auto">P.S. '--jobs 1' seems to be necessary for my environment, otherwise I'm getting different random build issues.</p>
<p dir="auto">I have a network similar to A3C network described <a href="http://arxiv.org/abs/1602.01783" rel="nofollow">here</a>, with lots of syncing and copying tensor values between different duplicates of the model. The code crashes with a <code class="notranslate">Ran out of memory</code> exception (see below). This might be a little bit hard to reproduce somewhere other than my machine (since the code is not open source ... yet) but I would be more than happy to provide any logs or help to track down the issue.</p> <p dir="auto">What happens is that I receiving a lot of <code class="notranslate">pool_allocator</code> messages like below:</p> <blockquote> <p dir="auto">I tensorflow/core/common_runtime/gpu/pool_allocator.cc:244] PoolAllocator: After 40664481 get requests, put_count=40664484 evicted_count=39000 eviction_rate=0.000959068 and unsatisfied allocation rate=0.000959265</p> </blockquote> <p dir="auto">and then finally it crashes like this:</p> <blockquote> <p dir="auto">I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (256): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (512): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (1024): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (2048): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (4096): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (8192): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (16384): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (32768): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (65536): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (131072): Total Chunks: 1, Chunks in use: 0 204.5KiB allocated for chunks. 1.0KiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (262144): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (524288): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/104857655d0975cc967a7fcc170cbec6a8658c45/hovercard" href="https://github.com/tensorflow/tensorflow/commit/104857655d0975cc967a7fcc170cbec6a8658c45"><tt>1048576</tt></a>): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (2097152): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (4194304): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (8388608): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (16777216): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (33554432): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (67108864): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (134217728): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (268435456): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:656] Bin for 220.5KiB was 128.0KiB, Chunk State:<br> I tensorflow/core/common_runtime/bfc_allocator.cc:662] Size: 204.5KiB | Requested Size: 1.0KiB | in_use: 0, prev: Size: 16.0KiB | Requested Size: 16.0KiB | in_use: 1, next: Size: 16.0KiB | Requested Size: 16.0KiB | in_use: 1<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060000 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060100 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060200 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060300 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060400 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060500 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060600 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060700 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060800 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060900 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060a00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a064a00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a068a00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a070a00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a078a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a440a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a808a00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a808e00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a809200 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a809e00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a80aa00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a80ea00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a812a00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a813600 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a81b600 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a823600 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0abeb600 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afb3600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afb3a00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afb3e00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afb4a00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afb5600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afb5a00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afbda00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afc1a00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afc1e00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afc9e00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afcde00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afcea00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afcee00 of size 58624<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afdd300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afddf00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afe1f00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afe5f00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afe6b00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afe6f00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0afeef00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0aff2f00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0aff3b00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0aff3f00 of size 39168<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0affd800 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0affdc00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b005c00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b009c00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b00a800 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b00ac00 of size 58624<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b019100 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b019d00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b01dd00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b01e900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b01ed00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b022d00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b023900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b023d00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b02bd00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b02fd00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b030900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b030d00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b038d00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b03cd00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b03d900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b03dd00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b045d00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b049d00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b04a900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b04ad00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b052d00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b056d00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b057900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b057d00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b05fd00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b063d00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b064900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b064d00 of size 51968<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b071800 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b079800 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b07d800 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b07e400 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b07e800 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b082800 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b083400 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b083800 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b08b800 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b08f800 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b090400 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b090800 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b094800 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b095400 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b095800 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b09d800 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0a1800 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0a2400 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0a2800 of size 39168<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0ac100 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0b4100 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0b8100 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0b8d00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0b9100 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0c1100 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0c5100 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0c5500 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0cd500 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0d1500 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0d2100 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0d2500 of size 58624<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0e0a00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0e1600 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0e5600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0e5a00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0e9a00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0ea600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0eaa00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0f2a00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0f6a00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0f7600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b0f7a00 of size 39168<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b101300 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b109300 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b10d300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b10df00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b10e300 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b116300 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b11a300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b11af00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b11b300 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b123300 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b127300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b127f00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b128300 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b130300 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b134300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b134f00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b135300 of size 41984<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b13f700 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b147700 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b148300 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b14c300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b14cf00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b14d300 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b155300 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b159300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b159f00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b15a300 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b162300 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b166300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b166f00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b167300 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b16f300 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b173300 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b173700 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b17b700 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b17f700 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b180300 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b180700 of size 58624<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b18ec00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b18f800 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b193800 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b194400 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b194800 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b19c800 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1a0800 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1a1400 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1a1800 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1a9800 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1ad800 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1adc00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1b5c00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1b9c00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1ba800 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1bac00 of size 58624<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1c9100 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1c9d00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1cdd00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1ce900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1ced00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1d2d00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1d6d00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1d7900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1d7d00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1dfd00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1e3d00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1e4900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1e4d00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1ecd00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1f0d00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1f1900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1f1d00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1f9d00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1fdd00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1fe900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b1fed00 of size 29184<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b205f00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b20df00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b20e300 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b216300 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b21a300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b21af00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b21b300 of size 58624<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b229800 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b22a400 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b22a800 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b232800 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b236800 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b237400 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b237800 of size 58624<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b245d00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b246900 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b247500 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b247900 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b24f900 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b253900 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b254500 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b254900 of size 55552<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b262200 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b26a200 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b26e200 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b26ee00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b276e00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b27ae00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b27ba00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b27be00 of size 59648<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b28a700 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b28ab00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b28eb00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b28f700 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b28fb00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b297b00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b29bb00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b29c700 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b29cb00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2a4b00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2a8b00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2a9700 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2a9b00 of size 45568<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2b4d00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2b8d00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2bcd00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2bd900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2bdd00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2c5d00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2c9d00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2ca100 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2d2100 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2d6100 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2d6d00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2d7100 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2df100 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2e3100 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2e3500 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2eb500 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2ef500 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2f0100 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2f0500 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2f8500 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2fc500 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2fd100 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b2fd500 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b305500 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b309500 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b30a100 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b30a500 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b312500 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b316500 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b317100 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b317500 of size 21248<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b31c800 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b31d400 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b31e000 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b326000 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b326c00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b327000 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b32b000 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b32bc00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b32c000 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b334000 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b338000 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b338c00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b339000 of size 39168<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b342900 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b34a900 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b34e900 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b34f500 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b34f900 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b357900 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b35b900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b35bd00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b363d00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b367d00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b368900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b368d00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b370d00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b374d00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b375900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b375d00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b37dd00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b381d00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b382900 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b382d00 of size 26880<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b389600 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b38a200 of size 33792<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b392600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b392a00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b396a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0b75ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0bb26a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0beeea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0c2b6a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0c67ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0ca46a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0ce0ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0d1d6a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0d59ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0d966a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0dd2ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0e0f6a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0e4bea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0e886a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0ec4ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0f016a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0f3dea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0f7a6a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0fb6ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0ff36a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb102fea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb106c6a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb10a8ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb10e56a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1121ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb115e6a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb119aea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb11d76a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1213ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb12506a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb128cea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb12c96a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1305ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb13426a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb137eea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb13bb6a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb13f7ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb14346a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1470ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb14ad6a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb14e9ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb15266a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1562ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb159f6a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb15dbea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb16186a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1654ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb16916a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb16cdea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb170a6a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1746ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb17836a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb17bfea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb17fc6a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1838ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb18756a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb18b1ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb18ee6a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb192aea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb19676a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb19a3ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb19e06a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1a1cea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1a596a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1a95ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1ad26a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1b0eea00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1b0ef600 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1b4b7600 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1b87f600 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1bc47600 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1bc4f600 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c017600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c017a00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c01fa00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c023a00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c023e00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c02be00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c02fe00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c033e00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c034a00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c034e00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c03ce00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c040e00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c041a00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c041e00 of size 51712<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c04e800 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c04f400 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c417400 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c418000 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c7e0000 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c7e0400 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c7e8400 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c7ec400 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c7ed000 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c7ed400 of size 58624<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c7fb900 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1c7fc500 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1cbc4500 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1cf8c500 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1d354500 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1d358500 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1d359100 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1d359500 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1d361500 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1d365500 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1d366100 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1d366500 of size 56320<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1d374100 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1d73c100 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1db04100 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1db08100 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1ded0100 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1ded0d00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1ded1100 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1ded9100 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1dedd100 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e2a5100 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e2a5d00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e2a6100 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e2ae100 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e2b2100 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e67a100 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e67a500 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e682500 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e686500 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e687100 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e687500 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e68f500 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e693500 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e694100 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e694500 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e69c500 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e6a0500 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e6a1100 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e6a1500 of size 65024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e6b1300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1e6b1f00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1ea79f00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1ee41f00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f209f00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f20df00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f5d5f00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f5d6b00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f5d6f00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f5def00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f5e2f00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9aaf00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9abb00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9abf00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9aff00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9b0b00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9b0f00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9b4f00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9b5b00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9b5f00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9bdf00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9c1f00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9c2b00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9c2f00 of size 39168<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9cc800 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9d4800 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9d8800 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9d9400 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9d9800 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9e1800 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9e5800 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9e6400 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9e6800 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9ee800 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9f2800 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9f3400 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9f3800 of size 45568<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1f9fea00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1fa06a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb1fdcea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb20196a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb2055ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb20926a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb20ceea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb210b6a00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb210baa00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb21482a00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb21483600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb21483a00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb2148ba00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb2148fa00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb21857a00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb21858600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb21858a00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb21860a00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb21864a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb21c2ca00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb21c2d600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb21c2da00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb21c35a00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb21c39a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22001a00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22002600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22002a00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb2200aa00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb2200ea00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb223d6a00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb223d7600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb223d7a00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb223dfa00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb223e3a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb227aba00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb227ac600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb227aca00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb227b4a00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb227b8a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22b80a00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22b81600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22b81a00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22b85a00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22b86600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22b86a00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22b8ea00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22b92a00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22b93600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22b93a00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22b9ba00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22b9fa00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22ba0600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22ba0a00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22ba8a00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22baca00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22bad600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22bada00 of size 45568<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22bb8c00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22bc0c00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb22f88c00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb23350c00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb23718c00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb23ae0c00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb23ae4c00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb23eacc00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb23ead800 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb23eadc00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb23eb5c00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb23eb9c00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24281c00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24282800 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24282c00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb2428ac00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb2428ec00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24656c00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24657800 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24657c00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb2465fc00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24663c00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a2bc00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a2c000 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a34000 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a38000 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a38c00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a39000 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a41000 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a45000 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a45c00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a46000 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a4e000 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a52000 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a52c00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a53000 of size 65024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a62e00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24a63a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb24e2ba00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb251f3a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb255bba00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb255bfa00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25987a00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25988600 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25988a00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25990a00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25994a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d5ca00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d5ce00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d60e00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d61200 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d69200 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d6d200 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d6de00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d6e200 of size 58624<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d7c700 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d7d300 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d81300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d81f00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d82300 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d8a300 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d8e300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d8ef00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d8f300 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d97300 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d9b300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d9bf00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25d9c300 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25da4300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25da4f00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25da5300 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25dad300 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25db1300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25db1f00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25db2300 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25dba300 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25dbe300 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25dbef00 of size 1024<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25dbf300 of size 47872<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25dcae00 of size 3072<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25dcba00 of size 32768<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb25dd3a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb2619ba00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb26563a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb2692ba00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb26cf3a00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb270bba00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb270f2c00 of size 16384<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb270f6c00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb274bec00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb27886c00 of size 3964928<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb27c4ec00 of size 4219136<br> I tensorflow/core/common_runtime/bfc_allocator.cc:683] Free at 0xb270bfa00 of size 209408<br> I tensorflow/core/common_runtime/bfc_allocator.cc:689] Summary of in-use Chunks by size:<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 10 Chunks of size 256 totalling 2.5KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 125 Chunks of size 1024 totalling 125.0KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 125 Chunks of size 3072 totalling 375.0KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 122 Chunks of size 16384 totalling 1.91MiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 1 Chunks of size 21248 totalling 20.8KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 1 Chunks of size 26880 totalling 26.2KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 1 Chunks of size 29184 totalling 28.5KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 98 Chunks of size 32768 totalling 3.06MiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 1 Chunks of size 33792 totalling 33.0KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 5 Chunks of size 39168 totalling 191.2KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 1 Chunks of size 41984 totalling 41.0KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 3 Chunks of size 45568 totalling 133.5KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 1 Chunks of size 47872 totalling 46.8KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 1 Chunks of size 51712 totalling 50.5KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 1 Chunks of size 51968 totalling 50.8KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 1 Chunks of size 55552 totalling 54.2KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 1 Chunks of size 56320 totalling 55.0KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 9 Chunks of size 58624 totalling 515.2KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 1 Chunks of size 59648 totalling 58.2KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 2 Chunks of size 65024 totalling 127.0KiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 124 Chunks of size 3964928 totalling 468.88MiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:692] 1 Chunks of size 4219136 totalling 4.02MiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:696] Sum Total of in-use chunks: 479.76MiB<br> I tensorflow/core/common_runtime/bfc_allocator.cc:698] Stats:<br> Limit: 503270604<br> InUse: 503061248<br> MaxInUse: 503061248<br> NumAllocs: 20717987<br> MaxAllocSize: 4219136</p> <p dir="auto">W tensorflow/core/common_runtime/bfc_allocator.cc:270] ****************************************************************************************************<br> W tensorflow/core/common_runtime/bfc_allocator.cc:271] Ran out of memory trying to allocate 220.5KiB. See logs for memory state.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (256): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (512): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (1024): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (2048): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (4096): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (8192): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (16384): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (32768): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (65536): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (131072): Total Chunks: 1, Chunks in use: 0 204.5KiB allocated for chunks. 1.0KiB client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (262144): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (524288): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/104857655d0975cc967a7fcc170cbec6a8658c45/hovercard" href="https://github.com/tensorflow/tensorflow/commit/104857655d0975cc967a7fcc170cbec6a8658c45"><tt>1048576</tt></a>): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (2097152): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (4194304): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (8388608): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (16777216): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (33554432): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (67108864): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (134217728): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:639] Bin (268435456): Total Chunks: 0, Chunks in use: 0 0B allocated for chunks. 0B client-requested for chunks. 0B in use in bin. 0B client-requested in use in bin.<br> I tensorflow/core/common_runtime/bfc_allocator.cc:656] Bin for 330.8KiB was 256.0KiB, Chunk State:<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060000 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060100 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060200 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060300 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060400 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060500 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060600 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060700 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060800 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060900 of size 256<br> I tensorflow/core/common_runtime/bfc_allocator.cc:674] Chunk at 0xb0a060a00 of size 16384<br> Exception in thread Predictor3:<br> Traceback (most recent call last):<br> File "/home/mbz/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 715, in _do_call<br> return fn(*args)<br> File "/home/mbz/anaconda3/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 697, in _run_fn<br> status, run_metadata)<br> File "/home/mbz/anaconda3/lib/python3.5/contextlib.py", line 66, in <strong>exit</strong><br> next(self.gen)<br> File "/home/mbz/anaconda3/lib/python3.5/site-packages/tensorflow/python/framework/errors.py", line 450, in raise_exception_on_not_ok_status<br> pywrap_tensorflow.TF_GetCode(status))<br> tensorflow.python.framework.errors.InternalError: Dst tensor is not initialized.<br> [[Node: _recv_network1/X_0/_28 = _Recv<a href="">client_terminated=false, recv_device="/job:localhost/replica:0/task:0/gpu:1", send_device="/job:localhost/replica:0/task:0/cpu:0", send_device_incarnation=1, tensor_name="edge_9__recv_network1/X_0", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/gpu:1"</a>]]<br> [[Node: network1/Squeeze/_30 = _Recv<a href="">client_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:1", send_device_incarnation=1, tensor_name="edge_10_network1/Squeeze", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/cpu:0"</a>]]</p> </blockquote> <h3 dir="auto">Environment info</h3> <p dir="auto">Operating System: Ubuntu 14.04</p> <p dir="auto">Installed version of CUDA and cuDNN:<br> -rw-r--r-- 1 root root 322936 Aug 15 2015 /usr/local/cuda/lib64//libcudadevrt.a<br> lrwxrwxrwx 1 root root 16 Aug 15 2015 /usr/local/cuda/lib64//libcudart.so -&gt; libcudart.so.7.5<br> lrwxrwxrwx 1 root root 19 Aug 15 2015 /usr/local/cuda/lib64//libcudart.so.7.5 -&gt; libcudart.so.7.5.18<br> -rwxr-xr-x 1 root root 383336 Aug 15 2015 /usr/local/cuda/lib64//libcudart.so.7.5.18<br> -rw-r--r-- 1 root root 720192 Aug 15 2015 /usr/local/cuda/lib64//libcudart_static.a<br> -rwxr-xr-x 1 root root 61453024 May 19 18:24 /usr/local/cuda/lib64//libcudnn.so<br> -rwxr-xr-x 1 root root 61453024 May 19 18:24 /usr/local/cuda/lib64//libcudnn.so.4<br> -rwxr-xr-x 1 root root 61453024 May 19 18:24 /usr/local/cuda/lib64//libcudnn.so.4.0.7<br> -rw-r--r-- 1 root root 62025862 May 19 18:24 /usr/local/cuda/lib64//libcudnn_static.a</p> <p dir="auto">If installed from binary pip package, provide:<br> Anaconda3 (python3)<br> TF v0.9</p>
0
<p dir="auto">In this demo <a href="http://getbootstrap.com/css/#forms-controls-static" rel="nofollow">http://getbootstrap.com/css/#forms-controls-static</a> when changing the focus or value of the password field - chrome browser freezes for a few seconds and uses a lot of CPU.</p> <p dir="auto">Not sure if this is a problem of chrome itself or anything related to bootstrap JS / CSS</p> <p dir="auto">Chrome version 28.0.1500.95 m running on Windows 7 64 bit</p>
<p dir="auto">Chrome for Mac. Enter some text in the "Password" input box (see pictured).</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/5b0192fc2eabefa48020f92df6a9b88ec17365be230042b721f8c963a2f3951b/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3733313734332f3936353332372f36393562653361652d303532382d313165332d393663302d3062663564313730353862642e706e67"><img src="https://camo.githubusercontent.com/5b0192fc2eabefa48020f92df6a9b88ec17365be230042b721f8c963a2f3951b/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3733313734332f3936353332372f36393562653361652d303532382d313165332d393663302d3062663564313730353862642e706e67" alt="screen shot 2013-08-14 at 22 28 02" data-canonical-src="https://f.cloud.github.com/assets/731743/965327/695be3ae-0528-11e3-96c0-0bf5d17058bd.png" style="max-width: 100%;"></a></p> <p dir="auto">Then delete the text, one character at a time. By the time you try to remove the last character, the tab freezes for a few seconds.</p>
1
<p dir="auto">Hi, developers,</p> <p dir="auto">When I used the StratifiedShuffleSplit or train_test_split with stratify option, I input the continuous variable. I thought the function will split the dataset into several subsets according to the continuous variable, and ensure the distribution of these subsets were the same.<br> However, I got the error 'The least populated class in y has only 1 member, which is too few'. According to this error, I guess the stratifed split in scikit-learn can only be used for classification problems.<br> So, with scikit-learn, how can I split the dataset into several subsets with the same distribution for a regression problem?</p> <p dir="auto">Have a good holiday.</p> <h2 dir="auto">Best wishses</h2> <p dir="auto">Zaixu</p>
<p dir="auto">It is important to stratify the samples according to y for cross-validation in regression models; otherwise, you might possibly get totally different ranges of y in training and validation sets. However, current <code class="notranslate">StratifiedKFold</code> doesn't allow float:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $ x=sklearn.cross_validation.StratifiedKFold(np.random.random(9), 2) /anaconda/envs/py3/lib/python3.4/site-packages/sklearn/cross_validation.py:417: Warning: The least populated class in y has only 1 members, which is too few. The minimum number of labels for any class cannot be less than n_folds=2. % (min_labels, self.n_folds)), Warning) $ list(x) [(array([], dtype=int64), array([0, 1, 2, 3, 4, 5, 6, 7, 8])), (array([0, 1, 2, 3, 4, 5, 6, 7, 8]), array([], dtype=int64))]"><pre class="notranslate"><code class="notranslate"> $ x=sklearn.cross_validation.StratifiedKFold(np.random.random(9), 2) /anaconda/envs/py3/lib/python3.4/site-packages/sklearn/cross_validation.py:417: Warning: The least populated class in y has only 1 members, which is too few. The minimum number of labels for any class cannot be less than n_folds=2. % (min_labels, self.n_folds)), Warning) $ list(x) [(array([], dtype=int64), array([0, 1, 2, 3, 4, 5, 6, 7, 8])), (array([0, 1, 2, 3, 4, 5, 6, 7, 8]), array([], dtype=int64))] </code></pre></div> <p dir="auto">In case I may miss something, is there any reason why <code class="notranslate">StratifiedKFold</code> does not work properly for float?</p>
1
<p dir="auto">This behavior may be misleading since I would consider that <code class="notranslate">2.0e-12</code> means the 0 is significant, which isn't the case with the second command below.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; sprint(Base.Grisu._show, 2.45e-12, Base.Grisu.PRECISION, 2, true) &quot;2.4e-12&quot; julia&gt; sprint(Base.Grisu._show, 2.45e-12, Base.Grisu.PRECISION, 1, true) &quot;2.0e-12&quot;"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">sprint</span>(Base<span class="pl-k">.</span>Grisu<span class="pl-k">.</span>_show, <span class="pl-c1">2.45e-12</span>, Base<span class="pl-k">.</span>Grisu<span class="pl-k">.</span>PRECISION, <span class="pl-c1">2</span>, <span class="pl-c1">true</span>) <span class="pl-s"><span class="pl-pds">"</span>2.4e-12<span class="pl-pds">"</span></span> julia<span class="pl-k">&gt;</span> <span class="pl-c1">sprint</span>(Base<span class="pl-k">.</span>Grisu<span class="pl-k">.</span>_show, <span class="pl-c1">2.45e-12</span>, Base<span class="pl-k">.</span>Grisu<span class="pl-k">.</span>PRECISION, <span class="pl-c1">1</span>, <span class="pl-c1">true</span>) <span class="pl-s"><span class="pl-pds">"</span>2.0e-12<span class="pl-pds">"</span></span></pre></div> <p dir="auto">On the other hand, <code class="notranslate">@printf</code> (which uses a different definition for the precision) returns:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; @printf(&quot;%.0e&quot;, 2.45e-12) 2e-12"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">@printf</span>(<span class="pl-s"><span class="pl-pds">"</span>%.0e<span class="pl-pds">"</span></span>, <span class="pl-c1">2.45e-12</span>) <span class="pl-c1">2e-12</span></pre></div> <p dir="auto">I guess an argument in favor of Grisu's behavior is that one gets a standard representation where <code class="notranslate">2.0</code> is necessarily a float, i.e. it cannot be mistakenly parsed back as an integer before the parser finds out there's an exponent part. But <code class="notranslate">float("2e-12")</code> works, so that's apparently not a problem.</p>
<p dir="auto">The following code which doesn't seem ambiguous to me gives an ambiguity warning:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type A{T}; end type B{T}; end f{T}(::T, ::A{T}) = 1 f{T}(::B{T}, ::T) = 2"><pre class="notranslate">type A{T}; <span class="pl-k">end</span> type B{T}; <span class="pl-k">end</span> <span class="pl-en">f</span><span class="pl-c1">{T}</span>(<span class="pl-k">::</span><span class="pl-c1">T</span>, <span class="pl-k">::</span><span class="pl-c1">A{T}</span>) <span class="pl-k">=</span> <span class="pl-c1">1</span> <span class="pl-en">f</span><span class="pl-c1">{T}</span>(<span class="pl-k">::</span><span class="pl-c1">B{T}</span>, <span class="pl-k">::</span><span class="pl-c1">T</span>) <span class="pl-k">=</span> <span class="pl-c1">2</span></pre></div>
0
<p dir="auto">Packages that use setup_requires=["numpy"] in their setup.py appear to fail to build on Windows+Py3.8.</p> <h3 dir="auto">Reproducing code example:</h3> <p dir="auto"><a href="https://github.com/anntzer/setup_requires-numpy">https://github.com/anntzer/setup_requires-numpy</a> is a minimal repro with just the following setup.py:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from setuptools import setup setup( name=&quot;testpkg&quot;, setup_requires=[&quot;numpy&quot;], )"><pre class="notranslate"><code class="notranslate">from setuptools import setup setup( name="testpkg", setup_requires=["numpy"], ) </code></pre></div> <p dir="auto">and is "built" (<code class="notranslate">python setup.py build</code>) on Azure on {linux,mac,windows}+{py3.7,py3.8}.</p> <p dir="auto">The resulting build is at <a href="https://dev.azure.com/anntzer/setup_requires-numpy/_build/results?buildId=158" rel="nofollow">https://dev.azure.com/anntzer/setup_requires-numpy/_build/results?buildId=158</a><br> As one can see, all builds succeed except windows+Py3.8, which fails with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;setup.py&quot;, line 3, in &lt;module&gt; setup( File &quot;C:\hostedtoolcache\windows\Python\3.8.0\x64\lib\site-packages\setuptools\__init__.py&quot;, line 144, in setup _install_setup_requires(attrs) File &quot;C:\hostedtoolcache\windows\Python\3.8.0\x64\lib\site-packages\setuptools\__init__.py&quot;, line 139, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) …distutils.errors.DistutilsError: Setup script exited with error: SandboxViolation: mkd…sers\\VSSADM~1\\AppData\\Local\\Temp\\easy_install-0gx4h9jy\\numpy-1.17.3\\build', 511) {} The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted. This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available."><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "setup.py", line 3, in &lt;module&gt; setup( File "C:\hostedtoolcache\windows\Python\3.8.0\x64\lib\site-packages\setuptools\__init__.py", line 144, in setup _install_setup_requires(attrs) File "C:\hostedtoolcache\windows\Python\3.8.0\x64\lib\site-packages\setuptools\__init__.py", line 139, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) …distutils.errors.DistutilsError: Setup script exited with error: SandboxViolation: mkd…sers\\VSSADM~1\\AppData\\Local\\Temp\\easy_install-0gx4h9jy\\numpy-1.17.3\\build', 511) {} The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted. This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available. </code></pre></div> <h3 dir="auto">Error message:</h3> <p dir="auto">see above</p> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">numpy 1.17.3, Python 3.8</p>
<p dir="auto">I didn't see this error reported, apologies if it is a duplicate -- my current numpy is 1.6.2.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ sudo easy_install --upgrade numpy Searching for numpy Reading http://pypi.python.org/simple/numpy/ Reading http://numpy.scipy.org Reading http://sourceforge.net/project/showfiles.php?group_id=1369&amp;package_id=175103 Reading http://www.numpy.org Reading http://sourceforge.net/projects/numpy/files/NumPy/ Reading http://numeric.scipy.org Best match: numpy 1.7.0 Downloading http://pypi.python.org/packages/source/n/numpy/numpy-1.7.0.zip#md5=ca27913c59393940e880fab420f985b4 Processing numpy-1.7.0.zip Running numpy-1.7.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-vw2DNu/numpy-1.7.0/egg-dist-tmp-gJGWkL Running from numpy source directory. error: SandboxViolation: open('/dev/null', 'w') {} The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted. This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available."><pre class="notranslate"><code class="notranslate">$ sudo easy_install --upgrade numpy Searching for numpy Reading http://pypi.python.org/simple/numpy/ Reading http://numpy.scipy.org Reading http://sourceforge.net/project/showfiles.php?group_id=1369&amp;package_id=175103 Reading http://www.numpy.org Reading http://sourceforge.net/projects/numpy/files/NumPy/ Reading http://numeric.scipy.org Best match: numpy 1.7.0 Downloading http://pypi.python.org/packages/source/n/numpy/numpy-1.7.0.zip#md5=ca27913c59393940e880fab420f985b4 Processing numpy-1.7.0.zip Running numpy-1.7.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-vw2DNu/numpy-1.7.0/egg-dist-tmp-gJGWkL Running from numpy source directory. error: SandboxViolation: open('/dev/null', 'w') {} The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted. This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available. </code></pre></div>
1
<p dir="auto">want to perform some operations when input parameters are being changed. Lets say I have a DatePicker component that has a type input variable, and I want to perform some actions with another date variable when type is being changed. How to do that?</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export class DatePicker { @Input() date: Date; @Output() dateChange = new EventEmitter(); @Input() set type(type: string) { if (type === &quot;today&quot;) { this.date = new Date(); this.dateChange(this.date); // because of this change change detector will throw error } } }"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">DatePicker</span> <span class="pl-kos">{</span> @<span class="pl-smi">Input</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">date</span>: <span class="pl-smi">Date</span><span class="pl-kos">;</span> @<span class="pl-smi">Output</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">dateChange</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">EventEmitter</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> @<span class="pl-smi">Input</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">set</span> <span class="pl-en">type</span><span class="pl-kos">(</span><span class="pl-s1">type</span>: <span class="pl-smi">string</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-s1">type</span> <span class="pl-c1">===</span> <span class="pl-s">"today"</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">date</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Date</span><span class="pl-kos">(</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-en">dateChange</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">date</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// because of this change change detector will throw error</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">p.s. I asked this question on <a href="http://stackoverflow.com/questions/38036548/angular-2-change-neighbor-input-variable-on-input-variable-change" rel="nofollow">SO</a> a week ago, and didn't get answer</p> <p dir="auto">Its a common case task - to perform operations when input values are being changed - any kind of operations, no matter if you change other variables - change detector or something else should not complain. Also, since I opened this issue I want to mention that current component's lifecycle in angular seems doubtful:</p> <p dir="auto">Inputs are coming before view and content init, and even ngOnInit, and if you are using setters on inputs to perform something that is depend of view components you can't do it on component initialization, but can do on next time inputs are changed. This creates a lot of monkey patches in the code, like this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export class DatePicker implements AfterViewInit { isViewInited = false; @Input() set data(data: string) { if (this.isViewInited) this.doSomethingViewRelated(data); } ngAfterViewInit() { this.isViewInited = true; this.doSomethingViewRelated(this.data); } }"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">DatePicker</span> <span class="pl-k">implements</span> <span class="pl-smi">AfterViewInit</span> <span class="pl-kos">{</span> <span class="pl-c1">isViewInited</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span> @<span class="pl-smi">Input</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">set</span> <span class="pl-en">data</span><span class="pl-kos">(</span><span class="pl-s1">data</span>: <span class="pl-smi">string</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">this</span><span class="pl-kos">.</span><span class="pl-c1">isViewInited</span><span class="pl-kos">)</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">doSomethingViewRelated</span><span class="pl-kos">(</span><span class="pl-s1">data</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">ngAfterViewInit</span><span class="pl-kos">(</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">isViewInited</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">doSomethingViewRelated</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">data</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"><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><br> Use loadChildren loaded module will repeat new dependencies module.</p> <p dir="auto"><strong>Expected behavior</strong><br> Not repeat new, use the singleton module.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">Define a child module, set more than one route, like this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { ModuleWithProviders } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { Page1Component, Page2Component } from './pages'; const appRoutes: Routes = [ { path: '', component: Page1Component }, { path: 'page2', component: Page2Component }, ]; export const routing: ModuleWithProviders = RouterModule.forChild(appRoutes); "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">ModuleWithProviders</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">Routes</span><span class="pl-kos">,</span> <span class="pl-v">RouterModule</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/router'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">Page1Component</span><span class="pl-kos">,</span> <span class="pl-v">Page2Component</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./pages'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">appRoutes</span>: <span class="pl-v">Routes</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">Page1Component</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'page2'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">Page2Component</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">export</span> <span class="pl-k">const</span> <span class="pl-s1">routing</span>: <span class="pl-v">ModuleWithProviders</span> <span class="pl-c1">=</span> <span class="pl-v">RouterModule</span><span class="pl-kos">.</span><span class="pl-en">forChild</span><span class="pl-kos">(</span><span class="pl-s1">appRoutes</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">In the parent routing config, dynamic load the child module, like this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { SubModule } from 'modules/demo1'; const appRoutes: Routes = [{ path: '', component: LayoutComponent, children: [ { path: 'demo1', loadChildren: () =&gt; AppModule }, { path: '**', component: NotFoundComponent } ] }]; export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes, { useHash: true });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">SubModule</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'modules/demo1'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">appRoutes</span>: <span class="pl-v">Routes</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">LayoutComponent</span><span class="pl-kos">,</span> <span class="pl-c1">children</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'demo1'</span><span class="pl-kos">,</span> <span class="pl-en">loadChildren</span>: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-v">AppModule</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'**'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">NotFoundComponent</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">export</span> <span class="pl-k">const</span> <span class="pl-s1">routing</span>: <span class="pl-v">ModuleWithProviders</span> <span class="pl-c1">=</span> <span class="pl-v">RouterModule</span><span class="pl-kos">.</span><span class="pl-en">forRoot</span><span class="pl-kos">(</span><span class="pl-s1">appRoutes</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">useHash</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">When visit <code class="notranslate">/demo1</code> and <code class="notranslate">/demo1/page1</code>, the sub module's dependency module will also init.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> When route change in dynamic loaded module.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> It is not important.</p> <ul dir="auto"> <li><strong>Angular version:</strong><br> 2.4.1</li> </ul>
0
<p dir="auto">We should simplify and stabilize the go/loader package's API. Before that happens, there are a number of features to add and bugs to fix:</p> <p dir="auto">Features:</p> <ol dir="auto"> <li> <p dir="auto">support ... patterns just like "go build" and "go list" do. (Ideally the logic would be shared. Russ suggested fork/execing "go list", but I don't like this approach: it uses the actual file system instead of the abstraction defined by build.Context.)</p> </li> <li> <p dir="auto">Allow packages specified on the command line to use cgo. Currently only imported packages are subject to cgo preprocessing.</p> </li> <li> <p dir="auto">Support pkg-config.</p> </li> </ol> <p dir="auto">API simplifications:</p> <ol start="4" dir="auto"> <li> <p dir="auto">The public fields of loader.Program are sometimes annoying to use. Study existing clients and come up with something more convenient.</p> </li> <li> <p dir="auto">Update the go/types tutorial at <a href="https://github.com/golang/example/tree/master/gotypes">https://github.com/golang/example/tree/master/gotypes</a>.</p> </li> </ol> <p dir="auto">Once this is done, we should use go/loader in tools such as golint, govet and stringer.</p> <p dir="auto">cc: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/griesemer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/griesemer">@griesemer</a></p>
<p dir="auto">Do you think <code class="notranslate">short</code> is necessary here for 3 times string copy?,<br> Maybe we could just <code class="notranslate">file = file[i+1:]</code> ?<br> I issue this because it is in the <code class="notranslate">l.mu.Lock()</code>:)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="https://github.com/golang/go/blob/master/src/log/log.go#L121 if l.flag&amp;(Lshortfile|Llongfile) != 0 { if l.flag&amp;Lshortfile != 0 { short := file for i := len(file) - 1; i &gt; 0; i-- { if file[i] == '/' { short = file[i+1:] break } } file = short }"><pre class="notranslate"><code class="notranslate">https://github.com/golang/go/blob/master/src/log/log.go#L121 if l.flag&amp;(Lshortfile|Llongfile) != 0 { if l.flag&amp;Lshortfile != 0 { short := file for i := len(file) - 1; i &gt; 0; i-- { if file[i] == '/' { short = file[i+1:] break } } file = short } </code></pre></div>
0
<h5 dir="auto">Description of the problem</h5> <p dir="auto">I'm using makeTextSprite from stemkoski examples. I found this problem in 102 as shown in the following fiddles.</p> <p dir="auto"><a href="https://jsfiddle.net/sanjaysk/c9nt80oh/" rel="nofollow">Fiddle showing problem with 102</a></p> <p dir="auto"><a href="https://jsfiddle.net/sanjaysk/7v0ep1kb/" rel="nofollow">Fiddle with 101, no problem</a></p> <p dir="auto">This form is for three.js bug reports and feature requests only.</p> <p dir="auto">This is NOT a help site. Do not ask help questions here.<br> If you need help, please use the <a href="https://discourse.threejs.org/" rel="nofollow">forum</a> or <a href="http://stackoverflow.com/questions/tagged/three.js" rel="nofollow">stackoverflow</a>.</p> <p dir="auto">Describe the bug or feature request in detail.</p> <p dir="auto">Always include a code snippet, screenshots, and any relevant models or textures to help us understand your issue.</p> <p dir="auto">Please also include a live example if possible. You can start from these templates:</p> <ul dir="auto"> <li><a href="https://jsfiddle.net/3foLr7sn/" rel="nofollow">jsfiddle</a> (latest release branch)</li> <li><a href="https://jsfiddle.net/qgu17w5o/" rel="nofollow">jsfiddle</a> (dev branch)</li> <li><a href="https://codepen.io/anon/pen/aEBKxR" rel="nofollow">codepen</a> (latest release branch)</li> <li><a href="https://codepen.io/anon/pen/BJWzaN" rel="nofollow">codepen</a> (dev branch)</li> </ul> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r102</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li>[] All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li>[] All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Sprites are flipped. This happened after somewhere between 101 (which works) and 102. In the sandbox below you can exchange the three version, going back to the last major has them positioned correctly.</p> <p dir="auto"><a href="https://codesandbox.io/s/1z92z6xwz4" rel="nofollow">https://codesandbox.io/s/1z92z6xwz4</a></p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r102</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> macOS</li> </ul>
1
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/10182040/6572606/64ff26ce-c74e-11e4-92bf-f18e4b74f0f8.png"><img src="https://cloud.githubusercontent.com/assets/10182040/6572606/64ff26ce-c74e-11e4-92bf-f18e4b74f0f8.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">As the snapshot sometime my atom directory will display weird ,it seems that some text are show duplicately and overlapped.</p> <p dir="auto">Restart the program will fix the problem temporary .</p>
<p dir="auto">Most noticeable in the tree view, resizing it, scrolling, etc. makes it redraw and go away.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/671378/5666877/fe272bc4-9717-11e4-9d81-c6f737e03def.png"><img src="https://cloud.githubusercontent.com/assets/671378/5666877/fe272bc4-9717-11e4-9d81-c6f737e03def.png" alt="screen shot 2015-01-07 at 2 47 31 pm" style="max-width: 100%;"></a></p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zcbenz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zcbenz">@zcbenz</a> Any ideas on this one?</p>
1
<h3 dir="auto">Version</h3> <p dir="auto">2.6.11</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://codesandbox.io/s/clever-sammet-51l0g?file=/src/components/HelloWorld.vue" rel="nofollow">https://codesandbox.io/s/clever-sammet-51l0g?file=/src/components/HelloWorld.vue</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">I have template code like below, and I have set vue-loader's option <code class="notranslate">compilerOptions.whitespace = "condense"</code>;</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;div class=&quot;hello&quot;&gt; &lt;button&gt; {{ msg }} &lt;/button&gt; &lt;/div&gt;"><pre class="notranslate"> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">hello</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> {{ msg }} <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></pre></div> <h3 dir="auto">What is expected?</h3> <p dir="auto">no whitespace output between <code class="notranslate">&lt;button&gt;</code> and <code class="notranslate">{{ msg }}</code>.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">"vue-template-compiler" removed whitespace between HTML tags, but left whitespaces around <code class="notranslate">{{msg}}</code>, which causes my button a bit wider than expected.</p> <hr> <p dir="auto">Would you please provider another option for <code class="notranslate">whitespace</code>, which can remove whitespaces between tags and Mustache?</p>
<h3 dir="auto">Version</h3> <p dir="auto">2.5.17</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://codepen.io/chessydk/pen/ZqGqbr?editors=1010#0" rel="nofollow">https://codepen.io/chessydk/pen/ZqGqbr?editors=1010#0</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Hover over the "æøå".</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">I would expect html attributes to be html-decoded, just like text-nodes, so when you hover over the text you should see "æøå"</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">You see <code class="notranslate">"&amp;#230;&amp;#248;&amp;#229;"</code></p> <hr> <p dir="auto">Context: Serving html from CMS backend as JSON and creating dynamic Vue component with the server-generated html, which can have danish characters in attributes (mostly in object-data bindings like :model="{prop: æøå}" , but the problem exists for all attributes.</p>
0
<p dir="auto">Hey there</p> <p dir="auto">I have upgraded an app to version 5 as in the list of fixes was the silent printing bug, but the issue is still the same.</p> <p dir="auto">My code:<br> <code class="notranslate">printWindow.webContents.print({silent: true});</code></p> <p dir="auto">Results in nothing happening at all. No errors thrown or anything. Changing it back to false, brings up the window to select the printer and then it prints perfectly fine. It's just the silent mode that doesn't work.</p> <p dir="auto">I am running this on Windows 10, with Node version 10.15.3. I can not try with a different OS as the printer only has drivers for Windows.</p> <p dir="auto">Many thanks,<br> Michael</p>
1
<p dir="auto">So if the viewport width is too small to show all buttons in a row, it transform into a dropdown. It could be offered via an optional trigger.</p>
<p dir="auto">Hi, I'm loving Bootstrap 3!</p> <p dir="auto">One problem I'm encountering is that button panels aren't "responsive" enough. I'd like to have <code class="notranslate">.btn-block</code> style buttons below 768px, and normal <code class="notranslate">.btn</code> style above, potentally with <code class="notranslate">.pull-left</code> or <code class="notranslate">.pull-right</code></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/a6c3a10a56c0eb33cff4efe2a5864261da4dad9806eba6e3585b612e34402abe/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f32373635352f3933313236392f65623035323639612d303032382d313165332d383837622d3863316565666335376531642e706e67"><img src="https://camo.githubusercontent.com/a6c3a10a56c0eb33cff4efe2a5864261da4dad9806eba6e3585b612e34402abe/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f32373635352f3933313236392f65623035323639612d303032382d313165332d383837622d3863316565666335376531642e706e67" alt="btn-responsive" data-canonical-src="https://f.cloud.github.com/assets/27655/931269/eb05269a-0028-11e3-887b-8c1eefc57e1d.png" style="max-width: 100%;"></a></p> <p dir="auto">Here's the proposal for this (thanks <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ggam/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ggam">@ggam</a>):</p> <div class="highlight highlight-source-css-less notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@media (max-width: @screen-sm) { .btn-group-responsive { margin-bottom: -10px; .btn { .btn-block(); // Reuse btn-block code margin-bottom: 10px; } .pull-left, .pull-right { float: none !important; } } }"><pre class="notranslate"><span class="pl-k">@media</span> (<span class="pl-c1">max-width</span>: <span class="pl-smi">@screen-sm</span>) { <span class="pl-e">.btn-group-responsive</span> { <span class="pl-c1">margin-bottom</span>: <span class="pl-c1">-10<span class="pl-k">px</span></span>; <span class="pl-e">.btn</span> { <span class="pl-e">.btn-block</span>(); <span class="pl-c"><span class="pl-c">//</span> Reuse btn-block code</span> <span class="pl-c1">margin-bottom</span>: <span class="pl-c1">10<span class="pl-k">px</span></span>; } <span class="pl-e">.pull-left</span>, <span class="pl-e">.pull-right</span> { <span class="pl-c1">float</span>: <span class="pl-c1">none</span> <span class="pl-k">!important</span>; } } }</pre></div>
1
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 0.165.0<br> <strong>System</strong>: linux 3.13.0-40-generic<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: spawn /usr/share/atom/atom (deleted) ENOENT</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:85 Error: spawn /usr/share/atom/atom (deleted) ENOENT at exports._errnoException (util.js:742:11) at Process.ChildProcess._handle.onexit (child_process.js:1051:32) at child_process.js:1142:20 at process._tickCallback (node.js:378:11) "><pre class="notranslate"><code class="notranslate">At events.js:85 Error: spawn /usr/share/atom/atom (deleted) ENOENT at exports._errnoException (util.js:742:11) at Process.ChildProcess._handle.onexit (child_process.js:1051:32) at child_process.js:1142:20 at process._tickCallback (node.js:378:11) </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="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: {}, &quot;editor&quot;: {} }"><pre class="notranslate"><code class="notranslate">{ "core": {}, "editor": {} } </code></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 No installed packages # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> <span class="pl-en">No</span> <span class="pl-en">installed</span> packages <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"><strong>TEMPORARY WORKAROUND</strong>: <code class="notranslate">ln -s /usr/share/atom/atom "/usr/share/atom/atom (deleted)"</code></p> <p dir="auto">Uncaught Error: spawn /opt/atom/atom (deleted) ENOENT</p> <p dir="auto"><strong>Atom Version</strong>: 0.152.0<br> <strong>System</strong>: linux 3.13.0-40-generic<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Steps To Reproduce</h3> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <h3 dir="auto">Stack Trace</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:85 Error: spawn /opt/atom/atom (deleted) ENOENT at exports._errnoException (util.js:742:11) at Process.ChildProcess._handle.onexit (child_process.js:1051:32) at child_process.js:1142:20 at process._tickCallback (node.js:378:11) "><pre class="notranslate"><code class="notranslate">At events.js:85 Error: spawn /opt/atom/atom (deleted) ENOENT at exports._errnoException (util.js:742:11) at Process.ChildProcess._handle.onexit (child_process.js:1051:32) at child_process.js:1142:20 at process._tickCallback (node.js:378:11) </code></pre></div>
1
<p dir="auto">Seems to me that most APIs will assign unique error codes to each potential validation error, in addition to human-readable messages.</p> <p dir="auto">Before considering a PR, I wonder what the consensus on adding the ability to add a 'code' property to each field constraint would be?</p>
<p dir="auto">Following my <a href="http://stackoverflow.com/q/15206637/744147" rel="nofollow">(unanswered) question at StackOverflow</a> I'm reporting this as a bug, as no one seems to know the answer.</p> <p dir="auto">Currently there's no way that I can see to populate the <code class="notranslate">code</code> property for the <code class="notranslate">ConstraintViolation</code> class, as it is not defined in the <code class="notranslate">Constraint</code> class. But as I see, it goes farther than that, as all the validators just ignore the parameters for the <code class="notranslate">addViolation</code> method, making it impossible for simple asserts to define a code for the violation.</p> <p dir="auto">What I expect it to allow is the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/** * @Assert\NotBlank(code=400) * @Assert\Email(code=401) */ protected $email;"><pre class="notranslate"><code class="notranslate">/** * @Assert\NotBlank(code=400) * @Assert\Email(code=401) */ protected $email; </code></pre></div> <p dir="auto">Problem is, the current validators call <code class="notranslate">addViolations</code> without setting the 5th argument (<code class="notranslate">code</code>). Plus, the <code class="notranslate">Constraint</code> class doesn't implement such a <code class="notranslate">code</code> property as mentioned.</p> <p dir="auto">If this is indeed considered a bug, I would like to send a PR with a patch, provided that this is the way that it should be working.If it's not, some directions would be amazing!</p>
1
<p dir="auto">Use case: I have an an entity with 10 properties, and a form which only edits 2 of those properties. That form has all the fields in the entity, but it only renders these 2 in the template.</p> <p dir="auto">The incoming request only has these 2 properties set, but when I bind it to the form, already populated with the entity in the Database, all files not included in the request are set to null.</p> <p dir="auto">I would not like create a new form for this, so i feel that the bindRequest command should not reset missing fields to null in the entity, only ignore them.</p> <p dir="auto">This line seems to be the trouble <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Form.php#L493">https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Form.php#L493</a></p> <p dir="auto">Is this an issue? Can it be solved?</p>
<p dir="auto"><strong>Description</strong></p> <p dir="auto">This is an idea of improvement for the Form feature: allow passing parameters to the translated fields</p> <p dir="auto">In SF, the translation feature is available almost everywhere:</p> <ul dir="auto"> <li>The Controllers ( Fully available )</li> <li>The Twig ( Fully available )</li> <li>The Services ( Fully available )</li> <li>The Forms ( Partially available )</li> </ul> <p dir="auto">The translation feature is partially available in the SF Forms because we cannot translate the keys <strong>which are expecting parameters</strong> to be translated.</p> <hr> <p dir="auto">If the translation parameters would be available directly in the Form Classes,<br> the SF developers would have theses gains :</p> <ul dir="auto"> <li>Be able to create SF Forms Fully Dynamic</li> <li>Avoid duplicating some keys specific to the forms</li> </ul> <hr> <p dir="auto">Currently in the Twig templates there are two ways to display a SF Form :</p> <p dir="auto">1 - Integrate the fields manually One by One</p> <p dir="auto">2 - Integrate the fields dynamically by looping over each field of the form</p> <p dir="auto">I am using the second Method for the following reasons:</p> <blockquote> <p dir="auto">It is time consuming to integrate all the fields of a form manually ( one by one ) in twig template.</p> </blockquote> <blockquote> <p dir="auto">It is also time consuming to maintain a form if we have to touch two different layers (Twig+ Form Class) for each modification.</p> </blockquote> <p dir="auto"><strong>Example</strong></p> <p dir="auto">-&gt; This is French translation file : App.fr.yml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="views: index: created_at: crée le %date%"><pre class="notranslate"><span class="pl-ent">views</span>: <span class="pl-ent">index</span>: <span class="pl-ent">created_at</span>: <span class="pl-s">crée le %date%</span></pre></div> <p dir="auto">-&gt; This is my English Translation file : App.en.yml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="views: index: created_at: created at %date%"><pre class="notranslate"><span class="pl-ent">views</span>: <span class="pl-ent">index</span>: <span class="pl-ent">created_at</span>: <span class="pl-s">created at %date%</span></pre></div> <p dir="auto">-&gt; This is my Form</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="... -&gt;add('created', DateTimeType::class, array('label' =&gt; 'views.index.created_at', 'widget' =&gt; 'single_text', 'input' =&gt; 'datetime', 'format' =&gt; 'dd/MM/yyyy HH:mm', 'attr' =&gt; array('data-date-format' =&gt; 'DD-MM-YYYY HH:mm'), 'translation_domain' =&gt; 'App')); ..."><pre class="notranslate"><span class="pl-c1">.</span>.<span class="pl-c1">.</span> -&gt;add(<span class="pl-s">'created'</span>, <span class="pl-v">DateTimeType</span>::class, <span class="pl-en">array</span>(<span class="pl-s">'label'</span> =&gt; <span class="pl-s">'views.index.created_at'</span>, <span class="pl-s">'widget'</span> =&gt; <span class="pl-s">'single_text'</span>, <span class="pl-s">'input'</span> =&gt; <span class="pl-s">'datetime'</span>, <span class="pl-s">'format'</span> =&gt; <span class="pl-s">'dd/MM/yyyy HH:mm'</span>, <span class="pl-s">'attr'</span> =&gt; <span class="pl-en">array</span>(<span class="pl-s">'data-date-format'</span> =&gt; <span class="pl-s">'DD-MM-YYYY HH:mm'</span>), <span class="pl-s">'translation_domain'</span> =&gt; <span class="pl-s">'App'</span>)); <span class="pl-c1">.</span>.<span class="pl-c1">.</span></pre></div> <p dir="auto">-&gt; This is my Twig template :</p> <div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{% for key, field in form.children %} &lt;div class=&quot;form-group form-md-line-input form-md-floating-label&quot; id=&quot;block_{{ key }}&quot;&gt; {{form_label(field)}} {{form_errors(field)}} {{form_widget(field)}} &lt;/div&gt; {% endfor %}"><pre class="notranslate">{% <span class="pl-k">for</span> <span class="pl-smi">key</span>, <span class="pl-smi">field</span> <span class="pl-k">in</span> <span class="pl-smi">form</span>.<span class="pl-smi">children</span> %} &lt;<span class="pl-ent">div</span> <span class="pl-e">class</span>=<span class="pl-s"><span class="pl-pds">"</span>form-group form-md-line-input form-md-floating-label<span class="pl-pds">"</span></span> <span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>block_{{ <span class="pl-smi">key</span> }}<span class="pl-pds">"</span></span>&gt; {{form_label(<span class="pl-smi">field</span>)}} {{form_errors(<span class="pl-smi">field</span>)}} {{form_widget(<span class="pl-smi">field</span>)}} &lt;/<span class="pl-ent">div</span>&gt; {% <span class="pl-k">endfor</span> %}</pre></div>
0
<h3 dir="auto">The wording in the update docs is (emphasis added):</h3> <p dir="auto">In a future version of pandas <code class="notranslate">pandas.concat()</code> will no longer sort the non-concatenation axis when it is not already aligned. (...)</p> <p dir="auto">To keep the previous behavior (sorting) and silence the warning, pass <code class="notranslate">sort=True</code>.<br> <strong>To accept the future behavior (no sorting), pass <code class="notranslate">sort=False</code></strong></p> <p dir="auto"><a href="https://pandas-docs.github.io/pandas-docs-travis/whatsnew.html#concatenation-will-no-longer-sort" rel="nofollow">https://pandas-docs.github.io/pandas-docs-travis/whatsnew.html#concatenation-will-no-longer-sort</a></p> <h3 dir="auto">But the wording in the <code class="notranslate">FutureWarning</code> messages is (emphasis added):</h3> <p dir="auto">Sorting because non-concatenation axis is not aligned. A future version<br> of pandas will change to not sort by default.</p> <p dir="auto"><strong>To accept the future behavior, pass <code class="notranslate">sort=True</code>.</strong><br> To retain the current behavior and silence the warning, pass <code class="notranslate">sort=False</code></p> <p dir="auto"><a href="https://github.com/pandas-dev/pandas/blob/c4da79b5b322c73d8e61d1cb98ac4ab1e2438b40/pandas/core/indexes/api.py">https://github.com/pandas-dev/pandas/blob/c4da79b5b322c73d8e61d1cb98ac4ab1e2438b40/pandas/core/indexes/api.py</a></p> <p dir="auto">It needs to be clearer that current default is still <code class="notranslate">sort=True</code> but will revert to <code class="notranslate">sort=False</code> in a future version.</p>
<h4 dir="auto">Problem description</h4> <p dir="auto">Pandas 0.23.0 adds a new warning when calling <code class="notranslate">concat</code> with misaligned axes (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="311461033" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/20613" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/20613/hovercard" href="https://github.com/pandas-dev/pandas/pull/20613">#20613</a>):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FutureWarning: Sorting because non-concatenation axis is not aligned. A future version of pandas will change to not sort by default. To accept the future behavior, pass 'sort=True'. To retain the current behavior and silence the warning, pass sort=False"><pre class="notranslate"><code class="notranslate">FutureWarning: Sorting because non-concatenation axis is not aligned. A future version of pandas will change to not sort by default. To accept the future behavior, pass 'sort=True'. To retain the current behavior and silence the warning, pass sort=False </code></pre></div> <p dir="auto">This seems strange; I'd assume that <code class="notranslate">sort=True</code> would give the current behaviour, and <code class="notranslate">sort=False</code> the future behaviour, as in the docs for <code class="notranslate">concat</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Explicitly pass sort=True to silence the warning and sort. Explicitly pass sort=False to silence the warning and not sort."><pre class="notranslate"><code class="notranslate">Explicitly pass sort=True to silence the warning and sort. Explicitly pass sort=False to silence the warning and not sort. </code></pre></div> <p dir="auto">I'm assuming the docs are right and the warning is wrong?</p>
1
<p dir="auto">If disk encounters disk error ,such as input/output err, this corrupted disk should be removed automatically from es node if index couldn't be written in for a long time.</p> <p dir="auto">Currently ops must update config and restart es node.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2016-08-31 10:43:18,568][WARN ][gateway ] [10.148.67.11] [slb_itvresult-2016.08.28.05]: failed to write index state java.nio.file.FileSystemException: /data/slot9/elasticsearch/es02/nodes/0/indices/slb_itvresult-2016.08.28.05: Input/output error at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.checkAccess(UnixFileSystemProvider.java:308) at java.nio.file.Files.createDirectories(Files.java:746) at org.elasticsearch.gateway.MetaDataStateFormat.write(MetaDataStateFormat.java:136) at org.elasticsearch.gateway.MetaStateService.writeIndex(MetaStateService.java:135) at org.elasticsearch.gateway.GatewayMetaState.clusterChanged(GatewayMetaState.java:160) at org.elasticsearch.gateway.Gateway.clusterChanged(Gateway.java:185) at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:610) at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)"><pre class="notranslate"><code class="notranslate">[2016-08-31 10:43:18,568][WARN ][gateway ] [10.148.67.11] [slb_itvresult-2016.08.28.05]: failed to write index state java.nio.file.FileSystemException: /data/slot9/elasticsearch/es02/nodes/0/indices/slb_itvresult-2016.08.28.05: Input/output error at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) at sun.nio.fs.UnixFileSystemProvider.checkAccess(UnixFileSystemProvider.java:308) at java.nio.file.Files.createDirectories(Files.java:746) at org.elasticsearch.gateway.MetaDataStateFormat.write(MetaDataStateFormat.java:136) at org.elasticsearch.gateway.MetaStateService.writeIndex(MetaStateService.java:135) at org.elasticsearch.gateway.GatewayMetaState.clusterChanged(GatewayMetaState.java:160) at org.elasticsearch.gateway.Gateway.clusterChanged(Gateway.java:185) at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:610) at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) </code></pre></div>
<p dir="auto">Hi,</p> <p dir="auto">This is about documentation probably in tips and tricks section. Sometimes there could be duplicates in documents. Documentation about</p> <ol dir="auto"> <li>How do we detect duplicates (pre and post index)</li> <li>How to avoid/remove them?</li> <li>Is it possible to have a document in more than one type? {"title": "Doc title", "_type": ["type1", "type2"]}</li> </ol> <p dir="auto">I used document content (fields) to generate a Hash and stored it with document. Used the computed hash to detect dupplicates and avoided adding them again.</p>
0
<p dir="auto">I've encountered an inconsistent behavior with Request::getBaseUrl method when the Request URI does not include the SCRIPT_NAME (due for example to an apache url rewrite), but it includes a segment of the SCRIPT_NAME path.</p> <p dir="auto">In RequestTest.php, if I add this data to the getBaseUrlData data provider, testGetBaseUrl fails:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//Test Fails array( '/webmaster', array( 'SCRIPT_FILENAME' =&gt; '/foo/bar/web/index.php', 'SCRIPT_NAME' =&gt; '/web/index.php', 'PHP_SELF' =&gt; '/web/index.php', ), '', //getBaseUrl Fails, '/web' returned '/webmaster', //getPathInfo Fails, 'master' returned )"><pre class="notranslate"><span class="pl-c">//Test Fails</span> <span class="pl-en">array</span>( <span class="pl-s">'/webmaster'</span>, <span class="pl-en">array</span>( <span class="pl-s">'SCRIPT_FILENAME'</span> =&gt; <span class="pl-s">'/foo/bar/web/index.php'</span>, <span class="pl-s">'SCRIPT_NAME'</span> =&gt; <span class="pl-s">'/web/index.php'</span>, <span class="pl-s">'PHP_SELF'</span> =&gt; <span class="pl-s">'/web/index.php'</span>, ), <span class="pl-s">''</span>, <span class="pl-c">//getBaseUrl Fails, '/web' returned</span> <span class="pl-s">'/webmaster'</span>, <span class="pl-c">//getPathInfo Fails, 'master' returned</span> )</pre></div> <p dir="auto">because in this case getBaseUrl returns '/web' and not ''. This make getPathInfo fails too (it returns 'master' instead of '/webmaster'),</p> <p dir="auto">If the URI does not start with 'web' all works as expected:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//Test passes array( '/administrator', array( 'SCRIPT_FILENAME' =&gt; '/foo/bar/web/index.php', 'SCRIPT_NAME' =&gt; '/web/index.php', 'PHP_SELF' =&gt; '/web/index.php', ), '', //getBaseUrl '/administrator', //getPathInfo )"><pre class="notranslate"><span class="pl-c">//Test passes</span> <span class="pl-en">array</span>( <span class="pl-s">'/administrator'</span>, <span class="pl-en">array</span>( <span class="pl-s">'SCRIPT_FILENAME'</span> =&gt; <span class="pl-s">'/foo/bar/web/index.php'</span>, <span class="pl-s">'SCRIPT_NAME'</span> =&gt; <span class="pl-s">'/web/index.php'</span>, <span class="pl-s">'PHP_SELF'</span> =&gt; <span class="pl-s">'/web/index.php'</span>, ), <span class="pl-s">''</span>, <span class="pl-c">//getBaseUrl</span> <span class="pl-s">'/administrator'</span>, <span class="pl-c">//getPathInfo</span> )</pre></div>
<p dir="auto">Hi,<br> I have a problem setting the variable _locale in the route prefix.<br> I have a route like this:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="acme_site: resource: &quot;@acmeSiteBundle/Controller/&quot; type: annotation prefix: /{_locale}/ defaults: { _locale: %locale% } requirements: _locale: en|it"><pre class="notranslate"><span class="pl-ent">acme_site</span>: <span class="pl-ent">resource</span>: <span class="pl-s"><span class="pl-pds">"</span>@acmeSiteBundle/Controller/<span class="pl-pds">"</span></span> <span class="pl-ent">type</span>: <span class="pl-s">annotation</span> <span class="pl-ent">prefix</span>: <span class="pl-s">/{_locale}/</span> <span class="pl-ent">defaults</span>: <span class="pl-s">{ _locale: %locale% }</span> <span class="pl-ent">requirements</span>: <span class="pl-ent">_locale</span>: <span class="pl-s">en|it</span></pre></div> <p dir="auto">If I go to <a href="http://www.example.com/en" rel="nofollow">www.example.com/en</a> works<br> but if I go to <a href="http://www.example.com" rel="nofollow">www.example.com</a> returns me the error of route / not found.</p> <p dir="auto">There is a bug? Or I forget something in the configuration?</p> <p dir="auto">If I set my locale route by route this problem does not happen.<br> I Symfony 2.3.1</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">plugins/strategy/free</p> <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 (devel a6af204cee) last updated 2017/08/31 15:04:30 (GMT +200) config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/user/src/ansible/lib/ansible executable location = /home/user/src/ansible/bin/ansible python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118] ansible 2.3.2.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/user/ansible/modules'] python version = 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2]"><pre class="notranslate"><code class="notranslate">ansible 2.4.0 (devel a6af204cee) last updated 2017/08/31 15:04:30 (GMT +200) config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/user/src/ansible/lib/ansible executable location = /home/user/src/ansible/bin/ansible python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118] ansible 2.3.2.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/user/ansible/modules'] python version = 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Tasks from the last include_tasks-call are not executed when using the free strategy and with_nested.<br> This seems to only affect roles, I could not reproduce it using only tasks.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Run the playbook.<br> $ ansible-playbook -i hosts site.yml<br> Change include_tasks to include when using ansible 2.3</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" . |-- hosts |-- roles | `-- role-using-with_nested-to-include | `-- tasks | |-- first-include.yml | |-- fourth-include.yml | |-- main.yml | |-- second-include.yml | `-- third-include.yml `-- site.yml"><pre class="notranslate"><code class="notranslate"> . |-- hosts |-- roles | `-- role-using-with_nested-to-include | `-- tasks | |-- first-include.yml | |-- fourth-include.yml | |-- main.yml | |-- second-include.yml | `-- third-include.yml `-- site.yml </code></pre></div> <p dir="auto">hosts:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="localhost"><pre class="notranslate"><code class="notranslate">localhost </code></pre></div> <p dir="auto">site.yml:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: all remote_user: user strategy: free roles: - role-using-with_nested-to-include "><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">all</span> <span class="pl-ent">remote_user</span>: <span class="pl-s">user</span> <span class="pl-ent">strategy</span>: <span class="pl-s">free</span> <span class="pl-ent">roles</span>: - <span class="pl-s">role-using-with_nested-to-include</span> </pre></div> <p dir="auto">roles/role-using-with_nested-to-include/tasks/main.yml:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - include_tasks: first-include.yml - include_tasks: second-include.yml with_nested: - [ 'foo' ] - [ 'bar' ] - include_tasks: third-include.yml with_nested: - [ 'foo' ] - [ 'bar' ] # comment out fourth-include.yml and third-include.yml will no longer be executed - include_tasks: fourth-include.yml with_nested: - [ 'foo' ] - [ 'bar' ]"><pre class="notranslate">--- - <span class="pl-ent">include_tasks</span>: <span class="pl-s">first-include.yml</span> - <span class="pl-ent">include_tasks</span>: <span class="pl-s">second-include.yml</span> <span class="pl-ent">with_nested</span>: - <span class="pl-s">[ 'foo' ]</span> - <span class="pl-s">[ 'bar' ]</span> - <span class="pl-ent">include_tasks</span>: <span class="pl-s">third-include.yml</span> <span class="pl-ent">with_nested</span>: - <span class="pl-s">[ 'foo' ]</span> - <span class="pl-s">[ 'bar' ]</span> <span class="pl-c"><span class="pl-c">#</span> comment out fourth-include.yml and third-include.yml will no longer be executed</span> - <span class="pl-ent">include_tasks</span>: <span class="pl-s">fourth-include.yml</span> <span class="pl-ent">with_nested</span>: - <span class="pl-s">[ 'foo' ]</span> - <span class="pl-s">[ 'bar' ]</span></pre></div> <p dir="auto">roles/role-using-with_nested-to-include/tasks/first-include:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - debug: msg=&quot;hello world&quot;"><pre class="notranslate">--- - <span class="pl-ent">debug</span>: <span class="pl-s">msg="hello world"</span></pre></div> <p dir="auto">roles/role-using-with_nested-to-include/tasks/second-include:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - debug: msg=&quot;dlrow olleh&quot;"><pre class="notranslate">--- - <span class="pl-ent">debug</span>: <span class="pl-s">msg="dlrow olleh"</span></pre></div> <p dir="auto">roles/role-using-with_nested-to-include/tasks/third-include:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - debug: msg=&quot;world hello&quot;"><pre class="notranslate">--- - <span class="pl-ent">debug</span>: <span class="pl-s">msg="world hello"</span></pre></div> <p dir="auto">roles/role-using-with_nested-to-include/tasks/fourth-include:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - debug: msg=&quot;dlrow olleh&quot;"><pre class="notranslate">--- - <span class="pl-ent">debug</span>: <span class="pl-s">msg="dlrow olleh"</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Same results as when using the linear strategy, see the output below. All tasks have been executed.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="user@stretch:~/playbook-with-role$ ansible-playbook -i hosts site.yml PLAY [all] ******************************************************************************************************************************************************************************************************** TASK [Gathering Facts] ******************************************************************************************************************************************************************************************** ok: [localhost] TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/first-include.yml for localhost TASK [role-using-with_nested-to-include : debug] ****************************************************************************************************************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;hello world&quot; } TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/second-include.yml for localhost TASK [role-using-with_nested-to-include : debug] ****************************************************************************************************************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;dlrow olleh&quot; } TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/third-include.yml for localhost TASK [role-using-with_nested-to-include : debug] ****************************************************************************************************************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;world hello&quot; } TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/fourth-include.yml for localhost TASK [role-using-with_nested-to-include : debug] ****************************************************************************************************************************************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;dlrow olleh&quot; } PLAY RECAP ******************************************************************************************************************************************************************************************************** localhost : ok=9 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">user@stretch:~/playbook-with-role$ ansible-playbook -i hosts site.yml PLAY [all] ******************************************************************************************************************************************************************************************************** TASK [Gathering Facts] ******************************************************************************************************************************************************************************************** ok: [localhost] TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/first-include.yml for localhost TASK [role-using-with_nested-to-include : debug] ****************************************************************************************************************************************************************** ok: [localhost] =&gt; { "msg": "hello world" } TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/second-include.yml for localhost TASK [role-using-with_nested-to-include : debug] ****************************************************************************************************************************************************************** ok: [localhost] =&gt; { "msg": "dlrow olleh" } TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/third-include.yml for localhost TASK [role-using-with_nested-to-include : debug] ****************************************************************************************************************************************************************** ok: [localhost] =&gt; { "msg": "world hello" } TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/fourth-include.yml for localhost TASK [role-using-with_nested-to-include : debug] ****************************************************************************************************************************************************************** ok: [localhost] =&gt; { "msg": "dlrow olleh" } PLAY RECAP ******************************************************************************************************************************************************************************************************** localhost : ok=9 changed=0 unreachable=0 failed=0 </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Last task has been skipped.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="user@stretch:~/playbook-with-role$ ansible-playbook -vvvv -i hosts site.yml ansible-playbook 2.4.0 (devel a6af204cee) last updated 2017/08/31 15:04:30 (GMT +200) config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/user/src/ansible/lib/ansible executable location = /home/user/src/ansible/bin/ansible-playbook python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118] Using /etc/ansible/ansible.cfg as config file setting up inventory plugins Set default localhost to localhost Parsed /home/user/playbook-with-role/hosts inventory source with ini plugin Loading callback plugin default of type stdout, v2.0 from /home/user/src/ansible/lib/ansible/plugins/callback/__init__.pyc PLAYBOOK: site.yml ************************************************************************************************************************************************************************************************ 1 plays in site.yml PLAY [all] ******************************************************************************************************************************************************************************************************** Using module file /home/user/src/ansible/lib/ansible/modules/system/setup.py &lt;localhost&gt; ESTABLISH SSH CONNECTION FOR USER: user &lt;localhost&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=user -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/5c0a48d51b localhost '/bin/sh -c '&quot;'&quot;'echo ~ &amp;&amp; sleep 0'&quot;'&quot;'' &lt;localhost&gt; (0, '/home/user\n', 'OpenSSH_7.4p1 Debian-10+deb9u1, OpenSSL 1.0.2l 25 May 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket &quot;/home/user/.ansible/cp/5c0a48d51b&quot; does not exist\r\ndebug2: resolving &quot;localhost&quot; port 22\r\ndebug2: ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to localhost [::1] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_rsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_rsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_dsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_dsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_ecdsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_ecdsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_ed25519 type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_ed25519-cert type -1\r\ndebug1: Enabling compatibility mode for protocol 2.0\r\ndebug1: Local version string SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u1\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_7.4p1 Debian-10+deb9u1\r\ndebug1: match: OpenSSH_7.4p1 Debian-10+deb9u1 pat OpenSSH* compat 0x04000000\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: Authenticating to localhost:22 as \'user\'\r\ndebug3: hostkeys_foreach: reading file &quot;/home/user/.ssh/known_hosts&quot;\r\ndebug3: record_hostkey: found key type ECDSA in file /home/user/.ssh/known_hosts:3\r\ndebug3: load_hostkeys: loaded 1 keys from localhost\r\ndebug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c\r\ndebug2: host key algorithms: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: [email protected],zlib,none\r\ndebug2: compression stoc: [email protected],zlib,none\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1\r\ndebug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected]\r\ndebug2: compression stoc: none,[email protected]\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server-&gt;client cipher: [email protected] MAC: &lt;implicit&gt; compression: [email protected]\r\ndebug1: kex: client-&gt;server cipher: [email protected] MAC: &lt;implicit&gt; compression: [email protected]\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:Jsp+Ohn6np89FHY1jvSlqK9PmVyXE29AYlSUXvy8pJg\r\ndebug3: hostkeys_foreach: reading file &quot;/home/user/.ssh/known_hosts&quot;\r\ndebug3: record_hostkey: found key type ECDSA in file /home/user/.ssh/known_hosts:3\r\ndebug3: load_hostkeys: loaded 1 keys from localhost\r\ndebug1: Host \'localhost\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /home/user/.ssh/known_hosts:3\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey after 134217728 blocks\r\ndebug2: key: /home/user/.ssh/id_rsa ((nil))\r\ndebug2: key: /home/user/.ssh/id_dsa ((nil))\r\ndebug2: key: /home/user/.ssh/id_ecdsa ((nil))\r\ndebug2: key: /home/user/.ssh/id_ed25519 ((nil))\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=&lt;ssh-ed25519,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521&gt;\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,password\r\ndebug3: start over, passed a different list publickey,password\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: ,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug3: send_pubkey_test\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: pkalg ssh-rsa blen 535\r\ndebug2: input_userauth_pk_ok: fp SHA256:o9NJMPA5PWcVMGdeJGQtqFpVfNcefiW1Huk+jQ5KjS8\r\ndebug3: sign_and_send_pubkey: RSA SHA256:o9NJMPA5PWcVMGdeJGQtqFpVfNcefiW1Huk+jQ5KjS8\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Enabling compression at level 6.\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to localhost ([::1]:22).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver_listen: temporary control path /home/user/.ansible/cp/5c0a48d51b.FGJAeTI1YuQPVmtV\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug3: fd 5 is O_NONBLOCK\r\ndebug3: fd 5 is O_NONBLOCK\r\ndebug1: channel 0: new [/home/user/.ansible/cp/5c0a48d51b]\r\ndebug3: muxserver_listen: mux listener channel 0 fd 5\r\ndebug2: fd 3 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IPV6_TCLASS 0x08\r\ndebug1: control_persist_detach: backgrounding master process\r\ndebug2: control_persist_detach: background process is 3237\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: forking to background\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: id\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\ndebug1: multiplexing control connection\r\ndebug2: fd 6 setting O_NONBLOCK\r\ndebug3: fd 6 is O_NONBLOCK\r\ndebug1: channel 1: new [mux-control]\r\ndebug3: channel_post_mux_listener: new mux channel 1 fd 6\r\ndebug3: mux_master_read_cb: channel 1: hello sent\r\ndebug2: set_control_persist_exit_time: cancel scheduled exit\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x00000001 len 4\r\ndebug2: process_mux_master_hello: channel 1 slave version 4\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000004 len 4\r\ndebug2: process_mux_alive_check: channel 1: alive check\r\ndebug3: mux_client_request_alive: done pid = 3239\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 90\r\ndebug2: process_mux_new_session: channel 1: request tty 0, X 0, agent 0, subsys 0, term &quot;xterm-256color&quot;, cmd &quot;/bin/sh -c \'echo ~ &amp;&amp; sleep 0\'&quot;, env 1\r\ndebug3: process_mux_new_session: got fds stdin 7, stdout 8, stderr 9\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug2: fd 9 setting O_NONBLOCK\r\ndebug1: channel 2: new [client-session]\r\ndebug2: process_mux_new_session: channel_new: 2 linked to control channel 1\r\ndebug2: channel 2: send open\r\ndebug3: send packet: type 90\r\ndebug3: receive packet: type 80\r\ndebug1: client_input_global_request: rtype [email protected] want_reply 0\r\ndebug3: receive packet: type 91\r\ndebug2: callback start\r\ndebug2: client_session2_setup: id 2\r\ndebug1: Sending environment.\r\ndebug1: Sending env LANG = C\r\ndebug2: channel 2: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug1: Sending command: /bin/sh -c \'echo ~ &amp;&amp; sleep 0\'\r\ndebug2: channel 2: request exec confirm 1\r\ndebug3: send packet: type 98\r\ndebug3: mux_session_confirm: sending success reply\r\ndebug2: callback done\r\ndebug2: channel 2: open confirm rwindow 0 rmax 32768\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: channel 2: rcvd adjust 2097152\r\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 2\r\ndebug2: exec request accepted on channel 2\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 2 rtype exit-status reply 0\r\ndebug3: mux_exit_message: channel 2: exit message, exitval 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 2 rtype [email protected] reply 0\r\ndebug2: channel 2: rcvd eow\r\ndebug2: channel 2: close_read\r\ndebug2: channel 2: input open -&gt; closed\r\ndebug3: receive packet: type 96\r\ndebug2: channel 2: rcvd eof\r\ndebug2: channel 2: output open -&gt; drain\r\ndebug2: channel 2: obuf empty\r\ndebug2: channel 2: close_write\r\ndebug2: channel 2: output drain -&gt; closed\r\ndebug3: receive packet: type 97\r\ndebug2: channel 2: rcvd close\r\ndebug3: channel 2: will not send data after close\r\ndebug2: channel 2: send close\r\ndebug3: send packet: type 97\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: gc: notify user\r\ndebug3: mux_master_session_cleanup_cb: entering for channel 2\r\ndebug2: channel 1: rcvd close\r\ndebug2: channel 1: output open -&gt; drain\r\ndebug2: channel 1: close_read\r\ndebug2: channel 1: input open -&gt; closed\r\ndebug2: channel 2: gc: user detached\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: garbage collecting\r\ndebug1: channel 2: free: client-session, nchannels 3\r\ndebug3: channel 2: status: The following connections are open:\r\n #1 mux-control (t16 r-1 i3/0 o1/16 fd 6/6 cc -1)\r\n #2 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)\r\n\r\ndebug2: channel 1: obuf empty\r\ndebug2: channel 1: close_write\r\ndebug2: channel 1: output drain -&gt; closed\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: gc: notify user\r\ndebug3: mux_master_control_cleanup_cb: entering for channel 1\r\ndebug2: channel 1: gc: user detached\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: garbage collecting\r\ndebug1: channel 1: free: mux-control, nchannels 2\r\ndebug2: Received exit status from master 0\r\ndebug3: channel 1: status: The following connections are open:\r\n #1 mux-control (t16 r-1 i3/0 o3/0 fd 6/6 cc -1)\r\n\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\n') &lt;localhost&gt; ESTABLISH SSH CONNECTION FOR USER: user &lt;localhost&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=user -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/5c0a48d51b localhost '/bin/sh -c '&quot;'&quot;'( umask 77 &amp;&amp; mkdir -p &quot;` echo /home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679 `&quot; &amp;&amp; echo ansible-tmp-1504186732.12-35775108317679=&quot;` echo /home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679 `&quot; ) &amp;&amp; sleep 0'&quot;'&quot;'' &lt;localhost&gt; (0, 'ansible-tmp-1504186732.12-35775108317679=/home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679\n', 'OpenSSH_7.4p1 Debian-10+deb9u1, OpenSSL 1.0.2l 25 May 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 3239\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;localhost&gt; PUT /tmp/tmpzgP7C7 TO /home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679/setup.py &lt;localhost&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=user -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/5c0a48d51b '[localhost]' &lt;localhost&gt; (0, 'sftp&gt; put /tmp/tmpzgP7C7 /home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679/setup.py\n', 'OpenSSH_7.4p1 Debian-10+deb9u1, OpenSSL 1.0.2l 25 May 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 3239\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 1\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 2\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 2\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 1\r\ndebug2: Server supports extension &quot;[email protected]&quot; revision 1\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -&gt; /home/user size 0\r\ndebug3: Looking up /tmp/tmpzgP7C7\r\ndebug3: Sent message fd 5 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679/setup.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:8 O:131072 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:9 O:163840 S:31576\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 32768 bytes at 98304\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 8 32768 bytes at 131072\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 9 31576 bytes at 163840\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;localhost&gt; ESTABLISH SSH CONNECTION FOR USER: user &lt;localhost&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=user -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/5c0a48d51b localhost '/bin/sh -c '&quot;'&quot;'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679/ /home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679/setup.py &amp;&amp; sleep 0'&quot;'&quot;'' &lt;localhost&gt; (0, '', 'OpenSSH_7.4p1 Debian-10+deb9u1, OpenSSL 1.0.2l 25 May 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 3239\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;localhost&gt; ESTABLISH SSH CONNECTION FOR USER: user &lt;localhost&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=user -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/5c0a48d51b -tt localhost '/bin/sh -c '&quot;'&quot;'/usr/bin/python /home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679/setup.py; rm -rf &quot;/home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'&quot;'&quot;'' &lt;localhost&gt; (0, '\r\n{&quot;invocation&quot;: {&quot;module_args&quot;: {&quot;filter&quot;: &quot;*&quot;, &quot;gather_subset&quot;: [&quot;all&quot;], &quot;fact_path&quot;: &quot;/etc/ansible/facts.d&quot;, &quot;gather_timeout&quot;: 10}}, &quot;ansible_facts&quot;: {&quot;ansible_product_serial&quot;: &quot;NA&quot;, &quot;ansible_form_factor&quot;: &quot;Other&quot;, &quot;ansible_product_version&quot;: &quot;4.7.1-1.4&quot;, &quot;ansible_fips&quot;: false, &quot;ansible_service_mgr&quot;: &quot;systemd&quot;, &quot;ansible_user_id&quot;: &quot;user&quot;, &quot;ansible_selinux_python_present&quot;: true, &quot;ansible_userspace_bits&quot;: &quot;64&quot;, &quot;ansible_all_ipv4_addresses&quot;: [&quot;10.16.20.43&quot;], &quot;gather_subset&quot;: [&quot;all&quot;], &quot;ansible_architecture&quot;: &quot;x86_64&quot;, &quot;ansible_local&quot;: {}, &quot;ansible_distribution_version&quot;: &quot;9.1&quot;, &quot;ansible_domain&quot;: &quot;&quot;, &quot;ansible_distribution_file_path&quot;: &quot;/etc/os-release&quot;, &quot;ansible_device_links&quot;: {&quot;masters&quot;: {}, &quot;labels&quot;: {}, &quot;ids&quot;: {&quot;sr0&quot;: [&quot;ata-QEMU_DVD-ROM_QM00004&quot;]}, &quot;uuids&quot;: {&quot;xvda5&quot;: [&quot;072dfa9b-a1a2-431e-b98c-019464fca0b2&quot;], &quot;xvda1&quot;: [&quot;25255b15-8bd1-44db-8fe2-1b6bff2cb2ed&quot;]}}, &quot;ansible_virtualization_type&quot;: &quot;xen&quot;, &quot;ansible_real_user_id&quot;: 1001, &quot;ansible_processor_cores&quot;: 4, &quot;ansible_virtualization_role&quot;: &quot;guest&quot;, &quot;ansible_distribution_file_variety&quot;: &quot;Debian&quot;, &quot;ansible_dns&quot;: {&quot;nameservers&quot;: [&quot;10.16.30.1&quot;, &quot;10.16.30.2&quot;]}, &quot;ansible_processor_vcpus&quot;: 4, &quot;ansible_bios_version&quot;: &quot;4.7.1-1.4&quot;, &quot;ansible_processor&quot;: [&quot;0&quot;, &quot;GenuineIntel&quot;, &quot;Intel(R) Xeon(R) CPU X3470 @ 2.93GHz&quot;, &quot;1&quot;, &quot;GenuineIntel&quot;, &quot;Intel(R) Xeon(R) CPU X3470 @ 2.93GHz&quot;, &quot;2&quot;, &quot;GenuineIntel&quot;, &quot;Intel(R) Xeon(R) CPU X3470 @ 2.93GHz&quot;, &quot;3&quot;, &quot;GenuineIntel&quot;, &quot;Intel(R) Xeon(R) CPU X3470 @ 2.93GHz&quot;], &quot;ansible_date_time&quot;: {&quot;weekday_number&quot;: &quot;4&quot;, &quot;iso8601_basic_short&quot;: &quot;20170831T153853&quot;, &quot;tz&quot;: &quot;CEST&quot;, &quot;weeknumber&quot;: &quot;35&quot;, &quot;hour&quot;: &quot;15&quot;, &quot;year&quot;: &quot;2017&quot;, &quot;minute&quot;: &quot;38&quot;, &quot;tz_offset&quot;: &quot;+0200&quot;, &quot;month&quot;: &quot;08&quot;, &quot;epoch&quot;: &quot;1504186733&quot;, &quot;iso8601_micro&quot;: &quot;2017-08-31T13:38:53.730047Z&quot;, &quot;weekday&quot;: &quot;Thursday&quot;, &quot;time&quot;: &quot;15:38:53&quot;, &quot;date&quot;: &quot;2017-08-31&quot;, &quot;iso8601&quot;: &quot;2017-08-31T13:38:53Z&quot;, &quot;day&quot;: &quot;31&quot;, &quot;iso8601_basic&quot;: &quot;20170831T153853729540&quot;, &quot;second&quot;: &quot;53&quot;}, &quot;ansible_lo&quot;: {&quot;mtu&quot;: 65536, &quot;device&quot;: &quot;lo&quot;, &quot;promisc&quot;: false, &quot;ipv4&quot;: {&quot;broadcast&quot;: &quot;host&quot;, &quot;netmask&quot;: &quot;255.0.0.0&quot;, &quot;network&quot;: &quot;127.0.0.0&quot;, &quot;address&quot;: &quot;127.0.0.1&quot;}, &quot;ipv6&quot;: [{&quot;scope&quot;: &quot;host&quot;, &quot;prefix&quot;: &quot;128&quot;, &quot;address&quot;: &quot;::1&quot;}], &quot;active&quot;: true, &quot;type&quot;: &quot;loopback&quot;}, &quot;ansible_memtotal_mb&quot;: 482, &quot;ansible_ssh_host_key_ecdsa_public&quot;: &quot;AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBA3piUNnJnCAiaaKBe8C42zP1+13OZ+mB9e5WWlUNeCdUGpVN6RNPHPl+X+qeOc/BL+cB8e0MDph3QJRSjNYH/w=&quot;, &quot;ansible_ssh_host_key_ed25519_public&quot;: &quot;AAAAC3NzaC1lZDI1NTE5AAAAIDf2/wiS2UoTp5DVxrBeB3j1eeFSj1kr5rqGyio6gvPv&quot;, &quot;ansible_default_ipv4&quot;: {&quot;macaddress&quot;: &quot;1e:aa:f6:ab:6d:7f&quot;, &quot;network&quot;: &quot;10.16.20.0&quot;, &quot;mtu&quot;: 1500, &quot;broadcast&quot;: &quot;10.16.20.255&quot;, &quot;alias&quot;: &quot;eth0&quot;, &quot;netmask&quot;: &quot;255.255.255.0&quot;, &quot;address&quot;: &quot;10.16.20.43&quot;, &quot;interface&quot;: &quot;eth0&quot;, &quot;type&quot;: &quot;ether&quot;, &quot;gateway&quot;: &quot;10.16.20.254&quot;}, &quot;ansible_swapfree_mb&quot;: 629, &quot;ansible_default_ipv6&quot;: {}, &quot;ansible_distribution_release&quot;: &quot;stretch&quot;, &quot;ansible_system_vendor&quot;: &quot;Xen&quot;, &quot;ansible_apparmor&quot;: {&quot;status&quot;: &quot;disabled&quot;}, &quot;ansible_cmdline&quot;: {&quot;BOOT_IMAGE&quot;: &quot;/boot/vmlinuz-4.9.0-3-amd64&quot;, &quot;ro&quot;: true, &quot;root&quot;: &quot;/dev/xvda1&quot;, &quot;quiet&quot;: true}, &quot;ansible_effective_user_id&quot;: 1001, &quot;ansible_mounts&quot;: [{&quot;block_used&quot;: 437192, &quot;uuid&quot;: &quot;25255b15-8bd1-44db-8fe2-1b6bff2cb2ed&quot;, &quot;size_total&quot;: 11962114048, &quot;block_total&quot;: 2920438, &quot;mount&quot;: &quot;/&quot;, &quot;block_available&quot;: 2483246, &quot;size_available&quot;: 10171375616, &quot;fstype&quot;: &quot;ext4&quot;, &quot;inode_total&quot;: 746304, &quot;options&quot;: &quot;rw,relatime,errors=remount-ro,data=ordered&quot;, &quot;device&quot;: &quot;/dev/xvda1&quot;, &quot;inode_used&quot;: 43253, &quot;block_size&quot;: 4096, &quot;inode_available&quot;: 703051}], &quot;ansible_selinux&quot;: {&quot;status&quot;: &quot;disabled&quot;}, &quot;ansible_distribution_file_parsed&quot;: true, &quot;ansible_os_family&quot;: &quot;Debian&quot;, &quot;ansible_userspace_architecture&quot;: &quot;x86_64&quot;, &quot;ansible_product_uuid&quot;: &quot;NA&quot;, &quot;ansible_system&quot;: &quot;Linux&quot;, &quot;ansible_pkg_mgr&quot;: &quot;apt&quot;, &quot;ansible_memfree_mb&quot;: 15, &quot;ansible_devices&quot;: {&quot;sr0&quot;: {&quot;scheduler_mode&quot;: &quot;cfq&quot;, &quot;rotational&quot;: &quot;1&quot;, &quot;vendor&quot;: &quot;QEMU&quot;, &quot;sectors&quot;: &quot;2097151&quot;, &quot;links&quot;: {&quot;masters&quot;: [], &quot;labels&quot;: [], &quot;ids&quot;: [&quot;ata-QEMU_DVD-ROM_QM00004&quot;], &quot;uuids&quot;: []}, &quot;sas_device_handle&quot;: null, &quot;sas_address&quot;: null, &quot;virtual&quot;: 1, &quot;host&quot;: &quot;IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]&quot;, &quot;sectorsize&quot;: &quot;512&quot;, &quot;removable&quot;: &quot;1&quot;, &quot;support_discard&quot;: &quot;0&quot;, &quot;model&quot;: &quot;QEMU DVD-ROM&quot;, &quot;partitions&quot;: {}, &quot;holders&quot;: [], &quot;size&quot;: &quot;1024.00 MB&quot;}, &quot;xvda&quot;: {&quot;scheduler_mode&quot;: &quot;&quot;, &quot;rotational&quot;: &quot;0&quot;, &quot;vendor&quot;: null, &quot;sectors&quot;: &quot;25165824&quot;, &quot;links&quot;: {&quot;masters&quot;: [], &quot;labels&quot;: [], &quot;ids&quot;: [], &quot;uuids&quot;: []}, &quot;sas_device_handle&quot;: null, &quot;sas_address&quot;: null, &quot;virtual&quot;: 1, &quot;host&quot;: &quot;&quot;, &quot;sectorsize&quot;: &quot;512&quot;, &quot;removable&quot;: &quot;0&quot;, &quot;support_discard&quot;: &quot;0&quot;, &quot;model&quot;: null, &quot;partitions&quot;: {&quot;xvda5&quot;: {&quot;sectorsize&quot;: 512, &quot;uuid&quot;: &quot;072dfa9b-a1a2-431e-b98c-019464fca0b2&quot;, &quot;links&quot;: {&quot;masters&quot;: [], &quot;labels&quot;: [], &quot;ids&quot;: [], &quot;uuids&quot;: [&quot;072dfa9b-a1a2-431e-b98c-019464fca0b2&quot;]}, &quot;sectors&quot;: &quot;1290240&quot;, &quot;start&quot;: &quot;23873536&quot;, &quot;holders&quot;: [], &quot;size&quot;: &quot;630.00 MB&quot;}, &quot;xvda1&quot;: {&quot;sectorsize&quot;: 512, &quot;uuid&quot;: &quot;25255b15-8bd1-44db-8fe2-1b6bff2cb2ed&quot;, &quot;links&quot;: {&quot;masters&quot;: [], &quot;labels&quot;: [], &quot;ids&quot;: [], &quot;uuids&quot;: [&quot;25255b15-8bd1-44db-8fe2-1b6bff2cb2ed&quot;]}, &quot;sectors&quot;: &quot;23869440&quot;, &quot;start&quot;: &quot;2048&quot;, &quot;holders&quot;: [], &quot;size&quot;: &quot;11.38 GB&quot;}, &quot;xvda2&quot;: {&quot;sectorsize&quot;: 512, &quot;uuid&quot;: null, &quot;links&quot;: {&quot;masters&quot;: [], &quot;labels&quot;: [], &quot;ids&quot;: [], &quot;uuids&quot;: []}, &quot;sectors&quot;: &quot;2&quot;, &quot;start&quot;: &quot;23873534&quot;, &quot;holders&quot;: [], &quot;size&quot;: &quot;1.00 KB&quot;}}, &quot;holders&quot;: [], &quot;size&quot;: &quot;12.00 GB&quot;}}, &quot;ansible_user_uid&quot;: 1001, &quot;ansible_memory_mb&quot;: {&quot;real&quot;: {&quot;total&quot;: 482, &quot;used&quot;: 467, &quot;free&quot;: 15}, &quot;swap&quot;: {&quot;cached&quot;: 0, &quot;total&quot;: 629, &quot;free&quot;: 629, &quot;used&quot;: 0}, &quot;nocache&quot;: {&quot;used&quot;: 182, &quot;free&quot;: 300}}, &quot;ansible_distribution&quot;: &quot;Debian&quot;, &quot;ansible_user_dir&quot;: &quot;/home/user&quot;, &quot;ansible_env&quot;: {&quot;LANG&quot;: &quot;C&quot;, &quot;TERM&quot;: &quot;xterm-256color&quot;, &quot;SHELL&quot;: &quot;/bin/bash&quot;, &quot;XDG_RUNTIME_DIR&quot;: &quot;/run/user/1001&quot;, &quot;MAIL&quot;: &quot;/var/mail/user&quot;, &quot;SHLVL&quot;: &quot;1&quot;, &quot;SSH_TTY&quot;: &quot;/dev/pts/2&quot;, &quot;SSH_CLIENT&quot;: &quot;::1 46528 22&quot;, &quot;PWD&quot;: &quot;/home/user&quot;, &quot;LOGNAME&quot;: &quot;user&quot;, &quot;USER&quot;: &quot;user&quot;, &quot;PATH&quot;: &quot;/usr/local/bin:/usr/bin:/bin:/usr/games&quot;, &quot;HOME&quot;: &quot;/home/user&quot;, &quot;SSH_CONNECTION&quot;: &quot;::1 46528 ::1 22&quot;, &quot;XDG_SESSION_ID&quot;: &quot;13&quot;, &quot;_&quot;: &quot;/bin/sh&quot;}, &quot;ansible_distribution_major_version&quot;: &quot;9&quot;, &quot;module_setup&quot;: true, &quot;ansible_processor_count&quot;: 4, &quot;ansible_hostname&quot;: &quot;stretch&quot;, &quot;ansible_effective_group_id&quot;: 1001, &quot;ansible_swaptotal_mb&quot;: 629, &quot;ansible_lsb&quot;: {&quot;release&quot;: &quot;9.1&quot;, &quot;major_release&quot;: &quot;9&quot;, &quot;codename&quot;: &quot;stretch&quot;, &quot;id&quot;: &quot;Debian&quot;, &quot;description&quot;: &quot;Debian GNU/Linux 9.1 (stretch)&quot;}, &quot;ansible_real_group_id&quot;: 1001, &quot;ansible_bios_date&quot;: &quot;02/16/2017&quot;, &quot;ansible_all_ipv6_addresses&quot;: [&quot;fe80::1caa:f6ff:feab:6d7f&quot;], &quot;ansible_interfaces&quot;: [&quot;lo&quot;, &quot;eth0&quot;], &quot;ansible_uptime_seconds&quot;: 2474, &quot;ansible_user_shell&quot;: &quot;/bin/bash&quot;, &quot;ansible_machine_id&quot;: &quot;8adee5a4675d4211a6af77131f2f70f8&quot;, &quot;ansible_ssh_host_key_rsa_public&quot;: &quot;AAAAB3NzaC1yc2EAAAADAQABAAABAQDOaR0ftNAo4F+zV8RAuCTjKw6i4vnzd01BnOz4nvf0SMqxuYrWaS2nWm9c1EmsR4hYZLfMl1S3eiw/JSnV2IZ5c7FJ+QOGS+OP8MYmN4E6lORpIQN2s0ohq7voY/p3CfL22r7tT8fzKyJrcK4yVYVPB+mw7DU6hKUmAMYumRYGsy1BwiSIwohrX6GS415n//6Er/0xLTg/o4dwf/XB4Mkj6fBA8pnoi6nxYRluQAYwfy2em0hdghZQJJOjS6tBA73ClRNAMGUH/EqNmXM6EHwF6h2lXcos49ld83q+sOpl3gbLR9J6ZErNI2wEKLOKJd0XUhEN3tFXsV/hGjnaU3a5&quot;, &quot;ansible_user_gecos&quot;: &quot;&quot;, &quot;ansible_python&quot;: {&quot;executable&quot;: &quot;/usr/bin/python&quot;, &quot;version&quot;: {&quot;micro&quot;: 13, &quot;major&quot;: 2, &quot;releaselevel&quot;: &quot;final&quot;, &quot;serial&quot;: 0, &quot;minor&quot;: 7}, &quot;type&quot;: &quot;CPython&quot;, &quot;has_sslcontext&quot;: true, &quot;version_info&quot;: [2, 7, 13, &quot;final&quot;, 0]}, &quot;ansible_processor_threads_per_core&quot;: 1, &quot;ansible_fqdn&quot;: &quot;stretch&quot;, &quot;ansible_user_gid&quot;: 1001, &quot;ansible_eth0&quot;: {&quot;macaddress&quot;: &quot;1e:aa:f6:ab:6d:7f&quot;, &quot;pciid&quot;: &quot;vif-0&quot;, &quot;module&quot;: &quot;xen_netfront&quot;, &quot;mtu&quot;: 1500, &quot;device&quot;: &quot;eth0&quot;, &quot;promisc&quot;: false, &quot;ipv4&quot;: {&quot;broadcast&quot;: &quot;10.16.20.255&quot;, &quot;netmask&quot;: &quot;255.255.255.0&quot;, &quot;network&quot;: &quot;10.16.20.0&quot;, &quot;address&quot;: &quot;10.16.20.43&quot;}, &quot;ipv6&quot;: [{&quot;scope&quot;: &quot;link&quot;, &quot;prefix&quot;: &quot;64&quot;, &quot;address&quot;: &quot;fe80::1caa:f6ff:feab:6d7f&quot;}], &quot;active&quot;: true, &quot;type&quot;: &quot;ether&quot;}, &quot;ansible_python_version&quot;: &quot;2.7.13&quot;, &quot;ansible_product_name&quot;: &quot;HVM domU&quot;, &quot;ansible_machine&quot;: &quot;x86_64&quot;, &quot;ansible_kernel&quot;: &quot;4.9.0-3-amd64&quot;, &quot;ansible_nodename&quot;: &quot;stretch&quot;}}\r\n', 'OpenSSH_7.4p1 Debian-10+deb9u1, OpenSSL 1.0.2l 25 May 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 3239\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to localhost closed.\r\n') TASK [Gathering Facts] ******************************************************************************************************************************************************************************************** ok: [localhost] META: ran handlers TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** task path: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/main.yml:2 included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/first-include.yml for localhost TASK [role-using-with_nested-to-include : debug] ****************************************************************************************************************************************************************** task path: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/first-include.yml:2 ok: [localhost] =&gt; { &quot;msg&quot;: &quot;hello world&quot; } TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** task path: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/main.yml:3 included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/second-include.yml for localhost TASK [role-using-with_nested-to-include : debug] ****************************************************************************************************************************************************************** task path: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/second-include.yml:2 ok: [localhost] =&gt; { &quot;msg&quot;: &quot;dlrow olleh&quot; } TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** task path: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/main.yml:7 included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/third-include.yml for localhost TASK [role-using-with_nested-to-include : debug] ****************************************************************************************************************************************************************** task path: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/third-include.yml:2 ok: [localhost] =&gt; { &quot;msg&quot;: &quot;world hello&quot; } TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** task path: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/main.yml:11 included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/fourth-include.yml for localhost META: ran handlers META: ran handlers PLAY RECAP ******************************************************************************************************************************************************************************************************** localhost : ok=8 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">user@stretch:~/playbook-with-role$ ansible-playbook -vvvv -i hosts site.yml ansible-playbook 2.4.0 (devel a6af204cee) last updated 2017/08/31 15:04:30 (GMT +200) config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /home/user/src/ansible/lib/ansible executable location = /home/user/src/ansible/bin/ansible-playbook python version = 2.7.13 (default, Jan 19 2017, 14:48:08) [GCC 6.3.0 20170118] Using /etc/ansible/ansible.cfg as config file setting up inventory plugins Set default localhost to localhost Parsed /home/user/playbook-with-role/hosts inventory source with ini plugin Loading callback plugin default of type stdout, v2.0 from /home/user/src/ansible/lib/ansible/plugins/callback/__init__.pyc PLAYBOOK: site.yml ************************************************************************************************************************************************************************************************ 1 plays in site.yml PLAY [all] ******************************************************************************************************************************************************************************************************** Using module file /home/user/src/ansible/lib/ansible/modules/system/setup.py &lt;localhost&gt; ESTABLISH SSH CONNECTION FOR USER: user &lt;localhost&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=user -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/5c0a48d51b localhost '/bin/sh -c '"'"'echo ~ &amp;&amp; sleep 0'"'"'' &lt;localhost&gt; (0, '/home/user\n', 'OpenSSH_7.4p1 Debian-10+deb9u1, OpenSSL 1.0.2l 25 May 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket "/home/user/.ansible/cp/5c0a48d51b" does not exist\r\ndebug2: resolving "localhost" port 22\r\ndebug2: ssh_connect_direct: needpriv 0\r\ndebug1: Connecting to localhost [::1] port 22.\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: fd 3 clearing O_NONBLOCK\r\ndebug1: Connection established.\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_rsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_rsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_dsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_dsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_ecdsa type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_ecdsa-cert type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_ed25519 type -1\r\ndebug1: key_load_public: No such file or directory\r\ndebug1: identity file /home/user/.ssh/id_ed25519-cert type -1\r\ndebug1: Enabling compatibility mode for protocol 2.0\r\ndebug1: Local version string SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u1\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_7.4p1 Debian-10+deb9u1\r\ndebug1: match: OpenSSH_7.4p1 Debian-10+deb9u1 pat OpenSSH* compat 0x04000000\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: Authenticating to localhost:22 as \'user\'\r\ndebug3: hostkeys_foreach: reading file "/home/user/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /home/user/.ssh/known_hosts:3\r\ndebug3: load_hostkeys: loaded 1 keys from localhost\r\ndebug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c\r\ndebug2: host key algorithms: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: [email protected],zlib,none\r\ndebug2: compression stoc: [email protected],zlib,none\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1\r\ndebug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]\r\ndebug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,[email protected]\r\ndebug2: compression stoc: none,[email protected]\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server-&gt;client cipher: [email protected] MAC: &lt;implicit&gt; compression: [email protected]\r\ndebug1: kex: client-&gt;server cipher: [email protected] MAC: &lt;implicit&gt; compression: [email protected]\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:Jsp+Ohn6np89FHY1jvSlqK9PmVyXE29AYlSUXvy8pJg\r\ndebug3: hostkeys_foreach: reading file "/home/user/.ssh/known_hosts"\r\ndebug3: record_hostkey: found key type ECDSA in file /home/user/.ssh/known_hosts:3\r\ndebug3: load_hostkeys: loaded 1 keys from localhost\r\ndebug1: Host \'localhost\' is known and matches the ECDSA host key.\r\ndebug1: Found key in /home/user/.ssh/known_hosts:3\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey after 134217728 blocks\r\ndebug2: key: /home/user/.ssh/id_rsa ((nil))\r\ndebug2: key: /home/user/.ssh/id_dsa ((nil))\r\ndebug2: key: /home/user/.ssh/id_ecdsa ((nil))\r\ndebug2: key: /home/user/.ssh/id_ed25519 ((nil))\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=&lt;ssh-ed25519,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521&gt;\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,password\r\ndebug3: start over, passed a different list publickey,password\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: ,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug3: send_pubkey_test\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: pkalg ssh-rsa blen 535\r\ndebug2: input_userauth_pk_ok: fp SHA256:o9NJMPA5PWcVMGdeJGQtqFpVfNcefiW1Huk+jQ5KjS8\r\ndebug3: sign_and_send_pubkey: RSA SHA256:o9NJMPA5PWcVMGdeJGQtqFpVfNcefiW1Huk+jQ5KjS8\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Enabling compression at level 6.\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to localhost ([::1]:22).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver_listen: temporary control path /home/user/.ansible/cp/5c0a48d51b.FGJAeTI1YuQPVmtV\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug3: fd 5 is O_NONBLOCK\r\ndebug3: fd 5 is O_NONBLOCK\r\ndebug1: channel 0: new [/home/user/.ansible/cp/5c0a48d51b]\r\ndebug3: muxserver_listen: mux listener channel 0 fd 5\r\ndebug2: fd 3 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IPV6_TCLASS 0x08\r\ndebug1: control_persist_detach: backgrounding master process\r\ndebug2: control_persist_detach: background process is 3237\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: forking to background\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: id\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\ndebug1: multiplexing control connection\r\ndebug2: fd 6 setting O_NONBLOCK\r\ndebug3: fd 6 is O_NONBLOCK\r\ndebug1: channel 1: new [mux-control]\r\ndebug3: channel_post_mux_listener: new mux channel 1 fd 6\r\ndebug3: mux_master_read_cb: channel 1: hello sent\r\ndebug2: set_control_persist_exit_time: cancel scheduled exit\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x00000001 len 4\r\ndebug2: process_mux_master_hello: channel 1 slave version 4\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000004 len 4\r\ndebug2: process_mux_alive_check: channel 1: alive check\r\ndebug3: mux_client_request_alive: done pid = 3239\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 90\r\ndebug2: process_mux_new_session: channel 1: request tty 0, X 0, agent 0, subsys 0, term "xterm-256color", cmd "/bin/sh -c \'echo ~ &amp;&amp; sleep 0\'", env 1\r\ndebug3: process_mux_new_session: got fds stdin 7, stdout 8, stderr 9\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug2: fd 9 setting O_NONBLOCK\r\ndebug1: channel 2: new [client-session]\r\ndebug2: process_mux_new_session: channel_new: 2 linked to control channel 1\r\ndebug2: channel 2: send open\r\ndebug3: send packet: type 90\r\ndebug3: receive packet: type 80\r\ndebug1: client_input_global_request: rtype [email protected] want_reply 0\r\ndebug3: receive packet: type 91\r\ndebug2: callback start\r\ndebug2: client_session2_setup: id 2\r\ndebug1: Sending environment.\r\ndebug1: Sending env LANG = C\r\ndebug2: channel 2: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug1: Sending command: /bin/sh -c \'echo ~ &amp;&amp; sleep 0\'\r\ndebug2: channel 2: request exec confirm 1\r\ndebug3: send packet: type 98\r\ndebug3: mux_session_confirm: sending success reply\r\ndebug2: callback done\r\ndebug2: channel 2: open confirm rwindow 0 rmax 32768\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: channel 2: rcvd adjust 2097152\r\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 2\r\ndebug2: exec request accepted on channel 2\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 2 rtype exit-status reply 0\r\ndebug3: mux_exit_message: channel 2: exit message, exitval 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 2 rtype [email protected] reply 0\r\ndebug2: channel 2: rcvd eow\r\ndebug2: channel 2: close_read\r\ndebug2: channel 2: input open -&gt; closed\r\ndebug3: receive packet: type 96\r\ndebug2: channel 2: rcvd eof\r\ndebug2: channel 2: output open -&gt; drain\r\ndebug2: channel 2: obuf empty\r\ndebug2: channel 2: close_write\r\ndebug2: channel 2: output drain -&gt; closed\r\ndebug3: receive packet: type 97\r\ndebug2: channel 2: rcvd close\r\ndebug3: channel 2: will not send data after close\r\ndebug2: channel 2: send close\r\ndebug3: send packet: type 97\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: gc: notify user\r\ndebug3: mux_master_session_cleanup_cb: entering for channel 2\r\ndebug2: channel 1: rcvd close\r\ndebug2: channel 1: output open -&gt; drain\r\ndebug2: channel 1: close_read\r\ndebug2: channel 1: input open -&gt; closed\r\ndebug2: channel 2: gc: user detached\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: garbage collecting\r\ndebug1: channel 2: free: client-session, nchannels 3\r\ndebug3: channel 2: status: The following connections are open:\r\n #1 mux-control (t16 r-1 i3/0 o1/16 fd 6/6 cc -1)\r\n #2 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)\r\n\r\ndebug2: channel 1: obuf empty\r\ndebug2: channel 1: close_write\r\ndebug2: channel 1: output drain -&gt; closed\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: gc: notify user\r\ndebug3: mux_master_control_cleanup_cb: entering for channel 1\r\ndebug2: channel 1: gc: user detached\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: garbage collecting\r\ndebug1: channel 1: free: mux-control, nchannels 2\r\ndebug2: Received exit status from master 0\r\ndebug3: channel 1: status: The following connections are open:\r\n #1 mux-control (t16 r-1 i3/0 o3/0 fd 6/6 cc -1)\r\n\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\n') &lt;localhost&gt; ESTABLISH SSH CONNECTION FOR USER: user &lt;localhost&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=user -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/5c0a48d51b localhost '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo /home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679 `" &amp;&amp; echo ansible-tmp-1504186732.12-35775108317679="` echo /home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679 `" ) &amp;&amp; sleep 0'"'"'' &lt;localhost&gt; (0, 'ansible-tmp-1504186732.12-35775108317679=/home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679\n', 'OpenSSH_7.4p1 Debian-10+deb9u1, OpenSSL 1.0.2l 25 May 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 3239\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;localhost&gt; PUT /tmp/tmpzgP7C7 TO /home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679/setup.py &lt;localhost&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=user -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/5c0a48d51b '[localhost]' &lt;localhost&gt; (0, 'sftp&gt; put /tmp/tmpzgP7C7 /home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679/setup.py\n', 'OpenSSH_7.4p1 Debian-10+deb9u1, OpenSSL 1.0.2l 25 May 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 3239\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 2\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug2: Server supports extension "[email protected]" revision 1\r\ndebug3: Sent message fd 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -&gt; /home/user size 0\r\ndebug3: Looking up /tmp/tmpzgP7C7\r\ndebug3: Sent message fd 5 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679/setup.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:7 O:98304 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:8 O:131072 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:9 O:163840 S:31576\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 32768 bytes at 65536\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 7 32768 bytes at 98304\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 8 32768 bytes at 131072\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 9 31576 bytes at 163840\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;localhost&gt; ESTABLISH SSH CONNECTION FOR USER: user &lt;localhost&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=user -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/5c0a48d51b localhost '/bin/sh -c '"'"'chmod u+x /home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679/ /home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679/setup.py &amp;&amp; sleep 0'"'"'' &lt;localhost&gt; (0, '', 'OpenSSH_7.4p1 Debian-10+deb9u1, OpenSSL 1.0.2l 25 May 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 3239\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n') &lt;localhost&gt; ESTABLISH SSH CONNECTION FOR USER: user &lt;localhost&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=user -o ConnectTimeout=10 -o ControlPath=/home/user/.ansible/cp/5c0a48d51b -tt localhost '/bin/sh -c '"'"'/usr/bin/python /home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679/setup.py; rm -rf "/home/user/.ansible/tmp/ansible-tmp-1504186732.12-35775108317679/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'"'"'' &lt;localhost&gt; (0, '\r\n{"invocation": {"module_args": {"filter": "*", "gather_subset": ["all"], "fact_path": "/etc/ansible/facts.d", "gather_timeout": 10}}, "ansible_facts": {"ansible_product_serial": "NA", "ansible_form_factor": "Other", "ansible_product_version": "4.7.1-1.4", "ansible_fips": false, "ansible_service_mgr": "systemd", "ansible_user_id": "user", "ansible_selinux_python_present": true, "ansible_userspace_bits": "64", "ansible_all_ipv4_addresses": ["10.16.20.43"], "gather_subset": ["all"], "ansible_architecture": "x86_64", "ansible_local": {}, "ansible_distribution_version": "9.1", "ansible_domain": "", "ansible_distribution_file_path": "/etc/os-release", "ansible_device_links": {"masters": {}, "labels": {}, "ids": {"sr0": ["ata-QEMU_DVD-ROM_QM00004"]}, "uuids": {"xvda5": ["072dfa9b-a1a2-431e-b98c-019464fca0b2"], "xvda1": ["25255b15-8bd1-44db-8fe2-1b6bff2cb2ed"]}}, "ansible_virtualization_type": "xen", "ansible_real_user_id": 1001, "ansible_processor_cores": 4, "ansible_virtualization_role": "guest", "ansible_distribution_file_variety": "Debian", "ansible_dns": {"nameservers": ["10.16.30.1", "10.16.30.2"]}, "ansible_processor_vcpus": 4, "ansible_bios_version": "4.7.1-1.4", "ansible_processor": ["0", "GenuineIntel", "Intel(R) Xeon(R) CPU X3470 @ 2.93GHz", "1", "GenuineIntel", "Intel(R) Xeon(R) CPU X3470 @ 2.93GHz", "2", "GenuineIntel", "Intel(R) Xeon(R) CPU X3470 @ 2.93GHz", "3", "GenuineIntel", "Intel(R) Xeon(R) CPU X3470 @ 2.93GHz"], "ansible_date_time": {"weekday_number": "4", "iso8601_basic_short": "20170831T153853", "tz": "CEST", "weeknumber": "35", "hour": "15", "year": "2017", "minute": "38", "tz_offset": "+0200", "month": "08", "epoch": "1504186733", "iso8601_micro": "2017-08-31T13:38:53.730047Z", "weekday": "Thursday", "time": "15:38:53", "date": "2017-08-31", "iso8601": "2017-08-31T13:38:53Z", "day": "31", "iso8601_basic": "20170831T153853729540", "second": "53"}, "ansible_lo": {"mtu": 65536, "device": "lo", "promisc": false, "ipv4": {"broadcast": "host", "netmask": "255.0.0.0", "network": "127.0.0.0", "address": "127.0.0.1"}, "ipv6": [{"scope": "host", "prefix": "128", "address": "::1"}], "active": true, "type": "loopback"}, "ansible_memtotal_mb": 482, "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBA3piUNnJnCAiaaKBe8C42zP1+13OZ+mB9e5WWlUNeCdUGpVN6RNPHPl+X+qeOc/BL+cB8e0MDph3QJRSjNYH/w=", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIDf2/wiS2UoTp5DVxrBeB3j1eeFSj1kr5rqGyio6gvPv", "ansible_default_ipv4": {"macaddress": "1e:aa:f6:ab:6d:7f", "network": "10.16.20.0", "mtu": 1500, "broadcast": "10.16.20.255", "alias": "eth0", "netmask": "255.255.255.0", "address": "10.16.20.43", "interface": "eth0", "type": "ether", "gateway": "10.16.20.254"}, "ansible_swapfree_mb": 629, "ansible_default_ipv6": {}, "ansible_distribution_release": "stretch", "ansible_system_vendor": "Xen", "ansible_apparmor": {"status": "disabled"}, "ansible_cmdline": {"BOOT_IMAGE": "/boot/vmlinuz-4.9.0-3-amd64", "ro": true, "root": "/dev/xvda1", "quiet": true}, "ansible_effective_user_id": 1001, "ansible_mounts": [{"block_used": 437192, "uuid": "25255b15-8bd1-44db-8fe2-1b6bff2cb2ed", "size_total": 11962114048, "block_total": 2920438, "mount": "/", "block_available": 2483246, "size_available": 10171375616, "fstype": "ext4", "inode_total": 746304, "options": "rw,relatime,errors=remount-ro,data=ordered", "device": "/dev/xvda1", "inode_used": 43253, "block_size": 4096, "inode_available": 703051}], "ansible_selinux": {"status": "disabled"}, "ansible_distribution_file_parsed": true, "ansible_os_family": "Debian", "ansible_userspace_architecture": "x86_64", "ansible_product_uuid": "NA", "ansible_system": "Linux", "ansible_pkg_mgr": "apt", "ansible_memfree_mb": 15, "ansible_devices": {"sr0": {"scheduler_mode": "cfq", "rotational": "1", "vendor": "QEMU", "sectors": "2097151", "links": {"masters": [], "labels": [], "ids": ["ata-QEMU_DVD-ROM_QM00004"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]", "sectorsize": "512", "removable": "1", "support_discard": "0", "model": "QEMU DVD-ROM", "partitions": {}, "holders": [], "size": "1024.00 MB"}, "xvda": {"scheduler_mode": "", "rotational": "0", "vendor": null, "sectors": "25165824", "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "0", "model": null, "partitions": {"xvda5": {"sectorsize": 512, "uuid": "072dfa9b-a1a2-431e-b98c-019464fca0b2", "links": {"masters": [], "labels": [], "ids": [], "uuids": ["072dfa9b-a1a2-431e-b98c-019464fca0b2"]}, "sectors": "1290240", "start": "23873536", "holders": [], "size": "630.00 MB"}, "xvda1": {"sectorsize": 512, "uuid": "25255b15-8bd1-44db-8fe2-1b6bff2cb2ed", "links": {"masters": [], "labels": [], "ids": [], "uuids": ["25255b15-8bd1-44db-8fe2-1b6bff2cb2ed"]}, "sectors": "23869440", "start": "2048", "holders": [], "size": "11.38 GB"}, "xvda2": {"sectorsize": 512, "uuid": null, "links": {"masters": [], "labels": [], "ids": [], "uuids": []}, "sectors": "2", "start": "23873534", "holders": [], "size": "1.00 KB"}}, "holders": [], "size": "12.00 GB"}}, "ansible_user_uid": 1001, "ansible_memory_mb": {"real": {"total": 482, "used": 467, "free": 15}, "swap": {"cached": 0, "total": 629, "free": 629, "used": 0}, "nocache": {"used": 182, "free": 300}}, "ansible_distribution": "Debian", "ansible_user_dir": "/home/user", "ansible_env": {"LANG": "C", "TERM": "xterm-256color", "SHELL": "/bin/bash", "XDG_RUNTIME_DIR": "/run/user/1001", "MAIL": "/var/mail/user", "SHLVL": "1", "SSH_TTY": "/dev/pts/2", "SSH_CLIENT": "::1 46528 22", "PWD": "/home/user", "LOGNAME": "user", "USER": "user", "PATH": "/usr/local/bin:/usr/bin:/bin:/usr/games", "HOME": "/home/user", "SSH_CONNECTION": "::1 46528 ::1 22", "XDG_SESSION_ID": "13", "_": "/bin/sh"}, "ansible_distribution_major_version": "9", "module_setup": true, "ansible_processor_count": 4, "ansible_hostname": "stretch", "ansible_effective_group_id": 1001, "ansible_swaptotal_mb": 629, "ansible_lsb": {"release": "9.1", "major_release": "9", "codename": "stretch", "id": "Debian", "description": "Debian GNU/Linux 9.1 (stretch)"}, "ansible_real_group_id": 1001, "ansible_bios_date": "02/16/2017", "ansible_all_ipv6_addresses": ["fe80::1caa:f6ff:feab:6d7f"], "ansible_interfaces": ["lo", "eth0"], "ansible_uptime_seconds": 2474, "ansible_user_shell": "/bin/bash", "ansible_machine_id": "8adee5a4675d4211a6af77131f2f70f8", "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDOaR0ftNAo4F+zV8RAuCTjKw6i4vnzd01BnOz4nvf0SMqxuYrWaS2nWm9c1EmsR4hYZLfMl1S3eiw/JSnV2IZ5c7FJ+QOGS+OP8MYmN4E6lORpIQN2s0ohq7voY/p3CfL22r7tT8fzKyJrcK4yVYVPB+mw7DU6hKUmAMYumRYGsy1BwiSIwohrX6GS415n//6Er/0xLTg/o4dwf/XB4Mkj6fBA8pnoi6nxYRluQAYwfy2em0hdghZQJJOjS6tBA73ClRNAMGUH/EqNmXM6EHwF6h2lXcos49ld83q+sOpl3gbLR9J6ZErNI2wEKLOKJd0XUhEN3tFXsV/hGjnaU3a5", "ansible_user_gecos": "", "ansible_python": {"executable": "/usr/bin/python", "version": {"micro": 13, "major": 2, "releaselevel": "final", "serial": 0, "minor": 7}, "type": "CPython", "has_sslcontext": true, "version_info": [2, 7, 13, "final", 0]}, "ansible_processor_threads_per_core": 1, "ansible_fqdn": "stretch", "ansible_user_gid": 1001, "ansible_eth0": {"macaddress": "1e:aa:f6:ab:6d:7f", "pciid": "vif-0", "module": "xen_netfront", "mtu": 1500, "device": "eth0", "promisc": false, "ipv4": {"broadcast": "10.16.20.255", "netmask": "255.255.255.0", "network": "10.16.20.0", "address": "10.16.20.43"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::1caa:f6ff:feab:6d7f"}], "active": true, "type": "ether"}, "ansible_python_version": "2.7.13", "ansible_product_name": "HVM domU", "ansible_machine": "x86_64", "ansible_kernel": "4.9.0-3-amd64", "ansible_nodename": "stretch"}}\r\n', 'OpenSSH_7.4p1 Debian-10+deb9u1, OpenSSL 1.0.2l 25 May 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 3239\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to localhost closed.\r\n') TASK [Gathering Facts] ******************************************************************************************************************************************************************************************** ok: [localhost] META: ran handlers TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** task path: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/main.yml:2 included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/first-include.yml for localhost TASK [role-using-with_nested-to-include : debug] ****************************************************************************************************************************************************************** task path: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/first-include.yml:2 ok: [localhost] =&gt; { "msg": "hello world" } TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** task path: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/main.yml:3 included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/second-include.yml for localhost TASK [role-using-with_nested-to-include : debug] ****************************************************************************************************************************************************************** task path: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/second-include.yml:2 ok: [localhost] =&gt; { "msg": "dlrow olleh" } TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** task path: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/main.yml:7 included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/third-include.yml for localhost TASK [role-using-with_nested-to-include : debug] ****************************************************************************************************************************************************************** task path: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/third-include.yml:2 ok: [localhost] =&gt; { "msg": "world hello" } TASK [role-using-with_nested-to-include : include_tasks] ********************************************************************************************************************************************************** task path: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/main.yml:11 included: /home/user/playbook-with-role/roles/role-using-with_nested-to-include/tasks/fourth-include.yml for localhost META: ran handlers META: ran handlers PLAY RECAP ******************************************************************************************************************************************************************************************************** localhost : ok=8 changed=0 unreachable=0 failed=0 </code></pre></div>
<p dir="auto">When using <code class="notranslate">export=True</code>, <code class="notranslate">svn info</code> runs and fails because there is no .svn folder.</p> <p dir="auto">With export method, a different way to detect change is required.</p> <p dir="auto"><a href="https://github.com/ansible/ansible-modules-core/blob/19b328c4df2157b6c0191e9144236643ce2be890/source_control/subversion.py#L225">https://github.com/ansible/ansible-modules-core/blob/19b328c4df2157b6c0191e9144236643ce2be890/source_control/subversion.py#L225</a></p>
0
<p dir="auto">I encounter a error output in using np,arange(), in python 3.5, numpy 1.13, windows 10 64 bit.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="np.arange(0.24,0.34,0.02) Out[43]: array([ 0.24, 0.26, 0.28, 0.3 , 0.32, 0.34]) np.arange(0.24,0.36,0.02) Out[44]: array([ 0.24, 0.26, 0.28, 0.3 , 0.32, 0.34]) np.arange(0,0.16,0.02) Out[45]: array([ 0. , 0.02, 0.04, 0.06, 0.08, 0.1 , 0.12, 0.14]) np.arange(0,0.14,0.02) Out[46]: array([ 0. , 0.02, 0.04, 0.06, 0.08, 0.1 , 0.12, 0.14]) np.arange(0.24,0.32,0.02) Out[51]: array([ 0.24, 0.26, 0.28, 0.3 , 0.32]) np.__version__ Out[48]: '1.13.3' "><pre class="notranslate"><span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0.24</span>,<span class="pl-c1">0.34</span>,<span class="pl-c1">0.02</span>) <span class="pl-v">Out</span>[<span class="pl-c1">43</span>]: <span class="pl-en">array</span>([ <span class="pl-c1">0.24</span>, <span class="pl-c1">0.26</span>, <span class="pl-c1">0.28</span>, <span class="pl-c1">0.3</span> , <span class="pl-c1">0.32</span>, <span class="pl-c1">0.34</span>]) <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0.24</span>,<span class="pl-c1">0.36</span>,<span class="pl-c1">0.02</span>) <span class="pl-v">Out</span>[<span class="pl-c1">44</span>]: <span class="pl-en">array</span>([ <span class="pl-c1">0.24</span>, <span class="pl-c1">0.26</span>, <span class="pl-c1">0.28</span>, <span class="pl-c1">0.3</span> , <span class="pl-c1">0.32</span>, <span class="pl-c1">0.34</span>]) <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-c1">0.16</span>,<span class="pl-c1">0.02</span>) <span class="pl-v">Out</span>[<span class="pl-c1">45</span>]: <span class="pl-en">array</span>([ <span class="pl-c1">0.</span> , <span class="pl-c1">0.02</span>, <span class="pl-c1">0.04</span>, <span class="pl-c1">0.06</span>, <span class="pl-c1">0.08</span>, <span class="pl-c1">0.1</span> , <span class="pl-c1">0.12</span>, <span class="pl-c1">0.14</span>]) <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-c1">0.14</span>,<span class="pl-c1">0.02</span>) <span class="pl-v">Out</span>[<span class="pl-c1">46</span>]: <span class="pl-en">array</span>([ <span class="pl-c1">0.</span> , <span class="pl-c1">0.02</span>, <span class="pl-c1">0.04</span>, <span class="pl-c1">0.06</span>, <span class="pl-c1">0.08</span>, <span class="pl-c1">0.1</span> , <span class="pl-c1">0.12</span>, <span class="pl-c1">0.14</span>]) <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0.24</span>,<span class="pl-c1">0.32</span>,<span class="pl-c1">0.02</span>) <span class="pl-v">Out</span>[<span class="pl-c1">51</span>]: <span class="pl-en">array</span>([ <span class="pl-c1">0.24</span>, <span class="pl-c1">0.26</span>, <span class="pl-c1">0.28</span>, <span class="pl-c1">0.3</span> , <span class="pl-c1">0.32</span>]) <span class="pl-s1">np</span>.<span class="pl-s1">__version__</span> <span class="pl-v">Out</span>[<span class="pl-c1">48</span>]: <span class="pl-s">'1.13.3'</span></pre></div>
<p dir="auto">If I do <code class="notranslate">np.arange(3.18,3.21,0.01)</code>, it gives <code class="notranslate">array([ 3.18, 3.19, 3.2 ])</code>. However, if I do <code class="notranslate">np.arange(3.18,3.22,0.01)</code>, it gives <code class="notranslate">array([ 3.18, 3.19, 3.2 , 3.21, 3.22])</code>. This seems inconsistent. Why is this so? I am using numpy 1.11.2 on Python 2.7.13.</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=patrickmcmichael" rel="nofollow">Patrick W. McMichael</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2196?redirect=false" rel="nofollow">SPR-2196</a></strong> and commented</p> <p dir="auto">In straight MVC (no WebFlow), there is a referenceData method that gets<br> called when hitting a SimpleFormController in GET mode. This is very useful<br> for things like pulldown contents on a search form, etc.</p> <p dir="auto">However, this method does not get called in POST mode. When your success page is different than<br> the search page this presents no problem. However, if you want the search results to<br> show up in a table below the search form, for example, the onSubmit method<br> would need to do some duplicate calls for that pulldown data, as the form only knows which value in the<br> pulldown was submitted. We could just have referenceData and onSubmit both delegate<br> to the same helper method, and then onSubmit would manually add the pulldown<br> contents to the returned model. What would be really nice would to be able to<br> control whether or not referenceData was needed in POST mode.</p> <hr> <p dir="auto"><strong>Affects:</strong> 1.2.7</p> <p dir="auto">2 votes, 3 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=paul4christ79" rel="nofollow">Paul Benedict</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3729?redirect=false" rel="nofollow">SPR-3729</a></strong> and commented</p> <p dir="auto">The idea that Spring JavaConfig uses Java visibility keywords to expose or hide bean references is an interesting idea. Can that also be implemented in XML?</p> <p dir="auto">Example:<br> &lt;bean id="myBean" class="com...MyBean" visibility="public" /&gt;</p> <p dir="auto">I don't know what good values would be: public/private? The idea being that when multiple application contexts are combined into a parent, they cannot be seen except from within the child context. I was in a meeting with developers complaining about clashing bean names when combing files. This would help alleviate such situations.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.1 M3</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398051836" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/5099" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/5099/hovercard" href="https://github.com/spring-projects/spring-framework/issues/5099">#5099</a> Restrict visibility of beans in app context (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<p dir="auto">Tensorflow is failing like so - very odd since I have memory available and it sees that. This runs fine in CPU only.</p> <p dir="auto">Ubuntu 16.04, Cuda 8.0, CUDNN 5.1 for 8.0, Nvidia 367.57 driver, tensorflow_gpu-0.12.0rc0-cp27-none-linux_x86_64.whl. The rest you can see in the log. I have also tried with CUDNN 5.0 with the same result. Cuda 7.5 works for me but is very slow.</p> <p dir="auto"><strong>Log:</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcublas.so locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcudnn.so locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcufft.so locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcuda.so.1 locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcurand.so locally Exceptions: 0 1403 1403 I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:936] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero I tensorflow/core/common_runtime/gpu/gpu_device.cc:885] Found device 0 with properties: name: GeForce GTX 660 major: 3 minor: 0 memoryClockRate (GHz) 1.0975 pciBusID 0000:02:00.0 Total memory: 1.99GiB Free memory: 1.43GiB W tensorflow/stream_executor/cuda/cuda_driver.cc:590] creating context when one is currently active; existing: 0x2c47900 I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:936] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero I tensorflow/core/common_runtime/gpu/gpu_device.cc:885] Found device 1 with properties: name: GeForce GTX 660 major: 3 minor: 0 memoryClockRate (GHz) 1.0975 pciBusID 0000:01:00.0 Total memory: 1.99GiB Free memory: 1.41GiB I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 0 and 1 I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 1 and 0 I tensorflow/core/common_runtime/gpu/gpu_device.cc:906] DMA: 0 1 I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 0: Y N I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 1: N Y I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -&gt; (device: 0, name: GeForce GTX 660, pci bus id: 0000:02:00.0) I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:1) -&gt; (device: 1, name: GeForce GTX 660, pci bus id: 0000:01:00.0) E tensorflow/stream_executor/cuda/cuda_driver.cc:1002] failed to allocate 198.83M (208486400 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY Traceback (most recent call last): File &quot;build.py&quot;, line 84, in &lt;module&gt; model = tflearn.DNN(net) File &quot;/usr/local/lib/python2.7/dist-packages/tflearn/models/dnn.py&quot;, line 63, in __init__ best_val_accuracy=best_val_accuracy) File &quot;/usr/local/lib/python2.7/dist-packages/tflearn/helpers/trainer.py&quot;, line 135, in __init__ keep_checkpoint_every_n_hours=keep_checkpoint_every_n_hours) File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py&quot;, line 1000, in __init__ self.build() File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py&quot;, line 1021, in build raise ValueError(&quot;No variables to save&quot;) ValueError: No variables to save"><pre class="notranslate"><code class="notranslate">I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcublas.so locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcudnn.so locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcufft.so locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcuda.so.1 locally I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcurand.so locally Exceptions: 0 1403 1403 I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:936] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero I tensorflow/core/common_runtime/gpu/gpu_device.cc:885] Found device 0 with properties: name: GeForce GTX 660 major: 3 minor: 0 memoryClockRate (GHz) 1.0975 pciBusID 0000:02:00.0 Total memory: 1.99GiB Free memory: 1.43GiB W tensorflow/stream_executor/cuda/cuda_driver.cc:590] creating context when one is currently active; existing: 0x2c47900 I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:936] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero I tensorflow/core/common_runtime/gpu/gpu_device.cc:885] Found device 1 with properties: name: GeForce GTX 660 major: 3 minor: 0 memoryClockRate (GHz) 1.0975 pciBusID 0000:01:00.0 Total memory: 1.99GiB Free memory: 1.41GiB I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 0 and 1 I tensorflow/core/common_runtime/gpu/gpu_device.cc:777] Peer access not supported between device ordinals 1 and 0 I tensorflow/core/common_runtime/gpu/gpu_device.cc:906] DMA: 0 1 I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 0: Y N I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 1: N Y I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -&gt; (device: 0, name: GeForce GTX 660, pci bus id: 0000:02:00.0) I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:1) -&gt; (device: 1, name: GeForce GTX 660, pci bus id: 0000:01:00.0) E tensorflow/stream_executor/cuda/cuda_driver.cc:1002] failed to allocate 198.83M (208486400 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY Traceback (most recent call last): File "build.py", line 84, in &lt;module&gt; model = tflearn.DNN(net) File "/usr/local/lib/python2.7/dist-packages/tflearn/models/dnn.py", line 63, in __init__ best_val_accuracy=best_val_accuracy) File "/usr/local/lib/python2.7/dist-packages/tflearn/helpers/trainer.py", line 135, in __init__ keep_checkpoint_every_n_hours=keep_checkpoint_every_n_hours) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1000, in __init__ self.build() File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1021, in build raise ValueError("No variables to save") ValueError: No variables to save </code></pre></div> <p dir="auto"><strong>Code:</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="net = tflearn.input_data(shape=[None, 5]) net = tflearn.fully_connected(net, 64) net = tflearn.fully_connected(net, 64) net = tflearn.fully_connected(net, 2, activation='softmax') net = tflearn.regression(net) # Training model = tflearn.DNN(net) model.fit(X, Y, n_epoch=10000, batch_size=64, show_metric=True) for x in range(0,50): rand = randint(0,len(X)) print(model.predict([X[rand]]), Y[rand]) model.save(&quot;model.tfl&quot;)"><pre class="notranslate"><code class="notranslate">net = tflearn.input_data(shape=[None, 5]) net = tflearn.fully_connected(net, 64) net = tflearn.fully_connected(net, 64) net = tflearn.fully_connected(net, 2, activation='softmax') net = tflearn.regression(net) # Training model = tflearn.DNN(net) model.fit(X, Y, n_epoch=10000, batch_size=64, show_metric=True) for x in range(0,50): rand = randint(0,len(X)) print(model.predict([X[rand]]), Y[rand]) model.save("model.tfl") </code></pre></div>
<p dir="auto">Hi all,</p> <p dir="auto">Recently, I read some papers about implementing Intel Xeon Phi on Tensorflow. Therefore, I want to make TensorFlow support FPGA board. But there is no information in Google and other forum/community.</p> <p dir="auto">For my understanding, we should implement the FPGA supporting in a class of TensorFlow which distributes tasks to different devices (like GPU/CPU). Is possible that implementing the FPGA supporting in that class? Or is there any good suggestions to make the progress to support FPGA on TensorFlow?</p> <p dir="auto">I am looking forward any help or advice!</p> <p dir="auto">Thanks,<br> Kevin</p>
0
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">AFAIK, this is a bug.</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">When setting <code class="notranslate">checked</code> on a checkbox, the checkbox indeed is checked, but the attribute isn't actually in the DOM. This means that checkbox will be targeted by <code class="notranslate">:checked</code>, but not <code class="notranslate">[checked]</code>. In my case, it is a blocker regarding Selenium-powered tests as we use XPath to target elements and <code class="notranslate">[@checked]</code> therefore doesn't work either.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://jsfiddle.net" rel="nofollow">https://jsfiddle.net</a> or similar (template: <a href="https://jsfiddle.net/reactjs/69z2wepo/" rel="nofollow">https://jsfiddle.net/reactjs/69z2wepo/</a>).</strong></p> <p dir="auto">Check this out: <a href="https://jsfiddle.net/cw4hjLav/1/" rel="nofollow">https://jsfiddle.net/cw4hjLav/1/</a></p> <p dir="auto">Quick copypasta from my browser console (I ran those right after loading the fiddle):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="document.querySelector('input[type=checkbox]') &lt;input type=​&quot;checkbox&quot;&gt;​ document.querySelector('input[type=checkbox]:checked') &lt;input type=​&quot;checkbox&quot;&gt;​ document.querySelector('input[type=checkbox][checked]') null"><pre class="notranslate"><code class="notranslate">document.querySelector('input[type=checkbox]') &lt;input type=​"checkbox"&gt;​ document.querySelector('input[type=checkbox]:checked') &lt;input type=​"checkbox"&gt;​ document.querySelector('input[type=checkbox][checked]') null </code></pre></div> <p dir="auto">The behaviour is the same with <code class="notranslate">defaultChecked</code>.</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">The <code class="notranslate">checked</code> attribute actually is in the DOM whenever relevant.</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></p> <p dir="auto">Tried this out with React 15 (the fiddle uses 15.0.1, my app uses 15.1.0), with both Firefox 47.0 and Chromium 50 on Ubuntu 16.04.</p> <p dir="auto">I previously stumbled upon <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="56148622" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/3005" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/3005/hovercard" href="https://github.com/facebook/react/issues/3005">#3005</a> but didn't find the answer there, as my issue doesn't seem to be <code class="notranslate">preventDefault()</code>-related. Thanks a lot!</p>
<p dir="auto">Adding a <code class="notranslate">ref</code> to a child element of a stateless component yields a <strong>caught TypeError: Cannot read property 'refs' of null</strong>. I can see this being really hard to debug. Could there be a better error message there ?</p>
0
<p dir="auto">It has been happening for two days (everything seems fine in PRs), see the failed builds for the 4 latest commits in master:<br> <a href="https://circleci.com/gh/scikit-learn/scikit-learn/17721" rel="nofollow">https://circleci.com/gh/scikit-learn/scikit-learn/17721</a><br> <a href="https://circleci.com/gh/scikit-learn/scikit-learn/17765" rel="nofollow">https://circleci.com/gh/scikit-learn/scikit-learn/17765</a><br> <a href="https://circleci.com/gh/scikit-learn/scikit-learn/17776" rel="nofollow">https://circleci.com/gh/scikit-learn/scikit-learn/17776</a><br> <a href="https://circleci.com/gh/scikit-learn/scikit-learn/17789" rel="nofollow">https://circleci.com/gh/scikit-learn/scikit-learn/17789</a><br> The error messages are the same:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rewrite dev/searchindex.js (73%) ERROR: The key you are authenticating with has been marked as read only. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Exited with code 128"><pre class="notranslate"><code class="notranslate">rewrite dev/searchindex.js (73%) ERROR: The key you are authenticating with has been marked as read only. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Exited with code 128 </code></pre></div> <p dir="auto">We need to restart to get the build pass<br> I can't find any relevant information from Circle so I post here<br> ping <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jnothman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jnothman">@jnothman</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lesteve/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lesteve">@lesteve</a></p>
<p dir="auto">Got a heisen travis failure while working on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="33976066" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/3173" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/3173/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/3173">#3173</a>.<br> The entire travis log is at <a href="https://travis-ci.org/scikit-learn/scikit-learn/jobs/25868444" rel="nofollow">https://travis-ci.org/scikit-learn/scikit-learn/jobs/25868444</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="====================================================================== ERROR: sklearn.linear_model.tests.test_omp.test_omp_cv ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/nose/case.py&quot;, line 197, in runTest self.test(*self.arg) File &quot;/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/tests/test_omp.py&quot;, line 195, in test_omp_cv ompcv.fit(X, y_) File &quot;/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/omp.py&quot;, line 867, in fit for train, test in cv) File &quot;/home/travis/build/scikit-learn/scikit-learn/sklearn/externals/joblib/parallel.py&quot;, line 644, in __call__ self.dispatch(function, args, kwargs) File &quot;/home/travis/build/scikit-learn/scikit-learn/sklearn/externals/joblib/parallel.py&quot;, line 391, in dispatch job = ImmediateApply(func, args, kwargs) File &quot;/home/travis/build/scikit-learn/scikit-learn/sklearn/externals/joblib/parallel.py&quot;, line 129, in __init__ self.results = func(*args, **kwargs) File &quot;/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/omp.py&quot;, line 764, in _omp_path_residues return_path=True) File &quot;/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/omp.py&quot;, line 371, in orthogonal_mp copy_X=copy_X, return_path=return_path) File &quot;/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/omp.py&quot;, line 109, in _cholesky_omp **solve_triangular_args) File &quot;/usr/lib/python2.7/dist-packages/scipy/linalg/basic.py&quot;, line 115, in solve_triangular a1, b1 = map(asarray_chkfinite,(a,b)) File &quot;/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/numpy/lib/function_base.py&quot;, line 595, in asarray_chkfinite &quot;array must not contain infs or NaNs&quot;) ValueError: array must not contain infs or NaNs"><pre class="notranslate"><code class="notranslate">====================================================================== ERROR: sklearn.linear_model.tests.test_omp.test_omp_cv ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/tests/test_omp.py", line 195, in test_omp_cv ompcv.fit(X, y_) File "/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/omp.py", line 867, in fit for train, test in cv) File "/home/travis/build/scikit-learn/scikit-learn/sklearn/externals/joblib/parallel.py", line 644, in __call__ self.dispatch(function, args, kwargs) File "/home/travis/build/scikit-learn/scikit-learn/sklearn/externals/joblib/parallel.py", line 391, in dispatch job = ImmediateApply(func, args, kwargs) File "/home/travis/build/scikit-learn/scikit-learn/sklearn/externals/joblib/parallel.py", line 129, in __init__ self.results = func(*args, **kwargs) File "/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/omp.py", line 764, in _omp_path_residues return_path=True) File "/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/omp.py", line 371, in orthogonal_mp copy_X=copy_X, return_path=return_path) File "/home/travis/build/scikit-learn/scikit-learn/sklearn/linear_model/omp.py", line 109, in _cholesky_omp **solve_triangular_args) File "/usr/lib/python2.7/dist-packages/scipy/linalg/basic.py", line 115, in solve_triangular a1, b1 = map(asarray_chkfinite,(a,b)) File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/numpy/lib/function_base.py", line 595, in asarray_chkfinite "array must not contain infs or NaNs") ValueError: array must not contain infs or NaNs </code></pre></div> <p dir="auto">The test doesn't seem to be always stable.</p>
0
<h2 dir="auto">Describe what you were doing when the bug occurred:<br> By this video link<br> <a href="https://share.getcloudapp.com/xQuDgBXA" rel="nofollow">https://share.getcloudapp.com/xQuDgBXA</a></h2> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.7.0-23309eb38</p> <p dir="auto">Call stack: at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:164715)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163849)<br> at I (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163773)<br> at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:166664)<br> at Ul (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:342328)<br> at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:62450)<br> at tl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:71793)<br> at zl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:113765)<br> at Ic (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:104502)<br> at Tc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:104430)</p> <p dir="auto">Component stack: at Ul (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:342099)<br> at div<br> at div<br> at div<br> at Co (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:263571)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:366677<br> at n (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:276314)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:278724<br> at div<br> at div<br> at Xi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:325177)<br> at Ge (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:207026)<br> at sn (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:216342)<br> at Va (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:293773)<br> at us (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:371869)</p>
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>I was using the devtools to investigate some performance issues w/ an app I help maintain</li> <li>I had just turned on the "Record why each component rendered while profiling" checkbox</li> <li>I ran a profile while navigating on the underlying page</li> </ol> <p dir="auto">The react profiler tab in the devtools gave this error, I think as I clicked the record icon to stop recording the profile.</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.5.0-355970aa4</p> <p dir="auto">Call stack: at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:160881)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:160015)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)<br> at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159939)</p> <p dir="auto">Component stack: in ec<br> in div<br> in div<br> in div<br> in So<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in rl<br> in Ze<br> in fn<br> in Ga<br> in _s</p>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">I would like to see an Insiders edition made that updates daily like VSCode. Otherwise a model similar to MS Edge and VS Code extensions: Monthly: stable, beta: weekly, and alpha: daily.</p> If not updating from the Store (preferably it wouldn't matter), being able to get changes from either clicking "Update" (manual update) or automatically updating (configurable in settings) would be highly desired. ConEmu has this feature and it's great but I'd prefer Windows Terminal. <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">ConEmu has it going directly to the github release page. This would probably be best for Windows Terminal as well. We don't have a stable yet but alpha can be auto-built binaries created daily at midnight EST or whatever time the Console team feels is appropriate. Beta would be auto-built binaries made weekly. These auto-built binaries would have a summary listing all PRs (which you could click on and examine yourself if desired) that were made since the last binary. An auto-delete feature would need to be in place for daily binaries to prevent the list from getting too long. Basically once a new binary was built, the previous one would be deleted (with some checks ensuring the build was successful and can be run and logic checking if no PRs were made that day, then don't create a new build).</p> <h1 dir="auto">A clear and concise description of what you want to happen.</h1> <p dir="auto">In the About dialog or in the new settings UI that's getting built, provide an option to update with a "Check for updates" option. A setting for automatically checking and installing updates if available.</p>
<p dir="auto">when i use emacs in terminal, is very very very slow. opposite,i use windows cmd tool is very fast。</p>
0
<p dir="auto"><a href="https://github.com/rust-lang/rfcs/pull/509" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rfcs/pull/509/hovercard">RFC 509</a></p>
<p dir="auto"><code class="notranslate">../configure &amp;&amp; make install</code> today gives</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="make: *** No rule to make target `prepare-everything', needed by `install'. Stop.`"><pre class="notranslate"><code class="notranslate">make: *** No rule to make target `prepare-everything', needed by `install'. Stop.` </code></pre></div> <p dir="auto">I've already removed the former build directory.</p>
0
<p dir="auto">Hi,<br> I have a mapping as follows:<br> <code class="notranslate">"\"task\": { " + "\"properties\": { " + "\"id\" : { \"type\": \"string\", \"index\": \"not_analyzed\" }," + "\"title\": { \"type\": \"string\" }," + "\"description\": { \"type\": \"string\", \"index\": \"not_analyzed\" }," + "\"address\": { \"type\": \"string\" }," + "\"time\": { \"type\": \"long\" }," + "\"location\" : {" + "\"type\" : \"geo_point\", " + "\"lat_lon\" : \"true\", " + "\"normalize\" : \"false\"," + "\"validate\" : \"true\"" + "}"+ " }" + " } " + "}"</code><br> When I try to update the "time" field with another long value with the following script:<br> <code class="notranslate">{ "script": "ctx._source.time += time", "params": { "time": 4 } }</code><br> i get this error:<br> <code class="notranslate">{ "error" : "MapperParsingException[failed to parse [time]]; nested: NumberFormatException[For input string: "1396457400org.elasticsearch.common.mvel2.util.MethodStub@7f63eccb"]; ", "status" : 400 }</code><br> Now If i rename "time" to "timex" and recreate the index. my update works fine! why? is "time" a reserved word or something?<br> Using the JAVA API and just a simple RESTful call give me the same behaviour</p>
<p dir="auto"><strong>Elasticsearch version</strong>:<br> 5.0.0</p> <p dir="auto"><strong>Plugins installed</strong>:<br> none</p> <p dir="auto"><strong>JVM version</strong>:<br> openjdk version "1.8.0_111"<br> OpenJDK Runtime Environment (build 1.8.0_111-b15)<br> OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode)</p> <p dir="auto"><strong>OS version</strong>:<br> Operating System: CentOS Linux 7 (Core)<br> CPE OS Name: cpe:/o:centos:centos:7<br> Kernel: Linux 3.10.0-327.el7.x86_64<br> Architecture: x86-64</p> <p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:<br> When I create a snapshot in any repository, then get all snapshots in the repository. I see two snapshots IN_PROGRESS! Then when the process finishes, I only see one SUCCESSFUL snapshot. The snapshots seem to work correctly, it's just that it shows duplicates while IN_PROGRESS. You can even see below, they have the same uuid: RHlVXKe-TKqB47nAoeh3Sw. Seems like this is probably not intended behavior!</p> <p dir="auto"><strong>Steps to reproduce</strong>:</p> <ol dir="auto"> <li>(CREATE) $ curl -XPUT localhost:9200/_snapshot/brokerhistory/test -d'{"indices":"brokerhistory_2016-11-04"}'</li> </ol> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{&quot;accepted&quot;:true}"><pre class="notranslate">{<span class="pl-ent">"accepted"</span>:<span class="pl-c1">true</span>}</pre></div> <ol start="2" dir="auto"> <li>(IN_PROGRESS) $ curl -XGET localhost:9200/_snapshot/brokerhistory/_all?pretty</li> </ol> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;snapshots&quot; : [ { &quot;snapshot&quot; : &quot;test&quot;, &quot;uuid&quot; : &quot;RHlVXKe-TKqB47nAoeh3Sw&quot;, &quot;version_id&quot; : 5000099, &quot;version&quot; : &quot;5.0.0&quot;, &quot;indices&quot; : [ &quot;brokerhistory_2016-11-04&quot; ], &quot;state&quot; : &quot;IN_PROGRESS&quot;, &quot;start_time&quot; : &quot;2016-11-04T13:24:42.755Z&quot;, &quot;start_time_in_millis&quot; : 1478265882755, &quot;failures&quot; : [ ], &quot;shards&quot; : { &quot;total&quot; : 0, &quot;failed&quot; : 0, &quot;successful&quot; : 0 } }, { &quot;snapshot&quot; : &quot;test&quot;, &quot;uuid&quot; : &quot;RHlVXKe-TKqB47nAoeh3Sw&quot;, &quot;version_id&quot; : 5000099, &quot;version&quot; : &quot;5.0.0&quot;, &quot;indices&quot; : [ &quot;brokerhistory_2016-11-04&quot; ], &quot;state&quot; : &quot;IN_PROGRESS&quot;, &quot;start_time&quot; : &quot;2016-11-04T13:24:42.755Z&quot;, &quot;start_time_in_millis&quot; : 1478265882755, &quot;failures&quot; : [ ], &quot;shards&quot; : { &quot;total&quot; : 0, &quot;failed&quot; : 0, &quot;successful&quot; : 0 } } ] }"><pre class="notranslate">{ <span class="pl-ent">"snapshots"</span> : [ { <span class="pl-ent">"snapshot"</span> : <span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>, <span class="pl-ent">"uuid"</span> : <span class="pl-s"><span class="pl-pds">"</span>RHlVXKe-TKqB47nAoeh3Sw<span class="pl-pds">"</span></span>, <span class="pl-ent">"version_id"</span> : <span class="pl-c1">5000099</span>, <span class="pl-ent">"version"</span> : <span class="pl-s"><span class="pl-pds">"</span>5.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"indices"</span> : [ <span class="pl-s"><span class="pl-pds">"</span>brokerhistory_2016-11-04<span class="pl-pds">"</span></span> ], <span class="pl-ent">"state"</span> : <span class="pl-s"><span class="pl-pds">"</span>IN_PROGRESS<span class="pl-pds">"</span></span>, <span class="pl-ent">"start_time"</span> : <span class="pl-s"><span class="pl-pds">"</span>2016-11-04T13:24:42.755Z<span class="pl-pds">"</span></span>, <span class="pl-ent">"start_time_in_millis"</span> : <span class="pl-c1">1478265882755</span>, <span class="pl-ent">"failures"</span> : [ ], <span class="pl-ent">"shards"</span> : { <span class="pl-ent">"total"</span> : <span class="pl-c1">0</span>, <span class="pl-ent">"failed"</span> : <span class="pl-c1">0</span>, <span class="pl-ent">"successful"</span> : <span class="pl-c1">0</span> } }, { <span class="pl-ent">"snapshot"</span> : <span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>, <span class="pl-ent">"uuid"</span> : <span class="pl-s"><span class="pl-pds">"</span>RHlVXKe-TKqB47nAoeh3Sw<span class="pl-pds">"</span></span>, <span class="pl-ent">"version_id"</span> : <span class="pl-c1">5000099</span>, <span class="pl-ent">"version"</span> : <span class="pl-s"><span class="pl-pds">"</span>5.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"indices"</span> : [ <span class="pl-s"><span class="pl-pds">"</span>brokerhistory_2016-11-04<span class="pl-pds">"</span></span> ], <span class="pl-ent">"state"</span> : <span class="pl-s"><span class="pl-pds">"</span>IN_PROGRESS<span class="pl-pds">"</span></span>, <span class="pl-ent">"start_time"</span> : <span class="pl-s"><span class="pl-pds">"</span>2016-11-04T13:24:42.755Z<span class="pl-pds">"</span></span>, <span class="pl-ent">"start_time_in_millis"</span> : <span class="pl-c1">1478265882755</span>, <span class="pl-ent">"failures"</span> : [ ], <span class="pl-ent">"shards"</span> : { <span class="pl-ent">"total"</span> : <span class="pl-c1">0</span>, <span class="pl-ent">"failed"</span> : <span class="pl-c1">0</span>, <span class="pl-ent">"successful"</span> : <span class="pl-c1">0</span> } } ] }</pre></div> <ol start="3" dir="auto"> <li>(SUCCESS) $ curl -XGET localhost:9200/_snapshot/brokerhistory/_all?pretty</li> </ol> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;snapshots&quot; : [ { &quot;snapshot&quot; : &quot;test&quot;, &quot;uuid&quot; : &quot;RHlVXKe-TKqB47nAoeh3Sw&quot;, &quot;version_id&quot; : 5000099, &quot;version&quot; : &quot;5.0.0&quot;, &quot;indices&quot; : [ &quot;brokerhistory_2016-11-04&quot; ], &quot;state&quot; : &quot;SUCCESS&quot;, &quot;start_time&quot; : &quot;2016-11-04T13:24:42.755Z&quot;, &quot;start_time_in_millis&quot; : 1478265882755, &quot;end_time&quot; : &quot;2016-11-04T13:25:31.027Z&quot;, &quot;end_time_in_millis&quot; : 1478265931027, &quot;duration_in_millis&quot; : 48272, &quot;failures&quot; : [ ], &quot;shards&quot; : { &quot;total&quot; : 1, &quot;failed&quot; : 0, &quot;successful&quot; : 1 } } ] }"><pre class="notranslate">{ <span class="pl-ent">"snapshots"</span> : [ { <span class="pl-ent">"snapshot"</span> : <span class="pl-s"><span class="pl-pds">"</span>test<span class="pl-pds">"</span></span>, <span class="pl-ent">"uuid"</span> : <span class="pl-s"><span class="pl-pds">"</span>RHlVXKe-TKqB47nAoeh3Sw<span class="pl-pds">"</span></span>, <span class="pl-ent">"version_id"</span> : <span class="pl-c1">5000099</span>, <span class="pl-ent">"version"</span> : <span class="pl-s"><span class="pl-pds">"</span>5.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"indices"</span> : [ <span class="pl-s"><span class="pl-pds">"</span>brokerhistory_2016-11-04<span class="pl-pds">"</span></span> ], <span class="pl-ent">"state"</span> : <span class="pl-s"><span class="pl-pds">"</span>SUCCESS<span class="pl-pds">"</span></span>, <span class="pl-ent">"start_time"</span> : <span class="pl-s"><span class="pl-pds">"</span>2016-11-04T13:24:42.755Z<span class="pl-pds">"</span></span>, <span class="pl-ent">"start_time_in_millis"</span> : <span class="pl-c1">1478265882755</span>, <span class="pl-ent">"end_time"</span> : <span class="pl-s"><span class="pl-pds">"</span>2016-11-04T13:25:31.027Z<span class="pl-pds">"</span></span>, <span class="pl-ent">"end_time_in_millis"</span> : <span class="pl-c1">1478265931027</span>, <span class="pl-ent">"duration_in_millis"</span> : <span class="pl-c1">48272</span>, <span class="pl-ent">"failures"</span> : [ ], <span class="pl-ent">"shards"</span> : { <span class="pl-ent">"total"</span> : <span class="pl-c1">1</span>, <span class="pl-ent">"failed"</span> : <span class="pl-c1">0</span>, <span class="pl-ent">"successful"</span> : <span class="pl-c1">1</span> } } ] }</pre></div>
0
<p dir="auto">The ability to change the font size in the sidebar was requested via Stack Overflow <a href="http://stackoverflow.com/questions/35774918/vs-code-customize-sidebar" rel="nofollow">http://stackoverflow.com/questions/35774918/vs-code-customize-sidebar</a>.</p>
<p dir="auto">At the moment, we can only change the font size / font of the editor. If we want to change the font size, we need to use a roundabout method of "zooming in / out". It would be nice if this could be adjusted through the preferences.</p>
1
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong>:</p> <ul dir="auto"> <li>duplicate volumes</li> <li>volumes</li> </ul> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <ul dir="auto"> <li>BUG REPORT</li> </ul> <p dir="auto">--&gt;</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br> Server: v1.3.4<br> Client: v1.3.0</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>:</li> <li>GKE</li> <li><strong>OS</strong> (e.g. from /etc/os-release):</li> <li>GKE container-vm image</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> When using "source" as volume name in a pod or deployment spec, it fails with the "spec.template.spec.containers[0].volumeMounts[0].name: Not found: "source"".</p> <p dir="auto"><strong>What you expected to happen</strong>:<br> kubectl apply -f should not have thrown an error, but deployed the latest volume.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <ul dir="auto"> <li>Create a pod with at least 2 containers (including init containers)</li> <li>use an emptyDir volume named "source"</li> <li>create this pod or deployment</li> </ul> <p dir="auto"><strong>Anything else do we need to know</strong>:<br> When adding a second volume definition with the same name it works.</p> <p dir="auto">Does not work:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" - name: source emptyDir: {}"><pre lang="volumes:" class="notranslate"><code class="notranslate"> - name: source emptyDir: {} </code></pre></div> <p dir="auto">Does work:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" - name: source emptyDir: {} - name: source emptyDir: {}"><pre lang="volumes:" class="notranslate"><code class="notranslate"> - name: source emptyDir: {} - name: source emptyDir: {} </code></pre></div> <p dir="auto">Does also work:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" - name: source2 emptyDir: {}"><pre lang="volumes:" class="notranslate"><code class="notranslate"> - name: source2 emptyDir: {} </code></pre></div> <p dir="auto">As a sidenote. Applying the duplicate volumes works and getting the yaml from the apiserver actually only returns one volume.</p>
<p dir="auto">We leave tons of dead containers around when kubecfg deletes pods. We should cleanup those dead containers.</p> <p dir="auto">I have a pending PR for this.</p>
0
<p dir="auto">Electron Version 7<br> Operating System: Windows<br> Last Known Working Electron version: 6.1.1</p> <p dir="auto">Loading from a data URL doesn't work anymore:</p> <p dir="auto">win.loadURL('data:text/html;charset=utf-8 ...', {baseURLForDataURL: ... })</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 issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong></li> <li>7.0.0</li> <li><strong>Operating System:</strong></li> <li>Arch Linux</li> <li><strong>Last Known Working Electron version:</strong></li> <li>6.0.10</li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Opening a <code class="notranslate">webview</code> with a preset source as in:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;webview src=&quot;https://github.com&quot;&gt;&lt;/webview&gt; &lt;script&gt; webview.loadURL( `data:text/html;charset=utf-8;base64, PGgxPkhBTExPPC9oMT4= `, { baseURLForDataURL: `file://home/` }) // the base64 string is just &lt;h1&gt;HALLO&lt;/h1&gt; &lt;/script&gt;"><pre class="notranslate"><code class="notranslate">&lt;webview src="https://github.com"&gt;&lt;/webview&gt; &lt;script&gt; webview.loadURL( `data:text/html;charset=utf-8;base64, PGgxPkhBTExPPC9oMT4= `, { baseURLForDataURL: `file://home/` }) // the base64 string is just &lt;h1&gt;HALLO&lt;/h1&gt; &lt;/script&gt; </code></pre></div> <p dir="auto">loads the github URL and then reloads the webview with <code class="notranslate">HALLO</code>.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Electron crashes</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">See this repo:<br> <a href="https://github.com/burningTyger/webview-bug">https://github.com/burningTyger/webview-bug</a></p> <h3 dir="auto">Screenshots</h3> <h3 dir="auto">Additional Information</h3>
1
<h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto"><code class="notranslate">master</code></p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto"><code class="notranslate">ShardingSphere-Proxy</code></p> <h3 dir="auto">Expected behavior</h3> <p dir="auto"><code class="notranslate">Add resource</code> successful.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto"><code class="notranslate">ERROR 1104 (C1104): Can not process invalid resources, error messages are: [Single table conflict, there are multiple tables </code>admin<code class="notranslate"> existed.].</code></p> <p dir="auto"><code class="notranslate">ADD MASTER RESOURCE : </code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ADD RESOURCE ds0 ( HOST=127.0.0.1, PORT=3306, DB=lsj, USER=root, PASSWORD=123456 );"><pre class="notranslate"><code class="notranslate">ADD RESOURCE ds0 ( HOST=127.0.0.1, PORT=3306, DB=lsj, USER=root, PASSWORD=123456 ); </code></pre></div> <p dir="auto"><code class="notranslate">ADD SLAVE RESOURCE : </code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ADD RESOURCE ds1 ( HOST=127.0.0.1, PORT=3307, DB=lsj, USER=root, PASSWORD=123456 );"><pre class="notranslate"><code class="notranslate">ADD RESOURCE ds1 ( HOST=127.0.0.1, PORT=3307, DB=lsj, USER=root, PASSWORD=123456 ); </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/33742097/176172502-390062d1-1c7a-4554-b253-3f7ccb8b23a2.png"><img width="1340" alt="image" src="https://user-images.githubusercontent.com/33742097/176172502-390062d1-1c7a-4554-b253-3f7ccb8b23a2.png" style="max-width: 100%;"></a></p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p> <h3 dir="auto">Which version of Sharding-Sphere do you using?</h3> <p dir="auto">3.0.0.M2</p> <h3 dir="auto">Which project do you using? Sharding-JDBC or Sharding-Proxy?</h3> <p dir="auto">Sharding-JDBC</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">The query is normal, but every time an exception is thrown<br> Is it compatible with previous versions of Hibernate?<br> I switch from 1.5.x,my software on 1.5.x Normal work<br> Please help analyze the problem, thank you!!<br> no thorw by: Exception thrown by subscriber method listen(io.shardingsphere.core.transaction.event.TransactionEvent)</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">every time an exception is thrown<br> Exception thrown by subscriber method listen(io.shardingsphere.core.transaction.event.TransactionEvent)<br> java.lang.NullPointerException<br> at io.shardingsphere.core.transaction.listener.TransactionListener.listen(TransactionListener.java:64)</p> <h3 dir="auto">Reason analyze</h3> <p dir="auto">Is it compatible with previous versions of Hibernate or spring?<br> my software use a base class to get session lock following code<br> public Session getSession() {<br> if(sessionFactory != null &amp;&amp; sessionFactory.getCurrentSession() != null) {<br> return sessionFactory.getCurrentSession();<br> } else {<br> return session;<br> }<br> }</p> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc</h3> <p dir="auto">my configuration:</p> true <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;!-- sharding分库分表sessionFactory --&gt; &lt;bean id=&quot;strategySessionFactory&quot; class=&quot;org.springframework.orm.hibernate4.LocalSessionFactoryBean&quot;&gt; &lt;property name=&quot;dataSource&quot; ref=&quot;shardingDataSource&quot; /&gt; &lt;property name=&quot;packagesToScan&quot; value=&quot;com.dayi35.core.model,com.dayi35.core.spot.**,com.dayi35.core.finance.**.model,com.dayi35.payment.factory.model,com.dayi35.payment.bank.pingan.core.model,com.dayi35.core.sys.system.model&quot; /&gt; &lt;property name=&quot;hibernateProperties&quot;&gt; &lt;props&gt; &lt;prop key=&quot;hibernate.dialect&quot;&gt;org.hibernate.dialect.MySQLDialect&lt;/prop&gt; &lt;prop key=&quot;hibernate.show_sql&quot;&gt;false&lt;/prop&gt; &lt;prop key=&quot;hibernate.hbm2ddl.auto&quot;&gt;false&lt;/prop&gt; &lt;prop key=&quot;hibernate.current_session_context_class&quot;&gt;org.springframework.orm.hibernate4.SpringSessionContext&lt;/prop&gt; &lt;!-- 转为用filter去打开session &lt;prop key=&quot;hibernate.current_session_context_class&quot;&gt;com.fiidee.eagle.framework.base.dao.SpringSessionContext&lt;/prop&gt;--&gt; &lt;prop key=&quot;hibernate.cache.use_second_level_cache&quot;&gt;false&lt;/prop&gt; &lt;prop key=&quot;hibernate.cache.use_query_cache&quot;&gt;false&lt;/prop&gt; &lt;prop key=&quot;hibernate.cache.use_structured_entries&quot;&gt;false&lt;/prop&gt; &lt;prop key=&quot;hibernate.enable_lazy_load_no_trans&quot;&gt;true&lt;/prop&gt; &lt;prop key=&quot;hibernate.bytecode.use_reflection_optimizer&quot;&gt;false&lt;/prop&gt; &lt;/props&gt; &lt;/property&gt; &lt;!-- this use for default naming mapping like userName(O) to user_name(DB) --&gt; &lt;property name=&quot;namingStrategy&quot;&gt;&lt;ref bean=&quot;namingStrategy&quot;/&gt;&lt;/property&gt; &lt;/bean&gt; &lt;!--设置事物管理器对应的dataSource为ShardingDataSource --&gt; &lt;bean id=&quot;shardingTransactionManager&quot; class=&quot;org.springframework.orm.hibernate4.HibernateTransactionManager&quot;&gt; &lt;property name=&quot;sessionFactory&quot; ref=&quot;strategySessionFactory&quot; /&gt; &lt;/bean&gt;"><pre class="notranslate"><code class="notranslate">&lt;!-- sharding分库分表sessionFactory --&gt; &lt;bean id="strategySessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"&gt; &lt;property name="dataSource" ref="shardingDataSource" /&gt; &lt;property name="packagesToScan" value="com.dayi35.core.model,com.dayi35.core.spot.**,com.dayi35.core.finance.**.model,com.dayi35.payment.factory.model,com.dayi35.payment.bank.pingan.core.model,com.dayi35.core.sys.system.model" /&gt; &lt;property name="hibernateProperties"&gt; &lt;props&gt; &lt;prop key="hibernate.dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/prop&gt; &lt;prop key="hibernate.show_sql"&gt;false&lt;/prop&gt; &lt;prop key="hibernate.hbm2ddl.auto"&gt;false&lt;/prop&gt; &lt;prop key="hibernate.current_session_context_class"&gt;org.springframework.orm.hibernate4.SpringSessionContext&lt;/prop&gt; &lt;!-- 转为用filter去打开session &lt;prop key="hibernate.current_session_context_class"&gt;com.fiidee.eagle.framework.base.dao.SpringSessionContext&lt;/prop&gt;--&gt; &lt;prop key="hibernate.cache.use_second_level_cache"&gt;false&lt;/prop&gt; &lt;prop key="hibernate.cache.use_query_cache"&gt;false&lt;/prop&gt; &lt;prop key="hibernate.cache.use_structured_entries"&gt;false&lt;/prop&gt; &lt;prop key="hibernate.enable_lazy_load_no_trans"&gt;true&lt;/prop&gt; &lt;prop key="hibernate.bytecode.use_reflection_optimizer"&gt;false&lt;/prop&gt; &lt;/props&gt; &lt;/property&gt; &lt;!-- this use for default naming mapping like userName(O) to user_name(DB) --&gt; &lt;property name="namingStrategy"&gt;&lt;ref bean="namingStrategy"/&gt;&lt;/property&gt; &lt;/bean&gt; &lt;!--设置事物管理器对应的dataSource为ShardingDataSource --&gt; &lt;bean id="shardingTransactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager"&gt; &lt;property name="sessionFactory" ref="strategySessionFactory" /&gt; &lt;/bean&gt; </code></pre></div> <h3 dir="auto">For bug report, please <em>MUST</em> provide the reproduce example codes (such as a github link).</h3> <p dir="auto">20180905 14:11:08.206[INFO][qtp2111700021-20] - Sharding-Sphere-SQL.log : Rule Type: sharding<br> 20180905 14:11:08.206[INFO][qtp2111700021-20] - Sharding-Sphere-SQL.log : Logic SQL: select count(<em>) as y0_ from finance_account_log this_ where this_.pay_type in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and this_.pay_uc_id=? and this_.status=? and this_.create_date between ? and ?<br> 20180905 14:11:08.207[INFO][qtp2111700021-20] - Sharding-Sphere-SQL.log : SQLStatement: SelectStatement(super=DQLStatement(super=AbstractSQLStatement(type=DQL, tables=Tables(tables=[Table(name=finance_account_log, alias=Optional.of(this_))]), conditions=Conditions(orCondition=OrCondition(andConditions=[AndCondition(conditions=[Condition(column=Column(name=create_date, tableName=finance_account_log), operator=BETWEEN, positionValueMap={}, positionIndexMap={0=28, 1=29})])])), sqlTokens=[TableToken(beginPosition=28, skippedSchemaNameLength=0, originalLiterals=finance_account_log)], parametersIndex=30)), containStar=false, selectListLastPosition=23, groupByLastPosition=0, items=[AggregationSelectItem(type=COUNT, innerExpression=(</em>), alias=Optional.of(y0_), derivedAggregationSelectItems=[], index=-1)], groupByItems=[], orderByItems=[], limit=null, subQueryStatement=null)<br> 20180905 14:11:08.208[INFO][qtp2111700021-20] - Sharding-Sphere-SQL.log : Actual SQL: dataSource ::: select count(*) as y0_ from finance_account_log_8 this_ where this_.pay_type in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and this_.pay_uc_id=? and this_.status=? and this_.create_date between ? and ? ::: [[1, -9, -114, -112, -115, -100, -101, -109, -102, -117, -107, -116, -118, 103, 104, 108, -103, 105, 106, 107, -8, -120, 109, -999, -121, -41, 20135177197638921, 1, 2018-08-06 00:00:00.992, 2018-09-05 23:59:59.992]]<br> 20180905 14:11:08.243[INFO][qtp2111700021-20] - Sharding-Sphere-SQL.log : Rule Type: sharding<br> 20180905 14:11:08.243[INFO][qtp2111700021-20] - Sharding-Sphere-SQL.log : Logic SQL: select this_.id as y0_ from finance_account_log this_ where this_.pay_type in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and this_.pay_uc_id=? and this_.status=? and this_.create_date between ? and ? order by this_.ser_id desc limit ?<br> 20180905 14:11:08.244[INFO][qtp2111700021-20] - Sharding-Sphere-SQL.log : SQLStatement: SelectStatement(super=DQLStatement(super=AbstractSQLStatement(type=DQL, tables=Tables(tables=[Table(name=finance_account_log, alias=Optional.of(this_))]), conditions=Conditions(orCondition=OrCondition(andConditions=[AndCondition(conditions=[Condition(column=Column(name=create_date, tableName=finance_account_log), operator=BETWEEN, positionValueMap={}, positionIndexMap={0=28, 1=29})])])), sqlTokens=[TableToken(beginPosition=28, skippedSchemaNameLength=0, originalLiterals=finance_account_log), ItemsToken(beginPosition=23, isFirstOfItemsSpecial=false, items=[this_.ser_id AS ORDER_BY_DERIVED_0 ])], parametersIndex=31)), containStar=false, selectListLastPosition=23, groupByLastPosition=0, items=[CommonSelectItem(expression=this_.id, alias=Optional.of(y0_))], groupByItems=[], orderByItems=[OrderItem(owner=Optional.of(this_), name=Optional.of(ser_id), orderDirection=DESC, nullOrderDirection=ASC, index=-1, alias=Optional.of(ORDER_BY_DERIVED_0))], limit=null, subQueryStatement=null)<br> 20180905 14:11:08.244[INFO][qtp2111700021-20] - Sharding-Sphere-SQL.log : Actual SQL: dataSource ::: select this_.id as y0_ , this_.ser_id AS ORDER_BY_DERIVED_0 from finance_account_log_8 this_ where this_.pay_type in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and this_.pay_uc_id=? and this_.status=? and this_.create_date between ? and ? order by this_.ser_id desc limit ? ::: [[1, -9, -114, -112, -115, -100, -101, -109, -102, -117, -107, -116, -118, 103, 104, 108, -103, 105, 106, 107, -8, -120, 109, -999, -121, -41, 20135177197638921, 1, 2018-08-06 00:00:00.992, 2018-09-05 23:59:59.992, 10]]<br> 20180905 14:11:08.255[INFO][qtp2111700021-20] - Sharding-Sphere-SQL.log : Rule Type: sharding<br> 20180905 14:11:08.255[INFO][qtp2111700021-20] - Sharding-Sphere-SQL.log : Logic SQL: select this_.id as id1_80_0_, this_.create_date as create_d2_80_0_, this_.modify_date as modify_d3_80_0_, this_.account_type as account_4_80_0_, this_.accrual as accrual5_80_0_, this_.agent_org_id as agent_or6_80_0_, this_.balance as balance7_80_0_, this_.bussniss_type as bussniss8_80_0_, this_.cargo_hand_num as cargo_ha9_80_0_, this_.cargo_interest as cargo_i10_80_0_, this_.cargo_interest_puchas as cargo_i11_80_0_, this_.error_type as error_t12_80_0_, this_.finish_method as finish_13_80_0_, this_.frozen as frozen14_80_0_, this_.full_fund as full_fu15_80_0_, this_.in_out_type as in_out_16_80_0_, this_.interest as interes17_80_0_, this_.link_person as link_pe18_80_0_, this_.mobile as mobile19_80_0_, this_.name as name20_80_0_, this_.out_frozen as out_fro21_80_0_, this_.pay_type as pay_typ22_80_0_, this_.pay_uc_id as pay_uc_23_80_0_, this_.product_type as product24_80_0_, this_.product_type_str as product25_80_0_, this_.protocol_number as protoco26_80_0_, this_.receive_uc_account_type as receive27_80_0_, this_.receive_uc_id as receive28_80_0_, this_.relation_ser_id as relatio29_80_0_, this_.remark as remark30_80_0_, this_.ser_id as ser_id31_80_0_, this_.short_fund as short_f32_80_0_, this_.spe_business as spe_bus33_80_0_, this_.status as status34_80_0_, this_.sys_business as sys_bus35_80_0_, this_.total_in_cash as total_i36_80_0_, this_.total_out_cash as total_o37_80_0_, this_.userable as userabl38_80_0_, this_.version as version39_80_0_ from finance_account_log this_ where this_.pay_type in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and this_.pay_uc_id=? and this_.status=? and this_.create_date between ? and ? and this_.id in (?) order by this_.ser_id desc<br> 20180905 14:11:08.255[INFO][qtp2111700021-20] - Sharding-Sphere-SQL.log : SQLStatement: SelectStatement(super=DQLStatement(super=AbstractSQLStatement(type=DQL, tables=Tables(tables=[Table(name=finance_account_log, alias=Optional.of(this_))]), conditions=Conditions(orCondition=OrCondition(andConditions=[AndCondition(conditions=[Condition(column=Column(name=create_date, tableName=finance_account_log), operator=BETWEEN, positionValueMap={}, positionIndexMap={0=28, 1=29})])])), sqlTokens=[TableToken(beginPosition=1465, skippedSchemaNameLength=0, originalLiterals=finance_account_log)], parametersIndex=31)), containStar=false, selectListLastPosition=1460, groupByLastPosition=0, items=[CommonSelectItem(expression=this_.frozen, alias=Optional.of(frozen14_80_0_)), CommonSelectItem(expression=this_.receive_uc_account_type, alias=Optional.of(receive27_80_0_)), CommonSelectItem(expression=this_.product_type_str, alias=Optional.of(product25_80_0_)), CommonSelectItem(expression=this_.modify_date, alias=Optional.of(modify_d3_80_0_)), CommonSelectItem(expression=this_.remark, alias=Optional.of(remark30_80_0_)), CommonSelectItem(expression=this_.name, alias=Optional.of(name20_80_0_)), CommonSelectItem(expression=this_.status, alias=Optional.of(status34_80_0_)), CommonSelectItem(expression=this_.version, alias=Optional.of(version39_80_0_)), CommonSelectItem(expression=this_.balance, alias=Optional.of(balance7_80_0_)), CommonSelectItem(expression=this_.cargo_hand_num, alias=Optional.of(cargo_ha9_80_0_)), CommonSelectItem(expression=this_.short_fund, alias=Optional.of(short_f32_80_0_)), CommonSelectItem(expression=this_.id, alias=Optional.of(id1_80_0_)), CommonSelectItem(expression=this_.error_type, alias=Optional.of(error_t12_80_0_)), CommonSelectItem(expression=this_.finish_method, alias=Optional.of(finish_13_80_0_)), CommonSelectItem(expression=this_.link_person, alias=Optional.of(link_pe18_80_0_)), CommonSelectItem(expression=this_.accrual, alias=Optional.of(accrual5_80_0_)), CommonSelectItem(expression=this_.relation_ser_id, alias=Optional.of(relatio29_80_0_)), CommonSelectItem(expression=this_.mobile, alias=Optional.of(mobile19_80_0_)), CommonSelectItem(expression=this_.cargo_interest, alias=Optional.of(cargo_i10_80_0_)), CommonSelectItem(expression=this_.account_type, alias=Optional.of(account_4_80_0_)), CommonSelectItem(expression=this_.agent_org_id, alias=Optional.of(agent_or6_80_0_)), CommonSelectItem(expression=this_.receive_uc_id, alias=Optional.of(receive28_80_0_)), CommonSelectItem(expression=this_.spe_business, alias=Optional.of(spe_bus33_80_0_)), CommonSelectItem(expression=this_.total_in_cash, alias=Optional.of(total_i36_80_0_)), CommonSelectItem(expression=this_.cargo_interest_puchas, alias=Optional.of(cargo_i11_80_0_)), CommonSelectItem(expression=this_.pay_uc_id, alias=Optional.of(pay_uc_23_80_0_)), CommonSelectItem(expression=this_.ser_id, alias=Optional.of(ser_id31_80_0_)), CommonSelectItem(expression=this_.pay_type, alias=Optional.of(pay_typ22_80_0_)), CommonSelectItem(expression=this_.total_out_cash, alias=Optional.of(total_o37_80_0_)), CommonSelectItem(expression=this_.in_out_type, alias=Optional.of(in_out_16_80_0_)), CommonSelectItem(expression=this_.full_fund, alias=Optional.of(full_fu15_80_0_)), CommonSelectItem(expression=this_.interest, alias=Optional.of(interes17_80_0_)), CommonSelectItem(expression=this_.out_frozen, alias=Optional.of(out_fro21_80_0_)), CommonSelectItem(expression=this_.userable, alias=Optional.of(userabl38_80_0_)), CommonSelectItem(expression=this_.bussniss_type, alias=Optional.of(bussniss8_80_0_)), CommonSelectItem(expression=this_.product_type, alias=Optional.of(product24_80_0_)), CommonSelectItem(expression=this_.sys_business, alias=Optional.of(sys_bus35_80_0_)), CommonSelectItem(expression=this_.create_date, alias=Optional.of(create_d2_80_0_)), CommonSelectItem(expression=this_.protocol_number, alias=Optional.of(protoco26_80_0_))], groupByItems=[], orderByItems=[OrderItem(owner=Optional.of(this_), name=Optional.of(ser_id), orderDirection=DESC, nullOrderDirection=ASC, index=-1, alias=Optional.of(ser_id31_80_0_))], limit=null, subQueryStatement=null)<br> 20180905 14:11:08.258[INFO][qtp2111700021-20] - Sharding-Sphere-SQL.log : Actual SQL: dataSource ::: select this_.id as id1_80_0_, this_.create_date as create_d2_80_0_, this_.modify_date as modify_d3_80_0_, this_.account_type as account_4_80_0_, this_.accrual as accrual5_80_0_, this_.agent_org_id as agent_or6_80_0_, this_.balance as balance7_80_0_, this_.bussniss_type as bussniss8_80_0_, this_.cargo_hand_num as cargo_ha9_80_0_, this_.cargo_interest as cargo_i10_80_0_, this_.cargo_interest_puchas as cargo_i11_80_0_, this_.error_type as error_t12_80_0_, this_.finish_method as finish_13_80_0_, this_.frozen as frozen14_80_0_, this_.full_fund as full_fu15_80_0_, this_.in_out_type as in_out_16_80_0_, this_.interest as interes17_80_0_, this_.link_person as link_pe18_80_0_, this_.mobile as mobile19_80_0_, this_.name as name20_80_0_, this_.out_frozen as out_fro21_80_0_, this_.pay_type as pay_typ22_80_0_, this_.pay_uc_id as pay_uc_23_80_0_, this_.product_type as product24_80_0_, this_.product_type_str as product25_80_0_, this_.protocol_number as protoco26_80_0_, this_.receive_uc_account_type as receive27_80_0_, this_.receive_uc_id as receive28_80_0_, this_.relation_ser_id as relatio29_80_0_, this_.remark as remark30_80_0_, this_.ser_id as ser_id31_80_0_, this_.short_fund as short_f32_80_0_, this_.spe_business as spe_bus33_80_0_, this_.status as status34_80_0_, this_.sys_business as sys_bus35_80_0_, this_.total_in_cash as total_i36_80_0_, this_.total_out_cash as total_o37_80_0_, this_.userable as userabl38_80_0_, this_.version as version39_80_0_ from finance_account_log_8 this_ where this_.pay_type in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and this_.pay_uc_id=? and this_.status=? and this_.create_date between ? and ? and this_.id in (?) order by this_.ser_id desc ::: [[1, -9, -114, -112, -115, -100, -101, -109, -102, -117, -107, -116, -118, 103, 104, 108, -103, 105, 106, 107, -8, -120, 109, -999, -121, -41, 20135177197638921, 1, 2018-08-06 00:00:00.992, 2018-09-05 23:59:59.992, 1]]<br> 九月 05, 2018 2:11:08 下午 com.google.common.eventbus.EventBus$LoggingHandler handleException<br> 严重: Exception thrown by subscriber method listen(io.shardingsphere.core.transaction.event.TransactionEvent) on subscriber io.shardingsphere.core.transaction.listener.TransactionListener@3f00cd13 when dispatching event: io.shardingsphere.core.transaction.event.WeakXaTransactionEvent@7290d4fe<br> java.lang.NullPointerException<br> at io.shardingsphere.core.transaction.listener.TransactionListener.listen(TransactionListener.java:64)<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br> at java.lang.reflect.Method.invoke(Method.java:483)<br> at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:95)<br> at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:80)<br> at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:456)<br> at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:76)<br> at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:119)<br> at com.google.common.eventbus.EventBus.post(EventBus.java:215)<br> at io.shardingsphere.core.jdbc.adapter.AbstractConnectionAdapter.commit(AbstractConnectionAdapter.java:96)<br> at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doCommit(JdbcTransaction.java:112)<br> at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:180)<br> at org.springframework.orm.hibernate4.HibernateTransactionManager.doCommit(HibernateTransactionManager.java:584)<br> at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:761)<br> at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:730)<br> at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:518)<br> at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:292)<br> at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)<br> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)<br> at net.bull.javamelody.MonitoringSpringInterceptor.invoke(MonitoringSpringInterceptor.java:73)<br> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)<br> at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)<br> at com.dayi35.core.finance.account.service.impl.AccountLogServiceImpl$$EnhancerBySpringCGLIB$$51b4a3e9.searchAccountLogBySysBusiness()<br> at com.dayi35.controller.finance.pcV2.per.PcV2PerAccountController.getLogList(PcV2PerAccountController.java:508)<br> at com.dayi35.controller.finance.pcV2.per.PcV2PerAccountController.tradeLog(PcV2PerAccountController.java:111)<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br> at java.lang.reflect.Method.invoke(Method.java:483)<br> at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)<br> at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)<br> at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)<br> at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)<br> at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)<br> at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)<br> at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)<br> at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)<br> at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)<br> at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)<br> at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)<br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)<br> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)<br> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1655)<br> at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:215)<br> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)<br> at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:404)<br> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)<br> at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:201)<br> at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:178)<br> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)<br> at com.alibaba.druid.support.http.WebStatFilter.doFilter(WebStatFilter.java:123)<br> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)<br> at com.dayi35.core.spot.common.filter.XssFilter.doFilter(XssFilter.java:57)<br> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)<br> at com.dayi35.core.spot.common.filter.EmojiFilter.doFilter(EmojiFilter.java:23)<br> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)<br> at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)<br> at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)<br> at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151)<br> at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)<br> at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151)<br> at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)<br> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634)<br> at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)<br> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)<br> at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)<br> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)<br> at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)<br> at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)<br> at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)<br> at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1317)<br> at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)<br> at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)<br> at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)<br> at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)<br> at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1219)<br> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)<br> at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219)<br> at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)<br> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)<br> at org.eclipse.jetty.server.Server.handle(Server.java:531)<br> at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)<br> at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)<br> at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)<br> at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)<br> at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)<br> at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762)<br> at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680)<br> at java.lang.Thread.run(Thread.java:744)</p>
0
<p dir="auto">I am using sklearn for my project i have trained model on 64 bit linux machine,now i want to load that model (.pickle format) on raspberry pi which is 32 bit os and hw configuration,i have following issue while unpickling model file.<br> Please help me if any solution on this.</p> <p dir="auto">knn_clf =joblib.load(f)<br> File "/usr/local/lib/python3.5/dist-packages/sklearn/externals/joblib/numpy_pickle.py", line 568, in load<br> obj = _unpickle(fobj)<br> File "/usr/local/lib/python3.5/dist-packages/sklearn/externals/joblib/numpy_pickle.py", line 508, in _unpickle<br> obj = unpickler.load()<br> File "/usr/lib/python3.5/pickle.py", line 1043, in load<br> dispatch<a href="self">key[0]</a><br> File "/usr/local/lib/python3.5/dist-packages/sklearn/externals/joblib/numpy_pickle.py", line 328, in load_build<br> Unpickler.load_build(self)<br> File "/usr/lib/python3.5/pickle.py", line 1518, in load_build<br> setstate(state)<br> File "sklearn/neighbors/binary_tree.pxi", line 1128, in sklearn.neighbors.ball_tree.BinaryTree.<em>setstate</em><br> File "sklearn/neighbors/binary_tree.pxi", line 228, in sklearn.neighbors.ball_tree.get_memview_ITYPE_1D<br> ValueError: Buffer dtype mismatch, expected 'ITYPE_t' but got 'long long'</p>
<h4 dir="auto">Description</h4> <p dir="auto"><code class="notranslate">ValueError: Did not recognise loaded array layout</code> thrown when loading model pickled in 32 bit Linux and loaded on 32 bit Windows. The reverse is also true. Models can be pickled/loaded on their respective OS so it seems to be a cross-platform issue.</p> <p dir="auto">I've tried both joblib and pickle and ensured that library versions are the same on Windows and Linux. Libraries were obtained using miniconda from the anaconda channel using libraries uploaded by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kalefranz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kalefranz">@kalefranz</a> (<a href="https://anaconda.org/anaconda/scikit-learn" rel="nofollow">https://anaconda.org/anaconda/scikit-learn</a>)</p> <p dir="auto">Seems similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="147693489" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/6650" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/6650/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/6650">#6650</a>. 64 bit models are able to load. However, 32 bit is a requirement for my use case.</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <p dir="auto">Minimum code to reproduce</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="create_model.py from sklearn.externals import joblib import numpy as np from sklearn.ensemble import RandomForestClassifier import pickle X = np.random.randn(1500,8) l = np.random.randint(6, size = 1500) clf_forest = RandomForestClassifier(n_estimators = 10) clf_forest.fit(X,l) joblib.dump(clf_forest,'joblib_clf_forest_win.pkl') with open('pickle_clf_forest_win.pkl', 'wb') as f: pickle.dump(clf_forest, f)"><pre class="notranslate"><code class="notranslate">create_model.py from sklearn.externals import joblib import numpy as np from sklearn.ensemble import RandomForestClassifier import pickle X = np.random.randn(1500,8) l = np.random.randint(6, size = 1500) clf_forest = RandomForestClassifier(n_estimators = 10) clf_forest.fit(X,l) joblib.dump(clf_forest,'joblib_clf_forest_win.pkl') with open('pickle_clf_forest_win.pkl', 'wb') as f: pickle.dump(clf_forest, f) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pickle_load.py import pickle with open('pickle_clf_forest.pkl', 'rb') as f: pickle.load(f) "><pre class="notranslate"><code class="notranslate">pickle_load.py import pickle with open('pickle_clf_forest.pkl', 'rb') as f: pickle.load(f) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="joblib_load.py from sklearn.externals import joblib a = joblib.load('joblib_clf_forest.pkl') "><pre class="notranslate"><code class="notranslate">joblib_load.py from sklearn.externals import joblib a = joblib.load('joblib_clf_forest.pkl') </code></pre></div> <h4 dir="auto">Expected Results</h4> <p dir="auto">No error is thrown.</p> <h4 dir="auto">Actual Results</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(..\exe\virtualenvs\32-sklearn0191)$ python joblib_load.py Windows-7-6.1.7601-SP1 Python 3.6.1 |Continuum Analytics, Inc.| (default, May 11 2017, 14:16:49) [MSC v .1900 32 bit (Intel)] NumPy 1.13.3 SciPy 0.19.1 Scikit-Learn 0.19.1 Traceback (most recent call last): File &quot;joblib_load.py&quot;, line 9, in &lt;module&gt; a = joblib.load('joblib_clf_forest.pkl') File &quot;virtualenvs\32-sklearn0191\lib\site-packages\sklear n\externals\joblib\numpy_pickle.py&quot;, line 578, in load obj = _unpickle(fobj, filename, mmap_mode) File &quot;virtualenvs\32-sklearn0191\lib\site-packages\sklear n\externals\joblib\numpy_pickle.py&quot;, line 508, in _unpickle obj = unpickler.load() File &quot;virtualenvs\32-sklearn0191\lib\pickle.py&quot;, line 105 0, in load dispatch[key[0]](self) File &quot;virtualenvs\32-sklearn0191\lib\site-packages\sklear n\externals\joblib\numpy_pickle.py&quot;, line 328, in load_build Unpickler.load_build(self) File &quot;virtualenvs\32-sklearn0191\lib\pickle.py&quot;, line 150 8, in load_build setstate(state) File &quot;sklearn\tree\_tree.pyx&quot;, line 667, in sklearn.tree._tree.Tree.__setstate __ ValueError: Did not recognise loaded array layout"><pre class="notranslate"><code class="notranslate">(..\exe\virtualenvs\32-sklearn0191)$ python joblib_load.py Windows-7-6.1.7601-SP1 Python 3.6.1 |Continuum Analytics, Inc.| (default, May 11 2017, 14:16:49) [MSC v .1900 32 bit (Intel)] NumPy 1.13.3 SciPy 0.19.1 Scikit-Learn 0.19.1 Traceback (most recent call last): File "joblib_load.py", line 9, in &lt;module&gt; a = joblib.load('joblib_clf_forest.pkl') File "virtualenvs\32-sklearn0191\lib\site-packages\sklear n\externals\joblib\numpy_pickle.py", line 578, in load obj = _unpickle(fobj, filename, mmap_mode) File "virtualenvs\32-sklearn0191\lib\site-packages\sklear n\externals\joblib\numpy_pickle.py", line 508, in _unpickle obj = unpickler.load() File "virtualenvs\32-sklearn0191\lib\pickle.py", line 105 0, in load dispatch[key[0]](self) File "virtualenvs\32-sklearn0191\lib\site-packages\sklear n\externals\joblib\numpy_pickle.py", line 328, in load_build Unpickler.load_build(self) File "virtualenvs\32-sklearn0191\lib\pickle.py", line 150 8, in load_build setstate(state) File "sklearn\tree\_tree.pyx", line 667, in sklearn.tree._tree.Tree.__setstate __ ValueError: Did not recognise loaded array layout </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(..\exe\virtualenvs\32-sklearn0191) $ python pickle_load.py Windows-7-6.1.7601-SP1 Python 3.6.1 |Continuum Analytics, Inc.| (default, May 11 2017, 14:16:49) [MSC v .1900 32 bit (Intel)] NumPy 1.13.3 SciPy 0.19.1 Scikit-Learn 0.19.1 Traceback (most recent call last): File &quot;pickle_load.py&quot;, line 10, in &lt;module&gt; pickle.load(f) File &quot;sklearn\tree\_tree.pyx&quot;, line 667, in sklearn.tree._tree.Tree.__setstate __ ValueError: Did not recognise loaded array layout"><pre class="notranslate"><code class="notranslate">(..\exe\virtualenvs\32-sklearn0191) $ python pickle_load.py Windows-7-6.1.7601-SP1 Python 3.6.1 |Continuum Analytics, Inc.| (default, May 11 2017, 14:16:49) [MSC v .1900 32 bit (Intel)] NumPy 1.13.3 SciPy 0.19.1 Scikit-Learn 0.19.1 Traceback (most recent call last): File "pickle_load.py", line 10, in &lt;module&gt; pickle.load(f) File "sklearn\tree\_tree.pyx", line 667, in sklearn.tree._tree.Tree.__setstate __ ValueError: Did not recognise loaded array layout </code></pre></div> <h4 dir="auto">Versions</h4> <p dir="auto">Windows 32 conda environment:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows-7-6.1.7601-SP1 Python 3.6.1 |Continuum Analytics, Inc.| (default, May 11 2017, 14:16:49) [MSC v .1900 32 bit (Intel)] NumPy 1.13.3 SciPy 0.19.1 Scikit-Learn 0.19.1"><pre class="notranslate"><code class="notranslate">Windows-7-6.1.7601-SP1 Python 3.6.1 |Continuum Analytics, Inc.| (default, May 11 2017, 14:16:49) [MSC v .1900 32 bit (Intel)] NumPy 1.13.3 SciPy 0.19.1 Scikit-Learn 0.19.1 </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# packages in environment at virtualenvs\32-sklearn0191: # altgraph 0.14 &lt;pip&gt; appdirs 1.4.0 &lt;pip&gt; certifi 2016.2.28 py36_0 certifi 2017.11.5 &lt;pip&gt; chardet 3.0.4 &lt;pip&gt; future 0.16.0 &lt;pip&gt; icc_rt 2017.0.4 h97af966_0 anaconda idna 2.6 &lt;pip&gt; intel-openmp 2018.0.0 hda8db3e_7 anaconda macholib 1.8 &lt;pip&gt; mkl 2018.0.0 hd024497_4 anaconda mock 2.0.0 &lt;pip&gt; numpy 1.13.3 py36h38e73f1_0 anaconda packaging 16.8 &lt;pip&gt; pandas 0.20.3 py36h93e7217_2 anaconda pandas 0.20.3 &lt;pip&gt; pbr 3.1.1 &lt;pip&gt; pefile 2017.9.3 &lt;pip&gt; pip 9.0.1 py36_1 psycopg2 2.7.3.2 &lt;pip&gt; PyInstaller 3.3 &lt;pip&gt; pyparsing 2.2.0 &lt;pip&gt; pypiwin32 220 &lt;pip&gt; python 3.6.1 2 python-dateutil 2.6.1 py36h507c767_1 anaconda python-dateutil 2.6.1 &lt;pip&gt; python-magic 0.4.5 &lt;pip&gt; pytz 2017.3 &lt;pip&gt; pytz 2017.2 py36h6ca8096_1 anaconda PyYAML 3.12 &lt;pip&gt; requests 2.18.4 &lt;pip&gt; scikit-learn 0.19.1 py36hb0057d7_0 anaconda scipy 0.19.1 py36hfc7e94f_3 anaconda setuptools 36.4.0 py36_1 six 1.11.0 py36h7f2c006_1 anaconda six 1.11.0 &lt;pip&gt; SQLAlchemy 1.1.15 &lt;pip&gt; urllib3 1.22 &lt;pip&gt; vc 14 0 vs2015_runtime 14.0.25420 0 wheel 0.29.0 py36_0 wincertstore 0.2 py36_0 XlsxWriter 0.9.6 &lt;pip&gt;"><pre class="notranslate"><code class="notranslate"># packages in environment at virtualenvs\32-sklearn0191: # altgraph 0.14 &lt;pip&gt; appdirs 1.4.0 &lt;pip&gt; certifi 2016.2.28 py36_0 certifi 2017.11.5 &lt;pip&gt; chardet 3.0.4 &lt;pip&gt; future 0.16.0 &lt;pip&gt; icc_rt 2017.0.4 h97af966_0 anaconda idna 2.6 &lt;pip&gt; intel-openmp 2018.0.0 hda8db3e_7 anaconda macholib 1.8 &lt;pip&gt; mkl 2018.0.0 hd024497_4 anaconda mock 2.0.0 &lt;pip&gt; numpy 1.13.3 py36h38e73f1_0 anaconda packaging 16.8 &lt;pip&gt; pandas 0.20.3 py36h93e7217_2 anaconda pandas 0.20.3 &lt;pip&gt; pbr 3.1.1 &lt;pip&gt; pefile 2017.9.3 &lt;pip&gt; pip 9.0.1 py36_1 psycopg2 2.7.3.2 &lt;pip&gt; PyInstaller 3.3 &lt;pip&gt; pyparsing 2.2.0 &lt;pip&gt; pypiwin32 220 &lt;pip&gt; python 3.6.1 2 python-dateutil 2.6.1 py36h507c767_1 anaconda python-dateutil 2.6.1 &lt;pip&gt; python-magic 0.4.5 &lt;pip&gt; pytz 2017.3 &lt;pip&gt; pytz 2017.2 py36h6ca8096_1 anaconda PyYAML 3.12 &lt;pip&gt; requests 2.18.4 &lt;pip&gt; scikit-learn 0.19.1 py36hb0057d7_0 anaconda scipy 0.19.1 py36hfc7e94f_3 anaconda setuptools 36.4.0 py36_1 six 1.11.0 py36h7f2c006_1 anaconda six 1.11.0 &lt;pip&gt; SQLAlchemy 1.1.15 &lt;pip&gt; urllib3 1.22 &lt;pip&gt; vc 14 0 vs2015_runtime 14.0.25420 0 wheel 0.29.0 py36_0 wincertstore 0.2 py36_0 XlsxWriter 0.9.6 &lt;pip&gt; </code></pre></div> <p dir="auto">Linux 32 bit environment</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Dockerfile FROM continuumio/miniconda3 RUN apt-get update \ &amp;&amp; apt-get install -y libc6-i386 lib32stdc++6 python3-dev gcc libmagic-dev RUN CONDA_FORCE_32BIT=1 conda create -n 32"><pre class="notranslate"><code class="notranslate">Dockerfile FROM continuumio/miniconda3 RUN apt-get update \ &amp;&amp; apt-get install -y libc6-i386 lib32stdc++6 python3-dev gcc libmagic-dev RUN CONDA_FORCE_32BIT=1 conda create -n 32 </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Linux-4.9.49-moby-x86_64-with-debian-8.9 Python 3.6.1 |Continuum Analytics, Inc.| (default, May 11 2017, 13:08:54) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] NumPy 1.13.3 SciPy 0.19.1 Scikit-Learn 0.19.1"><pre class="notranslate"><code class="notranslate">Linux-4.9.49-moby-x86_64-with-debian-8.9 Python 3.6.1 |Continuum Analytics, Inc.| (default, May 11 2017, 13:08:54) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] NumPy 1.13.3 SciPy 0.19.1 Scikit-Learn 0.19.1 </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="boto3 1.4.4 &lt;pip&gt; botocore 1.5.95 &lt;pip&gt; ca-certificates 2017.08.26 h1d4fec5_0 certifi 2017.7.27.1 py36h3f8508d_0 chardet 3.0.4 &lt;pip&gt; docutils 0.14 &lt;pip&gt; future 0.16.0 &lt;pip&gt; idna 2.6 &lt;pip&gt; imbalanced-learn 0.3.1 &lt;pip&gt; intel-openmp 2018.0.0 h76c16ec_7 anaconda Jinja2 2.9.6 &lt;pip&gt; jmespath 0.9.3 &lt;pip&gt; libgcc-ng 7.2.0 h7cc24e2_2 libgfortran-ng 7.2.0 h9f7466a_2 anaconda libstdcxx-ng 7.2.0 h7a57d05_2 anaconda MarkupSafe 1.0 &lt;pip&gt; mkl 2018.0.0 haa892f1_4 anaconda numpy 1.13.3 py36hde72de1_0 anaconda openssl 1.0.2m h7e5a0c8_0 pandas 0.20.3 py36hd73fee5_2 anaconda pefile 2017.9.3 &lt;pip&gt; pip 9.0.1 py36hdf7ad74_4 psycopg2 2.7.3 &lt;pip&gt; python 3.6.1 2 python-dateutil 2.6.1 py36h0ec02a2_1 anaconda python-dateutil 2.6.1 &lt;pip&gt; python-magic 0.4.13 &lt;pip&gt; pytz 2017.2 py36hbc70297_0 anaconda raven 6.3.0 &lt;pip&gt; readline 6.2 2 requests 2.18.4 &lt;pip&gt; s3transfer 0.1.11 &lt;pip&gt; scikit-learn 0.19.1 py36h4fdfdbb_0 anaconda scipy 0.19.1 py36hc385b52_3 anaconda setuptools 36.5.0 py36h9e9eae1_0 six 1.11.0 py36hd5049a8_1 anaconda six 1.11.0 &lt;pip&gt; sqlite 3.13.0 0 tk 8.5.18 0 urllib3 1.22 &lt;pip&gt; vtservices 1.1.0 &lt;pip&gt; wheel 0.29.0 py36h1274d80_1 xz 5.2.3 ha3e1f4e_2 zlib 1.2.11 h907e355_2 "><pre class="notranslate"><code class="notranslate">boto3 1.4.4 &lt;pip&gt; botocore 1.5.95 &lt;pip&gt; ca-certificates 2017.08.26 h1d4fec5_0 certifi 2017.7.27.1 py36h3f8508d_0 chardet 3.0.4 &lt;pip&gt; docutils 0.14 &lt;pip&gt; future 0.16.0 &lt;pip&gt; idna 2.6 &lt;pip&gt; imbalanced-learn 0.3.1 &lt;pip&gt; intel-openmp 2018.0.0 h76c16ec_7 anaconda Jinja2 2.9.6 &lt;pip&gt; jmespath 0.9.3 &lt;pip&gt; libgcc-ng 7.2.0 h7cc24e2_2 libgfortran-ng 7.2.0 h9f7466a_2 anaconda libstdcxx-ng 7.2.0 h7a57d05_2 anaconda MarkupSafe 1.0 &lt;pip&gt; mkl 2018.0.0 haa892f1_4 anaconda numpy 1.13.3 py36hde72de1_0 anaconda openssl 1.0.2m h7e5a0c8_0 pandas 0.20.3 py36hd73fee5_2 anaconda pefile 2017.9.3 &lt;pip&gt; pip 9.0.1 py36hdf7ad74_4 psycopg2 2.7.3 &lt;pip&gt; python 3.6.1 2 python-dateutil 2.6.1 py36h0ec02a2_1 anaconda python-dateutil 2.6.1 &lt;pip&gt; python-magic 0.4.13 &lt;pip&gt; pytz 2017.2 py36hbc70297_0 anaconda raven 6.3.0 &lt;pip&gt; readline 6.2 2 requests 2.18.4 &lt;pip&gt; s3transfer 0.1.11 &lt;pip&gt; scikit-learn 0.19.1 py36h4fdfdbb_0 anaconda scipy 0.19.1 py36hc385b52_3 anaconda setuptools 36.5.0 py36h9e9eae1_0 six 1.11.0 py36hd5049a8_1 anaconda six 1.11.0 &lt;pip&gt; sqlite 3.13.0 0 tk 8.5.18 0 urllib3 1.22 &lt;pip&gt; vtservices 1.1.0 &lt;pip&gt; wheel 0.29.0 py36h1274d80_1 xz 5.2.3 ha3e1f4e_2 zlib 1.2.11 h907e355_2 </code></pre></div>
1
<ul dir="auto"> <li>[x ] 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">This is using almost the exact example from the documentation for the responsive drawer. I expect the drawer to close when I either click away from the drawer or make the window large again.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The drawer does not close as expected as the <code class="notranslate">onClose</code>method is never fired.<br> I'm getting this compile error in TypeScript which is also reflected in Visual Studio Code</p> <p dir="auto"><code class="notranslate">Property 'onClose' does not exist on type 'IntrinsicAttributes &amp; DrawerProps &amp; { children?: ReactNode; }'.</code></p> <p dir="auto">All other properties are found and behave as expected</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">Copy&amp;Paste the example code from the Responsive Drawer into a TypeScript project in Visual Studio Code.<br> You may also need to do some casting to <code class="notranslate">any</code> as the styling stuff doesn't really play nice with TS at the moment.</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>1.0.0-beta.22</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td>Edge, Chrome, Firefox</td> </tr> <tr> <td>Typescript</td> <td>2.6.2</td> </tr> </tbody> </table>
<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> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Should indicate on the docs for the Auto Complete component that you can set the style of the floating label."><pre class="notranslate"><code class="notranslate">Should indicate on the docs for the Auto Complete component that you can set the style of the floating label. </code></pre></div> <h2 dir="auto">Current Behavior</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Website does not show floatingLabelStyle as a property for Auto Complete."><pre class="notranslate"><code class="notranslate">Website does not show floatingLabelStyle as a property for Auto Complete. </code></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Able to manually set style for floatingLabelText."><pre class="notranslate"><code class="notranslate">Able to manually set style for floatingLabelText. </code></pre></div> <h2 dir="auto">Context</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using auto complete component in React app, and wanted to change the color of the floating label text so that it would show up on dark background."><pre class="notranslate"><code class="notranslate">Using auto complete component in React app, and wanted to change the color of the floating label text so that it would show up on dark background. </code></pre></div> <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>Latest</td> </tr> <tr> <td>React</td> <td>Latest</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<ol dir="auto"> <li>First bug found when displaying errors in collection. When numeration of (<strong>name</strong>) does not start from zero validation errors are displayed in bad collection memebers. For example:<br> a) I add 3 new collection members<br> b) I remove first member<br> c) I submit a form (got validation errors)<br> d) I add 1 new member<br> e) I submit form again<br> f) Validation errors are displayed in bad members, Last member does not have validation errors. First elemet has errors no matter if it is valid or not.</li> <li>There is a bug in algorithm in documentation (<a href="http://symfony.com/doc/current/cookbook/form/form_collections.html" rel="nofollow">http://symfony.com/doc/current/cookbook/form/form_collections.html</a>), when you remove some elements from the middle of collection, and then submit form, after page is reloaded you will get bad (<strong>name</strong>) numeration when add new tags i.e. input names will have same <strong>name</strong> value.</li> </ol>
<p dir="auto">I am coding a project along the lines of the cookbook entry on embedded collections as stated on: <a href="http://symfony.com/doc/current/cookbook/form/form_collections.html" rel="nofollow">http://symfony.com/doc/current/cookbook/form/form_collections.html</a>.</p> <p dir="auto">I am considering the following use case:</p> <ol dir="auto"> <li>Starting out with entering a new entity task, tag is the embedded collection</li> <li>I click the Javascript 'add a tag'-link, which adds a bar 0 instance of the tag form</li> <li>I click the Javascript 'add a tag'-link, which adds a bar 1 instance of the tag form</li> <li>I click the Javascript 'add a tag'-link, which adds a bar 2 instance of the tag form</li> <li>I click the Javascript 'delete this tag'-link for tag(1), which leaves me with the instances 0 and 2</li> </ol> <p dir="auto">Now, if I would leave all these tags blank (with a notblank validation on the tag name attribute), the returned form would be expected to visualize the error statements on instances 0 and 2. However, it turns out that the feedback is only displayed for instance 0.</p> <p dir="auto">If I change the returned form with firebug and set the instances on the name input field of instance 2 to '1', the feedback is displayed on the correct instance. This behavior indicates a mismatch between the indexing of the embedded form instances and the validators.</p>
1
<p dir="auto"><strong>Is your feature request related to a problem? Please describe.</strong></p> <p dir="auto">1000's of warning messages on the console increase the memory usage of an app until the app crashes, and duplicate warning messages are not needed. Also, the warning message are generated when a specific device doesn't have a specific capability, even though the functionality of the app works, but will cause the app to crash when running for a length of time because the extra warning console messages use up the memory.</p> <p dir="auto"><strong>Describe the solution you'd like</strong></p> <p dir="auto">I would like to request that all console messages ( log, info, warn, error ) be removed from the code and replaced by a console message handler that provides the option of setting the log level as well as options to remove duplicate messages and an option to pass a function to it for an alternative logging system to allow for logging systems such as Winston that allow for remote logging.</p> <p dir="auto"><strong>Describe alternatives you've considered</strong></p> <p dir="auto">Replacing the built-in console message functions is not a good solution.</p> <p dir="auto"><strong>Additional context</strong></p> <p dir="auto">This is an easy feature add, I could do it myself and submit a PR if I know it will get accepted.</p>
<h5 dir="auto">Description</h5> <p dir="auto">The problem. Currently, if I want to import a file from <code class="notranslate">examples/js</code> to my three.js project (bundled with webpack or anything else like this)<br> Let’s say I need OBJLoader. I have two ways:</p> <ol dir="auto"> <li> <p dir="auto">Download the file to my project. Modify it (add <code class="notranslate">require(“three”)</code>, add exporting data). - The problem is that this is really complex and is annoying when you have several projects. + when new version of three.js is out with latest fixes/changes - I need to repeat the process.</p> </li> <li> <p dir="auto">Second way is to search npm if it already has a such module - but there we have several problems:</p> <ul dir="auto"> <li>The script can be outdated / not compatible with latest version of three.js</li> <li>Some modules want you to wrap it with THREE: <code class="notranslate">OBJLoader(THREE)</code> - which breaks the use of features like tree-shaking</li> </ul> </li> </ol> <h5 dir="auto">Solution</h5> <p dir="auto">As a possible solution, we can wrap each js file in examples/ with <a href="https://github.com/umdjs/umd">UMD pattern</a>. We would be still able to use it with THREE from global variable, and be able to include them with npm:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import OBJLoader from ‘three/examples/js/loaders/OBJLoader’;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">OBJLoader</span> <span class="pl-k">from</span> <span class="pl-s1">‘three</span><span class="pl-c1">/</span><span class="pl-s1">examples</span><span class="pl-c1">/</span><span class="pl-s1">js</span><span class="pl-c1">/</span><span class="pl-s1">loaders</span><span class="pl-c1">/</span><span class="pl-v">OBJLoader’</span><span class="pl-kos">;</span></pre></div> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r87</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
0
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">I've got a form on a page that seems to have issues with the keyboard disappearing after tapping into the form. All of the field and button remain visible when the keyboard flashes on the screen.</p> <p dir="auto">I've tried two basic Widget layouts:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return new Form( key: _formKey, child: new SingleChildScrollView( child: new BlockBody( children: [ new TextField( ... ), new TextField( ... ), new RaisedButton( ... ) ] ) ) );"><pre class="notranslate"><code class="notranslate">return new Form( key: _formKey, child: new SingleChildScrollView( child: new BlockBody( children: [ new TextField( ... ), new TextField( ... ), new RaisedButton( ... ) ] ) ) ); </code></pre></div> <p dir="auto">and</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return new Form( key: _formKey, child: new Column( children: [ new TextField( ... ), new TextField( ... ), new RaisedButton( ... ) ] ) );"><pre class="notranslate"><code class="notranslate">return new Form( key: _formKey, child: new Column( children: [ new TextField( ... ), new TextField( ... ), new RaisedButton( ... ) ] ) ); </code></pre></div> <p dir="auto">Those widgets are used as the body of a Scaffold widget in a StatefulWidget.</p> <h2 dir="auto">Logs</h2> <p dir="auto">cat flutter_01.log<br> 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 upgrade</p> <h2 dir="auto">exception</h2> <p dir="auto">FileSystemException: writeFrom failed, path = '' (OS Error: Broken pipe, errno = 32)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dart:io _StdSink.writeln package:flutter_tools/executable.dart 115 main.&lt;async&gt;.&lt;fn&gt; ===== asynchronous gap =========================== dart:io _StdSink.writeln package:flutter_tools/executable.dart 115 main.&lt;async&gt;.&lt;fn&gt; ===== asynchronous gap =========================== dart:io _StdSink.writeln package:flutter_tools/src/base/logger.dart 55 StdoutLogger.printError package:flutter_tools/src/globals.dart 26 printError package:flutter_tools/src/base/process.dart 96 runCommandAndStreamOutput.&lt;async&gt;.&lt;fn&gt; ===== asynchronous gap =========================== dart:async _ForwardingStream.listen package:flutter_tools/src/base/process.dart 92 runCommandAndStreamOutput.&lt;async&gt; dart:async _SyncCompleter.complete package:flutter_tools/src/base/process.dart 53 runCommand.&lt;async&gt; ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:flutter_tools/src/base/process.dart runCommandAndStreamOutput package:flutter_tools/src/commands/upgrade.dart 44 UpgradeCommand.runCommand.&lt;async&gt; ===== asynchronous gap =========================== dart:async Future.Future.microtask package:flutter_tools/src/commands/upgrade.dart UpgradeCommand.runCommand package:flutter_tools/src/runner/flutter_command.dart 150 FlutterCommand.verifyThenRunCommand.&lt;async&gt; dart:async _SyncCompleter.complete package:flutter_tools/src/cache.dart 187 Cache.updateAll.&lt;async&gt; ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:flutter_tools/src/runner/flutter_command.dart FlutterCommand.verifyThenRunCommand package:flutter_tools/src/runner/flutter_command.dart 117 FlutterCommand.run package:args/command_runner.dart 183 CommandRunner.runCommand.&lt;fn&gt; dart:async Future.Future.sync package:args/command_runner.dart 136 CommandRunner.runCommand package:flutter_tools/src/runner/flutter_command_runner.dart 182 FlutterCommandRunner.runCommand.&lt;async&gt; dart:async _SyncCompleter.complete package:flutter_tools/src/cache.dart 72 Cache.lock.&lt;async&gt; ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:flutter_tools/src/runner/flutter_command_runner.dart FlutterCommandRunner.runCommand package:args/command_runner.dart 105 CommandRunner.run.&lt;fn&gt; dart:async Future.Future.sync package:args/command_runner.dart 105 CommandRunner.run package:flutter_tools/src/runner/flutter_command_runner.dart 132 FlutterCommandRunner.run package:flutter_tools/executable.dart 88 main.&lt;async&gt;.&lt;fn&gt;.&lt;async&gt; ===== asynchronous gap =========================== package:stack_trace Chain.capture package:flutter_tools/executable.dart 82 main.&lt;async&gt; Analyzing 4 files... No analyzer warnings! (ran in 5.1s) ## Flutter Doctor [✓] Flutter (on Linux, channel master) • Flutter at /home/cam/Tools/flutter • Framework revision 6b97757b6d (9 days ago), 2017-02-24 17:47:29 • Engine revision 335daf1930 • Tools Dart version 1.23.0-dev.0.0 [✓] Android toolchain - develop for Android devices (Android SDK 25.0.2) • Android SDK at /home/cam/Android/Sdk • Platform android-25, build-tools 25.0.2 • OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-0ubuntu1.16.10.2-b13) [✓] Android Studio (version 2.2) • Android Studio at /home/cam/Tools/AndroidStudio • Gradle version 2.14.1 [✓] IntelliJ IDEA Community Edition (version 2016.3) • Dart plugin version 163.13137 • Flutter plugin version 0.1.11 [✓] Connected devices • XT1650 • ZY223JXVJZ • android-arm • Android 7.0 (API 24)"><pre class="notranslate"><code class="notranslate">dart:io _StdSink.writeln package:flutter_tools/executable.dart 115 main.&lt;async&gt;.&lt;fn&gt; ===== asynchronous gap =========================== dart:io _StdSink.writeln package:flutter_tools/executable.dart 115 main.&lt;async&gt;.&lt;fn&gt; ===== asynchronous gap =========================== dart:io _StdSink.writeln package:flutter_tools/src/base/logger.dart 55 StdoutLogger.printError package:flutter_tools/src/globals.dart 26 printError package:flutter_tools/src/base/process.dart 96 runCommandAndStreamOutput.&lt;async&gt;.&lt;fn&gt; ===== asynchronous gap =========================== dart:async _ForwardingStream.listen package:flutter_tools/src/base/process.dart 92 runCommandAndStreamOutput.&lt;async&gt; dart:async _SyncCompleter.complete package:flutter_tools/src/base/process.dart 53 runCommand.&lt;async&gt; ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:flutter_tools/src/base/process.dart runCommandAndStreamOutput package:flutter_tools/src/commands/upgrade.dart 44 UpgradeCommand.runCommand.&lt;async&gt; ===== asynchronous gap =========================== dart:async Future.Future.microtask package:flutter_tools/src/commands/upgrade.dart UpgradeCommand.runCommand package:flutter_tools/src/runner/flutter_command.dart 150 FlutterCommand.verifyThenRunCommand.&lt;async&gt; dart:async _SyncCompleter.complete package:flutter_tools/src/cache.dart 187 Cache.updateAll.&lt;async&gt; ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:flutter_tools/src/runner/flutter_command.dart FlutterCommand.verifyThenRunCommand package:flutter_tools/src/runner/flutter_command.dart 117 FlutterCommand.run package:args/command_runner.dart 183 CommandRunner.runCommand.&lt;fn&gt; dart:async Future.Future.sync package:args/command_runner.dart 136 CommandRunner.runCommand package:flutter_tools/src/runner/flutter_command_runner.dart 182 FlutterCommandRunner.runCommand.&lt;async&gt; dart:async _SyncCompleter.complete package:flutter_tools/src/cache.dart 72 Cache.lock.&lt;async&gt; ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper package:flutter_tools/src/runner/flutter_command_runner.dart FlutterCommandRunner.runCommand package:args/command_runner.dart 105 CommandRunner.run.&lt;fn&gt; dart:async Future.Future.sync package:args/command_runner.dart 105 CommandRunner.run package:flutter_tools/src/runner/flutter_command_runner.dart 132 FlutterCommandRunner.run package:flutter_tools/executable.dart 88 main.&lt;async&gt;.&lt;fn&gt;.&lt;async&gt; ===== asynchronous gap =========================== package:stack_trace Chain.capture package:flutter_tools/executable.dart 82 main.&lt;async&gt; Analyzing 4 files... No analyzer warnings! (ran in 5.1s) ## Flutter Doctor [✓] Flutter (on Linux, channel master) • Flutter at /home/cam/Tools/flutter • Framework revision 6b97757b6d (9 days ago), 2017-02-24 17:47:29 • Engine revision 335daf1930 • Tools Dart version 1.23.0-dev.0.0 [✓] Android toolchain - develop for Android devices (Android SDK 25.0.2) • Android SDK at /home/cam/Android/Sdk • Platform android-25, build-tools 25.0.2 • OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-0ubuntu1.16.10.2-b13) [✓] Android Studio (version 2.2) • Android Studio at /home/cam/Tools/AndroidStudio • Gradle version 2.14.1 [✓] IntelliJ IDEA Community Edition (version 2016.3) • Dart plugin version 163.13137 • Flutter plugin version 0.1.11 [✓] Connected devices • XT1650 • ZY223JXVJZ • android-arm • Android 7.0 (API 24) </code></pre></div>
<p dir="auto">Working with markers is quite a pain in flutter. With flutter you gave us the most powerful tool at hand and here we just can not use it.<br> I am sure you guys must have discussed having markers and info windows live in a stacked widget on top of the map. Is there any chance this could be done or are there too many obstacles?<br> Thanks for any comments!</p>
0
<p dir="auto">When editing the the settings, I have tried to chang the default starting directory for the Ubuntu WSL Terminal profile as follows<br> <code class="notranslate">"startingDirectory": "/mnt/D/Folder/SubFolder/",</code><br> and while it doesnt cause any issues or causes the Terminal to resort to default configuration, it does not set the default starting directory to the specified path.</p> <p dir="auto">Also it seems that most settings for the profile do literally nothing when changing them, from color, to acrylic or scheme settings.</p> <p dir="auto">Note: changing the setting for power shell, cmd, of Kali-Linux does work and change things respectively</p>
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">Allow us to set the tab name(s) as they are too long.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4559650/62869354-9a284400-bd0f-11e9-998b-5e7e7fbecaaa.png"><img src="https://user-images.githubusercontent.com/4559650/62869354-9a284400-bd0f-11e9-998b-5e7e7fbecaaa.png" alt="image" style="max-width: 100%;"></a></p> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
0
<p dir="auto">For some reason, calling <code class="notranslate">print df</code> is really slow:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: import pandas In [2]: import numpy as np In [3]: df = pandas.DataFrame(np.random.randn(1000,100000)) In [4]: %timeit print df 1 loops, best of 3: 1.93 s per loop In [5]: %timeit print df.values 1000 loops, best of 3: 1.25 ms per loop"><pre class="notranslate"><code class="notranslate">In [1]: import pandas In [2]: import numpy as np In [3]: df = pandas.DataFrame(np.random.randn(1000,100000)) In [4]: %timeit print df 1 loops, best of 3: 1.93 s per loop In [5]: %timeit print df.values 1000 loops, best of 3: 1.25 ms per loop </code></pre></div>
<p dir="auto">from pystatsmodels mailing list</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="qcut in pandas 0.8.1 is failing for some quantile lists but not others (see below). Sorry if I'm missing something... type(F.g) Out[3]: pandas.core.series.TimeSeries chg = (F.g[20:]-F.g[20:].shift(1)) fac = qcut(chg, [0, .5, 1]) fac Out[4]: Categorical: g array([nan, [-1005094.81, 0], [-1005094.81, 0], ..., (0, 1478547.3], (0, 1478547.3], (0, 1478547.3]], dtype=object) Levels (2): Index([[-1005094.81, 0], (0, 1478547.3]], dtype=object) chg = (F.g[20:]-F.g[20:].shift(1)) fac = qcut(chg, [0, .5, 1]) fac Out[5]: Categorical: g array([nan, [-1005094.81, 0], [-1005094.81, 0], ..., (0, 1478547.3], (0, 1478547.3], (0, 1478547.3]], dtype=object) Levels (2): Index([[-1005094.81, 0], (0, 1478547.3]], dtype=object) fac = qcut(chg, [0, .5, .75, 1]) fac Out[6]: Categorical: g array([nan, [-1005094.81, 0], [-1005094.81, 0], ..., (0, 1478547.3], (0, 1478547.3], (0, 1478547.3]], dtype=object) Levels (3): Index([[-1005094.81, 0], (0, 0], (0, 1478547.3]], dtype=object) fac = qcut(chg, [0, .25, .5, .75, 1]) fac Out[7]: --------------------------------------------------------------------------- ValueError Traceback (most recent call last) /home/birone/&lt;ipython-input-9-3896feb36dcd&gt; in &lt;module&gt;() ----&gt; 1 fac = qcut(chg, [0, .25, .5, .75, 1]) 2 fac /usr/lib/pymodules/python2.7/pandas/tools/tile.pyc in qcut(x, q, labels, retbins, precision) 139 bins = algos.quantile(x, quantiles) 140 return _bins_to_cuts(x, bins, labels=labels, retbins=retbins, --&gt; 141 precision=precision, include_lowest=True) 142 143 /usr/lib/pymodules/python2.7/pandas/tools/tile.pyc in _bins_to_cuts(x, bins, right, labels, retbins, precision, name, include_lowest) 177 levels = np.asarray(levels, dtype=object) 178 np.putmask(ids, na_mask, 0) --&gt; 179 fac = Categorical(ids - 1, levels, name=name) 180 else: 181 fac = ids - 1 /usr/lib/pymodules/python2.7/pandas/core/categorical.pyc in __init__(self, labels, levels, name) 43 def __init__(self, labels, levels, name=None): 44 self.labels = labels ---&gt; 45 self.levels = levels 46 self.name = name 47 /usr/lib/pymodules/python2.7/pandas/core/categorical.pyc in _set_levels(self, levels) 62 levels = _ensure_index(levels) 63 if not levels.is_unique: ---&gt; 64 raise ValueError('Categorical levels must be unique') 65 self._levels = levels 66 ValueError: Categorical levels must be unique fac = qcut(chg, n) fails with the same error for n&gt;3"><pre class="notranslate"><code class="notranslate">qcut in pandas 0.8.1 is failing for some quantile lists but not others (see below). Sorry if I'm missing something... type(F.g) Out[3]: pandas.core.series.TimeSeries chg = (F.g[20:]-F.g[20:].shift(1)) fac = qcut(chg, [0, .5, 1]) fac Out[4]: Categorical: g array([nan, [-1005094.81, 0], [-1005094.81, 0], ..., (0, 1478547.3], (0, 1478547.3], (0, 1478547.3]], dtype=object) Levels (2): Index([[-1005094.81, 0], (0, 1478547.3]], dtype=object) chg = (F.g[20:]-F.g[20:].shift(1)) fac = qcut(chg, [0, .5, 1]) fac Out[5]: Categorical: g array([nan, [-1005094.81, 0], [-1005094.81, 0], ..., (0, 1478547.3], (0, 1478547.3], (0, 1478547.3]], dtype=object) Levels (2): Index([[-1005094.81, 0], (0, 1478547.3]], dtype=object) fac = qcut(chg, [0, .5, .75, 1]) fac Out[6]: Categorical: g array([nan, [-1005094.81, 0], [-1005094.81, 0], ..., (0, 1478547.3], (0, 1478547.3], (0, 1478547.3]], dtype=object) Levels (3): Index([[-1005094.81, 0], (0, 0], (0, 1478547.3]], dtype=object) fac = qcut(chg, [0, .25, .5, .75, 1]) fac Out[7]: --------------------------------------------------------------------------- ValueError Traceback (most recent call last) /home/birone/&lt;ipython-input-9-3896feb36dcd&gt; in &lt;module&gt;() ----&gt; 1 fac = qcut(chg, [0, .25, .5, .75, 1]) 2 fac /usr/lib/pymodules/python2.7/pandas/tools/tile.pyc in qcut(x, q, labels, retbins, precision) 139 bins = algos.quantile(x, quantiles) 140 return _bins_to_cuts(x, bins, labels=labels, retbins=retbins, --&gt; 141 precision=precision, include_lowest=True) 142 143 /usr/lib/pymodules/python2.7/pandas/tools/tile.pyc in _bins_to_cuts(x, bins, right, labels, retbins, precision, name, include_lowest) 177 levels = np.asarray(levels, dtype=object) 178 np.putmask(ids, na_mask, 0) --&gt; 179 fac = Categorical(ids - 1, levels, name=name) 180 else: 181 fac = ids - 1 /usr/lib/pymodules/python2.7/pandas/core/categorical.pyc in __init__(self, labels, levels, name) 43 def __init__(self, labels, levels, name=None): 44 self.labels = labels ---&gt; 45 self.levels = levels 46 self.name = name 47 /usr/lib/pymodules/python2.7/pandas/core/categorical.pyc in _set_levels(self, levels) 62 levels = _ensure_index(levels) 63 if not levels.is_unique: ---&gt; 64 raise ValueError('Categorical levels must be unique') 65 self._levels = levels 66 ValueError: Categorical levels must be unique fac = qcut(chg, n) fails with the same error for n&gt;3 </code></pre></div>
0
<p dir="auto">So imagine I'm building an API from a set of blueprints like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;snip from the signup.py file&gt; signupbp = Blueprint('signupbp', __name__, url_prefix=&quot;/signup&quot;) @signupbp.route(&quot;/&quot;) def signup_start(): return &quot;signup_start&quot; @signupbp.route(&quot;/complete&quot;) def signup_complete(): return &quot;signup_complete&quot;"><pre class="notranslate"><code class="notranslate">&lt;snip from the signup.py file&gt; signupbp = Blueprint('signupbp', __name__, url_prefix="/signup") @signupbp.route("/") def signup_start(): return "signup_start" @signupbp.route("/complete") def signup_complete(): return "signup_complete" </code></pre></div> <p dir="auto">then in my main.py code I do something like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="app.register_blueprint(signupbp, url_prefix='/api')"><pre class="notranslate"><code class="notranslate">app.register_blueprint(signupbp, url_prefix='/api') </code></pre></div> <p dir="auto">I expect to see the following routes:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/api/signup/ signupbp.signup_start /api/signup/complete signupbp.signup_complete /static/&lt;path:filename&gt; static "><pre class="notranslate"><code class="notranslate">/api/signup/ signupbp.signup_start /api/signup/complete signupbp.signup_complete /static/&lt;path:filename&gt; static </code></pre></div> <p dir="auto">What I actually see is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/api/ signupbp.signup_start /api/complete signupbp.signup_complete /static/&lt;path:filename&gt; static "><pre class="notranslate"><code class="notranslate">/api/ signupbp.signup_start /api/complete signupbp.signup_complete /static/&lt;path:filename&gt; static </code></pre></div> <p dir="auto">I imagine the url_prefixes should be additive not replacement (in the worse possible way). I've tried all combinations of <code class="notranslate">/</code> before and after the url_prefix params.</p> <p dir="auto">This is actually a very simplified example - in my API I'm using module names to implement versioning so I can't build the URL into any part of the code before thats suggested as a solution.</p>
<p dir="auto">This is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="335779821" data-permission-text="Title is private" data-url="https://github.com/pallets/flask/issues/2841" data-hovercard-type="issue" data-hovercard-url="/pallets/flask/issues/2841/hovercard" href="https://github.com/pallets/flask/issues/2841">#2841</a>, but the emphasis is different.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Non-error exceptions should not be caught by registered error handlers.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="app.register_error_handler(HTTPException, my_error_handler) @app.route('/path-with-slash/') def my_route(): return '', 204"><pre class="notranslate"><span class="pl-s1">app</span>.<span class="pl-en">register_error_handler</span>(<span class="pl-v">HTTPException</span>, <span class="pl-s1">my_error_handler</span>) <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">'/path-with-slash/'</span>)</span> <span class="pl-k">def</span> <span class="pl-en">my_route</span>(): <span class="pl-k">return</span> <span class="pl-s">''</span>, <span class="pl-c1">204</span></pre></div> <p dir="auto">Attempting to visit <code class="notranslate">/path-with-slash</code> should redirect to <code class="notranslate">/path-with-slash/</code>, without invoking <code class="notranslate">my_error_handler</code>.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">As the <code class="notranslate">RequestRedirect</code> raised internally in Werkzeug is a subclass of <code class="notranslate">HTTPException</code>, <code class="notranslate">my_error_handler</code> will get called. This is unexpected because no error has occurred, and the only appropriate way to handle this case is to add boilerplate to re-raise any Werkzeug <code class="notranslate">RoutingException</code>s.</p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Python version: 3.7.0</li> <li>Flask version: 1.0.2</li> <li>Werkzeug version: 0.14.1</li> </ul>
0
<p dir="auto">by <strong>steve.wills</strong>:</p> <pre class="notranslate">Before filing a bug, please check whether it has been fixed since the latest release. Search the issue tracker and check that you're running the latest version of Go: Run "go version" and compare against <a href="http://golang.org/doc/devel/release.html" rel="nofollow">http://golang.org/doc/devel/release.html</a> If a newer version of Go exists, install it and retry what you did to reproduce the problem. Thanks. What does 'go version' print? go version go1.3.2 freebsd/amd64 What steps reproduce the problem? If possible, include a link to a program on play.golang.org. 1. build on a platform where where clang is called "cc" 2. 3. What happened? What should have happened instead? Please provide any additional information below. See: <a href="https://code.google.com/p/go/source/browse/src/cmd/go/build.go#2104" rel="nofollow">https://code.google.com/p/go/source/browse/src/cmd/go/build.go#2104</a> if strings.Contains(a[0], "clang") { On platforms where clang is called "cc" (because it's the only compiler by default), this code fails. In order to get clang detected properly I had to set CC=clang.</pre>
<p dir="auto">This bug is about http2 support for PUSH_PROMISE frames, letting http.Handlers push their own streams to clients.</p> <p dir="auto">Previously:<br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51191771" data-permission-text="Title is private" data-url="https://github.com/bradfitz/http2/issues/23" data-hovercard-type="pull_request" data-hovercard-url="/bradfitz/http2/pull/23/hovercard" href="https://github.com/bradfitz/http2/pull/23">bradfitz/http2#23</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="61895688" data-permission-text="Title is private" data-url="https://github.com/bradfitz/http2/issues/34" data-hovercard-type="pull_request" data-hovercard-url="/bradfitz/http2/pull/34/hovercard" href="https://github.com/bradfitz/http2/pull/34">bradfitz/http2#34</a></p> <p dir="auto">Let's do this first in x/net/http2 and only add API to the standard library after it's baked long enough in x/net.</p>
0
<h2 dir="auto">Issue description</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; a = torch.Tensor([1,2,3,4,5]) &gt;&gt;&gt; a -= a[0] &gt;&gt;&gt; a tensor([ 0., 2., 3., 4., 5.])"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; a = torch.Tensor([1,2,3,4,5]) &gt;&gt;&gt; a -= a[0] &gt;&gt;&gt; a tensor([ 0., 2., 3., 4., 5.]) </code></pre></div> <p dir="auto">This seems to be a very confusing result. Even though the below works. I think the above should at least do broadcasting or throw an exception? Now it is doing a confusing operation but silent.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; a = torch.Tensor([1,2,3,4,5]) &gt;&gt;&gt; a -= a[0].item() &gt;&gt;&gt; a tensor([ 0., 1., 2., 3., 4.])"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; a = torch.Tensor([1,2,3,4,5]) &gt;&gt;&gt; a -= a[0].item() &gt;&gt;&gt; a tensor([ 0., 1., 2., 3., 4.]) </code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="t = torch.range(1,10) t[1:] = t[:-1] # wrong result print(t) t = torch.range(1,10) t[1:] = t[:-1].clone() # right result print(t) t = torch.range(1, 10).numpy() t[1:] = t[:-1] # right result print(t)"><pre class="notranslate"><code class="notranslate">t = torch.range(1,10) t[1:] = t[:-1] # wrong result print(t) t = torch.range(1,10) t[1:] = t[:-1].clone() # right result print(t) t = torch.range(1, 10).numpy() t[1:] = t[:-1] # right result print(t) </code></pre></div> <p dir="auto">Note that the same (wrong?) behaviour is present in lua torch.</p>
1
<h3 dir="auto">Discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4992065" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/discussions/9525" data-hovercard-type="discussion" data-hovercard-url="/sqlalchemy/sqlalchemy/discussions/9525/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/discussions/9525">#9525</a></h3> <p dir="auto">still figuring out what this is. Oracle has to use literal render, so this is not really an oracle thing, it's something w literal render</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sqlalchemy import Column from sqlalchemy import create_engine from sqlalchemy import func from sqlalchemy import Identity from sqlalchemy import Integer from sqlalchemy import select from sqlalchemy import String from sqlalchemy.orm import declarative_base from sqlalchemy.orm import foreign from sqlalchemy.orm import relationship from sqlalchemy.orm import Session Base = declarative_base() class Model(Base): __tablename__ = &quot;model&quot; id = Column(Integer, Identity(), primary_key=True) name = Column(String(50)) class Item(Base): __tablename__ = &quot;item&quot; id = Column(Integer, Identity(), primary_key=True) model_name = Column(String(50)) actual_model = relationship( &quot;Model&quot;, viewonly=True, primaryjoin=( &quot;Model.name == func.coalesce(&quot; &quot; foreign(Item.model_name), &quot; ' select(Config.default_model_name).filter(Config.name == &quot;default&quot;).limit(1).scalar_subquery()' &quot;)&quot; ), ) class Config(Base): __tablename__ = &quot;config&quot; id = Column(Integer, Identity(), primary_key=True) name = Column(String(50)) default_model_name = Column(String(50)) # e = create_engine(&quot;sqlite://&quot;, echo=True) e = create_engine(&quot;oracle://scott:tiger@oracle18c&quot;, echo=True) Base.metadata.drop_all(e) Base.metadata.create_all(e) with Session(e) as sess: sess.add_all( [ Config(name=&quot;default&quot;, default_model_name=&quot;model1&quot;), Item(model_name=&quot;model1&quot;), Model(name=&quot;model1&quot;), ] ) sess.commit() with Session(e) as sess: # works fine stmt = select( func.coalesce( foreign(Item.model_name), select(Config.default_model_name) .filter(Config.name == &quot;default&quot;) .limit(1) .scalar_subquery(), ) ) from sqlalchemy.sql.util import _deep_annotate stmt = _deep_annotate(stmt, {&quot;foo&quot;: &quot;bar&quot;}) sess.execute(stmt) # ORM version fails i1 = sess.scalars(select(Item)).one() print(i1.actual_model) "><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-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-s1">create_engine</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-s1">func</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-v">Identity</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-v">Integer</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-s1">select</span> <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-v">String</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">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">foreign</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">relationship</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-v">Session</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">Model</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"model"</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-v">Identity</span>(), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">50</span>)) <span class="pl-k">class</span> <span class="pl-v">Item</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"item"</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-v">Identity</span>(), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">model_name</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">50</span>)) <span class="pl-s1">actual_model</span> <span class="pl-c1">=</span> <span class="pl-en">relationship</span>( <span class="pl-s">"Model"</span>, <span class="pl-s1">viewonly</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">primaryjoin</span><span class="pl-c1">=</span>( <span class="pl-s">"Model.name == func.coalesce("</span> <span class="pl-s">" foreign(Item.model_name), "</span> <span class="pl-s">' select(Config.default_model_name).filter(Config.name == "default").limit(1).scalar_subquery()'</span> <span class="pl-s">")"</span> ), ) <span class="pl-k">class</span> <span class="pl-v">Config</span>(<span class="pl-v">Base</span>): <span class="pl-s1">__tablename__</span> <span class="pl-c1">=</span> <span class="pl-s">"config"</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-v">Identity</span>(), <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">50</span>)) <span class="pl-s1">default_model_name</span> <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">String</span>(<span class="pl-c1">50</span>)) <span class="pl-c"># e = create_engine("sqlite://", echo=True)</span> <span class="pl-s1">e</span> <span class="pl-c1">=</span> <span class="pl-en">create_engine</span>(<span class="pl-s">"oracle://scott:tiger@oracle18c"</span>, <span class="pl-s1">echo</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-v">Base</span>.<span class="pl-s1">metadata</span>.<span class="pl-en">drop_all</span>(<span class="pl-s1">e</span>) <span class="pl-v">Base</span>.<span class="pl-s1">metadata</span>.<span class="pl-en">create_all</span>(<span class="pl-s1">e</span>) <span class="pl-k">with</span> <span class="pl-v">Session</span>(<span class="pl-s1">e</span>) <span class="pl-k">as</span> <span class="pl-s1">sess</span>: <span class="pl-s1">sess</span>.<span class="pl-en">add_all</span>( [ <span class="pl-v">Config</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"default"</span>, <span class="pl-s1">default_model_name</span><span class="pl-c1">=</span><span class="pl-s">"model1"</span>), <span class="pl-v">Item</span>(<span class="pl-s1">model_name</span><span class="pl-c1">=</span><span class="pl-s">"model1"</span>), <span class="pl-v">Model</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"model1"</span>), ] ) <span class="pl-s1">sess</span>.<span class="pl-en">commit</span>() <span class="pl-k">with</span> <span class="pl-v">Session</span>(<span class="pl-s1">e</span>) <span class="pl-k">as</span> <span class="pl-s1">sess</span>: <span class="pl-c"># works fine</span> <span class="pl-s1">stmt</span> <span class="pl-c1">=</span> <span class="pl-en">select</span>( <span class="pl-s1">func</span>.<span class="pl-en">coalesce</span>( <span class="pl-en">foreign</span>(<span class="pl-v">Item</span>.<span class="pl-s1">model_name</span>), <span class="pl-en">select</span>(<span class="pl-v">Config</span>.<span class="pl-s1">default_model_name</span>) .<span class="pl-en">filter</span>(<span class="pl-v">Config</span>.<span class="pl-s1">name</span> <span class="pl-c1">==</span> <span class="pl-s">"default"</span>) .<span class="pl-en">limit</span>(<span class="pl-c1">1</span>) .<span class="pl-en">scalar_subquery</span>(), ) ) <span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">sql</span>.<span class="pl-s1">util</span> <span class="pl-k">import</span> <span class="pl-s1">_deep_annotate</span> <span class="pl-s1">stmt</span> <span class="pl-c1">=</span> <span class="pl-en">_deep_annotate</span>(<span class="pl-s1">stmt</span>, {<span class="pl-s">"foo"</span>: <span class="pl-s">"bar"</span>}) <span class="pl-s1">sess</span>.<span class="pl-en">execute</span>(<span class="pl-s1">stmt</span>) <span class="pl-c"># ORM version fails</span> <span class="pl-s1">i1</span> <span class="pl-c1">=</span> <span class="pl-s1">sess</span>.<span class="pl-en">scalars</span>(<span class="pl-en">select</span>(<span class="pl-v">Item</span>)).<span class="pl-en">one</span>() <span class="pl-en">print</span>(<span class="pl-s1">i1</span>.<span class="pl-s1">actual_model</span>)</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/home/classic/dev/sqlalchemy/test3.py&quot;, line 82, in &lt;module&gt; print(i1.actual_model) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/attributes.py&quot;, line 557, in __get__ return self.impl.get(state, dict_) # type: ignore[no-any-return] File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/attributes.py&quot;, line 1070, in get value = self._fire_loader_callables(state, key, passive) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/attributes.py&quot;, line 1105, in _fire_loader_callables return self.callable_(state, passive) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/strategies.py&quot;, line 972, in _load_for_state return self._emit_lazyload( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/strategies.py&quot;, line 1135, in _emit_lazyload result = session.execute( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/session.py&quot;, line 2229, in execute return self._execute_internal( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/session.py&quot;, line 2124, in _execute_internal result: Result[Any] = compile_state_cls.orm_execute_statement( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/context.py&quot;, line 253, in orm_execute_statement result = conn.execute( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/engine/base.py&quot;, line 1414, in execute return meth( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/elements.py&quot;, line 486, in _execute_on_connection return connection._execute_clauseelement( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/engine/base.py&quot;, line 1630, in _execute_clauseelement compiled_sql, extracted_params, cache_hit = elem._compile_w_cache( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/elements.py&quot;, line 652, in _compile_w_cache compiled_sql = self._compiler( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/elements.py&quot;, line 291, in _compiler return dialect.statement_compiler(dialect, self, **kw) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/dialects/oracle/base.py&quot;, line 820, in __init__ super().__init__(*args, **kwargs) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 1269, in __init__ Compiled.__init__(self, dialect, statement, **kwargs) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 710, in __init__ self.string = self.process(self.statement, **compile_kwargs) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 755, in process return obj._compiler_dispatch(self, **kwargs) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/visitors.py&quot;, line 143, in _compiler_dispatch return meth(self, **kw) # type: ignore # noqa: E501 File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 4551, in visit_select text = self._compose_select_body( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 4713, in _compose_select_body t = self._generate_delimited_and_list( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 2528, in _generate_delimited_and_list return clauses[0]._compiler_dispatch(self, **kw) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/annotation.py&quot;, line 351, in _compiler_dispatch return self.__element.__class__._compiler_dispatch( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/visitors.py&quot;, line 143, in _compiler_dispatch return meth(self, **kw) # type: ignore # noqa: E501 File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 3143, in visit_binary return self._generate_generic_binary( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 3199, in _generate_generic_binary + binary.right._compiler_dispatch( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/annotation.py&quot;, line 351, in _compiler_dispatch return self.__element.__class__._compiler_dispatch( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/visitors.py&quot;, line 143, in _compiler_dispatch return meth(self, **kw) # type: ignore # noqa: E501 File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/dialects/oracle/base.py&quot;, line 859, in visit_function text = super().visit_function(func, **kw) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 2711, in visit_function ) % {&quot;expr&quot;: self.function_argspec(func, **kwargs)} File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/dialects/oracle/base.py&quot;, line 854, in function_argspec return compiler.SQLCompiler.function_argspec(self, fn, **kw) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 2727, in function_argspec return func.clause_expr._compiler_dispatch(self, **kwargs) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/annotation.py&quot;, line 351, in _compiler_dispatch return self.__element.__class__._compiler_dispatch( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/visitors.py&quot;, line 143, in _compiler_dispatch return meth(self, **kw) # type: ignore # noqa: E501 File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 2179, in visit_grouping return &quot;(&quot; + grouping.element._compiler_dispatch(self, **kwargs) + &quot;)&quot; File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/annotation.py&quot;, line 351, in _compiler_dispatch return self.__element.__class__._compiler_dispatch( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/visitors.py&quot;, line 143, in _compiler_dispatch return meth(self, **kw) # type: ignore # noqa: E501 File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 2547, in visit_clauselist return self._generate_delimited_list(clauselist.clauses, sep, **kw) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 2513, in _generate_delimited_list return separator.join( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 2513, in &lt;genexpr&gt; return separator.join( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 2515, in &lt;genexpr&gt; for s in (c._compiler_dispatch(self, **kw) for c in elements) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/annotation.py&quot;, line 351, in _compiler_dispatch return self.__element.__class__._compiler_dispatch( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/visitors.py&quot;, line 143, in _compiler_dispatch return meth(self, **kw) # type: ignore # noqa: E501 File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 2179, in visit_grouping return &quot;(&quot; + grouping.element._compiler_dispatch(self, **kwargs) + &quot;)&quot; File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/visitors.py&quot;, line 143, in _compiler_dispatch return meth(self, **kw) # type: ignore # noqa: E501 File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 4551, in visit_select text = self._compose_select_body( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 4737, in _compose_select_body text += self._row_limit_clause(select, **kwargs) File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/dialects/oracle/base.py&quot;, line 1031, in _row_limit_clause return self.fetch_clause( File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py&quot;, line 4931, in fetch_clause fetch_clause = fetch_clause.render_literal_execute() File &quot;/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/elements.py&quot;, line 2060, in render_literal_execute return self.__class__( TypeError: Annotated.__new__() got an unexpected keyword argument 'type_' "><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/home/classic/dev/sqlalchemy/test3.py", line 82, in &lt;module&gt; print(i1.actual_model) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/attributes.py", line 557, in __get__ return self.impl.get(state, dict_) # type: ignore[no-any-return] File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/attributes.py", line 1070, in get value = self._fire_loader_callables(state, key, passive) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/attributes.py", line 1105, in _fire_loader_callables return self.callable_(state, passive) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/strategies.py", line 972, in _load_for_state return self._emit_lazyload( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/strategies.py", line 1135, in _emit_lazyload result = session.execute( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/session.py", line 2229, in execute return self._execute_internal( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/session.py", line 2124, in _execute_internal result: Result[Any] = compile_state_cls.orm_execute_statement( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/orm/context.py", line 253, in orm_execute_statement result = conn.execute( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/engine/base.py", line 1414, in execute return meth( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/elements.py", line 486, in _execute_on_connection return connection._execute_clauseelement( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/engine/base.py", line 1630, in _execute_clauseelement compiled_sql, extracted_params, cache_hit = elem._compile_w_cache( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/elements.py", line 652, in _compile_w_cache compiled_sql = self._compiler( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/elements.py", line 291, in _compiler return dialect.statement_compiler(dialect, self, **kw) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/dialects/oracle/base.py", line 820, in __init__ super().__init__(*args, **kwargs) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 1269, in __init__ Compiled.__init__(self, dialect, statement, **kwargs) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 710, in __init__ self.string = self.process(self.statement, **compile_kwargs) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 755, in process return obj._compiler_dispatch(self, **kwargs) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/visitors.py", line 143, in _compiler_dispatch return meth(self, **kw) # type: ignore # noqa: E501 File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 4551, in visit_select text = self._compose_select_body( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 4713, in _compose_select_body t = self._generate_delimited_and_list( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 2528, in _generate_delimited_and_list return clauses[0]._compiler_dispatch(self, **kw) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/annotation.py", line 351, in _compiler_dispatch return self.__element.__class__._compiler_dispatch( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/visitors.py", line 143, in _compiler_dispatch return meth(self, **kw) # type: ignore # noqa: E501 File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 3143, in visit_binary return self._generate_generic_binary( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 3199, in _generate_generic_binary + binary.right._compiler_dispatch( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/annotation.py", line 351, in _compiler_dispatch return self.__element.__class__._compiler_dispatch( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/visitors.py", line 143, in _compiler_dispatch return meth(self, **kw) # type: ignore # noqa: E501 File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/dialects/oracle/base.py", line 859, in visit_function text = super().visit_function(func, **kw) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 2711, in visit_function ) % {"expr": self.function_argspec(func, **kwargs)} File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/dialects/oracle/base.py", line 854, in function_argspec return compiler.SQLCompiler.function_argspec(self, fn, **kw) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 2727, in function_argspec return func.clause_expr._compiler_dispatch(self, **kwargs) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/annotation.py", line 351, in _compiler_dispatch return self.__element.__class__._compiler_dispatch( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/visitors.py", line 143, in _compiler_dispatch return meth(self, **kw) # type: ignore # noqa: E501 File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 2179, in visit_grouping return "(" + grouping.element._compiler_dispatch(self, **kwargs) + ")" File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/annotation.py", line 351, in _compiler_dispatch return self.__element.__class__._compiler_dispatch( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/visitors.py", line 143, in _compiler_dispatch return meth(self, **kw) # type: ignore # noqa: E501 File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 2547, in visit_clauselist return self._generate_delimited_list(clauselist.clauses, sep, **kw) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 2513, in _generate_delimited_list return separator.join( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 2513, in &lt;genexpr&gt; return separator.join( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 2515, in &lt;genexpr&gt; for s in (c._compiler_dispatch(self, **kw) for c in elements) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/annotation.py", line 351, in _compiler_dispatch return self.__element.__class__._compiler_dispatch( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/visitors.py", line 143, in _compiler_dispatch return meth(self, **kw) # type: ignore # noqa: E501 File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 2179, in visit_grouping return "(" + grouping.element._compiler_dispatch(self, **kwargs) + ")" File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/visitors.py", line 143, in _compiler_dispatch return meth(self, **kw) # type: ignore # noqa: E501 File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 4551, in visit_select text = self._compose_select_body( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 4737, in _compose_select_body text += self._row_limit_clause(select, **kwargs) File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/dialects/oracle/base.py", line 1031, in _row_limit_clause return self.fetch_clause( File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/compiler.py", line 4931, in fetch_clause fetch_clause = fetch_clause.render_literal_execute() File "/home/classic/dev/sqlalchemy/lib/sqlalchemy/sql/elements.py", line 2060, in render_literal_execute return self.__class__( TypeError: Annotated.__new__() got an unexpected keyword argument 'type_' </code></pre></div>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">Is this not something that could be enabled?</p>
0
<h1 dir="auto">Description</h1> <p dir="auto">I've tried finding resources regarding to this but they seem outdated.<br> The problem is that I am trying to build in visual studio with the binaries I downloaded from</p> <p dir="auto"><code class="notranslate">https://download.pytorch.org/libtorch/cu102/libtorch-win-shared-with-deps-debug-1.5.0.zip</code></p> <p dir="auto">I have set the following properties in Visual Studio 2019</p> <ol dir="auto"> <li>Additional include directories : <code class="notranslate">libtorch\include</code> ; <code class="notranslate">libtorch\include\torch\csrc\api\include\</code></li> <li>Additional Library Directory for linker : <code class="notranslate">\libtorch\lib\</code></li> <li>Conformance mode to No</li> <li>Linker input : <code class="notranslate">torch.lib;c10.lib</code><br> However the resources are also suggesting libs like <code class="notranslate">caffe2_nvrtc.lib</code> and <code class="notranslate">caffe2.lib</code> but they are not present in <code class="notranslate">\libtorch\lib\</code></li> </ol> <p dir="auto">I tried to run the following program</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#include&lt;torch/torch.h&gt; #include&lt;iostream&gt; int main() { torch::Tensor tensor = torch::eye(3); std::cout &lt;&lt; tensor &lt;&lt; std::endl; }"><pre class="notranslate">#<span class="pl-k">include</span><span class="pl-s"><span class="pl-pds">&lt;</span>torch/torch.h<span class="pl-pds">&gt;</span></span> #<span class="pl-k">include</span><span class="pl-s"><span class="pl-pds">&lt;</span>iostream<span class="pl-pds">&gt;</span></span> <span class="pl-k">int</span> <span class="pl-en">main</span>() { torch::Tensor tensor = <span class="pl-c1">torch::eye</span>(<span class="pl-c1">3</span>); std::cout &lt;&lt; tensor &lt;&lt; std::endl; }</pre></div> <p dir="auto">I got series of errors and warnings :</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/49276301/83049178-646b0680-a068-11ea-85d8-af5c58cac6f4.png"><img src="https://user-images.githubusercontent.com/49276301/83049178-646b0680-a068-11ea-85d8-af5c58cac6f4.png" alt="Screenshot (48)" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/49276301/83049521-f115c480-a068-11ea-824f-c1d4cb633131.png"><img src="https://user-images.githubusercontent.com/49276301/83049521-f115c480-a068-11ea-824f-c1d4cb633131.png" alt="Screenshot (49)" style="max-width: 100%;"></a></p> <p dir="auto">Operating System : Windows 10</p>
<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> <ol dir="auto"> <li>Running <code class="notranslate">TestDistBackend.test_DistributedDataParallel</code> from <code class="notranslate">test_distributed</code> suite</li> <li>with a WORLD_SIZE &lt;= nGPUs/2 on the machine<br> results in an error "Model replicas must have an equal number of parameters".</li> </ol> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <ol dir="auto"> <li>Use a machine which has at least 4 GPUs</li> <li>Build pytorch from source for python3.6 OR use one of the available docker images.</li> <li>Run the following command: <code class="notranslate">BACKEND=nccl WORLD_SIZE=2 TEMP_DIR=/tmp python3.6 test_distributed.py --verbose TestDistBackend.test_DistributedDataParallel</code></li> </ol> <p dir="auto">On a ROCm build of PyTorch, I get the below stack trace (although this issue isn't ROCm-specific):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Process process 0: Traceback (most recent call last): File &quot;/opt/conda/lib/python3.6/multiprocessing/process.py&quot;, line 258, in _bootstrap self.run() File &quot;/opt/conda/lib/python3.6/multiprocessing/process.py&quot;, line 93, in run self._target(*self._args, **self._kwargs) File &quot;distributed/test_distributed.py&quot;, line 2126, in _run getattr(self, self.id().split(&quot;.&quot;)[2])() File &quot;distributed/test_distributed.py&quot;, line 2052, in wrapper fn(self) File &quot;distributed/test_distributed.py&quot;, line 119, in wrapper return func(*args, **kwargs) File &quot;distributed/test_distributed.py&quot;, line 135, in wrapper return func(*args, **kwargs) File &quot;/var/lib/jenkins/.local/lib/python3.6/site-packages/torch/testing/_internal/common_distributed.py&quot;, line 102, in wrapper return func(*args, **kwargs) File &quot;distributed/test_distributed.py&quot;, line 1878, in test_DistributedDataParallel self._test_DistributedDataParallel(gpu_subset=gpus, rank=rank) File &quot;distributed/test_distributed.py&quot;, line 1812, in _test_DistributedDataParallel model_DDP, device_ids=gpu_subset File &quot;/var/lib/jenkins/.local/lib/python3.6/site-packages/torch/nn/parallel/distributed.py&quot;, line 305, in __init__ self._ddp_init_helper() File &quot;/var/lib/jenkins/.local/lib/python3.6/site-packages/torch/nn/parallel/distributed.py&quot;, line 387, in _ddp_init_helper expect_sparse_gradient) RuntimeError: Model replicas must have an equal number of parameters."><pre class="notranslate"><code class="notranslate">Process process 0: Traceback (most recent call last): File "/opt/conda/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/opt/conda/lib/python3.6/multiprocessing/process.py", line 93, in run self._target(*self._args, **self._kwargs) File "distributed/test_distributed.py", line 2126, in _run getattr(self, self.id().split(".")[2])() File "distributed/test_distributed.py", line 2052, in wrapper fn(self) File "distributed/test_distributed.py", line 119, in wrapper return func(*args, **kwargs) File "distributed/test_distributed.py", line 135, in wrapper return func(*args, **kwargs) File "/var/lib/jenkins/.local/lib/python3.6/site-packages/torch/testing/_internal/common_distributed.py", line 102, in wrapper return func(*args, **kwargs) File "distributed/test_distributed.py", line 1878, in test_DistributedDataParallel self._test_DistributedDataParallel(gpu_subset=gpus, rank=rank) File "distributed/test_distributed.py", line 1812, in _test_DistributedDataParallel model_DDP, device_ids=gpu_subset File "/var/lib/jenkins/.local/lib/python3.6/site-packages/torch/nn/parallel/distributed.py", line 305, in __init__ self._ddp_init_helper() File "/var/lib/jenkins/.local/lib/python3.6/site-packages/torch/nn/parallel/distributed.py", line 387, in _ddp_init_helper expect_sparse_gradient) RuntimeError: Model replicas must have an equal number of parameters. </code></pre></div> <p dir="auto">If we limit the number of devices as follows:<br> <code class="notranslate">HIP_VISIBLE_DEVICES=0,1 BACKEND=nccl WORLD_SIZE=2 TEMP_DIR=/tmp python3.6 test_distributed.py --verbose TestDistBackend.test_DistributedDataParallel</code><br> the test passes.</p> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Test should pass.</p> <h2 dir="auto">Environment</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting environment information... PyTorch version: 1.5.0a0+f5e5569 Is debug build: No CUDA used to build PyTorch: Could not collect OS: Ubuntu 16.04.6 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609 CMake version: version 3.6.3 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: Could not collect GPU models and configuration: Could not collect Nvidia driver version: Could not collect cuDNN version: Could not collect ROCm version: 3.1 Versions of relevant libraries: [pip] numpy==1.18.1 [pip] torch==1.5.0a0+f5e5569 [pip] torchvision==0.5.0a0+44a5bae [conda] blas 1.0 mkl [conda] mkl 2020.0 166 [conda] mkl-include 2020.0 166 [conda] mkl-service 2.3.0 py36he904b0f_0 [conda] mkl_fft 1.0.15 py36ha843d7b_0 [conda] mkl_random 1.1.0 py36hd6b4f25_0"><pre class="notranslate"><code class="notranslate">Collecting environment information... PyTorch version: 1.5.0a0+f5e5569 Is debug build: No CUDA used to build PyTorch: Could not collect OS: Ubuntu 16.04.6 LTS GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609 CMake version: version 3.6.3 Python version: 3.6 Is CUDA available: Yes CUDA runtime version: Could not collect GPU models and configuration: Could not collect Nvidia driver version: Could not collect cuDNN version: Could not collect ROCm version: 3.1 Versions of relevant libraries: [pip] numpy==1.18.1 [pip] torch==1.5.0a0+f5e5569 [pip] torchvision==0.5.0a0+44a5bae [conda] blas 1.0 mkl [conda] mkl 2020.0 166 [conda] mkl-include 2020.0 166 [conda] mkl-service 2.3.0 py36he904b0f_0 [conda] mkl_fft 1.0.15 py36ha843d7b_0 [conda] mkl_random 1.1.0 py36hd6b4f25_0 </code></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pietern/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pietern">@pietern</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mrshenli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mrshenli">@mrshenli</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pritamdamania87/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pritamdamania87">@pritamdamania87</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zhaojuanmao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zhaojuanmao">@zhaojuanmao</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/satgera/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/satgera">@satgera</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rohan-varma/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rohan-varma">@rohan-varma</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gqchen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gqchen">@gqchen</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aazzolini/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aazzolini">@aazzolini</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/xush6528/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xush6528">@xush6528</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/osalpekar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/osalpekar">@osalpekar</a></p>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1334" rel="nofollow">http://projects.scipy.org/numpy/ticket/1334</a> on 2009-12-17 by trac user Tazlor, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cournape/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cournape">@cournape</a>.</em></p> <p dir="auto">I have installed the NumPy 1.4.0rc1 package from sourceforge for python 2.6 on OSX 10.5.8. 2.6 is the version of my Macpython installation, the system python remains 2.5.</p> <p dir="auto">"import numpy" in 2.6 returns an ImportError on the file multiarray.so. Here are the last few lines of the error traceback:</p> <p dir="auto">ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable image found. Did find:<br> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/multiarray.so: unknown required load command 0x80000022</p> <p dir="auto">The file multiarray.so does exist in that directory.<br> Strangely, the system python (2.5) can import NumPy without incident. I have tried to receive help on this problem in a google groups conversation (<a href="http://groups.google.com/group/comp.lang.python/browse_thread/thread/03620cbf3f202353" rel="nofollow">http://groups.google.com/group/comp.lang.python/browse_thread/thread/03620cbf3f202353</a>) and another person has confirmed experiencing the same symptoms.</p> <p dir="auto">Below I have copied the full output of "import numpy" with gdb. The traceback appears at the end. By the way, I don't have any user called "ronald".</p> <p dir="auto">Last login: Thu Dec 17 02:18:15 on ttys000<br> Polaris:~ kevin$ gdb python<br> GNU gdb 6.3.50-20050815 (Apple version gdb-962) (Sat Jul 26 08:14:40 UTC 2008)<br> Copyright 2004 Free Software Foundation, Inc.<br> GDB is free software, covered by the GNU General Public License, and you are<br> welcome to change it and/or distribute copies of it under certain conditions.<br> Type "show copying" to see the conditions.<br> There is absolutely no warranty for GDB. Type "show warranty" for details.<br> This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries .. done</p> <p dir="auto">(gdb) run -c "import numpy"<br> Starting program: /Library/Frameworks/Python.framework/Versions/2.6/bin/python -c "import numpy"<br> Reading symbols for shared libraries +. done</p> <p dir="auto">Program received signal SIGTRAP, Trace/breakpoint trap.<br> 0x8fe01010 in __dyld__dyld_start ()<br> (gdb) c<br> Continuing.<br> Reading symbols for shared libraries warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(getbuildinfo.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Modules/getbuildinfo.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(acceler.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Parser/acceler.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(grammar1.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Parser/grammar1.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(listnode.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Parser/listnode.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(node.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Parser/node.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(parser.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Parser/parser.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(parsetok.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Parser/parsetok.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(bitset.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Parser/bitset.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(metagrammar.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Parser/metagrammar.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(firstsets.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Parser/firstsets.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(grammar.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Parser/grammar.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(pgen.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Parser/pgen.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(myreadline.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Parser/myreadline.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(tokenizer.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Parser/tokenizer.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(abstract.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/abstract.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(boolobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/boolobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(bufferobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/bufferobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(bytes_methods.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/bytes_methods.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(bytearrayobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/bytearrayobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(cellobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/cellobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(classobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/classobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(cobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/cobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(codeobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/codeobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(complexobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/complexobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(descrobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/descrobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(enumobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/enumobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(exceptions.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/exceptions.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(genobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/genobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(fileobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/fileobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(floatobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/floatobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(frameobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/frameobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(funcobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/funcobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(intobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/intobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(iterobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/iterobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(listobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/listobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(longobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/longobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(dictobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/dictobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(methodobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/methodobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(moduleobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/moduleobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(object.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/object.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(obmalloc.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/obmalloc.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(rangeobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/rangeobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(setobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/setobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(sliceobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/sliceobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(stringobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/stringobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(structseq.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/structseq.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(tupleobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/tupleobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(typeobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/typeobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(weakrefobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/weakrefobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(unicodeobject.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/unicodeobject.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(unicodectype.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Objects/unicodectype.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(_warnings.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/_warnings.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(Python-ast.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/Python-ast.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(asdl.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/asdl.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(ast.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/ast.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(bltinmodule.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/bltinmodule.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(ceval.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/ceval.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(compile.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/compile.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(codecs.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/codecs.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(errors.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/errors.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(frozen.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/frozen.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(frozenmain.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/frozenmain.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(future.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/future.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(getargs.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/getargs.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(getcompiler.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/getcompiler.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(getcopyright.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/getcopyright.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(getmtime.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/getmtime.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(getplatform.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/getplatform.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(getversion.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/getversion.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(graminit.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/graminit.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(import.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/import.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(importdl.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/importdl.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(marshal.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/marshal.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(modsupport.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/modsupport.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(mystrtoul.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/mystrtoul.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(mysnprintf.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/mysnprintf.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(peephole.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/peephole.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(pyarena.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/pyarena.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(pyfpe.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/pyfpe.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(pystate.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/pystate.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(pythonrun.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/pythonrun.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(structmember.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/structmember.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(symtable.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/symtable.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(sysmodule.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/sysmodule.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(traceback.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/traceback.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(getopt.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/getopt.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(pystrcmp.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/pystrcmp.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(pystrtod.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/pystrtod.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(formatter_unicode.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/formatter_unicode.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(formatter_string.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/formatter_string.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(dynload_shlib.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/dynload_shlib.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(mactoolboxglue.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/mactoolboxglue.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(thread.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Python/thread.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(config.o)" - no debug information available for "Modules/config.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(getpath.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Modules/getpath.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(main.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Modules/main.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(gcmodule.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Modules/gcmodule.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(threadmodule.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Modules/threadmodule.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(signalmodule.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Modules/signalmodule.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(posixmodule.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Modules/posixmodule.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(errnomodule.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Modules/errnomodule.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(pwdmodule.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Modules/pwdmodule.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(_sre.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Modules/_sre.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(_codecsmodule.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Modules/_codecsmodule.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(zipimport.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Modules/zipimport.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(symtablemodule.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Modules/symtablemodule.c".</p> <p dir="auto">warning: Could not find object file "/private/tmp/_py/_bld/python/libpython2.6.a(xxsubtype.o)" - no debug information available for "/Users/ronald/Projects/python/r263/Modules/xxsubtype.c".</p> <p dir="auto">warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_muldi3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_negdi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_lshrdi3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_ashldi3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_ashrdi3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_cmpdi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_ucmpdi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_floatdidf.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_floatdisf.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_fixunsdfsi.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_fixunssfsi.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_fixunsdfdi.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_fixdfdi.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_fixunssfdi.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_fixsfdi.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_fixxfdi.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_fixunsxfdi.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_floatdixf.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_fixunsxfsi.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_clear_cache.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_enable_execute_stack.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(__main.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_absvsi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_absvdi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_addvsi3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_addvdi3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_subvsi3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_subvdi3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_mulvsi3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_mulvdi3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_negvsi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_negvdi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_ffssi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_ffsdi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_clz.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_clzsi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_clzdi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_ctzsi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_ctzdi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_popcount_tab.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_popcountsi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_popcountdi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_paritysi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_paritydi2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_powisf2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_powidf2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_powixf2.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_mulsc3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_muldc3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_mulxc3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_divsc3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_divdc3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_divxc3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_eprintf.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(__gcc_bcmp.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_divdi3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_moddi3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_udivdi3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_umoddi3.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_udiv_w_sdiv.o)" more recent than executable timestamp<br> warning: .o file "/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/i686-apple-darwin9/4.0.1/libgcc.a(_udivmoddi4.o)" more recent than executable timestamp<br> . done<br> Traceback (most recent call last):<br> File "", line 1, in <br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/<strong>init</strong>.py", line 132, in <br> import add_newdocs<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/add_newdocs.py", line 9, in <br> from lib import add_newdoc<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/lib/<strong>init</strong>.py", line 4, in <br> from type_check import *<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/lib/type_check.py", line 8, in <br> import numpy.core.numeric as _nx<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/<strong>init</strong>.py", line 5, in <br> import multiarray<br> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable image found. Did find:<br> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/multiarray.so: unknown required load command 0x80000022</p> <p dir="auto">Program exited with code 01.<br> (gdb) bt<br> No stack.<br> (gdb) c<br> The program is not being run.<br> (gdb)</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1322" rel="nofollow">http://projects.scipy.org/numpy/ticket/1322</a> on 2009-12-10 by trac user ndufour, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cournape/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cournape">@cournape</a>.</em></p> <p dir="auto">Mac OS X 10.5.8<br> 32-bit machine<br> The problem appears to lie with the file "multiarray.so"<br> Attempting to import Numpy returns:</p> <p dir="auto">Traceback (most recent call last):<br> File "", line 1, in <br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/<strong>init</strong>.py", line 132, in <br> import add_newdocs<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/add_newdocs.py", line 9, in <br> from lib import add_newdoc<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/lib/<strong>init</strong>.py", line 4, in <br> from type_check import *<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/lib/type_check.py", line 8, in <br> import numpy.core.numeric as _nx<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/<strong>init</strong>.py", line 5, in <br> import multiarray<br> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable image found. Did find:<br> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/multiarray.so: unknown required load command 0x80000022</p> <p dir="auto">Attempting to build Scipy returns:</p> <p dir="auto">Traceback (most recent call last):<br> File "setup.py", line 160, in <br> setup_package()<br> File "setup.py", line 127, in setup_package<br> from numpy.distutils.core import setup<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/<strong>init</strong>.py", line 132, in <br> import add_newdocs<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/add_newdocs.py", line 9, in <br> from lib import add_newdoc<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/lib/<strong>init</strong>.py", line 4, in <br> from type_check import *<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/lib/type_check.py", line 8, in <br> import numpy.core.numeric as _nx<br> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/<strong>init</strong>.py", line 5, in <br> import multiarray<br> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable image found. Did find:<br> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/multiarray.so: unknown required load command 0x80000022</p>
1
<p dir="auto">When you visit the Bootstrap documentation with a window to small for the docs to show the sidebar on the left, then resize your browser so it does appear, the sidebar will stay at the top of the page, and doesn't scroll down with you. Neither will it mark at which section you are.</p> <p dir="auto">I can confirm this issue in Internet Explorer 11, Firefox 30 and Chrome 35.</p>
<p dir="auto">The following issue is reproducible with the current bootstrap docs website (e.g. <a href="http://getbootstrap.com/javascript/" rel="nofollow">http://getbootstrap.com/javascript/</a>) using Firefox 28 and Chrome 33, on Windows:</p> <ol dir="auto"> <li>Start with a large browser window.</li> <li>Load <a href="http://getbootstrap.com/javascript/" rel="nofollow">http://getbootstrap.com/javascript/</a></li> <li>Decrease width of the window, so that the sidebar disappears, i.e. the affix contents menu goes to the bottom of the page (you don't see it anymore).</li> <li>Scroll all the way down to the footer, you see the affix contents menu again.</li> <li>Increase the window width again. At some point, the affix contents menu goes to the top again (you don't see it anymore).</li> <li>Scroll all the way up, there it is.</li> <li>Scroll down, the affix does not follow scroll movement anymore.</li> </ol>
1
<p dir="auto"><code class="notranslate">go tool compile</code> hangs in karatsuba compiling the following program:</p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package a var e = 1&lt;&lt;1p10000000&lt;&lt;3"><pre class="notranslate"><span class="pl-k">package</span> a <span class="pl-k">var</span> <span class="pl-s1">e</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-c1">&lt;&lt;</span><span class="pl-c1">1</span><span class="pl-s1">p10000000</span><span class="pl-c1">&lt;&lt;</span><span class="pl-c1">3</span></pre></div> <p dir="auto">Can we just break off hex exponents (p)? They are not supported by go/types-based frontends and so are non-portable.</p> <p dir="auto">go version devel +514014c Thu Jun 18 15:54:35 2015 +0200 linux/amd64</p>
<p dir="auto">The following program takes 1+ hours to compile, aborted after that:</p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package a var g = 1e81391777742999"><pre class="notranslate"><span class="pl-k">package</span> a <span class="pl-k">var</span> <span class="pl-s1">g</span> <span class="pl-c1">=</span> <span class="pl-c1">1e81391777742999</span></pre></div> <p dir="auto">Package should either analyze it in a reasonable amount of time (seconds) or give an error if it cannot chew it. Compiling a single line of code for hours does not make sense.</p> <p dir="auto">on commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/golang/go/commit/af817890aa7b628234075a6cb01a3a435fb8317d/hovercard" href="https://github.com/golang/go/commit/af817890aa7b628234075a6cb01a3a435fb8317d"><tt>af81789</tt></a></p>
1
<pre class="notranslate">What does 'go version' print? go version devel +fe11c71dbee6 Tue Nov 11 16:06:47 2014 +1100 linux/amd64 What steps reproduce the problem? In the code below, there are leading and trailing spaces in both the Println lines and each lines of Output section. $ cat foo_test.go package foo import "fmt" func Example() { fmt.Println(" one ") fmt.Println(" two ") fmt.Println(" three ") // Output: // one // two // three } $ go test --- FAIL: Example (0.00s) got: one two three want: one two three FAIL exit status 1 FAIL _/home/fhs/tmp/example 0.001s $ What happened? It looks like the leading spaces of first line and the trailing spaces of the last line in the "got" output was removed. All other spaces are still there. However, for the "want" output, only the leading spaces of the second and third lines are there. All other spaces were removed (including all the trailing spaces -- maybe the parser is removing all trailing spaces from comments). What should have happened instead? The documentation says: "The comparison ignores leading and trailing space." It doesn't say the spaces are ignored for each line, but I think it makes more sense to trim leading and trailing spaces for each line. At least it should be consistent about how it's removing the spaces.</pre>
<p dir="auto">by <strong>piotrnar</strong>:</p> <pre class="notranslate">It does not happen on Linux, but on Windows whenever we try to link a lib that contains static symbols that have the same name, though came from different object files, we get an error: * duplicate symbol reference: XXX in both YYY It happens with any Go version I have tried - 1.0.3 or newer, both 32 and 64 bit. What steps will reproduce the problem? 1. Extract attached cgostat.zip 2. Go to cgostat\C and run build_lib.bat - this should build you a problematic lib 3. Go one folder up and try "go test" - it should give you the error. Note that "go build" does not give an error. What is the expected output? It must work - these are static symbols and they actually have different names, with a unique number after a dot, but the linker somehow seems to ignore these unique extensions.</pre> <p dir="auto">Attachments:</p> <ol dir="auto"> <li><a href="https://storage.googleapis.com/go-attachment/5740/0/cgostat.zip" rel="nofollow">cgostat.zip</a> (1421 bytes)</li> </ol>
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><br> Since I updated to Angular 2.4.1 and Angular-CLI beta.24 I get a compiler error which says that I should not use an inline arrow function for the useFactory but rather use an exported function.</p> <p dir="auto">That is no problem and I can exchange the code but why should I do that? I don't understand why this has changed because before version 2.4.1 it did not show me an error.<br> The funny thing about it is that the app works without any problem I am just getting this compiler error event tough the code works.</p> <p dir="auto">That is the way it wants me to do this but this to much unnecessery code, especially when I have more providers which use the <code class="notranslate">useFactory</code>.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export function translateFactory() { return (http: Http) =&gt; new TranslateStaticLoader(http, '/assets/i18n', '.json') } @NgModule({ ..., TranslateModule.forRoot({ provide: TranslateLoader, useFactory: translateFactory, deps: [Http] }) })"><pre class="notranslate"><code class="notranslate">export function translateFactory() { return (http: Http) =&gt; new TranslateStaticLoader(http, '/assets/i18n', '.json') } @NgModule({ ..., TranslateModule.forRoot({ provide: TranslateLoader, useFactory: translateFactory, deps: [Http] }) }) </code></pre></div> <p dir="auto">There are already issues on a similar topic. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="174663524" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/11262" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/11262/hovercard" href="https://github.com/angular/angular/issues/11262">#11262</a> as an example but none of them could answer my core question.</p> <p dir="auto"><strong>Expected behavior</strong><br> I expect it to work like in earlier versions.<br> Where we could use it like in the example below.</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="@NgModule({ ..., TranslateModule.forRoot({ provide: TranslateLoader, useFactory: (http: Http) =&gt; new TranslateStaticLoader(http, '/assets/i18n', '.json'), deps: [Http] }) })"><pre class="notranslate"><code class="notranslate">@NgModule({ ..., TranslateModule.forRoot({ provide: TranslateLoader, useFactory: (http: Http) =&gt; new TranslateStaticLoader(http, '/assets/i18n', '.json'), deps: [Http] }) }) </code></pre></div> <p dir="auto">results in this error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 37:25 in the original .ts file), resolving symbol AppModule in /home/dev/project/frontend/src/app/app.module.ts"><pre class="notranslate"><code class="notranslate">ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 37:25 in the original .ts file), resolving symbol AppModule in /home/dev/project/frontend/src/app/app.module.ts </code></pre></div> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> I mostly asking myself why this has changed.<br> There is nothing in the changelog which helps me.</p> <p dir="auto">So my questions are:</p> <ul dir="auto"> <li>In version has this changed?</li> <li>Why has this changed?</li> <li>Do I really need to change every factory now or is this a bug and I can expect it to be fixed in a future version?</li> </ul> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Ubuntu 16.04<br> IntelliJ IDEA 2016.3.2<br> Angular 2.4.1<br> Angular-CLI beta.24</p> <ul dir="auto"> <li> <p dir="auto"><strong>Browser:</strong><br> negligible</p> </li> <li> <p dir="auto"><strong>Language:</strong><br> TypeScript 2.0.10</p> </li> </ul>
<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">If a provider specifies an inline function/arrow function for <code class="notranslate">useFactory</code>, the build fails with the error 'Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function.'</p> <p dir="auto">For instance, the following breaks:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="providers: [ { provide: AuthHttp, deps: [Http, RequestOptions], useFactory: function (http: Http, options: RequestOptions) { return new AuthHttp(new AuthConfig(), http, options); } } ]"><pre class="notranslate">providers: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">AuthHttp</span><span class="pl-kos">,</span> <span class="pl-c1">deps</span>: <span class="pl-kos">[</span><span class="pl-smi">Http</span><span class="pl-kos">,</span> <span class="pl-smi">RequestOptions</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-en">useFactory</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">http</span>: <span class="pl-smi">Http</span><span class="pl-kos">,</span> <span class="pl-s1">options</span>: <span class="pl-smi">RequestOptions</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-smi">AuthHttp</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">AuthConfig</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">http</span><span class="pl-kos">,</span> <span class="pl-s1">options</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">but changing the notation to ES6 object method shorthand works:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="providers: [ { provide: AuthHttp, deps: [Http, RequestOptions], useFactory(http: Http, options: RequestOptions) { return new AuthHttp(new AuthConfig(), http, options); } } ]"><pre class="notranslate">providers: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">provide</span>: <span class="pl-smi">AuthHttp</span><span class="pl-kos">,</span> <span class="pl-c1">deps</span>: <span class="pl-kos">[</span><span class="pl-smi">Http</span><span class="pl-kos">,</span> <span class="pl-smi">RequestOptions</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-en">useFactory</span><span class="pl-kos">(</span><span class="pl-s1">http</span>: <span class="pl-smi">Http</span><span class="pl-kos">,</span> <span class="pl-s1">options</span>: <span class="pl-smi">RequestOptions</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-smi">AuthHttp</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">AuthConfig</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">http</span><span class="pl-kos">,</span> <span class="pl-s1">options</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">This is completely bizarre IMHO since the semantics in the above examples are identical.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">Should work without issue</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">Only occurs when compiling using AoT, not reproducible in a plunkr.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <p dir="auto">Windows 7, NPM 3.10.8</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.4.0 (Was not an issue under Angular 2.2.x)</p> </li> <li> <p dir="auto"><strong>Angular-CLI version:</strong> 1.0.0-beta.24</p> </li> <li> <p dir="auto"><strong>Browser:</strong> N/A</p> </li> </ul> <ul dir="auto"> <li> <p dir="auto"><strong>Language:</strong> TypeScript 2.0.10</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =<br> 6.9.1</p> </li> </ul>
1
<ul dir="auto"> <li>OS Platform and Distribution : CentOS Linux release 7.5.1804</li> <li>TensorFlow installed from (source or binary): pip</li> <li>Python version: 3.7.2</li> <li>Installed using virtualenv? pip? conda?: pip</li> </ul> <p dir="auto">I get the following error when I try to import tensorflow:</p> <p dir="auto">Traceback (most recent call last):<br> File "/home/users/pjh/.local/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <br> from tensorflow.python.pywrap_tensorflow_internal import *<br> File "/home/users/pjh/.local/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <br> _pywrap_tensorflow_internal = swig_import_helper()<br> File "/home/users/pjh/.local/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper<br> _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br> File "/home/users/pjh/Python-3.7.3/Lib/imp.py", line 242, in load_module<br> return load_dynamic(name, filename, file)<br> File "/home/users/pjh/Python-3.7.3/Lib/imp.py", line 342, in load_dynamic<br> return _load(spec)<br> ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/users/pjh/.local/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)</p> <p dir="auto">During handling of the above exception, another exception occurred:</p> <p dir="auto">Traceback (most recent call last):<br> File "", line 1, in <br> File "/home/users/pjh/.local/lib/python3.7/site-packages/tensorflow/<strong>init</strong>.py", line 24, in <br> from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import<br> File "/home/users/pjh/.local/lib/python3.7/site-packages/tensorflow/python/<strong>init</strong>.py", line 49, in <br> from tensorflow.python import pywrap_tensorflow<br> File "/home/users/pjh/.local/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in <br> raise ImportError(msg)<br> ImportError: Traceback (most recent call last):<br> File "/home/users/pjh/.local/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <br> from tensorflow.python.pywrap_tensorflow_internal import *<br> File "/home/users/pjh/.local/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <br> _pywrap_tensorflow_internal = swig_import_helper()<br> File "/home/users/pjh/.local/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper<br> _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br> File "/home/users/pjh/Python-3.7.3/Lib/imp.py", line 242, in load_module<br> return load_dynamic(name, filename, file)<br> File "/home/users/pjh/Python-3.7.3/Lib/imp.py", line 342, in load_dynamic<br> return _load(spec)<br> ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/users/pjh/.local/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)</p> <p dir="auto">Failed to load the native TensorFlow runtime.</p> <hr> <p dir="auto">I am not the root user in the server.<br> I installed python in my directory by downloading '<a href="https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz" rel="nofollow">https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz</a>'. Next I downloaded tensorflow by 'python3 -m pip install tensorflow --user' (python3 command is linked to the one installed in my directory). Then I executed 'python3' and tried to import tensorflow.</p> <p dir="auto">Thank you so much.</p>
<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p> <p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): RedHat Enterprise Linux 7.6</li> <li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: n/a</li> <li>TensorFlow installed from (source or binary): binary</li> <li>TensorFlow version: 1.13.1</li> <li>Python version: 2.7.2</li> <li>Installed using virtualenv? pip? conda?: virtualenv+pip</li> <li>Bazel version (if compiling from source): n/a</li> <li>GCC/Compiler version (if compiling from source): n/a</li> <li>CUDA/cuDNN version: n/a</li> <li>GPU model and memory: n/a</li> </ul> <p dir="auto"><strong>Describe the problem</strong></p> <p dir="auto">We noticed that TensorFlow 1.13.1 now comes with wheels for Python 3.7 as well:</p> <p dir="auto">tensorflow-1.13.1-cp37-cp37m-manylinux1_x86_64.whl</p> <p dir="auto">We first upgraded to 1.13.1 on our existing Python 3.6, which worked<br> fine. Then we tried upgrading to Python 3.7, but even importing<br> tensorflow fails there, because the shared libraries need a newer<br> libstdc++:</p> <p dir="auto">E ImportError: Traceback (most recent call last):<br> E File "/home/anon/git/sensors/venv3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <br> E from tensorflow.python.pywrap_tensorflow_internal import *<br> E File "/home/anon/git/sensors/venv3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <br> E _pywrap_tensorflow_internal = swig_import_helper()<br> E File "/home/anon/git/sensors/venv3/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper<br> E _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)<br> E File "/opt/anon/python-3.7.2-master-201903180831/lib/python3.7/imp.py", line 242, in load_module<br> E return load_dynamic(name, filename, file)<br> E File "/opt/anon/python-3.7.2-master-201903180831/lib/python3.7/imp.py", line 342, in load_dynamic<br> E return _load(spec)<br> E ImportError: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /home/anon/git/sensors/venv3/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so)<br> E<br> E<br> E Failed to load the native TensorFlow runtime.<br> E<br> E See <a href="https://www.tensorflow.org/install/errors" rel="nofollow">https://www.tensorflow.org/install/errors</a><br> E<br> E for some common reasons and solutions. Include the entire stack trace<br> E above this error message when asking for help.</p> <p dir="auto">This is error is logical, because RHEL/CentOS 7 only has support for 1.3.7 and earlier:</p> <p dir="auto">(venv3) [anon@vdesk sensors]$ uname -a<br> Linux vdesk.localdomain 3.10.0-957.5.1.el7.x86_64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115886302" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1">#1</a> SMP Wed Dec 19 10:46:58 EST 2018 x86_64 x86_64 x86_64 GNU/Linux<br> (venv3) [anon@vdesk sensors]$ cat /etc/redhat-release<br> Red Hat Enterprise Linux Server release 7.6 (Maipo)<br> (venv3) [anon@vdesk sensors]$ strings /lib64/libstdc++.so.6 | grep CXXABI<br> CXXABI_1.3<br> CXXABI_1.3.1<br> CXXABI_1.3.2<br> CXXABI_1.3.3<br> CXXABI_1.3.4<br> CXXABI_1.3.5<br> CXXABI_1.3.6<br> CXXABI_1.3.7<br> CXXABI_TM_1<br> (venv3) [anon@vdesk sensors]$ gcc --version<br> gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)<br> Copyright (C) 2015 Free Software Foundation, Inc.<br> This is free software; see the source for copying conditions. There is NO<br> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</p> <p dir="auto">If you unzip the 3.6 and 3.7 wheels for TF 1.13.1, you can see that the 3.6 wheel is compiled on Ubuntu 14.04 with GCC 4.8:</p> <p dir="auto">[anon@vdesk python]$ strings python36/tensorflow-1.13.1.data/purelib/tensorflow/libtensorflow_framework.so | grep -i ubuntu<br> GCC: (Ubuntu 4.8.5-4ubuntu8~14.04.2) 4.8.5</p> <p dir="auto">and the 3.7 wheel is compiled on Ubuntu 16.04 with GCC 5.4:</p> <p dir="auto">[anon@vdesk python]$ strings python37/tensorflow-1.13.1.data/purelib/tensorflow/libtensorflow_framework.so | grep -i ubuntu<br> GCC: (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609</p> <p dir="auto">RHEL/CentOS 7 also has GCC 4.8.x, so that's why the Python 3.6 wheels work.</p> <p dir="auto">Is there any chance you could build the Python 3.7 wheels on Ubuntu 14.04 as well?</p> <p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p> <p dir="auto">Just importing tensorflow; works fine with the Python3.6 wheels.</p> <p dir="auto"><strong>Any other info / logs</strong><br> Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p>
1
<p dir="auto">Hi, i want to add my CUDA function to torchScript as a Node, but i don't want to use torchScript extention op as i can't let other people to load so file, is there any way? Thankyou very much!</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gmagogsfm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gmagogsfm">@gmagogsfm</a></p>
<p dir="auto">Hi, i want to add my CUDA function as a torchScript Node, but i can't use torchScript extention op as i can't let other people to use so file. It's there a way? Thank you very much!</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gmagogsfm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gmagogsfm">@gmagogsfm</a></p>
1
<ul dir="auto"> <li>VSCode Version: 0.10.10</li> <li>OS Version: Windows 10</li> </ul> <p dir="auto">Typescript says things are duplicate when i move a file around.<br> My guess is that the location of the file is not updated in the typescript service properly because when i restart VSCode it fixes itself but still its annoying to have to restart the editor.</p> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>get a large typescript code base like react.d.ts or something similar</li> <li>move it</li> <li>watch it happen</li> </ol>
<p dir="auto">It is natural on Windows to have the X affordance to the right of the document and not to the left. This applies for both tabs enabled or disabled.</p> <p dir="auto">However, we should not just put the X to the right of the file label if you have tabs disabled because that means having an unstable location of the close button depending on the size of the file path. Instead, we should move this action to the far right, but clearly inside the tab and not outside. See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157672417" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/7060" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/7060/hovercard" href="https://github.com/microsoft/vscode/issues/7060">#7060</a> for a related issue.</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexandrudima/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexandrudima">@alexandrudima</a></p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=tccham182" rel="nofollow">Tom Chambers</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7007?redirect=false" rel="nofollow">SPR-7007</a></strong> and commented</p> <p dir="auto">When binding to a list or map in a form tag, in my case:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;form:checkbox path=&quot;command[${mapkey}][${i.index}].aList&quot; value=&quot;${aValue}&quot; /&gt;"><pre class="notranslate"><code class="notranslate">&lt;form:checkbox path="command[${mapkey}][${i.index}].aList" value="${aValue}" /&gt; </code></pre></div> <p dir="auto">The checkbox is correctly bound and rendered (using a custom property editors etc), however on submission the request parameters are not correctly bound to the form object. After investigation it appears that the HTML "name" attribute of the input field is incorrect, before 3.0.1 (RELEASE-A) it would render:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;input id=&quot;commandkeyvalue0.aList.subscriptionMethods1&quot; name=&quot;command[keyvalue][0].aList.subscriptionMethods1&quot; type=&quot;checkbox&quot; value=&quot;aValue&quot; checked=&quot;checked&quot;/&gt; &lt;input type=&quot;hidden&quot; name=&quot;_command[keyvalue][0].aList.subscriptionMethods1&quot; value=&quot;on&quot;/&gt;"><pre class="notranslate"><code class="notranslate">&lt;input id="commandkeyvalue0.aList.subscriptionMethods1" name="command[keyvalue][0].aList.subscriptionMethods1" type="checkbox" value="aValue" checked="checked"/&gt; &lt;input type="hidden" name="_command[keyvalue][0].aList.subscriptionMethods1" value="on"/&gt; </code></pre></div> <p dir="auto">It now renders:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Note the missing square brackets in the name &lt;input id=&quot;commandkeyvalue0.aList.subscriptionMethods1&quot; name=&quot;commandkeyvalue0.aList.subscriptionMethods1&quot; type=&quot;checkbox&quot; value=&quot;aValue&quot; checked=&quot;checked&quot;/&gt; &lt;input type=&quot;hidden&quot; name=&quot;_commandkeyvalue0.aList.subscriptionMethods1&quot; value=&quot;on&quot;/&gt;"><pre class="notranslate"><code class="notranslate">// Note the missing square brackets in the name &lt;input id="commandkeyvalue0.aList.subscriptionMethods1" name="commandkeyvalue0.aList.subscriptionMethods1" type="checkbox" value="aValue" checked="checked"/&gt; &lt;input type="hidden" name="_commandkeyvalue0.aList.subscriptionMethods1" value="on"/&gt; </code></pre></div> <p dir="auto">I am aware that in 2.5 the "id" attribute of input fields were changed to remove the square brackets [ and ]. However it seems that the "name" also has these removed causing the request parameters to not be bound on submission of the form. Manually editing the HTML to include the [ and ] characters in the "name" attribute fixes the issue.</p> <p dir="auto">Although I have found this in using the portlet API and the form:checkboxes/ tag, I suspect that it is common in the servlet code (and other form tags) too - it seems to be in AbstractDataBoundFormElementTag:</p> <p dir="auto">In 3.0.0 (working):</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" protected String autogenerateId() throws JspException { return StringUtils.deleteAny(getName(), &quot;[]&quot;); } protected String getName() throws JspException { return getPropertyPath(); } "><pre class="notranslate"> <span class="pl-k">protected</span> <span class="pl-smi">String</span> <span class="pl-s1">autogenerateId</span>() <span class="pl-k">throws</span> <span class="pl-s1">JspException</span> { <span class="pl-k">return</span> <span class="pl-smi">StringUtils</span>.<span class="pl-en">deleteAny</span>(<span class="pl-en">getName</span>(), <span class="pl-s">"[]"</span>); } <span class="pl-k">protected</span> <span class="pl-smi">String</span> <span class="pl-s1">getName</span>() <span class="pl-k">throws</span> <span class="pl-s1">JspException</span> { <span class="pl-k">return</span> <span class="pl-en">getPropertyPath</span>(); }</pre></div> <p dir="auto">In 3.0.1 RELEASE A:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" protected String autogenerateId() throws JspException { return getName(); } protected String getName() throws JspException { return StringUtils.deleteAny(getPropertyPath(), &quot;[]&quot;); } "><pre class="notranslate"> <span class="pl-k">protected</span> <span class="pl-smi">String</span> <span class="pl-s1">autogenerateId</span>() <span class="pl-k">throws</span> <span class="pl-s1">JspException</span> { <span class="pl-k">return</span> <span class="pl-en">getName</span>(); } <span class="pl-k">protected</span> <span class="pl-smi">String</span> <span class="pl-s1">getName</span>() <span class="pl-k">throws</span> <span class="pl-s1">JspException</span> { <span class="pl-k">return</span> <span class="pl-smi">StringUtils</span>.<span class="pl-en">deleteAny</span>(<span class="pl-en">getPropertyPath</span>(), <span class="pl-s">"[]"</span>); }</pre></div> <p dir="auto">Please feel free to shoot me down - I have spent a while on this and I cant see how the above is supposed to work.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.1</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398103843" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11654" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11654/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11654">#11654</a> Spring web's tag library removes "[" and "]" in the path attribute for input (and possibly others). (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=egervari" rel="nofollow">Ken Egervari</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6989?redirect=false" rel="nofollow">SPR-6989</a></strong> and commented</p> <p dir="auto">I have some code that purposefully puts "[" and "]" in the path, which eventually gets rendered to the id and name attributes on the input tag.</p> <p dir="auto">Code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;@springForm.input type=type attributes=attributes path=path htmlEscape=&quot;true&quot; /&gt;&lt;br/&gt;"><pre class="notranslate"><code class="notranslate">&lt;@springForm.input type=type attributes=attributes path=path htmlEscape="true" /&gt;&lt;br/&gt; </code></pre></div> <p dir="auto">At a high level, it gets used like this:<br> Code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;@form.text path=&quot;studentAnswer.answers[${chunk.text}]&quot; /&gt;"><pre class="notranslate"><code class="notranslate">&lt;@form.text path="studentAnswer.answers[${chunk.text}]" /&gt; </code></pre></div> <p dir="auto">Unfortunately, spring's tag library is removing the "[" and "]", so what is left over is a giant string value. I <strong>must</strong> use this pattern since this page has multiple input fields that are totally random based on the list of text chunks.</p> <p dir="auto">Each form value is supposed to map to this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="private Map&lt;String,String&gt; answers = new HashMap&lt;String, String&gt;();"><pre class="notranslate"><code class="notranslate">private Map&lt;String,String&gt; answers = new HashMap&lt;String, String&gt;(); </code></pre></div> <p dir="auto">Of course, when the server tries to get the values, there are NPE's everywhere due to Spring's stupidity.</p> <p dir="auto">How did this break? I was using plain html before, and I just recently switched over to the tag library because it was the only way to get multipart's working correctly. Otherwise, Spring didn't pass the MultipartFile object to the domain object. I tried everything, and this is what fixed it.</p> <p dir="auto">Now that I have converted about 50 forms to use the tag library, I have finally arrived to the 1 outlier form that does not covert over successfully. Sigh.</p> <p dir="auto">Please tell me how I can get this to work so I can get this production code launched.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.1</p> <p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?t=86199" rel="nofollow">http://forum.springsource.org/showthread.php?t=86199</a></p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398103974" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11672" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11672/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11672">#11672</a> AbstractDataBoundFormElementTag generates incorrect input name attribute when using indexed properties (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
1
<p dir="auto">There are quiet some extensions out there to handle setting synchronization between multiple computers. And in my opinion they are very important: Since vscode is very customizable with settings, keyboardshortcuts and extension it is very hard to synchronize those things between multiple workstations. And all those extensions are not really clean solutions, because vscode does nearly nothing to support them (for example the paths vscode uses are not exposed, see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="131703512" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2741" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2741/hovercard" href="https://github.com/microsoft/vscode/issues/2741">#2741</a>).</p> <p dir="auto">So here some ideas to make synchronization clean and extensible:</p> <ul dir="auto"> <li>add a contribution point for synchronization extensions <ul dir="auto"> <li>Those extensions should not have to gather all the files that have to be synced. vscode should do this and then pass them to the extensions</li> <li>Such an extension's job is only to upload/download the files, passed to them (so we can have the <code class="notranslate">gist upload</code>/<code class="notranslate">svn upload</code>/<code class="notranslate">git repo upload</code>/<code class="notranslate">dropbox</code>/<code class="notranslate">filesystem</code>/<code class="notranslate">onedrive</code>/<code class="notranslate">ftp</code>/<code class="notranslate">other services</code>.</li> <li>Or maybe gather all settings into one big json object and pass that.</li> <li>Support versioning and non versioning extensions</li> </ul> </li> <li>add a remote_settings.json to build on top of the workspace-settings/user-settings stack.</li> <li>allow automatic and user triggered synchronization</li> </ul> <p dir="auto">Ok... just some ideas <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p>
<p dir="auto">This is a feature request.</p> <p dir="auto">It would be really cool to have atom-like multiple tabs open for simultaneous editing. It is hard to click on those small strips on the sidebar. Having tabs on top like below image ensures that we could easily navigate between multiple files while editing.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8456197/13202744/ed76d9d6-d8cb-11e5-9deb-20430b1f4855.png"><img src="https://cloud.githubusercontent.com/assets/8456197/13202744/ed76d9d6-d8cb-11e5-9deb-20430b1f4855.png" alt="image" style="max-width: 100%;"></a></p>
0