text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
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 checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22Category%3A+Documentation%22+">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" 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 in this issue<br>
(If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h1 dir="auto">Description</h1>
<p dir="auto"><a href="https://docs.celeryproject.org/en/stable/userguide/extending.html#extending-commandoptions" rel="nofollow">https://docs.celeryproject.org/en/stable/userguide/extending.html#extending-commandoptions</a></p>
<p dir="auto">The described code no longer works in celery 5+</p>
<p dir="auto">Looking at celery's source code, 'user_options' are now expected to be a set(). In fact they are initialized to a defaultdict(set())</p>
<p dir="auto">I believe that one should provide a click.option, but when i tried that things still fell apart as click is later accessing whatever is provided.opts</p>
<h1 dir="auto">Suggestions</h1>
<p dir="auto">Upgrade the documentation to support click or modify the code to allow the above example to work</p> | <p dir="auto">Use case Scenario: Process Millions of files from S3</p>
<p dir="auto">Approach:</p>
<ul dir="auto">
<li>List S3 Inventory (Task)<br>
** Split small chunks (Task)<br>
** Each chunk, read n(1000s) of files and process it (Long running Task)</li>
</ul>
<p dir="auto">My issue is with the <code class="notranslate">int</code> math of pre_fetch_count = concurrency * prefetch limit where I have to only one option, if my concurrency increases, so will my prefetch limit.</p>
<p dir="auto">Is there a way to directly affect the number of Prefetch count after the math ? or is there a workaround ?</p>
<p dir="auto">I want to use Gevent/Eventlet for fetching S3 objects but do not want to pre-fetch more than 1 task at the time.</p>
<h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22Category%3A+Documentation%22+">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues in this issue<br>
(If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h1 dir="auto">Description</h1>
<h1 dir="auto">Suggestions</h1> | 0 |
<p dir="auto">Hello!</p>
<p dir="auto">I keep getting errors like the one in the title. But today something strange happened - webview doesn't load the link I've provided.</p>
<p dir="auto">I'm using react and my webview looks like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" <webview
className={`profile-webview-${profile.id}`}
data-testid={`profile-webview-${profile.id}`}
src={link}
enableremotemodule
/>"><pre class="notranslate"><code class="notranslate"> <webview
className={`profile-webview-${profile.id}`}
data-testid={`profile-webview-${profile.id}`}
src={link}
enableremotemodule
/>
</code></pre></div>
<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 10.15.6</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>None</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">No error</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Keep getting Error: Error invoking remote method 'ELECTRON_GUEST_VIEW_MANAGER_CALL': Error: (-3) loading '<a href="https://twitter.com/kittypurrzog" rel="nofollow">https://twitter.com/kittypurrzog</a>'</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Just navigate to the twitter frm</p>
<h3 dir="auto">Screenshots</h3>
<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 <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">12.0.x, 13.0.1</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">macOS 11.2.3</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto">11.4.3</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><code class="notranslate">execSync</code> should take ~10ms</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto"><code class="notranslate">execSync</code> takes around ~400ms</p>
<p dir="auto">Repro: make a Fiddle with the following contents in <code class="notranslate">main.js</code>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.time('exec')
require('child_process').execSync('ls')
// electron 11.4.3: 11.764ms
// electron 12.0.4: 400.92ms
console.timeEnd('exec')"><pre class="notranslate"><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">time</span><span class="pl-kos">(</span><span class="pl-s">'exec'</span><span class="pl-kos">)</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'child_process'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">execSync</span><span class="pl-kos">(</span><span class="pl-s">'ls'</span><span class="pl-kos">)</span>
<span class="pl-c">// electron 11.4.3: 11.764ms</span>
<span class="pl-c">// electron 12.0.4: 400.92ms</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">timeEnd</span><span class="pl-kos">(</span><span class="pl-s">'exec'</span><span class="pl-kos">)</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Electron v11.4.3 execFile: 78.952ms
Electron v12.0.4 execFile: 432.513ms
Electron v11.4.3 spawnSync: 7.173ms
Electron v12.0.4 spawnSync: 378.55ms"><pre class="notranslate"><code class="notranslate">Electron v11.4.3 execFile: 78.952ms
Electron v12.0.4 execFile: 432.513ms
Electron v11.4.3 spawnSync: 7.173ms
Electron v12.0.4 spawnSync: 378.55ms
</code></pre></div>
<p dir="auto">This could be a Node.js issue.</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p> | 0 |
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexandrudima/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexandrudima">@alexandrudima</a> on January 27, 2016 13:53</em></p>
<p dir="auto">Testing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="60046420" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/2218" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/2218/hovercard" href="https://github.com/microsoft/TypeScript/pull/2218">#2218</a></p>
<p dir="auto">The duplicate here is not a problem because the code is not in strict mode (also tried running it and node runs it just fine):</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// "use strict";
var o = { p: 1, p: 2};
console.log(o);"><pre class="notranslate"><span class="pl-c">// "use strict";</span>
<span class="pl-k">var</span> <span class="pl-s1">o</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-c1">p</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">p</span>: <span class="pl-c1">2</span><span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">o</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5047891/12615335/6e88aee4-c505-11e5-8a8e-81ae41632fff.png"><img src="https://cloud.githubusercontent.com/assets/5047891/12615335/6e88aee4-c505-11e5-8a8e-81ae41632fff.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">But in ES6 this is not an error anymore?</h2>
<p dir="auto">I have also found the following interesting note at <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode</a>:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5047891/12615377/99c5e77a-c505-11e5-90a7-1660fbf5216d.png"><img src="https://cloud.githubusercontent.com/assets/5047891/12615377/99c5e77a-c505-11e5-90a7-1660fbf5216d.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="129150001" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/2452" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/2452/hovercard" href="https://github.com/microsoft/vscode/issues/2452">microsoft/vscode#2452</a></em></p> | <p dir="auto">Apologies in advance, as this might be more of a question, but I'm asking here rather than StackOverflow because there might be some changes to the type checking that could allow this pattern to be easier to express, and I might be encountering some bugs.</p>
<p dir="auto">I'm trying to convert the subclass factory mixin pattern to TS, with enough type info to be able to determine the complete object shape of a class that uses these mixins. With intersection types and f-bounded quantification, it seems like we should be in really good shape, but I ran into several difficulties and maybe some bugs.</p>
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.0</p>
<p dir="auto"><strong>Code</strong></p>
<p dir="auto">Here's the untyped JS:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let M1 = (superclass) => class extends superclass {
foo() { return 'a string'; }
}
let M2 = (superclass) => class extends superclass {
bar() { return 42; }
}
class C = M2(M1(Object)) {
baz() { return true; }
}
let c = new C();
console.log(c.foo(), c.bar(), c.baz());"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-c1">M1</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">superclass</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-k">class</span> <span class="pl-k">extends</span> <span class="pl-s1">superclass</span> <span class="pl-kos">{</span>
<span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s">'a string'</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-c1">M2</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">superclass</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-k">class</span> <span class="pl-k">extends</span> <span class="pl-s1">superclass</span> <span class="pl-kos">{</span>
<span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">42</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-v">C</span> <span class="pl-c1">=</span> <span class="pl-c1">M2</span><span class="pl-kos">(</span><span class="pl-c1">M1</span><span class="pl-kos">(</span><span class="pl-v">Object</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">baz</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">true</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">C</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">c</span><span class="pl-kos">.</span><span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">c</span><span class="pl-kos">.</span><span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">c</span><span class="pl-kos">.</span><span class="pl-en">baz</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">When converting to TypeScript, the first issue is that <code class="notranslate">class extends superclass</code> complains that <code class="notranslate">superclass</code> is not a constructor function type, so I introduce an interface for that:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Constructable {
new (): Object;
}
let M1 = (superclass: Constructable) => class extends superclass {
foo() { return 'a string'; }
}
let M2 = (superclass: Constructable) => class extends superclass {
bar() { return 42; }
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Constructable</span> <span class="pl-kos">{</span>
<span class="pl-k">new</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">Object</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-smi">M1</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">superclass</span>: <span class="pl-smi">Constructable</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-k">class</span> <span class="pl-k">extends</span> <span class="pl-s1">superclass</span> <span class="pl-kos">{</span>
<span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s">'a string'</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-smi">M2</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">superclass</span>: <span class="pl-smi">Constructable</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-k">class</span> <span class="pl-k">extends</span> <span class="pl-s1">superclass</span> <span class="pl-kos">{</span>
<span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">42</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">This causes the mixin declarations to pass type checking, but the usage loses type information for nested mixins:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log(c.foo(), c.bar(), c.baz()); // Property 'foo' does not exist on type 'C1'."><pre class="notranslate"><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">c</span><span class="pl-kos">.</span><span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">c</span><span class="pl-kos">.</span><span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">c</span><span class="pl-kos">.</span><span class="pl-en">baz</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">// Property 'foo' does not exist on type 'C1'.</span></pre></div>
<p dir="auto">With intersection types, I hope to be able to type the subclass factories such that they include both the superclass and class they declare. Something like:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let M1 = <T>(superclass: Constructable<T>): T & M1 => class extends superclass {
foo() { return 'a string'; }
}"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-smi">M1</span> <span class="pl-c1">=</span> <span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">superclass</span>: <span class="pl-smi">Constructable</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-kos">)</span>: <span class="pl-smi">T</span> <span class="pl-c1">&</span> <span class="pl-smi">M1</span> <span class="pl-c1">=></span> <span class="pl-k">class</span> <span class="pl-k">extends</span> <span class="pl-s1">superclass</span> <span class="pl-kos">{</span>
<span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s">'a string'</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Obviously I can't reference <code class="notranslate">M1</code> like this because it refers to the class factory, not the type that the factory returns. I can remove it though:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let M1 = <T>(superclass: Constructable<T>): T => class extends superclass {
foo: string;
}"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-smi">M1</span> <span class="pl-c1">=</span> <span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">superclass</span>: <span class="pl-smi">Constructable</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-kos">)</span>: <span class="pl-smi">T</span> <span class="pl-c1">=></span> <span class="pl-k">class</span> <span class="pl-k">extends</span> <span class="pl-s1">superclass</span> <span class="pl-kos">{</span>
<span class="pl-c1">foo</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">and now I get the error: <em>TS2322: Type 'typeof (Anonymous class)' is not assignable to type 'T'.</em></p>
<p dir="auto">Which makes sense, because superclass is a <code class="notranslate">Constructable<T></code>, not a <code class="notranslate">T</code>, which should be solvable by the new support for f-bounded quantification:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Constructable<T extends Constructable<T>> {
new (): T;
}
let M1 = <T extends Constructable<T>>(superclass: T): T => class extends superclass {
foo: string;
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Constructable</span><span class="pl-c1"><</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">Constructable</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-k">new</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-smi">M1</span> <span class="pl-c1">=</span> <span class="pl-c1"><</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">Constructable</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">superclass</span>: <span class="pl-smi">T</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span> <span class="pl-c1">=></span> <span class="pl-k">class</span> <span class="pl-k">extends</span> <span class="pl-s1">superclass</span> <span class="pl-kos">{</span>
<span class="pl-c1">foo</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">But now I get another error on <code class="notranslate">extends superclass</code>: <em>TS2507: Type 'T' is not a constructor function type.</em> even though <code class="notranslate">T</code> should implement <code class="notranslate">Constructable<T></code> which is a constructor function type. Is this a bug?</p>
<p dir="auto">Another possible bug I ran into is with my attempt at the <code class="notranslate">Constructable</code> interface. As I mentioned, I can get the declaration to (questionably) pass type checking, before using recursive constraints:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Constructable<T> {
new (): Object;
}
let M1 = <T>(superclass: Constructable<T>) => class extends superclass {
foo() { return 'a string'; }
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Constructable</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-k">new</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">Object</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-smi">M1</span> <span class="pl-c1">=</span> <span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">superclass</span>: <span class="pl-smi">Constructable</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-k">class</span> <span class="pl-k">extends</span> <span class="pl-s1">superclass</span> <span class="pl-kos">{</span>
<span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s">'a string'</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">but the declaration for <code class="notranslate">new</code> is off, it should be:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Constructable<T> {
new (): T;
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Constructable</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-k">new</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">But this triggers the error: <em>TS2509: Base constructor return type 'T' is not a class or interface type.</em></p>
<p dir="auto">neither of these variants fix it:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Constructable<T extends Object> {
new (): T;
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Constructable</span><span class="pl-c1"><</span><span class="pl-smi">T</span> <span class="pl-k">extends</span> <span class="pl-smi">Object</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-k">new</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">or:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Constructable<T> {
new (): T & Object;
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Constructable</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-k">new</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span> <span class="pl-c1">&</span> <span class="pl-smi">Object</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Even once these issues (which might be my fault, I hope!) are over come, there's another problem of being able to refer to the type returned by a subclass factory. It seems like I would have to define an interface as well as the class expression, which is enough duplicate work to make this pattern very cumbersome to use in TypeScript.</p>
<p dir="auto">Assuming tsc can eventually correctly infer the type returned by a subclass factory <code class="notranslate">M1</code>, it would be great to be able to refer to that type for use in <code class="notranslate">implements</code>, etc.</p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.295
Windows Terminal version (if applicable): 0.3.2171.0
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.295
Windows Terminal version (if applicable): 0.3.2171.0
Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Open remote SSH session to Linux (Ubuntu)</li>
<li>run nano</li>
<li>try to use CTRL+W to search for a string</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">CTRL+W should put nano in search more</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The Linux tab closes immediately without even properly logging out of the SSH session.</p> | <p dir="auto">At Ignite, there's been some interest in a few specific scenarios on how to set up the terminal. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cinnamon-msft/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cinnamon-msft">@cinnamon-msft</a> demo-ed that you can set the "commandline" setting to a <code class="notranslate">.bat</code> script. In my demo, I was able to set it to a powershell script.</p>
<p dir="auto">It would be nice to have a blogpost or doc describing a few scenarios of how to do this and how this can be useful. Particularly, consider the following:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> connect to a pre-saved SSH session</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> set up a dev/test environment with some pre-defined variables</li>
</ul>
<p dir="auto">These docs should be pretty easy to make. Just a matter of having something to share with the community so that they can wrap their heads around how Windows Terminal profiles can expand beyond "cmd", "powershell", and "wsl distros".</p>
<p dir="auto">Feel free to add more ideas below or link resources that have done something like this :)</p> | 0 |
<p dir="auto">See below for discussion</p>
<hr>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [19]: import pandas as pd
In [20]: import numpy as np
In [21]: import random
In [22]: df = pd.DataFrame(np.random.random_sample((20,5)), index=[random.choice('ABCDE') for x in range(20)])
In [23]: df.loc[:,0].ix['A'].median()
Out[23]: 0.57704085832236685
In [24]: pd.version.version
Out[24]: '0.12.0'
In [1]: import pandas as pd
In [2]: import numpy as np
In [3]: import random
In [4]: df = pd.DataFrame(np.random.random_sample((20,5)), index=[random.choice('ABCDE') for x in range(20)])
In [5]: df.loc[:,0].ix['A'].median()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-5-57f9fc9d1583> in <module>()
----> 1 df.loc[:,0].ix['A'].median()
AttributeError: 'numpy.ndarray' object has no attribute 'median'
In [6]: pd.version.version
Out[6]: '0.13.0rc1-43-g4f9fefc'"><pre class="notranslate"><code class="notranslate">In [19]: import pandas as pd
In [20]: import numpy as np
In [21]: import random
In [22]: df = pd.DataFrame(np.random.random_sample((20,5)), index=[random.choice('ABCDE') for x in range(20)])
In [23]: df.loc[:,0].ix['A'].median()
Out[23]: 0.57704085832236685
In [24]: pd.version.version
Out[24]: '0.12.0'
In [1]: import pandas as pd
In [2]: import numpy as np
In [3]: import random
In [4]: df = pd.DataFrame(np.random.random_sample((20,5)), index=[random.choice('ABCDE') for x in range(20)])
In [5]: df.loc[:,0].ix['A'].median()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-5-57f9fc9d1583> in <module>()
----> 1 df.loc[:,0].ix['A'].median()
AttributeError: 'numpy.ndarray' object has no attribute 'median'
In [6]: pd.version.version
Out[6]: '0.13.0rc1-43-g4f9fefc'
</code></pre></div> | <p dir="auto">There is an issue with concat:<br>
I expect it not to add rows from a second df in case there are such indexes in a first one.<br>
But this doesn't work for me. After a lot of search I found that this is because I have duplicate values in indexes in both df.<br>
It would be great to warn about such a behavior in standard function documentation.</p>
<p dir="auto">That is how I found that it is not a bug, but rather a feature:<br>
<a href="https://stackoverflow.com/questions/24089922/merge-multiple-dataframes-with-non-unique-indices/24091063#24091063" rel="nofollow">https://stackoverflow.com/questions/24089922/merge-multiple-dataframes-with-non-unique-indices/24091063#24091063</a></p>
<p dir="auto">Frankly speaking, I would prefer if there was an option to leave only "unique" indexes and in case they are present in first df - skip them all together during the concat</p> | 0 |
<h3 dir="auto">Your question</h3>
<p dir="auto">As we can see in the documentation<br>
<code class="notranslate">https://playwright.dev/docs/api/class-elementhandle#element-handle-wait-for-element-state</code><br>
We have WaitForSelector() has<br>
1.'attached'<br>
2.'detached'<br>
3.'visible'<br>
4.'hidden'<br>
But while writing the script I can only view Visible and attached options only.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="protected async invisiblity(ele) {
const element = await this.page.$(ele);
await element.waitForSelector(ele,{state:" "})
}"><pre class="notranslate"><code class="notranslate">protected async invisiblity(ele) {
const element = await this.page.$(ele);
await element.waitForSelector(ele,{state:" "})
}
</code></pre></div>
<p dir="auto">is there any way we can use detached of a selector.<br>
Thank u .</p> | <p dir="auto">See here:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17984549/122956249-1fa3c300-d381-11eb-9a49-5e4ecc46e099.png"><img src="https://user-images.githubusercontent.com/17984549/122956249-1fa3c300-d381-11eb-9a49-5e4ecc46e099.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Not sure if its a TypeScript bug or if our types can be improved there. It's about prioritisation of the method type overloads afaik.</p> | 1 |
<p dir="auto">The following provider does not actually work:</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const fooToken = const OpaqueToken('fooToken');
Injector.resolveAndCreate([
new Provider(fooToken, useFactory: () => 'Bar')
]);"><pre class="notranslate"><span class="pl-k">const</span> fooToken <span class="pl-k">=</span> <span class="pl-k">const</span> <span class="pl-c1">OpaqueToken</span>(<span class="pl-s">'fooToken'</span>);
<span class="pl-c1">Injector</span>.<span class="pl-en">resolveAndCreate</span>([
<span class="pl-k">new</span> <span class="pl-c1">Provider</span>(fooToken, useFactory<span class="pl-k">:</span> () <span class="pl-k">=></span> <span class="pl-s">'Bar'</span>)
]);</pre></div>
<p dir="auto">Instead, it only works if you change the signature to</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new Provider(fooToken, useFactory: () => 'Bar', deps: const [])"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-c1">Provider</span>(fooToken, useFactory<span class="pl-k">:</span> () <span class="pl-k">=></span> <span class="pl-s">'Bar'</span>, deps<span class="pl-k">:</span> <span class="pl-k">const</span> [])</pre></div>
<p dir="auto">Can the default be <code class="notranslate">deps: const []</code> instead of failing?</p> | <p dir="auto">The following fails<br>
const Binding(MyClass,toFactory: buildMyClass)</p>
<p dir="auto">The following is successful<br>
const Binding(MyClass,toFactory: buildMyClass, deps: const [])</p>
<p dir="auto">What is a valid use case for<br>
const Binding(MyClass,toFactory: buildMyClass, deps: null)?</p> | 1 |
<p dir="auto">React version: 17.2</p>
<h2 dir="auto">Steps To Reproduce</h2>
<ol dir="auto">
<li>Using a class component, if a click event changes some state, which renders a new component, and the new component adds an event listener on its <code class="notranslate">componentDidMount</code> checking for clicks, the new component will trigger that event</li>
</ol>
<p dir="auto">Link to code example: <a href="https://codepen.io/tholman/pen/87c661f0c893a2f8727db927c48d6d12" rel="nofollow">https://codepen.io/tholman/pen/87c661f0c893a2f8727db927c48d6d12</a></p>
<p dir="auto">(this does not happen if the created component uses hooks to add its event listener)</p>
<h2 dir="auto">The current behavior</h2>
<p dir="auto">A state change via a click that causes a new component to be rendered, that new component can pick up the original click event that created it, which seems like its reaching back in time, to so speak.</p>
<h2 dir="auto">The expected behavior</h2>
<p dir="auto">Perhaps this is now intended behavior with the react 17 event changes (although it doesn't happen if I add the event listener with a hook on a functional component, but I would expect that if a click event causes a render, and the listener is added on the <code class="notranslate">componentDidMount</code> function, I would assume the "click" is complete, and wouldn't be detected.</p> | <p dir="auto">React version:</p>
<ul dir="auto">
<li>Works in React v17.1.0</li>
<li>Doesn't work in React v18.0.0 & v18.1.0</li>
</ul>
<h2 dir="auto">Steps To Reproduce</h2>
<p dir="auto">Link to code example:</p>
<ul dir="auto">
<li>Broken React 18: <a href="https://codesandbox.io/s/nifty-bash-366bs4?file=/src/App.js" rel="nofollow">https://codesandbox.io/s/nifty-bash-366bs4?file=/src/App.js</a>
<ul dir="auto">
<li>This version uses the latest <code class="notranslate">react@next react-dom@next</code> to verify that the latest (unreleased) version doesn't work either.</li>
</ul>
</li>
<li>Working React 17: <a href="https://codesandbox.io/s/infallible-pine-n9vb4c?file=/src/App.js" rel="nofollow">https://codesandbox.io/s/infallible-pine-n9vb4c?file=/src/App.js</a></li>
</ul>
<h2 dir="auto">The current behavior</h2>
<p dir="auto">If you open the React 18 CodeSandbox link from above, what you will notice when you hit the <code class="notranslate">Open Dialog</code> button is that you will receive an event like <code class="notranslate">Got event in <Dialog />!</code></p>
<p dir="auto">I tried to minimize the reproduction, the idea is that we have a <code class="notranslate">Dialog</code> component that receives an <code class="notranslate">open</code> prop, based on this prop we know to show the <code class="notranslate">Dialog</code> or not. However a <code class="notranslate">Dialog</code> should also have "outside click" behaviour, to fake this I setup a <code class="notranslate">window.addEventListener('click')</code> inside a useEffect to "capture" this behaviour. However when I click the <code class="notranslate">Open Dialog</code> button this is what happens:</p>
<ol dir="auto">
<li>Click <code class="notranslate">Open Dialog</code></li>
<li>Set <code class="notranslate">open</code> state to <code class="notranslate">true</code></li>
<li>Re-render component</li>
<li>Pass <code class="notranslate">open={true}</code> to the <code class="notranslate">Dialog</code> component</li>
<li>In a useEffect, setup the <code class="notranslate">window.addEventListener('click')</code> if the <code class="notranslate">open</code> value is true</li>
<li>The callback of the event listener receives the <code class="notranslate">click</code> event from step 1.</li>
</ol>
<p dir="auto">Console logs after clicking once on the <code class="notranslate">Open Dialog</code> button:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Open: false
*onClick*
Open: true
Got event in <Dialog />!"><pre class="notranslate"><code class="notranslate">Open: false
*onClick*
Open: true
Got event in <Dialog />!
</code></pre></div>
<h2 dir="auto">The expected behavior</h2>
<p dir="auto">If you open the React 17 CodeSandbox and repeat those steps from above, then you will see the expected behaviour where clicking on the <code class="notranslate">Open Dialog</code> does <strong>not</strong> trigger the log from within the <code class="notranslate">window.addEventListener('click')</code> it's only the second time that you click that button that it will log something because now the <code class="notranslate">Dialog</code> is considered in an <code class="notranslate">open</code> state.</p>
<p dir="auto">Console logs after clicking once on the <code class="notranslate">Open Dialog</code> button:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Open: false
*onClick*
Open: true"><pre class="notranslate"><code class="notranslate">Open: false
*onClick*
Open: true
</code></pre></div>
<p dir="auto">Is this a bug, a regression or am I doing something incorrect here? I'm confused how a <code class="notranslate">window.addEventListener</code> can receive an event from a click that happened before the listener was even setup <g-emoji class="g-emoji" alias="thinking" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f914.png">🤔</g-emoji></p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.3</li>
<li>Operating System version: windows</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>incubator-dubbo-dubbo-2.6.3\dubbo-demo\dubbo-demo-provider<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/39985288/46005836-bec00100-c0e8-11e8-8fa2-10afcab88dca.png"><img src="https://user-images.githubusercontent.com/39985288/46005836-bec00100-c0e8-11e8-8fa2-10afcab88dca.png" alt="image" style="max-width: 100%;"></a><br>
after run this main</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">dubbo=2.6.3</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/39985288/46005914-e6af6480-c0e8-11e8-9b9d-750115d21c47.png"><img src="https://user-images.githubusercontent.com/39985288/46005914-e6af6480-c0e8-11e8-9b9d-750115d21c47.png" alt="image" style="max-width: 100%;"></a></p> | <h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.3</li>
<li>Operating System version: win</li>
<li>Java version: 1.8.0_73</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>starting provider</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">regist 2.6.3 version</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">the actual regiser url is: dubbo://XXXX?<strong>dubbo=2.0.2</strong> ...</p>
<h4 dir="auto">备注</h4>
<p dir="auto">当provider注册service时,注册url中传的dubbo 版本号不正确,在注册中心里看到的版本号也不对,传了错误的2.0.2</p> | 1 |
<p dir="auto">Got an error (403) while querying the GitHub API: {"message":"API rate limit exceeded for 180.253.11.147. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"<a href="https://developer.github.com/v3/#rate-limiting%22%7D">https://developer.github.com/v3/#rate-limiting"}</a></p>
<p dir="auto">it gots me this url <a href="https://deno.land/x/accepts" rel="nofollow">https://deno.land/x/accepts</a></p> | <p dir="auto"><a href="https://deno.land/std" rel="nofollow">https://deno.land/std</a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23056320/81916390-577cfa80-9606-11ea-89d8-752ed1a2cb64.png"><img src="https://user-images.githubusercontent.com/23056320/81916390-577cfa80-9606-11ea-89d8-752ed1a2cb64.png" alt="image" style="max-width: 100%;"></a><br>
Failed to get directory listing<br>
Querying the GitHub API failed. This is usually caused by a network outage or because you have reached your hourly API rate limit of 60 requests.</p> | 1 |
<h4 dir="auto">Description</h4>
<p dir="auto">In scikit-learn/scikit-learn/blob/master/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py,<br>
<code class="notranslate">import imp</code><br>
should be changed to<br>
<code class="notranslate"> import importlib</code></p> | <h4 dir="auto">Description</h4>
<p dir="auto">A deprecation warning is thrown when using sklearn. Recently cloudpickle was updated to do away with this warning, the sklearn version needs to be updated accordingly.</p>
<h4 dir="auto">Steps/Code to Reproduce</h4>
<p dir="auto">I imagine this occurs anywhere cloudpickle is imported. I am getting it from:<br>
<code class="notranslate">from sklearn.ensemble import RandomForestRegressor</code><br>
and using said Regressor</p>
<h4 dir="auto">Expected Results</h4>
<p dir="auto">No deprecation warning should be thrown</p>
<h4 dir="auto">Actual Results</h4>
<p dir="auto">/usr/local/lib/python3.6/dist-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py:47: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses<br>
import imp</p>
<h4 dir="auto">Versions</h4>
<h2 dir="auto">System</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python: 3.6.6 (default, Sep 12 2018, 18:26:19) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]
executable: /usr/bin/python3.6
machine: Linux-4.15.0-36-generic-x86_64-with-Ubuntu-18.04-bionic"><pre class="notranslate"><code class="notranslate">python: 3.6.6 (default, Sep 12 2018, 18:26:19) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]]
executable: /usr/bin/python3.6
machine: Linux-4.15.0-36-generic-x86_64-with-Ubuntu-18.04-bionic
</code></pre></div>
<h2 dir="auto">BLAS</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="macros: NO_ATLAS_INFO=1, HAVE_CBLAS=None
lib_dirs: /usr/lib/x86_64-linux-gnu
cblas_libs: cblas"><pre class="notranslate"><code class="notranslate">macros: NO_ATLAS_INFO=1, HAVE_CBLAS=None
lib_dirs: /usr/lib/x86_64-linux-gnu
cblas_libs: cblas
</code></pre></div>
<h2 dir="auto">Python deps</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pip: 18.1
setuptools: 40.0.0
sklearn: 0.20.0
numpy: 1.15.3
scipy: 1.1.0
Cython: None
pandas: 0.23.4"><pre class="notranslate"><code class="notranslate">pip: 18.1
setuptools: 40.0.0
sklearn: 0.20.0
numpy: 1.15.3
scipy: 1.1.0
Cython: None
pandas: 0.23.4
</code></pre></div> | 1 |
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 1.24.*</li>
<li>Operating System: Windows</li>
<li>Node.js version: 16.10 +</li>
<li>Browser: Chrome</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong><br>
electronApp = await electron.launch({ args: [path.join(__dirname, ' ****')], bypassCSP: true });<br>
app1stWindow= await electronApp.firstWindow();</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
**Describe the bug**
**Electron 12 has been EOL, so i migrate the electron app to electron 18 , but seems the playwright get the firstWindow timeout,
my question is does latest playwright supported the electron 18 now???**
"><pre class="notranslate"><code class="notranslate">
**Describe the bug**
**Electron 12 has been EOL, so i migrate the electron app to electron 18 , but seems the playwright get the firstWindow timeout,
my question is does latest playwright supported the electron 18 now???**
</code></pre></div> | <p dir="auto">Hi, we've noticed that <code class="notranslate">context.route()</code> can alter the rendering for some websites, e.g. <a href="https://www.wm.com/ca/en/support/faqs/how-do-i-handle-medical-waste-or-sharps-disposal" rel="nofollow">https://www.wm.com/ca/en/support/faqs/how-do-i-handle-medical-waste-or-sharps-disposal</a></p>
<p dir="auto">Would you know what can cause that, and how to debug it?</p>
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: v1.32.3 (Node v18.15)</li>
<li>Operating System: Debian 11</li>
<li>Browser: Chromium, Firefox</li>
<li>Other info: A bit more reliable with Firefox</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li>
</ul>
<p dir="auto"><strong>Test file (self-contained)</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
let success;
let attempt = 1;
do {
console.log(`attempt ${attempt}...`);
const context = await browser.newContext();
// This will make the rendering fail after a few attempts some point
// When commented out, all 100 attempts succeed.
await context.route('**/*', async route => {
await route.continue();
});
const page = await context.newPage();
await page.goto(
'https://www.wm.com/ca/en/support/faqs/how-do-i-handle-medical-waste-or-sharps-disposal',
{ waitUntil: 'networkidle' }
);
const element = page.locator('h1');
success = (await element.count()) > 0;
if (!success) {
console.log('FAILED!');
await page.screenshot({ path: 'rendering_fail.png' });
break;
}
await page.close();
await context.close();
++attempt;
} while (attempt <= 100);
await browser.close();
})();"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> chromium <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'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">chromium</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">success</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">attempt</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-k">do</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">`attempt <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">attempt</span><span class="pl-kos">}</span></span>...`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newContext</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// This will make the rendering fail after a few attempts some point</span>
<span class="pl-c">// When commented out, all 100 attempts succeed.</span>
<span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">route</span><span class="pl-kos">(</span><span class="pl-s">'**/*'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-s1">route</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-s1">route</span><span class="pl-kos">.</span><span class="pl-en">continue</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">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span>
<span class="pl-s">'https://www.wm.com/ca/en/support/faqs/how-do-i-handle-medical-waste-or-sharps-disposal'</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span> <span class="pl-c1">waitUntil</span>: <span class="pl-s">'networkidle'</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">element</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'h1'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">success</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-k">await</span> <span class="pl-s1">element</span><span class="pl-kos">.</span><span class="pl-en">count</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c1">></span> <span class="pl-c1">0</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">success</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">'FAILED!'</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">screenshot</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'rendering_fail.png'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">break</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">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">++</span><span class="pl-s1">attempt</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span> <span class="pl-k">while</span> <span class="pl-kos">(</span><span class="pl-s1">attempt</span> <span class="pl-c1"><=</span> <span class="pl-c1">100</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<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><code class="notranslate">node repro_script.js</code></li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<ul dir="auto">
<li>Rendering never fails (100 successful attempts).</li>
</ul>
<p dir="auto"><strong>Actual</strong></p>
<ul dir="auto">
<li>After a few rendering attempts, you will see a <code class="notranslate">FAILED!</code> log and a <code class="notranslate">rendering_fail.png</code> image is generated, showing that the content of the page wasn't correctly loaded.</li>
</ul>
<p dir="auto">Note: it never fails if the <code class="notranslate">await context.route('**/*'</code> hook is commented out.</p> | 0 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report => search github for a similar issue or PR before submitting
[ x ] feature request
[ ] support request => 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 => search github for a similar issue or PR before submitting
[ x ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">When using validation offered by the type attribute on an input element, such as , Angular 2 does not add the proper ng-invalid class when the browser sees the input as invalid.</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">ng-invalid and ng-valid classes should be added appropriately when a user's input does not match the pattern defined by HTML5 type attribute.<br>
<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">I believe it is best practice now to use type attributes offered by HTML5 to validate user input before submission.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<p dir="auto">OSX, Brackets IDE, Angular CLI</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.X</li>
</ul>
<p dir="auto">2.0.0</p>
<ul dir="auto">
<li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li>
</ul>
<p dir="auto">All browsers</p>
<ul dir="auto">
<li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br>
Typescript</li>
<li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</li>
</ul> | <p dir="auto">Data types: email, url, number, date, time, week, month.</p> | 1 |
<p dir="auto">Hi.<br>
Perhaps this has already been discussed, but I did not find.</p>
<p dir="auto">IBM is already successfully experimenting with this.<br>
<a href="https://github.com/IBM/browser-functions/blob/master/docs/index.md">https://github.com/IBM/browser-functions/blob/master/docs/index.md</a></p>
<p dir="auto">There are a lot of advantages in this approach, native <code class="notranslate">Web API</code> from the browser manufacturer, <code class="notranslate">SSR</code> out of the box, only the I/O (fs, net) in the userland is missing, Deno can provide it.</p>
<p dir="auto">How's the idea for you?</p> | <p dir="auto">Specified in <a href="https://html.spec.whatwg.org/multipage/structured-data.html#structureddeserializewithtransfer" rel="nofollow">https://html.spec.whatwg.org/multipage/structured-data.html#structureddeserializewithtransfer</a></p> | 0 |
<p dir="auto">A lot of modern languages such as Julia heavily use math symbols. Without fallback fonts it's very hard to find font that has all the code points needed to properly render all the math fonts and emojis. Consolas doesn't have broad Unicode coverage, but with font fallbacks this can be improved.</p> | <p dir="auto">Please support emoji within Windows Console.</p>
<p dir="auto">Very useful when you code in <code class="notranslate">vim</code> newsletters for startups or when you categorize stuff by emoji.</p>
<hr>
<p dir="auto">Maintainer notes:</p>
<tracking-block data-id="5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd" data-query-type="DEFAULT" data-response-source-type="DENORMALIZED" data-completion-completed="0" data-completion-total="4">
<div class="TrackingBlock border color-border-subtle rounded-2 mb-3 pb-2" data-target="tracking-block.contentWrapper" data-action="tracking-block-omnibar-append:tracking-block tasklist-block-title-update:tracking-block change:tracking-block click:tracking-block">
<x-banner data-view-component="true">
<div hidden="hidden" data-target="tracking-block.staleBanner" data-view-component="true" class="Banner flash Banner--error flash-error mx-3 mt-3">
<div class="Banner-visual">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-stop">
<path d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
</svg>
</div>
<div data-view-component="true" class="Banner-message">
<p class="Banner-title" data-target="x-banner.titleText">The content you are editing has changed. Please copy your edits and refresh the page.</p>
</div></div></x-banner>
<div class="mx-3 mt-3 d-flex flex-justify-between mb-1 gap-2">
<tasklist-block-title class="tasklist-title-container width-full d-flex flex-items-center mt-n1 ml-n1">
<div class=" color-bg-open color-fg-open rounded p-1 d-flex flex-items-center flex-justify-center mr-1">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-checklist js-tracking-block-completion-icon color-fg-open">
<path d="M2.5 1.75v11.5c0 .138.112.25.25.25h3.17a.75.75 0 0 1 0 1.5H2.75A1.75 1.75 0 0 1 1 13.25V1.75C1 .784 1.784 0 2.75 0h8.5C12.216 0 13 .784 13 1.75v7.736a.75.75 0 0 1-1.5 0V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25Zm13.274 9.537v-.001l-4.557 4.45a.75.75 0 0 1-1.055-.008l-1.943-1.95a.75.75 0 0 1 1.062-1.058l1.419 1.425 4.026-3.932a.75.75 0 1 1 1.048 1.074ZM4.75 4h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM4 7.75A.75.75 0 0 1 4.75 7h2a.75.75 0 0 1 0 1.5h-2A.75.75 0 0 1 4 7.75Z"></path>
</svg>
</div>
<div data-target="tracking-block.titleEditMode tasklist-block-title.titleEditMode" hidden="hidden" style="width: 100%;" data-view-component="true">
<!-- '"` --><!-- </textarea></xmp> --><form data-action="submit:tasklist-block-title#handleSubmit" data-turbo="false" style="display: flex; align-items: center;" action="" accept-charset="UTF-8" method="post">
<primer-text-field class="FormControl width-full FormControl--fullWidth">
<label class="sr-only FormControl-label" for="tasklist_title">
Title of tasklist
</label>
<div class="FormControl-input-wrap">
<input value="Input" data-target="primer-text-field.inputElement tasklist-block-title.titleInput" data-action="keydown:tasklist-block-title#handleKeyDown keyup:tasklist-block-title#handleKeyUp" test_selector="tasklist-block-title-input" aria-describedby="validation-2dba9d50-d03e-4b87-9e45-5535c41f08cd" class="FormControl-input FormControl-medium js-tasklist-title-input" type="text" name="tasklist_title" id="tasklist_title">
</div>
<div class="FormControl-inlineValidation" id="validation-2dba9d50-d03e-4b87-9e45-5535c41f08cd" hidden="hidden">
<span class="FormControl-inlineValidation--visual"><svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-alert-fill">
<path d="M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path>
</svg></span>
<span></span>
</div>
</primer-text-field>
<button data-action="click:tracking-block#hideTitleEditMode" type="button" data-view-component="true" class="Button--secondary Button--medium Button ml-2"> <span class="Button-content">
<span class="Button-label">Cancel</span>
</span>
</button>
<button type="submit" data-view-component="true" class="Button--primary Button--medium Button ml-2"> <span class="Button-content">
<span class="Button-label">Save</span>
</span>
</button></form>
</div>
<div data-target="tracking-block.titleViewMode tasklist-block-title.titleViewMode" data-view-component="true" class="d-flex flex-items-center">
<h3 data-target="tasklist-block-title.titleText" data-view-component="true" class="m-0 flex-1">Input</h3>
<div data-view-component="true" class="Button-withTooltip">
<button data-action="click:tracking-block#showTitleEditMode" id="icon-button-6a262850-5ebf-4e31-a17f-25e875968305" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium tasklist-title-edit-button ml-2"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-pencil Button-visual">
<path d="M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25c.081-.286.235-.547.445-.758l8.61-8.61Zm.176 4.823L9.75 4.81l-6.286 6.287a.253.253 0 0 0-.064.108l-.558 1.953 1.953-.558a.253.253 0 0 0 .108-.064Zm1.238-3.763a.25.25 0 0 0-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 0 0 0-.354Z"></path>
</svg>
</button> <tool-tip id="tooltip-90e920b3-9765-41c6-a2cc-c3f243eda849" for="icon-button-6a262850-5ebf-4e31-a17f-25e875968305" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Edit tasklist title</tool-tip>
</div>
</div></tasklist-block-title>
<div data-view-component="true" class="flex-items-center flex-justify-between d-flex">
<span data-view-component="true" class="Label Label--success">Beta</span>
<a style="margin-bottom: 2px; white-space: nowrap;" target="_blank" href="https://github.com/community/community/discussions/39106" data-view-component="true" class="Link Link--muted ml-2 mr-4">Give feedback</a>
<action-menu data-target="tracking-block-main.dropdownMenu" data-select-variant="none" data-view-component="true" class="tracking-block-list-item-dropdown-menu">
<focus-group direction="vertical" mnemonics="" retain="">
<div data-view-component="true" class="Button-withTooltip">
<button data-targets="tracking-block.dropdownMenu" id="tracking-block-dropdown-menu-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-button" popovertarget="tracking-block-dropdown-menu-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-overlay" aria-controls="tracking-block-dropdown-menu-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-list" aria-haspopup="true" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--small Truncate tracking-block-menu-btn color-bg-transparent p-1 m-0 position-relative"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal Button-visual">
<path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path>
</svg>
</button> <tool-tip id="tooltip-7445f1f1-5705-4bd9-bc67-916eddfacf8c" for="tracking-block-dropdown-menu-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-button" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Tasklist Input, more options</tool-tip>
</div>
<anchored-position id="tracking-block-dropdown-menu-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-overlay" anchor="tracking-block-dropdown-menu-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-button" align="start" side="outside-bottom" anchor-offset="normal" popover="auto" aria-label="Menu" data-view-component="true">
<div data-view-component="true" class="Overlay Overlay--size-auto">
<div data-view-component="true">
<ul aria-labelledby="tracking-block-dropdown-menu-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-button" id="tracking-block-dropdown-menu-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<li data-action="click:tracking-block#showTitleEditMode" data-analytics-event="{"category":"Tasklist Block","action":"rename","label":null}" data-targets="action-list.items" type="button" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-7ab719c3-7359-4839-97c1-f9a2344ac4e6" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-pencil">
<path d="M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25c.081-.286.235-.547.445-.758l8.61-8.61Zm.176 4.823L9.75 4.81l-6.286 6.287a.253.253 0 0 0-.064.108l-.558 1.953 1.953-.558a.253.253 0 0 0 .108-.064Zm1.238-3.763a.25.25 0 0 0-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 0 0 0-.354Z"></path>
</svg>
<span>Rename</span>
</span></button>
</li>
<li data-action="click:tracking-block#copyBlockMarkdown" data-analytics-event="{"category":"Tasklist Block","action":"copy markdown","label":null}" data-targets="action-list.items" type="button" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-1a51eb68-dce8-44de-b0e2-53af1be6703b" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
<span class="copy-markdown-button" data-hydro-click-payload="{"event_type":"tasklist_block.user_action","payload":{"action":"copy-markdown","user_id":12824323,"tasklist_block_id":"5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd","originating_url":null}}" data-hydro-click-hmac="b79ea9a3ec093f80ad67165b9f3e0848a07c040b2211b5423916eb00fe3c3eb1">
Copy markdown
</span>
</span></button>
</li>
<li data-targets="action-list.items" type="button" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" data-show-dialog-id="delete-tasklist-dialog-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd" id="delete-tasklist-button-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-trash color-fg-danger">
<path d="M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"></path>
</svg>
<span>Delete tasklist</span>
</span></button>
</li>
</ul>
</div>
</div></anchored-position> </focus-group>
</action-menu>
<div class="Overlay--hidden Overlay-backdrop--center" data-modal-dialog-overlay="">
<modal-dialog width="full" role="dialog" id="delete-tasklist-dialog-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd" aria-modal="true" aria-disabled="true" aria-describedby="delete-tasklist-dialog-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-title delete-tasklist-dialog-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-description" data-view-component="true" class="Overlay Overlay-whenNarrow Overlay--size-auto Overlay--motion-scaleFade">
<div font="SF Pro Display" data-view-component="true" class="Overlay-header text-bold f2 color-fg-default">
<div class="Overlay-headerContentWrap">
<div class="Overlay-titleWrap">
<h1 class="Overlay-title sr-only" id="delete-tasklist-dialog-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-title">
Delete tasklist
</h1>
Delete tasklist block?
</div>
<div class="Overlay-actionWrap">
<button data-close-dialog-id="delete-tasklist-dialog-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd" aria-label="Close" type="button" data-view-component="true" class="close-button Overlay-closeButton"><svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg></button>
</div>
</div>
</div>
<div data-view-component="true" class="Overlay-body color-fg-muted">Are you sure? All relationships in this tasklist will be removed.</div>
<div data-view-component="true" class="Overlay-footer Overlay-footer--alignEnd"> <button data-close-dialog-id="delete-tasklist-dialog-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd" type="submit" data-view-component="true" class="Button--secondary Button--medium Button d-inline-block"> <span class="Button-content">
<span class="Button-label">Cancel</span>
</span>
</button>
<button data-action="click:tracking-block#removeTasklistBlock" type="submit" data-view-component="true" class="Button--danger Button--medium Button d-inline-block"> <span class="Button-content">
<span class="Button-label">Delete</span>
</span>
</button>
</div>
</modal-dialog></div>
</div> </div>
<ol dir="auto" class="TrackingBlock-list mb-0 list-style-none" data-target="tracking-block.list">
<li tabindex="0" role="listitem" class="TrackingBlock-item d-flex mt-0 px-3 py-1 gap-2 flex-justify-between position-relative js-tasklist-draggable-issue border-bottom" data-issue="" data-targets="tracking-block.listItems" data-item-uuid="c6e67f65-3605-555b-a5c4-5e7234f61d9d" data-item-title="COOKED_READ (cmd.exe) doesn't properly support emoji input" data-item-state="open" data-item-position="100" aria-label="Open issue COOKED_READ (cmd.exe) doesn't properly support emoji input terminal 459634938, 5 labels. You are on a link." data-item-id="459634938" data-display-number="1503" data-repository-id="100060912" data-repository-name="terminal">
<div class="tasklist-issue-handle js-tasklist-drag-handle flex-self-start my-1">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-grabber dragger-icon">
<path d="M10 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0-4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
</svg>
</div>
<div class="tasklist-issue-content d-flex js-item-title flex-items-start my-1">
<span class="no-truncate">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-issue-opened open issue-state-icon">
<path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path>
</svg>
<a href="https://github.com/microsoft/terminal/issues/1503" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/1503/hovercard" class="js-navigation-open wb-break-word Link--secondary" data-hydro-click="{"event_type":"tasklist.item.link_click","payload":{"link_type":"issue","repository_id":100060912,"child_url":"https://github.com/microsoft/terminal/issues/1503","originating_url":null,"user_id":12824323}}" data-hydro-click-hmac="3ea2847ed4fc84a29d70320b1f4d4e33c7a3d02b2d16e7a1b75959b37b380da3">
<span class="color-fg-default">COOKED_READ (cmd.exe) doesn't properly support emoji input</span>
<span>#1503</span>
</a>
</span>
</div>
<div class="flex-shrink-0 mt-1 flex-items-start">
<div>
</div>
</div>
<div style="flex-grow: 1" data-view-component="true">
</div>
<div class="js-label-loading-container d-flex flex-items-start mt-1 ml-1">
<div class="Skeleton"></div>
<div class="Skeleton"></div>
</div>
<div data-view-component="true" class="js-label-assignee-container hide-labels flex-justify-end flex-grow-1 flex-items-start d-flex ml-1 mt-1">
<span id="" data-name="Area-CookedRead" style="--label-r:195;--label-g:231;--label-b:255;--label-h:204;--label-s:100;--label-l:88;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Area-CookedRead</span>
</span>
<span id="" data-name="Area-Input" style="--label-r:128;--label-g:193;--label-b:255;--label-h:209;--label-s:100;--label-l:75;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Area-Input</span>
</span>
<span id="" data-name="Issue-Feature" style="--label-r:255;--label-g:154;--label-b:0;--label-h:36;--label-s:100;--label-l:50;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Issue-Feature</span>
</span>
<span id="" data-name="Priority-1" style="--label-r:255;--label-g:116;--label-b:140;--label-h:349;--label-s:100;--label-l:72;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Priority-1</span>
</span>
<span id="" data-name="Product-Conhost" style="--label-r:172;--label-g:77;--label-b:172;--label-h:300;--label-s:38;--label-l:48;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Product-Conhost</span>
</span>
<span id="" style="--label-r:189;--label-g:205;--label-b:164;--label-h:83;--label-s:29;--label-l:72;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label label-template ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle"></span>
</span>
<button id="hidden-label-button-COOKED_READ (cmd.exe) doesn't properly support emoji input-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd" aria-label="Area-CookedRead,Area-Input,Issue-Feature,Priority-1,Product-Conhost" data-action="click:tracking-block#toggleLabelCountPopover" type="button" data-view-component="true" class="js-hidden-label-counter btn d-flex ml-1"> +5
</button> <div style="position: relative" class="js-label-count-popover-container" hidden="">
<div class="label-count-popover-overlay" data-action="click:tracking-block#hideLabelCountPopover"></div>
<div style="top: 16px" data-view-component="true" class="Popover position-absolute right-0">
<div data-view-component="true" class="Popover-message Box Popover-message--top-right p-2 d-flex flex-wrap mt-2 mx-auto text-left color-shadow-large">
<span id="" hidden="hidden" data-name="Area-CookedRead" style="--label-r:195;--label-g:231;--label-b:255;--label-h:204;--label-s:100;--label-l:88;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Area-CookedRead</span>
</span>
<span id="" hidden="hidden" data-name="Area-Input" style="--label-r:128;--label-g:193;--label-b:255;--label-h:209;--label-s:100;--label-l:75;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Area-Input</span>
</span>
<span id="" hidden="hidden" data-name="Issue-Feature" style="--label-r:255;--label-g:154;--label-b:0;--label-h:36;--label-s:100;--label-l:50;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Issue-Feature</span>
</span>
<span id="" hidden="hidden" data-name="Priority-1" style="--label-r:255;--label-g:116;--label-b:140;--label-h:349;--label-s:100;--label-l:72;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Priority-1</span>
</span>
<span id="" hidden="hidden" data-name="Product-Conhost" style="--label-r:172;--label-g:77;--label-b:172;--label-h:300;--label-s:38;--label-l:48;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Product-Conhost</span>
</span>
<span id="" hidden="hidden" style="--label-r:189;--label-g:205;--label-b:164;--label-h:83;--label-s:29;--label-l:72;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover label-popover-template mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle"></span>
</span>
</div></div> </div>
</div>
<div data-view-component="true" class="d-flex flex-items-start mt-1">
<div hidden="hidden" data-view-component="true" class="AvatarStack js-item-avatar-stack AvatarStack--right">
<div data-view-component="true" class="AvatarStack-body">
<a href="" data-view-component="true" class="avatar-template avatar avatar-small circle lh-0 Link"><img data-hovercard-type="user" src="" alt="" size="20" height="20" width="20" data-view-component="true"></a>
</div></div> <svg aria-label="avatars" role="img" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-person empty-avatar-icon color-fg-muted">
<path d="M10.561 8.073a6.005 6.005 0 0 1 3.432 5.142.75.75 0 1 1-1.498.07 4.5 4.5 0 0 0-8.99 0 .75.75 0 0 1-1.498-.07 6.004 6.004 0 0 1 3.431-5.142 3.999 3.999 0 1 1 5.123 0ZM10.5 5a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"></path>
</svg>
</div>
<div data-targets="tracking-block.itemMenus">
<action-menu data-select-variant="none" data-view-component="true" class="tracking-block-list-item-dropdown-menu">
<focus-group direction="vertical" mnemonics="" retain="">
<div data-view-component="true" class="Button-withTooltip">
<button style="max-height:24px" data-targets="tracking-block.dropdownMenu" id="tracking-block-list-item-dropdown-menu-c6e67f65-3605-555b-a5c4-5e7234f61d9d-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-button" popovertarget="tracking-block-list-item-dropdown-menu-c6e67f65-3605-555b-a5c4-5e7234f61d9d-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-overlay" aria-controls="tracking-block-list-item-dropdown-menu-c6e67f65-3605-555b-a5c4-5e7234f61d9d-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-list" aria-haspopup="true" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--small Truncate tracking-block-item-menu-btn color-bg-transparent p-1 m-0 position-relative"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal Button-visual">
<path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path>
</svg>
</button> <tool-tip id="tooltip-5e3f8a60-6a0c-4b93-8475-ac3ccb8be194" for="tracking-block-list-item-dropdown-menu-c6e67f65-3605-555b-a5c4-5e7234f61d9d-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-button" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Edit...</tool-tip>
</div>
<anchored-position id="tracking-block-list-item-dropdown-menu-c6e67f65-3605-555b-a5c4-5e7234f61d9d-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-overlay" anchor="tracking-block-list-item-dropdown-menu-c6e67f65-3605-555b-a5c4-5e7234f61d9d-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-button" align="end" side="outside-bottom" anchor-offset="normal" popover="auto" aria-label="Menu" data-view-component="true">
<div data-view-component="true" class="Overlay Overlay--size-auto">
<div data-view-component="true">
<ul aria-labelledby="tracking-block-list-item-dropdown-menu-c6e67f65-3605-555b-a5c4-5e7234f61d9d-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-button" id="tracking-block-list-item-dropdown-menu-c6e67f65-3605-555b-a5c4-5e7234f61d9d-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<li data-targets="action-list.items" type="button" data-tracking-block-remove-button="" role="none" data-view-component="true" class="ActionListItem--danger ActionListItem d-flex">
<button tabindex="-1" id="item-57a793ae-7a12-48b4-adbc-9a59d9b341fc" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<div data-view-component="true" class="d-flex flex-items-center flex-justify-between">
<span data-view-component="true">Remove</span>
</div>
</span></button>
</li>
</ul>
</div>
</div></anchored-position> </focus-group>
</action-menu> </div>
<div hidden="" class="Toast Toast--success tasklist-metadata-toast js-edit-metadata-success-toast">
<span class="Toast-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</span>
<span class="Toast-content">Successfully updated the issue's project</span>
</div>
<div hidden="" class="Toast Toast--error tasklist-metadata-toast js-edit-metadata-error-toast">
<span class="Toast-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-stop">
<path d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
</svg>
</span>
<span class="Toast-content">There was an error updating the issue's project</span>
</div>
</li>
<li tabindex="0" role="listitem" class="TrackingBlock-item d-flex mt-0 px-3 py-1 gap-2 flex-justify-between position-relative js-tasklist-draggable-issue border-bottom" data-issue="" data-targets="tracking-block.listItems" data-item-uuid="2eb92ed0-fdbe-4f54-a3dc-3bfc75001836" data-item-title="[Epic] COOKED READ and character conversion fun with all our different Convert* functions" data-item-state="open" data-item-position="200" aria-label="Open issue [Epic] COOKED READ and character conversion fun with all our different Convert* functions terminal 711309588, assigned to lhecker, 4 labels. You are on a link." data-item-id="711309588" data-display-number="7777" data-repository-id="100060912" data-repository-name="terminal">
<div class="tasklist-issue-handle js-tasklist-drag-handle flex-self-start my-1">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-grabber dragger-icon">
<path d="M10 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0-4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
</svg>
</div>
<div class="tasklist-issue-content d-flex js-item-title flex-items-start my-1">
<span class="no-truncate">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-issue-opened open issue-state-icon">
<path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path>
</svg>
<a href="https://github.com/microsoft/terminal/issues/7777" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/7777/hovercard" class="js-navigation-open wb-break-word Link--secondary" data-hydro-click="{"event_type":"tasklist.item.link_click","payload":{"link_type":"issue","repository_id":100060912,"child_url":"https://github.com/microsoft/terminal/issues/7777","originating_url":null,"user_id":12824323}}" data-hydro-click-hmac="eca6014e3774c726d9820534cc461a50cf6ae1d2c5602d54769731423f199925">
<span class="color-fg-default">[Epic] COOKED READ and character conversion fun with all our different Convert* functions</span>
<span>#7777</span>
</a>
</span>
</div>
<div class="flex-shrink-0 mt-1 flex-items-start">
<div>
</div>
</div>
<div style="flex-grow: 1" data-view-component="true">
</div>
<div class="js-label-loading-container d-flex flex-items-start mt-1 ml-1">
<div class="Skeleton"></div>
<div class="Skeleton"></div>
</div>
<div data-view-component="true" class="js-label-assignee-container hide-labels flex-justify-end flex-grow-1 flex-items-start d-flex ml-1 mt-1">
<span id="" data-name="Impact-Correctness" style="--label-r:14;--label-g:224;--label-b:202;--label-h:173;--label-s:88;--label-l:46;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Impact-Correctness</span>
</span>
<span id="" data-name="Issue-Bug" style="--label-r:230;--label-g:0;--label-b:0;--label-h:0;--label-s:100;--label-l:45;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Issue-Bug</span>
</span>
<span id="" data-name="Issue-Scenario" style="--label-r:254;--label-g:247;--label-b:0;--label-h:58;--label-s:100;--label-l:49;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Issue-Scenario</span>
</span>
<span id="" data-name="Product-Conpty" style="--label-r:159;--label-g:54;--label-b:159;--label-h:300;--label-s:49;--label-l:41;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Product-Conpty</span>
</span>
<span id="" style="--label-r:189;--label-g:205;--label-b:164;--label-h:83;--label-s:29;--label-l:72;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label label-template ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle"></span>
</span>
<button id="hidden-label-button-[Epic] COOKED READ and character conversion fun with all our different Convert* functions-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd" aria-label="Impact-Correctness,Issue-Bug,Issue-Scenario,Product-Conpty" data-action="click:tracking-block#toggleLabelCountPopover" type="button" data-view-component="true" class="js-hidden-label-counter btn d-flex ml-1"> +4
</button> <div style="position: relative" class="js-label-count-popover-container" hidden="">
<div class="label-count-popover-overlay" data-action="click:tracking-block#hideLabelCountPopover"></div>
<div style="top: 16px" data-view-component="true" class="Popover position-absolute right-0">
<div data-view-component="true" class="Popover-message Box Popover-message--top-right p-2 d-flex flex-wrap mt-2 mx-auto text-left color-shadow-large">
<span id="" hidden="hidden" data-name="Impact-Correctness" style="--label-r:14;--label-g:224;--label-b:202;--label-h:173;--label-s:88;--label-l:46;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Impact-Correctness</span>
</span>
<span id="" hidden="hidden" data-name="Issue-Bug" style="--label-r:230;--label-g:0;--label-b:0;--label-h:0;--label-s:100;--label-l:45;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Issue-Bug</span>
</span>
<span id="" hidden="hidden" data-name="Issue-Scenario" style="--label-r:254;--label-g:247;--label-b:0;--label-h:58;--label-s:100;--label-l:49;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Issue-Scenario</span>
</span>
<span id="" hidden="hidden" data-name="Product-Conpty" style="--label-r:159;--label-g:54;--label-b:159;--label-h:300;--label-s:49;--label-l:41;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Product-Conpty</span>
</span>
<span id="" hidden="hidden" style="--label-r:189;--label-g:205;--label-b:164;--label-h:83;--label-s:29;--label-l:72;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover label-popover-template mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle"></span>
</span>
</div></div> </div>
</div>
<div data-view-component="true" class="d-flex flex-items-start mt-1">
<div data-view-component="true" class="AvatarStack js-item-avatar-stack AvatarStack--right AvatarStack--two">
<div data-view-component="true" class="AvatarStack-body">
<img data-hovercard-type="user" data-hovercard-url="/users/lhecker/hovercard" src="https://avatars.githubusercontent.com/u/2256941?v=4" alt="lhecker" size="20" height="20" width="20" data-view-component="true" class="avatar avatar-small circle">
<a href="" data-view-component="true" class="avatar-template avatar avatar-small circle lh-0 Link"><img data-hovercard-type="user" src="" alt="" size="20" height="20" width="20" data-view-component="true"></a>
</div></div></div>
<div data-targets="tracking-block.itemMenus">
<action-menu data-select-variant="none" data-view-component="true" class="tracking-block-list-item-dropdown-menu">
<focus-group direction="vertical" mnemonics="" retain="">
<div data-view-component="true" class="Button-withTooltip">
<button style="max-height:24px" data-targets="tracking-block.dropdownMenu" id="tracking-block-list-item-dropdown-menu-2eb92ed0-fdbe-4f54-a3dc-3bfc75001836-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-button" popovertarget="tracking-block-list-item-dropdown-menu-2eb92ed0-fdbe-4f54-a3dc-3bfc75001836-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-overlay" aria-controls="tracking-block-list-item-dropdown-menu-2eb92ed0-fdbe-4f54-a3dc-3bfc75001836-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-list" aria-haspopup="true" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--small Truncate tracking-block-item-menu-btn color-bg-transparent p-1 m-0 position-relative"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal Button-visual">
<path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path>
</svg>
</button> <tool-tip id="tooltip-233bc34f-34cd-4ee8-8895-00154f6f27fa" for="tracking-block-list-item-dropdown-menu-2eb92ed0-fdbe-4f54-a3dc-3bfc75001836-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-button" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Edit...</tool-tip>
</div>
<anchored-position id="tracking-block-list-item-dropdown-menu-2eb92ed0-fdbe-4f54-a3dc-3bfc75001836-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-overlay" anchor="tracking-block-list-item-dropdown-menu-2eb92ed0-fdbe-4f54-a3dc-3bfc75001836-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-button" align="end" side="outside-bottom" anchor-offset="normal" popover="auto" aria-label="Menu" data-view-component="true">
<div data-view-component="true" class="Overlay Overlay--size-auto">
<div data-view-component="true">
<ul aria-labelledby="tracking-block-list-item-dropdown-menu-2eb92ed0-fdbe-4f54-a3dc-3bfc75001836-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-button" id="tracking-block-list-item-dropdown-menu-2eb92ed0-fdbe-4f54-a3dc-3bfc75001836-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<li data-targets="action-list.items" type="button" data-tracking-block-remove-button="" role="none" data-view-component="true" class="ActionListItem--danger ActionListItem d-flex">
<button tabindex="-1" id="item-4cced8ce-97b9-4c35-9430-8a35d39cbf2d" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<div data-view-component="true" class="d-flex flex-items-center flex-justify-between">
<span data-view-component="true">Remove</span>
</div>
</span></button>
</li>
</ul>
</div>
</div></anchored-position> </focus-group>
</action-menu> </div>
<div hidden="" class="Toast Toast--success tasklist-metadata-toast js-edit-metadata-success-toast">
<span class="Toast-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</span>
<span class="Toast-content">Successfully updated the issue's project</span>
</div>
<div hidden="" class="Toast Toast--error tasklist-metadata-toast js-edit-metadata-error-toast">
<span class="Toast-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-stop">
<path d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
</svg>
</span>
<span class="Toast-content">There was an error updating the issue's project</span>
</div>
</li>
<li hidden="" tabindex="0" class="TrackingBlock-item js-template d-flex mt-0 px-3 py-1 gap-2 flex-justify-between position-relative js-tasklist-draggable-issue border-bottom" data-target="tracking-block.emptyItemTemplate" data-draft-issue="">
<div class="tasklist-issue-handle js-tasklist-drag-handle draft-handle flex-self-start">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-grabber dragger-icon">
<path d="M10 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0-4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
</svg>
</div>
<div class="d-flex Truncate tasklist-flex-grow">
<label class="tasklist-checkbox">
<input data-action="change:tracking-block" data-targets="tracking-block.inputs" class="mr-2" type="checkbox">
<span class="sr-only tasklist-draft"></span>
</label>
<div data-tracking-block-draft-title="" class="tasklist-flex-grow d-flex">
<div hidden="hidden" data-morpheus-ignore="hidden" data-view-component="true" class="js-title-text-field-wrapper tasklist-textarea-container width-full">
<textarea class="js-size-to-fit" aria-label="Draft title" data-action="change:tracking-block keydown:tracking-block focusout:tracking-block#draftTitleInputOutFocus" rows="1"></textarea>
</div>
<div data-targets="tracking-block.renderedTitles" data-action="click:tracking-block#handleDraftTitleClick" data-morpheus-ignore="hidden" data-view-component="true" class="js-draft-title tasklist-draft-title-container empty-template-title d-flex flex-items-center width-full">
<span data-view-component="true" class="wb-break-word"></span>
</div> </div>
</div>
<div data-targets="tracking-block.itemMenus">
<action-menu data-select-variant="none" data-view-component="true" class="tracking-block-list-item-dropdown-menu">
<focus-group direction="vertical" mnemonics="" retain="">
<div data-view-component="true" class="Button-withTooltip">
<button style="max-height:24px" data-targets="tracking-block.dropdownMenu" id="tracking-block-list-item-dropdown-menu-1234-1-button" popovertarget="tracking-block-list-item-dropdown-menu-1234-1-overlay" aria-controls="tracking-block-list-item-dropdown-menu-1234-1-list" aria-haspopup="true" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--small Truncate color-bg-transparent p-1 m-0 position-relative"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal Button-visual">
<path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path>
</svg>
</button> <tool-tip id="tooltip-eeaaf568-020e-421d-b924-8df05f38d07c" for="tracking-block-list-item-dropdown-menu-1234-1-button" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Options</tool-tip>
</div>
<anchored-position id="tracking-block-list-item-dropdown-menu-1234-1-overlay" anchor="tracking-block-list-item-dropdown-menu-1234-1-button" align="end" side="outside-bottom" anchor-offset="normal" popover="auto" aria-label="Menu" data-view-component="true">
<div data-view-component="true" class="Overlay Overlay--size-auto">
<div data-view-component="true">
<ul aria-labelledby="tracking-block-list-item-dropdown-menu-1234-1-button" id="tracking-block-list-item-dropdown-menu-1234-1-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<li data-targets="action-list.items" type="button" data-tracking-block-convert-button="" role="none" data-view-component="true" class="ActionListItem color-fg-default d-flex">
<button tabindex="-1" id="item-b4c7512e-169c-4af7-8a39-6dccaf0fe771" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<div data-view-component="true" class="d-flex flex-items-center flex-justify-between">
<span data-view-component="true">Convert to issue</span>
</div>
</span></button>
</li>
<li data-action="click:tracking-block#handleMarkAsDone" data-targets="action-list.items" type="button" role="none" data-view-component="true" class="ActionListItem color-fg-default">
<button tabindex="-1" id="item-563ef4db-41f5-4648-aa37-3a11e9fe6bdf" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<div data-view-component="true" class="d-flex flex-items-center flex-justify-between">
<span data-view-component="true">Toggle completion</span>
</div>
</span></button>
</li>
<li data-action="click:tracking-block#handleRename" data-targets="action-list.items" type="button" role="none" data-view-component="true" class="ActionListItem color-fg-default d-flex">
<button tabindex="-1" id="item-6b6f47b5-1567-42a8-aa06-41973d141107" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<div data-view-component="true" class="d-flex flex-items-center flex-justify-between">
<span data-view-component="true">Rename</span>
</div>
</span></button>
</li>
<li data-targets="action-list.items" type="button" data-tracking-block-remove-button="" role="none" data-view-component="true" class="ActionListItem--danger ActionListItem d-flex">
<button tabindex="-1" id="item-c9f40376-288c-4310-b25e-eb660536f9ca" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<div data-view-component="true" class="d-flex flex-items-center flex-justify-between">
<span data-view-component="true">Remove</span>
</div>
</span></button>
</li>
</ul>
</div>
</div></anchored-position> </focus-group>
</action-menu> </div>
</li>
<li hidden="" class="TrackingBlock-item js-template d-flex mt-0 px-3 py-1 gap-2 flex-justify-between position-relative js-tasklist-draggable-issue" data-target="tracking-block.emptyIssueTemplate" data-issue="">
<div class="tasklist-issue-handle js-tasklist-drag-handle draft-handle">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-grabber dragger-icon">
<path d="M10 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0-4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
</svg>
</div>
<div class="d-flex js-item-title flex-items-center">
<div class="js-issue-template-content"></div>
</div>
<div style="flex-grow: 1" data-view-component="true"></div>
</li>
</ol>
<div data-view-component="true" class="js-tracking-block-omnibar-container d-flex flex-items-center">
<button leading_visual_icon="plus" system_arguments="font-weight normal" data-target="tracking-block.omnibarToggleButton" data-action="click:tracking-block#handleOmnibarToggleButtonClick" data-morpheus-ignore="hidden" type="button" data-view-component="true" class="Button--invisible Button--medium Button ml-2 mt-2 pl-2 color-fg-muted text-normal border-0"> <span class="Button-content">
<span class="Button-visual Button-leadingVisual">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-plus">
<path d="M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"></path>
</svg>
</span>
<span class="Button-label">Add item to <span class="js-tracking-block-omnibar-title">Input</span></span>
</span>
</button>
<tracking-block-omnibar class="width-full" data-target="tracking-block.omnibar" hidden="" data-morpheus-ignore="hidden">
<!-- '"` --><!-- </textarea></xmp> --><form data-action="submit:tracking-block-omnibar#handleSubmit auto-complete-change:tracking-block-omnibar#handleAutoCompleteSelect" data-turbo="false" action="" accept-charset="UTF-8" method="post">
<div class="tasklist-omnibar px-1">
<div class="tasklist-omnibar-autocomplete-wrapper">
<auto-complete data-target="tracking-block-omnibar.autocomplete" src="/microsoft/terminal/issues/190/tracking_block/5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd/autocomplete" for="tasklist-omnibar-list-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd" data-view-component="true" class="tasklist-omnibar-input-wrapper">
<div class="FormControl FormControl--fullWidth">
<label for="tasklist-omnibar-input-element" class="FormControl-label sr-only">
Type to add an item or paste in an issue URL
</label>
<div class="FormControl-input-wrap FormControl-medium FormControl-input-wrap--leadingVisual">
<span class="FormControl-input-leadingVisualWrap">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-plus FormControl-input-leadingVisual">
<path d="M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"></path>
</svg>
</span>
<input id="tasklist-omnibar-input-element" name="tasklist_omnibar" autocomplete="off" type="text" placeholder="Type to add an item or paste in an issue URL" data-view-component="true" class="FormControl-input FormControl-medium">
</div>
</div>
<div class="Overlay-backdrop--anchor">
<div class="Overlay Overlay--height-auto Overlay--width-auto">
<div class="Overlay-body Overlay-body--paddingNone">
<ul id="tasklist-omnibar-list-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd" data-view-component="true" class="ActionListWrap ActionListWrap--inset"></ul>
</div>
</div>
</div>
<div id="tasklist-omnibar-list-5ac2b6e9-9ffe-4370-ab19-72bc82a6eccd-feedback" class="sr-only"></div>
</auto-complete> </div>
</div></form>
</tracking-block-omnibar>
<svg hidden="hidden" data-target="tracking-block.isSavingIcon" style="box-sizing: content-box; color: var(--color-icon-primary);" width="16" height="16" viewBox="0 0 16 16" fill="none" data-view-component="true" class="ml-auto mr-3 anim-rotate">
<circle cx="8" cy="8" r="7" stroke="currentColor" stroke-opacity="0.25" stroke-width="2" vector-effect="non-scaling-stroke"></circle>
<path d="M15 8a7.002 7.002 0 00-7-7" stroke="currentColor" stroke-width="2" stroke-linecap="round" vector-effect="non-scaling-stroke"></path>
</svg>
</div>
<!-- '"` --><!-- </textarea></xmp> --><form data-form-tracking-block-update="" data-turbo="false" action="/microsoft/terminal/issues/190" accept-charset="UTF-8" data-remote="true" method="post"><input type="hidden" name="_method" value="put" autocomplete="off"></form>
</div>
</tracking-block>
<tracking-block data-id="391fcde6-e13e-40b7-8a21-adcb5352c215" data-query-type="DEFAULT" data-response-source-type="DENORMALIZED" data-completion-completed="0" data-completion-total="4">
<div class="TrackingBlock border color-border-subtle rounded-2 mb-3 pb-2" data-target="tracking-block.contentWrapper" data-action="tracking-block-omnibar-append:tracking-block tasklist-block-title-update:tracking-block change:tracking-block click:tracking-block">
<x-banner data-view-component="true">
<div hidden="hidden" data-target="tracking-block.staleBanner" data-view-component="true" class="Banner flash Banner--error flash-error mx-3 mt-3">
<div class="Banner-visual">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-stop">
<path d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
</svg>
</div>
<div data-view-component="true" class="Banner-message">
<p class="Banner-title" data-target="x-banner.titleText">The content you are editing has changed. Please copy your edits and refresh the page.</p>
</div></div></x-banner>
<div class="mx-3 mt-3 d-flex flex-justify-between mb-1 gap-2">
<tasklist-block-title class="tasklist-title-container width-full d-flex flex-items-center mt-n1 ml-n1">
<div class=" color-bg-open color-fg-open rounded p-1 d-flex flex-items-center flex-justify-center mr-1">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-checklist js-tracking-block-completion-icon color-fg-open">
<path d="M2.5 1.75v11.5c0 .138.112.25.25.25h3.17a.75.75 0 0 1 0 1.5H2.75A1.75 1.75 0 0 1 1 13.25V1.75C1 .784 1.784 0 2.75 0h8.5C12.216 0 13 .784 13 1.75v7.736a.75.75 0 0 1-1.5 0V1.75a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25Zm13.274 9.537v-.001l-4.557 4.45a.75.75 0 0 1-1.055-.008l-1.943-1.95a.75.75 0 0 1 1.062-1.058l1.419 1.425 4.026-3.932a.75.75 0 1 1 1.048 1.074ZM4.75 4h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM4 7.75A.75.75 0 0 1 4.75 7h2a.75.75 0 0 1 0 1.5h-2A.75.75 0 0 1 4 7.75Z"></path>
</svg>
</div>
<div data-target="tracking-block.titleEditMode tasklist-block-title.titleEditMode" hidden="hidden" style="width: 100%;" data-view-component="true">
<!-- '"` --><!-- </textarea></xmp> --><form data-action="submit:tasklist-block-title#handleSubmit" data-turbo="false" style="display: flex; align-items: center;" action="" accept-charset="UTF-8" method="post">
<primer-text-field class="FormControl width-full FormControl--fullWidth">
<label class="sr-only FormControl-label" for="tasklist_title">
Title of tasklist
</label>
<div class="FormControl-input-wrap">
<input value="Output" data-target="primer-text-field.inputElement tasklist-block-title.titleInput" data-action="keydown:tasklist-block-title#handleKeyDown keyup:tasklist-block-title#handleKeyUp" test_selector="tasklist-block-title-input" aria-describedby="validation-beb85deb-f473-40c2-b554-fecac068e743" class="FormControl-input FormControl-medium js-tasklist-title-input" type="text" name="tasklist_title" id="tasklist_title">
</div>
<div class="FormControl-inlineValidation" id="validation-beb85deb-f473-40c2-b554-fecac068e743" hidden="hidden">
<span class="FormControl-inlineValidation--visual"><svg aria-hidden="true" height="12" viewBox="0 0 12 12" version="1.1" width="12" data-view-component="true" class="octicon octicon-alert-fill">
<path d="M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 0 1-1.146 1.954H1.33A1.313 1.313 0 0 1 .183 9.058ZM7 7V3H5v4Zm-1 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"></path>
</svg></span>
<span></span>
</div>
</primer-text-field>
<button data-action="click:tracking-block#hideTitleEditMode" type="button" data-view-component="true" class="Button--secondary Button--medium Button ml-2"> <span class="Button-content">
<span class="Button-label">Cancel</span>
</span>
</button>
<button type="submit" data-view-component="true" class="Button--primary Button--medium Button ml-2"> <span class="Button-content">
<span class="Button-label">Save</span>
</span>
</button></form>
</div>
<div data-target="tracking-block.titleViewMode tasklist-block-title.titleViewMode" data-view-component="true" class="d-flex flex-items-center">
<h3 data-target="tasklist-block-title.titleText" data-view-component="true" class="m-0 flex-1">Output</h3>
<div data-view-component="true" class="Button-withTooltip">
<button data-action="click:tracking-block#showTitleEditMode" id="icon-button-b74c347c-c292-4718-b8f0-80531e2cc58a" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium tasklist-title-edit-button ml-2"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-pencil Button-visual">
<path d="M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25c.081-.286.235-.547.445-.758l8.61-8.61Zm.176 4.823L9.75 4.81l-6.286 6.287a.253.253 0 0 0-.064.108l-.558 1.953 1.953-.558a.253.253 0 0 0 .108-.064Zm1.238-3.763a.25.25 0 0 0-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 0 0 0-.354Z"></path>
</svg>
</button> <tool-tip id="tooltip-e73780d4-9f8d-45da-86e8-4f7c00804486" for="icon-button-b74c347c-c292-4718-b8f0-80531e2cc58a" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Edit tasklist title</tool-tip>
</div>
</div></tasklist-block-title>
<div data-view-component="true" class="flex-items-center flex-justify-between d-flex">
<span data-view-component="true" class="Label Label--success">Beta</span>
<a style="margin-bottom: 2px; white-space: nowrap;" target="_blank" href="https://github.com/community/community/discussions/39106" data-view-component="true" class="Link Link--muted ml-2 mr-4">Give feedback</a>
<action-menu data-target="tracking-block-main.dropdownMenu" data-select-variant="none" data-view-component="true" class="tracking-block-list-item-dropdown-menu">
<focus-group direction="vertical" mnemonics="" retain="">
<div data-view-component="true" class="Button-withTooltip">
<button data-targets="tracking-block.dropdownMenu" id="tracking-block-dropdown-menu-391fcde6-e13e-40b7-8a21-adcb5352c215-button" popovertarget="tracking-block-dropdown-menu-391fcde6-e13e-40b7-8a21-adcb5352c215-overlay" aria-controls="tracking-block-dropdown-menu-391fcde6-e13e-40b7-8a21-adcb5352c215-list" aria-haspopup="true" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--small Truncate tracking-block-menu-btn color-bg-transparent p-1 m-0 position-relative"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal Button-visual">
<path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path>
</svg>
</button> <tool-tip id="tooltip-5fc7387c-ad0f-49da-9f77-300ba8cf2f8e" for="tracking-block-dropdown-menu-391fcde6-e13e-40b7-8a21-adcb5352c215-button" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Tasklist Output, more options</tool-tip>
</div>
<anchored-position id="tracking-block-dropdown-menu-391fcde6-e13e-40b7-8a21-adcb5352c215-overlay" anchor="tracking-block-dropdown-menu-391fcde6-e13e-40b7-8a21-adcb5352c215-button" align="start" side="outside-bottom" anchor-offset="normal" popover="auto" aria-label="Menu" data-view-component="true">
<div data-view-component="true" class="Overlay Overlay--size-auto">
<div data-view-component="true">
<ul aria-labelledby="tracking-block-dropdown-menu-391fcde6-e13e-40b7-8a21-adcb5352c215-button" id="tracking-block-dropdown-menu-391fcde6-e13e-40b7-8a21-adcb5352c215-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<li data-action="click:tracking-block#showTitleEditMode" data-analytics-event="{"category":"Tasklist Block","action":"rename","label":null}" data-targets="action-list.items" type="button" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-212af13f-bbf5-466a-8b14-8753ce43175e" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-pencil">
<path d="M11.013 1.427a1.75 1.75 0 0 1 2.474 0l1.086 1.086a1.75 1.75 0 0 1 0 2.474l-8.61 8.61c-.21.21-.47.364-.756.445l-3.251.93a.75.75 0 0 1-.927-.928l.929-3.25c.081-.286.235-.547.445-.758l8.61-8.61Zm.176 4.823L9.75 4.81l-6.286 6.287a.253.253 0 0 0-.064.108l-.558 1.953 1.953-.558a.253.253 0 0 0 .108-.064Zm1.238-3.763a.25.25 0 0 0-.354 0L10.811 3.75l1.439 1.44 1.263-1.263a.25.25 0 0 0 0-.354Z"></path>
</svg>
<span>Rename</span>
</span></button>
</li>
<li data-action="click:tracking-block#copyBlockMarkdown" data-analytics-event="{"category":"Tasklist Block","action":"copy markdown","label":null}" data-targets="action-list.items" type="button" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" id="item-83e24c13-8c2a-403f-b3ca-c50cbf0ed905" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-copy">
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path>
</svg>
<span class="copy-markdown-button" data-hydro-click-payload="{"event_type":"tasklist_block.user_action","payload":{"action":"copy-markdown","user_id":12824323,"tasklist_block_id":"391fcde6-e13e-40b7-8a21-adcb5352c215","originating_url":null}}" data-hydro-click-hmac="f2ee175ab8bca51e0c081373b692415e73e5d58523cdc2969a4804838e997d28">
Copy markdown
</span>
</span></button>
</li>
<li data-targets="action-list.items" type="button" role="none" data-view-component="true" class="ActionListItem">
<button tabindex="-1" data-show-dialog-id="delete-tasklist-dialog-391fcde6-e13e-40b7-8a21-adcb5352c215" id="delete-tasklist-button-391fcde6-e13e-40b7-8a21-adcb5352c215" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-trash color-fg-danger">
<path d="M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"></path>
</svg>
<span>Delete tasklist</span>
</span></button>
</li>
</ul>
</div>
</div></anchored-position> </focus-group>
</action-menu>
<div class="Overlay--hidden Overlay-backdrop--center" data-modal-dialog-overlay="">
<modal-dialog width="full" role="dialog" id="delete-tasklist-dialog-391fcde6-e13e-40b7-8a21-adcb5352c215" aria-modal="true" aria-disabled="true" aria-describedby="delete-tasklist-dialog-391fcde6-e13e-40b7-8a21-adcb5352c215-title delete-tasklist-dialog-391fcde6-e13e-40b7-8a21-adcb5352c215-description" data-view-component="true" class="Overlay Overlay-whenNarrow Overlay--size-auto Overlay--motion-scaleFade">
<div font="SF Pro Display" data-view-component="true" class="Overlay-header text-bold f2 color-fg-default">
<div class="Overlay-headerContentWrap">
<div class="Overlay-titleWrap">
<h1 class="Overlay-title sr-only" id="delete-tasklist-dialog-391fcde6-e13e-40b7-8a21-adcb5352c215-title">
Delete tasklist
</h1>
Delete tasklist block?
</div>
<div class="Overlay-actionWrap">
<button data-close-dialog-id="delete-tasklist-dialog-391fcde6-e13e-40b7-8a21-adcb5352c215" aria-label="Close" type="button" data-view-component="true" class="close-button Overlay-closeButton"><svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x">
<path d="M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"></path>
</svg></button>
</div>
</div>
</div>
<div data-view-component="true" class="Overlay-body color-fg-muted">Are you sure? All relationships in this tasklist will be removed.</div>
<div data-view-component="true" class="Overlay-footer Overlay-footer--alignEnd"> <button data-close-dialog-id="delete-tasklist-dialog-391fcde6-e13e-40b7-8a21-adcb5352c215" type="submit" data-view-component="true" class="Button--secondary Button--medium Button d-inline-block"> <span class="Button-content">
<span class="Button-label">Cancel</span>
</span>
</button>
<button data-action="click:tracking-block#removeTasklistBlock" type="submit" data-view-component="true" class="Button--danger Button--medium Button d-inline-block"> <span class="Button-content">
<span class="Button-label">Delete</span>
</span>
</button>
</div>
</modal-dialog></div>
</div> </div>
<ol dir="auto" class="TrackingBlock-list mb-0 list-style-none" data-target="tracking-block.list">
<li tabindex="0" role="listitem" class="TrackingBlock-item d-flex mt-0 px-3 py-1 gap-2 flex-justify-between position-relative js-tasklist-draggable-issue border-bottom" data-issue="" data-targets="tracking-block.listItems" data-item-uuid="d0307ddb-0827-5b93-8534-c4814c243d9d" data-item-title="[Epic] Text Buffer rewrite " data-item-state="open" data-item-position="100" aria-label="Open issue [Epic] Text Buffer rewrite terminal 726950459, 3 labels. You are on a link." data-item-id="726950459" data-display-number="8000" data-repository-id="100060912" data-repository-name="terminal">
<div class="tasklist-issue-handle js-tasklist-drag-handle flex-self-start my-1">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-grabber dragger-icon">
<path d="M10 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0-4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
</svg>
</div>
<div class="tasklist-issue-content d-flex js-item-title flex-items-start my-1">
<span class="no-truncate">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-issue-opened open issue-state-icon">
<path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path>
</svg>
<a href="https://github.com/microsoft/terminal/issues/8000" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/8000/hovercard" class="js-navigation-open wb-break-word Link--secondary" data-hydro-click="{"event_type":"tasklist.item.link_click","payload":{"link_type":"issue","repository_id":100060912,"child_url":"https://github.com/microsoft/terminal/issues/8000","originating_url":null,"user_id":12824323}}" data-hydro-click-hmac="0ce037bd3a980a98d29b6e1a0eb6f2da646862749e2c062c9fa3820868698cf2">
<span class="color-fg-default">[Epic] Text Buffer rewrite </span>
<span>#8000</span>
</a>
</span>
</div>
<div class="flex-shrink-0 mt-1 flex-items-start">
<div>
</div>
</div>
<div style="flex-grow: 1" data-view-component="true">
</div>
<div class="js-label-loading-container d-flex flex-items-start mt-1 ml-1">
<div class="Skeleton"></div>
<div class="Skeleton"></div>
</div>
<div data-view-component="true" class="js-label-assignee-container hide-labels flex-justify-end flex-grow-1 flex-items-start d-flex ml-1 mt-1">
<span id="" data-name="Area-Output" style="--label-r:0;--label-g:133;--label-b:255;--label-h:208;--label-s:100;--label-l:50;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Area-Output</span>
</span>
<span id="" data-name="Area-Server" style="--label-r:0;--label-g:96;--label-b:190;--label-h:209;--label-s:100;--label-l:37;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Area-Server</span>
</span>
<span id="" data-name="Product-Terminal" style="--label-r:89;--label-g:0;--label-b:89;--label-h:300;--label-s:100;--label-l:17;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Product-Terminal</span>
</span>
<span id="" style="--label-r:189;--label-g:205;--label-b:164;--label-h:83;--label-s:29;--label-l:72;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label label-template ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle"></span>
</span>
<button id="hidden-label-button-[Epic] Text Buffer rewrite -391fcde6-e13e-40b7-8a21-adcb5352c215" aria-label="Area-Output,Area-Server,Product-Terminal" data-action="click:tracking-block#toggleLabelCountPopover" type="button" data-view-component="true" class="js-hidden-label-counter btn d-flex ml-1"> +3
</button> <div style="position: relative" class="js-label-count-popover-container" hidden="">
<div class="label-count-popover-overlay" data-action="click:tracking-block#hideLabelCountPopover"></div>
<div style="top: 16px" data-view-component="true" class="Popover position-absolute right-0">
<div data-view-component="true" class="Popover-message Box Popover-message--top-right p-2 d-flex flex-wrap mt-2 mx-auto text-left color-shadow-large">
<span id="" hidden="hidden" data-name="Area-Output" style="--label-r:0;--label-g:133;--label-b:255;--label-h:208;--label-s:100;--label-l:50;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Area-Output</span>
</span>
<span id="" hidden="hidden" data-name="Area-Server" style="--label-r:0;--label-g:96;--label-b:190;--label-h:209;--label-s:100;--label-l:37;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Area-Server</span>
</span>
<span id="" hidden="hidden" data-name="Product-Terminal" style="--label-r:89;--label-g:0;--label-b:89;--label-h:300;--label-s:100;--label-l:17;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Product-Terminal</span>
</span>
<span id="" hidden="hidden" style="--label-r:189;--label-g:205;--label-b:164;--label-h:83;--label-s:29;--label-l:72;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover label-popover-template mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle"></span>
</span>
</div></div> </div>
</div>
<div data-view-component="true" class="d-flex flex-items-start mt-1">
<div hidden="hidden" data-view-component="true" class="AvatarStack js-item-avatar-stack AvatarStack--right">
<div data-view-component="true" class="AvatarStack-body">
<a href="" data-view-component="true" class="avatar-template avatar avatar-small circle lh-0 Link"><img data-hovercard-type="user" src="" alt="" size="20" height="20" width="20" data-view-component="true"></a>
</div></div> <svg aria-label="avatars" role="img" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-person empty-avatar-icon color-fg-muted">
<path d="M10.561 8.073a6.005 6.005 0 0 1 3.432 5.142.75.75 0 1 1-1.498.07 4.5 4.5 0 0 0-8.99 0 .75.75 0 0 1-1.498-.07 6.004 6.004 0 0 1 3.431-5.142 3.999 3.999 0 1 1 5.123 0ZM10.5 5a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"></path>
</svg>
</div>
<div data-targets="tracking-block.itemMenus">
<action-menu data-select-variant="none" data-view-component="true" class="tracking-block-list-item-dropdown-menu">
<focus-group direction="vertical" mnemonics="" retain="">
<div data-view-component="true" class="Button-withTooltip">
<button style="max-height:24px" data-targets="tracking-block.dropdownMenu" id="tracking-block-list-item-dropdown-menu-d0307ddb-0827-5b93-8534-c4814c243d9d-391fcde6-e13e-40b7-8a21-adcb5352c215-button" popovertarget="tracking-block-list-item-dropdown-menu-d0307ddb-0827-5b93-8534-c4814c243d9d-391fcde6-e13e-40b7-8a21-adcb5352c215-overlay" aria-controls="tracking-block-list-item-dropdown-menu-d0307ddb-0827-5b93-8534-c4814c243d9d-391fcde6-e13e-40b7-8a21-adcb5352c215-list" aria-haspopup="true" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--small Truncate tracking-block-item-menu-btn color-bg-transparent p-1 m-0 position-relative"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal Button-visual">
<path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path>
</svg>
</button> <tool-tip id="tooltip-e4a820f8-ec94-4f77-bdc8-dcf050ca526e" for="tracking-block-list-item-dropdown-menu-d0307ddb-0827-5b93-8534-c4814c243d9d-391fcde6-e13e-40b7-8a21-adcb5352c215-button" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Edit...</tool-tip>
</div>
<anchored-position id="tracking-block-list-item-dropdown-menu-d0307ddb-0827-5b93-8534-c4814c243d9d-391fcde6-e13e-40b7-8a21-adcb5352c215-overlay" anchor="tracking-block-list-item-dropdown-menu-d0307ddb-0827-5b93-8534-c4814c243d9d-391fcde6-e13e-40b7-8a21-adcb5352c215-button" align="end" side="outside-bottom" anchor-offset="normal" popover="auto" aria-label="Menu" data-view-component="true">
<div data-view-component="true" class="Overlay Overlay--size-auto">
<div data-view-component="true">
<ul aria-labelledby="tracking-block-list-item-dropdown-menu-d0307ddb-0827-5b93-8534-c4814c243d9d-391fcde6-e13e-40b7-8a21-adcb5352c215-button" id="tracking-block-list-item-dropdown-menu-d0307ddb-0827-5b93-8534-c4814c243d9d-391fcde6-e13e-40b7-8a21-adcb5352c215-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<li data-targets="action-list.items" type="button" data-tracking-block-remove-button="" role="none" data-view-component="true" class="ActionListItem--danger ActionListItem d-flex">
<button tabindex="-1" id="item-11c84c19-4de5-46a9-ae0a-51db4eb711d0" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<div data-view-component="true" class="d-flex flex-items-center flex-justify-between">
<span data-view-component="true">Remove</span>
</div>
</span></button>
</li>
</ul>
</div>
</div></anchored-position> </focus-group>
</action-menu> </div>
<div hidden="" class="Toast Toast--success tasklist-metadata-toast js-edit-metadata-success-toast">
<span class="Toast-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</span>
<span class="Toast-content">Successfully updated the issue's project</span>
</div>
<div hidden="" class="Toast Toast--error tasklist-metadata-toast js-edit-metadata-error-toast">
<span class="Toast-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-stop">
<path d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
</svg>
</span>
<span class="Toast-content">There was an error updating the issue's project</span>
</div>
</li>
<li tabindex="0" role="listitem" class="TrackingBlock-item d-flex mt-0 px-3 py-1 gap-2 flex-justify-between position-relative js-tasklist-draggable-issue border-bottom" data-issue="" data-targets="tracking-block.listItems" data-item-uuid="89af47d6-998f-5a9a-b194-60fdd1896d18" data-item-title="Feature Request: Finish full unicode support (M:N cell rendering, ZWJ?)" data-item-state="open" data-item-position="200" aria-label="Open issue Feature Request: Finish full unicode support (M:N cell rendering, ZWJ?) terminal 459587119, label Area-Rendering. You are on a link." data-item-id="459587119" data-display-number="1472" data-repository-id="100060912" data-repository-name="terminal">
<div class="tasklist-issue-handle js-tasklist-drag-handle flex-self-start my-1">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-grabber dragger-icon">
<path d="M10 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0-4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
</svg>
</div>
<div class="tasklist-issue-content d-flex js-item-title flex-items-start my-1">
<span class="no-truncate">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-issue-opened open issue-state-icon">
<path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM1.5 8a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Z"></path>
</svg>
<a href="https://github.com/microsoft/terminal/issues/1472" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/1472/hovercard" class="js-navigation-open wb-break-word Link--secondary" data-hydro-click="{"event_type":"tasklist.item.link_click","payload":{"link_type":"issue","repository_id":100060912,"child_url":"https://github.com/microsoft/terminal/issues/1472","originating_url":null,"user_id":12824323}}" data-hydro-click-hmac="62b0756fa48587348f04ffed988d101579fabbc172e9233de92a1637e2be1ab2">
<span class="color-fg-default">Feature Request: Finish full unicode support (M:N cell rendering, ZWJ?)</span>
<span>#1472</span>
</a>
</span>
</div>
<div class="flex-shrink-0 mt-1 flex-items-start">
<div>
</div>
</div>
<div style="flex-grow: 1" data-view-component="true">
</div>
<div class="js-label-loading-container d-flex flex-items-start mt-1 ml-1">
<div class="Skeleton"></div>
<div class="Skeleton"></div>
</div>
<div data-view-component="true" class="js-label-assignee-container hide-labels flex-justify-end flex-grow-1 flex-items-start d-flex ml-1 mt-1">
<span id="" data-name="Area-Rendering" style="--label-r:0;--label-g:107;--label-b:209;--label-h:209;--label-s:100;--label-l:40;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Area-Rendering</span>
</span>
<span id="" style="--label-r:189;--label-g:205;--label-b:164;--label-h:83;--label-s:29;--label-l:72;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label label-template ml-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle"></span>
</span>
<button id="hidden-label-button-Feature Request: Finish full unicode support (M:N cell rendering, ZWJ?)-391fcde6-e13e-40b7-8a21-adcb5352c215" aria-label="Area-Rendering" data-action="click:tracking-block#toggleLabelCountPopover" type="button" data-view-component="true" class="js-hidden-label-counter btn d-flex ml-1"> +1
</button> <div style="position: relative" class="js-label-count-popover-container" hidden="">
<div class="label-count-popover-overlay" data-action="click:tracking-block#hideLabelCountPopover"></div>
<div style="top: 16px" data-view-component="true" class="Popover position-absolute right-0">
<div data-view-component="true" class="Popover-message Box Popover-message--top-right p-2 d-flex flex-wrap mt-2 mx-auto text-left color-shadow-large">
<span id="" hidden="hidden" data-name="Area-Rendering" style="--label-r:0;--label-g:107;--label-b:209;--label-h:209;--label-s:100;--label-l:40;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle">Area-Rendering</span>
</span>
<span id="" hidden="hidden" style="--label-r:189;--label-g:205;--label-b:164;--label-h:83;--label-s:29;--label-l:72;" data-view-component="true" class="IssueLabel hx_IssueLabel js-item-label-in-popover label-popover-template mt-1 mb-1 mr-1 v-align-middle">
<span class="css-truncate css-truncate-target width-fit v-align-middle"></span>
</span>
</div></div> </div>
</div>
<div data-view-component="true" class="d-flex flex-items-start mt-1">
<div hidden="hidden" data-view-component="true" class="AvatarStack js-item-avatar-stack AvatarStack--right">
<div data-view-component="true" class="AvatarStack-body">
<a href="" data-view-component="true" class="avatar-template avatar avatar-small circle lh-0 Link"><img data-hovercard-type="user" src="" alt="" size="20" height="20" width="20" data-view-component="true"></a>
</div></div> <svg aria-label="avatars" role="img" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-person empty-avatar-icon color-fg-muted">
<path d="M10.561 8.073a6.005 6.005 0 0 1 3.432 5.142.75.75 0 1 1-1.498.07 4.5 4.5 0 0 0-8.99 0 .75.75 0 0 1-1.498-.07 6.004 6.004 0 0 1 3.431-5.142 3.999 3.999 0 1 1 5.123 0ZM10.5 5a2.5 2.5 0 1 0-5 0 2.5 2.5 0 0 0 5 0Z"></path>
</svg>
</div>
<div data-targets="tracking-block.itemMenus">
<action-menu data-select-variant="none" data-view-component="true" class="tracking-block-list-item-dropdown-menu">
<focus-group direction="vertical" mnemonics="" retain="">
<div data-view-component="true" class="Button-withTooltip">
<button style="max-height:24px" data-targets="tracking-block.dropdownMenu" id="tracking-block-list-item-dropdown-menu-89af47d6-998f-5a9a-b194-60fdd1896d18-391fcde6-e13e-40b7-8a21-adcb5352c215-button" popovertarget="tracking-block-list-item-dropdown-menu-89af47d6-998f-5a9a-b194-60fdd1896d18-391fcde6-e13e-40b7-8a21-adcb5352c215-overlay" aria-controls="tracking-block-list-item-dropdown-menu-89af47d6-998f-5a9a-b194-60fdd1896d18-391fcde6-e13e-40b7-8a21-adcb5352c215-list" aria-haspopup="true" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--small Truncate tracking-block-item-menu-btn color-bg-transparent p-1 m-0 position-relative"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal Button-visual">
<path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path>
</svg>
</button> <tool-tip id="tooltip-f46562b7-33d3-4ad4-99f1-b3435e677ccc" for="tracking-block-list-item-dropdown-menu-89af47d6-998f-5a9a-b194-60fdd1896d18-391fcde6-e13e-40b7-8a21-adcb5352c215-button" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Edit...</tool-tip>
</div>
<anchored-position id="tracking-block-list-item-dropdown-menu-89af47d6-998f-5a9a-b194-60fdd1896d18-391fcde6-e13e-40b7-8a21-adcb5352c215-overlay" anchor="tracking-block-list-item-dropdown-menu-89af47d6-998f-5a9a-b194-60fdd1896d18-391fcde6-e13e-40b7-8a21-adcb5352c215-button" align="end" side="outside-bottom" anchor-offset="normal" popover="auto" aria-label="Menu" data-view-component="true">
<div data-view-component="true" class="Overlay Overlay--size-auto">
<div data-view-component="true">
<ul aria-labelledby="tracking-block-list-item-dropdown-menu-89af47d6-998f-5a9a-b194-60fdd1896d18-391fcde6-e13e-40b7-8a21-adcb5352c215-button" id="tracking-block-list-item-dropdown-menu-89af47d6-998f-5a9a-b194-60fdd1896d18-391fcde6-e13e-40b7-8a21-adcb5352c215-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<li data-targets="action-list.items" type="button" data-tracking-block-remove-button="" role="none" data-view-component="true" class="ActionListItem--danger ActionListItem d-flex">
<button tabindex="-1" id="item-c94b607d-0f14-47e6-81e9-e210824c66d9" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<div data-view-component="true" class="d-flex flex-items-center flex-justify-between">
<span data-view-component="true">Remove</span>
</div>
</span></button>
</li>
</ul>
</div>
</div></anchored-position> </focus-group>
</action-menu> </div>
<div hidden="" class="Toast Toast--success tasklist-metadata-toast js-edit-metadata-success-toast">
<span class="Toast-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-check">
<path d="M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0Z"></path>
</svg>
</span>
<span class="Toast-content">Successfully updated the issue's project</span>
</div>
<div hidden="" class="Toast Toast--error tasklist-metadata-toast js-edit-metadata-error-toast">
<span class="Toast-icon">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-stop">
<path d="M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
</svg>
</span>
<span class="Toast-content">There was an error updating the issue's project</span>
</div>
</li>
<li hidden="" tabindex="0" class="TrackingBlock-item js-template d-flex mt-0 px-3 py-1 gap-2 flex-justify-between position-relative js-tasklist-draggable-issue border-bottom" data-target="tracking-block.emptyItemTemplate" data-draft-issue="">
<div class="tasklist-issue-handle js-tasklist-drag-handle draft-handle flex-self-start">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-grabber dragger-icon">
<path d="M10 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0-4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
</svg>
</div>
<div class="d-flex Truncate tasklist-flex-grow">
<label class="tasklist-checkbox">
<input data-action="change:tracking-block" data-targets="tracking-block.inputs" class="mr-2" type="checkbox">
<span class="sr-only tasklist-draft"></span>
</label>
<div data-tracking-block-draft-title="" class="tasklist-flex-grow d-flex">
<div hidden="hidden" data-morpheus-ignore="hidden" data-view-component="true" class="js-title-text-field-wrapper tasklist-textarea-container width-full">
<textarea class="js-size-to-fit" aria-label="Draft title" data-action="change:tracking-block keydown:tracking-block focusout:tracking-block#draftTitleInputOutFocus" rows="1"></textarea>
</div>
<div data-targets="tracking-block.renderedTitles" data-action="click:tracking-block#handleDraftTitleClick" data-morpheus-ignore="hidden" data-view-component="true" class="js-draft-title tasklist-draft-title-container empty-template-title d-flex flex-items-center width-full">
<span data-view-component="true" class="wb-break-word"></span>
</div> </div>
</div>
<div data-targets="tracking-block.itemMenus">
<action-menu data-select-variant="none" data-view-component="true" class="tracking-block-list-item-dropdown-menu">
<focus-group direction="vertical" mnemonics="" retain="">
<div data-view-component="true" class="Button-withTooltip">
<button style="max-height:24px" data-targets="tracking-block.dropdownMenu" id="tracking-block-list-item-dropdown-menu-1234-1-button" popovertarget="tracking-block-list-item-dropdown-menu-1234-1-overlay" aria-controls="tracking-block-list-item-dropdown-menu-1234-1-list" aria-haspopup="true" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--small Truncate color-bg-transparent p-1 m-0 position-relative"> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-kebab-horizontal Button-visual">
<path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path>
</svg>
</button> <tool-tip id="tooltip-0037e698-1f0b-4050-9ae9-805c89fcef25" for="tracking-block-list-item-dropdown-menu-1234-1-button" popover="manual" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Options</tool-tip>
</div>
<anchored-position id="tracking-block-list-item-dropdown-menu-1234-1-overlay" anchor="tracking-block-list-item-dropdown-menu-1234-1-button" align="end" side="outside-bottom" anchor-offset="normal" popover="auto" aria-label="Menu" data-view-component="true">
<div data-view-component="true" class="Overlay Overlay--size-auto">
<div data-view-component="true">
<ul aria-labelledby="tracking-block-list-item-dropdown-menu-1234-1-button" id="tracking-block-list-item-dropdown-menu-1234-1-list" role="menu" data-view-component="true" class="ActionListWrap--inset ActionListWrap">
<li data-targets="action-list.items" type="button" data-tracking-block-convert-button="" role="none" data-view-component="true" class="ActionListItem color-fg-default d-flex">
<button tabindex="-1" id="item-836f54bb-1512-4860-9fa2-b5f2502c08b3" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<div data-view-component="true" class="d-flex flex-items-center flex-justify-between">
<span data-view-component="true">Convert to issue</span>
</div>
</span></button>
</li>
<li data-action="click:tracking-block#handleMarkAsDone" data-targets="action-list.items" type="button" role="none" data-view-component="true" class="ActionListItem color-fg-default">
<button tabindex="-1" id="item-3192f893-61dd-4b76-8099-eb45f75b1595" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<div data-view-component="true" class="d-flex flex-items-center flex-justify-between">
<span data-view-component="true">Toggle completion</span>
</div>
</span></button>
</li>
<li data-action="click:tracking-block#handleRename" data-targets="action-list.items" type="button" role="none" data-view-component="true" class="ActionListItem color-fg-default d-flex">
<button tabindex="-1" id="item-4ad5fe9f-0657-42f3-9ea9-0e41c7d31fff" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<div data-view-component="true" class="d-flex flex-items-center flex-justify-between">
<span data-view-component="true">Rename</span>
</div>
</span></button>
</li>
<li data-targets="action-list.items" type="button" data-tracking-block-remove-button="" role="none" data-view-component="true" class="ActionListItem--danger ActionListItem d-flex">
<button tabindex="-1" id="item-b349235c-413d-47d0-9fea-e326813975ab" role="menuitem" data-view-component="true" class="ActionListContent">
<span data-view-component="true" class="ActionListItem-label">
<div data-view-component="true" class="d-flex flex-items-center flex-justify-between">
<span data-view-component="true">Remove</span>
</div>
</span></button>
</li>
</ul>
</div>
</div></anchored-position> </focus-group>
</action-menu> </div>
</li>
<li hidden="" class="TrackingBlock-item js-template d-flex mt-0 px-3 py-1 gap-2 flex-justify-between position-relative js-tasklist-draggable-issue" data-target="tracking-block.emptyIssueTemplate" data-issue="">
<div class="tasklist-issue-handle js-tasklist-drag-handle draft-handle">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-grabber dragger-icon">
<path d="M10 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0-4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm-4 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6 5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path>
</svg>
</div>
<div class="d-flex js-item-title flex-items-center">
<div class="js-issue-template-content"></div>
</div>
<div style="flex-grow: 1" data-view-component="true"></div>
</li>
</ol>
<div data-view-component="true" class="js-tracking-block-omnibar-container d-flex flex-items-center">
<button leading_visual_icon="plus" system_arguments="font-weight normal" data-target="tracking-block.omnibarToggleButton" data-action="click:tracking-block#handleOmnibarToggleButtonClick" data-morpheus-ignore="hidden" type="button" data-view-component="true" class="Button--invisible Button--medium Button ml-2 mt-2 pl-2 color-fg-muted text-normal border-0"> <span class="Button-content">
<span class="Button-visual Button-leadingVisual">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-plus">
<path d="M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"></path>
</svg>
</span>
<span class="Button-label">Add item to <span class="js-tracking-block-omnibar-title">Output</span></span>
</span>
</button>
<tracking-block-omnibar class="width-full" data-target="tracking-block.omnibar" hidden="" data-morpheus-ignore="hidden">
<!-- '"` --><!-- </textarea></xmp> --><form data-action="submit:tracking-block-omnibar#handleSubmit auto-complete-change:tracking-block-omnibar#handleAutoCompleteSelect" data-turbo="false" action="" accept-charset="UTF-8" method="post">
<div class="tasklist-omnibar px-1">
<div class="tasklist-omnibar-autocomplete-wrapper">
<auto-complete data-target="tracking-block-omnibar.autocomplete" src="/microsoft/terminal/issues/190/tracking_block/391fcde6-e13e-40b7-8a21-adcb5352c215/autocomplete" for="tasklist-omnibar-list-391fcde6-e13e-40b7-8a21-adcb5352c215" data-view-component="true" class="tasklist-omnibar-input-wrapper">
<div class="FormControl FormControl--fullWidth">
<label for="tasklist-omnibar-input-element" class="FormControl-label sr-only">
Type to add an item or paste in an issue URL
</label>
<div class="FormControl-input-wrap FormControl-medium FormControl-input-wrap--leadingVisual">
<span class="FormControl-input-leadingVisualWrap">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-plus FormControl-input-leadingVisual">
<path d="M7.75 2a.75.75 0 0 1 .75.75V7h4.25a.75.75 0 0 1 0 1.5H8.5v4.25a.75.75 0 0 1-1.5 0V8.5H2.75a.75.75 0 0 1 0-1.5H7V2.75A.75.75 0 0 1 7.75 2Z"></path>
</svg>
</span>
<input id="tasklist-omnibar-input-element" name="tasklist_omnibar" autocomplete="off" type="text" placeholder="Type to add an item or paste in an issue URL" data-view-component="true" class="FormControl-input FormControl-medium">
</div>
</div>
<div class="Overlay-backdrop--anchor">
<div class="Overlay Overlay--height-auto Overlay--width-auto">
<div class="Overlay-body Overlay-body--paddingNone">
<ul id="tasklist-omnibar-list-391fcde6-e13e-40b7-8a21-adcb5352c215" data-view-component="true" class="ActionListWrap ActionListWrap--inset"></ul>
</div>
</div>
</div>
<div id="tasklist-omnibar-list-391fcde6-e13e-40b7-8a21-adcb5352c215-feedback" class="sr-only"></div>
</auto-complete> </div>
</div></form>
</tracking-block-omnibar>
<svg hidden="hidden" data-target="tracking-block.isSavingIcon" style="box-sizing: content-box; color: var(--color-icon-primary);" width="16" height="16" viewBox="0 0 16 16" fill="none" data-view-component="true" class="ml-auto mr-3 anim-rotate">
<circle cx="8" cy="8" r="7" stroke="currentColor" stroke-opacity="0.25" stroke-width="2" vector-effect="non-scaling-stroke"></circle>
<path d="M15 8a7.002 7.002 0 00-7-7" stroke="currentColor" stroke-width="2" stroke-linecap="round" vector-effect="non-scaling-stroke"></path>
</svg>
</div>
<!-- '"` --><!-- </textarea></xmp> --><form data-form-tracking-block-update="" data-turbo="false" action="/microsoft/terminal/issues/190" accept-charset="UTF-8" data-remote="true" method="post"><input type="hidden" name="_method" value="put" autocomplete="off"></form>
</div>
</tracking-block> | 1 |
<p dir="auto">When I try to enter a command into the devtool console, the program crashes</p> | <p dir="auto"><code class="notranslate">npm install electron --save-dev</code></p>
<p dir="auto">Results in</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> [email protected] postinstall ******\node_modules\electron
> node install.js
*******\node_modules\electron\install.js:47
throw err
^
Error: ENOENT: no such file or directory, lstat '******\node_modules\electron\dist\resources
'
....
"C:\\Users\\ir_fu\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "electron" "--save-dev"
npm ERR! node v7.9.0
npm ERR! npm v4.0.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node install.js'."><pre class="notranslate"><code class="notranslate">> [email protected] postinstall ******\node_modules\electron
> node install.js
*******\node_modules\electron\install.js:47
throw err
^
Error: ENOENT: no such file or directory, lstat '******\node_modules\electron\dist\resources
'
....
"C:\\Users\\ir_fu\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "electron" "--save-dev"
npm ERR! node v7.9.0
npm ERR! npm v4.0.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node install.js'.
</code></pre></div>
<p dir="auto">Does anyone know why this happens?</p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Microsoft Windows [版本 10.0.18362.267]
Windows Terminal version (if applicable):0.3.2142.0"><pre lang="none" class="notranslate"><code class="notranslate">Microsoft Windows [版本 10.0.18362.267]
Windows Terminal version (if applicable):0.3.2142.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Open the terminal.</li>
<li>Switching CJK input methods.(doesn't work)</li>
<li>Typing.</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Show phrase candidate boxes.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Directly entered English.</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Win32NT 10.0.18362.0
Windows Terminal version (if applicable): v0.4.2382.0
"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Win32NT 10.0.18362.0
Windows Terminal version (if applicable): v0.4.2382.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Go to About screen, select text, right click, copy -> Crash<br>
Select text if auto copy is enabled -> Crash<br>
Select text and right click, copy -> Crash</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Expected behaviour is to have the selected text copied to the clipboard.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Terminal becomes unresponsive for a second, then disappears.</p> | 0 |
<p dir="auto">This works in Beta.0 but doesn't work in Beta.1</p>
<p dir="auto"><code class="notranslate"><select [(ngModel)]="name"> <option *ngFor="#n of names" [value]="n">{{n}}</option> </select> {{name}}</code></p>
<p dir="auto">the current workaround in beta-1:</p>
<p dir="auto">template.html:</p>
<p dir="auto"><code class="notranslate"><select class="form-control" #t (change)="update(t.value)"> <option *ngFor="#type of types" [value]="type">{{type}}</option> </select></code></p>
<p dir="auto">in component.ts</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="update(value){
console.log(value);
this.name=value;
}```
"><pre class="notranslate"><code class="notranslate">update(value){
console.log(value);
this.name=value;
}```
</code></pre></div> | <p dir="auto">I'm seeing an issue in <code class="notranslate">beta.1</code> that appears to be a regression from <code class="notranslate">beta.0</code>. <code class="notranslate">ngModel/ngModelChange</code> don't appear to work at all in Firefox, at least on selects. Here's a <a href="https://plnkr.co/edit/8Q2ZpXw9qEwCjiiuKGzJ?p=preview" rel="nofollow">plunkr demo</a>. You'll notice if you change the script src's to beta.0, the selects work as expected. Is there a breaking change that I'm missing? I don't see anything about <code class="notranslate">ngModel/ngModelChange</code> in the <a href="https://github.com/angular/angular/blob/master/CHANGELOG.md#200-beta1-catamorphic-involution-2016-01-08">changelog</a>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import {Component} from 'angular2/core';
@Component({
selector: 'my-app',
template: `
<h1>ngModel/ngModelChange not working on Firefox</h1>
<select [ngModel]="name" (ngModelChange)="changed($event)">
<option value=""></option>
<option *ngFor="#n of names" [value]="n">{{n}}</option>
</select>
<pre>Name: {{name}}</pre>
<select [(ngModel)]="name">
<option value=""></option>
<option *ngFor="#n of names" [value]="n">{{n}}</option>
</select>
<pre>Name: {{name}}</pre>
`
})
export class AppComponent {
names: String[] = ['Alpha', 'Bravo', 'Charlie'];
name: string;
changed(event) {
this.name = event;
}
}"><pre class="notranslate"><code class="notranslate">import {Component} from 'angular2/core';
@Component({
selector: 'my-app',
template: `
<h1>ngModel/ngModelChange not working on Firefox</h1>
<select [ngModel]="name" (ngModelChange)="changed($event)">
<option value=""></option>
<option *ngFor="#n of names" [value]="n">{{n}}</option>
</select>
<pre>Name: {{name}}</pre>
<select [(ngModel)]="name">
<option value=""></option>
<option *ngFor="#n of names" [value]="n">{{n}}</option>
</select>
<pre>Name: {{name}}</pre>
`
})
export class AppComponent {
names: String[] = ['Alpha', 'Bravo', 'Charlie'];
name: string;
changed(event) {
this.name = event;
}
}
</code></pre></div> | 1 |
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">imshow rendering changed from 3.1.0 to 3.1.1 when <code class="notranslate">yticks</code> ar set.<br>
Square matrix display is no longer square.<br>
Note that setting <code class="notranslate">xticks</code> do not affect the display.</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
fig, ax = plt.subplots()
ax.imshow([[1,2],[3,4]])
ax.set(yticks=[0,1]) # change the display in 1.3.1"><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-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">ax</span>.<span class="pl-en">imshow</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-s1">ax</span>.<span class="pl-en">set</span>(<span class="pl-s1">yticks</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>,<span class="pl-c1">1</span>]) <span class="pl-c"># change the display in 1.3.1</span></pre></div>
<p dir="auto">outcome in 3.1.<strong>1</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9698757/68293586-8a11cd80-008e-11ea-96c6-57651bf452f4.png"><img src="https://user-images.githubusercontent.com/9698757/68293586-8a11cd80-008e-11ea-96c6-57651bf452f4.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Previous outcome in 3.1.<strong>0</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9698757/68297201-a154b900-0096-11ea-8eac-4aa3bed7a94a.png"><img src="https://user-images.githubusercontent.com/9698757/68297201-a154b900-0096-11ea-8eac-4aa3bed7a94a.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Linux</li>
<li>Matplotlib version: 3.1.0 / 3.1.1</li>
<li>Matplotlib backend: module://ipykernel.pylab.backend_inline</li>
<li>Python version: 3.7.3</li>
</ul> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">The very top and bottom of the heatmaps are getting truncated to 1/2 height in version <code class="notranslate">3.1.1</code>. This does not happen for version <code class="notranslate">3.0.3</code>.</p>
<p dir="auto">This is the code from a Jupyter Notebook</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib
import pandas as pd
import numpy as np
import seaborn as sb
%pylab inline
print(matplotlib.__version__)
print(sb.__version__)
grid = pd.DataFrame(np.arange(9).reshape((3,3))/10)
fig, ax = subplots(1, 1, figsize=(5, 5))
sb.heatmap(grid, annot=True, fmt=".0f", ax=ax, cmap='RdBu', vmin=0, vmax=1, cbar=True);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>
<span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sb</span>
<span class="pl-c1">%</span><span class="pl-s1">pylab</span> <span class="pl-s1">inline</span>
<span class="pl-en">print</span>(<span class="pl-s1">matplotlib</span>.<span class="pl-s1">__version__</span>)
<span class="pl-en">print</span>(<span class="pl-s1">sb</span>.<span class="pl-s1">__version__</span>)
<span class="pl-s1">grid</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">9</span>).<span class="pl-en">reshape</span>((<span class="pl-c1">3</span>,<span class="pl-c1">3</span>))<span class="pl-c1">/</span><span class="pl-c1">10</span>)
<span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-en">subplots</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">5</span>, <span class="pl-c1">5</span>))
<span class="pl-s1">sb</span>.<span class="pl-en">heatmap</span>(<span class="pl-s1">grid</span>, <span class="pl-s1">annot</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">fmt</span><span class="pl-c1">=</span><span class="pl-s">".0f"</span>, <span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">ax</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s">'RdBu'</span>, <span class="pl-s1">vmin</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">vmax</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">cbar</span><span class="pl-c1">=</span><span class="pl-c1">True</span>);</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Populating the interactive namespace from numpy and matplotlib
3.1.1
0.9.0"><pre class="notranslate"><code class="notranslate">Populating the interactive namespace from numpy and matplotlib
3.1.1
0.9.0
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1696066/60530345-87f5c780-9cc6-11e9-9e31-a251283f3f7e.png"><img src="https://user-images.githubusercontent.com/1696066/60530345-87f5c780-9cc6-11e9-9e31-a251283f3f7e.png" alt="download" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Ubuntu Linux</li>
<li>Matplotlib version: 3.1.1</li>
<li>Matplotlib backend: module://ipykernel.pylab.backend_inline</li>
<li>Python version: 3.6</li>
<li>Jupyter version (if applicable): 4.4.0</li>
<li>Other libraries:</li>
</ul> | 1 |
<h4 dir="auto">Challenge Name</h4>
<p dir="auto">Any Computer Basics tutorial -- the quizzes for passing cut away from the last question and goes to the next lesson</p>
<h4 dir="auto">Issue Description</h4>
<h4 dir="auto">Browser Information</h4>
<ul dir="auto">
<li>Browser Name, Version: Chrome</li>
<li>Operating System: Win 10</li>
<li>Mobile, Desktop, or Tablet: Desktop</li>
</ul>
<h4 dir="auto">Your Code</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// If relevant, paste all of your challenge code in here
"><pre class="notranslate"><span class="pl-c">// If relevant, paste all of your challenge code in here</span></pre></div>
<h4 dir="auto">Screenshot</h4> | <p dir="auto">Challenge <a href="https://www.freecodecamp.com/en/challenges/basic-javascript/create-a-javascript-slot-machine" rel="nofollow">create-a-javascript-slot-machine</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<script>
function runSlots() {
var slotOne;
var slotTwo;
var slotThree;
var images = ["//i.imgur.com/9H17QFk.png", "//i.imgur.com/9RmpXTy.png", "//i.imgur.com/VJnmtt5.png"];
// Only change code below this line.
slotOne = Math.floor(Math.random() * (3 - 1 + 1)) + 1;
slotTwo = Math.floor(Math.random() * (3 - 1 + 1)) + 1;
slotThree = Math.floor(Math.random() * (3 - 1 + 1)) + 1;
// Only change code above this line.
if (slotOne !== undefined && slotTwo !== undefined && slotThree !== undefined) {
$(".logger").html(slotOne + " " + slotTwo + " " + slotThree);
}
$(".logger").append(" Not A Win")
return [slotOne, slotTwo, slotThree];
}
$(document).ready(function() {
$(".go").click(function() {
runSlots();
});
});
</script>
<div>
<div class = "container inset">
<div class = "header inset">
<img src="https://s3.amazonaws.com/freecodecamp/freecodecamp_logo.svg.gz" alt="learn to code JavaScript at Free Code Camp logo" class="img-responsive nav-logo">
<h2>FCC Slot Machine</h2>
</div>
<div class = "slots inset">
<div class = "slot inset">
</div>
<div class = "slot inset">
</div>
<div class = "slot inset">
</div>
</div>
<br/>
<div class = "outset">
<button class = "go inset">
Go
</button>
</div>
<br/>
<div class = "foot inset">
<span class = "logger"></span>
</div>
</div>
</div>
<style>
.container {
background-color: #4a2b0f;
height: 400px;
width: 260px;
margin: 50px auto;
border-radius: 4px;
}
.header {
border: 2px solid #fff;
border-radius: 4px;
height: 55px;
margin: 14px auto;
background-color: #457f86
}
.header h2 {
height: 30px;
margin: auto;
}
.header h2 {
font-size: 14px;
margin: 0 0;
padding: 0;
color: #fff;
text-align: center;
}
.slots{
display: flex;
background-color: #457f86;
border-radius: 6px;
border: 2px solid #fff;
}
.slot{
flex: 1 0 auto;
background: white;
height: 75px;
margin: 8px;
border: 2px solid #215f1e;
border-radius: 4px;
}
.go {
width: 100%;
color: #fff;
background-color: #457f86;
border: 2px solid #fff;
border-radius: 2px;
box-sizing: none;
outline: none!important;
}
.foot {
height: 150px;
background-color: 457f86;
border: 2px solid #fff;
}
.logger {
color: white;
margin: 10px;
}
.outset {
-webkit-box-shadow: 0px 0px 15px -2px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 0px 15px -2px rgba(0,0,0,0.75);
box-shadow: 0px 0px 15px -2px rgba(0,0,0,0.75);
}
.inset {
-webkit-box-shadow: inset 0px 0px 15px -2px rgba(0,0,0,0.75);
-moz-box-shadow: inset 0px 0px 15px -2px rgba(0,0,0,0.75);
box-shadow: inset 0px 0px 15px -2px rgba(0,0,0,0.75);
}
</style>
```
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-k">function</span> <span class="pl-en">runSlots</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">slotOne</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">slotTwo</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">slotThree</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">images</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s">"//i.imgur.com/9H17QFk.png"</span><span class="pl-kos">,</span> <span class="pl-s">"//i.imgur.com/9RmpXTy.png"</span><span class="pl-kos">,</span> <span class="pl-s">"//i.imgur.com/VJnmtt5.png"</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-c">// Only change code below this line.</span>
<span class="pl-s1">slotOne</span> <span class="pl-c1">=</span> <span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">floor</span><span class="pl-kos">(</span><span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">random</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">3</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-s1">slotTwo</span> <span class="pl-c1">=</span> <span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">floor</span><span class="pl-kos">(</span><span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">random</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">3</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-s1">slotThree</span> <span class="pl-c1">=</span> <span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">floor</span><span class="pl-kos">(</span><span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">random</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">3</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-c">// Only change code above this line.</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">slotOne</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span> <span class="pl-c1">&&</span> <span class="pl-s1">slotTwo</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span> <span class="pl-c1">&&</span> <span class="pl-s1">slotThree</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">".logger"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">html</span><span class="pl-kos">(</span><span class="pl-s1">slotOne</span> <span class="pl-c1">+</span> <span class="pl-s">" "</span> <span class="pl-c1">+</span> <span class="pl-s1">slotTwo</span> <span class="pl-c1">+</span> <span class="pl-s">" "</span> <span class="pl-c1">+</span> <span class="pl-s1">slotThree</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">".logger"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">append</span><span class="pl-kos">(</span><span class="pl-s">" Not A Win"</span><span class="pl-kos">)</span>
<span class="pl-k">return</span> <span class="pl-kos">[</span><span class="pl-s1">slotOne</span><span class="pl-kos">,</span> <span class="pl-s1">slotTwo</span><span class="pl-kos">,</span> <span class="pl-s1">slotThree</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">".go"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">runSlots</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-ent">script</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">container inset</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">header inset</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">https://s3.amazonaws.com/freecodecamp/freecodecamp_logo.svg.gz</span>" <span class="pl-c1">alt</span>="<span class="pl-s">learn to code JavaScript at Free Code Camp logo</span>" <span class="pl-c1">class</span>="<span class="pl-s">img-responsive nav-logo</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span><span class="pl-kos">></span>FCC Slot Machine<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">slots inset</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">slot inset</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">slot inset</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">slot inset</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">br</span>/>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">outset</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span> = "<span class="pl-s">go inset</span>"<span class="pl-kos">></span>
Go
<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">br</span>/>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span> = "<span class="pl-s">foot inset</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">span</span> <span class="pl-c1">class</span> = "<span class="pl-s">logger</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">span</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
.<span class="pl-c1">container</span> {
<span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>4a2b0f</span>;
<span class="pl-c1">height</span><span class="pl-kos">:</span> <span class="pl-c1">400<span class="pl-smi">px</span></span>;
<span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">260<span class="pl-smi">px</span></span>;
<span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">px</span></span> auto;
<span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">4<span class="pl-smi">px</span></span>;
}
.<span class="pl-c1">header</span> {
<span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">2<span class="pl-smi">px</span></span> solid <span class="pl-pds"><span class="pl-kos">#</span>fff</span>;
<span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">4<span class="pl-smi">px</span></span>;
<span class="pl-c1">height</span><span class="pl-kos">:</span> <span class="pl-c1">55<span class="pl-smi">px</span></span>;
<span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">14<span class="pl-smi">px</span></span> auto;
<span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>457f86</span>
}
.<span class="pl-c1">header</span> <span class="pl-ent">h2</span> {
<span class="pl-c1">height</span><span class="pl-kos">:</span> <span class="pl-c1">30<span class="pl-smi">px</span></span>;
<span class="pl-c1">margin</span><span class="pl-kos">:</span> auto;
}
.<span class="pl-c1">header</span> <span class="pl-ent">h2</span> {
<span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">14<span class="pl-smi">px</span></span>;
<span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span>;
<span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">0</span>;
<span class="pl-c1">color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>fff</span>;
<span class="pl-c1">text-align</span><span class="pl-kos">:</span> center;
}
.<span class="pl-c1">slots</span>{
<span class="pl-c1">display</span><span class="pl-kos">:</span> flex;
<span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>457f86</span>;
<span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">6<span class="pl-smi">px</span></span>;
<span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">2<span class="pl-smi">px</span></span> solid <span class="pl-pds"><span class="pl-kos">#</span>fff</span>;
}
.<span class="pl-c1">slot</span>{
<span class="pl-c1">flex</span><span class="pl-kos">:</span> <span class="pl-c1">1</span> <span class="pl-c1">0</span> auto;
<span class="pl-c1">background</span><span class="pl-kos">:</span> white;
<span class="pl-c1">height</span><span class="pl-kos">:</span> <span class="pl-c1">75<span class="pl-smi">px</span></span>;
<span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">8<span class="pl-smi">px</span></span>;
<span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">2<span class="pl-smi">px</span></span> solid <span class="pl-pds"><span class="pl-kos">#</span>215f1e</span>;
<span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">4<span class="pl-smi">px</span></span>;
}
.<span class="pl-c1">go</span> {
<span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">%</span></span>;
<span class="pl-c1">color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>fff</span>;
<span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>457f86</span>;
<span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">2<span class="pl-smi">px</span></span> solid <span class="pl-pds"><span class="pl-kos">#</span>fff</span>;
<span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">2<span class="pl-smi">px</span></span>;
<span class="pl-c1">box-sizing</span><span class="pl-kos">:</span> none;
<span class="pl-c1">outline</span><span class="pl-kos">:</span> none<span class="pl-k">!important</span>;
}
.<span class="pl-c1">foot</span> {
<span class="pl-c1">height</span><span class="pl-kos">:</span> <span class="pl-c1">150<span class="pl-smi">px</span></span>;
<span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-c1">457</span>f86;
<span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">2<span class="pl-smi">px</span></span> solid <span class="pl-pds"><span class="pl-kos">#</span>fff</span>;
}
.<span class="pl-c1">logger</span> {
<span class="pl-c1">color</span><span class="pl-kos">:</span> white;
<span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>;
}
.<span class="pl-c1">outset</span> {
<span class="pl-c1">-webkit-box-shadow</span><span class="pl-kos">:</span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">15<span class="pl-smi">px</span></span> <span class="pl-c1">-2<span class="pl-smi">px</span></span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.75</span>);
<span class="pl-c1">-moz-box-shadow</span><span class="pl-kos">:</span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">15<span class="pl-smi">px</span></span> <span class="pl-c1">-2<span class="pl-smi">px</span></span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.75</span>);
<span class="pl-c1">box-shadow</span><span class="pl-kos">:</span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">15<span class="pl-smi">px</span></span> <span class="pl-c1">-2<span class="pl-smi">px</span></span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.75</span>);
}
.<span class="pl-c1">inset</span> {
<span class="pl-c1">-webkit-box-shadow</span><span class="pl-kos">:</span> inset <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">15<span class="pl-smi">px</span></span> <span class="pl-c1">-2<span class="pl-smi">px</span></span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.75</span>);
<span class="pl-c1">-moz-box-shadow</span><span class="pl-kos">:</span> inset <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">15<span class="pl-smi">px</span></span> <span class="pl-c1">-2<span class="pl-smi">px</span></span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.75</span>);
<span class="pl-c1">box-shadow</span><span class="pl-kos">:</span> inset <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">0<span class="pl-smi">px</span></span> <span class="pl-c1">15<span class="pl-smi">px</span></span> <span class="pl-c1">-2<span class="pl-smi">px</span></span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.75</span>);
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
```</pre></div> | 0 |
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [62]: index = pd.MultiIndex.from_arrays([['a', 'b', 'c'], [1, 2]])
In [63]: index
Out[63]:
MultiIndex(levels=[['a', 'b', 'c'], [1, 2]],
labels=[[0, 1, 2], [0, 1]])
"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">62</span>]: <span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">MultiIndex</span>.<span class="pl-en">from_arrays</span>([[<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>, <span class="pl-s">'c'</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>]])
<span class="pl-v">In</span> [<span class="pl-c1">63</span>]: <span class="pl-s1">index</span>
<span class="pl-v">Out</span>[<span class="pl-c1">63</span>]:
<span class="pl-v">MultiIndex</span>(<span class="pl-s1">levels</span><span class="pl-c1">=</span>[[<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>, <span class="pl-s">'c'</span>], [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>]],
<span class="pl-s1">labels</span><span class="pl-c1">=</span>[[<span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>], [<span class="pl-c1">0</span>, <span class="pl-c1">1</span>]])</pre></div>
<p dir="auto">Probably not what the user wants, and we rely on them being the same length in, e.g. <code class="notranslate">index.shape</code> which will raise a ValueError if you access it.</p> | <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [2]: pd.MultiIndex.from_arrays([[1,2,3], ['a', 'b']])
Out[2]:
MultiIndex(levels=[[1, 2, 3], ['a', 'b']],
labels=[[0, 1, 2], [0, 1]])
In [3]: pd.MultiIndex.from_arrays([[1,2,3], ['a', 'b']]).values
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-3-65e6fa14e07f> in <module>()
----> 1 pd.MultiIndex.from_arrays([[1,2,3], ['a', 'b']]).values
/home/nobackup/repo/pandas/pandas/indexes/multi.py in values(self)
552 values.append(taken)
553
--> 554 self._tuples = lib.fast_zip(values)
555 return self._tuples
556
/home/nobackup/repo/pandas/pandas/lib.pyx in pandas.lib.fast_zip (pandas/lib.c:11131)()
587 it = <flatiter> PyArray_IterNew(arr)
588 if len(arr) != n:
--> 589 raise ValueError('all arrays must be same length')
590
591 for i in range(n):
ValueError: all arrays must be same length
"><pre class="notranslate"><code class="notranslate">In [2]: pd.MultiIndex.from_arrays([[1,2,3], ['a', 'b']])
Out[2]:
MultiIndex(levels=[[1, 2, 3], ['a', 'b']],
labels=[[0, 1, 2], [0, 1]])
In [3]: pd.MultiIndex.from_arrays([[1,2,3], ['a', 'b']]).values
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-3-65e6fa14e07f> in <module>()
----> 1 pd.MultiIndex.from_arrays([[1,2,3], ['a', 'b']]).values
/home/nobackup/repo/pandas/pandas/indexes/multi.py in values(self)
552 values.append(taken)
553
--> 554 self._tuples = lib.fast_zip(values)
555 return self._tuples
556
/home/nobackup/repo/pandas/pandas/lib.pyx in pandas.lib.fast_zip (pandas/lib.c:11131)()
587 it = <flatiter> PyArray_IterNew(arr)
588 if len(arr) != n:
--> 589 raise ValueError('all arrays must be same length')
590
591 for i in range(n):
ValueError: all arrays must be same length
</code></pre></div>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">The first previous command should already raise an error.</p>
<h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
In [4]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: a63bd12529ff309d957d714825b1753d0e02b7fa
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.5.0-2-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: it_IT.utf8
LOCALE: it_IT.UTF-8
pandas: 0.18.1+174.ga63bd12
nose: 1.3.7
pip: 1.5.6
setuptools: 18.4
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.16.0
statsmodels: 0.8.0.dev0+111ddc0
xarray: None
IPython: 5.0.0.dev
sphinx: 1.3.1
patsy: 0.3.0-dev
dateutil: 2.2
pytz: 2012c
blosc: None
bottleneck: 1.1.0dev
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: 1.1.2
xlsxwriter: 0.7.3
lxml: None
bs4: 4.4.0
html5lib: 0.999
httplib2: 0.9.1
apiclient: 1.5.0
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.0
pandas_datareader: 0.2.1
"><pre class="notranslate"><code class="notranslate">
In [4]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: a63bd12529ff309d957d714825b1753d0e02b7fa
python: 3.5.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.5.0-2-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: it_IT.utf8
LOCALE: it_IT.UTF-8
pandas: 0.18.1+174.ga63bd12
nose: 1.3.7
pip: 1.5.6
setuptools: 18.4
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.16.0
statsmodels: 0.8.0.dev0+111ddc0
xarray: None
IPython: 5.0.0.dev
sphinx: 1.3.1
patsy: 0.3.0-dev
dateutil: 2.2
pytz: 2012c
blosc: None
bottleneck: 1.1.0dev
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: None
xlrd: 0.9.4
xlwt: 1.1.2
xlsxwriter: 0.7.3
lxml: None
bs4: 4.4.0
html5lib: 0.999
httplib2: 0.9.1
apiclient: 1.5.0
sqlalchemy: 1.0.11
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.38.0
pandas_datareader: 0.2.1
</code></pre></div> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">npm install should work on branch <code class="notranslate">getting-started</code></p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">npm install fails with this output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated @semantic-release/[email protected]: Use @semantic-release/npm instead
npm ERR! code ENOVERSIONS
npm ERR! No valid versions available for duplexer3
npm ERR! A complete log of this run can be found in:
npm ERR! /home/jeff/.npm/_logs/2018-01-06T19_19_13_553Z-debug.log"><pre class="notranslate"><code class="notranslate">npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN deprecated @semantic-release/[email protected]: Use @semantic-release/npm instead
npm ERR! code ENOVERSIONS
npm ERR! No valid versions available for duplexer3
npm ERR! A complete log of this run can be found in:
npm ERR! /home/jeff/.npm/_logs/2018-01-06T19_19_13_553Z-debug.log
</code></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>git clone </li>
<li>git checkout getting-started</li>
<li>npm install</li>
</ol>
<h2 dir="auto">Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>^4.2.0</td>
</tr>
<tr>
<td>node</td>
<td>8.9.3</td>
</tr>
<tr>
<td>OS</td>
<td>Manjaro GNOME 3 x64 (relatively) fresh install</td>
</tr>
<tr>
<td>browser</td>
<td>Firefox 57.0.3</td>
</tr>
<tr>
<td>etc</td>
<td>npm version 5.6.0</td>
</tr>
</tbody>
</table> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Repro steps</h2>
<p dir="auto">When using an npm module that requires <code class="notranslate">regeneratorRuntime</code> (part of <code class="notranslate">babel-runtime</code>), I get an error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="regeneratorRuntime is not defined"><pre class="notranslate"><code class="notranslate">regeneratorRuntime is not defined
</code></pre></div>
<p dir="auto">Makes sense. So I try to define it by placing this at the top of my page <code class="notranslate">.js</code> file:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'babel-runtime';
import 'babel-runtime/regenerator';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'babel-runtime'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s">'babel-runtime/regenerator'</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">But the error persists. It seems like I'm not importing the runtime early enough, but I don't know where else to put it. If I move it to <code class="notranslate">_document.js</code>, the same problem occurs.</p>
<p dir="auto">Ultimately, I just want <code class="notranslate">regeneratorRuntime</code> to be defined on both client and server so I can use a library that expects it. (Many libraries exclude <code class="notranslate">regeneratorRuntime</code> from their bundles because it's oftentimes needed by several dependencies, and it's quite large.)</p>
<p dir="auto">Is there some straightforward way to do this that I'm missing?</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>5.1.0</td>
</tr>
<tr>
<td>node</td>
<td>8.9.1</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">I’m working on a Rails project that uses the react-rails gem. We have React 15.1.0 and a pre-made modal component that requires react-addons-transition-group 15.0.1 (among other things). When the modal loads, I get the following error:</p>
<p dir="auto">Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's <code class="notranslate">render</code> method, or you have multiple copies of React loaded (details: <a href="https://fb.me/react-refs-must-have-owner" rel="nofollow">https://fb.me/react-refs-must-have-owner</a>)</p>
<p dir="auto">When I try to close the modal I get this error:</p>
<p dir="auto">Uncaught TypeError: Cannot read property 'componentWillEnter' of undefined</p>
<p dir="auto">I’m not having any trouble using React in other components. I’ve already deleted and reinstalled my node_modules folder. Is this a known issue? Any tips?</p>
<p dir="auto">I've already reviewed the following resources and attempted to debug per their suggestions, to no avail:<br>
<a href="https://gist.github.com/jimfb/4faa6cbfb1ef476bd105">https://gist.github.com/jimfb/4faa6cbfb1ef476bd105</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="32404469" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/1457" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/1457/hovercard" href="https://github.com/facebook/react/issues/1457">#1457</a><br>
<a href="https://groups.google.com/forum/#!topic/reactjs/sJaIoLSQCSQ" rel="nofollow">https://groups.google.com/forum/#!topic/reactjs/sJaIoLSQCSQ</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="106475867" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/4876" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/4876/hovercard" href="https://github.com/facebook/react/issues/4876">#4876</a></p> | <p dir="auto">I noticed that legacy attributes like align, cellpadding, cellspacing wasn't rendered by React (at least on the server side).</p>
<p dir="auto">It is annoying for me since i was trying to convert our email templating system to use React in order to be able to display them in our frontend app.</p>
<p dir="auto">The fact is that i'm unable to complete this task with React. It led to another question. How am i supposed to make React and WebComponents work together if custom element/attributes names are filtered by React rendering engine ?</p> | 0 |
<p dir="auto">We have structured our files so that page specific code is in the pages folder. Here is an example:</p>
<ul dir="auto">
<li>pages
<ul dir="auto">
<li>manage-users
<ul dir="auto">
<li>__tests__
<ul dir="auto">
<li>manage-users.test.js</li>
</ul>
</li>
<li>index.js</li>
<li>components
<ul dir="auto">
<li>ManageUsersPage.js</li>
<li><other page specific components here></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<p dir="auto">The index.js file has the ManageUsersPage.js components as its default export. That is a regular next.js page component</p>
<p dir="auto">This structure has worked fine for us except when we build. This hardcoded glob assumes that all js files under pages is a page: <a href="https://github.com/zeit/next.js/blob/canary/server/build/webpack.js#L50">https://github.com/zeit/next.js/blob/canary/server/build/webpack.js#L50</a></p>
<p dir="auto">Does it make sense to make this glob overridable or do we have to not use file based routing?</p> | <h1 dir="auto">Bug report</h1>
<h2 dir="auto">Fixed Sidebar Not working after route change.</h2>
<p dir="auto">I have implemented a fixed sidebar in my next app using <code class="notranslate">react-sticky-box</code>. The sticky sidebar is working perfectly fine when the page is reloaded from the browser's reload button but stops working once the page is changed clicking the next.js's Link tag.</p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: macOS</li>
<li>Browser chrome</li>
<li>Version of Next.js : 9.0.6</li>
</ul> | 0 |
<h3 dir="auto">Affected Version</h3>
<p dir="auto">0.22.2 (suspected code path remains unchanged in druid 23 and master)</p>
<h3 dir="auto">Description</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2022-08-30T14:10:38,628 INFO [HttpServerInventoryView-6] org.apache.druid.server.coordination.ChangeRequestHttpSyncer - [https://XXXXXX.XXXXXX.com:8283/_1661264760506] requested resetCounter for reason [counter[Counter{counter=94953, hash=1661868638606}] >= last counter[Counter{counter=94953, hash=1661868638606}]]."><pre class="notranslate"><code class="notranslate">2022-08-30T14:10:38,628 INFO [HttpServerInventoryView-6] org.apache.druid.server.coordination.ChangeRequestHttpSyncer - [https://XXXXXX.XXXXXX.com:8283/_1661264760506] requested resetCounter for reason [counter[Counter{counter=94953, hash=1661868638606}] >= last counter[Counter{counter=94953, hash=1661868638606}]].
</code></pre></div>
<p dir="auto">You can see here that the client request for changes on this historical provides a Counter that matches the last counter on the server. This causes the client to send a fresh request to the server with a null counter in order to get the full set of segments. I am struggling to understand why we would want to reset a server that is up to date.</p>
<p dir="auto">It looks like <a href="https://github.com/apache/druid/blob/0.22.2/server/src/main/java/org/apache/druid/server/coordination/ChangeRequestHistory.java#L146">this</a> is what is causing the Counter to be reset.</p>
<p dir="auto">It seems that the above code path is run either when the Counter <strong>does not match</strong> when the client request is made OR when the waiting futures (requests waiting for a new change) are resolved <a href="https://github.com/apache/druid/blob/0.22.2/server/src/main/java/org/apache/druid/server/coordination/ChangeRequestHistory.java#L197">here</a>. It is this latter case that I don't understand the reset Counter return to client? Why not send some empty response and the client comes back with the same counter looking for a new change? Resetting it feels like overkill and added work for no gain. Perhaps I'm missing something here, but as of now it feels like incorrect, albeit not destructive, behavior.</p>
<p dir="auto">spit balling on change to <a href="https://github.com/apache/druid/blob/0.22.2/server/src/main/java/org/apache/druid/server/coordination/ChangeRequestHistory.java#L146">the code that controls resetting the Counter</a></p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" if (counter.counter == lastCounter.counter) {
if (counter.matches(lastCounter)) {
// return some empty response that does not cause client to reset counter
} else {
// this is bad, fail with a reset due to an incorrect hash - unlikely this would happen here, but it adds safety
}
} else if (counter.counter > lastCounter.counter) { // This is modification of original conditional to just GT
return ChangeRequestsSnapshot.fail(
StringUtils.format(
"counter[%s] > last counter[%s]",
counter,
lastCounter
)
);
} else if ..."><pre class="notranslate"> <span class="pl-k">if</span> (<span class="pl-s1">counter</span>.<span class="pl-s1">counter</span> == <span class="pl-s1">lastCounter</span>.<span class="pl-s1">counter</span>) {
<span class="pl-k">if</span> (<span class="pl-s1">counter</span>.<span class="pl-en">matches</span>(<span class="pl-s1">lastCounter</span>)) {
<span class="pl-c">// return some empty response that does not cause client to reset counter</span>
} <span class="pl-k">else</span> {
<span class="pl-c">// this is bad, fail with a reset due to an incorrect hash - unlikely this would happen here, but it adds safety</span>
}
} <span class="pl-k">else</span> <span class="pl-k">if</span> (<span class="pl-s1">counter</span>.<span class="pl-s1">counter</span> > <span class="pl-s1">lastCounter</span>.<span class="pl-s1">counter</span>) { <span class="pl-c">// This is modification of original conditional to just GT</span>
<span class="pl-k">return</span> <span class="pl-smi">ChangeRequestsSnapshot</span>.<span class="pl-en">fail</span>(
<span class="pl-smi">StringUtils</span>.<span class="pl-en">format</span>(
<span class="pl-s">"counter[%s] > last counter[%s]"</span>,
<span class="pl-s1">counter</span>,
<span class="pl-s1">lastCounter</span>
)
);
} <span class="pl-k">else</span> <span class="pl-k">if</span> ...</pre></div> | <p dir="auto">Hi all,</p>
<p dir="auto">We're using a count aggregator in most of our data sources, once in a while we get a request to migrate a set of events from some external system. We get these events aggregated, so that a single row represents multiple events.<br>
In order to get the correct count metric, I was thinking about one of -</p>
<ol dir="auto">
<li>Generate duplicate input rows according to the aggregated count - naturally this would be a huge overhead for large number of events</li>
<li>Avoid using count aggregator in general - always use longSum instead, and make sure to send "count": 1 in all our regular/non-migrated events</li>
<li>I think it would be great (maybe there already is such a feature? :) ) to have the ability to configure <code class="notranslate">fieldName</code> on the <code class="notranslate">count</code> aggregator - so that -<br>
a. If fieldName exists in the event JSON, its value will be used<br>
b. Otherwise, the value will be assumed to be 1 (as count normally behaves)</li>
</ol>
<p dir="auto">Thanks!</p>
<p dir="auto">Eran</p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I am running Windows 10 version 1903 (18362.356)
I have PowerToys 0.11.0 installed from the Releases tab of GitHub
Bug concerns FancyZones"><pre class="notranslate"><code class="notranslate">I am running Windows 10 version 1903 (18362.356)
I have PowerToys 0.11.0 installed from the Releases tab of GitHub
Bug concerns FancyZones
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ul dir="auto">
<li>I have several virtual desktops set up</li>
<li>I have set up 3 zones on my display using FancyZones.</li>
<li>I opted to use the Win+left and Win+right keys to use my FancyZones instead of the default Windows 10 behavior.</li>
<li>I changed between virtual desktops and ended up having my focus on the Windows Task Bar. But the behavior can be triggered by clicking on an empty area of the Windows Task Bar as well.</li>
<li>I hit Win+left (believing I have focused on a Window)</li>
</ul>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Nothing should have happened, because I really do not expect to resize / move the task bar.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The task bar behaved like a regular window and got stuck into my FancyZones. I could even move it between the FancyZones just like any other window. Not what I want :)</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Windows 10 1903 (18362.356) - 64bit
PowerToys version: 0.11.0
PowerToy module: Shortcut Guide, FancyZones"><pre class="notranslate"><code class="notranslate">Windows build number: Windows 10 1903 (18362.356) - 64bit
PowerToys version: 0.11.0
PowerToy module: Shortcut Guide, FancyZones
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Open the shortcut guide click onto the taskbar and then trigger the window controls to move a window to a specific zone (Windows + Arrow Keys), the taskbar gets moved into that zone even when locked. Weird behaviour appears when switching virtual desktops (see GIF below).</p>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8115642/64906153-f30a4400-d6e2-11e9-936d-9236081f6518.png"><img src="https://user-images.githubusercontent.com/8115642/64906153-f30a4400-d6e2-11e9-936d-9236081f6518.png" alt="image" style="max-width: 100%;"></a></p>
<h1 dir="auto">GIF</h1>
<p dir="auto"><a href="https://i.imgur.com/L4cr9HJ.gifv" rel="nofollow">Imgur</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 => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => 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 => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">When interpolation delimiters are changed to <code class="notranslate">[[</code> and <code class="notranslate">]]</code>, having an unescaped <code class="notranslate">{</code> in template still throws an error (including <code class="notranslate">{{</code>).</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto"><code class="notranslate">{</code> should be allowed in templates if interpolation delimiters are changed.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<p dir="auto"><a href="http://plnkr.co/edit/5Kl9w2Mpct9z7ljEgogS?p=preview" rel="nofollow">http://plnkr.co/edit/5Kl9w2Mpct9z7ljEgogS?p=preview</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto">One would normally change interpolation string because one needs <code class="notranslate">{{</code> for something else (eg. LaTeX syntax uses <code class="notranslate">{</code> heavily).</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.4.x</li>
</ul>
<ul dir="auto">
<li>
<p dir="auto"><strong>Browser:</strong> all</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> TypeScript</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 => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => 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 => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => 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>
<code class="notranslate"><div>Test binding: {{2 + 2}}</div></code><br>
=> <code class="notranslate">Test binding: 4</code><br>
<code class="notranslate"><div ngNonBindable>Test non binding: {{2 + 2}}</div></code><br>
=> <code class="notranslate">Test binding: {{2 + 2}}</code><br>
<code class="notranslate"><div>Test non binding: {2 + 2}</div></code><br>
=> Template parse errors, the "(Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)" message.</p>
<p dir="auto">This is a problem because precisely due to the fact that they are [ngNonBindable] marked elements, <code class="notranslate">"{{ '{' }}"</code> doesn't produce the expected result.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
As the escaping of <code class="notranslate">{</code> characters isn't possible inside [ngNonBindable] elements so it's the compiler's job to ignore them altogether, I believe.</p>
<p dir="auto"><code class="notranslate"><div>Test non binding: {2 + 2}</div></code><br>
=> <code class="notranslate">Test binding: {2 + 2}</code></p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
here => <a href="http://plnkr.co/edit/GSzwEUyXyY1qDabjpEL1?p=preview" rel="nofollow">http://plnkr.co/edit/GSzwEUyXyY1qDabjpEL1?p=preview</a></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0</li>
</ul> | 1 |
<p dir="auto">There does not appear to be a way to replicate this feature with the current aggregation API.</p> | <p dir="auto">have a web service, where every time a button is pressed from UI, it connects to elastic search and fires a query. This is the code which is executed every time. The issue is that after a while, intermittently, the UI hangs.</p>
<p dir="auto">private static final String CONFIG_CLUSTER_NAME = "cluster.name";</p>
<p dir="auto">private static final String CLUSTER_NAME = "sample_es";<br>
private static final String[] transportAddress = {<br>
//Machine details<br>
};</p>
<p dir="auto">private static final int transportPort = 9300;</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" public static Client initClient(){
settings = ImmutableSettings.settingsBuilder().put(CONFIG_CLUSTER_NAME, CLUSTER_NAME).build();
Client client = new TransportClient(settings);
for (int i=0 ; i < transportAddress.length-1 ; i++){
((TransportClient)client).addTransportAddress(new InetSocketTransportAddress(transportAddress[i], transportPort));
}
logger.info("TransportClient Created");
return client; "><pre class="notranslate"><code class="notranslate"> public static Client initClient(){
settings = ImmutableSettings.settingsBuilder().put(CONFIG_CLUSTER_NAME, CLUSTER_NAME).build();
Client client = new TransportClient(settings);
for (int i=0 ; i < transportAddress.length-1 ; i++){
((TransportClient)client).addTransportAddress(new InetSocketTransportAddress(transportAddress[i], transportPort));
}
logger.info("TransportClient Created");
return client;
</code></pre></div>
<p dir="auto">}</p>
<p dir="auto">public static int query( String query) throws Exception<br>
{<br>
Client client = null;<br>
try{</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" client = initClient();
//Query search code
}catch(Exception e){
e.printStackTrace();
}finally{
if(client != null){
client.close();
logger.info("TransportClient Closed");
}
}
return result_count;"><pre class="notranslate"><code class="notranslate"> client = initClient();
//Query search code
}catch(Exception e){
e.printStackTrace();
}finally{
if(client != null){
client.close();
logger.info("TransportClient Closed");
}
}
return result_count;
</code></pre></div>
<p dir="auto">}</p>
<p dir="auto">Whenever we restart the tomcat server, this is the error message we are seeing in logs. How should we fix this?</p>
<p dir="auto">[org.elasticsearch.common.util.concurrent.jsr166y.ThreadLocalRandom$1](value<br>
[org.elasticsearch.common.util.concurrent.jsr166y.ThreadLocalRandom$1@5838ce3e]) and a value of type<br>
[org.elasticsearch.common.util.concurrent.jsr166y.ThreadLocalRandom](value<br>
[org.elasticsearch.common.util.concurrent.jsr166y.ThreadLocalRandom@796c75b1]) but failed to remove it<br>
when the web application was stopped. This is very likely to create a memory leak.</p> | 0 |
<h4 dir="auto">Code Sample (copy-pastable, MCVE)</h4>
<p dir="auto">Consider the following code:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import io
import pandas as pd
# Trial FWF file:
data = io.StringIO('x10011\nx10012\nx10013\nx10024\nx20025\nx20026\nx20037\nx20038\n')
# Read and cast:
df1 = pd.read_fwf(data, widths=[2,3,1], header=None, dtype={0: str, 1: str, 2: int})
# Then index:
df1.set_index(1, inplace=True)
# Read, cast and index at once:
data.seek(0)
df2 = pd.read_fwf(data, widths=[2,3,1], header=None, dtype={0: str, 1: str, 2: int}, index_col=1)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">io</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-c"># Trial FWF file:</span>
<span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">io</span>.<span class="pl-v">StringIO</span>(<span class="pl-s">'x10011<span class="pl-cce">\n</span>x10012<span class="pl-cce">\n</span>x10013<span class="pl-cce">\n</span>x10024<span class="pl-cce">\n</span>x20025<span class="pl-cce">\n</span>x20026<span class="pl-cce">\n</span>x20037<span class="pl-cce">\n</span>x20038<span class="pl-cce">\n</span>'</span>)
<span class="pl-c"># Read and cast:</span>
<span class="pl-s1">df1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_fwf</span>(<span class="pl-s1">data</span>, <span class="pl-s1">widths</span><span class="pl-c1">=</span>[<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">1</span>], <span class="pl-s1">header</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span>{<span class="pl-c1">0</span>: <span class="pl-s1">str</span>, <span class="pl-c1">1</span>: <span class="pl-s1">str</span>, <span class="pl-c1">2</span>: <span class="pl-s1">int</span>})
<span class="pl-c"># Then index:</span>
<span class="pl-s1">df1</span>.<span class="pl-en">set_index</span>(<span class="pl-c1">1</span>, <span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-c"># Read, cast and index at once:</span>
<span class="pl-s1">data</span>.<span class="pl-en">seek</span>(<span class="pl-c1">0</span>)
<span class="pl-s1">df2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_fwf</span>(<span class="pl-s1">data</span>, <span class="pl-s1">widths</span><span class="pl-c1">=</span>[<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">1</span>], <span class="pl-s1">header</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span>{<span class="pl-c1">0</span>: <span class="pl-s1">str</span>, <span class="pl-c1">1</span>: <span class="pl-s1">str</span>, <span class="pl-c1">2</span>: <span class="pl-s1">int</span>}, <span class="pl-s1">index_col</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">As I understand the <a href="https://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_fwf.html" rel="nofollow">documentation</a> about control switches:</p>
<blockquote>
<p dir="auto"><code class="notranslate">dtype</code> : Type name or dict of column -> type, default None<br>
Data type for data or columns. E.g. {‘a’: np.float64, ‘b’: np.int32}<br>
<strong>Use str or object together with suitable na_values settings to preserve and not interpret dtype.</strong><br>
If converters are specified, they will be applied INSTEAD of dtype conversion.</p>
</blockquote>
<blockquote>
<p dir="auto"><code class="notranslate">index_col</code> : int or sequence or False, default None<br>
Column to use as the row labels of the DataFrame.<br>
If a sequence is given, a MultiIndex is used. If you have a malformed file with delimiters<br>
at the end of each line, you might consider index_col=False to force pandas to <em>not</em><br>
use the first column as the index (row names)</p>
</blockquote>
<p dir="auto"><strong>Both output should be equal but it is not.</strong></p>
<p dir="auto">When indexing at once using <code class="notranslate">index_col</code> switch, column is inferred to be <code class="notranslate">int</code> and casted, making the switch <code class="notranslate">dtype</code> useless in this case.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> df1.index
Index(['001', '001', '001', '002', '002', '002', '003', '003'], dtype='object', name=1)
>>> df2.index
Int64Index([1, 1, 1, 2, 2, 2, 3, 3], dtype='int64', name=1)
>>> df1.equals(df2)
False"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df1</span>.<span class="pl-s1">index</span>
<span class="pl-v">Index</span>([<span class="pl-s">'001'</span>, <span class="pl-s">'001'</span>, <span class="pl-s">'001'</span>, <span class="pl-s">'002'</span>, <span class="pl-s">'002'</span>, <span class="pl-s">'002'</span>, <span class="pl-s">'003'</span>, <span class="pl-s">'003'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'object'</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df2</span>.<span class="pl-s1">index</span>
<span class="pl-v">Int64Index</span>([<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">3</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'int64'</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">df1</span>.<span class="pl-en">equals</span>(<span class="pl-s1">df2</span>)
<span class="pl-c1">False</span></pre></div>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">I think the expected output of:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df2 = pd.read_fwf(data, widths=[2,3,1], header=None, dtype={0: str, 1: str, 2: int}, index_col=1)"><pre class="notranslate"><span class="pl-s1">df2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_fwf</span>(<span class="pl-s1">data</span>, <span class="pl-s1">widths</span><span class="pl-c1">=</span>[<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">1</span>], <span class="pl-s1">header</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span>{<span class="pl-c1">0</span>: <span class="pl-s1">str</span>, <span class="pl-c1">1</span>: <span class="pl-s1">str</span>, <span class="pl-c1">2</span>: <span class="pl-s1">int</span>}, <span class="pl-s1">index_col</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)</pre></div>
<p dir="auto">Should be equal to:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df1 = pd.read_fwf(data, widths=[2,3,1], header=None, dtype={0: str, 1: str, 2: int})
df1.set_index(1, inplace=True)"><pre class="notranslate"><span class="pl-s1">df1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_fwf</span>(<span class="pl-s1">data</span>, <span class="pl-s1">widths</span><span class="pl-c1">=</span>[<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">1</span>], <span class="pl-s1">header</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span>{<span class="pl-c1">0</span>: <span class="pl-s1">str</span>, <span class="pl-c1">1</span>: <span class="pl-s1">str</span>, <span class="pl-c1">2</span>: <span class="pl-s1">int</span>})
<span class="pl-s1">df1</span>.<span class="pl-en">set_index</span>(<span class="pl-c1">1</span>, <span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div>
<p dir="auto">If not, it just makes no sense to be able to protect columns from casting using <code class="notranslate">dtype</code> switch.<br>
For this reason, I think it is a kind of slight bug or inconsistency.</p>
<p dir="auto">Anyway, as provided in MCVE above, there exists a solution to circonvolve the problem.</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS
------------------
commit: None
python: 3.6.5.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.23.0
pytest: 3.5.1
pip: 10.0.1
setuptools: 39.1.0
Cython: 0.28.2
numpy: 1.14.3
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 6.4.0
sphinx: 1.7.4
patsy: 0.5.0
dateutil: 2.7.3
pytz: 2018.4
blosc: None
bottleneck: 1.2.1
tables: 3.4.3
numexpr: 2.6.5
feather: None
matplotlib: 2.2.2
openpyxl: 2.5.3
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.0.4
lxml: 4.2.1
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: 1.2.7
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None"><pre class="notranslate"><code class="notranslate">INSTALLED VERSIONS
------------------
commit: None
python: 3.6.5.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.23.0
pytest: 3.5.1
pip: 10.0.1
setuptools: 39.1.0
Cython: 0.28.2
numpy: 1.14.3
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 6.4.0
sphinx: 1.7.4
patsy: 0.5.0
dateutil: 2.7.3
pytz: 2018.4
blosc: None
bottleneck: 1.2.1
tables: 3.4.3
numexpr: 2.6.5
feather: None
matplotlib: 2.2.2
openpyxl: 2.5.3
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.0.4
lxml: 4.2.1
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: 1.2.7
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
</code></pre></div>
</details> | <p dir="auto">xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="119565693" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/11728" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/11728/hovercard" href="https://github.com/pandas-dev/pandas/issues/11728">#11728</a> for the multi-index case<br>
xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="181842124" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/14379" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/14379/hovercard" href="https://github.com/pandas-dev/pandas/issues/14379">#14379</a> for converters</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
import numpy as np
from pandas.compat import StringIO
data = """Internets,Spaceships
01,a
02,b
03,c
04,d
05,e
06,f
"""
# No leading zeroes in the index because it interprets the column as numeric
print pd.read_csv(StringIO.StringIO(data), index_col="Internets")
# Expected to see trailing zeroes in the index still, got 1,2,3,4 instead. Index is int64.
print pd.read_csv(StringIO.StringIO(data), index_col="Internets", dtype={"Internets": np.object})
# Trailing zeroes now, index is object.
print pd.read_csv(StringIO.StringIO(data), dtype={"Internets": np.object}).set_index("Internets")
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">from</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">compat</span> <span class="pl-k">import</span> <span class="pl-v">StringIO</span>
<span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s">"""Internets,Spaceships</span>
<span class="pl-s">01,a</span>
<span class="pl-s">02,b</span>
<span class="pl-s">03,c</span>
<span class="pl-s">04,d</span>
<span class="pl-s">05,e</span>
<span class="pl-s">06,f</span>
<span class="pl-s">"""</span>
<span class="pl-c"># No leading zeroes in the index because it interprets the column as numeric</span>
<span class="pl-k">print</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-v">StringIO</span>.<span class="pl-v">StringIO</span>(<span class="pl-s1">data</span>), <span class="pl-s1">index_col</span><span class="pl-c1">=</span><span class="pl-s">"Internets"</span>)
<span class="pl-c"># Expected to see trailing zeroes in the index still, got 1,2,3,4 instead. Index is int64.</span>
<span class="pl-k">print</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-v">StringIO</span>.<span class="pl-v">StringIO</span>(<span class="pl-s1">data</span>), <span class="pl-s1">index_col</span><span class="pl-c1">=</span><span class="pl-s">"Internets"</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span>{<span class="pl-s">"Internets"</span>: <span class="pl-s1">np</span>.<span class="pl-s1">object</span>})
<span class="pl-c"># Trailing zeroes now, index is object.</span>
<span class="pl-k">print</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-v">StringIO</span>.<span class="pl-v">StringIO</span>(<span class="pl-s1">data</span>), <span class="pl-s1">dtype</span><span class="pl-c1">=</span>{<span class="pl-s">"Internets"</span>: <span class="pl-s1">np</span>.<span class="pl-s1">object</span>}).<span class="pl-en">set_index</span>(<span class="pl-s">"Internets"</span>)</pre></div>
<p dir="auto">Version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Darwin
OS-release: 13.4.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.15.2
nose: 1.3.4
Cython: None
numpy: 1.9.1
scipy: 0.15.1
statsmodels: 0.6.1
IPython: 2.1.0
sphinx: None
patsy: 0.3.0
dateutil: 2.4.0
pytz: 2011c
bottleneck: None
tables: None
numexpr: 2.4
matplotlib: 1.3.1
openpyxl: 2.0.4
xlrd: 0.9.3
xlwt: 0.7.5
xlsxwriter: None
lxml: None
bs4: 4.3.2
html5lib: 0.999
httplib2: None
apiclient: None
rpy2: None
sqlalchemy: 0.9.6
pymysql: None
psycopg2: None"><pre class="notranslate"><code class="notranslate">In [1]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.9.final.0
python-bits: 64
OS: Darwin
OS-release: 13.4.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.15.2
nose: 1.3.4
Cython: None
numpy: 1.9.1
scipy: 0.15.1
statsmodels: 0.6.1
IPython: 2.1.0
sphinx: None
patsy: 0.3.0
dateutil: 2.4.0
pytz: 2011c
bottleneck: None
tables: None
numexpr: 2.4
matplotlib: 1.3.1
openpyxl: 2.0.4
xlrd: 0.9.3
xlwt: 0.7.5
xlsxwriter: None
lxml: None
bs4: 4.3.2
html5lib: 0.999
httplib2: None
apiclient: None
rpy2: None
sqlalchemy: 0.9.6
pymysql: None
psycopg2: None
</code></pre></div> | 1 |
<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 ERR! network Invalid response body while trying to fetch <a href="https://registry.npmjs.org/postcss-import" rel="nofollow">https://registry.npmjs.org/postcss-import</a>: Socket timeout<br>
npm ERR! network This is a problem related to network connectivity.<br>
npm ERR! network In most cases you are behind a proxy or have bad network settings.<br>
npm ERR! network<br>
npm ERR! network If you are behind a proxy, please make sure that the<br>
npm ERR! network 'proxy' config is set properly. See: 'npm help config'</p>
<p dir="auto">npm ERR! A complete log of this run can be found in:<br>
npm ERR! /home/bentex/.npm/_logs/2022-03-11T08_41_06_921Z-debug-0.log<br>
<g-emoji class="g-emoji" alias="heavy_multiplication_x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2716.png">✖</g-emoji> Package install failed, see above.<br>
The Schematic workflow failed. See above.</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">I expect to create a new angular project using the command ng new but seems theres a socket timeout each time i try</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>In this environment... linux distro parrotOs</li>
<li>With this config...</li>
<li>Run '...' ng new ..</li>
<li>See error...</li>
</ol>
<h3 dir="auto">Environment</h3>
<p dir="auto">npm -v<br>
8.3.1</p>
<p dir="auto">$node -v<br>
v17.4.0</p>
<p dir="auto">"user" config from /home/bentex/.npmrc</p>
<p dir="auto">legacy-peer-deps = true</p>
<p dir="auto">; node bin location = /home/bentex/.nvm/versions/node/v17.4.0/bin/node</p> | <h3 dir="auto">Current Behavior:</h3>
<p dir="auto">When trying to install packages, without a previous cache, we get constant timeouts when trying to fetch packages, both locally and in a CI environment. The package that fails is always different, so there isn't a specific package causing the issue.</p>
<p dir="auto">Stack trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="19505 verbose stack FetchError: request to https://.../npm/registry/typescript/-/typescript-4.1.3.tgz failed, reason: Socket timeout
19505 verbose stack at ClientRequest.<anonymous> (C:\npm\prefix\node_modules\npm\node_modules\minipass-fetch\lib\index.js:97:14)
19505 verbose stack at ClientRequest.emit (events.js:315:20)
19505 verbose stack at TLSSocket.socketErrorListener (_http_client.js:469:9)
19505 verbose stack at TLSSocket.emit (events.js:327:22)
19505 verbose stack at emitErrorNT (internal/streams/destroy.js:106:8)
19505 verbose stack at emitErrorCloseNT (internal/streams/destroy.js:74:3)
19505 verbose stack at processTicksAndRejections (internal/process/task_queues.js:80:21)
19506 verbose cwd D:\a\1\s
19507 verbose Windows_NT 10.0.17763
19508 verbose argv "C:\\hostedtoolcache\\windows\\node\\14.15.4\\x64\\node.exe" "C:\\npm\\prefix\\node_modules\\npm\\bin\\npm-cli.js" "ci" "--no-audit"
19509 verbose node v14.15.4
19510 verbose npm v7.9.0
19511 error code ERR_SOCKET_TIMEOUT
19512 error errno ERR_SOCKET_TIMEOUT
19513 error request to https://.../npm/registry/typescript/-/typescript-4.1.3.tgz failed, reason: Socket timeout
19514 verbose exit 1"><pre class="notranslate"><code class="notranslate">19505 verbose stack FetchError: request to https://.../npm/registry/typescript/-/typescript-4.1.3.tgz failed, reason: Socket timeout
19505 verbose stack at ClientRequest.<anonymous> (C:\npm\prefix\node_modules\npm\node_modules\minipass-fetch\lib\index.js:97:14)
19505 verbose stack at ClientRequest.emit (events.js:315:20)
19505 verbose stack at TLSSocket.socketErrorListener (_http_client.js:469:9)
19505 verbose stack at TLSSocket.emit (events.js:327:22)
19505 verbose stack at emitErrorNT (internal/streams/destroy.js:106:8)
19505 verbose stack at emitErrorCloseNT (internal/streams/destroy.js:74:3)
19505 verbose stack at processTicksAndRejections (internal/process/task_queues.js:80:21)
19506 verbose cwd D:\a\1\s
19507 verbose Windows_NT 10.0.17763
19508 verbose argv "C:\\hostedtoolcache\\windows\\node\\14.15.4\\x64\\node.exe" "C:\\npm\\prefix\\node_modules\\npm\\bin\\npm-cli.js" "ci" "--no-audit"
19509 verbose node v14.15.4
19510 verbose npm v7.9.0
19511 error code ERR_SOCKET_TIMEOUT
19512 error errno ERR_SOCKET_TIMEOUT
19513 error request to https://.../npm/registry/typescript/-/typescript-4.1.3.tgz failed, reason: Socket timeout
19514 verbose exit 1
</code></pre></div>
<p dir="auto">Tried using the fetch-retries, fetch-retry-mintimeout, and fetch-retry-maxtimeout options, but didn't seem to have any effect.</p>
<h3 dir="auto">Expected Behavior:</h3>
<p dir="auto">Install packages without timing out.</p>
<h3 dir="auto">Steps To Reproduce:</h3>
<p dir="auto">Using a project with workspaces (~6425 packages)<br>
No cache available<br>
Run <code class="notranslate">npm ci</code></p>
<h3 dir="auto">Environment:</h3>
<p dir="auto">OS: Mac OS 11.2.3 or Windows 10<br>
Node: 14.15.4<br>
npm: 7.9.0</p> | 1 |
<p dir="auto">Tab completion fails to infer field names:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> Pkg.dependencies()[Pkg.project().dependencies["Revise"]].┌ Error: Error in the keymap
│ exception =
│ BoundsError: attempt to access 1-element Array{Any,1} at index [2]"><pre class="notranslate"><code class="notranslate">julia> Pkg.dependencies()[Pkg.project().dependencies["Revise"]].┌ Error: Error in the keymap
│ exception =
│ BoundsError: attempt to access 1-element Array{Any,1} at index [2]
</code></pre></div>
<p dir="auto">But it has no trouble when broken down in two steps:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> x = Pkg.dependencies()[Pkg.project().dependencies["Revise"]];
julia> x.
dependencies git_source is_pinned is_tracking_registry name tree_hash
git_revision is_direct_dep is_tracking_path is_tracking_repo source version"><pre class="notranslate"><code class="notranslate">julia> x = Pkg.dependencies()[Pkg.project().dependencies["Revise"]];
julia> x.
dependencies git_source is_pinned is_tracking_registry name tree_hash
git_revision is_direct_dep is_tracking_path is_tracking_repo source version
</code></pre></div>
<details>
<summary>Stack trace</summary>
```
julia> Pkg.dependencies()[Pkg.project().dependencies["Revise"]].┌ Error: Error in the keymap
│ exception =
│ BoundsError: attempt to access 1-element Vector{Any} at index [2]
│ Stacktrace:
│ [1] getindex
│ @ ./array.jl:801 [inlined]
│ [2] get_value_getfield(ex::Expr, fn::Module) (repeats 2 times)
│ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:392
│ [3] try_get_type(sym::Expr, fn::Module)
│ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:436
│ [4] try_get_type(sym::Expr, fn::Module)
│ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:448
│ [5] get_type(sym::Expr, fn::Module)
│ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:457
│ [6] get_type_call(expr::Expr)
│ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:411
│ [7] try_get_type(sym::Expr, fn::Module)
│ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:439
│ [8] try_get_type(sym::Expr, fn::Module)
│ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:446
│ [9] get_type(sym::Expr, fn::Module)
│ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:457
│ [10] get_type_call(expr::Expr)
│ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:411
│ [11] try_get_type(sym::Expr, fn::Module)
│ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:439
│ [12] try_get_type(sym::Expr, fn::Module)
│ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:446
│ [13] get_type(sym::Expr, fn::Module)
│ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:457
│ [14] complete_symbol(sym::String, ffunc::REPL.REPLCompletions.var"<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1003199" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/34" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/34/hovercard" href="https://github.com/JuliaLang/julia/issues/34">#34</a>#37", context_module::Module)
│ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:153
│ [15] completions(string::String, pos::Int64, context_module::Module)
│ @ REPL.REPLCompletions /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:774
│ [16] completions
│ @ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPLCompletions.jl:638 [inlined]
│ [17] complete_line(c::REPL.REPLCompletionProvider, s::REPL.LineEdit.PromptState)
│ @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:439
│ [18] complete_line(s::REPL.LineEdit.PromptState, repeats::Int64)
│ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:348
│ [19] complete_line(s::REPL.LineEdit.MIState)
│ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:339
│ [20] edit_tab(s::REPL.LineEdit.MIState, jump_spaces::Bool, delete_trailing::Bool) (repeats 2 times)
│ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:2118
│ [21] (::REPL.LineEdit.var"<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1208920" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/109" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/109/hovercard" href="https://github.com/JuliaLang/julia/issues/109">#109</a>#162")(::REPL.LineEdit.MIState, ::Any, ::Vararg{Any, N} where N)
│ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:2159
│ [22] #invokelatest#2
│ @ ./essentials.jl:708 [inlined]
│ [23] invokelatest
│ @ ./essentials.jl:706 [inlined]
│ [24] (::REPL.LineEdit.var"<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="892978" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/22" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/22/hovercard" href="https://github.com/JuliaLang/julia/issues/22">#22</a>#23"{REPL.LineEdit.var"<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1208920" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/109" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/109/hovercard" href="https://github.com/JuliaLang/julia/issues/109">#109</a>#162", String})(s::Any, p::Any)
│ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:1414
│ [25] prompt!(term::REPL.Terminals.TextTerminal, prompt::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
│ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:2534
│ [26] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
│ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:2436
│ [27] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
│ @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:1126
│ [28] (::REPL.var"<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1053005" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/44" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/44/hovercard" href="https://github.com/JuliaLang/julia/issues/44">#44</a>#49"{REPL.LineEditREPL, REPL.REPLBackendRef})()
│ @ REPL ./task.jl:406
└ @ REPL.LineEdit /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/LineEdit.jl:2536
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="</details>"><pre class="notranslate"><code class="notranslate"></details>
</code></pre></div></details> | <p dir="auto">Open julia with REPL, type <code class="notranslate">@nonexist.</code> and hit Tab:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" _ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.7.0-DEV.5138 (2018-05-19 22:52 UTC)
_/ |\__'_|_|_|\__'_| | Commit a465d33f6 (1 day old master)
|__/ | x86_64-redhat-linux
julia> @nonexist.┌ Error: Error in the keymap
│ exception =
│ LoadError: UndefVarError: @nonexist not defined
│ Stacktrace:
│ [1] top-level scope
│ [2] lower at ./meta.jl:68 [inlined]
│ [3] get_type(::Expr, ::Module) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:362
│ [4] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol("##15#17"))) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:63
│ [5] completions(::String, ::Int64) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:648
...
"><pre class="notranslate"><code class="notranslate"> _ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.7.0-DEV.5138 (2018-05-19 22:52 UTC)
_/ |\__'_|_|_|\__'_| | Commit a465d33f6 (1 day old master)
|__/ | x86_64-redhat-linux
julia> @nonexist.┌ Error: Error in the keymap
│ exception =
│ LoadError: UndefVarError: @nonexist not defined
│ Stacktrace:
│ [1] top-level scope
│ [2] lower at ./meta.jl:68 [inlined]
│ [3] get_type(::Expr, ::Module) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:362
│ [4] complete_symbol(::String, ::getfield(REPL.REPLCompletions, Symbol("##15#17"))) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:63
│ [5] completions(::String, ::Int64) at /TEST/usr/share/julia/stdlib/v0.7/REPL/src/REPLCompletions.jl:648
...
</code></pre></div> | 1 |
<p dir="auto">In Julia >1.0 I observed the product between a real and a complex matrix run very slowly. This does not concern the complex and real matrix product however:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="M = 2000
C = rand(M,M) + im*rand(M,M)
R = rand(M,M)
@time C * R;
@time R * C;
0.090447 seconds (11 allocations: 61.036 MiB, 2.09% gc time)
6.074982 seconds (12 allocations: 61.036 MiB, 0.61% gc time)"><pre class="notranslate"><code class="notranslate">M = 2000
C = rand(M,M) + im*rand(M,M)
R = rand(M,M)
@time C * R;
@time R * C;
0.090447 seconds (11 allocations: 61.036 MiB, 2.09% gc time)
6.074982 seconds (12 allocations: 61.036 MiB, 0.61% gc time)
</code></pre></div> | <p dir="auto">Julia 0.4:<br>
julia> A=rand(3000,3000);B=rand(3000,3000);<br>
julia> tic();for k=1:50;C=A.*B;end;toc()<br>
elapsed time: 2.386786733 seconds<br>
2.386786733</p>
<p dir="auto">Matlab 2013a:</p>
<blockquote>
<blockquote>
<p dir="auto">A=rand(3000);B=rand(3000);<br>
tic;for k=1:50;C=A.*B;end;toc<br>
Elapsed time is 1.501691 seconds.</p>
</blockquote>
</blockquote>
<p dir="auto">This is on a 2 core machine. I also ran it on another computer with 6 cores and the difference is greater (about 4x). So it seems Matlab is using parallelism for .* while Julia isn't. A little experimentation in Matlab shows that it drops to 1 core when the matrix size is 191x191 or smaller.</p> | 0 |
<h4 dir="auto">Code Sample</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> import pandas as pd
>>>
>>> # Toy data
>>> series = pd.Series([0, 1, 5, 6, 10, None, np.nan])
>>> bins = [0, 5, 8]
>>>
>>> pd.cut(series, bins=bins, include_lowest=True)
Out[23]:
0 (-0.001, 5.0]
1 (-0.001, 5.0]
2 (-0.001, 5.0]
3 (5.0, 8.0]
4 NaN
5 NaN
6 NaN
dtype: category
Categories (2, interval[float64]): [(-0.001, 5.0] < (5.0, 8.0]]"><pre class="notranslate"><code class="notranslate">>>> import pandas as pd
>>>
>>> # Toy data
>>> series = pd.Series([0, 1, 5, 6, 10, None, np.nan])
>>> bins = [0, 5, 8]
>>>
>>> pd.cut(series, bins=bins, include_lowest=True)
Out[23]:
0 (-0.001, 5.0]
1 (-0.001, 5.0]
2 (-0.001, 5.0]
3 (5.0, 8.0]
4 NaN
5 NaN
6 NaN
dtype: category
Categories (2, interval[float64]): [(-0.001, 5.0] < (5.0, 8.0]]
</code></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">It was expected that the lower boundary would be [0, 5] (for the first three instances). However, a value of -0.001 was "invented" (?). It worked in version 0.19.2 (with the output shown in Expected Output). Is there any bug? Is there anything I have to specify to make it work again as before?</p>
<h4 dir="auto">Expected Output</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 [0, 5.0]
1 [0, 5.0]
2 [0, 5.0]
3 (5.0, 8.0]
4 NaN
5 NaN
6 NaN
dtype: category
Categories (2, interval[float64]): [ [0, 5.0] < (5.0, 8.0]]"><pre class="notranslate"><code class="notranslate">0 [0, 5.0]
1 [0, 5.0]
2 [0, 5.0]
3 (5.0, 8.0]
4 NaN
5 NaN
6 NaN
dtype: category
Categories (2, interval[float64]): [ [0, 5.0] < (5.0, 8.0]]
</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_US.UTF-8
LOCALE: en_US.UTF-8
<p dir="auto">pandas: 0.20.3<br>
pytest: None<br>
pip: 9.0.1<br>
setuptools: 36.2.0<br>
Cython: None<br>
numpy: 1.13.1<br>
scipy: 0.19.1<br>
xarray: None<br>
IPython: 5.1.0<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.6.1<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: None<br>
feather: None<br>
matplotlib: 2.0.0<br>
openpyxl: 2.4.1<br>
xlrd: 1.0.0<br>
xlwt: 1.2.0<br>
xlsxwriter: 0.9.8<br>
lxml: None<br>
bs4: None<br>
html5lib: 0.999999999<br>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.9.6<br>
s3fs: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details> | <p dir="auto">Hi,</p>
<p dir="auto">When trying to concat() multiple big fortran order arrays, there is a big performance hit, as most of the work goes into calling ravel().</p>
<p dir="auto">See:<br>
<a href="https://github.com/pydata/pandas/blob/master/pandas/core/internals.py#L4772">https://github.com/pydata/pandas/blob/master/pandas/core/internals.py#L4772</a></p>
<p dir="auto">You can see the <code class="notranslate">is_null(self)</code> is using just a few values from the data after calling <code class="notranslate">.ravel()</code></p>
<p dir="auto">An easy fix is to change that line to <code class="notranslate">values_flat = values.ravel(order='K')</code></p>
<p dir="auto">Here is a link to numpy.ravel docs: <a href="http://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.ravel.html" rel="nofollow">http://docs.scipy.org/doc/numpy-1.10.1/reference/generated/numpy.ravel.html</a></p>
<p dir="auto"><code class="notranslate">‘K’ means to read the elements in the order they occur in memory, except for reversing the data when strides are negative. By default, ‘C’ index order is used.</code></p> | 0 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.1</li>
<li>Operating System / Platform => Windows 10 64Bit</li>
<li>Operating System / Platform => Ubuntu 18.04</li>
<li>Compiler => vs2015</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I found that cv2.VideoCapture() costs different CPU utilization in Windows and in Ubuntu.<br>
I ran the following code in Windows and in Ubuntu respectively, it costs 25% CPU utilization in Windows and more than 80% CPU utilization costed in Ubuntu. Why it makes such big difference? Both OSs are run in a same machine, the only difference is the OS. So I guess is there some dependency libs I missed in the Ubuntu OS?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" cam = cv2.VideoCapture('rtmp://192.168.1.29:9935/live/0')
while True:
ret, frame = cam.read()
frame = cv2.resize(frame, (960,540))"><pre class="notranslate"><code class="notranslate"> cam = cv2.VideoCapture('rtmp://192.168.1.29:9935/live/0')
while True:
ret, frame = cam.read()
frame = cv2.resize(frame, (960,540))
</code></pre></div>
<h5 dir="auto">Steps to reproduce</h5> | <p dir="auto">Transferred from <a href="http://code.opencv.org/issues/3774" rel="nofollow">http://code.opencv.org/issues/3774</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|| Dennis Evangelista on 2014-06-27 15:59
|| Priority: Normal
|| Affected: 2.4.0 - 2.4.8
|| Category: calibration, 3d
|| Tracker: Bug
|| Difficulty:
|| PR:
|| Platform: Other / Mac OSX"><pre class="notranslate"><code class="notranslate">|| Dennis Evangelista on 2014-06-27 15:59
|| Priority: Normal
|| Affected: 2.4.0 - 2.4.8
|| Category: calibration, 3d
|| Tracker: Bug
|| Difficulty:
|| PR:
|| Platform: Other / Mac OSX
</code></pre></div>
<h2 dir="auto">findCirclesGrid() finding duplicate points</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Sometimes,
retval,corners = findCirclesGrid(image,size,flag=cv2.CALIB_CV_CLUSTER)
returns retval=True and corners but where the corners have duplicate points. We can detect the duplicate points by checking for the pairwise distances using scipy.spatial.distance.pdist. Removing the CALIB_CV_CLUSTER makes the duplicate points go away but results in fewer pattern detections.
If this is expected behavior, it might help to note this in the documentation; inadvertently having duplicate points really messes up our calibration."><pre class="notranslate"><code class="notranslate">Sometimes,
retval,corners = findCirclesGrid(image,size,flag=cv2.CALIB_CV_CLUSTER)
returns retval=True and corners but where the corners have duplicate points. We can detect the duplicate points by checking for the pairwise distances using scipy.spatial.distance.pdist. Removing the CALIB_CV_CLUSTER makes the duplicate points go away but results in fewer pattern detections.
If this is expected behavior, it might help to note this in the documentation; inadvertently having duplicate points really messes up our calibration.
</code></pre></div>
<h2 dir="auto">History</h2>
<h5 dir="auto">Dmitry Retinskiy on 2014-09-17 09:56</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Ilya, could you check this?
Thanks.
- Assignee set to Ilya Lysenkov
- Status changed from New to Open"><pre class="notranslate"><code class="notranslate">Ilya, could you check this?
Thanks.
- Assignee set to Ilya Lysenkov
- Status changed from New to Open
</code></pre></div> | 0 |
<p dir="auto">Maybe I'm misunderstanding, or doing something wrong, but I don't think Secrets should be available in clear text by means of <code class="notranslate">kubectl describe secrets</code> even if they are created using <code class="notranslate">kubectl apply -f</code></p>
<h1 dir="auto">Example</h1>
<p dir="auto">my-secret.yaml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="apiVersion: v1
kind: Secret
metadata:
name: tls
type: Opaque
data:
tls.crt: BASE64...
tls.key: BASE64..."><pre class="notranslate"><code class="notranslate">apiVersion: v1
kind: Secret
metadata:
name: tls
type: Opaque
data:
tls.crt: BASE64...
tls.key: BASE64...
</code></pre></div>
<p dir="auto">Commands:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="kubectl apply -f my-secret.yaml
kubectl describe secrets my-secret"><pre class="notranslate"><code class="notranslate">kubectl apply -f my-secret.yaml
kubectl describe secrets my-secret
</code></pre></div>
<p dir="auto"><code class="notranslate">kubectl describe</code> will have an "Annotations:" field which contains the entire yaml file (as JSON), including my base64 encoded secrets:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Name: tls
Namespace: default
Labels: <none>
Annotations: kubectl.kubernetes.io/last-applied-configuration={"kind":"Secret","apiVersion":"v1","metadata":{"name":"tls","creationTimestamp":null},"data":{"tls.crt":"BASE64...","tls.key":"BASE64..."},"type":"Opaque"}
Type: Opaque
Data
====
tls.key: 1565 bytes
tls.crt: 1234 bytes"><pre class="notranslate"><code class="notranslate">Name: tls
Namespace: default
Labels: <none>
Annotations: kubectl.kubernetes.io/last-applied-configuration={"kind":"Secret","apiVersion":"v1","metadata":{"name":"tls","creationTimestamp":null},"data":{"tls.crt":"BASE64...","tls.key":"BASE64..."},"type":"Opaque"}
Type: Opaque
Data
====
tls.key: 1565 bytes
tls.crt: 1234 bytes
</code></pre></div>
<p dir="auto">I appreciate that it's hard to <code class="notranslate">apply</code> something without storing last-applied-configuration, but maybe Secrets should be treated as a special case?</p> | <p dir="auto">when using <code class="notranslate">kubectl apply</code> for secrets the annotation will store the secret data, making it visible to <code class="notranslate">kubectl describe</code></p> | 1 |
<p dir="auto">I made a simple app to test compatibility with IE and it seems that adding router (<code class="notranslate">RouteConfig</code> and <code class="notranslate"><router-outlet></code>) gives following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Unable to get value of the property 'contains': object is null or undefined"><pre class="notranslate"><code class="notranslate">TypeError: Unable to get value of the property 'contains': object is null or undefined
</code></pre></div>
<p dir="auto">I can't really say which line exactly produces the error (debugging on IE is really painful, especially on VM - any tips regarding that are welcome).</p>
<p dir="auto">Main component looks like this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {Component} from 'angular2/angular2';
import {RouteConfig, ROUTER_DIRECTIVES} from 'angular2/router';
import {TestComponent} from './components/test';
@Component({
selector: 'app',
template: '<router-outlet></router-outlet>',
directives: [ROUTER_DIRECTIVES]
})
@RouteConfig([
{ path: '/', component: TestComponent }
])
export class App {}"><pre class="notranslate"><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-k">from</span> <span class="pl-s">'angular2/angular2'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-v">RouteConfig</span><span class="pl-kos">,</span> <span class="pl-c1">ROUTER_DIRECTIVES</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'angular2/router'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-v">TestComponent</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./components/test'</span><span class="pl-kos">;</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">template</span>: <span class="pl-s">'<router-outlet></router-outlet>'</span><span class="pl-kos">,</span>
<span class="pl-c1">directives</span>: <span class="pl-kos">[</span><span class="pl-c1">ROUTER_DIRECTIVES</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
@<span class="pl-v">RouteConfig</span><span class="pl-kos">(</span><span class="pl-kos">[</span>
<span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'/'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-v">TestComponent</span> <span class="pl-kos">}</span>
<span class="pl-kos">]</span><span class="pl-kos">)</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-v">App</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<p dir="auto"><code class="notranslate">TestComponent</code> is:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {Component} from 'angular2/angular2';
@Component({
selector: 'test',
template: 'Hello from component: {{ test }}'
})
export class TestComponent {
public test: string = 'test';
}"><pre class="notranslate"><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-k">from</span> <span class="pl-s">'angular2/angular2'</span><span class="pl-kos">;</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">'test'</span><span class="pl-kos">,</span>
<span class="pl-c1">template</span>: <span class="pl-s">'Hello from component: {{ test }}'</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">TestComponent</span> <span class="pl-kos">{</span>
<span class="pl-c1">public</span> <span class="pl-s1">test</span>: <span class="pl-c1">string</span> <span class="pl-c1">=</span> <span class="pl-s">'test'</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div> | <p dir="auto">Hi,</p>
<p dir="auto">I'm having some issues with Angular 2, pushState & IE9 as I've documented initially in <a href="https://groups.google.com/forum/#!topic/angular/TdCt6KyhwI8" rel="nofollow">https://groups.google.com/forum/#!topic/angular/TdCt6KyhwI8</a> before carrying out much more investigation!</p>
<p dir="auto">I've read <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="121474169" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/5792" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/5792/hovercard" href="https://github.com/angular/angular/issues/5792">#5792</a> and attempted to apply the history.js script with mixed results!</p>
<p dir="auto">I have had to modify angular2.dev.js locally to return window.History instead of window.history (not a long term solution really!)</p>
<p dir="auto">In Everything but IE9 things work as expected using path location mode - in IE9 history.js takes over and injects urls to look like <a href="http://my.app.com/#./dashboard" rel="nofollow">http://my.app.com/#./dashboard</a></p>
<p dir="auto">But those hashtag paths are then not recognised by the angular router..!!</p>
<p dir="auto">So I turn on the hash location strategy and that works fine in chrome etc but in IE history.js kicks in and alerts the following..</p>
<blockquote>
<blockquote>
<p dir="auto">History.js does not support states with fragment-identifiers (hashes/anchors).</p>
</blockquote>
</blockquote>
<p dir="auto">The root issue is found in the following code in the router..</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" PlatformLocation.prototype.pushState = function(state, title, url) {
console.log('pushState line 2022');
this._history.pushState(state, title, url);
console.log('after push line 2026');
};"><pre class="notranslate"><code class="notranslate"> PlatformLocation.prototype.pushState = function(state, title, url) {
console.log('pushState line 2022');
this._history.pushState(state, title, url);
console.log('after push line 2026');
};
</code></pre></div>
<p dir="auto">If I comment out the pushState line then everything works.. but of course the url is not updated in the browser window :(</p>
<p dir="auto">It feels a bit like a catch-22 situation!!</p>
<p dir="auto">a) Is this a bug??<br>
b) Does the Angular team have a compatible IE9 routing solution?</p>
<p dir="auto">Help!!!</p> | 1 |
<h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">static css files appear to be served with sub-optimal cache-control:</p>
<p dir="auto">/_next/static/css/commons.4e4de3e2.chunk.css<br>
/_next/static/css/styles.4015be53.chunk.css<br>
served with:<br>
cache-control: public, max-age=0</p>
<p dir="auto">I am new to Next.js behavior so apologies if this is not really a bug and css chunk shouldn't be served max-age=31536000, immutable for some reason. I just assume that the chunk hash (commons.<strong>4e4de3e2</strong>.chunk.css) ensure these things could/should be immutable but I am ready to be educated.</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>Go to any next.js page in chrome right click on any element and inspect element</li>
<li>Right click on any element and inspect element</li>
<li>Look at the network tab and click on a /_next/static/css</li>
<li>See cache-control is "public, max-age=0"</li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">I expect them to be served with "cache-control: public, max-age=31536000, immutable" like everything else in the /_next/static seems to be served with.</p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: [e.g. macOS, Windows]</li>
<li>Browser: chrome</li>
<li>Version of Next.js: 7.0.2</li>
</ul>
<h2 dir="auto">Additional context</h2>
<p dir="auto">You can see this here: <a href="https://client.gelltest.com/" rel="nofollow">https://client.gelltest.com/</a><br>
I can provide this sample repo if this for some reason isn't immediately and obviously reproducible.<br>
(Identified after looking into css due to this comment: <a href="https://spectrum.chat/?t=9f9f43b8-ec8b-45e5-a8e3-5b57a62e9e67" rel="nofollow">https://spectrum.chat/?t=9f9f43b8-ec8b-45e5-a8e3-5b57a62e9e67</a>)</p> | <h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">.babelrc.js file compilation failed with next.prepare() and custom . Working with configuration inside of package.json and .babelrc file without .js extension.</p>
<h2 dir="auto">To Reproduce</h2>
<ol dir="auto">
<li>Use Custom Server next.js - <a href="https://github.com/zeit/next.js/tree/canary/examples/custom-server">https://github.com/zeit/next.js/tree/canary/examples/custom-server</a></li>
<li>npm install babel-plugin-transform-define --save</li>
<li>create .babelrc.js with this content:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module.export = {
"presets": [
"next/babel"
],
"plugins": [
[
"transform-define",
{
"process.env.REACT_APP_SENTRY_DSN_ADDR": "TEST_URL"
}
]
]
};"><pre class="notranslate"><code class="notranslate">module.export = {
"presets": [
"next/babel"
],
"plugins": [
[
"transform-define",
{
"process.env.REACT_APP_SENTRY_DSN_ADDR": "TEST_URL"
}
]
]
};
</code></pre></div>
<ol start="4" dir="auto">
<li>Override global component by creating _app.js page inside of pages directory with basic config:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from 'react'
import App, { Container } from 'next/app'
export default class MyApp extends App {
static async getInitialProps({ Component, router, ctx }) {
let pageProps = {};
if (Component.getInitialProps) {
pageProps = await Component.getInitialProps(ctx)
}
return { pageProps }
}
render () {
const { Component, pageProps } = this.props;
return (
<Container>
<Component {...pageProps} />
</Container>
)
}
}"><pre class="notranslate"><code class="notranslate">import React from 'react'
import App, { Container } from 'next/app'
export default class MyApp extends App {
static async getInitialProps({ Component, router, ctx }) {
let pageProps = {};
if (Component.getInitialProps) {
pageProps = await Component.getInitialProps(ctx)
}
return { pageProps }
}
render () {
const { Component, pageProps } = this.props;
return (
<Container>
<Component {...pageProps} />
</Container>
)
}
}
</code></pre></div>
<p dir="auto">Project structure looks like:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7398214/47289013-0d35c200-d5f9-11e8-9944-77284e57c049.png"><img src="https://user-images.githubusercontent.com/7398214/47289013-0d35c200-d5f9-11e8-9944-77284e57c049.png" alt="image" style="max-width: 100%;"></a></p>
<ol start="5" dir="auto">
<li>npm run dev - shows errors with _app.js file compilation.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7398214/47288980-e7102200-d5f8-11e8-9671-acf9d30f5974.png"><img src="https://user-images.githubusercontent.com/7398214/47288980-e7102200-d5f8-11e8-9671-acf9d30f5974.png" alt="image" style="max-width: 100%;"></a></li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Compile _app.js file with .babelrc.js configuration</p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: Windows</li>
</ul>
<blockquote>
</blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""babel-plugin-transform-define": "^1.3.0",
"next": "^7.0.2",
"react": "^16.5.2",
"react-dom": "^16.5.2""><pre class="notranslate"><code class="notranslate">"babel-plugin-transform-define": "^1.3.0",
"next": "^7.0.2",
"react": "^16.5.2",
"react-dom": "^16.5.2"
</code></pre></div>
<h2 dir="auto">Additionally</h2>
<p dir="auto">Fun fact is everything works correctly when I change .babelrc.js file to .babelrc without js inside, with pure json. Imposibru!</p> | 0 |
<p dir="auto">Hi,</p>
<p dir="auto">Please add <strong>show</strong> command which will show image or video files inside the terminal, crazy idea?</p>
<p dir="auto">Well, something like this:</p>
<p dir="auto"><code class="notranslate">show myphoto.png</code></p>
<p dir="auto">or:</p>
<p dir="auto"><code class="notranslate">show myvideo.mpeg</code></p>
<p dir="auto">It can also be shown when using dir so if the file is an image it will show the image in small thumbnail</p>
<p dir="auto">Thanks,<br>
<a href="https://maxmon.softnames.com" rel="nofollow">Jassim</a></p> | <p dir="auto">Would like to see Sixel support in the Terminal, this is the standard used to show graphics in the console.</p>
<p dir="auto">Sixel is part of the original DEC specification for doing graphics in terminals and has been re-popularized in recent years for doing graphics on the command line, in particular by Pythonistas doing data science.</p>
<p dir="auto">The libsixel library provides an encoder but is also a great introduction to the subject (better than the Wikipedia page):</p>
<p dir="auto"><a href="https://github.com/saitoha/libsixel">https://github.com/saitoha/libsixel</a></p> | 1 |
<p dir="auto">Hello.</p>
<ol dir="auto">
<li>The function <code class="notranslate">silhouette_samples</code> of <code class="notranslate">sklearn.metrics.cluster</code> there are such cod rows:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="results = zip(*pairwise_distances_chunked(X, reduce_func=reduce_func,
**kwds))
intra_clust_dists, inter_clust_dists = results
intra_clust_dists = np.concatenate(intra_clust_dists)
inter_clust_dists = np.concatenate(inter_clust_dists)"><pre class="notranslate"><code class="notranslate">results = zip(*pairwise_distances_chunked(X, reduce_func=reduce_func,
**kwds))
intra_clust_dists, inter_clust_dists = results
intra_clust_dists = np.concatenate(intra_clust_dists)
inter_clust_dists = np.concatenate(inter_clust_dists)
</code></pre></div>
<p dir="auto">I've checked the work of clustering algorithms with np.concatenation and without ones. and nothing happened. So what is the role of that concatenations?</p>
<ol start="2" dir="auto">
<li>In the beginning of function <code class="notranslate">silhouette_samples</code> you create an object of LabelEncoder.<br>
What is the reason to encode the labels after clustering algorithms, which return the labels in form of integer numbers from -1 to inf? As I tested on Iris dataset, the following function works well even with np.unique</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" le = LabelEncoder()
labels = le.fit_transform(labels)
n_samples = len(labels)
label_freqs = np.bincount(labels)
# Alternative
#check_number_of_labels(len(np.unique(labels)), n_samples)
check_number_of_labels(len(le.classes_), n_samples)"><pre class="notranslate"><code class="notranslate"> le = LabelEncoder()
labels = le.fit_transform(labels)
n_samples = len(labels)
label_freqs = np.bincount(labels)
# Alternative
#check_number_of_labels(len(np.unique(labels)), n_samples)
check_number_of_labels(len(le.classes_), n_samples)
</code></pre></div>
<p dir="auto">Thank you!</p> | <h4 dir="auto">Description</h4>
<p dir="auto">ValueError thrown when using dump_svmlight_file on a pandas dataframe that contains NaN values. The expected behavior should be to skip NaN values.</p>
<h4 dir="auto">Steps/Code to Reproduce</h4>
<p dir="auto">from sklearn.datasets import dump_svmlight_file<br>
import pandas as pd<br>
df=pd.read_csv('somefile.csv')<br>
dump_svmlight_file(df,[0]*len(df),'svmlightfile')</p>
<h4 dir="auto">Actual Results</h4>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
File "/usr/lib64/python3.3/site-packages/sklearn/datasets/svmlight_format.py", line 393, in dump_svmlight_file<br>
Xval = check_array(X, accept_sparse='csr')<br>
File "/usr/lib64/python3.3/site-packages/sklearn/utils/validation.py", line 398, in check_array<br>
_assert_all_finite(array)<br>
File "/usr/lib64/python3.3/site-packages/sklearn/utils/validation.py", line 54, in _assert_all_finite<br>
" or a value too large for %r." % X.dtype)<br>
ValueError: Input contains NaN, infinity or a value too large for dtype('float64').#### Expected Results</p>
<h4 dir="auto">Versions</h4>
<p dir="auto">Linux-2.6.32-573.26.1.el6.centos.plus.x86_64-x86_64-with-centos-6.7-Final<br>
Python 3.3.0 (default, Feb 12 2013, 17:01:04)<br>
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)]<br>
NumPy 1.9.2<br>
SciPy 0.14.1<br>
Scikit-Learn 0.17.1</p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.1</li>
<li>Operating System version: windowns10</li>
<li>Java version: jdk1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>consumer set paramert mock = true</li>
<li>consumer add XxxServiceMock class</li>
<li>when provider receive connection more than executes provider throw RpcException</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">when provider throw RpcException,consumer side will invoke XxxServiceMock</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">provider return RpcResult,But not throw RpcException,so MockClusterInvoker can not catch<br>
the RpcException and do not invoke XxxServiceMock</p>
<p dir="auto">can i create a pr for it?</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.5</li>
<li>Operating System version: MacOS Catalina 10.15.1</li>
<li>Java version: 1.8.0_91</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li></li>
</ol>
<p dir="auto">I just forked the proj and tried to compile the whole proj:<br>
mvn clean install -DskipTests=true</p>
<p dir="auto">then I got a compilation error.</p>
<ol start="2" dir="auto">
<li>It runs wrong in Win 10 either.</li>
</ol>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Build Success</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">I got this error:<br>
<em>Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.1:compile-custom (default) on project dubbo-serialization-protobuf: Could not transfer artifact org.apache.dubbo:protoc-gen-dubbo-java:exe:osx-x86_64:1.19.0-SNAPSHOT from/to apache.snapshots (<a href="https://repository.apache.org/snapshots" rel="nofollow">https://repository.apache.org/snapshots</a>): Remote host closed connection during handshake</em></p> | 0 |
<p dir="auto">At the moment there are different class names (e.g. <code class="notranslate">.warn</code>, <code class="notranslate">.danger</code>, <code class="notranslate">.important</code>) to indicate types for <code class="notranslate">button</code>, <code class="notranslate">span.label</code> and <code class="notranslate">.alert-message</code> elements. I think it would be smart to create a single set of types for all of them.</p> | <p dir="auto">Hi,</p>
<p dir="auto">When we try to download with the customization tool (without any change in the form), an error occured in the bootstrap.zip file ( bootstrap/css/error.txt)</p>
<p dir="auto">{"type":"Parse","message":"Syntax Error on line 792","index":25106,"filename":"bootstrap.css","line":792,"column":11,"extract":[" *margin: -5px 0 5px;"," ove rflow: hidden;"," background-color: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/top/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/top">@top</a>;"]}</p>
<p dir="auto">The error is described<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/8161f85a67772d870f6aff283f9da0c92c937140adc7c8cb186eeea768ba3583/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f333030383439302f333634352f35653637323934322d343264612d313165322d393866302d6137633439626263333735632e4a5047"><img src="https://camo.githubusercontent.com/8161f85a67772d870f6aff283f9da0c92c937140adc7c8cb186eeea768ba3583/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f333030383439302f333634352f35653637323934322d343264612d313165322d393866302d6137633439626263333735632e4a5047" alt="less_error.JPG" data-canonical-src="https://f.cloud.github.com/assets/3008490/3645/5e672942-42da-11e2-98f0-a7c49bbc375c.JPG" style="max-width: 100%;"></a></p>
<p dir="auto">Hope it helps,<br>
Regards</p> | 0 |
<pre class="notranslate">It would be nice to export WaitGroup.counter and WaitGroup.waiters to enable the client
to instrument those and take actions when needed.</pre> | <p dir="auto">by <strong>surajn.vnit</strong>:</p>
<pre class="notranslate">What does 'go version' print? go1.3 linux/amd64
What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.
Setup -
- Front end HTTP server implemented using Go. It requests 1 backend service over HTTP.
Front end service waits for 10ms or the response from the backend service, whichever
earlier and sends response to the user.
Code - <a href="http://play.golang.org/p/rE0Q7N2nmT" rel="nofollow">http://play.golang.org/p/rE0Q7N2nmT</a>
- Back End Service - HTTP service implemented using Go. Accepts request, sleeps for 5ms
and responds back.
- Concurrency test: weighttp -n 10000 -c 2 -t 1 -k "<a href="http://127.0.0.1:8084/"" rel="nofollow">http://127.0.0.1:8084/"</a>;
What happened?
1. Number of connections with the backend service in TIME_WAIT kept on increasing
(>5000 at the end of test)
2. Changed the MaxIdleConnsPerHost to 4. Number of connections to backend service is
constant at 4 and are in ESTABLISHED state.
What should have happened instead?
1. Ideally 2 to 4 persistent connections are sufficient to handle this much load. But
every connection after the limit MaxIdleConnsPerHost is reached, I think is not
persistent. This leads in too many connections being established and broken. This can in
turn bring the system down - which I am seeing at a little high concurrency.
This can be an issue for a service which have to communicate 100+ backend HTTP services,
as we cannot keep very high limit for MaxIdleConnsPerHost.
Case 2 is the expected behavior. So if MaxIdleConnsPerHost is sufficient, then there is
no issue.
Please provide any additional information below.
This can be the possible duplicate of
<a href="https://golang.org/issue/6785" rel="nofollow">https://golang.org/issue/6785</a>. Please check.
Golang-nuts link - <a href="https://groups.google.com/forum/#" rel="nofollow">https://groups.google.com/forum/#</a>!topic/golang-nuts/-SLvF5OzOSI.</pre> | 0 |
<p dir="auto">When using the declaration option the .d.ts files are all generated in the output directory of the .js files. Please provide an option to define the output directory and/or the output file for the declarations.</p> | <p dir="auto">I need to make an automated building of my typescript projects. Typescript compilation results (i.e .js and .d.ts files) need further separate processing.</p>
<p dir="auto">It would be nice if there is separate compilation option to specify output directory for generated declarations. Something like this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//tsconfig.json
{
"CompilerOptions": {
...
"declaration": true,
"declarationDir": "target/typings"
...
}
}```"><pre class="notranslate"><span class="pl-c">//tsconfig.json</span>
<span class="pl-kos">{</span>
<span class="pl-s">"CompilerOptions"</span>: <span class="pl-kos">{</span>
...
<span class="pl-s">"declaration"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"declarationDir"</span>: <span class="pl-s">"target/typings"</span>
<span class="pl-kos">.</span><span class="pl-kos">.</span><span class="pl-kos">.</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-s">``</span>`</pre></div> | 1 |
<p dir="auto">When the navigator is collapsed, all items are gone but the first one. I got confused because I could not find other parts of the documentation until I set the zooming back to 100% so all menu items appeared on left side again...</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/205756/14817378/3e6a78f2-0bb7-11e6-96ba-27d1c544b508.png"><img src="https://cloud.githubusercontent.com/assets/205756/14817378/3e6a78f2-0bb7-11e6-96ba-27d1c544b508.png" alt="quick_start_ _typescript" style="max-width: 100%;"></a></p> | <p dir="auto">The navigation dropdown only has a link to the quick start page.</p> | 1 |
<p dir="auto">According to this waypoint's requirements, the green-box class should give the <em>top</em> of elements <em>20px</em> of margin. However, in practice it marks that value as incorrect, accepting a value of <em>40px</em> instead.</p> | <p dir="auto">In the instructions for the margin, you have the pixel setting for "Top" to 20px instead of 40px.</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: [10.0.18362.295]
Windows Terminal version (if applicable): 0.4.2382.0
Any other software?
MSYS2 / MINGW64:
$ uname -srvo
MINGW64_NT-10.0-18362 3.0.7-338.x86_64 2019-07-11 10:58 UTC Msys
$ bash --version
GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)
Emacs from MSYS2's mingw64/mingw-w64-x86_64-emacs package:
(emacs-version)
"GNU Emacs 26.2 (build 1, x86_64-w64-mingw32)
of 2019-06-03"
"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [10.0.18362.295]
Windows Terminal version (if applicable): 0.4.2382.0
Any other software?
MSYS2 / MINGW64:
$ uname -srvo
MINGW64_NT-10.0-18362 3.0.7-338.x86_64 2019-07-11 10:58 UTC Msys
$ bash --version
GNU bash, version 4.4.23(1)-release (x86_64-pc-msys)
Emacs from MSYS2's mingw64/mingw-w64-x86_64-emacs package:
(emacs-version)
"GNU Emacs 26.2 (build 1, x86_64-w64-mingw32)
of 2019-06-03"
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ul dir="auto">
<li>
<p dir="auto">Run MSYS2 / MINGW64 bash in Windows Terminal, e.g. in a CMD tab with<br>
<code class="notranslate">set MSYSTEM=MINGW64&& c:\msys64\usr\bin\bash --login -i</code></p>
</li>
<li>
<p dir="auto">Run Emacs in the terminal (<code class="notranslate">emacs -nw</code>) and quit it immediately</p>
</li>
<li>
<p dir="auto">Back at the bash prompt, enter a few characters, say <code class="notranslate">123</code></p>
</li>
<li>
<p dir="auto">Press the left-arrow as often as needed to move the cursor to the<br>
beginning of the line (in this example 3 times)</p>
</li>
<li>
<p dir="auto">Enter some other characters</p>
</li>
</ul>
<h1 dir="auto">Expected behavior</h1>
<ul dir="auto">
<li>
<p dir="auto">The cursor moves with the left-arrow keystrokes to the beginning of the line</p>
</li>
<li>
<p dir="auto">New text appears line start</p>
</li>
</ul>
<h1 dir="auto">Actual behavior</h1>
<ul dir="auto">
<li>
<p dir="auto">The cursor stays at the end of the line, although the internal position is updated<br>
and new text appears at line start.</p>
</li>
<li>
<p dir="auto">When I delete text using Backspace or Delete, the cursor jumps to the correct position,<br>
but jumps back to the end of line when new text is entered.</p>
</li>
</ul>
<p dir="auto">It seems that MINGW Emacs and MSYS2 bash don't play well in Windows Terminal -- in<br>
the classic Windows console there is no issue.</p>
<p dir="auto">This might be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="485989908" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/2561" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/2561/hovercard" href="https://github.com/microsoft/terminal/issues/2561">#2561</a>.</p> | <h1 dir="auto">Summary of the new feature/enhancement</h1>
<h1 dir="auto">Proposed technical implementation details (optional)</h1> | 0 |
<p dir="auto">Maybe the same as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40558658" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16596" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16596/hovercard" href="https://github.com/rust-lang/rust/issues/16596">#16596</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="41076878" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16747" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16747/hovercard" href="https://github.com/rust-lang/rust/issues/16747">#16747</a>.</p>
<p dir="auto">Source code:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait T<A> {
fn g(&self) -> A;
}
fn f<'a, I>(i: &I) where I: T<&'a mut int> {
let m = i.g();
*m = 0;
}
fn main() {
}"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">T</span><span class="pl-kos"><</span><span class="pl-smi">A</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">g</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -> <span class="pl-smi">A</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">f</span><span class="pl-kos"><</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">,</span> <span class="pl-smi">I</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-smi">I</span><span class="pl-kos">)</span> <span class="pl-k">where</span> <span class="pl-smi">I</span><span class="pl-kos">:</span> <span class="pl-smi">T</span><span class="pl-kos"><</span><span class="pl-c1">&</span><span class="pl-c1">'</span><span class="pl-ent">a</span> <span class="pl-k">mut</span> <span class="pl-smi">int</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> m = i<span class="pl-kos">.</span><span class="pl-en">g</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">*</span>m = <span class="pl-c1">0</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">The error was:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.rs:7:5: 7:7 error: internal compiler error: cannot relate bound region: ReScope(39) <= ReLateBound(14, BrNamed(syntax::ast::DefId{krate: 0u32, node: 22u32}, 'a))
1.rs:7 *m = 0;
^~
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsyntax/ast_util.rs:776
stack backtrace:
1: 0x110066445 - rt::backtrace::imp::write::h366f6266fdf568bdyGr
2: 0x110069613 - failure::on_fail::h88fe37ace38bcbfdrXr
3: 0x110337595 - unwind::begin_unwind_inner::hc299369ecba80250ufe
4: 0x10f77a1f2 - unwind::begin_unwind::h17187401900268386611
5: 0x10f77a185 - diagnostic::SpanHandler::span_bug::hc4d5b52f1c967bf6ivF
6: 0x10cc5f725 - driver::session::Session::span_bug::h6c43c41cfb84008e7wB
7: 0x10d132356 - middle::typeck::infer::region_inference::RegionVarBindings<'a>::make_subregion::hbae6a5613e0d55e7EF6
8: 0x10d007e5b - middle::typeck::infer::mk_subr::h9854397fb7f02758w9d
9: 0x10d026a81 - middle::typeck::check::regionck::mk_subregion_due_to_dereference::hdf6f4bab0d472a51DTP
10: 0x10d0221e0 - middle::typeck::check::regionck::visit_expr::hce1244a40687f286B7O
11: 0x10d02125f - middle::typeck::check::regionck::visit_expr::hce1244a40687f286B7O
12: 0x10d022a72 - visit::walk_block::h6598311206806335563
13: 0x10d0674d1 - middle::typeck::check::check_bare_fn::h7d7d7a86e1f5fb72bKT
14: 0x10d06081b - middle::typeck::check::check_item::hd6ce68bf432b2469jjU
15: 0x10d06721d - middle::typeck::check::check_item_types::hfd2f317b573de5d4sJT
16: 0x10ca89756 - util::common::time::h4891267822068557826
17: 0x10d26600c - middle::typeck::check_crate::h427d4b7c37231ac1Knl
18: 0x10d332120 - driver::driver::phase_3_run_analysis_passes::h698aabf657364e2bRYz
19: 0x10d32d113 - driver::driver::compile_input::h5705b3057d4cce45XKz
20: 0x10d3d5d82 - driver::run_compiler::h2e65061b94ee7affRiD
21: 0x10d3d4466 - driver::main_args::closure.137815
22: 0x10d3e65bb - task::TaskBuilder<S>::try_future::closure.138935
23: 0x10d3e64c5 - task::TaskBuilder<S>::spawn_internal::closure.138912
24: 0x10f68e77c - task::spawn_opts::closure.8437
25: 0x11039e1ec - rust_try_inner
26: 0x11039e1d6 - rust_try
27: 0x11033496b - unwind::try::h0f8db981bd8a4067K3d
28: 0x11033470b - task::Task::run::h138ea3fe382973ecBad
29: 0x10f68e5da - task::spawn_opts::closure.8382
30: 0x110336526 - thread::thread_start::hdebd29a0977e0f01nzd
31: 0x7fff93089899 - _pthread_body
32: 0x7fff9308972a - _pthread_struct_init"><pre class="notranslate"><code class="notranslate">1.rs:7:5: 7:7 error: internal compiler error: cannot relate bound region: ReScope(39) <= ReLateBound(14, BrNamed(syntax::ast::DefId{krate: 0u32, node: 22u32}, 'a))
1.rs:7 *m = 0;
^~
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsyntax/ast_util.rs:776
stack backtrace:
1: 0x110066445 - rt::backtrace::imp::write::h366f6266fdf568bdyGr
2: 0x110069613 - failure::on_fail::h88fe37ace38bcbfdrXr
3: 0x110337595 - unwind::begin_unwind_inner::hc299369ecba80250ufe
4: 0x10f77a1f2 - unwind::begin_unwind::h17187401900268386611
5: 0x10f77a185 - diagnostic::SpanHandler::span_bug::hc4d5b52f1c967bf6ivF
6: 0x10cc5f725 - driver::session::Session::span_bug::h6c43c41cfb84008e7wB
7: 0x10d132356 - middle::typeck::infer::region_inference::RegionVarBindings<'a>::make_subregion::hbae6a5613e0d55e7EF6
8: 0x10d007e5b - middle::typeck::infer::mk_subr::h9854397fb7f02758w9d
9: 0x10d026a81 - middle::typeck::check::regionck::mk_subregion_due_to_dereference::hdf6f4bab0d472a51DTP
10: 0x10d0221e0 - middle::typeck::check::regionck::visit_expr::hce1244a40687f286B7O
11: 0x10d02125f - middle::typeck::check::regionck::visit_expr::hce1244a40687f286B7O
12: 0x10d022a72 - visit::walk_block::h6598311206806335563
13: 0x10d0674d1 - middle::typeck::check::check_bare_fn::h7d7d7a86e1f5fb72bKT
14: 0x10d06081b - middle::typeck::check::check_item::hd6ce68bf432b2469jjU
15: 0x10d06721d - middle::typeck::check::check_item_types::hfd2f317b573de5d4sJT
16: 0x10ca89756 - util::common::time::h4891267822068557826
17: 0x10d26600c - middle::typeck::check_crate::h427d4b7c37231ac1Knl
18: 0x10d332120 - driver::driver::phase_3_run_analysis_passes::h698aabf657364e2bRYz
19: 0x10d32d113 - driver::driver::compile_input::h5705b3057d4cce45XKz
20: 0x10d3d5d82 - driver::run_compiler::h2e65061b94ee7affRiD
21: 0x10d3d4466 - driver::main_args::closure.137815
22: 0x10d3e65bb - task::TaskBuilder<S>::try_future::closure.138935
23: 0x10d3e64c5 - task::TaskBuilder<S>::spawn_internal::closure.138912
24: 0x10f68e77c - task::spawn_opts::closure.8437
25: 0x11039e1ec - rust_try_inner
26: 0x11039e1d6 - rust_try
27: 0x11033496b - unwind::try::h0f8db981bd8a4067K3d
28: 0x11033470b - task::Task::run::h138ea3fe382973ecBad
29: 0x10f68e5da - task::spawn_opts::closure.8382
30: 0x110336526 - thread::thread_start::hdebd29a0977e0f01nzd
31: 0x7fff93089899 - _pthread_body
32: 0x7fff9308972a - _pthread_struct_init
</code></pre></div>
<p dir="auto">Whereas the equivalent (?) program:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait T<A> {
fn g(&self) -> A;
}
fn f<'a, I: T<&'a mut int>>(i: &I) {
let m = i.g();
*m = 0;
}
fn main() {
}"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">T</span><span class="pl-kos"><</span><span class="pl-smi">A</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">g</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -> <span class="pl-smi">A</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">f</span><span class="pl-kos"><</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">,</span> <span class="pl-smi">I</span><span class="pl-kos">:</span> <span class="pl-smi">T</span><span class="pl-kos"><</span><span class="pl-c1">&</span><span class="pl-c1">'</span><span class="pl-ent">a</span> <span class="pl-k">mut</span> <span class="pl-smi">int</span><span class="pl-kos">></span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-s1">i</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-smi">I</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> m = i<span class="pl-kos">.</span><span class="pl-en">g</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c1">*</span>m = <span class="pl-c1">0</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">compiled successfully.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ rustc -v
rustc 0.12.0-pre-nightly (711d71027 2014-08-22 00:56:00 +0000)"><pre class="notranslate">$ rustc -v
rustc 0.12.0-pre-nightly (711d71027 2014-08-22 00:56:00 +0000)</pre></div> | <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn foo<'a, I>(mut it: I) where I: Iterator<&'a int> {}
fn main() {
foo([1i, 2].iter());
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos"><</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">,</span> <span class="pl-smi">I</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-k">mut</span> <span class="pl-s1">it</span><span class="pl-kos">:</span> <span class="pl-smi">I</span><span class="pl-kos">)</span> <span class="pl-k">where</span> <span class="pl-smi">I</span><span class="pl-kos">:</span> <span class="pl-smi">Iterator</span><span class="pl-kos"><</span><span class="pl-c1">&</span><span class="pl-c1">'</span><span class="pl-ent">a</span> <span class="pl-smi">int</span><span class="pl-kos">></span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-c1">1</span>i<span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">iter</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>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test.rs:4:5: 4:8 error: internal compiler error: cannot relate bound region: ReLateBound(4, BrNamed(syntax::ast::DefId{krate: 0u32, node: 11u32}, 'a)) <= ReInfer(102)
test.rs:4 foo([1i, 2].iter());
^~~
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/ast_util.rs:791
stack backtrace:
1: 0x7f0750d2ba60 - rt::backtrace::imp::write::h915f70b87af05b8cmxr
2: 0x7f0750d2eb00 - failure::on_fail::h3bfbb66e809f10e63Sr
3: 0x7f0751505ee0 - unwind::begin_unwind_inner::hdda436f89ca4acd6Zhe
4: 0x7f074f9450b0 - unwind::begin_unwind::h9125269610435311192
5: 0x7f074f945000 - diagnostic::SpanHandler::span_bug::hc244fe505535bd433uF
6: 0x7f0751abd6d0 - driver::session::Session::span_bug::h5df75a538dc01b06ZNA
7: 0x7f0751f97630 - middle::typeck::infer::region_inference::RegionVarBindings<'a>::make_subregion::h966bcd69e331f8c59W5
8: 0x7f0751f7d890 - middle::typeck::infer::sub::Sub<'f>.Combine::regions::h03568e631b5674497r8
9: 0x7f0751f7dc00 - middle::typeck::infer::sub::Sub<'f>.Combine::contraregions::h13956ce561fb5850xr8
10: 0x7f0751f675a0 - middle::typeck::infer::sub::Sub<'f>.Combine::tys::h8728d19bb6506359xA8
11: 0x7f0751fabfb0 - middle::typeck::infer::combine::eq_tys::closure.125549
12: 0x7f0751f64bf0 - middle::typeck::infer::InferCtxt<'a>::try::h8077952307852343475
13: 0x7f0751fabe30 - middle::typeck::infer::combine::eq_tys::h14537646206334856932
14: 0x7f0751faa200 - middle::typeck::infer::combine::Combine::substs::h4709403821174409647
15: 0x7f0751fd6b80 - middle::typeck::infer::mk_sub_trait_refs::closure.126315
16: 0x7f0751fd68b0 - middle::typeck::infer::InferCtxt<'a>::commit_if_ok::closure.126307
17: 0x7f0751fd6700 - middle::typeck::infer::InferCtxt<'a>::commit_unconditionally::h4157984422034910170
18: 0x7f0751e5a3b0 - middle::typeck::infer::mk_sub_trait_refs::hee6f3e0ab4e569e6bxd
19: 0x7f0751e59d40 - middle::typeck::check::vtable::relate_trait_refs::hf00ee302275f83ffaJL
20: 0x7f0751e5b050 - middle::typeck::check::vtable::search_for_vtable::h62cb709e3558328eo1L
21: 0x7f0751e58160 - middle::typeck::check::vtable::lookup_vtables_for_param::closure.121712
22: 0x7f0751e1d090 - middle::ty::each_bound_trait_and_supertraits::hf6aa2b1412717287BOI
23: 0x7f0751e57be0 - middle::typeck::check::vtable::lookup_vtables_for_param::h2f3e3aa0d87321fcEuL
24: 0x7f0751e55a20 - middle::typeck::check::vtable::lookup_vtables::h2b52d443aea8bc88GoL
25: 0x7f0751e65650 - middle::typeck::check::vtable::early_resolve_expr::closure.121862
26: 0x7f0751e654c0 - middle::typeck::check::FnCtxt<'a>::opt_node_ty_substs::h73a61f1da9fe6172PXU
27: 0x7f0751e61970 - middle::typeck::check::vtable::early_resolve_expr::h74a603ae5b2dd414lnM
28: 0x7f0751f002c0 - middle::typeck::check::check_argument_types::ha6ecc6e8415348b0xmV
29: 0x7f0751f02960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV
30: 0x7f0751f616a0 - middle::typeck::check::check_stmt::h139e8f1cea959a0502X
31: 0x7f0751ecb610 - middle::typeck::check::check_block_with_expected::h32b2d067c318c94ad7X
32: 0x7f0751ec73a0 - middle::typeck::check::check_fn::h11b95bd8147ec11f3dT
33: 0x7f0751ec70c0 - middle::typeck::check::check_bare_fn::h0b6077c308262260I2S
34: 0x7f0751ec0220 - middle::typeck::check::check_item::habadeb79d560f4d0QBT
35: 0x7f0751ec6ec0 - middle::typeck::check::check_item_types::h63a60aa7829eefedZ1S
36: 0x7f07518df300 - util::common::time::h2328891505148832078
37: 0x7f07520d4b50 - middle::typeck::check_crate::h266f9d5cd5ece381vFk
38: 0x7f07521a2180 - driver::driver::phase_3_run_analysis_passes::h53949348bfafe8ffJfz
39: 0x7f075219d2c0 - driver::driver::compile_input::hd2d14ec13437de9cP1y
40: 0x7f075224a150 - driver::run_compiler::he03a385a4310d17aJzC
41: 0x7f075224a060 - driver::main_args::closure.137214
42: 0x7f075225ca30 - task::TaskBuilder<S>::try_future::closure.138375
43: 0x7f075225c830 - task::TaskBuilder<S>::spawn_internal::closure.138352
44: 0x7f0752cabb30 - task::spawn_opts::closure.8325
45: 0x7f075155df70 - rust_try_inner
46: 0x7f075155df60 - rust_try
47: 0x7f0751503540 - unwind::try::hc4ccde5733fe2f0cf6d
48: 0x7f07515032e0 - task::Task::run::h4d1bcb29f70db0c3xcd
49: 0x7f0752cab8f0 - task::spawn_opts::closure.8271
50: 0x7f0751505120 - thread::thread_start::h8729f7243e18bd84jBd
51: 0x7f07507bb060 - start_thread
52: 0x7f07511d4489 - __clone
53: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate">test.rs:4:5: 4:8 error: internal compiler error: cannot relate bound region: ReLateBound(4, BrNamed(syntax::ast::DefId{krate: 0u32, node: 11u32}, 'a)) <= ReInfer(102)
test.rs:4 foo([1i, 2].iter());
^~~
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/ast_util.rs:791
stack backtrace:
1: 0x7f0750d2ba60 - rt::backtrace::imp::write::h915f70b87af05b8cmxr
2: 0x7f0750d2eb00 - failure::on_fail::h3bfbb66e809f10e63Sr
3: 0x7f0751505ee0 - unwind::begin_unwind_inner::hdda436f89ca4acd6Zhe
4: 0x7f074f9450b0 - unwind::begin_unwind::h9125269610435311192
5: 0x7f074f945000 - diagnostic::SpanHandler::span_bug::hc244fe505535bd433uF
6: 0x7f0751abd6d0 - driver::session::Session::span_bug::h5df75a538dc01b06ZNA
7: 0x7f0751f97630 - middle::typeck::infer::region_inference::RegionVarBindings<'a>::make_subregion::h966bcd69e331f8c59W5
8: 0x7f0751f7d890 - middle::typeck::infer::sub::Sub<'f>.Combine::regions::h03568e631b5674497r8
9: 0x7f0751f7dc00 - middle::typeck::infer::sub::Sub<'f>.Combine::contraregions::h13956ce561fb5850xr8
10: 0x7f0751f675a0 - middle::typeck::infer::sub::Sub<'f>.Combine::tys::h8728d19bb6506359xA8
11: 0x7f0751fabfb0 - middle::typeck::infer::combine::eq_tys::closure.125549
12: 0x7f0751f64bf0 - middle::typeck::infer::InferCtxt<'a>::try::h8077952307852343475
13: 0x7f0751fabe30 - middle::typeck::infer::combine::eq_tys::h14537646206334856932
14: 0x7f0751faa200 - middle::typeck::infer::combine::Combine::substs::h4709403821174409647
15: 0x7f0751fd6b80 - middle::typeck::infer::mk_sub_trait_refs::closure.126315
16: 0x7f0751fd68b0 - middle::typeck::infer::InferCtxt<'a>::commit_if_ok::closure.126307
17: 0x7f0751fd6700 - middle::typeck::infer::InferCtxt<'a>::commit_unconditionally::h4157984422034910170
18: 0x7f0751e5a3b0 - middle::typeck::infer::mk_sub_trait_refs::hee6f3e0ab4e569e6bxd
19: 0x7f0751e59d40 - middle::typeck::check::vtable::relate_trait_refs::hf00ee302275f83ffaJL
20: 0x7f0751e5b050 - middle::typeck::check::vtable::search_for_vtable::h62cb709e3558328eo1L
21: 0x7f0751e58160 - middle::typeck::check::vtable::lookup_vtables_for_param::closure.121712
22: 0x7f0751e1d090 - middle::ty::each_bound_trait_and_supertraits::hf6aa2b1412717287BOI
23: 0x7f0751e57be0 - middle::typeck::check::vtable::lookup_vtables_for_param::h2f3e3aa0d87321fcEuL
24: 0x7f0751e55a20 - middle::typeck::check::vtable::lookup_vtables::h2b52d443aea8bc88GoL
25: 0x7f0751e65650 - middle::typeck::check::vtable::early_resolve_expr::closure.121862
26: 0x7f0751e654c0 - middle::typeck::check::FnCtxt<'a>::opt_node_ty_substs::h73a61f1da9fe6172PXU
27: 0x7f0751e61970 - middle::typeck::check::vtable::early_resolve_expr::h74a603ae5b2dd414lnM
28: 0x7f0751f002c0 - middle::typeck::check::check_argument_types::ha6ecc6e8415348b0xmV
29: 0x7f0751f02960 - middle::typeck::check::check_expr_with_unifier::h7f07d1d05896e44fSXV
30: 0x7f0751f616a0 - middle::typeck::check::check_stmt::h139e8f1cea959a0502X
31: 0x7f0751ecb610 - middle::typeck::check::check_block_with_expected::h32b2d067c318c94ad7X
32: 0x7f0751ec73a0 - middle::typeck::check::check_fn::h11b95bd8147ec11f3dT
33: 0x7f0751ec70c0 - middle::typeck::check::check_bare_fn::h0b6077c308262260I2S
34: 0x7f0751ec0220 - middle::typeck::check::check_item::habadeb79d560f4d0QBT
35: 0x7f0751ec6ec0 - middle::typeck::check::check_item_types::h63a60aa7829eefedZ1S
36: 0x7f07518df300 - util::common::time::h2328891505148832078
37: 0x7f07520d4b50 - middle::typeck::check_crate::h266f9d5cd5ece381vFk
38: 0x7f07521a2180 - driver::driver::phase_3_run_analysis_passes::h53949348bfafe8ffJfz
39: 0x7f075219d2c0 - driver::driver::compile_input::hd2d14ec13437de9cP1y
40: 0x7f075224a150 - driver::run_compiler::he03a385a4310d17aJzC
41: 0x7f075224a060 - driver::main_args::closure.137214
42: 0x7f075225ca30 - task::TaskBuilder<S>::try_future::closure.138375
43: 0x7f075225c830 - task::TaskBuilder<S>::spawn_internal::closure.138352
44: 0x7f0752cabb30 - task::spawn_opts::closure.8325
45: 0x7f075155df70 - rust_try_inner
46: 0x7f075155df60 - rust_try
47: 0x7f0751503540 - unwind::try::hc4ccde5733fe2f0cf6d
48: 0x7f07515032e0 - task::Task::run::h4d1bcb29f70db0c3xcd
49: 0x7f0752cab8f0 - task::spawn_opts::closure.8271
50: 0x7f0751505120 - thread::thread_start::h8729f7243e18bd84jBd
51: 0x7f07507bb060 - start_thread
52: 0x7f07511d4489 - __clone
53: 0x0 - <unknown>
</code></pre></div>
<p dir="auto">changing <code class="notranslate">foo</code> to use the old syntax allows the program to compile:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn foo<'a, I: Iterator<&'a int>>(mut it: I) {}
fn main() {
foo([1i, 2].iter());
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">foo</span><span class="pl-kos"><</span><span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">,</span> <span class="pl-smi">I</span><span class="pl-kos">:</span> <span class="pl-smi">Iterator</span><span class="pl-kos"><</span><span class="pl-c1">&</span><span class="pl-c1">'</span><span class="pl-ent">a</span> <span class="pl-smi">int</span><span class="pl-kos">></span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-k">mut</span> <span class="pl-s1">it</span><span class="pl-kos">:</span> <span class="pl-smi">I</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-c1">1</span>i<span class="pl-kos">,</span> <span class="pl-c1">2</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">iter</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div> | 1 |
<h2 dir="auto">📝 Provide a description of the new feature</h2>
<p dir="auto">Could you please add an option to FancyZones, that will let you remove the displaying of the zone numbers when changing zones. A font type and size option would be nice also, for those who wish to keep the display of zone numbers. The numbers are a bit unsightly for those who appreciate skinning.</p>
<p dir="auto"><em>What is the expected behavior of the proposed feature? What is the scenario this would be used?</em></p>
<h2 dir="auto">To improve the overall appearance of FancyZones. Zones are Zones, once they are created, they don't need numbers to provide any additional functionality. The zone colours and active zone is colour highlighted.</h2>
<p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p>
<p dir="auto">Thanks guys. Nice app.</p> | <h1 dir="auto">Environment</h1>
<p dir="auto">Microsoft Windows [Version 10.0.18363.778] (1909)<br>
PowerToys 0.17.0<br>
FancyZones</p>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Had set Fancy zones with a 3 wide by 2 down grid (so 6 panes) with space around zones set to 10 on 1 of my 3 monitors (all external to the laptop I use).<br>
Was working fine initially when I dragged 6 apps into each pane on my non-primary 4K monitor<br>
Later I moved one of the windows to another monitor but when I dragged it back (with shift pressed) the screen didn't change to having the grid on it and it didn't snap into place.<br>
I went into the settings from the taskbar icon but clicking on "Edit Zones" did nothing<br>
After I quit the PowerToys settings window, right clicking on its taskbar icon did nothing<br>
After I killed the PowerToys.exe process (after taking a memory dump which is 106MB compressed) and restarted it, everything started working fine again</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Window snaps into grid position after showing grid outline on the monitor I had set up</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Window didn't snap into grid position and didn't show grid lines on any monitor</p>
<h1 dir="auto">Screenshots</h1> | 0 |
<p dir="auto">In strict mode, React will call render method twice, to catch mutate-during-render type of bugs. However, there is an inconsistency in the way this is done for <code class="notranslate">useRef()</code>.</p>
<p dir="auto">During the <em>first</em> render only, each call will give you a fresh ref object. During subsequent calls, you will be given the same object during both calls.</p>
<p dir="auto">React version: 17.0.2</p>
<h2 dir="auto">Steps To Reproduce</h2>
<p dir="auto">Here is a little app to demo this.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React from "react";
import "./styles.css";
const Hooky = () => {
const ref = React.useRef(null);
const [num, setNum] = React.useState(0);
ref.current = (ref.current || 0) + 1;
return (
<div>
<p>
Val: {num} <br />
<button onClick={() => setNum(Math.random())}>Roll</button>
</p>
<p>Ref count: {ref.current}</p>
</div>
);
};
const App = () => {
const [show, setShow] = React.useState(false);
return (
<div>
<h2>Show or hide</h2>
<button onClick={() => setShow(!show)}>{show ? "Hide" : "Show"}</button>
<hr />
{show && <Hooky />}
</div>
);
};
export default App;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span> <span class="pl-k">from</span> <span class="pl-s">"react"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s">"./styles.css"</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-v">Hooky</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">ref</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">useRef</span><span class="pl-kos">(</span><span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">num</span><span class="pl-kos">,</span> <span class="pl-s1">setNum</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">useState</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">ref</span><span class="pl-kos">.</span><span class="pl-c1">current</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">ref</span><span class="pl-kos">.</span><span class="pl-c1">current</span> <span class="pl-c1">||</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">p</span><span class="pl-c1">></span>
Val: <span class="pl-kos">{</span><span class="pl-s1">num</span><span class="pl-kos">}</span> <span class="pl-c1"><</span><span class="pl-ent">br</span> <span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">button</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">setNum</span><span class="pl-kos">(</span><span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">random</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-c1">></span>Roll<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">p</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">p</span><span class="pl-c1">></span>Ref count: <span class="pl-kos">{</span><span class="pl-s1">ref</span><span class="pl-kos">.</span><span class="pl-c1">current</span><span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">p</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-v">App</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">show</span><span class="pl-kos">,</span> <span class="pl-s1">setShow</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">useState</span><span class="pl-kos">(</span><span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">h2</span><span class="pl-c1">></span>Show or hide<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">h2</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">button</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">setShow</span><span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">show</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-c1">></span><span class="pl-kos">{</span><span class="pl-s1">show</span> ? <span class="pl-s">"Hide"</span> : <span class="pl-s">"Show"</span><span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">hr</span> <span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-kos">{</span><span class="pl-s1">show</span> <span class="pl-c1">&&</span> <span class="pl-c1"><</span><span class="pl-v">Hooky</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">}</span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">App</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Click "Show". You will see ref count set to <code class="notranslate">1</code>, indicating the <code class="notranslate">useRef</code> has returned a different object both times it was called (it could also mean the component was called only once, but that isn't the case, I checked using debugger). If you force rerender by clicking the other button, the ref will increase in increments of 2, which is what you'd expect.</p>
<p dir="auto">Link to code example: <a href="https://codesandbox.io/s/react-fiddle-forked-fkocg?file=/src/App.js" rel="nofollow">https://codesandbox.io/s/react-fiddle-forked-fkocg?file=/src/App.js</a></p>
<h2 dir="auto">The current behavior</h2>
<p dir="auto"><code class="notranslate">useRef</code> in strict mode has one behavior during first render and other during subsequent renders.</p>
<h2 dir="auto">The expected behavior</h2>
<p dir="auto"><code class="notranslate">useRef</code> operates consistently during all renders. Either always gives you the same object, or has a separate object for each "lane" and always reuses the same one.</p>
<p dir="auto">Basically, the counter in the code sandbox example should either go: <code class="notranslate">2 4 6 8</code> or <code class="notranslate">1 2 3 4</code>. Not <code class="notranslate">1 3 5 7</code>, as it does now.</p>
<h2 dir="auto">Why this matters</h2>
<p dir="auto">Practical issue where I encountered this was trying to do subscribe/unsubscribe system using refs. I want my components to consistently subscribe and subscribe callbacks, kind of like element ref works. This failed when I detected callbacks not getting called, due to a duplicate ref object provided the first time component is rendered.</p> | <p dir="auto"><a href="https://facebook.github.io/react/docs/perf.html" rel="nofollow">https://facebook.github.io/react/docs/perf.html</a></p>
<p dir="auto">IMO this is insufficient. Where are we supposed to place each of the API calls? Some example code would be great.</p> | 0 |
<p dir="auto">In seaborn 0.6.0, alpha parameter no longer works with violinplot. Used to work fine with 0.5.1</p>
<p dir="auto">Example to duplicate:</p>
<p dir="auto">import seaborn as sns<br>
import matplotlib.pyplot as plt<br>
fig = plt.figure()<br>
sns.set_style("whitegrid")<br>
tips = sns.load_dataset("tips")<br>
ax = sns.violinplot(x=tips["total_bill"], alpha=0.1)<br>
plt.show()</p> | <p dir="auto">It doesn't appear to be possible to (easily) plot a non-normed histogram on the margins of a jointplot. Since I'm interested in adding some annotations to the margins, for my use-case it's important that the histogram actually represents bin counts.</p>
<p dir="auto">I suppose this is actually a limitation of distplot itself, since It looks like passing <code class="notranslate">hist_kws={'normed':False}</code> directly the margin distplot results in a duplicate keyword error. This would be solved if the manual keyword argument dictionaries could override the default distplot arguments to <code class="notranslate">plt.hist()</code>, but unfortunately it doesn't appear to do this.</p>
<p dir="auto">Plotting a histogram directly onto the margin with <code class="notranslate">JointGrid.plot_marginals</code> also fails because it requires the function to accept a <code class="notranslate">"vertical"</code> argument. It turns out <code class="notranslate">plt.hist</code> expects an <code class="notranslate">orientation='horizontal'</code> instead. (as per <a href="http://matplotlib.org/examples/pylab_examples/scatter_hist.html" rel="nofollow">http://matplotlib.org/examples/pylab_examples/scatter_hist.html</a>)</p>
<p dir="auto">I suppose I could write a wrapper for <code class="notranslate">plt.hist</code> and pass it to <code class="notranslate">JointGrid.plot_marginals</code>, or just manually plot two histograms on each axis independently, but I would hope this could be a bit easier task to accomplish within the JointGrid framework =)</p>
<p dir="auto">If the marginal histograms were not normed, then automatically adding appropriate scales to the marginals would also be nifty!</p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.2.1831.0
Any other software?
WSL Ubuntu: [1804.2019.521.0]"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.2.1831.0
Any other software?
WSL Ubuntu: [1804.2019.521.0]
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Install Pragmata Pro Mono Liga 0.827 font (any other Unicode font should work as well).</li>
<li>Open the Windows Terminal with WSL Ubuntu tab.</li>
<li>Download and display the <a href="https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt" rel="nofollow"><code class="notranslate">UTF-8 Demo Text</code></a>.<br>
<code class="notranslate">$ curl https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt</code></li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">No visible interline gap (the screenshot is from <code class="notranslate">Cmder 180626</code> with WLS Ubuntu):</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7956686/61397094-d663b280-a8d1-11e9-8e53-5c61f06459a3.png"><img src="https://user-images.githubusercontent.com/7956686/61397094-d663b280-a8d1-11e9-8e53-5c61f06459a3.png" alt="terminal-bug-06-1" style="max-width: 100%;"></a></p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Visible sparse interline gap:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7956686/61397038-b0d6a900-a8d1-11e9-917c-b50089e68d01.png"><img src="https://user-images.githubusercontent.com/7956686/61397038-b0d6a900-a8d1-11e9-917c-b50089e68d01.png" alt="terminal-bug-06-2" style="max-width: 100%;"></a></p> | <p dir="auto">Just a reminder for the new Windows Terminal, remember to make sure block and line drawing characters fill their cells properly at all zoom levels.<br>
This is really important for ANSI-art and TUI apps.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25664275/57269801-20861780-7089-11e9-8436-34c5525b3024.png"><img src="https://user-images.githubusercontent.com/25664275/57269801-20861780-7089-11e9-8436-34c5525b3024.png" alt="ANSIart conhost" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25664275/57269804-22e87180-7089-11e9-9a40-b35e9d0fe89f.png"><img src="https://user-images.githubusercontent.com/25664275/57269804-22e87180-7089-11e9-9a40-b35e9d0fe89f.png" alt="ANSIart WinTerm1" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25664275/57269808-254acb80-7089-11e9-9ceb-b074cc27d1cc.png"><img src="https://user-images.githubusercontent.com/25664275/57269808-254acb80-7089-11e9-9ceb-b074cc27d1cc.png" alt="ANSIart WinTerm2" style="max-width: 100%;"></a></p>
<p dir="auto">See color bleeding and horizontal lines in the larger Windows Terminal tab.<br>
Also, some characters are randomly replaced by � (<?>) characters when changing zoom level or when printing out lot of VT markup.</p> | 1 |
<p dir="auto">I'm having a play around with replacing selenium in my automated tests with playwright and i can't seem to get drag and drop to work using the 'move', 'down', and 'up methods on page.mouse. the app i'm testing uses DragEvent.dataTransfer so i imagine this is why i'm not having any luck. is there a reccomended way to simulate drag and drop events using the current api, or better yet, would it be possible to introduce an api for simulating drag and drop events?</p>
<p dir="auto">p.s. i would prefer not to use page.eval to trigger events using javascript if possible.</p>
<p dir="auto">cheers.</p> | <p dir="auto">Drag and drop should work with playwright. Using the existing mouse apis should generate working <code class="notranslate">dragstart</code>, <code class="notranslate">drag</code>, and <code class="notranslate">drop</code> events. There should also be new APIs to simulate dropping in external content, and to inspect content dragged from the web page.</p> | 1 |
<p dir="auto"><strong>The shardingsphere version is 5.0.0.beta,database is mysql.</strong></p>
<p dir="auto"><strong>shardingsphere does not report errors:</strong><br>
2021-11-03 10:45:38.836|biz-e3424a198605469bb31139f9767fe21b||SQLLogger.java|74|INFO||||||[XNIO-1 task-1] Logic SQL: insert into <code class="notranslate">t_pipeline_info</code> (<code class="notranslate">PIPELINE_ID</code>, <code class="notranslate">PROJECT_ID</code>, <code class="notranslate">PIPELINE_NAME</code>, <code class="notranslate">PIPELINE_DESC</code>) values (?, ?, ?, ?) on duplicate key update <code class="notranslate">t_pipeline_info</code>.<code class="notranslate">PIPELINE_DESC</code> = ?<br>
2021-11-03 10:45:38.837|biz-e3424a198605469bb31139f9767fe21b||SQLLogger.java|74|INFO||||||[XNIO-1 task-1] SQLStatement: MySQLInsertStatement(setAssignment=Optional.empty, onDuplicateKeyColumns=Optional[org.apache.shardingsphere.sql.parser.sql.common.segment.dml.column.OnDuplicateKeyColumnsSegment@7b11b60e])<br>
2021-11-03 10:45:38.838|biz-e3424a198605469bb31139f9767fe21b||SQLLogger.java|74|INFO||||||[XNIO-1 task-1] Actual SQL: ds_0 ::: insert into <code class="notranslate">t_pipeline_info</code> (<code class="notranslate">PIPELINE_ID</code>, <code class="notranslate">PROJECT_ID</code>, <code class="notranslate">PIPELINE_NAME</code>, <code class="notranslate">PIPELINE_DESC</code>) values (?, ?, ?, ?) on duplicate key update <code class="notranslate">t_pipeline_info</code>.<code class="notranslate">PIPELINE_DESC</code> = ? ::: [p-17bd8ac584be4d228c9ad2d15e9d169117bd8ac584be4d228c9ad2d15e9d169117bd8ac584be4d228c9ad2d15e9d1691, devops-test, bnmvvv1234, dfdf89089808, dfdf89089808]</p>
<p dir="auto"><strong>Native SQL directly inserts an error</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5268164/140003658-61fa2dc9-9484-46b7-a9f0-d060cfff0b39.png"><img src="https://user-images.githubusercontent.com/5268164/140003658-61fa2dc9-9484-46b7-a9f0-d060cfff0b39.png" alt="企业微信截图_16359070273966" style="max-width: 100%;"></a></p>
<p dir="auto">My configuration is as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="private fun dataSourceMap(config: DataSourceProperties): Map<String, DataSource> {
val dataSourceMap: MutableMap<String, DataSource> = mutableMapOf()
val dataSourceConfigs = config.dataSourceConfigs
dataSourceConfigs.forEachIndexed { index, dataSourceConfig ->
val dataSourceName = "$DATA_SOURCE_NAME_PREFIX$index"
dataSourceMap[dataSourceName] = createHikariDataSource(
datasourcePoolName = dataSourceName,
datasourceUrl = dataSourceConfig.url,
datasourceUsername = dataSourceConfig.username,
datasourcePassword = dataSourceConfig.password,
datasourceInitSql = dataSourceConfig.initSql,
datasouceLeakDetectionThreshold = dataSourceConfig.leakDetectionThreshold
)
}
return dataSourceMap
}
private fun createHikariDataSource(
datasourcePoolName: String,
datasourceUrl: String,
datasourceUsername: String,
datasourcePassword: String,
datasourceInitSql: String?,
datasouceLeakDetectionThreshold: Long
): HikariDataSource {
return HikariDataSource().apply {
poolName = datasourcePoolName
jdbcUrl = datasourceUrl
username = datasourceUsername
password = datasourcePassword
driverClassName = Driver::class.java.name
minimumIdle = 10
maximumPoolSize = 50
idleTimeout = 60000
connectionInitSql = datasourceInitSql
leakDetectionThreshold = datasouceLeakDetectionThreshold
}
}
@Bean
fun shardingDataSource(config: DataSourceProperties): DataSource {
val shardingRuleConfig = ShardingRuleConfiguration()
// 设置表的路由规则
val tableRuleConfigs = shardingRuleConfig.tables
val dataSourceSize = config.dataSourceConfigs.size
tableRuleConfigs.add(getTableRuleConfiguration("t_pipeline_info", dataSourceSize))
tableRuleConfigs.add(getTableRuleConfiguration("t_pipeline_user", dataSourceSize))
val dbShardingAlgorithmrProps = Properties()
dbShardingAlgorithmrProps.setProperty("strategy", "STANDARD")
dbShardingAlgorithmrProps.setProperty("algorithmClassName",
"com.xxx.devops.sharding.configuration.BkDatabaseShardingAlgorithm")
shardingRuleConfig.shardingAlgorithms["bkDatabaseShardingAlgorithm"] =
ShardingSphereAlgorithmConfiguration("CLASS_BASED", dbShardingAlgorithmrProps)
shardingRuleConfig.defaultTableShardingStrategy = NoneShardingStrategyConfiguration()
shardingRuleConfig.defaultDatabaseShardingStrategy =
StandardShardingStrategyConfiguration(PROJECT_ID_FIELD, "bkProcessDatabaseShardingAlgorithm")
val properties = Properties()
// 是否打印SQL解析和改写日志
properties.setProperty("sql-show", "true")
return ShardingSphereDataSourceFactory.createDataSource(
dataSourceMap(config),
listOf(shardingRuleConfig),
properties
)
}
fun getTableRuleConfiguration(
tableName: String,
dataSourceSize: Int,
specifyDataSourceName: String? = null
): ShardingTableRuleConfiguration? {
// 生成实际节点规则
val actualDataNodes = if (specifyDataSourceName != null) {
"$specifyDataSourceName.$tableName"
} else {
val lastIndex = dataSourceSize - 1
"$DATA_SOURCE_NAME_PREFIX\${0..$lastIndex}.$tableName"
}
val tableRuleConfig = ShardingTableRuleConfiguration(tableName, actualDataNodes)
tableRuleConfig.tableShardingStrategy = NoneShardingStrategyConfiguration()
tableRuleConfig.databaseShardingStrategy =
StandardShardingStrategyConfiguration(PROJECT_ID_FIELD, "bkDatabaseShardingAlgorithm")
return tableRuleConfig
}"><pre class="notranslate"><code class="notranslate">private fun dataSourceMap(config: DataSourceProperties): Map<String, DataSource> {
val dataSourceMap: MutableMap<String, DataSource> = mutableMapOf()
val dataSourceConfigs = config.dataSourceConfigs
dataSourceConfigs.forEachIndexed { index, dataSourceConfig ->
val dataSourceName = "$DATA_SOURCE_NAME_PREFIX$index"
dataSourceMap[dataSourceName] = createHikariDataSource(
datasourcePoolName = dataSourceName,
datasourceUrl = dataSourceConfig.url,
datasourceUsername = dataSourceConfig.username,
datasourcePassword = dataSourceConfig.password,
datasourceInitSql = dataSourceConfig.initSql,
datasouceLeakDetectionThreshold = dataSourceConfig.leakDetectionThreshold
)
}
return dataSourceMap
}
private fun createHikariDataSource(
datasourcePoolName: String,
datasourceUrl: String,
datasourceUsername: String,
datasourcePassword: String,
datasourceInitSql: String?,
datasouceLeakDetectionThreshold: Long
): HikariDataSource {
return HikariDataSource().apply {
poolName = datasourcePoolName
jdbcUrl = datasourceUrl
username = datasourceUsername
password = datasourcePassword
driverClassName = Driver::class.java.name
minimumIdle = 10
maximumPoolSize = 50
idleTimeout = 60000
connectionInitSql = datasourceInitSql
leakDetectionThreshold = datasouceLeakDetectionThreshold
}
}
@Bean
fun shardingDataSource(config: DataSourceProperties): DataSource {
val shardingRuleConfig = ShardingRuleConfiguration()
// 设置表的路由规则
val tableRuleConfigs = shardingRuleConfig.tables
val dataSourceSize = config.dataSourceConfigs.size
tableRuleConfigs.add(getTableRuleConfiguration("t_pipeline_info", dataSourceSize))
tableRuleConfigs.add(getTableRuleConfiguration("t_pipeline_user", dataSourceSize))
val dbShardingAlgorithmrProps = Properties()
dbShardingAlgorithmrProps.setProperty("strategy", "STANDARD")
dbShardingAlgorithmrProps.setProperty("algorithmClassName",
"com.xxx.devops.sharding.configuration.BkDatabaseShardingAlgorithm")
shardingRuleConfig.shardingAlgorithms["bkDatabaseShardingAlgorithm"] =
ShardingSphereAlgorithmConfiguration("CLASS_BASED", dbShardingAlgorithmrProps)
shardingRuleConfig.defaultTableShardingStrategy = NoneShardingStrategyConfiguration()
shardingRuleConfig.defaultDatabaseShardingStrategy =
StandardShardingStrategyConfiguration(PROJECT_ID_FIELD, "bkProcessDatabaseShardingAlgorithm")
val properties = Properties()
// 是否打印SQL解析和改写日志
properties.setProperty("sql-show", "true")
return ShardingSphereDataSourceFactory.createDataSource(
dataSourceMap(config),
listOf(shardingRuleConfig),
properties
)
}
fun getTableRuleConfiguration(
tableName: String,
dataSourceSize: Int,
specifyDataSourceName: String? = null
): ShardingTableRuleConfiguration? {
// 生成实际节点规则
val actualDataNodes = if (specifyDataSourceName != null) {
"$specifyDataSourceName.$tableName"
} else {
val lastIndex = dataSourceSize - 1
"$DATA_SOURCE_NAME_PREFIX\${0..$lastIndex}.$tableName"
}
val tableRuleConfig = ShardingTableRuleConfiguration(tableName, actualDataNodes)
tableRuleConfig.tableShardingStrategy = NoneShardingStrategyConfiguration()
tableRuleConfig.databaseShardingStrategy =
StandardShardingStrategyConfiguration(PROJECT_ID_FIELD, "bkDatabaseShardingAlgorithm")
return tableRuleConfig
}
</code></pre></div>
<p dir="auto"><strong>My table structure is as follows:</strong></p>
<p dir="auto">CREATE TABLE <code class="notranslate">t_pipeline_info</code> (<br>
<code class="notranslate">PIPELINE_ID</code> varchar(34) NOT NULL DEFAULT,<br>
<code class="notranslate">PROJECT_ID</code> varchar(64) NOT NULL COMMENT,<br>
<code class="notranslate">PIPELINE_NAME</code> varchar(255) NOT NULL,<br>
<code class="notranslate">PIPELINE_DESC</code> varchar(255) DEFAULT NULL,<br>
PRIMARY KEY (<code class="notranslate">PIPELINE_ID</code>),<br>
UNIQUE KEY <code class="notranslate">T_PIPELINE_INFO_NAME_uindex</code> (<code class="notranslate">PROJECT_ID</code>,<code class="notranslate">PIPELINE_NAME</code>),<br>
KEY <code class="notranslate">PROJECT_ID</code> (<code class="notranslate">PROJECT_ID</code>,<code class="notranslate">PIPELINE_ID</code>)<br>
) ENGINE=InnoDB DEFAULT CHARSET=utf8;</p> | <h2 dir="auto">Question</h2>
<p dir="auto"><code class="notranslate">server.yaml</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
######################################################################################################
#
# If you want to configure governance, authorization and proxy properties, please refer to this file.
#
######################################################################################################
#scaling:
# blockQueueSize: 10000
# workerThread: 40
# clusterAutoSwitchAlgorithm:
# type: IDLE
# props:
# incremental-task-idle-minute-threshold: 30
# dataConsistencyCheckAlgorithm:
# type: DEFAULT
#
#mode:
# type: Cluster
# repository:
# type: ZooKeeper
# props:
# namespace: governance_ds
# server-lists: localhost:2181
# retryIntervalMilliseconds: 500
# timeToLiveSeconds: 60
# maxRetries: 3
# operationTimeoutMilliseconds: 500
# overwrite: false
#
rules:
- !AUTHORITY
users:
- root@%:root
- sharding@%:sharding
provider:
type: ALL_PRIVILEGES_PERMITTED
- !TRANSACTION
defaultType: XA
providerType: Atomikos
#props:
# max-connections-size-per-query: 1
# kernel-executor-size: 16 # Infinite by default.
# proxy-frontend-flush-threshold: 128 # The default value is 128.
# proxy-opentracing-enabled: false
# proxy-hint-enabled: false
# sql-show: false
# check-table-metadata-enabled: false
# show-process-list-enabled: false
# # Proxy backend query fetch size. A larger value may increase the memory usage of ShardingSphere Proxy.
# # The default value is -1, which means set the minimum value for different JDBC drivers.
# proxy-backend-query-fetch-size: -1
# check-duplicate-table-enabled: false
# sql-comment-parse-enabled: false
# proxy-frontend-executor-size: 0 # Proxy frontend executor size. The default value is 0, which means let Netty decide.
# # Available options of proxy backend executor suitable: OLAP(default), OLTP. The OLTP option may reduce time cost of writing packets to client, but it may increase the latency of SQL execution
# # if client connections are more than proxy-frontend-netty-executor-size, especially executing slow SQL.
# proxy-backend-executor-suitable: OLAP
# proxy-frontend-max-connections: 0 # Less than or equal to 0 means no limitation.
# sql-federation-enabled: false
"><pre class="notranslate"><code class="notranslate">#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
######################################################################################################
#
# If you want to configure governance, authorization and proxy properties, please refer to this file.
#
######################################################################################################
#scaling:
# blockQueueSize: 10000
# workerThread: 40
# clusterAutoSwitchAlgorithm:
# type: IDLE
# props:
# incremental-task-idle-minute-threshold: 30
# dataConsistencyCheckAlgorithm:
# type: DEFAULT
#
#mode:
# type: Cluster
# repository:
# type: ZooKeeper
# props:
# namespace: governance_ds
# server-lists: localhost:2181
# retryIntervalMilliseconds: 500
# timeToLiveSeconds: 60
# maxRetries: 3
# operationTimeoutMilliseconds: 500
# overwrite: false
#
rules:
- !AUTHORITY
users:
- root@%:root
- sharding@%:sharding
provider:
type: ALL_PRIVILEGES_PERMITTED
- !TRANSACTION
defaultType: XA
providerType: Atomikos
#props:
# max-connections-size-per-query: 1
# kernel-executor-size: 16 # Infinite by default.
# proxy-frontend-flush-threshold: 128 # The default value is 128.
# proxy-opentracing-enabled: false
# proxy-hint-enabled: false
# sql-show: false
# check-table-metadata-enabled: false
# show-process-list-enabled: false
# # Proxy backend query fetch size. A larger value may increase the memory usage of ShardingSphere Proxy.
# # The default value is -1, which means set the minimum value for different JDBC drivers.
# proxy-backend-query-fetch-size: -1
# check-duplicate-table-enabled: false
# sql-comment-parse-enabled: false
# proxy-frontend-executor-size: 0 # Proxy frontend executor size. The default value is 0, which means let Netty decide.
# # Available options of proxy backend executor suitable: OLAP(default), OLTP. The OLTP option may reduce time cost of writing packets to client, but it may increase the latency of SQL execution
# # if client connections are more than proxy-frontend-netty-executor-size, especially executing slow SQL.
# proxy-backend-executor-suitable: OLAP
# proxy-frontend-max-connections: 0 # Less than or equal to 0 means no limitation.
# sql-federation-enabled: false
</code></pre></div>
<p dir="auto"><code class="notranslate">config-ds.yaml</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="databaseName: sharding_db
#
dataSources:
ds_0:
url: jdbc:mysql://127.0.0.1:3306/_ds_0?serverTimezone=UTC&useSSL=false
username: root
password: 123456
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
minPoolSize: 1
ds_1:
url: jdbc:mysql://127.0.0.1:3306/ds_1?serverTimezone=UTC&useSSL=false
username: root
password: 123456
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
minPoolSize: 1
rules:
- !SHARDING
tables:
t_order:
actualDataNodes: ds_${0..1}.t_order_${0..63}
tableStrategy:
standard:
shardingColumn: order_id
shardingAlgorithmName: t_order_inline
keyGenerateStrategy:
column: order_id
keyGeneratorName: snowflake
auditStrategy:
auditorNames:
- sharding_key_required_auditor
allowHintDisable: true
t_order_item:
actualDataNodes: ds_${0..1}.t_order_item_${0..63}
tableStrategy:
standard:
shardingColumn: order_id
shardingAlgorithmName: t_order_item_inline
keyGenerateStrategy:
column: order_item_id
keyGeneratorName: snowflake
bindingTables:
- t_order,t_order_item
defaultDatabaseStrategy:
standard:
shardingColumn: user_id
shardingAlgorithmName: database_inline
defaultTableStrategy:
none:
# defaultAuditStrategy:
# auditorNames:
# - sharding_key_required_auditor
# allowHintDisable: true
shardingAlgorithms:
database_inline:
type: INLINE
props:
algorithm-expression: ds_${user_id % 2}
t_order_inline:
type: INLINE
props:
algorithm-expression: t_order_${order_id % 64}
t_order_item_inline:
type: INLINE
props:
algorithm-expression: t_order_item_${order_id % 64}
keyGenerators:
snowflake:
type: SNOWFLAKE
#
# auditors:
# sharding_key_required_auditor:
# type: DML_SHARDING_CONDITIONS
#
# scalingName: default_scaling
# scaling:
# default_scaling:
# input:
# workerThread: 40
# batchSize: 1000
# output:
# workerThread: 40
# batchSize: 1000
# streamChannel:
# type: MEMORY
# props:
# block-queue-size: 10000
# completionDetector:
# type: IDLE
# props:
# incremental-task-idle-seconds-threshold: 1800
# dataConsistencyChecker:
# type: DATA_MATCH
# props:
# chunk-size: 1000"><pre class="notranslate"><code class="notranslate">databaseName: sharding_db
#
dataSources:
ds_0:
url: jdbc:mysql://127.0.0.1:3306/_ds_0?serverTimezone=UTC&useSSL=false
username: root
password: 123456
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
minPoolSize: 1
ds_1:
url: jdbc:mysql://127.0.0.1:3306/ds_1?serverTimezone=UTC&useSSL=false
username: root
password: 123456
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
minPoolSize: 1
rules:
- !SHARDING
tables:
t_order:
actualDataNodes: ds_${0..1}.t_order_${0..63}
tableStrategy:
standard:
shardingColumn: order_id
shardingAlgorithmName: t_order_inline
keyGenerateStrategy:
column: order_id
keyGeneratorName: snowflake
auditStrategy:
auditorNames:
- sharding_key_required_auditor
allowHintDisable: true
t_order_item:
actualDataNodes: ds_${0..1}.t_order_item_${0..63}
tableStrategy:
standard:
shardingColumn: order_id
shardingAlgorithmName: t_order_item_inline
keyGenerateStrategy:
column: order_item_id
keyGeneratorName: snowflake
bindingTables:
- t_order,t_order_item
defaultDatabaseStrategy:
standard:
shardingColumn: user_id
shardingAlgorithmName: database_inline
defaultTableStrategy:
none:
# defaultAuditStrategy:
# auditorNames:
# - sharding_key_required_auditor
# allowHintDisable: true
shardingAlgorithms:
database_inline:
type: INLINE
props:
algorithm-expression: ds_${user_id % 2}
t_order_inline:
type: INLINE
props:
algorithm-expression: t_order_${order_id % 64}
t_order_item_inline:
type: INLINE
props:
algorithm-expression: t_order_item_${order_id % 64}
keyGenerators:
snowflake:
type: SNOWFLAKE
#
# auditors:
# sharding_key_required_auditor:
# type: DML_SHARDING_CONDITIONS
#
# scalingName: default_scaling
# scaling:
# default_scaling:
# input:
# workerThread: 40
# batchSize: 1000
# output:
# workerThread: 40
# batchSize: 1000
# streamChannel:
# type: MEMORY
# props:
# block-queue-size: 10000
# completionDetector:
# type: IDLE
# props:
# incremental-task-idle-seconds-threshold: 1800
# dataConsistencyChecker:
# type: DATA_MATCH
# props:
# chunk-size: 1000
</code></pre></div> | 0 |
<p dir="auto">When adding a host entry using the hosts module, if the name matches an existing entry with a different ip, the entire entry line is removed, even if it contains other aliases. I would expect it to leave the other entries in place.</p>
<p dir="auto">Ever more so, if the entry for the current name/ip exists AND the name exists in another entry, the other entry line is removed and a second instance of the existing entry is added.</p>
<p dir="auto">with <code class="notranslate">ip=192.168.3.10 hostname=vagrant-chef-server state=present</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="127.0.0.1 vagrant-chef-server vagrant-chef-server localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6"><pre class="notranslate"><code class="notranslate">127.0.0.1 vagrant-chef-server vagrant-chef-server localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
</code></pre></div>
<p dir="auto">bacame:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="192.168.3.10 vagrant-chef-server
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6"><pre class="notranslate"><code class="notranslate">192.168.3.10 vagrant-chef-server
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
</code></pre></div>
<p dir="auto">and if I fix that file to put 127.0.0.1 back, the next run produces:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="192.168.3.10 vagrant-chef-server
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.3.10 vagrant-chef-server"><pre class="notranslate"><code class="notranslate">192.168.3.10 vagrant-chef-server
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.3.10 vagrant-chef-server
</code></pre></div> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ovirt_storage_domains</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">In the documentation it's stated that we can remove SDs like this:</p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/ansible/ansible/blob/0566d4672dd30e374ab8fdf24465e143418bf911/lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py#L208-L212">ansible/lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 208 to 212
in
<a data-pjax="true" class="commit-tease-sha" href="/ansible/ansible/commit/0566d4672dd30e374ab8fdf24465e143418bf911">0566d46</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="L208" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="208"></td>
<td id="LC208" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"># Remove storage domain</span> </td>
</tr>
<tr class="border-0">
<td id="L209" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="209"></td>
<td id="LC209" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">- ovirt_storage_domains:</span> </td>
</tr>
<tr class="border-0">
<td id="L210" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="210"></td>
<td id="LC210" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> state: absent</span> </td>
</tr>
<tr class="border-0">
<td id="L211" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="211"></td>
<td id="LC211" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> name: mystorage_domain</span> </td>
</tr>
<tr class="border-0">
<td id="L212" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="212"></td>
<td id="LC212" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s"> format: true</span> </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">But it's not working, since dc is required parameter for the module:</p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/ansible/ansible/blob/0566d4672dd30e374ab8fdf24465e143418bf911/lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py#L473">ansible/lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py</a>
</p>
<p class="mb-0 color-fg-muted">
Line 473
in
<a data-pjax="true" class="commit-tease-sha" href="/ansible/ansible/commit/0566d4672dd30e374ab8fdf24465e143418bf911">0566d46</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="L473" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="473"></td>
<td id="LC473" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">data_center</span><span class="pl-c1">=</span><span class="pl-en">dict</span>(<span class="pl-s1">required</span><span class="pl-c1">=</span><span class="pl-c1">True</span>), </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">Even if removing the <code class="notranslate">required == True</code> if will fail since in the <code class="notranslate">pre-remove</code> step the <code class="notranslate">attached_sd_service</code> is used, and in order to get it, you implicitly use the DC name provided in parameters.</p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/ansible/ansible/blob/0566d4672dd30e374ab8fdf24465e143418bf911/lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py#L330-L339">ansible/lib/ansible/modules/cloud/ovirt/ovirt_storage_domains.py</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 330 to 339
in
<a data-pjax="true" class="commit-tease-sha" href="/ansible/ansible/commit/0566d4672dd30e374ab8fdf24465e143418bf911">0566d46</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="L330" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="330"></td>
<td id="LC330" 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">_attached_sds_service</span>(<span class="pl-s1">self</span>): </td>
</tr>
<tr class="border-0">
<td id="L331" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="331"></td>
<td id="LC331" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># Get data center object of the storage domain:</span> </td>
</tr>
<tr class="border-0">
<td id="L332" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="332"></td>
<td id="LC332" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">dcs_service</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">_connection</span>.<span class="pl-en">system_service</span>().<span class="pl-en">data_centers_service</span>() </td>
</tr>
<tr class="border-0">
<td id="L333" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="333"></td>
<td id="LC333" 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="L334" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="334"></td>
<td id="LC334" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># Serach the data_center name, if it does not exists, try to search by guid.</span> </td>
</tr>
<tr class="border-0">
<td id="L335" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="335"></td>
<td id="LC335" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">dc</span> <span class="pl-c1">=</span> <span class="pl-en">search_by_name</span>(<span class="pl-s1">dcs_service</span>, <span class="pl-s1">self</span>.<span class="pl-s1">_module</span>.<span class="pl-s1">params</span>[<span class="pl-s">'data_center'</span>]) </td>
</tr>
<tr class="border-0">
<td id="L336" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="336"></td>
<td id="LC336" 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">dc</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>: </td>
</tr>
<tr class="border-0">
<td id="L337" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="337"></td>
<td id="LC337" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">dc</span> <span class="pl-c1">=</span> <span class="pl-s1">dcs_service</span>.<span class="pl-en">service</span>(<span class="pl-s1">self</span>.<span class="pl-s1">_module</span>.<span class="pl-s1">params</span>[<span class="pl-s">'data_center'</span>]).<span class="pl-en">get</span>() </td>
</tr>
<tr class="border-0">
<td id="L338" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="338"></td>
<td id="LC338" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">dc</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>: </td>
</tr>
<tr class="border-0">
<td id="L339" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="339"></td>
<td id="LC339" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">This is problematic from my view, since some SD can be in unattached state, in this case DC name parameter doesn't make sense and the pre-remove step should be skipped.</p>
<p dir="auto">But in any case I think we should use the absent state as described in example, without any specification of datacenter.</p> | 0 |
<h1 dir="auto">Bug report</h1>
<p dir="auto">Both "module" export and "import" export of exports field are resolved in duplication.</p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">3rd party lib swr's output assets are resolved in different cases:</p>
<ul dir="auto">
<li>When swr is imported, it resolves to <code class="notranslate">swr/dist/index.esm.js</code></li>
<li>Then subpath import <code class="notranslate">swr/infinite</code> is imported, which is relying on <code class="notranslate">swr</code></li>
<li>Then swr is resolved in 2nd time, but now <code class="notranslate">swr/dist/index.mjs</code> is resolved</li>
</ul>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto"><a href="https://github.com/beeebox/webpack-esm-duplicated-resolve">https://github.com/beeebox/webpack-esm-duplicated-resolve</a></p>
<p dir="auto">yarn start<br>
browser should open on localhost:3000<br>
open devtools and search "swr"<br>
you'll see <code class="notranslate">swr/dist/index.esm.js</code> and <code class="notranslate">swr/dist/index.mjs</code> are both resolved there</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto"><code class="notranslate">swr/dist/index.mjs</code> or <code class="notranslate">swr/dist/index.esm.js</code> is resolved only all the time</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: v5.70.0<br>
Node.js version: v14.17.0<br>
Operating System: MacOS 12.0.1<br>
Additional tools:</p> | <h1 dir="auto">Bug report</h1>
<p dir="auto">I have submitted this question in stackoverflow, but I haven't received any reply。</p>
<p dir="auto"><a href="https://stackoverflow.com/questions/65642712/webpack-5-cannot-reuse-caches-in-different-file-structures" rel="nofollow">https://stackoverflow.com/questions/65642712/webpack-5-cannot-reuse-caches-in-different-file-structures</a></p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<ol dir="auto">
<li>
<p dir="auto">I use the file cache of Webpack5 through the following configuration, and set the cache files in a public folder</p>
</li>
<li>
<p dir="auto">In the case of the file directory structure unchanged, build again. At this time, caching can be applied successfully, greatly reducing the build time</p>
</li>
<li>
<p dir="auto">I copied the entire project code to the same directory as testbuild</p>
</li>
<li>
<p dir="auto">Under the new directory testBuild, execute the build and find that the previously generated cache is not applied. It generates new ones</p>
</li>
<li>
<p dir="auto">Supplementary Note: This test is to simulate the real CI construction process, and my goal is to significantly reduce the build time on CI construction</p>
</li>
</ol>
<p dir="auto"><code class="notranslate">cache: { type: 'filesystem', cacheDirectory: path.resolve(paths.cachePath,'prod-cache'), }</code></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">Because of the problem of office environment, I can't code to GitHub warehouse. All I can offer is a few configuration fragments</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">In the case of the same code, different file directories can reuse the file cache</p>
<p dir="auto"><strong>Other relevant information:</strong></p>
<p dir="auto">webpack version: 5.11.0<br>
Node.js version: v10.15.3<br>
Operating System: window 10<br>
Additional tools:</p> | 0 |
<p dir="auto">Hi, i'am running webpack 1.13.1</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//works
import {SuperClass} from '../super_class';
class SubClass extends SuperClass () {}
//doesn't work
//TypeError: Super expression must either be null or a function, not undefined
import {SuperClass} from '../main';
class SubClass extends SuperClass () {}"><pre class="notranslate"><span class="pl-c">//works</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-v">SuperClass</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../super_class'</span><span class="pl-kos">;</span>
<span class="pl-k">class</span> <span class="pl-v">SubClass</span> <span class="pl-k">extends</span> <span class="pl-v">SuperClass</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">//doesn't work</span>
<span class="pl-c">//TypeError: Super expression must either be null or a function, not undefined</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-v">SuperClass</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'../main'</span><span class="pl-kos">;</span>
<span class="pl-k">class</span> <span class="pl-v">SubClass</span> <span class="pl-k">extends</span> <span class="pl-v">SuperClass</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>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
report a bug<br>
<strong>What is the current behavior?</strong></p>
<p dir="auto">For web targets when the process global is encountered the process/browser.js module is included in the bundle. The problem is the drive letter is sometimes not in sync with the drive letter as specified by process.cwd().</p>
<p dir="auto">This is a problem creating duplicate copies of this internal module when the path differs only by the case of the drive letter. We have no control over how internal modules are expanded.</p>
<p dir="auto">Our practice is to observe process.cwd() and return config after checking the case of the drive letter with entry points and aliases matching the drive letter case. This has eliminated 99% of duplicate module warnings. However the internal modules if they expand out to paths where the drive letter casing is different than the process.cwd() casing we get duplicates of internal modules in our bundle.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" �[1m�[33mWARNING in ./node_modules/process/browser.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* C:\WebClientToolkit\node_modules\process\browser.js
Used by 3 module(s), i. e.
C:\WebClientToolkit\packages\core\wct-http\source\index.js
* c:\WebClientToolkit\node_modules\process\browser.js
Used by 1 module(s), i. e.
c:\WebClientToolkit\node_modules\path-browserify\index.js�[39m�[22m"><pre class="notranslate"><code class="notranslate"> �[1m�[33mWARNING in ./node_modules/process/browser.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* C:\WebClientToolkit\node_modules\process\browser.js
Used by 3 module(s), i. e.
C:\WebClientToolkit\packages\core\wct-http\source\index.js
* c:\WebClientToolkit\node_modules\process\browser.js
Used by 1 module(s), i. e.
c:\WebClientToolkit\node_modules\path-browserify\index.js�[39m�[22m
</code></pre></div>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
I can provide our config, however it's going to happen when bundling web targets on windows unless you get 'lucky' and the expansion for the internal process module happens to match process.cwd().</p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
There should not be duplicates of internal modules.</p>
<p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong><br>
When the path is expanded for internal modules check process.cwd() and match the drive letter case.</p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong><br>
We're on webpack 3.6.0 and Node 6.10.3.</p> | 0 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.6.10</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://codepen.io/xiaohai/pen/zgKwyZ?editors=1010" rel="nofollow">https://codepen.io/xiaohai/pen/zgKwyZ?editors=1010</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>点击二级路由A</li>
<li>点击一级路由</li>
<li>点击二级路由B<br>
此时加载的组件却是 二级路由A</li>
</ol>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">修复这个问题</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">使用 transition 与 keep-alive 时, transition 的 mode 设置为 out-in, 会导致路由组件加载错误</p> | <h3 dir="auto">Vue.js / vue-router versions</h3>
<p dir="auto">Vue.js 2.2.2<br>
vue-router 2.3.0</p>
<h3 dir="auto">Reproduction Link</h3>
<p dir="auto"><a href="https://jsfiddle.net/2tdjec9q/" rel="nofollow">https://jsfiddle.net/2tdjec9q/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">step1: click <code class="notranslate">to /b</code> you will see <code class="notranslate">this is B</code><br>
step2: click <code class="notranslate">to /c</code> you will see <code class="notranslate">this is C</code><br>
step3: click <code class="notranslate">to /</code> you will see <code class="notranslate">this is B</code> not <code class="notranslate">this is A</code></p>
<h3 dir="auto">What is Expected?</h3>
<p dir="auto">at step3 i need <code class="notranslate">this is A</code> not <code class="notranslate">this is B</code></p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">at step3 i need <code class="notranslate">this is A</code></p>
<p dir="auto">if not use <code class="notranslate">mode="out-in"</code> this will run success</p> | 1 |
<p dir="auto">Obligatory "not sure if this is the right place" disclaimer.</p>
<p dir="auto">The example code links in the tutorial documentation are missing here:<br>
<a href="https://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html</a><br>
If you click Source Code:<br>
<a href="https://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html" rel="nofollow">https://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html</a><br>
you get a 404 error<br>
Suggested solutions: Fix the links or enable prompt folding, or both.</p>
<p dir="auto">Also suggest changing all "Source Code" links to "Example Code". Source code should refer to the actual module code.</p>
<p dir="auto">I looked at some other Tutorial pages, and they have similar issues. Some with no links at all, most with no prompt folding. I think there needs to be uniformity on the formatting. Either all with Source Code links, all without links (not my favorite idea), prompt folding should be enabled site wide.</p>
<p dir="auto">I wonder if prompt folding would be an issue on some browsers or if javascript is restricted by security policies. In that case having example code links</p>
<p dir="auto">Related issues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26428738" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/3250" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/3250/hovercard" href="https://github.com/scipy/scipy/issues/3250">#3250</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="225837996" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/7369" data-hovercard-type="issue" data-hovercard-url="/scipy/scipy/issues/7369/hovercard" href="https://github.com/scipy/scipy/issues/7369">#7369</a></p> | <p dir="auto">I wanted to consult the source code of interpolate univariate at the following link :<br>
<a href="http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.UnivariateSpline.html#scipy.interpolate.UnivariateSpline" rel="nofollow">http://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.UnivariateSpline.html#scipy.interpolate.UnivariateSpline</a></p>
<p dir="auto">But the source code gave me a dead link :<br>
<a href="http://docs.scipy.org/doc/scipy/reference/generated/scipy-interpolate-UnivariateSpline-1.py" rel="nofollow">http://docs.scipy.org/doc/scipy/reference/generated/scipy-interpolate-UnivariateSpline-1.py</a></p> | 1 |
<h3 dir="auto">First Check</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li>
</ul>
<h3 dir="auto">Commit to Help</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I commit to help with one of those options <g-emoji class="g-emoji" alias="point_up_2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f446.png">👆</g-emoji></li>
</ul>
<h3 dir="auto">Example Code</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# see wanted code"><pre class="notranslate"><span class="pl-c"># see wanted code</span></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">The http header for the different authentication protocols is currently hardcoded to "Authorization", which on itself is accurate according to the standards ((ex. MDN definition)[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization]). There are, however, reasons in practice you would want to have a different, custom named header.</p>
<p dir="auto">For example, in my case where the FastAPI is hosted behind a proxy which already requires the Authorization header to be set. I would like it to be set in the FastAPI to something else (e.g. like "x-bearer-key" or "foo").</p>
<p dir="auto">Is it possible to define a custom http header name for authorization, instead of the default "Authorization" header name?</p>
<h3 dir="auto">Wanted Solution</h3>
<h1 dir="auto">example code of what would be great</h1>
<p dir="auto">auth_scheme = HTTPBearer(authorization_header='MY-OWN-KEY-INSTEAD-OF-AUTHORIZATION')</p>
<h3 dir="auto">Wanted Code</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# example code of what would be great
auth_scheme = HTTPBearer(authorization_header='MY-OWN-KEY-INSTEAD-OF-AUTHORIZATION')"><pre class="notranslate"><span class="pl-c"># example code of what would be great</span>
<span class="pl-s1">auth_scheme</span> <span class="pl-c1">=</span> <span class="pl-v">HTTPBearer</span>(<span class="pl-s1">authorization_header</span><span class="pl-c1">=</span><span class="pl-s">'MY-OWN-KEY-INSTEAD-OF-AUTHORIZATION'</span>)</pre></div>
<h3 dir="auto">Alternatives</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Linux, Windows, macOS</p>
<h3 dir="auto">Operating System Details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">FastAPI Version</h3>
<p dir="auto">0.74</p>
<h3 dir="auto">Python Version</h3>
<p dir="auto">3.10.x</p>
<h3 dir="auto">Additional Context</h3>
<p dir="auto"><em>No response</em></p> | <p dir="auto">actually there is no issue i contacted mister Sebastián to propose for him an idea about making a CLI for the framework to create a project structure and managing our projects so that we developers have start point that facilitate the hard work of making an architecture to the project therefore stays flexible for expanding the project and adding more features and automate the boring stuff like creating CRUD from the ORM that will make the project 1000% time faster than before .<br>
locking dependencies by creating virtual environment add README file for documentation the project etc...</p>
<p dir="auto">i really hope some one help me making this become true because i dont know how to make a good cli but i managed to create something for tornado i called it " cycloneCLI " for creating my own projects then i found something called <a href="https://pypi.org/project/torn/" rel="nofollow">torn</a> for tornado framework the problem is its a very very good structure and a starter project template that no one uses it it may be because the framework is starting to die but it helped me a lot to understand my needs better and work on different parts of my project with more efficiency and good quality code so why we dont make fastapi better . and thank you<br>
.<br>
"med amine fouzai aka John constantine"</p> | 0 |
<p dir="auto">Transferred from <a href="http://code.opencv.org/issues/4192" rel="nofollow">http://code.opencv.org/issues/4192</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|| Mikulas Krupicka on 2015-02-12 11:51
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty:
|| PR:
|| Platform: None / None"><pre class="notranslate"><code class="notranslate">|| Mikulas Krupicka on 2015-02-12 11:51
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty:
|| PR:
|| Platform: None / None
</code></pre></div>
<h2 dir="auto">Get accumulator out of hough transform</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Hi,
is there option (or can be) to get the accumulator image out of Hough Transform function? It could be very helpful because I would be able to tweak the result of method according to my apriory knowledge before running any maxloc function to it.
Thanks."><pre class="notranslate"><code class="notranslate">Hi,
is there option (or can be) to get the accumulator image out of Hough Transform function? It could be very helpful because I would be able to tweak the result of method according to my apriory knowledge before running any maxloc function to it.
Thanks.
</code></pre></div>
<h2 dir="auto">History</h2> | <p dir="auto">Transferred from <a href="http://code.opencv.org/issues/1409" rel="nofollow">http://code.opencv.org/issues/1409</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|| ivansorokin - on 2011-10-07 15:02
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty: None
|| PR: None
|| Platform: None / None"><pre class="notranslate"><code class="notranslate">|| ivansorokin - on 2011-10-07 15:02
|| Priority: Normal
|| Affected: None
|| Category: imgproc, video
|| Tracker: Feature
|| Difficulty: None
|| PR: None
|| Platform: None / None
</code></pre></div>
<h2 dir="auto">ability to get Hough accumulator value</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Currently it is not possible to get Hough accumulator value (after stage 1 in icvHoughLinesStandard).
http://stackoverflow.com/questions/3265987/opencv-get-hough-accumulator-value
I also need this value. Currently I've just copy-paste this part of function from OpenCV, but I think it can be extracted in separate function."><pre class="notranslate"><code class="notranslate">Currently it is not possible to get Hough accumulator value (after stage 1 in icvHoughLinesStandard).
http://stackoverflow.com/questions/3265987/opencv-get-hough-accumulator-value
I also need this value. Currently I've just copy-paste this part of function from OpenCV, but I think it can be extracted in separate function.
</code></pre></div>
<h2 dir="auto">History</h2>
<h5 dir="auto">Alexander Shishkov on 2012-02-12 20:26</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- Description changed from Currently it is not possible to get Hough
accumulator value (after stage 1 in... to Currently it is not
possible to get Hough accumulator value (after stage 1 in... More"><pre class="notranslate"><code class="notranslate">- Description changed from Currently it is not possible to get Hough
accumulator value (after stage 1 in... to Currently it is not
possible to get Hough accumulator value (after stage 1 in... More
</code></pre></div> | 1 |
<h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="+ [email protected]
added 315 packages from 275 contributors in 34.396s
[!] 1 vulnerability found [3518 packages audited]
Severity: 1 low
Run `npm audit` for more detail"><pre class="notranslate"><code class="notranslate">+ [email protected]
added 315 packages from 275 contributors in 34.396s
[!] 1 vulnerability found [3518 packages audited]
Severity: 1 low
Run `npm audit` for more detail
</code></pre></div>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm audit security report
Manual Review
Some vulnerabilities require your attention to resolve
Visit https://go.npm.me/audit-guide for additional guidance
low Prototype Pollution
Package deep-extend
Dependency of webpack [dev]
Path webpack > watchpack > chokidar > fsevents > node-pre-gyp >
rc > deep-extend
More info https://nodesecurity.io/advisories/612
low Prototype Pollution
Package deep-extend
Dependency of webpack-dev-server [dev]
Path webpack-dev-server > chokidar > fsevents > node-pre-gyp > rc
> deep-extend
More info https://nodesecurity.io/advisories/612
[!] 2 vulnerabilities found - Packages audited: 16105 (15956 dev, 194 optional)
Severity: 2 low
"><pre class="notranslate"><code class="notranslate">npm audit security report
Manual Review
Some vulnerabilities require your attention to resolve
Visit https://go.npm.me/audit-guide for additional guidance
low Prototype Pollution
Package deep-extend
Dependency of webpack [dev]
Path webpack > watchpack > chokidar > fsevents > node-pre-gyp >
rc > deep-extend
More info https://nodesecurity.io/advisories/612
low Prototype Pollution
Package deep-extend
Dependency of webpack-dev-server [dev]
Path webpack-dev-server > chokidar > fsevents > node-pre-gyp > rc
> deep-extend
More info https://nodesecurity.io/advisories/612
[!] 2 vulnerabilities found - Packages audited: 16105 (15956 dev, 194 optional)
Severity: 2 low
</code></pre></div>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">i do not know ... sorry~~~</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 4.8.1<br>
Node.js version: 9.11.1<br>
Operating System: win10<br>
Additional tools: None</p> | <h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm i webpack
+ [email protected]
added 315 packages from 275 contributors in 34.396s
[!] 1 vulnerability found [3518 packages audited]
Severity: 1 low
Run `npm audit` for more detail
npm audit"><pre class="notranslate"><code class="notranslate">npm i webpack
+ [email protected]
added 315 packages from 275 contributors in 34.396s
[!] 1 vulnerability found [3518 packages audited]
Severity: 1 low
Run `npm audit` for more detail
npm audit
</code></pre></div>
<p dir="auto"><a href="https://nodesecurity.io/advisories/612" rel="nofollow"></a><a href="https://nodesecurity.io/advisories/612" rel="nofollow">https://nodesecurity.io/advisories/612</a></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
npm i webpack</p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
There should be no errors. Temporarily to correct it is possible so(decision at the end of the document):<br>
<a href="https://github.com/isopen/ngx-cable/blob/master/out_dir/native_build.help.md">https://github.com/isopen/ngx-cable/blob/master/out_dir/native_build.help.md</a><br>
I think you need to fix the package.json or package.json in dependencies.<br>
Then test the build and publish version 4.8.x. Very much I expect :)</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 4.8.1, 4.4.0, 3.0.0<br>
Node.js version: v8.9.4<br>
Operating System: debian 9.3</p> | 1 |
<h3 dir="auto">First Check</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li>
</ul>
<h3 dir="auto">Commit to Help</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I commit to help with one of those options 👆</li>
</ul>
<h3 dir="auto">Example Code</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from fastapi import FastAPI"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">We have a test that does something like this:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="now = utc_datetime()
url = client.app.url_path_for("balances")
start_date = now - timedelta(minutes=1)
start_date_param = urlencode({"start_date": start_date.isoformat()})
end_date_param = urlencode({"end_date": now.isoformat()})
response = client.get(url + f"?{start_date_param}&{end_date_param}")"><pre class="notranslate"><span class="pl-s1">now</span> <span class="pl-c1">=</span> <span class="pl-en">utc_datetime</span>()
<span class="pl-s1">url</span> <span class="pl-c1">=</span> <span class="pl-s1">client</span>.<span class="pl-s1">app</span>.<span class="pl-en">url_path_for</span>(<span class="pl-s">"balances"</span>)
<span class="pl-s1">start_date</span> <span class="pl-c1">=</span> <span class="pl-s1">now</span> <span class="pl-c1">-</span> <span class="pl-en">timedelta</span>(<span class="pl-s1">minutes</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)
<span class="pl-s1">start_date_param</span> <span class="pl-c1">=</span> <span class="pl-en">urlencode</span>({<span class="pl-s">"start_date"</span>: <span class="pl-s1">start_date</span>.<span class="pl-en">isoformat</span>()})
<span class="pl-s1">end_date_param</span> <span class="pl-c1">=</span> <span class="pl-en">urlencode</span>({<span class="pl-s">"end_date"</span>: <span class="pl-s1">now</span>.<span class="pl-en">isoformat</span>()})
<span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-s1">client</span>.<span class="pl-en">get</span>(<span class="pl-s1">url</span> <span class="pl-c1">+</span> <span class="pl-s">f"?<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">start_date_param</span><span class="pl-kos">}</span></span>&<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">end_date_param</span><span class="pl-kos">}</span></span>"</span>)</pre></div>
<p dir="auto">With FastAPI 0.86 everything works. Starting from 0.87 (which uses <code class="notranslate">starlette</code> 0.21.0) our endpoint errors with:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{'error': {'code': 'validation_error', 'message': 'Validation Error', 'errors': [{'attribute': 'query -> start_date', 'code': 'value_error.datetime', 'message': 'invalid datetime format', 'ctx': None}, {'attribute': 'query -> end_date', 'code': 'value_error.datetime', 'message': 'invalid datetime format', 'ctx': None}]}}"><pre class="notranslate">{<span class="pl-s">'error'</span>: {<span class="pl-s">'code'</span>: <span class="pl-s">'validation_error'</span>, <span class="pl-s">'message'</span>: <span class="pl-s">'Validation Error'</span>, <span class="pl-s">'errors'</span>: [{<span class="pl-s">'attribute'</span>: <span class="pl-s">'query -> start_date'</span>, <span class="pl-s">'code'</span>: <span class="pl-s">'value_error.datetime'</span>, <span class="pl-s">'message'</span>: <span class="pl-s">'invalid datetime format'</span>, <span class="pl-s">'ctx'</span>: <span class="pl-c1">None</span>}, {<span class="pl-s">'attribute'</span>: <span class="pl-s">'query -> end_date'</span>, <span class="pl-s">'code'</span>: <span class="pl-s">'value_error.datetime'</span>, <span class="pl-s">'message'</span>: <span class="pl-s">'invalid datetime format'</span>, <span class="pl-s">'ctx'</span>: <span class="pl-c1">None</span>}]}}</pre></div>
<p dir="auto">If I force the installation of <code class="notranslate">starlette</code> 0.22.0 and rerun the test, everything works. This is a known bug of <code class="notranslate">starlette</code> 0.21.0 and it has been fixed in 0.22.0:</p>
<ul dir="auto">
<li><a href="https://github.com/encode/starlette/pull/1953/files">https://github.com/encode/starlette/pull/1953/files</a></li>
<li><a href="https://github.com/encode/starlette/releases/tag/0.22.0">https://github.com/encode/starlette/releases/tag/0.22.0</a></li>
</ul>
<h2 dir="auto">Solution</h2>
<p dir="auto">Bump <code class="notranslate">starlette</code> version in FastAPI to 0.22.0</p>
<h2 dir="auto">Note</h2>
<p dir="auto">I can make this small PR with the update as soon as you confirm/acknowledge this issue.</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Operating System Details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">FastAPI Version</h3>
<p dir="auto">0.87.0</p>
<h3 dir="auto">Python Version</h3>
<p dir="auto">3.10.0</p>
<h3 dir="auto">Additional Context</h3>
<p dir="auto"><em>No response</em></p> | <h3 dir="auto">First Check</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li>
</ul>
<h3 dir="auto">Commit to Help</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I commit to help with one of those options <g-emoji class="g-emoji" alias="point_up_2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f446.png">👆</g-emoji></li>
</ul>
<h3 dir="auto">Example Code</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import logging
from fastapi import FastAPI
app = FastAPI()
@app.get("/example")
async def _show_encoding_error(look_for: str):
return {"found": look_for}
if __name__ == '__main__':
from fastapi.testclient import TestClient
with TestClient(app) as client:
params = {"look_for": "plain text"}
resp = client.get("/example", params=params).json()
logging.warning(resp)
assert resp["found"] == "plain text"
params = {"look_for": "España"}
resp = client.get("/example", params=params).json()
logging.warning(resp)
assert resp["found"] == "España", resp["found"]"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">logging</span>
<span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>()
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/example"</span>)</span>
<span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">_show_encoding_error</span>(<span class="pl-s1">look_for</span>: <span class="pl-s1">str</span>):
<span class="pl-k">return</span> {<span class="pl-s">"found"</span>: <span class="pl-s1">look_for</span>}
<span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>:
<span class="pl-k">from</span> <span class="pl-s1">fastapi</span>.<span class="pl-s1">testclient</span> <span class="pl-k">import</span> <span class="pl-v">TestClient</span>
<span class="pl-k">with</span> <span class="pl-v">TestClient</span>(<span class="pl-s1">app</span>) <span class="pl-k">as</span> <span class="pl-s1">client</span>:
<span class="pl-s1">params</span> <span class="pl-c1">=</span> {<span class="pl-s">"look_for"</span>: <span class="pl-s">"plain text"</span>}
<span class="pl-s1">resp</span> <span class="pl-c1">=</span> <span class="pl-s1">client</span>.<span class="pl-en">get</span>(<span class="pl-s">"/example"</span>, <span class="pl-s1">params</span><span class="pl-c1">=</span><span class="pl-s1">params</span>).<span class="pl-en">json</span>()
<span class="pl-s1">logging</span>.<span class="pl-en">warning</span>(<span class="pl-s1">resp</span>)
<span class="pl-k">assert</span> <span class="pl-s1">resp</span>[<span class="pl-s">"found"</span>] <span class="pl-c1">==</span> <span class="pl-s">"plain text"</span>
<span class="pl-s1">params</span> <span class="pl-c1">=</span> {<span class="pl-s">"look_for"</span>: <span class="pl-s">"España"</span>}
<span class="pl-s1">resp</span> <span class="pl-c1">=</span> <span class="pl-s1">client</span>.<span class="pl-en">get</span>(<span class="pl-s">"/example"</span>, <span class="pl-s1">params</span><span class="pl-c1">=</span><span class="pl-s1">params</span>).<span class="pl-en">json</span>()
<span class="pl-s1">logging</span>.<span class="pl-en">warning</span>(<span class="pl-s1">resp</span>)
<span class="pl-k">assert</span> <span class="pl-s1">resp</span>[<span class="pl-s">"found"</span>] <span class="pl-c1">==</span> <span class="pl-s">"España"</span>, <span class="pl-s1">resp</span>[<span class="pl-s">"found"</span>]</pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">After the change to <code class="notranslate">httpx</code> for the <code class="notranslate">TestClient</code> in <strong>v0.87.0</strong>, the query parameters are not properly encoded? when sending requests with it, and strings are corrupted when received in the endpoints.</p>
<p dir="auto">The example app works as expected if called from the SwaggerUI or from another python process using a <em>plain</em> <code class="notranslate">httpx.Client</code>, so it appears something broke with the new wrapping for <code class="notranslate">TestClient</code> <g-emoji class="g-emoji" alias="smiling_face_with_tear" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f972.png">🥲</g-emoji></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import httpx
params = {"look_for": "España"}
with httpx.Client(base_url="http://localhost:8000/") as client:
resp = client.get("/example", params=params).json()
assert resp["found"] == "España""><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">httpx</span>
<span class="pl-s1">params</span> <span class="pl-c1">=</span> {<span class="pl-s">"look_for"</span>: <span class="pl-s">"España"</span>}
<span class="pl-k">with</span> <span class="pl-s1">httpx</span>.<span class="pl-v">Client</span>(<span class="pl-s1">base_url</span><span class="pl-c1">=</span><span class="pl-s">"http://localhost:8000/"</span>) <span class="pl-k">as</span> <span class="pl-s1">client</span>:
<span class="pl-s1">resp</span> <span class="pl-c1">=</span> <span class="pl-s1">client</span>.<span class="pl-en">get</span>(<span class="pl-s">"/example"</span>, <span class="pl-s1">params</span><span class="pl-c1">=</span><span class="pl-s1">params</span>).<span class="pl-en">json</span>()
<span class="pl-k">assert</span> <span class="pl-s1">resp</span>[<span class="pl-s">"found"</span>] <span class="pl-c1">==</span> <span class="pl-s">"España"</span></pre></div>
<h3 dir="auto">Operating System</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Operating System Details</h3>
<p dir="auto">M1, running arm64 arch</p>
<h3 dir="auto">FastAPI Version</h3>
<p dir="auto">0.87.0</p>
<h3 dir="auto">Python Version</h3>
<p dir="auto">Python 3.10.5</p>
<h3 dir="auto">Additional Context</h3>
<p dir="auto">starlette-0.21<br>
httpx-0.23.0</p>
<p dir="auto">Discovered when trying to migrate the test suite for a ~big project previously using fastapi-0.85.1 + starlette-0.20.4.</p>
<p dir="auto">All minor syntax changes from old <code class="notranslate">requests</code> to new <code class="notranslate">httpx</code> were under control, but in one unit test, <strong>a string with an accent</strong> was making some search to fail without results (test is sending "Formalización" but endpoint is receiving <strong>"Formalización"</strong> <g-emoji class="g-emoji" alias="scream" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f631.png">😱</g-emoji>), and I was getting crazy <g-emoji class="g-emoji" alias="sweat_smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f605.png">😅</g-emoji></p> | 1 |
<p dir="auto">Description</p>
<p dir="auto">A guide that describes how to use all the operators for Postgres (<a href="https://github.com/apache/airflow/tree/master/airflow/providers/postgres">https://github.com/apache/airflow/tree/master/airflow/providers/postgres</a>) would be useful.</p>
<p dir="auto">Other guides are available:<br>
<a href="https://airflow.readthedocs.io/en/latest/howto/operator/index.html" rel="nofollow">https://airflow.readthedocs.io/en/latest/howto/operator/index.html</a></p>
<p dir="auto">Source code for those guides are at:<br>
<a href="https://github.com/apache/airflow/tree/master/docs/howto/operator">https://github.com/apache/airflow/tree/master/docs/howto/operator</a></p>
<p dir="auto">Are you wondering how to start contributing to this project? Start by reading our contributor guide</p>
<p dir="auto">Best regards,<br>
Kaxil</p> | <p dir="auto"><strong>Description</strong></p>
<p dir="auto">A guide that describes how to use all the operators for Postgres (<a href="https://github.com/apache/airflow/tree/master/airflow/providers/postgres">https://github.com/apache/airflow/tree/master/airflow/providers/postgres</a>) would be useful.</p>
<p dir="auto">Other guides are available:<br>
<a href="https://airflow.readthedocs.io/en/latest/howto/operator/index.html" rel="nofollow">https://airflow.readthedocs.io/en/latest/howto/operator/index.html</a></p>
<p dir="auto">Source code for those guides are at:<br>
<a href="https://github.com/apache/airflow/tree/master/docs/howto/operator">https://github.com/apache/airflow/tree/master/docs/howto/operator</a></p>
<p dir="auto">Are you wondering how to start contributing to this project? Start by reading our <a href="https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst">contributor guide</a></p>
<p dir="auto">Best regards,<br>
Kaxil</p> | 1 |
<p dir="auto">Apache Druid 24.0.0 contains over 300 new features, bug fixes, performance enhancements, documentation improvements, and additional test coverage from 67 contributors. <a href="https://github.com/apache/druid/milestone/46">See the complete set of changes for additional details</a>.</p>
<h1 dir="auto"><a name="user-content-24.0.0-new-features" href="#24.0.0-new-features">#</a> New Features</h1>
<h2 dir="auto"><a name="user-content-24.0.0-new-features-multi-stage-query-task-engine" href="#24.0.0-new-features-multi-stage-query-task-engine">#</a> Multi-stage query task engine</h2>
<p dir="auto">SQL-based ingestion for Apache Druid uses a distributed multi-stage query architecture, which includes a query engine called the multi-stage query task engine (MSQ task engine). The MSQ task engine extends Druid's query capabilities, so you can write queries that reference external data as well as perform ingestion with SQL INSERT and REPLACE. Essentially, you can perform SQL-based ingestion instead of using JSON ingestion specs that Druid's native ingestion uses. In addition to the easy-to-use syntax, the SQL interface lets you perform transformations that involve multiple shuffles of data.</p>
<p dir="auto">SQL-based ingestion using the multi-stage query task engine is the recommended solution starting in Druid 24.0.0. Alternative ingestion solutions such as native batch and Hadoop-based ingestion systems will still be supported. We recommend you read all known issues and test the feature in a development environment before rolling out in production. Using the multi-stage query task engine with <code class="notranslate">SELECT</code> statements that do not write to a datasource is experimental.</p>
<p dir="auto">The extension for it (druid-multi-stage-query) is loaded by default. If you're upgrading from an earlier version of Druid or you're using Docker, you'll need to add the extension to <code class="notranslate">druid.extensions.loadlist</code> in your <code class="notranslate">common.runtime.properties</code> file.</p>
<p dir="auto">For more information, see the overview for the multi-stage query architecture.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1236771890" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12524" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12524/hovercard" href="https://github.com/apache/druid/pull/12524">#12524</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1189549778" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12386" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12386/hovercard" href="https://github.com/apache/druid/pull/12386">#12386</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1236672587" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12523" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12523/hovercard" href="https://github.com/apache/druid/pull/12523">#12523</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1255824638" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12589" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12589/hovercard" href="https://github.com/apache/druid/pull/12589">#12589</a></p>
<h2 dir="auto"><a name="user-content-24.0.0-new-features-nested-columns-" href="#24.0.0-new-features-nested-columns-">#</a> Nested columns</h2>
<p dir="auto">Druid now supports directly storing nested data structures in a newly added <code class="notranslate">COMPLEX<json></code> column type. <code class="notranslate">COMPLEX<json></code> columns store a copy of the structured data in JSON format as well as specialized internal columns and indexes for nested literal values—<code class="notranslate">STRING</code>, <code class="notranslate">LONG</code>, and <code class="notranslate">DOUBLE</code> types. An optimized virtual column allows Druid to read and filter these values at speeds consistent with standard Druid <code class="notranslate">LONG</code>, <code class="notranslate">DOUBLE</code>, and <code class="notranslate">STRING</code> columns.</p>
<p dir="auto">Newly added Druid SQL, native JSON functions, and virtual column allow you to extract, transform, and create <code class="notranslate">COMPLEX<json></code> values in at query time. You can also use the JSON functions in <code class="notranslate">INSERT</code> and <code class="notranslate">REPLACE</code> statements in SQL-based ingestion, or in a <code class="notranslate">transformSpec</code> in native ingestion as an alternative to using a <code class="notranslate">flattenSpec</code> object to "flatten" nested data for ingestion.</p>
<p dir="auto">See <a href="docs/querying/sql-json-functions.md">SQL JSON functions</a>, <a href="docs/misc/math-expr.md#json-functions">native JSON functions</a>, <a href="docs/querying/nested-columns.md">Nested columns</a>, <a href="docs/querying/virtual-columns.md#nested-field-virtual-column">virtual columns</a>, and the <a href="https://github.com/apache/druid/issues/12695" data-hovercard-type="issue" data-hovercard-url="/apache/druid/issues/12695/hovercard">feature summary</a> for more detail.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1296628212" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12753" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12753/hovercard" href="https://github.com/apache/druid/pull/12753">#12753</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1287844223" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12714" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12714/hovercard" href="https://github.com/apache/druid/pull/12714">#12714</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1296628212" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12753" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12753/hovercard" href="https://github.com/apache/druid/pull/12753">#12753</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1342964436" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12920" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12920/hovercard" href="https://github.com/apache/druid/pull/12920">#12920</a></p>
<h2 dir="auto"><a name="user-content-24.0.0-new-features-updated-java-support" href="#24.0.0-new-features-updated-java-support">#</a> Updated Java support</h2>
<p dir="auto">Java 11 is fully supported is no longer experimental. Java 17 support is improved.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1323179155" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12839" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12839/hovercard" href="https://github.com/apache/druid/pull/12839">#12839</a></p>
<h1 dir="auto"><a name="user-content-24.0.0-query-engine-updates" href="#24.0.0-query-engine-updates">#</a> Query engine updates</h1>
<h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-updated-column-indexes-and-query-processing-of-filters" href="#24.0.0-query-engine-updates-updated-column-indexes-and-query-processing-of-filters">#</a> Updated column indexes and query processing of filters</h3>
<p dir="auto">Reworked column indexes to be extraordinarily flexible, which will eventually allow us to model a wide range of index types. Added machinery to build the filters that use the updated indexes, while also allowing for other column implementations to implement the built-in index types to provide adapters to make use indexing in the current set filters that Druid provides.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1190250611" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12388" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12388/hovercard" href="https://github.com/apache/druid/pull/12388">#12388</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-time-filter-operator" href="#24.0.0-query-engine-updates-time-filter-operator">#</a> Time filter operator</h3>
<p dir="auto">You can now use the Druid SQL operator TIME_IN_INTERVAL to filter query results based on time. Prefer TIME_IN_INTERVAL over the SQL BETWEEN operator to filter on time. For more information, see <a href="docs/querying/sql-scalar.md#date-and-time-functions">Date and time functions</a>.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1273137509" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12662" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12662/hovercard" href="https://github.com/apache/druid/pull/12662">#12662</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-null-values-and-the-%22in%22-filter" href="#24.0.0-query-engine-updates-null-values-and-the-%22in%22-filter">#</a> Null values and the "in" filter</h3>
<p dir="auto">If a <code class="notranslate">values</code> array contains <code class="notranslate">null</code>, the "in" filter matches null values. This differs from the SQL IN filter, which does not match null values.</p>
<p dir="auto">For more information, see <a href="/docs/querying/filters.md">Query filters</a> and <a href="/docs/querying/sql-data-types.md">SQL data types</a>.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1329092598" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12863" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12863/hovercard" href="https://github.com/apache/druid/pull/12863">#12863</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-virtual-columns-in-search-queries" href="#24.0.0-query-engine-updates-virtual-columns-in-search-queries">#</a> Virtual columns in search queries</h3>
<p dir="auto">Previously, a <a href="/docs/querying/searchquery.md">search query</a> could only search on dimensions that existed in the data source. Search queries now support <a href="/docs/querying/virtual-columns.md">virtual columns</a> as a parameter in the query.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1289754739" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12720" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12720/hovercard" href="https://github.com/apache/druid/pull/12720">#12720</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-optimize-simple-min-%2f-max-sql-queries-on-__time" href="#24.0.0-query-engine-updates-optimize-simple-min-%2F-max-sql-queries-on-__time">#</a> Optimize simple MIN / MAX SQL queries on __time</h3>
<p dir="auto">Simple queries like <code class="notranslate">select max(__time) from ds</code> now run as a <code class="notranslate">timeBoundary</code> queries to take advantage of the time dimension sorting in a segment. You can set a feature flag to enable this feature.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1212213021" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12472" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12472/hovercard" href="https://github.com/apache/druid/pull/12472">#12472</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1218411439" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12491" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12491/hovercard" href="https://github.com/apache/druid/pull/12491">#12491</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-string-aggregation-results" href="#24.0.0-query-engine-updates-string-aggregation-results">#</a> String aggregation results</h3>
<p dir="auto">The first/last string aggregator now only compares based on values. Previously, the first/last string aggregator’s values were compared based on the <code class="notranslate">_time</code> column first and then on values.</p>
<p dir="auto">If you have existing queries and want to continue using both the <code class="notranslate">_time</code> column and values, update your queries to use ORDER BY MAX(timeCol).</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1303307742" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12773" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12773/hovercard" href="https://github.com/apache/druid/pull/12773">#12773</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-reduced-allocations-due-to-jackson-serialization" href="#24.0.0-query-engine-updates-reduced-allocations-due-to-jackson-serialization">#</a> Reduced allocations due to Jackson serialization</h3>
<p dir="auto">Introduced and implemented new helper functions in <code class="notranslate">JacksonUtils</code> to enable reuse of<br>
<code class="notranslate">SerializerProvider</code> objects.</p>
<p dir="auto">Additionally, disabled backwards compatibility for map-based rows in the <code class="notranslate">GroupByQueryToolChest</code> by default, which eliminates the need to copy the heavyweight <code class="notranslate">ObjectMapper</code>. Introduced a configuration option to allow administrators to explicitly enable backwards compatibility.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1211482815" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12468" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12468/hovercard" href="https://github.com/apache/druid/pull/12468">#12468</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-updated-ipaddress-java-library-" href="#24.0.0-query-engine-updates-updated-ipaddress-java-library-">#</a> Updated IPAddress Java library</h3>
<p dir="auto">Added a new <a href="https://github.com/seancfoley/IPAddress">IPAddress</a> Java library dependency to handle IP addresses. The library includes IPv6 support. Additionally, migrated IPv4 functions to use the new library.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="979460652" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/11634" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/11634/hovercard" href="https://github.com/apache/druid/pull/11634">#11634</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-query-engine-updates-query-performance-improvements" href="#24.0.0-query-engine-updates-query-performance-improvements">#</a> Query performance improvements</h3>
<p dir="auto">Optimized SQL operations and functions as follows:</p>
<ul dir="auto">
<li>Vectorized numeric latest aggregators (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1205360729" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12439" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12439/hovercard" href="https://github.com/apache/druid/pull/12439">#12439</a>)</li>
<li>Optimized <code class="notranslate">isEmpty()</code> and <code class="notranslate">equals()</code> on RangeSets (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1213226111" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12477" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12477/hovercard" href="https://github.com/apache/druid/pull/12477">#12477</a>)</li>
<li>Optimized reuse of Yielder objects (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1212695856" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12475" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12475/hovercard" href="https://github.com/apache/druid/pull/12475">#12475</a>)</li>
<li>Operations on numeric columns with indexes are now faster (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1320361574" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12830" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12830/hovercard" href="https://github.com/apache/druid/pull/12830">#12830</a>)</li>
<li>Optimized GroupBy by reducing allocations. Reduced allocations by reusing entry and key holders (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1212596980" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12474" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12474/hovercard" href="https://github.com/apache/druid/pull/12474">#12474</a>)</li>
<li>Added a vectorized version of string last aggregator (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1220093622" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12493" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12493/hovercard" href="https://github.com/apache/druid/pull/12493">#12493</a>)</li>
<li>Added Direct UTF-8 access for IN filters (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1234652515" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12517" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12517/hovercard" href="https://github.com/apache/druid/pull/12517">#12517</a>)</li>
<li>Enabled virtual columns to cache their outputs in case Druid calls them multiple times on the same underlying row (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1251979306" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12577" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12577/hovercard" href="https://github.com/apache/druid/pull/12577">#12577</a>)</li>
<li>Druid now rewrites a join as a filter when possible in IN joins (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1122084186" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12225" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12225/hovercard" href="https://github.com/apache/druid/pull/12225">#12225</a>)</li>
<li>Added automatic sizing for GroupBy dictionaries (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1299561167" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12763" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12763/hovercard" href="https://github.com/apache/druid/pull/12763">#12763</a>)</li>
<li>Druid now distributes JDBC connections more evenly amongst brokers (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1316509865" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12817" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12817/hovercard" href="https://github.com/apache/druid/pull/12817">#12817</a>)</li>
</ul>
<h2 dir="auto"><a name="user-content-24.0.0-streaming-ingestion" href="#24.0.0-streaming-ingestion">#</a> Streaming ingestion</h2>
<h3 dir="auto"><a name="user-content-24.0.0-streaming-ingestion-kafka-consumers" href="#24.0.0-streaming-ingestion-kafka-consumers">#</a> Kafka consumers</h3>
<p dir="auto">Previously, consumers that were registered and used for ingestion persisted until Kafka deleted them. They were only used to make sure that an entire topic was consumed. There are no longer consumer groups that linger.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1323782021" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12842" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12842/hovercard" href="https://github.com/apache/druid/pull/12842">#12842</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-streaming-ingestion-kinesis-ingestion" href="#24.0.0-streaming-ingestion-kinesis-ingestion">#</a> Kinesis ingestion</h3>
<p dir="auto">You can now perform Kinesis ingestion even if there are empty shards. Previously, all shards had to have at least one record.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1305780684" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12792" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12792/hovercard" href="https://github.com/apache/druid/pull/12792">#12792</a></p>
<h2 dir="auto"><a name="user-content-24.0.0-batch-ingestion" href="#24.0.0-batch-ingestion">#</a> Batch ingestion</h2>
<h3 dir="auto"><a name="user-content-24.0.0-batch-ingestion-batch-ingestion-from-s3" href="#24.0.0-batch-ingestion-batch-ingestion-from-s3">#</a> Batch ingestion from S3</h3>
<p dir="auto">You can now ingest data from endpoints that are different from your default S3 endpoint and signing region.<br>
For more information, see <a href="../development/extensions-core/s3.md#connecting-to-s3-configuration">S3 config</a>.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1025792140" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/11798" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/11798/hovercard" href="https://github.com/apache/druid/pull/11798">#11798</a></p>
<h2 dir="auto"><a name="user-content-24.0.0-improvements-to-ingestion-in-general" href="#24.0.0-improvements-to-ingestion-in-general">#</a> Improvements to ingestion in general</h2>
<p dir="auto">This release includes the following improvements for ingestion in general.</p>
<h3 dir="auto"><a name="user-content-24.0.0-improvements-to-ingestion-in-general-increased-robustness-for-task-management" href="#24.0.0-improvements-to-ingestion-in-general-increased-robustness-for-task-management">#</a> Increased robustness for task management</h3>
<p dir="auto">Added <code class="notranslate">setNumProcessorsPerTask</code> to prevent various automatically-sized thread pools from becoming unreasonably large. It isn't ideal for each task to size its pools as if it is the only process on the entire machine. On large machines, this solves a common cause of <code class="notranslate">OutOfMemoryError</code> due to "unable to create native thread".</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1256365896" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12592" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12592/hovercard" href="https://github.com/apache/druid/pull/12592">#12592</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-improvements-to-ingestion-in-general-avatica-jdbc-driver" href="#24.0.0-improvements-to-ingestion-in-general-avatica-jdbc-driver">#</a> Avatica JDBC driver</h3>
<p dir="auto">The JDBC driver now follows the JDBC standard and uses two kinds of statements, Statement and PreparedStatement.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1284829130" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12709" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12709/hovercard" href="https://github.com/apache/druid/pull/12709">#12709</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-improvements-to-ingestion-in-general-eight-hour-granularity" href="#24.0.0-improvements-to-ingestion-in-general-eight-hour-granularity">#</a> Eight hour granularity</h3>
<p dir="auto">Druid now accepts the <code class="notranslate">EIGHT_HOUR</code> granularity. You can segment incoming data to <code class="notranslate">EIGHT_HOUR</code> buckets as well as group query results by eight hour granularity.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1289324454" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12717" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12717/hovercard" href="https://github.com/apache/druid/pull/12717">#12717</a></p>
<h2 dir="auto"><a name="user-content-24.0.0-ingestion-general" href="#24.0.0-ingestion-general">#</a> Ingestion general</h2>
<h3 dir="auto"><a name="user-content-24.0.0-ingestion-general-updated-avro-extension" href="#24.0.0-ingestion-general-updated-avro-extension">#</a> Updated Avro extension</h3>
<p dir="auto">The previous Avro extension leaked objects from the parser. If these objects leaked into your ingestion, you had objects being stored as a string column with the value as the .toString(). This string column will remain after you upgrade but will return <code class="notranslate">Map.toString()</code> instead of <code class="notranslate">GenericRecord.toString</code>. If you relied on the previous behavior, you can use the Avro extension from an earlier release.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1319676962" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12828" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12828/hovercard" href="https://github.com/apache/druid/pull/12828">#12828</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-ingestion-general-sampler-api" href="#24.0.0-ingestion-general-sampler-api">#</a> Sampler API</h3>
<p dir="auto">The sampler API has additional limits: <code class="notranslate">maxBytesInMemory</code> and <code class="notranslate">maxClientResponseBytes</code>. These options augment the existing options <code class="notranslate">numRows</code> and <code class="notranslate">timeoutMs</code>. <code class="notranslate">maxBytesInMemory</code> can be used to control the memory usage on the Overlord while sampling. <code class="notranslate">maxClientResponseBytes</code> can be used by clients to specify the maximum size of response they would prefer to handle.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1347809718" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12947" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12947/hovercard" href="https://github.com/apache/druid/pull/12947">#12947</a></p>
<h2 dir="auto"><a name="user-content-24.0.0-sql" href="#24.0.0-sql">#</a> SQL</h2>
<h3 dir="auto"><a name="user-content-24.0.0-sql-column-order" href="#24.0.0-sql-column-order">#</a> Column order</h3>
<p dir="auto">The <code class="notranslate">DruidSchema</code> and <code class="notranslate">SegmentMetadataQuery</code> properties now preserve column order instead of ordering columns alphabetically. This means that query order better matches ingestion order.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1296712330" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12754" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12754/hovercard" href="https://github.com/apache/druid/pull/12754">#12754</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-sql-converting-joins-to-filter" href="#24.0.0-sql-converting-joins-to-filter">#</a> Converting JOINs to filter</h3>
<p dir="auto">You can improve performance by pushing JOINs partially or fully to the base table as a filter at runtime by setting the <code class="notranslate">enableRewriteJoinToFilter</code> context parameter to <code class="notranslate">true</code> for a query.</p>
<p dir="auto">Druid now pushes down join filters in case the query computing join references any columns from the right side.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1295910535" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12749" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12749/hovercard" href="https://github.com/apache/druid/pull/12749">#12749</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1329692382" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12868" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12868/hovercard" href="https://github.com/apache/druid/pull/12868">#12868</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-sql-add-is_active-to-sys.segments" href="#24.0.0-sql-add-is_active-to-sys.segments">#</a> Add is_active to sys.segments</h3>
<p dir="auto">Added <code class="notranslate">is_active</code> as shorthand for <code class="notranslate">(is_published = 1 AND is_overshadowed = 0) OR is_realtime = 1)</code>. This represents "all the segments that should be queryable, whether or not they actually are right now".</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="961092430" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/11550" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/11550/hovercard" href="https://github.com/apache/druid/pull/11550">#11550</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-sql-%60usenativequeryexplain%60-now-defaults-to-true" href="#24.0.0-sql-%60usenativequeryexplain%60-now-defaults-to-true">#</a> <code class="notranslate">useNativeQueryExplain</code> now defaults to true</h3>
<p dir="auto">The <code class="notranslate">useNativeQueryExplain</code> property now defaults to <code class="notranslate">true</code>. This means that EXPLAIN PLAN FOR returns the explain plan as a JSON representation of equivalent native query(s) by default. For more information, see <a href="/docs/configuration/index.md">Broker Generated Query Configuration Supplementation</a>.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1346470370" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12936" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12936/hovercard" href="https://github.com/apache/druid/pull/12936">#12936</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-inline-query-engine" href="#24.0.0-inline-query-engine">#</a> Running queries with inline data using druid query engine</h3>
<p dir="auto">Some queries that do not refer to any table, such as <code class="notranslate">select 1</code>, are now always translated to a native Druid query with <code class="notranslate">InlineDataSource</code> before execution. If translation is not possible, for queries such as <code class="notranslate">SELECT (1, 2)</code>, then an error occurs. In earlier versions, this query would still run.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1337007651" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12897" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12897/hovercard" href="https://github.com/apache/druid/pull/12897">#12897</a></p>
<h2 dir="auto"><a name="user-content-24.0.0-coordinator%2foverlord" href="#24.0.0-coordinator%2Foverlord">#</a> Coordinator/Overlord</h2>
<h3 dir="auto"><a name="user-content-24.0.0-coordinator%2foverlord-you-can-configure-the-coordinator-to-kill-segments-in-the-future" href="#24.0.0-coordinator%2Foverlord-you-can-configure-the-coordinator-to-kill-segments-in-the-future">#</a> You can configure the Coordinator to kill segments in the future</h3>
<p dir="auto">You can now set <code class="notranslate">druid.coordinator.kill.durationToRetain</code> to a negative period to configure the Druid cluster to kill segments whose <code class="notranslate">interval_end</code> is a date in the future. For example, PT-24H would allow segments to be killed if their interval_end date was 24 hours or less into the future at the time that the kill task is generated by the system.<br>
A cluster operator can also disregard the <code class="notranslate">druid.coordinator.kill.durationToRetain</code> entirely by setting a new configuration, <code class="notranslate">druid.coordinator.kill.ignoreDurationToRetain=true</code>. This ignores <code class="notranslate">interval_end</code> date when looking for segments to kill, and can instead kill any segment marked unused. This new configuration is turned off by default, and a cluster operator should fully understand and accept the risks before enabling it.</p>
<h3 dir="auto"><a name="user-content-24.0.0-coordinator%2foverlord-improved-overlord-stability" href="#24.0.0-coordinator%2Foverlord-improved-overlord-stability">#</a> Improved Overlord stability</h3>
<p dir="auto">Reduced contention between the management thread and the reception of status updates from the cluster. This improves the stability of Overlord and all tasks in a cluster when there are large (1000+) task counts.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1089495362" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12099" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12099/hovercard" href="https://github.com/apache/druid/pull/12099">#12099</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-coordinator%2foverlord-improved-coordinator-segment-logging" href="#24.0.0-coordinator%2Foverlord-improved-coordinator-segment-logging">#</a> Improved Coordinator segment logging</h3>
<p dir="auto">Updated Coordinator load rule logging to include current replication levels. Added missing segment ID and tier information from some of the log messages.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1232406118" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12511" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12511/hovercard" href="https://github.com/apache/druid/pull/12511">#12511</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-coordinator%2foverlord-optimized-overlord-get-tasks-memory-usage" href="#24.0.0-coordinator%2Foverlord-optimized-overlord-get-tasks-memory-usage">#</a> Optimized overlord GET tasks memory usage</h3>
<p dir="auto">Addressed the significant memory overhead caused by the web-console indirectly calling the Overlord’s GET tasks API. This could cause unresponsiveness or Overlord failure when the ingestion tab was opened multiple times.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1194698511" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12404" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12404/hovercard" href="https://github.com/apache/druid/pull/12404">#12404</a></p>
<h3 dir="auto"><a name="user-content-24.0.0-coordinator%2foverlord-reduced-time-to-create-intervals" href="#24.0.0-coordinator%2Foverlord-reduced-time-to-create-intervals">#</a> Reduced time to create intervals</h3>
<p dir="auto">In order to optimize segment cost computation time by reducing time taken for interval creation, store segment interval instead of creating it each time from primitives and reduce memory overhead of storing intervals by interning them. The set of intervals for segments is low in cardinality.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1274953108" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12670" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12670/hovercard" href="https://github.com/apache/druid/pull/12670">#12670</a></p>
<h2 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord" href="#24.0.0--brokers%2Foverlord">#</a> Brokers/Overlord</h2>
<p dir="auto">Brokers now have a default of 25MB maximum queued per query. Previously, there was no default limit. Depending on your use case, you may need to increase the value, especially if you have large result sets or large amounts of intermediate data. To adjust the maximum memory available, use the <code class="notranslate">druid.broker.http.maxQueuedBytes</code> property.<br>
For more information, see <a href="docs/configuration/index.md">Configuration reference</a>.</p>
<h2 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console" href="#24.0.0--brokers%2Foverlord-web-console">#</a> Web console</h2>
<blockquote>
<p dir="auto">Prepare to have your Web Console experience elevated! - <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vogievetsky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vogievetsky">@vogievetsky</a></p>
</blockquote>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support">#</a> New query view (WorkbenchView) with tabs and long running query support</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/177816/185309077-8840ff85-19a9-4fc0-8398-4f2446ff29b3.png"><img src="https://user-images.githubusercontent.com/177816/185309077-8840ff85-19a9-4fc0-8398-4f2446ff29b3.png" alt="" style="max-width: 100%;"></a></p>
<p dir="auto">You can use the new query view to execute multi-stage, task based, queries with the /druid/v2/sql/task and /druid/indexer/v1/task/* APIs as well as native and sql-native queries just like the old Query view. A key point of the sql-msq-task based queries is that they may run for a long time. This inspired / necessitated many UX changes including, but not limited to the following:</p>
<h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-tabs" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-tabs">#</a> Tabs</h4>
<p dir="auto">You can now have many queries stored and running at the same time, significantly improving the query view UX.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/177816/185309114-fe82cccd-a917-415c-a394-a3485403226d.png"><img src="https://user-images.githubusercontent.com/177816/185309114-fe82cccd-a917-415c-a394-a3485403226d.png" alt="" style="max-width: 100%;"></a></p>
<p dir="auto">You can open several tabs, duplicate them, and copy them as text to paste into any console and reopen there.</p>
<h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-progress-reports-%28counter-reports%29" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-progress-reports-%28counter-reports%29">#</a> Progress reports (counter reports)</h4>
<p dir="auto">Queries run with the multi-stage query task engine have detailed progress reports shown in the summary progress bar and the in detail execution table that provides summaries of the counters for every step.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/177816/185309244-cba3d640-c48a-49bd-8c72-ed3e842b0cb2.png"><img src="https://user-images.githubusercontent.com/177816/185309244-cba3d640-c48a-49bd-8c72-ed3e842b0cb2.png" alt="" style="max-width: 100%;"></a></p>
<h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-error-and-warning-reports" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-error-and-warning-reports">#</a> Error and warning reports</h4>
<p dir="auto">Queries run with the multi-stage query task engine present user friendly warnings and errors should anything go wrong.<br>
The new query view has components to visualize these with their full detail including a stack-trace.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/177816/185309488-421e7410-251d-4590-88f1-92fb23f4be13.png"><img src="https://user-images.githubusercontent.com/177816/185309488-421e7410-251d-4590-88f1-92fb23f4be13.png" alt="" style="max-width: 100%;"></a></p>
<h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-recent-query-tasks-panel" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-recent-query-tasks-panel">#</a> Recent query tasks panel</h4>
<p dir="auto">Queries run with the multi-stage query task engine are tasks. This makes it possible to show queries that are executing currently and that have executed in the recent past.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/177816/185309579-e2ce021c-6bf6-4576-bdee-ff552e1c4c3b.png"><img src="https://user-images.githubusercontent.com/177816/185309579-e2ce021c-6bf6-4576-bdee-ff552e1c4c3b.png" alt="" style="max-width: 100%;"></a></p>
<p dir="auto">For any query in the Recent query tasks panel you can view the execution details for it and you can also attach it as a new tab and continue iterating on the query. It is also possible to download the "query detail archive", a JSON file containing all the important details for a given query to use for troubleshooting.</p>
<h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-connect-external-data-flow" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-connect-external-data-flow">#</a> Connect external data flow</h4>
<p dir="auto">Connect external data flow lets you use the sampler to sample your source data to, determine its schema and generate a fully formed SQL query that you can edit to fit your use case before you launch your ingestion job. This point-and-click flow will save you much typing.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/177816/185309631-5ceed7d0-2bb2-43b9-83ed-fdcad4a152be.png"><img src="https://user-images.githubusercontent.com/177816/185309631-5ceed7d0-2bb2-43b9-83ed-fdcad4a152be.png" alt="" style="max-width: 100%;"></a></p>
<h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-preview-button" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-preview-button">#</a> Preview button</h4>
<p dir="auto">The Preview button appears when you type in an INSERT or REPLACE SQL query. Click the button to remove the INSERT or REPLACE clause and execute your query as an "inline" query with a limi). This gives you a sense of the shape of your data after Druid applies all your transformations from your SQL query.</p>
<h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-results-table" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-results-table">#</a> Results table</h4>
<p dir="auto">The query results table has been improved in style and function. It now shows you type icons for the column types and supports the ability to manipulate nested columns with ease.</p>
<h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-helper-queries" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-helper-queries">#</a> Helper queries</h4>
<p dir="auto">The Web Console now has some UI affordances for notebook and CTE users. You can reference helper queries, collapsable elements that hold a query, from the main query just like they were defined with a WITH statement. When you are composing a complicated query, it is helpful to break it down into multiple queries to preview the parts individually.</p>
<h4 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-additional-web-console-tools" href="#24.0.0--brokers%2Foverlord-web-console-new-query-view-%28workbenchview%29-with-tabs-and-long-running-query-support-additional-web-console-tools">#</a> Additional Web Console tools</h4>
<p dir="auto">More tools are available from the ... menu:</p>
<ul dir="auto">
<li>Explain query - show the query plan for sql-native and multi-stage query task engine queries.</li>
<li>Convert ingestion spec to SQL - Helps you migrate your native batch and Hadoop based specs to the SQL-based format.</li>
<li>Open query detail archive - lets you open a query detail archive downloaded earlier.</li>
<li>Load demo queries - lets you load a set of pre-made queries to play around with multi-stage query task engine functionality.</li>
</ul>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-new-sql-based-data-loader" href="#24.0.0--brokers%2Foverlord-web-console-new-sql-based-data-loader">#</a> New SQL-based data loader</h3>
<p dir="auto">The data loader exists as a GUI wizard to help users craft a JSON ingestion spec using point and click and quick previews. The SQL data loader is the SQL-based ingestion analog of that.</p>
<p dir="auto">Like the native based data loader, the SQL-based data loader stores all the state in the SQL query itself. You can opt to manipulate the query directly at any stage. See (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1342627344" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12919" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12919/hovercard" href="https://github.com/apache/druid/pull/12919">#12919</a>) for more information about how the data loader differs from the <strong>Connect external data</strong> workflow.</p>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-web-console-other-changes-and-improvements" href="#24.0.0--brokers%2Foverlord-web-console-other-changes-and-improvements">#</a> Other changes and improvements</h3>
<ul dir="auto">
<li>The query view has so much new functionality that it has moved to the far left as the first view available in the header.</li>
<li>You can now click on a datasource or segment to see a preview of the data within.</li>
<li>The task table now explicitly shows if a task has been canceled in a different color than a failed task.</li>
<li>The user experience when you view a JSON payload in the Druid console has been improved. There’s now syntax highlighting and a search.</li>
<li>The Druid console can now use the column order returned by a scan query to determine the column order for reindexing data.</li>
<li>The way errors are displayed in the Druid console has been improved. Errors no longer appear as a single long line.</li>
</ul>
<p dir="auto">See (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1342627344" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12919" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12919/hovercard" href="https://github.com/apache/druid/pull/12919">#12919</a>) for more details and other improvements</p>
<h2 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics" href="#24.0.0--brokers%2Foverlord-metrics">#</a> Metrics</h2>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-sysmonitor-stats-for-peons" href="#24.0.0--brokers%2Foverlord-metrics-sysmonitor-stats-for-peons">#</a> Sysmonitor stats for Peons</h3>
<p dir="auto">Sysmonitor stats, like memory or swap, are no longer reported since Peons always run on the same host as MiddleManagerse. This means that duplicate stats will no longer be reported.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1309337591" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12802" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12802/hovercard" href="https://github.com/apache/druid/pull/12802">#12802</a></p>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-prometheus-" href="#24.0.0--brokers%2Foverlord-metrics-prometheus-">#</a> Prometheus</h3>
<p dir="auto">You can now include the host and service as labels for Prometheus by setting the following properties to true:</p>
<ul dir="auto">
<li><code class="notranslate">druid.emitter.prometheus.addHostAsLabel</code></li>
<li><code class="notranslate">druid.emitter.prometheus.addServiceAsLabel</code></li>
</ul>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1300524227" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12769" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12769/hovercard" href="https://github.com/apache/druid/pull/12769">#12769</a></p>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-rows-per-segment" href="#24.0.0--brokers%2Foverlord-metrics-rows-per-segment">#</a> Rows per segment</h3>
<p dir="auto">(Experimental) You can now see the average number of rows in a segment and the distribution of segments in predefined buckets with the following metrics: <code class="notranslate">segment/rowCount/avg</code> and <code class="notranslate">segment/rowCount/range/count</code>.<br>
Enable the metrics with the following property: <code class="notranslate">org.apache.druid.server.metrics.SegmentStatsMonitor</code><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1291706327" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12730" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12730/hovercard" href="https://github.com/apache/druid/pull/12730">#12730</a></p>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-new-%60sqlquery%2fplanningtimems%60-metric" href="#24.0.0--brokers%2Foverlord-metrics-new-%60sqlquery%2Fplanningtimems%60-metric">#</a> New <code class="notranslate">sqlQuery/planningTimeMs</code> metric</h3>
<p dir="auto">There’s a new <code class="notranslate">sqlQuery/planningTimeMs</code> metric for SQL queries that computes the time it takes to build a native query from a SQL query.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1343713350" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12923" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12923/hovercard" href="https://github.com/apache/druid/pull/12923">#12923</a></p>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-statsd-metrics-reporter" href="#24.0.0--brokers%2Foverlord-metrics-statsd-metrics-reporter">#</a> StatsD metrics reporter</h3>
<p dir="auto">The StatsD metrics reporter extension now includes the following metrics:</p>
<ul dir="auto">
<li>coordinator/time</li>
<li>coordinator/global/time</li>
<li>tier/required/capacity</li>
<li>tier/total/capacity</li>
<li>tier/replication/factor</li>
<li>tier/historical/count</li>
<li>compact/task/count</li>
<li>compactTask/maxSlot/count</li>
<li>compactTask/availableSlot/count</li>
<li>segment/waitCompact/bytes</li>
<li>segment/waitCompact/count</li>
<li>interval/waitCompact/count</li>
<li>segment/skipCompact/bytes</li>
<li>segment/skipCompact/count</li>
<li>interval/skipCompact/count</li>
<li>segment/compacted/bytes</li>
<li>segment/compacted/count</li>
<li>interval/compacted/count<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1299553392" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12762" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12762/hovercard" href="https://github.com/apache/druid/pull/12762">#12762</a></li>
</ul>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-new-worker-level-task-metrics" href="#24.0.0--brokers%2Foverlord-metrics-new-worker-level-task-metrics">#</a> New worker level task metrics</h3>
<p dir="auto">Added a new monitor, <code class="notranslate">WorkerTaskCountStatsMonitor</code>, that allows each middle manage worker to report metrics for successful / failed tasks, and task slot usage.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1206749338" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12446" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12446/hovercard" href="https://github.com/apache/druid/pull/12446">#12446</a></p>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-improvements-to-the-jvmmonitor" href="#24.0.0--brokers%2Foverlord-metrics-improvements-to-the-jvmmonitor">#</a> Improvements to the JvmMonitor</h3>
<p dir="auto">The JvmMonitor can now handle more generation and collector scenarios. The monitor is more robust and works properly for ZGC on both Java 11 and 15.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1211484579" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12469" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12469/hovercard" href="https://github.com/apache/druid/pull/12469">#12469</a></p>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-garbage-collection" href="#24.0.0--brokers%2Foverlord-metrics-garbage-collection">#</a> Garbage collection</h3>
<p dir="auto">Garbage collection metrics now use MXBeans.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1214379882" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12481" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12481/hovercard" href="https://github.com/apache/druid/pull/12481">#12481</a></p>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-metric-for-task-duration-in-the-pending-queue" href="#24.0.0--brokers%2Foverlord-metrics-metric-for-task-duration-in-the-pending-queue">#</a> Metric for task duration in the pending queue</h3>
<p dir="auto">Introduced the metric <code class="notranslate">task/pending/time</code> to measure how long a task stays in the pending queue.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1219462241" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12492" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12492/hovercard" href="https://github.com/apache/druid/pull/12492">#12492</a></p>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-emit-metrics-object-for-scan%2c-timeseries%2c-and-groupby-queries-during-cursor-creation" href="#24.0.0--brokers%2Foverlord-metrics-emit-metrics-object-for-scan%2C-timeseries%2C-and-groupby-queries-during-cursor-creation">#</a> Emit metrics object for Scan, Timeseries, and GroupBy queries during cursor creation</h3>
<p dir="auto">Adds vectorized metric for scan, timeseries and groupby queries.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1215624959" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12484" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12484/hovercard" href="https://github.com/apache/druid/pull/12484">#12484</a></p>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-emit-state-of-replace-and-append-for-native-batch-tasks" href="#24.0.0--brokers%2Foverlord-metrics-emit-state-of-replace-and-append-for-native-batch-tasks">#</a> Emit state of replace and append for native batch tasks</h3>
<p dir="auto">Druid now emits metrics so you can monitor and assess the use of different types of batch ingestion, in particular replace and tombstone creation.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1218106564" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12488" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12488/hovercard" href="https://github.com/apache/druid/pull/12488">#12488</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1323574408" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12840" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12840/hovercard" href="https://github.com/apache/druid/pull/12840">#12840</a></p>
<h3 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-metrics-kafkaemitter-emits-%60querytype%60" href="#24.0.0--brokers%2Foverlord-metrics-kafkaemitter-emits-%60querytype%60">#</a> KafkaEmitter emits <code class="notranslate">queryType</code></h3>
<p dir="auto">The KafkaEmitter now properly emits the <code class="notranslate">queryType</code> property for native queries.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1341820467" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12915" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12915/hovercard" href="https://github.com/apache/druid/pull/12915">#12915</a></p>
<h2 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-security" href="#24.0.0--brokers%2Foverlord-security">#</a> Security</h2>
<p dir="auto">You can now hide properties that are sensitive in the API response from <code class="notranslate">/status/properties</code>, such as S3 access keys. Use the <code class="notranslate">druid.server.hiddenProperties</code> property in <code class="notranslate">common.runtime.properties</code> to specify the properties (case insensitive) you want to hide.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1348473346" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12950" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12950/hovercard" href="https://github.com/apache/druid/pull/12950">#12950</a></p>
<h2 dir="auto"><a name="user-content-24.0.0--brokers%2foverlord-other-changes" href="#24.0.0--brokers%2Foverlord-other-changes">#</a> Other changes</h2>
<ul dir="auto">
<li>You can now configure the retention period for request logs stored on disk with the <code class="notranslate">druid.request.logging.durationToRetain</code> property. Set the retention period to be longer than <code class="notranslate">P1D</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1244467642" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12559" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12559/hovercard" href="https://github.com/apache/druid/pull/12559">#12559</a>)</li>
<li>You can now specify liveness and readiness probe delays for the historical StatefulSet in your values.yaml file. The default is 60 seconds (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1310370387" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12805" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12805/hovercard" href="https://github.com/apache/druid/pull/12805">#12805</a>)</li>
<li>Improved exception message for native binary operators (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1169781450" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12335" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12335/hovercard" href="https://github.com/apache/druid/pull/12335">#12335</a>)</li>
<li>Improved error messages when URI points to a file that doesn't exist (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1218306969" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12490" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12490/hovercard" href="https://github.com/apache/druid/pull/12490">#12490</a>)</li>
<li>Improved build performance of modules (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1216689779" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12486" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12486/hovercard" href="https://github.com/apache/druid/pull/12486">#12486</a>)</li>
<li>Improved lookups made using the druid-kafka-extraction-namespace extension to handle records that have been deleted from a kafka topic (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1317720242" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12819" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12819/hovercard" href="https://github.com/apache/druid/pull/12819">#12819</a>)</li>
<li>Updated core Apache Kafka dependencies to 3.2.0 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1240594543" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12538" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12538/hovercard" href="https://github.com/apache/druid/pull/12538">#12538</a>)</li>
<li>Updated ORC to 1.7.5 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1274556347" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12667" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12667/hovercard" href="https://github.com/apache/druid/pull/12667">#12667</a>)</li>
<li>Updated Jetty to 9.4.41.v20210516 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1267390528" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12629" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12629/hovercard" href="https://github.com/apache/druid/pull/12629">#12629</a>)</li>
<li>Added <code class="notranslate">Zstandard</code> compression library to <code class="notranslate">CompressionStrategy</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1195275557" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12408" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12408/hovercard" href="https://github.com/apache/druid/pull/12408">#12408</a>)</li>
<li>Updated the default gzip buffer size to 8 KB to for improved performance (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1251980114" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12579" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12579/hovercard" href="https://github.com/apache/druid/pull/12579">#12579</a>)</li>
<li>Updated the default <code class="notranslate">inputSegmentSizeBytes</code> in Compaction configuration to 100,000,000,000,000 (~100TB)</li>
</ul>
<h1 dir="auto"><a name="user-content-24.0.0-bug-fixes" href="#24.0.0-bug-fixes">#</a> Bug fixes</h1>
<p dir="auto">Druid 24.0 contains over 68 bug fixes. You can find the complete list <a href="https://github.com/apache/druid/issues?q=is%3Aclosed+label%3ABug+milestone%3A24.0.0+">here</a></p>
<h1 dir="auto"><a name="user-content-24.0.0-upgrading-to-24.0" href="#24.0.0-upgrading-to-24.0">#</a> Upgrading to 24.0</h1>
<h2 dir="auto"><a name="user-content-24.0.0-upgrading-to-24.0-permissions-for-multi-stage-query-engine" href="#24.0.0-upgrading-to-24.0-permissions-for-multi-stage-query-engine">#</a> Permissions for multi-stage query engine</h2>
<p dir="auto">To read external data using the multi-stage query task engine, you must have READ permissions for the <a href="/docs/operations/security-user-auth.md">EXTERNAL resource type</a>. Users without the correct permission encounter a 403 error when trying to run SQL queries that include EXTERN.</p>
<p dir="auto">The way you assign the permission depends on your authorizer. For example, with [basic security]((/docs/development/extensions-core/druid-basic-security.md) in Druid, add the <code class="notranslate">EXTERNAL READ</code> permission by sending a <code class="notranslate">POST</code> request to the <a href="/docs/development/extensions-core/druid-basic-security.md#permissions">roles API</a>.</p>
<p dir="auto">The example adds permissions for users with the <code class="notranslate">admin</code> role using a basic authorizer named <code class="notranslate">MyBasicMetadataAuthorizer</code>. The following permissions are granted:</p>
<ul dir="auto">
<li>DATASOURCE READ</li>
<li>DATASOURCE WRITE</li>
<li>CONFIG READ</li>
<li>CONFIG WRITE</li>
<li>STATE READ</li>
<li>STATE WRITE</li>
<li>EXTERNAL READ</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl --location --request POST 'http://localhost:8081/druid-ext/basic-security/authorization/db/MyBasicMetadataAuthorizer/roles/admin/permissions' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"resource": {
"name": ".*",
"type": "DATASOURCE"
},
"action": "READ"
},
{
"resource": {
"name": ".*",
"type": "DATASOURCE"
},
"action": "WRITE"
},
{
"resource": {
"name": ".*",
"type": "CONFIG"
},
"action": "READ"
},
{
"resource": {
"name": ".*",
"type": "CONFIG"
},
"action": "WRITE"
},
{
"resource": {
"name": ".*",
"type": "STATE"
},
"action": "READ"
},
{
"resource": {
"name": ".*",
"type": "STATE"
},
"action": "WRITE"
},
{
"resource": {
"name": "EXTERNAL",
"type": "EXTERNAL"
},
"action": "READ"
}
]'"><pre class="notranslate"><code class="notranslate">curl --location --request POST 'http://localhost:8081/druid-ext/basic-security/authorization/db/MyBasicMetadataAuthorizer/roles/admin/permissions' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"resource": {
"name": ".*",
"type": "DATASOURCE"
},
"action": "READ"
},
{
"resource": {
"name": ".*",
"type": "DATASOURCE"
},
"action": "WRITE"
},
{
"resource": {
"name": ".*",
"type": "CONFIG"
},
"action": "READ"
},
{
"resource": {
"name": ".*",
"type": "CONFIG"
},
"action": "WRITE"
},
{
"resource": {
"name": ".*",
"type": "STATE"
},
"action": "READ"
},
{
"resource": {
"name": ".*",
"type": "STATE"
},
"action": "WRITE"
},
{
"resource": {
"name": "EXTERNAL",
"type": "EXTERNAL"
},
"action": "READ"
}
]'
</code></pre></div>
<h2 dir="auto"><a name="user-content-24.0.0-upgrading-to-24.0-behavior-for-unused-segments" href="#24.0.0-upgrading-to-24.0-behavior-for-unused-segments">#</a> Behavior for unused segments</h2>
<p dir="auto">Druid automatically retains any segments marked as unused. Previously, Druid permanently deleted unused segments from metadata store and deep storage after their duration to retain passed. This behavior was reverted from <code class="notranslate">0.23.0</code>.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1280786117" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12693" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12693/hovercard" href="https://github.com/apache/druid/pull/12693">#12693</a></p>
<h2 dir="auto"><a name="user-content-24.0.0-upgrading-to-24.0-default-for-%60druid.processing.fifo%60" href="#24.0.0-upgrading-to-24.0-default-for-%60druid.processing.fifo%60">#</a> Default for <code class="notranslate">druid.processing.fifo</code></h2>
<p dir="auto">The default for <code class="notranslate">druid.processing.fifo</code> is now true. This means that tasks of equal priority are treated in a FIFO manner. For most use cases, this change can improve performance on heavily loaded clusters.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1249128095" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12571" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12571/hovercard" href="https://github.com/apache/druid/pull/12571">#12571</a></p>
<h2 dir="auto"><a name="user-content-24.0.0-upgrading-to-24.0-update-to-jdbc-statement-closure" href="#24.0.0-upgrading-to-24.0-update-to-jdbc-statement-closure">#</a> Update to JDBC statement closure</h2>
<p dir="auto">In previous releases, Druid automatically closed the JDBC Statement when the ResultSet was closed. Druid closed the ResultSet on EOF. Druid closed the statement on any exception. This behavior is, however, non-standard.<br>
In this release, Druid's JDBC driver follows the JDBC standards more closely:<br>
The ResultSet closes automatically on EOF, but does not close the Statement or PreparedStatement. Your code must close these statements, perhaps by using a try-with-resources block.<br>
The PreparedStatement can now be used multiple times with different parameters. (Previously this was not true since closing the ResultSet closed the PreparedStatement.)<br>
If any call to a Statement or PreparedStatement raises an error, the client code must still explicitly close the statement. According to the JDBC standards, statements are not closed automatically on errors. This allows you to obtain information about a failed statement before closing it.<br>
If you have code that depended on the old behavior, you may have to change your code to add the required close statement.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1284829130" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/12709" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/12709/hovercard" href="https://github.com/apache/druid/pull/12709">#12709</a></p>
<h2 dir="auto"><a name="user-content-24.0.0-upgrading-to-24.0-known-issues" href="#24.0.0-upgrading-to-24.0-known-issues">#</a> Known issues</h2>
<h2 dir="auto"><a name="user-content-24.0.0-upgrading-to-24.0-credit" href="#24.0.0-upgrading-to-24.0-credit">#</a> Credits</h2>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/2bethere/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/2bethere">@2bethere</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/317brian/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/317brian">@317brian</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/a2l007/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/a2l007">@a2l007</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/abhagraw/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/abhagraw">@abhagraw</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/abhishekagarwal87/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/abhishekagarwal87">@abhishekagarwal87</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/abhishekrb19/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/abhishekrb19">@abhishekrb19</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/adarshsanjeev/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/adarshsanjeev">@adarshsanjeev</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aggarwalakshay/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aggarwalakshay">@aggarwalakshay</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/AmatyaAvadhanula/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/AmatyaAvadhanula">@AmatyaAvadhanula</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/BartMiki/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/BartMiki">@BartMiki</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/capistrant/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/capistrant">@capistrant</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chenrui333/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chenrui333">@chenrui333</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/churromorales/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/churromorales">@churromorales</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/clintropolis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/clintropolis">@clintropolis</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cloventt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cloventt">@cloventt</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/CodingParsley/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/CodingParsley">@CodingParsley</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cryptoe/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cryptoe">@cryptoe</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dampcake/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dampcake">@dampcake</a><br>
<a class="user-mention notranslate" data-hovercard-type="organization" data-hovercard-url="/orgs/dependabot/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dependabot">@dependabot</a>[bot]<br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dherg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dherg">@dherg</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/didip/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/didip">@didip</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dongjoon-hyun/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dongjoon-hyun">@dongjoon-hyun</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ektravel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ektravel">@ektravel</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/EsoragotoSpirit/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/EsoragotoSpirit">@EsoragotoSpirit</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/exherb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/exherb">@exherb</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/FrankChen021/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/FrankChen021">@FrankChen021</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gianm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gianm">@gianm</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hellmarbecker/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hellmarbecker">@hellmarbecker</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hwball/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hwball">@hwball</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/iandr413/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/iandr413">@iandr413</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/imply-cheddar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/imply-cheddar">@imply-cheddar</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jarnoux/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jarnoux">@jarnoux</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jasonk000/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jasonk000">@jasonk000</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jihoonson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jihoonson">@jihoonson</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jon-wei/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jon-wei">@jon-wei</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kfaraz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kfaraz">@kfaraz</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/LakshSingla/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/LakshSingla">@LakshSingla</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/liujianhuanzz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/liujianhuanzz">@liujianhuanzz</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/liuxiaohui1221/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/liuxiaohui1221">@liuxiaohui1221</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lmsurpre/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lmsurpre">@lmsurpre</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/loquisgon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/loquisgon">@loquisgon</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/machine424/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/machine424">@machine424</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/maytasm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/maytasm">@maytasm</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MC-JY/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MC-JY">@MC-JY</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Mihaylov93/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Mihaylov93">@Mihaylov93</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nishantmonu51/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nishantmonu51">@nishantmonu51</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/paul-rogers/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/paul-rogers">@paul-rogers</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/petermarshallio/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/petermarshallio">@petermarshallio</a><br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pjfanning/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pjfanning">@pjfanning</a><br>
@rockc2020<br>
@rohangarg<br>
@somu-imply<br>
@suneet-s<br>
@superivaj<br>
@techdocsmith<br>
@tejaswini-imply<br>
@TSFenwick<br>
@vimil-saju<br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vogievetsky/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vogievetsky">@vogievetsky</a><br>
@vtlim<br>
@williamhyun<br>
@wiquan<br>
@writer-jill<br>
@xvrl<br>
@yuanlihan<br>
@zachjsh<br>
@zemin-piao</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Tests run: 18, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 31.559 sec <<< FAILURE! - in io.druid.indexing.overlord.RemoteTaskRunnerTest
testWorkerDisabled(io.druid.indexing.overlord.RemoteTaskRunnerTest) Time elapsed: 1.412 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<[]> but was:<[0]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at io.druid.indexing.overlord.RemoteTaskRunnerTest.testWorkerDisabled(RemoteTaskRunnerTest.java:426)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)"><pre class="notranslate"><code class="notranslate">Tests run: 18, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 31.559 sec <<< FAILURE! - in io.druid.indexing.overlord.RemoteTaskRunnerTest
testWorkerDisabled(io.druid.indexing.overlord.RemoteTaskRunnerTest) Time elapsed: 1.412 sec <<< FAILURE!
org.junit.ComparisonFailure: expected:<[]> but was:<[0]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at io.druid.indexing.overlord.RemoteTaskRunnerTest.testWorkerDisabled(RemoteTaskRunnerTest.java:426)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
</code></pre></div> | 0 |
<h1 dir="auto">Updated code example</h1>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Foo {
listener: <'a> ||: 'a
}
impl Foo {
fn new(listener: <'a> ||: 'a) -> Foo {
Foo {
listener: listener
}
}
}
fn main() {
let a = Foo::new();
}"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-v">Foo</span> <span class="pl-kos">{</span>
listener<span class="pl-kos">:</span> <<span class="pl-c1">'</span><span class="pl-ent">a</span>> ||<span class="pl-kos">:</span> <span class="pl-c1">'</span><span class="pl-ent">a</span>
<span class="pl-kos">}</span>
<span class="pl-k">impl</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> new<span class="pl-kos">(</span>listener<span class="pl-kos">:</span> <<span class="pl-c1">'</span><span class="pl-ent">a</span>> ||<span class="pl-kos">:</span> <span class="pl-c1">'</span><span class="pl-ent">a</span><span class="pl-kos">)</span> -> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-smi">listener</span><span class="pl-kos">:</span> <span class="pl-smi">listener</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-smi">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-smi">a</span> = <span class="pl-smi">Foo</span><span class="pl-kos">::</span><span class="pl-smi">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<h1 dir="auto">Original description</h1>
<p dir="auto">I added <code class="notranslate">pub listener: <'a> ||: 'a,</code> as a field on a struct and I am passing <code class="notranslate">listener: <'a> ||: 'a</code> into the constructor and setting <code class="notranslate">listener: listener</code>. My code is horribly broken at the moment, so the error might be hard to duplicate in a normal circumstance</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="src/slot.rs:16:23: 16:31 error: internal compiler error: cannot relate bound region: ReLateBound(368, BrNamed(syntax::ast::DefId{krate: 0u32, node: 370u32}, a)) <= ReLateBound(613, BrNamed(syntax::ast::DefId{krate: 0u32, node: 615u32}, a))
src/slot.rs:16 listener: listener,
^~~~~~~~
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at '~Any', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsyntax/diagnostic.rs:99
stack backtrace:
1: 0x108bcc774 - rt::backtrace::imp::write::hb8edc46a4e54f5bdyEa::v0.11.pre
2: 0x108b2e65e - rt::unwind::begin_unwind_inner::h4857e4963ab560a9Eea::v0.11.pre
3: 0x1082ae925 - rt::unwind::begin_unwind::h10981348780101087386::v0.11.pre
4: 0x1082ae8a9 - diagnostic::SpanHandler::span_bug::h7a0381da98a05456ITb::v0.11.pre
5: 0x105f673f1 - driver::session::Session::span_bug::hf3890a8c1798bcecGqh::v0.11.pre
6: 0x1062161c5 - middle::typeck::infer::region_inference::RegionVarBindings<'a>::make_subre
gion::h2161fa77405c0b5eVii::v0.11.pre
7: 0x1061f8664 - middle::typeck::infer::sub::Sub<'f>.Combine::regions::h87816d6c29e2d1e2NIk
::v0.11.pre
8: 0x1061f8969 - middle::typeck::infer::sub::Sub<'f>.Combine::contraregions::ha70e9e373bca1
82aeIk::v0.11.pre
9: 0x10622dba8 - middle::typeck::infer::combine::Combine::closure_tys::h1515845370716737786
6::v0.11.pre
10: 0x1061e11ee - middle::typeck::infer::sub::Sub<'f>.Combine::tys::h9e417bda90b44b91PQk::v0
.11.pre
11: 0x1061ed578 - middle::typeck::infer::lattice::ty..t.LatticeValue::sub::h6788a62e8e532e66
1kg::v0.11.pre
12: 0x1061ef19a - middle::typeck::infer::lattice::CombineFields<'f>.CombineFieldsLatticeMeth
ods::bnds::h11321451026438906780::v0.11.pre
13: 0x1061ee8de - middle::typeck::infer::lattice::CombineFields<'f>.CombineFieldsLatticeMeth
ods::set_var_to_merged_bounds::h18364305293880178940::v0.11.pre
14: 0x1061e021a - middle::typeck::infer::sub::Sub<'f>.Combine::tys::h9e417bda90b44b91PQk::v0
.11.pre
15: 0x10623292b - middle::typeck::infer::coercion::Coerce<'f>::subtype::ha90a34c19d50317a3Ol
::v0.11.pre
16: 0x10623127e - middle::typeck::infer::coercion::Coerce<'f>::coerce_borrowed_fn::h21eec21d
591af7e2J9l::v0.11.pre
17: 0x106231081 - middle::typeck::infer::coercion::Coerce<'f>::tys::closure.68186
18: 0x10622f4b1 - middle::typeck::infer::coercion::Coerce<'f>::unpack_actual_value::h423d3c0
be57f69fbCPl::v0.11.pre
19: 0x10622edd2 - middle::typeck::infer::coercion::Coerce<'f>::tys::hfbee61e40c4d2177VHl::v0
.11.pre
20: 0x10625630d - middle::typeck::infer::mk_coercety::closure.68856
21: 0x106255e5c - middle::typeck::infer::InferCtxt<'a>::commit::closure.68846
22: 0x1062550f9 - util::common::indent::h148640294178993037::v0.11.pre
23: 0x106255cee - middle::typeck::infer::mk_coercety::closure.68842
24: 0x1062550f9 - util::common::indent::h148640294178993037::v0.11.pre
25: 0x1061bbc1c - middle::typeck::infer::mk_coercety::h8c3f5e59b24b1d6a3Go::v0.11.pre
26: 0x10617f701 - middle::typeck::check::FnCtxt<'a>::mk_assignty::h73ec086633282126ZV8::v0.1
1.pre
27: 0x10617f588 - middle::typeck::check::demand::coerce::h728f9dff6d7fdfc7SY4::v0.11.pre
28: 0x1061c606a - middle::typeck::check::check_expr_coercable_to_type::closure.66448
29: 0x1061bcd6e - middle::typeck::check::check_expr_with_unifier::h54f2db4c9a491156Dy9::v0.1
1.pre
30: 0x1061d222b - middle::typeck::check::check_expr_with_unifier::check_struct_or_variant_fi
elds::h3be96966110b5d79OAa::v0.11.pre
31: 0x1061c5940 - middle::typeck::check::check_expr_with_unifier::h54f2db4c9a491156Dy9::v0.1
1.pre
32: 0x10619f26c - middle::typeck::check::check_block_with_expected::h03ef625794cf7320lUb::v0
.11.pre
33: 0x10619ae49 - middle::typeck::check::check_fn::h9c2aca4017bc1637Sn7::v0.11.pre
34: 0x10619a67a - middle::typeck::check::check_bare_fn::hbbbe27defcff6637Jd7::v0.11.pre
35: 0x1061a38d2 - middle::typeck::check::check_method_body::h7e31fe0e72676ae4IU7::v0.11.pre
36: 0x106192d8e - middle::typeck::check::check_item::h810810778b4049b86J7::v0.11.pre
37: 0x1061944bd - visit::walk_item::h10033669871325854080::v0.11.pre
38: 0x10619a420 - middle::typeck::check::check_item_types::h9d072e264d49e9741c7::v0.11.pre
39: 0x1062cd9df - util::common::time::h14811596011449642652::v0.11.pre
40: 0x1062cc90d - middle::typeck::check_crate::hc7ccc9d6246f2066lIu::v0.11.pre
41: 0x1066e655d - driver::driver::phase_3_run_analysis_passes::hb484e7997e276ab1TCf::v0.11.p
re
42: 0x1066ec5d2 - driver::driver::compile_input::h5786f561b203dba8G2f::v0.11.pre
43: 0x1067123b2 - run_compiler::he93bc641c5699ab0xzn::v0.11.pre
44: 0x10672622d - main_args::closure.91452
45: 0x1067245c2 - monitor::closure.91327
46: 0x10672010b - task::TaskBuilder::try::closure.91093
47: 0x105eca47c - task::spawn_opts::closure.7106
48: 0x108bc7878 - rt::task::Task::run::closure.40139
49: 0x108bd15ec - rust_try
50: 0x108bc76f7 - rt::task::Task::run::h149edfd1efd12195e57::v0.11.pre
51: 0x105eca2ff - task::spawn_opts::closure.7078
52: 0x108bcb146 - rt::thread::thread_start::he6c7e09250b70489rK8::v0.11.pre
53: 0x7fff8e7fc899 - _pthread_body
54: 0x7fff8e7fc72a - _pthread_struct_init
make: *** [compile] Error 101"><pre class="notranslate"><code class="notranslate">src/slot.rs:16:23: 16:31 error: internal compiler error: cannot relate bound region: ReLateBound(368, BrNamed(syntax::ast::DefId{krate: 0u32, node: 370u32}, a)) <= ReLateBound(613, BrNamed(syntax::ast::DefId{krate: 0u32, node: 615u32}, a))
src/slot.rs:16 listener: listener,
^~~~~~~~
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at '~Any', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsyntax/diagnostic.rs:99
stack backtrace:
1: 0x108bcc774 - rt::backtrace::imp::write::hb8edc46a4e54f5bdyEa::v0.11.pre
2: 0x108b2e65e - rt::unwind::begin_unwind_inner::h4857e4963ab560a9Eea::v0.11.pre
3: 0x1082ae925 - rt::unwind::begin_unwind::h10981348780101087386::v0.11.pre
4: 0x1082ae8a9 - diagnostic::SpanHandler::span_bug::h7a0381da98a05456ITb::v0.11.pre
5: 0x105f673f1 - driver::session::Session::span_bug::hf3890a8c1798bcecGqh::v0.11.pre
6: 0x1062161c5 - middle::typeck::infer::region_inference::RegionVarBindings<'a>::make_subre
gion::h2161fa77405c0b5eVii::v0.11.pre
7: 0x1061f8664 - middle::typeck::infer::sub::Sub<'f>.Combine::regions::h87816d6c29e2d1e2NIk
::v0.11.pre
8: 0x1061f8969 - middle::typeck::infer::sub::Sub<'f>.Combine::contraregions::ha70e9e373bca1
82aeIk::v0.11.pre
9: 0x10622dba8 - middle::typeck::infer::combine::Combine::closure_tys::h1515845370716737786
6::v0.11.pre
10: 0x1061e11ee - middle::typeck::infer::sub::Sub<'f>.Combine::tys::h9e417bda90b44b91PQk::v0
.11.pre
11: 0x1061ed578 - middle::typeck::infer::lattice::ty..t.LatticeValue::sub::h6788a62e8e532e66
1kg::v0.11.pre
12: 0x1061ef19a - middle::typeck::infer::lattice::CombineFields<'f>.CombineFieldsLatticeMeth
ods::bnds::h11321451026438906780::v0.11.pre
13: 0x1061ee8de - middle::typeck::infer::lattice::CombineFields<'f>.CombineFieldsLatticeMeth
ods::set_var_to_merged_bounds::h18364305293880178940::v0.11.pre
14: 0x1061e021a - middle::typeck::infer::sub::Sub<'f>.Combine::tys::h9e417bda90b44b91PQk::v0
.11.pre
15: 0x10623292b - middle::typeck::infer::coercion::Coerce<'f>::subtype::ha90a34c19d50317a3Ol
::v0.11.pre
16: 0x10623127e - middle::typeck::infer::coercion::Coerce<'f>::coerce_borrowed_fn::h21eec21d
591af7e2J9l::v0.11.pre
17: 0x106231081 - middle::typeck::infer::coercion::Coerce<'f>::tys::closure.68186
18: 0x10622f4b1 - middle::typeck::infer::coercion::Coerce<'f>::unpack_actual_value::h423d3c0
be57f69fbCPl::v0.11.pre
19: 0x10622edd2 - middle::typeck::infer::coercion::Coerce<'f>::tys::hfbee61e40c4d2177VHl::v0
.11.pre
20: 0x10625630d - middle::typeck::infer::mk_coercety::closure.68856
21: 0x106255e5c - middle::typeck::infer::InferCtxt<'a>::commit::closure.68846
22: 0x1062550f9 - util::common::indent::h148640294178993037::v0.11.pre
23: 0x106255cee - middle::typeck::infer::mk_coercety::closure.68842
24: 0x1062550f9 - util::common::indent::h148640294178993037::v0.11.pre
25: 0x1061bbc1c - middle::typeck::infer::mk_coercety::h8c3f5e59b24b1d6a3Go::v0.11.pre
26: 0x10617f701 - middle::typeck::check::FnCtxt<'a>::mk_assignty::h73ec086633282126ZV8::v0.1
1.pre
27: 0x10617f588 - middle::typeck::check::demand::coerce::h728f9dff6d7fdfc7SY4::v0.11.pre
28: 0x1061c606a - middle::typeck::check::check_expr_coercable_to_type::closure.66448
29: 0x1061bcd6e - middle::typeck::check::check_expr_with_unifier::h54f2db4c9a491156Dy9::v0.1
1.pre
30: 0x1061d222b - middle::typeck::check::check_expr_with_unifier::check_struct_or_variant_fi
elds::h3be96966110b5d79OAa::v0.11.pre
31: 0x1061c5940 - middle::typeck::check::check_expr_with_unifier::h54f2db4c9a491156Dy9::v0.1
1.pre
32: 0x10619f26c - middle::typeck::check::check_block_with_expected::h03ef625794cf7320lUb::v0
.11.pre
33: 0x10619ae49 - middle::typeck::check::check_fn::h9c2aca4017bc1637Sn7::v0.11.pre
34: 0x10619a67a - middle::typeck::check::check_bare_fn::hbbbe27defcff6637Jd7::v0.11.pre
35: 0x1061a38d2 - middle::typeck::check::check_method_body::h7e31fe0e72676ae4IU7::v0.11.pre
36: 0x106192d8e - middle::typeck::check::check_item::h810810778b4049b86J7::v0.11.pre
37: 0x1061944bd - visit::walk_item::h10033669871325854080::v0.11.pre
38: 0x10619a420 - middle::typeck::check::check_item_types::h9d072e264d49e9741c7::v0.11.pre
39: 0x1062cd9df - util::common::time::h14811596011449642652::v0.11.pre
40: 0x1062cc90d - middle::typeck::check_crate::hc7ccc9d6246f2066lIu::v0.11.pre
41: 0x1066e655d - driver::driver::phase_3_run_analysis_passes::hb484e7997e276ab1TCf::v0.11.p
re
42: 0x1066ec5d2 - driver::driver::compile_input::h5786f561b203dba8G2f::v0.11.pre
43: 0x1067123b2 - run_compiler::he93bc641c5699ab0xzn::v0.11.pre
44: 0x10672622d - main_args::closure.91452
45: 0x1067245c2 - monitor::closure.91327
46: 0x10672010b - task::TaskBuilder::try::closure.91093
47: 0x105eca47c - task::spawn_opts::closure.7106
48: 0x108bc7878 - rt::task::Task::run::closure.40139
49: 0x108bd15ec - rust_try
50: 0x108bc76f7 - rt::task::Task::run::h149edfd1efd12195e57::v0.11.pre
51: 0x105eca2ff - task::spawn_opts::closure.7078
52: 0x108bcb146 - rt::thread::thread_start::he6c7e09250b70489rK8::v0.11.pre
53: 0x7fff8e7fc899 - _pthread_body
54: 0x7fff8e7fc72a - _pthread_struct_init
make: *** [compile] Error 101
</code></pre></div> | <p dir="auto"><a href="http://doc.rust-lang.org/std/cmp/trait.Ord.html" rel="nofollow">Trait Ord</a> and <a href="http://doc.rust-lang.org/std/cmp/trait.PartialOrd.html" rel="nofollow">PartialOrd</a> have cryptic explanations. An example would be helpful.</p>
<p dir="auto">I thought these would be valid examples:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// [1,2,3,4,5,6] -> Ord - sortable without duplicates
// [B,C,D,a,c,e] -> Ord (used ASCII ordering)
// [1,1,1,2,3,3] -> PartialOrd - sortable with duplicates
// [A,B,B,c,c,c] -> PartialOrd"><pre class="notranslate"><code class="notranslate">// [1,2,3,4,5,6] -> Ord - sortable without duplicates
// [B,C,D,a,c,e] -> Ord (used ASCII ordering)
// [1,1,1,2,3,3] -> PartialOrd - sortable with duplicates
// [A,B,B,c,c,c] -> PartialOrd
</code></pre></div>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/steveklabnik/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/steveklabnik">@steveklabnik</a> You asked to be CCed on documentation bugs</p> | 0 |
<h3 dir="auto">Reproducing code example:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
In [118]: import numpy as np
In [119]: a = np.random.random((5,6,7))
In [120]: a[0, :, [1,2]].shape
Out[120]: (2, 6)"><pre class="notranslate"><code class="notranslate">
In [118]: import numpy as np
In [119]: a = np.random.random((5,6,7))
In [120]: a[0, :, [1,2]].shape
Out[120]: (2, 6)
</code></pre></div>
<p dir="auto">one would expect shape <code class="notranslate">(6, 2)</code>...</p>
<p dir="auto">Seems to occur only if the first index is set to a unique index and the last one to an iterable of indices</p>
<h3 dir="auto">NumPy/Python version information:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [121]: import sys, numpy; print(numpy.__version__, sys.version)
1.18.1 3.7.5 (default, Oct 25 2019, 15:51:11)
[GCC 7.3.0]"><pre class="notranslate"><code class="notranslate">In [121]: import sys, numpy; print(numpy.__version__, sys.version)
1.18.1 3.7.5 (default, Oct 25 2019, 15:51:11)
[GCC 7.3.0]
</code></pre></div> | <p dir="auto">Please see the code.</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
x = np.random.rand(4, 5, 4)
x[0, :, [1,2]].shape # output (2, 5) # my expectation is (5, 2)
x[0][:, [1,2]].shape # outout (5, 2)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">rand</span>(<span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">4</span>)
<span class="pl-s1">x</span>[<span class="pl-c1">0</span>, :, [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>]].<span class="pl-s1">shape</span> <span class="pl-c"># output (2, 5) # my expectation is (5, 2)</span>
<span class="pl-s1">x</span>[<span class="pl-c1">0</span>][:, [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>]].<span class="pl-s1">shape</span> <span class="pl-c"># outout (5, 2)</span></pre></div>
<h3 dir="auto">Numpy/Python version information:</h3>
<p dir="auto">numpy version: 1.19.1,<br>
sys.version: 3.7.0 (default, Oct 9 2018, 10:31:47) \n[GCC 7.3.0]</p> | 1 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Performance problem</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">Inventory</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">Present in any version of ansible after 2.2.2, including 2.4 rc5 and devel as of Sep 18 2017. The profiles below were captured in v2.4.0.0-0.5.rc5, but are similar to profiles in 2.3 and current devel.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.0.0
config file = /Users/tpepper/.ansible.cfg
configured module search path = [u'/Users/tpepper/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.13 (default, Apr 4 2017, 08:47:57) [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.38)]"><pre class="notranslate"><code class="notranslate">ansible 2.4.0.0
config file = /Users/tpepper/.ansible.cfg
configured module search path = [u'/Users/tpepper/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 2.7.13 (default, Apr 4 2017, 08:47:57) [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.38)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">Default</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">OS X Sierra and CentOS 7</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Ansible's ability to run simple commands (e.g. ansible * --list-hosts) becomes geometrically slower as host counts in inventory increase. This becomes a major concern in large environments. For example, a 5,000 test host inventory takes ~57s to parse. At 10,000 it takes over 6 minutes. Ansible 2.2 and earlier performed the same feat @ 26,000 hosts in less than 4 seconds.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">First, create a large simple inventory, e.g.:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rm foo; for i in {1..9000}; do echo "host-$i.foo.com" >> foo; done"><pre class="notranslate"><code class="notranslate">rm foo; for i in {1..9000}; do echo "host-$i.foo.com" >> foo; done
</code></pre></div>
<p dir="auto">Then, profile via e.g.:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python -m cProfile -s cumtime /usr/local/bin/ansible -i foo \* --list-hosts"><pre class="notranslate"><code class="notranslate">python -m cProfile -s cumtime /usr/local/bin/ansible -i foo \* --list-hosts
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">In 2.2 and earlier, we'd regularly process static and dynamic host inventories with 26,000 hosts and ~338 groupings (and groups of groups) in about 5s.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">At 1,000 hosts, things are reasonable @ 3s:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ncalls tottime percall cumtime percall filename:lineno(function)
1 0.002 0.002 3.084 3.084 ansible:21(<module>)
1 0.002 0.002 2.080 2.080 adhoc.py:93(run)
1 0.000 0.000 2.034 2.034 __init__.py:767(_play_prereqs)
1 0.000 0.000 2.034 2.034 manager.py:120(__init__)
1 0.000 0.000 2.032 2.032 manager.py:193(parse_sources)
1 0.000 0.000 1.652 1.652 manager.py:217(parse_source)
1 0.000 0.000 1.652 1.652 ini.py:96(parse)
1 0.004 0.004 1.650 1.650 ini.py:136(_parse)
1000 0.002 0.000 1.562 0.002 __init__.py:82(populate_host_vars)
1000 0.108 0.000 1.560 0.002 data.py:176(add_host)
1005/1004 0.006 0.000 0.820 0.001 group.py:140(get_hosts)
1002/1001 0.459 0.000 0.814 0.001 group.py:146(_get_hosts)
1498500 0.638 0.000 0.740 0.000 host.py:39(__eq__)
2000 0.207 0.000 0.720 0.000 group.py:114(add_host)
1 0.001 0.001 0.669 0.669 constants.py:6(<module>)
1 0.000 0.000 0.630 0.630 manager.py:162(__init__)
1 0.000 0.000 0.620 0.620 __init__.py:87(safe_load)
1 0.004 0.004 0.620 0.620 __init__.py:64(load)
1 0.000 0.000 0.616 0.616 constructor.py:35(get_single_data)
1 0.000 0.000 0.589 0.589 composer.py:29(get_single_node)
1 0.000 0.000 0.589 0.589 composer.py:50(compose_document)
3924/1 0.011 0.000 0.589 0.589 composer.py:63(compose_node)
546/1 0.006 0.000 0.589 0.589 composer.py:117(compose_mapping_node)
12449 0.015 0.000 0.546 0.000 parser.py:94(check_event)
29732 0.036 0.000 0.447 0.000 scanner.py:113(check_token)
1 0.004 0.004 0.378 0.378 data.py:105(reconcile_inventory)
1001 0.003 0.000 0.373 0.000 data.py:225(add_child)
6242 0.021 0.000 0.334 0.000 scanner.py:153(fetch_more_tokens)
1009000 0.263 0.000 0.320 0.000 host.py:47(__hash__)
380 0.002 0.000 0.266 0.001 composer.py:99(compose_sequence_node)"><pre class="notranslate"><code class="notranslate"> ncalls tottime percall cumtime percall filename:lineno(function)
1 0.002 0.002 3.084 3.084 ansible:21(<module>)
1 0.002 0.002 2.080 2.080 adhoc.py:93(run)
1 0.000 0.000 2.034 2.034 __init__.py:767(_play_prereqs)
1 0.000 0.000 2.034 2.034 manager.py:120(__init__)
1 0.000 0.000 2.032 2.032 manager.py:193(parse_sources)
1 0.000 0.000 1.652 1.652 manager.py:217(parse_source)
1 0.000 0.000 1.652 1.652 ini.py:96(parse)
1 0.004 0.004 1.650 1.650 ini.py:136(_parse)
1000 0.002 0.000 1.562 0.002 __init__.py:82(populate_host_vars)
1000 0.108 0.000 1.560 0.002 data.py:176(add_host)
1005/1004 0.006 0.000 0.820 0.001 group.py:140(get_hosts)
1002/1001 0.459 0.000 0.814 0.001 group.py:146(_get_hosts)
1498500 0.638 0.000 0.740 0.000 host.py:39(__eq__)
2000 0.207 0.000 0.720 0.000 group.py:114(add_host)
1 0.001 0.001 0.669 0.669 constants.py:6(<module>)
1 0.000 0.000 0.630 0.630 manager.py:162(__init__)
1 0.000 0.000 0.620 0.620 __init__.py:87(safe_load)
1 0.004 0.004 0.620 0.620 __init__.py:64(load)
1 0.000 0.000 0.616 0.616 constructor.py:35(get_single_data)
1 0.000 0.000 0.589 0.589 composer.py:29(get_single_node)
1 0.000 0.000 0.589 0.589 composer.py:50(compose_document)
3924/1 0.011 0.000 0.589 0.589 composer.py:63(compose_node)
546/1 0.006 0.000 0.589 0.589 composer.py:117(compose_mapping_node)
12449 0.015 0.000 0.546 0.000 parser.py:94(check_event)
29732 0.036 0.000 0.447 0.000 scanner.py:113(check_token)
1 0.004 0.004 0.378 0.378 data.py:105(reconcile_inventory)
1001 0.003 0.000 0.373 0.000 data.py:225(add_child)
6242 0.021 0.000 0.334 0.000 scanner.py:153(fetch_more_tokens)
1009000 0.263 0.000 0.320 0.000 host.py:47(__hash__)
380 0.002 0.000 0.266 0.001 composer.py:99(compose_sequence_node)
</code></pre></div>
<p dir="auto">At 5,000 hosts, things are slowing down substantially to about a minute:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ncalls tottime percall cumtime percall filename:lineno(function)
1 0.002 0.002 57.737 57.737 ansible:21(<module>)
1 0.009 0.009 56.702 56.702 adhoc.py:93(run)
1 0.000 0.000 56.461 56.461 __init__.py:767(_play_prereqs)
1 0.000 0.000 56.461 56.461 manager.py:120(__init__)
1 0.000 0.000 56.460 56.460 manager.py:193(parse_sources)
1 0.000 0.000 45.775 45.775 manager.py:217(parse_source)
1 0.000 0.000 45.775 45.775 ini.py:96(parse)
1 0.046 0.046 45.772 45.772 ini.py:136(_parse)
5000 0.014 0.000 45.119 0.009 __init__.py:82(populate_host_vars)
5000 2.853 0.001 45.105 0.009 data.py:176(add_host)
5005/5004 0.189 0.000 23.936 0.005 group.py:140(get_hosts)
5002/5001 12.883 0.003 23.747 0.005 group.py:146(_get_hosts)
37492500 20.004 0.000 22.682 0.000 host.py:39(__eq__)
10000 5.722 0.001 21.009 0.002 group.py:114(add_host)
1 0.035 0.035 10.683 10.683 data.py:105(reconcile_inventory)
5001 0.029 0.000 10.643 0.002 data.py:225(add_child)
25045000 8.344 0.000 9.901 0.000 host.py:47(__hash__)
37635991/37635990 2.723 0.000 2.723 0.000 {isinstance}
25046868 1.557 0.000 1.557 0.000 {hash}
12591094 0.988 0.000 0.988 0.000 {method 'append' of 'list' objects}
1 0.001 0.001 0.698 0.698 constants.py:6(<module>)"><pre class="notranslate"><code class="notranslate"> ncalls tottime percall cumtime percall filename:lineno(function)
1 0.002 0.002 57.737 57.737 ansible:21(<module>)
1 0.009 0.009 56.702 56.702 adhoc.py:93(run)
1 0.000 0.000 56.461 56.461 __init__.py:767(_play_prereqs)
1 0.000 0.000 56.461 56.461 manager.py:120(__init__)
1 0.000 0.000 56.460 56.460 manager.py:193(parse_sources)
1 0.000 0.000 45.775 45.775 manager.py:217(parse_source)
1 0.000 0.000 45.775 45.775 ini.py:96(parse)
1 0.046 0.046 45.772 45.772 ini.py:136(_parse)
5000 0.014 0.000 45.119 0.009 __init__.py:82(populate_host_vars)
5000 2.853 0.001 45.105 0.009 data.py:176(add_host)
5005/5004 0.189 0.000 23.936 0.005 group.py:140(get_hosts)
5002/5001 12.883 0.003 23.747 0.005 group.py:146(_get_hosts)
37492500 20.004 0.000 22.682 0.000 host.py:39(__eq__)
10000 5.722 0.001 21.009 0.002 group.py:114(add_host)
1 0.035 0.035 10.683 10.683 data.py:105(reconcile_inventory)
5001 0.029 0.000 10.643 0.002 data.py:225(add_child)
25045000 8.344 0.000 9.901 0.000 host.py:47(__hash__)
37635991/37635990 2.723 0.000 2.723 0.000 {isinstance}
25046868 1.557 0.000 1.557 0.000 {hash}
12591094 0.988 0.000 0.988 0.000 {method 'append' of 'list' objects}
1 0.001 0.001 0.698 0.698 constants.py:6(<module>)
</code></pre></div>
<p dir="auto">At 10,000 hosts, we're approaching 4 minutes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ncalls tottime percall cumtime percall filename:lineno(function)
1 0.002 0.002 220.624 220.624 ansible:21(<module>)
1 0.017 0.017 219.489 219.489 adhoc.py:93(run)
1 0.000 0.000 219.024 219.024 __init__.py:767(_play_prereqs)
1 0.000 0.000 219.024 219.024 manager.py:120(__init__)
1 0.000 0.000 219.023 219.023 manager.py:193(parse_sources)
1 0.000 0.000 178.143 178.143 manager.py:217(parse_source)
1 0.000 0.000 178.142 178.142 ini.py:96(parse)
1 0.098 0.098 178.139 178.139 ini.py:136(_parse)
10000 0.031 0.000 176.771 0.018 __init__.py:82(populate_host_vars)
10000 10.766 0.001 176.740 0.018 data.py:176(add_host)
10005/10004 0.769 0.000 94.028 0.009 group.py:140(get_hosts)
10002/10001 50.390 0.005 93.259 0.009 group.py:146(_get_hosts)
149985000 79.268 0.000 89.636 0.000 host.py:39(__eq__)
20000 21.927 0.001 81.900 0.004 group.py:114(add_host)
1 0.055 0.055 40.878 40.878 data.py:105(reconcile_inventory)
10001 0.046 0.000 40.815 0.004 data.py:225(add_child)
100090000 33.460 0.000 39.429 0.000 host.py:47(__hash__)
150193491/150193490 10.438 0.000 10.438 0.000 {isinstance}
100091868 5.969 0.000 5.969 0.000 {hash}
50128594 3.482 0.000 3.482 0.000 {method 'append' of 'list' objects}
10000 0.036 0.000 1.222 0.000 ini.py:276(_parse_host_definition)
10000 0.052 0.000 0.976 0.000 shlex.py:32(shlex_split)
1 0.001 0.001 0.762 0.762 constants.py:6(<module>)"><pre class="notranslate"><code class="notranslate"> ncalls tottime percall cumtime percall filename:lineno(function)
1 0.002 0.002 220.624 220.624 ansible:21(<module>)
1 0.017 0.017 219.489 219.489 adhoc.py:93(run)
1 0.000 0.000 219.024 219.024 __init__.py:767(_play_prereqs)
1 0.000 0.000 219.024 219.024 manager.py:120(__init__)
1 0.000 0.000 219.023 219.023 manager.py:193(parse_sources)
1 0.000 0.000 178.143 178.143 manager.py:217(parse_source)
1 0.000 0.000 178.142 178.142 ini.py:96(parse)
1 0.098 0.098 178.139 178.139 ini.py:136(_parse)
10000 0.031 0.000 176.771 0.018 __init__.py:82(populate_host_vars)
10000 10.766 0.001 176.740 0.018 data.py:176(add_host)
10005/10004 0.769 0.000 94.028 0.009 group.py:140(get_hosts)
10002/10001 50.390 0.005 93.259 0.009 group.py:146(_get_hosts)
149985000 79.268 0.000 89.636 0.000 host.py:39(__eq__)
20000 21.927 0.001 81.900 0.004 group.py:114(add_host)
1 0.055 0.055 40.878 40.878 data.py:105(reconcile_inventory)
10001 0.046 0.000 40.815 0.004 data.py:225(add_child)
100090000 33.460 0.000 39.429 0.000 host.py:47(__hash__)
150193491/150193490 10.438 0.000 10.438 0.000 {isinstance}
100091868 5.969 0.000 5.969 0.000 {hash}
50128594 3.482 0.000 3.482 0.000 {method 'append' of 'list' objects}
10000 0.036 0.000 1.222 0.000 ini.py:276(_parse_host_definition)
10000 0.052 0.000 0.976 0.000 shlex.py:32(shlex_split)
1 0.001 0.001 0.762 0.762 constants.py:6(<module>)
</code></pre></div>
<p dir="auto">At 25,000 hosts, we're almost to a half hour:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ncalls tottime percall cumtime percall filename:lineno(function)
1 0.004 0.004 1725.068 1725.068 ansible:21(<module>)
1 0.067 0.067 1724.017 1724.017 adhoc.py:93(run)
1 0.000 0.000 1722.428 1722.428 __init__.py:767(_play_prereqs)
1 0.000 0.000 1722.428 1722.428 manager.py:120(__init__)
1 0.001 0.001 1722.427 1722.427 manager.py:193(parse_sources)
1 0.001 0.001 1215.534 1215.534 manager.py:217(parse_source)
1 0.000 0.000 1215.533 1215.533 ini.py:96(parse)
1 0.296 0.296 1215.527 1215.527 ini.py:136(_parse)
25000 0.089 0.000 1211.709 0.048 __init__.py:82(populate_host_vars)
25000 71.746 0.003 1211.620 0.048 data.py:176(add_host)
937462500 724.016 0.000 799.531 0.000 host.py:39(__eq__)
50000 208.628 0.004 794.945 0.016 group.py:114(add_host)
25005/25004 5.568 0.000 632.880 0.025 group.py:140(get_hosts)
25002/25001 335.514 0.013 627.313 0.025 group.py:146(_get_hosts)
1 0.425 0.425 506.889 506.889 data.py:105(reconcile_inventory)
25001 0.400 0.000 506.415 0.020 data.py:225(add_child)
625225000 229.500 0.000 268.754 0.000 host.py:47(__hash__)
937865991/937865990 75.662 0.000 75.662 0.000 {isinstance}
625226868 39.254 0.000 39.254 0.000 {hash}
312741094 23.178 0.000 23.178 0.000 {method 'append' of 'list' objects}
25000 0.099 0.000 3.366 0.000 ini.py:276(_parse_host_definition)
25000 0.151 0.000 2.709 0.000 shlex.py:32(shlex_split)
75001/50001 2.056 0.000 2.056 0.000 group.py:134(clear_hosts_cache)
25000 0.276 0.000 2.042 0.000 shlex.py:274(split)
50000 0.106 0.000 1.431 0.000 shlex.py:268(next)
25000 0.206 0.000 1.419 0.000 path.py:76(basedir)
50000 0.079 0.000 1.325 0.000 shlex.py:88(get_token)"><pre class="notranslate"><code class="notranslate"> ncalls tottime percall cumtime percall filename:lineno(function)
1 0.004 0.004 1725.068 1725.068 ansible:21(<module>)
1 0.067 0.067 1724.017 1724.017 adhoc.py:93(run)
1 0.000 0.000 1722.428 1722.428 __init__.py:767(_play_prereqs)
1 0.000 0.000 1722.428 1722.428 manager.py:120(__init__)
1 0.001 0.001 1722.427 1722.427 manager.py:193(parse_sources)
1 0.001 0.001 1215.534 1215.534 manager.py:217(parse_source)
1 0.000 0.000 1215.533 1215.533 ini.py:96(parse)
1 0.296 0.296 1215.527 1215.527 ini.py:136(_parse)
25000 0.089 0.000 1211.709 0.048 __init__.py:82(populate_host_vars)
25000 71.746 0.003 1211.620 0.048 data.py:176(add_host)
937462500 724.016 0.000 799.531 0.000 host.py:39(__eq__)
50000 208.628 0.004 794.945 0.016 group.py:114(add_host)
25005/25004 5.568 0.000 632.880 0.025 group.py:140(get_hosts)
25002/25001 335.514 0.013 627.313 0.025 group.py:146(_get_hosts)
1 0.425 0.425 506.889 506.889 data.py:105(reconcile_inventory)
25001 0.400 0.000 506.415 0.020 data.py:225(add_child)
625225000 229.500 0.000 268.754 0.000 host.py:47(__hash__)
937865991/937865990 75.662 0.000 75.662 0.000 {isinstance}
625226868 39.254 0.000 39.254 0.000 {hash}
312741094 23.178 0.000 23.178 0.000 {method 'append' of 'list' objects}
25000 0.099 0.000 3.366 0.000 ini.py:276(_parse_host_definition)
25000 0.151 0.000 2.709 0.000 shlex.py:32(shlex_split)
75001/50001 2.056 0.000 2.056 0.000 group.py:134(clear_hosts_cache)
25000 0.276 0.000 2.042 0.000 shlex.py:274(split)
50000 0.106 0.000 1.431 0.000 shlex.py:268(next)
25000 0.206 0.000 1.419 0.000 path.py:76(basedir)
50000 0.079 0.000 1.325 0.000 shlex.py:88(get_token)
</code></pre></div>
<p dir="auto">With ANSIBLE_DEBUG on, we can see how long it's taking to process each host, which is a clue that we've got a recursion concern each time we add another host.</p>
<p dir="auto">Initially, about 1ms per:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 75383 1505780568.42386: Added host host-122.foo.com to inventory
75383 1505780568.42414: Added host host-122.foo.com to group ungrouped
75383 1505780568.42429: set inventory_file for host-123.foo.com
75383 1505780568.42440: set inventory_dir for host-123.foo.com
75383 1505780568.42447: Added host host-123.foo.com to inventory
75383 1505780568.42492: Added host host-123.foo.com to group ungrouped
75383 1505780568.42511: set inventory_file for host-124.foo.com
75383 1505780568.42522: set inventory_dir for host-124.foo.com
75383 1505780568.42530: Added host host-124.foo.com to inventory"><pre class="notranslate"><code class="notranslate"> 75383 1505780568.42386: Added host host-122.foo.com to inventory
75383 1505780568.42414: Added host host-122.foo.com to group ungrouped
75383 1505780568.42429: set inventory_file for host-123.foo.com
75383 1505780568.42440: set inventory_dir for host-123.foo.com
75383 1505780568.42447: Added host host-123.foo.com to inventory
75383 1505780568.42492: Added host host-123.foo.com to group ungrouped
75383 1505780568.42511: set inventory_file for host-124.foo.com
75383 1505780568.42522: set inventory_dir for host-124.foo.com
75383 1505780568.42530: Added host host-124.foo.com to inventory
</code></pre></div>
<p dir="auto">Around 20k, about 64ms per:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 75383 1505781298.73271: Added host host-20315.foo.com to inventory
75383 1505781298.79559: Added host host-20315.foo.com to group ungrouped
75383 1505781298.79593: set inventory_file for host-20316.foo.com
75383 1505781298.79606: set inventory_dir for host-20316.foo.com
75383 1505781298.79618: Added host host-20316.foo.com to inventory
75383 1505781298.85869: Added host host-20316.foo.com to group ungrouped
75383 1505781298.85900: set inventory_file for host-20317.foo.com
75383 1505781298.85913: set inventory_dir for host-20317.foo.com
75383 1505781298.85919: Added host host-20317.foo.com to inventory"><pre class="notranslate"><code class="notranslate"> 75383 1505781298.73271: Added host host-20315.foo.com to inventory
75383 1505781298.79559: Added host host-20315.foo.com to group ungrouped
75383 1505781298.79593: set inventory_file for host-20316.foo.com
75383 1505781298.79606: set inventory_dir for host-20316.foo.com
75383 1505781298.79618: Added host host-20316.foo.com to inventory
75383 1505781298.85869: Added host host-20316.foo.com to group ungrouped
75383 1505781298.85900: set inventory_file for host-20317.foo.com
75383 1505781298.85913: set inventory_dir for host-20317.foo.com
75383 1505781298.85919: Added host host-20317.foo.com to inventory
</code></pre></div> | <p dir="auto">with ansible 2.0.0-beta2 I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# ansible-pull --url myurl --key-file key
Usage: ansible-pull <host-pattern> [options]
....
ERROR! Missing target hosts"><pre class="notranslate"><code class="notranslate"># ansible-pull --url myurl --key-file key
Usage: ansible-pull <host-pattern> [options]
....
ERROR! Missing target hosts
</code></pre></div>
<p dir="auto">Man page still indicates that it should default to local.yml. Seems something is messed up here.</p> | 0 |
<p dir="auto">When trying to select multiple lines that all have a particular string with cmd+D and move them up or down within the document, Atom will select the lines properly, but when trying to move them it de-selects the additional lines and only moves the originally selected line. If you select multiple lines with the mouse or with Cmd+L it works just fine, and It still deletes multiple lines properly when selected with cmd+D - it's just moving lines that fails. I've taken a screen capture of the bug to illustrate what happens, which is viewable here: <a href="https://slack-files.com/T024TD89T-F075EUW8K-1e3ac80187" rel="nofollow">https://slack-files.com/T024TD89T-F075EUW8K-1e3ac80187</a></p> | <p dir="auto">After making multiple selections, "Move Line Up" (<kbd>Ctrl</kbd> <kbd>Cmd</kbd> <kbd>Up</kbd>) and "Move Line Down" (<kbd>Ctrl</kbd> <kbd>Cmd</kbd> <kbd>Down</kbd>) works only on the last selected line, instead it should move all the lines.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/50681/3138639/e528d254-e8a2-11e3-9608-e67da60182cf.gif"><img src="https://cloud.githubusercontent.com/assets/50681/3138639/e528d254-e8a2-11e3-9608-e67da60182cf.gif" alt="atom-multiple-selection-move-issue" data-animated-image="" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">Also add bloom cache size to nodes stats <em>rest</em> api.</p> | 1 |
|
<h2 dir="auto">Environment info</h2>
<ul dir="auto">
<li><code class="notranslate">transformers</code> version:</li>
<li>Platform:</li>
<li>Python version:</li>
<li>PyTorch version (GPU?):</li>
<li>Tensorflow version (GPU?):</li>
<li>Using GPU in script?:</li>
<li>Using distributed or parallel set-up in script?:</li>
</ul>
<h3 dir="auto">Who can help</h3>
<h2 dir="auto">Information</h2>
<p dir="auto">Model I am using (Bert, XLNet ...):</p>
<p dir="auto">The problem arises when using:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> the official example scripts: (give details below)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> my own modified scripts: (give details below)</li>
</ul>
<p dir="auto">The tasks I am working on is:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> an official GLUE/SQUaD task: (give the name)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> my own task or dataset: (give details below)</li>
</ul>
<h2 dir="auto">To reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li></li>
<li></li>
<li></li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">I want to down model from huggingface.cn, but I can't find the models to down.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/49902228/98777922-8bf23780-242c-11eb-90b9-02d86cefac34.png"><img src="https://user-images.githubusercontent.com/49902228/98777922-8bf23780-242c-11eb-90b9-02d86cefac34.png" alt="down" style="max-width: 100%;"></a><br>
But I found the model had been download many times in noverber 9. Something happened I didn't know about? And what should I do to get models that I need?<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/49902228/98778321-23578a80-242d-11eb-9503-c46f3cde25f3.png"><img src="https://user-images.githubusercontent.com/49902228/98778321-23578a80-242d-11eb-9503-c46f3cde25f3.png" alt="have_down" style="max-width: 100%;"></a></p> | <h3 dir="auto">Feature request</h3>
<p dir="auto">Adding a filter of some sorts in the generate function to prevent x number of words from outside of the input from appearing in a generated text.</p>
<p dir="auto">This could work in a number of ways. It could be a filter on the number of out of source words appearing in the generated text (e.g 2 would mean that a maximum of 2 words could be present in the generated text but not in the source) or it could be some sort of damping variable (0 to 1) that's applied to the probabilities of each generated word therefore reducing the likelihood that out of source words would appear in the generated text. If the probability was set to 0 then the generation task would be purely extractive and have no risk of hallucinations.</p>
<h3 dir="auto">Motivation</h3>
<p dir="auto">To control the risk of hallucinations in the generated text.</p>
<h3 dir="auto">Your contribution</h3>
<p dir="auto">Happy to work on a PR for this if I just get a bit of guidance on the best place to start.</p> | 0 |
<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 a description of the new feature</h2>
<p dir="auto">Basically when you want a virtual desktop you click WIN+CTRL+D and you can keep creating it. Now when you hit CTRL+3 it'll go to Virtual Desktop 3.</p>
<p dir="auto"><em>What is the expected behavior of the proposed feature? What is the scenario this would be used?</em><br>
Currently you have option to CTRL+WIN+Arrow keys to go left or right between the Virtual Desktop but you can't jump to say from Desktop 5 to Desktop 2. You can also use WIN+TAB and use the mouse to click the desired Desktop or Click the TASK View to view Virtual Desktops and then click. Too long of a process, where as with pressing CTRL+2 you should be able to jump from Desktop 5 or from any other, of course if you are already on Desktop 2, no action.</p>
<p dir="auto">I found something but it's not stable or it works sometimes and doesn't once I restart the PC, I've even tried to add the program as service but no success. Will include the file that explains the feature and the program AutoHotKeys creates but not stable, The file type was AHK but saved it as TXT.</p>
<p dir="auto">I enjoy the Power Toy very much and love the feature FancyZone, as it helps with multiple windows and adding the shortcut for switching between multiple desktop would be icing on the cake. This could aid others in multi tasking and keeping all organized and focused since multi tasks are spread over multi desktops.</p>
<p dir="auto">Thanks,<br>
Kam<br>
<a href="https://github.com/microsoft/PowerToys/files/5008687/swithcdestp.txt">swithcdestp.txt</a><br>
.</p>
<hr>
<p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p> | <p dir="auto">Desktops are already numbered, would be useful to have some sort of indicator of the current desktop number in the taskbar and to add a shortcut to jump between desktops, something like WinKey + Ctrl + 1..9 to go to desktop 1... all the way to 9</p> | 1 |
<p dir="auto">I tried to search before but I didn't find this issue. Sorry if it's a dup</p>
<p dir="auto">Steps to reproduce:</p>
<ol dir="auto">
<li><a href="http://getbootstrap.com/components/#navbar" rel="nofollow">http://getbootstrap.com/components/#navbar</a></li>
<li>Expand the default navbar</li>
<li>Scroll the navbar down to the latest dropdown element</li>
<li>Expand the dropdown</li>
<li>Try to scroll navbar to select "Something else there"</li>
</ol>
<p dir="auto">The navbar will not scroll, the whole page will</p>
<p dir="auto">I'm using chrome 29 beta and opera 16 beta. Firefox mobile is not affected</p> | <p dir="auto">When I changed from 3.0.0.rc1 to 3.0.0.rc2, the links in my navbar in a dropdown stopped working. In desktop it works ok.</p>
<p dir="auto">I am using dolphin browser HD Version 7.2.2 on a LG Optimus one P500.</p>
<p dir="auto">This is the whole navbar:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div class="navbar navbar-fixed-top">
<div class="container">
<a class="navbar-brand" href="/">Título</a>
<ul class="nav navbar-nav pull-right">
<li><a href="#"><i class="icon-question-sign"></i> Ayuda</a></li>
<li class="dropdown">
<a id="menu-usuario" href="/usuarios/520aef8c4f1e6a6816000002" class="dropdown-toggle" data-toggle="dropdown">
Pepito
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="/usuarios/520aef8c4f1e6a6816000002">Ver mi perfil</a></li>
<li><a href="/usuarios/520aef8c4f1e6a6816000002/edit">Editar mi perfil</a></li>
<li><a href="/usuarios/520aef8c4f1e6a6816000002/modificar_password">Modificar mi contraseña</a></li>
<li class="divider"></li>
<li><a href="/usuarios">Administrar usuarios</a></li>
<li class="divider"></li>
<li><a href="/sesiones?_method=DELETE">Cerrar sesión</a></li>
</ul>
</li>
</ul>
</div>
</div>"><pre class="notranslate"><code class="notranslate"><div class="navbar navbar-fixed-top">
<div class="container">
<a class="navbar-brand" href="/">Título</a>
<ul class="nav navbar-nav pull-right">
<li><a href="#"><i class="icon-question-sign"></i> Ayuda</a></li>
<li class="dropdown">
<a id="menu-usuario" href="/usuarios/520aef8c4f1e6a6816000002" class="dropdown-toggle" data-toggle="dropdown">
Pepito
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="/usuarios/520aef8c4f1e6a6816000002">Ver mi perfil</a></li>
<li><a href="/usuarios/520aef8c4f1e6a6816000002/edit">Editar mi perfil</a></li>
<li><a href="/usuarios/520aef8c4f1e6a6816000002/modificar_password">Modificar mi contraseña</a></li>
<li class="divider"></li>
<li><a href="/usuarios">Administrar usuarios</a></li>
<li class="divider"></li>
<li><a href="/sesiones?_method=DELETE">Cerrar sesión</a></li>
</ul>
</li>
</ul>
</div>
</div>
</code></pre></div> | 1 |
<p dir="auto">xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="195199816" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/14873" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/14873/hovercard" href="https://github.com/pandas-dev/pandas/issues/14873">#14873</a> (boolean casts)<br>
xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="194730027" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/14849" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/14849/hovercard" href="https://github.com/pandas-dev/pandas/issues/14849">#14849</a> (datetime)</p>
<h4 dir="auto">A small, complete example of the issue</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
def predictions(tool):
out = pd.Series(index=['p1', 'p2', 'useTime'], dtype=object)
if 'step1' in list(tool.State):
out['p1'] = str(tool[tool.State == 'step1'].Machine.values[0])
if 'step2' in list(tool.State):
out['p2'] = str(tool[tool.State == 'step2'].Machine.values[0])
out['useTime'] = str(tool[tool.State == 'step2'].oTime.values[0])
return out
df1 = pd.DataFrame({'Key': ['B', 'B', 'A', 'A'],
'State': ['step1', 'step2', 'step1', 'step2'],
'oTime': ['', '2016-09-19 05:24:33', '', '2016-09-19 23:59:04'],
'Machine': ['23', '36L', '36R', '36R']})
df2 = df1.copy()
df2.oTime = pd.to_datetime(df2.oTime)
pred1 = df1.groupby('Key').apply(predictions)
pred2 = df2.groupby('Key').apply(predictions)
print(pred1)
print(pred2)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-k">def</span> <span class="pl-en">predictions</span>(<span class="pl-s1">tool</span>):
<span class="pl-s1">out</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-s">'p1'</span>, <span class="pl-s">'p2'</span>, <span class="pl-s">'useTime'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">object</span>)
<span class="pl-k">if</span> <span class="pl-s">'step1'</span> <span class="pl-c1">in</span> <span class="pl-en">list</span>(<span class="pl-s1">tool</span>.<span class="pl-v">State</span>):
<span class="pl-s1">out</span>[<span class="pl-s">'p1'</span>] <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">tool</span>[<span class="pl-s1">tool</span>.<span class="pl-v">State</span> <span class="pl-c1">==</span> <span class="pl-s">'step1'</span>].<span class="pl-v">Machine</span>.<span class="pl-s1">values</span>[<span class="pl-c1">0</span>])
<span class="pl-k">if</span> <span class="pl-s">'step2'</span> <span class="pl-c1">in</span> <span class="pl-en">list</span>(<span class="pl-s1">tool</span>.<span class="pl-v">State</span>):
<span class="pl-s1">out</span>[<span class="pl-s">'p2'</span>] <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">tool</span>[<span class="pl-s1">tool</span>.<span class="pl-v">State</span> <span class="pl-c1">==</span> <span class="pl-s">'step2'</span>].<span class="pl-v">Machine</span>.<span class="pl-s1">values</span>[<span class="pl-c1">0</span>])
<span class="pl-s1">out</span>[<span class="pl-s">'useTime'</span>] <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">tool</span>[<span class="pl-s1">tool</span>.<span class="pl-v">State</span> <span class="pl-c1">==</span> <span class="pl-s">'step2'</span>].<span class="pl-s1">oTime</span>.<span class="pl-s1">values</span>[<span class="pl-c1">0</span>])
<span class="pl-k">return</span> <span class="pl-s1">out</span>
<span class="pl-s1">df1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'Key'</span>: [<span class="pl-s">'B'</span>, <span class="pl-s">'B'</span>, <span class="pl-s">'A'</span>, <span class="pl-s">'A'</span>],
<span class="pl-s">'State'</span>: [<span class="pl-s">'step1'</span>, <span class="pl-s">'step2'</span>, <span class="pl-s">'step1'</span>, <span class="pl-s">'step2'</span>],
<span class="pl-s">'oTime'</span>: [<span class="pl-s">''</span>, <span class="pl-s">'2016-09-19 05:24:33'</span>, <span class="pl-s">''</span>, <span class="pl-s">'2016-09-19 23:59:04'</span>],
<span class="pl-s">'Machine'</span>: [<span class="pl-s">'23'</span>, <span class="pl-s">'36L'</span>, <span class="pl-s">'36R'</span>, <span class="pl-s">'36R'</span>]})
<span class="pl-s1">df2</span> <span class="pl-c1">=</span> <span class="pl-s1">df1</span>.<span class="pl-en">copy</span>()
<span class="pl-s1">df2</span>.<span class="pl-s1">oTime</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">to_datetime</span>(<span class="pl-s1">df2</span>.<span class="pl-s1">oTime</span>)
<span class="pl-s1">pred1</span> <span class="pl-c1">=</span> <span class="pl-s1">df1</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'Key'</span>).<span class="pl-en">apply</span>(<span class="pl-s1">predictions</span>)
<span class="pl-s1">pred2</span> <span class="pl-c1">=</span> <span class="pl-s1">df2</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'Key'</span>).<span class="pl-en">apply</span>(<span class="pl-s1">predictions</span>)
<span class="pl-en">print</span>(<span class="pl-s1">pred1</span>)
<span class="pl-en">print</span>(<span class="pl-s1">pred2</span>)</pre></div>
<h4 dir="auto">Actual Output:</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" p1 p2 useTime
Key
A 36R 36R 2016-09-19 23:59:04
B 23 36L 2016-09-19 05:24:33
p1 p2 useTime
Key
A NaN 36R 2016-09-19T23:59:04.000000000
B 23.0 36L 2016-09-19T05:24:33.000000000"><pre class="notranslate"><code class="notranslate"> p1 p2 useTime
Key
A 36R 36R 2016-09-19 23:59:04
B 23 36L 2016-09-19 05:24:33
p1 p2 useTime
Key
A NaN 36R 2016-09-19T23:59:04.000000000
B 23.0 36L 2016-09-19T05:24:33.000000000
</code></pre></div>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">pred1 and pred2 should have the same values in column p1.<br>
pred1 is correct whereas pred2 is changing type to float64.</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
## INSTALLED VERSIONS
<p dir="auto">commit: None<br>
python: 3.5.2.final.0<br>
python-bits: 64<br>
OS: Darwin<br>
OS-release: 14.5.0<br>
machine: x86_64<br>
processor: i386<br>
byteorder: little<br>
LC_ALL: en_US.UTF-8<br>
LANG: en_US.UTF-8<br>
LOCALE: en_US.UTF-8</p>
<p dir="auto">pandas: 0.19.0<br>
nose: None<br>
pip: 8.1.2<br>
setuptools: 27.2.0<br>
Cython: None<br>
numpy: 1.11.2<br>
scipy: 0.18.1<br>
statsmodels: None<br>
xarray: None<br>
IPython: 5.1.0<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.5.3<br>
pytz: 2016.7<br>
blosc: None<br>
bottleneck: None<br>
tables: 3.2.3.1<br>
numexpr: 2.6.1<br>
matplotlib: 1.5.3<br>
openpyxl: None<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: None<br>
html5lib: None<br>
httplib2: None<br>
apiclient: None<br>
sqlalchemy: 1.1.0<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.8<br>
boto: None<br>
pandas_datareader: None</p>
</details> | <p dir="auto">I admit I haven't looked at the code so there may be reasons for this, but I've found myself in the need of squeezing out duplicates from a Series but keeping the results as a Series.</p>
<p dir="auto">Series.unique() however returns an array, so in my code I have to construct a Series twice:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
series = pandas.Series([1,2,3,3])
series = pandas.Series(series.unique())"><pre class="notranslate"><span class="pl-s1">series</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">3</span>])
<span class="pl-s1">series</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-v">Series</span>(<span class="pl-s1">series</span>.<span class="pl-en">unique</span>())</pre></div>
<p dir="auto">Is this by design? If so, feel free to close this bug.</p> | 0 |
<p dir="auto">Failed: <a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gce-etcd3/204/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gce-etcd3/204/</a></p>
<p dir="auto">Run so broken it didn't make JUnit output!</p> | <p dir="auto">Failed: <a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gce-etcd3/1638/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gce-etcd3/1638/</a></p>
<p dir="auto">Run so broken it didn't make JUnit output!</p> | 1 |
<p dir="auto">Using the <code class="notranslate">Dates</code> modules, when formatting an existing date, if the "year" field is only two digits long, it parses out missing the centuries. For example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> Date("01/01/19","mm/dd/yy")
0019-01-01"><pre class="notranslate"><code class="notranslate">> Date("01/01/19","mm/dd/yy")
0019-01-01
</code></pre></div> | <p dir="auto">Currently, a <code class="notranslate">yy</code> in the <code class="notranslate">DateFormat</code> string parses a two digit year string like "08" as the year 8. In Python and Posix, they instead map values 69–99 to 1969–1999, and values 0–68 to 2000–2068. I'm not sure that is a great default either, but it certainly seems more useful in general than the current julia implementation.</p>
<p dir="auto">I'm opening this issue mainly to brainstorm ideas how we could make this use case better.</p>
<p dir="auto">Maybe one option could be to add some new options to the <code class="notranslate">DateFormat</code> string that would stand for "POSIX 2 digit year parsing", i.e. a way to explicitly opt into that behavior.</p>
<p dir="auto">Another idea might be to add some syntax to the <code class="notranslate">DateFormat</code> string that would even allow one specify the century offset as part of the format string...</p> | 1 |
<h3 dir="auto">STR</h3>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
let mut v = vec![];
write!(&v, "Hello world");
}"><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> <span class="pl-k">mut</span> v = <span class="pl-en">vec</span><span class="pl-en">!</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-en">write</span><span class="pl-en">!</span><span class="pl-kos">(</span>&v, <span class="pl-s">"Hello world"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Output</h3>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ time rustc write.rs
<std macros>:3:24: 3:14 error: cannot borrow immutable dereference of `&`-pointer as mutable
<std macros>:3 let dst = &mut *$dst;
[2] 2803 illegal hardware instruction (core dumped) rustc write.rs
rustc write.rs 58.66s user 4.81s system 99% cpu 1:03.86 total"><pre class="notranslate">$ time rustc write<span class="pl-kos">.</span><span class="pl-c1">rs</span>
<std macros><span class="pl-kos">:</span><span class="pl-c1">3</span><span class="pl-kos">:</span><span class="pl-c1">24</span><span class="pl-kos">:</span> <span class="pl-c1">3</span><span class="pl-kos">:</span><span class="pl-c1">14</span> error<span class="pl-kos">:</span> cannot borrow immutable dereference of `<span class="pl-c1">&</span>`-pointer <span class="pl-k">as</span> <span class="pl-smi">mutable</span>
<span class="pl-kos"><</span>std <span class="pl-smi">macros</span><span class="pl-kos">></span><span class="pl-kos">:</span><span class="pl-c1">3</span> <span class="pl-k">let</span> dst = <span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-c1">*</span>$dst<span class="pl-kos">;</span>
<span class="pl-kos">[</span><span class="pl-c1">2</span><span class="pl-kos">]</span> <span class="pl-c1">2803</span> illegal hardware <span class="pl-en">instruction</span> <span class="pl-kos">(</span>core dumped<span class="pl-kos">)</span> rustc write<span class="pl-kos">.</span><span class="pl-c1">rs</span>
rustc write<span class="pl-kos">.</span><span class="pl-c1">rs</span> <span class="pl-c1">58.66</span>s user <span class="pl-c1">4.81</span>s system <span class="pl-c1">99</span>% cpu <span class="pl-c1">1</span><span class="pl-kos">:</span><span class="pl-c1">03.86</span> total</pre></div>
<h3 dir="auto">Backtrace</h3>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#0 0x00007ffff7351560 in oom::h6671a0e79ac45df3RTa () from /usr/lib64/librustrt-4e7c5e5c.so
#1 0x00007ffff499c535 in ?? () from /usr/lib64/libsyntax-4e7c5e5c.so
#2 0x00007ffff4a3fd27 in ?? () from /usr/lib64/libsyntax-4e7c5e5c.so
#3 0x00007ffff4a3b083 in diagnostic::EmitterWriter.Emitter::emit::h8944016a574210b0lrG ()
from /usr/lib64/libsyntax-4e7c5e5c.so
#4 0x00007ffff4a398f9 in diagnostic::Handler::emit::hef6d94e096dac3f1F8F ()
from /usr/lib64/libsyntax-4e7c5e5c.so
#5 0x00007ffff4a0c3ed in diagnostic::SpanHandler::span_err::he4174115bd82cc5fEWF ()
from /usr/lib64/libsyntax-4e7c5e5c.so
#6 0x00007ffff5a77fea in middle::borrowck::BorrowckCtxt$LT$$x27a$C$$x20$x27tcx$GT$::report::h3050434306868883rEh () from /usr/lib64/librustc-4e7c5e5c.so
#7 0x00007ffff5a7d524 in middle::borrowck::gather_loans::GatherLoanCtxt$LT$$x27a$C$$x20$x27tcx$GT$.euv..Delegate$LT$$x27tcx$GT$::borrow::hd3a8e951ce2e3945bef () from /usr/lib64/librustc-4e7c5e5c.so
#8 0x00007ffff5a87421 in ?? () from /usr/lib64/librustc-4e7c5e5c.so
#9 0x00007ffff5a83d44 in ?? () from /usr/lib64/librustc-4e7c5e5c.so
#10 0x00007ffff5a830d0 in ?? () from /usr/lib64/librustc-4e7c5e5c.so
#11 0x00007ffff5a838d7 in ?? () from /usr/lib64/librustc-4e7c5e5c.so
#12 0x00007ffff5a876a9 in ?? () from /usr/lib64/librustc-4e7c5e5c.so
#13 0x00007ffff5a83091 in ?? () from /usr/lib64/librustc-4e7c5e5c.so
#14 0x00007ffff5a7ad31 in middle::borrowck::gather_loans::gather_loans_in_fn::ha2f120a3c6b6b70b96e ()
from /usr/lib64/librustc-4e7c5e5c.so
#15 0x00007ffff5a9c574 in ?? () from /usr/lib64/librustc-4e7c5e5c.so
#16 0x00007ffff5a9961d in ?? () from /usr/lib64/librustc-4e7c5e5c.so
#17 0x00007ffff5a9b666 in ?? () from /usr/lib64/librustc-4e7c5e5c.so
#18 0x00007ffff5a9a2f8 in ?? () from /usr/lib64/librustc-4e7c5e5c.so
#19 0x00007ffff5a99cc5 in middle::borrowck::check_crate::h7908f5f01a09671eOPg ()
from /usr/lib64/librustc-4e7c5e5c.so
#20 0x00007ffff76a9917 in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#21 0x00007ffff7840568 in driver::driver::phase_3_run_analysis_passes::he238813c217c3b94efS ()
from /usr/lib64/librustc_trans-4e7c5e5c.so
#22 0x00007ffff7833238 in driver::driver::compile_input::h117f94c1b348a398YVR ()
from /usr/lib64/librustc_trans-4e7c5e5c.so
#23 0x00007ffff78b7cd7 in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#24 0x00007ffff78b62fc in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#25 0x00007ffff76c2f78 in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#26 0x00007ffff76c2e83 in ?? () from /usr/lib64/librustc_trans-4e7c5e5c.so
#27 0x00007ffff7bd6be2 in ?? () from /usr/lib64/libnative-4e7c5e5c.so
#28 0x00007ffff7390fec in ?? () from /usr/lib64/librustrt-4e7c5e5c.so
#29 0x00007ffff7390fd6 in rust_try () from /usr/lib64/librustrt-4e7c5e5c.so
#30 0x00007ffff733f843 in unwind::try::h03ead95328113b2fIZc () from /usr/lib64/librustrt-4e7c5e5c.so
#31 0x00007ffff733f70c in task::Task::run::hed7dc0cf620a0172y5b () from /usr/lib64/librustrt-4e7c5e5c.so
#32 0x00007ffff7bd69e7 in ?? () from /usr/lib64/libnative-4e7c5e5c.so
#33 0x00007ffff7340f35 in ?? () from /usr/lib64/librustrt-4e7c5e5c.so
#34 0x00007ffff1e0e294 in start_thread () from /lib64/libpthread.so.0
#35 0x00007ffff70181ed in clone () from /lib64/libc.so.6"><pre class="notranslate">#<span class="pl-c1">0</span> <span class="pl-c1">0x00007ffff7351560</span> in oom<span class="pl-kos">::</span><span class="pl-en">h6671a0e79ac45df3RTa</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">1</span> <span class="pl-c1">0x00007ffff499c535</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/libsyntax-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">2</span> <span class="pl-c1">0x00007ffff4a3fd27</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/libsyntax-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">3</span> <span class="pl-c1">0x00007ffff4a3b083</span> in diagnostic<span class="pl-kos">::</span><span class="pl-v">EmitterWriter</span><span class="pl-kos">.</span><span class="pl-c1">Emitter</span><span class="pl-kos">::</span>emit<span class="pl-kos">::</span><span class="pl-en">h8944016a574210b0lrG</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>
from /usr/lib64/libsyntax-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">4</span> <span class="pl-c1">0x00007ffff4a398f9</span> in diagnostic<span class="pl-kos">::</span><span class="pl-smi">Handler</span><span class="pl-kos">::</span>emit<span class="pl-kos">::</span><span class="pl-en">hef6d94e096dac3f1F8F</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>
from /usr/lib64/libsyntax-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">5</span> <span class="pl-c1">0x00007ffff4a0c3ed</span> in diagnostic<span class="pl-kos">::</span><span class="pl-smi">SpanHandler</span><span class="pl-kos">::</span>span_err<span class="pl-kos">::</span><span class="pl-en">he4174115bd82cc5fEWF</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>
from /usr/lib64/libsyntax-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">6</span> <span class="pl-c1">0x00007ffff5a77fea</span> in middle<span class="pl-kos">::</span>borrowck<span class="pl-kos">::</span><span class="pl-smi">BorrowckCtxt</span>$LT$$x27a$C$$x20$x27tcx$GT$<span class="pl-kos">::</span>report<span class="pl-kos">::</span><span class="pl-en">h3050434306868883rEh</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">7</span> <span class="pl-c1">0x00007ffff5a7d524</span> in middle<span class="pl-kos">::</span>borrowck<span class="pl-kos">::</span>gather_loans<span class="pl-kos">::</span><span class="pl-smi">GatherLoanCtxt</span>$LT$$x27a$C$$x20$x27tcx$GT$<span class="pl-kos">.</span><span class="pl-c1">euv</span>..<span class="pl-smi">Delegate</span>$LT$$x27tcx$GT$<span class="pl-kos">::</span>borrow<span class="pl-kos">::</span><span class="pl-en">hd3a8e951ce2e3945bef</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">8</span> <span class="pl-c1">0x00007ffff5a87421</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">9</span> <span class="pl-c1">0x00007ffff5a83d44</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">10</span> <span class="pl-c1">0x00007ffff5a830d0</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">11</span> <span class="pl-c1">0x00007ffff5a838d7</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">12</span> <span class="pl-c1">0x00007ffff5a876a9</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">13</span> <span class="pl-c1">0x00007ffff5a83091</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">14</span> <span class="pl-c1">0x00007ffff5a7ad31</span> in middle<span class="pl-kos">::</span>borrowck<span class="pl-kos">::</span>gather_loans<span class="pl-kos">::</span>gather_loans_in_fn<span class="pl-kos">::</span><span class="pl-en">ha2f120a3c6b6b70b96e</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>
from /usr/lib64/librustc-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">15</span> <span class="pl-c1">0x00007ffff5a9c574</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">16</span> <span class="pl-c1">0x00007ffff5a9961d</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">17</span> <span class="pl-c1">0x00007ffff5a9b666</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">18</span> <span class="pl-c1">0x00007ffff5a9a2f8</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">19</span> <span class="pl-c1">0x00007ffff5a99cc5</span> in middle<span class="pl-kos">::</span>borrowck<span class="pl-kos">::</span>check_crate<span class="pl-kos">::</span><span class="pl-en">h7908f5f01a09671eOPg</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>
from /usr/lib64/librustc-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">20</span> <span class="pl-c1">0x00007ffff76a9917</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">21</span> <span class="pl-c1">0x00007ffff7840568</span> in driver<span class="pl-kos">::</span>driver<span class="pl-kos">::</span>phase_3_run_analysis_passes<span class="pl-kos">::</span><span class="pl-en">he238813c217c3b94efS</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>
from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">22</span> <span class="pl-c1">0x00007ffff7833238</span> in driver<span class="pl-kos">::</span>driver<span class="pl-kos">::</span>compile_input<span class="pl-kos">::</span><span class="pl-en">h117f94c1b348a398YVR</span> <span class="pl-kos">(</span><span class="pl-kos">)</span>
from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">23</span> <span class="pl-c1">0x00007ffff78b7cd7</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">24</span> <span class="pl-c1">0x00007ffff78b62fc</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">25</span> <span class="pl-c1">0x00007ffff76c2f78</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">26</span> <span class="pl-c1">0x00007ffff76c2e83</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustc_trans-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">27</span> <span class="pl-c1">0x00007ffff7bd6be2</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/libnative-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">28</span> <span class="pl-c1">0x00007ffff7390fec</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">29</span> <span class="pl-c1">0x00007ffff7390fd6</span> in <span class="pl-en">rust_try</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">30</span> <span class="pl-c1">0x00007ffff733f843</span> in unwind<span class="pl-kos">::</span>try<span class="pl-kos">::</span><span class="pl-en">h03ead95328113b2fIZc</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">31</span> <span class="pl-c1">0x00007ffff733f70c</span> in task<span class="pl-kos">::</span><span class="pl-smi">Task</span><span class="pl-kos">::</span>run<span class="pl-kos">::</span><span class="pl-en">hed7dc0cf620a0172y5b</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">32</span> <span class="pl-c1">0x00007ffff7bd69e7</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/libnative-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">33</span> <span class="pl-c1">0x00007ffff7340f35</span> in ?? <span class="pl-kos">(</span><span class="pl-kos">)</span> from /usr/lib64/librustrt-<span class="pl-c1">4e7</span>c5e5c<span class="pl-kos">.</span><span class="pl-c1">so</span>
#<span class="pl-c1">34</span> <span class="pl-c1">0x00007ffff1e0e294</span> in <span class="pl-en">start_thread</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libpthread<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">0</span>
#<span class="pl-c1">35</span> <span class="pl-c1">0x00007ffff70181ed</span> <span class="pl-k">in</span> clone <span class="pl-kos">(</span><span class="pl-kos">)</span> from /lib64/libc<span class="pl-kos">.</span><span class="pl-c1">so</span><span class="pl-kos">.</span><span class="pl-c1">6</span></pre></div>
<h3 dir="auto">Version</h3>
<p dir="auto"><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/1d81776209cfa2b5cb1825bdbf3965a7a7f0440a/hovercard" href="https://github.com/rust-lang/rust/commit/1d81776209cfa2b5cb1825bdbf3965a7a7f0440a"><tt>1d81776</tt></a></p>
<p dir="auto">Can anyone reproduce? I find this bizarre...</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> @jakub- <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sfackler/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sfackler">@sfackler</a></p> | <p dir="auto">Compiling <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/sfackler/rust-postgres/commit/1fa5941562739104d4a5fc39826f6ab7d27eb210/hovercard" href="https://github.com/sfackler/rust-postgres/commit/1fa5941562739104d4a5fc39826f6ab7d27eb210">sfackler/rust-postgres@<tt>1fa5941</tt></a> comes up with this on the current nightly, but not yesterday's:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<std macros>:4:35: 4:50 error: type `&mut [_]` does not implement any method in scope named `write_fmt`
<std macros>:4 format_args!(|args| { dst.write_fmt(args) }, $($arg)*)
^~~~~~~~~~~~~~~
<std macros>:4:35: 4:50 error: type `&mut [u8]` does not implement any method in scope named `write_fmt`
<std macros>:4 format_args!(|args| { dst.write_fmt(args) }, $($arg)*)
^~~~~~~~~~~~~~~
<std macros>:4:35: 4:50 error: type `&mut [_]` does not implement any method in scope named `write_fmt`
<std macros>:4 format_args!(|args| { dst.write_fmt(args) }, $($arg)*)
^~~~~~~~~~~~~~~
<std macros>:4:35: 4:50 error: type `&mut [u8]` does not implement any method in scope named `write_fmt`
<std macros>:4 format_args!(|args| { dst.write_fmt(args) }, $($arg)*)
^~~~~~~~~~~~~~~
error: aborting due to 4 previous errors"><pre class="notranslate"><code class="notranslate"><std macros>:4:35: 4:50 error: type `&mut [_]` does not implement any method in scope named `write_fmt`
<std macros>:4 format_args!(|args| { dst.write_fmt(args) }, $($arg)*)
^~~~~~~~~~~~~~~
<std macros>:4:35: 4:50 error: type `&mut [u8]` does not implement any method in scope named `write_fmt`
<std macros>:4 format_args!(|args| { dst.write_fmt(args) }, $($arg)*)
^~~~~~~~~~~~~~~
<std macros>:4:35: 4:50 error: type `&mut [_]` does not implement any method in scope named `write_fmt`
<std macros>:4 format_args!(|args| { dst.write_fmt(args) }, $($arg)*)
^~~~~~~~~~~~~~~
<std macros>:4:35: 4:50 error: type `&mut [u8]` does not implement any method in scope named `write_fmt`
<std macros>:4 format_args!(|args| { dst.write_fmt(args) }, $($arg)*)
^~~~~~~~~~~~~~~
error: aborting due to 4 previous errors
</code></pre></div>
<p dir="auto">It's also a bit weird/concerning that there are no expansion traces.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/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.0</li>
<li>Operating System version: xxx</li>
<li>Java version: 1.8</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">The result I expect is that the attachment obtained by the provider after the hession protocol is case sensitive.</p>
<p dir="auto">** 是否可以将attachment 的HashMap 改成 CaseInsensitiveMap? **</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:<br>
Http11InputBuffer:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8758457/67666880-a7b4a800-f9a7-11e9-9b96-2199ac19bbe2.png"><img src="https://user-images.githubusercontent.com/8758457/67666880-a7b4a800-f9a7-11e9-9b96-2199ac19bbe2.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/8758457/67667209-48a36300-f9a8-11e9-89c0-737c5098f86b.png"><img src="https://user-images.githubusercontent.com/8758457/67667209-48a36300-f9a8-11e9-89c0-737c5098f86b.png" alt="image" style="max-width: 100%;"></a></p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">1,创建map或者list时传入原始数据的长度,避免数据量大时进行扩容<br>
例如<br>
<code class="notranslate"> result = new HashMap(size);</code></p>
<p dir="auto">2,避免无意义的方法调用<br>
例如:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Map<Object, Object> map;
// when return type is not the subclass of return type from the signature and not an interface
if (!type.isInterface() && !type.isAssignableFrom(pojo.getClass())) {
try {
map = (Map<Object, Object>) type.newInstance();
Map<Object, Object> mapPojo = (Map<Object, Object>) pojo;
map.putAll(mapPojo);
if (GENERIC_WITH_CLZ) {
map.remove("class");
}
} catch (Exception e) {
//ignore error
map = (Map<Object, Object>) pojo;
}
} else {
map = (Map<Object, Object>) pojo;
}
"><pre class="notranslate"><code class="notranslate"> Map<Object, Object> map;
// when return type is not the subclass of return type from the signature and not an interface
if (!type.isInterface() && !type.isAssignableFrom(pojo.getClass())) {
try {
map = (Map<Object, Object>) type.newInstance();
Map<Object, Object> mapPojo = (Map<Object, Object>) pojo;
map.putAll(mapPojo);
if (GENERIC_WITH_CLZ) {
map.remove("class");
}
} catch (Exception e) {
//ignore error
map = (Map<Object, Object>) pojo;
}
} else {
map = (Map<Object, Object>) pojo;
}
</code></pre></div>
<p dir="auto">根据逻辑,pojo本身是一个map,又创建了一个新map来存放,无存在意义</p>
<p dir="auto">3,其他一些优化<br>
例如某个pojo的method取到之后,不需要再取filed,没有实际意义。</p> | 0 |
<p dir="auto">.babelrc<br>
{<br>
"presets": [<br>
[<br>
"@babel/preset-env",<br>
{<br>
"modules": false,<br>
"targets": {<br>
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]<br>
}<br>
}<br>
]<br>
],<br>
"plugins": [<br>
"@babel/plugin-proposal-object-rest-spread",<br>
"@babel/plugin-transform-runtime",<br>
"@babel/plugin-syntax-dynamic-import",<br>
"@babel/plugin-syntax-import-meta",<br>
[<br>
"@babel/plugin-proposal-decorators",<br>
{<br>
"legacy": true<br>
}<br>
],<br>
"@babel/plugin-proposal-class-properties",<br>
"@babel/plugin-proposal-json-strings",<br>
"@babel/plugin-proposal-function-sent",<br>
"@babel/plugin-proposal-export-namespace-from",<br>
"@babel/plugin-proposal-numeric-separator",<br>
"@babel/plugin-proposal-throw-expressions",<br>
"@babel/plugin-transform-arrow-functions",<br>
"@babel/plugin-transform-block-scoping",<br>
"@babel/plugin-transform-classes"<br>
]<br>
}</p>
<p dir="auto">webpack<br>
image<br>
image</p> | <blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/guybedford/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/guybedford">@guybedford</a></p>
</blockquote>
<h3 dir="auto">Description</h3>
<p dir="auto">It would be nice to add a custom options whitelist and blacklist to the runtime transformer something like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="plugins: [['transform-runtime', { exclude: ['Promise', 'Array.*', 'Object.defineProperty'] }]]"><pre class="notranslate"><code class="notranslate">plugins: [['transform-runtime', { exclude: ['Promise', 'Array.*', 'Object.defineProperty'] }]]
</code></pre></div>
<p dir="auto">Or an opt-in-only whitelist:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="plugins: [['transform-runtime', { include: ['Object.assign', 'String.*', 'Math.*'] }]]"><pre class="notranslate"><code class="notranslate">plugins: [['transform-runtime', { include: ['Object.assign', 'String.*', 'Math.*'] }]]
</code></pre></div>
<p dir="auto">The specific use case that came up for me now was excluding the Promise polyfill in particular since SystemJS by default has a polyfill present already.</p>
<p dir="auto">The nice thing is this would enable the creation of runtime transformer presets which can be based on various engine support baselines.</p> | 0 |
<p dir="auto">It seems that reloading or including a file or package causes multiple, duplicate method listings to be stored and/or displayed. When I'm working on a package or file that defines types and methods, I find that if I load changes with <code class="notranslate">reload</code> or <code class="notranslate">include</code> and then call <code class="notranslate">methods</code> on one of my methods, I get multiple listings of the same method/signature. It also seems that when I call the method, I don't necessarily get the most recent version.</p>
<p dir="auto">The code below is a minimal example of this behavior. I have observed this behavior with julia 0.3.4, 0.3.5, and 0.3.6 on OSC Mavericks (10.9.5).</p>
<p dir="auto">Create this file:</p>
<h1 dir="auto">File: "dup.methods.jl"</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module Dups
import Base: splice!
export splice!
type Foo
thing::Int
end
function splice!(x::Foo,i,item)
Foo.thing = 5
end
end"><pre class="notranslate"><code class="notranslate">module Dups
import Base: splice!
export splice!
type Foo
thing::Int
end
function splice!(x::Foo,i,item)
Foo.thing = 5
end
end
</code></pre></div>
<p dir="auto">Then reload it a few times and list the methods on <code class="notranslate">splice!</code>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> include("dup.methods.jl")
julia> include("dup.methods.jl")
Warning: replacing module Dups
julia> include("dup.methods.jl")
Warning: replacing module Dups
julia> include("dup.methods.jl")
Warning: replacing module Dups
julia> methods(splice!)
#12 methods for generic function "splice!":
splice!(a::Array{T,1},i::Integer) at array.jl:598
splice!(a::Array{T,1},i::Integer,ins::AbstractArray{T,N}) at array.jl:598
splice!{T<:Integer}(a::Array{T,1},r::UnitRange{T<:Integer}) at array.jl:614
splice!{T<:Integer}(a::Array{T,1},r::UnitRange{T<:Integer},ins::AbstractArray{T,N}) at array.jl:614
splice!(B::BitArray{1},i::Integer) at bitarray.jl:724
splice!(B::BitArray{1},r::Union(Integer,UnitRange{Int64})) at bitarray.jl:735
splice!(B::BitArray{1},r::Union(Integer,UnitRange{Int64}),ins::BitArray{1}) at bitarray.jl:735
splice!(B::BitArray{1},r::Union(Integer,UnitRange{Int64}),ins::AbstractArray{Bool,1}) at bitarray.jl:772
splice!(x::Foo,i,item) at /Users/phaverty/dup.methods.jl:11
splice!(x::Foo,i,item) at /Users/phaverty/dup.methods.jl:11
splice!(x::Foo,i,item) at /Users/phaverty/dup.methods.jl:11
splice!(x::Foo,i,item) at /Users/phaverty/dup.methods.jl:11
julia> "><pre class="notranslate"><code class="notranslate">julia> include("dup.methods.jl")
julia> include("dup.methods.jl")
Warning: replacing module Dups
julia> include("dup.methods.jl")
Warning: replacing module Dups
julia> include("dup.methods.jl")
Warning: replacing module Dups
julia> methods(splice!)
#12 methods for generic function "splice!":
splice!(a::Array{T,1},i::Integer) at array.jl:598
splice!(a::Array{T,1},i::Integer,ins::AbstractArray{T,N}) at array.jl:598
splice!{T<:Integer}(a::Array{T,1},r::UnitRange{T<:Integer}) at array.jl:614
splice!{T<:Integer}(a::Array{T,1},r::UnitRange{T<:Integer},ins::AbstractArray{T,N}) at array.jl:614
splice!(B::BitArray{1},i::Integer) at bitarray.jl:724
splice!(B::BitArray{1},r::Union(Integer,UnitRange{Int64})) at bitarray.jl:735
splice!(B::BitArray{1},r::Union(Integer,UnitRange{Int64}),ins::BitArray{1}) at bitarray.jl:735
splice!(B::BitArray{1},r::Union(Integer,UnitRange{Int64}),ins::AbstractArray{Bool,1}) at bitarray.jl:772
splice!(x::Foo,i,item) at /Users/phaverty/dup.methods.jl:11
splice!(x::Foo,i,item) at /Users/phaverty/dup.methods.jl:11
splice!(x::Foo,i,item) at /Users/phaverty/dup.methods.jl:11
splice!(x::Foo,i,item) at /Users/phaverty/dup.methods.jl:11
julia>
</code></pre></div>
<p dir="auto">Note the one entry of <code class="notranslate">splice!(x::Foo,i,item)</code> for each <code class="notranslate">include</code> call. This happens with proper packages and with <code class="notranslate">reload</code> as well. I believe that using <code class="notranslate">reload</code> is what is recommended in the "workflow" section of the documentation. Please correct me if I'm just doing it wrong.</p> | <p dir="auto">It would be nice to have a clearly defined <code class="notranslate">AbstractSparseArray <: AbstractArray</code> with an interface that defines where the non-zero values are, and that way generic looping over sparse arrays can be defined. Special matrix types like <code class="notranslate">Tridiagonal</code> should fall under <code class="notranslate">AbstractSparseArray</code> to allow for generic sparse iteration, and then it would make it easier for things like <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dlfivefifty/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dlfivefifty">@dlfivefifty</a> 's BandedMatrices.jl to plug into a more generic system of sparsity support.</p> | 0 |
<h4 dir="auto">Issue Description</h4>
<p dir="auto">Campers will often accidentally create duplicate accounts (most of this is because we made the mistake of offering multiple authentication options).</p>
<p dir="auto">When they unsubscribe from emails, we want to make sure they are unsubscribed from all emails for all accounts with that email address, including duplicate accounts.</p>
<p dir="auto">The unsubscribe code just needs to be refactored to get all accounts with that email address. Currently it's a <code class="notranslate">findOne</code> query.</p>
<p dir="auto">It's located in the RandomAPIs.js and the relevant function is called</p>
<p dir="auto">To test your code, you'll want to create multiple accounts that have the same email address. You'll then want to test the unsubscribe functionality (<code class="notranslate">https://www.freecodecamp.com/unsubscribe/[email]</code>) and verify that both accounts are unsubscribed. This means all three of these attributes should be set to false:<br>
"sendMonthlyEmail"<br>
"sendNotificationEmail"<br>
"sendQuincyEmail"</p> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13212966/9868873/6c07aec6-5b43-11e5-8a31-0fdea1735f03.png"><img src="https://cloud.githubusercontent.com/assets/13212966/9868873/6c07aec6-5b43-11e5-8a31-0fdea1735f03.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Now when I click in the code area.. now all of the lines of the example show up. Why does it do this? Seems like a bug. Thanks</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13212966/9868879/8a1e2430-5b43-11e5-803d-3f880fc4b076.png"><img src="https://cloud.githubusercontent.com/assets/13212966/9868879/8a1e2430-5b43-11e5-803d-3f880fc4b076.png" alt="image" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37510501/70857972-b38c0780-1f1e-11ea-80f3-a5ba4c7b1515.png"><img src="https://user-images.githubusercontent.com/37510501/70857972-b38c0780-1f1e-11ea-80f3-a5ba4c7b1515.png" alt="Screenshot 2019-06-08 at 11 44 11 PM" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37510501/70857973-bb4bac00-1f1e-11ea-8d51-1bd2b45f87e5.png"><img src="https://user-images.githubusercontent.com/37510501/70857973-bb4bac00-1f1e-11ea-8d51-1bd2b45f87e5.png" alt="Screenshot 2019-06-08 at 11 49 18 PM" style="max-width: 100%;"></a></p> | <p dir="auto">An issue that arises when plotting histograms of discrete data with Matplotlib seems to also come up in <code class="notranslate">distplot</code> as well. That is, there are often empty bins in the histogram that are entirely artifacts of the plot. See here for an example with Poisson data:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/4bef2612a9741b9dc1cc8d7739b676da5c92ca022bfa0aaac8ab2744651c6edb/687474703a2f2f642e70722f692f31653238552b"><img src="https://camo.githubusercontent.com/4bef2612a9741b9dc1cc8d7739b676da5c92ca022bfa0aaac8ab2744651c6edb/687474703a2f2f642e70722f692f31653238552b" alt="poisson data" data-canonical-src="http://d.pr/i/1e28U+" style="max-width: 100%;"></a></p>
<p dir="auto">Is there any way that <code class="notranslate">distplot</code> could try to detect this and adjust the bins automagically?</p> | 1 |
<p dir="auto">Hello, I'd like to suggest the following syntax that you may add to future releases.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<my-component ::params @@myMethod />"><pre class="notranslate"><code class="notranslate"><my-component ::params @@myMethod />
</code></pre></div>
<p dir="auto">Could be equivalent to</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<my-component :params="params" @myMethod="myMethod" />"><pre class="notranslate"><code class="notranslate"><my-component :params="params" @myMethod="myMethod" />
</code></pre></div>
<p dir="auto">That would make code much cleaner when we have to pass multiple props to a child component and those props have the same name as the variables in the parent component. The same thing can be said about events.</p>
<p dir="auto">I hope you take this into consideration and that my suggestion will help you improve VUE.</p> | <h3 dir="auto">What problem does this feature solve?</h3>
<p dir="auto">When passing props to a component, the following pattern is very common,</p>
<p dir="auto"><code class="notranslate"><my-component :propA="propA" :propB="propB" /></code></p>
<p dir="auto">I am proposing that when the prop name is the same as the variable name being passed to it, that the following more concise syntax be applicable,</p>
<p dir="auto"><code class="notranslate"><my-component :propA :propB :propC /></code></p>
<p dir="auto">This would mimic ES6's object property declaring shorthands (like here <a href="http://www.benmvp.com/learning-es6-enhanced-object-literals/" rel="nofollow">http://www.benmvp.com/learning-es6-enhanced-object-literals/</a>)</p>
<h3 dir="auto">What does the proposed API look like?</h3>
<p dir="auto"><code class="notranslate"><my-component :propA :propB :propC /></code></p>
<p dir="auto">instead of</p>
<p dir="auto"><code class="notranslate"><my-component :propA="propA" :propB="propB" /></code></p> | 1 |
<p dir="auto">I wrote a function to rotate the coordinates of a 2D MvNormal distribution, and in the course of testing it I discovered the Cholesky factorization throws an error depending on the input with bit-level sensitivity. Is this a bug? For my use case, the workaround of wrapping the input in <code class="notranslate">Hermitian()</code> doesn't work, because I can't pass a <code class="notranslate">Hermitian</code> to the <code class="notranslate">MvNormal</code> constructor, which is calling <code class="notranslate">cholesky</code> for me.</p>
<p dir="auto">Example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> VERSION
v"1.1.0"
julia> rot1 = [1 -1; 1 1] / sqrt(2)
2×2 Array{Float64,2}:
0.707107 -0.707107
0.707107 0.707107
julia> rot2 = [cos(π/4) -sin(π/4); sin(π/4) cos(π/4)]
2×2 Array{Float64,2}:
0.707107 -0.707107
0.707107 0.707107
julia> cholesky(rot1 * [25.0 0.0; 0.0 4.0] * rot1')
Cholesky{Float64,Array{Float64,2}}
U factor:
2×2 UpperTriangular{Float64,Array{Float64,2}}:
3.80789 2.75744
⋅ 2.62613
julia> cholesky(rot2 * [25.0 0.0; 0.0 4.0] * rot2')
ERROR: PosDefException: matrix is not Hermitian; Cholesky factorization failed.
Stacktrace:
[1] checkpositivedefinite(::Int64) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/LinearAlgebra/src/factorization.jl:11
[2] #cholesky!#97(::Bool, ::Function, ::Array{Float64,2}, ::Val{false}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/LinearAlgebra/src/cholesky.jl:182
[3] #cholesky#101 at ./none:0 [inlined]
[4] cholesky at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/LinearAlgebra/src/cholesky.jl:275 [inlined] (repeats 2 times)
[5] top-level scope at none:0"><pre class="notranslate"><code class="notranslate">julia> VERSION
v"1.1.0"
julia> rot1 = [1 -1; 1 1] / sqrt(2)
2×2 Array{Float64,2}:
0.707107 -0.707107
0.707107 0.707107
julia> rot2 = [cos(π/4) -sin(π/4); sin(π/4) cos(π/4)]
2×2 Array{Float64,2}:
0.707107 -0.707107
0.707107 0.707107
julia> cholesky(rot1 * [25.0 0.0; 0.0 4.0] * rot1')
Cholesky{Float64,Array{Float64,2}}
U factor:
2×2 UpperTriangular{Float64,Array{Float64,2}}:
3.80789 2.75744
⋅ 2.62613
julia> cholesky(rot2 * [25.0 0.0; 0.0 4.0] * rot2')
ERROR: PosDefException: matrix is not Hermitian; Cholesky factorization failed.
Stacktrace:
[1] checkpositivedefinite(::Int64) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/LinearAlgebra/src/factorization.jl:11
[2] #cholesky!#97(::Bool, ::Function, ::Array{Float64,2}, ::Val{false}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/LinearAlgebra/src/cholesky.jl:182
[3] #cholesky#101 at ./none:0 [inlined]
[4] cholesky at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/LinearAlgebra/src/cholesky.jl:275 [inlined] (repeats 2 times)
[5] top-level scope at none:0
</code></pre></div>
<p dir="auto">Related issues from Discourse:</p>
<ul dir="auto">
<li><a href="https://discourse.julialang.org/t/multivariate-normal-with-positive-semi-definite-covariance-matrix/3029" rel="nofollow">https://discourse.julialang.org/t/multivariate-normal-with-positive-semi-definite-covariance-matrix/3029</a></li>
<li><a href="https://discourse.julialang.org/t/is-this-a-bug-with-cholesky/16970" rel="nofollow">https://discourse.julialang.org/t/is-this-a-bug-with-cholesky/16970</a></li>
<li><a href="https://discourse.julialang.org/t/numerical-stability-of-cholesky-factorization/20063" rel="nofollow">https://discourse.julialang.org/t/numerical-stability-of-cholesky-factorization/20063</a></li>
</ul> | <p dir="auto">I have a function where i determine the hessian with finite difference using the <code class="notranslate">hessian</code> function in the Calculus package. Then I test if the hessian is positive definite with <code class="notranslate">isposdef</code> this always return false because, <code class="notranslate">ishermitian</code> is called at: </p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/JuliaLang/julia/blob/5e2a6173eca65e78f787a3525bae18857d283229/base/linalg/dense.jl#L27-L28">julia/base/linalg/dense.jl</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 27 to 28
in
<a data-pjax="true" class="commit-tease-sha" href="/JuliaLang/julia/commit/5e2a6173eca65e78f787a3525bae18857d283229">5e2a617</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="L27" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="27"></td>
<td id="LC27" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">isposdef!</span><span class="pl-c1">{T<:BlasFloat}</span>(A<span class="pl-k">::</span><span class="pl-c1">StridedMatrix{T}</span>, UL<span class="pl-k">::</span><span class="pl-c1">Symbol</span>) <span class="pl-k">=</span> LAPACK<span class="pl-k">.</span><span class="pl-c1">potrf!</span>(<span class="pl-c1">char_uplo</span>(UL), A)[<span class="pl-c1">2</span>] <span class="pl-k">==</span> <span class="pl-c1">0</span> </td>
</tr>
<tr class="border-0">
<td id="L28" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="28"></td>
<td id="LC28" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-en">isposdef!</span>(A<span class="pl-k">::</span><span class="pl-c1">StridedMatrix</span>) <span class="pl-k">=</span> <span class="pl-c1">ishermitian</span>(A) <span class="pl-k">&&</span> <span class="pl-c1">isposdef!</span>(A, <span class="pl-c1">:U</span>) </td>
</tr>
</tbody></table>
</div>
</div>
<br>
before the <code class="notranslate">LAPACK.potrf!</code> is called. Due to numerical inaccuracy will <code class="notranslate">ishermitian</code> always return false because <code class="notranslate">A[i,j] != ctranspose(A[j,i])</code> in <div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/JuliaLang/julia/blob/5e2a6173eca65e78f787a3525bae18857d283229/base/linalg/generic.jl#L282">julia/base/linalg/generic.jl</a>
</p>
<p class="mb-0 color-fg-muted">
Line 282
in
<a data-pjax="true" class="commit-tease-sha" href="/JuliaLang/julia/commit/5e2a6173eca65e78f787a3525bae18857d283229">5e2a617</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="L282" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="282"></td>
<td id="LC282" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> A[i,j] <span class="pl-k">!=</span> <span class="pl-c1">ctranspose</span>(A[j,i]) </td>
</tr>
</tbody></table>
</div>
</div>
, will return true for some <code class="notranslate">i,j</code> due to numerical inaccuracy. If I change the line to <code class="notranslate">!isapprox(A[i,j],ctranspose(Aj,i]))</code> the <code class="notranslate">ishermitian</code> returns true and hence also call the <code class="notranslate">LAPACK.potrf!</code> to check if it is positive definite.<p></p>
<p dir="auto">So from my point of view, should <code class="notranslate">ishermitian</code> test approximately equality.</p> | 1 |
<p dir="auto">The idea behind <code class="notranslate">ignore_malformed</code> setting, is to ensure all records being added get added to the index, even if some of the JSON attribute use an invalid data type (compared to the index's expected mapping). This is particularly useful with dynamic JSON document, where it's most important that all objects are "added" (rather than rejected via exception).</p>
<p dir="auto">However, there are some cases where malformed JSON object are being reject (exception) instead of getting accepted. Repro steps:</p>
<ul dir="auto">
<li>Make sure the <code class="notranslate">ignore_malformed</code> setting is enabled</li>
<li>Add a first record</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~$ curl -XPUT 'http://127.0.0.1:9200/tweets/tweet/123' -d '{ "value" : 12345 }'
{"_index":"tweets","_type":"tweet","_id":"123","_version":1,"created":true}~ $"><pre class="notranslate"><code class="notranslate">~$ curl -XPUT 'http://127.0.0.1:9200/tweets/tweet/123' -d '{ "value" : 12345 }'
{"_index":"tweets","_type":"tweet","_id":"123","_version":1,"created":true}~ $
</code></pre></div>
<p dir="auto">The index now expected a <code class="notranslate">long</code> value for the "value" field.</p>
<ul dir="auto">
<li>Add a malformed record</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~ $ curl -XPUT 'http://127.0.0.1:9200/tweets/tweet/124' -d '{ "value" : "Hello" }'
{"_index":"tweets","_type":"tweet","_id":"124","_version":1,"created":true}"><pre class="notranslate"><code class="notranslate">~ $ curl -XPUT 'http://127.0.0.1:9200/tweets/tweet/124' -d '{ "value" : "Hello" }'
{"_index":"tweets","_type":"tweet","_id":"124","_version":1,"created":true}
</code></pre></div>
<p dir="auto">The malformed record is accepted, as expected.</p>
<ul dir="auto">
<li>Add another malformed record</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~ $ curl -XPUT 'http://127.0.0.1:9200/tweets/tweet/125' -d '{ "value" : 123123123123123123123 }'
{"error":"MapperParsingException[failed to parse [value]]; nested: JsonParseException[Numeric value (123123123123123123123) out of range of long (-9223372036854775808 - 9223372036854775807)\n at [Source: [B@52259927; line: 1, column: 34]]; ","status":400}"><pre class="notranslate"><code class="notranslate">~ $ curl -XPUT 'http://127.0.0.1:9200/tweets/tweet/125' -d '{ "value" : 123123123123123123123 }'
{"error":"MapperParsingException[failed to parse [value]]; nested: JsonParseException[Numeric value (123123123123123123123) out of range of long (-9223372036854775808 - 9223372036854775807)\n at [Source: [B@52259927; line: 1, column: 34]]; ","status":400}
</code></pre></div>
<p dir="auto">Expected: This malformed record should still be added, with the <code class="notranslate">123123123123123123123</code> value coerced into a <code class="notranslate">string</code>.</p> | <p dir="auto">using elasticsearch 1.5.2 I can index values greater than 127 for a byte field without getting any error. The values just overflow internally and the resulting numbers can be searched for.<br>
e.g. indexing 250 ends up as -6<br>
indexing 260 ends up as 4</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -XPUT localhost:9200/test -d '
{
"mappings" : {
"foo" : {
"properties" : {
"field1" : { "type" : "byte" }
}
}
}
}'
curl -XPUT localhost:9200/test/foo/one -d '
{
"field1" : 127
}'
curl -XPUT localhost:9200/test/foo/two -d '
{
"field1" : 250
}'
curl -XPUT localhost:9200/test/foo/three -d '
{
"field1" : 260
}'"><pre class="notranslate"><code class="notranslate">curl -XPUT localhost:9200/test -d '
{
"mappings" : {
"foo" : {
"properties" : {
"field1" : { "type" : "byte" }
}
}
}
}'
curl -XPUT localhost:9200/test/foo/one -d '
{
"field1" : 127
}'
curl -XPUT localhost:9200/test/foo/two -d '
{
"field1" : 250
}'
curl -XPUT localhost:9200/test/foo/three -d '
{
"field1" : 260
}'
</code></pre></div>
<p dir="auto">now searching like this...</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -XGET localhost:9200/test/_search?search_type=count -d '
{
"aggs" : {
"values" : {
"terms" : { "field" : "field1" }
}
}
}'"><pre class="notranslate"><code class="notranslate">curl -XGET localhost:9200/test/_search?search_type=count -d '
{
"aggs" : {
"values" : {
"terms" : { "field" : "field1" }
}
}
}'
</code></pre></div>
<p dir="auto">returns the following resultset</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"took": 3,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 3,
"max_score": 0,
"hits": []
},
"aggregations": {
"values": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": -6,
"doc_count": 1
},
{
"key": 4,
"doc_count": 1
},
{
"key": 127,
"doc_count": 1
}
]
}
}
}"><pre class="notranslate"><code class="notranslate">{
"took": 3,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 3,
"max_score": 0,
"hits": []
},
"aggregations": {
"values": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": -6,
"doc_count": 1
},
{
"key": 4,
"doc_count": 1
},
{
"key": 127,
"doc_count": 1
}
]
}
}
}
</code></pre></div>
<p dir="auto">trying the same with a 'short' number, you get an error message for document 'two'</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -XPUT localhost:9200/test -d '
{
"mappings" : {
"foo" : {
"properties" : {
"field1" : { "type" : "short" }
}
}
}
}'
curl -XPUT localhost:9200/test/foo/one -d '
{
"field1" : 31000
}'
curl -XPUT localhost:9200/test/foo/two -d '
{
"field1" : 33000
}'"><pre class="notranslate"><code class="notranslate">curl -XPUT localhost:9200/test -d '
{
"mappings" : {
"foo" : {
"properties" : {
"field1" : { "type" : "short" }
}
}
}
}'
curl -XPUT localhost:9200/test/foo/one -d '
{
"field1" : 31000
}'
curl -XPUT localhost:9200/test/foo/two -d '
{
"field1" : 33000
}'
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"error": "RemoteTransportException[[dev-test-mon-es-02][inet[/192.168.110.83:9300]][indices:data/write/index]]; nested: MapperParsingException[failed to parse [field1]]; nested: JsonParseException[Numeric value (33000) out of range of Java short\n at [Source: UNKNOWN; line: 2, column: 19]]; ",
"status": 400
}"><pre class="notranslate"><code class="notranslate">{
"error": "RemoteTransportException[[dev-test-mon-es-02][inet[/192.168.110.83:9300]][indices:data/write/index]]; nested: MapperParsingException[failed to parse [field1]]; nested: JsonParseException[Numeric value (33000) out of range of Java short\n at [Source: UNKNOWN; line: 2, column: 19]]; ",
"status": 400
}
</code></pre></div> | 1 |
<blockquote>
<p dir="auto">error: mismatched types: expected <code class="notranslate">core::option::Option<alloc::arc::Arc<std::collections ::hash::map::HashMap<&'static str, alloc::arc::Arc<collections::vec::Vec<item::Item>>>>></code>,<br>
found <code class="notranslate">core::option::Option<alloc::arc::Arc<std::collections::hash::map::HashMap<&str, alloc::arc::Arc<collections::vec::Vec<&generator::Job>>>>></code></p>
</blockquote>
<p dir="auto">would be much more readable as</p>
<blockquote>
<p dir="auto">error: mismatched types: expected <code class="notranslate">Option<Arc<HashMap<&'static str, Arc<Vec<Item>>>>></code>,<br>
found <code class="notranslate">Option<Arc<HashMap<&str, Arc<Vec<&Job>>>>></code></p>
</blockquote>
<p dir="auto">One possibility is to use the names in scope where the type error appears. In any event, we should make sure none of the unqualified names in a given error are ambiguous.</p> | <p dir="auto">Right now, when using rustc to only parse an input file, only errors are displayed. There should be an option to also display warnings (and notes) without having to fully compile the program.</p>
<p dir="auto">Trying again with a recent build of rustc, it appears that not even errors are displayed with rustc 0.5</p> | 0 |
<p dir="auto">Example:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax.numpy as jnp
import numpy as np
a = jnp.arange(10).reshape((2, 5))
type(a)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">jnp</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">jnp</span>.<span class="pl-en">arange</span>(<span class="pl-c1">10</span>).<span class="pl-en">reshape</span>((<span class="pl-c1">2</span>, <span class="pl-c1">5</span>))
<span class="pl-en">type</span>(<span class="pl-s1">a</span>)</pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="jaxlib.xla_extension.DeviceArray"><pre class="notranslate"><code class="notranslate">jaxlib.xla_extension.DeviceArray
</code></pre></div>
<p dir="auto">But if we do:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="b, c = a"><pre class="notranslate"><code class="notranslate">b, c = a
</code></pre></div>
<p dir="auto">We get</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="type(b), type(c)"><pre class="notranslate"><code class="notranslate">type(b), type(c)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(numpy.ndarray, numpy.ndarray)"><pre class="notranslate"><code class="notranslate">(numpy.ndarray, numpy.ndarray)
</code></pre></div>
<p dir="auto"><a href="https://colab.research.google.com/gist/romanngg/bc4197d71a404f28224914a2b0dc4481/jnp-np-coversion-when-unpacking.ipynb" rel="nofollow">https://colab.research.google.com/gist/romanngg/bc4197d71a404f28224914a2b0dc4481/jnp-np-coversion-when-unpacking.ipynb</a></p> | <p dir="auto">Looping through a <code class="notranslate">DeviceArray</code> like in a list comprehension, for loop, or enumerate returns <code class="notranslate">numpy.ndarray</code>. Is this expected behaviour?</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import jax.numpy as np
X = np.array(range(3)).reshape(3,1)
print(type(X))
#<class 'jax.interpreters.xla.DeviceArray'>
x0,x1,x2 = [xi for xi in X]
print(type(x0))
#<type 'numpy.ndarray'>
for xi in X:
print(type(xi))
#<type 'numpy.ndarray'>
#<type 'numpy.ndarray'>
#<type 'numpy.ndarray'>"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">jax</span>.<span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-v">X</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>(<span class="pl-en">range</span>(<span class="pl-c1">3</span>)).<span class="pl-en">reshape</span>(<span class="pl-c1">3</span>,<span class="pl-c1">1</span>)
<span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-v">X</span>))
<span class="pl-c">#<class 'jax.interpreters.xla.DeviceArray'></span>
<span class="pl-s1">x0</span>,<span class="pl-s1">x1</span>,<span class="pl-s1">x2</span> <span class="pl-c1">=</span> [<span class="pl-s1">xi</span> <span class="pl-k">for</span> <span class="pl-s1">xi</span> <span class="pl-c1">in</span> <span class="pl-v">X</span>]
<span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">x0</span>))
<span class="pl-c">#<type 'numpy.ndarray'></span>
<span class="pl-k">for</span> <span class="pl-s1">xi</span> <span class="pl-c1">in</span> <span class="pl-v">X</span>:
<span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">xi</span>))
<span class="pl-c">#<type 'numpy.ndarray'></span>
<span class="pl-c">#<type 'numpy.ndarray'></span>
<span class="pl-c">#<type 'numpy.ndarray'></span></pre></div>
<p dir="auto">This is unexpected to me. Why are these not also <code class="notranslate">DeviceArray</code>s?</p> | 1 |
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.34.3]</li>
<li>Operating System: [macOS 13.3.1]</li>
<li>Browser: [All]</li>
<li>Other info:</li>
</ul>
<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="test.only('Alice Bob', async ({
page,
}) => {
await page.route('http://foo.bar', (route) => {
route.fulfill({
status: 303,
headers: {
location:
'http://alice.bob',
},
});
});
await page.route('http://alice.bob', (route) => {
route.fulfill({
status: 200,
body: 'Alice Bob!'
});
});
await page.goto('http://alice.bob');
await page.goto('http://foo.bar');
});"><pre class="notranslate"><span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">only</span><span class="pl-kos">(</span><span class="pl-s">'Alice Bob'</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-kos">)</span> <span class="pl-c1">=></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">route</span><span class="pl-kos">(</span><span class="pl-s">'http://foo.bar'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">route</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s1">route</span><span class="pl-kos">.</span><span class="pl-en">fulfill</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">status</span>: <span class="pl-c1">303</span><span class="pl-kos">,</span>
<span class="pl-c1">headers</span>: <span class="pl-kos">{</span>
<span class="pl-c1">location</span>:
<span class="pl-s">'http://alice.bob'</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">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">route</span><span class="pl-kos">(</span><span class="pl-s">'http://alice.bob'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">route</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s1">route</span><span class="pl-kos">.</span><span class="pl-en">fulfill</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">status</span>: <span class="pl-c1">200</span><span class="pl-kos">,</span>
<span class="pl-c1">body</span>: <span class="pl-s">'Alice Bob!'</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">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">'http://alice.bob'</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">goto</span><span class="pl-kos">(</span><span class="pl-s">'http://foo.bar'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>[Run the test]</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto"><code class="notranslate">http://alice.bob</code> ← Alice Bob!<br>
<code class="notranslate">http://foo.bar</code> ← Alice Bob!</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto"><code class="notranslate">http://alice.bob</code> ← Alice Bob!<br>
<code class="notranslate">http://foo.bar</code> ← DNS_PROBE_FINISHED_NXDOMAIN</p> | <h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: v1.35</li>
<li>Operating System: macOS 11.6.1</li>
<li>Browser: Chromium</li>
</ul>
<p dir="auto"><strong>Config file</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests',
fullyParallel: true,
forbidOnly: !!process.env.CI,
reporter: 'html',
timeout: 60000,
use: {
baseURL: 'https://pressreleasehub-staging.pa.media/',
trace: 'retain-on-failure',
headless: false,
browserName: 'chromium',
viewport: { width: 1680, height: 1050 },
video: 'retain-on-failure',
screenshot: 'only-on-failure',
actionTimeout: 30000,
launchOptions: {
slowMo: 300,
},
},
workers: 4
});"><pre class="notranslate"><code class="notranslate">import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests',
fullyParallel: true,
forbidOnly: !!process.env.CI,
reporter: 'html',
timeout: 60000,
use: {
baseURL: 'https://pressreleasehub-staging.pa.media/',
trace: 'retain-on-failure',
headless: false,
browserName: 'chromium',
viewport: { width: 1680, height: 1050 },
video: 'retain-on-failure',
screenshot: 'only-on-failure',
actionTimeout: 30000,
launchOptions: {
slowMo: 300,
},
},
workers: 4
});
</code></pre></div>
<p dir="auto"><strong>Test file (self-contained)</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { test, expect } from '@playwright/test';
test.describe('Verify Press Release Hub Contributor Pages', () => {
test.only('Verify Contributor Pages', async ({ page }) => {
await page.goto('https://pressreleasehub-staging.pa.media/');
// Open the Contributors menu
await page.click('#navbar-contributors');
// Get all menu links within the Contributors menu
const allLinks = await page.locator('.NavigationBar_subMenuColumns__fN1Rt > li > a').all();
// Assert 37 menu links are present
expect(allLinks.length).toBe(37);
for(let i = 0; i < allLinks.length; i++) {
const contributorName = (await allLinks[i].innerText()).toLowerCase();
await allLinks[i].click();
const contributorHeading = page.locator('.SectionHeader_sectionHeader___3ygo ').getByRole('heading', {name: contributorName.toLowerCase()});
await contributorHeading.waitFor();
await page.goBack();
await page.click('#navbar-contributors');
}
});
});"><pre class="notranslate"><code class="notranslate">import { test, expect } from '@playwright/test';
test.describe('Verify Press Release Hub Contributor Pages', () => {
test.only('Verify Contributor Pages', async ({ page }) => {
await page.goto('https://pressreleasehub-staging.pa.media/');
// Open the Contributors menu
await page.click('#navbar-contributors');
// Get all menu links within the Contributors menu
const allLinks = await page.locator('.NavigationBar_subMenuColumns__fN1Rt > li > a').all();
// Assert 37 menu links are present
expect(allLinks.length).toBe(37);
for(let i = 0; i < allLinks.length; i++) {
const contributorName = (await allLinks[i].innerText()).toLowerCase();
await allLinks[i].click();
const contributorHeading = page.locator('.SectionHeader_sectionHeader___3ygo ').getByRole('heading', {name: contributorName.toLowerCase()});
await contributorHeading.waitFor();
await page.goBack();
await page.click('#navbar-contributors');
}
});
});
</code></pre></div>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>Run the test</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">All stages of the test should complete successfully</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">The test itself does actually seem to pass, however, instead of completing successfully it hangs until the timeout value of 60 seconds is reached and then fails with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Test finished within timeout of 60000ms, but tearing down "context" ran out of time. Please allow more time for the test, since teardown is attributed towards the test timeout budget."><pre class="notranslate"><code class="notranslate">Test finished within timeout of 60000ms, but tearing down "context" ran out of time. Please allow more time for the test, since teardown is attributed towards the test timeout budget.
</code></pre></div>
<p dir="auto">However, the test is completing well before that 60 second timeout.</p> | 0 |
<pre class="notranslate">The spec seems to allow package main to import another package main under another name.
However, the experience with the go tool is inconsistent:
% cd $GOPATH/src/foo
% cat a/a.go
package main
import _ "foo/b"
func init() { println("init: a") }
func main() {}
% cat b/b.go
package main
func init() { println("init: b") }
func main() {}
% rm -f $GOPATH/bin/a
% rm -f $GOPATH/bin/b
% go install ./a
% touch a/a.go
% go install ./a
# foo/a
a/a.go:3: can't find import: "foo/b"
%
My setup:
% go env
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOGCCFLAGS="-g -O2 -fPIC -m64 -pthread -fno-common"
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/p/go"
GOROOT="/usr/local/Cellar/go/1.0.3"
GOTOOLDIR="/usr/local/Cellar/go/1.0.3/pkg/tool/darwin_amd64"
CGO_ENABLED="1"
%</pre> | <pre class="notranslate">Looking at a liveness bitmap while debugging a garbage collector crash (probably caused
by a linker bug):
(gdb) x/16xw 'fmt.Sprintf.gclocals·0'
0x10b780 <fmt.Sprintf.gclocals·0>: 0x00000005 0x00000006 0x00000004 0x00000006
0x10b790 <fmt.Sprintf.gclocals·0+16>: 0x00000004 0x00000006 0x00000005 0x00000006
0x10b7a0 <fmt.Sprintf.gclocals·0+32>: 0x00000005 0x00000006 0x00000004 0x00000000
0x10b7b0 <fmt.Sprintf.gclocals·0+48>: 0x00000000 0x00000000 0x00000000 0x00000000
(gdb)
That's 5 bitmaps, each of 6 bits, and the bit pattern is sometimes 4 sometimes 5.
The corresponding pcdata is:
fmt.Sprintf pcdata=1:
0-30: -1 (really 0)
30-98: 1
98-131: 2
131-165: 3
165-208: 4
A few observations:
The default padding to 16 bytes is not helping; if we record an explicit alignment
for the symbol we can pad only to 4-byte boundaries, which will cut the size of
the symbol from 16 words to 11.
The bitmap size is the same for all bitmaps and could be stored just once.
That would cut the size of the symbol from 11 words to 7.
Bitmaps with the same bits could be stored just once for a given symbol.
That would cut the size of the symbol from 7 words to 4.
A global dedup might be interesting too but this local dedup might be an easier first
step.
In aggregate these changes would be a 4x reduction for this simple case and probably at
least 2x overall.
Should do for Go 1.3 to reduce memory footprint but not immediately urgent.</pre> | 0 |
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-serial/1478/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-serial/1478/</a></p>
<p dir="auto">Failed: [k8s.io] [HPA] Horizontal pod autoscaling (scale resource: CPU) [k8s.io] [Serial] [Slow] ReplicaSet Should scale from 5 pods to 3 pods and from 3 to 1 and verify decision stability {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:64
Expected error:
<*errors.errorString | 0xc8212e98d0>: {
s: "Only 0 pods started out of 1",
}
Only 0 pods started out of 1
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:64
Expected error:
<*errors.errorString | 0xc8212e98d0>: {
s: "Only 0 pods started out of 1",
}
Only 0 pods started out of 1
not to have occurred
</code></pre></div> | <p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-serial/1446/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-serial/1446/</a></p>
<p dir="auto">Failed: [k8s.io] [HPA] Horizontal pod autoscaling (scale resource: CPU) [k8s.io] [Serial] [Slow] Deployment Should scale from 1 pod to 3 pods and from 3 to 5 and verify decision stability {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:50
Expected error:
<*errors.errorString | 0xc820c91020>: {
s: "Only 0 pods started out of 1",
}
Only 0 pods started out of 1
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:50
Expected error:
<*errors.errorString | 0xc820c91020>: {
s: "Only 0 pods started out of 1",
}
Only 0 pods started out of 1
not to have occurred
</code></pre></div> | 1 |
<ul dir="auto">
<li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: v3.0.0</li>
<li>Operating System (Platform and Version): Win 10 x64<br>
I'm using VS code for developing.</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
Working without any error.</p>
<p dir="auto"><strong>Actual behavior</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[18244:0919/160757.998:ERROR:CONSOLE(22)] "Empty response arrived for script 'chrome-devtools://devtools/remote/serve_file/@164c37e3f235134c88e80fac2a182cfba3f07f00/product_registry_impl/product_registry_impl_module.js'", source: chrome-devtools://devtools/bundled/shell.js (22)
[18244:0919/160757.999:ERROR:CONSOLE(106)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/shell.js (106)"><pre class="notranslate"><code class="notranslate">[18244:0919/160757.998:ERROR:CONSOLE(22)] "Empty response arrived for script 'chrome-devtools://devtools/remote/serve_file/@164c37e3f235134c88e80fac2a182cfba3f07f00/product_registry_impl/product_registry_impl_module.js'", source: chrome-devtools://devtools/bundled/shell.js (22)
[18244:0919/160757.999:ERROR:CONSOLE(106)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/shell.js (106)
</code></pre></div>
<p dir="auto"><strong>To Reproduce</strong><br>
Clone electron-quick-start. Start project (npm start). Open chrome dev-tools (ctrl+shift+i), switch to Network tab and punch F5. And error will appears in terminal.</p> | <ul dir="auto">
<li>Electron version: 2.0.0-beta.1 & 2.0.0-beta-2</li>
<li>Operating system: macOS High 10.13.3 (17D102)</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Regardless of any security related options (and even when CSP is not set in head of the page) devtools should be able to download it's resources correctly.</p>
<p dir="auto">This might only apply when custom protocols are registered (and possible when used to load at least one resource not necessarily the actual page).</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Devtools stderrs this when first opened (⌘⌥I) after page loads without issues:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[50393:0308/191909.964381:ERROR:CONSOLE(0)] "Failed to load https://chrome-devtools-frontend.appspot.com/serve_file/@7accc8730b0f99b5e7c0702ea89d1fa7c17bfe33/product_registry_impl/product_registry_impl_module.js: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'chrome-devtools://devtools' is therefore not allowed access. The response had HTTP status code 404.", source: chrome-devtools://devtools/bundled/inspector.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@7accc8730b0f99b5e7c0702ea89d1fa7c17bfe33/&can_dock=true&toolbarColor=rgba(223,223,223,1)&textColor=rgba(0,0,0,1)&experiments=true (0)
[50393:0308/191909.964523:ERROR:CONSOLE(22)] "Empty response arrived for script 'https://chrome-devtools-frontend.appspot.com/serve_file/@7accc8730b0f99b5e7c0702ea89d1fa7c17bfe33/product_registry_impl/product_registry_impl_module.js'", source: chrome-devtools://devtools/bundled/inspector.js (22)"><pre class="notranslate"><code class="notranslate">[50393:0308/191909.964381:ERROR:CONSOLE(0)] "Failed to load https://chrome-devtools-frontend.appspot.com/serve_file/@7accc8730b0f99b5e7c0702ea89d1fa7c17bfe33/product_registry_impl/product_registry_impl_module.js: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'chrome-devtools://devtools' is therefore not allowed access. The response had HTTP status code 404.", source: chrome-devtools://devtools/bundled/inspector.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@7accc8730b0f99b5e7c0702ea89d1fa7c17bfe33/&can_dock=true&toolbarColor=rgba(223,223,223,1)&textColor=rgba(0,0,0,1)&experiments=true (0)
[50393:0308/191909.964523:ERROR:CONSOLE(22)] "Empty response arrived for script 'https://chrome-devtools-frontend.appspot.com/serve_file/@7accc8730b0f99b5e7c0702ea89d1fa7c17bfe33/product_registry_impl/product_registry_impl_module.js'", source: chrome-devtools://devtools/bundled/inspector.js (22)
</code></pre></div>
<p dir="auto">Then it constantly stderrs the same message when using devtools (possible just the console):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[50393:0308/191909.964873:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191909.965058:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191909.965236:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191909.965395:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191909.965453:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191915.876576:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191915.876628:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191915.876707:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191915.876741:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191915.876808:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)"><pre class="notranslate"><code class="notranslate">[50393:0308/191909.964873:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191909.965058:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191909.965236:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191909.965395:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191909.965453:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191915.876576:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191915.876628:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191915.876707:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191915.876741:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
[50393:0308/191915.876808:ERROR:CONSOLE(105)] "Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry", source: chrome-devtools://devtools/bundled/inspector.js (105)
</code></pre></div>
<h3 dir="auto">How to reproduce</h3>
<ul dir="auto">
<li>
<p dir="auto">Register custom protocol (ie protocol.registerStreamProtocol) doesn't matter if it includes a 'Access-Control-Allow-Origin=*' in response.</p>
</li>
<li>
<p dir="auto">Make sure there is no CSP meta tag in head of page.</p>
</li>
<li>
<p dir="auto">Load page either using loadFile or loadURL over custom protocol.</p>
</li>
</ul> | 1 |
<p dir="auto">To improve the API docs and to reduce duplicated documentation work, it seems to be useful to link to certain parts of the documentation from the API docs (for example, as stated in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="49091816" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/12496" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/12496/hovercard" href="https://github.com/symfony/symfony/pull/12496">#12496</a>, linking to the cookbook that explains how to use Form events easily adds additional value to the API docs of the existing events without the need to duplicate information).</p> | <table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>3.2.13</td>
</tr>
</tbody>
</table>
<p dir="auto">I have implemented form field for collection with allow_delete = true, allow_add = true and by_reference = false options.</p>
<p dir="auto">I added needed js code to delete elements and append forms for new objects of this collection from prototype.</p>
<p dir="auto">This works as I expected, but when I submit a few subforms for this collection with indexes not in order (for example 0, 1, 3 instead of 0, 1, 2), then errors from subform with index 3 are assigned to index 2 (which not exists), but subforms are rendered with indexes 0, 1, 3 (same as before submit) after invalid form submit...</p>
<p dir="auto">I'm sure that it worked correctly in Symfony (errors from subform with index 3 are assigned to subform with same index).</p> | 0 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/28860670/35555153-f9bf4c82-05a6-11e8-8a64-b32e1ba14643.png"><img src="https://user-images.githubusercontent.com/28860670/35555153-f9bf4c82-05a6-11e8-8a64-b32e1ba14643.png" alt="staticshot_30-01-2018_10-15-12" style="max-width: 100%;"></a></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Exact highlight underline alignment all the time (even after heat death of the universe).</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">(In my app) after page reload the line goes under the second tab. It fixes itself on second render or on window resize.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">I don't have a small project to reproduce this. I made only this video <a href="https://streamable.com/swsom" rel="nofollow">https://streamable.com/swsom</a><br>
If you have no idea why it happens just close this issue (I will try to fix it later).</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<Tabs
indicatorColor="primary"
textColor="primary"
value={this.props.activeTab}
onChange={this.onTabsChange}
fullWidth
>
<Tab label="Sign In" value="login" />
<Tab label="Sign Up" value="register" />
</Tabs>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">Tabs</span>
<span class="pl-c1">indicatorColor</span>="<span class="pl-s">primary</span>"
<span class="pl-c1">textColor</span>="<span class="pl-s">primary</span>"
<span class="pl-c1">value</span>=<span class="pl-s">{this.props.activeTab}</span>
<span class="pl-c1">onChange</span>=<span class="pl-s">{this.onTabsChange}</span>
<span class="pl-c1">fullWidth</span>
<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">Tab</span> <span class="pl-c1">label</span>="<span class="pl-s">Sign In</span>" <span class="pl-c1">value</span>="<span class="pl-s">login</span>" />
<span class="pl-kos"><</span><span class="pl-ent">Tab</span> <span class="pl-c1">label</span>="<span class="pl-s">Sign Up</span>" <span class="pl-c1">value</span>="<span class="pl-s">register</span>" />
<span class="pl-kos"></</span><span class="pl-ent">Tabs</span><span class="pl-kos">></span></pre></div>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.31</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
<tr>
<td>browser</td>
<td>Chromium 63.0.3239.132</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">Pass a class with styles to component and change label color</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">in any possible way based from material-ui docs in 0.15 and 1.0 version it is impossible to change/override a color of label</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>create and style constant and use withStyle HOC</li>
</ol>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const styles = theme => ({
button2: {
color: '#ec5c5d',
fontSize:"15px",
'&:hover': {
color: '#ec5c5d',
},
label: {
color: '#ec5c5d',
},
InputLabel: {
root: {
color: '#ec5c5d',
}
},
MuiInputLabel: {
root: {
color: '#ec5c5d',
}
}
}
})"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-en">styles</span> <span class="pl-c1">=</span> <span class="pl-s1">theme</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">button2</span>: <span class="pl-kos">{</span>
<span class="pl-c1">color</span>: <span class="pl-s">'#ec5c5d'</span><span class="pl-kos">,</span>
<span class="pl-c1">fontSize</span>:<span class="pl-s">"15px"</span><span class="pl-kos">,</span>
<span class="pl-s">'&:hover'</span>: <span class="pl-kos">{</span>
<span class="pl-c1">color</span>: <span class="pl-s">'#ec5c5d'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">label</span>: <span class="pl-kos">{</span>
<span class="pl-c1">color</span>: <span class="pl-s">'#ec5c5d'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">InputLabel</span>: <span class="pl-kos">{</span>
<span class="pl-c1">root</span>: <span class="pl-kos">{</span>
<span class="pl-c1">color</span>: <span class="pl-s">'#ec5c5d'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">MuiInputLabel</span>: <span class="pl-kos">{</span>
<span class="pl-c1">root</span>: <span class="pl-kos">{</span>
<span class="pl-c1">color</span>: <span class="pl-s">'#ec5c5d'</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>
<ol start="2" dir="auto">
<li><code class="notranslate"><TextField id="breeders-races-filter-search" label="Search race" fullWidth margin="normal" className={this.props.classes.button2} /></code></li>
<li>text-size works, colors do not !</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">Impossible to use it in system, we are close to remove whole lib and rewrite over 20k of lines.</p>
<h2 dir="auto">Your Environment</h2>
<p dir="auto">Mac os x<br>
next.js</p>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.00</td>
</tr>
<tr>
<td>React</td>
<td>16</td>
</tr>
<tr>
<td>browser</td>
<td>chrome current</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">I'm trying to use both fitCenter and placeholder but the image does not get resized.</p>
<p dir="auto">This code works fine (image is scaled down, aspect ratio is correct):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Glide.with(this).load(url).fitCenter().into(mImage);"><pre class="notranslate"><code class="notranslate">Glide.with(this).load(url).fitCenter().into(mImage);
</code></pre></div>
<p dir="auto">This code does not work (placeholder is correct, but loaded image appears squished, aspect ratio is wrong):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Glide.with(this).load(url).placeholder(R.drawable.placeholder).fitCenter().into(mImage);"><pre class="notranslate"><code class="notranslate">Glide.with(this).load(url).placeholder(R.drawable.placeholder).fitCenter().into(mImage);
</code></pre></div> | <p dir="auto"><strong>Glide Version/Integration library (if any)</strong>: 3.5.2<br>
<strong>Device/Android Version</strong>: S4/4.4<br>
<strong>Issue details/Repro steps</strong>: Load a different sized thumbnail and image, or placeholder and image and note the result:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2906988/6538023/e027582a-c45c-11e4-8758-abb9d7a67c69.gif"><img src="https://cloud.githubusercontent.com/assets/2906988/6538023/e027582a-c45c-11e4-8758-abb9d7a67c69.gif" alt="demo" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Glide load line</strong>:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Delay extends UnitTransformation {
private final int sleepTime;
public Delay(int sleepTime) { this.sleepTime = sleepTime; }
@Override public Resource transform(Resource resource, int outWidth, int outHeight) {
try { Thread.sleep(sleepTime); } catch (InterruptedException ex) {}
return super.transform(resource, outWidth, outHeight);
}
}
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final ImageView image = new ImageView(this);
setContentView(image);
// Saved as R.drawable.placeholder
String placeholder = "http://placehold.it/300x500/eedddd.png&text=PLACEHOLDER";
// Square image
String thumb = "http://placehold.it/300x300/eeeedd.png&text=THUMB";
// Wide image
final String full = "http://placehold.it/300x100/eedddd.png&text=FULL";
// Prepared request with unimportant clutter
final DrawableRequestBuilder<String> req = Glide
.with(this)
.fromString()
.diskCacheStrategy(DiskCacheStrategy.SOURCE) // disable network delay for demo
.skipMemoryCache(true) // make sure transform runs for demo
.crossFade(2000) // default, just stretch time for noticability
;
req.clone()
.thumbnail(req.clone()
.transform(new Delay(500)) // wait a little
.load(thumb)
)
.transform(new Delay(1000)) // wait before going from thumbnail to image
//.dontAnimate() // solves the problem
.load(full)
.into(image);
image.setOnClickListener(new OnClickListener() {
@Override public void onClick(View v) {
req.clone()
.load(full)
.placeholder(R.drawable.placeholder)
.transform(new Delay(1000))
//.animate(R.anim.abc_fade_in) // also solves the problem
.into(image);
}
});"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Delay</span> <span class="pl-k">extends</span> <span class="pl-smi">UnitTransformation</span> {
<span class="pl-k">private</span> <span class="pl-k">final</span> <span class="pl-smi">int</span> <span class="pl-s1">sleepTime</span>;
<span class="pl-k">public</span> <span class="pl-smi">Delay</span>(<span class="pl-smi">int</span> <span class="pl-s1">sleepTime</span>) { <span class="pl-smi">this</span>.<span class="pl-s1">sleepTime</span> = <span class="pl-s1">sleepTime</span>; }
<span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">Resource</span> <span class="pl-en">transform</span>(<span class="pl-smi">Resource</span> <span class="pl-s1">resource</span>, <span class="pl-smi">int</span> <span class="pl-s1">outWidth</span>, <span class="pl-smi">int</span> <span class="pl-s1">outHeight</span>) {
<span class="pl-k">try</span> { <span class="pl-smi">Thread</span>.<span class="pl-en">sleep</span>(<span class="pl-s1">sleepTime</span>); } <span class="pl-k">catch</span> (<span class="pl-smi">InterruptedException</span> <span class="pl-s1">ex</span>) {}
<span class="pl-k">return</span> <span class="pl-en">super</span>.<span class="pl-en">transform</span>(<span class="pl-s1">resource</span>, <span class="pl-s1">outWidth</span>, <span class="pl-s1">outHeight</span>);
}
}
<span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">protected</span> <span class="pl-smi">void</span> <span class="pl-s1">onCreate</span>(<span class="pl-smi">Bundle</span> <span class="pl-s1">savedInstanceState</span>) {
<span class="pl-en">super</span>.<span class="pl-en">onCreate</span>(<span class="pl-s1">savedInstanceState</span>);
<span class="pl-k">final</span> <span class="pl-smi">ImageView</span> <span class="pl-s1">image</span> = <span class="pl-k">new</span> <span class="pl-smi">ImageView</span>(<span class="pl-smi">this</span>);
<span class="pl-en">setContentView</span>(<span class="pl-s1">image</span>);
<span class="pl-c">// Saved as R.drawable.placeholder</span>
<span class="pl-smi">String</span> <span class="pl-s1">placeholder</span> = <span class="pl-s">"http://placehold.it/300x500/eedddd.png&text=PLACEHOLDER"</span>;
<span class="pl-c">// Square image</span>
<span class="pl-smi">String</span> <span class="pl-s1">thumb</span> = <span class="pl-s">"http://placehold.it/300x300/eeeedd.png&text=THUMB"</span>;
<span class="pl-c">// Wide image</span>
<span class="pl-k">final</span> <span class="pl-smi">String</span> <span class="pl-s1">full</span> = <span class="pl-s">"http://placehold.it/300x100/eedddd.png&text=FULL"</span>;
<span class="pl-c">// Prepared request with unimportant clutter</span>
<span class="pl-k">final</span> <span class="pl-smi">DrawableRequestBuilder</span><<span class="pl-smi">String</span>> <span class="pl-s1">req</span> = <span class="pl-smi">Glide</span>
.<span class="pl-en">with</span>(<span class="pl-smi">this</span>)
.<span class="pl-en">fromString</span>()
.<span class="pl-en">diskCacheStrategy</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">SOURCE</span>) <span class="pl-c">// disable network delay for demo</span>
.<span class="pl-en">skipMemoryCache</span>(<span class="pl-c1">true</span>) <span class="pl-c">// make sure transform runs for demo</span>
.<span class="pl-en">crossFade</span>(<span class="pl-c1">2000</span>) <span class="pl-c">// default, just stretch time for noticability</span>
;
<span class="pl-s1">req</span>.<span class="pl-en">clone</span>()
.<span class="pl-en">thumbnail</span>(<span class="pl-s1">req</span>.<span class="pl-en">clone</span>()
.<span class="pl-en">transform</span>(<span class="pl-k">new</span> <span class="pl-smi">Delay</span>(<span class="pl-c1">500</span>)) <span class="pl-c">// wait a little</span>
.<span class="pl-en">load</span>(<span class="pl-s1">thumb</span>)
)
.<span class="pl-en">transform</span>(<span class="pl-k">new</span> <span class="pl-smi">Delay</span>(<span class="pl-c1">1000</span>)) <span class="pl-c">// wait before going from thumbnail to image</span>
<span class="pl-c">//.dontAnimate() // solves the problem</span>
.<span class="pl-en">load</span>(<span class="pl-s1">full</span>)
.<span class="pl-en">into</span>(<span class="pl-s1">image</span>);
<span class="pl-s1">image</span>.<span class="pl-en">setOnClickListener</span>(<span class="pl-k">new</span> <span class="pl-smi">OnClickListener</span>() {
<span class="pl-c1">@</span><span class="pl-c1">Override</span> <span class="pl-k">public</span> <span class="pl-smi">void</span> <span class="pl-en">onClick</span>(<span class="pl-smi">View</span> <span class="pl-s1">v</span>) {
<span class="pl-s1">req</span>.<span class="pl-en">clone</span>()
.<span class="pl-en">load</span>(<span class="pl-s1">full</span>)
.<span class="pl-en">placeholder</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">placeholder</span>)
.<span class="pl-en">transform</span>(<span class="pl-k">new</span> <span class="pl-smi">Delay</span>(<span class="pl-c1">1000</span>))
<span class="pl-c">//.animate(R.anim.abc_fade_in) // also solves the problem</span>
.<span class="pl-en">into</span>(<span class="pl-s1">image</span>);
}
});</pre></div>
<p dir="auto">By removing all the delaying parts, the end result is better, but the now the thumbnail is messed up:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2906988/6538022/e0252d02-c45c-11e4-82a6-6f13f3a215af.gif"><img src="https://cloud.githubusercontent.com/assets/2906988/6538022/e0252d02-c45c-11e4-82a6-6f13f3a215af.gif" alt="demo3" data-animated-image="" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto"><strong>Apache Airflow version</strong>: 2.0.0</p>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">While investigating issues relating to task getting stuck, I saw this sql error in postgres logs. I am not entirely sure of what it impacts but I thought of letting you know.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: column "connection.password" must appear in the GROUP BY clause or be used in an aggregate function at character 8
STATEMENT: SELECT connection.password AS connection_password, connection.extra AS connection_extra, connection.id AS connection_id, connection.conn_id AS connection_conn_id, connection.conn_type AS connection_conn_type, connection.description AS connection_description, connection.host AS connection_host, connection.schema AS connection_schema, connection.login AS connection_login, connection.port AS connection_port, connection.is_encrypted AS connection_is_encrypted, connection.is_extra_encrypted AS connection_is_extra_encrypted, count(connection.conn_id) AS count_1
FROM connection GROUP BY connection.conn_id
HAVING count(connection.conn_id) > 1
ERROR: current transaction is aborted, commands ignored until end of transaction block
STATEMENT: SELECT connection.password AS connection_password, connection.extra AS connection_extra, connection.id AS connection_id, connection.conn_id AS connection_conn_id, connection.conn_type AS connection_conn_type, connection.description AS connection_description, connection.host AS connection_host, connection.schema AS connection_schema, connection.login AS connection_login, connection.port AS connection_port, connection.is_encrypted AS connection_is_encrypted, connection.is_extra_encrypted AS connection_is_extra_encrypted
FROM connection
WHERE connection.conn_type IS NULL"><pre class="notranslate"><code class="notranslate">ERROR: column "connection.password" must appear in the GROUP BY clause or be used in an aggregate function at character 8
STATEMENT: SELECT connection.password AS connection_password, connection.extra AS connection_extra, connection.id AS connection_id, connection.conn_id AS connection_conn_id, connection.conn_type AS connection_conn_type, connection.description AS connection_description, connection.host AS connection_host, connection.schema AS connection_schema, connection.login AS connection_login, connection.port AS connection_port, connection.is_encrypted AS connection_is_encrypted, connection.is_extra_encrypted AS connection_is_extra_encrypted, count(connection.conn_id) AS count_1
FROM connection GROUP BY connection.conn_id
HAVING count(connection.conn_id) > 1
ERROR: current transaction is aborted, commands ignored until end of transaction block
STATEMENT: SELECT connection.password AS connection_password, connection.extra AS connection_extra, connection.id AS connection_id, connection.conn_id AS connection_conn_id, connection.conn_type AS connection_conn_type, connection.description AS connection_description, connection.host AS connection_host, connection.schema AS connection_schema, connection.login AS connection_login, connection.port AS connection_port, connection.is_encrypted AS connection_is_encrypted, connection.is_extra_encrypted AS connection_is_extra_encrypted
FROM connection
WHERE connection.conn_type IS NULL
</code></pre></div>
<p dir="auto"><strong>How to reproduce it</strong>:</p>
<ol dir="auto">
<li>Run <code class="notranslate">docker-compose run initdb</code></li>
<li>Run <code class="notranslate">docker-compose run upgradedb</code></li>
</ol>
<details> <summary> Here's my docker-compose </summary>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="version: "3.2"
networks:
airflow:
services:
postgres:
container_name: af_postgres
image: postgres:9.6
environment:
- POSTGRES_USER=airflow
- POSTGRES_DB=airflow
- POSTGRES_PASSWORD=airflow
volumes:
- ./postgresql/data:/var/lib/postgresql/data
command: >
postgres
-c listen_addresses=*
-c logging_collector=on
-c log_destination=stderr
networks:
- airflow
initdb:
container_name: af_initdb
image: docker.io/apache/airflow:2.0.0-python3.7
environment:
- AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@postgres:5432/airflow
depends_on:
- postgres
entrypoint: /bin/bash
command: -c "airflow db init"
networks:
- airflow
upgradedb:
container_name: af_upgradedb
image: docker.io/apache/airflow:2.0.0-python3.7
environment:
- AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@postgres:5432/airflow
depends_on:
- postgres
entrypoint: /bin/bash
command: -c "airflow db upgrade"
networks:
- airflow"><pre class="notranslate"><code class="notranslate">version: "3.2"
networks:
airflow:
services:
postgres:
container_name: af_postgres
image: postgres:9.6
environment:
- POSTGRES_USER=airflow
- POSTGRES_DB=airflow
- POSTGRES_PASSWORD=airflow
volumes:
- ./postgresql/data:/var/lib/postgresql/data
command: >
postgres
-c listen_addresses=*
-c logging_collector=on
-c log_destination=stderr
networks:
- airflow
initdb:
container_name: af_initdb
image: docker.io/apache/airflow:2.0.0-python3.7
environment:
- AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@postgres:5432/airflow
depends_on:
- postgres
entrypoint: /bin/bash
command: -c "airflow db init"
networks:
- airflow
upgradedb:
container_name: af_upgradedb
image: docker.io/apache/airflow:2.0.0-python3.7
environment:
- AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@postgres:5432/airflow
depends_on:
- postgres
entrypoint: /bin/bash
command: -c "airflow db upgrade"
networks:
- airflow
</code></pre></div>
</details>
<p dir="auto"><strong>Anything else we need to know</strong>:</p>
<p dir="auto">Upon looking the code, I believe having <code class="notranslate">Connection.conn_id</code> <a href="https://github.com/apache/airflow/blob/ab5f770bfcd8c690cbe4d0825896325aca0beeca/airflow/utils/db.py#L613">here</a> will resolve the sql syntax error.</p> | <h3 dir="auto">Apache Airflow Provider(s)</h3>
<p dir="auto">google</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto">7.0.0</p>
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.2.5</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">google composer</p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Composer</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">What happened</h3>
<p dir="auto">BigQueryInsertJobOperator can not be used to run SQL query without specifying destination table explicitly in the operator</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""query": {
"query": f"""
INSERT INTO `{{{{params.project}}}}-{os.getenv('COMPOSER_ENVIRONMENT_STAGE')}.{{{{params.dataset}}}}.{{{{params.table_order_objects}}}}`
SELECT
*
FROM
`{{{{params.project}}}}-{os.getenv('COMPOSER_ENVIRONMENT_STAGE')}.{{{{params.dataset}}}}.{{{{params.table_order_objects}}}}_SZ`;
TRUNCATE TABLE `{{{{params.project}}}}-{os.getenv('COMPOSER_ENVIRONMENT_STAGE')}.{{{{params.dataset}}}}.{{{{params.table_order_objects}}}}_SZ`;
""",
"useLegacySql": False,
}
Traceback (most recent call last):
File "/opt/python3.8/lib/python3.8/site-packages/airflow/providers/google/cloud/operators/bigquery.py", line 2269, in execute
table = job.to_api_repr()["configuration"]["query"]["destinationTable"]"><pre class="notranslate"><code class="notranslate">"query": {
"query": f"""
INSERT INTO `{{{{params.project}}}}-{os.getenv('COMPOSER_ENVIRONMENT_STAGE')}.{{{{params.dataset}}}}.{{{{params.table_order_objects}}}}`
SELECT
*
FROM
`{{{{params.project}}}}-{os.getenv('COMPOSER_ENVIRONMENT_STAGE')}.{{{{params.dataset}}}}.{{{{params.table_order_objects}}}}_SZ`;
TRUNCATE TABLE `{{{{params.project}}}}-{os.getenv('COMPOSER_ENVIRONMENT_STAGE')}.{{{{params.dataset}}}}.{{{{params.table_order_objects}}}}_SZ`;
""",
"useLegacySql": False,
}
Traceback (most recent call last):
File "/opt/python3.8/lib/python3.8/site-packages/airflow/providers/google/cloud/operators/bigquery.py", line 2269, in execute
table = job.to_api_repr()["configuration"]["query"]["destinationTable"]
</code></pre></div>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto">To run a SQL a destination is not necessary to be specified</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Airflow 2.2.5 and airflow provider 7.0.0, BigQueryInsertJobOperator without specifying destinationTable</p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | 0 |
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>no</td>
</tr>
<tr>
<td>Feature request?</td>
<td>yes</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>4.x</td>
</tr>
</tbody>
</table>
<h3 dir="auto">Introduction</h3>
<p dir="auto">Symfony 3.3 introduced a convention of naming services with their FQCN. The update pathway for legacy applications is simple: just start using new naming convention and slowly all services will get new names.</p>
<h3 dir="auto">The problem</h3>
<p dir="auto">While refactoring parts of the application it's worth to clean up a little bit. One of the steps which I perform is ensuring services are names by their FQCNs (which simplifies the configuration due to autoregistration). However, especially for public services, I cannot ensure old names aren't used somewhere.</p>
<h3 dir="auto">Solution</h3>
<p dir="auto">Long time ago I assumed <code class="notranslate">deprecated</code> tag can be used on aliases - 4 proved me wrong nicely throwing <code class="notranslate"> The configuration key "deprecated" is unsupported</code>.<br>
What if we actually introduced <code class="notranslate">deprecated</code> key on aliases to mark them as deprecated while the service itself stays non-deprecated?</p> | <p dir="auto">Would love to hear your feedback. Thanks!</p> | 0 |
<p dir="auto"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare" rel="nofollow"><code class="notranslate">String.prototype.localeCompare()</code> on MDN</a></p>
<p dir="auto">I noticed that some results differ significantly from Chrome in test cases when using this method. I'm not sure if/how this is standardized or where the responsibility lies, but I wanted to surface this because it seems like a bug.</p>
<p dir="auto">Here's an example you can copy+paste to run in a browser console or Deno REPL:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(() => {
const pairs = [
['a', 'á'],
['á', 'a'],
['a', 'b'],
['b', 'a'],
['á', 'b'],
['b', 'á'],
];
const compare = (a, b) => a.localeCompare(b, 'en-US', {sensitivity: 'base'});
const results = pairs
.map(pair => [...pair, compare(...pair)].join(' '))
.join('\n');
console.log(results);
})();"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">pairs</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span>
<span class="pl-kos">[</span><span class="pl-s">'a'</span><span class="pl-kos">,</span> <span class="pl-s">'á'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span><span class="pl-s">'á'</span><span class="pl-kos">,</span> <span class="pl-s">'a'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span><span class="pl-s">'a'</span><span class="pl-kos">,</span> <span class="pl-s">'b'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span><span class="pl-s">'b'</span><span class="pl-kos">,</span> <span class="pl-s">'a'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span><span class="pl-s">'á'</span><span class="pl-kos">,</span> <span class="pl-s">'b'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span><span class="pl-s">'b'</span><span class="pl-kos">,</span> <span class="pl-s">'á'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-en">compare</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">a</span><span class="pl-kos">,</span> <span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">a</span><span class="pl-kos">.</span><span class="pl-en">localeCompare</span><span class="pl-kos">(</span><span class="pl-s1">b</span><span class="pl-kos">,</span> <span class="pl-s">'en-US'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">sensitivity</span>: <span class="pl-s">'base'</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">results</span> <span class="pl-c1">=</span> <span class="pl-s1">pairs</span>
<span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-s1">pair</span> <span class="pl-c1">=></span> <span class="pl-kos">[</span>...<span class="pl-s1">pair</span><span class="pl-kos">,</span> <span class="pl-en">compare</span><span class="pl-kos">(</span>...<span class="pl-s1">pair</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s">' '</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s">'\n'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">results</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>
<table role="table">
<thead>
<tr>
<th>a</th>
<th>b</th>
<th align="right">Chrome</th>
<th align="right">Deno</th>
</tr>
</thead>
<tbody>
<tr>
<td>a</td>
<td>á</td>
<td align="right">0</td>
<td align="right">-128</td>
</tr>
<tr>
<td>á</td>
<td>a</td>
<td align="right">0</td>
<td align="right">128</td>
</tr>
<tr>
<td>a</td>
<td>b</td>
<td align="right">-1</td>
<td align="right">-1</td>
</tr>
<tr>
<td>b</td>
<td>a</td>
<td align="right">1</td>
<td align="right">1</td>
</tr>
<tr>
<td>á</td>
<td>b</td>
<td align="right">-1</td>
<td align="right">127</td>
</tr>
<tr>
<td>b</td>
<td>á</td>
<td align="right">1</td>
<td align="right">-127</td>
</tr>
</tbody>
</table>
<p dir="auto">Chrome <code class="notranslate">83.0.4103.97</code><br>
Deno <code class="notranslate">1.1.0</code></p>
<p dir="auto">Specifically, note <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/Collator#:~:text=Only%20strings%20that%20differ%20in%20base%20letters%20compare%20as%20unequal" rel="nofollow">the description</a> for using the value "base" for the "sensitivity" option:</p>
<blockquote>
<p dir="auto">Only strings that differ in base letters compare as unequal. Examples: <code class="notranslate">a ≠ b</code>, <code class="notranslate">a = á</code>, <code class="notranslate">a = A</code></p>
</blockquote>
<p dir="auto">In the example above for <code class="notranslate">a</code> and <code class="notranslate">á</code>, Chrome returns <code class="notranslate">0</code> (equal), but Deno does not.</p> | <p dir="auto">As seen in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="422116599" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1952" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1952/hovercard" href="https://github.com/denoland/deno/issues/1952">#1952</a> / <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="405562913" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1636" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1636/hovercard" href="https://github.com/denoland/deno/issues/1636">#1636</a> ICU needs to be added in Deno build.</p>
<p dir="auto">Switching this flag to true maybe: <a href="https://github.com/denoland/deno/blob/master/.gn#L50">https://github.com/denoland/deno/blob/master/.gn#L50</a> ?</p>
<p dir="auto">ref: <a href="https://v8.dev/docs/i18n" rel="nofollow">https://v8.dev/docs/i18n</a></p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">I think there are some things in <a href="https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/hmm.py">https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/hmm.py</a> that could be improved.</p>
<h2 dir="auto">_BaseHMM.algorithm handling</h2>
<ul dir="auto">
<li>_BaseHMM.decode has an 'algorithm' argument that <em>doesn't</em> affect decoding algorithm if algorithm is already set in constructor OR if _BaseHMM.fit was called.</li>
<li>Getting/setting of an algorithm in _BaseHMM code often doesn't use property (there are direct accesses to _algorithm.</li>
<li>It is not possible to change a list of supported algorithms because decoder_algorithms is not an attribute of a class (and it is an immutable tuple), so the purpose of this variable is not clear.</li>
</ul>
<p dir="auto">Ideas:</p>
<ul dir="auto">
<li>Make decode_viterbi and decode_map methods public OR make 'algorithm' argument override default algorithm (this would require changing this argument to None by default).<br>
I'd prefer making decode_viterbi and decode_map public because flags that totally change what function does are bad API (see e.g. <a href="http://mail.python.org/pipermail/python-dev/2005-August/055907.html" rel="nofollow">http://mail.python.org/pipermail/python-dev/2005-August/055907.html</a>). Is it correct that "decode" is required in first place because of grid search, etc.?</li>
<li>always use a property to access 'algorithm' to make code cleaner;</li>
<li>kill 'decoder_algorithms' (and use simple ifs) OR make it class attribute of _BaseHMM.</li>
</ul>
<p dir="auto">I don't understand why _BaseHMM.fit sets algorithm.</p>
<h2 dir="auto">Docstrings</h2>
<ul dir="auto">
<li>_BaseHMM._decode_map docstring tells: "Find most likely state sequence corresponding to <code class="notranslate">obs</code>". In my understanding this is a bit misleading because (unlike _BaseHMM._decode_viterbi) likelihood of individual states is maximized, not the likelihood of a sequence.</li>
<li><code class="notranslate">params</code> and <code class="notranslate">init_params</code> are not properly documented. For example, for MultinomialHMM documented 'c' is not valid, and the most interesting 'e' is not documented;</li>
<li>module docstring tells us the module is to be removed in scikit-learn 0.11, but it is 0.14dev and it was not removed - what are the plans for sklearn.hmm?</li>
</ul>
<p dir="auto">Ideas: fix this.</p>
<h2 dir="auto">fit method</h2>
<ul dir="auto">
<li>There is no supervised <code class="notranslate">fit</code> variant for MultinomialHMM.</li>
<li>'obs' parameter name is quite obscure because it means different things in <code class="notranslate">fit</code> vs all other methods: it should be a list of sequences for <code class="notranslate">fit</code> and an individual sequence in other methods.</li>
<li>I don't get a note in _BaseHMM.fit docstring: _BaseHMM shouldn't care about covars_prior, and there is no pruning in current implementation.</li>
</ul>
<p dir="auto">Ideas:</p>
<ul dir="auto">
<li>change _BaseHMM.fit signature to <code class="notranslate">def fit(self, X, y=None)</code></li>
</ul>
<p dir="auto">My knowledge is lacking and I'm clueless about GaussianHMM and GMMHMM - does supervised learning make sense for them?</p>
<h2 dir="auto">Normalization</h2>
<ul dir="auto">
<li>I think there are cases when "hard" zeros in transition and emission matrices are wanted, and there are cases when matrices should be sparse, but sklearn.hmm uncomditionally adds adds EPS to each element of transmat and emissionprob, and this could be an issue.</li>
</ul>
<p dir="auto">I don't know if normalization is a real issue - maybe there are better solutions for sparse problems (like n-gram POS tagging with |tagset| > 1000) - but sklearn.hmm is currently unusable for such problems at least because of normalization.</p>
<h1 dir="auto">misc</h1>
<ul dir="auto">
<li>I think default _compute_log_likelihood and _generate_sample_from_state implementations should raise NotImplementedError instead of returning None.</li>
<li>tiny cosmetic changes to _hmmc.pyx: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kmike/scikit-learn/commit/ae0c4aba04b1ea6d73968991aae3d855a51daa58/hovercard" href="https://github.com/kmike/scikit-learn/commit/ae0c4aba04b1ea6d73968991aae3d855a51daa58">kmike@<tt>ae0c4ab</tt></a> (xrange -> range; unneeded dashes are removed)</li>
</ul>
<hr>
<p dir="auto">I'm looking for a feedback (and would be happy to submit a pull request with fixes to some of these issues if this make sense).</p> | <h4 dir="auto">Describe the workflow you want to enable</h4>
<p dir="auto">This is possibly a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="135590071" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/6424" data-hovercard-type="issue" data-hovercard-url="/scikit-learn/scikit-learn/issues/6424/hovercard" href="https://github.com/scikit-learn/scikit-learn/issues/6424">#6424</a>. I'd love to do a pipeline.fit(X) with a pandas dataframe with named columns, then a pipeline.get_feature_names() as input into an eli5 explainer, with scikit-learn being smart enough to call get_feature_names() for those transformers it makes sense to do so (OneHotEncoder, SelectFromModel, etc.)</p>
<h4 dir="auto">Describe your proposed solution</h4>
<p dir="auto">I'm not sure what a good solution might be -- one start might be to implement get_feature_names() for all transformers and return just the input column names if it doesn't change them, as would be the case for a Binarizer, for example.</p>
<h4 dir="auto">Describe alternatives you've considered, if relevant</h4>
<h4 dir="auto">Additional context</h4> | 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/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 native browser <code class="notranslate">select</code> element allows you to move to options by typing arbitrary characters when the select menu is open. The newly added <code class="notranslate">Select</code> component (which is greatly appreciated by the way!) does not support this functionality.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">When select menu is open, and I type the label of an option that is not selected, nothing happens.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Open a <code class="notranslate">Select</code> component</li>
<li>Start typing to select an option</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">Material UI is an amazing asset, but in pursuit of the new and shiny, let's not abandon something as fundamental as basic <code class="notranslate">select</code> functionality :)</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta-9</td>
</tr>
<tr>
<td>React</td>
<td>15.5.4</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 61.0.3163.79 (Official Build) (64-bit)</td>
</tr>
</tbody>
</table> | <h3 dir="auto">Problem description</h3>
<p dir="auto">Duplicate react with webpack post npm install update of material-ui, using webpack example.</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Install webpack example so it installs older 15.0 version, and 15.0.1 of react.<br>
After it working, npm install update to the latest MUI/REACT.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="invariant.js:38 Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs."><pre class="notranslate"><code class="notranslate">invariant.js:38 Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs.
</code></pre></div>
<p dir="auto">I noticed the dir "node_modules/material-ui/node_modules/react" did not exist in the older<br>
setup, but once npm updates, theres a duplicate of react on "node_modules/material-ui/node_modules/react" and "node_modules/react"</p>
<p dir="auto">rm -rf "node_modules/material-ui/node_modules/react" fixes the problem.</p>
<p dir="auto">But how to avoid it re-occurring?</p>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: 0.15.0 / 0.15.1</li>
<li>React: 15.0.1 / 15.3.1</li>
<li>Browser: Chrome</li>
</ul> | 0 |
<p dir="auto"><strong>I'm submitting a feature request</strong></p>
<p dir="auto"><strong>Current behavior</strong><br>
Now We can only pass strings to directive. And sometimes it is quite hard to test becouse you need to escape it and IDEs dont test it on fly.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
Here <a href="https://plnkr.co/edit/PIpQqCqp8pwKJD8g63Ha?p=preview" rel="nofollow">plank</a> that shows the problem</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Better code mantaining</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.3</li>
</ul>
<p dir="auto">Thank you.</p> | <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[* ] bug report
[ ] feature request
[ ] support request => 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
[ ] feature request
[ ] support request => 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>
Here's how I'm building a form input field<br>
Regular expression pattern:<br>
regexPattern:string is "/^\d{2}/\d{2}/\d{4}$/"</p>
<p dir="auto">group[question.key] = ['', Validators.compose([Validators.required,Validators.pattern(regexPattern)])];<br>
FormBuilder.group(group)</p>
<p dir="auto">During Debugging I see:<br>
regexPattern : "/^d{2}/d{2}/d{4}$/"<br>
{ "pattern": { "requiredPattern": "^/^d{2}/d{2}/d{4}$/$", "actualValue": "01/01/2001" } }</p>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
As you can see the requiredPattern adds an extra ^ at the beginning and a $ at the end. Validators.pattern(String) should accept a Regexp not a String. The regexPattern set was "/^\d{2}/\d{2}/\d{4}$/" but as you can see it's value while debugging is obvsiously requiredPattern": "^/^d{2}/d{2}/d{4}$/$"</p>
<p dir="auto">Validators.patterns(String) should instead accept a regular expression literal Validators.pattern(RegExp). It should have the same input signature as str.match(regexp) in javascript <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match</a></p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://plnkr.co" rel="nofollow">https://plnkr.co</a> or similar (you can use this template as a starting point: <a href="http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5" rel="nofollow">http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5</a>).</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.4</li>
<li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]</li>
<li><strong>Language:</strong> [TypeScript X.X]</li>
</ul> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">we updated from Symfony <code class="notranslate">2.6</code> to <code class="notranslate">2.8</code> with the choice options you can find below.<br>
We expected the label of our choice type should be hidden and just the value and the input element exists. In 2.6 this worked for us.</p>
<p dir="auto">When we upgraded to 2.8 (with the same options) the labels are shown again. The Problem is caused by an empty string in the view, not as expected <code class="notranslate">false</code>.</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$resolver->setDefaults([
'choices' => [1 => false, 2 => false, 3 => false, 4 => false, 5 => false],
'expanded' => true,
'placeholder' => false,
'required' => false,
]);"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>resolver</span>-><span class="pl-en">setDefaults</span>([
<span class="pl-s">'choices'</span> => [<span class="pl-c1">1</span> => <span class="pl-c1">false</span>, <span class="pl-c1">2</span> => <span class="pl-c1">false</span>, <span class="pl-c1">3</span> => <span class="pl-c1">false</span>, <span class="pl-c1">4</span> => <span class="pl-c1">false</span>, <span class="pl-c1">5</span> => <span class="pl-c1">false</span>],
<span class="pl-s">'expanded'</span> => <span class="pl-c1">true</span>,
<span class="pl-s">'placeholder'</span> => <span class="pl-c1">false</span>,
<span class="pl-s">'required'</span> => <span class="pl-c1">false</span>,
]);</pre></div>
<p dir="auto">So we added a workaround in our <code class="notranslate">bootstrap_3_layout.html.twig</code> to resolve this.</p>
<div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{%- block radio_label -%}
{% if label == '' or label is null %}
{% set label = false %}
{% endif %}
{{ parent() }}
{%- endblock radio_label -%}"><pre class="notranslate">{%- <span class="pl-k">block</span> <span class="pl-smi">radio_label</span> -%}
{% <span class="pl-k">if</span> <span class="pl-smi">label</span> <span class="pl-k">==</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> <span class="pl-k">or</span> <span class="pl-smi">label</span> <span class="pl-k">is</span> <span class="pl-c1">null</span> %}
{% <span class="pl-k">set</span> <span class="pl-smi">label</span> <span class="pl-k">=</span> <span class="pl-c1">false</span> %}
{% <span class="pl-k">endif</span> %}
{{ <span class="pl-c1">parent</span>() }}
{%- <span class="pl-k">endblock</span> <span class="pl-smi">radio_label</span> -%}</pre></div>
<p dir="auto">Is there a cleaner way to hide the label or is this a bug/bc break?</p>
<p dir="auto">Thanks</p> | <p dir="auto">After upgrading from 2.7.7 to 2.7.8 I noticed that some choice fields didn't display the empty value.</p>
<p dir="auto">Example code:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="->add('buyback', 'choice', [
'choices' => [
'Yes' => true,
'No' => false,
],
'choices_as_values' => true,
'required' => false,
]);"><pre class="notranslate">->add(<span class="pl-s">'buyback'</span>, <span class="pl-s">'choice'</span>, [
<span class="pl-s">'choices'</span> => [
<span class="pl-s">'Yes'</span> => <span class="pl-c1">true</span>,
<span class="pl-s">'No'</span> => <span class="pl-c1">false</span>,
],
<span class="pl-s">'choices_as_values'</span> => <span class="pl-c1">true</span>,
<span class="pl-s">'required'</span> => <span class="pl-c1">false</span>,
]);</pre></div>
<p dir="auto">Before:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/407855/12170811/144496ea-b54d-11e5-9a28-a44c9f48ddd5.png"><img src="https://cloud.githubusercontent.com/assets/407855/12170811/144496ea-b54d-11e5-9a28-a44c9f48ddd5.png" alt="image" style="max-width: 100%;"></a><br>
After:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/407855/12170840/3e399e5a-b54d-11e5-9032-4e0d49fe2a37.png"><img src="https://cloud.githubusercontent.com/assets/407855/12170840/3e399e5a-b54d-11e5-9032-4e0d49fe2a37.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">So far I've found out that the <code class="notranslate">false</code> value is converted to empty string in this line <a class="commit-link" href="https://github.com/symfony/symfony/compare/v2.7.7...v2.7.8#diff-780e59a429c485d2d3b8a37fdf62ac59R79"><tt>v2.7.7...v2.7.8</tt>#diff-780e59a429c485d2d3b8a37fdf62ac59R79</a>.</p>
<p dir="auto">I think that the <code class="notranslate">false</code> value is displayed instead of empty value because of that.</p>
<p dir="auto">This bug was introduced in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="119163490" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/16705" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/16705/hovercard" href="https://github.com/symfony/symfony/pull/16705">#16705</a>.</p> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.