text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">when execute sql that likes follow<br> INSERT INTO stock_age (<br> tenant_id,<br> warehouse_no,<br> sku_no,<br> lot_no,<br> package_no,<br> owner_no,<br> product_level,<br> md5_value,<br> qty<br> )<br> VALUES<br> (<br> 'T123456',<br> '26',<br> 'S011',<br> '1',<br> '1',<br> 'ownerNo',<br> '1',<br> 'asdsdfdfdfd',<br> 5<br> )<br> ON DUPLICATE KEY<br> UPDATE<br> qty = IFNULL(qty, 0) + 1</p> <p dir="auto">report error:</p> <h3 dir="auto">Cause: java.sql.SQLException: No value specified for parameter 10</h3> <p dir="auto">; bad SQL grammar []; nested exception is java.sql.SQLException: No value specified for parameter 10<br> Caused by: java.sql.SQLException: No value specified for parameter 10<br> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996)<br> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935)<br> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:924)<br> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:870)<br> at com.mysql.jdbc.PreparedStatement.checkAllParametersSet(PreparedStatement.java:2281)<br> at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2261)<br> at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:2191)<br> at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1165)<br> at org.apache.commons.dbcp2.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:198)<br> at org.apache.commons.dbcp2.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:198)<br> at org.apache.shardingsphere.shardingjdbc.executor.SQLExecuteCallbackFactory$2.executeSQL(SQLExecuteCallbackFactory.java:64)<br> at org.apache.shardingsphere.shardingjdbc.executor.SQLExecuteCallbackFactory$2.executeSQL(SQLExecuteCallbackFactory.java:60)<br> at org.apache.shardingsphere.core.execute.sql.execute.SQLExecuteCallback.execute0(SQLExecuteCallback.java:79)<br> at org.apache.shardingsphere.core.execute.sql.execute.SQLExecuteCallback.execute(SQLExecuteCallback.java:61)<br> at org.apache.shardingsphere.core.execute.engine.ShardingExecuteEngine.syncGroupExecute(ShardingExecuteEngine.java:125)<br> at org.apache.shardingsphere.core.execute.engine.ShardingExecuteEngine.parallelExecute(ShardingExecuteEngine.java:102)<br> at org.apache.shardingsphere.core.execute.engine.ShardingExecuteEngine.groupExecute(ShardingExecuteEngine.java:83)<br> at org.apache.shardingsphere.core.execute.sql.execute.SQLExecuteTemplate.executeGroup(SQLExecuteTemplate.java:73)<br> at org.apache.shardingsphere.core.execute.sql.execute.SQLExecuteTemplate.executeGroup(SQLExecuteTemplate.java:56)<br> at org.apache.shardingsphere.shardingjdbc.executor.AbstractStatementExecutor.executeCallback(AbstractStatementExecutor.java:140)<br> at org.apache.shardingsphere.shardingjdbc.executor.PreparedStatementExecutor.execute(PreparedStatementExecutor.java:153)<br> at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.execute(ShardingPreparedStatement.java:192)<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:498)</p> <p dir="auto">Which version of ShardingSphere did you use?<br> 4.0.1</p> <p dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?<br> Sharding-JDBC</p>
<p dir="auto">The sharding-proxy and sharding-scaling modules are both use MySQL protocol, there are lots of duplicated codes.<br> It is better to create a new module to process database protocol. The tasks are:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Create shardingsphere-database-protocol module</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Create shardingsphere-mysql-protocol submodule</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Create shardingsphere-postgresql-protocol submodule</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Merge sharding-proxy and sharding-scaling's mysql protocol part.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Move sharding-proxy's postgresql protocol part.</li> </ul>
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/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">When dispatching an additional action (the middleware is <code class="notranslate">await</code>ing the second action before forwarding the first action to <code class="notranslate">next()</code>) from a redux middleware invoked by an action call in <code class="notranslate">getInitialProps</code>, the function should await both of the action promises resolving before rendering.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Server render does not include state from store dispatched by either action creator. If I don't <code class="notranslate">await</code> the second action call, state from the first action creator is present. As soon as the page is hydrated on the client side the actions dispatch normally in <code class="notranslate">componentDidMount()</code>.</p> <p dir="auto">It seems as if for some reason, the server render is timing out and not waiting for <code class="notranslate">getInitialProps</code> to resolve.</p> <p dir="auto"><code class="notranslate">getInitalProps</code>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="static async getInitialProps({ store: { dispatch }, query: { slug }, res, }) { await dispatch(getActiveOrg(slug)).catch( ({ response: { status } }) =&gt; { if (status === 404) { res.statusCode = 404; } }, ); return { slug, }; }"><pre class="notranslate"><span class="pl-k">static</span> <span class="pl-s1">async</span> <span class="pl-en">getInitialProps</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">store</span>: <span class="pl-kos">{</span> dispatch <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">query</span>: <span class="pl-kos">{</span> slug <span class="pl-kos">}</span><span class="pl-kos">,</span> res<span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-en">dispatch</span><span class="pl-kos">(</span><span class="pl-en">getActiveOrg</span><span class="pl-kos">(</span><span class="pl-s1">slug</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">catch</span><span class="pl-kos">(</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">response</span>: <span class="pl-kos">{</span> status <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">status</span> <span class="pl-c1">===</span> <span class="pl-c1">404</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-c1">statusCode</span> <span class="pl-c1">=</span> <span class="pl-c1">404</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-k">return</span> <span class="pl-kos">{</span> slug<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">middleware:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default ({ dispatch }) =&gt; next =&gt; async action =&gt; { if (action.type === ORGANIZATION_INFO_RECEIVED) { const { payload } = action; if (payload.donor_landing_page === 'cause') { await dispatch( fetchCauses( payload.subdomain, payload.donor_landing_page_id, ), ); } } next(action); };"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> dispatch <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">next</span> <span class="pl-c1">=&gt;</span> <span class="pl-k">async</span> <span class="pl-s1">action</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">action</span><span class="pl-kos">.</span><span class="pl-c1">type</span> <span class="pl-c1">===</span> <span class="pl-c1">ORGANIZATION_INFO_RECEIVED</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> payload <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">action</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">payload</span><span class="pl-kos">.</span><span class="pl-c1">donor_landing_page</span> <span class="pl-c1">===</span> <span class="pl-s">'cause'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-en">dispatch</span><span class="pl-kos">(</span> <span class="pl-en">fetchCauses</span><span class="pl-kos">(</span> <span class="pl-s1">payload</span><span class="pl-kos">.</span><span class="pl-c1">subdomain</span><span class="pl-kos">,</span> <span class="pl-s1">payload</span><span class="pl-kos">.</span><span class="pl-c1">donor_landing_page_id</span><span class="pl-kos">,</span> <span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-en">next</span><span class="pl-kos">(</span><span class="pl-s1">action</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <h2 dir="auto">Context</h2> <p dir="auto">The goal of this redux middleware is to allow for conditionally fetching additional data before the server response dependent on the response of an initial API call.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>5.0.0</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/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="176262894" data-permission-text="Title is private" data-url="https://github.com/gaearon/react-hot-loader/issues/356" data-hovercard-type="issue" data-hovercard-url="/gaearon/react-hot-loader/issues/356/hovercard" href="https://github.com/gaearon/react-hot-loader/issues/356">gaearon/react-hot-loader/issues/356</a> is the closest I found.</p> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Error free .next/bundles/pages/index.js</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Firefox throws:</p> <blockquote> <p dir="auto">process.env is undefined</p> </blockquote> <p dir="auto">Chromium says:</p> <blockquote> <p dir="auto">TypeError: Cannot read property 'NODE_ENV' of undefined</p> </blockquote> <p dir="auto">both originate from:<br> <code class="notranslate">;(function register() { /* react-hot-loader/webpack */ if (process.env.NODE_ENV !== 'production') { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; }</code></p> <p dir="auto">In most places the generated index.js reads:<br> <code class="notranslate">;(function register() { /* react-hot-loader/webpack */ if (true) { if (typeof __REACT_HOT_LOADER__ === 'undefined') { return; }</code></p> <p dir="auto">Something, and I can't figure out what, triggered webpack and/or react-hot-loader to use "process.env.NODE_ENV" in the front-end, which kills it.</p> <h2 dir="auto">Context</h2> <p dir="auto">"next dev" is rendered useless, because the hot-reload feature breaks the front-end coding.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>4.1.4</td> </tr> <tr> <td>node</td> <td>6.12.0</td> </tr> <tr> <td>OS</td> <td>Ubuntu 17.10</td> </tr> <tr> <td>browser</td> <td>Firefox and Chromium</td> </tr> </tbody> </table> <p dir="auto">Any help would be greatly appreciated. Banging my head against the wall since days :(<br> Unfortunately I wasn't able to create a minimal-example, so if any code is required I will happily share it.</p>
0
<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/matplotlib/matplotlib/blob/31d2c2ff9b652a03d58c77529326e21a2cdb31ae/lib/matplotlib/tests/test_axes.py#L1132-L1155">matplotlib/lib/matplotlib/tests/test_axes.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 1132 to 1155 in <a data-pjax="true" class="commit-tease-sha" href="/matplotlib/matplotlib/commit/31d2c2ff9b652a03d58c77529326e21a2cdb31ae">31d2c2f</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="L1132" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1132"></td> <td id="LC1132" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">@<span class="pl-en">image_comparison</span>(<span class="pl-s1">baseline_images</span><span class="pl-c1">=</span>[<span class="pl-s">'pcolormesh'</span>], <span class="pl-s1">remove_text</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</span> </td> </tr> <tr class="border-0"> <td id="L1133" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1133"></td> <td id="LC1133" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">def</span> <span class="pl-en">test_pcolormesh</span>(): </td> </tr> <tr class="border-0"> <td id="L1134" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1134"></td> <td id="LC1134" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">n</span> <span class="pl-c1">=</span> <span class="pl-c1">12</span> </td> </tr> <tr class="border-0"> <td id="L1135" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1135"></td> <td id="LC1135" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">1.5</span>, <span class="pl-c1">1.5</span>, <span class="pl-s1">n</span>) </td> </tr> <tr class="border-0"> <td id="L1136" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1136"></td> <td id="LC1136" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-c1">-</span><span class="pl-c1">1.5</span>, <span class="pl-c1">1.5</span>, <span class="pl-s1">n</span><span class="pl-c1">*</span><span class="pl-c1">2</span>) </td> </tr> <tr class="border-0"> <td id="L1137" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1137"></td> <td id="LC1137" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-v">X</span>, <span class="pl-v">Y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">meshgrid</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>) </td> </tr> <tr class="border-0"> <td id="L1138" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1138"></td> <td id="LC1138" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-v">Qx</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">cos</span>(<span class="pl-v">Y</span>) <span class="pl-c1">-</span> <span class="pl-s1">np</span>.<span class="pl-en">cos</span>(<span class="pl-v">X</span>) </td> </tr> <tr class="border-0"> <td id="L1139" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1139"></td> <td id="LC1139" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-v">Qz</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">sin</span>(<span class="pl-v">Y</span>) <span class="pl-c1">+</span> <span class="pl-s1">np</span>.<span class="pl-en">sin</span>(<span class="pl-v">X</span>) </td> </tr> <tr class="border-0"> <td id="L1140" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1140"></td> <td id="LC1140" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-v">Qx</span> <span class="pl-c1">=</span> (<span class="pl-v">Qx</span> <span class="pl-c1">+</span> <span class="pl-c1">1.1</span>) </td> </tr> <tr class="border-0"> <td id="L1141" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1141"></td> <td id="LC1141" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-v">Z</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">hypot</span>(<span class="pl-v">X</span>, <span class="pl-v">Y</span>) <span class="pl-c1">/</span> <span class="pl-c1">5</span> </td> </tr> <tr class="border-0"> <td id="L1142" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1142"></td> <td id="LC1142" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-v">Z</span> <span class="pl-c1">=</span> (<span class="pl-v">Z</span> <span class="pl-c1">-</span> <span class="pl-v">Z</span>.<span class="pl-en">min</span>()) <span class="pl-c1">/</span> <span class="pl-v">Z</span>.<span class="pl-en">ptp</span>() </td> </tr> <tr class="border-0"> <td id="L1143" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1143"></td> <td id="LC1143" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L1144" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1144"></td> <td id="LC1144" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># The color array can include masked values:</span> </td> </tr> <tr class="border-0"> <td id="L1145" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1145"></td> <td id="LC1145" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-v">Zm</span> <span class="pl-c1">=</span> <span class="pl-s1">ma</span>.<span class="pl-en">masked_where</span>(<span class="pl-s1">np</span>.<span class="pl-en">abs</span>(<span class="pl-v">Qz</span>) <span class="pl-c1">&lt;</span> <span class="pl-c1">0.5</span> <span class="pl-c1">*</span> <span class="pl-s1">np</span>.<span class="pl-en">max</span>(<span class="pl-v">Qz</span>), <span class="pl-v">Z</span>) </td> </tr> <tr class="border-0"> <td id="L1146" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1146"></td> <td id="LC1146" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L1147" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1147"></td> <td id="LC1147" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>() </td> </tr> <tr class="border-0"> <td id="L1148" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1148"></td> <td id="LC1148" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">131</span>) </td> </tr> <tr class="border-0"> <td id="L1149" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1149"></td> <td id="LC1149" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">ax</span>.<span class="pl-en">pcolormesh</span>(<span class="pl-v">Qx</span>, <span class="pl-v">Qz</span>, <span class="pl-v">Z</span>, <span class="pl-s1">lw</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>, <span class="pl-s1">edgecolors</span><span class="pl-c1">=</span><span class="pl-s">'k'</span>) </td> </tr> <tr class="border-0"> <td id="L1150" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1150"></td> <td id="LC1150" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L1151" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1151"></td> <td id="LC1151" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">132</span>) </td> </tr> <tr class="border-0"> <td id="L1152" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1152"></td> <td id="LC1152" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">ax</span>.<span class="pl-en">pcolormesh</span>(<span class="pl-v">Qx</span>, <span class="pl-v">Qz</span>, <span class="pl-v">Z</span>, <span class="pl-s1">lw</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">edgecolors</span><span class="pl-c1">=</span>[<span class="pl-s">'b'</span>, <span class="pl-s">'w'</span>]) </td> </tr> <tr class="border-0"> <td id="L1153" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1153"></td> <td id="LC1153" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td> </tr> <tr class="border-0"> <td id="L1154" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1154"></td> <td id="LC1154" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">133</span>) </td> </tr> <tr class="border-0"> <td id="L1155" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1155"></td> <td id="LC1155" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">ax</span>.<span class="pl-en">pcolormesh</span>(<span class="pl-v">Qx</span>, <span class="pl-v">Qz</span>, <span class="pl-v">Z</span>, <span class="pl-s1">shading</span><span class="pl-c1">=</span><span class="pl-s">"gouraud"</span>) </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">Note that <code class="notranslate">Zm</code> is unused; and thus there is no test for <code class="notranslate">pcolormesh</code> with a masked array as input.</p>
<p dir="auto">The <code class="notranslate">pcolormesh</code> test says that <a href="https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/tests/test_axes.py#L991-L992">masked colour arrays are supported</a>, but this masked <code class="notranslate">Zm</code> variable is never used in the test. It appears that this has been the case since the test was added.</p> <p dir="auto">I'm not sure exactly how the "correct" masked result should look, or I would update this myself. I hope one of the assignees should have some idea what to do here.</p>
1
<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="import pandas as pd import numpy as np bins = np.arange(0, 100, 10) bins.flags.writeable = False pd.cut(np.arange(100), bins)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">bins</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>, <span class="pl-c1">100</span>, <span class="pl-c1">10</span>) <span class="pl-s1">bins</span>.<span class="pl-s1">flags</span>.<span class="pl-s1">writeable</span> <span class="pl-c1">=</span> <span class="pl-c1">False</span> <span class="pl-s1">pd</span>.<span class="pl-en">cut</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">100</span>), <span class="pl-s1">bins</span>)</pre></div> <p dir="auto">Results in:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ValueError Traceback (most recent call last) &lt;ipython-input-71-60b85be1194d&gt; in &lt;module&gt;() ----&gt; 1 pd.cut(np.arange(100), bins) ~/conda/envs/xarray-py36/lib/python3.6/site-packages/pandas/core/reshape/tile.py in cut(x, bins, right, labels, retbins, precision, include_lowest) 134 precision=precision, 135 include_lowest=include_lowest, --&gt; 136 dtype=dtype) 137 138 return _postprocess_for_cut(fac, bins, retbins, x_is_series, ~/conda/envs/xarray-py36/lib/python3.6/site-packages/pandas/core/reshape/tile.py in _bins_to_cuts(x, bins, right, labels, precision, include_lowest, dtype, duplicates) 225 return result, bins 226 --&gt; 227 unique_bins = algos.unique(bins) 228 if len(unique_bins) &lt; len(bins) and len(bins) != 2: 229 if duplicates == 'raise': ~/conda/envs/xarray-py36/lib/python3.6/site-packages/pandas/core/algorithms.py in unique(values) 354 355 table = htable(len(values)) --&gt; 356 uniques = table.unique(values) 357 uniques = _reconstruct_data(uniques, dtype, original) 358 pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.Int64HashTable.unique (pandas/_libs/hashtable.c:16341)() ~/conda/envs/xarray-py36/lib/python3.6/site-packages/pandas/_libs/hashtable.cpython-36m-darwin.so in View.MemoryView.memoryview_cwrapper (pandas/_libs/hashtable.c:45205)() ~/conda/envs/xarray-py36/lib/python3.6/site-packages/pandas/_libs/hashtable.cpython-36m-darwin.so in View.MemoryView.memoryview.__cinit__ (pandas/_libs/hashtable.c:41440)() ValueError: buffer source array is read-only"><pre class="notranslate"><code class="notranslate">ValueError Traceback (most recent call last) &lt;ipython-input-71-60b85be1194d&gt; in &lt;module&gt;() ----&gt; 1 pd.cut(np.arange(100), bins) ~/conda/envs/xarray-py36/lib/python3.6/site-packages/pandas/core/reshape/tile.py in cut(x, bins, right, labels, retbins, precision, include_lowest) 134 precision=precision, 135 include_lowest=include_lowest, --&gt; 136 dtype=dtype) 137 138 return _postprocess_for_cut(fac, bins, retbins, x_is_series, ~/conda/envs/xarray-py36/lib/python3.6/site-packages/pandas/core/reshape/tile.py in _bins_to_cuts(x, bins, right, labels, precision, include_lowest, dtype, duplicates) 225 return result, bins 226 --&gt; 227 unique_bins = algos.unique(bins) 228 if len(unique_bins) &lt; len(bins) and len(bins) != 2: 229 if duplicates == 'raise': ~/conda/envs/xarray-py36/lib/python3.6/site-packages/pandas/core/algorithms.py in unique(values) 354 355 table = htable(len(values)) --&gt; 356 uniques = table.unique(values) 357 uniques = _reconstruct_data(uniques, dtype, original) 358 pandas/_libs/hashtable_class_helper.pxi in pandas._libs.hashtable.Int64HashTable.unique (pandas/_libs/hashtable.c:16341)() ~/conda/envs/xarray-py36/lib/python3.6/site-packages/pandas/_libs/hashtable.cpython-36m-darwin.so in View.MemoryView.memoryview_cwrapper (pandas/_libs/hashtable.c:45205)() ~/conda/envs/xarray-py36/lib/python3.6/site-packages/pandas/_libs/hashtable.cpython-36m-darwin.so in View.MemoryView.memoryview.__cinit__ (pandas/_libs/hashtable.c:41440)() ValueError: buffer source array is read-only </code></pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">This is essentially the same problem as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="72474981" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/10043" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/10043/hovercard" href="https://github.com/pandas-dev/pandas/issues/10043">#10043</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="248426153" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/17192" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/17192/hovercard" href="https://github.com/pandas-dev/pandas/issues/17192">#17192</a>, due to Cython issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="207556472" data-permission-text="Title is private" data-url="https://github.com/cython/cython/issues/1605" data-hovercard-type="issue" data-hovercard-url="/cython/cython/issues/1605/hovercard" href="https://github.com/cython/cython/issues/1605">cython/cython#1605</a></p> <h4 dir="auto">Expected Output</h4> <p dir="auto">Should not error.</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <p dir="auto">In [73]: pd.show_versions()</p> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.6.3.final.0<br> python-bits: 64<br> OS: Darwin<br> OS-release: 16.7.0<br> machine: x86_64<br> processor: i386<br> byteorder: little<br> LC_ALL: None<br> LANG: en_US.UTF-8<br> LOCALE: en_US.UTF-8</p> <p dir="auto">pandas: 0.20.3<br> pytest: 3.2.1<br> pip: 9.0.1<br> setuptools: 36.4.0<br> Cython: 0.26<br> numpy: 1.13.1<br> scipy: 0.19.1<br> xarray: 0.10.0<br> IPython: 6.1.0<br> sphinx: 1.6.3<br> patsy: None<br> dateutil: 2.6.1<br> pytz: 2017.2<br> blosc: None<br> bottleneck: 1.2.1<br> tables: None<br> numexpr: None<br> feather: None<br> matplotlib: 2.0.2<br> openpyxl: None<br> xlrd: None<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: 0.999<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.6<br> s3fs: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
<p dir="auto">Dear all,</p> <p dir="auto">Here from the mailing list: <a href="https://groups.google.com/forum/#!topic/pydata/jKiPOvYUQ1c" rel="nofollow">https://groups.google.com/forum/#!topic/pydata/jKiPOvYUQ1c</a></p> <p dir="auto">I have an excel table about family ages like this</p> <table role="table"> <thead> <tr> <th>Family</th> <th>People</th> <th>Mean size [cm]</th> </tr> </thead> <tbody> <tr> <td>Foo</td> <td>5</td> <td>173.0</td> </tr> <tr> <td>Bar</td> <td>3</td> <td>189.0</td> </tr> </tbody> </table> <p dir="auto">and I would like to use read_excel to parse it into Python. I would like "People" to be read as an integer, "Mean size [cm]" as a float. (And "Family" as a string, but that might be a different issue.) Now:</p> <ul dir="auto"> <li>if I set convert_float=True, the last column reads as int</li> <li>if I set convert_float=False, the second column reads as float</li> </ul> <p dir="auto">Neither one is correct, for a stupid reason: there happen to be those .0 in all sizes! So I would like to specify something like:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="convert_float = ['People']"><pre class="notranslate"><span class="pl-s1">convert_float</span> <span class="pl-c1">=</span> [<span class="pl-s">'People'</span>]</pre></div> <p dir="auto">so only that column gets converted. An even better solution would be to be explicit about types of some columns, letting pandas perform the automagic for the others, such as:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="read_excel('foo.xlsx', types={'People': np.uint8, 'Family': 'S3'})"><pre class="notranslate"><span class="pl-en">read_excel</span>(<span class="pl-s">'foo.xlsx'</span>, <span class="pl-s1">types</span><span class="pl-c1">=</span>{<span class="pl-s">'People'</span>: <span class="pl-s1">np</span>.<span class="pl-s1">uint8</span>, <span class="pl-s">'Family'</span>: <span class="pl-s">'S3'</span>})</pre></div> <p dir="auto">but this changes the signature of the function more significantly.</p> <p dir="auto">Are you folks in favour of any of this? If yes, I can get a look and try to code it in.</p>
0
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexcrichton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexcrichton">@alexcrichton</a> has indicated this may be related to using newer versions of gcc, which might explain why it doesn't fail on the buildbot machines.</p> <p dir="auto">The segfault occurs while running the <code class="notranslate">tailcallelim</code> llvm pass on <code class="notranslate">ast::Pat_::drop()</code>, possibly during the prerequisite <code class="notranslate">tti</code> analysis.</p> <p dir="auto">Turning on any kind of debug information for either rust or llvm causes the problem to disappear.</p>
<p dir="auto">Just a heads-up to others: mingw-w64 (not sure about other platforms) GCC 5.x appears to be subtly mis-compiling LLVM, which results in a segmentation fault during rustc's codegen.<br> I've seen this with x86_64-5.1.0- and i686-5.2.0- toolchains. In the former case LLVM had to be compiled with asserts (--enable-llvm-assertions) for this to occur.</p> <p dir="auto">GCC 4.9.3 seems to be OK.</p>
1
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/applied-visual-design/adjust-the-width-of-an-element-using-the-width-property" rel="nofollow">adjust-the-width-of-an-element-using-the-width-property</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">I set the full card width property to 245px and it doesnt like it. Says to keep trying. Browser zoom is set to 100%.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;style&gt; h4 { text-align: center; } p { text-align: justify; } .links { margin-right: 20px; text-align: left; } .fullCard { width: 245px; border: 1px solid #ccc; border-radius: 5px; margin: 10px 5px; padding: 4px; } .cardContent { padding: 10px; } &lt;/style&gt; &lt;div class=&quot;fullCard&quot;&gt; &lt;div class=&quot;cardContent&quot;&gt; &lt;div class=&quot;cardText&quot;&gt; &lt;h4&gt;Google&lt;/h4&gt; &lt;p&gt;Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.&lt;/p&gt; &lt;/div&gt; &lt;div class=&quot;cardLinks&quot;&gt; &lt;a href=&quot;https://en.wikipedia.org/wiki/Larry_Page&quot; target=&quot;_blank&quot; class=&quot;links&quot;&gt;Larry Page&lt;/a&gt; &lt;a href=&quot;https://en.wikipedia.org/wiki/Sergey_Brin&quot; target=&quot;_blank&quot; class=&quot;links&quot;&gt;Sergey Brin&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-ent">h4</span> { <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; } <span class="pl-ent">p</span> { <span class="pl-c1">text-align</span><span class="pl-kos">:</span> justify; } .<span class="pl-c1">links</span> { <span class="pl-c1">margin-right</span><span class="pl-kos">:</span> <span class="pl-c1">20<span class="pl-smi">px</span></span>; <span class="pl-c1">text-align</span><span class="pl-kos">:</span> left; } .<span class="pl-c1">fullCard</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">245<span class="pl-smi">px</span></span>; <span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">1<span class="pl-smi">px</span></span> solid <span class="pl-pds"><span class="pl-kos">#</span>ccc</span>; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">5<span class="pl-smi">px</span></span>; <span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span> <span class="pl-c1">5<span class="pl-smi">px</span></span>; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">4<span class="pl-smi">px</span></span>; } .<span class="pl-c1">cardContent</span> { <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">fullCard</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">cardContent</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">cardText</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>Google<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">p</span><span class="pl-kos">&gt;</span>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</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">cardLinks</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">https://en.wikipedia.org/wiki/Larry_Page</span>" <span class="pl-c1">target</span>="<span class="pl-s">_blank</span>" <span class="pl-c1">class</span>="<span class="pl-s">links</span>"<span class="pl-kos">&gt;</span>Larry Page<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">https://en.wikipedia.org/wiki/Sergey_Brin</span>" <span class="pl-c1">target</span>="<span class="pl-s">_blank</span>" <span class="pl-c1">class</span>="<span class="pl-s">links</span>"<span class="pl-kos">&gt;</span>Sergey Brin<span class="pl-kos">&lt;/</span><span class="pl-ent">a</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="https://www.freecodecamp.com/challenges/comment-your-javascript-code#?solution=%2F%2FI%20don't%20agree%20that%20a%20comment%20is%20good%20to%20clarify%20the%20function%20of%20parts%20of%20your%20code%0A%0A%2F*%0A%20A%20good%20code%20can%20be%20determined%20with%20just%20the%20name%20of%20the%20functions%2C%20variables%2C%0A%20how%20it's%20easy%20to%20understand%20even%20without%20leaving%20comments.%0A%20If%20you%20need%20to%20leave%20a%20comment%20to%20the%20code%2C%20it's%20not%20a%20%22good%20enough%20code%22%0A%20*%2F" rel="nofollow">Comment your JavaScript Code</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36</code>.<br> When i tried to Run tests(ctrl+enter), it shows a message "Error: SyntaxError: Unsafe or unfinished function declaration". With a simple comments, there is no problem, but if use that comment, the problem exist. I think it has to do with the symbols, although it is a valid comment.</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="//I don't agree that a comment is good to clarify the function of parts of your code /* A good code can be determined with just the name of the functions, variables, how it's easy to understand even without leaving comments. If you need to leave a comment to the code, it's not a &quot;good enough code&quot; */"><pre class="notranslate"><span class="pl-c">//I don't agree that a comment is good to clarify the function of parts of your code</span> <span class="pl-c">/*</span> <span class="pl-c"> A good code can be determined with just the name of the functions, variables,</span> <span class="pl-c"> how it's easy to understand even without leaving comments.</span> <span class="pl-c"> If you need to leave a comment to the code, it's not a "good enough code"</span> <span class="pl-c"> */</span></pre></div>
0
<table role="table"> <thead> <tr> <th>#</th> <th>First Name</th> <th>Last Name</th> <th>Username</th> </tr> </thead> <tbody> <tr> <td rowspan="2">1</td> <td>Mark</td> <td>Otto</td> <td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mdo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mdo">@mdo</a></td> </tr> <tr> <td>Mark</td> <td>Otto</td> <td><a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/twbootstrap/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/twbootstrap">@twbootstrap</a></td> </tr> <tr> <td>2</td> <td>Jacob</td> <td>Thornton</td> <td><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fat">@fat</a></td> </tr> <tr> <td>3</td> <td colspan="2">Larry the Bird</td> <td><a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/twitter/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/twitter">@twitter</a></td> </tr> </tbody> </table> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/b3523f85066ecca709b23eca7f55e124ced7b226abfb51e922fcc408e6389181/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343638343735322f3634363533342f31656538643830382d643364332d313165322d393962652d3638643763326538663934312e706e67"><img src="https://camo.githubusercontent.com/b3523f85066ecca709b23eca7f55e124ced7b226abfb51e922fcc408e6389181/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343638343735322f3634363533342f31656538643830382d643364332d313165322d393962652d3638643763326538663934312e706e67" alt="image" data-canonical-src="https://f.cloud.github.com/assets/4684752/646534/1ee8d808-d3d3-11e2-99be-68d7c2e8f941.png" style="max-width: 100%;"></a></p>
<p dir="auto">Hi,</p> <p dir="auto">I'm building an application with Twitter Bootstrap one of the reasons because I need it to be responsive and readable with hand-held devices.</p> <p dir="auto">The responsive layout works like a charm, but tables not so much, they have a fixed min width where they can't go any thiner, I get that, but it would be <strong>so cool</strong> if the tables would be responsive, meaning when they can't go any thinner they change their layout to show the information somehow to fit the screen.</p> <p dir="auto">I don't know how would you achieve this, maybe changing the scale (or zoom) on the table so it go smaller, since on a hand-held you can zoom in with a pinch.</p> <p dir="auto">Is there an easy solution to solve this?</p> <p dir="auto">Thanks!</p>
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 <code class="notranslate">@types/react-redux</code> package 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" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/surgeboris/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/surgeboris">@surgeboris</a></li> </ul> </li> </ul> <p dir="auto">The following (self-contained) component stopped working after upgrading @types/react-redux from v6.0.9 to v6.0.10:</p> <div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as React from &quot;react&quot;; import { connect } from &quot;react-redux&quot;; import { Dispatch } from &quot;redux&quot;; interface Item { id: number; content: string; } interface RootState { items: Item[]; } interface StateProps { items: RootState[&quot;items&quot;]; } interface DispatchProps { remove: (item: Item) =&gt; () =&gt; void; } function BaseItemList({ items, remove }: StateProps &amp; DispatchProps) { return ( &lt;ol&gt; {items.map((item) =&gt; ( &lt;li key={item.id}&gt; {item.content} &lt;button onClick={remove(item)}&gt; Remove &lt;/button&gt; &lt;/li&gt; ))} &lt;/ol&gt; ); } const mapStateToProps = ({ items }: RootState): StateProps =&gt; ({ items }); const mapDispatchToProps = (dispatch: Dispatch): DispatchProps =&gt; ({ remove: (item) =&gt; () =&gt; dispatch({ type: &quot;REMOVE_ITEM&quot;, item }), }); export const ItemList = connect(mapStateToProps, mapDispatchToProps)(BaseItemList);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-smi">React</span> <span class="pl-k">from</span> <span class="pl-s">"react"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">connect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"react-redux"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Dispatch</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"redux"</span><span class="pl-kos">;</span> <span class="pl-k">interface</span> <span class="pl-smi">Item</span> <span class="pl-kos">{</span> <span class="pl-c1">id</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-c1">content</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">RootState</span> <span class="pl-kos">{</span> <span class="pl-c1">items</span>: <span class="pl-smi">Item</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">interface</span> <span class="pl-smi">StateProps</span> <span class="pl-kos">{</span> <span class="pl-c1">items</span>: <span class="pl-smi">RootState</span><span class="pl-kos">[</span><span class="pl-s">"items"</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">interface</span> <span class="pl-smi">DispatchProps</span> <span class="pl-kos">{</span> <span class="pl-c1">remove</span>: <span class="pl-kos">(</span><span class="pl-s1">item</span>: <span class="pl-smi">Item</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">function</span> <span class="pl-smi">BaseItemList</span><span class="pl-kos">(</span><span class="pl-kos">{</span> items<span class="pl-kos">,</span> remove <span class="pl-kos">}</span>: <span class="pl-smi">StateProps</span> <span class="pl-c1">&amp;</span> <span class="pl-smi">DispatchProps</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-c1">&lt;</span><span class="pl-ent">ol</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span><span class="pl-s1">items</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">item</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">item</span><span class="pl-kos">.</span><span class="pl-c1">id</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-kos">{</span><span class="pl-s1">item</span><span class="pl-kos">.</span><span class="pl-c1">content</span><span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-s1">item</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> Remove <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">li</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">ol</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">const</span> <span class="pl-en">mapStateToProps</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> items <span class="pl-kos">}</span>: <span class="pl-smi">RootState</span><span class="pl-kos">)</span>: <span class="pl-smi">StateProps</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> items <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-en">mapDispatchToProps</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">dispatch</span>: <span class="pl-smi">Dispatch</span><span class="pl-kos">)</span>: <span class="pl-smi">DispatchProps</span> <span class="pl-c1">=&gt;</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-s1">item</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-en">dispatch</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">type</span>: <span class="pl-s">"REMOVE_ITEM"</span><span class="pl-kos">,</span> item <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-k">export</span> <span class="pl-k">const</span> <span class="pl-smi">ItemList</span> <span class="pl-c1">=</span> <span class="pl-en">connect</span><span class="pl-kos">(</span><span class="pl-s1">mapStateToProps</span><span class="pl-kos">,</span> <span class="pl-s1">mapDispatchToProps</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-smi">BaseItemList</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">After the upgrade, the last line lets TS complain with error TS2345:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Argument of type '({ items, remove }: StateProps &amp; DispatchProps) =&gt; Element' is not assignable to parameter of type 'ComponentType&lt;Matching&lt;StateProps &amp; { remove: () =&gt; void; }, StateProps &amp; DispatchProps&gt;&gt;'. Type '({ items, remove }: StateProps &amp; DispatchProps) =&gt; Element' is not assignable to type 'FunctionComponent&lt;Matching&lt;StateProps &amp; { remove: () =&gt; void; }, StateProps &amp; DispatchProps&gt;&gt;'. Types of parameters '__0' and 'props' are incompatible. Type 'Matching&lt;StateProps &amp; { remove: () =&gt; void; }, StateProps &amp; DispatchProps&gt; &amp; { children?: ReactNode; }' is not assignable to type 'StateProps &amp; DispatchProps'. Type 'Matching&lt;StateProps &amp; { remove: () =&gt; void; }, StateProps &amp; DispatchProps&gt; &amp; { children?: ReactNode; }' is not assignable to type 'DispatchProps'. Types of property 'remove' are incompatible. Type '() =&gt; void' is not assignable to type '(item: Item) =&gt; () =&gt; void'. Type 'void' is not assignable to type '() =&gt; void'. [2345]"><pre class="notranslate"><code class="notranslate">Argument of type '({ items, remove }: StateProps &amp; DispatchProps) =&gt; Element' is not assignable to parameter of type 'ComponentType&lt;Matching&lt;StateProps &amp; { remove: () =&gt; void; }, StateProps &amp; DispatchProps&gt;&gt;'. Type '({ items, remove }: StateProps &amp; DispatchProps) =&gt; Element' is not assignable to type 'FunctionComponent&lt;Matching&lt;StateProps &amp; { remove: () =&gt; void; }, StateProps &amp; DispatchProps&gt;&gt;'. Types of parameters '__0' and 'props' are incompatible. Type 'Matching&lt;StateProps &amp; { remove: () =&gt; void; }, StateProps &amp; DispatchProps&gt; &amp; { children?: ReactNode; }' is not assignable to type 'StateProps &amp; DispatchProps'. Type 'Matching&lt;StateProps &amp; { remove: () =&gt; void; }, StateProps &amp; DispatchProps&gt; &amp; { children?: ReactNode; }' is not assignable to type 'DispatchProps'. Types of property 'remove' are incompatible. Type '() =&gt; void' is not assignable to type '(item: Item) =&gt; () =&gt; void'. Type 'void' is not assignable to type '() =&gt; void'. [2345] </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/react-redux</code> package 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" checked=""> 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" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond. <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/surgeboris/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/surgeboris">@surgeboris</a></li> </ul> </li> </ul> <p dir="auto">Hi <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/surgeboris/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/surgeboris">@surgeboris</a>, I see that your recent changes intend is to "properly support thunks". However they seem to have had the exact opposite effect in our code base!</p> <p dir="auto">This code works in 6.0.9:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const OrderForm = connect( (state: State) =&gt; ({ order: getOrder(state), initialOrder: Order.createEmpty(), isConfirming: isConfirming(state), externalQuote: getExternalQuote(state), panelQuote: getPanelQuote(state), }), { onCancel: cancelOrder, fetchExternalQuote, fetchPanelQuote, fetchQuoteQueued, confirmOrder, createOrder, }"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-smi">OrderForm</span> <span class="pl-c1">=</span> <span class="pl-s1">connect</span><span class="pl-kos">(</span> <span class="pl-kos">(</span><span class="pl-s1">state</span>: <span class="pl-smi">State</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">order</span>: <span class="pl-en">getOrder</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">initialOrder</span>: <span class="pl-smi">Order</span><span class="pl-kos">.</span><span class="pl-en">createEmpty</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">isConfirming</span>: <span class="pl-en">isConfirming</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">externalQuote</span>: <span class="pl-en">getExternalQuote</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">panelQuote</span>: <span class="pl-en">getPanelQuote</span><span class="pl-kos">(</span><span class="pl-s1">state</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">onCancel</span>: <span class="pl-s1">cancelOrder</span><span class="pl-kos">,</span> fetchExternalQuote<span class="pl-kos">,</span> fetchPanelQuote<span class="pl-kos">,</span> fetchQuoteQueued<span class="pl-kos">,</span> confirmOrder<span class="pl-kos">,</span> createOrder<span class="pl-kos">,</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">The new error in 6.0.10:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Argument of type 'typeof OrderForm' is not assignable to parameter of type 'ComponentType&lt;Matching&lt;{ order: Readonly&lt;PermittedOrderParams&gt;; initialOrder: PermittedOrderParams; isConfirming: boolean; externalQuote: Readonly&lt;ThirdPartyQuote&gt;; panelQuote: Readonly&lt;PanelQuote&gt;; } &amp; { ...; }, Props&gt;&gt;'. Type 'typeof OrderForm' is not assignable to type 'ComponentClass&lt;Matching&lt;{ order: Readonly&lt;PermittedOrderParams&gt;; initialOrder: PermittedOrderParams; isConfirming: boolean; externalQuote: Readonly&lt;ThirdPartyQuote&gt;; panelQuote: Readonly&lt;PanelQuote&gt;; } &amp; { ...; }, Props&gt;, any&gt;'. Types of parameters 'props' and 'props' are incompatible. Type 'Matching&lt;{ order: Readonly&lt;PermittedOrderParams&gt;; initialOrder: PermittedOrderParams; isConfirming: boolean; externalQuote: Readonly&lt;ThirdPartyQuote&gt;; panelQuote: Readonly&lt;PanelQuote&gt;; } &amp; { ...; }, Props&gt;' is not assignable to type 'Readonly&lt;Props&gt;'. Types of property 'confirmOrder' are incompatible. Type 'ThunkAction&lt;void, State, void, Action&lt;any&gt;&gt;' is not assignable to type '(usabilityTestId: number, priceInCents: number) =&gt; void'."><pre class="notranslate"><code class="notranslate">Argument of type 'typeof OrderForm' is not assignable to parameter of type 'ComponentType&lt;Matching&lt;{ order: Readonly&lt;PermittedOrderParams&gt;; initialOrder: PermittedOrderParams; isConfirming: boolean; externalQuote: Readonly&lt;ThirdPartyQuote&gt;; panelQuote: Readonly&lt;PanelQuote&gt;; } &amp; { ...; }, Props&gt;&gt;'. Type 'typeof OrderForm' is not assignable to type 'ComponentClass&lt;Matching&lt;{ order: Readonly&lt;PermittedOrderParams&gt;; initialOrder: PermittedOrderParams; isConfirming: boolean; externalQuote: Readonly&lt;ThirdPartyQuote&gt;; panelQuote: Readonly&lt;PanelQuote&gt;; } &amp; { ...; }, Props&gt;, any&gt;'. Types of parameters 'props' and 'props' are incompatible. Type 'Matching&lt;{ order: Readonly&lt;PermittedOrderParams&gt;; initialOrder: PermittedOrderParams; isConfirming: boolean; externalQuote: Readonly&lt;ThirdPartyQuote&gt;; panelQuote: Readonly&lt;PanelQuote&gt;; } &amp; { ...; }, Props&gt;' is not assignable to type 'Readonly&lt;Props&gt;'. Types of property 'confirmOrder' are incompatible. Type 'ThunkAction&lt;void, State, void, Action&lt;any&gt;&gt;' is not assignable to type '(usabilityTestId: number, priceInCents: number) =&gt; void'. </code></pre></div> <p dir="auto">This was all working perfectly before, in fact 6.0.9 (which I'll be sticking to for now) was fantastic in that I was able to remove many of my type hacks. With your new version I'm forced to go back to my old tricks:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const mapDispatchToProps = { onCancel: cancelOrder, fetchExternalQuote, fetchPanelQuote, fetchQuoteQueued, confirmOrder, createOrder, } export const OrderForm = connect( (state: State) =&gt; ({ order: getOrder(state), initialOrder: Order.createEmpty(), isConfirming: isConfirming(state), externalQuote: getExternalQuote(state), panelQuote: getPanelQuote(state), }), { onCancel: cancelOrder, fetchExternalQuote, fetchPanelQuote, fetchQuoteQueued, confirmOrder, createOrder, } // :'( mapDispatchToProps as Pick&lt;ImplProps, keyof typeof mapDispatchToProps&gt; )(Impl)"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">mapDispatchToProps</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">onCancel</span>: <span class="pl-s1">cancelOrder</span><span class="pl-kos">,</span> fetchExternalQuote<span class="pl-kos">,</span> fetchPanelQuote<span class="pl-kos">,</span> fetchQuoteQueued<span class="pl-kos">,</span> confirmOrder<span class="pl-kos">,</span> createOrder<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-smi">OrderForm</span> <span class="pl-c1">=</span> <span class="pl-en">connect</span><span class="pl-kos">(</span> <span class="pl-kos">(</span><span class="pl-s1">state</span>: <span class="pl-smi">State</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">order</span>: <span class="pl-en">getOrder</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">initialOrder</span>: <span class="pl-smi">Order</span><span class="pl-kos">.</span><span class="pl-en">createEmpty</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">isConfirming</span>: <span class="pl-en">isConfirming</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">externalQuote</span>: <span class="pl-en">getExternalQuote</span><span class="pl-kos">(</span><span class="pl-s1">state</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">panelQuote</span>: <span class="pl-en">getPanelQuote</span><span class="pl-kos">(</span><span class="pl-s1">state</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">onCancel</span>: <span class="pl-s1">cancelOrder</span><span class="pl-kos">,</span> fetchExternalQuote<span class="pl-kos">,</span> fetchPanelQuote<span class="pl-kos">,</span> fetchQuoteQueued<span class="pl-kos">,</span> confirmOrder<span class="pl-kos">,</span> createOrder<span class="pl-kos">,</span> <span class="pl-kos">}</span> <span class="pl-c">// :'(</span> <span class="pl-s1">mapDispatchToProps</span> <span class="pl-k">as</span> <span class="pl-smi">Pick</span><span class="pl-kos">&lt;</span><span class="pl-smi">ImplProps</span><span class="pl-kos">,</span> <span class="pl-k">keyof</span> <span class="pl-k">typeof</span> <span class="pl-s1">mapDispatchToProps</span><span class="pl-kos">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-smi">Impl</span><span class="pl-kos">)</span></pre></div>
1
<p dir="auto">An estimator with multioutput support can be used for multilabel problems such as <a href="https://github.com/scikit-learn/scikit-learn/blob/ee328faa3601b40944ad43e28bce71860d39f2de/sklearn/ensemble/forest.py#L758"><code class="notranslate">RandomForestClassifier</code></a>. Its <a href="https://github.com/scikit-learn/scikit-learn/blob/ee328faa3601b40944ad43e28bce71860d39f2de/sklearn/ensemble/forest.py#L564"><code class="notranslate">predict_proba</code></a> methods returns</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/scikit-learn/scikit-learn/blob/ee328faa3601b40944ad43e28bce71860d39f2de/sklearn/ensemble/forest.py#L581-L582">scikit-learn/sklearn/ensemble/forest.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 581 to 582 in <a data-pjax="true" class="commit-tease-sha" href="/scikit-learn/scikit-learn/commit/ee328faa3601b40944ad43e28bce71860d39f2de">ee328fa</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="L581" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="581"></td> <td id="LC581" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> p : array of shape = [n_samples, n_classes], or a list of n_outputs</span> </td> </tr> <tr class="border-0"> <td id="L582" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="582"></td> <td id="LC582" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> such arrays if n_outputs &gt; 1.</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">Such estimators blends multilabel problems and multioutput problems because a multilabel problem is a special multioutput one.</p> <p dir="auto">Most of the estimators don't support multilabel directly and <a href="https://github.com/scikit-learn/scikit-learn/blob/ee328faa3601b40944ad43e28bce71860d39f2de/sklearn/multiclass.py#L133"><code class="notranslate">OneVsRestClassifier</code></a> is required. Its <a href="https://github.com/scikit-learn/scikit-learn/blob/ee328faa3601b40944ad43e28bce71860d39f2de/sklearn/multiclass.py#L318"><code class="notranslate">predict_proba</code></a> method returns</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/scikit-learn/scikit-learn/blob/ee328faa3601b40944ad43e28bce71860d39f2de/sklearn/multiclass.py#L337-L339">scikit-learn/sklearn/multiclass.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 337 to 339 in <a data-pjax="true" class="commit-tease-sha" href="/scikit-learn/scikit-learn/commit/ee328faa3601b40944ad43e28bce71860d39f2de">ee328fa</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="L337" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="337"></td> <td id="LC337" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> T : (sparse) array-like, shape = [n_samples, n_classes]</span> </td> </tr> <tr class="border-0"> <td id="L338" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="338"></td> <td id="LC338" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> Returns the probability of the sample for each class in the model,</span> </td> </tr> <tr class="border-0"> <td id="L339" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="339"></td> <td id="LC339" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> where classes are ordered as they are in `self.classes_`.</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">Therefore, for multilabel problems, these classes return different types of results when calling <code class="notranslate">predict_proba</code>. It can introduce some issue, for example, implementing multilabel support for <a href="https://github.com/scikit-learn/scikit-learn/blob/bac89c253b35a8f1a3827389fbee0f5bebcbc985/sklearn/ensemble/voting_classifier.py#L36"><code class="notranslate">VotingClassifier</code></a>.</p>
<p dir="auto">Right now, the content of <code class="notranslate">classes_</code> and the shape of the output of <code class="notranslate">predict_proba</code> and <code class="notranslate">decision_function</code> are inconsistent between estimators.<br> If an <a href="http://scikit-learn.org/dev/modules/multiclass.html#multiclass-and-multilabel-algorithms" rel="nofollow">estimator supports</a> multioutput multiclass, <code class="notranslate">classes_</code> will be <code class="notranslate">[[0, 1]] * n_outputs</code> and <code class="notranslate">predict_proba</code> will return an object array of length <code class="notranslate">n_outputs</code> where each is <code class="notranslate">(n_samples, 2)</code>.<br> If the estimator supports multi-label classification, but not multioutput multiclass, <code class="notranslate">classes_</code> will be <code class="notranslate">np.arange(n_outputs)</code> and <code class="notranslate">predict_proba</code> will be <code class="notranslate">(n_samples, n_outputs)</code>.</p> <p dir="auto">That leads to issues such as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="223399887" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/8773" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/8773/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/8773">#8773</a>, but also runs counter to the sklearn promise of a consistent API.<br> Given that even basic API like the <code class="notranslate">score</code> method is broken on multioutput multiclass (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="244101623" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/9414" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/9414/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/9414">#9414</a>), I'm not sure it's worth keeping this maintenance burden.</p> <p dir="auto">Alternatively we could detect in the multioutput multiclass classifiers that a problem is actually multilabel and use the appropriate shapes for that.</p> <p dir="auto">Either way, it's an incompatible change that's tricky to do with a deprecation cycle :-/</p>
1
<p dir="auto">Please go to Stack Overflow for help and support:</p> <p dir="auto"><a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">https://stackoverflow.com/questions/tagged/tensorflow</a></p> <p dir="auto">If you open a GitHub issue, here is our policy:</p> <ol dir="auto"> <li>It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead).</li> <li>The form below must be filled out.</li> <li>It shouldn't be a TensorBoard issue. Those go <a href="https://github.com/tensorflow/tensorboard/issues">here</a>.</li> </ol> <p dir="auto"><strong>Here's why we have that policy</strong>: TensorFlow developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.</p> <hr> <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>:</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:</li> <li><strong>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device</strong>:</li> <li><strong>TensorFlow installed from (source or binary)</strong>:</li> <li><strong>TensorFlow version (use command below)</strong>:</li> <li><strong>Python version</strong>:</li> <li><strong>Bazel version (if compiling from source)</strong>:</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>:</li> <li><strong>CUDA/cuDNN version</strong>:</li> <li><strong>GPU model and memory</strong>:</li> <li><strong>Exact command to reproduce</strong>:</li> </ul> <p dir="auto">You can collect some of this information using our environment capture script:</p> <p dir="auto"><a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh</a></p> <p dir="auto">You can obtain the TensorFlow version with:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="python -c &quot;import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)&quot;"><pre class="notranslate">python -c <span class="pl-s"><span class="pl-pds">"</span>import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)<span class="pl-pds">"</span></span></pre></div> <h3 dir="auto">Describe the problem</h3> <p dir="auto">Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.</p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">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. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.</p>
<p dir="auto">In my programe, I use f.nn.embedding_lookup as follow:</p> <p dir="auto">embedding = tf.get_variable("embedding", [200000, 128], tf.float32, initializer=tf. random_normal_initializer(stddev=0.1), trainable=True,partitioner=tf.fixed_size_partitioner(10))</p> <p dir="auto">word_embedding = tf.nn.embedding_lookup(embedding, query_tensor)<br> while(1):<br> sess.run(word_embedding )</p> <p dir="auto">when I start 30 worker,each worker qps is 3000.<br> but when I test tf.nn.embedding_lookup_sparse, each worker qps is 110000</p> <p dir="auto">how to solve this problem,any suggestion welcome</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=juergen.hoeller" rel="nofollow">Juergen Hoeller</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5587?redirect=false" rel="nofollow">SPR-5587</a></strong> and commented</p> <p dir="auto">Spring 3.0 provides compatibility with Servlet 3.0 containers such as GlassFish V3 already. Spring 3.1 (Q2 2011) is likely to provide optional support for Servlet 3.0's multipart form handling (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398100746" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11210" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11210/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11210">#11210</a>), and possibly for other Servlet 3.0 features that we can provide fallback solutions for as well.</p> <p dir="auto">Also to consider is support for Servlet 3.0 async processing in Spring MVC and for Servlet 3.0 auto-registration in Spring's general web deployment.</p> <p dir="auto"><a href="http://jcp.org/en/jsr/detail?id=315" rel="nofollow">http://jcp.org/en/jsr/detail?id=315</a></p> <hr> <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="398113427" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13162" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13162/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13162">#13162</a> Support for Servlet 3.0/3.1 asynchronous request processing</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398109562" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12529" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12529/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12529">#12529</a> Provide servlet 3.0 web fragment to startup application context without web.xml modifications</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398100746" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11210" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11210/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11210">#11210</a> Provide StandardMultipartResolver based on Servlet 3.0 Part API</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398108235" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12328" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12328/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12328">#12328</a> Support configuring Servlet container in Spring using Servlet 3.0 programmatic config</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398091039" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9840" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9840/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9840">#9840</a> Support for Tomcat's CometEvent enabled beans</li> </ul> <p dir="auto">18 votes, 21 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jbrackett" rel="nofollow">Josh Brackett</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7781?redirect=false" rel="nofollow">SPR-7781</a></strong> and commented</p> <p dir="auto">In Spring 3.0.4 this works as expected but was regressed in 3.0.5</p> <p dir="auto">We have a parameter in a method that looks like this:<br> <code class="notranslate">@RequestParam</code>(value = "removeList", required = false) List&lt;Long&gt; removeList</p> <p dir="auto">Where the parameter removeList on the page is a collection of checkboxes like below:</p> <p dir="auto">&lt;input type="checkbox" value="7792" name="removeList"&gt;<br> The method is getting Strings instead of Longs though so we get exceptions in the method when the type isn't what is expected.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</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="398108988" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12440" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12440/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12440">#12440</a> <code class="notranslate">@RequestParam</code> List list, will be filled up with String objects instead of Long objects (<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="398108988" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12440" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12440/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12440">#12440</a> <code class="notranslate">@RequestParam</code> List list, will be filled up with String objects instead of Long objects</li> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398108897" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12422" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12422/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12422">#12422</a> Wrong data-type resolution using custom Converter</li> </ul> <p dir="auto">1 votes, 6 watchers</p>
0
<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>: Yes</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Linux Ubuntu 16.04</li> <li><strong>TensorFlow installed from (source or binary)</strong>: from binary(pip install)</li> <li><strong>TensorFlow version (use command below)</strong>:1.9.0</li> <li><strong>Python version</strong>: 3.6.4</li> <li><strong>Bazel version (if compiling from source)</strong>: None</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: None</li> <li><strong>CUDA/cuDNN version</strong>: CUDA-8.0</li> <li><strong>GPU model and memory</strong>: GTX1080Ti, 12G</li> <li><strong>Exact command to reproduce</strong>: just as the code below</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">As the official document <a href="https://www.tensorflow.org/guide/keras" rel="nofollow">here</a>, tf.keras.models could be saved with <code class="notranslate">model.save('my_model.h5')</code>, namely, "The entire model can be saved to a file that contains the weight values, the model's configuration, and even the optimizer's configuration". However, when I load the model with <code class="notranslate">model = tf.keras.models.load_model('lenet_mnist.h5')</code>, it throws an error: <strong>"You are trying to load a weight file containing 5 layers into a model with 0 layers."</strong></p> <h3 dir="auto">Source code / logs</h3> <h4 dir="auto">source code(lenet_mnist.py)</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf import numpy as np def train_test_data(): (x_train, y_train),(x_test, y_test) = tf.keras.datasets.mnist.load_data() x_train, x_test = x_train / 255.0, x_test / 255.0 x_train = np.expand_dims(x_train, -1) x_test = np.expand_dims(x_test, -1) return x_train, y_train, x_test, y_test def train_fn(): x_train, y_train, x_test, y_test = train_test_data() model = tf.keras.models.Sequential([ tf.keras.layers.Conv2D(6, [5, 5], strides=1, padding=&quot;same&quot;, use_bias=True), tf.keras.layers.AvgPool2D([2, 2], 2, padding=&quot;valid&quot;), tf.keras.layers.LeakyReLU(0), tf.keras.layers.Conv2D(16, [5, 5], strides=1, padding=&quot;valid&quot;, use_bias=True), tf.keras.layers.AvgPool2D([2, 2], 2, padding=&quot;valid&quot;), tf.keras.layers.LeakyReLU(0), tf.keras.layers.Conv2D(120, [5, 5], strides=1, padding=&quot;valid&quot;, use_bias=True), tf.keras.layers.Flatten(), tf.keras.layers.Dense(84, activation=tf.nn.relu), tf.keras.layers.Dense(10, activation=tf.nn.softmax), ]) model.compile(optimizer='adam', loss='sparse_categorical_crossentropy', metrics=['accuracy']) model.fit(x_train, y_train, epochs=5, batch_size=300) loss, test_acc = model.evaluate(x_test, y_test, verbose=1) print(&quot;test_acc: &quot; + str(test_acc)) model.save('lenet_mnist.h5') def test_fn(): x_train, y_train, x_test, y_test = train_test_data() model = tf.keras.models.load_model('lenet_mnist.h5') loss, test_acc = model.evaluate(x_test, y_test, verbose=1) print(&quot;test_acc: &quot; + str(test_acc)) def main(unused): train_fn() test_fn() if __name__ == '__main__': tf.app.run()"><pre class="notranslate"><code class="notranslate">import tensorflow as tf import numpy as np def train_test_data(): (x_train, y_train),(x_test, y_test) = tf.keras.datasets.mnist.load_data() x_train, x_test = x_train / 255.0, x_test / 255.0 x_train = np.expand_dims(x_train, -1) x_test = np.expand_dims(x_test, -1) return x_train, y_train, x_test, y_test def train_fn(): x_train, y_train, x_test, y_test = train_test_data() model = tf.keras.models.Sequential([ tf.keras.layers.Conv2D(6, [5, 5], strides=1, padding="same", use_bias=True), tf.keras.layers.AvgPool2D([2, 2], 2, padding="valid"), tf.keras.layers.LeakyReLU(0), tf.keras.layers.Conv2D(16, [5, 5], strides=1, padding="valid", use_bias=True), tf.keras.layers.AvgPool2D([2, 2], 2, padding="valid"), tf.keras.layers.LeakyReLU(0), tf.keras.layers.Conv2D(120, [5, 5], strides=1, padding="valid", use_bias=True), tf.keras.layers.Flatten(), tf.keras.layers.Dense(84, activation=tf.nn.relu), tf.keras.layers.Dense(10, activation=tf.nn.softmax), ]) model.compile(optimizer='adam', loss='sparse_categorical_crossentropy', metrics=['accuracy']) model.fit(x_train, y_train, epochs=5, batch_size=300) loss, test_acc = model.evaluate(x_test, y_test, verbose=1) print("test_acc: " + str(test_acc)) model.save('lenet_mnist.h5') def test_fn(): x_train, y_train, x_test, y_test = train_test_data() model = tf.keras.models.load_model('lenet_mnist.h5') loss, test_acc = model.evaluate(x_test, y_test, verbose=1) print("test_acc: " + str(test_acc)) def main(unused): train_fn() test_fn() if __name__ == '__main__': tf.app.run() </code></pre></div> <h4 dir="auto">log</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;lenet_mnist.py&quot;, line 60, in &lt;module&gt; tf.app.run() File &quot;/home/wangwenxiao/anaconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py&quot;, line 125, in run _sys.exit(main(argv)) File &quot;lenet_mnist.py&quot;, line 57, in main test_fn() File &quot;lenet_mnist.py&quot;, line 49, in test_fn model = tf.keras.models.load_model('lenet_mnist.h5') File &quot;/home/wangwenxiao/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/engine/saving.py&quot;, line 232, in load_model load_weights_from_hdf5_group(f['model_weights'], model.layers) File &quot;/home/wangwenxiao/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/engine/saving.py&quot;, line 732, in load_weights_from_hdf5_group ' layers.') ValueError: You are trying to load a weight file containing 5 layers into a model with 0 layers."><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "lenet_mnist.py", line 60, in &lt;module&gt; tf.app.run() File "/home/wangwenxiao/anaconda3/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 125, in run _sys.exit(main(argv)) File "lenet_mnist.py", line 57, in main test_fn() File "lenet_mnist.py", line 49, in test_fn model = tf.keras.models.load_model('lenet_mnist.h5') File "/home/wangwenxiao/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/engine/saving.py", line 232, in load_model load_weights_from_hdf5_group(f['model_weights'], model.layers) File "/home/wangwenxiao/anaconda3/lib/python3.6/site-packages/tensorflow/python/keras/engine/saving.py", line 732, in load_weights_from_hdf5_group ' layers.') ValueError: You are trying to load a weight file containing 5 layers into a model with 0 layers. </code></pre></div>
<p dir="auto">Bug. Compiled Tensorflow 1.8 and 1.9rc0 both fail. Linux Mint 18.2. Python-3.5.2 CUDA 9.0/CuDNN 7.0</p> <p dir="auto">Have I written custom code: I've attached a file<br> OS Platform and Distribution: Linux Mint 18.2<br> TensorFlow installed from: source<br> TensorFlow version: 1.8 and 1.9rc0<br> Bazel version: 0.13.1<br> CUDA/cuDNN version: 9.0/7.0<br> GPU model and memory: Nvidia 1080Ti<br> Exact command to reproduce: run the attached script.</p> <p dir="auto">When using tf.keras.SequentialModel to build a network, and using tf.keras.callbacks.ModelCheckpoint to save the model/weights during training, the saved hdf5 file cannot be loaded into the same model.</p> <p dir="auto">I believe the same problem was observed in keras-1.0<br> See here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="147802910" data-permission-text="Title is private" data-url="https://github.com/keras-team/keras/issues/2281" data-hovercard-type="issue" data-hovercard-url="/keras-team/keras/issues/2281/hovercard" href="https://github.com/keras-team/keras/issues/2281">keras-team/keras#2281</a><br> And reportedly fixed here: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/keras-team/keras/commit/1206120d1084cbe45dc2876f002cb572a97e3844/hovercard" href="https://github.com/keras-team/keras/commit/1206120d1084cbe45dc2876f002cb572a97e3844">keras-team/keras@<tt>1206120</tt></a></p> <p dir="auto">I've attached a minimal script which will readily reproduce the problem here: <a href="https://github.com/tensorflow/tensorflow/files/2107894/save-bug.txt">save-bug.txt</a></p> <p dir="auto">The output error I receive when attempting to load the model weights into the same model which I saved them from is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;./save-bug.py&quot;, line 38, in &lt;module&gt; predict() File &quot;./save-bug.py&quot;, line 31, in predict model.load_weights('test.hdf5'); File &quot;/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/_impl/keras/engine/network.py&quot;, line 1190, in load_weights saving.load_weights_from_hdf5_group(f, self.layers) File &quot;/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/_impl/keras/engine/saving.py&quot;, line 697, in load_weights_from_hdf5_group ' layers.') ValueError: You are trying to load a weight file containing 1 layers into a model with 0 layers."><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "./save-bug.py", line 38, in &lt;module&gt; predict() File "./save-bug.py", line 31, in predict model.load_weights('test.hdf5'); File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/_impl/keras/engine/network.py", line 1190, in load_weights saving.load_weights_from_hdf5_group(f, self.layers) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/keras/_impl/keras/engine/saving.py", line 697, in load_weights_from_hdf5_group ' layers.') ValueError: You are trying to load a weight file containing 1 layers into a model with 0 layers. </code></pre></div>
1
<pre class="notranslate">unsafe.Sizeof(image.RGBAColor{}) == 8 this means that a 32-bit-per-pixel image actually uses 64 bits, which seems a harsh price to pay. in general, i'd hope that a struct size be padded to fulfill the alignment requirement of its largest member and no more.</pre>
<p dir="auto">multipart.ReadForm is supposed to store up to maxMemory bytes in RAM and then the remainder on disk. The idea, presumably, is to prevent RAM exhaustion.</p> <p dir="auto">Temporary files are created using ioutil.TempFile. os.TempDir is used to determine the temporary directory to use. However, os.TempDir() returns $TMPDIR, or, failing that, "/tmp".</p> <p dir="auto">The problem is that on modern Linux systems, /tmp is a tmpfs and is thus hosted in RAM. This defeats the entire objective of saving large multipart parts to files.</p> <p dir="auto">/var/tmp should always be backed by disk. The FHS states the purpose of "/var/tmp" as "temporary files preserved between system reboots." multipart should use /var/tmp, not /tmp.</p> <p dir="auto">(Since there is no actual need for temporary multipart files to be preserved across reboots, it would be nice if the FHS provided something in between, thus allowing for periodic deletion on boot or so on, but alas it does not.)</p> <p dir="auto">Possible solutions:</p> <ul dir="auto"> <li>Introduce an os.LargeTempDir() which returns a temporary directory to be used for large files. Change multipart to pass this value to ioutil.TempFile.</li> </ul>
0
<p dir="auto">If I place Grid inside a Collapse component, it doesn't expand and collapse smoothly. It expands a little more than needed and then collapses a bit back. Is that a bug? Or is there some workaround to use Grid inside collapsible part of the UI? Thanks.</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">Expand and collapse smoothly like it does without Grid inside</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto"><a href="https://codesandbox.io/s/mzoqprz61y?module=%2FMyApp.jsx" rel="nofollow">https://codesandbox.io/s/mzoqprz61y?module=%2FMyApp.jsx</a></p> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.18</td> </tr> <tr> <td>React</td> <td>16.0.0</td> </tr> <tr> <td>browser</td> <td>Safari, Chrome, Firefox</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/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">Follow the next.js example in this repo and get a working material-ui+next.js setup</p> <h2 dir="auto">Current Behavior</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" DONE Compiled successfully in 1897ms 11:35:49 AM Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Check your code at _document.js?entry:65. in Unknown (created by Container) in AppContainer (created by Container) in Container (created by App) in div (created by App) in App { Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Check the render method of `StatelessComponent`. at invariant (/Users/albinekb/Devel/Temp/nextjs/node_modules/fbjs/lib/invariant.js:44:15) at ReactCompositeComponentWrapper.instantiateReactComponent [as _instantiateReactComponent] (/Users/albinekb/Devel/Temp/nextjs/node_modules/react-dom/lib/instantiateReactComponent.js:74:56) at ReactCompositeComponentWrapper.performInitialMount (/Users/albinekb/Devel/Temp/nextjs/node_modules/react-dom/lib/ReactCompositeComponent.js:366:22) at ReactCompositeComponentWrapper.mountComponent (/Users/albinekb/Devel/Temp/nextjs/node_modules/react-dom/lib/ReactCompositeComponent.js:257:21) at Object.mountComponent (/Users/albinekb/Devel/Temp/nextjs/node_modules/react-dom/lib/ReactReconciler.js:45:35) at ReactCompositeComponentWrapper.performInitialMount (/Users/albinekb/Devel/Temp/nextjs/node_modules/react-dom/lib/ReactCompositeComponent.js:370:34)"><pre class="notranslate"><code class="notranslate"> DONE Compiled successfully in 1897ms 11:35:49 AM Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Check your code at _document.js?entry:65. in Unknown (created by Container) in AppContainer (created by Container) in Container (created by App) in div (created by App) in App { Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Check the render method of `StatelessComponent`. at invariant (/Users/albinekb/Devel/Temp/nextjs/node_modules/fbjs/lib/invariant.js:44:15) at ReactCompositeComponentWrapper.instantiateReactComponent [as _instantiateReactComponent] (/Users/albinekb/Devel/Temp/nextjs/node_modules/react-dom/lib/instantiateReactComponent.js:74:56) at ReactCompositeComponentWrapper.performInitialMount (/Users/albinekb/Devel/Temp/nextjs/node_modules/react-dom/lib/ReactCompositeComponent.js:366:22) at ReactCompositeComponentWrapper.mountComponent (/Users/albinekb/Devel/Temp/nextjs/node_modules/react-dom/lib/ReactCompositeComponent.js:257:21) at Object.mountComponent (/Users/albinekb/Devel/Temp/nextjs/node_modules/react-dom/lib/ReactReconciler.js:45:35) at ReactCompositeComponentWrapper.performInitialMount (/Users/albinekb/Devel/Temp/nextjs/node_modules/react-dom/lib/ReactCompositeComponent.js:370:34) </code></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Get this code <a href="https://github.com/callemall/material-ui/tree/v1-beta/examples/nextjs">https://github.com/callemall/material-ui/tree/v1-beta/examples/nextjs</a></li> <li>Install it <code class="notranslate">yarn</code></li> <li>Run it <code class="notranslate">yarn dev</code></li> </ol>
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/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">The <code class="notranslate">import()</code> promise returns the entire module, including <code class="notranslate">default</code>.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">The <code class="notranslate">import()</code> promise returns the <code class="notranslate">default</code> export if it exists; otherwise, it returns the entire module. This breaks the spec-compliant method of loading default exports:</p> <p dir="auto"><code class="notranslate">import('/some-module').then(module =&gt; module.default);</code></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto"><a href="https://repro-ilvgtolutc.now.sh" rel="nofollow">https://repro-ilvgtolutc.now.sh</a><br> <a href="https://github.com/tptee/nextjs-import-spec-repro">https://github.com/tptee/nextjs-import-spec-repro</a></p> <h2 dir="auto">Context</h2> <p dir="auto">I'm trying to create examples for my library that uses <code class="notranslate">import()</code>, and <code class="notranslate">next</code>'s behavior is surprising compared to CRA and custom setups. Ensuring spec compliance would allow examples to apply everywhere and be shareable across environments.</p> <p dir="auto">These lines in the <code class="notranslate">handle-import</code> Babel plugin seem to be the offenders:</p> <ul dir="auto"> <li><a href="https://github.com/zeit/next.js/blob/v3-beta/server/build/babel/plugins/handle-import.js#L16">https://github.com/zeit/next.js/blob/v3-beta/server/build/babel/plugins/handle-import.js#L16</a></li> <li><a href="https://github.com/zeit/next.js/blob/v3-beta/server/build/babel/plugins/handle-import.js#L26">https://github.com/zeit/next.js/blob/v3-beta/server/build/babel/plugins/handle-import.js#L26</a></li> <li><a href="https://github.com/zeit/next.js/blob/v3-beta/server/build/babel/plugins/handle-import.js#L32">https://github.com/zeit/next.js/blob/v3-beta/server/build/babel/plugins/handle-import.js#L32</a></li> </ul> <p dir="auto">Happy to PR a fix, although it'll likely be a breaking change and (maybe) a usability loss.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>v3.0.1-beta.17</td> </tr> <tr> <td>node</td> <td>v7.9.0</td> </tr> <tr> <td>OS</td> <td>macOS 10.12.5</td> </tr> <tr> <td>browser</td> <td>Chrome 60.0.3112.50 (Official Build) beta (64-bit)</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/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">I just started using Next.js and so far I've been blown away by the combination of features and simplicity.</p> <p dir="auto">I'd like to donate in some way. How should I go about doing that? An <a href="https://opencollective.com/" rel="nofollow">Open Collective</a>, maybe?</p>
0
<h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature</h2> <p dir="auto">Support for RPCs having timeouts is being added in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="521237903" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/29601" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/29601/hovercard" href="https://github.com/pytorch/pytorch/pull/29601">#29601</a>, but this isn't currently per RPC. We would like to extend this to a per-RPC timeout that is configurable by calls to <code class="notranslate">rpc.rpc_(a)sync</code>. The reason for this is that the user may want more granular control over how long they expect an RPC to last. See the discussion in the mentioned PR for some more context on the specific changes that would be needed to implement this.</p> <p dir="auto">cc <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/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/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/xush6528/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xush6528">@xush6528</a></p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature</h2> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="510335566" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/28392" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/28392/hovercard" href="https://github.com/pytorch/pytorch/pull/28392">#28392</a> is adding timeouts per RPC, but it is currently a global timeout. Per <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>'s suggestion, we should:</p> <p dir="auto">1.Have a timeout parameter in RpcAgent.send().<br> 2. For user RPCs, we always fill that in with the default rpc timeout.<br> 3. For system RPCs, it'll default to 0 (which would be infinite) unless the system RPC sets it.<br> 4. Later we can allow the user level RPC API to specify timeouts as well.## Motivation</p> <p dir="auto">cc <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/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/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/xush6528/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/xush6528">@xush6528</a></p>
1
<p dir="auto">I have some problems with non-accurate placing of images created by imshow. Output to PNG works fine, but the squares are rectangular and misaligned with the grid when plotting small squares to PDF (order of magnitude around 1-2 inches for the whole plot). I didn't inspect the contents of PDF, but I suspect that coordinates might be written with too low precision.</p> <p dir="auto">Here's a small example (maybe not the minimal possible, but hopefully short enough):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib.pyplot as plt plt.gcf().set_size_inches([1,1]) a=np.random.rand(20,20) im = plt.imshow(a, interpolation='nearest', origin='lower', extent=[-2,2,-2,2]) plt.gca().set_xticks(np.arange(-2,2,0.2)) plt.gca().set_yticks(np.arange(-2,2,0.2)) plt.gca().xaxis.set_ticklabels([]) plt.gca().yaxis.set_ticklabels([]) plt.grid(ls=':',lw=0.1,color='white') plt.savefig('test.pdf')"><pre class="notranslate"><code class="notranslate">import numpy as np import matplotlib.pyplot as plt plt.gcf().set_size_inches([1,1]) a=np.random.rand(20,20) im = plt.imshow(a, interpolation='nearest', origin='lower', extent=[-2,2,-2,2]) plt.gca().set_xticks(np.arange(-2,2,0.2)) plt.gca().set_yticks(np.arange(-2,2,0.2)) plt.gca().xaxis.set_ticklabels([]) plt.gca().yaxis.set_ticklabels([]) plt.grid(ls=':',lw=0.1,color='white') plt.savefig('test.pdf') </code></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/15606/2550376/6e526552-b682-11e3-820b-4c39a9ef6b1b.png"><img src="https://cloud.githubusercontent.com/assets/15606/2550376/6e526552-b682-11e3-820b-4c39a9ef6b1b.png" alt="x" style="max-width: 100%;"></a></p> <p dir="auto">I'm using python 3.3 and matplotlib 1.3.1.</p>
<p dir="auto">The following script show a mis-alignment between grid lines and image patterns while they should be aligned:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt n = 16 fig = plt.figure(figsize=(6,6)) Z = np.zeros((n,n)) Z[::2,::2] = Z[1::2,1::2] = 1 plt.imshow(Z, interpolation='none', cmap=plt.cm.gray, extent=[0,n,0,n], alpha=0.25) plt.xticks(np.arange(0,n), []), plt.yticks(np.arange(0,n), []) plt.grid(ls='solid') delta = 0.01 plt.xlim(1-delta,1+delta), plt.ylim(1-delta,1+delta) plt.savefig('pylab-grid.png') plt.savefig('pylab-grid.pdf')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-s1">matplotlib</span>.<span class="pl-en">use</span>(<span class="pl-s">'Agg'</span>) <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">n</span> <span class="pl-c1">=</span> <span class="pl-c1">16</span> <span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">6</span>,<span class="pl-c1">6</span>)) <span class="pl-v">Z</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros</span>((<span class="pl-s1">n</span>,<span class="pl-s1">n</span>)) <span class="pl-v">Z</span>[::<span class="pl-c1">2</span>,::<span class="pl-c1">2</span>] <span class="pl-c1">=</span> <span class="pl-v">Z</span>[<span class="pl-c1">1</span>::<span class="pl-c1">2</span>,<span class="pl-c1">1</span>::<span class="pl-c1">2</span>] <span class="pl-c1">=</span> <span class="pl-c1">1</span> <span class="pl-s1">plt</span>.<span class="pl-en">imshow</span>(<span class="pl-v">Z</span>, <span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s">'none'</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s1">plt</span>.<span class="pl-s1">cm</span>.<span class="pl-s1">gray</span>, <span class="pl-s1">extent</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>,<span class="pl-s1">n</span>,<span class="pl-c1">0</span>,<span class="pl-s1">n</span>], <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">0.25</span>) <span class="pl-s1">plt</span>.<span class="pl-en">xticks</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-s1">n</span>), []), <span class="pl-s1">plt</span>.<span class="pl-en">yticks</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-s1">n</span>), []) <span class="pl-s1">plt</span>.<span class="pl-en">grid</span>(<span class="pl-s1">ls</span><span class="pl-c1">=</span><span class="pl-s">'solid'</span>) <span class="pl-s1">delta</span> <span class="pl-c1">=</span> <span class="pl-c1">0.01</span> <span class="pl-s1">plt</span>.<span class="pl-en">xlim</span>(<span class="pl-c1">1</span><span class="pl-c1">-</span><span class="pl-s1">delta</span>,<span class="pl-c1">1</span><span class="pl-c1">+</span><span class="pl-s1">delta</span>), <span class="pl-s1">plt</span>.<span class="pl-en">ylim</span>(<span class="pl-c1">1</span><span class="pl-c1">-</span><span class="pl-s1">delta</span>,<span class="pl-c1">1</span><span class="pl-c1">+</span><span class="pl-s1">delta</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'pylab-grid.png'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">'pylab-grid.pdf'</span>)</pre></div>
1
<p dir="auto">From the documentation on <a href="https://material-ui.com/layout/grid/#full-width-vs-centered" rel="nofollow">Full-width vs Centered</a>, both example look pretty much the same (except for different column size for child items but I don't think that's what "full-width" and "centered" are about, correct me if I'm wrong).</p> <p dir="auto">AFAIK, full-width &amp; centered are equivalent of <a href="https://getbootstrap.com/docs/4.0/layout/overview/" rel="nofollow">Bootstrap's</a> <code class="notranslate">container-fluid</code> and <code class="notranslate">container</code>, right?</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> <ul dir="auto"> <li>Examples should look significantly different between Full-Width and Centered (see <a href="https://getbootstrap.com/docs/4.0/layout/overview/" rel="nofollow">Bootstrap</a>)</li> <li>Documentation should specify which part of the code is responsible for full-width and centered</li> </ul> <h2 dir="auto">Current Behavior</h2> <ul dir="auto"> <li>I don't think the example is correct</li> </ul> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ul dir="auto"> <li>Just copy the code for Centered Grid from <a href="https://material-ui.com/layout/grid/#full-width-vs-centered" rel="nofollow">https://material-ui.com/layout/grid/#full-width-vs-centered</a> on to your project, you don't see any effects that would be considered "centered"</li> </ul> <h2 dir="auto">Context</h2> <ul dir="auto"> <li>Just got confused by the documentation. I think the examples need to be updated.</li> </ul>
<h3 dir="auto">Problem description</h3> <p dir="auto"><strong>Only on Firefox</strong>, day 2016-10-16 is missing and day 2016-10-15 is duplicated. Actually, it seems like the October month, in every year, has a pair of missing/duplicate days. Examples:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/a1e5bb185795000aa953afacaab216a514b823b2273a24d340363070feca2fa0/68747470733a2f2f692e6779617a6f2e636f6d2f65316165333666336266363735663461643932303632336637623166363637302e706e67"><img src="https://camo.githubusercontent.com/a1e5bb185795000aa953afacaab216a514b823b2273a24d340363070feca2fa0/68747470733a2f2f692e6779617a6f2e636f6d2f65316165333666336266363735663461643932303632336637623166363637302e706e67" alt="" data-canonical-src="https://i.gyazo.com/e1ae36f3bf675f4ad920623f7b1f6670.png" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/7379a4170fd355b892ea71ab350e6ea994ba2b5a781737d116fb4333025a71ad/68747470733a2f2f692e6779617a6f2e636f6d2f66633139376536393862353733383265623330313365313630653138656231392e706e67"><img src="https://camo.githubusercontent.com/7379a4170fd355b892ea71ab350e6ea994ba2b5a781737d116fb4333025a71ad/68747470733a2f2f692e6779617a6f2e636f6d2f66633139376536393862353733383265623330313365313630653138656231392e706e67" alt="" data-canonical-src="https://i.gyazo.com/fc197e698b57382eb3013e160e18eb19.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Link to minimally-working code that reproduces the issue</h3> <p dir="auto">Well, you can just go to <a href="http://www.material-ui.com/#/components/date-picker" rel="nofollow">http://www.material-ui.com/#/components/date-picker</a> and check it out. <strong>Remember to test on Firefox</strong>.</p> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 0.15.4, but as you can see the website is also bugged</li> <li>React: 15.3.2, but the website...</li> <li>Browser: Tested on chrome and firefox, only firefox has problems. Chrome works correctly.</li> </ul>
0
<p dir="auto">On current master (0.4.0-dev+6723), I ran <code class="notranslate">Pkg.update()</code> and got this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO: Computing changes... ERROR: TypeError: map_to!: in typeassert, expected Array{VersionNumber,1}, got Array{VersionNumber,1} in map_to! at abstractarray.jl:1307 in map at ./abstractarray.jl:1326 in prune_versions at ./pkg/query.jl:232 in prune_dependencies at ./pkg/query.jl:387 in resolve at ./pkg/entry.jl:414 in update at ./pkg/entry.jl:306 in anonymous at pkg/dir.jl:31 in cd at ./file.jl:22 in cd at pkg/dir.jl:31 in update at ./pkg.jl:45"><pre class="notranslate"><code class="notranslate">INFO: Computing changes... ERROR: TypeError: map_to!: in typeassert, expected Array{VersionNumber,1}, got Array{VersionNumber,1} in map_to! at abstractarray.jl:1307 in map at ./abstractarray.jl:1326 in prune_versions at ./pkg/query.jl:232 in prune_dependencies at ./pkg/query.jl:387 in resolve at ./pkg/entry.jl:414 in update at ./pkg/entry.jl:306 in anonymous at pkg/dir.jl:31 in cd at ./file.jl:22 in cd at pkg/dir.jl:31 in update at ./pkg.jl:45 </code></pre></div> <p dir="auto">Unless I am missing something the 'expected' and 'got' types match.</p>
<p dir="auto">Reproduce on</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Version 0.4.0-dev+6540 (2015-08-08 20:25 UTC) Commit f64cb1d* (0 days old master)"><pre class="notranslate"><code class="notranslate">Version 0.4.0-dev+6540 (2015-08-08 20:25 UTC) Commit f64cb1d* (0 days old master) </code></pre></div> <ol dir="auto"> <li>Checkout master of Convex.jl (<code class="notranslate">e7cc681592be8494965e80da2e210acef276b775</code>)</li> <li><code class="notranslate">Base.compilecache("Convex")</code></li> <li><code class="notranslate">Pkg.test("Convex")</code></li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: LoadError: LoadError: LoadError: TypeError: call: in new, expected Dict{Tuple{Symbol,UInt64},Dict{UInt64,Union{AbstractArray{T,N},Number}}}, got Dict{Tuple{Symbol,UInt64},Dict{UInt64,Union{AbstractArray{T,N},Number}}} in call at /Users/idunning/.julia/v0.4/Convex/src/conic_form.jl:70 in conic_problem at /Users/idunning/.julia/v0.4/Convex/src/problems.jl:110 in solve! at /Users/idunning/.julia/v0.4/Convex/src/solution.jl:32 in solve! at /Users/idunning/.julia/v0.4/Convex/src/solution.jl:10 in anonymous at /Users/idunning/.julia/v0.3/Convex/test/test_affine.jl:12 in context at /Users/idunning/.julia/v0.4/FactCheck/src/FactCheck.jl:417 in anonymous at /Users/idunning/.julia/v0.3/Convex/test/test_affine.jl:7 in facts at /Users/idunning/.julia/v0.4/FactCheck/src/FactCheck.jl:391 in include at ./boot.jl:254 in include_from_node1 at ./loading.jl:263 in anonymous at no file:21 in include at ./boot.jl:254 in include_from_node1 at ./loading.jl:263 in anonymous at no file:36 in include at ./boot.jl:254 in include_from_node1 at ./loading.jl:263 in process_options at ./client.jl:308 in _start at ./client.jl:411 while loading /Users/idunning/.julia/v0.3/Convex/test/test_affine.jl, in expression starting on line 6 while loading /Users/idunning/.julia/v0.3/Convex/test/runtests_single_solver.jl, in expression starting on line 19 while loading /Users/idunning/.julia/v0.3/Convex/test/runtests.jl, in expression starting on line 32"><pre class="notranslate"><code class="notranslate">ERROR: LoadError: LoadError: LoadError: TypeError: call: in new, expected Dict{Tuple{Symbol,UInt64},Dict{UInt64,Union{AbstractArray{T,N},Number}}}, got Dict{Tuple{Symbol,UInt64},Dict{UInt64,Union{AbstractArray{T,N},Number}}} in call at /Users/idunning/.julia/v0.4/Convex/src/conic_form.jl:70 in conic_problem at /Users/idunning/.julia/v0.4/Convex/src/problems.jl:110 in solve! at /Users/idunning/.julia/v0.4/Convex/src/solution.jl:32 in solve! at /Users/idunning/.julia/v0.4/Convex/src/solution.jl:10 in anonymous at /Users/idunning/.julia/v0.3/Convex/test/test_affine.jl:12 in context at /Users/idunning/.julia/v0.4/FactCheck/src/FactCheck.jl:417 in anonymous at /Users/idunning/.julia/v0.3/Convex/test/test_affine.jl:7 in facts at /Users/idunning/.julia/v0.4/FactCheck/src/FactCheck.jl:391 in include at ./boot.jl:254 in include_from_node1 at ./loading.jl:263 in anonymous at no file:21 in include at ./boot.jl:254 in include_from_node1 at ./loading.jl:263 in anonymous at no file:36 in include at ./boot.jl:254 in include_from_node1 at ./loading.jl:263 in process_options at ./client.jl:308 in _start at ./client.jl:411 while loading /Users/idunning/.julia/v0.3/Convex/test/test_affine.jl, in expression starting on line 6 while loading /Users/idunning/.julia/v0.3/Convex/test/runtests_single_solver.jl, in expression starting on line 19 while loading /Users/idunning/.julia/v0.3/Convex/test/runtests.jl, in expression starting on line 32 </code></pre></div> <p dir="auto">(I've wrapped the lines to make it clear they are the same type)</p> <p dir="auto">To be clear, this doesn't happen with the non-precompiled version. So maybe of interest to <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>.</p>
1
<p dir="auto">without running any celery worker<br> celery --version</p> <blockquote> <blockquote> <blockquote> <p dir="auto">4.3.1 (rhubarb)<br> celery inspect ping<br> Error: No nodes replied within time constraint.<br> echo $?<br> 69</p> </blockquote> </blockquote> </blockquote> <p dir="auto">pip install celery==5.0.5</p> <p dir="auto">celery --version</p> <blockquote> <blockquote> <blockquote> <p dir="auto">5.0.5 (singularity)<br> celery inspect ping<br> No nodes replied within time constraint<br> echo $?<br> 0</p> </blockquote> </blockquote> </blockquote> <h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>: 5.0.x</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <h3 dir="auto">Python Packages</h3> <h3 dir="auto">Other Dependencies</h3> <h2 dir="auto">Minimally Reproducible Test Case</h2> <p dir="auto">See start Issue</p> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">Exit with intended value</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">Exit with 0</p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+label%3A%22Category%3A+Documentation%22+">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue<br> (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h1 dir="auto">Description</h1> <p dir="auto">I could not find any statement in the documentation (or bug reports) about whether or not Celery supports interoperability across versions among the participants using a Celery queue.</p> <p dir="auto">Background: I am working on upgrading a development environment that has long been unmaintained. It has a user component that distributes work through celery to 100+ workers. I am upgrading the user component, including a newer Celery version (4,4,7) than the workers (3,1.26). That almost works but not entirely; digging in internal structures shows "error" strings, the details of which are not pertinent to this request and I would have to dig through the Celery code and messages to understand them. First I'll downgrade so all parts are using the same version to see if that fixes my problem.</p> <p dir="auto">What I really wanted to do was to see if Celery claims support for interoperability across versions. But I could not find anything in the documentation regarding cross-version interoperability or non-support of such a thing. Because Celery enables distribution of work, it would be great if here was some interoperability across versions, but I cannot even determine if that is an intended part of the design.</p> <h1 dir="auto">Suggestions</h1> <p dir="auto">First, I'm just looking for a statement about support or non-support of interoperability across versions. If it is supported, then something about the constraints about what versions can be mixed, e.g. it's ok across minor versions but not major versions.</p> <p dir="auto">Maybe this is documented somewhere, but I could not come up with any searches to find it. This sort of thing does not lend itself to nice targeted searches.</p>
0
<p dir="auto">React version: 16.12.0</p> <h2 dir="auto">Steps To Reproduce</h2> <p dir="auto">A component that suspends as a result of a context update is never rendered to DOM after suspension is finished.</p> <p dir="auto">Link to code example:</p> <p dir="auto"><a href="https://codesandbox.io/s/react-suspense-context-bug-rklls?file=/package.json:163-170" rel="nofollow">https://codesandbox.io/s/react-suspense-context-bug-rklls?file=/package.json:163-170</a></p> <h2 dir="auto">The current behavior</h2> <p dir="auto">If a component suspends as a result of a context update, the component's render is called after suspension is finished but the result of the render is not reflected in the DOM (and effects aren't called).</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">If a component suspends as a result of a context update, the component's render should be called and flushed to the DOM and effects called.</p> <h2 dir="auto">Related Issues:</h2> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="522446729" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/17356" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/17356/hovercard" href="https://github.com/facebook/react/issues/17356">#17356</a> - seems related to memoization but this does not use any memoization</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> bug (I think?)</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const [value, setValue] = useState(&quot;default&quot;); return ( &lt;div className=&quot;App&quot;&gt; &lt;input value={value} onChange={e =&gt; setValue(e.target.value)} /&gt; &lt;div&gt; &lt;Value.Provider value={value}&gt; &lt;Suspense fallback={&lt;div&gt;loading&lt;/div&gt;}&gt; &lt;MemoizedChild /&gt; &lt;/Suspense&gt; &lt;/Value.Provider&gt; &lt;/div&gt; &lt;/div&gt; )"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">value</span><span class="pl-kos">,</span> <span class="pl-s1">setValue</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</span><span class="pl-kos">(</span><span class="pl-s">"default"</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-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"App"</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">value</span><span class="pl-kos">}</span> <span class="pl-c1">onChange</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">e</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">setValue</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">.</span><span class="pl-c1">target</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">)</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-v">Value</span><span class="pl-kos">.</span><span class="pl-v">Provider</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">value</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Suspense</span> <span class="pl-c1">fallback</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span>loading<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">MemoizedChild</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Suspense</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-v">Value</span><span class="pl-kos">.</span><span class="pl-v">Provider</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span></pre></div> <p dir="auto">When using a memoized functional component (<code class="notranslate">MemoizedChild</code> in above example) in conjunction with <code class="notranslate">Context</code> as a child of a <code class="notranslate">React.Suspense</code> component, there seems to be a bug in which <code class="notranslate">MemoizedChild</code> does not update when the context it uses changes. For the full example, see my codesandbox below.</p> <p dir="auto">In the codesandbox, if you change the value of the input, the new value is provided to the context which causes the hook used in <code class="notranslate">MemoizedChild</code> (<code class="notranslate">useValue</code>) to throw a promise. This flips <code class="notranslate">Suspense</code> to the fallback state and when the promise resolves <code class="notranslate">MemoizedChild</code>'s state is not updated with the proper context value because (I'm assuming) the memoized value of <code class="notranslate">MemoizedChild</code> is the one that contained the previous context value and technically no props have changed, so that makes sense why it wouldn't have updated. However, this seems like it would be unexpected behavior.</p> <p dir="auto"><a href="https://codesandbox.io/s/react-suspense-maybe-bug-sznbk" rel="nofollow">https://codesandbox.io/s/react-suspense-maybe-bug-sznbk</a></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> I would expect that <code class="notranslate">MemoizedChild</code> would be re-rendered with the new provided value.</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'm assuming all of them that contain Suspense and memo. So, since 16.8?</p>
1
<p dir="auto">As per <a href="https://stackoverflow.com/questions/52267297/why-does-an-instance-of-the-keras-sequence-iterate-forever" rel="nofollow">Goodword's question</a>, the <code class="notranslate">keras.utils.Sequence</code> class seems to iterate forever instead of stopping after a full epoch. To duplicate, run the following snippet.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class InfiniteGenerator(object): def __init__(self, alist): self.alist = alist def __getitem__(self, idx): return self.alist[idx] def __len__(self): return len(self.alist) def __iter__(self): for item in (self[i] for i in range(len(self))): yield item from keras.utils import Sequence class KGen(Sequence): def __init__(self, alist): self.alist = alist def __getitem__(self, idx): return self.alist[idx] def __len__(self): return len(self.alist) if __name__ == '__main__': ig = InfiniteGenerator(list(range(4))) for item in ig: print(item) print('now trying second iterator') import time time.sleep(1) kg = KGen(list(range(4))) for item in kg: print(item)"><pre class="notranslate"><code class="notranslate">class InfiniteGenerator(object): def __init__(self, alist): self.alist = alist def __getitem__(self, idx): return self.alist[idx] def __len__(self): return len(self.alist) def __iter__(self): for item in (self[i] for i in range(len(self))): yield item from keras.utils import Sequence class KGen(Sequence): def __init__(self, alist): self.alist = alist def __getitem__(self, idx): return self.alist[idx] def __len__(self): return len(self.alist) if __name__ == '__main__': ig = InfiniteGenerator(list(range(4))) for item in ig: print(item) print('now trying second iterator') import time time.sleep(1) kg = KGen(list(range(4))) for item in kg: print(item) </code></pre></div> <p dir="auto">The output will be as follows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 1 2 3 now trying second iterator 0 1 2 3 0 1 2 3 0 1 2 3 and so on ..."><pre class="notranslate"><code class="notranslate">0 1 2 3 now trying second iterator 0 1 2 3 0 1 2 3 0 1 2 3 and so on ... </code></pre></div> <p dir="auto">Tested on</p> <ul dir="auto"> <li>Ubuntu 18.04</li> <li>Keras 2.2.4</li> <li>Tensorflow 1.11.0</li> </ul>
<p dir="auto">Hi, guys. I want to extract features through CNN and do sequence labeling. I have looked at <a href="https://github.com/fchollet/keras/issues/129" data-hovercard-type="issue" data-hovercard-url="/keras-team/keras/issues/129/hovercard">#129</a>, but could not catch it. I'm trying to implement <a href="https://arxiv.org/ftp/arxiv/papers/1604/1604.04573.pdf" rel="nofollow">this model</a>. The model figure is like follows:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/30307594/28408138-0be8f83a-6d69-11e7-98a3-beffa6df3aad.png"><img src="https://user-images.githubusercontent.com/30307594/28408138-0be8f83a-6d69-11e7-98a3-beffa6df3aad.png" alt="_20170720163116" style="max-width: 100%;"></a></p> <p dir="auto">This is a multi-label question. At each timestep, the LSTM input is the previous predicted label, and target is the next label to predicted. As the number of the label may be different for each sample, so the length of each sample is different, I use batch size == 1 to train the model.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np from keras.layers import Input, concatenate from keras.layers.convolutional import Convolution2D, MaxPooling2D from keras.layers.recurrent import LSTM from keras.layers.embeddings import Embedding from keras.layers.core import Dense, Flatten, Reshape from keras.layers.wrappers import TimeDistributed from keras.models import Model, Sequential from keras.optimizers import Adam from keras.utils import to_categorical class_num = 10 embed_size = 128 def build_model(): model = Sequential() image_input = Input(shape=[None, 28, 28, 3]) conv1 = TimeDistributed(Convolution2D(filters=32, kernel_size=(3, 3), strides=(1, 1), padding='same', activation='relu', name='conv1'))(image_input) pool1 = TimeDistributed(MaxPooling2D(pool_size=(2, 2), name='pool1'))(conv1) conv_flatten = TimeDistributed(Flatten(name='conv_flatten'))(pool1) label_input = Input(shape=[None]) embedding1 = Embedding(class_num + 1, embed_size)(label_input) lstm1 = LSTM(output_dim=128, return_sequences=True)(embedding1) # lstm_flatten = Reshape(name='lstm_flatten')(lstm1) conca_output = concatenate([conv_flatten, lstm1]) dense1 = TimeDistributed(Dense(units=100, activation='relu', name='dense1'))(conca_output) dense2 = TimeDistributed(Dense(units=class_num, activation='softmax', name='output'))(dense1) model = Model(inputs=[image_input, label_input], outputs=dense2) model.compile(loss='categorical_crossentropy', optimizer=Adam(lr=1e-3)) model.summary() return model def train(): num_cases = 32 batch_size = 1 image = np.random.randn(num_cases, 28, 28, 3) x_label = [] y_label = [] for i in range(32): # indicate how many samples in a label label_len = np.random.choice(class_num + 1) if label_len == 0: label_len += 1 cnt_label = np.random.choice(class_num, size=label_len) categorical_label = cnt_label x_label.append(categorical_label) cnt_label = cnt_label[1:] # use class_num to indicate end label cnt_label = np.append(cnt_label, [class_num]) categorical_label = to_categorical(cnt_label) y_label.append(categorical_label) model = build_model() num_batch = num_cases / batch_size for i in range(num_batch): loss = model.train_on_batch([np.expand_dims(image[i, :, :, :], 0), np.expand_dims(x_label[i], 0)], np.expand_dims(y_label[i], 0)) print '%.3f' % loss if __name__ == '__main__': np.random.seed(42) train()"><pre class="notranslate"><code class="notranslate">import numpy as np from keras.layers import Input, concatenate from keras.layers.convolutional import Convolution2D, MaxPooling2D from keras.layers.recurrent import LSTM from keras.layers.embeddings import Embedding from keras.layers.core import Dense, Flatten, Reshape from keras.layers.wrappers import TimeDistributed from keras.models import Model, Sequential from keras.optimizers import Adam from keras.utils import to_categorical class_num = 10 embed_size = 128 def build_model(): model = Sequential() image_input = Input(shape=[None, 28, 28, 3]) conv1 = TimeDistributed(Convolution2D(filters=32, kernel_size=(3, 3), strides=(1, 1), padding='same', activation='relu', name='conv1'))(image_input) pool1 = TimeDistributed(MaxPooling2D(pool_size=(2, 2), name='pool1'))(conv1) conv_flatten = TimeDistributed(Flatten(name='conv_flatten'))(pool1) label_input = Input(shape=[None]) embedding1 = Embedding(class_num + 1, embed_size)(label_input) lstm1 = LSTM(output_dim=128, return_sequences=True)(embedding1) # lstm_flatten = Reshape(name='lstm_flatten')(lstm1) conca_output = concatenate([conv_flatten, lstm1]) dense1 = TimeDistributed(Dense(units=100, activation='relu', name='dense1'))(conca_output) dense2 = TimeDistributed(Dense(units=class_num, activation='softmax', name='output'))(dense1) model = Model(inputs=[image_input, label_input], outputs=dense2) model.compile(loss='categorical_crossentropy', optimizer=Adam(lr=1e-3)) model.summary() return model def train(): num_cases = 32 batch_size = 1 image = np.random.randn(num_cases, 28, 28, 3) x_label = [] y_label = [] for i in range(32): # indicate how many samples in a label label_len = np.random.choice(class_num + 1) if label_len == 0: label_len += 1 cnt_label = np.random.choice(class_num, size=label_len) categorical_label = cnt_label x_label.append(categorical_label) cnt_label = cnt_label[1:] # use class_num to indicate end label cnt_label = np.append(cnt_label, [class_num]) categorical_label = to_categorical(cnt_label) y_label.append(categorical_label) model = build_model() num_batch = num_cases / batch_size for i in range(num_batch): loss = model.train_on_batch([np.expand_dims(image[i, :, :, :], 0), np.expand_dims(x_label[i], 0)], np.expand_dims(y_label[i], 0)) print '%.3f' % loss if __name__ == '__main__': np.random.seed(42) train() </code></pre></div> <p dir="auto">My question is:</p> <ol dir="auto"> <li>How to use batch size == 32 to train this model? (e.g. Use mask layer, however, the flatten layer does not support mask)</li> <li>The input to CNN is (n_samples, n_timesteps, row, column, channel). I need to duplicate the images across time steps (As for each time step, I input the same image). Is there any elegant way to do it? I want to use RepeatVector Layer, but for each sample, the timesteps are different. What is the parameter input to the RepeatVector?</li> </ol>
0
<p dir="auto">I am running Symfony 4.2 and trying to create two Bootstrap 3 radio buttons. Here is the HTML for what I want to create:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;btn-group btn-group-justified&quot; data-toggle=&quot;buttons&quot;&gt; &lt;label class=&quot;btn btn-lg btn-default&quot;&gt; &lt;input type=&quot;radio&quot; name=&quot;inquiry[flexDates]&quot; value=&quot;yes&quot;&gt;YES &lt;/label&gt; &lt;label class=&quot;btn btn-lg btn-default&quot;&gt; &lt;input type=&quot;radio&quot; name=&quot;inquiry[flexDates]&quot; value=&quot;no&quot;&gt;NO &lt;/label&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div class="btn-group btn-group-justified" data-toggle="buttons"&gt; &lt;label class="btn btn-lg btn-default"&gt; &lt;input type="radio" name="inquiry[flexDates]" value="yes"&gt;YES &lt;/label&gt; &lt;label class="btn btn-lg btn-default"&gt; &lt;input type="radio" name="inquiry[flexDates]" value="no"&gt;NO &lt;/label&gt; &lt;/div&gt; </code></pre></div> <p dir="auto">This is my form builder code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$builder -&gt;add('flexDates', ChoiceType::class, [ 'choices' =&gt; [ 'Yes' =&gt; 'yes', 'No' =&gt; 'no', ], 'required' =&gt; false, 'empty_data' =&gt; '', 'expanded' =&gt; true, // these two options (expanded = true and 'multiple' =&gt; false, // multiple = false) make it a radio button ])"><pre class="notranslate"><code class="notranslate">$builder -&gt;add('flexDates', ChoiceType::class, [ 'choices' =&gt; [ 'Yes' =&gt; 'yes', 'No' =&gt; 'no', ], 'required' =&gt; false, 'empty_data' =&gt; '', 'expanded' =&gt; true, // these two options (expanded = true and 'multiple' =&gt; false, // multiple = false) make it a radio button ]) </code></pre></div> <p dir="auto">I have the Bootstrap 3 theme (<code class="notranslate">bootstrap_3_layout.html.twig</code>) installed and have tried various combinations of <code class="notranslate">form_row()</code>, <code class="notranslate">form_label()</code> and <code class="notranslate">form_widget()</code>. I've set <code class="notranslate">attr</code> and <code class="notranslate">label_attr</code> in several different ways,<br> but I cannot figure out how to generate the HTML above. There always seem to be extra <code class="notranslate">&lt;div&gt;</code>s or HTML that causes it to display incorrectly.</p> <p dir="auto">The HTML is part of a hard-coded form that has been working fine and I'm trying to convert it to a Twig template. Converting all the other fields was simple, but I've wasted nearly a day just trying to duplicate the radio buttons.</p> <p dir="auto">It seems like it should be easy, but how to do this is not clear from any of the documentation or examples I've been able to find.</p> <p dir="auto">I've tried creating my own block widget, but I can't figure out how to make the <code class="notranslate">&lt;label&gt;</code> include the <code class="notranslate">&lt;input&gt;</code> (instead of before or after). In order to make things work, the label must wrap around the input.</p> <p dir="auto">There is a <code class="notranslate">{% block checkbox_radio_label %}</code> defined in the <code class="notranslate">bootstrap_3_layout.html.twig</code> file that is close to what I need, but I cannot get it to work. It uses <code class="notranslate">{{ widget|raw }}</code>, but Symfony gives me a <code class="notranslate">variable "widget" does not exist</code> error when I try to use it.</p> <p dir="auto">So far, the information at <a href="https://symfony.com/doc/current/form/form_customization.html" rel="nofollow">https://symfony.com/doc/current/form/form_customization.html</a> has been more confusing than helpful. I've been using Twig for years and have been able to do almost anything else, but this problem has me stumped. I know I could write my own custom filter, but it seems like there should be an easier way.</p>
<p dir="auto">Working on some internal code, I was having trouble understanding certain error messages. The main reason was because I wrote a "parameter" instead of "parameters". To save others some time, I wanted to show a nice possible alternative value that <em>is</em> allowed instead. I know that Symfony has a lot of those messages and they add value to the Developer Experience.</p> <p dir="auto">So I wanted to implement this and it occurred to me how often there was code duplication! I've done a very basic search for <a href="https://github.com/symfony/symfony/search?utf8=%E2%9C%93&amp;q=Did+you+mean">"Did you mean"</a> and got 2 pages of which not all contained the actual implementation. There's some <a href="https://github.com/symfony/symfony/search?utf8=%E2%9C%93&amp;q=alternatives&amp;type=Code">additional implementations</a> to be found all around the code base but all come down to 1 thing, suggesting alternatives.</p> <p dir="auto">I think it would be a great addition to have a generic way to not only generate alternative suggestions within Symfony, but also for people who want to implement the DX concept in their own applications or libraries. I would imagine this to be a tiny component compared to others which could (for now) provide the following:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// just an example, no idea how this would be named or if both cases are needed use Symfony\Component\Alternative\ManyAlternatives; use Symfony\Component\Alternative\SingleAlternative; $possibleOptions = ['foo', 'foobar', 'bar']; echo implode(', ', ManyAlternatives::match(['fo'], $possibleOptions)); // foo, foobar echo SingleAlternative::match(['fo'], $possibleOptions); // foo // or optionally with a custom value resolving echo ManyAlternatives::match( new Definition('foo'), $possibleOptions, function (Definition $d) { return $d-&gt;getName(); } );"><pre class="notranslate"><span class="pl-c">// just an example, no idea how this would be named or if both cases are needed</span> <span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Component</span>\<span class="pl-v">Alternative</span>\<span class="pl-v">ManyAlternatives</span>; <span class="pl-k">use</span> <span class="pl-v">Symfony</span>\<span class="pl-v">Component</span>\<span class="pl-v">Alternative</span>\<span class="pl-v">SingleAlternative</span>; <span class="pl-s1"><span class="pl-c1">$</span>possibleOptions</span> = [<span class="pl-s">'foo'</span>, <span class="pl-s">'foobar'</span>, <span class="pl-s">'bar'</span>]; <span class="pl-k">echo</span> implode(<span class="pl-s">', '</span>, <span class="pl-v">ManyAlternatives</span>::<span class="pl-en">match</span>([<span class="pl-s">'fo'</span>], <span class="pl-s1"><span class="pl-c1">$</span>possibleOptions</span>)); <span class="pl-c">// foo, foobar</span> <span class="pl-k">echo</span> <span class="pl-v">SingleAlternative</span>::<span class="pl-en">match</span>([<span class="pl-s">'fo'</span>], <span class="pl-s1"><span class="pl-c1">$</span>possibleOptions</span>); <span class="pl-c">// foo</span> <span class="pl-c">// or optionally with a custom value resolving</span> <span class="pl-k">echo</span> <span class="pl-v">ManyAlternatives</span>::<span class="pl-en">match</span>( <span class="pl-k">new</span> <span class="pl-v">Definition</span>(<span class="pl-s">'foo'</span>), <span class="pl-s1"><span class="pl-c1">$</span>possibleOptions</span>, <span class="pl-k">function</span> (<span class="pl-smi"><span class="pl-smi">Definition</span></span> <span class="pl-s1"><span class="pl-c1">$</span>d</span>) { <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span>d</span>-&gt;<span class="pl-en">getName</span>(); } );</pre></div>
0
<p dir="auto"><strong>Migrated issue, originally created by 0xANDREW NA (<a href="https://github.com/0xANDREW">@0xANDREW</a>)</strong></p> <p dir="auto">(SQLAlchemy 1.0.11)</p> <p dir="auto">Column definition in model:</p> <p dir="auto"><code class="notranslate">public_data = Column(MutableDict.as_mutable(JSON), nullable=False)</code></p> <p dir="auto">Event listener in same model file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def __listener(target, value, oldvalue, initiator): ... do some stuff event.listen(User.public_data, 'set', __listener)"><pre class="notranslate"><code class="notranslate">def __listener(target, value, oldvalue, initiator): ... do some stuff event.listen(User.public_data, 'set', __listener) </code></pre></div> <p dir="auto">Change that should trigger <code class="notranslate">set</code> event:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# this doesn't work user.public_data['address'] = '' # but this works user.public_data = {}"><pre class="notranslate"><code class="notranslate"># this doesn't work user.public_data['address'] = '' # but this works user.public_data = {} </code></pre></div> <p dir="auto">The event is never triggered when only a JSON attribute is modified. I stepped through the SQLAlchemy code and found that after the first line above is executed, the model's <code class="notranslate">changed()</code> method is called, which I assume should be responsible for the event firing. Am I doing something wrong or is this not supported?</p>
<p dir="auto"><strong>Migrated issue, originally created by zoomorph (<a href="https://github.com/zoomorph">@zoomorph</a>)</strong></p> <p dir="auto">Listening for changes to a scalar attribute can be done via the 'set' event:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def validate_phone(target, value, oldvalue, initiator): &quot;&quot;&quot;Strip non-numeric characters from a phone number&quot;&quot;&quot; return re.sub(r'(?![0-9])', '', value) # setup listener on UserContact.phone attribute, instructing # it to use the return value listen(UserContact.phone, 'set', validate_phone, retval=True)"><pre class="notranslate"><code class="notranslate">def validate_phone(target, value, oldvalue, initiator): """Strip non-numeric characters from a phone number""" return re.sub(r'(?![0-9])', '', value) # setup listener on UserContact.phone attribute, instructing # it to use the return value listen(UserContact.phone, 'set', validate_phone, retval=True) </code></pre></div> <p dir="auto">When Mutable attributes are set, they also emit the 'set' event. However, they do not emit any events when they are merely changed.</p> <p dir="auto">A new event such as 'changed' should be added to cover this case. It would work like so:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def favorites_changed(target, value, oldvalue, initiator): logger.info(&quot;Favorites was set or changed&quot;) # do something # setup listeners on UserContact.favorites attribute (a MutableList for example) listen(UserContact.favorites, 'set', favorites_changed) listen(UserContact.favorites, 'changed', favorites_changed) u = session.query(UserContact).first() u.favorites = [1, 2, 3] # emits 'set' u.favorites.append(4) # should emit 'changed' u.favorites[-1] = 5 # should emit 'changed'"><pre class="notranslate"><code class="notranslate">def favorites_changed(target, value, oldvalue, initiator): logger.info("Favorites was set or changed") # do something # setup listeners on UserContact.favorites attribute (a MutableList for example) listen(UserContact.favorites, 'set', favorites_changed) listen(UserContact.favorites, 'changed', favorites_changed) u = session.query(UserContact).first() u.favorites = [1, 2, 3] # emits 'set' u.favorites.append(4) # should emit 'changed' u.favorites[-1] = 5 # should emit 'changed' </code></pre></div> <p dir="auto">Related to issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384632812" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/3297" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/3297/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/3297">#3297</a></p>
1
<p dir="auto">Here's a clear definition of set equality. One sees that order is not explicit at all.<br> <a href="https://proofwiki.org/wiki/Definition:Set_Equality" rel="nofollow">https://proofwiki.org/wiki/Definition:Set_Equality</a><br> Two sets are equal iff they contain the same elements:<br> ∀x:(x∈A⟺x∈B)⟺A=B<br> The order of the elements in the sets is immaterial.</p> <p dir="auto">Is there a way to reopen this topic?<br> (Edited note: I eliminated the reference to commutativity and associativity of symmetric difference since it is irrelevant to set equality)</p> <p dir="auto">the youtube video presented in case <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="96729502" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/1358" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/1358/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/1358">#1358</a> does not demonstrate at all that ordering matters.</p> <p dir="auto">I think the equality of sets is independent of order. {1,2,3} = {3,2,1}<br> see more here: <a href="http://www.cs.odu.edu/~toida/nerzic/content/set/basics.html" rel="nofollow">http://www.cs.odu.edu/~toida/nerzic/content/set/basics.html</a></p> <p dir="auto">Please also note that according to the site above that is also true that:<br> {1, 2, 3} = {3, 2, 1, 1}, that is duplications do NOT make any difference for sets.</p>
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-sift-through-text-with-regular-expressions" rel="nofollow">http://freecodecamp.com/challenges/waypoint-sift-through-text-with-regular-expressions</a> has an issue.</p> <p dir="auto">it wants a regular expression <code class="notranslate">/and+/gi</code> but should check for <code class="notranslate">/and/gi</code></p> <p dir="auto">the plus means it would match <code class="notranslate">andd</code> or <code class="notranslate">anddddddddddddddd</code> instead of just <code class="notranslate">and</code></p>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/309" rel="nofollow">http://projects.scipy.org/scipy/ticket/309</a> on 2006-11-17 by trac user Axel, assigned to unknown.</em></p> <p dir="auto">The PyEM example "Creating, sampling and plotting a mixture" on<br> <a href="http://www.ar.media.kyoto-u.ac.jp/members/david/softwares/pyem/" rel="nofollow">http://www.ar.media.kyoto-u.ac.jp/members/david/softwares/pyem/</a> results in a strange plot that seems to consist of only integer data points. This differs from the example plot on the website.<br> Furthermore, after entering the example code, no plot is shown at all, so I added P.show() myself. I try to send a screen shot with this. Things may relate to the fact that I'm a newbie.</p> <blockquote> <blockquote> <blockquote> <p dir="auto">scipy.<strong>version</strong><br> '0.5.2.dev2319'<br> matplotlib.<strong>version</strong><br> '0.87.3'<br> pyem.info.version<br> '0.5.6'</p> </blockquote> </blockquote> </blockquote>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/310" rel="nofollow">http://projects.scipy.org/scipy/ticket/310</a> on 2006-11-17 by trac user Axel, assigned to unknown.</em></p> <p dir="auto">The PyEM example "Creating, sampling and plotting a mixture" on<br> <a href="http://www.ar.media.kyoto-u.ac.jp/members/david/softwares/pyem/" rel="nofollow">http://www.ar.media.kyoto-u.ac.jp/members/david/softwares/pyem/</a> results in a strange plot that seems to consist of only integer data points. This differs from the example plot on the website.<br> Furthermore, after entering the example code, no plot is shown at all, so I added P.show() myself. I try to send a screen shot with this. Things may relate to the fact that I'm a newbie.</p> <blockquote> <blockquote> <blockquote> <p dir="auto">scipy.<strong>version</strong><br> '0.5.2.dev2319'<br> matplotlib.<strong>version</strong><br> '0.87.3'<br> pyem.info.version<br> '0.5.6'</p> </blockquote> </blockquote> </blockquote>
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> <p dir="auto">Hi, I'm trying to make my app in production on Google App Engine but this error occur :<br> <code class="notranslate">Uncaught TypeError: Cannot read property 'forEach' of undefined</code></p> <p dir="auto">When I check where the problem is I find :<br> <code class="notranslate">window.__NEXT_LOADED_CHUNKS__.forEach</code></p> <p dir="auto">Everything is ok on dev.<br> You can check the live app here : <a href="https://www.chefing.fr" rel="nofollow">https://www.chefing.fr</a></p> <p dir="auto">Here is my Dockerfile:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM node:6.5 RUN mkdir -p /app WORKDIR /app ADD package.json /app/ COPY . /app/ RUN npm i RUN npm i -g nodemon RUN npm i -g next RUN npm i -g react RUN npm i -g react-dom RUN next build RUN echo $GAE_VERSION &gt; .next/BUILD_ID ENV NODE_ENV=production EXPOSE 3000 EXPOSE 8080 CMD [ &quot;npm&quot;, &quot;run&quot;, &quot;start&quot; ]"><pre class="notranslate"><code class="notranslate">FROM node:6.5 RUN mkdir -p /app WORKDIR /app ADD package.json /app/ COPY . /app/ RUN npm i RUN npm i -g nodemon RUN npm i -g next RUN npm i -g react RUN npm i -g react-dom RUN next build RUN echo $GAE_VERSION &gt; .next/BUILD_ID ENV NODE_ENV=production EXPOSE 3000 EXPOSE 8080 CMD [ "npm", "run", "start" ] </code></pre></div> <p dir="auto">Everything is ok with the deployement, push / pull, deployement, start etc... No error.<br> And this is my next.config.js file (In case of problem).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module.exports = { webpack: function (c) { if (c.resolve.alias) { delete c.resolve.alias['react'] delete c.resolve.alias['react-dom'] } return c } }"><pre class="notranslate"><code class="notranslate">module.exports = { webpack: function (c) { if (c.resolve.alias) { delete c.resolve.alias['react'] delete c.resolve.alias['react-dom'] } return c } } </code></pre></div> <p dir="auto">I hope you can help us :)<br> Thanks, Steve.</p> <p dir="auto">|---------|---------|<br> | next | 2.4.7 |<br> | node | 6.5 |<br> | mobX | 3.2 |</p>
<p dir="auto">this is server.js</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" const defaultHandlerWrapper = (app) =&gt; { const handler = app.getRequestHandler(); return ({ raw, url }, hapiReply) =&gt; { return handler(raw.req, raw.res, url) // at this point filter raq, .then(() =&gt; { hapiReply.close(false); }); }; }; "><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-en">defaultHandlerWrapper</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">app</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">handler</span> <span class="pl-c1">=</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">getRequestHandler</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-kos">(</span><span class="pl-kos">{</span> raw<span class="pl-kos">,</span> url <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">hapiReply</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">handler</span><span class="pl-kos">(</span><span class="pl-s1">raw</span><span class="pl-kos">.</span><span class="pl-c1">req</span><span class="pl-kos">,</span> <span class="pl-s1">raw</span><span class="pl-kos">.</span><span class="pl-c1">res</span><span class="pl-kos">,</span> <span class="pl-s1">url</span><span class="pl-kos">)</span> <span class="pl-c">// at this point filter raq,</span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">hapiReply</span><span class="pl-kos">.</span><span class="pl-en">close</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-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <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> <h2 dir="auto">Current Behavior</h2> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li></li> <li></li> <li></li> <li></li> </ol> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td></td> </tr> <tr> <td>node</td> <td></td> </tr> <tr> <td>OS</td> <td></td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<h3 dir="auto">flutter run -v</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter run -v [ +20 ms] [/Users/hao/Documents/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +29 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/alpha [ ] [/Users/hao/Documents/flutter/] git ls-remote --get-url origin [ +7 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] [/Users/hao/Documents/flutter/] git log -n 1 --pretty=format:%H [ +7 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] bbcfb8d51ab12a51f5bc7cedc6d6725b06fac2dc [ ] [/Users/hao/Documents/flutter/] git log -n 1 --pretty=format:%ar [ +7 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 12 days ago [ +130 ms] /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ +80 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ ] 2.3 [ +90 ms] Listing devices using /Users/hao/Library/Android/sdk/platform-tools/adb [ ] /Users/hao/Library/Android/sdk/platform-tools/adb devices -l [ +14 ms] Exit code 0 from: /Users/hao/Library/Android/sdk/platform-tools/adb devices -l [ ] List of devices attached [ +886 ms] /usr/bin/xcrun simctl list --json devices [ +575 ms] Launching lib/main.dart on iPhone 7 Plus in debug mode... [ +1 ms] /usr/bin/defaults read /Users/hao/Documents/flutter_proj/myapp/ios/Runner/Info CFBundleIdentifier [ +80 ms] Exit code 0 from: /usr/bin/defaults read /Users/hao/Documents/flutter_proj/myapp/ios/Runner/Info CFBundleIdentifier [ ] $(PRODUCT_BUNDLE_IDENTIFIER) [ ] /usr/bin/xcodebuild -project /Users/hao/Documents/flutter_proj/myapp/ios/Runner.xcodeproj -target Runner -showBuildSettings [ +648 ms] Exit code 0 from: /usr/bin/xcodebuild -project /Users/hao/Documents/flutter_proj/myapp/ios/Runner.xcodeproj -target Runner -showBuildSettings [ ] Build settings for action build and target Runner: ACTION = build AD_HOC_CODE_SIGNING_ALLOWED = NO ALTERNATE_GROUP = staff ALTERNATE_MODE = u+w,go-w,a+rX ALTERNATE_OWNER = hao ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO ALWAYS_SEARCH_USER_PATHS = NO ALWAYS_USE_SEPARATE_HEADERMAPS = NO APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer APPLE_INTERNAL_DIR = /AppleInternal APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal/Library APPLE_INTERNAL_TOOLS = /AppleInternal/Developer/Tools APPLICATION_EXTENSION_API_ONLY = NO APPLY_RULES_IN_COPY_FILES = NO ARCHS = arm64 ARCHS_STANDARD = armv7 arm64 ARCHS_STANDARD_32_64_BIT = armv7 arm64 ARCHS_STANDARD_32_BIT = armv7 ARCHS_STANDARD_64_BIT = arm64 ARCHS_STANDARD_INCLUDING_64_BIT = armv7 arm64 ARCHS_UNIVERSAL_IPHONE_OS = armv7 arm64 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon AVAILABLE_PLATFORMS = appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator BITCODE_GENERATION_MODE = marker BUILD_ACTIVE_RESOURCES_ONLY = NO BUILD_COMPONENTS = headers build BUILD_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios BUILD_ROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios BUILD_STYLE = BUILD_VARIANTS = normal BUILT_PRODUCTS_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos CACHE_ROOT = /var/folders/59/tmvyr0md5tj_5htf68fs85dm0000gn/C/com.apple.DeveloperTools/8.1-8B62/Xcode CCHROOT = /var/folders/59/tmvyr0md5tj_5htf68fs85dm0000gn/C/com.apple.DeveloperTools/8.1-8B62/Xcode CHMOD = /bin/chmod CHOWN = /usr/sbin/chown CLANG_ANALYZER_NONNULL = YES CLANG_CXX_LANGUAGE_STANDARD = gnu++0x CLANG_CXX_LIBRARY = libc++ CLANG_ENABLE_MODULES = YES CLANG_ENABLE_OBJC_ARC = YES CLANG_WARN_BOOL_CONVERSION = YES CLANG_WARN_CONSTANT_CONVERSION = YES CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR CLANG_WARN_EMPTY_BODY = YES CLANG_WARN_ENUM_CONVERSION = YES CLANG_WARN_INFINITE_RECURSION = YES CLANG_WARN_INT_CONVERSION = YES CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR CLANG_WARN_SUSPICIOUS_MOVE = YES CLANG_WARN_UNREACHABLE_CODE = YES CLANG_WARN__DUPLICATE_METHOD_MATCH = YES CLASS_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/JavaClasses CLEAN_PRECOMPS = YES CLONE_HEADERS = NO CODESIGNING_FOLDER_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos/Runner.app CODE_SIGNING_ALLOWED = YES CODE_SIGNING_REQUIRED = YES CODE_SIGN_CONTEXT_CLASS = XCiPhoneOSCodeSignContext CODE_SIGN_IDENTITY = iPhone Developer COLOR_DIAGNOSTICS = NO COMBINE_HIDPI_IMAGES = NO COMPOSITE_SDK_DIRS = /Users/hao/Documents/flutter_proj/myapp/build/ios/CompositeSDKs COMPRESS_PNG_FILES = YES CONFIGURATION = Release CONFIGURATION_BUILD_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos CONFIGURATION_TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos CONTENTS_FOLDER_PATH = Runner.app COPYING_PRESERVES_HFS_DATA = NO COPY_HEADERS_RUN_UNIFDEF = NO COPY_PHASE_STRIP = NO COPY_RESOURCES_FROM_STATIC_FRAMEWORKS = YES CORRESPONDING_SIMULATOR_PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform CORRESPONDING_SIMULATOR_PLATFORM_NAME = iphonesimulator CORRESPONDING_SIMULATOR_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.1.sdk CORRESPONDING_SIMULATOR_SDK_NAME = iphonesimulator10.1 CP = /bin/cp CREATE_INFOPLIST_SECTION_IN_BINARY = NO CURRENT_ARCH = arm64 CURRENT_VARIANT = normal DEAD_CODE_STRIPPING = YES DEBUGGING_SYMBOLS = YES DEBUG_INFORMATION_FORMAT = dwarf-with-dsym DEFAULT_COMPILER = com.apple.compilers.llvm.clang.1_0 DEFAULT_KEXT_INSTALL_PATH = /System/Library/Extensions DEFINES_MODULE = NO DEPLOYMENT_LOCATION = NO DEPLOYMENT_POSTPROCESSING = NO DEPLOYMENT_TARGET_CLANG_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_CLANG_FLAG_NAME = miphoneos-version-min DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX = -miphoneos-version-min= DEPLOYMENT_TARGET_SETTING_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_SUGGESTED_VALUES = 8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1 DERIVED_FILES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DERIVED_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DERIVED_SOURCES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Applications DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer DEVELOPER_FRAMEWORKS_DIR = /Applications/Xcode.app/Contents/Developer/Library/Frameworks DEVELOPER_FRAMEWORKS_DIR_QUOTED = /Applications/Xcode.app/Contents/Developer/Library/Frameworks DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/Developer/Library DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Tools DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr DEVELOPMENT_LANGUAGE = English DOCUMENTATION_FOLDER_PATH = Runner.app/English.lproj/Documentation DO_HEADER_SCANNING_IN_JAM = NO DSTROOT = /tmp/Runner.dst DT_TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain DWARF_DSYM_FILE_NAME = Runner.app.dSYM DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO DWARF_DSYM_FOLDER_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos EFFECTIVE_PLATFORM_NAME = -iphoneos EMBEDDED_CONTENT_CONTAINS_SWIFT = NO EMBEDDED_PROFILE_NAME = embedded.mobileprovision EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO ENABLE_BITCODE = NO ENABLE_DEFAULT_HEADER_SEARCH_PATHS = YES ENABLE_HEADER_DEPENDENCIES = YES ENABLE_NS_ASSERTIONS = NO ENABLE_ON_DEMAND_RESOURCES = YES ENABLE_STRICT_OBJC_MSGSEND = YES ENABLE_TESTABILITY = NO ENTITLEMENTS_ALLOWED = YES ENTITLEMENTS_REQUIRED = YES EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS = .DS_Store .svn .git .hg CVS EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj EXECUTABLES_FOLDER_PATH = Runner.app/Executables EXECUTABLE_FOLDER_PATH = Runner.app EXECUTABLE_NAME = Runner EXECUTABLE_PATH = Runner.app/Runner EXPANDED_CODE_SIGN_IDENTITY = EXPANDED_CODE_SIGN_IDENTITY_NAME = EXPANDED_PROVISIONING_PROFILE = FILE_LIST = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects/LinkFileList FIXED_FILES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/FixedFiles FLUTTER_APPLICATION_PATH = /Users/hao/Documents/flutter_proj/myapp FLUTTER_BUILD_DIR = build FLUTTER_BUILD_MODE = debug FLUTTER_FRAMEWORK_DIR = /Users/hao/Documents/flutter/bin/cache/artifacts/engine/ios FLUTTER_ROOT = /Users/hao/Documents/flutter FLUTTER_TARGET = lib/main.dart FRAMEWORKS_FOLDER_PATH = Runner.app/Frameworks FRAMEWORK_FLAG_PREFIX = -framework FRAMEWORK_SEARCH_PATHS = /Users/hao/Documents/flutter_proj/myapp/ios/Flutter FRAMEWORK_VERSION = A FULL_PRODUCT_NAME = Runner.app GCC3_VERSION = 3.3 GCC_C_LANGUAGE_STANDARD = gnu99 GCC_INLINES_ARE_PRIVATE_EXTERN = YES GCC_NO_COMMON_BLOCKS = YES GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++ GCC_SYMBOLS_PRIVATE_EXTERN = YES GCC_THUMB_SUPPORT = YES GCC_TREAT_WARNINGS_AS_ERRORS = NO GCC_VERSION = com.apple.compilers.llvm.clang.1_0 GCC_VERSION_IDENTIFIER = com_apple_compilers_llvm_clang_1_0 GCC_WARN_64_TO_32_BIT_CONVERSION = YES GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR GCC_WARN_UNDECLARED_SELECTOR = YES GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE GCC_WARN_UNUSED_FUNCTION = YES GCC_WARN_UNUSED_VARIABLE = YES GENERATE_MASTER_OBJECT_FILE = NO GENERATE_PKGINFO_FILE = YES GENERATE_PROFILING_CODE = NO GENERATE_TEXT_BASED_STUBS = NO GID = 20 GROUP = staff HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT = YES HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES = YES HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS = YES HEADERMAP_INCLUDES_PROJECT_HEADERS = YES HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES = YES HEADERMAP_USES_VFS = NO HIDE_BITCODE_SYMBOLS = YES HOME = /Users/hao ICONV = /usr/bin/iconv INFOPLIST_EXPAND_BUILD_SETTINGS = YES INFOPLIST_FILE = Runner/Info.plist INFOPLIST_OUTPUT_FORMAT = binary INFOPLIST_PATH = Runner.app/Info.plist INFOPLIST_PREPROCESS = NO INFOSTRINGS_PATH = Runner.app/English.lproj/InfoPlist.strings INLINE_PRIVATE_FRAMEWORKS = NO INSTALLHDRS_COPY_PHASE = NO INSTALLHDRS_SCRIPT_PHASE = NO INSTALL_DIR = /tmp/Runner.dst/Applications INSTALL_GROUP = staff INSTALL_MODE_FLAG = u+w,go-w,a+rX INSTALL_OWNER = hao INSTALL_PATH = /Applications INSTALL_ROOT = /tmp/Runner.dst IPHONEOS_DEPLOYMENT_TARGET = 8.0 JAVAC_DEFAULT_FLAGS = -J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8 JAVA_APP_STUB = /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub JAVA_ARCHIVE_CLASSES = YES JAVA_ARCHIVE_TYPE = JAR JAVA_COMPILER = /usr/bin/javac JAVA_FOLDER_PATH = Runner.app/Java JAVA_FRAMEWORK_RESOURCES_DIRS = Resources JAVA_JAR_FLAGS = cv JAVA_SOURCE_SUBDIR = . JAVA_USE_DEPENDENCIES = YES JAVA_ZIP_FLAGS = -urg JIKES_DEFAULT_FLAGS = +E +OLDCSO KEEP_PRIVATE_EXTERNS = NO LD_DEPENDENCY_INFO_FILE = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/Runner_dependency_info.dat LD_GENERATE_MAP_FILE = NO LD_MAP_FILE_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Runner-LinkMap-normal-arm64.txt LD_NO_PIE = NO LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER = YES LD_RUNPATH_SEARCH_PATHS = @executable_path/Frameworks LEGACY_DEVELOPER_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer LEX = lex LIBRARY_FLAG_NOSPACE = YES LIBRARY_FLAG_PREFIX = -l LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions LIBRARY_SEARCH_PATHS = /Users/hao/Documents/flutter_proj/myapp/ios/Flutter LINKER_DISPLAYS_MANGLED_NAMES = NO LINK_FILE_LIST_normal_arm64 = LINK_WITH_STANDARD_LIBRARIES = YES LOCALIZABLE_CONTENT_DIR = LOCALIZED_RESOURCES_FOLDER_PATH = Runner.app/English.lproj LOCAL_ADMIN_APPS_DIR = /Applications/Utilities LOCAL_APPS_DIR = /Applications LOCAL_DEVELOPER_DIR = /Library/Developer LOCAL_LIBRARY_DIR = /Library LOCROOT = LOCSYMROOT = MACH_O_TYPE = mh_execute MAC_OS_X_PRODUCT_BUILD_VERSION = 16F73 MAC_OS_X_VERSION_ACTUAL = 101205 MAC_OS_X_VERSION_MAJOR = 101200 MAC_OS_X_VERSION_MINOR = 1205 METAL_LIBRARY_FILE_BASE = default METAL_LIBRARY_OUTPUT_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos/Runner.app MODULE_CACHE_DIR = /Users/hao/Library/Developer/Xcode/DerivedData/ModuleCache MTL_ENABLE_DEBUG_INFO = NO NATIVE_ARCH = armv7 NATIVE_ARCH_32_BIT = i386 NATIVE_ARCH_64_BIT = x86_64 NATIVE_ARCH_ACTUAL = x86_64 NO_COMMON = YES OBJECT_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects OBJECT_FILE_DIR_normal = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal OBJROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios ONLY_ACTIVE_ARCH = NO OS = MACOS OSAC = /usr/bin/osacompile PACKAGE_TYPE = com.apple.package-type.wrapper.application PASCAL_STRINGS = YES PATH = /Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/go/libexec/bin:/Users/hao/Documents/go/bin:/Users/hao/bin:/Users/hao/Documents/flutter/bin PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES = /usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms PBDEVELOPMENTPLIST_PATH = Runner.app/pbdevelopment.plist PFE_FILE_C_DIALECTS = objective-c PKGINFO_FILE_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/PkgInfo PKGINFO_PATH = Runner.app/PkgInfo PLATFORM_DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications PLATFORM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin PLATFORM_DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library PLATFORM_DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs PLATFORM_DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools PLATFORM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform PLATFORM_DISPLAY_NAME = iOS PLATFORM_NAME = iphoneos PLATFORM_PREFERRED_ARCH = arm64 PLATFORM_PRODUCT_BUILD_VERSION = 14B72 PLIST_FILE_OUTPUT_FORMAT = binary PLUGINS_FOLDER_PATH = Runner.app/PlugIns PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES PRECOMP_DESTINATION_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/PrefixHeaders PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO PRIVATE_HEADERS_FOLDER_PATH = Runner.app/PrivateHeaders PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.myapp PRODUCT_MODULE_NAME = Runner PRODUCT_NAME = Runner PRODUCT_SETTINGS_PATH = /Users/hao/Documents/flutter_proj/myapp/ios/Runner/Info.plist PRODUCT_TYPE = com.apple.product-type.application PROFILING_CODE = NO PROJECT = Runner PROJECT_DERIVED_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/DerivedSources PROJECT_DIR = /Users/hao/Documents/flutter_proj/myapp/ios PROJECT_FILE_PATH = /Users/hao/Documents/flutter_proj/myapp/ios/Runner.xcodeproj PROJECT_NAME = Runner PROJECT_TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build PROJECT_TEMP_ROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios PROVISIONING_PROFILE_REQUIRED = YES PUBLIC_HEADERS_FOLDER_PATH = Runner.app/Headers RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS = YES REMOVE_CVS_FROM_RESOURCES = YES REMOVE_GIT_FROM_RESOURCES = YES REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES = YES REMOVE_HG_FROM_RESOURCES = YES REMOVE_SVN_FROM_RESOURCES = YES RESOURCE_RULES_REQUIRED = YES REZ_COLLECTOR_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources REZ_OBJECTS_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources/Objects SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO SCRIPTS_FOLDER_PATH = Runner.app/Scripts SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk SDK_DIR_iphoneos10_1 = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk SDK_NAME = iphoneos10.1 SDK_NAMES = iphoneos10.1 SDK_PRODUCT_BUILD_VERSION = 14B72 SDK_VERSION = 10.1 SDK_VERSION_ACTUAL = 100100 SDK_VERSION_MAJOR = 100000 SDK_VERSION_MINOR = 100 SED = /usr/bin/sed SEPARATE_STRIP = NO SEPARATE_SYMBOL_EDIT = NO SET_DIR_MODE_OWNER_GROUP = YES SET_FILE_MODE_OWNER_GROUP = NO SHALLOW_BUNDLE = YES SHARED_DERIVED_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos/DerivedSources SHARED_FRAMEWORKS_FOLDER_PATH = Runner.app/SharedFrameworks SHARED_PRECOMPS_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/SharedPrecompiledHeaders SHARED_SUPPORT_FOLDER_PATH = Runner.app/SharedSupport SKIP_INSTALL = NO SOURCE_ROOT = /Users/hao/Documents/flutter_proj/myapp/ios SRCROOT = /Users/hao/Documents/flutter_proj/myapp/ios STRINGS_FILE_OUTPUT_ENCODING = binary STRIP_BITCODE_FROM_COPIED_FILES = YES STRIP_INSTALLED_PRODUCT = YES STRIP_STYLE = all SUPPORTED_DEVICE_FAMILIES = 1,2 SUPPORTED_PLATFORMS = iphonesimulator iphoneos SUPPORTS_TEXT_BASED_API = NO SWIFT_PLATFORM_TARGET_PREFIX = ios SYMROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios SYSTEM_ADMIN_APPS_DIR = /Applications/Utilities SYSTEM_APPS_DIR = /Applications SYSTEM_CORE_SERVICES_DIR = /System/Library/CoreServices SYSTEM_DEMOS_DIR = /Applications/Extras SYSTEM_DEVELOPER_APPS_DIR = /Applications/Xcode.app/Contents/Developer/Applications SYSTEM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin SYSTEM_DEVELOPER_DEMOS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples SYSTEM_DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer SYSTEM_DEVELOPER_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools SYSTEM_DEVELOPER_JAVA_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Java Tools SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Performance Tools SYSTEM_DEVELOPER_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes SYSTEM_DEVELOPER_TOOLS = /Applications/Xcode.app/Contents/Developer/Tools SYSTEM_DEVELOPER_TOOLS_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools SYSTEM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr SYSTEM_DEVELOPER_UTILITIES_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities SYSTEM_DOCUMENTATION_DIR = /Library/Documentation SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions SYSTEM_LIBRARY_DIR = /System/Library TAPI_VERIFY_MODE = ErrorsOnly TARGETED_DEVICE_FAMILY = 1,2 TARGETNAME = Runner TARGET_BUILD_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos TARGET_NAME = Runner TARGET_TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_FILES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_ROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO UID = 501 UNLOCALIZED_RESOURCES_FOLDER_PATH = Runner.app UNSTRIPPED_PRODUCT = NO USER = hao USER_APPS_DIR = /Users/hao/Applications USER_LIBRARY_DIR = /Users/hao/Library USE_DYNAMIC_NO_PIC = YES USE_HEADERMAP = YES USE_HEADER_SYMLINKS = NO VALIDATE_PRODUCT = YES VALID_ARCHS = arm64 armv7 armv7s VERBOSE_PBXCP = NO VERSIONPLIST_PATH = Runner.app/version.plist VERSION_INFO_BUILDER = hao VERSION_INFO_FILE = Runner_vers.c VERSION_INFO_STRING = &quot;@(#)PROGRAM:Runner PROJECT:Runner-&quot; WRAPPER_EXTENSION = app WRAPPER_NAME = Runner.app WRAPPER_SUFFIX = .app WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES = NO XCODE_APP_SUPPORT_DIR = /Applications/Xcode.app/Contents/Developer/Library/Xcode XCODE_PRODUCT_BUILD_VERSION = 8B62 XCODE_VERSION_ACTUAL = 0810 XCODE_VERSION_MAJOR = 0800 XCODE_VERSION_MINOR = 0810 XPCSERVICES_FOLDER_PATH = Runner.app/XPCServices YACC = yacc arch = arm64 variant = normal [ +73 ms] tail -n 0 -F /Users/hao/Library/Logs/CoreSimulator/6D2E7B8F-9C0D-41BB-BA49-E6F70B985114/system.log [ +2 ms] Building Runner.app for 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114. [ +2 ms] Building build/app.flx [ +48 ms] tail -n 0 -F /private/var/log/system.log [ +129 ms] which zip [ +5 ms] Encoding zip file to build/app.flx [ +14 ms] [build/flx/] zip -q /Users/hao/Documents/flutter_proj/myapp/build/app.flx fonts/MaterialIcons-Regular.ttf AssetManifest.json FontManifest.json LICENSE [ +28 ms] [build/flx/] zip -q -0 /Users/hao/Documents/flutter_proj/myapp/build/app.flx images/lake.jpg [ +13 ms] Built build/app.flx. [ +1 ms] /usr/bin/xcrun simctl get_app_container 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114 com.yourcompany.myapp [ ] /usr/bin/killall Runner [ +31 ms] [DEVICE LOG] Aug 14 07:12:49 bogon SpringBoard[41957]: [KeyboardArbiter] HW kbd: Failed to set (null) as keyboard focus [ +11 ms] [DEVICE LOG] Aug 14 07:12:49 --- last message repeated 1 time --- [ +3 ms] [DEVICE LOG] Aug 14 07:12:49 bogon com.apple.CoreSimulator.SimDevice.6D2E7B8F-9C0D-41BB-BA49-E6F70B985114.launchd_sim[41940] (UIKitApplication:com.yourcompany.myapp[0xd351][42266]): Service exited due to Terminated: 15 [ ] [DEVICE LOG] Aug 14 07:12:49 bogon backboardd[41958]: [Common] Unable to get short BSD proc info for 42266: No such file or directory [ ] [DEVICE LOG] Aug 14 07:12:49 bogon backboardd[41958]: [Common] Unable to get proc info for 42266: No such file or directory [ +38 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de86111c0&gt; registered [ +18 ms] /usr/bin/xcrun simctl launch 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114 com.yourcompany.myapp --enable-dart-profiling --flx=/Users/hao/Documents/flutter_proj/myapp/build/app.flx --dart-main=/Users/hao/Documents/flutter_proj/myapp/lib/main.dart --packages=/Users/hao/Documents/flutter_proj/myapp/.packages --enable-checked-mode --observatory-port=8100 --diagnostic-port=8101 [ +60 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb204b50&gt; registered [ +1 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Requesting launch of com.yourcompany.myapp with options: { [ ] [DEVICE LOG] arguments = ( [ +1 ms] [DEVICE LOG] &quot;--enable-dart-profiling&quot;, [ ] [DEVICE LOG] &quot;--flx=/Users/hao/Documents/flutter_proj/myapp/build/app.flx&quot;, [ ] [DEVICE LOG] &quot;--dart-main=/Users/hao/Documents/flutter_proj/myapp/lib/main.dart&quot;, [ ] [DEVICE LOG] &quot;--packages=/Users/hao/Documents/flutter_proj/myapp/.packages&quot;, [ ] [DEVICE LOG] &quot;--enable-checked-mode&quot;, [ ] [DEVICE LOG] &quot;--observatory-port=8100&quot;, [ ] [DEVICE LOG] &quot;--diagnostic-port=8101&quot; [ ] [DEVICE LOG] ); [ ] [DEVICE LOG] environment = { [ ] [DEVICE LOG] }; [ ] [DEVICE LOG] } [ ] CoreSimulatorBridge: Requesting launch of com.yourcompany.myapp with options: { [ ] arguments = ( [ ] &quot;--enable-dart-profiling&quot;, [ ] &quot;--flx=/Users/hao/Documents/flutter_proj/myapp/build/app.flx&quot;, [ ] &quot;--dart-main=/Users/hao/Documents/flutter_proj/myapp/lib/main.dart&quot;, [ ] &quot;--packages=/Users/hao/Documents/flutter_proj/myapp/.packages&quot;, [ ] &quot;--enable-checked-mode&quot;, [ ] &quot;--observatory-port=8100&quot;, [ ] &quot;--diagnostic-port=8101&quot; [ ] ); [ ] environment = { [ ] }; [ ] } [ ] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: [Common] [FBSSystemService][0x2a1] Sending request to open &quot;com.yourcompany.myapp&quot; [ ] CoreSimulatorBridge: [Common] [FBSSystemService][0x2a1] Sending request to open &quot;com.yourcompany.myapp&quot; [ +35 ms] [DEVICE LOG] Aug 14 07:12:49 bogon assertiond[41961]: notify_suspend_pid() failed with error 7 [ +18 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: [Common] [FBSSystemService][0x2a1] Request successful: &lt;FBSProcessHandle: 0x7f8de84061d0; Runner:42885; valid: YES&gt; [ ] CoreSimulatorBridge: [Common] [FBSSystemService][0x2a1] Request successful: &lt;FBSProcessHandle: 0x7f8de84061d0; Runner:42885; valid: YES&gt; [ +3 ms] com.yourcompany.myapp: 42885 [ ] Waiting for observatory port to be available... [ +69 ms] [DEVICE LOG] Aug 14 07:12:49 bogon logd[41951]: metadata shared cached uuid is null (using logd's shared cache info) Runner (42885) [ ] [DEVICE LOG] Aug 14 07:12:49 bogon logd[41951]: Failed to harvest strings for pathless uuid '00000000-0000-0000-0000-000000000000' [ +2 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: assertion failed: 16F73 14B72: libxpc.dylib + 62597 [17F6B510-0FB1-30D3-B29C-D74A5D63719E]: 0x7d [ +21 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e680&gt; registered [ +21 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: You've implemented -[&lt;UIApplicationDelegate&gt; application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add &quot;remote-notification&quot; to the list of your supported UIBackgroundModes in your Info.plist. [ ] You've implemented -[&lt;UIApplicationDelegate&gt; application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add &quot;remote-notification&quot; to the list of your supported UIBackgroundModes in your Info.plist. [ +13 ms] [DEVICE LOG] Aug 14 07:12:49 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [ +71 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: Diagnostic server listening on http://127.0.0.1:8101/ [ +14 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: Observatory listening on http://127.0.0.1:8100/ [ +1 ms] Observatory URL on device: http://127.0.0.1:8100/ [ +20 ms] Connected to service protocol: http://127.0.0.1:8100/ [ +2 ms] getVM: {} [+2979 ms] [DEVICE LOG] Aug 14 07:12:52 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e730&gt; registered [ +777 ms] [DEVICE LOG] Aug 14 07:12:53 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e7e0&gt; registered [ +29 ms] [DEVICE LOG] Aug 14 07:12:53 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [+3189 ms] [DEVICE LOG] Aug 14 07:12:56 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de8713130&gt; registered [ +783 ms] [DEVICE LOG] Aug 14 07:12:57 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e890&gt; registered [ +26 ms] [DEVICE LOG] Aug 14 07:12:57 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [+3194 ms] [DEVICE LOG] Aug 14 07:13:00 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e940&gt; registered [ +344 ms] [SYS LOG] Aug 14 07:13:01 --- last message repeated 3 times --- [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: ReceiveMessageAndFileDescriptor [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: Calling select... [ +42 ms] [SYS LOG] Aug 14 07:13:01 --- last message repeated 1 time --- [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Installing SIGHUP handler. [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Installing SIGCHLD handler. [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Unblocking SIGCHLD. [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Sending file descriptor and waiting on initial connection [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: send master fd and child pid 42909 [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: All done. Waiting for client to disconnect or child to die. [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: select returned 1, error = File exists [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: assuming socket is readable [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Calling select... [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: calling recvmsg... [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: recvmsg returned 4, errno=n/a [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: recvmsg returned 4 [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: Got a fd [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: Return 4 [ +45 ms] [SYS LOG] Aug 14 07:13:01 bogon login[42909]: USER_PROCESS: 42909 ttys002 [ +149 ms] [SYS LOG] Aug 14 07:13:01 bogon com.apple.usbmuxd[42859]: notice USBMuxBonjourDeviceListenerCreate: LOCKDOWN_V2_BONJOUR_SERVICE_NAME is _apple-mobdev2._tcp,8f2707dd [ +210 ms] [DEVICE LOG] Aug 14 07:13:01 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e240&gt; registered [ +28 ms] [DEVICE LOG] Aug 14 07:13:01 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [+2226 ms] [DEVICE LOG] Aug 14 07:13:03 bogon routined[41946]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104 [ +948 ms] [DEVICE LOG] Aug 14 07:13:04 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de86142e0&gt; registered [ +805 ms] [DEVICE LOG] Aug 14 07:13:05 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb305bb0&gt; registered [ +32 ms] [DEVICE LOG] Aug 14 07:13:05 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [+3164 ms] [DEVICE LOG] Aug 14 07:13:08 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e2f0&gt; registered [ +906 ms] [DEVICE LOG] Aug 14 07:13:09 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de8713640&gt; registered [ +37 ms] [DEVICE LOG] Aug 14 07:13:09 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [+3058 ms] [DEVICE LOG] Aug 14 07:13:12 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb205120&gt; registered [ +753 ms] [DEVICE LOG] Aug 14 07:13:13 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e3a0&gt; registered [ +26 ms] [DEVICE LOG] Aug 14 07:13:13 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [+3221 ms] [DEVICE LOG] Aug 14 07:13:16 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de87148f0&gt; registered [ +751 ms] [DEVICE LOG] Aug 14 07:13:17 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e450&gt; registered [ +32 ms] [DEVICE LOG] Aug 14 07:13:17 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [+1445 ms] [SYS LOG] Aug 14 07:13:19 --- last message repeated 4 times --- [ ] [SYS LOG] Aug 14 07:13:19 bogon com.apple.usbmuxd[42859]: notice Idle, stopping. [ +7 ms] [SYS LOG] Aug 14 07:13:19 bogon xpcproxy[42943]: libcoreservices: _dirhelper_userdir: 523: bootstrap_look_up returned 268435459 [ +12 ms] [SYS LOG] Aug 14 07:13:19 bogon com.apple.usbmuxd[42943]: notice usbmuxd-374.913 on Mar 17 2017 at 17:43:50, running 64 bit [ +777 ms] Request to Dart VM Service timed out: getVM({}) Unhandled exception: TimeoutException: Request to Dart VM Service timed out: getVM({}) #0 VM.invokeRpcRaw (package:flutter_tools/src/vmservice.dart:735) &lt;asynchronous suspension&gt; #1 VM._fetchDirect (package:flutter_tools/src/vmservice.dart:566) &lt;asynchronous suspension&gt; #2 ServiceObject.reload (package:flutter_tools/src/vmservice.dart:414) &lt;asynchronous suspension&gt; #3 VMService.getVM (package:flutter_tools/src/vmservice.dart:243) #4 FlutterDevice.getVMs (package:flutter_tools/src/resident_runner.dart:81) &lt;asynchronous suspension&gt; #5 ResidentRunner.connectToServiceProtocol (package:flutter_tools/src/resident_runner.dart:543) &lt;asynchronous suspension&gt; #6 HotRunner.attach (package:flutter_tools/src/run_hot.dart:106) &lt;asynchronous suspension&gt; #7 HotRunner.run (package:flutter_tools/src/run_hot.dart:206) &lt;asynchronous suspension&gt; #8 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:339) &lt;asynchronous suspension&gt; #9 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:220) &lt;asynchronous suspension&gt; #10 RunCommand.verifyThenRunCommand (package:flutter_tools/src/commands/run.dart:227) &lt;asynchronous suspension&gt; #11 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:162) &lt;asynchronous suspension&gt; #12 CommandRunner.runCommand (package:args/command_runner.dart:194) &lt;asynchronous suspension&gt; #13 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:277) &lt;asynchronous suspension&gt; #14 CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109) #15 new Future.sync (dart:async/future.dart:222) #16 CommandRunner.run (package:args/command_runner.dart:109) #17 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:161) #18 run.&lt;anonymous closure&gt; (package:flutter_tools/executable.dart:142) &lt;asynchronous suspension&gt; #19 AppContext._run (package:flutter_tools/src/base/context.dart:76) &lt;asynchronous suspension&gt; #20 AppContext.runInZone.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:66) #21 _rootRun (dart:async/zone.dart:1120) #22 _CustomZone.run (dart:async/zone.dart:1001) #23 runZoned (dart:async/zone.dart:1467) #24 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65) #25 run (package:flutter_tools/executable.dart:114) &lt;asynchronous suspension&gt; #26 main (package:flutter_tools/executable.dart:67) &lt;asynchronous suspension&gt; #27 main (file:///Users/hao/Documents/flutter/packages/flutter_tools/bin/flutter_tools.dart:16) #28 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/isolate_patch.dart:263) #29 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)"><pre class="notranslate"><code class="notranslate">$ flutter run -v [ +20 ms] [/Users/hao/Documents/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +29 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/alpha [ ] [/Users/hao/Documents/flutter/] git ls-remote --get-url origin [ +7 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] [/Users/hao/Documents/flutter/] git log -n 1 --pretty=format:%H [ +7 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] bbcfb8d51ab12a51f5bc7cedc6d6725b06fac2dc [ ] [/Users/hao/Documents/flutter/] git log -n 1 --pretty=format:%ar [ +7 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 12 days ago [ +130 ms] /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ +80 ms] Exit code 0 from: /usr/bin/defaults read /Applications/Android Studio.app/Contents/Info CFBundleShortVersionString [ ] 2.3 [ +90 ms] Listing devices using /Users/hao/Library/Android/sdk/platform-tools/adb [ ] /Users/hao/Library/Android/sdk/platform-tools/adb devices -l [ +14 ms] Exit code 0 from: /Users/hao/Library/Android/sdk/platform-tools/adb devices -l [ ] List of devices attached [ +886 ms] /usr/bin/xcrun simctl list --json devices [ +575 ms] Launching lib/main.dart on iPhone 7 Plus in debug mode... [ +1 ms] /usr/bin/defaults read /Users/hao/Documents/flutter_proj/myapp/ios/Runner/Info CFBundleIdentifier [ +80 ms] Exit code 0 from: /usr/bin/defaults read /Users/hao/Documents/flutter_proj/myapp/ios/Runner/Info CFBundleIdentifier [ ] $(PRODUCT_BUNDLE_IDENTIFIER) [ ] /usr/bin/xcodebuild -project /Users/hao/Documents/flutter_proj/myapp/ios/Runner.xcodeproj -target Runner -showBuildSettings [ +648 ms] Exit code 0 from: /usr/bin/xcodebuild -project /Users/hao/Documents/flutter_proj/myapp/ios/Runner.xcodeproj -target Runner -showBuildSettings [ ] Build settings for action build and target Runner: ACTION = build AD_HOC_CODE_SIGNING_ALLOWED = NO ALTERNATE_GROUP = staff ALTERNATE_MODE = u+w,go-w,a+rX ALTERNATE_OWNER = hao ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO ALWAYS_SEARCH_USER_PATHS = NO ALWAYS_USE_SEPARATE_HEADERMAPS = NO APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer APPLE_INTERNAL_DIR = /AppleInternal APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal/Library APPLE_INTERNAL_TOOLS = /AppleInternal/Developer/Tools APPLICATION_EXTENSION_API_ONLY = NO APPLY_RULES_IN_COPY_FILES = NO ARCHS = arm64 ARCHS_STANDARD = armv7 arm64 ARCHS_STANDARD_32_64_BIT = armv7 arm64 ARCHS_STANDARD_32_BIT = armv7 ARCHS_STANDARD_64_BIT = arm64 ARCHS_STANDARD_INCLUDING_64_BIT = armv7 arm64 ARCHS_UNIVERSAL_IPHONE_OS = armv7 arm64 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon AVAILABLE_PLATFORMS = appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator BITCODE_GENERATION_MODE = marker BUILD_ACTIVE_RESOURCES_ONLY = NO BUILD_COMPONENTS = headers build BUILD_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios BUILD_ROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios BUILD_STYLE = BUILD_VARIANTS = normal BUILT_PRODUCTS_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos CACHE_ROOT = /var/folders/59/tmvyr0md5tj_5htf68fs85dm0000gn/C/com.apple.DeveloperTools/8.1-8B62/Xcode CCHROOT = /var/folders/59/tmvyr0md5tj_5htf68fs85dm0000gn/C/com.apple.DeveloperTools/8.1-8B62/Xcode CHMOD = /bin/chmod CHOWN = /usr/sbin/chown CLANG_ANALYZER_NONNULL = YES CLANG_CXX_LANGUAGE_STANDARD = gnu++0x CLANG_CXX_LIBRARY = libc++ CLANG_ENABLE_MODULES = YES CLANG_ENABLE_OBJC_ARC = YES CLANG_WARN_BOOL_CONVERSION = YES CLANG_WARN_CONSTANT_CONVERSION = YES CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR CLANG_WARN_EMPTY_BODY = YES CLANG_WARN_ENUM_CONVERSION = YES CLANG_WARN_INFINITE_RECURSION = YES CLANG_WARN_INT_CONVERSION = YES CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR CLANG_WARN_SUSPICIOUS_MOVE = YES CLANG_WARN_UNREACHABLE_CODE = YES CLANG_WARN__DUPLICATE_METHOD_MATCH = YES CLASS_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/JavaClasses CLEAN_PRECOMPS = YES CLONE_HEADERS = NO CODESIGNING_FOLDER_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos/Runner.app CODE_SIGNING_ALLOWED = YES CODE_SIGNING_REQUIRED = YES CODE_SIGN_CONTEXT_CLASS = XCiPhoneOSCodeSignContext CODE_SIGN_IDENTITY = iPhone Developer COLOR_DIAGNOSTICS = NO COMBINE_HIDPI_IMAGES = NO COMPOSITE_SDK_DIRS = /Users/hao/Documents/flutter_proj/myapp/build/ios/CompositeSDKs COMPRESS_PNG_FILES = YES CONFIGURATION = Release CONFIGURATION_BUILD_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos CONFIGURATION_TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos CONTENTS_FOLDER_PATH = Runner.app COPYING_PRESERVES_HFS_DATA = NO COPY_HEADERS_RUN_UNIFDEF = NO COPY_PHASE_STRIP = NO COPY_RESOURCES_FROM_STATIC_FRAMEWORKS = YES CORRESPONDING_SIMULATOR_PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform CORRESPONDING_SIMULATOR_PLATFORM_NAME = iphonesimulator CORRESPONDING_SIMULATOR_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.1.sdk CORRESPONDING_SIMULATOR_SDK_NAME = iphonesimulator10.1 CP = /bin/cp CREATE_INFOPLIST_SECTION_IN_BINARY = NO CURRENT_ARCH = arm64 CURRENT_VARIANT = normal DEAD_CODE_STRIPPING = YES DEBUGGING_SYMBOLS = YES DEBUG_INFORMATION_FORMAT = dwarf-with-dsym DEFAULT_COMPILER = com.apple.compilers.llvm.clang.1_0 DEFAULT_KEXT_INSTALL_PATH = /System/Library/Extensions DEFINES_MODULE = NO DEPLOYMENT_LOCATION = NO DEPLOYMENT_POSTPROCESSING = NO DEPLOYMENT_TARGET_CLANG_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_CLANG_FLAG_NAME = miphoneos-version-min DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX = -miphoneos-version-min= DEPLOYMENT_TARGET_SETTING_NAME = IPHONEOS_DEPLOYMENT_TARGET DEPLOYMENT_TARGET_SUGGESTED_VALUES = 8.0 8.1 8.2 8.3 8.4 9.0 9.1 9.2 9.3 10.0 10.1 DERIVED_FILES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DERIVED_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DERIVED_SOURCES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/DerivedSources DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Applications DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer DEVELOPER_FRAMEWORKS_DIR = /Applications/Xcode.app/Contents/Developer/Library/Frameworks DEVELOPER_FRAMEWORKS_DIR_QUOTED = /Applications/Xcode.app/Contents/Developer/Library/Frameworks DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/Developer/Library DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Tools DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr DEVELOPMENT_LANGUAGE = English DOCUMENTATION_FOLDER_PATH = Runner.app/English.lproj/Documentation DO_HEADER_SCANNING_IN_JAM = NO DSTROOT = /tmp/Runner.dst DT_TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain DWARF_DSYM_FILE_NAME = Runner.app.dSYM DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO DWARF_DSYM_FOLDER_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos EFFECTIVE_PLATFORM_NAME = -iphoneos EMBEDDED_CONTENT_CONTAINS_SWIFT = NO EMBEDDED_PROFILE_NAME = embedded.mobileprovision EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO ENABLE_BITCODE = NO ENABLE_DEFAULT_HEADER_SEARCH_PATHS = YES ENABLE_HEADER_DEPENDENCIES = YES ENABLE_NS_ASSERTIONS = NO ENABLE_ON_DEMAND_RESOURCES = YES ENABLE_STRICT_OBJC_MSGSEND = YES ENABLE_TESTABILITY = NO ENTITLEMENTS_ALLOWED = YES ENTITLEMENTS_REQUIRED = YES EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS = .DS_Store .svn .git .hg CVS EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj EXECUTABLES_FOLDER_PATH = Runner.app/Executables EXECUTABLE_FOLDER_PATH = Runner.app EXECUTABLE_NAME = Runner EXECUTABLE_PATH = Runner.app/Runner EXPANDED_CODE_SIGN_IDENTITY = EXPANDED_CODE_SIGN_IDENTITY_NAME = EXPANDED_PROVISIONING_PROFILE = FILE_LIST = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects/LinkFileList FIXED_FILES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/FixedFiles FLUTTER_APPLICATION_PATH = /Users/hao/Documents/flutter_proj/myapp FLUTTER_BUILD_DIR = build FLUTTER_BUILD_MODE = debug FLUTTER_FRAMEWORK_DIR = /Users/hao/Documents/flutter/bin/cache/artifacts/engine/ios FLUTTER_ROOT = /Users/hao/Documents/flutter FLUTTER_TARGET = lib/main.dart FRAMEWORKS_FOLDER_PATH = Runner.app/Frameworks FRAMEWORK_FLAG_PREFIX = -framework FRAMEWORK_SEARCH_PATHS = /Users/hao/Documents/flutter_proj/myapp/ios/Flutter FRAMEWORK_VERSION = A FULL_PRODUCT_NAME = Runner.app GCC3_VERSION = 3.3 GCC_C_LANGUAGE_STANDARD = gnu99 GCC_INLINES_ARE_PRIVATE_EXTERN = YES GCC_NO_COMMON_BLOCKS = YES GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++ GCC_SYMBOLS_PRIVATE_EXTERN = YES GCC_THUMB_SUPPORT = YES GCC_TREAT_WARNINGS_AS_ERRORS = NO GCC_VERSION = com.apple.compilers.llvm.clang.1_0 GCC_VERSION_IDENTIFIER = com_apple_compilers_llvm_clang_1_0 GCC_WARN_64_TO_32_BIT_CONVERSION = YES GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR GCC_WARN_UNDECLARED_SELECTOR = YES GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE GCC_WARN_UNUSED_FUNCTION = YES GCC_WARN_UNUSED_VARIABLE = YES GENERATE_MASTER_OBJECT_FILE = NO GENERATE_PKGINFO_FILE = YES GENERATE_PROFILING_CODE = NO GENERATE_TEXT_BASED_STUBS = NO GID = 20 GROUP = staff HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT = YES HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES = YES HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS = YES HEADERMAP_INCLUDES_PROJECT_HEADERS = YES HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES = YES HEADERMAP_USES_VFS = NO HIDE_BITCODE_SYMBOLS = YES HOME = /Users/hao ICONV = /usr/bin/iconv INFOPLIST_EXPAND_BUILD_SETTINGS = YES INFOPLIST_FILE = Runner/Info.plist INFOPLIST_OUTPUT_FORMAT = binary INFOPLIST_PATH = Runner.app/Info.plist INFOPLIST_PREPROCESS = NO INFOSTRINGS_PATH = Runner.app/English.lproj/InfoPlist.strings INLINE_PRIVATE_FRAMEWORKS = NO INSTALLHDRS_COPY_PHASE = NO INSTALLHDRS_SCRIPT_PHASE = NO INSTALL_DIR = /tmp/Runner.dst/Applications INSTALL_GROUP = staff INSTALL_MODE_FLAG = u+w,go-w,a+rX INSTALL_OWNER = hao INSTALL_PATH = /Applications INSTALL_ROOT = /tmp/Runner.dst IPHONEOS_DEPLOYMENT_TARGET = 8.0 JAVAC_DEFAULT_FLAGS = -J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8 JAVA_APP_STUB = /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub JAVA_ARCHIVE_CLASSES = YES JAVA_ARCHIVE_TYPE = JAR JAVA_COMPILER = /usr/bin/javac JAVA_FOLDER_PATH = Runner.app/Java JAVA_FRAMEWORK_RESOURCES_DIRS = Resources JAVA_JAR_FLAGS = cv JAVA_SOURCE_SUBDIR = . JAVA_USE_DEPENDENCIES = YES JAVA_ZIP_FLAGS = -urg JIKES_DEFAULT_FLAGS = +E +OLDCSO KEEP_PRIVATE_EXTERNS = NO LD_DEPENDENCY_INFO_FILE = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal/arm64/Runner_dependency_info.dat LD_GENERATE_MAP_FILE = NO LD_MAP_FILE_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Runner-LinkMap-normal-arm64.txt LD_NO_PIE = NO LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER = YES LD_RUNPATH_SEARCH_PATHS = @executable_path/Frameworks LEGACY_DEVELOPER_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer LEX = lex LIBRARY_FLAG_NOSPACE = YES LIBRARY_FLAG_PREFIX = -l LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions LIBRARY_SEARCH_PATHS = /Users/hao/Documents/flutter_proj/myapp/ios/Flutter LINKER_DISPLAYS_MANGLED_NAMES = NO LINK_FILE_LIST_normal_arm64 = LINK_WITH_STANDARD_LIBRARIES = YES LOCALIZABLE_CONTENT_DIR = LOCALIZED_RESOURCES_FOLDER_PATH = Runner.app/English.lproj LOCAL_ADMIN_APPS_DIR = /Applications/Utilities LOCAL_APPS_DIR = /Applications LOCAL_DEVELOPER_DIR = /Library/Developer LOCAL_LIBRARY_DIR = /Library LOCROOT = LOCSYMROOT = MACH_O_TYPE = mh_execute MAC_OS_X_PRODUCT_BUILD_VERSION = 16F73 MAC_OS_X_VERSION_ACTUAL = 101205 MAC_OS_X_VERSION_MAJOR = 101200 MAC_OS_X_VERSION_MINOR = 1205 METAL_LIBRARY_FILE_BASE = default METAL_LIBRARY_OUTPUT_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos/Runner.app MODULE_CACHE_DIR = /Users/hao/Library/Developer/Xcode/DerivedData/ModuleCache MTL_ENABLE_DEBUG_INFO = NO NATIVE_ARCH = armv7 NATIVE_ARCH_32_BIT = i386 NATIVE_ARCH_64_BIT = x86_64 NATIVE_ARCH_ACTUAL = x86_64 NO_COMMON = YES OBJECT_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects OBJECT_FILE_DIR_normal = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/Objects-normal OBJROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios ONLY_ACTIVE_ARCH = NO OS = MACOS OSAC = /usr/bin/osacompile PACKAGE_TYPE = com.apple.package-type.wrapper.application PASCAL_STRINGS = YES PATH = /Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/opt/go/libexec/bin:/Users/hao/Documents/go/bin:/Users/hao/bin:/Users/hao/Documents/flutter/bin PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES = /usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms PBDEVELOPMENTPLIST_PATH = Runner.app/pbdevelopment.plist PFE_FILE_C_DIALECTS = objective-c PKGINFO_FILE_PATH = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/PkgInfo PKGINFO_PATH = Runner.app/PkgInfo PLATFORM_DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications PLATFORM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin PLATFORM_DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library PLATFORM_DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs PLATFORM_DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools PLATFORM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform PLATFORM_DISPLAY_NAME = iOS PLATFORM_NAME = iphoneos PLATFORM_PREFERRED_ARCH = arm64 PLATFORM_PRODUCT_BUILD_VERSION = 14B72 PLIST_FILE_OUTPUT_FORMAT = binary PLUGINS_FOLDER_PATH = Runner.app/PlugIns PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES PRECOMP_DESTINATION_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/PrefixHeaders PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO PRIVATE_HEADERS_FOLDER_PATH = Runner.app/PrivateHeaders PRODUCT_BUNDLE_IDENTIFIER = com.yourcompany.myapp PRODUCT_MODULE_NAME = Runner PRODUCT_NAME = Runner PRODUCT_SETTINGS_PATH = /Users/hao/Documents/flutter_proj/myapp/ios/Runner/Info.plist PRODUCT_TYPE = com.apple.product-type.application PROFILING_CODE = NO PROJECT = Runner PROJECT_DERIVED_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/DerivedSources PROJECT_DIR = /Users/hao/Documents/flutter_proj/myapp/ios PROJECT_FILE_PATH = /Users/hao/Documents/flutter_proj/myapp/ios/Runner.xcodeproj PROJECT_NAME = Runner PROJECT_TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build PROJECT_TEMP_ROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios PROVISIONING_PROFILE_REQUIRED = YES PUBLIC_HEADERS_FOLDER_PATH = Runner.app/Headers RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS = YES REMOVE_CVS_FROM_RESOURCES = YES REMOVE_GIT_FROM_RESOURCES = YES REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES = YES REMOVE_HG_FROM_RESOURCES = YES REMOVE_SVN_FROM_RESOURCES = YES RESOURCE_RULES_REQUIRED = YES REZ_COLLECTOR_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources REZ_OBJECTS_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build/ResourceManagerResources/Objects SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO SCRIPTS_FOLDER_PATH = Runner.app/Scripts SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk SDK_DIR_iphoneos10_1 = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.1.sdk SDK_NAME = iphoneos10.1 SDK_NAMES = iphoneos10.1 SDK_PRODUCT_BUILD_VERSION = 14B72 SDK_VERSION = 10.1 SDK_VERSION_ACTUAL = 100100 SDK_VERSION_MAJOR = 100000 SDK_VERSION_MINOR = 100 SED = /usr/bin/sed SEPARATE_STRIP = NO SEPARATE_SYMBOL_EDIT = NO SET_DIR_MODE_OWNER_GROUP = YES SET_FILE_MODE_OWNER_GROUP = NO SHALLOW_BUNDLE = YES SHARED_DERIVED_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos/DerivedSources SHARED_FRAMEWORKS_FOLDER_PATH = Runner.app/SharedFrameworks SHARED_PRECOMPS_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/SharedPrecompiledHeaders SHARED_SUPPORT_FOLDER_PATH = Runner.app/SharedSupport SKIP_INSTALL = NO SOURCE_ROOT = /Users/hao/Documents/flutter_proj/myapp/ios SRCROOT = /Users/hao/Documents/flutter_proj/myapp/ios STRINGS_FILE_OUTPUT_ENCODING = binary STRIP_BITCODE_FROM_COPIED_FILES = YES STRIP_INSTALLED_PRODUCT = YES STRIP_STYLE = all SUPPORTED_DEVICE_FAMILIES = 1,2 SUPPORTED_PLATFORMS = iphonesimulator iphoneos SUPPORTS_TEXT_BASED_API = NO SWIFT_PLATFORM_TARGET_PREFIX = ios SYMROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios SYSTEM_ADMIN_APPS_DIR = /Applications/Utilities SYSTEM_APPS_DIR = /Applications SYSTEM_CORE_SERVICES_DIR = /System/Library/CoreServices SYSTEM_DEMOS_DIR = /Applications/Extras SYSTEM_DEVELOPER_APPS_DIR = /Applications/Xcode.app/Contents/Developer/Applications SYSTEM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin SYSTEM_DEVELOPER_DEMOS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples SYSTEM_DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer SYSTEM_DEVELOPER_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools SYSTEM_DEVELOPER_JAVA_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Java Tools SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Performance Tools SYSTEM_DEVELOPER_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes SYSTEM_DEVELOPER_TOOLS = /Applications/Xcode.app/Contents/Developer/Tools SYSTEM_DEVELOPER_TOOLS_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools SYSTEM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr SYSTEM_DEVELOPER_UTILITIES_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities SYSTEM_DOCUMENTATION_DIR = /Library/Documentation SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions SYSTEM_LIBRARY_DIR = /System/Library TAPI_VERIFY_MODE = ErrorsOnly TARGETED_DEVICE_FAMILY = 1,2 TARGETNAME = Runner TARGET_BUILD_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Release-iphoneos TARGET_NAME = Runner TARGET_TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_FILES_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_FILE_DIR = /Users/hao/Documents/flutter_proj/myapp/build/ios/Runner.build/Release-iphoneos/Runner.build TEMP_ROOT = /Users/hao/Documents/flutter_proj/myapp/build/ios TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO UID = 501 UNLOCALIZED_RESOURCES_FOLDER_PATH = Runner.app UNSTRIPPED_PRODUCT = NO USER = hao USER_APPS_DIR = /Users/hao/Applications USER_LIBRARY_DIR = /Users/hao/Library USE_DYNAMIC_NO_PIC = YES USE_HEADERMAP = YES USE_HEADER_SYMLINKS = NO VALIDATE_PRODUCT = YES VALID_ARCHS = arm64 armv7 armv7s VERBOSE_PBXCP = NO VERSIONPLIST_PATH = Runner.app/version.plist VERSION_INFO_BUILDER = hao VERSION_INFO_FILE = Runner_vers.c VERSION_INFO_STRING = "@(#)PROGRAM:Runner PROJECT:Runner-" WRAPPER_EXTENSION = app WRAPPER_NAME = Runner.app WRAPPER_SUFFIX = .app WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES = NO XCODE_APP_SUPPORT_DIR = /Applications/Xcode.app/Contents/Developer/Library/Xcode XCODE_PRODUCT_BUILD_VERSION = 8B62 XCODE_VERSION_ACTUAL = 0810 XCODE_VERSION_MAJOR = 0800 XCODE_VERSION_MINOR = 0810 XPCSERVICES_FOLDER_PATH = Runner.app/XPCServices YACC = yacc arch = arm64 variant = normal [ +73 ms] tail -n 0 -F /Users/hao/Library/Logs/CoreSimulator/6D2E7B8F-9C0D-41BB-BA49-E6F70B985114/system.log [ +2 ms] Building Runner.app for 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114. [ +2 ms] Building build/app.flx [ +48 ms] tail -n 0 -F /private/var/log/system.log [ +129 ms] which zip [ +5 ms] Encoding zip file to build/app.flx [ +14 ms] [build/flx/] zip -q /Users/hao/Documents/flutter_proj/myapp/build/app.flx fonts/MaterialIcons-Regular.ttf AssetManifest.json FontManifest.json LICENSE [ +28 ms] [build/flx/] zip -q -0 /Users/hao/Documents/flutter_proj/myapp/build/app.flx images/lake.jpg [ +13 ms] Built build/app.flx. [ +1 ms] /usr/bin/xcrun simctl get_app_container 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114 com.yourcompany.myapp [ ] /usr/bin/killall Runner [ +31 ms] [DEVICE LOG] Aug 14 07:12:49 bogon SpringBoard[41957]: [KeyboardArbiter] HW kbd: Failed to set (null) as keyboard focus [ +11 ms] [DEVICE LOG] Aug 14 07:12:49 --- last message repeated 1 time --- [ +3 ms] [DEVICE LOG] Aug 14 07:12:49 bogon com.apple.CoreSimulator.SimDevice.6D2E7B8F-9C0D-41BB-BA49-E6F70B985114.launchd_sim[41940] (UIKitApplication:com.yourcompany.myapp[0xd351][42266]): Service exited due to Terminated: 15 [ ] [DEVICE LOG] Aug 14 07:12:49 bogon backboardd[41958]: [Common] Unable to get short BSD proc info for 42266: No such file or directory [ ] [DEVICE LOG] Aug 14 07:12:49 bogon backboardd[41958]: [Common] Unable to get proc info for 42266: No such file or directory [ +38 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de86111c0&gt; registered [ +18 ms] /usr/bin/xcrun simctl launch 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114 com.yourcompany.myapp --enable-dart-profiling --flx=/Users/hao/Documents/flutter_proj/myapp/build/app.flx --dart-main=/Users/hao/Documents/flutter_proj/myapp/lib/main.dart --packages=/Users/hao/Documents/flutter_proj/myapp/.packages --enable-checked-mode --observatory-port=8100 --diagnostic-port=8101 [ +60 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb204b50&gt; registered [ +1 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Requesting launch of com.yourcompany.myapp with options: { [ ] [DEVICE LOG] arguments = ( [ +1 ms] [DEVICE LOG] "--enable-dart-profiling", [ ] [DEVICE LOG] "--flx=/Users/hao/Documents/flutter_proj/myapp/build/app.flx", [ ] [DEVICE LOG] "--dart-main=/Users/hao/Documents/flutter_proj/myapp/lib/main.dart", [ ] [DEVICE LOG] "--packages=/Users/hao/Documents/flutter_proj/myapp/.packages", [ ] [DEVICE LOG] "--enable-checked-mode", [ ] [DEVICE LOG] "--observatory-port=8100", [ ] [DEVICE LOG] "--diagnostic-port=8101" [ ] [DEVICE LOG] ); [ ] [DEVICE LOG] environment = { [ ] [DEVICE LOG] }; [ ] [DEVICE LOG] } [ ] CoreSimulatorBridge: Requesting launch of com.yourcompany.myapp with options: { [ ] arguments = ( [ ] "--enable-dart-profiling", [ ] "--flx=/Users/hao/Documents/flutter_proj/myapp/build/app.flx", [ ] "--dart-main=/Users/hao/Documents/flutter_proj/myapp/lib/main.dart", [ ] "--packages=/Users/hao/Documents/flutter_proj/myapp/.packages", [ ] "--enable-checked-mode", [ ] "--observatory-port=8100", [ ] "--diagnostic-port=8101" [ ] ); [ ] environment = { [ ] }; [ ] } [ ] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: [Common] [FBSSystemService][0x2a1] Sending request to open "com.yourcompany.myapp" [ ] CoreSimulatorBridge: [Common] [FBSSystemService][0x2a1] Sending request to open "com.yourcompany.myapp" [ +35 ms] [DEVICE LOG] Aug 14 07:12:49 bogon assertiond[41961]: notify_suspend_pid() failed with error 7 [ +18 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: [Common] [FBSSystemService][0x2a1] Request successful: &lt;FBSProcessHandle: 0x7f8de84061d0; Runner:42885; valid: YES&gt; [ ] CoreSimulatorBridge: [Common] [FBSSystemService][0x2a1] Request successful: &lt;FBSProcessHandle: 0x7f8de84061d0; Runner:42885; valid: YES&gt; [ +3 ms] com.yourcompany.myapp: 42885 [ ] Waiting for observatory port to be available... [ +69 ms] [DEVICE LOG] Aug 14 07:12:49 bogon logd[41951]: metadata shared cached uuid is null (using logd's shared cache info) Runner (42885) [ ] [DEVICE LOG] Aug 14 07:12:49 bogon logd[41951]: Failed to harvest strings for pathless uuid '00000000-0000-0000-0000-000000000000' [ +2 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: assertion failed: 16F73 14B72: libxpc.dylib + 62597 [17F6B510-0FB1-30D3-B29C-D74A5D63719E]: 0x7d [ +21 ms] [DEVICE LOG] Aug 14 07:12:49 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e680&gt; registered [ +21 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: You've implemented -[&lt;UIApplicationDelegate&gt; application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist. [ ] You've implemented -[&lt;UIApplicationDelegate&gt; application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist. [ +13 ms] [DEVICE LOG] Aug 14 07:12:49 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [ +71 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: Diagnostic server listening on http://127.0.0.1:8101/ [ +14 ms] [DEVICE LOG] Aug 14 07:12:49 bogon Runner[42885]: Observatory listening on http://127.0.0.1:8100/ [ +1 ms] Observatory URL on device: http://127.0.0.1:8100/ [ +20 ms] Connected to service protocol: http://127.0.0.1:8100/ [ +2 ms] getVM: {} [+2979 ms] [DEVICE LOG] Aug 14 07:12:52 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e730&gt; registered [ +777 ms] [DEVICE LOG] Aug 14 07:12:53 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e7e0&gt; registered [ +29 ms] [DEVICE LOG] Aug 14 07:12:53 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [+3189 ms] [DEVICE LOG] Aug 14 07:12:56 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de8713130&gt; registered [ +783 ms] [DEVICE LOG] Aug 14 07:12:57 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e890&gt; registered [ +26 ms] [DEVICE LOG] Aug 14 07:12:57 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [+3194 ms] [DEVICE LOG] Aug 14 07:13:00 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e940&gt; registered [ +344 ms] [SYS LOG] Aug 14 07:13:01 --- last message repeated 3 times --- [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: ReceiveMessageAndFileDescriptor [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: Calling select... [ +42 ms] [SYS LOG] Aug 14 07:13:01 --- last message repeated 1 time --- [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Installing SIGHUP handler. [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Installing SIGCHLD handler. [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Unblocking SIGCHLD. [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Sending file descriptor and waiting on initial connection [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: send master fd and child pid 42909 [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: All done. Waiting for client to disconnect or child to die. [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: select returned 1, error = File exists [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: assuming socket is readable [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2-Server[42908]: Calling select... [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: calling recvmsg... [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: recvmsg returned 4, errno=n/a [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: recvmsg returned 4 [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: Got a fd [ ] [SYS LOG] Aug 14 07:13:01 bogon iTerm2[346]: Return 4 [ +45 ms] [SYS LOG] Aug 14 07:13:01 bogon login[42909]: USER_PROCESS: 42909 ttys002 [ +149 ms] [SYS LOG] Aug 14 07:13:01 bogon com.apple.usbmuxd[42859]: notice USBMuxBonjourDeviceListenerCreate: LOCKDOWN_V2_BONJOUR_SERVICE_NAME is _apple-mobdev2._tcp,8f2707dd [ +210 ms] [DEVICE LOG] Aug 14 07:13:01 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e240&gt; registered [ +28 ms] [DEVICE LOG] Aug 14 07:13:01 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [+2226 ms] [DEVICE LOG] Aug 14 07:13:03 bogon routined[41946]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104 [ +948 ms] [DEVICE LOG] Aug 14 07:13:04 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de86142e0&gt; registered [ +805 ms] [DEVICE LOG] Aug 14 07:13:05 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb305bb0&gt; registered [ +32 ms] [DEVICE LOG] Aug 14 07:13:05 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [+3164 ms] [DEVICE LOG] Aug 14 07:13:08 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e2f0&gt; registered [ +906 ms] [DEVICE LOG] Aug 14 07:13:09 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de8713640&gt; registered [ +37 ms] [DEVICE LOG] Aug 14 07:13:09 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [+3058 ms] [DEVICE LOG] Aug 14 07:13:12 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb205120&gt; registered [ +753 ms] [DEVICE LOG] Aug 14 07:13:13 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e3a0&gt; registered [ +26 ms] [DEVICE LOG] Aug 14 07:13:13 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [+3221 ms] [DEVICE LOG] Aug 14 07:13:16 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8de87148f0&gt; registered [ +751 ms] [DEVICE LOG] Aug 14 07:13:17 bogon CoreSimulatorBridge[41966]: Pasteboard change listener callback port &lt;NSMachPort: 0x7f8deb10e450&gt; registered [ +32 ms] [DEVICE LOG] Aug 14 07:13:17 bogon DTServiceHub[41999]: Could not create service named com.apple.instruments.server.services.processcontrol.posixspawn [+1445 ms] [SYS LOG] Aug 14 07:13:19 --- last message repeated 4 times --- [ ] [SYS LOG] Aug 14 07:13:19 bogon com.apple.usbmuxd[42859]: notice Idle, stopping. [ +7 ms] [SYS LOG] Aug 14 07:13:19 bogon xpcproxy[42943]: libcoreservices: _dirhelper_userdir: 523: bootstrap_look_up returned 268435459 [ +12 ms] [SYS LOG] Aug 14 07:13:19 bogon com.apple.usbmuxd[42943]: notice usbmuxd-374.913 on Mar 17 2017 at 17:43:50, running 64 bit [ +777 ms] Request to Dart VM Service timed out: getVM({}) Unhandled exception: TimeoutException: Request to Dart VM Service timed out: getVM({}) #0 VM.invokeRpcRaw (package:flutter_tools/src/vmservice.dart:735) &lt;asynchronous suspension&gt; #1 VM._fetchDirect (package:flutter_tools/src/vmservice.dart:566) &lt;asynchronous suspension&gt; #2 ServiceObject.reload (package:flutter_tools/src/vmservice.dart:414) &lt;asynchronous suspension&gt; #3 VMService.getVM (package:flutter_tools/src/vmservice.dart:243) #4 FlutterDevice.getVMs (package:flutter_tools/src/resident_runner.dart:81) &lt;asynchronous suspension&gt; #5 ResidentRunner.connectToServiceProtocol (package:flutter_tools/src/resident_runner.dart:543) &lt;asynchronous suspension&gt; #6 HotRunner.attach (package:flutter_tools/src/run_hot.dart:106) &lt;asynchronous suspension&gt; #7 HotRunner.run (package:flutter_tools/src/run_hot.dart:206) &lt;asynchronous suspension&gt; #8 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:339) &lt;asynchronous suspension&gt; #9 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:220) &lt;asynchronous suspension&gt; #10 RunCommand.verifyThenRunCommand (package:flutter_tools/src/commands/run.dart:227) &lt;asynchronous suspension&gt; #11 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:162) &lt;asynchronous suspension&gt; #12 CommandRunner.runCommand (package:args/command_runner.dart:194) &lt;asynchronous suspension&gt; #13 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:277) &lt;asynchronous suspension&gt; #14 CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109) #15 new Future.sync (dart:async/future.dart:222) #16 CommandRunner.run (package:args/command_runner.dart:109) #17 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:161) #18 run.&lt;anonymous closure&gt; (package:flutter_tools/executable.dart:142) &lt;asynchronous suspension&gt; #19 AppContext._run (package:flutter_tools/src/base/context.dart:76) &lt;asynchronous suspension&gt; #20 AppContext.runInZone.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:66) #21 _rootRun (dart:async/zone.dart:1120) #22 _CustomZone.run (dart:async/zone.dart:1001) #23 runZoned (dart:async/zone.dart:1467) #24 AppContext.runInZone (package:flutter_tools/src/base/context.dart:65) #25 run (package:flutter_tools/executable.dart:114) &lt;asynchronous suspension&gt; #26 main (package:flutter_tools/executable.dart:67) &lt;asynchronous suspension&gt; #27 main (file:///Users/hao/Documents/flutter/packages/flutter_tools/bin/flutter_tools.dart:16) #28 _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/isolate_patch.dart:263) #29 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151) </code></pre></div> <h3 dir="auto">flutter analyze</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter analyze Analyzing /Users/hao/Documents/flutter_proj/myapp... No issues found! Ran in 5.1s"><pre class="notranslate"><code class="notranslate">$ flutter analyze Analyzing /Users/hao/Documents/flutter_proj/myapp... No issues found! Ran in 5.1s </code></pre></div> <h3 dir="auto">flutter doctor</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter doctor [✓] Flutter (on Mac OS X 10.12.5 16F73, locale zh-Hans-CN, channel alpha) • Flutter at /Users/hao/Documents/flutter • Framework revision bbcfb8d51a (12 days ago), 2017-08-01 14:50:29 -0700 • Engine revision f2af347363 • Tools Dart version 1.25.0-dev.7.0 [✓] Android toolchain - develop for Android devices (Android SDK 25.0.2) • Android SDK at /Users/hao/Library/Android/sdk • Platform android-25, build-tools 25.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] iOS toolchain - develop for iOS devices (Xcode 8.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 8.1, Build version 8B62 • ios-deploy 1.9.1 • CocoaPods version 1.3.0 [✓] Android Studio (version 2.3) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] Connected devices • iPhone 7 Plus • 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114 • ios • iOS 10.1 (simulator) "><pre class="notranslate"><code class="notranslate">$ flutter doctor [✓] Flutter (on Mac OS X 10.12.5 16F73, locale zh-Hans-CN, channel alpha) • Flutter at /Users/hao/Documents/flutter • Framework revision bbcfb8d51a (12 days ago), 2017-08-01 14:50:29 -0700 • Engine revision f2af347363 • Tools Dart version 1.25.0-dev.7.0 [✓] Android toolchain - develop for Android devices (Android SDK 25.0.2) • Android SDK at /Users/hao/Library/Android/sdk • Platform android-25, build-tools 25.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] iOS toolchain - develop for iOS devices (Xcode 8.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 8.1, Build version 8B62 • ios-deploy 1.9.1 • CocoaPods version 1.3.0 [✓] Android Studio (version 2.3) • Android Studio at /Applications/Android Studio.app/Contents • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06) [✓] Connected devices • iPhone 7 Plus • 6D2E7B8F-9C0D-41BB-BA49-E6F70B985114 • ios • iOS 10.1 (simulator) </code></pre></div>
<p dir="auto">I get this exception that the flutter runtime exception handler wants the to report, so here it is. This is inside an integration test that is setup according to the cookbook, apart from having a mocked http.Client which is passed to the app.</p> <p dir="auto">We use the same way of mocking in our unit tests, where it works fine. For instance</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MockClient extends Mock implements http.Client {} void main() { final String projectId = &quot;d0f74b1e-c76d-42d0-a835-1e29a5f3daca&quot;; final String project2Id = &quot;19887007-b260-490e-9fae-701303e67f54&quot;; final String dossierId = &quot;52d58852-2269-43f9-86d9-b127d2040ec0&quot;; group(&quot;Session Tests&quot;, () { test(&quot;test correct login&quot;, () async { final client = MockClient(); final inlognaam = &quot;Correct&quot;; final wachtwoord = &quot;Correct&quot;; final code = &quot;Correct&quot;; when(client.put(Session(null).serverURL + &quot;/api/Login&quot;, body: { &quot;inlognaam&quot;: inlognaam, &quot;wachtwoord&quot;: wachtwoord, &quot;code&quot;: code })).thenAnswer((_) async =&gt; http.Response( &quot;{\&quot;Response\&quot;: \&quot;3c7d7d0f46b1d287e8f8cb623a3c0b35\&quot;,\&quot;Ingelogd\&quot;: true}&quot;, 200)); final loginParams = LoginParameters.login(inlognaam, wachtwoord, code); var response = await Session(client).login(loginParams); expect(response, &quot;Ingelogd&quot;); }); etc"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-c1">MockClient</span> <span class="pl-k">extends</span> <span class="pl-c1">Mock</span> <span class="pl-k">implements</span> http.<span class="pl-c1">Client</span> {} <span class="pl-k">void</span> <span class="pl-en">main</span>() { <span class="pl-k">final</span> <span class="pl-c1">String</span> projectId <span class="pl-k">=</span> <span class="pl-s">"d0f74b1e-c76d-42d0-a835-1e29a5f3daca"</span>; <span class="pl-k">final</span> <span class="pl-c1">String</span> project2Id <span class="pl-k">=</span> <span class="pl-s">"19887007-b260-490e-9fae-701303e67f54"</span>; <span class="pl-k">final</span> <span class="pl-c1">String</span> dossierId <span class="pl-k">=</span> <span class="pl-s">"52d58852-2269-43f9-86d9-b127d2040ec0"</span>; <span class="pl-en">group</span>(<span class="pl-s">"Session Tests"</span>, () { <span class="pl-en">test</span>(<span class="pl-s">"test correct login"</span>, () <span class="pl-k">async</span> { <span class="pl-k">final</span> client <span class="pl-k">=</span> <span class="pl-c1">MockClient</span>(); <span class="pl-k">final</span> inlognaam <span class="pl-k">=</span> <span class="pl-s">"Correct"</span>; <span class="pl-k">final</span> wachtwoord <span class="pl-k">=</span> <span class="pl-s">"Correct"</span>; <span class="pl-k">final</span> code <span class="pl-k">=</span> <span class="pl-s">"Correct"</span>; <span class="pl-k">when</span>(client.<span class="pl-en">put</span>(<span class="pl-c1">Session</span>(<span class="pl-c1">null</span>).serverURL <span class="pl-k">+</span> <span class="pl-s">"/api/Login"</span>, body<span class="pl-k">:</span> { <span class="pl-s">"inlognaam"</span><span class="pl-k">:</span> inlognaam, <span class="pl-s">"wachtwoord"</span><span class="pl-k">:</span> wachtwoord, <span class="pl-s">"code"</span><span class="pl-k">:</span> code })).<span class="pl-en">thenAnswer</span>((_) <span class="pl-k">async</span> <span class="pl-k">=&gt;</span> http.<span class="pl-c1">Response</span>( <span class="pl-s">"{<span class="pl-cce">\"</span>Response<span class="pl-cce">\"</span>: <span class="pl-cce">\"</span>3c7d7d0f46b1d287e8f8cb623a3c0b35<span class="pl-cce">\"</span>,<span class="pl-cce">\"</span>Ingelogd<span class="pl-cce">\"</span>: true}"</span>, <span class="pl-c1">200</span>)); <span class="pl-k">final</span> loginParams <span class="pl-k">=</span> <span class="pl-c1">LoginParameters</span>.<span class="pl-en">login</span>(inlognaam, wachtwoord, code); <span class="pl-k">var</span> response <span class="pl-k">=</span> <span class="pl-k">await</span> <span class="pl-c1">Session</span>(client).<span class="pl-en">login</span>(loginParams); <span class="pl-en">expect</span>(response, <span class="pl-s">"Ingelogd"</span>); }); etc</pre></div> <p dir="auto">passing null in Session does not change things</p> <p dir="auto">--- The exception itself: ---</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sanders-mbp:waarnemingenapp sandervanderwal$ flutter drive --target=test_driver/happyflow.dart Found multiple connected devices: - Turminder Xuss - iPhone 6 Using device Turminder Xuss. Starting application: test_driver/happyflow.dart Automatically signing iOS for device deployment using specified development team in Xcode project: X9TW68MJEK Starting Xcode build... ├─Assembling Flutter resources... 5.6s Xcode build done. 21.1s Installing and launching... flutter: Observatory listening on http://127.0.0.1:55412/ 19.0s 00:00 +0: waarnemingenapp happy flow (setUpAll) [info ] FlutterDriver: Connecting to Flutter application at http://127.0.0.1:1026/ [trace] FlutterDriver: Isolate found with number: 803942844 [trace] FlutterDriver: Isolate is paused at start. [trace] FlutterDriver: Attempting to resume isolate [trace] FlutterDriver: Waiting for service extension flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ flutter: The following assertion was thrown attaching to the render tree: flutter: type 'MockClient' is not a subtype of type 'HttpClient' flutter: flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially flutter: more information in this error message to help you determine and fix the underlying cause. flutter: In either case, please report this assertion by filing a bug on GitHub: flutter: https://github.com/flutter/flutter/issues/new?template=BUG.md flutter: flutter: When the exception was thrown, this was the stack: flutter: #0 _MyAppState.initState (package:waarnemingenapp/main.dart:170:16) flutter: #1 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3808:58) flutter: #2 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3674:5) flutter: #3 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14) flutter: #4 Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12) flutter: #5 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:909:16) flutter: #6 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:880:5) flutter: #7 RenderObjectToWidgetAdapter.attachToRenderTree.&lt;anonymous closure&gt; (package:flutter/src/widgets/binding.dart:826:17) flutter: #8 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2266:19) flutter: #9 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:825:13) flutter: #10 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:712:7) flutter: #11 runApp (package:flutter/src/widgets/binding.dart:756:7) flutter: #12 main.&lt;anonymous closure&gt; (file:///Users/sandervanderwal/Projects/maxdoro/waarnemingenapp/test_driver/happyflow.dart:44:5) flutter: #21 SystemChrome.setPreferredOrientations (package:flutter/src/services/system_chrome.dart) flutter: #30 OptionalMethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart) flutter: #39 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart) flutter: (elided 32 frames from package dart:async) flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════ [info ] FlutterDriver: Connected to Flutter application. 00:00 +0: waarnemingenapp happy flow login [VERBOSE-2:shell.cc(184)] Dart Error: Unhandled exception: FileSystemException: writeFrom failed, path = '' (OS Error: Input/output error, errno = 5) #0 _RandomAccessFile.writeFromSync (dart:io/file_impl.dart:891:7) #1 _StdConsumer.addStream.&lt;anonymous closure&gt; (dart:io/stdio.dart:310:15) #2 _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10) #3 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11) #4 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7) #5 _SyncStreamController._sendData (dart:async/stream_controller.dart:763:19) #6 _StreamController._add (dart:async/stream_controller.dart:639:7) #7 _StreamController.add (dart:async/stream_controller.dart:585:5) #8 _StreamSinkImpl.add (dart:io/io_sink.dart:168:17) #9 _IOSinkImpl.write (dart:io/io_sink.dart:302:5) #10 _IOSinkImpl.writeln (dart:io/io_sink.dart:322:5) #11 _StdSink.writeln (dart:io/stdio.dart:343:11) #12 _log (package:flutter_driver/src/common/error.dart:46:12) #13 Logger.error (package:flutter_driver/src/common/error.dart:144:5) #14 FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:184:12) &lt;asynchronous suspension&gt; 00:05 +0 -1: waarnemingenapp happy flow login [E] DriverError: Error in Flutter application: Timeout while executing tap: TimeoutException after 0:00:05.000000: Future not completed #0 FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:180:31) &lt;asynchronous suspension&gt; #1 BindingBase.registerServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:438:32) &lt;asynchronous suspension&gt; #2 _runExtension (dart:developer/runtime/libdeveloper.dart:86:23) #3 PaintingContext.canvas (package:flutter/src/rendering/object.dart:251:3) #4 RenderErrorBox.paint (package:flutter/src/rendering/error.dart:115:17) #5 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7) #6 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13) #7 RenderView.paint (package:flutter/src/rendering/view.dart:178:15) #8 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7) #9 PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:128:11) #10 PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:96:5) #11 PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:855:29) #12 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:283:19) #13 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:677:13) #14 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5) #15 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) #16 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) #17 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7) #18 Timer._createTimer.&lt;anonymous closure&gt; (dart:async/runtime/libtimer_patch.dart:21:15) #19 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) #20 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) #21 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) Original error: null Original stack trace: null #15 BindingBase.registerServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:438:32) &lt;asynchronous suspension&gt; #16 _runExtension (dart:developer/runtime/libdeveloper.dart:86:23) #17 PaintingContext.canvas (package:flutter/src/rendering/object.dart:251:3) #18 RenderErrorBox.paint (package:flutter/src/rendering/error.dart:115:17) #19 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7) #20 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13) #21 RenderView.paint (package:flutter/src/rendering/view.dart:178:15) #22 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7) #23 PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:128:11) #24 PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:96:5) #25 PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:855:29) #26 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:283:19) #27 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:677:13) #28 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5) #29 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) #30 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) #31 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7) #32 Timer._createTimer.&lt;anonymous closure&gt; (dart:async/runtime/libtimer_patch.dart:21:15) #33 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) #34 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) #35 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) package:flutter_driver/src/driver/driver.dart 406:7 FlutterDriver._sendCommand ===== asynchronous gap =========================== dart:async/future_impl.dart 22:43 _Completer.completeError dart:async/runtime/libasync_patch.dart 40:18 _AsyncAwaitCompleter.completeError package:flutter_driver/src/driver/driver.dart FlutterDriver._sendCommand ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/libasync_patch.dart 77:23 _asyncThenWrapperHelper package:flutter_driver/src/driver/driver.dart FlutterDriver._sendCommand package:flutter_driver/src/driver/driver.dart 432:11 FlutterDriver.tap ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/libasync_patch.dart 77:23 _asyncThenWrapperHelper package:test_api/src/backend/declarer.dart Declarer.test.&lt;fn&gt;.&lt;fn&gt;.&lt;fn&gt; package:test_api/src/backend/invoker.dart 249:15 Invoker.waitForOutstandingCallbacks.&lt;fn&gt; ===== asynchronous gap =========================== dart:async/zone.dart 1045:19 _CustomZone.registerCallback dart:async/zone.dart 962:22 _CustomZone.bindCallbackGuarded dart:async/timer.dart 52:45 new Timer dart:async/timer.dart 87:9 Timer.run dart:async/future.dart 174:11 new Future package:test_api/src/backend/invoker.dart 398:11 Invoker._onRun.&lt;fn&gt;.&lt;fn&gt;.&lt;fn&gt; 00:05 +0 -1: waarnemingenapp happy flow (tearDownAll) 00:05 +0 -1: Some tests failed. Unhandled exception: Dummy exception to set exit code. #0 _rootHandleUncaughtError.&lt;anonymous closure&gt; (dart:async/zone.dart:1112:29) #1 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #2 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #3 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:391:30) #4 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) #5 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) Stopping application instance. Driver tests failed: 255 sanders-mbp:waarnemingenapp sandervanderwal$ "><pre class="notranslate"><code class="notranslate">sanders-mbp:waarnemingenapp sandervanderwal$ flutter drive --target=test_driver/happyflow.dart Found multiple connected devices: - Turminder Xuss - iPhone 6 Using device Turminder Xuss. Starting application: test_driver/happyflow.dart Automatically signing iOS for device deployment using specified development team in Xcode project: X9TW68MJEK Starting Xcode build... ├─Assembling Flutter resources... 5.6s Xcode build done. 21.1s Installing and launching... flutter: Observatory listening on http://127.0.0.1:55412/ 19.0s 00:00 +0: waarnemingenapp happy flow (setUpAll) [info ] FlutterDriver: Connecting to Flutter application at http://127.0.0.1:1026/ [trace] FlutterDriver: Isolate found with number: 803942844 [trace] FlutterDriver: Isolate is paused at start. [trace] FlutterDriver: Attempting to resume isolate [trace] FlutterDriver: Waiting for service extension flutter: ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════ flutter: The following assertion was thrown attaching to the render tree: flutter: type 'MockClient' is not a subtype of type 'HttpClient' flutter: flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially flutter: more information in this error message to help you determine and fix the underlying cause. flutter: In either case, please report this assertion by filing a bug on GitHub: flutter: https://github.com/flutter/flutter/issues/new?template=BUG.md flutter: flutter: When the exception was thrown, this was the stack: flutter: #0 _MyAppState.initState (package:waarnemingenapp/main.dart:170:16) flutter: #1 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3808:58) flutter: #2 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3674:5) flutter: #3 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14) flutter: #4 Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12) flutter: #5 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:909:16) flutter: #6 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:880:5) flutter: #7 RenderObjectToWidgetAdapter.attachToRenderTree.&lt;anonymous closure&gt; (package:flutter/src/widgets/binding.dart:826:17) flutter: #8 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2266:19) flutter: #9 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:825:13) flutter: #10 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:712:7) flutter: #11 runApp (package:flutter/src/widgets/binding.dart:756:7) flutter: #12 main.&lt;anonymous closure&gt; (file:///Users/sandervanderwal/Projects/maxdoro/waarnemingenapp/test_driver/happyflow.dart:44:5) flutter: #21 SystemChrome.setPreferredOrientations (package:flutter/src/services/system_chrome.dart) flutter: #30 OptionalMethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart) flutter: #39 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart) flutter: (elided 32 frames from package dart:async) flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════ [info ] FlutterDriver: Connected to Flutter application. 00:00 +0: waarnemingenapp happy flow login [VERBOSE-2:shell.cc(184)] Dart Error: Unhandled exception: FileSystemException: writeFrom failed, path = '' (OS Error: Input/output error, errno = 5) #0 _RandomAccessFile.writeFromSync (dart:io/file_impl.dart:891:7) #1 _StdConsumer.addStream.&lt;anonymous closure&gt; (dart:io/stdio.dart:310:15) #2 _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10) #3 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11) #4 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7) #5 _SyncStreamController._sendData (dart:async/stream_controller.dart:763:19) #6 _StreamController._add (dart:async/stream_controller.dart:639:7) #7 _StreamController.add (dart:async/stream_controller.dart:585:5) #8 _StreamSinkImpl.add (dart:io/io_sink.dart:168:17) #9 _IOSinkImpl.write (dart:io/io_sink.dart:302:5) #10 _IOSinkImpl.writeln (dart:io/io_sink.dart:322:5) #11 _StdSink.writeln (dart:io/stdio.dart:343:11) #12 _log (package:flutter_driver/src/common/error.dart:46:12) #13 Logger.error (package:flutter_driver/src/common/error.dart:144:5) #14 FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:184:12) &lt;asynchronous suspension&gt; 00:05 +0 -1: waarnemingenapp happy flow login [E] DriverError: Error in Flutter application: Timeout while executing tap: TimeoutException after 0:00:05.000000: Future not completed #0 FlutterDriverExtension.call (package:flutter_driver/src/extension/extension.dart:180:31) &lt;asynchronous suspension&gt; #1 BindingBase.registerServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:438:32) &lt;asynchronous suspension&gt; #2 _runExtension (dart:developer/runtime/libdeveloper.dart:86:23) #3 PaintingContext.canvas (package:flutter/src/rendering/object.dart:251:3) #4 RenderErrorBox.paint (package:flutter/src/rendering/error.dart:115:17) #5 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7) #6 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13) #7 RenderView.paint (package:flutter/src/rendering/view.dart:178:15) #8 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7) #9 PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:128:11) #10 PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:96:5) #11 PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:855:29) #12 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:283:19) #13 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:677:13) #14 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5) #15 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) #16 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) #17 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7) #18 Timer._createTimer.&lt;anonymous closure&gt; (dart:async/runtime/libtimer_patch.dart:21:15) #19 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) #20 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) #21 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) Original error: null Original stack trace: null #15 BindingBase.registerServiceExtension.&lt;anonymous closure&gt; (package:flutter/src/foundation/binding.dart:438:32) &lt;asynchronous suspension&gt; #16 _runExtension (dart:developer/runtime/libdeveloper.dart:86:23) #17 PaintingContext.canvas (package:flutter/src/rendering/object.dart:251:3) #18 RenderErrorBox.paint (package:flutter/src/rendering/error.dart:115:17) #19 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7) #20 PaintingContext.paintChild (package:flutter/src/rendering/object.dart:173:13) #21 RenderView.paint (package:flutter/src/rendering/view.dart:178:15) #22 RenderObject._paintWithContext (package:flutter/src/rendering/object.dart:2088:7) #23 PaintingContext._repaintCompositedChild (package:flutter/src/rendering/object.dart:128:11) #24 PaintingContext.repaintCompositedChild (package:flutter/src/rendering/object.dart:96:5) #25 PipelineOwner.flushPaint (package:flutter/src/rendering/object.dart:855:29) #26 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:283:19) #27 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding&amp;WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:677:13) #28 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding&amp;GestureBinding&amp;PaintingBinding&amp;SemanticsBinding&amp;RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5) #29 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15) #30 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9) #31 __DriverBinding&amp;BindingBase&amp;ServicesBinding&amp;SchedulerBinding.scheduleWarmUpFrame.&lt;anonymous closure&gt; (package:flutter/src/scheduler/binding.dart:751:7) #32 Timer._createTimer.&lt;anonymous closure&gt; (dart:async/runtime/libtimer_patch.dart:21:15) #33 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19) #34 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) #35 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) package:flutter_driver/src/driver/driver.dart 406:7 FlutterDriver._sendCommand ===== asynchronous gap =========================== dart:async/future_impl.dart 22:43 _Completer.completeError dart:async/runtime/libasync_patch.dart 40:18 _AsyncAwaitCompleter.completeError package:flutter_driver/src/driver/driver.dart FlutterDriver._sendCommand ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/libasync_patch.dart 77:23 _asyncThenWrapperHelper package:flutter_driver/src/driver/driver.dart FlutterDriver._sendCommand package:flutter_driver/src/driver/driver.dart 432:11 FlutterDriver.tap ===== asynchronous gap =========================== dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback dart:async/runtime/libasync_patch.dart 77:23 _asyncThenWrapperHelper package:test_api/src/backend/declarer.dart Declarer.test.&lt;fn&gt;.&lt;fn&gt;.&lt;fn&gt; package:test_api/src/backend/invoker.dart 249:15 Invoker.waitForOutstandingCallbacks.&lt;fn&gt; ===== asynchronous gap =========================== dart:async/zone.dart 1045:19 _CustomZone.registerCallback dart:async/zone.dart 962:22 _CustomZone.bindCallbackGuarded dart:async/timer.dart 52:45 new Timer dart:async/timer.dart 87:9 Timer.run dart:async/future.dart 174:11 new Future package:test_api/src/backend/invoker.dart 398:11 Invoker._onRun.&lt;fn&gt;.&lt;fn&gt;.&lt;fn&gt; 00:05 +0 -1: waarnemingenapp happy flow (tearDownAll) 00:05 +0 -1: Some tests failed. Unhandled exception: Dummy exception to set exit code. #0 _rootHandleUncaughtError.&lt;anonymous closure&gt; (dart:async/zone.dart:1112:29) #1 _microtaskLoop (dart:async/schedule_microtask.dart:41:21) #2 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5) #3 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:391:30) #4 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5) #5 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) Stopping application instance. Driver tests failed: 255 sanders-mbp:waarnemingenapp sandervanderwal$ </code></pre></div> <p dir="auto">--- end of exception -----</p> <p dir="auto">App widget in main. If a client is passed this way it is always a mock</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyApp extends StatefulWidget { final http.Client mockClient; /// Constructs [MyApp] MyApp({ this.mockClient }); @override _MyAppState createState() =&gt; _MyAppState(mockClient: mockClient); } class _MyAppState extends State&lt;MyApp&gt; with WidgetsBindingObserver { final http.Client mockClient; _MyAppState({ this.mockClient }); @override void initState() { super.initState(); // certificateString is a certificate List&lt;int&gt; bytes = utf8.encode(certificateString); SecurityContext clientContext = SecurityContext(); clientContext.setTrustedCertificatesBytes(bytes); // Create the regular client if there is no mock client HttpClient httpClient = (mockClient == null) ? HttpClient(context: clientContext) : mockClient; // ^^^^^^^^^^^^^^ This line throws the exception // Create the model, inject its dependencies final session = Session(IOClient(httpClient)); _model = Model(session); // Observe App life cycle events WidgetsBinding.instance.addObserver(this); }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-c1">MyApp</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> { <span class="pl-k">final</span> http.<span class="pl-c1">Client</span> mockClient; <span class="pl-c">/// Constructs <span class="pl-v">[MyApp]</span></span> <span class="pl-c"></span> <span class="pl-c1">MyApp</span>({ <span class="pl-c1">this</span>.mockClient }); <span class="pl-k">@override</span> <span class="pl-c1">_MyAppState</span> <span class="pl-en">createState</span>() <span class="pl-k">=&gt;</span> <span class="pl-c1">_MyAppState</span>(mockClient<span class="pl-k">:</span> mockClient); } <span class="pl-k">class</span> <span class="pl-c1">_MyAppState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span>&lt;<span class="pl-c1">MyApp</span>&gt; <span class="pl-k">with</span> <span class="pl-c1">WidgetsBindingObserver</span> { <span class="pl-k">final</span> http.<span class="pl-c1">Client</span> mockClient; <span class="pl-c1">_MyAppState</span>({ <span class="pl-c1">this</span>.mockClient }); <span class="pl-k">@override</span> <span class="pl-k">void</span> <span class="pl-en">initState</span>() { <span class="pl-c1">super</span>.<span class="pl-en">initState</span>(); <span class="pl-c">// certificateString is a certificate</span> <span class="pl-c1">List</span>&lt;<span class="pl-c1">int</span>&gt; bytes <span class="pl-k">=</span> utf8.<span class="pl-en">encode</span>(certificateString); <span class="pl-c1">SecurityContext</span> clientContext <span class="pl-k">=</span> <span class="pl-c1">SecurityContext</span>(); clientContext.<span class="pl-en">setTrustedCertificatesBytes</span>(bytes); <span class="pl-c">// Create the regular client if there is no mock client</span> <span class="pl-c1">HttpClient</span> httpClient <span class="pl-k">=</span> (mockClient <span class="pl-k">==</span> <span class="pl-c1">null</span>) <span class="pl-k">?</span> <span class="pl-c1">HttpClient</span>(context<span class="pl-k">:</span> clientContext) <span class="pl-k">:</span> mockClient; <span class="pl-c">// ^^^^^^^^^^^^^^ This line throws the exception </span> <span class="pl-c">// Create the model, inject its dependencies</span> <span class="pl-k">final</span> session <span class="pl-k">=</span> <span class="pl-c1">Session</span>(<span class="pl-c1">IOClient</span>(httpClient)); _model <span class="pl-k">=</span> <span class="pl-c1">Model</span>(session); <span class="pl-c">// Observe App life cycle events</span> <span class="pl-c1">WidgetsBinding</span>.instance.<span class="pl-en">addObserver</span>(<span class="pl-c1">this</span>); }</pre></div> <p dir="auto">---- happy flow.dart in test_driver</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MockClient extends Mock implements http.Client {} /// Implements the instrumented version of the happy flow test. In particular, this is the place where we define the mock http client void main() { // This line enables the extension enableFlutterDriverExtension(); // As we need a mock version of the http server, and we cannot pass a parameter in main() which has a fixed signature, // we duplicate the actions in app.main(), and in addition we pass a mock client. final mockClient = MockClient(); final inlognaam = &quot;Correct&quot;; final wachtwoord = &quot;Correct&quot;; final code = &quot;Correct&quot;; when(mockClient.put(Session(mockClient).serverURL + &quot;/api/Login&quot;, body: { &quot;inlognaam&quot;: inlognaam, &quot;wachtwoord&quot;: wachtwoord, &quot;code&quot;: code })).thenAnswer((_) async =&gt; http.Response( &quot;{\&quot;Response\&quot;: \&quot;3c7d7d0f46b1d287e8f8cb623a3c0b35\&quot;,\&quot;Ingelogd\&quot;: true}&quot;, 200)); SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]) .then((_) { runApp(app.MyApp(mockClient: mockClient)); }); }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-c1">MockClient</span> <span class="pl-k">extends</span> <span class="pl-c1">Mock</span> <span class="pl-k">implements</span> http.<span class="pl-c1">Client</span> {} <span class="pl-c">/// Implements the instrumented version of the happy flow test. In particular, this is the place where we define the mock http client</span> <span class="pl-c"></span><span class="pl-k">void</span> <span class="pl-en">main</span>() { <span class="pl-c">// This line enables the extension</span> <span class="pl-en">enableFlutterDriverExtension</span>(); <span class="pl-c">// As we need a mock version of the http server, and we cannot pass a parameter in main() which has a fixed signature,</span> <span class="pl-c">// we duplicate the actions in app.main(), and in addition we pass a mock client.</span> <span class="pl-k">final</span> mockClient <span class="pl-k">=</span> <span class="pl-c1">MockClient</span>(); <span class="pl-k">final</span> inlognaam <span class="pl-k">=</span> <span class="pl-s">"Correct"</span>; <span class="pl-k">final</span> wachtwoord <span class="pl-k">=</span> <span class="pl-s">"Correct"</span>; <span class="pl-k">final</span> code <span class="pl-k">=</span> <span class="pl-s">"Correct"</span>; <span class="pl-k">when</span>(mockClient.<span class="pl-en">put</span>(<span class="pl-c1">Session</span>(mockClient).serverURL <span class="pl-k">+</span> <span class="pl-s">"/api/Login"</span>, body<span class="pl-k">:</span> { <span class="pl-s">"inlognaam"</span><span class="pl-k">:</span> inlognaam, <span class="pl-s">"wachtwoord"</span><span class="pl-k">:</span> wachtwoord, <span class="pl-s">"code"</span><span class="pl-k">:</span> code })).<span class="pl-en">thenAnswer</span>((_) <span class="pl-k">async</span> <span class="pl-k">=&gt;</span> http.<span class="pl-c1">Response</span>( <span class="pl-s">"{<span class="pl-cce">\"</span>Response<span class="pl-cce">\"</span>: <span class="pl-cce">\"</span>3c7d7d0f46b1d287e8f8cb623a3c0b35<span class="pl-cce">\"</span>,<span class="pl-cce">\"</span>Ingelogd<span class="pl-cce">\"</span>: true}"</span>, <span class="pl-c1">200</span>)); <span class="pl-c1">SystemChrome</span>.<span class="pl-en">setPreferredOrientations</span>([<span class="pl-c1">DeviceOrientation</span>.portraitUp]) .<span class="pl-en">then</span>((_) { <span class="pl-en">runApp</span>(app.<span class="pl-c1">MyApp</span>(mockClient<span class="pl-k">:</span> mockClient)); }); }</pre></div> <p dir="auto">--- happy flow_test in test_driver</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// Drives the instrumented version of the happy flow test app void main() { group('waarnemingenapp happy flow', () { final authorizedButtonFinder = find.byValueKey('authorized'); final usernameTextFinder = find.byValueKey('username'); final passwordTextFinder = find.byValueKey('password'); final smsCodeTextFinder = find.byValueKey('smscode'); final loginButtonFinder = find.byValueKey('login'); FlutterDriver driver; // Connect to the Flutter driver before running any tests setUpAll(() async { driver = await FlutterDriver.connect(); }); // Close the connection to the driver after the tests have completed tearDownAll(() async { if (driver != null) { driver.close(); } }); test('login', () async { await driver.tap(authorizedButtonFinder); // First, set focus on the username and enter the text await driver.tap(usernameTextFinder); driver.enterText(&quot;Correct&quot;); // Then, set focus on the password and enter the text await driver.tap(passwordTextFinder); driver.enterText(&quot;Correct&quot;); // Then, set focus on the sms code await driver.tap(smsCodeTextFinder); driver.enterText(&quot;Correct&quot;); await driver.tap(loginButtonFinder); }); }); }"><pre class="notranslate"><span class="pl-c">/// Drives the instrumented version of the happy flow test app</span> <span class="pl-c"></span><span class="pl-k">void</span> <span class="pl-en">main</span>() { <span class="pl-en">group</span>(<span class="pl-s">'waarnemingenapp happy flow'</span>, () { <span class="pl-k">final</span> authorizedButtonFinder <span class="pl-k">=</span> find.<span class="pl-en">byValueKey</span>(<span class="pl-s">'authorized'</span>); <span class="pl-k">final</span> usernameTextFinder <span class="pl-k">=</span> find.<span class="pl-en">byValueKey</span>(<span class="pl-s">'username'</span>); <span class="pl-k">final</span> passwordTextFinder <span class="pl-k">=</span> find.<span class="pl-en">byValueKey</span>(<span class="pl-s">'password'</span>); <span class="pl-k">final</span> smsCodeTextFinder <span class="pl-k">=</span> find.<span class="pl-en">byValueKey</span>(<span class="pl-s">'smscode'</span>); <span class="pl-k">final</span> loginButtonFinder <span class="pl-k">=</span> find.<span class="pl-en">byValueKey</span>(<span class="pl-s">'login'</span>); <span class="pl-c1">FlutterDriver</span> driver; <span class="pl-c">// Connect to the Flutter driver before running any tests</span> <span class="pl-en">setUpAll</span>(() <span class="pl-k">async</span> { driver <span class="pl-k">=</span> <span class="pl-k">await</span> <span class="pl-c1">FlutterDriver</span>.<span class="pl-en">connect</span>(); }); <span class="pl-c">// Close the connection to the driver after the tests have completed</span> <span class="pl-en">tearDownAll</span>(() <span class="pl-k">async</span> { <span class="pl-k">if</span> (driver <span class="pl-k">!=</span> <span class="pl-c1">null</span>) { driver.<span class="pl-en">close</span>(); } }); <span class="pl-en">test</span>(<span class="pl-s">'login'</span>, () <span class="pl-k">async</span> { <span class="pl-k">await</span> driver.<span class="pl-en">tap</span>(authorizedButtonFinder); <span class="pl-c">// First, set focus on the username and enter the text</span> <span class="pl-k">await</span> driver.<span class="pl-en">tap</span>(usernameTextFinder); driver.<span class="pl-en">enterText</span>(<span class="pl-s">"Correct"</span>); <span class="pl-c">// Then, set focus on the password and enter the text</span> <span class="pl-k">await</span> driver.<span class="pl-en">tap</span>(passwordTextFinder); driver.<span class="pl-en">enterText</span>(<span class="pl-s">"Correct"</span>); <span class="pl-c">// Then, set focus on the sms code</span> <span class="pl-k">await</span> driver.<span class="pl-en">tap</span>(smsCodeTextFinder); driver.<span class="pl-en">enterText</span>(<span class="pl-s">"Correct"</span>); <span class="pl-k">await</span> driver.<span class="pl-en">tap</span>(loginButtonFinder); }); }); }</pre></div> <p dir="auto">---- flutter doctor -v</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sanders-mbp:waarnemingenapp sandervanderwal$ flutter doctor -v [✓] Flutter (Channel master, v0.11.4, on Mac OS X 10.14.1 18B75, locale en-NL) • Flutter version 0.11.4 at /Users/sandervanderwal/Developer/flutter • Framework revision df57dc9da9 (3 days ago), 2018-11-11 22:36:47 -0800 • Engine revision 5646e86a6f • Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.2) • Android SDK at /Users/sandervanderwal/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 • ios-deploy 1.9.2 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 30.0.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [✓] Connected device (2 available) • Turminder Xuss • ca4f8a0ddd55132ab42c253d7496b90a38b6b53c • ios • iOS 12.1 • iPhone 6 • F1C23CB3-7C89-416E-87D0-5CCDC2C89254 • ios • iOS 12.1 (simulator) • No issues found! sanders-mbp:waarnemingenapp sandervanderwal$ "><pre class="notranslate"><code class="notranslate">sanders-mbp:waarnemingenapp sandervanderwal$ flutter doctor -v [✓] Flutter (Channel master, v0.11.4, on Mac OS X 10.14.1 18B75, locale en-NL) • Flutter version 0.11.4 at /Users/sandervanderwal/Developer/flutter • Framework revision df57dc9da9 (3 days ago), 2018-11-11 22:36:47 -0800 • Engine revision 5646e86a6f • Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.2) • Android SDK at /Users/sandervanderwal/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.2 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 • ios-deploy 1.9.2 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 30.0.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [✓] Connected device (2 available) • Turminder Xuss • ca4f8a0ddd55132ab42c253d7496b90a38b6b53c • ios • iOS 12.1 • iPhone 6 • F1C23CB3-7C89-416E-87D0-5CCDC2C89254 • ios • iOS 12.1 (simulator) • No issues found! sanders-mbp:waarnemingenapp sandervanderwal$ </code></pre></div> <p dir="auto">the driver test is clearly not ready, but it looks like the code doesn</p>
0
<p dir="auto">When resizing your browser down to the minimum width and then bringing it back to full size the menu items wrap below the navigation. Doing it again compounds the problem. See pictures and <a href="http://getbootstrap.com/examples/justified-nav/" rel="nofollow">http://getbootstrap.com/examples/justified-nav/</a> for an example.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/779e1410303dbdbb0bc51b354990cf4b8bcb2387cc49eecdaa8e25e87acc73e7/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313636333733362f313430343033392f36383961663230652d336366642d313165332d383430302d3066353839366331623333302e706e67"><img src="https://camo.githubusercontent.com/779e1410303dbdbb0bc51b354990cf4b8bcb2387cc49eecdaa8e25e87acc73e7/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313636333733362f313430343033392f36383961663230652d336366642d313165332d383430302d3066353839366331623333302e706e67" alt="screen shot 2013-10-24 at 5 40 50 pm" data-canonical-src="https://f.cloud.github.com/assets/1663736/1404039/689af20e-3cfd-11e3-8400-0f5896c1b330.png" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/25d8acfc9c51e2a252971c90decd98abd071cb8958eab93d5cbe5d8192b71d78/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313636333733362f313430343034302f36383962346137652d336366642d313165332d396264652d6330363863613433356531612e706e67"><img src="https://camo.githubusercontent.com/25d8acfc9c51e2a252971c90decd98abd071cb8958eab93d5cbe5d8192b71d78/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313636333733362f313430343034302f36383962346137652d336366642d313165332d396264652d6330363863613433356531612e706e67" alt="screen shot 2013-10-24 at 5 41 02 pm" data-canonical-src="https://f.cloud.github.com/assets/1663736/1404040/689b4a7e-3cfd-11e3-9bde-c068ca435e1a.png" style="max-width: 100%;"></a></p>
<p dir="auto">The justified nav example (<a href="http://getbootstrap.com/examples/justified-nav" rel="nofollow">http://getbootstrap.com/examples/justified-nav</a>) collapses perfectly when the screen is narrowed, but when the screen is expanded it get wonky.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/db69ca8e316e013e7709351d88ecf7d585b87ae58bdeb880ad477c8bc93e6608/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f38333730382f3938323439352f33383763663635362d303766382d313165332d393330382d6363376238306661653266642e706e67"><img src="https://camo.githubusercontent.com/db69ca8e316e013e7709351d88ecf7d585b87ae58bdeb880ad477c8bc93e6608/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f38333730382f3938323439352f33383763663635362d303766382d313165332d393330382d6363376238306661653266642e706e67" alt="justified nav" data-canonical-src="https://f.cloud.github.com/assets/83708/982495/387cf656-07f8-11e3-9308-cc7b80fae2fd.png" style="max-width: 100%;"></a><br> expanded</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> </ul> <h3 dir="auto">Commit to Help</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I commit to help with one of those options <g-emoji class="g-emoji" alias="point_up_2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f446.png">👆</g-emoji></li> </ul> <h3 dir="auto">Example Code</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class MyModel(BaseModel): my_int: int @app.get(&quot;/test&quot;, response_model=MyModel) async def test(): model = MyModel(my_int=280456587464933376) return model"><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">FastAPI</span> <span class="pl-k">from</span> <span class="pl-s1">pydantic</span> <span class="pl-k">import</span> <span class="pl-v">BaseModel</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>() <span class="pl-k">class</span> <span class="pl-v">MyModel</span>(<span class="pl-v">BaseModel</span>): <span class="pl-s1">my_int</span>: <span class="pl-s1">int</span> <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/test"</span>, <span class="pl-s1">response_model</span><span class="pl-c1">=</span><span class="pl-v">MyModel</span>)</span> <span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">test</span>(): <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-v">MyModel</span>(<span class="pl-s1">my_int</span><span class="pl-c1">=</span><span class="pl-c1">280456587464933376</span>) <span class="pl-k">return</span> <span class="pl-s1">model</span></pre></div> <h3 dir="auto">Description</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/38250010/151349061-78936c5a-02dd-45e0-9b37-590c418a112a.png"><img src="https://user-images.githubusercontent.com/38250010/151349061-78936c5a-02dd-45e0-9b37-590c418a112a.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">It should return <code class="notranslate">280456587464933376</code>, but it returns <code class="notranslate">280456587464933380</code>. In my testing, the difference was always <code class="notranslate">+ 4</code>.<br> If I use a small number (for example, <code class="notranslate">2804</code>) it works as intended. If I convert the integer to a string it also works as intended.</p> <p dir="auto">This is also reproducible if just the integer is returned with:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@app.get(&quot;/test&quot;) async def test(): return 280456587464933376"><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/test"</span>)</span> <span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">test</span>(): <span class="pl-k">return</span> <span class="pl-c1">280456587464933376</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/38250010/151350378-fe52aa16-3d7a-4efc-8a8a-8df076469839.png"><img src="https://user-images.githubusercontent.com/38250010/151350378-fe52aa16-3d7a-4efc-8a8a-8df076469839.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Operating System</h3> <p dir="auto">Windows</p> <h3 dir="auto">Operating System Details</h3> <p dir="auto">Win10</p> <h3 dir="auto">FastAPI Version</h3> <p dir="auto">0.73.0 (latest)</p> <h3 dir="auto">Python Version</h3> <p dir="auto">3.10.1</p> <h3 dir="auto">Additional Context</h3> <p dir="auto"><em>No response</em></p>
<h3 dir="auto">Describe the bug</h3> <p dir="auto">The interactive API docs interface misinterprets big integers.</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Here I use the example from the <a href="https://fastapi.tiangolo.com/" rel="nofollow">FastAPI homepage</a>.</p> <ol dir="auto"> <li>Create a file with:</li> </ol> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from fastapi import FastAPI app = FastAPI() @app.get(&quot;/items/{item_id}&quot;) async def read_item(item_id: int, q: str = None): return {&quot;item_id&quot;: item_id, &quot;q&quot;: q}"><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">FastAPI</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">get</span>(<span class="pl-s">"/items/{item_id}"</span>)</span> <span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">read_item</span>(<span class="pl-s1">item_id</span>: <span class="pl-s1">int</span>, <span class="pl-s1">q</span>: <span class="pl-s1">str</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span>): <span class="pl-k">return</span> {<span class="pl-s">"item_id"</span>: <span class="pl-s1">item_id</span>, <span class="pl-s">"q"</span>: <span class="pl-s1">q</span>}</pre></div> <ol start="2" dir="auto"> <li>Open the browser and call the endpoint <code class="notranslate">/docs</code>.</li> <li>In the interactive API docs interface, click the <code class="notranslate">/items/{item_id}</code> item, and click the <em>Try it out</em> button.</li> <li>Fill the <code class="notranslate">item_id</code> field with a big integer, e.g. <code class="notranslate">10001000100010001</code>, and click the <em>Execute</em> button.</li> <li>In the <em>Server response</em> section, it shows a JSON response body with <code class="notranslate">{"item_id": 10001000100010000, "q": null}</code>.</li> <li>But I expected it to return <code class="notranslate">{"item_id": 10001000100010001, "q": null}</code>.</li> <li>If the endpoint <code class="notranslate">/items/10001000100010001</code> is called in the browser, it returns the expected JSON response.</li> <li>If the command <code class="notranslate">curl -X GET "http://127.0.0.1:8000/items/10001000100010001" -H "accept: application/json"</code> is called in the shell, it returns the expected JSON response.</li> </ol> <h3 dir="auto">Expected behavior</h3> <p dir="auto">The interactive API docs interface should return the same response that returns from the actual endpoint for big integers.</p> <h3 dir="auto">Screenshots</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2186845/83713367-76493c80-a65a-11ea-8727-bfe21cb91e74.png"><img src="https://user-images.githubusercontent.com/2186845/83713367-76493c80-a65a-11ea-8727-bfe21cb91e74.png" alt="fastapi" style="max-width: 100%;"></a></p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>OS: macOS 10.15.4</li> <li>FastAPI Version: 0.55.1</li> <li>Python version: 3.8.2</li> <li>Browser: Google Chrome 83.0.4103.97</li> </ul>
1
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: 1.2.0</li> <li>Operating System: Windows</li> <li>Node version: 10/12/14</li> <li>Browser: Webkit</li> <li>Extra: Running as GitHub Action</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Running one project: e2e PASS browser: chromium e2e tests/e2e/example.test.js (17.677 s) PASS browser: firefox e2e tests/e2e/example.test.js (12.755 s) FAIL browser: webkit e2e tests/e2e/example.test.js (21.002 s) ● Example Tests › image snapshots Expected image to match or be a close match to snapshot but was 26.405261426690828% different from snapshot (243350.8893083827 differing pixels). See diff for details: D:\a\docsify\docsify\tests\e2e\__image_snapshots__\__diff_output__\example-test-js-example-tests-image-snapshots-1-webkit-diff.png 280 | // Viewport screenshot 281 | const screenshot1 = await page.screenshot(); &gt; 282 | expect(screenshot1).toMatchImageSnapshot(); | ^ 283 | 284 | // Full page screenshot 285 | const screenshot2 = await page.screenshot({ fullPage: true }); at Object.&lt;anonymous&gt; (tests/e2e/example.test.js:282:25) › 1 snapshot failed."><pre class="notranslate"><code class="notranslate">Running one project: e2e PASS browser: chromium e2e tests/e2e/example.test.js (17.677 s) PASS browser: firefox e2e tests/e2e/example.test.js (12.755 s) FAIL browser: webkit e2e tests/e2e/example.test.js (21.002 s) ● Example Tests › image snapshots Expected image to match or be a close match to snapshot but was 26.405261426690828% different from snapshot (243350.8893083827 differing pixels). See diff for details: D:\a\docsify\docsify\tests\e2e\__image_snapshots__\__diff_output__\example-test-js-example-tests-image-snapshots-1-webkit-diff.png 280 | // Viewport screenshot 281 | const screenshot1 = await page.screenshot(); &gt; 282 | expect(screenshot1).toMatchImageSnapshot(); | ^ 283 | 284 | // Full page screenshot 285 | const screenshot2 = await page.screenshot({ fullPage: true }); at Object.&lt;anonymous&gt; (tests/e2e/example.test.js:282:25) › 1 snapshot failed. </code></pre></div> <p dir="auto"><strong>Image diff output from jest-image-snapshot</strong></p> <p dir="auto">Chromium on macOS (top) vs Chromium on Windows (bottom)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/442527/88346440-53600e00-cd16-11ea-83c3-e92fb3bb5516.png"><img src="https://user-images.githubusercontent.com/442527/88346440-53600e00-cd16-11ea-83c3-e92fb3bb5516.png" alt="example-test-js-example-tests-image-snapshots-1-webkit-diff" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">We're running e2e tests using Chromium, Firefox, and Webkit on macOS, Ubuntu, and Windows, then using <a href="https://github.com/americanexpress/jest-image-snapshot">jest-image-snapshot</a> for image comparisons. Reference screenshots are generated on a variety of platforms as project maintainers use Linux, macOS, and Windows.</p> <p dir="auto">Generally speaking, I can tweak jest-image-snapshot's threshold settings to allow screenshots to match despite the slight rendering differences across operating systems and browsers--except for Webkit on Windows. The reason is that Webkit on Windows renders text non-antialiased (see screenshot above) which results in a significant diff detection.</p> <p dir="auto">I'm assuming non anti-aliased text rendering is a bug. If not, is there a launch argument we can use to force Webkit on Windows to render anti-aliased text?</p>
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: 1.1.1</li> <li>Operating System: Windows</li> <li>Browser: WebKit 1269</li> </ul> <p dir="auto"><strong>Bug description</strong><br> When trying to test screenshots with webkit, I noticed that font rendering looks a bit weird and no font icons were rendered.<br> The icon font rendering can be easily tested by starting the playwright webkit browser (eg. <code class="notranslate">AppData\Local\ms-playwright\webkit-1269\Playwright.exe</code>) directly and navigating for example to <a href="https://material.io/resources/icons" rel="nofollow">https://material.io/resources/icons</a><br> An interesting behavior I could observe was that when I set <code class="notranslate">font-kerning: normal</code> on font icons (eg. on <code class="notranslate">.material-icons</code>), some icons appeared, some stayed hidden and some showed incorrect icons (eg. <code class="notranslate">keyboard_arrow_down</code> was rendered as <code class="notranslate">keyboard</code> icon only).</p> <p dir="auto">Also it seems while <code class="notranslate">font-kerning: auto</code> seems to enable it by default in other browsers, this does not seem to happen at all in the playwright webkit.</p> <p dir="auto">Without <code class="notranslate">font-kerning: normal</code><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6547794/85049246-b4834780-b194-11ea-9a12-c1f3b1882bb8.png"><img src="https://user-images.githubusercontent.com/6547794/85049246-b4834780-b194-11ea-9a12-c1f3b1882bb8.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">With <code class="notranslate">font-kerning: normal</code><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6547794/85049054-80a82200-b194-11ea-80ec-c23629c1badb.png"><img src="https://user-images.githubusercontent.com/6547794/85049054-80a82200-b194-11ea-80ec-c23629c1badb.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">How it should like like eg. in Chrome:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6547794/85049159-94538880-b194-11ea-9349-f9788a8a5e56.png"><img src="https://user-images.githubusercontent.com/6547794/85049159-94538880-b194-11ea-9349-f9788a8a5e56.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Any ideas on how to solve this?</p>
1
<p dir="auto">As pointed out in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="611080044" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/5048" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/5048/hovercard" href="https://github.com/denoland/deno/issues/5048">#5048</a>, we should consider importing data URLs. The following works in Chromium:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="await import(&quot;data:application/javascript;charset=utf-8;base64,Y29uc29sZS5sb2coImhlbGxvIHdvcmxkIik7&quot;);"><pre class="notranslate"><span class="pl-k">await</span> <span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">"data:application/javascript;charset=utf-8;base64,Y29uc29sZS5sb2coImhlbGxvIHdvcmxkIik7"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Which which then will log <code class="notranslate">hello world</code> to the console.</p>
<p dir="auto">It contains a lot of duplicated functionality. <a href="https://github.com/denoland/deno/blob/9049213867d30f7df090a83b6baf3e0717a4d2d2/.github/workflows/build.yml#L13">lint should be a new "kind" of build which only runs on ubuntu</a>.</p>
0
<p dir="auto">Just found this text rendering error in part of <a href="https://github.com/mapbox/mapbox-gl-native/blob/master/src/clipper/clipper.cpp#L4336-L4340">https://github.com/mapbox/mapbox-gl-native/blob/master/src/clipper/clipper.cpp#L4336-L4340</a></p> <p dir="auto">This is what it looks like, see all the ?<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1215089/5315572/556d5d0e-7cd3-11e4-84b8-d1e53637237b.png"><img src="https://cloud.githubusercontent.com/assets/1215089/5315572/556d5d0e-7cd3-11e4-84b8-d1e53637237b.png" alt="screenshot from 2014-12-05 22 47 35" style="max-width: 100%;"></a></p> <p dir="auto">It renders fine on github.com</p> <p dir="auto">I am on Ubuntu 14.04 x64 with Atom 0.152.0</p>
<p dir="auto">Text:</p> <blockquote> <p dir="auto">这上面的夜的天空,奇怪而高,我生平没有见过这样奇怪而高的天空。他仿佛要离开人间而去,使人们仰面不再看见。然而现在却非常之蓝,闪闪地睒着几十个星星的眼,冷眼。他的口角上现出微笑,似乎自以为大有深意,而将繁霜洒在我的园里的野花草上。</p> </blockquote> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/49931/6959354/a30f8266-d94a-11e4-9167-35ea308a5ad2.png"><img src="https://cloud.githubusercontent.com/assets/49931/6959354/a30f8266-d94a-11e4-9167-35ea308a5ad2.png" alt="3" style="max-width: 100%;"></a></p> <p dir="auto">It happen after update to 0.189.0, and it's normal in 0.188.0 .</p> <p dir="auto">I try disabled all community packages or star with <code class="notranslate">--safe</code> mode, still happen.</p> <p dir="auto">Update: Ubuntu 14.04</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jberry" rel="nofollow">James Berry</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4229?redirect=false" rel="nofollow">SPR-4229</a></strong> and commented</p> <p dir="auto">in CommonsMultipartResolver.isMultipart, the following call is made:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return ServletFileUpload.isMultipartContent(new ServletRequestContext(request));"><pre class="notranslate"><code class="notranslate">return ServletFileUpload.isMultipartContent(new ServletRequestContext(request)); </code></pre></div> <p dir="auto">instead, this call should be made:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return ServletFileUpload.isMultipartContent(request);"><pre class="notranslate"><code class="notranslate">return ServletFileUpload.isMultipartContent(request); </code></pre></div> <p dir="auto">Not only does this save an object allocation, but it actually works: the ServletRequestContext is wrapped around the request in the first call doesn't have enough information to do a good test of the request to determine whether it actually is multipart. In particular, the request type is not verified to be a post, which results in a hang during processing of what ends up being a bogus multipart request due to a redirect, for instance.</p> <p dir="auto">The second call (without the ServletRequestContext wrapper) does a more thorough check of the request to verify that it is actually valid.</p> <p dir="auto">The described problem manifests for me when when I do a 303 redirect from a POSTed form. For some browsers, the subsequent GET operation continues to include the content-type multipart header, which triggers a sequence of events leading to a read that HANGS on a kept-alive request as the servlet tries to parse the bogus multipart content.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5 final</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jberry" rel="nofollow">James Berry</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4228?redirect=false" rel="nofollow">SPR-4228</a></strong> and commented</p> <p dir="auto">in CommonsMultipartResolver.isMultipart, the following call is made:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return ServletFileUpload.isMultipartContent(new ServletRequestContext(request));"><pre class="notranslate"><code class="notranslate">return ServletFileUpload.isMultipartContent(new ServletRequestContext(request)); </code></pre></div> <p dir="auto">instead, this call should be made:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="return ServletFileUpload.isMultipartContent(request);"><pre class="notranslate"><code class="notranslate">return ServletFileUpload.isMultipartContent(request); </code></pre></div> <p dir="auto">Not only does this save an object allocation, but its actually works: the ServletRequestContext is wrapped around the request in the first call doesn't have enough information to do a good test of the request to determine whether it actually is multipart. In particular, the request type is not verified to be a post, which results in a hang during processing of what ends up being a bogus multipart request due to a redirect, for instance.</p> <p dir="auto">The second call (without the ServletRequestContext wrapper) does a more thorough check of the request to verify that it is actually valid.</p> <p dir="auto">The described problem manifests for me when when I do a 303 redirect from a posted form. For some browsers, the subsequent GET operation continues to include the content-type multipart header, which triggers a sequence of events leading to a read that HANGS on a kept-alive request as the servlet tries to parse the bogus multipart content.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.7, 2.5 final</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="398088599" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9525" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9525/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9525">#9525</a> Safari 3.x problem with redirect after file upload</li> </ul> <p dir="auto"><strong>Backported to:</strong> <a href="https://github.com/spring-projects/spring-framework/milestone/45?closed=1">2.0.8</a></p>
1
<p dir="auto">i use vue1.0.24 Version.</p> <p dir="auto">i want wirte a plugin .<br> may be use Vue.mixin way to implement</p> <p dir="auto">html5 have localStorage.getItem localStorage.setItem.</p> <p dir="auto">i want localStorage.xxx responsive view.</p> <p dir="auto">like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default { cache:['cacheKey1', 'cacheKey2', 'cacheKey2'], methods:{ changeKey1(newVal){ this.$cache.set('cacheKey1', newVal);//responsive view can interaction this change {{cacheKey1}} } } }"><pre class="notranslate"><code class="notranslate">export default { cache:['cacheKey1', 'cacheKey2', 'cacheKey2'], methods:{ changeKey1(newVal){ this.$cache.set('cacheKey1', newVal);//responsive view can interaction this change {{cacheKey1}} } } } </code></pre></div> <p dir="auto">cache.js</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Vue.mixin({ created: function () { if (this.$options.hasOwnProperty(&quot;cache&quot;)) { console.log(this.$options.computed); this.$options.computed = this.$options.computed || {}; var len = this.$options.cache.length; for(var i=0; i &lt; len; i++){ var cacheName = this.$options.cache[i]; this.$options.computed[cacheName] = { get:function(){ console.log('here1'); return this.localStore.get(cacheName); }, set:function(val){ this.localStore.set(cacheName, val); } } console.log(cacheName); } console.log(this.$options.computed); } } });"><pre class="notranslate"><code class="notranslate">Vue.mixin({ created: function () { if (this.$options.hasOwnProperty("cache")) { console.log(this.$options.computed); this.$options.computed = this.$options.computed || {}; var len = this.$options.cache.length; for(var i=0; i &lt; len; i++){ var cacheName = this.$options.cache[i]; this.$options.computed[cacheName] = { get:function(){ console.log('here1'); return this.localStore.get(cacheName); }, set:function(val){ this.localStore.set(cacheName, val); } } console.log(cacheName); } console.log(this.$options.computed); } } }); </code></pre></div> <p dir="auto">computed have data.but not response</p>
<h3 dir="auto">Version</h3> <p dir="auto">2.6.10</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://codepen.io/anon/pen/dxGVOg?editors=1010#0" rel="nofollow">https://codepen.io/anon/pen/dxGVOg?editors=1010#0</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">In your render function, create two distinct elements (with two separate createElement calls), but with the same data object specifying an event listener.</p> <h3 dir="auto">What is expected?</h3> <p dir="auto">When the event is triggered from the <em>second</em> child component, it should fire the appropiate handler.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Nothing</p> <hr> <p dir="auto">I am aware of the constraints section here: <a href="https://vuejs.org/v2/guide/render-function.html#Constraints" rel="nofollow">https://vuejs.org/v2/guide/render-function.html#Constraints</a> but it doesn't seem to specifically mention re-use of just the data-object.</p> <p dir="auto">If this restriction is known and meant to be then this issue is about properly documenting this limitation.</p>
0
<h3 dir="auto"><g-emoji class="g-emoji" alias="computer" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4bb.png">💻</g-emoji></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Would you like to work on a fix?</li> </ul> <h3 dir="auto">How are you using Babel?</h3> <p dir="auto">babel-loader (webpack)</p> <h3 dir="auto">Input code</h3> <ul dir="auto"> <li>run 'npm install @babel/plugin-proposal-class-properties --save-dev'</li> <li>add "plugins": ["@babel/plugin-proposal-class-properties"] to babel.config.json file</li> <li>run npm start</li> </ul> <h3 dir="auto">Configuration file name</h3> <p dir="auto">babel.config.json</p> <h3 dir="auto">Configuration</h3> <p dir="auto">{<br> "presets": ["@nrwl/web/babel"],<br> "babelrcRoots": ["*"],<br> "plugins": ["@babel/plugin-proposal-class-properties"]<br> }</p> <h3 dir="auto">Current and expected behavior</h3> <p dir="auto">Current behaviour: babel seems to be throwing this error<br> vendor.js:280159 Uncaught TypeError: _interopRequireDefault is not a function<br> at ../../../node_modules/rc-util/lib/hooks/useMergedState.js (vendor.js:280159:23)<br> at <strong>webpack_require</strong> (bootstrap:79:1)<br> at ../../../node_modules/antd/lib/typography/Base/index.js (vendor.js:183406:47)<br> at <strong>webpack_require</strong> (bootstrap:79:1)<br> at ../../../node_modules/antd/lib/typography/Paragraph.js (vendor.js:184058:36)<br> at <strong>webpack_require</strong> (bootstrap:79:1)<br> at ./app/components/ShareLink/index.tsx (main.js:19639:87)<br> at <strong>webpack_require</strong> (bootstrap:79:1)<br> at ./app/components/games/GameCard.tsx (main.js:22083:68)<br> at <strong>webpack_require</strong> (bootstrap:79:1)</p> <p dir="auto">expected behavior:<br> to run the application</p> <h3 dir="auto">Environment</h3> <p dir="auto">"@babel/core": "7.9.6",<br> Node v16.17.0<br> Npm 8.15.0<br> MonoRepo with Nx</p> <h3 dir="auto">Possible solution</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
<p dir="auto">In addition to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="813959646" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/12851" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/12851/hovercard" href="https://github.com/babel/babel/issues/12851">#12851</a></p> <p dir="auto">If you set <code class="notranslate">resolutions</code> for <code class="notranslate">@babel/core</code> to <code class="notranslate">~7.12.0</code> you then get this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 8 | exports.navigateTo = exports.replace = exports.push = exports.navigate = exports.default = void 0; 9 | &gt; 10 | var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require(&quot;@babel/runtime/helpers/objectWithoutPropertiesLoose&quot;)); | ^ 11 | 12 | var _assertThisInitialized2 = _interopRequireDefault(require(&quot;@babel/runtime/helpers/assertThisInitialized&quot;)); 13 | WebpackError: TypeError: _interopRequireDefault is not a function - index.js:10 node_modules/gatsby-link/index.js:10:1 - utils.js:136 node_modules/@reach/router/lib/utils.js:136:1"><pre class="notranslate"><code class="notranslate"> 8 | exports.navigateTo = exports.replace = exports.push = exports.navigate = exports.default = void 0; 9 | &gt; 10 | var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose")); | ^ 11 | 12 | var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized")); 13 | WebpackError: TypeError: _interopRequireDefault is not a function - index.js:10 node_modules/gatsby-link/index.js:10:1 - utils.js:136 node_modules/@reach/router/lib/utils.js:136:1 </code></pre></div> <p dir="auto"><code class="notranslate">gatsby-link</code> requires <code class="notranslate">babel/runtime/helpers/interopRequireDefault</code> which seems to no longer exist in <code class="notranslate">@babel/[email protected]</code></p>
1
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p>
<p dir="auto">My goal is to update many rows at once on a Postgres database using sqlalchemy. My setting is :</p> <ul dir="auto"> <li>I have a table created with <code class="notranslate">sqlalchemy.Table(...)</code></li> <li>The primary key is, say, <code class="notranslate">a</code>, <code class="notranslate">b</code></li> <li>There are some other fields <code class="notranslate">c</code> and <code class="notranslate">d</code></li> </ul> <p dir="auto">I have created all the rows with the primary key setup, and need to add each column (respectively c and d) separately. Thus, I'm looking to give sqlalchemy a dict like <code class="notranslate">{ 'a': ..., 'b': ..., 'c': f(a, b) }</code> for many values of a and b. However, I cannot figure out a way to do this without doing it row by row (which is very expensive and time consuming).</p> <p dir="auto">I have tried the <code class="notranslate">Session.bulk_update_mappings</code> approach, but since my Table is not from the ORM system but rather from the Core, I don't have a mapper, and sqlalchemy complains, utlimately failing to update my rows (<a href="https://stackoverflow.com/a/36760560/5016244" rel="nofollow">SO reference</a>).</p> <p dir="auto">I also tried the Core approach, without success (<a href="https://docs.sqlalchemy.org/en/13/core/tutorial.html#executing-multiple-statements" rel="nofollow">documentation reference</a>). Indeed, I fail to see how to do it with an Update statement. I have tried like so,</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" stmt = self._table.update() self._engine.execute(stmt, [{'a': 0, 'b': 0, 'c': 10}, ...])"><pre class="notranslate"> <span class="pl-s1">stmt</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">_table</span>.<span class="pl-en">update</span>() <span class="pl-s1">self</span>.<span class="pl-s1">_engine</span>.<span class="pl-en">execute</span>(<span class="pl-s1">stmt</span>, [{<span class="pl-s">'a'</span>: <span class="pl-c1">0</span>, <span class="pl-s">'b'</span>: <span class="pl-c1">0</span>, <span class="pl-s">'c'</span>: <span class="pl-c1">10</span>}, ...])</pre></div> <p dir="auto">But this complains that there are duplicate keys that violate the unique constraint <code class="notranslate">table_name_pkey</code>, and I believe that it is due to the fact that it doesn't try to find rows matching the pkey and update remaining fields...</p> <p dir="auto">Anyways, I can't figure out a way to do this properly and with sufficiently good performances.</p> <p dir="auto">I thank you in advance for your kind replies and your help.</p>
0
<p dir="auto">No compatible version found: babel-template@^6.24.1</p> <p dir="auto">I'm trying to resolve by pinning versions with npm-shrinkwrap, but I'm very new to this.<br> It seems that these libraries are suddenly incompatible with node 7.x</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;dependencies&quot;: { &quot;babel-plugin-transform-es2015-duplicate-keys&quot;: { &quot;version&quot;: &quot;6.24.1&quot;, &quot;from&quot;: &quot;[email protected]&quot;, &quot;dependencies&quot;: { &quot;babel-types&quot;: { &quot;version&quot;: &quot;6.23.0&quot;, &quot;from&quot;: &quot;[email protected]&quot; } } }, &quot;babel-plugin-transform-es2015-modules-amd&quot;: { &quot;version&quot;: &quot;6.24.1&quot;, &quot;from&quot;: &quot;[email protected]&quot;, &quot;dependencies&quot;: { &quot;babel-plugin-transform-es2015-modules-commonjs&quot;: { &quot;version&quot;: &quot;6.23.0&quot;, &quot;from&quot;: &quot;[email protected]&quot; } } } } }"><pre class="notranslate"><code class="notranslate">{ "dependencies": { "babel-plugin-transform-es2015-duplicate-keys": { "version": "6.24.1", "from": "[email protected]", "dependencies": { "babel-types": { "version": "6.23.0", "from": "[email protected]" } } }, "babel-plugin-transform-es2015-modules-amd": { "version": "6.24.1", "from": "[email protected]", "dependencies": { "babel-plugin-transform-es2015-modules-commonjs": { "version": "6.23.0", "from": "[email protected]" } } } } } </code></pre></div>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong></p> <p dir="auto">Transpilation of the code fails with the following error.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: D:\Git\babel-duplicate-declaration-example\example.ts: Duplicate declaration &quot;foo&quot; 6 | } 7 | export namespace ns2 { &gt; 8 | export class foo { | ^ 9 | F1: string; 10 | } 11 | } at File.buildCodeFrameError (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\core\lib\transformation\file\file.js:261:12) at Scope.checkBlockScopedCollisions (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\scope\index.js:344:22) at Scope.registerBinding (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\scope\index.js:501:16) at Scope.registerDeclaration (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\scope\index.js:444:12) at Object.BlockScoped (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\scope\index.js:187:28) at Object.newFn (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\visitors.js:230:17) at NodePath._call (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\path\context.js:53:20) at NodePath.call (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\path\context.js:36:14) at NodePath.visit (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\path\context.js:88:12) at TraversalContext.visitQueue (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\context.js:118:16)"><pre lang="log" class="notranslate"><code class="notranslate">TypeError: D:\Git\babel-duplicate-declaration-example\example.ts: Duplicate declaration "foo" 6 | } 7 | export namespace ns2 { &gt; 8 | export class foo { | ^ 9 | F1: string; 10 | } 11 | } at File.buildCodeFrameError (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\core\lib\transformation\file\file.js:261:12) at Scope.checkBlockScopedCollisions (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\scope\index.js:344:22) at Scope.registerBinding (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\scope\index.js:501:16) at Scope.registerDeclaration (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\scope\index.js:444:12) at Object.BlockScoped (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\scope\index.js:187:28) at Object.newFn (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\visitors.js:230:17) at NodePath._call (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\path\context.js:53:20) at NodePath.call (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\path\context.js:36:14) at NodePath.visit (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\path\context.js:88:12) at TraversalContext.visitQueue (D:\Git\babel-duplicate-declaration-example\node_modules\@babel\traverse\lib\context.js:118:16) </code></pre></div> <p dir="auto"><strong>Input Code</strong></p> <p dir="auto"><a href="https://github.com/ikenik/babel-duplicate-declaration-example">https://github.com/ikenik/babel-duplicate-declaration-example</a></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// typescript module src { export namespace ns1 { export class foo { F1: string; } } export namespace ns2 { export class foo { F1: string; } } }"><pre class="notranslate"><span class="pl-c">// typescript</span> module <span class="pl-s1">src</span> <span class="pl-kos">{</span> <span class="pl-k">export</span> <span class="pl-k">namespace</span> <span class="pl-s1">ns1</span> <span class="pl-kos">{</span> <span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">foo</span> <span class="pl-kos">{</span> <span class="pl-c1">F1</span>: <span class="pl-smi">string</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">namespace</span> <span class="pl-s1">ns2</span> <span class="pl-kos">{</span> <span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">foo</span> <span class="pl-kos">{</span> <span class="pl-c1">F1</span>: <span class="pl-smi">string</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>Expected behavior/code</strong><br> A clear and concise description of what you expected to happen (or code).</p> <p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ presets: [&quot;@babel/preset-typescript&quot;] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-c1">presets</span>: <span class="pl-kos">[</span><span class="pl-s">"@babel/preset-typescript"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;dependencies&quot;: { &quot;@babel/core&quot;: &quot;^7.4.5&quot; }, &quot;devDependencies&quot;: { &quot;@babel/preset-typescript&quot;: &quot;^7.3.3&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"@babel/core"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.4.5<span class="pl-pds">"</span></span> }, <span class="pl-ent">"devDependencies"</span>: { <span class="pl-ent">"@babel/preset-typescript"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.3.3<span class="pl-pds">"</span></span> } }</pre></div> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npm install npm start"><pre class="notranslate">npm install npm start</pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version(s): v7.4.5</li> <li>Node/npm version: Tested and confirmed in Node 8/9/10 with npm 5.6.0</li> <li>OS: Windows 10</li> <li>Monorepo: no</li> <li>How you are using Babel: <code class="notranslate">cli</code></li> </ul> <p dir="auto"><strong>Additional context/Screenshots</strong></p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="354524188" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/8559" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/8559/hovercard" href="https://github.com/babel/babel/issues/8559">#8559</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="353773136" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/8525" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/8525/hovercard" href="https://github.com/babel/babel/issues/8525">#8525</a> may be related.</p>
0
<p dir="auto">If the function is defined in another js file especially when in same directory, Visual Studio doesn't find it which is weird.</p>
<p dir="auto">I found this going through the /docs/runtimes/Node.js walkthrough after seeing a doc feedback verbatim saying that typings weren't being picked up.<br> After creating an express application, trying to get IntelliSense for node and express types fails.<br> If I roll-back to 0.10.8, the typings are picked up correctly.<br> The generated express app does not include a jsconfig.json file.</p>
1
<p dir="auto">on both the css and components pages in the documentation it refers to btn-lg btn-sm and btn-xs but in reality in the css files it is referred to as btn-large btn-small and btn-mini</p>
<p dir="auto">To increase/decrease the size of form controls, you can add the classes input-lg or input-sm (at least according to the website [http://getbootstrap.com/css/#forms] - which is the most consistent solution). In the css code, however, the classes are called input-large and input-small.</p>
1
<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="import pandas as pd df=pd.DataFrame({'variable': ['a','a','b','b','c','c'], 'value' : [1000,2000,10,20,100,200]}, index=[1,2]*3) df.nlargest(3,'value') "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'variable'</span>: [<span class="pl-s">'a'</span>,<span class="pl-s">'a'</span>,<span class="pl-s">'b'</span>,<span class="pl-s">'b'</span>,<span class="pl-s">'c'</span>,<span class="pl-s">'c'</span>], <span class="pl-s">'value'</span> : [<span class="pl-c1">1000</span>,<span class="pl-c1">2000</span>,<span class="pl-c1">10</span>,<span class="pl-c1">20</span>,<span class="pl-c1">100</span>,<span class="pl-c1">200</span>]}, <span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>]<span class="pl-c1">*</span><span class="pl-c1">3</span>) <span class="pl-s1">df</span>.<span class="pl-en">nlargest</span>(<span class="pl-c1">3</span>,<span class="pl-s">'value'</span>)</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">The result should only have 3 rows. If the index has unique values, it is correct. But when the index has duplicate values, the incorrect result is produced.</p> <p dir="auto">The example produces the following output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" value variable 2 2000 a 2 2000 a 1 1000 a 2 200 c 2 200 c 1 100 c 2 20 b 2 20 b 1 10 b"><pre class="notranslate"><code class="notranslate"> value variable 2 2000 a 2 2000 a 1 1000 a 2 200 c 2 200 c 1 100 c 2 20 b 2 20 b 1 10 b </code></pre></div> <h4 dir="auto">Expected Output</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" value variable 2 2000 a 1 1000 a 2 200 c"><pre class="notranslate"><code class="notranslate"> value variable 2 2000 a 1 1000 a 2 200 c </code></pre></div> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None <p dir="auto">pandas: 0.19.0<br> nose: None<br> pip: 8.1.2<br> setuptools: 27.2.0<br> Cython: None<br> numpy: 1.11.2<br> scipy: None<br> statsmodels: None<br> xarray: None<br> IPython: 5.1.0<br> sphinx: None<br> patsy: None<br> dateutil: 2.5.3<br> pytz: 2016.7<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: None<br> matplotlib: None<br> openpyxl: None<br> xlrd: 1.0.0<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: 4.5.1<br> html5lib: 0.999<br> httplib2: None<br> apiclient: None<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.8<br> boto: None<br> pandas_datareader: None</p> </details>
<p dir="auto">The function below has been incorrectly implemented. If the frame has an index with duplicated values, you will get a result with more than <code class="notranslate">n</code> rows and not properly sorted. So <code class="notranslate">nsmallest</code> and <code class="notranslate">nlargest</code> for DataFrame doesn't return a correct frame in this particular case.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def _nsorted(self, columns, n, method, keep): if not com.is_list_like(columns): columns = [columns] columns = list(columns) ser = getattr(self[columns[0]], method)(n, keep=keep) ascending = dict(nlargest=False, nsmallest=True)[method] return self.loc[ser.index].sort_values(columns, ascending=ascending, kind='mergesort')"><pre class="notranslate"><code class="notranslate">def _nsorted(self, columns, n, method, keep): if not com.is_list_like(columns): columns = [columns] columns = list(columns) ser = getattr(self[columns[0]], method)(n, keep=keep) ascending = dict(nlargest=False, nsmallest=True)[method] return self.loc[ser.index].sort_values(columns, ascending=ascending, kind='mergesort') </code></pre></div>
1
<h2 dir="auto">Error message when starting PowerToys when resuming from power save mode:</h2> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.18363.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/01/2020 10:18:30<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>Command Line: "C:\Program Files\PowerToys\modules\launcher\PowerLauncher.dll" 72</li> <li>Timestamp: 08/01/2020 10:18:30</li> <li>Wox version: 1.0.0</li> <li>OS Version: Microsoft Windows NT 10.0.18363.0</li> <li>IntPtr Length: 8</li> <li>x64: True</li> <li>CLR Version: 3.1.4</li> <li>Installed .NET Framework: <ul dir="auto"> <li>v2.0.50727 2.0.50727.4927 SP2</li> <li>v3.0 3.0.30729.4926 SP2</li> <li>v3.5 3.5.30729.4926 SP1</li> <li>v4 Client 4.8.03752</li> <li>v4 Full 4.8.03752</li> <li>v4.0 Client 4.0.0.0</li> </ul> </li> </ul> <h2 dir="auto">Assemblies - PowerLauncher</h2> <ul dir="auto"> <li>System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Private.CoreLib.dll)</li> <li>PowerLauncher, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerLauncher.dll)</li> <li>PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\PresentationFramework.dll)</li> <li>WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\WindowsBase.dll)</li> <li>System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.dll)</li> <li>System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\System.Xaml.dll)</li> <li>System.Runtime.Extensions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.Extensions.dll)</li> <li>System.Threading, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Threading.dll)</li> <li>System.Threading.Tasks, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Threading.Tasks.dll)</li> <li>System.IO.Pipes, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.IO.Pipes.dll)</li> <li>System.Security.AccessControl, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Security.AccessControl.dll)</li> <li>System.Security.Principal.Windows, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Security.Principal.Windows.dll)</li> <li>Wox.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Infrastructure.dll)</li> <li>Pinyin4Net, Version=2016.4.24.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Pinyin4Net.dll)</li> <li>mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\mscorlib.dll)</li> <li>System.IO.Packaging, Version=4.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\System.IO.Packaging.dll)</li> <li>netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\netstandard.dll)</li> <li>System.Private.Uri, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Private.Uri.dll)</li> <li>PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\PresentationCore.dll)</li> <li>DirectWriteForwarder, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\DirectWriteForwarder.dll)</li> <li>System.Runtime.InteropServices, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.InteropServices.dll)</li> <li>System.Runtime.CompilerServices.VisualC, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.CompilerServices.VisualC.dll)</li> <li>System.Diagnostics.Debug, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Diagnostics.Debug.dll)</li> <li>System.Resources.ResourceManager, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Resources.ResourceManager.dll)</li> <li>Microsoft.Win32.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\Microsoft.Win32.Primitives.dll)</li> <li>System.Collections.NonGeneric, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Collections.NonGeneric.dll)</li> <li>System.Linq, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Linq.dll)</li> <li>System.Collections, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Collections.dll)</li> <li>Microsoft.Win32.Registry, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\Microsoft.Win32.Registry.dll)</li> <li>System.Collections.Specialized, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Collections.Specialized.dll)</li> <li>System.ComponentModel.Primitives, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.ComponentModel.Primitives.dll)</li> <li>System.Diagnostics.Process, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Diagnostics.Process.dll)</li> <li>System.Threading.Thread, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Threading.Thread.dll)</li> <li>System.Configuration.ConfigurationManager, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\System.Configuration.ConfigurationManager.dll)</li> <li>System.Xml.ReaderWriter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Xml.ReaderWriter.dll)</li> <li>System.Private.Xml, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Private.Xml.dll)</li> <li>System.IO.FileSystem, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.IO.FileSystem.dll)</li> <li>System.Net.WebClient, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.WebClient.dll)</li> <li>System.Memory, Version=4.2.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Memory.dll)</li> <li>System.Security.Cryptography.Algorithms, Version=4.3.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Security.Cryptography.Algorithms.dll)</li> <li>System.Text.Encoding.Extensions, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Text.Encoding.Extensions.dll)</li> <li>System.Threading.ThreadPool, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Threading.ThreadPool.dll)</li> <li>System.Diagnostics.TraceSource, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Diagnostics.TraceSource.dll)</li> <li>System.ComponentModel.TypeConverter, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.ComponentModel.TypeConverter.dll)</li> <li>System.Windows.Extensions, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\System.Windows.Extensions.dll)</li> <li>System.ComponentModel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.ComponentModel.dll)</li> <li>System.Collections.Concurrent, Version=4.0.15.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Collections.Concurrent.dll)</li> <li>System.ObjectModel, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.ObjectModel.dll)</li> <li>System.Net.Requests, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.Requests.dll)</li> <li>System.Net.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.Primitives.dll)</li> <li>System.Security.Principal, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Security.Principal.dll)</li> <li>System.Net.WebHeaderCollection, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.WebHeaderCollection.dll)</li> <li>ManagedCommon, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\ManagedCommon.dll)</li> <li>System.Diagnostics.StackTrace, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Diagnostics.StackTrace.dll)</li> <li>Telemetry, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Telemetry.dll)</li> <li>System.Diagnostics.Tracing, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Diagnostics.Tracing.dll)</li> <li>Wox.Plugin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Plugin.dll)</li> <li>Wox.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Wox.Core.dll)</li> <li>PowerLauncher.Telemetry, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerLauncher.Telemetry.dll)</li> <li>NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c (C:\Program Files\PowerToys\modules\launcher\NLog.dll)</li> <li>System.Diagnostics.FileVersionInfo, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Diagnostics.FileVersionInfo.dll)</li> <li>System.Data.Common, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Data.Common.dll)</li> <li>System.Net.Mail, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.Mail.dll)</li> <li>System.IO.FileSystem.Watcher, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.IO.FileSystem.Watcher.dll)</li> <li>System.Net.Sockets, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.Sockets.dll)</li> <li>System.Linq.Expressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Linq.Expressions.dll)</li> <li>System.Diagnostics.Tools, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Diagnostics.Tools.dll)</li> <li>NLog.Extensions.Logging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c (C:\Program Files\PowerToys\modules\launcher\NLog.Extensions.Logging.dll)</li> <li>Microsoft.Extensions.Logging.Abstractions, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 (C:\Program Files\PowerToys\modules\launcher\Microsoft.Extensions.Logging.Abstractions.dll)</li> <li>Microsoft.Extensions.Logging, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60 (C:\Program Files\PowerToys\modules\launcher\Microsoft.Extensions.Logging.dll)</li> <li>System.Drawing.Primitives, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Drawing.Primitives.dll)</li> <li>System.Threading.Timer, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Threading.Timer.dll)</li> <li>ControlzEx, Version=4.0.0.0, Culture=neutral, PublicKeyToken=69f1c32f803d307e (C:\Program Files\PowerToys\modules\launcher\ControlzEx.dll)</li> <li>MahApps.Metro, Version=2.0.0.0, Culture=neutral, PublicKeyToken=51482d6f650b2b3f (C:\Program Files\PowerToys\modules\launcher\MahApps.Metro.dll)</li> <li>PresentationFramework-SystemXml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\PresentationFramework-SystemXml.dll)</li> <li>System.Windows.Controls.Ribbon, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\System.Windows.Controls.Ribbon.dll)</li> <li>PresentationFramework-SystemData, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\PresentationFramework-SystemData.dll)</li> <li>System.Runtime.Numerics, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.Numerics.dll)</li> <li>Microsoft.Win32.SystemEvents, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\Microsoft.Win32.SystemEvents.dll)</li> <li>System.ComponentModel.EventBasedAsync, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.ComponentModel.EventBasedAsync.dll)</li> <li>Microsoft.PowerToys.Settings.UI.Lib, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Microsoft.PowerToys.Settings.UI.Lib.dll)</li> <li>PowerToysInterop, Version=0.20.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\PowerToysInterop.dll)</li> <li>System.Runtime.Serialization.Formatters, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.Serialization.Formatters.dll)</li> <li>Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed (C:\Program Files\PowerToys\modules\launcher\Newtonsoft.Json.dll)</li> <li>System.Linq.Parallel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Linq.Parallel.dll)</li> <li>System.Runtime.Serialization.Primitives, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.Serialization.Primitives.dll)</li> <li>System.Reflection.Emit.ILGeneration, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Reflection.Emit.ILGeneration.dll)</li> <li>System.Reflection.Primitives, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Reflection.Primitives.dll)</li> <li>System.Reflection.Emit.Lightweight, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Reflection.Emit.Lightweight.dll)</li> <li>Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null (dynamic assembly doesn't has location)</li> <li>System.Drawing.Common, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\System.Drawing.Common.dll)</li> <li>System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Core.dll)</li> <li>System.Runtime.Loader, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.Loader.dll)</li> <li>Microsoft.Plugin.Calculator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Calculator\Microsoft.Plugin.Calculator.dll)</li> <li>Microsoft.Plugin.Folder, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Folder\Microsoft.Plugin.Folder.dll)</li> <li>Microsoft.Plugin.Indexer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Indexer\Microsoft.Plugin.Indexer.dll)</li> <li>Microsoft.Plugin.Program, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Program\Microsoft.Plugin.Program.dll)</li> <li>Windows.Foundation, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Foundation.winmd)</li> <li>Windows.ApplicationModel, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.ApplicationModel.winmd)</li> <li>System.Runtime.InteropServices.WindowsRuntime, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.InteropServices.WindowsRuntime.dll)</li> <li>System.Threading.Overlapped, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Threading.Overlapped.dll)</li> <li>Windows.Management, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Management.winmd)</li> <li>System.Security.Claims, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Security.Claims.dll)</li> <li>System.Buffers, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Buffers.dll)</li> <li>Windows.Storage, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.Storage.winmd)</li> <li>Windows.System, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null, ContentType=WindowsRuntime (C:\WINDOWS\system32\WinMetadata\Windows.System.winmd)</li> <li>Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\Accessibility.dll)</li> <li>System.Text.RegularExpressions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Text.RegularExpressions.dll)</li> <li>System.Xml.XDocument, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Xml.XDocument.dll)</li> <li>System.Private.Xml.Linq, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Private.Xml.Linq.dll)</li> <li>Microsoft.Plugin.Shell, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.Shell\Microsoft.Plugin.Shell.dll)</li> <li>WindowsInput, Version=1.0.4.0, Culture=neutral, PublicKeyToken=9b287f7dc5073cad (C:\Program Files\PowerToys\modules\launcher\WindowsInput.dll)</li> <li>Microsoft.Plugin.WindowWalker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Plugins\Microsoft.Plugin.WindowWalker\Microsoft.Plugin.WindowWalker.dll)</li> <li>System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.dll)</li> <li>UIAutomationTypes, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\UIAutomationTypes.dll)</li> <li>PresentationFramework.Aero2, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\PresentationFramework.Aero2.dll)</li> <li>PresentationFramework.resources, Version=4.0.0.0, Culture=de, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\de\PresentationFramework.resources.dll)</li> <li>UIAutomationProvider, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\UIAutomationProvider.dll)</li> <li>Microsoft.Xaml.Behaviors, Version=1.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\PowerToys\modules\launcher\Microsoft.Xaml.Behaviors.dll)</li> <li>System.Threading.Tasks.Parallel, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Threading.Tasks.Parallel.dll)</li> <li>System.IO.FileSystem.DriveInfo, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.IO.FileSystem.DriveInfo.dll)</li> <li>System.Net.ServicePoint, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.ServicePoint.dll)</li> <li>System.Net.Security, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Net.Security.dll)</li> <li>System.Text.Json, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Text.Json.dll)</li> <li>System.Text.Encodings.Web, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Text.Encodings.Web.dll)</li> <li>System.Numerics.Vectors, Version=4.1.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Numerics.Vectors.dll)</li> <li>System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Runtime.CompilerServices.Unsafe.dll)</li> <li>Mages.Core, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null (C:\Program Files\PowerToys\modules\launcher\Mages.Core.dll)</li> <li>Microsoft.Search.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f748985a6e9a7cb (C:\Program Files\PowerToys\modules\launcher\Microsoft.Search.Interop.dll)</li> <li>System.Data.OleDb, Version=4.0.1.1, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (C:\Program Files\PowerToys\modules\launcher\System.Data.OleDb.dll)</li> <li>System.Transactions.Local, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Transactions.Local.dll)</li> <li>System.Diagnostics.PerformanceCounter, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 (C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.4\System.Diagnostics.PerformanceCounter.dll)</li> <li>System.Reflection.Metadata, Version=1.4.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Reflection.Metadata.dll)</li> <li>System.Collections.Immutable, Version=1.2.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\3.1.4\System.Collections.Immutable.dll)</li> </ul>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/bonfire-no-repeats-please" rel="nofollow">http://www.freecodecamp.com/challenges/bonfire-no-repeats-please</a> has an issue.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var k = 0; function permAlone(str) { perm(&quot;&quot;,str); return k; } function perm(pre, str){ if (str.length === 0){ var x=true; for (var i = 0; i &lt; pre.length-1; i++){ if (pre.split(&quot;&quot;)[i] == pre.split(&quot;&quot;)[i+1]) x = false; } if (x === true) k += 1; } else{ for (var i = 0; i &lt; str.length; i++){ perm(pre + str.charAt(i) , str.substring(0,i)+str.substring(i+1)); } } } permAlone('aab');``` If I run the code outside fcc, I get the required results but in the challenges it moves all my results up by +2"><pre class="notranslate"><code class="notranslate">var k = 0; function permAlone(str) { perm("",str); return k; } function perm(pre, str){ if (str.length === 0){ var x=true; for (var i = 0; i &lt; pre.length-1; i++){ if (pre.split("")[i] == pre.split("")[i+1]) x = false; } if (x === true) k += 1; } else{ for (var i = 0; i &lt; str.length; i++){ perm(pre + str.charAt(i) , str.substring(0,i)+str.substring(i+1)); } } } permAlone('aab');``` If I run the code outside fcc, I get the required results but in the challenges it moves all my results up by +2 </code></pre></div>
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/bonfire-no-repeats-please" rel="nofollow">http://www.freecodecamp.com/challenges/bonfire-no-repeats-please</a> has an issue. Please describe how to reproduce it, and include links to screen shots if possible.</p> <p dir="auto">The tests for this bonfire are adding two to the expected results. This somehow causes the bonfire checker to hang a bit and the tests to fail.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7762303/8343900/9bea40f8-1aa8-11e5-8d8c-c650f0f5021a.png"><img src="https://cloud.githubusercontent.com/assets/7762303/8343900/9bea40f8-1aa8-11e5-8d8c-c650f0f5021a.png" alt="screenshot 1" style="max-width: 100%;"></a></p>
1
<h3 dir="auto">What problem does this feature solve?</h3> <p dir="auto">Macs and PCs use different keyboard modifiers for the same tasks, i.e. <code class="notranslate">CTRL C</code> and <code class="notranslate">CMD C</code> or in keyboard event terms <code class="notranslate">.ctrl</code> and <code class="notranslate">.meta</code>.</p> <p dir="auto">Because you can't add modifiers dynamically, you have to build handlers yourself, losing out on the built in sugar:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function onKeyPress (event) { const isCopy = event.key === 'c' &amp;&amp; ((isMac &amp;&amp; event.metaKey) || event.ctrlKey) ... }"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">onKeyPress</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">const</span> <span class="pl-s1">isCopy</span> <span class="pl-c1">=</span> <span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-c1">key</span> <span class="pl-c1">===</span> <span class="pl-s">'c'</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">isMac</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-c1">metaKey</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-c1">ctrlKey</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">Or use a plugin and do something like:</p> <div class="highlight highlight-text-html-vue notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;GlobalEvents v-if=&quot;isMac&quot; @keypress.meta.c=&quot;copy&quot; /&gt; &lt;GlobalEvents v-if=&quot;isWin&quot; @keypress.ctrl.c=&quot;copy&quot; /&gt;"><pre class="notranslate">&lt;<span class="pl-ent">GlobalEvents</span> <span class="pl-e">v-if</span>=<span class="pl-s1"><span class="pl-pds">"</span>isMac<span class="pl-pds">"</span></span> @<span class="pl-e">keypress</span>.meta.<span class="pl-e">c</span>=<span class="pl-s1"><span class="pl-pds">"</span>copy<span class="pl-pds">"</span></span> /&gt; &lt;<span class="pl-ent">GlobalEvents</span> <span class="pl-e">v-if</span>=<span class="pl-s1"><span class="pl-pds">"</span>isWin<span class="pl-pds">"</span></span> @<span class="pl-e">keypress</span>.ctrl.<span class="pl-e">c</span>=<span class="pl-s1"><span class="pl-pds">"</span>copy<span class="pl-pds">"</span></span> /&gt;</pre></div> <h3 dir="auto">What does the proposed API look like?</h3> <p dir="auto">I'm proposing several new cross-platform modifiers that would make it much easier to work with cross-platform keyboard shortcuts, on top of the existing excellent keyboard event handling:</p> <ul dir="auto"> <li><code class="notranslate">action</code> - substitute the correct modifier key <code class="notranslate">ctrl</code> or <code class="notranslate">meta</code> depending on platform</li> <li><code class="notranslate">mac</code> - limit the modifier to mac only</li> <li><code class="notranslate">win</code> - limit the modifier to windows / linux only</li> </ul> <p dir="auto">That would allow combinations like so:</p> <div class="highlight highlight-text-html-vue notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// automatic &lt;input @keypress.action.c=&quot;copy&quot; /&gt;"><pre class="notranslate">// automatic &lt;<span class="pl-ent">input</span> @<span class="pl-e">keypress</span>.action.<span class="pl-e">c</span>=<span class="pl-s1"><span class="pl-pds">"</span>copy<span class="pl-pds">"</span></span> /&gt;</pre></div> <div class="highlight highlight-text-html-vue notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// manual, perhaps with different handling based on platform &lt;input @keypress.mac.meta.v=&quot;pasteMac&quot; @keypress.win.ctrl.v=&quot;pasteWin&quot; /&gt;"><pre class="notranslate">// manual, perhaps with different handling based on platform &lt;<span class="pl-ent">input</span> @<span class="pl-e">keypress</span>.mac.meta.<span class="pl-e">v</span>=<span class="pl-s1"><span class="pl-pds">"</span>pasteMac<span class="pl-pds">"</span></span> @<span class="pl-e">keypress</span>.win.ctrl.<span class="pl-e">v</span>=<span class="pl-s1"><span class="pl-pds">"</span>pasteWin<span class="pl-pds">"</span></span> /&gt;</pre></div>
<p dir="auto">This is a follow up of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="302109623" data-permission-text="Title is private" data-url="https://github.com/vuejs/vue/issues/7740" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/7740/hovercard?comment_id=371309357&amp;comment_type=issue_comment" href="https://github.com/vuejs/vue/issues/7740#issuecomment-371309357">#7740 (comment)</a></p> <h3 dir="auto">Rational</h3> <p dir="auto">Problems with current scoped slot usage:</p> <ul dir="auto"> <li>Verbose if using <code class="notranslate">&lt;template slot-scope&gt;</code></li> <li>Limited to one element/component is using <code class="notranslate">slot-scope</code> directly on the slot element.</li> </ul> <h3 dir="auto">Proposal</h3> <p dir="auto">Introduce a new <code class="notranslate">v-scope</code> directive, that can only be used on components:</p> <div class="highlight highlight-text-html-vue notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;comp v-scope=&quot;scope&quot;&gt; {{ scope.msg }} &lt;/comp&gt;"><pre class="notranslate">&lt;<span class="pl-ent">comp</span> <span class="pl-e">v-scope</span>=<span class="pl-s1"><span class="pl-pds">"</span>scope<span class="pl-pds">"</span></span>&gt; {{ <span class="pl-smi">scope</span>.<span class="pl-smi">msg</span> }} &lt;/<span class="pl-ent">comp</span>&gt;</pre></div> <p dir="auto">It would work the same as <code class="notranslate">slot-scope</code> for the default scoped slot for <code class="notranslate">&lt;comp&gt;</code> (with <code class="notranslate">&lt;comp&gt;</code> providing the scope value). So it also works with deconstructing:</p> <div class="highlight highlight-text-html-vue notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;comp v-scope=&quot;{ msg }&quot;&gt; {{ msg }} &lt;/comp&gt;"><pre class="notranslate">&lt;<span class="pl-ent">comp</span> <span class="pl-e">v-scope</span>=<span class="pl-s1"><span class="pl-pds">"</span>{ msg }<span class="pl-pds">"</span></span>&gt; {{ msg }} &lt;/<span class="pl-ent">comp</span>&gt;</pre></div> <h3 dir="auto">Why a New Directive</h3> <p dir="auto">I believe the team briefly discussed what I proposed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="302109623" data-permission-text="Title is private" data-url="https://github.com/vuejs/vue/issues/7740" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/7740/hovercard?comment_id=371309357&amp;comment_type=issue_comment" href="https://github.com/vuejs/vue/issues/7740#issuecomment-371309357">#7740 (comment)</a> on Slack some time back, but I could no longer find the chat record. Here's the reasoning behind a new directive:</p> <ul dir="auto"> <li> <p dir="auto"><code class="notranslate">slot-scope</code> was introduced as a special attribute instead of a directive (attributes that start with <code class="notranslate">v-</code> prefix) because <code class="notranslate">slot</code> is an attribute, and we wanted to keep slot-related attributes consistent. <code class="notranslate">slot</code> was in turn introduced as a non-directive attribute because we want the usage to mirror the actual slot usage in the Shadow DOM standard. We figured it would be best to avoid having our own parallel <code class="notranslate">v-slot</code> when there's something that is conceptually the same in the standard.</p> </li> <li> <p dir="auto">Originally, <code class="notranslate">slot-scope</code> was designed to be only usable on <code class="notranslate">&lt;template&gt;</code> elements that act as abstract containers. But that was verbose - so we introduced the ability to use it directly on a slot element without the wrapping <code class="notranslate">&lt;template&gt;</code>. However, this also makes it impossible to allow using <code class="notranslate">slot-scope</code> directly on the component itself, because it would lead to ambiguity as illustrated <a href="https://github.com/vuejs/vue/issues/7740#issuecomment-370252860" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/7740/hovercard">here</a>.</p> </li> <li> <p dir="auto">I thought about adding modifiers or special prefixes to <code class="notranslate">slot-scope</code> so that that we can use it on a component directly to indicate its slot content should be treated as the default scoped slot, but neither a modifier or a prefix like <code class="notranslate">$</code> seem to be the right fit. The modifier by design should only be applied to directives, while new special syntax for a single use case is inconsistent with the whole syntax design.</p> </li> <li> <p dir="auto">For a very long time we've shied away from adding more directives, part of it being template syntax is something we want to keep as stable as possible, part of it being that we want to keep core directives to a minimum and only do things that users cannot easily do in userland. However, in this case scoped slot usage is important enough, and I think a new directive can be justified for making its usage significantly less noisy.</p> </li> </ul> <h3 dir="auto">Concerns</h3> <ul dir="auto"> <li> <p dir="auto">The expression accepted by <code class="notranslate">v-scope</code> is different from most other directives: it expects a temporary variable name (which can also be a deconstruction), but not without a precedence: it acts just like the alias part of <code class="notranslate">v-for</code>. So conceptually <code class="notranslate">v-scope</code> falls into the same camp with <code class="notranslate">v-for</code> as a structural directive that creates temporary variables for its inner scope.</p> </li> <li> <p dir="auto">This would break the users code if the user has a custom directive named <code class="notranslate">v-scope</code> and is used on a component.</p> <ul dir="auto"> <li> <p dir="auto">Since custom directives in v2 are primarily focused on direct DOM manipulations, it's relatively rare to see custom directives used on components, even more so for something that happens to be called <code class="notranslate">v-scope</code>, so the impact should be minimal.</p> </li> <li> <p dir="auto">Even in the case of it actually happening, it is straightforward to deal with by simply renaming the custom directive.</p> </li> </ul> </li> </ul>
0
<p dir="auto">v0.122.0</p> <p dir="auto">Turn on "show invisibles". Then quit atom.</p> <p dir="auto">Then in terminal, under your working directory, type "atom" (open in dev mode).</p> <p dir="auto">It does not show invisibles.</p>
<p dir="auto">Atom 0.122.0<br> OS X 10.9.4</p> <p dir="auto">The 0.122.0 update seems to have an issue with invisible characters being hidden on launch even though they are enabled. Disabling and re-enabling fixes the issue until the next time Atom is launched.</p> <p dir="auto">I ran Atom in safe mode then with a clean <code class="notranslate">~/.atom</code> directory, the issue persisted.</p>
1
<p dir="auto">Repeating over a set of objects in a template throws a TypeError when attempting to call a method with the same name as a local variable. In this case looping over a list of "action" objects and dynamically generate buttons i.e.</p> <p dir="auto">Edit: More concise example: <a href="https://plnkr.co/edit/QAygbyXHgseecK3xKTm9?p=preview" rel="nofollow">https://plnkr.co/edit/QAygbyXHgseecK3xKTm9?p=preview</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div #action&gt; &lt;!-- ... some markup ... --&gt; &lt;div class=&quot;nested&quot;&gt; &lt;button *ngFor=&quot;#thing of things&quot; (click)=&quot;thing.action($event)&quot;&gt; {{thing.label}} &lt;/button&gt; &lt;/div&gt; &lt;!-- ... some more markup ... --&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div #action&gt; &lt;!-- ... some markup ... --&gt; &lt;div class="nested"&gt; &lt;button *ngFor="#thing of things" (click)="thing.action($event)"&gt; {{thing.label}} &lt;/button&gt; &lt;/div&gt; &lt;!-- ... some more markup ... --&gt; &lt;/div&gt; </code></pre></div> <p dir="auto">Original example: <a href="https://plnkr.co/edit/qIIz03Zq6R8iEGeCgP5N?p=preview" rel="nofollow">https://plnkr.co/edit/qIIz03Zq6R8iEGeCgP5N?p=preview</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;button *ngFor=&quot;#action of actions&quot; (click)=&quot;action.action($event)&quot;&gt;{{action.label}}&lt;/button&gt;"><pre class="notranslate"><code class="notranslate">&lt;button *ngFor="#action of actions" (click)="action.action($event)"&gt;{{action.label}}&lt;/button&gt; </code></pre></div> <p dir="auto">Angular 2: 2.0.0-beta.12<br> OS X: 10.11.2<br> Chrome: 49.0.2623.87 (64-bit)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: l_action2_0 is not a function at AbstractChangeDetector.ChangeDetector_Comp_2.handleEventInternal (VM1171 viewFactory_Comp:355) at AbstractChangeDetector.handleEvent (VM1197 angular2.dev.js:9833) at AppView.triggerEventHandlers (VM1197 angular2.dev.js:10511) at eval (VM1750 viewFactory_Comp:579) at VM1197 angular2.dev.js:13979 at VM1197 angular2.dev.js:13407 at ZoneDelegate.invoke (VM1180 angular2-polyfills.js:332) at Object.NgZoneImpl.inner.inner.fork.onInvoke (VM1197 angular2.dev.js:2216) at ZoneDelegate.invoke (VM1180 angular2-polyfills.js:331) at Zone.runGuarded (VM1180 angular2-polyfills.js:241)"><pre class="notranslate"><code class="notranslate">TypeError: l_action2_0 is not a function at AbstractChangeDetector.ChangeDetector_Comp_2.handleEventInternal (VM1171 viewFactory_Comp:355) at AbstractChangeDetector.handleEvent (VM1197 angular2.dev.js:9833) at AppView.triggerEventHandlers (VM1197 angular2.dev.js:10511) at eval (VM1750 viewFactory_Comp:579) at VM1197 angular2.dev.js:13979 at VM1197 angular2.dev.js:13407 at ZoneDelegate.invoke (VM1180 angular2-polyfills.js:332) at Object.NgZoneImpl.inner.inner.fork.onInvoke (VM1197 angular2.dev.js:2216) at ZoneDelegate.invoke (VM1180 angular2-polyfills.js:331) at Zone.runGuarded (VM1180 angular2-polyfills.js:241) </code></pre></div> <p dir="auto">Looking at the transpiled code, it seems the issue appears to be in <code class="notranslate">CodeGenViewFactory</code> trying to reference the <code class="notranslate">action.action()</code>method as if it were the local variable <code class="notranslate">action</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="l_action0_0 = locals.get('action'); // &lt;- this is going to get your action object, {label: 'Method, action: Function} l_event1_0 = locals.get('$event'); // &lt;- this gets the event that is going to be sent to your function, this case MouseClick l_action2_0 = locals.get('action'); // &lt;- here is the problem, I think since action is the local template // variable name the code gen generates a locals.get instead of function // invocation, because the property has the same name and it gets lost // (should be smart to see that is a invocation from the template local variable // and not apply locals to get from ngFor context)"><pre class="notranslate"><code class="notranslate">l_action0_0 = locals.get('action'); // &lt;- this is going to get your action object, {label: 'Method, action: Function} l_event1_0 = locals.get('$event'); // &lt;- this gets the event that is going to be sent to your function, this case MouseClick l_action2_0 = locals.get('action'); // &lt;- here is the problem, I think since action is the local template // variable name the code gen generates a locals.get instead of function // invocation, because the property has the same name and it gets lost // (should be smart to see that is a invocation from the template local variable // and not apply locals to get from ngFor context) </code></pre></div> <p dir="auto">Changing the local variable name allows this case to work as expected</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="l_actionObj0_0 = locals.get('actionObj'); l_event1_0 = locals.get('$event'); l_action2_0 = l_actionObj0_0.action(l_event1_0); // &lt;- looks good right because my local template variable is #actionObj"><pre class="notranslate"><code class="notranslate">l_actionObj0_0 = locals.get('actionObj'); l_event1_0 = locals.get('$event'); l_action2_0 = l_actionObj0_0.action(l_event1_0); // &lt;- looks good right because my local template variable is #actionObj </code></pre></div>
<p dir="auto">This is what it takes to set three query parameters as of beta.2:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" var params = new URLSearchParams(); params.set('search', term); params.set('action', 'opensearch'); params.set('format', 'json');"><pre class="notranslate"><code class="notranslate"> var params = new URLSearchParams(); params.set('search', term); params.set('action', 'opensearch'); params.set('format', 'json'); </code></pre></div> <p dir="auto">That's tedious even if it does slavishly follow the <a href="https://url.spec.whatwg.org/#urlsearchparams" rel="nofollow">standard</a> for this class.</p> <p dir="auto">It should be possible to write the following far more natural statement:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" var params = new URLSearchParams({ search: term, action: 'opensearch', format: 'json' });"><pre class="notranslate"><code class="notranslate"> var params = new URLSearchParams({ search: term, action: 'opensearch', format: 'json' }); </code></pre></div> <p dir="auto"><em>Every</em> method that accepts a <code class="notranslate">URLSearchParams</code> object should also accept this representation.</p> <p dir="auto">If a parameter value is multi-variate, the syntax should allow for array values instead of just strings.</p> <p dir="auto">Every other reasonable HTTP api accepts this syntax. See, for example, the "data" property in <a href="http://api.jquery.com/jQuery.ajax/" rel="nofollow">jQuery ajax</a>. The Angular 1 <code class="notranslate">$http</code> does it too as I recall.</p>
0
<p dir="auto">It would be nice if you could write the address of the site and open it in the default browser.</p> <p dir="auto">(Было бы неплохо, если можно было писать адрес сайта и открывать его в браузере по умолчанию.)</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">I want to be able to start a web search from the launcher.<br> Ideally, I'd type <code class="notranslate">bing power toys</code> and it would navigate to <code class="notranslate">https://www.bing.com/search?q=power+toys</code> in my default browser.<br> <code class="notranslate">google power toys</code> would go to the equivalent.</p> <p dir="auto">The ability to specify the keyword/search engine to use and the domain it goes to would also be necessary. Not only would this enable supporting other search engines, but it would also allow for people to adjust for different TLD versions of search engines.</p> <p dir="auto"><em>This would be similar to functionality that used to be available in Enso launcher.</em></p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">This would presumably require some settings for determining which words are identified as initiating the search and the URL to submit the query to.<br> This could also be the base for similar functionality where a keyword could launch an app and pass other values as command-line arguments. Without additional arguments, this could also serve as a way to create aliases for apps so they could be launched with a small number of keystrokes.</p> <p dir="auto"><strong>crutkas:</strong> possible solution to this issue in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="851600669" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/10619" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/10619/hovercard" href="https://github.com/microsoft/PowerToys/issues/10619">#10619</a>. It defers to default browser + user's search engine. Lets PT Run be generic</p>
1
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">ansible-2.2.0.0</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook 2.2.0.0 config file = /home/ansible/ansible/ansible.cfg configured module search path = ['/usr/local/share/ansible/modules']"><pre class="notranslate"><code class="notranslate">ansible-playbook 2.2.0.0 config file = /home/ansible/ansible/ansible.cfg configured module search path = ['/usr/local/share/ansible/modules'] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults] inventory = /home/ansible/ansible/inventory/hosts library = /usr/local/share/ansible/modules forks = 20 roles_path = /home/ansible/ansible/roles remote_user = ansible log_path = /home/ansible/ansible/ansible.log hash_behaviour = merge private_role_vars = no private_key_file = /home/ansible/.ssh/id_rsa vault_password_file = /home/ansible/ansible/secrets/vault-password-file ansible_managed = Ansible managed: {file} on {host} action_plugins = /usr/local/share/ansible/plugins/action callback_plugins = /usr/local/share/ansible/plugins/callback connection_plugins = /usr/local/share/ansible/plugins/connection lookup_plugins = /usr/local/share/ansible/plugins/lookup vars_plugins = /usr/local/share/ansible/plugins/vars filter_plugins = /usr/local/share/ansible/plugins/filter test_plugins = /usr/local/share/ansible/plugins/test strategy_plugins = /usr/local/share/ansible/plugins/strategy [privilege_escalation] [paramiko_connection] [ssh_connection] [accelerate] [selinux] [colors] diff_remove = bright blue"><pre class="notranslate"><code class="notranslate">[defaults] inventory = /home/ansible/ansible/inventory/hosts library = /usr/local/share/ansible/modules forks = 20 roles_path = /home/ansible/ansible/roles remote_user = ansible log_path = /home/ansible/ansible/ansible.log hash_behaviour = merge private_role_vars = no private_key_file = /home/ansible/.ssh/id_rsa vault_password_file = /home/ansible/ansible/secrets/vault-password-file ansible_managed = Ansible managed: {file} on {host} action_plugins = /usr/local/share/ansible/plugins/action callback_plugins = /usr/local/share/ansible/plugins/callback connection_plugins = /usr/local/share/ansible/plugins/connection lookup_plugins = /usr/local/share/ansible/plugins/lookup vars_plugins = /usr/local/share/ansible/plugins/vars filter_plugins = /usr/local/share/ansible/plugins/filter test_plugins = /usr/local/share/ansible/plugins/test strategy_plugins = /usr/local/share/ansible/plugins/strategy [privilege_escalation] [paramiko_connection] [ssh_connection] [accelerate] [selinux] [colors] diff_remove = bright blue </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Controller: ansible-2.2.0.0<br> Controlled node: FreeBSD</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">I have a role, ossec_hids_agent, which has a dependency on a subordinate role, ossec_hids_common. The subordinate role has a dynamic task include and loads tasks from ossec_hids_agent space. I believe this is incorrect, a child role should not run tasks defined in it's parent.</p> <p dir="auto">This behaviour changed in ansible-2.2.0.0<br> ansible-2.1.3.0 has what I consider the correct behaviour</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto"><strong>roles/ossec_hids_agent/meta/main.yml</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dependencies: - role: ossec_hids_common"><pre class="notranslate"><code class="notranslate">dependencies: - role: ossec_hids_common </code></pre></div> <p dir="auto"><strong>roles/ossec_hids_common_tasks/config.yml</strong> (included from main.yml):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Include OS-specific config tasks. include: &quot;{{ item }}&quot; with_first_found: ... - &quot;./includes/{{ ansible_distribution }}-config.yml&quot; ..."><pre class="notranslate"><code class="notranslate">- name: Include OS-specific config tasks. include: "{{ item }}" with_first_found: ... - "./includes/{{ ansible_distribution }}-config.yml" ... </code></pre></div> <p dir="auto"><strong>ls roles/ossec_hids_agent/tasks/includes/</strong>:<br> FreeBSD-config.yml</p> <p dir="auto"><strong>ls roles/ossec_hids_common/tasks/includes/</strong>:<br> </p> <p dir="auto"><strong>playbooks/test/ossec_hids.yml</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: ossec-agent roles: - role: ossec_hids_agent tags: [ &quot;ossec&quot;, &quot;ossec-agent&quot; ]"><pre class="notranslate"><code class="notranslate">- hosts: ossec-agent roles: - role: ossec_hids_agent tags: [ "ossec", "ossec-agent" ] </code></pre></div> <p dir="auto"><strong>playbook command</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook playbooks/test/ossec_hids.yml -b -D -t ossec-agent"><pre class="notranslate"><code class="notranslate">ansible-playbook playbooks/test/ossec_hids.yml -b -D -t ossec-agent </code></pre></div> <p dir="auto">The intent is that on e.g. a FreeBSD node, if a file includes/FreeBSD-config.yml exists, it will be included and executed. I expect that ossec_hids_common will only include files defined in it's own role structure and not search through the parent's includes as well</p> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">The include in ossec_hids_common should be a noop</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto"><strong>ansible-2.2.0.0</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [ossec_hids_common : Include OS-specific config tasks.] ******************* included: /home/alan/gitwork/ansible/roles/role_ossec_hids_agent/tasks/includes/FreeBSD-config.yml for freebsd-9-3, freebsd-10-2, freebsd-10-3"><pre class="notranslate"><code class="notranslate">TASK [ossec_hids_common : Include OS-specific config tasks.] ******************* included: /home/alan/gitwork/ansible/roles/role_ossec_hids_agent/tasks/includes/FreeBSD-config.yml for freebsd-9-3, freebsd-10-2, freebsd-10-3 </code></pre></div> <p dir="auto">Clearly, the child role is including files defined in it's parent.</p> <p dir="auto"><strong>ansible-2.1.3.0</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [ossec_hids_common : Include OS-specific config tasks.] ******************* TASK [ossec_hids_common : Enable ossec_hids_common services] *******************"><pre class="notranslate"><code class="notranslate">TASK [ossec_hids_common : Include OS-specific config tasks.] ******************* TASK [ossec_hids_common : Enable ossec_hids_common services] ******************* </code></pre></div> <p dir="auto">With this version the operation is a noop</p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">roles</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0 config file = configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0 config file = configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">N/A</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">We include <strong>role3</strong> from both <strong>role1</strong> and <strong>role2</strong> in <code class="notranslate">meta/main.yml</code> using <code class="notranslate">dependencies:</code> keyword. These roles both pass the same parameters (that is: none directly, only via extra arguments) to <strong>role3</strong>, but it's (wrongly) running twice, merely because the depending role has a condition on itself.</p> <p dir="auto">We have the condition because we want to run <strong>role2</strong> only sometimes, so we put a <code class="notranslate">when:</code> on the <code class="notranslate">role:</code> in its dependency declaration. This seems to work fine as far as only including <strong>role2</strong> when it should be. The condition is properly checked, and properly includes the role only if true.</p> <p dir="auto">However, including any condition at all results in the dependency running twice, even if the condition is always true (i.e. <code class="notranslate">when: true</code>). This is <em>not</em> a different parameter or value, so the role calls are 100% identical, and <code class="notranslate">allow_duplicates</code> is <em>false</em>, yet it runs twice.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $ tail test.yml roles/**/*.yml ==&gt; test.yml &lt;== - hosts: all gather_facts: false roles: - role1 - role2 ==&gt; roles/role1/meta/main.yml &lt;== dependencies: - role: role3 ==&gt; roles/role1/tasks/main.yml &lt;== - set_fact: dummy ==&gt; roles/role2/meta/main.yml &lt;== dependencies: - role: role3 when: true ==&gt; roles/role2/tasks/main.yml &lt;== - set_fact: dummy ==&gt; roles/role3/tasks/main.yml &lt;== - set_fact: dummy"><pre class="notranslate"><code class="notranslate"> $ tail test.yml roles/**/*.yml ==&gt; test.yml &lt;== - hosts: all gather_facts: false roles: - role1 - role2 ==&gt; roles/role1/meta/main.yml &lt;== dependencies: - role: role3 ==&gt; roles/role1/tasks/main.yml &lt;== - set_fact: dummy ==&gt; roles/role2/meta/main.yml &lt;== dependencies: - role: role3 when: true ==&gt; roles/role2/tasks/main.yml &lt;== - set_fact: dummy ==&gt; roles/role3/tasks/main.yml &lt;== - set_fact: dummy </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">role3 should be run once only. it's run once until adding <code class="notranslate">when: true</code> to the dependency. then it runs twice, and that's a bug. the duplicate run check should be discerning whether a role with that name and paramaters has run already, without any knowledge of when it's supposed to run. only if it has.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible-playbook -c local -i localhost, test.yml PLAY [all] ********************************************************************* TASK [role3 : set_fact] ******************************************************** ok: [localhost] TASK [role1 : set_fact] ******************************************************** ok: [localhost] TASK [role3 : set_fact] ******************************************************** ok: [localhost] TASK [role2 : set_fact] ******************************************************** ok: [localhost] PLAY RECAP ********************************************************************* localhost : ok=4 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">$ ansible-playbook -c local -i localhost, test.yml PLAY [all] ********************************************************************* TASK [role3 : set_fact] ******************************************************** ok: [localhost] TASK [role1 : set_fact] ******************************************************** ok: [localhost] TASK [role3 : set_fact] ******************************************************** ok: [localhost] TASK [role2 : set_fact] ******************************************************** ok: [localhost] PLAY RECAP ********************************************************************* localhost : ok=4 changed=0 unreachable=0 failed=0 </code></pre></div> <p dir="auto">now watch when removing the <code class="notranslate">when: true</code> condition on the role dependency:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $ sed -i /when:.true/d roles/role2/meta/main.yml $ ansible-playbook -c local -i localhost, test.yml PLAY [all] ********************************************************************* TASK [role3 : set_fact] ******************************************************** ok: [localhost] TASK [role1 : set_fact] ******************************************************** ok: [localhost] TASK [role2 : set_fact] ******************************************************** ok: [localhost] PLAY RECAP ********************************************************************* localhost : ok=3 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate"> $ sed -i /when:.true/d roles/role2/meta/main.yml $ ansible-playbook -c local -i localhost, test.yml PLAY [all] ********************************************************************* TASK [role3 : set_fact] ******************************************************** ok: [localhost] TASK [role1 : set_fact] ******************************************************** ok: [localhost] TASK [role2 : set_fact] ******************************************************** ok: [localhost] PLAY RECAP ********************************************************************* localhost : ok=3 changed=0 unreachable=0 failed=0 </code></pre></div> <p dir="auto">The condition shouldn't matter, it's whether the role actually has been run or not already, and if it's the same role, and the same parameters. "when" is not a parameter, it's a control. Note that I tried altering <code class="notranslate">become_user:</code> instead of <code class="notranslate">when:</code> to see if that would also cause a second run, and that one works correctly: it only runs once (in that case, you might argue that it actually has a different parameter, but I don't see any way to argue that for <code class="notranslate">when:</code>).</p>
0
<p dir="auto"><a href="https://sourceforge.net/tracker/?func=detail&amp;aid=3057301&amp;group_id=80706&amp;atid=560723" rel="nofollow">Original report at SourceForge, opened Wed Sep 1 04:54:13 2010</a></p> <p dir="auto">instead of only:<br> plt.figure(1)<br> the following:<br> plt.figure('today')<br> would open a figure called 'today' instead of 'figure 1'</p> <p dir="auto">Example usage: when opening a lot of tabbed figures (in Spyder) it would help if the tabs have meaningful names.</p> <h3 dir="auto">SourceForge Comments</h3> <h4 dir="auto">On Sun Sep 5 08:09:52 2010, None wrote:</h4> <p dir="auto">+1<br> good idea<br> and not all that difficult to do.</p> <p dir="auto">you just need to ensure that the identifier remains unique.</p>
<p dir="auto">I think the use of logging in matplotlib is not right.</p> <p dir="auto">Unfortunately the official logging documentation is not quite comprehensive. I'll try to explain in the following how I understand that logging should be used.</p> <p dir="auto"><strong>TLDR: I propose to just remove <code class="notranslate">matplotlib._set_logger_verbose_level()</code> and all logging issues are gone. - Maybe add a bit of documentation how to use logging, but that's really not matplotlib specific.</strong></p> <h2 dir="auto">How logging should be used in simple cases</h2> <p dir="auto">In the minimal case, libraries do only define a logger and call the respective <code class="notranslate">info()</code>, <code class="notranslate">error()</code> etc. functions on that logger.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_log = logging.getLogger(__name__)"><pre class="notranslate"><code class="notranslate">_log = logging.getLogger(__name__) </code></pre></div> <p dir="auto">In this case, the library does not care about handling at all. IMO this is generally good practice as the library will issue messages, but it will not care which will be delivered or where they will go to (stdout, file, ...). That's the task of the code using the library:</p> <ul dir="auto"> <li> <p dir="auto">if the programmer does not care about logging at all, <a href="https://docs.python.org/3/library/logging.html#logging.lastResort" rel="nofollow">logging.lastResort</a> is used, which is a StreamHandler to stderr. This makes sure the messages go somewhere even without configuration (note: this was introduced in 3.2).</p> </li> <li> <p dir="auto">if the programmer wants to control the logging, the simple way is <a href="https://docs.python.org/3/library/logging.html#logging.basicConfig" rel="nofollow">logging.basicConfig()</a>. This is sufficent to redirect output to files, set the global log level etc.</p> </li> </ul> <h2 dir="auto">How matplotlib uses logging</h2> <h3 dir="auto">Former times</h3> <p dir="auto">There has been some argument parsing magic, so that passing <code class="notranslate">--verbose</code> to a script using matplotlib could be used to control matplotlib's logging. This has been removed because it's too magical and can badly interfere with the argument handling of a script.</p> <h3 dir="auto">Now</h3> <p dir="auto">Currently, there is only <code class="notranslate">matplotlib._set_logger_verbose_level()</code>.</p> <p dir="auto">If unused (default) the processes work as described above for loggging in simple cases.</p> <p dir="auto">The function binds a new StreamHandler (named <em>console</em> in the code) to <code class="notranslate">_log</code> and controls the level of the handler. This works ok for the case when the matplotlib-using programmer does not configure any logging himself: The messages are sent to <em>console</em>. <code class="notranslate">logging.lastResort</code> is not used. However, if logging <code class="notranslate">basicConfig()</code> is used, we have two handlers: <em>console</em> plus the one from the config, as can be seen when running</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import matplotlib import logging logging.basicConfig() matplotlib._set_logger_verbose_level('helpful') matplotlib._log.info('test')"><pre class="notranslate"><code class="notranslate">import matplotlib import logging logging.basicConfig() matplotlib._set_logger_verbose_level('helpful') matplotlib._log.info('test') </code></pre></div> <p dir="auto">This outputs the message twice</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test INFO:matplotlib:test"><pre class="notranslate"><code class="notranslate">test INFO:matplotlib:test </code></pre></div> <p dir="auto">luckily <code class="notranslate">_set_logger_verbose_level()</code> is private and should not be used currently.</p> <h3 dir="auto">Future</h3> <p dir="auto">The proposal in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="396656501" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/13129" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/13129/hovercard" href="https://github.com/matplotlib/matplotlib/pull/13129">#13129</a> is making <code class="notranslate">_set_logger_verbose_level()</code> indirectly public through some convenience functions. <em>IMHO this is the wrong way to go as described above</em>.</p> <p dir="auto">What we should do is just remove <code class="notranslate">_set_logger_verbose_level()</code>. It's standard use casescan be handled using <code class="notranslate">logging.basicConfig()</code>. e.g.</p> <ul dir="auto"> <li>redirecting to file: `logging.basicConfig(filename='errors.log')</li> <li>setting the level: `logging.basicConfig(level='debug')</li> </ul> <p dir="auto"><code class="notranslate">logging.basicConfig()</code> is actually more general, e.g.</p> <ul dir="auto"> <li>specifying the output format</li> <li>choosing between append and overwrite for a file.</li> <li>using another handler</li> <li>etc.</li> </ul> <p dir="auto">There's one special case that we do not cover: Logging matplotlibs output somewhere else that other logging output. That was possible / the case for <code class="notranslate">_set_logger_verbose_level()</code>. Not sure if it was by design or just accidentially. If a user really needs that, he has to attach a handler to the matplotlib logger (but also maybe set <code class="notranslate">_log.propagate = False</code>. We could add a convenience function for this, but IMHO this is rather an advance usage and it should be sufficient to make the matplotlib logger accessible.</p>
0
<p dir="auto">My electron app cannot go in fullscreen mode.</p> <p dir="auto">I've tried multiple ways to enter fullscreen:</p> <ul dir="auto"> <li>Clicking fullscreen button in native frame</li> <li>Using <code class="notranslate">setFullScreen</code> method on window</li> <li>Using <code class="notranslate">fullscreen</code> option in BrowserWindow options</li> <li>Choosing View -&gt; Enter Full Screen from OS X menu bar</li> </ul> <p dir="auto">Every time the following happens:</p> <ul dir="auto"> <li>There's a brief flicker as the content inside the window appears to reflow according to the fullscreen dimensions</li> <li>The operating system beeps</li> <li>If started with fullscreen option on BrowserWindow, the flicker is white and fullscreen, and then window goes to default size</li> <li>If started in windowed mode and try to enter fullscreen by any other means, flicker happens but window dimensions never change</li> </ul> <p dir="auto">I've tried everything I can think of, from removing drag regions, using native frame, removing width/height from initial BrowserWindow options, nothing seems to work.</p> <p dir="auto">I think it is OS related since I'm getting a beep when trying to go fullscreen.</p> <ul dir="auto"> <li>Electron version: v1.4.1</li> <li>Operating system: OS X 10.11.4 El Capitan</li> </ul>
<p dir="auto">When trying to activate fullscreen, an error message appears in the terminal and the app briefly "flashes", but doesn't change size at all. This happens any way I've tried to activate fullscreen (from renderer thread using remote, from main thread, from clicking on the fullscreen window button, from the OS X view menu, using a frameless window, using a non-frameless window). Minimizing and maximizing/unmaximizing the window works.</p> <p dir="auto">OS X 10.10.5, Electron 0.31.0</p> <p dir="auto">The terminal output looks like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2015-08-26 10:27:31.332 Electron[57665:4665300] Message error: Connection invalid 2015-08-26 10:27:31.401 Electron[57665:4665300] ___createFullScreenMessageConnection_block_invoke: Fullscreen message error: Connection invalid"><pre class="notranslate"><code class="notranslate">2015-08-26 10:27:31.332 Electron[57665:4665300] Message error: Connection invalid 2015-08-26 10:27:31.401 Electron[57665:4665300] ___createFullScreenMessageConnection_block_invoke: Fullscreen message error: Connection invalid </code></pre></div>
1
<p dir="auto">Doing a crosstab on two Series with the same name throws an error. This is due to a dictionary (indexed by the series name) in the crosstab function being used to store the data. Not sure if this is a feature or a bug, but a default similar to the behavior when Series without name are compared would be desirable to me.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [56]: s1 = pd.Series([1,1,2,2,3,3], name='s') s2 = pd.Series([1,1,1,2,2,2], name='s') pd.crosstab(s1, s2) --------------------------------------------------------------------------- KeyError Traceback (most recent call last) &lt;ipython-input-56-9d16b2abac9f&gt; in &lt;module&gt;() 2 s2 = pd.Series([1,1,1,2,2,2], name='s') 3 ----&gt; 4 pd.crosstab(s1, s2) /cellar/users/agross/anaconda2/lib/python2.7/site-packages/pandas-0.13.0_247_g82bcbb8-py2.7-linux-x86_64.egg/pandas/tools/pivot.pyc in crosstab(rows, cols, values, rownames, colnames, aggfunc, margins, dropna) 368 df['__dummy__'] = 0 369 table = df.pivot_table('__dummy__', rows=rownames, cols=colnames, --&gt; 370 aggfunc=len, margins=margins, dropna=dropna) 371 return table.fillna(0).astype(np.int64) 372 else: /cellar/users/agross/anaconda2/lib/python2.7/site-packages/pandas-0.13.0_247_g82bcbb8-py2.7-linux-x86_64.egg/pandas/tools/pivot.pyc in pivot_table(data, values, rows, cols, aggfunc, fill_value, margins, dropna) 108 to_unstack = [agged.index.names[i] 109 for i in range(len(rows), len(keys))] --&gt; 110 table = agged.unstack(to_unstack) 111 112 if not dropna: /cellar/users/agross/anaconda2/lib/python2.7/site-packages/pandas-0.13.0_247_g82bcbb8-py2.7-linux-x86_64.egg/pandas/core/frame.pyc in unstack(self, level) 3339 &quot;&quot;&quot; 3340 from pandas.core.reshape import unstack -&gt; 3341 return unstack(self, level) 3342 3343 #---------------------------------------------------------------------- /cellar/users/agross/anaconda2/lib/python2.7/site-packages/pandas-0.13.0_247_g82bcbb8-py2.7-linux-x86_64.egg/pandas/core/reshape.pyc in unstack(obj, level) 416 def unstack(obj, level): 417 if isinstance(level, (tuple, list)): --&gt; 418 return _unstack_multiple(obj, level) 419 420 if isinstance(obj, DataFrame): /cellar/users/agross/anaconda2/lib/python2.7/site-packages/pandas-0.13.0_247_g82bcbb8-py2.7-linux-x86_64.egg/pandas/core/reshape.pyc in _unstack_multiple(data, clocs) 275 index = data.index 276 --&gt; 277 clocs = [index._get_level_number(i) for i in clocs] 278 279 rlocs = [i for i in range(index.nlevels) if i not in clocs] /cellar/users/agross/anaconda2/lib/python2.7/site-packages/pandas-0.13.0_247_g82bcbb8-py2.7-linux-x86_64.egg/pandas/core/index.pyc in _get_level_number(self, level) 2197 except ValueError: 2198 if not isinstance(level, int): -&gt; 2199 raise KeyError('Level %s not found' % str(level)) 2200 elif level &lt; 0: 2201 level += self.nlevels KeyError: 'Level s not found'"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">56</span>]: <span class="pl-s1">s1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">3</span>], <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'s'</span>) <span class="pl-s1">s2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>], <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'s'</span>) <span class="pl-s1">pd</span>.<span class="pl-en">crosstab</span>(<span class="pl-s1">s1</span>, <span class="pl-s1">s2</span>) <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">KeyError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>) <span class="pl-c1">&lt;</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">56</span><span class="pl-c1">-</span><span class="pl-c1">9</span><span class="pl-s1">d16b2abac9f</span><span class="pl-c1">&gt;</span> <span class="pl-s1">in</span> <span class="pl-c1">&lt;</span><span class="pl-s1">module</span><span class="pl-c1">&gt;</span>() <span class="pl-c1">2</span> <span class="pl-s1">s2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>,<span class="pl-c1">2</span>], <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'s'</span>) <span class="pl-c1">3</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">4</span> <span class="pl-s1">pd</span>.<span class="pl-en">crosstab</span>(<span class="pl-s1">s1</span>, <span class="pl-s1">s2</span>) <span class="pl-c1">/</span><span class="pl-s1">cellar</span><span class="pl-c1">/</span><span class="pl-s1">users</span><span class="pl-c1">/</span><span class="pl-s1">agross</span><span class="pl-c1">/</span><span class="pl-s1">anaconda2</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">-</span><span class="pl-c1">0.13</span>.<span class="pl-c1">0_247_</span><span class="pl-s1">g82bcbb8</span><span class="pl-c1">-</span><span class="pl-s1">py2</span>.<span class="pl-c1">7</span><span class="pl-c1">-</span><span class="pl-s1">linux</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span>.<span class="pl-s1">egg</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tools</span><span class="pl-c1">/</span><span class="pl-s1">pivot</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">crosstab</span>(<span class="pl-s1">rows</span>, <span class="pl-s1">cols</span>, <span class="pl-s1">values</span>, <span class="pl-s1">rownames</span>, <span class="pl-s1">colnames</span>, <span class="pl-s1">aggfunc</span>, <span class="pl-s1">margins</span>, <span class="pl-s1">dropna</span>) <span class="pl-c1">368</span> <span class="pl-s1">df</span>[<span class="pl-s">'__dummy__'</span>] <span class="pl-c1">=</span> <span class="pl-c1">0</span> <span class="pl-c1">369</span> <span class="pl-s1">table</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-en">pivot_table</span>(<span class="pl-s">'__dummy__'</span>, <span class="pl-s1">rows</span><span class="pl-c1">=</span><span class="pl-s1">rownames</span>, <span class="pl-s1">cols</span><span class="pl-c1">=</span><span class="pl-s1">colnames</span>, <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">370</span> <span class="pl-s1">aggfunc</span><span class="pl-c1">=</span><span class="pl-s1">len</span>, <span class="pl-s1">margins</span><span class="pl-c1">=</span><span class="pl-s1">margins</span>, <span class="pl-s1">dropna</span><span class="pl-c1">=</span><span class="pl-s1">dropna</span>) <span class="pl-c1">371</span> <span class="pl-k">return</span> <span class="pl-s1">table</span>.<span class="pl-en">fillna</span>(<span class="pl-c1">0</span>).<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">int64</span>) <span class="pl-c1">372</span> <span class="pl-s1">else</span>: <span class="pl-c1">/</span><span class="pl-s1">cellar</span><span class="pl-c1">/</span><span class="pl-s1">users</span><span class="pl-c1">/</span><span class="pl-s1">agross</span><span class="pl-c1">/</span><span class="pl-s1">anaconda2</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">-</span><span class="pl-c1">0.13</span>.<span class="pl-c1">0_247_</span><span class="pl-s1">g82bcbb8</span><span class="pl-c1">-</span><span class="pl-s1">py2</span>.<span class="pl-c1">7</span><span class="pl-c1">-</span><span class="pl-s1">linux</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span>.<span class="pl-s1">egg</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">tools</span><span class="pl-c1">/</span><span class="pl-s1">pivot</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">pivot_table</span>(<span class="pl-s1">data</span>, <span class="pl-s1">values</span>, <span class="pl-s1">rows</span>, <span class="pl-s1">cols</span>, <span class="pl-s1">aggfunc</span>, <span class="pl-s1">fill_value</span>, <span class="pl-s1">margins</span>, <span class="pl-s1">dropna</span>) <span class="pl-c1">108</span> <span class="pl-s1">to_unstack</span> <span class="pl-c1">=</span> [<span class="pl-s1">agged</span>.<span class="pl-s1">index</span>.<span class="pl-s1">names</span>[<span class="pl-s1">i</span>] <span class="pl-c1">109</span> <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-en">len</span>(<span class="pl-s1">rows</span>), <span class="pl-en">len</span>(<span class="pl-s1">keys</span>))] <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">110</span> <span class="pl-s1">table</span> <span class="pl-c1">=</span> <span class="pl-s1">agged</span>.<span class="pl-en">unstack</span>(<span class="pl-s1">to_unstack</span>) <span class="pl-c1">111</span> <span class="pl-c1">112</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">dropna</span>: <span class="pl-c1">/</span><span class="pl-s1">cellar</span><span class="pl-c1">/</span><span class="pl-s1">users</span><span class="pl-c1">/</span><span class="pl-s1">agross</span><span class="pl-c1">/</span><span class="pl-s1">anaconda2</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">-</span><span class="pl-c1">0.13</span>.<span class="pl-c1">0_247_</span><span class="pl-s1">g82bcbb8</span><span class="pl-c1">-</span><span class="pl-s1">py2</span>.<span class="pl-c1">7</span><span class="pl-c1">-</span><span class="pl-s1">linux</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span>.<span class="pl-s1">egg</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">frame</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">unstack</span>(<span class="pl-s1">self</span>, <span class="pl-s1">level</span>) <span class="pl-c1">3339</span> """ <span class="pl-c1">3340</span> <span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">core</span>.<span class="pl-s1">reshape</span> <span class="pl-s1">import</span> <span class="pl-s1">unstack</span> <span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">3341</span> <span class="pl-s1">return</span> <span class="pl-s1">unstack</span>(<span class="pl-s1">self</span>, <span class="pl-s1">level</span>) <span class="pl-c1">3342</span> <span class="pl-c1">3343</span> <span class="pl-c">#----------------------------------------------------------------------</span> <span class="pl-c1">/</span><span class="pl-s1">cellar</span><span class="pl-c1">/</span><span class="pl-s1">users</span><span class="pl-c1">/</span><span class="pl-s1">agross</span><span class="pl-c1">/</span><span class="pl-s1">anaconda2</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">-</span><span class="pl-c1">0.13</span>.<span class="pl-c1">0_247_</span><span class="pl-s1">g82bcbb8</span><span class="pl-c1">-</span><span class="pl-s1">py2</span>.<span class="pl-c1">7</span><span class="pl-c1">-</span><span class="pl-s1">linux</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span>.<span class="pl-s1">egg</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">reshape</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">unstack</span>(<span class="pl-s1">obj</span>, <span class="pl-s1">level</span>) <span class="pl-c1">416</span> <span class="pl-s1">def</span> <span class="pl-en">unstack</span>(<span class="pl-s1">obj</span>, <span class="pl-s1">level</span>): <span class="pl-c1">417</span> <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">level</span>, (<span class="pl-s1">tuple</span>, <span class="pl-s1">list</span>)): <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">418</span> <span class="pl-s1">return</span> <span class="pl-en">_unstack_multiple</span>(<span class="pl-s1">obj</span>, <span class="pl-s1">level</span>) <span class="pl-c1">419</span> <span class="pl-c1">420</span> <span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">obj</span>, <span class="pl-v">DataFrame</span>): <span class="pl-c1">/</span><span class="pl-s1">cellar</span><span class="pl-c1">/</span><span class="pl-s1">users</span><span class="pl-c1">/</span><span class="pl-s1">agross</span><span class="pl-c1">/</span><span class="pl-s1">anaconda2</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">-</span><span class="pl-c1">0.13</span>.<span class="pl-c1">0_247_</span><span class="pl-s1">g82bcbb8</span><span class="pl-c1">-</span><span class="pl-s1">py2</span>.<span class="pl-c1">7</span><span class="pl-c1">-</span><span class="pl-s1">linux</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span>.<span class="pl-s1">egg</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">reshape</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">_unstack_multiple</span>(<span class="pl-s1">data</span>, <span class="pl-s1">clocs</span>) <span class="pl-c1">275</span> <span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>.<span class="pl-s1">index</span> <span class="pl-c1">276</span> <span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">&gt;</span> <span class="pl-c1">277</span> <span class="pl-s1">clocs</span> <span class="pl-c1">=</span> [<span class="pl-s1">index</span>.<span class="pl-en">_get_level_number</span>(<span class="pl-s1">i</span>) <span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-s1">clocs</span>] <span class="pl-c1">278</span> <span class="pl-c1">279</span> <span class="pl-s1">rlocs</span> <span class="pl-c1">=</span> [<span class="pl-s1">i</span> <span class="pl-s1">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">index</span>.<span class="pl-s1">nlevels</span>) <span class="pl-k">if</span> <span class="pl-s1">i</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">clocs</span>] <span class="pl-c1">/</span><span class="pl-s1">cellar</span><span class="pl-c1">/</span><span class="pl-s1">users</span><span class="pl-c1">/</span><span class="pl-s1">agross</span><span class="pl-c1">/</span><span class="pl-s1">anaconda2</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">-</span><span class="pl-c1">0.13</span>.<span class="pl-c1">0_247_</span><span class="pl-s1">g82bcbb8</span><span class="pl-c1">-</span><span class="pl-s1">py2</span>.<span class="pl-c1">7</span><span class="pl-c1">-</span><span class="pl-s1">linux</span><span class="pl-c1">-</span><span class="pl-s1">x86_64</span>.<span class="pl-s1">egg</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">index</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">_get_level_number</span>(<span class="pl-s1">self</span>, <span class="pl-s1">level</span>) <span class="pl-c1">2197</span> <span class="pl-s1">except</span> <span class="pl-v">ValueError</span>: <span class="pl-c1">2198</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">level</span>, <span class="pl-s1">int</span>): <span class="pl-c1">-&gt;</span> <span class="pl-c1">2199</span> <span class="pl-k">raise</span> <span class="pl-v">KeyError</span>(<span class="pl-s">'Level %s not found'</span> <span class="pl-c1">%</span> <span class="pl-en">str</span>(<span class="pl-s1">level</span>)) <span class="pl-c1">2200</span> <span class="pl-s1">elif</span> <span class="pl-s1">level</span> <span class="pl-c1">&lt;</span> <span class="pl-c1">0</span>: <span class="pl-c1">2201</span> <span class="pl-s1">level</span> <span class="pl-c1">+=</span> <span class="pl-s1">self</span>.<span class="pl-s1">nlevels</span> <span class="pl-v">KeyError</span>: <span class="pl-s">'Level s not found'</span></pre></div>
<p dir="auto">Pandas 0.10.1.<br> It's throwing a FutureWarning "set_index with inplace=True will return None from pandas 0.11 onward" when I call set_index, <strong>_even though I already changed my code to be compliant with that change so the warning is not relevant</strong>_. It prints that warning anytime you call the function with inplace=True even if you are not using the return value. As it stands, the warning is largely useless -- if I call set_index in 20 places and I fixed 19 of them to not use the return code but missed the last one; then the warning is thrown on the first call (which I fixed) but not on the 20th call (which I didn't fix), so it doesn't help anyone find places to fix in their code.</p> <p dir="auto">This warning is "harmless" in the sense it doesn't crash my code; but it is harmful in the sense that it clutters my error/warning log and therefore causing false positives in our infrastructure to notify us on job warnings/errors.</p> <p dir="auto">Ideally, pandas should only print the warning if its relevant to you (IE, you haven't yet fixed your code) but I realize that's hard. If that's not possible, then can we have some sort of global option to disable that warning?</p>
0
<p dir="auto">if i generate a page fixture in before all hook, and use the same page for all test blocks, i cant generate a video for failing tests, is there any workaround for this.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="**before all** const page = await browser.newPage() const loginPage = new LoginPage(page) **Tests** const pageHeader = await loginPage.navigateToPage() expect(pageHeader).toBe('React') "><pre class="notranslate"><code class="notranslate">**before all** const page = await browser.newPage() const loginPage = new LoginPage(page) **Tests** const pageHeader = await loginPage.navigateToPage() expect(pageHeader).toBe('React') </code></pre></div>
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: 1.14.1</li> <li>Operating System: Linux</li> <li>Node.js version: v14.16.0</li> <li>Browser: chromium</li> </ul> <p dir="auto"><strong>Code Snippet</strong></p> <ol dir="auto"> <li>Clone this repo: <a href="https://github.com/xrash/pwt-config-issue-example">https://github.com/xrash/pwt-config-issue-example</a></li> <li>Run <code class="notranslate">yarn</code></li> <li>Run <code class="notranslate">npx playwright test</code></li> <li>The directory <code class="notranslate">test-results</code> will be created with partial output</li> <li>Open <code class="notranslate">playwright.config.ts</code> and remove the <code class="notranslate">use</code> option altogether</li> <li>Run <code class="notranslate">npx playwright test</code> again</li> <li>The directory <code class="notranslate">test-results</code> won't even be created this time</li> </ol> <p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">The fixture options under <code class="notranslate">use</code> at the config file are working <em>only partially</em> when creating a new context manually (<code class="notranslate">browser.newContext()</code>).</p> <p dir="auto">For instance, <code class="notranslate">trace</code> and <code class="notranslate">screenshot</code> work, but <code class="notranslate">video</code> doesn't record any video at all. Also, <code class="notranslate">trace</code> doesn't fully work, as trace is recorded per test even when the context is created in <code class="notranslate">beforeAll</code> or in a worker-scoped fixture (desired behavior is to have the trace for the entire context session in one file). Also, the trace file seems buggy or incomplete.</p> <p dir="auto">If the fixture options under <code class="notranslate">use</code> in the config file aren't supposed to work when using <code class="notranslate">browser.newContext()</code>, then I'd expect it not to work at all, instead of having them to work only partially; and if it's supposed to work, then I'd expect it to work fully.</p>
1
<p dir="auto">Babel is already an insanely powerful tool as is, but being able to input an AST would allow people using other AST utilities outside of Babel (e.g. UglifyJS2) or even languages that generate ESTree ASTs (like the experimental <a href="https://github.com/anko/eslisp">eslisp</a>) to plug in the output into Babel.</p> <p dir="auto">As for prior art, UglifyJS2 accepts its own AST as well as the ESTree AST.</p> <p dir="auto">I doubt it would be hard to do this, considering this would simply skip a step for the general algorithm (<del>parse</del>, transform, generate).</p>
<p dir="auto">I want to build ES6 by learning <a href="https://github.com/estree/estree">https://github.com/estree/estree</a> and <a href="https://github.com/jquery/esprima">https://github.com/jquery/esprima</a> and then generate ES5 code. Can I do this with babel?</p>
1
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux RedHat 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): source</li> <li>TensorFlow version: master branch</li> <li>Python version: N/A</li> <li>Installed using virtualenv? pip? conda?: N/A</li> <li>Bazel version (if compiling from source): 0.25.2</li> <li>GCC/Compiler version (if compiling from source): cc version 8.2.1 20180905 (Red Hat 8.2.1-3)</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">Compilation of LLVM is failing because '-std=c++0x' is being passed, but current LLVM uses C++14 features.</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">bazel build --verbose_failures --config opt --config mkl //tensorflow/tools/pip_package:build_pip_package</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> <p dir="auto">Note "-std=c++0x" option. I could probably fix this myself if I could figure out where it is coming from...</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" /opt/rh/devtoolset-8/root/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF bazel-out/host/bin/tensorflow/compiler/mlir/lite/quantization/_objs/op_quant_spec_getters_gen/op_quant_spec_getters_gen.d '-frandom-seed=bazel-out/host/bin/tensorflow/compiler/mlir/lite/quantization/_objs/op_quant_spec_getters_gen/op_quant_spec_getters_gen.o' -DLLVM_ENABLE_STATS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DLLVM_BUILD_GLOBAL_ISEL -iquote . -iquote bazel-out/host/bin -iquote external/llvm -iquote bazel-out/host/bin/external/llvm -iquote external/zlib_archive -iquote bazel-out/host/bin/external/zlib_archive -iquote external/local_config_mlir -iquote bazel-out/host/bin/external/local_config_mlir -iquote external/bazel_tools -iquote bazel-out/host/bin/external/bazel_tools -isystem external/llvm/include -isystem bazel-out/host/bin/external/llvm/include -isystem external/zlib_archive -isystem bazel-out/host/bin/external/zlib_archive -isystem external/local_config_mlir/include -isystem bazel-out/host/bin/external/local_config_mlir/include -g0 '-march=native' -g0 -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare '-ftemplate-depth=900' -fno-exceptions '-DINTEL_MKL=1' -DEIGEN_USE_VML -DENABLE_MKL -fopenmp -msse3 -pthread -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__=&quot;redacted&quot;' '-D__TIMESTAMP__=&quot;redacted&quot;' '-D__TIME__=&quot;redacted&quot;' -c tensorflow/compiler/mlir/lite/quantization/tools/op_quant_spec_getters_gen.cc -o bazel-out/host/bin/tensorflow/compiler/mlir/lite/quantization/_objs/op_quant_spec_getters_gen/op_quant_spec_getters_gen.o) Execution platform: @bazel_tools//platforms:host_platform In file included from external/llvm/include/llvm/TableGen/Record.h:27, from tensorflow/compiler/mlir/lite/quantization/tools/op_quant_spec_getters_gen.cc:21: external/llvm/include/llvm/Support/TrailingObjects.h: In static member function 'static void llvm::TrailingObjects&lt;BaseTy, TrailingTys&gt;::verifyTrailingObjectsAssertions()': external/llvm/include/llvm/Support/TrailingObjects.h:252:24: error: 'is_final' is not a member of 'std' static_assert(std::is_final&lt;BaseTy&gt;(), &quot;BaseTy must be final.&quot;); ^~~~~~~~"><pre class="notranslate"><code class="notranslate"> /opt/rh/devtoolset-8/root/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF bazel-out/host/bin/tensorflow/compiler/mlir/lite/quantization/_objs/op_quant_spec_getters_gen/op_quant_spec_getters_gen.d '-frandom-seed=bazel-out/host/bin/tensorflow/compiler/mlir/lite/quantization/_objs/op_quant_spec_getters_gen/op_quant_spec_getters_gen.o' -DLLVM_ENABLE_STATS -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DLLVM_BUILD_GLOBAL_ISEL -iquote . -iquote bazel-out/host/bin -iquote external/llvm -iquote bazel-out/host/bin/external/llvm -iquote external/zlib_archive -iquote bazel-out/host/bin/external/zlib_archive -iquote external/local_config_mlir -iquote bazel-out/host/bin/external/local_config_mlir -iquote external/bazel_tools -iquote bazel-out/host/bin/external/bazel_tools -isystem external/llvm/include -isystem bazel-out/host/bin/external/llvm/include -isystem external/zlib_archive -isystem bazel-out/host/bin/external/zlib_archive -isystem external/local_config_mlir/include -isystem bazel-out/host/bin/external/local_config_mlir/include -g0 '-march=native' -g0 -DEIGEN_AVOID_STL_ARRAY -Iexternal/gemmlowp -Wno-sign-compare '-ftemplate-depth=900' -fno-exceptions '-DINTEL_MKL=1' -DEIGEN_USE_VML -DENABLE_MKL -fopenmp -msse3 -pthread -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c tensorflow/compiler/mlir/lite/quantization/tools/op_quant_spec_getters_gen.cc -o bazel-out/host/bin/tensorflow/compiler/mlir/lite/quantization/_objs/op_quant_spec_getters_gen/op_quant_spec_getters_gen.o) Execution platform: @bazel_tools//platforms:host_platform In file included from external/llvm/include/llvm/TableGen/Record.h:27, from tensorflow/compiler/mlir/lite/quantization/tools/op_quant_spec_getters_gen.cc:21: external/llvm/include/llvm/Support/TrailingObjects.h: In static member function 'static void llvm::TrailingObjects&lt;BaseTy, TrailingTys&gt;::verifyTrailingObjectsAssertions()': external/llvm/include/llvm/Support/TrailingObjects.h:252:24: error: 'is_final' is not a member of 'std' static_assert(std::is_final&lt;BaseTy&gt;(), "BaseTy must be final."); ^~~~~~~~ </code></pre></div>
<p dir="auto">Consult: excuse me, write own model file, called collapse, iOS,</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8908244/27081496-407ad54a-5073-11e7-8464-faab2ca4836e.png"><img src="https://user-images.githubusercontent.com/8908244/27081496-407ad54a-5073-11e7-8464-faab2ca4836e.png" alt="snip20170613_6" style="max-width: 100%;"></a></p>
0
<p dir="auto">Describe what you were doing when the bug occurred:<br> simple running profiler and popout this error</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.6.0-6cceaeb67</p> <p dir="auto">Call stack: at j (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:162221)<br> at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161772)<br> at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)<br> at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)<br> at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)<br> at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)<br> at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)<br> at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)<br> at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)<br> at N (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:161696)</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>
<h3 dir="auto">Describe what you were doing when the bug occurred:</h3> <ol dir="auto"> <li>I did profiling on a list, that gets updated on each pagination api call.</li> <li>Once the profiling was done, I moved around in the Profiler to view the Flamegraph</li> <li>Moving to second capture, the Profiler crashed.</li> </ol> <p dir="auto"><strong>DevTools version</strong>: 4.6.0-6cceaeb67</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Component stack: in ec in div in div in div in So in Unknown in n in Unknown in div in div in rl in Ze in fn in Ga in _s"><pre class="notranslate"><code class="notranslate">Component stack: in ec in div in div in div in So in Unknown in n in Unknown in div in div in rl in Ze in fn in Ga in _s </code></pre></div>
1
<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! /root/.npm/_logs/2020-01-29T09_03_22_031Z-debug.log<br> root@martinho-HP-Notebook:/home/martinho#</p>
<h1 dir="auto">What / Why</h1> <p dir="auto">While installing npm packages</p> <h2 dir="auto">When</h2> <p dir="auto">npm install request@latest<br> npm WARN deprecated [email protected]: request has been deprecated, see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="427331880" data-permission-text="Title is private" data-url="https://github.com/request/request/issues/3142" data-hovercard-type="issue" data-hovercard-url="/request/request/issues/3142/hovercard" href="https://github.com/request/request/issues/3142">request/request#3142</a><br> npm ERR! code E429<br> npm ERR! 429 Too Many Requests - GET <a href="https://registry.npmjs.org/aws4" rel="nofollow">https://registry.npmjs.org/aws4</a></p> <h2 dir="auto">Where</h2> <p dir="auto">npm public registry</p> <h2 dir="auto">How</h2> <h3 dir="auto">Current Behavior</h3> <p dir="auto">unable to install packages</p> <h3 dir="auto">Steps to Reproduce</h3> <p dir="auto">npm i request@latest</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">module should install</p> <h2 dir="auto">Who</h2> <h2 dir="auto">References</h2> <p dir="auto">npm install request@latest<br> npm WARN deprecated [email protected]: request has been deprecated, see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="427331880" data-permission-text="Title is private" data-url="https://github.com/request/request/issues/3142" data-hovercard-type="issue" data-hovercard-url="/request/request/issues/3142/hovercard" href="https://github.com/request/request/issues/3142">request/request#3142</a><br> npm ERR! code E429<br> npm ERR! 429 Too Many Requests - GET <a href="https://registry.npmjs.org/aws4" rel="nofollow">https://registry.npmjs.org/aws4</a></p>
0
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.1.2</li> <li>Operating System / Platform =&gt; Windows 7 64 bit</li> <li>Compiler =&gt; Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I've tuned a pre-trained tensorflow model using the object_detection API.<br> After freezing the model and using the "tf_text_graph_ssd.py" script (the pre-trained model I used was SSD_inception_v2_coco) I generated the graph.pbtxt file.<br> Each time I try to load the model with<br> <code class="notranslate">cv.readNetFromTensorflow("frozen_inference_graph.pb", "graph.pbtxt")</code><br> Windows immediately says Python stopped working and crashes.<br> The same thing happens when I try to use it in C++.</p> <h5 dir="auto">Steps to reproduce</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import cv2 as cv cv.readNetFromTensorflow(&quot;frozen_inference_graph.pb&quot;, &quot;graph.pbtxt&quot;)"><pre class="notranslate"><code class="notranslate">import cv2 as cv cv.readNetFromTensorflow("frozen_inference_graph.pb", "graph.pbtxt") </code></pre></div> <p dir="auto"><a href="https://mega.nz/#!cEIDVIwS!P5hCTRA2MAAjkQLV6dfd0F4ZJf1ZbZBZkcVrQEfzmyg" rel="nofollow">frozen_inference_graph.pb</a><br> <a href="https://github.com/opencv/opencv/files/3860944/graph_and_config.zip">graph_and_config.zip</a></p>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; :3.4</li> <li>Operating System / Platform =&gt; :CentOS-7.5 64Bit:</li> <li>Compiler =&gt; :GCC:</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">The RPM installation package under CENTOS was automatically added with LIB_SUFFIX=64 when use cmake. At this time, an error occurred and the shared library file directory became lib6464.<br> I think there is an error in line 595 of the CMakeLists.txt file, because the new version of cmake will automatically form CMAKE_INSTALL_LIBDIR according to the operating system environment, and the 64 - bit system will form lib64 without adding a LIB_SUFFIX it self</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">cmake -DLIB_SUFFIX=64</p>
0
<p dir="auto">This is valid typescript</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Bar { name: string; } export default Bar; "><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Bar</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-smi">Bar</span><span class="pl-kos">;</span></pre></div> <p dir="auto">However, the compiler complains if I do this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default interface Bar { name: string; } "><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">interface</span> <span class="pl-smi">Bar</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">I would have expected this to work in both cases as if I substitute <code class="notranslate">interface</code> with <code class="notranslate">class</code> it works fine.</p> <p dir="auto">Reading the spec here, <a href="https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#11.3.4">https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md#11.3.4</a>, shows that interfaces cannot be part of a default export, but why?</p> <p dir="auto">Thanks!</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default abstract class B { }"><pre class="notranslate"><code class="notranslate">export default abstract class B { } </code></pre></div> <p dir="auto">By the way, the same with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default declare class B { }"><pre class="notranslate"><code class="notranslate">export default declare class B { } </code></pre></div> <p dir="auto">Seems to be a parser bug</p>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-create-a-form-element#?solution=%3Clink%20href%3D%22http%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Ch2%20class%3D%22red-text%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%3C%2Fa%3E%0A%0A%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%3Cul%3E%0A%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%3C%2Ful%3E%0A%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%3Col%3E%0A%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%3C%2Fol%3E%0A%3Cform%20action%3D%22%2Fsubmit-cat-photo%22%3E%0A%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%2F%3E%0A%3C%2Fform%3E%0A" rel="nofollow">Waypoint: Create a Form Element</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/45.0.2454.85 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-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;link href=&quot;http://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;style&gt; .red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } .smaller-image { width: 100px; } &lt;/style&gt; &lt;h2 class=&quot;red-text&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Click here for &lt;a href=&quot;#&quot;&gt;cat photos&lt;/a&gt;.&lt;/p&gt; &lt;a href=&quot;#&quot;&gt;&lt;img class=&quot;smaller-image thick-green-border&quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot;&gt;&lt;/a&gt; &lt;p&gt;Things cats love:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;form action=&quot;/submit-cat-photo&quot;&gt; &lt;input type=&quot;text&quot; placeholder=&quot;cat photo URL&quot;/&gt; &lt;/form&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">http://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">red-text</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> red; } <span class="pl-ent">h2</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace; } <span class="pl-ent">p</span> { <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>; <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace; } .<span class="pl-c1">thick-green-border</span> { <span class="pl-c1">border-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>; } .<span class="pl-c1">smaller-image</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Click here for <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>cat photos<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span>.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Things cats love:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>cat nip<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>laser pointers<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>lasagna<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Top 3 things cats hate:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>flea treatment<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>thunder<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>other cats<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>"/&gt; <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">I think I wrote correctly but it doesn't work like I thought :(<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13378727/10334974/3089e878-6d18-11e5-8f89-d9420cb51a43.jpg"><img src="https://cloud.githubusercontent.com/assets/13378727/10334974/3089e878-6d18-11e5-8f89-d9420cb51a43.jpg" alt="30" style="max-width: 100%;"></a></p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=diwakar" rel="nofollow">diwakar</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7084?redirect=false" rel="nofollow">SPR-7084</a></strong> and commented</p> <p dir="auto">Code</p> <hr> <p dir="auto">import org.springframework.context.support.GenericApplicationContext;<br> import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;<br> import org.springframework.core.io.ClassPathResource;</p> <p dir="auto">/**<br> */<br> public class IllegalArgumentProblem {</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public static void main(String[] args) { GenericApplicationContext parent = new GenericApplicationContext(); XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(parent); reader.loadBeanDefinitions(new ClassPathResource(&quot;app.xml&quot;, IllegalArgumentProblem.class)); parent.refresh(); String bean = (String) parent.getBean(&quot;x&quot;); String bean2 = (String) parent.getBean(&quot;x&quot;); // second access throws the exception. }"><pre class="notranslate"><code class="notranslate">public static void main(String[] args) { GenericApplicationContext parent = new GenericApplicationContext(); XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(parent); reader.loadBeanDefinitions(new ClassPathResource("app.xml", IllegalArgumentProblem.class)); parent.refresh(); String bean = (String) parent.getBean("x"); String bean2 = (String) parent.getBean("x"); // second access throws the exception. } </code></pre></div> <p dir="auto">}</p> <p dir="auto">Configuration</p> <hr> <p dir="auto">&lt;beans xmlns="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>"<br> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>"<br> xsi:schemaLocation="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a><br> <a href="http://www.springframework.org/schema/beans/spring-beans-2.5.xsd%22%3E" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"&gt;</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;bean id=&quot;x&quot; class=&quot;java.lang.String&quot; scope=&quot;prototype&quot;&gt; &lt;constructor-arg&gt;&lt;value&gt;PARENT value&lt;/value&gt;&lt;/constructor-arg&gt; &lt;/bean&gt;"><pre class="notranslate"><code class="notranslate">&lt;bean id="x" class="java.lang.String" scope="prototype"&gt; &lt;constructor-arg&gt;&lt;value&gt;PARENT value&lt;/value&gt;&lt;/constructor-arg&gt; &lt;/bean&gt; </code></pre></div> <p dir="auto">&lt;/beans&gt;</p> <p dir="auto">Error</p> <hr> <p dir="auto">log4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory).<br> log4j:WARN Please initialize the log4j system properly.<br> Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'x' defined in class path resource [app.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [java.lang.String]: Illegal arguments for constructor; nested exception is java.lang.IllegalArgumentException: argument type mismatch<br> at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:823)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)<br> at java.security.AccessController.doPrivileged(Native Method)<br> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)<br> at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)<br> at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:881)<br> at IllegalArgumentProblem.main(IllegalArgumentProblem.java:21)<br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br> at java.lang.reflect.Method.invoke(Method.java:597)<br> at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)<br> Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [java.lang.String]: Illegal arguments for constructor; nested exception is java.lang.IllegalArgumentException: argument type mismatch<br> at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:111)<br> at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)<br> at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)<br> ... 16 more<br> Caused by: java.lang.IllegalArgumentException: argument type mismatch<br> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<br> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<br> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)<br> at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)<br> ... 18 more</p> <p dir="auto">Process finished with exit code 1</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.5, 2.5.6</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="398093748" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10240" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10240/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10240">#10240</a> not singleton StringBeans (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/12ce250c6ce911774a7983905fd6e006b5a1eac1/hovercard" href="https://github.com/spring-projects/spring-framework/commit/12ce250c6ce911774a7983905fd6e006b5a1eac1"><tt>12ce250</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=wshields" rel="nofollow">William Shields</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3390?redirect=false" rel="nofollow">SPR-3390</a></strong> and commented</p> <p dir="auto">form:errors is a pretty crude mechanism for displaying multiple errors. It uses a default delimieter of &lt;br&gt;. It should allow for more sophisticated methods of displaying errors.</p> <p dir="auto">In the simple case, I would like to see "schemes" introduced. For example:</p> <p dir="auto">&lt;form:errors path="*" scheme="ul"/&gt;</p> <p dir="auto">which would craete:</p> <p dir="auto">&lt;ul&gt;<br> &lt;li&gt;error1&lt;/li&gt;<br> &lt;li&gt;error2&lt;/li&gt;<br> &lt;/ul&gt;</p> <p dir="auto">Note: if there were no errors the enclosing &lt;ul&gt; tag should not be rendered.</p> <p dir="auto">Example schemes could be:</p> <p dir="auto">table<br> ul<br> ol</p> <p dir="auto">Potentially this may require another attribute to distinguish between the CSS class given to the enclosing tags and that given to each element, although if the enclosing tag got the value of cssClass, a CSS selector could resolve that problem without adding an attribute.</p> <p dir="auto">In the more complicated example, it is possibly worthwhile (although arguably unnecessary if you have sufficient schemes as defined above) to allow either the programmer to write their own schemes or to have sufficient attributes to achieve the same thing.</p> <p dir="auto">Example:</p> <p dir="auto">&lt;form:scheme name="errorTable"&gt;</p> <p dir="auto">form:pre</p> <p dir="auto">&lt;table&gt;<br> &lt;tr&gt;<br> &lt;th&gt;Error #&lt;/th&gt;<br> &lt;th&gt;Error Description&lt;/th&gt;<br> &lt;/tr&gt;<br> &lt;/form:pre&gt;</p> <p dir="auto">&lt;form:loop var="count"&gt;</p> <p dir="auto">&lt;tr&gt;<br> &lt;td&gt;&lt;c:out value="${count}"/&gt;&lt;/td&gt;<br> &lt;td&gt;&lt;form:error/&gt;&lt;/td&gt;<br> &lt;/tr&gt;<br> &lt;/form:loop&gt;</p> <p dir="auto">form:post</p> <p dir="auto">&lt;/table&gt;<br> &lt;/form:post&gt;</p> <p dir="auto">&lt;/form:scheme&gt;</p> <p dir="auto">The simple example of this kind of thing would be adding attributes:</p> <p dir="auto">&lt;form:errors path="*" block="ul" item="li"/&gt;</p> <p dir="auto">alternatively have a heading block within:</p> <p dir="auto">&lt;form:errors path="*" block="ul" item="li"&gt;</p> <p dir="auto">&lt;p&gt;The following errors have occurred:&lt;/p&gt;<br> &lt;/form:errors&gt;<br> Anywa, you get the idea.</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.0.4</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="398117956" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13859" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13859/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13859">#13859</a> Extend form:errors with something like errorElement (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto">20 votes, 14 watchers</p>
0
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="shell&gt; ! bash: syntax error near unexpected token `)' shell&gt; ( bash: syntax error near unexpected token `)'"><pre class="notranslate"><code class="notranslate">shell&gt; ! bash: syntax error near unexpected token `)' shell&gt; ( bash: syntax error near unexpected token `)' </code></pre></div> <p dir="auto">I understand that these might not be valid shell commands but the syntax error is puzzling.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="shell&gt; ./julia -E &quot;println(ARGS)&quot; bash: syntax error near unexpected token `(' shell&gt; ./julia -E \&quot;println(ARGS)\&quot; &quot;println(ARGS)&quot; shell&gt; ./julia -E println\(ARGS\) bash: syntax error near unexpected token `('"><pre class="notranslate"><code class="notranslate">shell&gt; ./julia -E "println(ARGS)" bash: syntax error near unexpected token `(' shell&gt; ./julia -E \"println(ARGS)\" "println(ARGS)" shell&gt; ./julia -E println\(ARGS\) bash: syntax error near unexpected token `(' </code></pre></div>
1
<p dir="auto">I'm using Bootstrap 3 RC1 and even though there is nothing but a row and a column, I can scroll horizontally (just a little bit). I guess there shouldn't be any horizontal scrolling at all.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-lg-12&quot;&gt;content&lt;/div&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div class="row"&gt; &lt;div class="col-lg-12"&gt;content&lt;/div&gt; &lt;/div&gt; </code></pre></div>
<p dir="auto">My (empty) row always causes a horizontal scrollbar to appear (~10px), and I don't think just hiding it is the best solution. Here's my 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;row&quot;&gt; &lt;div class=&quot;col-lg-12&quot;&gt; &lt;/div&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">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-lg-12</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">Note: The column is in my code empty, too.</p> <p dir="auto">Thank for your help, hice3000.</p>
1
<p dir="auto">I seem to have broken the dragonfly builder after:</p> <p dir="auto">syscall: allow nacl's fake network code to Listen twice on the same address<br> <a href="https://go-review.googlesource.com/16650" rel="nofollow">https://go-review.googlesource.com/16650</a> (rev <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/golang/go/commit/8ee90fad125ffa4a5cf12d04958d26f8611cb581/hovercard" href="https://github.com/golang/go/commit/8ee90fad125ffa4a5cf12d04958d26f8611cb581"><tt>8ee90fa</tt></a>)</p> <p dir="auto">... which added a test to the net package, which dragonfly can't pass.</p> <p dir="auto">Failure is:</p> <p dir="auto"><a href="http://build.golang.org/log/732b7056b17948b06073dbe399de931765307152" rel="nofollow">http://build.golang.org/log/732b7056b17948b06073dbe399de931765307152</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- FAIL: TestListenCloseListen (0.00s) net_test.go:283: failed on try 1/10: listen tcp 127.0.0.1:52085: bind: address already in use net_test.go:283: failed on try 2/10: listen tcp 127.0.0.1:52093: bind: address already in use net_test.go:283: failed on try 3/10: listen tcp 127.0.0.1:52101: bind: address already in use net_test.go:283: failed on try 4/10: listen tcp 127.0.0.1:52109: bind: address already in use net_test.go:283: failed on try 5/10: listen tcp 127.0.0.1:52117: bind: address already in use FAIL FAIL net 4.894s"><pre class="notranslate"><code class="notranslate">--- FAIL: TestListenCloseListen (0.00s) net_test.go:283: failed on try 1/10: listen tcp 127.0.0.1:52085: bind: address already in use net_test.go:283: failed on try 2/10: listen tcp 127.0.0.1:52093: bind: address already in use net_test.go:283: failed on try 3/10: listen tcp 127.0.0.1:52101: bind: address already in use net_test.go:283: failed on try 4/10: listen tcp 127.0.0.1:52109: bind: address already in use net_test.go:283: failed on try 5/10: listen tcp 127.0.0.1:52117: bind: address already in use FAIL FAIL net 4.894s </code></pre></div> <p dir="auto">I see a recent failure: <a href="http://build.golang.org/log/c6e3c951e0398d21ff52b932bc261ab70003120b" rel="nofollow">http://build.golang.org/log/c6e3c951e0398d21ff52b932bc261ab70003120b</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- FAIL: TestServerConnState (1.02s) serve_test.go:3041: Unexpected events. Got log: Conn 1: new active idle active closed Conn 2: new active idle active Conn 3: new active hijacked Conn 4: new active hijacked Conn 5: new closed Conn 6: new active closed Conn 7: new active idle closed Want: Conn 1: new active idle active closed Conn 2: new active idle active closed Conn 3: new active hijacked Conn 4: new active hijacked Conn 5: new closed Conn 6: new active closed Conn 7: new active idle closed FAIL FAIL net/http 20.463s"><pre class="notranslate"><code class="notranslate">--- FAIL: TestServerConnState (1.02s) serve_test.go:3041: Unexpected events. Got log: Conn 1: new active idle active closed Conn 2: new active idle active Conn 3: new active hijacked Conn 4: new active hijacked Conn 5: new closed Conn 6: new active closed Conn 7: new active idle closed Want: Conn 1: new active idle active closed Conn 2: new active idle active closed Conn 3: new active hijacked Conn 4: new active hijacked Conn 5: new closed Conn 6: new active closed Conn 7: new active idle closed FAIL FAIL net/http 20.463s </code></pre></div> <p dir="auto">... which suggests the net package, poller, or runtime are processing networking events in a different order than all the other platforms.</p> <p dir="auto">We also don't have a new-style builder for dragonfly, so people without dragonfly can't use gomote or trybots to debug.</p> <p dir="auto">I think a Dragonfly person needs to help.</p>
<p dir="auto"><a href="https://groups.google.com/d/topic/golang-nuts/sbzs9j5M-hs/discussion" rel="nofollow">Link to original mailing list post</a>.</p> <p dir="auto">Over here, I have a demo package: <a href="https://github.com/pwaller/vendor-collision">https://github.com/pwaller/vendor-collision</a></p> <p dir="auto">On go1.5rc1, if you git clone it and do <code class="notranslate">go build</code> (not <code class="notranslate">go get</code>), you get the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ go build -v package github.com/pwaller/vendor-collision imports vendor.org/p imports vendor.org/p/vendor/example.org/library: must be imported as example.org/library"><pre class="notranslate"><code class="notranslate">$ go build -v package github.com/pwaller/vendor-collision imports vendor.org/p imports vendor.org/p/vendor/example.org/library: must be imported as example.org/library </code></pre></div> <p dir="auto">To clarify: "vendor-collision" refers to the collision of vendoring methods, not packages, or anything like that.</p> <p dir="auto">Also, for the record, this is what the package looks like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/.local/src/github.com/pwaller/vendor-collision$ tree . ├── main.go └── vendor └── vendor.org └── p ├── p.go └── vendor └── example.com └── library └── library.go 6 directories, 3 files"><pre class="notranslate"><code class="notranslate">~/.local/src/github.com/pwaller/vendor-collision$ tree . ├── main.go └── vendor └── vendor.org └── p ├── p.go └── vendor └── example.com └── library └── library.go 6 directories, 3 files </code></pre></div> <p dir="auto"><code class="notranslate">main.go</code> imports <code class="notranslate">vendor.org/p</code> which directly imports <code class="notranslate">vendor.org/p/vendor/example.com/library</code>, where <code class="notranslate">vendor.org/p</code> should import <code class="notranslate">example.com/library</code> under the <code class="notranslate">GO15VENDOREXPERIMENT</code> regime, but <code class="notranslate">vendor.org/p</code>'s code is in a git submodule. I don't want to poke <code class="notranslate">vendor.org/p</code>'s code if I can avoid it. (And persuading them to change to the new method will break people's ability to easily build on go1.4)</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/davecheney/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/davecheney">@davecheney</a></p>
0
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.36.1]</li> <li>Operating System: [Windows 10]</li> <li>Browser: [Chromium, Firefox, WebKit]</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { defineConfig, devices } from '@playwright/test'; import dotenv from 'dotenv'; dotenv.config(); export default defineConfig({ testDir: './tests', fullyParallel: true, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, workers: process.env.CI ? 1 : undefined, reporter: 'html', use: { trace: 'on-first-retry', }, projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'], }, }, ], });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s1">dotenv</span> <span class="pl-k">from</span> <span class="pl-s">'dotenv'</span><span class="pl-kos">;</span> <span class="pl-s1">dotenv</span><span class="pl-kos">.</span><span class="pl-en">config</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">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">testDir</span>: <span class="pl-s">'./tests'</span><span class="pl-kos">,</span> <span class="pl-c1">fullyParallel</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">forbidOnly</span>: <span class="pl-c1">!</span><span class="pl-c1">!</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span><span class="pl-kos">,</span> <span class="pl-c1">retries</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span> ? <span class="pl-c1">2</span> : <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">workers</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span> ? <span class="pl-c1">1</span> : <span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-c1">reporter</span>: <span class="pl-s">'html'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">trace</span>: <span class="pl-s">'on-first-retry'</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Chrome'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-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></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {test, expect} from '@playwright/test'; const check = async(page) =&gt; { await expect(page.getByText(String(null))).toHaveCount(0); await expect(page.getByText(String(undefined))).toHaveCount(0); await expect(page.getByText(String(0), {exact: true})).toHaveCount(0); } test('function', async ({ page }) =&gt; { await page.goto('https://example.com'); await expect(page.locator(&quot;body &gt; div &gt; h1&quot;)).toHaveText(&quot;Example Domain&quot;); check(page); }); test('direct call', async ({ page }) =&gt; { await page.goto('https://example.com'); await expect(page.locator(&quot;body &gt; div &gt; h1&quot;)).toHaveText(&quot;Example Domain&quot;); await expect(page.getByText(String(null))).toHaveCount(0); await expect(page.getByText(String(undefined))).toHaveCount(0); await expect(page.getByText(String(0), {exact: true})).toHaveCount(0); });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-en">check</span> <span class="pl-c1">=</span> <span class="pl-k">async</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByText</span><span class="pl-kos">(</span><span class="pl-v">String</span><span class="pl-kos">(</span><span class="pl-c1">null</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">toHaveCount</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">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByText</span><span class="pl-kos">(</span><span class="pl-v">String</span><span class="pl-kos">(</span><span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</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">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByText</span><span class="pl-kos">(</span><span class="pl-v">String</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-kos">{</span><span class="pl-c1">exact</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-kos">.</span><span class="pl-en">toHaveCount</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-kos">}</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'function'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://example.com'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">"body &gt; div &gt; h1"</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveText</span><span class="pl-kos">(</span><span class="pl-s">"Example Domain"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">check</span><span class="pl-kos">(</span><span class="pl-s1">page</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">test</span><span class="pl-kos">(</span><span class="pl-s">'direct call'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://example.com'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">"body &gt; div &gt; h1"</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveText</span><span class="pl-kos">(</span><span class="pl-s">"Example Domain"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByText</span><span class="pl-kos">(</span><span class="pl-v">String</span><span class="pl-kos">(</span><span class="pl-c1">null</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">toHaveCount</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">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByText</span><span class="pl-kos">(</span><span class="pl-v">String</span><span class="pl-kos">(</span><span class="pl-c1">undefined</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveCount</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">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByText</span><span class="pl-kos">(</span><span class="pl-v">String</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-kos">{</span><span class="pl-c1">exact</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-kos">.</span><span class="pl-en">toHaveCount</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-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Run <code class="notranslate">playwright test --ui</code></li> <li>Run <code class="notranslate">playwright test</code></li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">The test results are consistent between UI and CI</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">the <code class="notranslate">function</code> test fails in CI test.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/16105352/254278433-55cc3f93-c80e-434d-8433-0a39fd5bb9f6.png"><img src="https://user-images.githubusercontent.com/16105352/254278433-55cc3f93-c80e-434d-8433-0a39fd5bb9f6.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v1.31.2</li> <li>Operating System: Ubuntu 22.04 LTS</li> <li>Browser: All</li> <li>Other info:</li> </ul> <p dir="auto">This may simply need to be clarified in the docs but it would also be good to know if this is possible.</p> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Page, test } from '@playwright/test'; test('test intercept request ws', async ({ page }) =&gt; { // doesn't work, no wss traffic is ever intercepted await page.route('wss://**', async (route, request) =&gt; { console.log('Routing all wss traffic via page: ' + request.url()); const response = await route.fetch(); route.fulfill({ response }); }); // also doesn't work, no ws traffic is ever intercepted await page.context().route('ws://**', async (route, request) =&gt; { console.log('Routing all ws traffic via context: ' + request.url()); const response = await route.fetch(); route.fulfill({ response }); }); // await request.get('ws://127.0.0.1:3030/ws'); // await request.get('ws://127.0.0.1:3030'); // await request.get('wss://127.0.0.1:3030'); await request.get('wss://127.0.0.1:3030/ws'); });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Page</span><span class="pl-kos">,</span> <span class="pl-s1">test</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'test intercept request ws'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// doesn't work, no wss traffic is ever intercepted</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">route</span><span class="pl-kos">(</span><span class="pl-s">'wss://**'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-s1">route</span><span class="pl-kos">,</span> <span class="pl-s1">request</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</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-s">'Routing all wss traffic via page: '</span> <span class="pl-c1">+</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-en">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-k">const</span> <span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">route</span><span class="pl-kos">.</span><span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">route</span><span class="pl-kos">.</span><span class="pl-en">fulfill</span><span class="pl-kos">(</span><span class="pl-kos">{</span> response <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-c">// also doesn't work, no ws traffic is ever intercepted</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">context</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">route</span><span class="pl-kos">(</span><span class="pl-s">'ws://**'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-s1">route</span><span class="pl-kos">,</span> <span class="pl-s1">request</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</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-s">'Routing all ws traffic via context: '</span> <span class="pl-c1">+</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-en">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-k">const</span> <span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">route</span><span class="pl-kos">.</span><span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">route</span><span class="pl-kos">.</span><span class="pl-en">fulfill</span><span class="pl-kos">(</span><span class="pl-kos">{</span> response <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-c">// await request.get('ws://127.0.0.1:3030/ws');</span> <span class="pl-c">// await request.get('ws://127.0.0.1:3030');</span> <span class="pl-c">// await request.get('wss://127.0.0.1:3030');</span> <span class="pl-k">await</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'wss://127.0.0.1:3030/ws'</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"><strong>Steps</strong></p> <ul dir="auto"> <li>Run the test</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">The router should pickup requests made to the web socket server URL.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">The router never picks up the requests. I would like to route requests away from a remote web socket serve to a locally hosted one.</p> <p dir="auto">I believe this bug is sort of related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1632730271" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/21816" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/21816/hovercard" href="https://github.com/microsoft/playwright/issues/21816">#21816</a> as well as the full WebSocket routing open feature request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="746657874" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/4488" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/4488/hovercard" href="https://github.com/microsoft/playwright/issues/4488">#4488</a> -- I was hoping for a way to simply redirect the GET request to the WebSocket server URL with <code class="notranslate">route()</code> -- low hanging fruit compared to the full message mocking and intercepting I think is required to delivery the feature request.</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"><code class="notranslate">fetch</code> module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.2.0 (detached HEAD c7052b42c7) last updated 2017/08/06 09:06:45 (GMT +300) config file = configured module search path = Default w/o overrides python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]"><pre class="notranslate"><code class="notranslate">ansible 2.3.2.0 (detached HEAD c7052b42c7) last updated 2017/08/06 09:06:45 (GMT +300) config file = configured module search path = Default w/o overrides python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">ansible is running from Ubuntu 16.04 and manages various debian jessie hosts.</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto"><code class="notranslate">fetch</code> can't properly handle authentication failure for some reason.<br> Seems to be duplicate of closed <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="168373991" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/16877" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/16877/hovercard" href="https://github.com/ansible/ansible/issues/16877">#16877</a></p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">NB: <code class="notranslate">gather_facts: false</code> matters.</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: all gather_facts: false tasks: - name: mktemp command: mktemp -td boot_id.XXXXXXXX register: tmp run_once: true delegate_to: localhost - name: fetch kernel/random/boot_id fetch: src=/proc/sys/kernel/random/boot_id dest={{tmp.stdout}}/{{inventory_hostname}} flat=yes fail_on_missing=yes"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">all</span> <span class="pl-ent">gather_facts</span>: <span class="pl-c1">false</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">mktemp</span> <span class="pl-ent">command</span>: <span class="pl-s">mktemp -td boot_id.XXXXXXXX</span> <span class="pl-ent">register</span>: <span class="pl-s">tmp</span> <span class="pl-ent">run_once</span>: <span class="pl-c1">true</span> <span class="pl-ent">delegate_to</span>: <span class="pl-s">localhost</span> - <span class="pl-ent">name</span>: <span class="pl-s">fetch kernel/random/boot_id</span> <span class="pl-ent">fetch</span>: <span class="pl-s">src=/proc/sys/kernel/random/boot_id dest={{tmp.stdout}}/{{inventory_hostname}} flat=yes fail_on_missing=yes</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I expected the host to report some sort of failure as with <code class="notranslate">ping</code> module:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible -m ping ooni-fdroid-build.infra.ooni.io ooni-fdroid-build.infra.ooni.io | UNREACHABLE! =&gt; { &quot;changed&quot;: false, &quot;msg&quot;: &quot;SSH Error: data could not be sent to remote host \&quot;ooni-fdroid-build.infra.ooni.io\&quot;. Make sure this host can be reached over ssh&quot;, &quot;unreachable&quot;: true }"><pre class="notranslate"><code class="notranslate">$ ansible -m ping ooni-fdroid-build.infra.ooni.io ooni-fdroid-build.infra.ooni.io | UNREACHABLE! =&gt; { "changed": false, "msg": "SSH Error: data could not be sent to remote host \"ooni-fdroid-build.infra.ooni.io\". Make sure this host can be reached over ssh", "unreachable": true } </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [fetch kernel/random/boot_id] ************************************************************************************************************************************************************************* task path: /home/darkk/oo/sysadmin/ansible/check-inventory.yml:16 Using module file /home/darkk/contrib-src/ansible/lib/ansible/modules/files/stat.py &lt;ooni-fdroid-build.infra.ooni.io&gt; ESTABLISH SSH CONNECTION FOR USER: None &lt;ooni-fdroid-build.infra.ooni.io&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 ConnectTimeout=10 -o ControlPath=/home/darkk/.ansible/cp/7735c2afbf ooni-fdroid-build.infra.ooni.io '/bin/sh -c '&quot;'&quot;'/usr/bin/python &amp;&amp; sleep 0'&quot;'&quot;'' ok: [ooni-fdroid-build.infra.ooni.io] =&gt; { &quot;changed&quot;: false, &quot;file&quot;: &quot;/proc/sys/kernel/random/boot_id&quot;, &quot;msg&quot;: &quot;unable to calculate the checksum of the remote file&quot; }"><pre class="notranslate"><code class="notranslate">TASK [fetch kernel/random/boot_id] ************************************************************************************************************************************************************************* task path: /home/darkk/oo/sysadmin/ansible/check-inventory.yml:16 Using module file /home/darkk/contrib-src/ansible/lib/ansible/modules/files/stat.py &lt;ooni-fdroid-build.infra.ooni.io&gt; ESTABLISH SSH CONNECTION FOR USER: None &lt;ooni-fdroid-build.infra.ooni.io&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 ConnectTimeout=10 -o ControlPath=/home/darkk/.ansible/cp/7735c2afbf ooni-fdroid-build.infra.ooni.io '/bin/sh -c '"'"'/usr/bin/python &amp;&amp; sleep 0'"'"'' ok: [ooni-fdroid-build.infra.ooni.io] =&gt; { "changed": false, "file": "/proc/sys/kernel/random/boot_id", "msg": "unable to calculate the checksum of the remote file" } </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.0 config file = configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.1.0 config file = configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubuntu 14.04<br> Docker version 1.10.3, build 20f81dd (also tried version 1.11.0 with same error)<br> Docker-Py version 1.8.0</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">I get the error "cannot unmarshal array into Go value" when I try to launch a docker container with volumes attached to it. The error only occurs when I specify a mounting point.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Just run <code class="notranslate">ansible-playbook test2.yml</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - hosts: dl2 tasks: - name: Launch ubuntu docker: state: started image: ubuntu command: sleep 1d volumes: - &quot;/tmp:/inbox&quot;"><pre class="notranslate"><code class="notranslate"> --- - hosts: dl2 tasks: - name: Launch ubuntu docker: state: started image: ubuntu command: sleep 1d volumes: - "/tmp:/inbox" </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <h5 dir="auto">ACTUAL RESULTS</h5> <h6 dir="auto">short version of output</h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [dl2] ********************************************************************* TASK [setup] ******************************************************************* ok: [dl2] TASK [Launch ubuntu] *********************************************************** fatal: [dl2]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;failed&quot;: true, &quot;msg&quot;: &quot;Docker API Error: json: cannot unmarshal array into Go value of type string&quot;} NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @test2.retry PLAY RECAP ********************************************************************* dl2 : ok=1 changed=0 unreachable=0 failed=1 "><pre class="notranslate"><code class="notranslate">PLAY [dl2] ********************************************************************* TASK [setup] ******************************************************************* ok: [dl2] TASK [Launch ubuntu] *********************************************************** fatal: [dl2]: FAILED! =&gt; {"changed": false, "failed": true, "msg": "Docker API Error: json: cannot unmarshal array into Go value of type string"} NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @test2.retry PLAY RECAP ********************************************************************* dl2 : ok=1 changed=0 unreachable=0 failed=1 </code></pre></div> <h6 dir="auto">verbose version of output</h6> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="No config file found; using defaults Loaded callback default of type stdout, v2.0 PLAYBOOK: test2.yml ************************************************************ 1 plays in test2.yml PLAY [dl2] ********************************************************************* TASK [setup] ******************************************************************* &lt;dl2&gt; ESTABLISH LOCAL CONNECTION FOR USER: daniel &lt;dl2&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p &quot;` echo $HOME/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461 `&quot; &amp;&amp; echo &quot;` echo $HOME/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461 `&quot; )' &lt;dl2&gt; PUT /tmp/tmpg0NEE7 TO /home/daniel/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461/setup &lt;dl2&gt; EXEC /bin/sh -c 'LANG=en_US LC_ALL=en_US LC_MESSAGES=en_US /usr/bin/python /home/daniel/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461/setup; rm -rf &quot;/home/daniel/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461/&quot; &gt; /dev/null 2&gt;&amp;1' ok: [dl2] TASK [Launch ubuntu] *********************************************************** task path: .../test2.yml:4 &lt;dl2&gt; ESTABLISH LOCAL CONNECTION FOR USER: daniel &lt;dl2&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p &quot;` echo $HOME/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048 `&quot; &amp;&amp; echo &quot;` echo $HOME/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048 `&quot; )' &lt;dl2&gt; PUT /tmp/tmpX_tBFI TO /home/daniel/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048/docker &lt;dl2&gt; EXEC /bin/sh -c 'LANG=en_US LC_ALL=en_US LC_MESSAGES=en_US /usr/bin/python /home/daniel/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048/docker; rm -rf &quot;/home/daniel/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048/&quot; &gt; /dev/null 2&gt;&amp;1' fatal: [dl2]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;failed&quot;: true, &quot;invocation&quot;: {&quot;module_args&quot;: {&quot;cap_add&quot;: null, &quot;cap_drop&quot;: null, &quot;command&quot;: &quot;sleep 1d&quot;, &quot;count&quot;: 1, &quot;cpu_set&quot;: null, &quot;cpu_shares&quot;: 0, &quot;debug&quot;: false, &quot;detach&quot;: true, &quot;devices&quot;: null, &quot;dns&quot;: null, &quot;docker_api_version&quot;: &quot;1.22&quot;, &quot;docker_url&quot;: null, &quot;docker_user&quot;: null, &quot;domainname&quot;: null, &quot;email&quot;: null, &quot;entrypoint&quot;: null, &quot;env&quot;: null, &quot;env_file&quot;: null, &quot;expose&quot;: null, &quot;extra_hosts&quot;: null, &quot;hostname&quot;: null, &quot;image&quot;: &quot;ubuntu&quot;, &quot;insecure_registry&quot;: false, &quot;labels&quot;: {}, &quot;links&quot;: null, &quot;log_driver&quot;: null, &quot;log_opt&quot;: null, &quot;lxc_conf&quot;: null, &quot;memory_limit&quot;: &quot;0&quot;, &quot;memory_swap&quot;: &quot;0&quot;, &quot;name&quot;: null, &quot;net&quot;: null, &quot;password&quot;: null, &quot;pid&quot;: null, &quot;ports&quot;: null, &quot;privileged&quot;: false, &quot;publish_all_ports&quot;: false, &quot;pull&quot;: &quot;missing&quot;, &quot;read_only&quot;: null, &quot;registry&quot;: null, &quot;restart_policy&quot;: null, &quot;restart_policy_retry&quot;: 0, &quot;signal&quot;: null, &quot;state&quot;: &quot;started&quot;, &quot;stdin_open&quot;: false, &quot;stop_timeout&quot;: 10, &quot;timeout&quot;: 60, &quot;tls_ca_cert&quot;: null, &quot;tls_client_cert&quot;: null, &quot;tls_client_key&quot;: null, &quot;tls_hostname&quot;: null, &quot;tty&quot;: false, &quot;ulimits&quot;: null, &quot;use_tls&quot;: null, &quot;username&quot;: null, &quot;volumes&quot;: [&quot;/tmp:/inbox&quot;], &quot;volumes_from&quot;: null}, &quot;module_name&quot;: &quot;docker&quot;}, &quot;msg&quot;: &quot;Docker API Error: json: cannot unmarshal array into Go value of type string&quot;} NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @test2.retry PLAY RECAP ********************************************************************* dl2 : ok=1 changed=0 unreachable=0 failed=1 "><pre class="notranslate"><code class="notranslate">No config file found; using defaults Loaded callback default of type stdout, v2.0 PLAYBOOK: test2.yml ************************************************************ 1 plays in test2.yml PLAY [dl2] ********************************************************************* TASK [setup] ******************************************************************* &lt;dl2&gt; ESTABLISH LOCAL CONNECTION FOR USER: daniel &lt;dl2&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461 `" &amp;&amp; echo "` echo $HOME/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461 `" )' &lt;dl2&gt; PUT /tmp/tmpg0NEE7 TO /home/daniel/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461/setup &lt;dl2&gt; EXEC /bin/sh -c 'LANG=en_US LC_ALL=en_US LC_MESSAGES=en_US /usr/bin/python /home/daniel/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461/setup; rm -rf "/home/daniel/.ansible/tmp/ansible-tmp-1461163032.16-7353653514461/" &gt; /dev/null 2&gt;&amp;1' ok: [dl2] TASK [Launch ubuntu] *********************************************************** task path: .../test2.yml:4 &lt;dl2&gt; ESTABLISH LOCAL CONNECTION FOR USER: daniel &lt;dl2&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048 `" &amp;&amp; echo "` echo $HOME/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048 `" )' &lt;dl2&gt; PUT /tmp/tmpX_tBFI TO /home/daniel/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048/docker &lt;dl2&gt; EXEC /bin/sh -c 'LANG=en_US LC_ALL=en_US LC_MESSAGES=en_US /usr/bin/python /home/daniel/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048/docker; rm -rf "/home/daniel/.ansible/tmp/ansible-tmp-1461163032.75-245772432711048/" &gt; /dev/null 2&gt;&amp;1' fatal: [dl2]: FAILED! =&gt; {"changed": false, "failed": true, "invocation": {"module_args": {"cap_add": null, "cap_drop": null, "command": "sleep 1d", "count": 1, "cpu_set": null, "cpu_shares": 0, "debug": false, "detach": true, "devices": null, "dns": null, "docker_api_version": "1.22", "docker_url": null, "docker_user": null, "domainname": null, "email": null, "entrypoint": null, "env": null, "env_file": null, "expose": null, "extra_hosts": null, "hostname": null, "image": "ubuntu", "insecure_registry": false, "labels": {}, "links": null, "log_driver": null, "log_opt": null, "lxc_conf": null, "memory_limit": "0", "memory_swap": "0", "name": null, "net": null, "password": null, "pid": null, "ports": null, "privileged": false, "publish_all_ports": false, "pull": "missing", "read_only": null, "registry": null, "restart_policy": null, "restart_policy_retry": 0, "signal": null, "state": "started", "stdin_open": false, "stop_timeout": 10, "timeout": 60, "tls_ca_cert": null, "tls_client_cert": null, "tls_client_key": null, "tls_hostname": null, "tty": false, "ulimits": null, "use_tls": null, "username": null, "volumes": ["/tmp:/inbox"], "volumes_from": null}, "module_name": "docker"}, "msg": "Docker API Error: json: cannot unmarshal array into Go value of type string"} NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @test2.retry PLAY RECAP ********************************************************************* dl2 : ok=1 changed=0 unreachable=0 failed=1 </code></pre></div>
0
<p dir="auto">Hi,</p> <p dir="auto">Once the code is run, the output shows #target5 button twice. There seems to be some bug in the system.<br> Screenshot Attached.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8476026/12215285/a147aed0-b6db-11e5-8955-1ad936f0d1a2.png"><img src="https://cloud.githubusercontent.com/assets/8476026/12215285/a147aed0-b6db-11e5-8955-1ad936f0d1a2.png" alt="screen shot 2016-01-09 at 2 16 36 pm" style="max-width: 100%;"></a></p>
<p dir="auto">Hi,<br> Though I did everything required for this challenge when I click on 'run tests' it does not take me to the next challenge, instead, it keeps on saying 'keep trying'. Going on the help site, I have discovered another person having exactly the same problem. Please help us.<br> Thank you.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/20506860/18387782/0257d148-76e2-11e6-8fa3-b3ec7c73b5c1.jpg"><img src="https://cloud.githubusercontent.com/assets/20506860/18387782/0257d148-76e2-11e6-8fa3-b3ec7c73b5c1.jpg" alt="bug" style="max-width: 100%;"></a></p> <h4 dir="auto">Challenge Name</h4> <p dir="auto">Use Hex Code to Mix Colors</p> <p dir="auto"><a href="https://www.freecodecamp.com/en/challenges/html5-and-css/use-hex-code-to-mix-colors" rel="nofollow">https://www.freecodecamp.com/en/challenges/html5-and-css/use-hex-code-to-mix-colors</a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/20506860/18387411/e45b7052-76df-11e6-84c1-165076f900c8.jpg"><img src="https://cloud.githubusercontent.com/assets/20506860/18387411/e45b7052-76df-11e6-84c1-165076f900c8.jpg" alt="bug" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/20506860/18387430/fbfff7be-76df-11e6-872b-88121b5f475b.jpg"><img src="https://cloud.githubusercontent.com/assets/20506860/18387430/fbfff7be-76df-11e6-872b-88121b5f475b.jpg" alt="bug" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/20506860/18387439/0dc424e8-76e0-11e6-82f1-b8c7b6460207.jpg"><img src="https://cloud.githubusercontent.com/assets/20506860/18387439/0dc424e8-76e0-11e6-82f1-b8c7b6460207.jpg" alt="bug" style="max-width: 100%;"></a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#### Screenshot &lt;!-- Add a screenshot of your issue --&gt; "><pre class="notranslate"><code class="notranslate">#### Screenshot &lt;!-- Add a screenshot of your issue --&gt; </code></pre></div>
0
<p dir="auto">Currently only the project tree reloads. But if a file was modified outside vscode the working file is never updated. You have to close the file and re-open.</p> <p dir="auto">So working files should have some sort of message that a file has been modified outside vscode, and give the option to reload. But at the very least the functionality to reload the project tree should also reload the working files if they have been modified outside vscode</p>
<p dir="auto">As above. I've been testing it out by switching branches in git using terminal and the file does not update. Sublime &amp; Atom do it immediately, but with Code you have to switch out and back into the file in order for it to update.</p>
1
<p dir="auto">Description of problem:</p> <p dir="auto">Version-Release number of selected component (if applicable):</p> <p dir="auto">How reproducible:<br> always</p> <p dir="auto">Steps to Reproduce:<br> 1.ip addr add fe80::1 dev p14p14<br> 2. nc -6 -l 1234<br> 3. python -c "import requests; requests.get('http://[fe80::1%25p14p1]:1234')"<br> 3. nc -v6 'fe80::1%p14p1' 1234<br> Ncat: Version 6.40 ( <a href="http://nmap.org/ncat" rel="nofollow">http://nmap.org/ncat</a> )<br> Ncat: Connected to fe80::1:1234.</p> <p dir="auto">Actual results:<br> The python script shows a traceback:<br> Traceback (most recent call last):<br> File "", line 1, in <br> File "/usr/lib/python2.7/site-packages/requests/api.py", line 55, in get<br> return request('get', url, *_kwargs)<br> File "/usr/lib/python2.7/site-packages/requests/api.py", line 44, in request<br> return session.request(method=method, url=url, *_kwargs)<br> File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 335, in request<br> resp = self.send(prep, *_send_kwargs)<br> File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 438, in send<br> r = adapter.send(request, *_kwargs)<br> File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 327, in send<br> raise ConnectionError(e)<br> requests.exceptions.ConnectionError: HTTPConnectionPool(host='fe80::1%25p14p1', port=1234): Max retries exceeded with url: / (Caused by &lt;class 'socket.gaierror'&gt;: [Errno -2] Name or service not known)</p> <p dir="auto">Expected results:<br> python requests should connect to netcat.</p> <p dir="auto">Additional info:<br> <a href="https://tools.ietf.org/html/rfc6874" rel="nofollow">https://tools.ietf.org/html/rfc6874</a></p>
<p dir="auto">Some IPv6 addresses contains the '%' sign ( link-local addresses : ex. fe80::21b:63ff:feab:e6a6%eth0 or [fe80::21b:63ff:feab:e6a6%eth0] )<br> When using this addresses the requests library raises the fallowing exception: "requests.exceptions.InvalidURL: Invalid percent-escape sequence: 'et'"<br> (raised by the function unquote_unreserved() from the utils.py).<br> If I put as first line in this function the "return uri" line (in other words if I pass over this function), everything works ok.</p>
1
<p dir="auto">Per the design guide, it is acceptable to have an action in a dialog disabled:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/228987/9752984/cca97ee4-566b-11e5-8996-9b11377824c2.png"><img src="https://cloud.githubusercontent.com/assets/228987/9752984/cca97ee4-566b-11e5-8996-9b11377824c2.png" alt="components_dialogs_consistent_placement2" style="max-width: 100%;"></a></p> <p dir="auto">This should be a field on the standard <code class="notranslate">actionJSON</code> objects and can be dynamically toggled by setting in the parent's render function.</p>
<p dir="auto">Hi,</p> <p dir="auto">It will be nice if the Dialog component recognizes the disabled property when it generates the dialog actions from JSON object.</p>
1
<p dir="auto">Would you please add iterator in NodeList interface as <a href="https://dom.spec.whatwg.org/#old-style-collections" rel="nofollow">DOM4 spec</a> says?</p> <div class="highlight highlight-source-webidl notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="IDL[Exposed=Window] interface NodeList# { getter Node? item(unsigned long index#); readonly attribute unsigned long length; iterable&lt;Node&gt;; };"><pre class="notranslate">IDL[<span class="pl-k">Exposed</span>=<span class="pl-k">Window</span>] <span class="pl-k">interface</span> <span class="pl-en">NodeList</span># { getter Node? item(<span class="pl-k">unsigned</span> <span class="pl-k">long</span> index#); readonly attribute <span class="pl-k">unsigned</span> <span class="pl-k">long</span> length; iterable&lt;Node&gt;; };</pre></div> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="NodeList.prototype[Symbol.iterator] // gives `function [Symbol.iterator]()` in Firefox console"><pre class="notranslate"><span class="pl-v">NodeList</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">[</span><span class="pl-v">Symbol</span><span class="pl-kos">.</span><span class="pl-c1">iterator</span><span class="pl-kos">]</span> <span class="pl-c">// gives `function [Symbol.iterator]()` in Firefox console</span></pre></div>
<p dir="auto">Update: This issue is now only for the following collections:</p> <ul dir="auto"> <li>MediaList</li> <li>StyleSheetList</li> <li>CSSRuleList</li> </ul> <p dir="auto">Originally it was about NodeList as well, but that was fixed (along with DOMTokenList) in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="85519980" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/3393" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/3393/hovercard" href="https://github.com/microsoft/TypeScript/pull/3393">#3393</a></p> <hr> <p dir="auto">Original:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var paragraphs = document.querySelectorAll(&quot;p&quot;); for (let p of paragraphs) { console.log(p); }"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">paragraphs</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">querySelectorAll</span><span class="pl-kos">(</span><span class="pl-s">"p"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</span> <span class="pl-s1">p</span> <span class="pl-k">of</span> <span class="pl-s1">paragraphs</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">p</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo.ts(2,15): error TS2488: The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator."><pre class="notranslate"><code class="notranslate">foo.ts(2,15): error TS2488: The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator. </code></pre></div> <p dir="auto">Seems it just needs an update to lib.es6.d.ts to add the <code class="notranslate">[Symbol.iterator()]</code> to all the collections that have an indexer and length property. <del>The ones I found that have it in Nightly are below. The rest were either IE-only or didn't exist.</del> Removed my list since it seems FF has more than the specs allow. See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="118683757" data-permission-text="Title is private" data-url="https://github.com/zloirock/core-js/issues/137" data-hovercard-type="issue" data-hovercard-url="/zloirock/core-js/issues/137/hovercard?comment_id=159531781&amp;comment_type=issue_comment" href="https://github.com/zloirock/core-js/issues/137#issuecomment-159531781">zloirock/core-js#137 (comment)</a> for a more accurate list.</p>
1
<p dir="auto">Please consider merging <code class="notranslate">mean</code> and <code class="notranslate">average</code> and deprecating one in order to simplify the numpy interface and reduce confusion.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [23]: a = np.ones(3, 'i4, O') In [24]: a[0] = a[1] --------------------------------------------------------------------------- ValueError Traceback (most recent call last) &lt;ipython-input-24-5ef5a6077ce6&gt; in &lt;module&gt;() ----&gt; 1 a[0] = a[1] ValueError: Setting void-array with object members using buffer."><pre class="notranslate"><code class="notranslate">In [23]: a = np.ones(3, 'i4, O') In [24]: a[0] = a[1] --------------------------------------------------------------------------- ValueError Traceback (most recent call last) &lt;ipython-input-24-5ef5a6077ce6&gt; in &lt;module&gt;() ----&gt; 1 a[0] = a[1] ValueError: Setting void-array with object members using buffer. </code></pre></div> <p dir="auto">numpy 1.10.1<br> First reported by @ldoddema in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="120607794" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/6776" data-hovercard-type="pull_request" data-hovercard-url="/numpy/numpy/pull/6776/hovercard" href="https://github.com/numpy/numpy/pull/6776">#6776</a>.</p>
0
<p dir="auto">Looks like the <a href="https://github.com/zeit/next.js/blob/master/server/build/webpack.js#L100"><code class="notranslate">babel-runtime</code> alias in the webpack config</a> is causing babel to transpile incorrectly. Any async function defined on the module fails because <code class="notranslate">_regenerator2</code> is <code class="notranslate">undefined</code>. If the aysnc function is defined within a class, like with <code class="notranslate">getInitialProps</code>, everything works. Without the alias everything appears to work. I'm using <code class="notranslate">[email protected]</code>.</p> <h5 dir="auto">pages/index.js</h5> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="async function test() { }"><pre class="notranslate"><span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">test</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">throws:</h5> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="TypeError: Cannot read property 'default' of undefined at /Users/amccloud/Labs/Auth0/next-auth0/.next/dist/pages/index.js:4:36 at Object.&lt;anonymous&gt; (/Users/amccloud/Labs/Auth0/next-auth0/.next/dist/pages/index.js:19:2) at Module._compile (module.js:556:32) at Object.Module._extensions..js (module.js:565:10) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at _callee$ (/Users/amccloud/Labs/Auth0/next-auth0/node_modules/next/dist/server/require.js:33:46)"><pre class="notranslate">TypeError: <span class="pl-v">Cannot</span> <span class="pl-s1">read</span> <span class="pl-s1">property</span> <span class="pl-s">'default'</span> <span class="pl-s1">of</span> <span class="pl-c1">undefined</span> <span class="pl-s1">at</span> <span class="pl-c1">/</span><span class="pl-v">Users</span><span class="pl-c1">/</span><span class="pl-s1">amccloud</span><span class="pl-c1">/</span><span class="pl-v">Labs</span><span class="pl-c1">/</span><span class="pl-v">Auth0</span><span class="pl-c1">/</span><span class="pl-s1">next</span><span class="pl-c1">-</span><span class="pl-s1">auth0</span><span class="pl-c1">/</span><span class="pl-kos">.</span><span class="pl-c1">next</span><span class="pl-c1">/</span><span class="pl-s1">dist</span><span class="pl-c1">/</span><span class="pl-s1">pages</span><span class="pl-c1">/</span><span class="pl-s1">index</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">4</span>:<span class="pl-c1">36</span> <span class="pl-s1">at</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-c1">&lt;</span><span class="pl-s1">anonymous</span><span class="pl-c1">&gt;</span> <span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span>Users<span class="pl-c1">/</span>amccloud</span><span class="pl-c1">/</span><span class="pl-v">Labs</span><span class="pl-c1">/</span><span class="pl-v">Auth0</span><span class="pl-c1">/</span><span class="pl-s1">next</span><span class="pl-c1">-</span><span class="pl-s1">auth0</span><span class="pl-c1">/</span><span class="pl-kos">.</span><span class="pl-c1">next</span><span class="pl-c1">/</span><span class="pl-s1">dist</span><span class="pl-c1">/</span><span class="pl-s1">pages</span><span class="pl-c1">/</span><span class="pl-s1">index</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">19</span>:<span class="pl-c1">2</span><span class="pl-kos">)</span> <span class="pl-s1">at</span> <span class="pl-v">Module</span><span class="pl-kos">.</span><span class="pl-en">_compile</span> <span class="pl-kos">(</span><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">556</span>:<span class="pl-c1">32</span><span class="pl-kos">)</span> <span class="pl-s1">at</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-c1">Module</span><span class="pl-kos">.</span><span class="pl-c1">_extensions</span><span class="pl-kos">.</span><span class="pl-kos">.</span><span class="pl-en">js</span> <span class="pl-kos">(</span><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">565</span>:<span class="pl-c1">10</span><span class="pl-kos">)</span> <span class="pl-s1">at</span> <span class="pl-v">Module</span><span class="pl-kos">.</span><span class="pl-en">load</span> <span class="pl-kos">(</span><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">473</span>:<span class="pl-c1">32</span><span class="pl-kos">)</span> <span class="pl-s1">at</span><span class="pl-kos"></span> <span class="pl-en">tryModuleLoad</span> <span class="pl-kos">(</span><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">432</span>:<span class="pl-c1">12</span><span class="pl-kos">)</span> <span class="pl-s1">at</span> <span class="pl-v">Function</span><span class="pl-kos">.</span><span class="pl-c1">Module</span><span class="pl-kos">.</span><span class="pl-en">_load</span> <span class="pl-kos">(</span><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">424</span>:<span class="pl-c1">3</span><span class="pl-kos">)</span> <span class="pl-s1">at</span> <span class="pl-v">Module</span><span class="pl-kos">.</span><span class="pl-en">require</span> <span class="pl-kos">(</span><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">483</span>:<span class="pl-c1">17</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-en">require</span> <span class="pl-kos">(</span><span class="pl-s1">internal</span><span class="pl-c1">/</span><span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">20</span>:<span class="pl-c1">19</span><span class="pl-kos">)</span> <span class="pl-en">at</span> <span class="pl-s1">_callee$</span> <span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span>Users<span class="pl-c1">/</span>amccloud</span><span class="pl-c1">/</span><span class="pl-v">Labs</span><span class="pl-c1">/</span><span class="pl-v">Auth0</span><span class="pl-c1">/</span><span class="pl-s1">next</span><span class="pl-c1">-</span><span class="pl-s1">auth0</span><span class="pl-c1">/</span><span class="pl-s1">node_modules</span><span class="pl-c1">/</span><span class="pl-s1">next</span><span class="pl-c1">/</span><span class="pl-s1">dist</span><span class="pl-c1">/</span><span class="pl-s1">server</span><span class="pl-c1">/</span><span class="pl-en">require</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">33</span>:<span class="pl-c1">46</span><span class="pl-kos">)</span></pre></div> <h5 dir="auto">with <code class="notranslate">babel-runtime</code> alias</h5> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; Object.defineProperty(exports, &quot;__esModule&quot;, { value: true }); exports.test = undefined; var test = exports.test = function () { var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee() { // _regenerator2 undefined return _regenerator2.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: case &quot;end&quot;: return _context.stop(); } } }, _callee, this); })); return function test() { return _ref.apply(this, arguments); }; }(); var _regenerator = require(&quot;/Users/amccloud/Labs/Auth0/next-auth0/node_modules/babel-runtime/regenerator&quot;); var _regenerator2 = _interopRequireDefault(_regenerator); var _asyncToGenerator2 = require(&quot;/Users/amccloud/Labs/Auth0/next-auth0/node_modules/babel-runtime/helpers/asyncToGenerator&quot;); var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2); function _interopRequireDefault(obj) { return obj &amp;&amp; obj.__esModule ? obj : { default: obj }; }"><pre class="notranslate"><span class="pl-s">"use strict"</span><span class="pl-kos">;</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s">"__esModule"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">value</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">test</span> <span class="pl-c1">=</span> <span class="pl-c1">undefined</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">test</span> <span class="pl-c1">=</span> <span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">test</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">_ref</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_asyncToGenerator3</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">_regenerator2</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">.</span><span class="pl-en">mark</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-en">_callee</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// _regenerator2 undefined</span> <span class="pl-k">return</span> <span class="pl-s1">_regenerator2</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">.</span><span class="pl-en">wrap</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-en">_callee$</span><span class="pl-kos">(</span><span class="pl-s1">_context</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">while</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-k">switch</span> <span class="pl-kos">(</span><span class="pl-s1">_context</span><span class="pl-kos">.</span><span class="pl-c1">prev</span> <span class="pl-c1">=</span> <span class="pl-s1">_context</span><span class="pl-kos">.</span><span class="pl-c1">next</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">case</span> <span class="pl-c1">0</span>: <span class="pl-k">case</span> <span class="pl-s">"end"</span>: <span class="pl-k">return</span> <span class="pl-s1">_context</span><span class="pl-kos">.</span><span class="pl-en">stop</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-s1">_callee</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-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-k">function</span> <span class="pl-s1">test</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">_ref</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</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-k">var</span> <span class="pl-s1">_regenerator</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"/Users/amccloud/Labs/Auth0/next-auth0/node_modules/babel-runtime/regenerator"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">_regenerator2</span> <span class="pl-c1">=</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">_regenerator</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">_asyncToGenerator2</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"/Users/amccloud/Labs/Auth0/next-auth0/node_modules/babel-runtime/helpers/asyncToGenerator"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">_asyncToGenerator3</span> <span class="pl-c1">=</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">_asyncToGenerator2</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">_interopRequireDefault</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-k">return</span> <span class="pl-s1">obj</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-s1">obj</span><span class="pl-kos">.</span><span class="pl-c1">__esModule</span> ? <span class="pl-s1">obj</span> : <span class="pl-kos">{</span> <span class="pl-c1">default</span>: <span class="pl-s1">obj</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <h5 dir="auto">without <code class="notranslate">babel-runtime</code> alias</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;use strict&quot;; Object.defineProperty(exports, &quot;__esModule&quot;, { value: true }); exports.test = undefined; var _regenerator = require(&quot;babel-runtime/regenerator&quot;); var _regenerator2 = _interopRequireDefault(_regenerator); var _asyncToGenerator2 = require(&quot;babel-runtime/helpers/asyncToGenerator&quot;); var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2); var test = exports.test = function () { var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee() { return _regenerator2.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: case &quot;end&quot;: return _context.stop(); } } }, _callee, this); })); return function test() { return _ref.apply(this, arguments); }; }(); function _interopRequireDefault(obj) { return obj &amp;&amp; obj.__esModule ? obj : { default: obj }; }"><pre class="notranslate"><code class="notranslate">"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.test = undefined; var _regenerator = require("babel-runtime/regenerator"); var _regenerator2 = _interopRequireDefault(_regenerator); var _asyncToGenerator2 = require("babel-runtime/helpers/asyncToGenerator"); var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2); var test = exports.test = function () { var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee() { return _regenerator2.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { case 0: case "end": return _context.stop(); } } }, _callee, this); })); return function test() { return _ref.apply(this, arguments); }; }(); function _interopRequireDefault(obj) { return obj &amp;&amp; obj.__esModule ? obj : { default: obj }; } </code></pre></div> <h5 dir="auto">possibly related issues</h5> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="186226789" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/168" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/168/hovercard" href="https://github.com/vercel/next.js/issues/168">#168</a></li> </ul>
<p dir="auto">Hey guys, when I try to implement a custom .babelrc with next.config.js, I get a build error and it looks like its ignoring React Components (JSX).</p> <p dir="auto">.babelrc:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [ &quot;next/babel&quot; ], &quot;plugins&quot;: [ [&quot;transform-define&quot;, &quot;./env-config.js&quot;] ], }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span> <span class="pl-s">"next/babel"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span> <span class="pl-kos">[</span><span class="pl-s">"transform-define"</span><span class="pl-kos">,</span> <span class="pl-s">"./env-config.js"</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">next.config.js:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// next.config.js const webpack = require(&quot;webpack&quot;) const withCSS = require('@zeit/next-css') // Update these to match your package scope name. const internalNodeModulesRegExp = /src(?!\/(?!.*js))/ const externalNodeModulesRegExp = /node_modules(?!\/@zeit(?!.*node_modules))/ module.exports = withCSS({ useFileSystemPublicRoutes: false, webpack: (config, { dev, isServer, defaultLoaders }) =&gt; { config.resolve.symlinks = false config.externals = config.externals.map(external =&gt; { if (typeof external !== &quot;function&quot;) return external return (ctx, req, cb) =&gt; (internalNodeModulesRegExp.test(req) ? cb() : external(ctx, req, cb)) }) config.module.rules.push({ test: [ /\.gif$/, /\.jpe?g$/, /\.png$/, /\.svg$/, ], use: { loader: 'file-loader', options: {} } }); console.log(defaultLoaders); config.module.rules.push({ test: /\.+(js|jsx)$/, use: defaultLoaders.babel, include: [internalNodeModulesRegExp], }) return config }, webpackDevMiddleware: config =&gt; { const ignored = [config.watchOptions.ignored[0], externalNodeModulesRegExp] config.watchOptions.ignored = ignored config.stats = { warnings: false, }; return config }, distDir: 'next_build' });"><pre class="notranslate"><span class="pl-c">// next.config.js</span> <span class="pl-k">const</span> <span class="pl-s1">webpack</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"webpack"</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">withCSS</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@zeit/next-css'</span><span class="pl-kos">)</span> <span class="pl-c">// Update these to match your package scope name.</span> <span class="pl-k">const</span> <span class="pl-s1">internalNodeModulesRegExp</span> <span class="pl-c1">=</span> <span class="pl-pds"><span class="pl-c1">/</span>src<span class="pl-kos">(?</span><span class="pl-c1">!</span><span class="pl-cce">\/</span><span class="pl-kos">(?</span><span class="pl-c1">!</span>.<span class="pl-c1">*</span>js<span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-c1">/</span></span> <span class="pl-k">const</span> <span class="pl-s1">externalNodeModulesRegExp</span> <span class="pl-c1">=</span> <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-kos">(?</span><span class="pl-c1">!</span><span class="pl-cce">\/</span>@zeit<span class="pl-kos">(?</span><span class="pl-c1">!</span>.<span class="pl-c1">*</span>node_modules<span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-c1">/</span></span> <span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-s1">withCSS</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">useFileSystemPublicRoutes</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-en">webpack</span>: <span class="pl-kos">(</span><span class="pl-s1">config</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> dev<span class="pl-kos">,</span> isServer<span class="pl-kos">,</span> defaultLoaders <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">resolve</span><span class="pl-kos">.</span><span class="pl-c1">symlinks</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span> <span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">externals</span> <span class="pl-c1">=</span> <span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">externals</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">external</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-k">typeof</span> <span class="pl-s1">external</span> <span class="pl-c1">!==</span> <span class="pl-s">"function"</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-s1">external</span> <span class="pl-k">return</span> <span class="pl-kos">(</span><span class="pl-s1">ctx</span><span class="pl-kos">,</span> <span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-s1">cb</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span><span class="pl-s1">internalNodeModulesRegExp</span><span class="pl-kos">.</span><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">)</span> ? <span class="pl-s1">cb</span><span class="pl-kos">(</span><span class="pl-kos">)</span> : <span class="pl-en">external</span><span class="pl-kos">(</span><span class="pl-s1">ctx</span><span class="pl-kos">,</span> <span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-s1">cb</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">config</span><span class="pl-kos">.</span><span class="pl-c1">module</span><span class="pl-kos">.</span><span class="pl-c1">rules</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-kos">[</span> <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>gif<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>jpe?g<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>png<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>svg<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">loader</span>: <span class="pl-s">'file-loader'</span><span class="pl-kos">,</span> <span class="pl-c1">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><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">defaultLoaders</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">module</span><span class="pl-kos">.</span><span class="pl-c1">rules</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-c1">+</span><span class="pl-kos">(</span>js<span class="pl-c1">|</span>jsx<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-s1">defaultLoaders</span><span class="pl-kos">.</span><span class="pl-c1">babel</span><span class="pl-kos">,</span> <span class="pl-c1">include</span>: <span class="pl-kos">[</span><span class="pl-s1">internalNodeModulesRegExp</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">config</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">webpackDevMiddleware</span>: <span class="pl-s1">config</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">ignored</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">watchOptions</span><span class="pl-kos">.</span><span class="pl-c1">ignored</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">externalNodeModulesRegExp</span><span class="pl-kos">]</span> <span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">watchOptions</span><span class="pl-kos">.</span><span class="pl-c1">ignored</span> <span class="pl-c1">=</span> <span class="pl-s1">ignored</span> <span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">stats</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">warnings</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-k">return</span> <span class="pl-s1">config</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">distDir</span>: <span class="pl-s">'next_build'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Current Behavior</h2> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="BabelLoaderError: SyntaxError: Unexpected token (10:4) 8 | const NavList = ({activeLinkClass, horizontal, items, title, showIcon, styles, ssr}) =&gt; { 9 | return ( &gt; 10 | &lt;nav className={css(baseStyles.nav, styles.container)}&gt; | ^ 11 | {title &amp;&amp; ( 12 | &lt;h1 className={css(baseStyles.title, styles.title)}&gt;{title}&lt;/h1&gt; 13 | )} at transpile (/Users/patricklu/Q5/lunyr/Lunyr-Frontend/server/node_modules/babel-loader/lib/index.js:65:13) at /Users/patricklu/Q5/lunyr/Lunyr-Frontend/server/node_modules/babel-loader/lib/fs-cache.js:118:18 at ReadFileContext.callback (/Users/patricklu/Q5/lunyr/Lunyr-Frontend/server/node_modules/babel-loader/lib/fs-cache.js:31:21) at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:419:13) @ ../src/containers/components/base/index.js 17:0-47 @ ./pages/ReaderPage.js @ multi ./pages/ReaderPage.js "><pre class="notranslate">BabelLoaderError: SyntaxError: <span class="pl-v">Unexpected</span> <span class="pl-s1">token</span> <span class="pl-kos">(</span><span class="pl-c1">10</span>:<span class="pl-c1">4</span><span class="pl-kos">)</span> <span class="pl-c1">8</span> <span class="pl-c1">|</span> <span class="pl-s1">const</span> <span class="pl-v">NavList</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">{</span>activeLinkClass<span class="pl-kos">,</span> horizontal<span class="pl-kos">,</span> items<span class="pl-kos">,</span> title<span class="pl-kos">,</span> showIcon<span class="pl-kos">,</span> styles<span class="pl-kos">,</span> ssr<span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c1">9</span> <span class="pl-c1">|</span> <span class="pl-s1">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">10</span> <span class="pl-c1">|</span> <span class="pl-c1">&lt;</span><span class="pl-ent">nav</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s1">baseStyles</span><span class="pl-kos">.</span><span class="pl-c1">nav</span><span class="pl-kos">,</span> <span class="pl-s1">styles</span><span class="pl-kos">.</span><span class="pl-c1">container</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> | ^ 11 | <span class="pl-kos">{</span><span class="pl-s1">title</span> <span class="pl-c1">&amp;&amp;</span> <span class="pl-kos">(</span> <span class="pl-c1">12</span> <span class="pl-c1">|</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h1</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s1">baseStyles</span><span class="pl-kos">.</span><span class="pl-c1">title</span><span class="pl-kos">,</span> <span class="pl-s1">styles</span><span class="pl-kos">.</span><span class="pl-c1">title</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s1">title</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span> <span class="pl-c1">13</span> <span class="pl-c1">|</span><span class="pl-s1"></span> <span class="pl-kos">)</span><span class="pl-kos">}</span> at transpile (/Users/patricklu/Q5/lunyr/Lunyr-Frontend/server/node_modules/babel-loader/lib/index.js:65:13) at /Users/patricklu/Q5/lunyr/Lunyr-Frontend/server/node_modules/babel-loader/lib/fs-cache.js:118:18 at ReadFileContext.callback (/Users/patricklu/Q5/lunyr/Lunyr-Frontend/server/node_modules/babel-loader/lib/fs-cache.js:31:21) at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:419:13) @ ../src/containers/components/base/index.js 17:0-47 @ ./pages/ReaderPage.js @ multi ./pages/ReaderPage.js</pre></div> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>v5.0.0</td> </tr> <tr> <td>node</td> <td>v8.1.2</td> </tr> <tr> <td>OS</td> <td>macOs</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> </tbody> </table>
0
<p dir="auto">From <a href="https://stackoverflow.com/q/51228928/2901002" rel="nofollow">SO question</a>:</p> <p dir="auto"><strong>Sample</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="np.random.seed(57) idx = pd.CategoricalIndex(['low'] * 3 + ['hi'] * 3) dfb = pd.DataFrame(np.random.rand(6, 3), columns=list('abc'), index=idx) print (dfb) a b c low 0.087350 0.230477 0.411061 low 0.310783 0.565956 0.545064 low 0.807099 0.918155 0.522091 hi 0.424687 0.071804 0.898529 hi 0.420514 0.582170 0.214154 hi 0.447486 0.467864 0.100637"><pre class="notranslate"><code class="notranslate">np.random.seed(57) idx = pd.CategoricalIndex(['low'] * 3 + ['hi'] * 3) dfb = pd.DataFrame(np.random.rand(6, 3), columns=list('abc'), index=idx) print (dfb) a b c low 0.087350 0.230477 0.411061 low 0.310783 0.565956 0.545064 low 0.807099 0.918155 0.522091 hi 0.424687 0.071804 0.898529 hi 0.420514 0.582170 0.214154 hi 0.447486 0.467864 0.100637 </code></pre></div> <p dir="auto">Round incorrectly explode rows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print (dfb.round(3)) a b c low 0.087 0.230 0.411 low 0.311 0.566 0.545 low 0.807 0.918 0.522 low 0.087 0.230 0.411 low 0.311 0.566 0.545 low 0.807 0.918 0.522 low 0.087 0.230 0.411 low 0.311 0.566 0.545 low 0.807 0.918 0.522 hi 0.425 0.072 0.899 hi 0.421 0.582 0.214 hi 0.447 0.468 0.101 hi 0.425 0.072 0.899 hi 0.421 0.582 0.214 hi 0.447 0.468 0.101 hi 0.425 0.072 0.899 hi 0.421 0.582 0.214 hi 0.447 0.468 0.101"><pre class="notranslate"><code class="notranslate">print (dfb.round(3)) a b c low 0.087 0.230 0.411 low 0.311 0.566 0.545 low 0.807 0.918 0.522 low 0.087 0.230 0.411 low 0.311 0.566 0.545 low 0.807 0.918 0.522 low 0.087 0.230 0.411 low 0.311 0.566 0.545 low 0.807 0.918 0.522 hi 0.425 0.072 0.899 hi 0.421 0.582 0.214 hi 0.447 0.468 0.101 hi 0.425 0.072 0.899 hi 0.421 0.582 0.214 hi 0.447 0.468 0.101 hi 0.425 0.072 0.899 hi 0.421 0.582 0.214 hi 0.447 0.468 0.101 </code></pre></div> <p dir="auto">Expected output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print (dfb.round(3)) a b c low 0.087 0.230 0.411 low 0.311 0.566 0.545 low 0.807 0.918 0.522 hi 0.425 0.072 0.899 hi 0.421 0.582 0.214 hi 0.447 0.468 0.101"><pre class="notranslate"><code class="notranslate">print (dfb.round(3)) a b c low 0.087 0.230 0.411 low 0.311 0.566 0.545 low 0.807 0.918 0.522 hi 0.425 0.072 0.899 hi 0.421 0.582 0.214 hi 0.447 0.468 0.101 </code></pre></div> <hr> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print (pd.show_versions()) INSTALLED VERSIONS ------------------ commit: None python: 3.6.4.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel byteorder: little LC_ALL: None LANG: en LOCALE: None.None pandas: 0.23.1 pytest: 3.3.2 pip: 9.0.1 setuptools: 39.2.0 Cython: 0.27.3 numpy: 1.14.3 scipy: 1.0.0 pyarrow: None xarray: None IPython: 6.2.1 sphinx: 1.6.6 patsy: 0.5.0 dateutil: 2.7.3 pytz: 2018.4 blosc: None bottleneck: 1.2.1 tables: 3.4.2 numexpr: 2.6.4 feather: None matplotlib: 2.2.2 openpyxl: 2.4.10 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.0.2 lxml: 4.1.1 bs4: 4.6.0 html5lib: 1.0.1 sqlalchemy: 1.2.1 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None None"><pre class="notranslate"><code class="notranslate">print (pd.show_versions()) INSTALLED VERSIONS ------------------ commit: None python: 3.6.4.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel byteorder: little LC_ALL: None LANG: en LOCALE: None.None pandas: 0.23.1 pytest: 3.3.2 pip: 9.0.1 setuptools: 39.2.0 Cython: 0.27.3 numpy: 1.14.3 scipy: 1.0.0 pyarrow: None xarray: None IPython: 6.2.1 sphinx: 1.6.6 patsy: 0.5.0 dateutil: 2.7.3 pytz: 2018.4 blosc: None bottleneck: 1.2.1 tables: 3.4.2 numexpr: 2.6.4 feather: None matplotlib: 2.2.2 openpyxl: 2.4.10 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.0.2 lxml: 4.1.1 bs4: 4.6.0 html5lib: 1.0.1 sqlalchemy: 1.2.1 pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None None </code></pre></div>
<p dir="auto">Retrieving a dataframe previously stored in a HDFStore with a row label "nan" (string) is incorrectly retrieved as NaN.</p> <p dir="auto">My blog talks more about this issue: <a href="http://makeyourowntextminingtoolkit.blogspot.co.uk/2016/09/pandas-dataframe-hdfstore-bug.html" rel="nofollow">http://makeyourowntextminingtoolkit.blogspot.co.uk/2016/09/pandas-dataframe-hdfstore-bug.html</a></p> <p dir="auto">Note: to_pickle() fails for lathe dataframes, hence HDF5</p> <h1 dir="auto">create dataframe and store it</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas df1 = pandas.DataFrame() df1.ix['apple', '001'] = 0.1 df1.ix['banana', '001'] = 0.2 df1.ix['apple', '002'] = 0.3 df1.ix['banana', '002'] = 0.7 df1.ix['nan', '001'] = 0.5 df1 001 002 apple 0.1 0.3 banana 0.2 0.7 nan 0.5 NaN s = pandas.HDFStore('test') s['index'] = df1 s.close()"><pre class="notranslate"><code class="notranslate">import pandas df1 = pandas.DataFrame() df1.ix['apple', '001'] = 0.1 df1.ix['banana', '001'] = 0.2 df1.ix['apple', '002'] = 0.3 df1.ix['banana', '002'] = 0.7 df1.ix['nan', '001'] = 0.5 df1 001 002 apple 0.1 0.3 banana 0.2 0.7 nan 0.5 NaN s = pandas.HDFStore('test') s['index'] = df1 s.close() </code></pre></div> <h1 dir="auto">now retrieve it</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas s = pandas.HDFStore('test') s &lt;class 'pandas.io.pytables.HDFStore'&gt; File path: test /index frame (shape-&gt;[3,2]) df2 = s['index'] s.close() del s df2 001 002 apple 0.1 0.3 banana 0.2 0.7 NaN 0.5 NaN"><pre class="notranslate"><code class="notranslate">import pandas s = pandas.HDFStore('test') s &lt;class 'pandas.io.pytables.HDFStore'&gt; File path: test /index frame (shape-&gt;[3,2]) df2 = s['index'] s.close() del s df2 001 002 apple 0.1 0.3 banana 0.2 0.7 NaN 0.5 NaN </code></pre></div> <p dir="auto">That <strong>NaN</strong> should be a string "<em>nan</em>" just like "<em>banana</em>" and "<em>apple</em>".</p> <h1 dir="auto">workaround</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df2.index = df2.index.astype(str) df2 001 002 apple 0.1 0.3 banana 0.2 0.7 nan 0.5 NaN"><pre class="notranslate"><code class="notranslate">df2.index = df2.index.astype(str) df2 001 002 apple 0.1 0.3 banana 0.2 0.7 nan 0.5 NaN </code></pre></div> <h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4> <p dir="auto">This is the latest anaconda python 3.5 64bit for MacOSX.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 26.1.1 Cython: 0.24.1 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.6.1 xarray: None IPython: 5.1.0 sphinx: 1.4.1 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.1.0 tables: 3.2.3.1 numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.2 lxml: 3.6.4 bs4: 4.5.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.42.0 pandas_datareader: None"><pre class="notranslate"><code class="notranslate">INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 26.1.1 Cython: 0.24.1 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.6.1 xarray: None IPython: 5.1.0 sphinx: 1.4.1 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.1.0 tables: 3.2.3.1 numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.2 lxml: 3.6.4 bs4: 4.5.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.42.0 pandas_datareader: None </code></pre></div>
0
<p dir="auto">Hi,</p> <p dir="auto">I am getting an exception when I try to execute following code</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="runOnDraw(new Runnable() { @Override public void run() { Glide.with(mContext) .load(mResIds.get(0)) .asBitmap() .into(new SimpleTarget&lt;Bitmap&gt;() { @Override public void onResourceReady(Bitmap resource, GlideAnimation&lt;? super Bitmap&gt;glideAnimation) { //Bitmap b = BitmapFactory.decodeResource(mContext.getResources(), mResIds.get(0)); filterSourceTexture2 = OpenGlUtils.loadTexture(resource, OpenGlUtils.NO_TEXTURE, true); } }); } });"><pre class="notranslate"><span class="pl-en">runOnDraw</span>(<span class="pl-k">new</span> <span class="pl-smi">Runnable</span>() { <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">run</span>() { <span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-s1">mContext</span>) .<span class="pl-en">load</span>(<span class="pl-s1">mResIds</span>.<span class="pl-en">get</span>(<span class="pl-c1">0</span>)) .<span class="pl-en">asBitmap</span>() .<span class="pl-en">into</span>(<span class="pl-k">new</span> <span class="pl-smi">SimpleTarget</span>&lt;<span class="pl-smi">Bitmap</span>&gt;() { <span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">onResourceReady</span>(<span class="pl-smi">Bitmap</span> <span class="pl-s1">resource</span>, <span class="pl-smi">GlideAnimation</span>&lt;? <span class="pl-en">super</span> <span class="pl-smi">Bitmap</span>&gt;<span class="pl-s1">glideAnimation</span>) { <span class="pl-c">//Bitmap b = BitmapFactory.decodeResource(mContext.getResources(), mResIds.get(0));</span> <span class="pl-s1">filterSourceTexture2</span> = <span class="pl-smi">OpenGlUtils</span>.<span class="pl-en">loadTexture</span>(<span class="pl-s1">resource</span>, <span class="pl-smi">OpenGlUtils</span>.<span class="pl-c1">NO_TEXTURE</span>, <span class="pl-c1">true</span>); } }); } });</pre></div> <p dir="auto">The Exception I am getting is "It should be called on main thread"</p> <p dir="auto">how to fix it?</p>
<p dir="auto">It is interesting to see how some applications like A+Gallery or QuickPic show images loaded into the disk cache very fast and smooth.<br> Imagine I have 1000 images.<br> They are shown inside a ListView or RecyclerView.<br> About 20 to 50 images gonna appear on the screen.<br> On scroll I get to the images that are not inside memory cache anymore because memory cache is now filled with scrolled images.<br> So memory cache is limited and it could be customized but carefully which is not my concern now.<br> What I noticed about A+Gallery and QuickPic is that they show images like they are available inside memory cache which is impossible by the size of provided memory cache that these days' devices provide for each application.<br> So It left me with this idea that these apps loading memory cache from disk cache as soon as ListView or RecyclerView or GridView gets close to the end of the available bitmaps inside memory cache.<br> Glide loads new images from disk cache if they are not in memory cache, which will happen if users scroll on many images in one direction.<br> If explained feature is already implemented into the Glide, please help me to know how to load Glide's memory cache from its disk cache to prevent fast scrolling show empty items or placeholders.<br> And if Glide doesn't have such a feature yet I would like to know your idea about requested feature is it doable or I'm wrong about mentioned apps. Thank you</p>
0
<p dir="auto">When I have a Component that takes more just RouteParams in its constructor, I get a TypeScript definition error in the editor. The code runs, but the typings file likely needs to be updated. here is my component<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1202528/9726595/14a1fdb0-55c3-11e5-88da-0052dfcd2727.png"><img src="https://cloud.githubusercontent.com/assets/1202528/9726595/14a1fdb0-55c3-11e5-88da-0052dfcd2727.png" alt="2015-09-08_00-45-07" style="max-width: 100%;"></a></p> <p dir="auto">And here is the red underlines in the RouteConfig.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1202528/9726594/121521a8-55c3-11e5-84bc-b3815ee02bed.png"><img src="https://cloud.githubusercontent.com/assets/1202528/9726594/121521a8-55c3-11e5-84bc-b3815ee02bed.png" alt="2015-09-08_00-44-48" style="max-width: 100%;"></a></p>
<p dir="auto">I'm a bit puzzled about this one. I think it appeared on alpha 34. I didn't upgrade by then.<br> Now I updated to angular alpha35, "systemjs-builder": "^0.13","systemjs": "^0.18.10".</p> <p dir="auto">With a simple route config like</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@RouteConfig([ {path: '/', redirectTo:'/login'}, {path: '/login', component: LoginView, as:'login'} ])"><pre class="notranslate">@<span class="pl-v">RouteConfig</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">redirectTo</span>:<span class="pl-s">'/login'</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">'/login'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">LoginView</span><span class="pl-kos">,</span> <span class="pl-c1">as</span>:<span class="pl-s">'login'</span><span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">)</span></pre></div> <p dir="auto">I got a compilation error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="app/app.ts(56,14): error TS2345: Argument of type '({ path: string; redirectTo: string; } | { path: string; component: typeof LoginView; as: string;...' is not assignable to parameter of type 'List&lt;RouteDefinition&gt;'. Types of property 'push' are incompatible. Type '(...items: ({ path: string; redirectTo: string; } | { path: string; component: typeof LoginView; ...' is not assignable to type '(...items: RouteDefinition[]) =&gt; number'. Types of parameters 'items' and 'items' are incompatible. Type '{ path: string; redirectTo: string; } | { path: string; component: typeof LoginView; as: string; ...' is not assignable to type 'RouteDefinition'. Type '{ path: string; component: typeof LoginView; as: string; }' is not assignable to type 'RouteDefinition'. Types of property 'component' are incompatible. Type 'typeof LoginView' is not assignable to type 'Type | ComponentDefinition'. Type 'typeof LoginView' is not assignable to type 'ComponentDefinition'."><pre class="notranslate"><code class="notranslate">app/app.ts(56,14): error TS2345: Argument of type '({ path: string; redirectTo: string; } | { path: string; component: typeof LoginView; as: string;...' is not assignable to parameter of type 'List&lt;RouteDefinition&gt;'. Types of property 'push' are incompatible. Type '(...items: ({ path: string; redirectTo: string; } | { path: string; component: typeof LoginView; ...' is not assignable to type '(...items: RouteDefinition[]) =&gt; number'. Types of parameters 'items' and 'items' are incompatible. Type '{ path: string; redirectTo: string; } | { path: string; component: typeof LoginView; as: string; ...' is not assignable to type 'RouteDefinition'. Type '{ path: string; component: typeof LoginView; as: string; }' is not assignable to type 'RouteDefinition'. Types of property 'component' are incompatible. Type 'typeof LoginView' is not assignable to type 'Type | ComponentDefinition'. Type 'typeof LoginView' is not assignable to type 'ComponentDefinition'. </code></pre></div> <p dir="auto">The only work around I found was to provide my own router.d.ts file with the following fix:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="interface RouteDefinition { path: string; component?: Type | ComponentDefinition | any; //&lt;= added any here loader?: Function; redirectTo?: string; as?: string; data?: any; }"><pre class="notranslate"><code class="notranslate">interface RouteDefinition { path: string; component?: Type | ComponentDefinition | any; //&lt;= added any here loader?: Function; redirectTo?: string; as?: string; data?: any; } </code></pre></div> <p dir="auto">The LoginView view has nothing special</p>
1
<p dir="auto">While rebuilding packages with Python 3.9.0 on macOS Homebrew (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="718139045" data-permission-text="Title is private" data-url="https://github.com/Homebrew/homebrew-core/issues/62560" data-hovercard-type="pull_request" data-hovercard-url="/Homebrew/homebrew-core/pull/62560/hovercard" href="https://github.com/Homebrew/homebrew-core/pull/62560">Homebrew/homebrew-core#62560</a>), we are seeing a failure to build scipy 1.5.2.</p> <h4 dir="auto">Reproducing code example:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/local/opt/[email protected]/bin/python3 setup.py build --fcompiler=gnu95"><pre class="notranslate"><code class="notranslate">/usr/local/opt/[email protected]/bin/python3 setup.py build --fcompiler=gnu95 </code></pre></div> <h4 dir="auto">Error message:</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c:175:5: error: implicit declaration of function 'ccopy_' is invalid in C99 [-Werror,-Wimplicit-function-declaration] scipy/sparse/linalg/dsolve/SuperLU/SRC/dmach.c:62:9: error: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Werror,-Wimplicit-function-declaration] scipy/sparse/linalg/dsolve/SuperLU/SRC/ilu_cdrop_row.c:196:3: error: implicit declaration of function 'scopy_' is invalid in C99 [-Werror,-Wimplicit-function-declaration] scipy/sparse/linalg/dsolve/SuperLU/SRC/ilu_zdrop_row.c:196:3: error: implicit declaration of function 'dcopy_' is invalid in C99 [-Werror,-Wimplicit-function-declaration] scipy/sparse/linalg/dsolve/SuperLU/SRC/smach.c:62:9: error: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Werror,-Wimplicit-function-declaration] scipy/sparse/linalg/dsolve/SuperLU/SRC/zlacon2.c:175:5: error: implicit declaration of function 'zcopy_' is invalid in C99 [-Werror,-Wimplicit-function-declaration] scipy/sparse/linalg/dsolve/SuperLU/SRC/slacon2.c:160:16: error: implicit declaration of function 'idamax_' is invalid in C99 [-Werror,-Wimplicit-function-declaration]"><pre class="notranslate"><code class="notranslate">scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c:175:5: error: implicit declaration of function 'ccopy_' is invalid in C99 [-Werror,-Wimplicit-function-declaration] scipy/sparse/linalg/dsolve/SuperLU/SRC/dmach.c:62:9: error: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Werror,-Wimplicit-function-declaration] scipy/sparse/linalg/dsolve/SuperLU/SRC/ilu_cdrop_row.c:196:3: error: implicit declaration of function 'scopy_' is invalid in C99 [-Werror,-Wimplicit-function-declaration] scipy/sparse/linalg/dsolve/SuperLU/SRC/ilu_zdrop_row.c:196:3: error: implicit declaration of function 'dcopy_' is invalid in C99 [-Werror,-Wimplicit-function-declaration] scipy/sparse/linalg/dsolve/SuperLU/SRC/smach.c:62:9: error: implicitly declaring library function 'strncmp' with type 'int (const char *, const char *, unsigned long)' [-Werror,-Wimplicit-function-declaration] scipy/sparse/linalg/dsolve/SuperLU/SRC/zlacon2.c:175:5: error: implicit declaration of function 'zcopy_' is invalid in C99 [-Werror,-Wimplicit-function-declaration] scipy/sparse/linalg/dsolve/SuperLU/SRC/slacon2.c:160:16: error: implicit declaration of function 'idamax_' is invalid in C99 [-Werror,-Wimplicit-function-declaration] </code></pre></div>
<p dir="auto">Xcode 12 for OS X was just released, and I can't build scipy with it. The command <code class="notranslate">pip3 install . -v --user</code> fails, ending with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" error: Command &quot;clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DUSE_VENDOR_BLAS=1 -Iscipy/sparse/linalg/dsolve/SuperLU/SRC -I/private/var/folders/cp/n8wtqs490tq5psknff1hv9qr0000gn/T/pip-build-env-k4q2ai5g/overlay/lib/python3.8/site-packages/numpy/core/include -c scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c -o build/temp.macosx-10.15-x86_64-3.8/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o -MMD -MF build/temp.macosx-10.15-x86_64-3.8/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o.d&quot; failed with exit status 1 Building wheel for scipy (PEP 517): finished with status 'error' ERROR: Failed building wheel for scipy Failed to build scipy ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly"><pre class="notranslate"><code class="notranslate"> error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DUSE_VENDOR_BLAS=1 -Iscipy/sparse/linalg/dsolve/SuperLU/SRC -I/private/var/folders/cp/n8wtqs490tq5psknff1hv9qr0000gn/T/pip-build-env-k4q2ai5g/overlay/lib/python3.8/site-packages/numpy/core/include -c scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.c -o build/temp.macosx-10.15-x86_64-3.8/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o -MMD -MF build/temp.macosx-10.15-x86_64-3.8/scipy/sparse/linalg/dsolve/SuperLU/SRC/clacon2.o.d" failed with exit status 1 Building wheel for scipy (PEP 517): finished with status 'error' ERROR: Failed building wheel for scipy Failed to build scipy ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly </code></pre></div> <p dir="auto">This may be the same issue as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="671564581" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/12656" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/12656/hovercard" href="https://github.com/scipy/scipy/issues/12656">#12656</a> — at least the error at the end is the same — but that issue was closed while only providing the suggestion to use a different compiler.</p> <p dir="auto">I am using Xcode 12, plus homebrew's Python 3.8, pip3, and gfortran. Unfortunately, I am really trying to figure out how to get this to build in Sage (sagemath.org), and using a gcc toolchain instead of clang would be, at the least, very inconvenient.</p>
1
<h3 dir="auto"><g-emoji class="g-emoji" alias="computer" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4bb.png">💻</g-emoji></h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Would you like to work on a fix?</li> </ul> <h3 dir="auto">How are you using Babel?</h3> <p dir="auto">babel-loader (webpack)</p> <h3 dir="auto">Input code</h3> <p dir="auto">N/A</p> <h3 dir="auto">Configuration file name</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Configuration</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Current and expected behavior</h3> <p dir="auto">Application build has started breaking with @babel/[email protected], works fine on reverting to @babel/[email protected]</p> <p dir="auto">[object Object]<br> at isModuleDeclaration ( node_modules/@babel/types/lib/validators/generated/index.js:3939:11)<br> at PluginPass.Program ( node_modules/babel-plugin-lodash/lib/index.js:102:44)<br> at newFn ( node_modules/@babel/traverse/lib/visitors.js:148:21)<br> at NodePath._call ( node_modules/@babel/traverse/lib/path/context.js:45:20)<br> at NodePath.call ( node_modules/@babel/traverse/lib/path/context.js:35:17)<br> at NodePath.visit ( node_modules/@babel/traverse/lib/path/context.js:80:31)<br> at TraversalContext.visitQueue ( node_modules/@babel/traverse/lib/context.js:86:16)<br> at TraversalContext.visitSingle ( node_modules/@babel/traverse/lib/context.js:65:19)<br> at TraversalContext.visit ( node_modules/@babel/traverse/lib/context.js:109:19)<br> at traverseNode ( node_modules/@babel/traverse/lib/traverse-node.js:18:17)<br> at traverse ( node_modules/@babel/traverse/lib/index.js:49:34)<br> at transformFile ( node_modules/@babel/core/lib/transformation/index.js:81:29)<br> at transformFile.next (:null:null)<br> at run ( node_modules/@babel/core/lib/transformation/index.js:24:12)<br> at run.next (:null:null)<br> at transform ( node_modules/@babel/core/lib/transform.js:22:41)<br> at transform.next (:null:null)<br> at step ( node_modules/gensync/index.js:261:32)<br> at node_modules/gensync/index.js:273:13<br> at async.call.result.err.err ( node_modules/gensync/index.js:223:11)</p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Babel version [7.21.0]</li> </ul> <h3 dir="auto">Possible solution</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional context</h3> <p dir="auto"><em>No response</em></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20358391/220269773-94d0257f-4ebf-4671-8750-27ef621c9ad4.png"><img width="1137" alt="image" src="https://user-images.githubusercontent.com/20358391/220269773-94d0257f-4ebf-4671-8750-27ef621c9ad4.png" style="max-width: 100%;"></a></p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1492649843" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/15266" data-hovercard-type="pull_request" data-hovercard-url="/babel/babel/pull/15266/hovercard" href="https://github.com/babel/babel/pull/15266">babel/babel#15266</a></p> <p dir="auto"><code class="notranslate">@babel/types</code> v7.21.0, <code class="notranslate">isModuleDeclaration</code> has been deprecated, the terminal has the following warning.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Trace: `isModuleDeclaration` has been deprecated, please migrate to `isImportOrExportDeclaration`."><pre class="notranslate">Trace: <span class="pl-s"><span class="pl-pds">`</span>isModuleDeclaration<span class="pl-pds">`</span></span> has been deprecated, please migrate to <span class="pl-s"><span class="pl-pds">`</span>isImportOrExportDeclaration<span class="pl-pds">`</span></span>.</pre></div>
1
<p dir="auto">I am able to see the landscape mode properly but portrait mode also showing preview as<br> landscape mode.</p> <p dir="auto">I am doing camera frames processing dynamically.</p> <h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li> <li>Operating System / Platform =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li> <li>Compiler =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li> </ul> <h5 dir="auto">Detailed description</h5> <h5 dir="auto">Steps to reproduce</h5>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li> <li>Operating System / Platform =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li> <li>Compiler =&gt; ❔</li> </ul> <h5 dir="auto">Detailed description</h5> <h5 dir="auto">Steps to reproduce</h5>
0
<p dir="auto">Needs some API tweaking since the Clipboard's APIs are asynchronous.</p>
<p dir="auto">A user is reporting that launching URLs on his OnePlus 5 (running Android 8.1) has a 2 second delay before launching. On my LG Stylo 2 (5.1) it is instant, as it is on my iPhone 5c running iOS 10.</p> <p dir="auto">I have tried both of these and they produce the same results.</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" void _launchURL(String url) async { try{ launch(url); print('launched $url'); } catch (e){ print('Cannot launch $url'); print(e); } }"><pre class="notranslate"> <span class="pl-k">void</span> <span class="pl-en">_launchURL</span>(<span class="pl-c1">String</span> url) <span class="pl-k">async</span> { <span class="pl-k">try</span>{ <span class="pl-en">launch</span>(url); <span class="pl-en">print</span>(<span class="pl-s">'launched $<span class="pl-v">url</span>'</span>); } <span class="pl-k">catch</span> (e){ <span class="pl-en">print</span>(<span class="pl-s">'Cannot launch $<span class="pl-v">url</span>'</span>); <span class="pl-en">print</span>(e); } }</pre></div> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" void _launchURL(String url) async { print(url); if (await canLaunch(url)) { await launch(url); } else { throw 'Could not launch $url'; } }"><pre class="notranslate"> <span class="pl-k">void</span> <span class="pl-en">_launchURL</span>(<span class="pl-c1">String</span> url) <span class="pl-k">async</span> { <span class="pl-en">print</span>(url); <span class="pl-k">if</span> (<span class="pl-k">await</span> <span class="pl-en">canLaunch</span>(url)) { <span class="pl-k">await</span> <span class="pl-en">launch</span>(url); } <span class="pl-k">else</span> { <span class="pl-k">throw</span> <span class="pl-s">'Could not launch $<span class="pl-v">url</span>'</span>; } }</pre></div>
0
<p dir="auto">It seems that one of the likeable features of TypeScript, compared to Babel lets say, is that it emits readable code.</p> <p dir="auto">Consider the following code:</p> <p dir="auto">X.ts:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="namespace a.b.x { class X { } }"><pre class="notranslate"><span class="pl-k">namespace</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">x</span> <span class="pl-kos">{</span> <span class="pl-k">class</span> <span class="pl-smi">X</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Y.ts:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="namespace a.b.y { class y { } }"><pre class="notranslate"><span class="pl-k">namespace</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">y</span> <span class="pl-kos">{</span> <span class="pl-k">class</span> <span class="pl-smi">y</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">This emits:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var a; (function (a) { var b; (function (b) { var x; (function (x) { var X = (function () { function X() { } return X; })(); })(x = b.x || (b.x = {})); })(b = a.b || (a.b = {})); })(a || (a = {})); var a; (function (a) { var b; (function (b) { var y; (function (y_1) { var y = (function () { function y() { } return y; })(); })(y = b.y || (b.y = {})); })(b = a.b || (a.b = {})); })(a || (a = {}));"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">a</span><span class="pl-kos">;</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-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">b</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">function</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">var</span> <span class="pl-s1">x</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">function</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-k">var</span> <span class="pl-v">X</span> <span class="pl-c1">=</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">function</span> <span class="pl-v">X</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-v">X</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-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span><span class="pl-kos">.</span><span class="pl-c1">x</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-s1">b</span><span class="pl-kos">.</span><span class="pl-c1">x</span> <span class="pl-c1">=</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-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span><span class="pl-kos">.</span><span class="pl-c1">b</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">.</span><span class="pl-c1">b</span> <span class="pl-c1">=</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-s1">a</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-s1">a</span> <span class="pl-c1">=</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">var</span> <span class="pl-s1">a</span><span class="pl-kos">;</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-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">b</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">function</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">var</span> <span class="pl-s1">y</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">y_1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">y</span> <span class="pl-c1">=</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">function</span> <span class="pl-s1">y</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">y</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-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span><span class="pl-kos">.</span><span class="pl-c1">y</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-s1">b</span><span class="pl-kos">.</span><span class="pl-c1">y</span> <span class="pl-c1">=</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-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span><span class="pl-kos">.</span><span class="pl-c1">b</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">.</span><span class="pl-c1">b</span> <span class="pl-c1">=</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-s1">a</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-s1">a</span> <span class="pl-c1">=</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">There's a lot of code redundancy, which can really clutter the emitted output for projects that rely heavily on namespaces.</p> <p dir="auto">Wouldn't it be nice if we could just do something like this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="namespace a.b { export namespace x { /// include X.ts } export namespace y { /// include Y.ts } }"><pre class="notranslate"><span class="pl-k">namespace</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-k">export</span> <span class="pl-k">namespace</span> <span class="pl-s1">x</span> <span class="pl-kos">{</span> <span class="pl-c">/// include X.ts</span> <span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-k">namespace</span> <span class="pl-s1">y</span> <span class="pl-kos">{</span> <span class="pl-c">/// include Y.ts</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">The include statement simply places the included file into the script during pre-compilation.</p> <p dir="auto">My guess is that this is already partly implemented with <code class="notranslate">/// reference</code>, only that <code class="notranslate">///reference</code> doesn't seem to work unless it's either the first line, or one succeeding another <code class="notranslate">/// reference</code>.</p>
<p dir="auto">We have a typescript application and a use a file per class. There are lots of benefits to this the major one being source control conflict reduction.</p> <p dir="auto">We compile our app using the --out compiler flag but I think there is room for some serious optimization of the compilers output for modules.</p> <p dir="auto">Currently if you have two classes defined in separate files the compile generates the following JavaScript.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var Example; (function (Example) { (function (Nested) { (function (Issue) { var bar = (function () { function bar() { } return bar; })(); Issue.bar = bar; })(Nested.Issue || (Nested.Issue = {})); var Issue = Nested.Issue; })(Example.Nested || (Example.Nested = {})); var Nested = Example.Nested; })(Example || (Example = {})); var Example; (function (Example) { (function (Nested) { (function (Issue) { var foo = (function () { function foo() { } return foo; })(); Issue.foo = foo; })(Nested.Issue || (Nested.Issue = {})); var Issue = Nested.Issue; })(Example.Nested || (Example.Nested = {})); var Nested = Example.Nested; })(Example || (Example = {}));"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">Example</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Example</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-kos">(</span><span class="pl-v">Nested</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-kos">(</span><span class="pl-v">Issue</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">bar</span> <span class="pl-c1">=</span> <span class="pl-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">function</span> <span class="pl-s1">bar</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">bar</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-v">Issue</span><span class="pl-kos">.</span><span class="pl-c1">bar</span> <span class="pl-c1">=</span> <span class="pl-s1">bar</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span> <span class="pl-c1">=</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">var</span> <span class="pl-v">Issue</span> <span class="pl-c1">=</span> <span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span> <span class="pl-c1">=</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">var</span> <span class="pl-v">Nested</span> <span class="pl-c1">=</span> <span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Example</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Example</span> <span class="pl-c1">=</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">var</span> <span class="pl-v">Example</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Example</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-kos">(</span><span class="pl-v">Nested</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-kos">(</span><span class="pl-v">Issue</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">foo</span> <span class="pl-c1">=</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">function</span> <span class="pl-s1">foo</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">foo</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-v">Issue</span><span class="pl-kos">.</span><span class="pl-c1">foo</span> <span class="pl-c1">=</span> <span class="pl-s1">foo</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span> <span class="pl-c1">=</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">var</span> <span class="pl-v">Issue</span> <span class="pl-c1">=</span> <span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span> <span class="pl-c1">=</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">var</span> <span class="pl-v">Nested</span> <span class="pl-c1">=</span> <span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Example</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Example</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">I suggest a compiler flag that composes all classes/ functions etc under a single module declaration? So the output code would be like the example below. This would dramatically reduce the size of the JavaScript the compiler outputs. I estimate that our app which currently compiles to around 15,000 lines of probably be only be 2000 lines if this were available.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var Example; (function (Example) { (function (Nested) { (function (Issue) { var bar = (function () { function bar() { } return bar; })(); Issue.bar = bar; var foo = (function () { function foo() { } return foo; })(); Issue.foo = foo; })(Nested.Issue || (Nested.Issue = {})); var Issue = Nested.Issue; })(Example.Nested || (Example.Nested = {})); var Nested = Example.Nested; })(Example || (Example = {}));"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">Example</span><span class="pl-kos">;</span> <span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-v">Example</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-kos">(</span><span class="pl-v">Nested</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-kos">(</span><span class="pl-v">Issue</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">bar</span> <span class="pl-c1">=</span> <span class="pl-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">function</span> <span class="pl-s1">bar</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">bar</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-v">Issue</span><span class="pl-kos">.</span><span class="pl-c1">bar</span> <span class="pl-c1">=</span> <span class="pl-s1">bar</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">foo</span> <span class="pl-c1">=</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">function</span> <span class="pl-s1">foo</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">foo</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-v">Issue</span><span class="pl-kos">.</span><span class="pl-c1">foo</span> <span class="pl-c1">=</span> <span class="pl-s1">foo</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span> <span class="pl-c1">=</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">var</span> <span class="pl-v">Issue</span> <span class="pl-c1">=</span> <span class="pl-v">Nested</span><span class="pl-kos">.</span><span class="pl-c1">Issue</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span> <span class="pl-c1">=</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">var</span> <span class="pl-v">Nested</span> <span class="pl-c1">=</span> <span class="pl-v">Example</span><span class="pl-kos">.</span><span class="pl-c1">Nested</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-v">Example</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-v">Example</span> <span class="pl-c1">=</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>
1
<h3 dir="auto">What version of Go are you using (<code class="notranslate">go version</code>)?</h3> <p dir="auto">Tested on go1.6 darwin/amd64 and go1.6 linux/amd64</p> <h3 dir="auto">What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?</h3> <p dir="auto">Mac:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GOARCH=&quot;amd64&quot; GOBIN=&quot;&quot; GOEXE=&quot;&quot; GOHOSTARCH=&quot;amd64&quot; GOHOSTOS=&quot;darwin&quot; GOOS=&quot;darwin&quot; GOPATH=&quot;/Users/bobbyz/projects/community/go:/Users/bobbyz/projects/bztech/go:/Users/bobbyz/projects/bobbyz/go&quot; GORACE=&quot;&quot; GOROOT=&quot;/usr/local/go&quot; GOTOOLDIR=&quot;/usr/local/go/pkg/tool/darwin_amd64&quot; GO15VENDOREXPERIMENT=&quot;1&quot; CC=&quot;clang&quot; GOGCCFLAGS=&quot;-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common&quot; CXX=&quot;clang++&quot; CGO_ENABLED=&quot;1&quot;"><pre class="notranslate"><code class="notranslate">GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOOS="darwin" GOPATH="/Users/bobbyz/projects/community/go:/Users/bobbyz/projects/bztech/go:/Users/bobbyz/projects/bobbyz/go" GORACE="" GOROOT="/usr/local/go" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" GO15VENDOREXPERIMENT="1" CC="clang" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common" CXX="clang++" CGO_ENABLED="1" </code></pre></div> <p dir="auto">Linux:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GOARCH=&quot;amd64&quot; GOBIN=&quot;&quot; GOEXE=&quot;&quot; GOHOSTARCH=&quot;amd64&quot; GOHOSTOS=&quot;linux&quot; GOOS=&quot;linux&quot; GOPATH=&quot;/home/bobbyz/gopath/&quot; GORACE=&quot;&quot; GOROOT=&quot;/usr/local/go&quot; GOTOOLDIR=&quot;/usr/local/go/pkg/tool/linux_amd64&quot; GO15VENDOREXPERIMENT=&quot;1&quot; CC=&quot;gcc&quot; GOGCCFLAGS=&quot;-fPIC -m64 -pthread -fmessage-length=0&quot; CXX=&quot;g++&quot; CGO_ENABLED=&quot;1&quot;"><pre class="notranslate"><code class="notranslate">GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/bobbyz/gopath/" GORACE="" GOROOT="/usr/local/go" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GO15VENDOREXPERIMENT="1" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0" CXX="g++" CGO_ENABLED="1" </code></pre></div> <h3 dir="auto">What did you do?</h3> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// This is an exact, unaltered copy-paste of the code I'm running. I trimmed my live code // down to just this function body in order to test/reproduce func (l *logger) close(timeout time.Duration) error { fmt.Println(&quot;before select&quot;) select { case &lt;-time.After(time.Second): fmt.Println(&quot;timeout occurred&quot;) return errors.New(&quot;timeout&quot;) } }"><pre class="notranslate"><span class="pl-c">// This is an exact, unaltered copy-paste of the code I'm running. I trimmed my live code</span> <span class="pl-c">// down to just this function body in order to test/reproduce</span> <span class="pl-k">func</span> (<span class="pl-s1">l</span> <span class="pl-c1">*</span><span class="pl-smi">logger</span>) <span class="pl-en">close</span>(<span class="pl-s1">timeout</span> time.<span class="pl-smi">Duration</span>) <span class="pl-smi">error</span> { <span class="pl-s1">fmt</span>.<span class="pl-en">Println</span>(<span class="pl-s">"before select"</span>) <span class="pl-k">select</span> { <span class="pl-k">case</span> <span class="pl-c1">&lt;-</span><span class="pl-s1">time</span>.<span class="pl-en">After</span>(<span class="pl-s1">time</span>.<span class="pl-c1">Second</span>): <span class="pl-s1">fmt</span>.<span class="pl-en">Println</span>(<span class="pl-s">"timeout occurred"</span>) <span class="pl-k">return</span> <span class="pl-s1">errors</span>.<span class="pl-en">New</span>(<span class="pl-s">"timeout"</span>) } }</pre></div> <h3 dir="auto">What did you expect to see?</h3> <p dir="auto">I should see "before select" printed. Then after 1 second, I should see "timeout occurred" printed.</p> <h3 dir="auto">What did you see instead?</h3> <p dir="auto">I see "before select" printed. Nothing else prints and the program never exits. This is definitely the only function in my code that prints "before select", so the close method is called, but the channel read from the time.After channel never happens. I've noticed the program spins my CPU at 100% while I'm waiting for the timeout that never occurs.</p> <h3 dir="auto">Other</h3> <p dir="auto">I can only reproduce this when I add a panic() to one of my functions and recover from the panic. The "close" method shown above runs on program termination, after the panic recovery. If I modify the panicking code to return nil in place of the panic, I can't reproduce. That portion of code is outside of this close method. I also can't reproduce if I remove the select and read directly from the channel.</p> <p dir="auto">I ripped apart my code trying to find the cause of the hanging select. I uploaded a functioning but mangled/stripped copy of the code to <a href="https://github.com/bobziuchkovski/golang-select-repro">https://github.com/bobziuchkovski/golang-select-repro</a>. The code itself hardly makes sense anymore, but it runs and reproduces the hanging select about 1 in 8 times on my laptop.</p> <p dir="auto">The select in question is in logger.go on line 110. The panic is triggered in main.go on line 45. If I comment-out that panic, I can't reproduce the hanging select. The close method with the select in question is triggered indirectly via line 40 of main.go</p>
<p dir="auto">The plan9/mksysnum_plan9.sh script has a duplicated, mangled copyright header:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file.# Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file."><pre class="notranslate"><code class="notranslate"># Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file.# Copyright 2009 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. </code></pre></div>
0
<p dir="auto">This <a href="https://gist.github.com/Gerhut/0a5b94f81b84617ac23c">gist</a> records my input file &amp; output files when using <code class="notranslate">common</code> and <code class="notranslate">system</code> module option.</p> <p dir="auto">In <a href="https://gist.github.com/Gerhut/0a5b94f81b84617ac23c#file-output-common-js-L31">Line 31 of output-common.js</a>, it compiles 'for (let b of a())' to</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for (var _iterator = a()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)"><pre class="notranslate"><span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">var</span> <span class="pl-s1">_iterator</span> <span class="pl-c1">=</span> <span class="pl-en">a</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">[</span><span class="pl-v">Symbol</span><span class="pl-kos">.</span><span class="pl-c1">iterator</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">_step</span><span class="pl-kos">;</span> <span class="pl-c1">!</span><span class="pl-kos">(</span><span class="pl-s1">_iteratorNormalCompletion</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">_step</span> <span class="pl-c1">=</span> <span class="pl-s1">_iterator</span><span class="pl-kos">.</span><span class="pl-en">next</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">done</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">_iteratorNormalCompletion</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos"></span></pre></div> <p dir="auto">But in <a href="https://gist.github.com/Gerhut/0a5b94f81b84617ac23c#file-output-system-js-L37">Line 37 of output-system.js</a>, it compiles to</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for (_iterator; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true)"><pre class="notranslate"><span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-s1">_iterator</span><span class="pl-kos">;</span> <span class="pl-c1">!</span><span class="pl-kos">(</span><span class="pl-s1">_iteratorNormalCompletion</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">_step</span> <span class="pl-c1">=</span> <span class="pl-s1">_iterator</span><span class="pl-kos">.</span><span class="pl-en">next</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">done</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">_iteratorNormalCompletion</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos"></span></pre></div> <p dir="auto">without initialize of <code class="notranslate">_iterator</code>, lead to a <code class="notranslate">Cannot read property 'next' of undefined()</code> error.</p> <p dir="auto">My Babel compiler version is 5.6.14</p> <p dir="auto">Thank you for your work.</p>
<p dir="auto">Not sure if this is your bug. When calling babel for following example (loop.js) I got an unusable output.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for (let i = 0; i &lt; 10; i++) { console.log(i); }"><pre class="notranslate"><span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">let</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-s1">i</span> <span class="pl-c1">&lt;</span> <span class="pl-c1">10</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</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></pre></div> <p dir="auto">Using babel 5.6.14 (Windows) with modules system</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="babel loop.js --modules system"><pre class="notranslate"><code class="notranslate">babel loop.js --modules system </code></pre></div> <p dir="auto">Output: Variable i is never initialized, console.log is never called</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="System.register([], function (_export) { &quot;use strict&quot;; var i; return { setters: [], execute: function () { for (i; i &lt; 10; i++) { console.log(i); } } }; });"><pre class="notranslate"><span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">register</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-kos">(</span><span class="pl-s1">_export</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">i</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-kos">{</span> <span class="pl-c1">setters</span>: <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-en">execute</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">for</span> <span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">;</span> <span class="pl-s1">i</span> <span class="pl-c1">&lt;</span> <span class="pl-c1">10</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</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-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">I was wondering if the "single-key/multi-use" functionality of <a href="https://github.com/ililim/dual-key-remap">dual-key-remap</a> might be something that would complement the Keyboard Manager.</p> <p dir="auto">The canonical usage example is to allow the <code class="notranslate">Capslock</code> key to be re-mapped to <code class="notranslate">Escape</code> when pressed, but <code class="notranslate">Ctrl</code> when held in combination with other keys (e.g. <code class="notranslate">Capslock + s</code> equals <code class="notranslate">Save</code>). With this type of mapping, the <code class="notranslate">Capslock</code> still functions as <code class="notranslate">Escape</code> if it is pressed/released as the last key in a combination. For example, assuming <code class="notranslate">Ctrl</code> is still also bound to <code class="notranslate">Ctrl</code>, the combination <code class="notranslate">Ctrl + Shift + Capslock</code> will open the Windows Task Manager.</p> <p dir="auto">I've been using it extensively for a couple of months and it has functioned flawlessly for me, without any gotchas.</p> <p dir="auto">I suspect it's not "mission-critical", but I've found it to be surprisingly helpful, with a lot of potential uses.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">I would like it to support mapping holding a key to a function, e.g. holding CapsLock key for a given period to switch input language</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">Hi, during training, I noticed that when specifiying weights for CrossEntropyLoss, using the 'mean' reduction produces a different loss output, compared to using the 'none' reduction and computing the mean manually.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch import torch.nn as nn logits = torch.randn((16, 5)) targets = torch.empty(16, dtype=torch.long).random_(5) weights = [1, 2, 3, 4, 5] cross_ent_mean = nn.CrossEntropyLoss(weight=torch.FloatTensor(weights), reduction='mean') loss_a = cross_ent_mean(logits, targets) print(loss_a) cross_ent = nn.CrossEntropyLoss(weight=torch.FloatTensor(weights), reduction='none') loss_b = cross_ent(logits, targets).mean() print(loss_b) assert torch.equal(loss_a, loss_b)"><pre class="notranslate"><code class="notranslate">import torch import torch.nn as nn logits = torch.randn((16, 5)) targets = torch.empty(16, dtype=torch.long).random_(5) weights = [1, 2, 3, 4, 5] cross_ent_mean = nn.CrossEntropyLoss(weight=torch.FloatTensor(weights), reduction='mean') loss_a = cross_ent_mean(logits, targets) print(loss_a) cross_ent = nn.CrossEntropyLoss(weight=torch.FloatTensor(weights), reduction='none') loss_b = cross_ent(logits, targets).mean() print(loss_b) assert torch.equal(loss_a, loss_b) </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">The loss computed by the two methods should be equal <code class="notranslate">torch.equal(loss_a, loss_b) = True</code></p> <h2 dir="auto">Environment</h2> <p dir="auto">Please copy and paste the output from our<br> <a href="https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py" rel="nofollow">environment collection script</a><br> (or fill out the checklist below manually).</p> <p dir="auto">You can get the script and run it with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py"><pre class="notranslate"><code class="notranslate">wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py # For security purposes, please check the contents of collect_env.py before running it. python collect_env.py </code></pre></div> <ul dir="auto"> <li>PyTorch Version (e.g., 1.0): 1.6.0.dev20200505+cu101</li> <li>OS (e.g., Linux): Windows 10</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): pip</li> <li>Build command you used (if compiling from source):</li> <li>Python version: 3.7.6</li> <li>CUDA/cuDNN version: CUDA 10.1 (irrelevant)</li> <li>GPU models and configuration: GTX970M (irrelevant)</li> <li>Any other relevant information:</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">It seems to be the problem with the weights as I tried out to assign the same weight to all the classes, however, theorectically, the weighted loss should be computed before applying the mean() operation.</p> <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/jlin27/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jlin27">@jlin27</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mruberry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mruberry">@mruberry</a></p>
<p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="485013489" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/25169" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/25169/hovercard" href="https://github.com/pytorch/pytorch/pull/25169">#25169</a>, we added <code class="notranslate">GloballyUniqueId</code> to encapsulate ids. We use something similar in <code class="notranslate">DistAutogradContainer</code> as well. We should consolidate these two and use a single GloballyUniqueId across the codebase.</p> <p dir="auto">cc <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></p>
0
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <ul dir="auto"> <li>Windows build number: 19042.421 (insider build)</li> <li>PowerToys version: 0.20</li> <li>PowerToy module: Start/Runner</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>Double click the PowerToys icon from Start menu</li> <li>Allow the app to try to load</li> <li>See error/debug message copied below.</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">PowerToys should run as usual.</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">Crash on startup.</p> <h2 dir="auto">Crashlog</h2> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19042.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/01/2020 16:50:18<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<p dir="auto">I can't seem to get any numpad shortcuts .. tried '1' and it really just fires on the '1' key.<br> Would expect something like 'numpad0' to 'numpad9'.</p> <p dir="auto">Guess it's a missing feature so far?</p>
<p dir="auto">We have zoom hotkeys set up using accelerators for <code class="notranslate">+</code>, <code class="notranslate">-</code>, and <code class="notranslate">0</code>. These work as expected, but not when someone presses <code class="notranslate">NumPadPlus</code>, <code class="notranslate">NumPadMinus</code>, or <code class="notranslate">NumPad0</code>. Seems that all number pad keys should map to the same accelerators.</p>
1
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">There is a weird behaviour of a backward function when performing a reduction operation (sum) on a dense tensor generated from the sparse one. For example, just multiplying the dense tensor by one causes the generation of the RuntimeError during the backward pass: <code class="notranslate">view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead.</code>. Weirdly enough if there are several sums for resulting dense tensor the problem disappears.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch idxs = torch.tensor([[0, 2, 3], [1, 1, 2], [2, 1, 4], [3, 5, 1]], device=0) values = torch.randn((4, 6, 5), device=0, requires_grad=True) sparse_tensor = torch.sparse_coo_tensor(indices=idxs.t(), values=values[idxs.split(split_size=1, dim=1)].squeeze(), size=values.shape) dense_tensor = torch.sparse.sum(sparse_tensor, dim=2).to_dense() dense_tensor = dense_tensor.sum(dim=1) # + dense_tensor.sum(dim=1) (dense_tensor * 1).sum().backward() # `view size is not compatible with input tensor's size and stride` # dense_tensor.sum().backward() # no exceptions observed"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-s1">idxs</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">tensor</span>([[<span class="pl-c1">0</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>], [<span class="pl-c1">2</span>, <span class="pl-c1">1</span>, <span class="pl-c1">4</span>], [<span class="pl-c1">3</span>, <span class="pl-c1">5</span>, <span class="pl-c1">1</span>]], <span class="pl-s1">device</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-s1">values</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">randn</span>((<span class="pl-c1">4</span>, <span class="pl-c1">6</span>, <span class="pl-c1">5</span>), <span class="pl-s1">device</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">requires_grad</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">sparse_tensor</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">sparse_coo_tensor</span>(<span class="pl-s1">indices</span><span class="pl-c1">=</span><span class="pl-s1">idxs</span>.<span class="pl-en">t</span>(), <span class="pl-s1">values</span><span class="pl-c1">=</span><span class="pl-s1">values</span>[<span class="pl-s1">idxs</span>.<span class="pl-en">split</span>(<span class="pl-s1">split_size</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">dim</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)].<span class="pl-en">squeeze</span>(), <span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-s1">values</span>.<span class="pl-s1">shape</span>) <span class="pl-s1">dense_tensor</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">sparse</span>.<span class="pl-en">sum</span>(<span class="pl-s1">sparse_tensor</span>, <span class="pl-s1">dim</span><span class="pl-c1">=</span><span class="pl-c1">2</span>).<span class="pl-en">to_dense</span>() <span class="pl-s1">dense_tensor</span> <span class="pl-c1">=</span> <span class="pl-s1">dense_tensor</span>.<span class="pl-en">sum</span>(<span class="pl-s1">dim</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c"># + dense_tensor.sum(dim=1)</span> (<span class="pl-s1">dense_tensor</span> <span class="pl-c1">*</span> <span class="pl-c1">1</span>).<span class="pl-en">sum</span>().<span class="pl-en">backward</span>() <span class="pl-c"># `view size is not compatible with input tensor's size and stride`</span> <span class="pl-c"># dense_tensor.sum().backward() # no exceptions observed</span></pre></div> <h2 dir="auto">Environment</h2> <p dir="auto">PyTorch Version is 1.2.0<br> OS: Ubuntu<br> Cuda: 10.1</p> <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/ssnl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ssnl">@ssnl</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</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/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/vincentqb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vincentqb">@vincentqb</a></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> <p dir="auto">Some PyTorch primitives expect the gradient passed in during the backward pass to be contiguous, but not all functions produce a contiguous gradient in their backward pass. When two incompatible functions -- one which returns a non-contiguous gradient in the backward pass, and another which expects a contiguous gradient as input to its backward pass -- are strung together, the autodifferentiation fails.<br> In particular, <code class="notranslate">permute</code> and <code class="notranslate">pad</code> don’t play well together, as the following example shows:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# short example to reproduce the error: import torch import torch.nn.functional as F inv = torch.zeros((3, 8), dtype=torch.float).requires_grad_() indices = torch.zeros((2, 3), dtype=torch.long) comb = torch.sparse.FloatTensor(indices, inv, (4, 4, 8)).to_dense() big = F.pad(comb, (0, 0, 1, 1, 1, 1)) shaped = big.view(-1, 8).permute(1, 0).unsqueeze(0) res = F.fold(shaped, output_size=(5, 5), kernel_size=(2, 2), padding=(1, 1)) res.sum().backward()"><pre class="notranslate"><span class="pl-c"># short example to reproduce the error:</span> <span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-k">import</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-s1">functional</span> <span class="pl-k">as</span> <span class="pl-v">F</span> <span class="pl-s1">inv</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">zeros</span>((<span class="pl-c1">3</span>, <span class="pl-c1">8</span>), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">torch</span>.<span class="pl-s1">float</span>).<span class="pl-en">requires_grad_</span>() <span class="pl-s1">indices</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">zeros</span>((<span class="pl-c1">2</span>, <span class="pl-c1">3</span>), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">torch</span>.<span class="pl-s1">long</span>) <span class="pl-s1">comb</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">sparse</span>.<span class="pl-v">FloatTensor</span>(<span class="pl-s1">indices</span>, <span class="pl-s1">inv</span>, (<span class="pl-c1">4</span>, <span class="pl-c1">4</span>, <span class="pl-c1">8</span>)).<span class="pl-en">to_dense</span>() <span class="pl-s1">big</span> <span class="pl-c1">=</span> <span class="pl-v">F</span>.<span class="pl-en">pad</span>(<span class="pl-s1">comb</span>, (<span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>)) <span class="pl-s1">shaped</span> <span class="pl-c1">=</span> <span class="pl-s1">big</span>.<span class="pl-en">view</span>(<span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">8</span>).<span class="pl-en">permute</span>(<span class="pl-c1">1</span>, <span class="pl-c1">0</span>).<span class="pl-en">unsqueeze</span>(<span class="pl-c1">0</span>) <span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-v">F</span>.<span class="pl-en">fold</span>(<span class="pl-s1">shaped</span>, <span class="pl-s1">output_size</span><span class="pl-c1">=</span>(<span class="pl-c1">5</span>, <span class="pl-c1">5</span>), <span class="pl-s1">kernel_size</span><span class="pl-c1">=</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>), <span class="pl-s1">padding</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>)) <span class="pl-s1">res</span>.<span class="pl-en">sum</span>().<span class="pl-en">backward</span>()</pre></div> <p dir="auto">which results in</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead. (view at ../aten/src/ATen/native/TensorShape.cpp:1185) frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) + 0x65 (0x7f0ab4b2eb15 in /usr/people/bnehoran/pytorch/torch/lib/libc10.so) frame #1: at::native::view(at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;) + 0x2fb (0x7f0ac8ce33cb in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #2: &lt;unknown function&gt; + 0x118f433 (0x7f0ac8edf433 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #3: &lt;unknown function&gt; + 0x11dfb17 (0x7f0ac8f2fb17 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #4: &lt;unknown function&gt; + 0x1054db3 (0x7f0ac8da4db3 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #5: at::native::sparse_mask_cpu(at::Tensor const&amp;, at::Tensor const&amp;) + 0x84 (0x7f0ac8da6614 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #6: &lt;unknown function&gt; + 0x126c8e3 (0x7f0ac8fbc8e3 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #7: &lt;unknown function&gt; + 0x11decb4 (0x7f0ac8f2ecb4 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #8: at::Tensor c10::Dispatcher::callUnboxed&lt;at::Tensor, at::Tensor const&amp;, at::Tensor const&amp;&gt;(c10::OperatorHandle const&amp;, at::Tensor const&amp;, at::Tensor const&amp;) const + 0xb2 (0x7f0acdfcac12 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_python.so) frame #9: &lt;unknown function&gt; + 0x2d94771 (0x7f0acaae4771 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #10: &lt;unknown function&gt; + 0x11decb4 (0x7f0ac8f2ecb4 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #11: at::native::to_dense_backward(at::Tensor const&amp;, at::Tensor const&amp;) + 0x21a (0x7f0ac8ca7b8a in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #12: &lt;unknown function&gt; + 0x12a4f53 (0x7f0ac8ff4f53 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #13: &lt;unknown function&gt; + 0x2b1a4be (0x7f0aca86a4be in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #14: &lt;unknown function&gt; + 0x11decb4 (0x7f0ac8f2ecb4 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #15: at::Tensor c10::Dispatcher::callUnboxed&lt;at::Tensor, at::Tensor const&amp;, at::Tensor const&amp;&gt;(c10::OperatorHandle const&amp;, at::Tensor const&amp;, at::Tensor const&amp;) const + 0xb2 (0x7f0acdfcac12 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_python.so) frame #16: torch::autograd::generated::ToDenseBackward::apply(std::vector&lt;at::Tensor, std::allocator&lt;at::Tensor&gt; &gt;&amp;&amp;) + 0xf9 (0x7f0aca6a06f9 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #17: &lt;unknown function&gt; + 0x2feebdb (0x7f0acad3ebdb in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #18: torch::autograd::Engine::evaluate_function(std::shared_ptr&lt;torch::autograd::GraphTask&gt;&amp;, torch::autograd::Node*, torch::autograd::InputBuffer&amp;) + 0x16ac (0x7f0acad3a34c in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #19: torch::autograd::Engine::thread_main(std::shared_ptr&lt;torch::autograd::GraphTask&gt; const&amp;, bool) + 0x591 (0x7f0acad3b511 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #20: torch::autograd::Engine::thread_init(int) + 0x49 (0x7f0acad32b89 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #21: torch::autograd::python::PythonEngine::thread_init(int) + 0x48 (0x7f0ace244cc8 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_python.so) frame #22: &lt;unknown function&gt; + 0xc819d (0x7f0af8e5819d in /usr/people/bnehoran/anaconda3/envs/pytorch/lib/libstdc++.so.6) frame #23: &lt;unknown function&gt; + 0x76ba (0x7f0b15f766ba in /lib/x86_64-linux-gnu/libpthread.so.0) frame #24: clone + 0x6d (0x7f0b15cac41d in /lib/x86_64-linux-gnu/libc.so.6)"><pre class="notranslate"><code class="notranslate">RuntimeError: view size is not compatible with input tensor's size and stride (at least one dimension spans across two contiguous subspaces). Use .reshape(...) instead. (view at ../aten/src/ATen/native/TensorShape.cpp:1185) frame #0: c10::Error::Error(c10::SourceLocation, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) + 0x65 (0x7f0ab4b2eb15 in /usr/people/bnehoran/pytorch/torch/lib/libc10.so) frame #1: at::native::view(at::Tensor const&amp;, c10::ArrayRef&lt;long&gt;) + 0x2fb (0x7f0ac8ce33cb in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #2: &lt;unknown function&gt; + 0x118f433 (0x7f0ac8edf433 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #3: &lt;unknown function&gt; + 0x11dfb17 (0x7f0ac8f2fb17 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #4: &lt;unknown function&gt; + 0x1054db3 (0x7f0ac8da4db3 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #5: at::native::sparse_mask_cpu(at::Tensor const&amp;, at::Tensor const&amp;) + 0x84 (0x7f0ac8da6614 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #6: &lt;unknown function&gt; + 0x126c8e3 (0x7f0ac8fbc8e3 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #7: &lt;unknown function&gt; + 0x11decb4 (0x7f0ac8f2ecb4 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #8: at::Tensor c10::Dispatcher::callUnboxed&lt;at::Tensor, at::Tensor const&amp;, at::Tensor const&amp;&gt;(c10::OperatorHandle const&amp;, at::Tensor const&amp;, at::Tensor const&amp;) const + 0xb2 (0x7f0acdfcac12 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_python.so) frame #9: &lt;unknown function&gt; + 0x2d94771 (0x7f0acaae4771 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #10: &lt;unknown function&gt; + 0x11decb4 (0x7f0ac8f2ecb4 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #11: at::native::to_dense_backward(at::Tensor const&amp;, at::Tensor const&amp;) + 0x21a (0x7f0ac8ca7b8a in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #12: &lt;unknown function&gt; + 0x12a4f53 (0x7f0ac8ff4f53 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #13: &lt;unknown function&gt; + 0x2b1a4be (0x7f0aca86a4be in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #14: &lt;unknown function&gt; + 0x11decb4 (0x7f0ac8f2ecb4 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #15: at::Tensor c10::Dispatcher::callUnboxed&lt;at::Tensor, at::Tensor const&amp;, at::Tensor const&amp;&gt;(c10::OperatorHandle const&amp;, at::Tensor const&amp;, at::Tensor const&amp;) const + 0xb2 (0x7f0acdfcac12 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_python.so) frame #16: torch::autograd::generated::ToDenseBackward::apply(std::vector&lt;at::Tensor, std::allocator&lt;at::Tensor&gt; &gt;&amp;&amp;) + 0xf9 (0x7f0aca6a06f9 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #17: &lt;unknown function&gt; + 0x2feebdb (0x7f0acad3ebdb in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #18: torch::autograd::Engine::evaluate_function(std::shared_ptr&lt;torch::autograd::GraphTask&gt;&amp;, torch::autograd::Node*, torch::autograd::InputBuffer&amp;) + 0x16ac (0x7f0acad3a34c in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #19: torch::autograd::Engine::thread_main(std::shared_ptr&lt;torch::autograd::GraphTask&gt; const&amp;, bool) + 0x591 (0x7f0acad3b511 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #20: torch::autograd::Engine::thread_init(int) + 0x49 (0x7f0acad32b89 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_cpu.so) frame #21: torch::autograd::python::PythonEngine::thread_init(int) + 0x48 (0x7f0ace244cc8 in /usr/people/bnehoran/pytorch/torch/lib/libtorch_python.so) frame #22: &lt;unknown function&gt; + 0xc819d (0x7f0af8e5819d in /usr/people/bnehoran/anaconda3/envs/pytorch/lib/libstdc++.so.6) frame #23: &lt;unknown function&gt; + 0x76ba (0x7f0b15f766ba in /lib/x86_64-linux-gnu/libpthread.so.0) frame #24: clone + 0x6d (0x7f0b15cac41d in /lib/x86_64-linux-gnu/libc.so.6) </code></pre></div> <p dir="auto">Tested on the master branch (<code class="notranslate">1.5.0a0+7fdc6cb</code>) but was already present in versions as early as 1.2.</p> <p dir="auto"><em>Edit: The error in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="512494506" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/28650" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/28650/hovercard" href="https://github.com/pytorch/pytorch/issues/28650">#28650</a> might be related to this issue.</em></p> <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/ssnl/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ssnl">@ssnl</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/albanD/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/albanD">@albanD</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/gqchen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gqchen">@gqchen</a></p>
1
<p dir="auto">Bootstrap carousel is not working in IE( any version ). I have included bootstrap.js, bootstrap-transition.js and bootstrap-carousel.js. Any help in this regard would be appreciated. Thanks in advance.</p> <p dir="auto">Cheers!</p>
<p dir="auto">I am getting an error in IE. The transition.js file is included in my bootstrap.min.js file and the carousel element as the 'slide' class. The page error come back as "e.support.transition.end is null or not an object. You can see here: <a href="http://www.wedlakebell.com/" rel="nofollow">http://www.wedlakebell.com/</a></p>
1
<p dir="auto">On linux/amd64 with <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/golang/go/commit/0b9866fd561d5ecebee14d73c0a4938dec5abe7d/hovercard" href="https://github.com/golang/go/commit/0b9866fd561d5ecebee14d73c0a4938dec5abe7d"><tt>0b9866f</tt></a>. I saw this only once during a test like the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#!/usr/bin/env bash # go test -c set -xe while true; do GOMAXPROCS=$[ 1 + $[ RANDOM % 128 ]] ./net.test -test.v=true -test.short=false -test.run=TestVariousDeadlines || exit 255 done"><pre class="notranslate"><code class="notranslate">#!/usr/bin/env bash # go test -c set -xe while true; do GOMAXPROCS=$[ 1 + $[ RANDOM % 128 ]] ./net.test -test.v=true -test.short=false -test.run=TestVariousDeadlines || exit 255 done </code></pre></div>
<p dir="auto">A send on an unbuffered channel to a blocked receiver writes directly to the receiver's stack. This violates the assumption made by the garbage collector that all writes to a stack happen while the receiver is executing and go through write barriers. This causes missed writes and incorrect collection of data.</p>
1
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">Load pytorch tensor created by torch.save(tensor_name, tensor_path) in c++ libtorch failed.<br> How can I save some tensor in python, but load it in libtorch?</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">using the following code:</p> <p dir="auto">I save tensor named piror using python, using the code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="prior = torch.ones(32145, 4) torch.save(prior, 'prior.pth')"><pre class="notranslate"><code class="notranslate">prior = torch.ones(32145, 4) torch.save(prior, 'prior.pth') </code></pre></div> <p dir="auto">And I load the tensor in libtorch using C++, by the following code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="torch::Tensor priors = torch::ones({32145, 4}); torch::load(priors , &quot;/app/model/prior.pth&quot;);"><pre class="notranslate"><code class="notranslate">torch::Tensor priors = torch::ones({32145, 4}); torch::load(priors , "/app/model/prior.pth"); </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">load the tensor successfully.<br> And get exact same value as in pytorch python-api.</p> <h2 dir="auto">Environment</h2> <p dir="auto">Collecting environment information...<br> PyTorch version: N/A<br> Is debug build: N/A<br> CUDA used to build PyTorch: N/A</p> <p dir="auto">OS: Ubuntu 16.04.5 LTS<br> GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609<br> CMake version: version 3.13.2</p> <p dir="auto">Python version: 3.5<br> Is CUDA available: N/A<br> CUDA runtime version: 10.0.130<br> GPU models and configuration:<br> GPU 0: TITAN X (Pascal)<br> GPU 1: TITAN X (Pascal)</p> <p dir="auto">Nvidia driver version: 430.26<br> cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.4.2</p> <p dir="auto">Versions of relevant libraries:<br> [pip] Could not collect<br> [conda] Could not collect</p> <h2 dir="auto">Additional context</h2> <p dir="auto">But I got the error:<br> terminate called after throwing an instance of 'c10::Error'<br> what(): <code class="notranslate">torch::jit::load()</code> received a file from <code class="notranslate">torch.save()</code>, but <code class="notranslate">torch::jit::load()</code> can only load files produced by <code class="notranslate">torch.jit.save()</code> (load at ../torch/csrc/jit/serialization/import.cpp:285)</p> <p dir="auto">Why is that? I do not use torch::jit::load but torch::load, so how to load tensor saved in pytorch?</p> <p dir="auto">Thanks in advance.</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/suo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/suo">@suo</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yf225/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yf225">@yf225</a></p>
<h2 dir="auto">🐛 Bug</h2> <p dir="auto">I don't manage to import a tensor saved in PyTorch from C++. Any help on this is welcome <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Save a tensor to a file in python.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import torch &gt;&gt;&gt; torch.save(torch.tensor([1., 2., 3.]), &quot;tensor.pt&quot;) &gt;&gt;&gt; torch.load(&quot;tensor.pt&quot;) tensor([1., 2., 3.])"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">torch</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">torch</span>.<span class="pl-en">save</span>(<span class="pl-s1">torch</span>.<span class="pl-en">tensor</span>([<span class="pl-c1">1.</span>, <span class="pl-c1">2.</span>, <span class="pl-c1">3.</span>]), <span class="pl-s">"tensor.pt"</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">torch</span>.<span class="pl-en">load</span>(<span class="pl-s">"tensor.pt"</span>) <span class="pl-en">tensor</span>([<span class="pl-c1">1.</span>, <span class="pl-c1">2.</span>, <span class="pl-c1">3.</span>])</pre></div> <p dir="auto">Build this small C++ 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; int main() { torch::Tensor tensor; torch::load(tensor, &quot;tensor.pt&quot;); 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">int</span> <span class="pl-en">main</span>() { torch::Tensor tensor; <span class="pl-c1">torch::load</span>(tensor, <span class="pl-s"><span class="pl-pds">"</span>tensor.pt<span class="pl-pds">"</span></span>); std::cout &lt;&lt; tensor &lt;&lt; std::endl; }</pre></div> <p dir="auto">At runtime I get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="terminate called after throwing an instance of 'c10::Error' what(): [enforce fail at inline_container.cc:137] . PytorchStreamReader failed reading zip archive: failed finding central directory frame #0: std::function&lt;std::string ()&gt;::operator()() const + 0x11 (0x7f1da515e691 in /___/libtorch/lib/libc10.so) frame #1: c10::ThrowEnforceNotMet(char const*, int, char const*, std::string const&amp;, void const*) + 0x49 (0x7f1da515e4a9 in /__/libtorch/lib/libc10.so) frame #2: caffe2::serialize::PyTorchStreamReader::valid(char const*) + 0x6b (0x7f1d9c69735b in /__/libtorch/lib/libcaffe2.so) frame #3: caffe2::serialize::PyTorchStreamReader::init() + 0x9d (0x7f1d9c69912d in /___/libtorch/lib/libcaffe2.so) frame #4: caffe2::serialize::PyTorchStreamReader::PyTorchStreamReader(std::unique_ptr&lt;caffe2::serialize::ReadAdapterInterface, std::default_delete&lt;caffe2::serialize::ReadAdapterInterface&gt; &gt;) + 0x3b (0x7f1d9c69ab8b in /__/libtorch/lib/libcaffe2.so) frame #5: &lt;unknown function&gt; + 0xa9b5bf (0x7f1da5e125bf in /__/libtorch/lib/libtorch.so.1) frame #6: torch::jit::load(std::unique_ptr&lt;caffe2::serialize::ReadAdapterInterface, std::default_delete&lt;caffe2::serialize::ReadAdapterInterface&gt; &gt;, c10::optional&lt;c10::Device&gt;, std::unordered_map&lt;std::string, std::string, std::hash&lt;std::string&gt;, std::equal_to&lt;std::string&gt;, std::allocator&lt;std::pair&lt;std::string const, std::string&gt; &gt; &gt;&amp;) + 0x9a (0x7f1da5e15d2a in /__/libtorch/lib/libtorch.so.1) frame #7: torch::jit::load(std::string const&amp;, c10::optional&lt;c10::Device&gt;, std::unordered_map&lt;std::string, std::string, std::hash&lt;std::string&gt;, std::equal_to&lt;std::string&gt;, std::allocator&lt;std::pair&lt;std::string const, std::string&gt; &gt; &gt;&amp;) + 0x68 (0x7f1da5e15ec8 in /___/libtorch/lib/libtorch.so.1) frame #8: torch::serialize::InputArchive::load_from(std::string const&amp;, c10::optional&lt;c10::Device&gt;) + 0x38 (0x7f1da604c058 in /___/libtorch/lib/libtorch.so.1) frame #9: void torch::load&lt;at::Tensor, char const (&amp;) [10]&gt;(at::Tensor&amp;, char const (&amp;) [10]) + 0x86 (0x55a502f5fe97 in ./load) frame #10: main + 0x37 (0x55a502f5fb51 in ./load) frame #11: __libc_start_main + 0xe7 (0x7f1d9a338b97 in /lib/x86_64-linux-gnu/libc.so.6) frame #12: _start + 0x2a (0x55a502f5f96a in ./load) [1] 30788 abort ./load"><pre class="notranslate"><code class="notranslate">terminate called after throwing an instance of 'c10::Error' what(): [enforce fail at inline_container.cc:137] . PytorchStreamReader failed reading zip archive: failed finding central directory frame #0: std::function&lt;std::string ()&gt;::operator()() const + 0x11 (0x7f1da515e691 in /___/libtorch/lib/libc10.so) frame #1: c10::ThrowEnforceNotMet(char const*, int, char const*, std::string const&amp;, void const*) + 0x49 (0x7f1da515e4a9 in /__/libtorch/lib/libc10.so) frame #2: caffe2::serialize::PyTorchStreamReader::valid(char const*) + 0x6b (0x7f1d9c69735b in /__/libtorch/lib/libcaffe2.so) frame #3: caffe2::serialize::PyTorchStreamReader::init() + 0x9d (0x7f1d9c69912d in /___/libtorch/lib/libcaffe2.so) frame #4: caffe2::serialize::PyTorchStreamReader::PyTorchStreamReader(std::unique_ptr&lt;caffe2::serialize::ReadAdapterInterface, std::default_delete&lt;caffe2::serialize::ReadAdapterInterface&gt; &gt;) + 0x3b (0x7f1d9c69ab8b in /__/libtorch/lib/libcaffe2.so) frame #5: &lt;unknown function&gt; + 0xa9b5bf (0x7f1da5e125bf in /__/libtorch/lib/libtorch.so.1) frame #6: torch::jit::load(std::unique_ptr&lt;caffe2::serialize::ReadAdapterInterface, std::default_delete&lt;caffe2::serialize::ReadAdapterInterface&gt; &gt;, c10::optional&lt;c10::Device&gt;, std::unordered_map&lt;std::string, std::string, std::hash&lt;std::string&gt;, std::equal_to&lt;std::string&gt;, std::allocator&lt;std::pair&lt;std::string const, std::string&gt; &gt; &gt;&amp;) + 0x9a (0x7f1da5e15d2a in /__/libtorch/lib/libtorch.so.1) frame #7: torch::jit::load(std::string const&amp;, c10::optional&lt;c10::Device&gt;, std::unordered_map&lt;std::string, std::string, std::hash&lt;std::string&gt;, std::equal_to&lt;std::string&gt;, std::allocator&lt;std::pair&lt;std::string const, std::string&gt; &gt; &gt;&amp;) + 0x68 (0x7f1da5e15ec8 in /___/libtorch/lib/libtorch.so.1) frame #8: torch::serialize::InputArchive::load_from(std::string const&amp;, c10::optional&lt;c10::Device&gt;) + 0x38 (0x7f1da604c058 in /___/libtorch/lib/libtorch.so.1) frame #9: void torch::load&lt;at::Tensor, char const (&amp;) [10]&gt;(at::Tensor&amp;, char const (&amp;) [10]) + 0x86 (0x55a502f5fe97 in ./load) frame #10: main + 0x37 (0x55a502f5fb51 in ./load) frame #11: __libc_start_main + 0xe7 (0x7f1d9a338b97 in /lib/x86_64-linux-gnu/libc.so.6) frame #12: _start + 0x2a (0x55a502f5f96a in ./load) [1] 30788 abort ./load </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">I would expect to be able to load a tensor from the PyTorch dump in the C++ program.</p> <h2 dir="auto">Environment</h2> <p dir="auto">PyTorch version: 1.1.0<br> Is debug build: No<br> CUDA used to build PyTorch: 9.0.176</p> <p dir="auto">OS: Ubuntu 18.04.2 LTS<br> GCC version: (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0<br> CMake version: version 3.10.2</p> <p dir="auto">Python version: 3.7<br> Is CUDA available: Yes<br> CUDA runtime version: 10.1.105<br> GPU models and configuration:<br> GPU 0: GeForce GTX TITAN X<br> GPU 1: GeForce GTX TITAN X<br> GPU 2: GeForce GTX TITAN X<br> GPU 3: GeForce GTX TITAN X<br> GPU 4: GeForce GTX TITAN X<br> GPU 5: GeForce GTX TITAN X<br> GPU 6: GeForce GTX TITAN X<br> GPU 7: GeForce GTX TITAN X</p> <p dir="auto">Nvidia driver version: 418.56<br> cuDNN version: Could not collect</p> <p dir="auto">Versions of relevant libraries:<br> [pip] msgpack-numpy==0.4.3.2<br> [pip] numpy==1.15.4<br> [pip] numpydoc==0.8.0<br> [pip] pytorch-nlp==0.4.1<br> [pip] torch==1.1.0<br> [pip] torchvision==0.2.2<br> [conda] blas 1.0 mkl<br> [conda] mkl 2018.0.3 1<br> [conda] mkl-service 1.1.2 py37h90e4bf4_5<br> [conda] mkl_fft 1.0.6 py37h7dd41cf_0<br> [conda] mkl_random 1.0.1 py37h4414c95_1<br> [conda] pytorch 1.1.0 py3.7_cuda9.0.176_cudnn7.5.1_0 pytorch<br> [conda] pytorch-nlp 0.4.1 pypi_0 pypi<br> [conda] torchvision 0.2.2 py_3 pytorch</p> <h2 dir="auto">Additional context</h2> <p dir="auto">I downloaded the C++ frontend from <a href="https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip" rel="nofollow">https://download.pytorch.org/libtorch/nightly/cpu/libtorch-shared-with-deps-latest.zip</a> yesterday.</p>
1
<p dir="auto">Please look at the self-explaining screenshot.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/822771/11636183/6d7bf95c-9d23-11e5-9456-19f2c772eeac.png"><img src="https://cloud.githubusercontent.com/assets/822771/11636183/6d7bf95c-9d23-11e5-9456-19f2c772eeac.png" alt="2015-12-07 2" style="max-width: 100%;"></a></p>
<p dir="auto">Right now, those keywords like <code class="notranslate">import</code> <code class="notranslate">class</code> <code class="notranslate">from</code> are all plain white.</p>
1
<p dir="auto"><strong>Symfony version(s) affected</strong>: 3.4.13</p> <p dir="auto"><strong>Description</strong><br> Binding controller service argument used to work in Symfony 3.4.12, but not in 3.4.13 anymore.</p> <p dir="auto"><strong>How to reproduce</strong><br> service.yml :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="services: _defaults: autowire: true autoconfigure: true public: true bind: $em: '@doctrine.orm.my_entity_manager' My\FrontofficeBundle\Controller\: resource: '../../Controller' tags: ['controller.service_arguments']"><pre class="notranslate"><code class="notranslate">services: _defaults: autowire: true autoconfigure: true public: true bind: $em: '@doctrine.orm.my_entity_manager' My\FrontofficeBundle\Controller\: resource: '../../Controller' tags: ['controller.service_arguments'] </code></pre></div> <p dir="auto">The controller action is defined as :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public function indexAction(Request $request, EntityManagerInterface $em) { ..."><pre class="notranslate"><code class="notranslate">public function indexAction(Request $request, EntityManagerInterface $em) { ... </code></pre></div> <p dir="auto">I have several entity managers defined in config.yml, and <code class="notranslate">my_entity_manager</code> is not the default one.<br> In Symfony 3.4.13, the controller action gets the default entity manager. I would expect it to be passed <code class="notranslate">my_entity_manager</code>, like in Symfony 3.4.12.</p> <p dir="auto"><strong>Possible Solution</strong></p> <p dir="auto">A solution is to inject the entity manager via a controller constructor :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" public function __construct(EntityManagerInterface $em) { $this-&gt;em = $em; }"><pre class="notranslate"><code class="notranslate"> public function __construct(EntityManagerInterface $em) { $this-&gt;em = $em; } </code></pre></div> <p dir="auto">Then we get the correct entity manager.<br> But is this behaviour expected ? And is it expected that the behaviour changed between minor Symfony versions ?</p>
<p dir="auto"><strong>Symfony version(s) affected</strong>: 4.1.2</p> <p dir="auto"><strong>How to reproduce</strong><br> Bind a value to a controller will cause the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" In ResolveBindingsPass.php line 48: Unused binding &quot;$advertiserFetcher&quot; in service &quot;App\Controller\Admin\CampaignAdminController&quot;."><pre class="notranslate"><code class="notranslate"> In ResolveBindingsPass.php line 48: Unused binding "$advertiserFetcher" in service "App\Controller\Admin\CampaignAdminController". </code></pre></div> <p dir="auto">services.yml:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="App\Controller\Admin\CampaignAdminController: bind: $advertiserFetcher: '@app.advertiser_fetcher'"><pre class="notranslate"><code class="notranslate">App\Controller\Admin\CampaignAdminController: bind: $advertiserFetcher: '@app.advertiser_fetcher' </code></pre></div> <p dir="auto">CampaignAdminController:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" /** * @Route(&quot;/&quot;, name=&quot;campaign_admin_index&quot;) * @param AdvertiserFetcherInterface $advertiserFetcher * @return Response */ public function indexAction(AdvertiserFetcherInterface $advertiserFetcher) { $advertisers = $advertiserFetcher-&gt;fetchAdvertisers(); ... }"><pre class="notranslate"><code class="notranslate"> /** * @Route("/", name="campaign_admin_index") * @param AdvertiserFetcherInterface $advertiserFetcher * @return Response */ public function indexAction(AdvertiserFetcherInterface $advertiserFetcher) { $advertisers = $advertiserFetcher-&gt;fetchAdvertisers(); ... } </code></pre></div> <p dir="auto"><strong>Possible Solution</strong><br> Make <a href="https://github.com/symfony/symfony/issues/28041" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/28041/hovercard">bugfix 28041</a> available on symfony 4.1.2 too.</p>
1
<p dir="auto">While the general direction are users moving from NodeJS into Deno, for me, I enjoy Deno modules while working on a bigger NodeJS/TS project that consumes npm packages.</p> <p dir="auto">I would like to import my Deno modules back into NodeJS while retaining type declaration. Steps that I have to do now are:</p> <ol dir="auto"> <li>Copy a.. *.ts files to a temp dir.</li> <li>Remove all <code class="notranslate">.ts</code> from <code class="notranslate">import</code>s .</li> <li>Recursively resolve all externally loaded modules.</li> </ol> <p dir="auto">There's also <code class="notranslate">deno bundle</code>, which is useful, but it does not generate type declaration file. It would be nice if there's <code class="notranslate">deno bundle --declaration</code>, similar to <code class="notranslate">tsc --declaration</code>.</p> <p dir="auto">What does the community think?</p>
<p dir="auto">Instead of an array like so:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[ { &quot;runtime&quot;: &quot;Deno/1.28.3 x86_64-apple-darwin&quot;, &quot;cpu&quot;: &quot;Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz&quot;, &quot;origin&quot;: &quot;file:///Users/serhiy.barhamon/tmp/deno/test_ffi/tests/bench.js&quot;, &quot;group&quot;: null, &quot;name&quot;: &quot;Deno.UnsafePointerView#getUint32&quot;, &quot;baseline&quot;: false, &quot;result&quot;: { &quot;ok&quot;: { &quot;n&quot;: 49, &quot;min&quot;: 1251.9348, &quot;max&quot;: 1441.2696, &quot;avg&quot;: 1308.7523755102038, &quot;p75&quot;: 1324.1055, &quot;p99&quot;: 1441.2696, &quot;p995&quot;: 1441.2696, &quot;p999&quot;: 1441.2696 } } }, { &quot;runtime&quot;: &quot;Deno/1.28.3 x86_64-apple-darwin&quot;, &quot;cpu&quot;: &quot;Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz&quot;, // ... } ]"><pre class="notranslate"><span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-s">"runtime"</span>: <span class="pl-s">"Deno/1.28.3 x86_64-apple-darwin"</span><span class="pl-kos">,</span> <span class="pl-s">"cpu"</span>: <span class="pl-s">"Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz"</span><span class="pl-kos">,</span> <span class="pl-s">"origin"</span>: <span class="pl-s">"file:///Users/serhiy.barhamon/tmp/deno/test_ffi/tests/bench.js"</span><span class="pl-kos">,</span> <span class="pl-s">"group"</span>: <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s">"name"</span>: <span class="pl-s">"Deno.UnsafePointerView#getUint32"</span><span class="pl-kos">,</span> <span class="pl-s">"baseline"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-s">"result"</span>: <span class="pl-kos">{</span> <span class="pl-s">"ok"</span>: <span class="pl-kos">{</span> <span class="pl-s">"n"</span>: <span class="pl-c1">49</span><span class="pl-kos">,</span> <span class="pl-s">"min"</span>: <span class="pl-c1">1251.9348</span><span class="pl-kos">,</span> <span class="pl-s">"max"</span>: <span class="pl-c1">1441.2696</span><span class="pl-kos">,</span> <span class="pl-s">"avg"</span>: <span class="pl-c1">1308.7523755102038</span><span class="pl-kos">,</span> <span class="pl-s">"p75"</span>: <span class="pl-c1">1324.1055</span><span class="pl-kos">,</span> <span class="pl-s">"p99"</span>: <span class="pl-c1">1441.2696</span><span class="pl-kos">,</span> <span class="pl-s">"p995"</span>: <span class="pl-c1">1441.2696</span><span class="pl-kos">,</span> <span class="pl-s">"p999"</span>: <span class="pl-c1">1441.2696</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-s">"runtime"</span>: <span class="pl-s">"Deno/1.28.3 x86_64-apple-darwin"</span><span class="pl-kos">,</span> <span class="pl-s">"cpu"</span>: <span class="pl-s">"Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz"</span><span class="pl-kos">,</span> <span class="pl-c">// ...</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span></pre></div> <p dir="auto">It would probably be better to not duplicate the runtime and cpu for each object and instead do something like:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;version&quot;: 1, // https://github.com/denoland/deno/issues/17774 &quot;runtime&quot;: &quot;Deno/1.28.3 x86_64-apple-darwin&quot;, &quot;cpu&quot;: &quot;Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz&quot;, &quot;benches&quot;: [ { &quot;origin&quot;: &quot;file:///Users/serhiy.barhamon/tmp/deno/test_ffi/tests/bench.js&quot;, &quot;name&quot;: &quot;Deno.UnsafePointerView#getUint32&quot;, &quot;baseline&quot;: false, &quot;result&quot;: { &quot;n&quot;: 49, &quot;min&quot;: 1251.9348, &quot;max&quot;: 1441.2696, &quot;avg&quot;: 1308.7523755102038, &quot;p75&quot;: 1324.1055, &quot;p99&quot;: 1441.2696, &quot;p995&quot;: 1441.2696, &quot;p999&quot;: 1441.2696 } }, { // .. } ] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"version"</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c">// https://github.com/denoland/deno/issues/17774</span> <span class="pl-s">"runtime"</span>: <span class="pl-s">"Deno/1.28.3 x86_64-apple-darwin"</span><span class="pl-kos">,</span> <span class="pl-s">"cpu"</span>: <span class="pl-s">"Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz"</span><span class="pl-kos">,</span> <span class="pl-s">"benches"</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-s">"origin"</span>: <span class="pl-s">"file:///Users/serhiy.barhamon/tmp/deno/test_ffi/tests/bench.js"</span><span class="pl-kos">,</span> <span class="pl-s">"name"</span>: <span class="pl-s">"Deno.UnsafePointerView#getUint32"</span><span class="pl-kos">,</span> <span class="pl-s">"baseline"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-s">"result"</span>: <span class="pl-kos">{</span> <span class="pl-s">"n"</span>: <span class="pl-c1">49</span><span class="pl-kos">,</span> <span class="pl-s">"min"</span>: <span class="pl-c1">1251.9348</span><span class="pl-kos">,</span> <span class="pl-s">"max"</span>: <span class="pl-c1">1441.2696</span><span class="pl-kos">,</span> <span class="pl-s">"avg"</span>: <span class="pl-c1">1308.7523755102038</span><span class="pl-kos">,</span> <span class="pl-s">"p75"</span>: <span class="pl-c1">1324.1055</span><span class="pl-kos">,</span> <span class="pl-s">"p99"</span>: <span class="pl-c1">1441.2696</span><span class="pl-kos">,</span> <span class="pl-s">"p995"</span>: <span class="pl-c1">1441.2696</span><span class="pl-kos">,</span> <span class="pl-s">"p999"</span>: <span class="pl-c1">1441.2696</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">// ..</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">We should think of some other improvements as well, like no "ok" sub object in "result" and not serializing the group name when it's "null" or perhaps grouping together benches with the same group?</p> <p dir="auto">Related <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1583446788" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/17774" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/17774/hovercard" href="https://github.com/denoland/deno/issues/17774">#17774</a></p>
0
<p dir="auto">numpy.ma.load() fails on files generated bu numpy.ma.dump() in python3. See the following code:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from __future__ import print_function import sys import numpy as np print(&quot;Python version:&quot;, sys.version) print(&quot;Numpy version:&quot;, np.version.full_version) mma = np.ma.ones((4,4)) mma.dump(&quot;mma.dat&quot;) mmb = np.ma.load(&quot;mma.dat&quot;)"><pre class="notranslate"><span class="pl-k">from</span> __future__ <span class="pl-k">import</span> <span class="pl-s1">print_function</span> <span class="pl-k">import</span> <span class="pl-s1">sys</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-en">print</span>(<span class="pl-s">"Python version:"</span>, <span class="pl-s1">sys</span>.<span class="pl-s1">version</span>) <span class="pl-en">print</span>(<span class="pl-s">"Numpy version:"</span>, <span class="pl-s1">np</span>.<span class="pl-s1">version</span>.<span class="pl-s1">full_version</span>) <span class="pl-s1">mma</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">ma</span>.<span class="pl-en">ones</span>((<span class="pl-c1">4</span>,<span class="pl-c1">4</span>)) <span class="pl-s1">mma</span>.<span class="pl-en">dump</span>(<span class="pl-s">"mma.dat"</span>) <span class="pl-s1">mmb</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">ma</span>.<span class="pl-en">load</span>(<span class="pl-s">"mma.dat"</span>)</pre></div> <p dir="auto">And now let's run it:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="laptop:~/py/Varie/testNPdump$ python testMAdump.py Python version: 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609] Numpy version: 1.13.3"><pre class="notranslate"><code class="notranslate">laptop:~/py/Varie/testNPdump$ python testMAdump.py Python version: 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609] Numpy version: 1.13.3 </code></pre></div> <p dir="auto">Now with python3:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="lfini@lfini-laptop:~/py/Varie/testNPdump$ python3 testMAdump.py Python version: 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] Numpy version: 1.13.3 Traceback (most recent call last): File &quot;testMAdump.py&quot;, line 11, in &lt;module&gt; mmb = np.ma.load(&quot;mma.dat&quot;) File &quot;/usr/local/lib/python3.5/dist-packages/numpy/ma/core.py&quot;, line 7868, in load return pickle.load(F) File &quot;/usr/lib/python3.5/codecs.py&quot;, line 321, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte"><pre class="notranslate"><code class="notranslate">lfini@lfini-laptop:~/py/Varie/testNPdump$ python3 testMAdump.py Python version: 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] Numpy version: 1.13.3 Traceback (most recent call last): File "testMAdump.py", line 11, in &lt;module&gt; mmb = np.ma.load("mma.dat") File "/usr/local/lib/python3.5/dist-packages/numpy/ma/core.py", line 7868, in load return pickle.load(F) File "/usr/lib/python3.5/codecs.py", line 321, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte </code></pre></div>
<p dir="auto">When using numpy.ma.dump to save a masked array in Python 3:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="np.ma.dump(a, pathtofile)"><pre class="notranslate"><code class="notranslate">np.ma.dump(a, pathtofile) </code></pre></div> <p dir="auto">I got the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/btan1/.virtualenvs/python3.3/lib/python3.3/site-packages/numpy/ma/core.py in dump(a, F) 7141 if not hasattr(F, 'readline'): 7142 F = open(F, 'w') -&gt; 7143 return pickle.dump(a, F) 7144 7145 def dumps(a): TypeError: must be str, not bytes"><pre class="notranslate"><code class="notranslate">/home/btan1/.virtualenvs/python3.3/lib/python3.3/site-packages/numpy/ma/core.py in dump(a, F) 7141 if not hasattr(F, 'readline'): 7142 F = open(F, 'w') -&gt; 7143 return pickle.dump(a, F) 7144 7145 def dumps(a): TypeError: must be str, not bytes </code></pre></div> <p dir="auto">This is with NumPy 1.9.1 and Python 3.3.2.</p> <p dir="auto">From what I found out, it is because in Python 3 pickle files has to be opened in binary mode, i.e. L7142 should be <code class="notranslate">F = open(F, 'wb')</code>. Indeed, if I were to change it to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="with open(pathtofile, 'wb') as f: pickle.dump(a, f)"><pre class="notranslate"><code class="notranslate">with open(pathtofile, 'wb') as f: pickle.dump(a, f) </code></pre></div> <p dir="auto">the error goes away.</p>
1
<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> <ul dir="auto"> <li>7.1.8</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>macOS Mojave</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">A framerate of 20-30 fps when streaming <code class="notranslate">navigator.mediaDevices.getUserMedia</code> with <code class="notranslate">chromeMediaSource</code> = desktop</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">We see a maximum of 5/6 fps instead of the 20-30 fps that we see when streaming from Chrome via <a href="https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing/#4676396026610028" rel="nofollow">https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing/#4676396026610028</a></p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">We use <code class="notranslate">RTCPeerConnection</code> and <code class="notranslate">navigator.mediaDevices.getUserMedia</code> to stream the desktop. If we open <code class="notranslate">chrome://webrtc-internals</code> from within Electron, we see a <code class="notranslate">framesEncoded/s</code> of 5/6 fps.</p> <p dir="auto">We tried to use this, but it did not improve:<br> <code class="notranslate">app.commandLine.appendSwitch('webrtc-max-cpu-consumption-percentage=100')</code></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/main/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/main/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Electron Version</h3> <p dir="auto">15.0.0</p> <h3 dir="auto">What operating system are you using?</h3> <p dir="auto">Ubuntu</p> <h3 dir="auto">Operating System Version</h3> <p dir="auto">Ubuntu 20.04</p> <h3 dir="auto">What arch are you using?</h3> <p dir="auto">x64</p> <h3 dir="auto">Last Known Working Electron version</h3> <p dir="auto">13</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">No ERROR</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">When running the electron-react app I get this error message.</p> <p dir="auto">If I downgrade Electron from version 15 to version 13 the error disappears.<br> The problem starts to appear from version 14</p> <h3 dir="auto">Testcase Gist URL</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Additional Information</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="97258:1026/120955.772050:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process."><pre class="notranslate"><code class="notranslate">97258:1026/120955.772050:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process. </code></pre></div>
0
<p dir="auto">Looks like the next server is clashing with another service I have running on 3030. Whats the full list of ports needed to run next in production and how can they be changed?</p>
1
<p dir="auto">My package.json file:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;scripts&quot;: { &quot;forever&quot;: &quot;forever start server.js&quot;, &quot;db&quot;: &quot;mongod --dbpath ./data&quot;, &quot;nodemon&quot;: &quot;nodemon server.js&quot;, &quot;debug&quot;: &quot;concurrently \&quot;npm run db\&quot; \&quot;npm run nodemon\&quot; \&quot;parse-dashboard --config parse-dashboard-config.json --allowInsecureHTTP\&quot;&quot;, &quot;start&quot;: &quot;concurrently \&quot;npm run db\&quot; \&quot;npm run forever\&quot; \&quot;parse-dashboard --config parse-dashboard-config.json\&quot;&quot;, &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot; },"><pre class="notranslate"><code class="notranslate">{ "scripts": { "forever": "forever start server.js", "db": "mongod --dbpath ./data", "nodemon": "nodemon server.js", "debug": "concurrently \"npm run db\" \"npm run nodemon\" \"parse-dashboard --config parse-dashboard-config.json --allowInsecureHTTP\"", "start": "concurrently \"npm run db\" \"npm run forever\" \"parse-dashboard --config parse-dashboard-config.json\"", "test": "echo \"Error: no test specified\" &amp;&amp; exit 1" }, </code></pre></div> <p dir="auto">Is it possible to use vscode to debug for "npm run debug" ? Thanks.</p>
<p dir="auto">Hi all,</p> <p dir="auto">Looks like current trend to run NodeJs app via <strong>npm start</strong> or <strong>npm dev</strong>.<br> By default, launch.json does not allow us to do this. It`s very unusable. My suggection - to add this feature, that allow easily cconfigure how to run app and not just by parameter "node" and entry point to the site.</p> <p dir="auto">Thanks.</p>
1
<p dir="auto">Choose one: is this a bug report or feature request?</p> <h3 dir="auto">Input Code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let code = `class Demo extends React.Component { constructor(props) { super(props); this.state = {}; } render() { return &lt;div&gt; &lt;div id=&quot;:&quot;&gt;&lt;/div&gt; &lt;/div&gt;; } }`"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">code</span> <span class="pl-c1">=</span> <span class="pl-s">`class Demo extends React.Component {</span> <span class="pl-s"> constructor(props) {</span> <span class="pl-s"> super(props);</span> <span class="pl-s"> this.state = {};</span> <span class="pl-s"> }</span> <span class="pl-s"> render() {</span> <span class="pl-s"></span> <span class="pl-s"> return &lt;div&gt;</span> <span class="pl-s"> &lt;div id=":"&gt;&lt;/div&gt;</span> <span class="pl-s"> &lt;/div&gt;;</span> <span class="pl-s"> }</span> <span class="pl-s">}`</span></pre></div> <h3 dir="auto">Babel/Babylon Configuration (.babelrc, package.json, cli command)</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="babel.transform(code, { compact: false, comments: true, plugins: [&quot;syntax-jsx&quot;, &quot;syntax-object-rest-spread&quot;, function (babel) { return { visitor: { JSXOpeningElement: function ({node}) { // do something... } } }] }"><pre class="notranslate"><span class="pl-s1">babel</span><span class="pl-kos">.</span><span class="pl-c1">transform</span><span class="pl-kos">(</span><span class="pl-s1">code</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">compact</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">comments</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">plugins</span>: <span class="pl-kos">[</span><span class="pl-s">"syntax-jsx"</span><span class="pl-kos">,</span> <span class="pl-s">"syntax-object-rest-spread"</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">babel</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-c1">visitor</span>: <span class="pl-kos">{</span> <span class="pl-en">JSXOpeningElement</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">{</span>node<span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// do something...</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> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">I want to preserve double byte chars, like this</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Demo extends React.Component { constructor(props) { super(props); this.state = {}; } render() { return &lt;div&gt; &lt;div id=&quot;:&quot;&gt;&lt;/div&gt; &lt;/div&gt;; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Demo</span> <span class="pl-k">extends</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-s1">props</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">state</span> <span class="pl-c1">=</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">render</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-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">":"</span><span class="pl-c1">&gt;</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Current Behavior</h3> <p dir="auto">but babel translates my double byte chars, ":" ===&gt; "\uFF1A"</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Demo extends React.Component { constructor(props) { super(props); this.state = {}; } render() { return &lt;div&gt; &lt;div id=&quot;\uFF1A&quot;&gt;&lt;/div&gt; &lt;/div&gt;; } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Demo</span> <span class="pl-k">extends</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-s1">props</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">state</span> <span class="pl-c1">=</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">render</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-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"\uFF1A"</span><span class="pl-c1">&gt;</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Possible Solution</h3> <h3 dir="auto">Context</h3> <h3 dir="auto">Your Environment</h3> <table role="table"> <thead> <tr> <th>software</th> <th>version(s)</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td>6.26.0</td> </tr> <tr> <td>Babylon</td> <td></td> </tr> <tr> <td>node</td> <td>v7.7.4</td> </tr> <tr> <td>npm</td> <td>4.1.2</td> </tr> <tr> <td>Operating System</td> <td>mac os</td> </tr> </tbody> </table>
<p dir="auto">After <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175672408" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/4478" data-hovercard-type="pull_request" data-hovercard-url="/babel/babel/pull/4478/hovercard" href="https://github.com/babel/babel/pull/4478">#4478</a> PR I discovered that Cyrillic text inside a jsx tag transpiled to <code class="notranslate">\uXXXX</code>-style escape sequences. This leads to issues in debug and growing output bundle size. But if I have JSXExpression with StringLiteral all works as expected and text stay unescaped.</p> <h3 dir="auto">Input Code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div&gt; &lt;Foo&gt;Привет&lt;/Foo&gt; &lt;Foo&gt;{&quot;Привет&quot;}&lt;/Foo&gt; &lt;/div&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Foo</span><span class="pl-c1">&gt;</span>Привет<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Foo</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">Foo</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s">"Привет"</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">Foo</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span></pre></div> <h3 dir="auto">Babel Configuration (.babelrc, package.json, cli command)</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [ &quot;react&quot;, [&quot;es2015&quot;, { &quot;loose&quot;: true, &quot;modules&quot;: &quot;commonjs&quot;, &quot;spec&quot;: true }], &quot;es2016&quot;, &quot;es2017&quot; ] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span> <span class="pl-s">"react"</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"es2015"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s">"loose"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-s">"modules"</span>: <span class="pl-s">"commonjs"</span><span class="pl-kos">,</span> <span class="pl-s">"spec"</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-s">"es2016"</span><span class="pl-kos">,</span> <span class="pl-s">"es2017"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <h3 dir="auto">Expected Behavior</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="React.createElement( &quot;div&quot;, null, React.createElement( Foo, null, &quot;Привет&quot; ), React.createElement( Foo, null, &quot;Привет&quot; ) );"><pre class="notranslate"><span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span> <span class="pl-s">"div"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span> <span class="pl-v">Foo</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s">"Привет"</span> <span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span> <span class="pl-v">Foo</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s">"Привет"</span> <span class="pl-kos">)</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Current Behavior</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="React.createElement( &quot;div&quot;, null, React.createElement( Foo, null, &quot;\u041F\u0440\u0438\u0432\u0435\u0442&quot; ), React.createElement( Foo, null, &quot;Привет&quot; ) );"><pre class="notranslate"><span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span> <span class="pl-s">"div"</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span> <span class="pl-v">Foo</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s">"\u041F\u0440\u0438\u0432\u0435\u0442"</span> <span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span> <span class="pl-v">Foo</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s">"Привет"</span> <span class="pl-kos">)</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h3 dir="auto">Possible Solution</h3> <p dir="auto">Add option to disable generating ASCII-safe code or fix escaping behavior.</p> <h3 dir="auto">Your Environment</h3> <table role="table"> <thead> <tr> <th>software</th> <th>version</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td>6.17.0</td> </tr> <tr> <td>node</td> <td>6.9.1</td> </tr> <tr> <td>npm</td> <td>3.10.8</td> </tr> <tr> <td>Operating System</td> <td>OS X 10.12.1</td> </tr> </tbody> </table>
1
<h3 dir="auto">Problem description</h3> <p dir="auto">In landscape mode, the datepicker doesn't seem to be centered vertically on the screen so the bottom is cut off on smaller resolutions. You can also observe this by looking at the material-ui demos in iphone5 landscape mode (see screenshot). By playing around in responsive mode, it appears there is some enforced minimum margin from top to account for a navbar (even if there's not one present). Is an always visible nav bar part of the material design spec?</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6673707/24632895/ebaf5eda-1893-11e7-98ab-7e30fad9268a.png"><img src="https://cloud.githubusercontent.com/assets/6673707/24632895/ebaf5eda-1893-11e7-98ab-7e30fad9268a.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I looked through open and closed issues and didn't find this. I also tried switching between margin-top and padding-top on the main content div with no difference. Maybe there's a css trick I am not aware of?</p> <h3 dir="auto">Link to minimal working code that reproduces the issue</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;DatePicker fullWidth floatingLabelText=&quot;Some label&quot; mode=&quot;landscape&quot; /&gt;"><pre class="notranslate"><code class="notranslate">&lt;DatePicker fullWidth floatingLabelText="Some label" mode="landscape" /&gt; </code></pre></div> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>Material-UI: 0.17.1</li> <li>React: 15.4.2</li> <li>Browser: Chrome 56.0.2924.87 with devtools and device toolbar open.</li> </ul>
<p dir="auto">The bottom of both controls gets cut off by the navigation bar. Repros on the examples on material-ui.com</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/77620/8881551/e3c309aa-320e-11e5-8314-32f514bcd871.png"><img src="https://cloud.githubusercontent.com/assets/77620/8881551/e3c309aa-320e-11e5-8314-32f514bcd871.png" alt="ios simulator screen shot jul 24 2015 2 17 15 pm" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/77620/8881550/e3bfceca-320e-11e5-9bf7-dadd418b71ab.png"><img src="https://cloud.githubusercontent.com/assets/77620/8881550/e3bfceca-320e-11e5-9bf7-dadd418b71ab.png" alt="ios simulator screen shot jul 24 2015 2 15 23 pm" style="max-width: 100%;"></a></p>
1
<p dir="auto">Hello,</p> <p dir="auto">the object <code class="notranslate">sklear.model_selection.GridSearchCV</code> is not picklable:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sklearn.model_selection import GridSearchCV from sklearn.linear_model import Ridge import pickle np.random.seed(1) X = np.random.rand(10, 2) y = np.random.rand(10) reg = GridSearchCV(Ridge(), param_grid={&quot;alpha&quot;: [1.0, 2.0]}).fit(X, y) pickle.loads(pickle.dumps(reg))"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">model_selection</span> <span class="pl-k">import</span> <span class="pl-v">GridSearchCV</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">linear_model</span> <span class="pl-k">import</span> <span class="pl-v">Ridge</span> <span class="pl-k">import</span> <span class="pl-s1">pickle</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">1</span>) <span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">rand</span>(<span class="pl-c1">10</span>, <span class="pl-c1">2</span>) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">rand</span>(<span class="pl-c1">10</span>) <span class="pl-s1">reg</span> <span class="pl-c1">=</span> <span class="pl-v">GridSearchCV</span>(<span class="pl-v">Ridge</span>(), <span class="pl-s1">param_grid</span><span class="pl-c1">=</span>{<span class="pl-s">"alpha"</span>: [<span class="pl-c1">1.0</span>, <span class="pl-c1">2.0</span>]}).<span class="pl-en">fit</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>) <span class="pl-s1">pickle</span>.<span class="pl-en">loads</span>(<span class="pl-s1">pickle</span>.<span class="pl-en">dumps</span>(<span class="pl-s1">reg</span>))</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--------------------------------------------------------------------------- TypeError Traceback (most recent call last) &lt;ipython-input-40-8bf454eb8188&gt; in &lt;module&gt;() 8 reg = GridSearchCV(Ridge(), param_grid={&quot;alpha&quot;: [1.0, 2.0]}).fit(X, y) 9 ---&gt; 10 pickle.loads(pickle.dumps(reg)) /opt/rh/python27/root/usr/lib64/python2.7/pickle.pyc in loads(str) 1380 def loads(str): 1381 file = StringIO(str) -&gt; 1382 return Unpickler(file).load() 1383 1384 # Doctest /opt/rh/python27/root/usr/lib64/python2.7/pickle.pyc in load(self) 856 while 1: 857 key = read(1) --&gt; 858 dispatch[key](self) 859 except _Stop, stopinst: 860 return stopinst.value /opt/rh/python27/root/usr/lib64/python2.7/pickle.pyc in load_build(self) 1215 setstate = getattr(inst, &quot;__setstate__&quot;, None) 1216 if setstate: -&gt; 1217 setstate(state) 1218 return 1219 slotstate = None /home/amignon/mypython27/lib/python2.7/site-packages/numpy/ma/core.pyc in __setstate__(self, state) 5867 &quot;&quot;&quot; 5868 (_, shp, typ, isf, raw, msk, flv) = state -&gt; 5869 super(MaskedArray, self).__setstate__((shp, typ, isf, raw)) 5870 self._mask.__setstate__((shp, make_mask_descr(typ), isf, msk)) 5871 self.fill_value = flv TypeError: object pickle not returning list"><pre class="notranslate"><code class="notranslate">--------------------------------------------------------------------------- TypeError Traceback (most recent call last) &lt;ipython-input-40-8bf454eb8188&gt; in &lt;module&gt;() 8 reg = GridSearchCV(Ridge(), param_grid={"alpha": [1.0, 2.0]}).fit(X, y) 9 ---&gt; 10 pickle.loads(pickle.dumps(reg)) /opt/rh/python27/root/usr/lib64/python2.7/pickle.pyc in loads(str) 1380 def loads(str): 1381 file = StringIO(str) -&gt; 1382 return Unpickler(file).load() 1383 1384 # Doctest /opt/rh/python27/root/usr/lib64/python2.7/pickle.pyc in load(self) 856 while 1: 857 key = read(1) --&gt; 858 dispatch[key](self) 859 except _Stop, stopinst: 860 return stopinst.value /opt/rh/python27/root/usr/lib64/python2.7/pickle.pyc in load_build(self) 1215 setstate = getattr(inst, "__setstate__", None) 1216 if setstate: -&gt; 1217 setstate(state) 1218 return 1219 slotstate = None /home/amignon/mypython27/lib/python2.7/site-packages/numpy/ma/core.pyc in __setstate__(self, state) 5867 """ 5868 (_, shp, typ, isf, raw, msk, flv) = state -&gt; 5869 super(MaskedArray, self).__setstate__((shp, typ, isf, raw)) 5870 self._mask.__setstate__((shp, make_mask_descr(typ), isf, msk)) 5871 self.fill_value = flv TypeError: object pickle not returning list </code></pre></div> <p dir="auto">From what I understand, it is caused to a bug in <code class="notranslate">numpy.ma.MaskedArray</code> that I have just reported in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="184469836" data-permission-text="Title is private" data-url="https://github.com/numpy/numpy/issues/8191" data-hovercard-type="issue" data-hovercard-url="/numpy/numpy/issues/8191/hovercard" href="https://github.com/numpy/numpy/issues/8191">numpy/numpy#8191</a>. It is due to the use of masked arrays in the <code class="notranslate">cv_results_</code> member to store grid parameters:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="p = reg.cv_results_[&quot;param_alpha&quot;] print repr(p) pickle.loads(pickle.dumps(reg))"><pre class="notranslate"><span class="pl-s1">p</span> <span class="pl-c1">=</span> <span class="pl-s1">reg</span>.<span class="pl-s1">cv_results_</span>[<span class="pl-s">"param_alpha"</span>] <span class="pl-k">print</span> <span class="pl-en">repr</span>(<span class="pl-s1">p</span>) <span class="pl-s1">pickle</span>.<span class="pl-en">loads</span>(<span class="pl-s1">pickle</span>.<span class="pl-en">dumps</span>(<span class="pl-s1">reg</span>))</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="masked_array(data = [1.0 2.0], mask = [False False], fill_value = ?) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) &lt;ipython-input-45-a128a9cc4ff0&gt; in &lt;module&gt;() 1 p = reg.cv_results_[&quot;param_alpha&quot;] 2 print repr(p) ----&gt; 3 pickle.loads(pickle.dumps(reg)) /opt/rh/python27/root/usr/lib64/python2.7/pickle.pyc in loads(str) 1380 def loads(str): 1381 file = StringIO(str) -&gt; 1382 return Unpickler(file).load() 1383 1384 # Doctest /opt/rh/python27/root/usr/lib64/python2.7/pickle.pyc in load(self) 856 while 1: 857 key = read(1) --&gt; 858 dispatch[key](self) 859 except _Stop, stopinst: 860 return stopinst.value /opt/rh/python27/root/usr/lib64/python2.7/pickle.pyc in load_build(self) 1215 setstate = getattr(inst, &quot;__setstate__&quot;, None) 1216 if setstate: -&gt; 1217 setstate(state) 1218 return 1219 slotstate = None /home/amignon/mypython27/lib/python2.7/site-packages/numpy/ma/core.pyc in __setstate__(self, state) 5867 &quot;&quot;&quot; 5868 (_, shp, typ, isf, raw, msk, flv) = state -&gt; 5869 super(MaskedArray, self).__setstate__((shp, typ, isf, raw)) 5870 self._mask.__setstate__((shp, make_mask_descr(typ), isf, msk)) 5871 self.fill_value = flv TypeError: object pickle not returning list"><pre class="notranslate"><code class="notranslate">masked_array(data = [1.0 2.0], mask = [False False], fill_value = ?) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) &lt;ipython-input-45-a128a9cc4ff0&gt; in &lt;module&gt;() 1 p = reg.cv_results_["param_alpha"] 2 print repr(p) ----&gt; 3 pickle.loads(pickle.dumps(reg)) /opt/rh/python27/root/usr/lib64/python2.7/pickle.pyc in loads(str) 1380 def loads(str): 1381 file = StringIO(str) -&gt; 1382 return Unpickler(file).load() 1383 1384 # Doctest /opt/rh/python27/root/usr/lib64/python2.7/pickle.pyc in load(self) 856 while 1: 857 key = read(1) --&gt; 858 dispatch[key](self) 859 except _Stop, stopinst: 860 return stopinst.value /opt/rh/python27/root/usr/lib64/python2.7/pickle.pyc in load_build(self) 1215 setstate = getattr(inst, "__setstate__", None) 1216 if setstate: -&gt; 1217 setstate(state) 1218 return 1219 slotstate = None /home/amignon/mypython27/lib/python2.7/site-packages/numpy/ma/core.pyc in __setstate__(self, state) 5867 """ 5868 (_, shp, typ, isf, raw, msk, flv) = state -&gt; 5869 super(MaskedArray, self).__setstate__((shp, typ, isf, raw)) 5870 self._mask.__setstate__((shp, make_mask_descr(typ), isf, msk)) 5871 self.fill_value = flv TypeError: object pickle not returning list </code></pre></div> <p dir="auto">So basically it is a cross project bug.</p>
<p dir="auto">Currently, ColumnTransformer will return AttributeError if one of the transformers is a Pipeline object because it only checks if the transformer has get_feature_names attribute.</p> <h4 dir="auto">Describe the workflow you want to enable</h4> <p dir="auto">It should be able to pass the initialized column for the Pipeline transformer inside ColumnTransformer.</p> <h4 dir="auto">Describe your proposed solution</h4> <p dir="auto">It should check if the transformer is a Pipeline object before checking the attribute, and simply pass the initialized column for the Pipeline transformer.</p> <h4 dir="auto">Describe alternatives you've considered, if relevant</h4> <p dir="auto">Alternatively, it can be done by adding get_feature_names attribute to Pipeline object, which will check if the first step has get_feature_names attribute.</p>
0