text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<p dir="auto">const [errors, emitted] = await Deno.compile("./app.ts", undefined, {<br> lib: ["es6","dom", "esnext", "deno.ns","scripthost","dom.iterable"], // include "deno.ns" for deno namespace<br> outDir: "./",<br> });</p> <p dir="auto">if (errors) {<br> console.log("There was an error:");<br> console.log(errors);<br> } else {<br> console.log(emitted); // normally we would write the file<br> }</p> <p dir="auto">when i was use Deno.compile case error</p> <p dir="auto">{<br> message: "Argument of type 'string | URL' is not assignable to parameter of type 'string'.",<br> messageChain: {<br> message: "Argument of type 'string | URL' is not assignable to parameter of type 'string'.",<br> code: 2345,<br> category: 3,<br> next: [Array]<br> },<br> code: 2345,<br> category: 3,<br> startPosition: 12702,<br> endPosition: 12705,<br> sourceLine: " return new URL(url).pathname;",<br> lineNumber: 432,<br> scriptResourceName: "<a href="https://deno.land/[email protected]/path/posix.ts" rel="nofollow">https://deno.land/[email protected]/path/posix.ts</a>",<br> startColumn: 17,<br> endColumn: 20<br> },<br> {<br> message: "Argument of type 'string | URL' is not assignable to parameter of type 'string'.",<br> messageChain: {<br> message: "Argument of type 'string | URL' is not assignable to parameter of type 'string'.",<br> code: 2345,<br> category: 3,<br> next: [Array]<br> },<br> code: 2345,<br> category: 3,<br> startPosition: 27167,<br> endPosition: 27170,<br> sourceLine: " return new URL(url).pathname",<br> lineNumber: 910,<br> scriptResourceName: "<a href="https://deno.land/[email protected]/path/win32.ts" rel="nofollow">https://deno.land/[email protected]/path/win32.ts</a>",<br> startColumn: 17,<br> endColumn: 20<br> },<br> {<br> message: "Argument of type 'string | URL' is not assignable to parameter of type 'string'.",<br> messageChain: {<br> message: "Argument of type 'string | URL' is not assignable to parameter of type 'string'.",<br> code: 2345,<br> category: 3,<br> next: [Array]<br> },<br> code: 2345,<br> category: 3,<br> startPosition: 12702,<br> endPosition: 12705,<br> sourceLine: " return new URL(url).pathname;",<br> lineNumber: 432,<br> scriptResourceName: "<a href="https://deno.land/[email protected]/path/posix.ts" rel="nofollow">https://deno.land/[email protected]/path/posix.ts</a>",<br> startColumn: 17,<br> endColumn: 20<br> },<br> {<br> message: "Argument of type 'string | URL' is not assignable to parameter of type 'string'.",<br> messageChain: {<br> message: "Argument of type 'string | URL' is not assignable to parameter of type 'string'.",<br> code: 2345,<br> category: 3,<br> next: [Array]<br> },<br> code: 2345,<br> category: 3,<br> startPosition: 27167,<br> endPosition: 27170,<br> sourceLine: " return new URL(url).pathname",<br> lineNumber: 910,<br> scriptResourceName: "<a href="https://deno.land/[email protected]/path/win32.ts" rel="nofollow">https://deno.land/[email protected]/path/win32.ts</a>",<br> startColumn: 17,<br> endColumn: 20<br> }</p> <p dir="auto">but if i use deno.run that was no problem , but i want to compile. deno v 1.0.1</p>
<p dir="auto">The deno standard lib declaration of <code class="notranslate">URL</code> accepts <code class="notranslate">string | URL</code> as input: </p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/denoland/deno/blob/a08a4abac116eda498f8ad2df13b3816ec36c9ad/cli/js/lib.deno.shared_globals.d.ts#L1149">deno/cli/js/lib.deno.shared_globals.d.ts</a> </p> <p class="mb-0 color-fg-muted"> Line 1149 in <a data-pjax="true" class="commit-tease-sha" href="/denoland/deno/commit/a08a4abac116eda498f8ad2df13b3816ec36c9ad">a08a4ab</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="L1149" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="1149"></td> <td id="LC1149" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">new</span> <span class="pl-kos">(</span><span class="pl-s1">url</span>: <span class="pl-smi">string</span> <span class="pl-c1">|</span> <span class="pl-smi">URL</span><span class="pl-kos">,</span> <span class="pl-s1">base</span>?: <span class="pl-smi">string</span> <span class="pl-c1">|</span> <span class="pl-smi">URL</span><span class="pl-kos">)</span>: <span class="pl-smi">URL</span><span class="pl-kos">;</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">However the TypeScript dom library declaration only accepts <code class="notranslate">string</code>:<br> <a href="https://github.com/microsoft/TypeScript/blob/master/src/lib/dom.generated.d.ts#L15920">https://github.com/microsoft/TypeScript/blob/master/src/lib/dom.generated.d.ts#L15920</a></p> <p dir="auto">When declaring "dom" in tsconfig.json like so:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&quot;lib&quot;: [&quot;dom&quot;, &quot;dom.iterable&quot;, &quot;esnext&quot;, &quot;deno.ns&quot;]"><pre class="notranslate"><span class="pl-ent">"lib"</span>: [<span class="pl-s"><span class="pl-pds">"</span>dom<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>dom.iterable<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>esnext<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>deno.ns<span class="pl-pds">"</span></span>]</pre></div> <p dir="auto">deno throws the following 2 errors:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. Type 'URL' is not assignable to type 'string'. return new URL(url).pathname; ~~~ at https://deno.land/[email protected]/path/posix.ts:433:18 TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. Type 'URL' is not assignable to type 'string'. return new URL(url).pathname ~~~ at https://deno.land/[email protected]/path/win32.ts:911:18 Found 2 errors."><pre class="notranslate"><code class="notranslate">error: TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. Type 'URL' is not assignable to type 'string'. return new URL(url).pathname; ~~~ at https://deno.land/[email protected]/path/posix.ts:433:18 TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'. Type 'URL' is not assignable to type 'string'. return new URL(url).pathname ~~~ at https://deno.land/[email protected]/path/win32.ts:911:18 Found 2 errors. </code></pre></div> <p dir="auto">Probably related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="574661526" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/4234" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/4234/hovercard" href="https://github.com/denoland/deno/issues/4234">#4234</a>.</p>
1
<p dir="auto">Hello<br> As presented here:<br> <a href="http://stackoverflow.com/questions/38454893/error-in-scipy-wilcoxon-signed-rank-test-for-equal-series?noredirect=1#comment64315624_38454893" rel="nofollow">http://stackoverflow.com/questions/38454893/error-in-scipy-wilcoxon-signed-rank-test-for-equal-series?noredirect=1#comment64315624_38454893</a><br> (without no answer to disprove it as a mistake from me),<br> I wish to report that maybe there is a problem with the results of scipy.wilcoxon signed rank test;</p> <p dir="auto">import scipy as sp<br> x1=[29.39958, 29.21756, 29.350915, 29.34911, 29.212635]<br> sp.wilcoxon(x1,x1,zero_method="wilcox",correction=True)<br> returns statistic=0.0, pvalue=nan</p> <p dir="auto">But with zero_method="pratt", it returns statistic=0.0, pvalue=0.043114446783075355 instead.<br> I think there is a mistake there. The statistics (for z-score, if I am not mistaken) are the same, but the results are different for the p-value, while they should not, actually.<br> When both series are identical, there should be no good p-value, but this is confident with alpha=0.05.</p> <p dir="auto">Maybe "pratt" zero_method is wrongly implemented. It is said to be more conservative, but instead it has also constantly given better /lower p-values on a large array of test values.</p> <p dir="auto"><strong>edit</strong> josef</p> <p dir="auto">It looks like there are two issues</p> <ul dir="auto"> <li>corner case when all differences are zero needs special handling to return nan p-value</li> <li>current implementation of Pratt method is wrong if there are "zeros", if (x == y).sum() &gt; 0</li> </ul>
<p dir="auto">Hello<br> As presented here:<br> <a href="http://stackoverflow.com/questions/38454893/error-in-scipy-wilcoxon-signed-rank-test-for-equal-series?noredirect=1#comment64315624_38454893" rel="nofollow">http://stackoverflow.com/questions/38454893/error-in-scipy-wilcoxon-signed-rank-test-for-equal-series?noredirect=1#comment64315624_38454893</a><br> (without no answer to disprove it as a mistake from me),<br> I wish to report that maybe there is a problem with the results of scipy.wilcoxon signed rank test;</p> <p dir="auto">import scipy as sp<br> x1=[29.39958, 29.21756, 29.350915, 29.34911, 29.212635]<br> sp.wilcoxon(x1,x1,zero_method="wilcox",correction=True)</p> <p dir="auto">returns statistic=0.0, pvalue=nan</p> <p dir="auto">But with zero_method="pratt", it returns statistic=0.0, pvalue=0.043114446783075355 instead.<br> I think there is a mistake there. The statistics (for z-score, if I am not mistaken) are the same, but the results are different for the p-value, while they should not, actually.<br> When both series are identical, there should be no good p-value, but this is confident with alpha=0.05.</p> <p dir="auto">Maybe "pratt" zero_method is wrongly implemented. It is said to be more conservative, but instead it has also constantly given better /lower p-values on a large array of test values.</p>
1
<p dir="auto">Hi.</p> <p dir="auto">I have a big structure data whose content changes dynamicaly, and in which I want to observe tiny variables.<br> For simplicity I made a code that is triggered on a click, code that call a timeout in order to be sure that all pending works (jquery, vue, and any others) are finished. In this timeout I change a boolean variable associated to a html checkbox.<br> So far, it seems that the html vue is not correctly updated after change to the model from the timeout call.</p> <h3 dir="auto">Vue.js version</h3> <p dir="auto">2.1.8</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto">In the provided code/example, after a click on the html checkbox a timeout (set to 5s) is called, in which the checkbox variable value is changed.</p> <p dir="auto">Here : <a href="http://codepen.io/anon/pen/BpaXze" rel="nofollow">http://codepen.io/anon/pen/BpaXze</a><br> The code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;script type=&quot;text/javascript&quot; src=&quot;https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.8/vue.min.js&quot;&gt;&lt;/script&gt; &lt;div id='test'&gt; &lt;input v-model='checkbox' type=&quot;checkbox&quot; v-on:click=&quot;click()&quot;&gt; &lt;BR&gt; {{checkbox}} &lt;/div&gt; &lt;script&gt; var vm = new Vue({ el: '#test', data: { checkbox: true }, methods:{ click: function(){ window.setTimeout(function() { vm.checkbox = true; } , 5000) } } }) &lt;/script&gt;"><pre class="notranslate"><code class="notranslate">&lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.8/vue.min.js"&gt;&lt;/script&gt; &lt;div id='test'&gt; &lt;input v-model='checkbox' type="checkbox" v-on:click="click()"&gt; &lt;BR&gt; {{checkbox}} &lt;/div&gt; &lt;script&gt; var vm = new Vue({ el: '#test', data: { checkbox: true }, methods:{ click: function(){ window.setTimeout(function() { vm.checkbox = true; } , 5000) } } }) &lt;/script&gt; </code></pre></div> <h3 dir="auto">What is Expected?</h3> <p dir="auto">I expect the checkbox to be updated after setting its value.</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">The variable itself is correctly updated, but not the html checkbox.</p>
<h3 dir="auto">Vue.js version</h3> <p dir="auto">2.0.1 / 2.0.2</p> <h3 dir="auto">Reproduction Link</h3> <p dir="auto"><a href="https://codepen.io/toxic-johann/pen/yajwRO" rel="nofollow">https://codepen.io/toxic-johann/pen/yajwRO</a></p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">use a v-for to render component<br> in component, you have to write a v-for with template in it but not wrapped with a root element<br> open console, and run test() function</p> <h3 dir="auto">What is Expected?</h3> <p dir="auto">open console, and run success() function</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">throw the warning</p> <blockquote> <p dir="auto">[Vue warn]: It seems there are duplicate keys that is causing an update error. Make sure each v-for item has a unique key.<br> and error<br> Uncaught (in promise) TypeError: Cannot read property 'tag' of undefined</p> </blockquote> <p dir="auto">it's the same situation as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="179992808" data-permission-text="Title is private" data-url="https://github.com/vuejs/vue/issues/3810" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/3810/hovercard" href="https://github.com/vuejs/vue/issues/3810">#3810</a><br> However, that one contains only two templates with v-if in nested v-for<br> And this one contains three templates with v-if</p> <p dir="auto">And in my project, i contain with more.<br> So, i also want to know, if there are more template in nested v-for, will it run good?</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="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> When I upgraded to version @2.2.0 PrimeNG DataTable RowExpansion is not working any more if the expansion template contains content which utilizes templates (e.g. structural directives).</p> <p dir="auto">It was still working in @2.1.2 (you can try in the plunkr above), so I don't think it is related to PrimeNG.</p> <p dir="auto">Source of the PrimeNG component: <a href="https://github.com/primefaces/primeng/blob/1.0.0-rc.4/components/datatable/datatable.ts">https://github.com/primefaces/primeng/blob/1.0.0-rc.4/components/datatable/datatable.ts</a></p> <p dir="auto">Sorry, but I haven't have time to strip down the problem (and the plunkr) without PrimeNG.</p> <p dir="auto"><strong>Expected behavior</strong><br> RowExpansion has the correct template variables set. Should render the template content every time correctly.</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> Check out my plunkr: <a href="http://embed.plnkr.co/bJ0ln941VPbUX7KP3Mtk/" rel="nofollow">http://embed.plnkr.co/bJ0ln941VPbUX7KP3Mtk/</a></p> <p dir="auto">Expand the first row: the content is shown correctly. Expand the second row: the content is something different, not reflecting the data content anymore. Any subsequent expansion is not working as expected.</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> <p dir="auto"><strong>Angular version:</strong> 2.2.0<br> With the latest 2.2.1 version it fails too. But works with 2.1.2</p> </li> <li> <p dir="auto"><strong>Browser:</strong> Chrome 54 (but I assume it is not related to the browser)</p> </li> <li> <p dir="auto"><strong>Language:</strong> TypeScript 2.0</p> </li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Currently when I try to reuse the same <code class="notranslate">TemplateRef</code> instance for multiple items it renders wrong view</p> <p dir="auto"><strong>Expected behavior</strong><br> It should render a separate view inside each view container</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> <a href="https://plnkr.co/edit/PZe5XnmJ2KoJ99ts33F9?p=preview" rel="nofollow">https://plnkr.co/edit/PZe5XnmJ2KoJ99ts33F9?p=preview</a></p> <p dir="auto">Currently you will see 2 words "Enabled".<br> Should be "<br> { "enabled": true } Enabled<br> { "enabled": false } disabled" (as in <a href="https://plnkr.co/edit/rZuCs8O7YE4fYplfI3gF?p=preview" rel="nofollow">https://plnkr.co/edit/rZuCs8O7YE4fYplfI3gF?p=preview</a>)</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> I have a slider with hundreds of slides and want to optimise DOM by using lazy DOM creation. For this I need to use template reference. Eventually it's something like this:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;lazy-slides [items]=&quot;files&quot;&gt; &lt;template let-file=&quot;item&quot;&gt; &lt;preview-file [src]=&quot;file.url&quot;&gt;&lt;/preview-file&gt; &lt;/template&gt; &lt;/lazy-slides&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">lazy-slides</span> <span class="pl-c1">[items]</span>="<span class="pl-s">files</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">template</span> <span class="pl-c1">let-file</span>="<span class="pl-s">item</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">preview-file</span> <span class="pl-c1">[src]</span>="<span class="pl-s">file.url</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">preview-file</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">template</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">lazy-slides</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Then using <code class="notranslate">ngFor</code> and <code class="notranslate">ngTemplateOutlet</code> I put this template for first 5 items and when user slides I change references inside array.</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> npm: 3.9.3<br> OSX EI Capitan 10.11.5<br> Atom<br> Chrome 54.0.2840.98</p> <ul dir="auto"> <li> <p dir="auto"><strong>Angular version:</strong> 2.0.X<br> Reproducible starting from 2.2.0, the same in 2.3.0. Works properly in 2.2.0-rc.0 and older ( <a href="https://plnkr.co/edit/rZuCs8O7YE4fYplfI3gF?p=preview" rel="nofollow">https://plnkr.co/edit/rZuCs8O7YE4fYplfI3gF?p=preview</a> )</p> </li> <li> <p dir="auto"><strong>Browser:</strong><br> Chrome 54.0.2840.98</p> </li> <li> <p dir="auto"><strong>Language:</strong> all</p> </li> </ul>
1
<p dir="auto"><strong>TypeScript Version:</strong></p> <p dir="auto">Version 1.8.9</p> <p dir="auto">The documentation here:<br> <a href="http://www.typescriptlang.org/docs/handbook/compiler-options.html" rel="nofollow">http://www.typescriptlang.org/docs/handbook/compiler-options.html</a><br> Lists <code class="notranslate">--traceResolution</code> as a compiler option to which I intended to use to help diagnose errors; however, it appears this was removed or changed names.</p> <p dir="auto"><strong>Code</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" tsc -p . --traceResolution"><pre class="notranslate"><code class="notranslate"> tsc -p . --traceResolution </code></pre></div> <p dir="auto"><strong>Expected behavior:</strong><br> I expected this to tell me why my module cannot be found even though it is in the node_modules folder and has package.json with main and typings paths setup correctly.</p> <p dir="auto"><strong>Actual behavior:</strong><br> <code class="notranslate">error TS5023: Unknown compiler option 'traceresolution'.</code></p>
<p dir="auto">I am using 1.8 beta. I am also using aurelia framework inside an aspnet5 project. I have configured the module loader, SystemJS, to transpile my TS files. I do *<em>not *</em> want VS to build the TS files. I control this by using a tsconfig.json in the root of the aspnet5 project, which excludes "wwwroot" (along with node_modules, jspm_packages) from compilation. Unfortunately, it appears this also prevents essential flags specified - such as "experimentalDecorators" in this file from being picked up by the language service for excluded folders/files. This gives me annoying red squigglies everywhere complaining that I should specify the flag. If I comment out the wwwroot exlcusion, the squigglies go away.</p> <p dir="auto">Therefore, I suggest that the <strong>exclude/files directives should only apply to the compiler pass</strong> (they are under "compilerOptions" after all,) and not the ambient language service, <strong>or you should add a distinct block for controlling the language service flags in tsconfig.json</strong>, <strong>or even use a separate tsserver.json file</strong>. I need support for decorators in intellisense, but I have no intention of using the build process to compile. Make sense?</p>
0
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: <code class="notranslate">1.35.1</code></li> <li>Operating System: GitHub Actions runner <a href="https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230625.1">Ubuntu 22.04</a></li> <li>Browser: Chromium <code class="notranslate">115.0.5790.24</code> (playwright build <code class="notranslate">v1067</code>)</li> <li>Other info: <ul dir="auto"> <li>Mantine: <code class="notranslate">6.0.14</code></li> </ul> </li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {Config, defineConfig} from &quot;@playwright/test&quot;; import {dirname, join} from &quot;node:path&quot;; import {fileURLToPath} from &quot;node:URL&quot;; const __dirname = dirname(fileURLToPath(import.meta.url)); const CI = process.env.CI !== undefined; const reportsPath = join(__dirname, &quot;tests/playwright/reports&quot;); const reporters: Config[&quot;reporter&quot;] = [ [ &quot;html&quot;, { open: &quot;never&quot;, outputFolder: join(reportsPath, &quot;html&quot;) } ], [&quot;list&quot;] ]; if (CI) { reporters.push([&quot;github&quot;]); } export default defineConfig({ projects: [ { name: &quot;tests&quot;, testDir: join(__dirname, &quot;tests/playwright/tests&quot;), testMatch: &quot;**/*.spec.ts&quot; } ], outputDir: join(__dirname, &quot;tests/playwright/output&quot;), use: { video: &quot;on&quot;, trace: &quot;on&quot; }, timeout: 1000 * 60 * 5, //CI will be true maxFailures: CI ? 1 : 0, reporter: reporters, retries: CI ? 2 : 0, workers: CI ? 8 : 1 });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">Config</span><span class="pl-kos">,</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"@playwright/test"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">dirname</span><span class="pl-kos">,</span> <span class="pl-s1">join</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"node:path"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">fileURLToPath</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"node:URL"</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">__dirname</span> <span class="pl-c1">=</span> <span class="pl-en">dirname</span><span class="pl-kos">(</span><span class="pl-en">fileURLToPath</span><span class="pl-kos">(</span><span class="pl-k">import</span><span class="pl-kos">.</span><span class="pl-c1">meta</span><span class="pl-kos">.</span><span class="pl-c1">url</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-smi">CI</span> <span class="pl-c1">=</span> <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span> <span class="pl-c1">!==</span> <span class="pl-c1">undefined</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">reportsPath</span> <span class="pl-c1">=</span> <span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">"tests/playwright/reports"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">reporters</span>: <span class="pl-smi">Config</span><span class="pl-kos">[</span><span class="pl-s">"reporter"</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span> <span class="pl-kos">[</span> <span class="pl-s">"html"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">open</span>: <span class="pl-s">"never"</span><span class="pl-kos">,</span> <span class="pl-c1">outputFolder</span>: <span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">reportsPath</span><span class="pl-kos">,</span> <span class="pl-s">"html"</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">"list"</span><span class="pl-kos">]</span> <span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-smi">CI</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">reporters</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">"github"</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-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"tests"</span><span class="pl-kos">,</span> <span class="pl-c1">testDir</span>: <span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">"tests/playwright/tests"</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">testMatch</span>: <span class="pl-s">"**/*.spec.ts"</span> <span class="pl-kos">}</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">outputDir</span>: <span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">"tests/playwright/output"</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">video</span>: <span class="pl-s">"on"</span><span class="pl-kos">,</span> <span class="pl-c1">trace</span>: <span class="pl-s">"on"</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">timeout</span>: <span class="pl-c1">1000</span> <span class="pl-c1">*</span> <span class="pl-c1">60</span> <span class="pl-c1">*</span> <span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c">//CI will be true</span> <span class="pl-c1">maxFailures</span>: <span class="pl-smi">CI</span> ? <span class="pl-c1">1</span> : <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">reporter</span>: <span class="pl-s1">reporters</span><span class="pl-kos">,</span> <span class="pl-c1">retries</span>: <span class="pl-smi">CI</span> ? <span class="pl-c1">2</span> : <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">workers</span>: <span class="pl-smi">CI</span> ? <span class="pl-c1">8</span> : <span class="pl-c1">1</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="it('should check the box using setChecked', async ({ page }) =&gt; { //... /* Note that running with force: true seems to slightly decrease the frequency of the issue, but it still occurs &gt;50% of the time. The issue also occurs with the `.type` method (at about the same frequency as the stock `.fill` method, like below). */ await page.getByLabel(&quot;Email&quot;).fill(&quot;[email protected]&quot;); await page.getByLabel(&quot;Password&quot;).first().fill(&quot;[REDACTED]&quot;); await page.getByRole(&quot;button&quot;, { name: /Log in|Sign up/ }).click(); //... });"><pre class="notranslate"><span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should check the box using setChecked'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">//...</span> <span class="pl-c">/* Note that running with force: true seems to slightly decrease the frequency of the issue,</span> <span class="pl-c"> but it still occurs &gt;50% of the time. The issue also occurs with the `.type` method (at about</span> <span class="pl-c"> the same frequency as the stock `.fill` method, like below). */</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByLabel</span><span class="pl-kos">(</span><span class="pl-s">"Email"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">fill</span><span class="pl-kos">(</span><span class="pl-s">"[email protected]"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByLabel</span><span class="pl-kos">(</span><span class="pl-s">"Password"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">first</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">fill</span><span class="pl-kos">(</span><span class="pl-s">"[REDACTED]"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">"button"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-pds"><span class="pl-c1">/</span>Log in<span class="pl-c1">|</span>Sign up<span class="pl-c1">/</span></span> <span class="pl-kos">}</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-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//...</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>React Component</strong></p> <div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="//Based on https://mantine.dev/form/use-form/#getinputprops const form = useForm({ initialValues: { email: &quot;&quot;, password: &quot;&quot;, confirmPassword: &quot;&quot;, terms: false }, clearInputErrorOnChange: false, validate: //Validation logic is ran immediately after any input }); //... &lt;TextInput {...form.getInputProps(&quot;email&quot;)} icon={&lt;IconMail /&gt;} label=&quot;Email&quot; placeholder=&quot;[email protected]&quot; radius=&quot;md&quot; type=&quot;email&quot; withAsterisk /&gt; &lt;PasswordInput icon={&lt;IconKey /&gt;} label=&quot;Password&quot; radius=&quot;md&quot; {...form.getInputProps(&quot;password&quot;)} visibilityToggleIcon={visibilityToggle} withAsterisk /&gt; //..."><pre class="notranslate"><span class="pl-c">//Based on https://mantine.dev/form/use-form/#getinputprops</span> <span class="pl-k">const</span> <span class="pl-s1">form</span> <span class="pl-c1">=</span> <span class="pl-en">useForm</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">initialValues</span>: <span class="pl-kos">{</span> <span class="pl-c1">email</span>: <span class="pl-s">""</span><span class="pl-kos">,</span> <span class="pl-c1">password</span>: <span class="pl-s">""</span><span class="pl-kos">,</span> <span class="pl-c1">confirmPassword</span>: <span class="pl-s">""</span><span class="pl-kos">,</span> <span class="pl-c1">terms</span>: <span class="pl-c1">false</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">clearInputErrorOnChange</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">validate</span>: <span class="pl-c">//Validation logic is ran immediately after any input</span><span class="pl-s1"></span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//...</span> <span class="pl-c1">&lt;</span><span class="pl-smi">TextInput</span> <span class="pl-kos">{</span>...<span class="pl-s1">form</span><span class="pl-kos">.</span><span class="pl-en">getInputProps</span><span class="pl-kos">(</span><span class="pl-s">"email"</span><span class="pl-kos">)</span><span class="pl-kos">}</span> <span class="pl-c1">icon</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">&lt;</span><span class="pl-smi">IconMail</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">}</span> <span class="pl-c1">label</span><span class="pl-c1">=</span><span class="pl-s">"Email"</span> <span class="pl-c1">placeholder</span><span class="pl-c1">=</span><span class="pl-s">"[email protected]"</span> <span class="pl-c1">radius</span><span class="pl-c1">=</span><span class="pl-s">"md"</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"email"</span> <span class="pl-c1">withAsterisk</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-smi">PasswordInput</span> <span class="pl-s1">icon</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">&lt;</span><span class="pl-smi">IconKey</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">}</span> <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">"Password"</span> <span class="pl-s1">radius</span><span class="pl-c1">=</span><span class="pl-s">"md"</span> <span class="pl-kos">{</span>...<span class="pl-s1">form</span><span class="pl-kos">.</span><span class="pl-en">getInputProps</span><span class="pl-kos">(</span><span class="pl-s">"password"</span><span class="pl-kos">)</span><span class="pl-kos">}</span> <span class="pl-s1">visibilityToggleIcon</span><span class="pl-c1">=</span><span class="pl-kos">{</span>visibilityToggle<span class="pl-kos">}</span> <span class="pl-s1">withAsterisk</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c">//...</span></pre></div> <p dir="auto"><strong>Steps</strong></p> <ul dir="auto"> <li>Run the tests in GitHub Actions</li> </ul> <p dir="auto"><strong>Expected</strong></p> <ul dir="auto"> <li>Playwright reliably types into the input fields (See the screen recordings)</li> </ul> <p dir="auto"><strong>Actual</strong></p> <ul dir="auto"> <li>Playwright non-deterministically fails to type into the input fields and the test times out <ul dir="auto"> <li>Occurs &lt;5% of the time on my computer (Also Ubuntu 22.04), even when I manually set <code class="notranslate">CI</code> to <code class="notranslate">true</code> or when I run in <a href="https://github.com/nektos/act">Act</a></li> <li>Occurs &gt;80% of the time in GitHub Actions</li> <li>Does not consistently freeze up at the same place in the email/password input</li> </ul> </li> </ul> <p dir="auto"><strong>Logs</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="locator.type: Target closed =========================== logs =========================== waiting for getByLabel('Email') locator resolved to &lt;input value=&quot;&quot; type=&quot;email&quot; aria-invalid=&quot;false&quot; data-…/&gt; elementHandle.type(&quot;[email protected]&quot;) ============================================================"><pre class="notranslate"><code class="notranslate">locator.type: Target closed =========================== logs =========================== waiting for getByLabel('Email') locator resolved to &lt;input value="" type="email" aria-invalid="false" data-…/&gt; elementHandle.type("[email protected]") ============================================================ </code></pre></div> <p dir="auto"><em>Note: this is for <code class="notranslate">fail-1</code>, with <code class="notranslate">type</code>.</em></p> <hr> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="locator.fill: Target page, context or browser has been closed"><pre class="notranslate"><code class="notranslate">locator.fill: Target page, context or browser has been closed </code></pre></div> <p dir="auto"><em>Note: this is for <code class="notranslate">fail-2</code> with <code class="notranslate">fill</code>.</em></p> <hr> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="locator.fill: Target closed =========================== logs =========================== waiting for getByLabel('Email') locator resolved to &lt;input value=&quot;&quot; type=&quot;email&quot; aria-invalid=&quot;false&quot; data-…/&gt; elementHandle.fill(&quot;[email protected]&quot;) waiting for element to be visible, enabled and editable forcing action element is visible, enabled and editable ============================================================"><pre class="notranslate"><code class="notranslate">locator.fill: Target closed =========================== logs =========================== waiting for getByLabel('Email') locator resolved to &lt;input value="" type="email" aria-invalid="false" data-…/&gt; elementHandle.fill("[email protected]") waiting for element to be visible, enabled and editable forcing action element is visible, enabled and editable ============================================================ </code></pre></div> <p dir="auto"><em>Note: this is for <code class="notranslate">fail-3</code>, with <code class="notranslate">force: true</code>.</em></p> <p dir="auto"><strong>Screen Recordings</strong><br> <a href="https://github.com/microsoft/playwright/assets/38930607/039da15f-4fb6-429b-91b0-426a41706f00">https://github.com/microsoft/playwright/assets/38930607/039da15f-4fb6-429b-91b0-426a41706f00</a> (Fail 1)<br> <a href="https://github.com/microsoft/playwright/assets/38930607/a6a76fa1-3a47-4d76-b9a6-b46e8e474158">https://github.com/microsoft/playwright/assets/38930607/a6a76fa1-3a47-4d76-b9a6-b46e8e474158</a> (Fail 2)<br> <a href="https://github.com/microsoft/playwright/assets/38930607/f6b4a7a8-12d0-4764-bb40-86554a5b43cb">https://github.com/microsoft/playwright/assets/38930607/f6b4a7a8-12d0-4764-bb40-86554a5b43cb</a> (Fail 3)<br> <a href="https://github.com/microsoft/playwright/assets/38930607/5560b607-9708-455e-80a8-84ad9be2689f">https://github.com/microsoft/playwright/assets/38930607/5560b607-9708-455e-80a8-84ad9be2689f</a> (Pass)</p>
<p dir="auto">Hi, in <em>browser_patches/firefox/juggler/protocol/Protocol.js</em> there is a duplicate of the property "value".</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22259701/84069718-a59dd780-a9d3-11ea-8b32-a832ddfd87c1.png"><img src="https://user-images.githubusercontent.com/22259701/84069718-a59dd780-a9d3-11ea-8b32-a832ddfd87c1.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I believe that is redundant, is it correct? Thanks!</p>
0
<h2 dir="auto">Bug Report</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I would like to work on a fix!</li> </ul> <p dir="auto"><strong>Current Behavior</strong><br> A clear and concise description of the behavior.<br> test fails because of syntaxError<br> FAIL <strong>tests</strong>/App.test.js<br> ● Test suite failed to run</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SyntaxError: /Users/Jostein/Documents/jobb_Ovitas/projects/hunnor/node_modules/react-native/jest/mockComponent.js: Support for the experimental syntax 'classProperties' i"><pre class="notranslate"><code class="notranslate">SyntaxError: /Users/Jostein/Documents/jobb_Ovitas/projects/hunnor/node_modules/react-native/jest/mockComponent.js: Support for the experimental syntax 'classProperties' i </code></pre></div> <p dir="auto">sn't currently enabled (20:24):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 18 | 19 | const Component = class extends SuperClass { &gt; 20 | static displayName = 'Component'; | ^ 21 | 22 | render() { 23 | const name = Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation."><pre class="notranslate"><code class="notranslate"> 18 | 19 | const Component = class extends SuperClass { &gt; 20 | static displayName = 'Component'; | ^ 21 | 22 | render() { 23 | const name = Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation. </code></pre></div> <p dir="auto"><strong>Input Code</strong></p> <ul dir="auto"> <li>REPL or Repo link if applicable:<br> Jest configuration in package.json</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &quot;jest&quot;: { &quot;preset&quot;: &quot;jest-expo&quot;, &quot;verbose&quot;: true, &quot;transformIgnorePatterns&quot;: [ &quot;node_modules/(?!(react-native|my-project|react-native-button)/)&quot; ], &quot;setupFiles&quot;: [ &quot;./setupTests.js&quot; ], &quot;collectCoverage&quot;: true, &quot;coverageReporters&quot;: [ &quot;json&quot;, &quot;html&quot; ] },"><pre class="notranslate"><code class="notranslate"> "jest": { "preset": "jest-expo", "verbose": true, "transformIgnorePatterns": [ "node_modules/(?!(react-native|my-project|react-native-button)/)" ], "setupFiles": [ "./setupTests.js" ], "collectCoverage": true, "coverageReporters": [ "json", "html" ] }, </code></pre></div> <p dir="auto"><strong>Expected behavior/code</strong><br> A clear and concise description of what you expected to happen (or code).<br> expect jest to run test</p> <p dir="auto"><strong>Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)</strong></p> <ul dir="auto"> <li>Filename: <code class="notranslate">.babelrc</code></li> </ul> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;presets&quot;: [&quot;module:metro-react-native-babel-preset&quot;, &quot;babel-preset-expo&quot;], &quot;sourceMaps&quot;:true, &quot;plugins&quot;: [&quot;@babel/plugin-proposal-class-properties&quot;] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"presets"</span>: <span class="pl-kos">[</span><span class="pl-s">"module:metro-react-native-babel-preset"</span><span class="pl-kos">,</span> <span class="pl-s">"babel-preset-expo"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"sourceMaps"</span>:<span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span><span class="pl-s">"@babel/plugin-proposal-class-properties"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="System: OS: macOS 10.15.2 Binaries: Node: 13.6.0 - ~/Documents/jobb_Ovitas/projects/hunnor/node_modules/.bin/node Yarn: 1.19.2 - /usr/local/bin/yarn npm: 6.13.6 - /usr/local/bin/npm npmPackages: @babel/core: ^7.8.3 =&gt; 7.8.3 @babel/plugin-proposal-class-properties: ^7.8.3 =&gt; 7.8.3 @babel/polyfill: ^7.8.3 =&gt; 7.8.3 @babel/preset-env: ^7.8.3 =&gt; 7.8.3 babel-core: ^7.0.0-bridge.0 =&gt; 7.0.0-bridge.0 babel-eslint: ^10.0.2 =&gt; 10.0.3 babel-jest: ^23.6.0 =&gt; 23.6.0 eslint: ^6.0.1 =&gt; 6.8.0 jest: ^24.9.0 =&gt; 24.9.0 react-native: https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz =&gt; 0.61.4 "><pre class="notranslate"><code class="notranslate">System: OS: macOS 10.15.2 Binaries: Node: 13.6.0 - ~/Documents/jobb_Ovitas/projects/hunnor/node_modules/.bin/node Yarn: 1.19.2 - /usr/local/bin/yarn npm: 6.13.6 - /usr/local/bin/npm npmPackages: @babel/core: ^7.8.3 =&gt; 7.8.3 @babel/plugin-proposal-class-properties: ^7.8.3 =&gt; 7.8.3 @babel/polyfill: ^7.8.3 =&gt; 7.8.3 @babel/preset-env: ^7.8.3 =&gt; 7.8.3 babel-core: ^7.0.0-bridge.0 =&gt; 7.0.0-bridge.0 babel-eslint: ^10.0.2 =&gt; 10.0.3 babel-jest: ^23.6.0 =&gt; 23.6.0 eslint: ^6.0.1 =&gt; 6.8.0 jest: ^24.9.0 =&gt; 24.9.0 react-native: https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz =&gt; 0.61.4 </code></pre></div> <ul dir="auto"> <li>Babel version(s): [e.g. v6.0.0, v7.0.0-beta.34]</li> <li>Node/npm version: [e.g. Node 8/npm 5]</li> <li>OS: [e.g. OSX 10.13.4, Windows 10]</li> <li>Monorepo: [e.g. yes/no/Lerna]</li> <li>How you are using Babel: [e.g. <code class="notranslate">cli</code>, <code class="notranslate">register</code>, <code class="notranslate">loader</code>]</li> </ul> <p dir="auto"><strong>Possible Solution</strong></p> <p dir="auto"><strong>Additional context/Screenshots</strong><br> Add any other context about the problem here. If applicable, add screenshots to help explain.</p>
<h2 dir="auto">Bug Report</h2> <p dir="auto"><strong>Current Behavior</strong></p> <p dir="auto">There are duplicated calls to the <code class="notranslate">assertThisInitialized</code> helper.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let Foo = /*#__PURE__*/ function (_Bar) { _inheritsLoose(Foo, _Bar); function Foo() { var _this; _this = _Bar.call(this) || this; something(_assertThisInitialized(_assertThisInitialized(_this))); return _this; } return Foo; }(Bar);"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-v">Foo</span> <span class="pl-c1">=</span> <span class="pl-c">/*#__PURE__*/</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">_Bar</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">_inheritsLoose</span><span class="pl-kos">(</span><span class="pl-v">Foo</span><span class="pl-kos">,</span> <span class="pl-s1">_Bar</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-v">Foo</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">_this</span><span class="pl-kos">;</span> <span class="pl-s1">_this</span> <span class="pl-c1">=</span> <span class="pl-s1">_Bar</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-smi">this</span><span class="pl-kos">;</span> <span class="pl-en">something</span><span class="pl-kos">(</span><span class="pl-en">_assertThisInitialized</span><span class="pl-kos">(</span><span class="pl-en">_assertThisInitialized</span><span class="pl-kos">(</span><span class="pl-s1">_this</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">_this</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-v">Foo</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">(</span><span class="pl-v">Bar</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Input Code</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo extends Bar { constructor() { super(); something(this); } }"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Foo</span> <span class="pl-k">extends</span> <span class="pl-v">Bar</span> <span class="pl-kos">{</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">something</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected behavior/code</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let Foo = /*#__PURE__*/ function (_Bar) { _inheritsLoose(Foo, _Bar); function Foo() { var _this; _this = _Bar.call(this) || this; something(_assertThisInitialized(_this)); return _this; } return Foo; }(Bar);"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-v">Foo</span> <span class="pl-c1">=</span> <span class="pl-c">/*#__PURE__*/</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">_Bar</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">_inheritsLoose</span><span class="pl-kos">(</span><span class="pl-v">Foo</span><span class="pl-kos">,</span> <span class="pl-s1">_Bar</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">function</span> <span class="pl-v">Foo</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">_this</span><span class="pl-kos">;</span> <span class="pl-s1">_this</span> <span class="pl-c1">=</span> <span class="pl-s1">_Bar</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-smi">this</span><span class="pl-kos">;</span> <span class="pl-en">something</span><span class="pl-kos">(</span><span class="pl-en">_assertThisInitialized</span><span class="pl-kos">(</span><span class="pl-s1">_this</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">_this</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-v">Foo</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">(</span><span class="pl-v">Bar</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Environment</strong></p> <ul dir="auto"> <li>Babel version(s): v7.0.0-beta.48</li> <li>Node/npm version: Node 8</li> <li>OS: OS X</li> <li>Monorepo: no</li> <li>How you are using Babel: core</li> </ul>
0
<p dir="auto">When using <code class="notranslate">--emit=dep-info</code> in a makefile, a missing file (due to being renamed or re-factored away) will cause make to terminate the build instantly.</p> <p dir="auto">GCC/Clang mitigate this by using the <code class="notranslate">-MP</code> flag when creating dependencies, which emits extra rules of the form <code class="notranslate">dependency:</code> to tell make to ignore the files if they are missing.</p>
<p dir="auto">Running something like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc --emit dep-info -o x.o lib.rs"><pre class="notranslate"><code class="notranslate">rustc --emit dep-info -o x.o lib.rs </code></pre></div> <p dir="auto">will produce a depfile containing a rule like:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="x.o: /path/to/lib.rs /path/to/a.rs /path/to/b.rs"><pre class="notranslate"><code class="notranslate">x.o: /path/to/lib.rs /path/to/a.rs /path/to/b.rs </code></pre></div> <p dir="auto">This output has a problem: if <code class="notranslate">a.rs</code> is deleted from the filesystem and dependencies on it erased from <code class="notranslate">lib.rs</code>, then <code class="notranslate">make</code> will attempt to look for a rule to generate <code class="notranslate">a.rs</code> when we request that things be remade. Not finding one, it will helpfully complain that there is no rule to make <code class="notranslate">a.rs</code> and exit.</p> <p dir="auto">This can, of course, be worked around by clearing out your entire build directory and starting over, but this seems undesirable.</p> <p dir="auto">GCC has an option (<code class="notranslate">-MP</code>) to produce "phony" targets for all the dependencies of the object file; this prevents issues in cases like the above:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="x.o: /path/to/lib.rs /path/to/a.rs /path/to/b.rs /path/to/lib.rs: /path/to/a.rs: /path/to/b.rs:"><pre class="notranslate"><code class="notranslate">x.o: /path/to/lib.rs /path/to/a.rs /path/to/b.rs /path/to/lib.rs: /path/to/a.rs: /path/to/b.rs: </code></pre></div> <p dir="auto">since <code class="notranslate">make</code> now understands how to "generate" <code class="notranslate">a.rs</code> if it doesn't find it.</p>
1
<h5 dir="auto">ISSUE TYPE</h5> <p dir="auto">Feature Idea</p> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">lib/ansible/playbook</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">This feature request is quite simple : with so many issues linked to the crucial "any_errors_fatal" property on plays (even in Ansible 2.4), please add an option so that in extreme conditions a programmed exit can be used. This should set a "failed" status on all hosts of the playbook of course.</p> <p dir="auto">In my case we use three playbooks:</p> <ul dir="auto"> <li>stop</li> <li>deploy</li> <li>start</li> </ul> <p dir="auto">Each playbook runs against several hosts and is included as a play in a "stop-deploy-restart" playbook.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# stop-deploy-restart.yml (2.3-style) - include: &quot;stop.yml&quot; - include: &quot;deploy.yml&quot; - include: &quot;start.yml&quot;"><pre class="notranslate"><code class="notranslate"># stop-deploy-restart.yml (2.3-style) - include: "stop.yml" - include: "deploy.yml" - include: "start.yml" </code></pre></div> <p dir="auto">But we want to deploy <em>only</em> if every host has stopped successfully. If any host fails the "stop" play, we'd like to fail the wrapping "stop-deploy-restart" playbook.</p> <p dir="auto">In theory we could use "any_errors_fatal", but as I said its behaviour is clearly not bug-free.</p> <p dir="auto">And for the moment we can touch a file in the "post_tasks" part of "stop" in order to keep track of which host has successfully stopped, but there seems to be no mechanism in Ansible that allows us to prevent the plays to continue. I'd like somthing like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# stop-deploy-restart.yml (2.3-style) - include: &quot;stop.yml&quot; - meta: exit when: something_went_wrong # makes every hosts fail AND skips everything else in the playbook - include: &quot;deploy.yml&quot; - include: &quot;start.yml&quot;"><pre class="notranslate"><code class="notranslate"># stop-deploy-restart.yml (2.3-style) - include: "stop.yml" - meta: exit when: something_went_wrong # makes every hosts fail AND skips everything else in the playbook - include: "deploy.yml" - include: "start.yml" </code></pre></div> <p dir="auto">And of course when "any_errors_fatal" is repaired that won't be the nice way to write things. But it could still be usefull.</p> <p dir="auto">Thanks in advance.</p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">task</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">2.2.1.0</p> <h5 dir="auto">CONFIGURATION</h5> <div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[defaults] host_key_checking = False host_key_checking = False record_host_keys = False remote_user = &quot;ubuntu&quot; timeout = 600 nocows = 1 forks = 25 [privilege_escalation] become = True become_method = sudo become_user = root become_ask_pass = False [ssh_connection] pipelining = True"><pre class="notranslate"><span class="pl-en">[defaults]</span> <span class="pl-k">host_key_checking</span> = False <span class="pl-k">host_key_checking</span> = False <span class="pl-k">record_host_keys</span> = False <span class="pl-k">remote_user</span> = <span class="pl-s"><span class="pl-pds">"</span>ubuntu<span class="pl-pds">"</span></span> <span class="pl-k">timeout</span> = 600 <span class="pl-k">nocows</span> = 1 <span class="pl-k">forks</span> = 25 <span class="pl-en">[privilege_escalation]</span> <span class="pl-k">become</span> = True <span class="pl-k">become_method</span> = sudo <span class="pl-k">become_user</span> = root <span class="pl-k">become_ask_pass</span> = False <span class="pl-en">[ssh_connection]</span> <span class="pl-k">pipelining</span> = True</pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">ubuntu 16.04</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">missing host in a task and duplicated on the next in the same playbook/role</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Check if one app have failed &lt;- missing host set_fact: one_fail=true delegate_to: &quot;{{ groups.BASTION[0] }}&quot; delegate_facts: true when: item.rc != 0 with_items: &quot;{{ custom_script.results | default([]) }}&quot; - name: Delete all apps if one script fails &lt;- dupliated host file: path={{ destpath }}/{{ item.item.stdout.split('@')[0] }}/releases/{{ item.item.stdout }} state=absent when: hostvars[groups.BASTION[0]].one_fail | default([]) and exit_fast with_items: &quot;{{ custom_script.results | default([]) }}&quot;"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Check if one app have failed &lt;- missing host</span> <span class="pl-ent">set_fact</span>: <span class="pl-s">one_fail=true</span> <span class="pl-ent">delegate_to</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ groups.BASTION[0] }}<span class="pl-pds">"</span></span> <span class="pl-ent">delegate_facts</span>: <span class="pl-c1">true</span> <span class="pl-ent">when</span>: <span class="pl-s">item.rc != 0</span> <span class="pl-ent">with_items</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ custom_script.results | default([]) }}<span class="pl-pds">"</span></span> - <span class="pl-ent">name</span>: <span class="pl-s">Delete all apps if one script fails &lt;- dupliated host</span> <span class="pl-ent">file</span>: <span class="pl-s">path={{ destpath }}/{{ item.item.stdout.split('@')[0] }}/releases/{{ item.item.stdout }} state=absent</span> <span class="pl-ent">when</span>: <span class="pl-s">hostvars[groups.BASTION[0]].one_fail | default([]) and</span> <span class="pl-s">exit_fast</span> <span class="pl-ent">with_items</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ custom_script.results | default([]) }}<span class="pl-pds">"</span></span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">no missing or duplicated hosts</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="TASK [deployer : Check if one app have failed] ********************************* ok: [172.16.16.128 -&gt; 172.16.17.1] =&gt; (item={u'_ansible_parsed': True, u'cmd': u'sudo -E ... skipping: [172.16.16.135] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ... skipping: [172.16.16.138] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ... skipping: [172.16.16.139] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ... skipping: [172.16.16.102] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ... skipping: [172.16.16.140] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ... skipping: [172.16.16.149] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ... skipping: [172.16.16.150] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ... skipping: [172.16.16.146] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ... TASK [deployer : Delete all apps if one script fails] ************************** skipping: [172.16.16.148] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'std &lt;- DUPLICATED skipping: [172.16.16.145] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'std &lt;- DUPLICATED skipping: [172.16.16.128] =&gt; (item={u'_ansible_parsed': True, u'cmd': u'sudo -E - ... skipping: [172.16.16.139] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ... skipping: [172.16.16.138] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ... skipping: [172.16.16.135] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ... skipping: [172.16.16.140] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ... skipping: [172.16.16.102] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ... skipping: [172.16.16.145] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'std &lt;- DUPLICATED skipping: [172.16.16.146] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ... skipping: [172.16.16.149] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ... skipping: [172.16.16.150] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ... skipping: [172.16.16.148] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'std &lt;- DUPLICATED"><pre class="notranslate"><span class="pl-c1">TASK [deployer : Check if one app have failed] *********************************</span> <span class="pl-c1">ok: [172.16.16.128 -&gt; 172.16.17.1] =&gt; (item={u'_ansible_parsed': True, u'cmd': u'sudo -E ...</span> <span class="pl-c1">skipping: [172.16.16.135] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ...</span> <span class="pl-c1">skipping: [172.16.16.138] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ...</span> <span class="pl-c1">skipping: [172.16.16.139] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ...</span> <span class="pl-c1">skipping: [172.16.16.102] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ...</span> <span class="pl-c1">skipping: [172.16.16.140] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ...</span> <span class="pl-c1">skipping: [172.16.16.149] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ...</span> <span class="pl-c1">skipping: [172.16.16.150] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ...</span> <span class="pl-c1">skipping: [172.16.16.146] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout': ...</span> <span class="pl-c1">TASK [deployer : Delete all apps if one script fails] **************************</span> <span class="pl-c1">skipping: [172.16.16.148] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'std &lt;- DUPLICATED</span> <span class="pl-c1">skipping: [172.16.16.145] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'std &lt;- DUPLICATED</span> <span class="pl-c1">skipping: [172.16.16.128] =&gt; (item={u'_ansible_parsed': True, u'cmd': u'sudo -E - ...</span> <span class="pl-c1">skipping: [172.16.16.139] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ...</span> <span class="pl-c1">skipping: [172.16.16.138] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ...</span> <span class="pl-c1">skipping: [172.16.16.135] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ...</span> <span class="pl-c1">skipping: [172.16.16.140] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ...</span> <span class="pl-c1">skipping: [172.16.16.102] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ...</span> <span class="pl-c1">skipping: [172.16.16.145] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'std &lt;- DUPLICATED</span> <span class="pl-c1">skipping: [172.16.16.146] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ...</span> <span class="pl-c1">skipping: [172.16.16.149] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ...</span> <span class="pl-c1">skipping: [172.16.16.150] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'stdout' ...</span> <span class="pl-c1">skipping: [172.16.16.148] =&gt; (item={u'_ansible_parsed': True, u'changed': True, u'std &lt;- DUPLICATED</span></pre></div>
0
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No. This is on a clean checkout of tensorflow.</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: OSX Sierra</li> <li><strong>TensorFlow installed from (source or binary)</strong>: source</li> <li><strong>TensorFlow version (use command below)</strong>: building from master (command outputs 1.3.0)</li> <li><strong>Python version</strong>: 2.7</li> <li><strong>Bazel version (if compiling from source)</strong>: 0.6.0</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>:<br> Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1<br> Apple LLVM version 9.0.0 (clang-900.0.38)<br> Target: x86_64-apple-darwin16.7.0<br> Thread model: posix<br> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin</li> <li><strong>CUDA/cuDNN version</strong>: N/A (ran ./configure without CUDA)</li> <li><strong>GPU model and memory</strong>: N/A (no GPU)</li> <li><strong>Exact command to reproduce</strong>:</li> </ul> <ol dir="auto"> <li>Check out tensorflow</li> <li>Run ./configure, enable XLA support</li> <li>cd tensorflow/compiler/aot</li> <li>bazel build :tfcompile</li> </ol> <h3 dir="auto">Describe the problem</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: /Users/mattrunchey/gitrepos/tensorflow/tensorflow/compiler/xla/service/llvm_ir/BUILD:171:1: C++ compilation of rule '//tensorflow/compiler/xla/service/llvm_ir:kernel_support_library' failed (Exit 1). tensorflow/compiler/xla/service/llvm_ir/kernel_support_library.cc:101:5: error: no matching function for call to 'transform' std::transform(function-&gt;arg_begin(), function-&gt;arg_end(), ^~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:1922:1: note: candidate template ignored: couldn't infer template argument '_UnaryOperation' transform(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _UnaryOperation __op) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:1932:1: note: candidate function template not viable: requires 5 arguments, but 4 were provided transform(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, ^ 1 error generated."><pre class="notranslate"><code class="notranslate">ERROR: /Users/mattrunchey/gitrepos/tensorflow/tensorflow/compiler/xla/service/llvm_ir/BUILD:171:1: C++ compilation of rule '//tensorflow/compiler/xla/service/llvm_ir:kernel_support_library' failed (Exit 1). tensorflow/compiler/xla/service/llvm_ir/kernel_support_library.cc:101:5: error: no matching function for call to 'transform' std::transform(function-&gt;arg_begin(), function-&gt;arg_end(), ^~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:1922:1: note: candidate template ignored: couldn't infer template argument '_UnaryOperation' transform(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _UnaryOperation __op) ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:1932:1: note: candidate function template not viable: requires 5 arguments, but 4 were provided transform(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, ^ 1 error generated. </code></pre></div> <p dir="auto">This happens across multiple OSes, as well (we tried to compile on a unix distro with the same error).</p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">This seems to stem from a recent change in kernel_support_library.cc (specifically <a class="commit-link" href="https://github.com/tensorflow/tensorflow/commit/c572bc4fd7c73f4b8014ae43cdf9da5b99592f59#diff-877daea43ebeb1cd4756f960400ee922"><tt>c572bc4</tt>#diff-877daea43ebeb1cd4756f960400ee922</a> ).</p>
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: OSX 10.13.2</li> <li><strong>TensorFlow installed from (source or binary)</strong>: Source</li> <li><strong>TensorFlow version (use command below)</strong>: Top of Master (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/34bcd09c5fd4f6435517a499987b7e5044c8f2c0/hovercard" href="https://github.com/tensorflow/tensorflow/commit/34bcd09c5fd4f6435517a499987b7e5044c8f2c0"><tt>34bcd09</tt></a>)</li> <li><strong>Python version</strong>:</li> <li><strong>Bazel version (if compiling from source)</strong>: 0.7.0</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: Apple LLVM version 9.0.0 (clang-900.0.39.2)</li> <li><strong>CUDA/cuDNN version</strong>: N/A</li> <li><strong>GPU model and memory</strong>: N/A</li> <li><strong>Exact command to reproduce</strong>:</li> </ul> <p dir="auto">bazel build tensorflow/compiler/aot/tfcompile</p> <h3 dir="auto">Describe the problem</h3> <p dir="auto">Compiler error when compiling tfcompile on OSX. This was introduced by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sanjoy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sanjoy">@sanjoy</a> Commit:<br> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/c572bc4fd7c73f4b8014ae43cdf9da5b99592f59/hovercard" href="https://github.com/tensorflow/tensorflow/commit/c572bc4fd7c73f4b8014ae43cdf9da5b99592f59"><tt>c572bc4</tt></a></p> <p dir="auto">You will need this PR to be able to fix other compile issues on OSX. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="276869770" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/14893" data-hovercard-type="pull_request" data-hovercard-url="/tensorflow/tensorflow/pull/14893/hovercard" href="https://github.com/tensorflow/tensorflow/pull/14893">#14893</a></p> <p dir="auto">ERROR: /Users/tfninja/github/tensorflow/tensorflow/compiler/xla/service/llvm_ir/BUILD:171:1: C++ compilation of rule '//tensorflow/compiler/xla/service/llvm_ir:kernel_support_library' failed (Exit 1).<br> tensorflow/compiler/xla/service/llvm_ir/kernel_support_library.cc:99:5: error: no matching function for call to 'transform'<br> std::transform(function-&gt;arg_begin(), function-&gt;arg_end(),<br> ^~~~~~~~~~~~~~<br> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:1922:1: note: candidate template ignored: couldn't infer template argument '_UnaryOperation'<br> transform(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _UnaryOperation __op)<br> ^<br> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/algorithm:1932:1: note: candidate function template not viable: requires 5 arguments, but 4 were provided<br> transform(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2,<br> ^<br> 1 error generated.<br> Target //tensorflow/compiler/aot:tfcompile failed to build</p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">The issue seems to be with this line of code in which works on Linux but fails on OSX/Clang tensorflow/compiler/xla/service/llvm_ir/kernel_support_library.cc</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="+ std::transform(function-&gt;arg_begin(), function-&gt;arg_end(), + std::back_inserter(arg_values), std::addressof&lt;llvm::Value&gt;);"><pre class="notranslate"><code class="notranslate">+ std::transform(function-&gt;arg_begin(), function-&gt;arg_end(), + std::back_inserter(arg_values), std::addressof&lt;llvm::Value&gt;); </code></pre></div>
1
<p dir="auto">it would be nice to have Deno catch any unhandled errors</p> <p dir="auto">e.g.</p> <p dir="auto"><code class="notranslate">Deno.catch(e) { console.error(e); }</code></p>
<p dir="auto">I was looking for an equivalent to the Node.js "unhandledrejection" event in Deno, but it appears there isn't one on <code class="notranslate">globalThis</code>.</p> <p dir="auto">There does appear to be an <code class="notranslate">onunhandledrejection</code> event handler <a href="https://github.com/denoland/deno/blob/master/cli/dts/lib.webworker.d.ts#L5468">defined on workers</a>, though.</p> <p dir="auto">Is there an equivalent event outside of workers, and if not, could there be? <g-emoji class="g-emoji" alias="smile" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f604.png">😄</g-emoji></p>
1
<h3 dir="auto">Describe the bug</h3> <p dir="auto">Since the switch from <code class="notranslate">LegacyRow</code> to <code class="notranslate">Row</code> in 2.0.0, deserialization is no longer possible between sessions (it IS possible if you don't restart the kernel).</p> <h3 dir="auto">Optional link from <a href="https://docs.sqlalchemy.org" rel="nofollow">https://docs.sqlalchemy.org</a> which documents the behavior that is expected</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">SQLAlchemy Version in Use</h3> <p dir="auto">1.4.42 and 2.0.4</p> <h3 dir="auto">DBAPI (i.e. the database driver)</h3> <p dir="auto">pg8000</p> <h3 dir="auto">Database Vendor and Major Version</h3> <p dir="auto">PostgreSQL 12</p> <h3 dir="auto">Python Version</h3> <p dir="auto">3.11.2</p> <h3 dir="auto">Operating system</h3> <p dir="auto">Ubuntu 20.04.5 LTS (Focal Fossa)</p> <h3 dir="auto">To Reproduce</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# mre.py import os.path import sqlalchemy import pickle data_path = &quot;data.pkl&quot; if os.path.exists(data_path): with open(data_path, &quot;rb&quot;) as f: data = pickle.load(f) print(f&quot;Deserialized {type(data)=}.&quot;) else: engine = sqlalchemy.create_engine(&quot;postgresql+pg8000://postgres:Sofia123!@localhost:5002/sakila&quot;) with engine.connect() as conn: data = conn.execute(sqlalchemy.text(&quot;SELECT store_id FROM store&quot;)).fetchone() with open(data_path, &quot;wb&quot;) as f: pickle.dump(data, f) print(f&quot;Serialized {type(data)=} using {sqlalchemy.__version__=}.&quot;)"><pre class="notranslate"><span class="pl-c"># mre.py</span> <span class="pl-k">import</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span> <span class="pl-k">import</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-s1">pickle</span> <span class="pl-s1">data_path</span> <span class="pl-c1">=</span> <span class="pl-s">"data.pkl"</span> <span class="pl-k">if</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">exists</span>(<span class="pl-s1">data_path</span>): <span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s1">data_path</span>, <span class="pl-s">"rb"</span>) <span class="pl-k">as</span> <span class="pl-s1">f</span>: <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">pickle</span>.<span class="pl-en">load</span>(<span class="pl-s1">f</span>) <span class="pl-en">print</span>(<span class="pl-s">f"Deserialized <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-en">type</span>(<span class="pl-s1">data</span>)<span class="pl-c1">=</span><span class="pl-kos">}</span></span>."</span>) <span class="pl-k">else</span>: <span class="pl-s1">engine</span> <span class="pl-c1">=</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-en">create_engine</span>(<span class="pl-s">"postgresql+pg8000://postgres:Sofia123!@localhost:5002/sakila"</span>) <span class="pl-k">with</span> <span class="pl-s1">engine</span>.<span class="pl-en">connect</span>() <span class="pl-k">as</span> <span class="pl-s1">conn</span>: <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">conn</span>.<span class="pl-en">execute</span>(<span class="pl-s1">sqlalchemy</span>.<span class="pl-en">text</span>(<span class="pl-s">"SELECT store_id FROM store"</span>)).<span class="pl-en">fetchone</span>() <span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s1">data_path</span>, <span class="pl-s">"wb"</span>) <span class="pl-k">as</span> <span class="pl-s1">f</span>: <span class="pl-s1">pickle</span>.<span class="pl-en">dump</span>(<span class="pl-s1">data</span>, <span class="pl-s1">f</span>) <span class="pl-en">print</span>(<span class="pl-s">f"Serialized <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-en">type</span>(<span class="pl-s1">data</span>)<span class="pl-c1">=</span><span class="pl-kos">}</span></span> using <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">__version__</span><span class="pl-c1">=</span><span class="pl-kos">}</span></span>."</span>)</pre></div> <h3 dir="auto">Error</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/home/dev/mre/mre.py&quot;, line 16, in &lt;module&gt; data = pickle.load(f) ^^^^^^^^^^^^^^ File &quot;/home/dev/mre/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py&quot;, line 1636, in __new__ raise TypeError( TypeError: Can't replace canonical symbol for unpickled with new int value 6015043212151762847"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/home/dev/mre/mre.py", line 16, in &lt;module&gt; data = pickle.load(f) ^^^^^^^^^^^^^^ File "/home/dev/mre/.venv/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 1636, in __new__ raise TypeError( TypeError: Can't replace canonical symbol for unpickled with new int value 6015043212151762847 </code></pre></div> <h3 dir="auto">Additional context</h3> <p dir="auto">The exact dialect + driver don't seem to matter as far as I can tell (I've tested more variants). The issue seems to be <code class="notranslate">Row</code> vs <code class="notranslate">LegacyRow</code>.</p> <p dir="auto">This does NOT appear if you do not allow the python process to exit before deserialization.</p> <p dir="auto">Exact steps that I used for the MRE:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pip install pg8000 docker run -p 5002:5432 -d rsundqvist/sakila-preload:postgres rm -f data.pkl &amp;&amp; pip install 'sqlalchemy==1.4.46' --quiet &amp;&amp; python mre.py &amp;&amp; python mre.py # Serialized type(data)=&lt;class 'sqlalchemy.engine.row.LegacyRow'&gt; using sqlalchemy.__version__='1.4.46'. # Deserialized type(data)=&lt;class 'sqlalchemy.engine.row.LegacyRow'&gt;. rm -f data.pkl &amp;&amp; pip install 'sqlalchemy==2.0.4' --quiet &amp;&amp; python mre.py &amp;&amp; python mre.py # Serialized type(data)=&lt;class 'sqlalchemy.engine.row.Row'&gt; using sqlalchemy.__version__='2.0.4'. # &lt;Stack trace&gt; # TypeError: Can't replace canonical symbol for unpickled with new int value 1856181069431459150 rm -f data.pkl &amp;&amp; pip install 'git+https://github.com/sqlalchemy/sqlalchemy.git' --quiet &amp;&amp; python mre.py &amp;&amp; python mre.py # Serialized type(data)=&lt;class 'sqlalchemy.engine.row.Row'&gt; using sqlalchemy.__version__='2.0.5'. # &lt;Stack trace&gt; # TypeError: Can't replace canonical symbol for unpickled with new int value 6015043212151762847"><pre class="notranslate">pip install pg8000 docker run -p 5002:5432 -d rsundqvist/sakila-preload:postgres rm -f data.pkl <span class="pl-k">&amp;&amp;</span> pip install <span class="pl-s"><span class="pl-pds">'</span>sqlalchemy==1.4.46<span class="pl-pds">'</span></span> --quiet <span class="pl-k">&amp;&amp;</span> python mre.py <span class="pl-k">&amp;&amp;</span> python mre.py <span class="pl-c"><span class="pl-c">#</span> Serialized type(data)=&lt;class 'sqlalchemy.engine.row.LegacyRow'&gt; using sqlalchemy.__version__='1.4.46'.</span> <span class="pl-c"><span class="pl-c">#</span> Deserialized type(data)=&lt;class 'sqlalchemy.engine.row.LegacyRow'&gt;.</span> rm -f data.pkl <span class="pl-k">&amp;&amp;</span> pip install <span class="pl-s"><span class="pl-pds">'</span>sqlalchemy==2.0.4<span class="pl-pds">'</span></span> --quiet <span class="pl-k">&amp;&amp;</span> python mre.py <span class="pl-k">&amp;&amp;</span> python mre.py <span class="pl-c"><span class="pl-c">#</span> Serialized type(data)=&lt;class 'sqlalchemy.engine.row.Row'&gt; using sqlalchemy.__version__='2.0.4'.</span> <span class="pl-c"><span class="pl-c">#</span> &lt;Stack trace&gt;</span> <span class="pl-c"><span class="pl-c">#</span> TypeError: Can't replace canonical symbol for unpickled with new int value 1856181069431459150</span> rm -f data.pkl <span class="pl-k">&amp;&amp;</span> pip install <span class="pl-s"><span class="pl-pds">'</span>git+https://github.com/sqlalchemy/sqlalchemy.git<span class="pl-pds">'</span></span> --quiet <span class="pl-k">&amp;&amp;</span> python mre.py <span class="pl-k">&amp;&amp;</span> python mre.py <span class="pl-c"><span class="pl-c">#</span> Serialized type(data)=&lt;class 'sqlalchemy.engine.row.Row'&gt; using sqlalchemy.__version__='2.0.5'.</span> <span class="pl-c"><span class="pl-c">#</span> &lt;Stack trace&gt;</span> <span class="pl-c"><span class="pl-c">#</span> TypeError: Can't replace canonical symbol for unpickled with new int value 6015043212151762847</span></pre></div> <p dir="auto">Maybe I missed something and this isn't permitted anymore?</p> <p dir="auto">// RS</p>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">The (attached, also partially quoted below) test case results in:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RuntimeError: maximum recursion depth exceeded"><pre class="notranslate"><code class="notranslate">RuntimeError: maximum recursion depth exceeded </code></pre></div> <p dir="auto">This appears to have something to do with filtering a query using .in() when what is being tested is a mapped property. I'm not sure if the ability to filter in this particular way is meant to be supported at this time or not, but it seemed worth submitting since in general SA seems to work toward making mapped properties behave as much as possible like ordinary python properties.</p> <p dir="auto">Thanks!</p> <ul dir="auto"> <li> <p dir="auto">Eric</p> <p dir="auto">nodes = Table('nodes', metadata,<br> Column('id', Integer, primary_key=True),<br> Column('parent_id', Integer, ForeignKey('nodes.id'))<br> )<br> fribbits = Table('fribbits', metadata,<br> Column('id', Integer, primary_key=True),<br> Column('node_id', Integer, ForeignKey('nodes.id'))<br> )<br> class Node(object):<br> def list_to_root(self):<br> if self.parent_id == None:<br> return [ else:<br> result = <a href="%5D"></a><br> result.append(self)<br> return result + self.parent.list_to_root()</p> <p dir="auto">mapper(Node, nodes, properties={<br> 'parent': relation(Node, uselist=False, remote_side=<a href="nodes.c.id">nodes.c.id</a>)<br> })<br> mapper(Fribbit, fribbits, properties={<br> 'node': relation(Node, uselist=False)<br> })</p> <p dir="auto">f = session.query(Fribbit).get(4444)<br> n = f.node<br> l = n.list_to_root()</p> <p dir="auto">print "<em>working case</em> here are all Fribbits whose nodes are in that ancestry:",<br> y = map(lambda item:item.id, l)<br> t = session.query(Fribbit).filter(Fribbit.node_id.in_(y)).all()<br> print t</p> <p dir="auto">print "<strong>broken case</strong> here are all Fribbits whose nodes are in that ancestry:",<br> z = session.query(Fribbit).filter(Fribbit.node.in_(l)).all()<br> print z</p> </li> </ul> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/1221/testcase.py">testcase.py</a></p>
0
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14542236" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/3662" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/3662/hovercard" href="https://github.com/pandas-dev/pandas/issues/3662">#3662</a> is about merging a single-level index with a mi</p> <p dir="auto">This is is about a multi-multi merge</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# example described there: In [11]: df = pd.DataFrame(np.random.randn(10,5)) ...: df1 = df[range(0, 3)].set_index([0, 2]) ...: df2 = df[range(2, 5)].set_index([2, 4]) ...: res = df1.join(df2, how='inner') # empty. Do I need to specify something here? ...: exp = pd.DataFrame({1: df[1], 3: df[3]}) ...: exp.index = df[2]"><pre class="notranslate"><code class="notranslate"># example described there: In [11]: df = pd.DataFrame(np.random.randn(10,5)) ...: df1 = df[range(0, 3)].set_index([0, 2]) ...: df2 = df[range(2, 5)].set_index([2, 4]) ...: res = df1.join(df2, how='inner') # empty. Do I need to specify something here? ...: exp = pd.DataFrame({1: df[1], 3: df[3]}) ...: exp.index = df[2] </code></pre></div>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from io import StringIO csv = r&quot;&quot;&quot;Physical\Flows.Solve,9,1,4,0,0,0,0,0,0 1,2,3,4,5,6,7,8,9,10 &quot;&quot;&quot; csv = StringIO(csv) pd.read_csv(csv, engine='python')"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">io</span> <span class="pl-k">import</span> <span class="pl-v">StringIO</span> <span class="pl-s1">csv</span> <span class="pl-c1">=</span> <span class="pl-s">r"""Physical\Flows.Solve,9,1,4,0,0,0,0,0,0</span> <span class="pl-s">1,2,3,4,5,6,7,8,9,10</span> <span class="pl-s">"""</span> <span class="pl-s1">csv</span> <span class="pl-c1">=</span> <span class="pl-v">StringIO</span>(<span class="pl-s1">csv</span>) <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s1">csv</span>, <span class="pl-s1">engine</span><span class="pl-c1">=</span><span class="pl-s">'python'</span>)</pre></div> <p dir="auto">Results in:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/881019/35954774-5cd523e6-0cd7-11e8-80b2-9a15efed3a73.png"><img src="https://user-images.githubusercontent.com/881019/35954774-5cd523e6-0cd7-11e8-80b2-9a15efed3a73.png" alt="image" style="max-width: 100%;"></a></p> <h4 dir="auto">Problem description</h4> <p dir="auto">As can be seen the integer zeros have been cast to non-zero floats!</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.4.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 62 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.22.0 pytest: 3.3.0 pip: 9.0.1 setuptools: 38.4.0 Cython: 0.27.3 numpy: 1.13.3 scipy: 1.0.0 pyarrow: 0.8.0 xarray: 0.10.0 IPython: 6.2.1 sphinx: 1.6.7 patsy: 0.4.1 dateutil: 2.6.1 pytz: 2017.3 blosc: 1.5.1 bottleneck: 1.2.1 tables: 3.4.2 numexpr: 2.6.4 feather: None matplotlib: 2.1.2 openpyxl: 2.5.0b1 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.0.2 lxml: 4.1.1 bs4: 4.6.0 html5lib: 0.9999999 sqlalchemy: 1.1.13 pymysql: 0.8.0 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.4.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 62 Stepping 4, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.22.0 pytest: 3.3.0 pip: 9.0.1 setuptools: 38.4.0 Cython: 0.27.3 numpy: 1.13.3 scipy: 1.0.0 pyarrow: 0.8.0 xarray: 0.10.0 IPython: 6.2.1 sphinx: 1.6.7 patsy: 0.4.1 dateutil: 2.6.1 pytz: 2017.3 blosc: 1.5.1 bottleneck: 1.2.1 tables: 3.4.2 numexpr: 2.6.4 feather: None matplotlib: 2.1.2 openpyxl: 2.5.0b1 xlrd: 1.1.0 xlwt: 1.3.0 xlsxwriter: 1.0.2 lxml: 4.1.1 bs4: 4.6.0 html5lib: 0.9999999 sqlalchemy: 1.1.13 pymysql: 0.8.0 psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None </code></pre></div> </details>
0
<p dir="auto">Previous problem <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="103507951" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/13258" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/13258/hovercard" href="https://github.com/kubernetes/kubernetes/issues/13258">#13258</a> seems to have gone away. The new one is:</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/resize_nodes.go:546 Expected error: &lt;*errors.errorString | 0xc208128130&gt;: { s: &quot;timed out waiting for the condition&quot;, } timed out waiting for the condition not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/resize_nodes.go:546 Expected error: &lt;*errors.errorString | 0xc208128130&gt;: { s: "timed out waiting for the condition", } timed out waiting for the condition not to have occurred </code></pre></div> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wojtek-t/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wojtek-t">@wojtek-t</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ixdy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ixdy">@ixdy</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/brendandburns/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/brendandburns">@brendandburns</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/quinton-hoole/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/quinton-hoole">@quinton-hoole</a></p>
<p dir="auto">Nodes Network when a minion node becomes unreachable [replication controller] recreates pods scheduled on the unreachable minion node AND allows scheduling of pods on a minion after it rejoins the cluster(Failed 17 times in the last 30 runs. Stability: 43 %)Failed with 0 retries</p>
1
<p dir="auto">Hi,</p> <p dir="auto">I am giving the function cv2.solveP3P 3 3D ref points (matrix of size 3x3 type float32) and 2 2D points (matrix of size 3x2 and type float32) camera matrix (3x3) distCoeffs(5,) and the flags= cv2.SOLVEPNP_AP3P.</p> <p dir="auto">But I am getting the error<br> cv2.error: OpenCV(4.1.0) /io/opencv/modules/calib3d/src/undistort.cpp:387: error: (-215:Assertion failed) CV_IS_MAT(_src) &amp;&amp; CV_IS_MAT(_dst) &amp;&amp; (_src-&gt;rows == 1 || _src-&gt;cols == 1) &amp;&amp; (_dst-&gt;rows == 1 || _dst-&gt;cols == 1) &amp;&amp; _src-&gt;cols + _src-&gt;rows - 1 == _dst-&gt;rows + _dst-&gt;cols - 1 &amp;&amp; (CV_MAT_TYPE(_src-&gt;type) == CV_32FC2 || CV_MAT_TYPE(_src-&gt;type) == CV_64FC2) &amp;&amp; (CV_MAT_TYPE(_dst-&gt;type) == CV_32FC2 || CV_MAT_TYPE(_dst-&gt;type) == CV_64FC2) in function 'cvUndistortPointsInternal'</p> <p dir="auto">I can't find the error.</p>
<p dir="auto">There may be a bug in <code class="notranslate">solvePnPRansac</code> when less than 6 points are provided.</p> <p dir="auto">In the sample code below, I'm feeding <code class="notranslate">solvePnPRansac</code> with 6 points in the form of a Nx2 and Nx3 matrices. Everything goes well. This is consistent with the documentation (<a href="https://docs.opencv.org/3.3.1/d9/d0c/group__calib3d.html#ga50620f0e26e02caa2e9adc07b5fbf24e" rel="nofollow">https://docs.opencv.org/3.3.1/d9/d0c/group__calib3d.html#ga50620f0e26e02caa2e9adc07b5fbf24e</a>) and the function asserts (e.g <code class="notranslate"> CV_Assert((opoints.rows == 1 &amp;&amp; opoints.channels() == 3) || opoints.cols*opoints.channels() == 3);</code>)</p> <p dir="auto">When I remove one or more points, the code fails with the following assert error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="unknown location(0): fatal error: in &quot;test_template_tracker/test_und&quot;: cv::Exception: OpenCV(3.4.3) opencv-3.4.3/modules/imgproc/src/undistort.cpp:385: error: (-215:Assertion failed) CV_IS_MAT(_src) &amp;&amp; CV_IS_MAT(_dst) &amp;&amp; (_src-&gt;rows == 1 || _src-&gt;cols == 1) &amp;&amp; (_dst-&gt;rows == 1 || _dst-&gt;cols == 1) &amp;&amp; _src-&gt;cols + _src-&gt;rows - 1 == _dst-&gt;rows + _dst-&gt;cols - 1 &amp;&amp; (CV_MAT_TYPE(_src-&gt;type) == CV_32FC2 || CV_MAT_TYPE(_src-&gt;type) == CV_64FC2) &amp;&amp; (CV_MAT_TYPE(_dst-&gt;type) == CV_32FC2 || CV_MAT_TYPE(_dst-&gt;type) == CV_64FC2) in function 'cvUndistortPointsInternal'"><pre class="notranslate"><code class="notranslate">unknown location(0): fatal error: in "test_template_tracker/test_und": cv::Exception: OpenCV(3.4.3) opencv-3.4.3/modules/imgproc/src/undistort.cpp:385: error: (-215:Assertion failed) CV_IS_MAT(_src) &amp;&amp; CV_IS_MAT(_dst) &amp;&amp; (_src-&gt;rows == 1 || _src-&gt;cols == 1) &amp;&amp; (_dst-&gt;rows == 1 || _dst-&gt;cols == 1) &amp;&amp; _src-&gt;cols + _src-&gt;rows - 1 == _dst-&gt;rows + _dst-&gt;cols - 1 &amp;&amp; (CV_MAT_TYPE(_src-&gt;type) == CV_32FC2 || CV_MAT_TYPE(_src-&gt;type) == CV_64FC2) &amp;&amp; (CV_MAT_TYPE(_dst-&gt;type) == CV_32FC2 || CV_MAT_TYPE(_dst-&gt;type) == CV_64FC2) in function 'cvUndistortPointsInternal' </code></pre></div> <p dir="auto">The problem is that when there are less than 6 point this branch of <code class="notranslate">solvePnPRansac</code> is executed <a href="https://github.com/opencv/opencv/blob/master/modules/calib3d/src/solvepnp.cpp#L312">https://github.com/opencv/opencv/blob/master/modules/calib3d/src/solvepnp.cpp#L312</a><br> in which <code class="notranslate">solvePnP</code> is called using directly the input parameters of <code class="notranslate">solvePnPRansac</code>, in this case Nx3 and Nx2 single channel matrices.</p> <p dir="auto">In turn, <code class="notranslate">solvePnP</code> calls <code class="notranslate">undistortPoints()</code> again with the same parameters received in input. This leads to <code class="notranslate">cvUndistortPointsInternal()</code> which only takes 2-channel matrices as input in the format 1xN or Nx1. Hence the assert error.</p> <p dir="auto">If we look at the code of <code class="notranslate">solvePnPRansac</code> for the case of &gt;= 6 points we see that, before calling <code class="notranslate">solvePnP</code>, <a href="https://github.com/opencv/opencv/blob/master/modules/calib3d/src/solvepnp.cpp#L373">https://github.com/opencv/opencv/blob/master/modules/calib3d/src/solvepnp.cpp#L373</a> the data is reshaped into multichannel matrices with the calls to <code class="notranslate">reshape(3)</code> and <code class="notranslate">reshape(2)</code>.</p> <p dir="auto">So, bottom line, I think there are 2 things to fix:</p> <ol dir="auto"> <li>For the case of the 4 or 5 points in <code class="notranslate">solvePnPRansac</code>, the data has to be converted to multichannel matrices as done for the other case. Something like this (<a href="https://github.com/opencv/opencv/blob/master/modules/calib3d/src/solvepnp.cpp#L312">https://github.com/opencv/opencv/blob/master/modules/calib3d/src/solvepnp.cpp#L312</a>):</li> </ol> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="... if( model_points == npoints ) { opoints = opoints.reshape(3); ipoints = ipoints.reshape(2); bool result = solvePnP(opoints, ipoints, cameraMatrix, distCoeffs, _rvec, _tvec, useExtrinsicGuess, ransac_kernel_method); if(!result) { if( _inliers.needed() ) _inliers.release(); "><pre class="notranslate">... <span class="pl-k">if</span>( model_points == npoints ) { opoints = opoints.<span class="pl-c1">reshape</span>(<span class="pl-c1">3</span>); ipoints = ipoints.<span class="pl-c1">reshape</span>(<span class="pl-c1">2</span>); <span class="pl-k">bool</span> result = <span class="pl-c1">solvePnP</span>(opoints, ipoints, cameraMatrix, distCoeffs, _rvec, _tvec, useExtrinsicGuess, ransac_kernel_method); <span class="pl-k">if</span>(!result) { <span class="pl-k">if</span>( _inliers.<span class="pl-c1">needed</span>() ) _inliers.<span class="pl-c1">release</span>(); </pre></div> <ol start="2" dir="auto"> <li><code class="notranslate">undistortPoints()</code> should not be able to take single channel Nx2 matrices as input: the documentation is right about that (<a href="https://docs.opencv.org/3.4/da/d54/group__imgproc__transform.html#ga55c716492470bfe86b0ee9bf3a1f0f7e" rel="nofollow">https://docs.opencv.org/3.4/da/d54/group__imgproc__transform.html#ga55c716492470bfe86b0ee9bf3a1f0f7e</a>) but in the code (<a href="https://github.com/opencv/opencv/blob/master/modules/calib3d/src/undistort.cpp#L568">https://github.com/opencv/opencv/blob/master/modules/calib3d/src/undistort.cpp#L568</a>) we have the following check</li> </ol> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CV_Assert( src.isContinuous() &amp;&amp; (src.depth() == CV_32F || src.depth() == CV_64F) &amp;&amp; ((src.rows == 1 &amp;&amp; src.channels() == 2) || src.cols*src.channels() == 2));"><pre class="notranslate"><span class="pl-en">CV_Assert</span>( src.isContinuous() &amp;&amp; (src.depth() == CV_32F || src.depth() == CV_64F) &amp;&amp; ((src.rows == <span class="pl-c1">1</span> &amp;&amp; src.channels() == 2) || src.cols*src.channels() == 2));</pre></div> <p dir="auto">and <code class="notranslate">src.cols*src.channels() == 2</code> is what let Nx2 single channel matrices pass. So it should be removed and replaced with <code class="notranslate">src.cols == 1 &amp;&amp; src.channels() == 2</code> to accunt for Nx1 2-channel matrices.</p> <h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.1</li> <li>Operating System / Platform =&gt; all</li> <li>Compiler =&gt; all</li> </ul> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Note: it's just a sample code, the values of points and calibration are irrelevant for the matter.</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="std::vector&lt;int&gt; inliers{}; cv::Mat keypoints13D = (cv::Mat_&lt;float&gt;(5, 3) &lt;&lt; 12.00604, -2.8654366, 18.472504, 7.6863389, 4.9355154, 11.146358, 14.260933, 2.8320458, 12.582781, 3.4562225, 8.2668982, 11.300434, 15.316854, 3.7486348, 12.491116); cv::Mat keypoints22D = (cv::Mat_&lt;float&gt;(5, 2) &lt;&lt; 918.1734, 196.77412, 1341.7848, 946.64838, 1309.8823, 926.85284, 1153.3813, 782.78381, 1399.0817, 488.19058); /* // uncomment the previous 2 lines to see that solvePnPRansac is correctly working with 6 points cv::Mat keypoints13D = (cv::Mat_&lt;float&gt;(6, 3) &lt;&lt; 12.00604, -2.8654366, 18.472504, 7.6863389, 4.9355154, 11.146358, 7.6863389, 4.9355154, 11.146358, 7.6863389, 4.9355154, 11.146358, 14.260933, 2.8320458, 12.582781, 15.316854, 3.7486348, 12.491116); cv::Mat keypoints22D = (cv::Mat_&lt;float&gt;(6, 2) &lt;&lt; 918.1734, 196.77412, 1341.7848, 946.64838, 1341.7848, 946.64838, 1341.7848, 946.64838, 1309.8823, 926.85284, 1399.0817, 488.19058);*/ cv::Mat matK{cv::Mat::eye(3,3,CV_64F)}; cv::Mat distCoeff{cv::Mat::zeros(1,5,CV_64F)}; cv::Mat rvec{cv::Mat::zeros(1,3,CV_64F)}; cv::Mat Tvec{cv::Mat::zeros(1,3,CV_64F)}; const auto&amp; pnpParams = params.pnpParams; cv::solvePnPRansac( keypoints13D, keypoints22D, matK, distCoeff, rvec, Tvec); /* // uncomment these two lines to see that undistortPoints actually takes Nx3 matrices making cvUndistortPointsInternal() fail cv::Mat output; cv::undistortPoints(keypoints22D, output, matK, distCoeff); */"><pre class="notranslate">std::vector&lt;<span class="pl-k">int</span>&gt; inliers{}; cv::Mat keypoints13D = (cv::Mat_&lt;<span class="pl-k">float</span>&gt;(<span class="pl-c1">5</span>, <span class="pl-c1">3</span>) &lt;&lt; <span class="pl-c1">12.00604</span>, -<span class="pl-c1">2.8654366</span>, <span class="pl-c1">18.472504</span>, <span class="pl-c1">7.6863389</span>, <span class="pl-c1">4.9355154</span>, <span class="pl-c1">11.146358</span>, <span class="pl-c1">14.260933</span>, <span class="pl-c1">2.8320458</span>, <span class="pl-c1">12.582781</span>, <span class="pl-c1">3.4562225</span>, <span class="pl-c1">8.2668982</span>, <span class="pl-c1">11.300434</span>, <span class="pl-c1">15.316854</span>, <span class="pl-c1">3.7486348</span>, <span class="pl-c1">12.491116</span>); cv::Mat keypoints22D = (cv::Mat_&lt;<span class="pl-k">float</span>&gt;(<span class="pl-c1">5</span>, <span class="pl-c1">2</span>) &lt;&lt; <span class="pl-c1">918.1734</span>, <span class="pl-c1">196.77412</span>, <span class="pl-c1">1341.7848</span>, <span class="pl-c1">946.64838</span>, <span class="pl-c1">1309.8823</span>, <span class="pl-c1">926.85284</span>, <span class="pl-c1">1153.3813</span>, <span class="pl-c1">782.78381</span>, <span class="pl-c1">1399.0817</span>, <span class="pl-c1">488.19058</span>); <span class="pl-c"><span class="pl-c">/*</span> </span> <span class="pl-c">// uncomment the previous 2 lines to see that solvePnPRansac is correctly working with 6 points </span> <span class="pl-c">cv::Mat keypoints13D = (cv::Mat_&lt;float&gt;(6, 3) &lt;&lt; 12.00604, -2.8654366, 18.472504,</span> <span class="pl-c"> 7.6863389, 4.9355154, 11.146358,</span> <span class="pl-c"> 7.6863389, 4.9355154, 11.146358,</span> <span class="pl-c"> 7.6863389, 4.9355154, 11.146358,</span> <span class="pl-c"> 14.260933, 2.8320458, 12.582781,</span> <span class="pl-c"> 15.316854, 3.7486348, 12.491116);</span> <span class="pl-c"></span> <span class="pl-c"> cv::Mat keypoints22D = (cv::Mat_&lt;float&gt;(6, 2) &lt;&lt; 918.1734, 196.77412,</span> <span class="pl-c"> 1341.7848, 946.64838,</span> <span class="pl-c"> 1341.7848, 946.64838,</span> <span class="pl-c"> 1341.7848, 946.64838,</span> <span class="pl-c"> 1309.8823, 926.85284,</span> <span class="pl-c"> 1399.0817, 488.19058);<span class="pl-c">*/</span></span> cv::Mat matK{<span class="pl-c1">cv::Mat::eye</span>(<span class="pl-c1">3</span>,<span class="pl-c1">3</span>,CV_64F)}; cv::Mat distCoeff{<span class="pl-c1">cv::Mat::zeros</span>(<span class="pl-c1">1</span>,<span class="pl-c1">5</span>,CV_64F)}; cv::Mat rvec{<span class="pl-c1">cv::Mat::zeros</span>(<span class="pl-c1">1</span>,<span class="pl-c1">3</span>,CV_64F)}; cv::Mat Tvec{<span class="pl-c1">cv::Mat::zeros</span>(<span class="pl-c1">1</span>,<span class="pl-c1">3</span>,CV_64F)}; <span class="pl-k">const</span> <span class="pl-k">auto</span>&amp; pnpParams = params.pnpParams; <span class="pl-en">cv::solvePnPRansac</span>( keypoints13D, keypoints22D, matK, distCoeff, rvec, Tvec); <span class="pl-c"><span class="pl-c">/*</span></span> <span class="pl-c"> // uncomment these two lines to see that undistortPoints actually takes Nx3 matrices making cvUndistortPointsInternal() fail </span> <span class="pl-c"> cv::Mat output;</span> <span class="pl-c"> cv::undistortPoints(keypoints22D, output, matK, distCoeff);</span> <span class="pl-c"><span class="pl-c">*/</span></span></pre></div>
1
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.32.3]</li> <li>Operating System: [macOS 13.2.1]</li> <li>Browser: [Chromium]</li> <li>Command: docker run --ipc=host --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.32.3-focal /bin/bash &amp; npx playwright test</li> </ul> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ projects: [ { name: 'chromium', use: { ...devices['Desktop Chrome'], }, }, });"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Chrome'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos"></span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>Test file (self-contained)</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="it('should have a screenshot name ending with linux when running with the docker image mcr.microsoft.com/playwright:v1.32.3-focal', async ({ page }) =&gt; { await expect(await page).toHaveScreenshot('test.png'); });"><pre class="notranslate"><span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should have a screenshot name ending with linux when running with the docker image mcr.microsoft.com/playwright:v1.32.3-focal'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-en">expect</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-kos">.</span><span class="pl-en">toHaveScreenshot</span><span class="pl-kos">(</span><span class="pl-s">'test.png'</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>Expected</strong></p> <p dir="auto">test-chromium-linux.png</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">test-chromium-darwin.png</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: "@playwright/test": "^1.31.2"</li> <li>Operating System: [Windows 10.]</li> <li>Browser: [WebKit]</li> </ul> <h3 dir="auto">Source code</h3> <ul dir="auto"> <li>[X ] I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// browser.test.ts import { test } from &quot;@playwright/test&quot;; test(&quot;test browser&quot;, async ({ page }) =&gt; { // point this to wherever you want await page.goto(&quot;http://localhost:4200/&quot;); // keep browser open await page.pause(); }); "><pre class="notranslate"><span class="pl-c">// browser.test.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"@playwright/test"</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">"test browser"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-c">// point this to wherever you want</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://localhost:4200/"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// keep browser open</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">pause</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> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" **Steps** - Run command: npx playwright test --headed --browser=webkit - [...] **Expected** [Describe expected behavior] **Actual** ![image](https://user-images.githubusercontent.com/108359768/224100947-6b557ef0-d1a1-4c20-8567-76edef5343fd.png) [Describe actual behavior]"><pre class="notranslate"><code class="notranslate"> **Steps** - Run command: npx playwright test --headed --browser=webkit - [...] **Expected** [Describe expected behavior] **Actual** ![image](https://user-images.githubusercontent.com/108359768/224100947-6b557ef0-d1a1-4c20-8567-76edef5343fd.png) [Describe actual behavior] </code></pre></div>
0
<p dir="auto">requests 2.14+ centos7 py27</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="omeroweb_1 | Running setup.py egg_info for package requests omeroweb_1 | error in requests setup command: Invalid environment marker: platform_system == &quot;Windows&quot; and python_version&lt;&quot;3.3&quot; omeroweb_1 | Complete output from command python setup.py egg_info: omeroweb_1 | error in requests setup command: Invalid environment marker: platform_system == &quot;Windows&quot; and python_version&lt;&quot;3.3&quot;"><pre class="notranslate"><code class="notranslate">omeroweb_1 | Running setup.py egg_info for package requests omeroweb_1 | error in requests setup command: Invalid environment marker: platform_system == "Windows" and python_version&lt;"3.3" omeroweb_1 | Complete output from command python setup.py egg_info: omeroweb_1 | error in requests setup command: Invalid environment marker: platform_system == "Windows" and python_version&lt;"3.3" </code></pre></div>
<p dir="auto">Example with pip 6.1.1 (but same with pip 8.1.1):</p> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt; pip install requests You are using pip version 6.1.1, however version 9.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting requests Using cached requests-2.14.0-py2.py3-none-any.whl Exception: Traceback (most recent call last): File &quot;D:\VEnvs\testpip\lib\site-packages\pip\basecommand.py&quot;, line 246, in main status = self.run(options, args) File &quot;D:\VEnvs\testpip\lib\site-packages\pip\commands\install.py&quot;, line 342, in run requirement_set.prepare_files(finder) File &quot;D:\VEnvs\testpip\lib\site-packages\pip\req\req_set.py&quot;, line 345, in prepare_files functools.partial(self._prepare_file, finder)) File &quot;D:\VEnvs\testpip\lib\site-packages\pip\req\req_set.py&quot;, line 290, in _walk_req_to_install more_reqs = handler(req_to_install) File &quot;D:\VEnvs\testpip\lib\site-packages\pip\req\req_set.py&quot;, line 557, in _prepare_file set(req_to_install.extras) - set(dist.extras) File &quot;D:\VEnvs\testpip\lib\site-packages\pip\_vendor\pkg_resources\__init__.py&quot;, line 2758, in extras return [dep for dep in self._dep_map if dep] File &quot;D:\VEnvs\testpip\lib\site-packages\pip\_vendor\pkg_resources\__init__.py&quot;, line 2781, in _dep_map self.__dep_map = self._compute_dependencies() File &quot;D:\VEnvs\testpip\lib\site-packages\pip\_vendor\pkg_resources\__init__.py&quot;, line 2814, in _compute_dependencies common = frozenset(reqs_for_extra(None)) File &quot;D:\VEnvs\testpip\lib\site-packages\pip\_vendor\pkg_resources\__init__.py&quot;, line 2811, in reqs_for_extra if req.marker_fn(override={'extra':extra}): File &quot;D:\VEnvs\testpip\lib\site-packages\pip\_vendor\_markerlib\markers.py&quot;, line 113, in marker_fn return eval(compiled_marker, environment) File &quot;&lt;environment marker&gt;&quot;, line 1, in &lt;module&gt; NameError: name 'platform_system' is not defined"><pre class="notranslate">&gt; <span class="pl-s1">pip install requests</span> <span class="pl-c1">You are using pip version 6.1.1, however version 9.0.1 is available.</span> <span class="pl-c1">You should consider upgrading via the 'pip install --upgrade pip' command.</span> <span class="pl-c1">Collecting requests</span> <span class="pl-c1"> Using cached requests-2.14.0-py2.py3-none-any.whl</span> <span class="pl-c1"> Exception:</span> <span class="pl-c1"> Traceback (most recent call last):</span> <span class="pl-c1"> File "D:\VEnvs\testpip\lib\site-packages\pip\basecommand.py", line 246, in main</span> <span class="pl-c1"> status = self.run(options, args)</span> <span class="pl-c1"> File "D:\VEnvs\testpip\lib\site-packages\pip\commands\install.py", line 342, in run</span> <span class="pl-c1"> requirement_set.prepare_files(finder)</span> <span class="pl-c1"> File "D:\VEnvs\testpip\lib\site-packages\pip\req\req_set.py", line 345, in prepare_files</span> <span class="pl-c1"> functools.partial(self._prepare_file, finder))</span> <span class="pl-c1"> File "D:\VEnvs\testpip\lib\site-packages\pip\req\req_set.py", line 290, in _walk_req_to_install</span> <span class="pl-c1"> more_reqs = handler(req_to_install)</span> <span class="pl-c1"> File "D:\VEnvs\testpip\lib\site-packages\pip\req\req_set.py", line 557, in _prepare_file</span> <span class="pl-c1"> set(req_to_install.extras) - set(dist.extras)</span> <span class="pl-c1"> File "D:\VEnvs\testpip\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2758, in extras</span> <span class="pl-c1"> return [dep for dep in self._dep_map if dep]</span> <span class="pl-c1"> File "D:\VEnvs\testpip\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2781, in _dep_map</span> <span class="pl-c1"> self.__dep_map = self._compute_dependencies()</span> <span class="pl-c1"> File "D:\VEnvs\testpip\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2814, in _compute_dependencies</span> <span class="pl-c1"> common = frozenset(reqs_for_extra(None))</span> <span class="pl-c1"> File "D:\VEnvs\testpip\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2811, in reqs_for_extra</span> <span class="pl-c1"> if req.marker_fn(override={'extra':extra}):</span> <span class="pl-c1"> File "D:\VEnvs\testpip\lib\site-packages\pip\_vendor\_markerlib\markers.py", line 113, in marker_fn</span> <span class="pl-c1"> return eval(compiled_marker, environment)</span> <span class="pl-c1"> File "&lt;environment marker&gt;", line 1, in &lt;module&gt;</span> <span class="pl-c1"> NameError: name 'platform_system' is not defined</span></pre></div> <p dir="auto">So, installing requests 2.14.0 implicitly requires pip &gt;= 9.x. Should be at least in the release note as a disclaimer, or be fixed if it's not on purpose.</p>
1
<p dir="auto">This is what came to my screen:</p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.18362.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/02/2020 18:39:34<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> <h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2> <ul dir="auto"> <li>Windows build number: [run "winver"] Win 10 Version 1903 Build 18362.959</li> <li>PowerToys version: 0.20.0</li> <li>PowerToy module: Powertoys Run<br> System Manufacturer ASUSTeK COMPUTER INC.<br> System Model VivoBook_ASUSLaptop X509DA_M509DA<br> System Type x64-based PC<br> Processor AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx, 2100 Mhz, 4 Core(s), 8 Logical Processor(s)<br> BIOS Version/Date American Megatrends Inc. X509DA.306, 10/11/2019<br> Installed Physical 8.00 GB<br> Memory (RAM)</li> </ul> <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2> <ol dir="auto"> <li>…</li> <li>…</li> <li>…</li> </ol> <h3 dir="auto">✔️ Expected result</h3> <p dir="auto"><em>What is the expected result of the above steps?</em></p> <h3 dir="auto">❌ Actual result</h3> <p dir="auto"><em>What is the actual result of the above steps?</em></p> <h2 dir="auto"><g-emoji class="g-emoji" alias="camera" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4f7.png">📷</g-emoji> Screenshots</h2> <p dir="auto"><em>Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form</em></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67872962/89124212-da6d6d00-d4f2-11ea-86b8-ed38f7ac3e69.png"><img src="https://user-images.githubusercontent.com/67872962/89124212-da6d6d00-d4f2-11ea-86b8-ed38f7ac3e69.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67872962/89124217-ebb67980-d4f2-11ea-9bc5-34013e2552c1.png"><img src="https://user-images.githubusercontent.com/67872962/89124217-ebb67980-d4f2-11ea-9bc5-34013e2552c1.png" alt="image" style="max-width: 100%;"></a><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67872962/89124228-f8d36880-d4f2-11ea-8187-6495613a36e9.png"><img src="https://user-images.githubusercontent.com/67872962/89124228-f8d36880-d4f2-11ea-8187-6495613a36e9.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kuza55/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kuza55">@kuza55</a> on 2016-06-30T17:33:27Z</p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">ec2 module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto">$ ansible --version<br> ansible 2.1.0.0<br> config file = /etc/ansible/ansible.cfg<br> configured module search path = Default w/o overrides</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubuntu on Windows 10</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Changing the group_id value for a running instance has no effect on it's security groups</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Run playbook that creates ec2 instance<br> Add extra group_id to playbook<br> Run playbook again</p> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">ec2 instance is in both security groups</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">security group of instance is not changed.</p> <p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163221719" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/4083" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/4083/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/4083">ansible/ansible-modules-core#4083</a></p>
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Feature Idea</p> <h5 dir="auto">Component Name:</h5> <p dir="auto">ec2 module</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 1.8.1</p> <h5 dir="auto">Environment:</h5> <p dir="auto">N/A</p> <h5 dir="auto">Summary:</h5> <p dir="auto">I did not find a way to change EC2 Security Groups on an existing instance. It is possible to define the groups when creating a new instance with the "ec2" module, but nto to alter, add or remove groups on an existing instance.</p> <p dir="auto">Rationale: I create an instance with a limited set of security groups, so that the software cannot connect to the server yet during provisioning. Then I provision the host, and at the end I want to add a security group so that the host can start connecting to the server and process work.</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">N/A</p> <h5 dir="auto">Expected Results:</h5> <p dir="auto">Being able to:</p> <ul dir="auto"> <li>Add security groups to an existing EC2 instance</li> <li>Remove security groups from an existing EC2 instance</li> <li>Overwrite the security groups on an existing EC2 instance</li> </ul> <h5 dir="auto">Actual Results:</h5> <p dir="auto">N/A</p>
1
<p dir="auto">Original report : <a href="http://stackoverflow.com/questions/28844917/typescript-cant-find-external-module-when-referenced-by-two-different-files" rel="nofollow">http://stackoverflow.com/questions/28844917/typescript-cant-find-external-module-when-referenced-by-two-different-files</a></p> <p dir="auto">Given the structure :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./first/shared.ts ./first/second/class_a.ts ./first/second/class_b.ts ./third/class_c.ts"><pre class="notranslate"><code class="notranslate">./first/shared.ts ./first/second/class_a.ts ./first/second/class_b.ts ./third/class_c.ts </code></pre></div> <p dir="auto">and files :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="shared.ts: class Shared{} export = Shared; class_a.ts: import Shared = require('../shared'); class A{} export = A; class_b.ts: import A = require('./class_a'); import C = require('../../third/class_c'); class B {} export = B; class_c.ts: import Shared = require('../first/shared'); class C {} export = C;"><pre class="notranslate"><code class="notranslate">shared.ts: class Shared{} export = Shared; class_a.ts: import Shared = require('../shared'); class A{} export = A; class_b.ts: import A = require('./class_a'); import C = require('../../third/class_c'); class B {} export = B; class_c.ts: import Shared = require('../first/shared'); class C {} export = C; </code></pre></div> <p dir="auto">Compiling class_b.ts fails with the error that it can't find shared.ts:<br> <code class="notranslate">tsc --module commonjs class_b.ts</code></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="../../third/class_c.ts(1,25): error TS2307: Cannot find external module '../first/shared'."><pre class="notranslate"><code class="notranslate">../../third/class_c.ts(1,25): error TS2307: Cannot find external module '../first/shared'. </code></pre></div> <p dir="auto">It should not error.</p> <p dir="auto"><strong>Note that it doesn't happen in the language service</strong><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/874898/6476486/757c580c-c26a-11e4-9342-e04b102eb21f.png"><img src="https://cloud.githubusercontent.com/assets/874898/6476486/757c580c-c26a-11e4-9342-e04b102eb21f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">(Also posted on StackOverflow: <a href="https://stackoverflow.com/questions/28844917/typescript-cant-find-external-module-when-referenced-by-two-different-files" rel="nofollow">https://stackoverflow.com/questions/28844917/typescript-cant-find-external-module-when-referenced-by-two-different-files</a>)</p> <p dir="auto">I may be missing something obvious, but Typescript's module resolver for commonjs isn't working as expected.</p> <p dir="auto">Given the following directory structure and files:</p> <ul dir="auto"> <li>./first/shared.ts</li> <li>./first/second/class_a.ts</li> <li>./first/second/class_b.ts</li> <li>./third/class_c.ts</li> </ul> <p dir="auto">Where:</p> <ul dir="auto"> <li>class_a references shared.ts</li> <li>class_b references class_a.ts and class_c.ts</li> <li>class_c references shared.ts</li> </ul> <p dir="auto">Specifically:</p> <p dir="auto">shared.ts:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Shared{} export = Shared;"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Shared</span><span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-smi">Shared</span><span class="pl-kos">;</span></pre></div> <p dir="auto">class_a.ts:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import Shared = require('../shared'); class A{} export = A;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-smi">Shared</span> <span class="pl-c1">=</span> require<span class="pl-kos">(</span><span class="pl-s">'../shared'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-smi">A</span><span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-smi">A</span><span class="pl-kos">;</span></pre></div> <p dir="auto">class_b.ts:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import A = require('./class_a'); import C = require('../../third/class_c'); class B {} export = B;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-smi">A</span> <span class="pl-c1">=</span> require<span class="pl-kos">(</span><span class="pl-s">'./class_a'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-smi">C</span> <span class="pl-c1">=</span> require<span class="pl-kos">(</span><span class="pl-s">'../../third/class_c'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-smi">B</span><span class="pl-kos">;</span></pre></div> <p dir="auto">class_c.ts:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import Shared = require('../first/shared'); class C {} export = C;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-smi">Shared</span> <span class="pl-c1">=</span> require<span class="pl-kos">(</span><span class="pl-s">'../first/shared'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">class</span> <span class="pl-smi">C</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-k">export</span> <span class="pl-c1">=</span> <span class="pl-smi">C</span><span class="pl-kos">;</span></pre></div> <p dir="auto">All compile individually, except class_b.ts, using the following compiler invocation:</p> <p dir="auto"><code class="notranslate">tsc --module commonjs class_b.ts</code></p> <p dir="auto">Compiling class_b.ts fails with the error that it can't find shared.ts:</p> <p dir="auto"><code class="notranslate">../../third/class_c.ts(1,25): error TS2307: Cannot find external module '../first/shared'.</code></p> <p dir="auto">Note that if you reverse the order of imports in class_b.ts, you get a different error:</p> <p dir="auto"><code class="notranslate">class_a.ts(1,25): error TS2307: Cannot find external module '../shared'.</code></p> <p dir="auto">It seems the compiler is finding shared.ts the first time it is imported, but not the second time.</p> <p dir="auto">This is with tsc 1.4.1.0.</p>
1
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 1.6</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Ubuntu 13.10</p> <h5 dir="auto">Summary:</h5> <p dir="auto">The module does not handle hosts file like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="10.0.3.204 ansible_ssh_user=ubuntu"><pre class="notranslate"><code class="notranslate">10.0.3.204 ansible_ssh_user=ubuntu </code></pre></div> <h5 dir="auto">Steps To Reproduce:</h5> <ul dir="auto"> <li>Install Ansible from the devel branch of the repository.</li> <li>Update hosts file with content in summary.</li> <li>Create a playbook using the synchronize module.</li> <li>Run it.</li> </ul> <h5 dir="auto">Expected Results:</h5> <p dir="auto">It does synchronize files.</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">It does fail with the following message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="failed: [10.0.3.204 ansible_ssh_user=ubuntu] =&gt; {&quot;failed&quot;: true} msg: unsupported parameter for module: ansible_ssh_user FATAL: all hosts have already failed -- aborting"><pre class="notranslate"><code class="notranslate">failed: [10.0.3.204 ansible_ssh_user=ubuntu] =&gt; {"failed": true} msg: unsupported parameter for module: ansible_ssh_user FATAL: all hosts have already failed -- aborting </code></pre></div>
<h5 dir="auto">Issue Type:</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">Ansible Version:</h5> <p dir="auto">ansible 1.6</p> <h5 dir="auto">Environment:</h5> <p dir="auto">Ubuntu 13.10 amd64</p> <h5 dir="auto">Summary:</h5> <p dir="auto">Ansible is unable to handle aliases that are not "real" hostnames:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cloudncode-ansible-0 ansible_ssh_host=10.0.3.204 ansible_ssh_user=ubuntu"><pre class="notranslate"><code class="notranslate">cloudncode-ansible-0 ansible_ssh_host=10.0.3.204 ansible_ssh_user=ubuntu </code></pre></div> <h5 dir="auto">Steps To Reproduce:</h5> <ul dir="auto"> <li>Install Ansible from GitHub devel branch.</li> <li>Update hosts file with content in summary.</li> <li>Create a dummy playbook.</li> <li>Run it.</li> </ul> <h5 dir="auto">Expected Results:</h5> <p dir="auto">Expected to not fail.</p> <h5 dir="auto">Actual Results:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [cloudncode-ansible-0 ansible_ssh_host=10.0.3.204 ansible_ssh_user=ubuntu] =&gt; {'msg': 'FAILED: [Errno -2] Name or service not known', 'failed': True}"><pre class="notranslate"><code class="notranslate">fatal: [cloudncode-ansible-0 ansible_ssh_host=10.0.3.204 ansible_ssh_user=ubuntu] =&gt; {'msg': 'FAILED: [Errno -2] Name or service not known', 'failed': True} </code></pre></div>
1
<p dir="auto">I recently tried <code class="notranslate">[email protected]</code> and I noticed that there's a regression.</p> <p dir="auto">My dependency chain is:<br> (my project) &lt;-- <code class="notranslate">@babel/preset-stage-0</code> &lt;-- <code class="notranslate">@babel/preset-stage-1</code> &lt;-- <code class="notranslate">@babel/plugin-proposal-decorators</code></p> <p dir="auto">It looks like the pre-beta.35 version of the plugin did opt out because of this code:</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/babel/babel/blob/a7c9264c792baf8aa09ae47887c88863245eb4ca/packages/babel-plugin-proposal-decorators/src/index.js#L375-L381">babel/packages/babel-plugin-proposal-decorators/src/index.js</a> </p> <p class="mb-0 color-fg-muted"> Lines 375 to 381 in <a data-pjax="true" class="commit-tease-sha" href="/babel/babel/commit/a7c9264c792baf8aa09ae47887c88863245eb4ca">a7c9264</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="L375" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="375"></td> <td id="LC375" 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-kos">(</span> </td> </tr> <tr class="border-0"> <td id="L376" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="376"></td> <td id="LC376" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">!</span><span class="pl-s1">path</span> </td> </tr> <tr class="border-0"> <td id="L377" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="377"></td> <td id="LC377" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">"right.callee"</span><span class="pl-kos">)</span> </td> </tr> <tr class="border-0"> <td id="L378" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="378"></td> <td id="LC378" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">.</span><span class="pl-en">isIdentifier</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s1">state</span><span class="pl-kos">.</span><span class="pl-c1">initializerWarningHelper</span><span class="pl-kos">.</span><span class="pl-c1">name</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> </td> </tr> <tr class="border-0"> <td id="L379" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="379"></td> <td id="LC379" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">)</span> <span class="pl-kos">{</span> </td> </tr> <tr class="border-0"> <td id="L380" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="380"></td> <td id="LC380" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span><span class="pl-kos">;</span> </td> </tr> <tr class="border-0"> <td id="L381" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="381"></td> <td id="LC381" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-kos">}</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">While beta.35 does not opt out at its replacement:</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/babel/babel/blob/8a4124b2ffaf33f032383667fa7956bf64759828/packages/babel-plugin-proposal-decorators/src/index.js#L261">babel/packages/babel-plugin-proposal-decorators/src/index.js</a> </p> <p class="mb-0 color-fg-muted"> Line 261 in <a data-pjax="true" class="commit-tease-sha" href="/babel/babel/commit/8a4124b2ffaf33f032383667fa7956bf64759828">8a4124b</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="L261" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="261"></td> <td id="LC261" 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-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">"right.callee"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">isIdentifier</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-k">return</span><span class="pl-kos">;</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">(introduced via <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/babel/babel/commit/9cc0a26694df2a5af508689d7f7b145e7ca483a5/hovercard" href="https://github.com/babel/babel/commit/9cc0a26694df2a5af508689d7f7b145e7ca483a5"><tt>9cc0a26</tt></a>)</p> <p dir="auto">I was not able to track it down to a minimum reproducible example yet.<br> All I was able to check is that the result of expression <code class="notranslate">path.get("right.arguments")</code> in</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/babel/babel/blob/8a4124b2ffaf33f032383667fa7956bf64759828/packages/babel-plugin-proposal-decorators/src/index.js#L268">babel/packages/babel-plugin-proposal-decorators/src/index.js</a> </p> <p class="mb-0 color-fg-muted"> Line 268 in <a data-pjax="true" class="commit-tease-sha" href="/babel/babel/commit/8a4124b2ffaf33f032383667fa7956bf64759828">8a4124b</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="L268" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="268"></td> <td id="LC268" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">"right.arguments"</span><span class="pl-kos">)</span><span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-c1">node</span><span class="pl-kos">,</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">has length of <code class="notranslate">1</code>.<br> I also checked that adding <code class="notranslate">if (!path.get("right.arguments")[1]) return;</code> prevents the error from being triggered but it was only a blind guess of mine to add that line there. I'm not aware of the consequences of such move</p> <table role="table"> <thead> <tr> <th>software</th> <th>version(s)</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td>7.0.0-beta.35</td> </tr> <tr> <td>Babylon</td> <td>n/a </td> </tr> <tr> <td>node</td> <td>8.9.1</td> </tr> <tr> <td>npm</td> <td>5.5.1</td> </tr> <tr> <td>Operating System</td> <td>macOS 10.13.1</td> </tr> </tbody> </table>
<p dir="auto">Choose one:</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> bug</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> feature</li> </ul> <p dir="auto"><a href="https://github.com/julien-f/babel-decorators-issue">Repro repository</a>.</p> <h3 dir="auto">Input Code</h3> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="global.foo = f()"><pre class="notranslate"><span class="pl-s1">global</span><span class="pl-kos">.</span><span class="pl-c1">foo</span> <span class="pl-c1">=</span> <span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div> <h3 dir="auto">Babel/Babylon Configuration (.babelrc, package.json, cli command)</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;plugins&quot;: [ &quot;@babel/plugin-proposal-decorators&quot; ] }"><pre class="notranslate">{ <span class="pl-ent">"plugins"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>@babel/plugin-proposal-decorators<span class="pl-pds">"</span></span> ] }</pre></div> <h3 dir="auto">Expected Behavior</h3> <p dir="auto">It should compile the code.</p> <h3 dir="auto">Current Behavior</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Cannot read property 'node' of undefined at PluginPass.AssignmentExpression (&lt;dir&gt;/node_modules/@babel/plugin-proposal-decorators/lib/index.js:139:224) at newFn (&lt;dir&gt;/node_modules/@babel/traverse/lib/visitors.js:223:21) at NodePath._call (&lt;dir&gt;/node_modules/@babel/traverse/lib/path/context.js:64:19) at NodePath.call (&lt;dir&gt;/node_modules/@babel/traverse/lib/path/context.js:38:17) at NodePath.visit (&lt;dir&gt;/node_modules/@babel/traverse/lib/path/context.js:99:12) at TraversalContext.visitQueue (&lt;dir&gt;/node_modules/@babel/traverse/lib/context.js:139:18) at TraversalContext.visitSingle (&lt;dir&gt;/node_modules/@babel/traverse/lib/context.js:98:19) at TraversalContext.visit (&lt;dir&gt;/node_modules/@babel/traverse/lib/context.js:180:19) at Function.traverse.node (&lt;dir&gt;/node_modules/@babel/traverse/lib/index.js:76:17) at NodePath.visit (&lt;dir&gt;/node_modules/@babel/traverse/lib/path/context.js:106:18)"><pre class="notranslate"><code class="notranslate">TypeError: Cannot read property 'node' of undefined at PluginPass.AssignmentExpression (&lt;dir&gt;/node_modules/@babel/plugin-proposal-decorators/lib/index.js:139:224) at newFn (&lt;dir&gt;/node_modules/@babel/traverse/lib/visitors.js:223:21) at NodePath._call (&lt;dir&gt;/node_modules/@babel/traverse/lib/path/context.js:64:19) at NodePath.call (&lt;dir&gt;/node_modules/@babel/traverse/lib/path/context.js:38:17) at NodePath.visit (&lt;dir&gt;/node_modules/@babel/traverse/lib/path/context.js:99:12) at TraversalContext.visitQueue (&lt;dir&gt;/node_modules/@babel/traverse/lib/context.js:139:18) at TraversalContext.visitSingle (&lt;dir&gt;/node_modules/@babel/traverse/lib/context.js:98:19) at TraversalContext.visit (&lt;dir&gt;/node_modules/@babel/traverse/lib/context.js:180:19) at Function.traverse.node (&lt;dir&gt;/node_modules/@babel/traverse/lib/index.js:76:17) at NodePath.visit (&lt;dir&gt;/node_modules/@babel/traverse/lib/path/context.js:106:18) </code></pre></div> <h3 dir="auto">Your Environment</h3> <table role="table"> <thead> <tr> <th>software</th> <th>version(s)</th> </tr> </thead> <tbody> <tr> <td>Babel</td> <td>7.0.0-beta.35</td> </tr> <tr> <td>Babylon</td> <td></td> </tr> <tr> <td>node</td> <td>9.3.0</td> </tr> <tr> <td>npm</td> <td>5.5.1</td> </tr> <tr> <td>Operating System</td> <td>Fedora 27</td> </tr> </tbody> </table>
1
<h4 dir="auto">Challenge Name</h4> <p dir="auto"><a href="https://www.freecodecamp.com/challenges/line-up-form-elements-responsively-with-bootstrap" rel="nofollow">https://www.freecodecamp.com/challenges/line-up-form-elements-responsively-with-bootstrap</a></p> <h4 dir="auto">Issue Description</h4> <p dir="auto">The final product of the kitten picture tasks is quite ugly (at least on firefox). The "Loving" choice in personality section drops down a line instead of staying on the row. And the button text on some buttons overflow or are too far to the right.</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version:<br> Firefox, 51.0.1 (64 bit)</li> <li>Operating System:<br> MacOS</li> <li>Mobile, Desktop, or Tablet:</li> </ul> <h4 dir="auto">Screenshot</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6877082/23436954/54072028-fdda-11e6-8ead-3d8ea0a23351.png"><img src="https://cloud.githubusercontent.com/assets/6877082/23436954/54072028-fdda-11e6-8ead-3d8ea0a23351.png" alt="screen shot 2017-02-28 at 5 18 53 pm" style="max-width: 100%;"></a></p>
<p dir="auto">Forewarning, this <em>may</em> be bike-shedding worthy....</p> <h3 dir="auto">Workspace</h3> <p dir="auto">User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36</code>. (Chrome on Windows 7)</p> <h3 dir="auto">Setting</h3> <p dir="auto">The CatPhoto is where you make an web page and one component is adding three buttons like below.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199337/7156ec7e-f798-11e5-864c-49dd8c334c40.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199337/7156ec7e-f798-11e5-864c-49dd8c334c40.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Problem</h3> <p dir="auto">But then you will eventually make it into something like this below.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199333/641738c0-f798-11e5-9464-43c6de465704.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199333/641738c0-f798-11e5-9464-43c6de465704.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Notice that the red Delete button is squished and on the side (this is mostly a desktop problem; mobile user won't have the same issue -- see below)</p> <h4 dir="auto">Mobile Version</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199436/364c3a70-f799-11e5-98af-7dbe7da0fbb1.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199436/364c3a70-f799-11e5-98af-7dbe7da0fbb1.png" alt="image" style="max-width: 100%;"></a></p> <h3 dir="auto">Solution</h3> <p dir="auto">So I propose two things:</p> <ul dir="auto"> <li>Change the "Delete" button into a "Edit" button so it'll fit on the button better. <ul dir="auto"> <li>This is fairly easy. You'll just need to change this in the challenge seeds starting with the challenge <a href="https://www.freecodecamp.com/challenges/warn-your-users-of-a-dangerous-action" rel="nofollow">Warn your Users of a Dangerous Action</a> where the button is added.</li> <li>Then change the challenges up until the last one on <a href="https://www.freecodecamp.com/challenges/line-up-form-elements-responsively-with-bootstrap" rel="nofollow">Line up Form Elements Responsively with Bootstrap</a>.</li> <li>You could also change the icon if appropriate.</li> </ul> </li> <li>Add new challenge to add in making all three of those buttons also have the class <code class="notranslate">btn-sm</code> to make the text inside the button not seem all smushed. <ul dir="auto"> <li>This one will require a little more effort in making an entirely new challenge, which may be unnecessary.</li> </ul> </li> </ul> <p dir="auto">Example:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;button class=&quot;btn btn-block btn-info btn-sm&quot;&gt;&lt;i class=&quot;fa fa-info-circle&quot;&gt;&lt;/i&gt; Info&lt;/button&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block btn-info btn-sm</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-info-circle</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">i</span><span class="pl-kos">&gt;</span> Info<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">If the proposed changes were made, the finished app will look like this:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199509/e3e483d6-f799-11e5-8983-b02a50d68da7.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199509/e3e483d6-f799-11e5-8983-b02a50d68da7.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/en/challenges/jquery/target-the-children-of-an-element-using-jquery" rel="nofollow">target-the-children-of-an-element-using-jquery</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0</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=" &lt;script&gt; $(document).ready(function() { $(&quot;#target1&quot;).css(&quot;color&quot;, &quot;red&quot;); $(&quot;#target1&quot;).prop(&quot;disabled&quot;, true); $(&quot;#target4&quot;).remove(); $(&quot;#target2&quot;).appendTo(&quot;#right-well&quot;); $(&quot;#target5&quot;).clone().appendTo(&quot;#left-well&quot;); $(&quot;#target1&quot;).parent().css(&quot;background-color&quot;, &quot;red&quot;); $(&quot;#right-well&quot;).children().css(&quot;color&quot;, &quot;orange&quot;); }); &lt;/script&gt; &lt;!-- Only change code above this line. --&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h3 class=&quot;text-primary text-center&quot;&gt;jQuery Playground&lt;/h3&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#left-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;left-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target1&quot;&gt;#target1&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target2&quot;&gt;#target2&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target3&quot;&gt;#target3&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#right-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;right-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target4&quot;&gt;#target4&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target5&quot;&gt;#target5&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target6&quot;&gt;#target6&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; ``` "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">"disabled"</span><span class="pl-kos">,</span> <span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target2"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target5"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">parent</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"background-color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">children</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"orange"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- Only change code above this line. --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">&gt;</span>jQuery Playground<span class="pl-kos">&lt;/</span><span class="pl-ent">h3</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#left-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">&gt;</span>#target1<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">&gt;</span>#target2<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">&gt;</span>#target3<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#right-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">&gt;</span>#target4<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">&gt;</span>#target5<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">&gt;</span>#target6<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> ```</pre></div>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/en/challenges/jquery/target-the-children-of-an-element-using-jquery" rel="nofollow">target-the-children-of-an-element-using-jquery</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0</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=" &lt;script&gt; $(document).ready(function() { $(&quot;#target1&quot;).css(&quot;color&quot;, &quot;red&quot;); }); &lt;/script&gt; &lt;!-- Only change code above this line. --&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h3 class=&quot;text-primary text-center&quot;&gt;jQuery Playground&lt;/h3&gt; &lt;div class=&quot;row&quot;&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#left-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;left-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target1&quot;&gt;#target1&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target2&quot;&gt;#target2&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target3&quot;&gt;#target3&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class=&quot;col-xs-6&quot;&gt; &lt;h4&gt;#right-well&lt;/h4&gt; &lt;div class=&quot;well&quot; id=&quot;right-well&quot;&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target4&quot;&gt;#target4&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target5&quot;&gt;#target5&lt;/button&gt; &lt;button class=&quot;btn btn-default target&quot; id=&quot;target6&quot;&gt;#target6&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; ``` "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- Only change code above this line. --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">&gt;</span>jQuery Playground<span class="pl-kos">&lt;/</span><span class="pl-ent">h3</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#left-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">&gt;</span>#target1<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">&gt;</span>#target2<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">&gt;</span>#target3<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>#right-well<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">&gt;</span>#target4<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">&gt;</span>#target5<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">&gt;</span>#target6<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> ```</pre></div>
1
<p dir="auto">React version: 17.0.2</p> <h2 dir="auto">Steps To Reproduce</h2> <p dir="auto">I've spend hours on this thing suspecting my code being the bad actor because it was quite complex, but I nailed it down with a help of my friend and it seems like in some cases the <code class="notranslate">key</code> prop in array <em>must</em> be first, otherwise <code class="notranslate">props.children</code> become <code class="notranslate">[undefined, false, undefined, undefined]</code>.</p> <p dir="auto">I have a <a href="https://github.com/sznowicki/repro-react-missing-children">repro repo</a> so you can check it out yourself, but here's some small step by step explanation.</p> <ol dir="auto"> <li>We need a component that wraps children:</li> </ol> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const WrapperWhereMagicHappens = (props) =&gt; { console.log('wrapper props', props) return ( &lt;div&gt;{props.children}&lt;/div&gt; ) }"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">WrapperWhereMagicHappens</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'wrapper props'</span><span class="pl-kos">,</span> <span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">children</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <ol start="2" dir="auto"> <li>Then another one that uses it, with props spread.</li> </ol> <p dir="auto">It maps an array and renders those wrappers spreading some props. Mind the key here is in the end. This one is the troublemaker.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const ChildrenFail = (props) =&gt; { return array.map((label) =&gt; ( &lt;WrapperWhereMagicHappens {...props} key={label} &gt; &lt;h2&gt;{label}&lt;/h2&gt; &lt;div&gt; {console.log(props.children) || props.children} &lt;/div&gt; &lt;/WrapperWhereMagicHappens&gt; )) };"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">ChildrenFail</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">array</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">label</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">WrapperWhereMagicHappens</span> <span class="pl-kos">{</span>...<span class="pl-s1">props</span><span class="pl-kos">}</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">label</span><span class="pl-kos">}</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h2</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s1">label</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h2</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-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">props</span><span class="pl-kos">.</span><span class="pl-c1">children</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">children</span><span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">WrapperWhereMagicHappens</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">If we put the key to the beginning, so before the props spread like this, all works fine.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const ChildrenOK = (props) =&gt; { return array.map((label) =&gt; ( &lt;WrapperWhereMagicHappens key={label} {...props} &gt; &lt;h2&gt;{label}&lt;/h2&gt; &lt;div&gt; {console.log(props.children) || props.children} &lt;/div&gt; &lt;/WrapperWhereMagicHappens&gt; )) };"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">ChildrenOK</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">array</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">label</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">WrapperWhereMagicHappens</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">label</span><span class="pl-kos">}</span> <span class="pl-kos">{</span>...<span class="pl-s1">props</span><span class="pl-kos">}</span> <span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h2</span><span class="pl-c1">&gt;</span><span class="pl-kos">{</span><span class="pl-s1">label</span><span class="pl-kos">}</span><span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h2</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-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">props</span><span class="pl-kos">.</span><span class="pl-c1">children</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-s1">props</span><span class="pl-kos">.</span><span class="pl-c1">children</span><span class="pl-kos">}</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">WrapperWhereMagicHappens</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Now, render:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" const App = () =&gt; { return ( &lt;&gt; &lt;ChildrenFail foo={1} bar={2}&gt; &lt;p&gt;I'm a child&lt;/p&gt; &lt;/ChildrenFail&gt; &lt;ChildrenOK foo={1} bar={2}&gt; &lt;p&gt;I'm a child&lt;/p&gt; &lt;/ChildrenOK&gt; &lt;/&gt; ) }"><pre class="notranslate"><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">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">ChildrenFail</span> <span class="pl-c1">foo</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">1</span><span class="pl-kos">}</span> <span class="pl-c1">bar</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">2</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">p</span><span class="pl-c1">&gt;</span>I'm a child<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">p</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">ChildrenFail</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">ChildrenOK</span> <span class="pl-c1">foo</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">1</span><span class="pl-kos">}</span> <span class="pl-c1">bar</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">2</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">p</span><span class="pl-c1">&gt;</span>I'm a child<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">p</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">ChildrenOK</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <h2 dir="auto">The current behavior</h2> <p dir="auto">The <code class="notranslate">console.log(props.children)</code> from <code class="notranslate">ChildrenOK</code> and <code class="notranslate">ChildrenFail</code> prints react <code class="notranslate">Symbol</code> in all cases, which is expected.</p> <p dir="auto">The console.log in the <code class="notranslate">WrapperWhereMagicHappens</code> prints children as array of <code class="notranslate">undefined, false, undefined, undefined</code> (always this exact thing when <code class="notranslate">key</code> is being passed in the end</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;WrapperWhereMagicHappens {...props} key={label} &gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">WrapperWhereMagicHappens</span> <span class="pl-kos">{</span>...<span class="pl-s1">props</span><span class="pl-kos">}</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">label</span><span class="pl-kos">}</span> <span class="pl-c1">&gt;</span></pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3393569/155396774-9584539e-ac4d-41bc-892a-8835cda7ad01.png"><img width="674" alt="Zrzut ekranu 2022-02-23 o 20 47 03" src="https://user-images.githubusercontent.com/3393569/155396774-9584539e-ac4d-41bc-892a-8835cda7ad01.png" style="max-width: 100%;"></a></p> <p dir="auto">When it's passed first, it's doesn't replace <code class="notranslate">props.children</code><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3393569/155396850-f10695b7-65e8-4b34-88c2-e332c8d5f630.png"><img width="753" alt="Zrzut ekranu 2022-02-23 o 20 47 17" src="https://user-images.githubusercontent.com/3393569/155396850-f10695b7-65e8-4b34-88c2-e332c8d5f630.png" style="max-width: 100%;"></a></p> <p dir="auto">Meaning: <em><strong>When there is a props spread and following <code class="notranslate">key</code> children will never render</strong></em></p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">Children should not be replaced by something when <code class="notranslate">key</code> is defined in the end, after spread.</p> <p dir="auto">First I thought maybe there's some <code class="notranslate">Object</code> property that I don't know and it's called <code class="notranslate">children</code> (didn't found one), so I thought, OK, let's define what keys can go to the spread and make sure there is nothing overwriting <code class="notranslate">children</code></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;WrapperWhereMagicHappens { ...['foo', 'bar'].reduce((acc, curr) =&gt; { acc[curr] = props[curr]; return acc; }, {}) } key={label} &gt;"><pre class="notranslate"> <span class="pl-c1">&lt;</span><span class="pl-ent">WrapperWhereMagicHappens</span> <span class="pl-kos">{</span> ...<span class="pl-kos">[</span><span class="pl-s">'foo'</span><span class="pl-kos">,</span> <span class="pl-s">'bar'</span><span class="pl-kos">]</span><span class="pl-kos">.</span><span class="pl-en">reduce</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">acc</span><span class="pl-kos">,</span> <span class="pl-s1">curr</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">acc</span><span class="pl-kos">[</span><span class="pl-s1">curr</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">props</span><span class="pl-kos">[</span><span class="pl-s1">curr</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">acc</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-c1">key</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">label</span><span class="pl-kos">}</span> <span class="pl-c1">&gt;</span></pre></div> <p dir="auto">But still no luck. When there's spread and then <code class="notranslate">key</code>, <code class="notranslate">props.children</code> always become that mysterious Array of four elements.</p> <p dir="auto">I'm also super curious why this happens anyway, I'd appreciate any support and details.</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> <em>bug</em></p> <p dir="auto"><strong>What is the current behavior?</strong><br> The <code class="notranslate">dispatchEvent</code> method has no effect on input/textarea elements.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://jsfiddle.net" rel="nofollow">https://jsfiddle.net</a> or similar (template: <a href="https://jsfiddle.net/84v837e9/" rel="nofollow">https://jsfiddle.net/84v837e9/</a>).</strong><br> v. 15.5.4: <a href="https://jsfiddle.net/c8tp5mqf/" rel="nofollow">https://jsfiddle.net/c8tp5mqf/</a> (working)<br> v. 15.6.1: <a href="https://jsfiddle.net/6bv1581z/" rel="nofollow">https://jsfiddle.net/6bv1581z/</a> (not working)</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> The <code class="notranslate">dispatchEvent</code> method results in an event being handled.</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong><br> I'm using the latest Chrome browser. This has worked in 15.5.x, stopped working in 15.6.0 and is still not working in 15.6.1.</p> <hr> <p dir="auto">Usecase for this: some old tests that I'd happily remove, but have to support for now.</p>
0
<p dir="auto">I have a YML file that I parse, which has the following syntax for an empty array:</p> <p dir="auto"><code class="notranslate">some_field: [ ]</code></p> <p dir="auto">Upon dumping the same YML file, and not adjusting <code class="notranslate">some_field</code>, the value is dumped as:</p> <p dir="auto"><code class="notranslate">some_field: { }</code></p> <p dir="auto">My understanding is that the <code class="notranslate">{ }</code> syntax is intended for objects, not arrays. As such, I isolated the code found in the <code class="notranslate">dumpArray</code> function which was introducing this behavior:</p> <p dir="auto"><a href="https://github.com/symfony/yaml/blob/2.8/Inline.php#L191">https://github.com/symfony/yaml/blob/2.8/Inline.php#L191</a></p> <p dir="auto"><code class="notranslate">return sprintf('{ %s }', implode(', ', $output));</code></p> <p dir="auto">.... adjusted to ....</p> <p dir="auto"><code class="notranslate">return sprintf('[ %s ]', implode(', ', $output));</code></p> <p dir="auto">... fixes this issue.</p> <p dir="auto">Is there a reason why this is using the object-based syntax and not the array syntax?</p>
<p dir="auto">Right now YAML component dumps an empty array like this: <code class="notranslate">$dump = array('test' =&gt; array());</code> as <code class="notranslate">test: { }</code>. In some applications that use the YAML it needs to be <code class="notranslate">test: [ ]</code> a list instead of a hash.</p> <p dir="auto">In the symfony codebase on this line (<a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Yaml/Inline.php#L160">https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Yaml/Inline.php#L160</a>) I found:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $keys = array_keys($value); if ((1 == count($keys) &amp;&amp; '0' == $keys[0]) || (count($keys) &gt; 1 &amp;&amp; array_reduce($keys, function ($v, $w) { return (integer) $v + $w; }, 0) == count($keys) * (count($keys) - 1) / 2) ) {"><pre class="notranslate"><code class="notranslate"> $keys = array_keys($value); if ((1 == count($keys) &amp;&amp; '0' == $keys[0]) || (count($keys) &gt; 1 &amp;&amp; array_reduce($keys, function ($v, $w) { return (integer) $v + $w; }, 0) == count($keys) * (count($keys) - 1) / 2) ) { </code></pre></div> <p dir="auto">It looks to me if I pass <code class="notranslate">$dump = array('test' =&gt; array('0' =&gt; ''))</code> It should work? However this code outputs: <code class="notranslate">test: - ''</code>. Its successfully using the list format but its passing the blank value. I think another conditional is missing to be able to create: <code class="notranslate">test: [ ]</code>. I checked the unit tests and I can't find anywhere that explains what <code class="notranslate">(1 == count($keys) &amp;&amp; '0' == $keys[0])</code> was intended for other than this purpose.</p> <p dir="auto">EDIT: It doesn't look to be hitting that section of code at all since my indent level is really high. However I am still tring to figure out how to get it to output a <code class="notranslate">[ ]</code> instead of hash <code class="notranslate">{ }</code> since it is invalid yaml for what I am using it for and a blank array defaults to the hash.</p>
1
<p dir="auto">When I quit Atom and reopen, the tabs that I had used disappeared. Can we have Atom remember the last tabs that were open before quitting?</p>
<p dir="auto">A feature I love about ST2 and iA Writer, which I'm missing in Atom, is when you quit the app with open windows (including unsaved documents), they all appear again when you reopen.</p> <p dir="auto">This has saved me countless times in my workflow to handle having to do a system restart for software update, etc and not have to take time to save all my unsaved docs, etc.</p> <p dir="auto">It's also nice because I generally have five or six open projects that I just keep minimized in the editor for ease of access. It would be great to have such a feature in Atom.</p>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Support running commands, utilities with parameters.</p> <p dir="auto">The older run box supports commands and parameters to be used in cases like this:</p> <ul dir="auto"> <li>cmd /k [your command here]</li> <li>ssh <a href="mailto:[email protected]">[email protected]</a></li> <li>runas.exe .......</li> <li>wt (Launch Windows Terminal)</li> <li>ping [server_address_here]</li> </ul> <p dir="auto">and more!</p> <p dir="auto">Could you please allow commands to be used with their optional parameters? Like the old run box did ?</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22074851/82533654-04460300-9b44-11ea-85e2-72e006128a8e.jpg"><img src="https://user-images.githubusercontent.com/22074851/82533654-04460300-9b44-11ea-85e2-72e006128a8e.jpg" alt="PowerToys Run with parameters" style="max-width: 100%;"></a></p>
1
<p dir="auto">The <code class="notranslate">pyfragments.swg</code> file which is shipped with numpy contains a memory leak in the redefinition of <code class="notranslate">SWIG_CanCastAsInteger</code> for <code class="notranslate">long</code> and <code class="notranslate">unsigned long</code>. The <code class="notranslate">PyArray_Desc</code> pointer which is created near the top of the function is not <code class="notranslate">DECREF</code>ed when the function returns. Furthermore, the pointer is created very far away from where it is actually used.</p> <h3 dir="auto">Reproducing code example:</h3> <p dir="auto">The problem can be reproduced with the following:</p> <p dir="auto">A cmake file for building this example (CMakeTexts.txt):</p> <div class="highlight highlight-source-cmake notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="CMAKE_MINIMUM_REQUIRED(VERSION 2.6.2) # Set up libfoo add_library(foo bar.cpp ) add_definitions(-fPIC) target_link_libraries(foo) # Set up swig SET(InterfaceFile foo.i) FIND_PACKAGE(SWIG 3 REQUIRED) INCLUDE(${SWIG_USE_FILE}) SET(CMAKE_SWIG_FLAGS -c++) # Get the python site-packages directory EXECUTE_PROCESS(COMMAND python -c &quot;import site; print(site.getsitepackages()[0])&quot; OUTPUT_VARIABLE PYTHON_SITE OUTPUT_STRIP_TRAILING_WHITESPACE) # INCLUDE SOURCE INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR} ) INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_SOURCE_DIR} ) # PYTHON DIRECTORIES INCLUDE_DIRECTORIES( SYSTEM /path/to/include/python2.7 ) LINK_DIRECTORIES( /path/to/lib/python2.7/ ) # NUMPY INCLUDES INCLUDE_DIRECTORIES( SYSTEM ${PYTHON_SITE}/numpy-1.15.1-py2.7-linux-x86_64.egg/numpy/core/include/ ) SET_SOURCE_FILES_PROPERTIES(${InterfaceFile} PROPERTIES SWIG_MODULE_NAME Foo) SET_SOURCE_FILES_PROPERTIES(${InterfaceFile} PROPERTIES CPLUSPLUS ON) SET(SWIG_MODULE_Foo_EXTRA_DEPS bar.h ) SWIG_ADD_MODULE(Foo python ${InterfaceFile}) SWIG_LINK_LIBRARIES(Foo ${PythonFramework} foo) SET(DLLSuffix so) "><pre class="notranslate"><span class="pl-c1">CMAKE_MINIMUM_REQUIRED</span>(<span class="pl-k">VERSION</span> 2.6.2) <span class="pl-c"><span class="pl-c">#</span> Set up libfoo</span> <span class="pl-c1">add_library</span>(foo bar.cpp ) <span class="pl-c1">add_definitions</span>(-fPIC) <span class="pl-c1">target_link_libraries</span>(foo) <span class="pl-c"><span class="pl-c">#</span> Set up swig</span> <span class="pl-c1">SET</span>(InterfaceFile foo.i) <span class="pl-c1">FIND_PACKAGE</span>(SWIG 3 <span class="pl-k">REQUIRED</span>) <span class="pl-c1">INCLUDE</span>(<span class="pl-smi">${SWIG_USE_FILE}</span>) <span class="pl-c1">SET</span>(CMAKE_SWIG_FLAGS -c++) <span class="pl-c"><span class="pl-c">#</span> Get the python site-packages directory</span> <span class="pl-c1">EXECUTE_PROCESS</span>(<span class="pl-k">COMMAND</span> python -c <span class="pl-s">"import site; print(site.getsitepackages()[0])"</span> <span class="pl-k">OUTPUT_VARIABLE</span> PYTHON_SITE <span class="pl-k">OUTPUT_STRIP_TRAILING_WHITESPACE</span>) <span class="pl-c"><span class="pl-c">#</span> INCLUDE SOURCE</span> <span class="pl-c1">INCLUDE_DIRECTORIES</span>( <span class="pl-smi">${CMAKE_SOURCE_DIR}</span> ) <span class="pl-c1">INCLUDE_DIRECTORIES</span>( <span class="pl-smi">${CMAKE_CURRENT_SOURCE_DIR}</span> ) <span class="pl-c"><span class="pl-c">#</span> PYTHON DIRECTORIES</span> <span class="pl-c1">INCLUDE_DIRECTORIES</span>( <span class="pl-k">SYSTEM</span> /path/to/include/python2.7 ) <span class="pl-c1">LINK_DIRECTORIES</span>( /path/to/lib/python2.7/ ) <span class="pl-c"><span class="pl-c">#</span> NUMPY INCLUDES</span> <span class="pl-c1">INCLUDE_DIRECTORIES</span>( <span class="pl-k">SYSTEM</span> <span class="pl-smi">${PYTHON_SITE}</span>/numpy-1.15.1-py2.7-linux-x86_64.egg/numpy/core/include/ ) <span class="pl-c1">SET_SOURCE_FILES_PROPERTIES</span>(<span class="pl-smi">${InterfaceFile}</span> <span class="pl-k">PROPERTIES</span> SWIG_MODULE_NAME Foo) <span class="pl-c1">SET_SOURCE_FILES_PROPERTIES</span>(<span class="pl-smi">${InterfaceFile}</span> <span class="pl-k">PROPERTIES</span> CPLUSPLUS <span class="pl-k">ON</span>) <span class="pl-c1">SET</span>(SWIG_MODULE_Foo_EXTRA_DEPS bar.h ) SWIG_ADD_MODULE(Foo python <span class="pl-smi">${InterfaceFile}</span>) SWIG_LINK_LIBRARIES(Foo <span class="pl-smi">${PythonFramework}</span> foo) <span class="pl-c1">SET</span>(DLLSuffix so) </pre></div> <p dir="auto">A c++ header file which will be wrapped by swig (bar.h):</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#include &lt;vector&gt; class Bar { public: Bar(int length); double data(int index); private: std::vector&lt;double&gt; data_; };"><pre class="notranslate">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">&lt;</span>vector<span class="pl-pds">&gt;</span></span> <span class="pl-k">class</span> <span class="pl-en">Bar</span> { <span class="pl-k">public:</span> <span class="pl-en">Bar</span>(<span class="pl-k">int</span> length); <span class="pl-k">double</span> <span class="pl-en">data</span>(<span class="pl-k">int</span> index); <span class="pl-k">private:</span> std::vector&lt;<span class="pl-k">double</span>&gt; data_; };</pre></div> <p dir="auto">The respective source file (bar.cpp):</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#include &quot;bar.h&quot; Bar::Bar(int length) : data_(length) { } double Bar::data(int index) { return data_[index]; }"><pre class="notranslate">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">"</span>bar.h<span class="pl-pds">"</span></span> <span class="pl-en">Bar::Bar</span>(<span class="pl-k">int</span> length) : data_(length) { } <span class="pl-k">double</span> <span class="pl-en">Bar::data</span>(<span class="pl-k">int</span> index) { <span class="pl-k">return</span> data_[<span class="pl-c1">index</span>]; }</pre></div> <p dir="auto">The swig interface file (foo.i):</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="%module Foo %{ #include &quot;numpy/arrayobject.h&quot; #include &quot;bar.h&quot; %} %include &quot;numpy.i&quot; %init %{ import_array(); %} %include &quot;bar.h&quot;"><pre class="notranslate">%module Foo %{ #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">"</span>numpy/arrayobject.h<span class="pl-pds">"</span></span> #<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds">"</span>bar.h<span class="pl-pds">"</span></span> %} %include <span class="pl-s"><span class="pl-pds">"</span>numpy.i<span class="pl-pds">"</span></span> %init %{ <span class="pl-c1">import_array</span>(); %} %include <span class="pl-s"><span class="pl-pds">"</span>bar.h<span class="pl-pds">"</span></span></pre></div> <p dir="auto">Once all of these folders are inside a folder, make sure to copy the <code class="notranslate">numpy.i</code> and <code class="notranslate">pyfragments.swg</code> over from your <code class="notranslate">numpy-1.15.1/tools/swig</code>. Then run <code class="notranslate">mkdir build &amp;&amp; cd build &amp;&amp; cmake .. &amp;&amp; make</code>.</p> <p dir="auto">Then once the swig wrapper has been created, the following python script can be executed:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import Foo def main(): foo = Foo.Bar(1) while True: foo.data(0) if __name__ == '__main__': main()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">Foo</span> <span class="pl-k">def</span> <span class="pl-en">main</span>(): <span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-v">Foo</span>.<span class="pl-v">Bar</span>(<span class="pl-c1">1</span>) <span class="pl-k">while</span> <span class="pl-c1">True</span>: <span class="pl-s1">foo</span>.<span class="pl-en">data</span>(<span class="pl-c1">0</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-en">main</span>()</pre></div> <p dir="auto">You can run the example python file with <code class="notranslate">PYTHONPATH=${PYTHONPATH}:$(pwd) ../test.py</code>.</p> <p dir="auto">If the <code class="notranslate">pyfragments.swg</code> file was located in the source tree when the swig module was built, then running the example will show a memory leak. If it was not present, then there will be no memory leak.</p> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">Numpy version: 1.15.1<br> Python version: 2.7.11</p> <p dir="auto">Output from 'import sys, numpy; print(numpy.<strong>version</strong>, sys.version)':<br> ('1.15.1', '2.7.11 (default, Sep 3 2018, 11:28:21) \n[GCC 5.4.0 20160609]')</p>
<p dir="auto">I think I found a memory leak in pyfragments.swg. In both <code class="notranslate">SWIG_AsVal_dec</code> fragments, <code class="notranslate">PyArray_DescrNewFromType</code> is called but its return value may not get deallocated.</p> <p dir="auto">I moved the calls to <code class="notranslate">PyArray_DescrNewFromType</code> to right before their value is used (the calls to <code class="notranslate">PyArray_CastScalarToCtype</code>) and added a call to <code class="notranslate">Py_DECREF</code> and that seems to have fixed my memory leak.</p> <p dir="auto">I discovered this in numpy 1.4.1, but I checked 1.9.0 and I think it's still present there.</p>
1
<p dir="auto">In WebVR one could simply use <code class="notranslate">camera.getWorldDirection()</code> to find the direction in which the camera is pointed in VR. As of r113, in WebXR this same call returns information about the parent rig of the camera, rather than the camera, at least in Oculus browser on both Quest and Go.</p> <p dir="auto">The culprit is the line <code class="notranslate">this.updateMatrixWorld( true )</code> in the function, because without it the correct camera information is returned. I can't see any recent changes in <code class="notranslate">camera.updateMatrixWorld</code> that would cause the change. Is this just expected behavior in WebXR vs WebVR? If so then <code class="notranslate">camera.getWorldDirection</code> is not useful in this context.</p>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">If an object has an onBeforeRender function which calls getWorldPosition on the <code class="notranslate">camera</code> argument, and the user is in VR, then that object (and any rendered after it) will stick to the user's face, as though the VR camera jumped to the origin mid-render.</p> <p dir="auto">Example: <a href="https://ravenworks.ca/temp/threeOBRcamerabug/" rel="nofollow">https://ravenworks.ca/temp/threeOBRcamerabug/</a></p> <h5 dir="auto">Three.js version</h5> <p dir="auto">r112 (and some earlier, though I'm not sure exactly where it broke; this used to work in 2017, but it doesn't now.)</p> <h5 dir="auto">Browser</h5> <p dir="auto">my demo only runs in Chrome because of Three dropping WebVR support, but the same bug happens in Firefox if using A-Frame (that's how I discovered the bug)</p> <h5 dir="auto">OS</h5> <p dir="auto">only tried on Windows 10</p> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> <p dir="auto">Oculus Rift</p>
1
<p dir="auto">I am constructing this in my main menu structure:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" { label: 'Delete', accelerator: 'Backspace', click: function () { var focusedWindow = BrowserWindow.getFocusedWindow(); focusedWindow.webContents.send('remove', 'removing'); }"><pre class="notranslate"><code class="notranslate"> { label: 'Delete', accelerator: 'Backspace', click: function () { var focusedWindow = BrowserWindow.getFocusedWindow(); focusedWindow.webContents.send('remove', 'removing'); } </code></pre></div> <p dir="auto">Now I would like to use The Backspace AND the Delete keys as an accelerator. Have tried several combination for the accelerator, like:</p> <p dir="auto"><code class="notranslate">accelerator: 'Alt+Backspace,Alt+Delete'</code></p> <p dir="auto">or</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="accelerator: 'Alt+Backspace' accelerator: 'Alt+Delete'"><pre class="notranslate"><code class="notranslate">accelerator: 'Alt+Backspace' accelerator: 'Alt+Delete' </code></pre></div> <p dir="auto">But with both attempts, Electron just used the second one. Is there really now way how we can use two keys for the same Accelerator?</p>
<p dir="auto">I am constructing this in my main menu structure:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" { label: 'Delete', accelerator: 'Backspace', click: function () { var focusedWindow = BrowserWindow.getFocusedWindow(); focusedWindow.webContents.send('remove', 'removing'); }"><pre class="notranslate"><code class="notranslate"> { label: 'Delete', accelerator: 'Backspace', click: function () { var focusedWindow = BrowserWindow.getFocusedWindow(); focusedWindow.webContents.send('remove', 'removing'); } </code></pre></div> <p dir="auto">Now I would like to use The Backspace AND the Delete keys as an accelerator. Have tried several combination for the accelerator, like:</p> <p dir="auto"><code class="notranslate">accelerator: 'Alt+Backspace,Alt+Delete'</code></p> <p dir="auto">or</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="accelerator: 'Alt+Backspace' accelerator: 'Alt+Delete'"><pre class="notranslate"><code class="notranslate">accelerator: 'Alt+Backspace' accelerator: 'Alt+Delete' </code></pre></div> <p dir="auto">But with both attempts, Electron just used the second one. Is there really now way how we can use two keys for the same Accelerator?</p>
1
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <p dir="auto">[x ] bug report =&gt; search github for a similar issue or PR before submitting</p> <p dir="auto"><strong>Current behavior</strong><br> A template that refers to a static property of the component class from formGroup as below fails with "formGroup expects a FormGroup instance. Please pass one in" in Angular 4. Works if the property is a non-static instance member.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div [formGroup]=&quot;metaFormGroup&quot;&gt; ... &lt;/div&gt; export class TestHostComponent implements OnInit { public static readonly metaFormGroup: FormGroup = new FormGroup({ ... }); ... };"><pre class="notranslate"><code class="notranslate">&lt;div [formGroup]="metaFormGroup"&gt; ... &lt;/div&gt; export class TestHostComponent implements OnInit { public static readonly metaFormGroup: FormGroup = new FormGroup({ ... }); ... }; </code></pre></div> <p dir="auto"><strong>Expected behavior</strong><br> The template should be able to refer to static members of a component, just like it can refer to instance members.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 4.0.0</li> </ul> <ul dir="auto"> <li> <p dir="auto"><strong>Browser:</strong> Chrome</p> </li> <li> <p dir="auto"><strong>Language:</strong> Typescript 2.2.1</p> </li> <li> <p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 7.6</p> </li> </ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report [x] feature request [ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> you need to use <code class="notranslate">constructor</code></p> <p dir="auto"><strong>Expected/desired behavior</strong><br> perhaps <code class="notranslate">$class</code></p> <p dir="auto"><strong>Reproduction of the problem</strong><br> <a href="http://plnkr.co/edit/JK1FbSomU15KgKU64Tr1?p=preview" rel="nofollow">http://plnkr.co/edit/JK1FbSomU15KgKU64Tr1?p=preview</a></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> you have to use <code class="notranslate">constructor</code></p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> to have access to static data</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> Chrome</li> <li><strong>Language:</strong> TypeScript</li> </ul> <p dir="auto"><a href="http://plnkr.co/edit/JK1FbSomU15KgKU64Tr1?p=preview" rel="nofollow">http://plnkr.co/edit/JK1FbSomU15KgKU64Tr1?p=preview</a><br> related <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="111270690" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/4707" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/4707/hovercard" href="https://github.com/angular/angular/issues/4707">#4707</a></p> <p dir="auto"><a href="https://tipe.io?ref=github-comment" rel="nofollow"><img src="https://user-images.githubusercontent.com/1016365/34912701-7edec34c-f89c-11e7-8c89-bed6cef064b5.png" alt="github-tipe-logo" style="max-width: 100%;"></a></p>
1
<h5 dir="auto">Issue Type: Feature Idea</h5> <h5 dir="auto">Ansible Version: 1.6.2</h5> <h5 dir="auto">Environment: Ubuntu 12.04</h5> <h5 dir="auto">Summary:</h5> <p dir="auto">I would like the ability to have a dependent role's status re-evaluated each time it is called. That way, if a dependent role is called multiple times (e.g by different dependent roles), it won't get skipped.</p> <h5 dir="auto">Steps To Reproduce:</h5> <p dir="auto">When developing a set of roles for apache, I've run into this issue:<br> <a href="https://groups.google.com/forum/#!topic/Ansible-project/xcjUnfFKK6A" rel="nofollow">https://groups.google.com/forum/#!topic/Ansible-project/xcjUnfFKK6A</a></p> <p dir="auto">The basic setup of these roles is 4 different roles for apache:<br> apache2 - this is the base role that contains the apache2 config, installs and configures apache<br> apache2-php - this role adds mod_php, php.ini, etc<br> apache2-ssl - this role adds an SSL certificate and forces all traffic to SSL<br> apache2-all - includes all of the above</p> <p dir="auto">This is nice because some servers only need a subset of this functionality, so I can just include the appropriate features as needed. I've bundled these together using role dependencies, e.g apache2-php/meta/main.yml contains the following:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dependencies: - { role: apache2 }"><pre class="notranslate"><code class="notranslate">dependencies: - { role: apache2 } </code></pre></div> <p dir="auto">This is nice because then I need to only maintain the apache template file in a single location, inside of the apache2 role, and just set variables in the other roles if I want to add/change content on it.</p> <p dir="auto">This works well, except that in order for the variables to be overridden and included together at the correct point, I have this situation in the apache2-ssl meta/main.yml files:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dependencies: - { role: apache2-php, when: include_php == True } - { role: apache2, when: include_php == False }"><pre class="notranslate"><code class="notranslate">dependencies: - { role: apache2-php, when: include_php == True } - { role: apache2, when: include_php == False } </code></pre></div> <p dir="auto">I would like to be able to add a variable that allows resetting the dependent role's status, e.g</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dependencies: - { role: apache2-php, when: include_php == True } - { role: apache2, reset_dependents: True, when: include_php == False }"><pre class="notranslate"><code class="notranslate">dependencies: - { role: apache2-php, when: include_php == True } - { role: apache2, reset_dependents: True, when: include_php == False } </code></pre></div> <h5 dir="auto">Expected Results:</h5> <p dir="auto">The problem is that if include_php == False, then the first role dependency (apache2-php), is skipped. What seems to be happening is it recursively marks everything in the apache2 role as skipped as well, including the handler I use to reload apache after updating the config. Then, when it arrives at the second role dependency (apache2), it skips executing any of the handlers in the apache2 role even if they are NOTIFIED because they were marked as skipped previously.</p> <p dir="auto">Would it be possible to add a variable that would reset a role so that whether or not it should be skipped is evaluated each time it is called (similar to the existing allow_duplicates variable)?</p> <h5 dir="auto">Actual Results:</h5> <p dir="auto">The apache2 handler that reloads the apache config is skipped (when called via the apache2 depedent role above), even if there are changes because it was already marked as skipped by the dependent apache2-php call (which was skipped).</p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto"><code class="notranslate">vmware</code></p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto"><code class="notranslate">ansible 2.5.0 (devel 466e1b289b) last updated 2018/01/26 10:22:19 (GMT +200)</code></p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">There is currently a module called <code class="notranslate">vmware_resource_pool</code> to create a new VMware resource pool. A VM can subsequently be assigned to the newly created resource pool by using the <code class="notranslate">resource_pool</code> option of the <code class="notranslate">vmware_guest</code> module.</p> <p dir="auto">It is also possible to assign a VM to a "VM and Template" folder using the <code class="notranslate">folder</code> option of the <code class="notranslate">vmware_guest</code> module. There appears however to be no way to also create such a "VM and Template" folder using the Ansible VMware cloud modules. This means that this is a manual step that has to be performed using the VMware user interface or needs to be automated through some other means.</p> <p dir="auto">I propose adding a new module called <code class="notranslate">vmware_vm_folder</code> in order to create a new "VM and Template" folder so that this can also be automated before placing a number of VMs inside the newly created folder using a playbook.</p>
0
<p dir="auto">Copied from <a href="https://stackoverflow.com/q/48088189/1531708" rel="nofollow">https://stackoverflow.com/q/48088189/1531708</a> because I experience the same:</p> <p dir="auto">After updating the NDK to v16, the previously working x86 build now fails with hundreds of messages like:</p> <blockquote> <p dir="auto">C:/Android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: C:/Android/OpenCV-android-sdk/sdk/native/3rdparty/libs/x86/libippicv.a(jmp_icvippiCopyConstBorder_8u_C4IR_L_as.s.o): relocation R_386_GOTOFF against preemptible symbol icv_ippJumpIndexForMergedLibs cannot be used when making a shared object<br> C:/Android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: C:/Android/OpenCV-android-sdk/sdk/native/3rdparty/libs/x86/libippicv.a(jmp_icvippiConvert_32s16u_C1RSfs_as.s.o): relocation R_386_GOTOFF against preemptible symbol icv_ippJumpIndexForMergedLibs cannot be used when making a shared object<br> C:/Android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: C:/Android/OpenCV-android-sdk/sdk/native/3rdparty/libs/x86/libippicv.a(jmp_icvippiNormRel_L1_32f_C1R_as.s.o): relocation R_386_GOTOFF against preemptible symbol icv_ippJumpIndexForMergedLibs cannot be used when making a shared object<br> C:/Android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: C:/Android/OpenCV-android-sdk/sdk/native/3rdparty/libs/x86/libippicv.a(jmp_icvippiFilterBilateralBorderInit_L_as.s.o): relocation R_386_GOTOFF against preemptible symbol icv_ippJumpIndexForMergedLibs cannot be used when making a shared object<br> C:/Android/sdk/ndk-bundle/toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: error: C:/Android/OpenCV-android-sdk/sdk/native/3rdparty/libs/x86/libippicv.a(jmp_icvippiScaleC_32f8u_C1R_as.s.o): relocation R_386_GOTOFF against preemptible symbol icv_ippJumpIndexForMergedLibs cannot be used when making a shared object</p> </blockquote>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; :2.4.9:</li> <li>Operating System / Platform =&gt; :Windows 64 Bit</li> <li>Compiler =&gt; :Visual Studio 2015 Professional</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20737540/47890106-55ba6e80-de88-11e8-9240-cd2160a1826e.png"><img src="https://user-images.githubusercontent.com/20737540/47890106-55ba6e80-de88-11e8-9240-cd2160a1826e.png" alt="image" style="max-width: 100%;"></a><br> Call Stack show:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20737540/47890125-74206a00-de88-11e8-8fef-fc4c5a37302e.png"><img src="https://user-images.githubusercontent.com/20737540/47890125-74206a00-de88-11e8-8fef-fc4c5a37302e.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">the program always crash on here:<br> cv::resize(*srcImg, mat2bitmap_img, cv::Size(draw_rect.Width(), draw_rect.Height()));<br> I think this problem is memory leak, resize function too many memory allocation, resulting in memory fragmentation and management problems.</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">the program always run on loop,for example:<br> while(1) {<br> cv::resize...<br> }</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" /*! display Mat on Picture Control in MFC *! Mat img: the image that to display *! UINT nID: the ID of control *! support BGR(Mat default),BGRA,GARY *! other type need use cvtColor to convert */ void ImageDlg::DrawMat(cv::Mat *srcImg, UINT nID) { if (srcImg-&gt;empty() || srcImg-&gt;data == nullptr) { return; } CDC *pDC = nullptr; CWnd *pWnd = GetDlgItem(nID); pWnd-&gt;GetClientRect(&amp;draw_rect); pDC = pWnd-&gt;GetDC(); cv::resize(*srcImg, mat2bitmap_img, cv::Size(draw_rect.Width(), draw_rect.Height())); switch (srcImg-&gt;channels()) { case 1: cv::cvtColor(mat2bitmap_img, mat2bitmap_img, CV_GRAY2BGRA); // GRAY --&gt; BGRA(CV_8UC4) break; case 3: cv::cvtColor(mat2bitmap_img, mat2bitmap_img, CV_BGR2BGRA); // BGR --&gt; BGRA(CV_8UC4) break; default: break; } // why convert to CV_8UC4 // because windows need 4-byte aligned in a row // if there are 3 pixels in a row, // CV_8UC3: 3 pixel = 9 bytes, 9 % 4 = 1(no alignment) // CV_8UC4: 3 pixel = 12 bytes, 12 % 4 = 0(it's ok) // calculate how many bytes a pixel int pixelBytes = mat2bitmap_img.channels()*(mat2bitmap_img.depth() + 1); // create a header by using BITMAPINFO structure draw_bitmapInfo.bmiHeader.biBitCount = 8 * pixelBytes; draw_bitmapInfo.bmiHeader.biWidth = mat2bitmap_img.cols; draw_bitmapInfo.bmiHeader.biHeight = -mat2bitmap_img.rows; // display Mat // Mat data + BITMAPINFO --&gt; MFC DigItem ::StretchDIBits( pDC-&gt;GetSafeHdc(), draw_rect.left, draw_rect.top, draw_rect.Width(), draw_rect.Height(), 0, 0, draw_rect.Width(), draw_rect.Height(), mat2bitmap_img.data, &amp;draw_bitmapInfo, DIB_RGB_COLORS, SRCCOPY ); ReleaseDC(pDC); pDC = nullptr; pWnd = nullptr; } "><pre class="notranslate"><code class="notranslate"> /*! display Mat on Picture Control in MFC *! Mat img: the image that to display *! UINT nID: the ID of control *! support BGR(Mat default),BGRA,GARY *! other type need use cvtColor to convert */ void ImageDlg::DrawMat(cv::Mat *srcImg, UINT nID) { if (srcImg-&gt;empty() || srcImg-&gt;data == nullptr) { return; } CDC *pDC = nullptr; CWnd *pWnd = GetDlgItem(nID); pWnd-&gt;GetClientRect(&amp;draw_rect); pDC = pWnd-&gt;GetDC(); cv::resize(*srcImg, mat2bitmap_img, cv::Size(draw_rect.Width(), draw_rect.Height())); switch (srcImg-&gt;channels()) { case 1: cv::cvtColor(mat2bitmap_img, mat2bitmap_img, CV_GRAY2BGRA); // GRAY --&gt; BGRA(CV_8UC4) break; case 3: cv::cvtColor(mat2bitmap_img, mat2bitmap_img, CV_BGR2BGRA); // BGR --&gt; BGRA(CV_8UC4) break; default: break; } // why convert to CV_8UC4 // because windows need 4-byte aligned in a row // if there are 3 pixels in a row, // CV_8UC3: 3 pixel = 9 bytes, 9 % 4 = 1(no alignment) // CV_8UC4: 3 pixel = 12 bytes, 12 % 4 = 0(it's ok) // calculate how many bytes a pixel int pixelBytes = mat2bitmap_img.channels()*(mat2bitmap_img.depth() + 1); // create a header by using BITMAPINFO structure draw_bitmapInfo.bmiHeader.biBitCount = 8 * pixelBytes; draw_bitmapInfo.bmiHeader.biWidth = mat2bitmap_img.cols; draw_bitmapInfo.bmiHeader.biHeight = -mat2bitmap_img.rows; // display Mat // Mat data + BITMAPINFO --&gt; MFC DigItem ::StretchDIBits( pDC-&gt;GetSafeHdc(), draw_rect.left, draw_rect.top, draw_rect.Width(), draw_rect.Height(), 0, 0, draw_rect.Width(), draw_rect.Height(), mat2bitmap_img.data, &amp;draw_bitmapInfo, DIB_RGB_COLORS, SRCCOPY ); ReleaseDC(pDC); pDC = nullptr; pWnd = nullptr; } </code></pre></div> <p dir="auto"><strong>my idea:</strong><br> I think resize function input params is piont,it will not need memory allocation<br> original:<br> void cv::resize( InputArray _src, OutputArray _dst, Size dsize,<br> double inv_scale_x, double inv_scale_y, int interpolation )<br> maybe fixed:<br> void cv::resize( InputArray *_src, OutputArray *_dst, Size dsize,<br> double inv_scale_x, double inv_scale_y, int interpolation )<br> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/peters/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/peters">@peters</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eruffaldi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eruffaldi">@eruffaldi</a></p>
0
<p dir="auto">Hi!<br> I found slider, but I did not see how to make a from-to value selection. Does the material-ui support this behavior?<br> Thanks for the excellent library!</p>
<p dir="auto">When an Avatar is used with a Chip component, it's rendered position is not the same as the chip. See screenshot for clarification. My CSS is a little weak, but I think the correct solution is to remove position: 'relative' from the Avatar root class? Can the default 'relative' position be removed from the Avatar root class or should I be manually overriding it on my end? Perhaps the Chip component should override the Avatar root position with 'inherit'? Either of the above solutions fix my issue, but I am not sure which is the correct way.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24579103/36071907-76a14216-0ed3-11e8-99ee-c9aeec006a2c.png"><img width="344" alt="popperexample" src="https://user-images.githubusercontent.com/24579103/36071907-76a14216-0ed3-11e8-99ee-c9aeec006a2c.png" 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">I would expect the Avatar to be rendered with the same position as the Chip.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Currently the Avatar is rendered with the 'relative' position by default.</p> <p dir="auto">Environment</p> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta.33</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td>Chrome 64.0.3282.140</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
0
<p dir="auto">The following reliably segfaults on my machines (other type combinations of BadStruct fields segfault less reliably or not at all):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="using Random, Serialization println(versioninfo()) data_path=randstring() mkdir(data_path) struct BadStruct nm::String sv::Vector{Tuple{&lt;:AbstractMatrix{&lt;:AbstractFloat},&lt;:Integer}} rng::UnitRange{&lt;:Integer} mm::BitMatrix ll::AbstractFloat pb::Vector{Function} end for i in 1:600 bs=BadStruct(&quot;&quot;,[(rand(10,4),1)],1:10,trues(100,1),0.,Vector{Function}()) fn=randstring() serialize(data_path*'/'*fn, bs) end function hammer_datadir(path) start=time() @info &quot;Hammering $path&quot; while time()-start &lt; 3*60 for file in readdir(path) deserialize(path*'/'*file) end end @info &quot;All ok!&quot; end hammer_datadir(data_path)"><pre class="notranslate"><code class="notranslate">using Random, Serialization println(versioninfo()) data_path=randstring() mkdir(data_path) struct BadStruct nm::String sv::Vector{Tuple{&lt;:AbstractMatrix{&lt;:AbstractFloat},&lt;:Integer}} rng::UnitRange{&lt;:Integer} mm::BitMatrix ll::AbstractFloat pb::Vector{Function} end for i in 1:600 bs=BadStruct("",[(rand(10,4),1)],1:10,trues(100,1),0.,Vector{Function}()) fn=randstring() serialize(data_path*'/'*fn, bs) end function hammer_datadir(path) start=time() @info "Hammering $path" while time()-start &lt; 3*60 for file in readdir(path) deserialize(path*'/'*file) end end @info "All ok!" end hammer_datadir(data_path) </code></pre></div> <p dir="auto">Typical output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 1.4.2 Commit 44fa15b150* (2020-05-23 18:35 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-8.0.1 (ORCJIT, skylake) Environment: JULIA_NUM_THREADS = 1 nothing [ Info: Hammering qDS6Zi3e signal (11): Segmentation fault in expression starting at /srv/git/rys_nucleosomes/nested_sampling/segfaultMWE.jl:35 gc_try_setmark at /buildworker/worker/package_linux64/build/src/gc.c:1642 [inlined] gc_mark_scan_obj8 at /buildworker/worker/package_linux64/build/src/gc.c:1836 [inlined] gc_mark_loop at /buildworker/worker/package_linux64/build/src/gc.c:2117 _jl_gc_collect at /buildworker/worker/package_linux64/build/src/gc.c:2899 jl_gc_collect at /buildworker/worker/package_linux64/build/src/gc.c:3105 maybe_collect at /buildworker/worker/package_linux64/build/src/gc.c:827 [inlined] jl_gc_pool_alloc at /buildworker/worker/package_linux64/build/src/gc.c:1142 jl_gc_alloc_ at /buildworker/worker/package_linux64/build/src/julia_internal.h:246 [inlined] jl_gc_alloc at /buildworker/worker/package_linux64/build/src/gc.c:3147 jl_alloc_svec_uninit at /buildworker/worker/package_linux64/build/src/simplevector.c:60 jl_alloc_svec at /buildworker/worker/package_linux64/build/src/simplevector.c:69 save_env at /buildworker/worker/package_linux64/build/src/subtype.c:149 forall_exists_subtype at /buildworker/worker/package_linux64/build/src/subtype.c:1447 forall_exists_equal at /buildworker/worker/package_linux64/build/src/subtype.c:1392 subtype at /buildworker/worker/package_linux64/build/src/subtype.c:1336 with_tvar at /buildworker/worker/package_linux64/build/src/subtype.c:702 subtype_unionall at /buildworker/worker/package_linux64/build/src/subtype.c:841 [inlined] subtype at /buildworker/worker/package_linux64/build/src/subtype.c:1281 exists_subtype at /buildworker/worker/package_linux64/build/src/subtype.c:1425 [inlined] forall_exists_subtype at /buildworker/worker/package_linux64/build/src/subtype.c:1453 jl_subtype_env at /buildworker/worker/package_linux64/build/src/subtype.c:1818 jl_isa at /buildworker/worker/package_linux64/build/src/subtype.c:2056 jl_new_structv at /buildworker/worker/package_linux64/build/src/datatype.c:928 deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:1315 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 handle_deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:799 deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:735 handle_deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:838 deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:735 deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:722 [inlined] #open#270 at ./io.jl:298 open at ./io.jl:296 [inlined] deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:732 [inlined] hammer_datadir at /srv/git/rys_nucleosomes/nested_sampling/segfaultMWE.jl:29 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2159 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1700 [inlined] do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:369 eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:458 eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:409 [inlined] eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:817 jl_interpret_toplevel_thunk at /buildworker/worker/package_linux64/build/src/interpreter.c:911 jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:819 jl_parse_eval_all at /buildworker/worker/package_linux64/build/src/ast.c:872 jl_load at /buildworker/worker/package_linux64/build/src/toplevel.c:877 include at ./client.jl:439 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1700 [inlined] do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:369 eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:458 eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:409 [inlined] eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:817 jl_interpret_toplevel_thunk at /buildworker/worker/package_linux64/build/src/interpreter.c:911 jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:819 jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:769 jl_toplevel_eval_in at /buildworker/worker/package_linux64/build/src/toplevel.c:848 eval at ./boot.jl:331 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 eval_user_input at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86 run_backend at /home/main/.julia/packages/Revise/tV8FE/src/Revise.jl:1165 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1700 [inlined] do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:369 eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:458 eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:409 [inlined] eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:817 jl_interpret_toplevel_thunk at /buildworker/worker/package_linux64/build/src/interpreter.c:911 jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:819 jl_toplevel_eval_in at /buildworker/worker/package_linux64/build/src/toplevel.c:848 eval at ./boot.jl:331 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 eval_user_input at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86 run_backend at /home/main/.julia/packages/Revise/tV8FE/src/Revise.jl:1165 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2159 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1700 [inlined] do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:369 eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:458 eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:409 [inlined] eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:817 jl_interpret_toplevel_thunk at /buildworker/worker/package_linux64/build/src/interpreter.c:911 jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:819 jl_toplevel_eval_in at /buildworker/worker/package_linux64/build/src/toplevel.c:848 eval at ./boot.jl:331 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 eval_user_input at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86 macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:118 [inlined] #26 at ./task.jl:358 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1700 [inlined] start_task at /buildworker/worker/package_linux64/build/src/task.c:687 unknown function (ip: (nil)) Allocations: 162997802 (Pool: 162983313; Big: 14489); GC: 222 fish: “julia” terminated by signal SIGSEGV (Address boundary error)"><pre class="notranslate"><code class="notranslate">Julia Version 1.4.2 Commit 44fa15b150* (2020-05-23 18:35 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-8.0.1 (ORCJIT, skylake) Environment: JULIA_NUM_THREADS = 1 nothing [ Info: Hammering qDS6Zi3e signal (11): Segmentation fault in expression starting at /srv/git/rys_nucleosomes/nested_sampling/segfaultMWE.jl:35 gc_try_setmark at /buildworker/worker/package_linux64/build/src/gc.c:1642 [inlined] gc_mark_scan_obj8 at /buildworker/worker/package_linux64/build/src/gc.c:1836 [inlined] gc_mark_loop at /buildworker/worker/package_linux64/build/src/gc.c:2117 _jl_gc_collect at /buildworker/worker/package_linux64/build/src/gc.c:2899 jl_gc_collect at /buildworker/worker/package_linux64/build/src/gc.c:3105 maybe_collect at /buildworker/worker/package_linux64/build/src/gc.c:827 [inlined] jl_gc_pool_alloc at /buildworker/worker/package_linux64/build/src/gc.c:1142 jl_gc_alloc_ at /buildworker/worker/package_linux64/build/src/julia_internal.h:246 [inlined] jl_gc_alloc at /buildworker/worker/package_linux64/build/src/gc.c:3147 jl_alloc_svec_uninit at /buildworker/worker/package_linux64/build/src/simplevector.c:60 jl_alloc_svec at /buildworker/worker/package_linux64/build/src/simplevector.c:69 save_env at /buildworker/worker/package_linux64/build/src/subtype.c:149 forall_exists_subtype at /buildworker/worker/package_linux64/build/src/subtype.c:1447 forall_exists_equal at /buildworker/worker/package_linux64/build/src/subtype.c:1392 subtype at /buildworker/worker/package_linux64/build/src/subtype.c:1336 with_tvar at /buildworker/worker/package_linux64/build/src/subtype.c:702 subtype_unionall at /buildworker/worker/package_linux64/build/src/subtype.c:841 [inlined] subtype at /buildworker/worker/package_linux64/build/src/subtype.c:1281 exists_subtype at /buildworker/worker/package_linux64/build/src/subtype.c:1425 [inlined] forall_exists_subtype at /buildworker/worker/package_linux64/build/src/subtype.c:1453 jl_subtype_env at /buildworker/worker/package_linux64/build/src/subtype.c:1818 jl_isa at /buildworker/worker/package_linux64/build/src/subtype.c:2056 jl_new_structv at /buildworker/worker/package_linux64/build/src/datatype.c:928 deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:1315 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 handle_deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:799 deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:735 handle_deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:838 deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:735 deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:722 [inlined] #open#270 at ./io.jl:298 open at ./io.jl:296 [inlined] deserialize at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:732 [inlined] hammer_datadir at /srv/git/rys_nucleosomes/nested_sampling/segfaultMWE.jl:29 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2159 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1700 [inlined] do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:369 eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:458 eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:409 [inlined] eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:817 jl_interpret_toplevel_thunk at /buildworker/worker/package_linux64/build/src/interpreter.c:911 jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:819 jl_parse_eval_all at /buildworker/worker/package_linux64/build/src/ast.c:872 jl_load at /buildworker/worker/package_linux64/build/src/toplevel.c:877 include at ./client.jl:439 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1700 [inlined] do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:369 eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:458 eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:409 [inlined] eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:817 jl_interpret_toplevel_thunk at /buildworker/worker/package_linux64/build/src/interpreter.c:911 jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:819 jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:769 jl_toplevel_eval_in at /buildworker/worker/package_linux64/build/src/toplevel.c:848 eval at ./boot.jl:331 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 eval_user_input at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86 run_backend at /home/main/.julia/packages/Revise/tV8FE/src/Revise.jl:1165 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1700 [inlined] do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:369 eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:458 eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:409 [inlined] eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:817 jl_interpret_toplevel_thunk at /buildworker/worker/package_linux64/build/src/interpreter.c:911 jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:819 jl_toplevel_eval_in at /buildworker/worker/package_linux64/build/src/toplevel.c:848 eval at ./boot.jl:331 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 eval_user_input at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86 run_backend at /home/main/.julia/packages/Revise/tV8FE/src/Revise.jl:1165 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2159 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1700 [inlined] do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:369 eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:458 eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:409 [inlined] eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:817 jl_interpret_toplevel_thunk at /buildworker/worker/package_linux64/build/src/interpreter.c:911 jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:819 jl_toplevel_eval_in at /buildworker/worker/package_linux64/build/src/toplevel.c:848 eval at ./boot.jl:331 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 eval_user_input at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86 macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:118 [inlined] #26 at ./task.jl:358 _jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2145 [inlined] jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2323 jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1700 [inlined] start_task at /buildworker/worker/package_linux64/build/src/task.c:687 unknown function (ip: (nil)) Allocations: 162997802 (Pool: 162983313; Big: 14489); GC: 222 fish: “julia” terminated by signal SIGSEGV (Address boundary error) </code></pre></div> <p dir="auto">I <a href="https://github.com/JuliaLang/julia/issues/32141#issuecomment-674376237" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/32141/hovercard">originally observed</a> this in a distributed context, but it seems not to require it. I have no idea if this is the underlying bug causing the other distributed serialization segfaults reported in that thread so I am opening a new issue to see if anyone can replicate with the MWE.</p>
<p dir="auto">Following the instructions in <a href="https://docs.julialang.org/en/v1/devdocs/backtraces/#Segfaults-when-running-a-script-1" rel="nofollow">Segfaults when running a script</a>:</p> <p dir="auto">Here is a <a href="https://gist.github.com/bzinberg/9f065885929564d53947f07a484a845f">Gist</a> containing versioninfo, backtrace and valgrind output.</p> <p dir="auto">This crash occurs in Julia 1.4.1 and 1.4.0, but not 1.3.1.</p> <p dir="auto">I'm not experienced in this kind of debugging, so not sure what further information would be useful. Happy to dialogue about it.</p> <p dir="auto">Thanks!</p>
1
<p dir="auto">Dear all,<br> We met this kind of issue when do "KUBERNETES_PROVIDER=ubuntu ./kube-up.sh".<br> the issue came at the below step,</p> <ul dir="auto"> <li>/root/kube/reconfDocker.sh i<br> docker stop/waiting<br> docker start/running, process 4601<br> Connection to 192.168.132.4 closed.<br> Validating master<br> Validating [email protected]<br> Validating [email protected]<br> Validating [email protected]<br> Using master 192.168.132.2<br> cluster "ubuntu" set.<br> user "ubuntu" set.<br> context "ubuntu" set.<br> switched to context "ubuntu".<br> Wrote config for ubuntu to /root/.kube/config<br> ... calling validate-cluster<br> Error from server: an error on the server has prevented the request from succeeding<br> (kubectl failed, will retry 2 times)<br> Error from server: an error on the server has prevented the request from succeeding<br> (kubectl failed, will retry 1 times)</li> </ul> <p dir="auto">... calling validate-cluster<br> Error from server: an error on the server has prevented the request from succeeding<br> (kubectl failed, will retry 2 times)<br> Error from server: an error on the server has prevented the request from succeeding<br> (kubectl failed, will retry 1 times)<br> Error from server: an error on the server has prevented the request from succeeding<br> ('kubectl get nodes' failed, giving up)<br> Error from server: an error on the server has prevented the request from succeeding<br> (kubectl failed, will retry 2 times)</p>
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):<br> I tried slack, someone else ran in to my issue as well and just used separate CAs</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p> <h2 dir="auto">intermediate certificate</h2> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):<br> FEATURE REQUEST</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br> Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.7+a2cba278", GitCommit:"a2cba278cba1f6881bb0a7704d9cac6fca6ed435", GitTreeState:"not a git tree", BuildDate:"2016-09-23T02:19:56Z", GoVersion:"go1.7.1", Compiler:"gc", Platform:"darwin/amd64"}<br> Server Version: version.Info{Major:"1", Minor:"4+", GitVersion:"v1.4.0-beta.8+coreos.0", GitCommit:"9c19ded313d3b3b86eadf179aed553854138abd7", GitTreeState:"clean", BuildDate:"2016-09-19T18:58:14Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>:<br> aws</li> <li><strong>OS</strong> (e.g. from /etc/os-release):<br> NAME=CoreOS<br> ID=coreos<br> VERSION=1122.2.0<br> VERSION_ID=1122.2.0<br> BUILD_ID=2016-09-06-1449<br> PRETTY_NAME="CoreOS 1122.2.0 (MoreOS)"<br> ANSI_COLOR="1;32"<br> HOME_URL="<a href="https://coreos.com/" rel="nofollow">https://coreos.com/</a>"<br> BUG_REPORT_URL="<a href="https://github.com/coreos/bugs/issues">https://github.com/coreos/bugs/issues</a>"</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):<br> Linux ip-10-0-0-50.ec2.internal 4.7.0-coreos <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35192559" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1">#1</a> SMP Tue Sep 6 14:39:20 UTC 2016 x86_64 Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz GenuineIntel GNU/Linux</li> <li><strong>Install tools</strong>:<br> kube-aws<br> Manually generated ssl certs</li> <li><strong>Others</strong>:<br> I'm using client-cert+ABAC auth and have audit logging enabled.</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> Clients using SSL certs for auth show the subject CN of their intermediate cert not their entity cert.<br> I set the client-cert to a certificate chain:<br> <br> <br> <br> ca.pem on all machines is set to the Root Cert</p> <p dir="auto"><strong>What you expected to happen</strong>:<br> I expect the client to use the Subject CN of the entity cert.<br> The key I'm using is for the entity and the connection is secure, My audit logs just show the CN for the intermediate CA.</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br> Create a root CA cert<br> Use it to sign an intermediate CA cert.<br> Use root cert as CA, use certificate chain bundle as client cert, use correct client key</p> <p dir="auto">I'm seeing this in audit logs when I use the chain:<br> 2016-10-10T23:04:07.466636575Z AUDIT: id="79f6295c-d229-488b-af12-67cca35e6eee" ip="10.0.0.12" method="GET" user="PeriscopeData Key1 Sub-CA" as="" namespace="" uri="/api/v1/nodes?fieldSelector=metadata.name%3Dip-10-0-0-12.ec2.internal&amp;resourceVersion=0"</p> <p dir="auto">When I set the ca.pem to my sub-ca key and don't use my bundled certs, I see<br> 2016-10-11T00:40:33.367066951Z AUDIT: id="704c267f-e487-4468-b39a-32ca4ef749ec" ip="10.0.0.12" method="GET" user="kube-worker" as="" namespace="" uri="/api/v1/nodes/ip-10-0-0-12.ec2.internal"</p>
0
<p dir="auto">After having played with Flutter a bit from my home computer, I have decided that it is a great tool for developing Enterprise mobile apps for a client. The client has all its users behind a firewall, and they use a self-signed certificate on the inside of said firewall.</p> <p dir="auto">This means flutter doesn't work. You get the following output</p> <blockquote> <p dir="auto">flutter doctor -v<br> Updating flutter tool...<br> Got TLS error trying to find package archive at <a href="https://pub.dartlang.org" rel="nofollow">https://pub.dartlang.org</a>.<br> Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...<br> timeout: invalid time interval '/t'</p> </blockquote> <p dir="auto">Now, this is quite a common problem, and there is no possible way you can convince some of the companies and government agencies using this method that they are wrong. Whether they are or not is also debatable. The self-signed certificate is only a "voulnerability" on the inside of the firewall, and if you have a bad actor on the inside of your firewall, a man in the middle attack is the least of your worries.</p> <p dir="auto">All other teams in the OSS community has solved this problem by allowing their tools to bypass this kind of certificate checking during installation. In npm you can set the environment variable NODE_TLS_REJECT_UNAUTHORIZED=0 and you are fine.</p> <p dir="auto">Is this crazy? Certainly not. The only "danger" area is if there is a bad actor somewhere between my computer and the firewall, and as I said, then I have far more severe problems</p> <p dir="auto">When previously reporting this I have received a response along the lines of "we will never allow this with flutter since the flutter team of developers are the only sane developers in the world, and all others are blithering idiots, particularly the node and git teams who have no problems with enabling word-destroying, no, universe-melting insane solutions like this".</p> <p dir="auto">Also, in my previous report of this issue, it was said it was solved because you can download the flutter tools entirely, removing the need for... I have not been able to do anything to solve this, and have not found any information on flutter.io that explains how I can get around this. My inability may certainly be a result of me being a blithering idiot, a lot of my problems are, but is there a solution for this? I would like to know.</p> <h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Sit behind a firewall where self-signed certificates are used on the inside</li> <li>Download and install flutter<br> 3a. Run flutter doctor -v or<br> 3b. Run flutter create -v flutter_test_app</li> </ol> <h2 dir="auto">Logs</h2> <blockquote> <p dir="auto">flutter create -v flutter_test_app<br> Updating flutter tool...<br> Got TLS error trying to find package archive at <a href="https://pub.dartlang.org" rel="nofollow">https://pub.dartlang.org</a>.<br> Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...</p> </blockquote> <blockquote> <p dir="auto">flutter doctor -v<br> Updating flutter tool...<br> Got TLS error trying to find package archive at <a href="https://pub.dartlang.org" rel="nofollow">https://pub.dartlang.org</a>.<br> Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...<br> timeout: invalid time interval '/t'<br> Try 'timeout --help' for more information.</p> </blockquote>
<p dir="auto">After having played with Flutter a bit from my home computer, I have decided that it is a great tool for developing Enterprise mobile apps for a client. The client has all its users behind a firewall, and they use a self-signed certificate on the inside of said firewall.</p> <p dir="auto">This means flutter doesn't work. You get the following output</p> <blockquote> <p dir="auto">flutter doctor -v<br> Updating flutter tool...<br> Got TLS error trying to find package archive at <a href="https://pub.dartlang.org" rel="nofollow">https://pub.dartlang.org</a>.<br> Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...<br> timeout: invalid time interval '/t'</p> </blockquote> <p dir="auto">Now, this is quite a common problem, and there is no possible way you can convince some of the companies and government agencies using this method that they are wrong. Whether they are or not is also debatable. The self-signed certificate is only a "voulnerability" on the inside of the firewall, and if you have a bad actor on the inside of your firewall, a man in the middle attack is the least of your worries.</p> <p dir="auto">All other teams in the OSS community has solved this problem by allowing their tools to bypass this kind of certificate checking during installation. In npm you can set the environment variable NODE_TLS_REJECT_UNAUTHORIZED=0 and you are fine.</p> <p dir="auto">Is this crazy? Certainly not. The only "danger" area is if there is a bad actor somewhere between my computer and the firewall, and as I said, then I have far more severe problems</p> <p dir="auto">When previously reporting this I have received a response along the lines of "we will never allow this with flutter since the flutter team of developers are the only sane developers in the world, and all others are blithering idiots, particularly the node and git teams who have no problems with enabling word-destroying, no, universe-melting insane solutions like this".</p> <p dir="auto">Also, in my previous report of this issue, it was said it was solved because you can download the flutter tools entirely, removing the need for... I have not been able to do anything to solve this, and have not found any information on flutter.io that explains how I can get around this. My inability may certainly be a result of me being a blithering idiot, a lot of my problems are, but is there a solution for this? I would like to know.</p> <h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Sit behind a firewall where self-signed certificates are used on the inside</li> <li>Download and install flutter<br> 3a. Run flutter doctor -v or<br> 3b. Run flutter create -v flutter_test_app</li> </ol> <h2 dir="auto">Logs</h2> <blockquote> <p dir="auto">flutter create -v flutter_test_app<br> Updating flutter tool...<br> Got TLS error trying to find package archive at <a href="https://pub.dartlang.org" rel="nofollow">https://pub.dartlang.org</a>.<br> Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...</p> </blockquote> <blockquote> <p dir="auto">flutter doctor -v<br> Updating flutter tool...<br> Got TLS error trying to find package archive at <a href="https://pub.dartlang.org" rel="nofollow">https://pub.dartlang.org</a>.<br> Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds...<br> timeout: invalid time interval '/t'<br> Try 'timeout --help' for more information.</p> </blockquote>
1
<h3 dir="auto">Which version of Sharding-Sphere do you using?</h3> <p dir="auto">sharding-jdbc 3.0.0.M1</p> <h3 dir="auto">Expected behavior</h3> <p dir="auto">shardingConditions.getShardingConditions() should only one</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">I get multiple of the same conditions</p> <h3 dir="auto">Steps to reproduce the behavior</h3> <p dir="auto">sql:select * from table1 where shardingcolumn = *** and ( field1='test' or field2 ='test' )</p> <p dir="auto">Only one shardingCondition is met, but shardingConditions.getShardingConditions() contains multiple identical conditions<br> The final routing result is correct, however ComplexKeysShardingAlgorithm.doSharding() is executed multiple times</p>
<p dir="auto">Excuse me, if you use broadcastTables to implement a broadcast table, is it possible to implement a global broadcast? Is the broadcast table set up * or what? Directly realize that all tables are broadcast.<br> Because I mainly want to realize the function of a redundant data, there are almost hundreds of tables, it seems too troublesome to match all of them, if you add or delete tables, you have to set it up again... Seek answers.</p>
0
<p dir="auto">Elasticsearch 5 introduced <a href="https://www.elastic.co/blog/elasticsearch-5-0-0-released#friendly" rel="nofollow">better handling of default settings</a>, that has no reference doc.</p> <p dir="auto">I wonder if "dealing with defaults" could be linked from cluster settings, index settings, etc.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#Show defaults GET /_cluster/settings?include_defaults #Return me to default PUT /_cluster/settings { &quot;persistent&quot;: { &quot;xpack.monitoring.collection.interval&quot; : null } } "><pre class="notranslate"><code class="notranslate">#Show defaults GET /_cluster/settings?include_defaults #Return me to default PUT /_cluster/settings { "persistent": { "xpack.monitoring.collection.interval" : null } } </code></pre></div>
<p dir="auto">Hiya</p> <p dir="auto">I'm starting 3 nodes, then creating a mapping, then creating a duplicate (with ignoreDuplicate=false).</p> <p dir="auto">It is sufficient to throw the whole cluster out. It doesn't seem to recover.</p> <p dir="auto">Run this script a few times, and watch the server logs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#!/bin/bash curl -XGET 'http://127.0.0.1:9200/_cluster/nodes' curl -XDELETE 'http://127.0.0.2:9202/es_test_1/' curl -XPUT 'http://127.0.0.2:9202/es_test_1,es_test_2/test/_mapping?ignoreDuplicates=false' -d ' { &quot;properties&quot; : { &quot;num&quot; : { &quot;type&quot; : &quot;integer&quot; }, &quot;text&quot; : { &quot;type&quot; : &quot;string&quot; } } } ' curl -XPUT 'http://127.0.0.2:9202/es_test_1,es_test_2/test/_mapping?ignoreDuplicates=false' -d ' { &quot;properties&quot; : { &quot;num&quot; : { &quot;type&quot; : &quot;integer&quot; }, &quot;text&quot; : { &quot;type&quot; : &quot;string&quot; } } } ' curl -XPUT 'http://127.0.0.2:9202/es_test_1,es_test_2/test_2/_mapping?ignoreDuplicates=false' -d ' { &quot;properties&quot; : { &quot;num&quot; : { &quot;type&quot; : &quot;integer&quot; }, &quot;text&quot; : { &quot;type&quot; : &quot;string&quot; } } } ' curl -XDELETE 'http://127.0.0.2:9202/es_test_1/' curl -XDELETE 'http://127.0.0.2:9202/es_test_2/' curl -XPUT 'http://127.0.0.2:9202/es_test_1/' -d ' {} ' curl -XPUT 'http://127.0.0.2:9202/es_test_2/' -d ' {} ' curl -XPUT 'http://127.0.0.2:9202/_all/type_1/_mapping?ignoreDuplicates=false' -d ' { &quot;properties&quot; : { &quot;num&quot; : { &quot;store&quot; : &quot;yes&quot;, &quot;type&quot; : &quot;integer&quot; }, &quot;text&quot; : { &quot;store&quot; : &quot;yes&quot;, &quot;type&quot; : &quot;string&quot; } } } ' curl -XPUT 'http://127.0.0.2:9202/_all/type_2/_mapping?ignoreDuplicates=false' -d ' { &quot;properties&quot; : { &quot;num&quot; : { &quot;store&quot; : &quot;yes&quot;, &quot;type&quot; : &quot;integer&quot; }, &quot;text&quot; : { &quot;store&quot; : &quot;yes&quot;, &quot;type&quot; : &quot;string&quot; } } } ' curl -XPOST 'http://127.0.0.2:9202/_flush?refresh=true' "><pre class="notranslate"><code class="notranslate">#!/bin/bash curl -XGET 'http://127.0.0.1:9200/_cluster/nodes' curl -XDELETE 'http://127.0.0.2:9202/es_test_1/' curl -XPUT 'http://127.0.0.2:9202/es_test_1,es_test_2/test/_mapping?ignoreDuplicates=false' -d ' { "properties" : { "num" : { "type" : "integer" }, "text" : { "type" : "string" } } } ' curl -XPUT 'http://127.0.0.2:9202/es_test_1,es_test_2/test/_mapping?ignoreDuplicates=false' -d ' { "properties" : { "num" : { "type" : "integer" }, "text" : { "type" : "string" } } } ' curl -XPUT 'http://127.0.0.2:9202/es_test_1,es_test_2/test_2/_mapping?ignoreDuplicates=false' -d ' { "properties" : { "num" : { "type" : "integer" }, "text" : { "type" : "string" } } } ' curl -XDELETE 'http://127.0.0.2:9202/es_test_1/' curl -XDELETE 'http://127.0.0.2:9202/es_test_2/' curl -XPUT 'http://127.0.0.2:9202/es_test_1/' -d ' {} ' curl -XPUT 'http://127.0.0.2:9202/es_test_2/' -d ' {} ' curl -XPUT 'http://127.0.0.2:9202/_all/type_1/_mapping?ignoreDuplicates=false' -d ' { "properties" : { "num" : { "store" : "yes", "type" : "integer" }, "text" : { "store" : "yes", "type" : "string" } } } ' curl -XPUT 'http://127.0.0.2:9202/_all/type_2/_mapping?ignoreDuplicates=false' -d ' { "properties" : { "num" : { "store" : "yes", "type" : "integer" }, "text" : { "store" : "yes", "type" : "string" } } } ' curl -XPOST 'http://127.0.0.2:9202/_flush?refresh=true' </code></pre></div>
0
<p dir="auto">Describe what you were doing when the bug occurred:<br> 1.<br> 2.<br> 3.</p> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.8.2-fed4ae024</p> <p dir="auto">Call stack: at updateTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17786:17)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17717:25)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17710:30)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17710:30)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17710:30)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17710:30)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17710:30)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17710:30)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17710:30)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:17710:30)</p> <p dir="auto">Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:31701:48)<br> at div<br> at div<br> at div<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:26139:23)<br> at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33363:48)<br> at ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27172:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27303:32)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:30463:23)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22538:23)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:23040:27)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28328:23)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33797:21)</p>
<h3 dir="auto">Describe what you were doing when the bug occurred:</h3> <ol dir="auto"> <li>I did profiling on a list, that gets updated on each pagination api call.</li> <li>Once the profiling was done, I moved around in the Profiler to view the Flamegraph</li> <li>Moving to second capture, the Profiler crashed.</li> </ol> <p dir="auto"><strong>DevTools version</strong>: 4.6.0-6cceaeb67</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Component stack: in ec in div in div in div in So in Unknown in n in Unknown in div in div in rl in Ze in fn in Ga in _s"><pre class="notranslate"><code class="notranslate">Component stack: in ec in div in div in div in So in Unknown in n in Unknown in div in div in rl in Ze in fn in Ga in _s </code></pre></div>
1
<h3 dir="auto">What version of Go are you using (<code class="notranslate">go version</code>)?</h3> <p dir="auto">Go Playground</p> <h3 dir="auto">What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?</h3> <p dir="auto">Go Playground</p> <h3 dir="auto">What did you do?</h3> <p dir="auto">See <a href="https://play.golang.org/p/beWgN_LRyJ" rel="nofollow">https://play.golang.org/p/beWgN_LRyJ</a> -- it fails to compile with <code class="notranslate">internal compiler error: large ONEW with EscNone: new()</code>. The code itself doesn't make a lot of sense, building a buffer and not using it, but it should still compile.</p> <h3 dir="auto">What did you expect to see?</h3> <p dir="auto">The program should run on the Go Playground.</p> <h3 dir="auto">What did you see instead?</h3> <p dir="auto">The program fails to compile with <code class="notranslate">internal compiler error: large ONEW with EscNone: new()</code></p> <h3 dir="auto">Other</h3> <p dir="auto">If I assign the buffer to a variable and invoke a method, the code compiles and runs. See <a href="https://play.golang.org/p/tKXN_mw_Sp" rel="nofollow">https://play.golang.org/p/tKXN_mw_Sp</a></p>
<p dir="auto">Go version: +2e4b659 15/07/2015, OS: Debian Jessie AMD64</p> <p dir="auto">The following program fails to compile:</p> <div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="package main type X struct { Array [1 &lt;&lt; 16]byte } func main() { _ = &amp;X{} }"><pre class="notranslate"><span class="pl-k">package</span> main <span class="pl-k">type</span> <span class="pl-smi">X</span> <span class="pl-k">struct</span> { <span class="pl-c1">Array</span> [<span class="pl-c1">1</span> <span class="pl-c1">&lt;&lt;</span> <span class="pl-c1">16</span>]<span class="pl-smi">byte</span> } <span class="pl-k">func</span> <span class="pl-en">main</span>() { <span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-c1">&amp;</span><span class="pl-smi">X</span>{} }</pre></div> <p dir="auto">with the message</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./test.go:8: internal compiler error: large ONEW with EscNone: new()"><pre class="notranslate"><code class="notranslate">./test.go:8: internal compiler error: large ONEW with EscNone: new() </code></pre></div>
1
<h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Arch Linux 4.15.8</li> <li><strong>TensorFlow installed from (source or binary)</strong>: Binary wheel (<code class="notranslate">pip install tensorflow</code>)</li> <li><strong>TensorFlow version (use command below)</strong>: 1.7.0</li> <li><strong>Python version</strong>: 3.6</li> <li><strong>Bazel version (if compiling from source)</strong>: N/A</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: N/A</li> <li><strong>CUDA/cuDNN version</strong>: N/A</li> <li><strong>GPU model and memory</strong>: Intel graphics, 4GB RAM</li> <li><strong>Exact command to reproduce</strong>: <code class="notranslate">import tensorflow</code></li> </ul> <h3 dir="auto">Describe the problem</h3> <p dir="auto">I've installed tensorflow v1.7.0 via PIP and I am having issues working with it. Upon entering a REPL and attempting to <code class="notranslate">import tensorflow</code> the REPL silently exits with an exit code of 132. I've run PDB and tried importing it and it appears it is exiting around the <code class="notranslate">from tensorflow.python import *</code> section of the tensorflow code. Looking at the PDB output it appears that code is exiting with error code 132 after running <code class="notranslate">importlib._bootstrap._find_and_load</code> which is a python internal.</p> <h3 dir="auto">Source code / logs</h3> <p dir="auto">PDB output from trying to import tensorflow (around the section that it exits):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; &lt;frozen importlib._bootstrap&gt;(191)_get_module_lock()-&gt;_ModuleLock('...40427194539368 (Pdb) n &gt; &lt;frozen importlib._bootstrap&gt;(149)__enter__() (Pdb) n --Return-- &gt; &lt;frozen importlib._bootstrap&gt;(149)__enter__()-&gt;None (Pdb) n &gt; &lt;frozen importlib._bootstrap&gt;(969)_find_and_load() (Pdb) n &gt; &lt;frozen importlib._bootstrap&gt;(970)_find_and_load() (Pdb) n &gt; &lt;frozen importlib._bootstrap&gt;(971)_find_and_load() (Pdb) n "><pre class="notranslate"><code class="notranslate">&gt; &lt;frozen importlib._bootstrap&gt;(191)_get_module_lock()-&gt;_ModuleLock('...40427194539368 (Pdb) n &gt; &lt;frozen importlib._bootstrap&gt;(149)__enter__() (Pdb) n --Return-- &gt; &lt;frozen importlib._bootstrap&gt;(149)__enter__()-&gt;None (Pdb) n &gt; &lt;frozen importlib._bootstrap&gt;(969)_find_and_load() (Pdb) n &gt; &lt;frozen importlib._bootstrap&gt;(970)_find_and_load() (Pdb) n &gt; &lt;frozen importlib._bootstrap&gt;(971)_find_and_load() (Pdb) n </code></pre></div> <p dir="auto">What I'm trying to run:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ python3.6 Python 3.6.4 (default, Jan 5 2018, 02:35:40) [GCC 7.2.1 20171224] on linux Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import tensorflow as tf $ echo $? 132"><pre class="notranslate">$ <span class="pl-s1">python3</span>.<span class="pl-c1">6</span> <span class="pl-v">Python</span> <span class="pl-c1">3.6</span><span class="pl-c1">.4</span> (<span class="pl-s1">default</span>, <span class="pl-v">Jan</span> <span class="pl-c1">5</span> <span class="pl-c1">2018</span>, <span class="pl-c1">02</span>:<span class="pl-c1">35</span>:<span class="pl-c1">40</span>) [<span class="pl-v">GCC</span> <span class="pl-c1">7.2</span><span class="pl-c1">.1</span> <span class="pl-c1">20171224</span>] <span class="pl-s1">on</span> <span class="pl-s1">linux</span> <span class="pl-v">Type</span> <span class="pl-s">"help"</span>, <span class="pl-s">"copyright"</span>, <span class="pl-s">"credits"</span> <span class="pl-c1">or</span> <span class="pl-s">"license"</span> <span class="pl-k">for</span> <span class="pl-s1">more</span> <span class="pl-s1">information</span>. <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span> $ <span class="pl-s1">echo</span> $? <span class="pl-c1">132</span></pre></div>
<p dir="auto">As announced in release notes, TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets. This means on any CPU that do not have these instruction sets either CPU or GPU version of TF will fail to load with any of the following errors:</p> <ul dir="auto"> <li><code class="notranslate">ImportError: DLL load failed:</code></li> <li>A crash with return code 132</li> </ul> <p dir="auto">Our recommendation is to build TF from sources on these systems.</p> <h3 dir="auto">System information</h3> <ul dir="auto"> <li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li> <li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: ubuntu/windows/macos</li> <li><strong>TensorFlow installed from (source or binary)</strong>: binary</li> <li><strong>TensorFlow version (use command below)</strong>: 1.6 and up</li> <li><strong>Python version</strong>: 2.7, 3.3, 3.4, 3.5, 3.6 and any newer</li> <li><strong>Bazel version (if compiling from source)</strong>: n/a</li> <li><strong>GCC/Compiler version (if compiling from source)</strong>: n/a</li> <li><strong>CUDA/cuDNN version</strong>: any</li> <li><strong>GPU model and memory</strong>: any</li> <li><strong>Exact command to reproduce</strong>: python -c "import tensorflow as tf"</li> </ul>
1
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-with-javascript" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-with-javascript</a> has an issue.</p> <p dir="auto">Typo - "You should have multiplied the result of Math.random but 10 to make it a number that's greater then zero');"</p> <p dir="auto">Correction - "You should have multiplied the result of Math.random by 10 to make it a number that's greater then zero');"</p>
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-with-javascript" rel="nofollow">http://freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-with-javascript</a> has an issue.</p> <p dir="auto">"You should have multiplied the result of Math.random <strong>but</strong> 10 to make it a number that's greater then zero"</p> <p dir="auto">But I believe is a typo for 'by'</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1383904/9429029/36a1739c-4988-11e5-8da0-b371a4bb457d.png"><img src="https://cloud.githubusercontent.com/assets/1383904/9429029/36a1739c-4988-11e5-8da0-b371a4bb457d.png" alt="image" style="max-width: 100%;"></a></p>
1
<h2 dir="auto">Steps to Reproduce</h2> <p dir="auto">Run this:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:flutter/material.dart'; void main() =&gt; runApp(MyApp()); class MyApp extends StatefulWidget { @override _MyAppState createState() =&gt; _MyAppState(); } class _MyAppState extends State&lt;MyApp&gt; { @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: Center( child: Container( width: 200, height: 200, decoration: BoxDecoration( color: Colors.blue, border: Border.all( color: Colors.white, ), ), ), ), ), ); } }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>; <span class="pl-k">void</span> <span class="pl-en">main</span>() <span class="pl-k">=&gt;</span> <span class="pl-en">runApp</span>(<span class="pl-c1">MyApp</span>()); <span class="pl-k">class</span> <span class="pl-c1">MyApp</span> <span class="pl-k">extends</span> <span class="pl-c1">StatefulWidget</span> { <span class="pl-k">@override</span> <span class="pl-c1">_MyAppState</span> <span class="pl-en">createState</span>() <span class="pl-k">=&gt;</span> <span class="pl-c1">_MyAppState</span>(); } <span class="pl-k">class</span> <span class="pl-c1">_MyAppState</span> <span class="pl-k">extends</span> <span class="pl-c1">State</span>&lt;<span class="pl-c1">MyApp</span>&gt; { <span class="pl-k">@override</span> <span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) { <span class="pl-k">return</span> <span class="pl-c1">MaterialApp</span>( home<span class="pl-k">:</span> <span class="pl-c1">Scaffold</span>( body<span class="pl-k">:</span> <span class="pl-c1">Center</span>( child<span class="pl-k">:</span> <span class="pl-c1">Container</span>( width<span class="pl-k">:</span> <span class="pl-c1">200</span>, height<span class="pl-k">:</span> <span class="pl-c1">200</span>, decoration<span class="pl-k">:</span> <span class="pl-c1">BoxDecoration</span>( color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.blue, border<span class="pl-k">:</span> <span class="pl-c1">Border</span>.<span class="pl-en">all</span>( color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.white, ), ), ), ), ), ); } }</pre></div> <p dir="auto">I'd expect to see a blue box with a simple white border, but there is actually a very slight blue line outside of the white border. I haven't seen it in previous versions of flutter, but then again I haven't looked for it specifically. I'd guess this is something to do with anti-aliasing in the engine.</p> <p dir="auto">This is what it looks like in a screenshot (and FYI I've tested in release mode and it does the same thing, not that I'd really expect it to be different).</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3103484/49551197-35c10500-f8a3-11e8-870a-3b13a8713583.png"><img src="https://user-images.githubusercontent.com/3103484/49551197-35c10500-f8a3-11e8-870a-3b13a8713583.png" alt="screenshot_20181205-152229" style="max-width: 100%;"></a></p> <p dir="auto">And blown up:</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3103484/49551274-7b7dcd80-f8a3-11e8-955a-38984bd54b26.png"><img src="https://user-images.githubusercontent.com/3103484/49551274-7b7dcd80-f8a3-11e8-955a-38984bd54b26.png" alt="screenshot_20181205-152229_blownup" style="max-width: 100%;"></a></p> <h2 dir="auto">Logs</h2> <p dir="auto">N/A</p> <h2 dir="auto">Flutter Doctor</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[√] Flutter (Channel dev, v1.0.0, on Microsoft Windows [Version 10.0.17134.407], locale en-GB) [√] Android toolchain - develop for Android devices (Android SDK 28.0.3) [√] Android Studio (version 3.2) [√] IntelliJ IDEA Community Edition (version 2018.2) [√] IntelliJ IDEA Community Edition (version 2018.3) [√] VS Code (version 1.27.2) [√] VS Code, 32-bit edition [√] Connected device (1 available) • No issues found!"><pre class="notranslate"><code class="notranslate">[√] Flutter (Channel dev, v1.0.0, on Microsoft Windows [Version 10.0.17134.407], locale en-GB) [√] Android toolchain - develop for Android devices (Android SDK 28.0.3) [√] Android Studio (version 3.2) [√] IntelliJ IDEA Community Edition (version 2018.2) [√] IntelliJ IDEA Community Edition (version 2018.3) [√] VS Code (version 1.27.2) [√] VS Code, 32-bit edition [√] Connected device (1 available) • No issues found! </code></pre></div> <p dir="auto">This is running on a Nexus 5x running 8.1.0 on the Nov 5 2018 security patch.</p>
<p dir="auto">I create a plugin by following the documentation :</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="flutter create --org com.example --template=plugin hello cd hello/example; flutter build ios --no-codesign open ios/Runner.xcworkspace"><pre class="notranslate">flutter create --org com.example --template=plugin hello <span class="pl-c1">cd</span> hello/example<span class="pl-k">;</span> flutter build ios --no-codesign open ios/Runner.xcworkspace</pre></div> <p dir="auto">The documentation says that the development files can be found under this folder in the Xcode project navigator:<br> <strong><code class="notranslate">Pods/Development Pods/hello/Classes/</code></strong></p> <p dir="auto">But in fact, the project navigator puts them under:<br> <strong><code class="notranslate">Pods/Development Pods/hello/../../example/ios/.symlinks/plugins/hello/ios/Classes</code></strong></p> <p dir="auto">Note: the files are physically at the right location <code class="notranslate">hello/ios/Classes/</code>, so I guess it's only a symlink issue.</p> <p dir="auto">My environment:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Flutter 0.5.1 • channel beta • https://github.com/flutter/flutter.git Framework • revision c7ea3ca377 (7 weeks ago) • 2018-05-29 21:07:33 +0200 Engine • revision 1ed25ca7b7 Tools • Dart 2.0.0-dev.58.0.flutter-f981f09760"><pre class="notranslate"><code class="notranslate">Flutter 0.5.1 • channel beta • https://github.com/flutter/flutter.git Framework • revision c7ea3ca377 (7 weeks ago) • 2018-05-29 21:07:33 +0200 Engine • revision 1ed25ca7b7 Tools • Dart 2.0.0-dev.58.0.flutter-f981f09760 </code></pre></div>
0
<p dir="auto">Currently <code class="notranslate">PriorityQueue</code> defaults to a max-heap and if you want to use it as a min-heap you need to overload <code class="notranslate">Ord</code> and change the comparison.</p> <p dir="auto">But you should be able to use the default ordering and simply specify that you want a min-heap, so we can use it for types like <code class="notranslate">(uint, &amp;str)</code> for example.</p> <p dir="auto">The simple idea would be to simply make a <code class="notranslate">new_min_heap</code> and a <code class="notranslate">min_heap_with_capacity</code> constructors.</p> <p dir="auto">Thoughts?</p>
<p dir="auto">When documenting traits, rustdoc lists known implementations. From there it links to both the trait and the type it’s implemented on, which both (usually) have an [src] link.</p> <p dir="auto">However, the source code of an <code class="notranslate">impl</code> is not always next to either of them. Could each <code class="notranslate">impl</code> have an [src] link as well?</p> <p dir="auto">For example, it’s hard to go from <a href="http://doc.rust-lang.org/std/fmt/trait.Binary.html" rel="nofollow">http://doc.rust-lang.org/std/fmt/trait.Binary.html</a> to <a href="https://github.com/rust-lang/rust/blob/master/src/libcore/fmt/num.rs">https://github.com/rust-lang/rust/blob/master/src/libcore/fmt/num.rs</a> , even <code class="notranslate">grep</code> doesn’t help.</p>
0
<p dir="auto">Attaching events in template throws error.</p> <p dir="auto">e.g the following template works fine</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;input #testname value=&quot;Test&quot; /&gt; &lt;p&gt; {{ testname.value }}&lt;/p&gt;"><pre class="notranslate"><code class="notranslate">&lt;input #testname value="Test" /&gt; &lt;p&gt; {{ testname.value }}&lt;/p&gt; </code></pre></div> <p dir="auto">but the following one throws error, the moment I add the event</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;input #testname value=&quot;Test&quot; (keyup)/&gt; &lt;p&gt; {{ testname.value }}&lt;/p&gt;"><pre class="notranslate"><code class="notranslate">&lt;input #testname value="Test" (keyup)/&gt; &lt;p&gt; {{ testname.value }}&lt;/p&gt; </code></pre></div> <p dir="auto">Looks like its related to the issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="74630689" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/1789" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/1789/hovercard" href="https://github.com/angular/angular/issues/1789">#1789</a></p>
<p dir="auto">Related: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="101190599" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/3664" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/3664/hovercard" href="https://github.com/angular/angular/issues/3664">#3664</a> (should be fixed together)</p> <p dir="auto">I have a template with the following element:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;input type=&quot;file&quot; id=&quot;picture&quot; accept=&quot;image/*&quot; (change)=&quot;onFileSelected(f, $event)&quot; (fileread)&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">file</span>" <span class="pl-c1">id</span>="<span class="pl-s">picture</span>" <span class="pl-c1">accept</span>="<span class="pl-s">image/*</span>" <span class="pl-c1">(change)</span>="<span class="pl-s">onFileSelected(f, $event)</span>" <span class="pl-c1">(fileread)</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">On alpha 33 it worked great.<br> On alpha35 it produces the following runtime error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="EXCEPTION: TypeError: Cannot set property 'lastInBinding' of undefined angular2.js:13030 STACKTRACE: angular2.js:13030 TypeError: Cannot set property 'lastInBinding' of undefined at Function.execute._ConvertAstIntoProtoRecords.create (http://localhost:5555/lib/angular2.js:18104:47) at http://localhost:5555/lib/angular2.js:17730:49 at Array.map (native) at createEventRecords (http://localhost:5555/lib/angular2.js:17729:36) at JitProtoChangeDetector.execute.JitProtoChangeDetector._createFactory (http://localhost:5555/lib/angular2.js:17575:39) at new JitProtoChangeDetector (http://localhost:5555/lib/angular2.js:17567:32) at $__1.execute.JitChangeDetection.createProtoChangeDetector (http://localhost:5555/lib/angular2.js:10323:20) at http://localhost:5555/lib/angular2.js:15553:42 at Array.map (native) at Function.execute.ListWrapper.map (http://localhost:5555/lib/angular2.js:6374:26)"><pre class="notranslate"><code class="notranslate">EXCEPTION: TypeError: Cannot set property 'lastInBinding' of undefined angular2.js:13030 STACKTRACE: angular2.js:13030 TypeError: Cannot set property 'lastInBinding' of undefined at Function.execute._ConvertAstIntoProtoRecords.create (http://localhost:5555/lib/angular2.js:18104:47) at http://localhost:5555/lib/angular2.js:17730:49 at Array.map (native) at createEventRecords (http://localhost:5555/lib/angular2.js:17729:36) at JitProtoChangeDetector.execute.JitProtoChangeDetector._createFactory (http://localhost:5555/lib/angular2.js:17575:39) at new JitProtoChangeDetector (http://localhost:5555/lib/angular2.js:17567:32) at $__1.execute.JitChangeDetection.createProtoChangeDetector (http://localhost:5555/lib/angular2.js:10323:20) at http://localhost:5555/lib/angular2.js:15553:42 at Array.map (native) at Function.execute.ListWrapper.map (http://localhost:5555/lib/angular2.js:6374:26) </code></pre></div> <p dir="auto">The following modification still produces the error:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;input type=&quot;file&quot; id=&quot;picture&quot; accept=&quot;image/*&quot; (change)=&quot;onFileSelected(f, $event)&quot; (fileread)=&quot;&quot;&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">file</span>" <span class="pl-c1">id</span>="<span class="pl-s">picture</span>" <span class="pl-c1">accept</span>="<span class="pl-s">image/*</span>" <span class="pl-c1">(change)</span>="<span class="pl-s">onFileSelected(f, $event)</span>" <span class="pl-c1">(fileread)</span>=""<span class="pl-kos">&gt;</span></pre></div> <p dir="auto">This one works</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;input type=&quot;file&quot; id=&quot;picture&quot; accept=&quot;image/*&quot; (change)=&quot;onFileSelected(f, $event)&quot; (fileread)=&quot;x&quot;&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">file</span>" <span class="pl-c1">id</span>="<span class="pl-s">picture</span>" <span class="pl-c1">accept</span>="<span class="pl-s">image/*</span>" <span class="pl-c1">(change)</span>="<span class="pl-s">onFileSelected(f, $event)</span>" <span class="pl-c1">(fileread)</span>="<span class="pl-s">x</span>"<span class="pl-kos">&gt;</span></pre></div>
1
<p dir="auto">I've just updated the definitions from the version 0.0.33 to the latest version 0.0.36 and my build is failing with the following error (but that error occurs also in 0.0.34 and 0.0.35):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".../node_modules/@types/google-apps-script/google-apps-script.base.d.ts Type error: Subsequent variable declarations must have the same type. Variable 'console' must be of type 'Console', but here has type 'console'. TS2403 325 | // declare var MimeType: GoogleAppsScript.Base.MimeType; 326 | declare var Session: GoogleAppsScript.Base.Session; &gt; 327 | declare var console: GoogleAppsScript.Base.console;"><pre class="notranslate"><code class="notranslate">.../node_modules/@types/google-apps-script/google-apps-script.base.d.ts Type error: Subsequent variable declarations must have the same type. Variable 'console' must be of type 'Console', but here has type 'console'. TS2403 325 | // declare var MimeType: GoogleAppsScript.Base.MimeType; 326 | declare var Session: GoogleAppsScript.Base.Session; &gt; 327 | declare var console: GoogleAppsScript.Base.console; </code></pre></div> <p dir="auto">TypeScript version: 3.0.1</p> <ul dir="auto"> <li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/motemen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/motemen">@motemen</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/grant/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/grant">@grant</a></li> </ul>
<p dir="auto">In the node declarations, it seems like the EventEmitter interface and EventEmitter class have become out of sync so that typescript code which should compile clean generates error TS2352:</p> <p dir="auto">repro case::</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/// &lt;reference path=&quot;typings/index.d.ts&quot; /&gt; import {EventEmitter} from 'events'; const pe = process as EventEmitter;"><pre class="notranslate"><code class="notranslate">/// &lt;reference path="typings/index.d.ts" /&gt; import {EventEmitter} from 'events'; const pe = process as EventEmitter; </code></pre></div> <p dir="auto">observed error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error TS2352: Type 'Process' cannot be converted to type 'EventEmitter'. Property 'prependListener' is missing in type 'Process'."><pre class="notranslate"><code class="notranslate">error TS2352: Type 'Process' cannot be converted to type 'EventEmitter'. Property 'prependListener' is missing in type 'Process'. </code></pre></div> <p dir="auto">It seems like this happened when new Node V6 methods on core EvenentEmitter (prependListener, prependOnceListener, and eventName), but in the declaration file these methods were only only got added to the class declaration in module 'events'. As a result, attempting to pass the <code class="notranslate">process</code> variable to a method expecting a events.EventEmitter generate a typescript error.</p> <p dir="auto">Should these methods be added to both declarations of EventEmitter, or does it make sense to try to eliminate the dual declaration of EventEmitter?</p>
0
<p dir="auto">Found from <a href="https://dev.azure.com/numpy/numpy/_build/results?buildId=9539&amp;view=logs&amp;j=25bb66cf-4a16-533e-490c-8da4b5a3ec04&amp;t=8c35b800-042e-5b95-ac32-a97341040f78&amp;l=3639" rel="nofollow">a CI run</a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Running from numpy source directory. c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) Traceback (most recent call last): File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\pip\_vendor\pep517\_in_process.py&quot;, line 280, in &lt;module&gt; main() File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\pip\_vendor\pep517\_in_process.py&quot;, line 263, in main json_out['return_val'] = hook(**hook_input['kwargs']) File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\pip\_vendor\pep517\_in_process.py&quot;, line 205, in build_wheel metadata_directory) File &quot;C:\Users\VSSADM~1\AppData\Local\Temp\pip-build-env-4zqwivu4\overlay\Lib\site-packages\setuptools\build_meta.py&quot;, line 213, in build_wheel wheel_directory, config_settings) File &quot;C:\Users\VSSADM~1\AppData\Local\Temp\pip-build-env-4zqwivu4\overlay\Lib\site-packages\setuptools\build_meta.py&quot;, line 198, in _build_with_temp_dir self.run_setup() File &quot;C:\Users\VSSADM~1\AppData\Local\Temp\pip-build-env-4zqwivu4\overlay\Lib\site-packages\setuptools\build_meta.py&quot;, line 250, in run_setup self).run_setup(setup_script=setup_script) File &quot;C:\Users\VSSADM~1\AppData\Local\Temp\pip-build-env-4zqwivu4\overlay\Lib\site-packages\setuptools\build_meta.py&quot;, line 143, in run_setup exec(compile(code, __file__, 'exec'), locals()) File &quot;setup.py&quot;, line 488, in &lt;module&gt; setup_package() File &quot;setup.py&quot;, line 480, in setup_package setup(**metadata) File &quot;D:\a\1\s\numpy\distutils\core.py&quot;, line 169, in setup return old_setup(**new_attr) File &quot;C:\Users\VSSADM~1\AppData\Local\Temp\pip-build-env-4zqwivu4\overlay\Lib\site-packages\setuptools\__init__.py&quot;, line 144, in setup return distutils.core.setup(**attrs) File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\core.py&quot;, line 148, in setup dist.run_commands() File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\dist.py&quot;, line 955, in run_commands self.run_command(cmd) File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\dist.py&quot;, line 974, in run_command cmd_obj.run() File &quot;C:\Users\VSSADM~1\AppData\Local\Temp\pip-build-env-4zqwivu4\overlay\Lib\site-packages\wheel\bdist_wheel.py&quot;, line 223, in run self.run_command('build') File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\cmd.py&quot;, line 313, in run_command self.distribution.run_command(command) File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\dist.py&quot;, line 974, in run_command cmd_obj.run() File &quot;D:\a\1\s\numpy\distutils\command\build.py&quot;, line 40, in run old_build.run(self) File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\command\build.py&quot;, line 135, in run self.run_command(cmd_name) File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\cmd.py&quot;, line 313, in run_command self.distribution.run_command(command) File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\dist.py&quot;, line 974, in run_command cmd_obj.run() File &quot;D:\a\1\s\numpy\distutils\command\build_ext.py&quot;, line 272, in run self.build_extensions() File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\command\build_ext.py&quot;, line 448, in build_extensions self._build_extensions_serial() File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\command\build_ext.py&quot;, line 473, in _build_extensions_serial self.build_extension(ext) File &quot;setup.py&quot;, line 260, in build_extension build_ext.build_extension(self, ext) File &quot;D:\a\1\s\numpy\distutils\command\build_ext.py&quot;, line 478, in build_extension unlinkable_fobjects) File &quot;D:\a\1\s\numpy\distutils\command\build_ext.py&quot;, line 523, in _process_unlinkable_fobjects fobjects = [os.path.relpath(obj) for obj in unlinkable_fobjects] File &quot;D:\a\1\s\numpy\distutils\command\build_ext.py&quot;, line 523, in &lt;listcomp&gt; fobjects = [os.path.relpath(obj) for obj in unlinkable_fobjects] File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\ntpath.py&quot;, line 584, in relpath path_drive, start_drive)) ValueError: path is on mount 'c:', start on mount 'D:' ERROR: Failed building wheel for numpy Building wheel for numpy (PEP 517): finished with status 'error' Failed to build numpy ERROR: Failed to build one or more wheels Exception information: Traceback (most recent call last): File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\pip\_internal\cli\base_command.py&quot;, line 188, in _main status = self.run(options, args) File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\pip\_internal\cli\req_command.py&quot;, line 185, in wrapper return func(self, options, args) File &quot;c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\pip\_internal\commands\wheel.py&quot;, line 189, in run &quot;Failed to build one or more wheels&quot; pip._internal.exceptions.CommandError: Failed to build one or more wheels"><pre class="notranslate"><code class="notranslate"> Running from numpy source directory. c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: 'define_macros' warnings.warn(msg) Traceback (most recent call last): File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 280, in &lt;module&gt; main() File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 263, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\pip\_vendor\pep517\_in_process.py", line 205, in build_wheel metadata_directory) File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-build-env-4zqwivu4\overlay\Lib\site-packages\setuptools\build_meta.py", line 213, in build_wheel wheel_directory, config_settings) File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-build-env-4zqwivu4\overlay\Lib\site-packages\setuptools\build_meta.py", line 198, in _build_with_temp_dir self.run_setup() File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-build-env-4zqwivu4\overlay\Lib\site-packages\setuptools\build_meta.py", line 250, in run_setup self).run_setup(setup_script=setup_script) File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-build-env-4zqwivu4\overlay\Lib\site-packages\setuptools\build_meta.py", line 143, in run_setup exec(compile(code, __file__, 'exec'), locals()) File "setup.py", line 488, in &lt;module&gt; setup_package() File "setup.py", line 480, in setup_package setup(**metadata) File "D:\a\1\s\numpy\distutils\core.py", line 169, in setup return old_setup(**new_attr) File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-build-env-4zqwivu4\overlay\Lib\site-packages\setuptools\__init__.py", line 144, in setup return distutils.core.setup(**attrs) File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\core.py", line 148, in setup dist.run_commands() File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\dist.py", line 955, in run_commands self.run_command(cmd) File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "C:\Users\VSSADM~1\AppData\Local\Temp\pip-build-env-4zqwivu4\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 223, in run self.run_command('build') File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "D:\a\1\s\numpy\distutils\command\build.py", line 40, in run old_build.run(self) File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\dist.py", line 974, in run_command cmd_obj.run() File "D:\a\1\s\numpy\distutils\command\build_ext.py", line 272, in run self.build_extensions() File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\command\build_ext.py", line 448, in build_extensions self._build_extensions_serial() File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\distutils\command\build_ext.py", line 473, in _build_extensions_serial self.build_extension(ext) File "setup.py", line 260, in build_extension build_ext.build_extension(self, ext) File "D:\a\1\s\numpy\distutils\command\build_ext.py", line 478, in build_extension unlinkable_fobjects) File "D:\a\1\s\numpy\distutils\command\build_ext.py", line 523, in _process_unlinkable_fobjects fobjects = [os.path.relpath(obj) for obj in unlinkable_fobjects] File "D:\a\1\s\numpy\distutils\command\build_ext.py", line 523, in &lt;listcomp&gt; fobjects = [os.path.relpath(obj) for obj in unlinkable_fobjects] File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\ntpath.py", line 584, in relpath path_drive, start_drive)) ValueError: path is on mount 'c:', start on mount 'D:' ERROR: Failed building wheel for numpy Building wheel for numpy (PEP 517): finished with status 'error' Failed to build numpy ERROR: Failed to build one or more wheels Exception information: Traceback (most recent call last): File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\pip\_internal\cli\base_command.py", line 188, in _main status = self.run(options, args) File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\pip\_internal\cli\req_command.py", line 185, in wrapper return func(self, options, args) File "c:\hostedtoolcache\windows\python\3.6.8\x64\lib\site-packages\pip\_internal\commands\wheel.py", line 189, in run "Failed to build one or more wheels" pip._internal.exceptions.CommandError: Failed to build one or more wheels </code></pre></div>
<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="&gt;&gt;&gt; import numpy as np &gt;&gt;&gt; a = np.ndarray((5,6,7)) &gt;&gt;&gt; a.shape (5, 6, 7) &gt;&gt;&gt; a[[[0,1]],[[0],[1],[2]],:].shape (3, 2, 7) &gt;&gt;&gt; a[:,[[0,1]],[[0],[1],[2]]].shape (5, 3, 2) &gt;&gt;&gt; a[[[0,1]],:,[[0],[1],[2]]].shape (3, 2, 6)"><pre class="notranslate"><span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ndarray</span>((<span class="pl-c1">5</span>,<span class="pl-c1">6</span>,<span class="pl-c1">7</span>)) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">a</span>.<span class="pl-s1">shape</span> (<span class="pl-c1">5</span>, <span class="pl-c1">6</span>, <span class="pl-c1">7</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">a</span>[[[<span class="pl-c1">0</span>,<span class="pl-c1">1</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-c1">3</span>, <span class="pl-c1">2</span>, <span class="pl-c1">7</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">a</span>[:,[[<span class="pl-c1">0</span>,<span class="pl-c1">1</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-c1">5</span>, <span class="pl-c1">3</span>, <span class="pl-c1">2</span>) <span class="pl-c1">&gt;&gt;</span><span class="pl-c1">&gt;</span> <span class="pl-s1">a</span>[[[<span class="pl-c1">0</span>,<span class="pl-c1">1</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-c1">3</span>, <span class="pl-c1">2</span>, <span class="pl-c1">6</span>)</pre></div> <p dir="auto">I think the outcome of the third example is unexpected and inconsistent having seen the first two. I it would be more consistent either have the index dimensions <code class="notranslate">(3,2)</code> always be first, or preserve location of the "free" coordinate <code class="notranslate">:</code> to obtain a shape of <code class="notranslate">(3,6,2)</code>.</p> <h3 dir="auto">Numpy/Python version information:</h3> <p dir="auto">1.19.1 3.8.4 (default, Jul 14 2020, 11:50:51)<br> [GCC 10.1.1 20200507 (Red Hat 10.1.1-1)]</p>
0
<p dir="auto">This is a small new feature/improvement.<br> If you have in parameters.yml a parameter as Array :</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="database: blog: host: blog-host name: blog-name store: host: store-host name: store-name"><pre class="notranslate"><code class="notranslate">database: blog: host: blog-host name: blog-name store: host: store-host name: store-name </code></pre></div> <p dir="auto">You can retrieve the parameter from a container</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$container-&gt;getParameter('database');"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>container</span>-&gt;<span class="pl-en">getParameter</span>(<span class="pl-s">'database'</span>);</pre></div> <p dir="auto">However, there is no way to use that parameter from a config.yml definition, for instance (as an example) this parameter is not usuable to feed a doctrine connection.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="doctrine: dbal: connections: blog: driver: %database_driver% host: %database[blog][host]% #Doesn't work port: %database_port% dbname: %database[blog][name]% #Doesn't work store: driver: %database_driver% host: %database[store][host]% #Doesn't work port: %database_port% dbname: %database[store][name]% #Doesn't work"><pre class="notranslate"><code class="notranslate">doctrine: dbal: connections: blog: driver: %database_driver% host: %database[blog][host]% #Doesn't work port: %database_port% dbname: %database[blog][name]% #Doesn't work store: driver: %database_driver% host: %database[store][host]% #Doesn't work port: %database_port% dbname: %database[store][name]% #Doesn't work </code></pre></div> <p dir="auto">Some people were looking for this feature on stackoverflow<br> <a href="http://stackoverflow.com/questions/19919679/symfony2-how-to-read-parameters-array-in-config-yml" rel="nofollow">http://stackoverflow.com/questions/19919679/symfony2-how-to-read-parameters-array-in-config-yml</a></p>
<p dir="auto">Currently an optional variable (that has a default and can be left out from matching and generating URLs) can only be specified without any text suffix, i.e. at the end of the pattern. This is quite limiting.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/laszlokorte/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/laszlokorte">@laszlokorte</a> and I propose to add the possibility to mark the optional parts with parentheses/curly brackets.<br> This can be implemented BC and would allow several new, but common use-cases, e.g.:</p> <ul dir="auto"> <li>one can specify optional variables anywhere in the pattern (not only at the end),</li> <li>one can use more than one char as seperator,</li> <li>an optional part that depends on multiple variables,</li> <li>flexiblity of where, what and whether there is a (trailing) seperator (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="8132275" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/5918" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/5918/hovercard" href="https://github.com/symfony/symfony/issues/5918">#5918</a>).</li> </ul> <p dir="auto">Examples:</p> <ul dir="auto"> <li><code class="notranslate">/products(-by-{criterion}).html</code> would either match <code class="notranslate">/products.html</code> with <code class="notranslate">criterion = default</code> or <code class="notranslate">/products-by-price.html</code> with <code class="notranslate">criterion = 'price'</code></li> <li><code class="notranslate">/products(/{category}(.{_format}))</code> would be equivalent to how we already handle <code class="notranslate">/products/{category}.{_format}</code> with defaults for both variables. It matches <code class="notranslate">/products</code>, <code class="notranslate">/products/shoes</code> and <code class="notranslate">/products/shoes.html</code>. But it does not match <code class="notranslate">/products.html</code>! Compare that to</li> <li><code class="notranslate">/products((/{category}).{_format})</code> (only brackets changed) where the format would match without category, but the category does not match without the format. So the inner part requires the outer part to match.</li> <li><code class="notranslate">/products(-in-{category})(-by-{criterion}).html</code> matches <code class="notranslate">/products.html</code> and <code class="notranslate">/products-in-shoes-by-prize.html</code> and <code class="notranslate">/products-in-shoes.html</code> and <code class="notranslate">/products-by-prize.html</code>.</li> <li><code class="notranslate">/products(-in-{category1}-and-{category2}).html</code> only matches the optional part when both variables match, so <code class="notranslate">/products-in-shoes-and-suits.html</code> and <code class="notranslate">/products.html</code>, but not <code class="notranslate">/products-in-shoes.html</code>.</li> <li><code class="notranslate">/products(-by-price).html</code> should either raise exception that there is no variable in it, or treat it as-is (with the parentheses). It must not match both <code class="notranslate">/products.html</code> and <code class="notranslate">/products-by-prize.html</code> (where you should usually specify 2 routes for it) because there would be no way to decide which URL to generate.</li> <li><code class="notranslate">/products/({category})</code> would match <code class="notranslate">/products/</code> and <code class="notranslate">/products/...</code> whereas without the parentheses it would match <code class="notranslate">/products</code> and <code class="notranslate">/products/...</code> (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7955938" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/5869" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/5869/hovercard" href="https://github.com/symfony/symfony/issues/5869">#5869</a>)</li> <li><code class="notranslate">/{product}((-by-{criterion}).{_format})</code> would need a default requirement for <code class="notranslate">product</code> to be <code class="notranslate">[^/-\.]++</code> (so as seperator both <code class="notranslate">/</code> (standard) and <code class="notranslate">-</code> and <code class="notranslate">.</code>. Pretty hard to compile.</li> </ul> <p dir="auto">Also, it should raise an exception when you specify an optional part explicitly without adding a default for the variable in it.</p> <p dir="auto">This feature request is somewhat related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5949354" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/5129" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/5129/hovercard" href="https://github.com/symfony/symfony/pull/5129">#5129</a> and also covers <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="7955938" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/5869" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/5869/hovercard" href="https://github.com/symfony/symfony/issues/5869">#5869</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="27201048" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/10217" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/10217/hovercard" href="https://github.com/symfony/symfony/issues/10217">#10217</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="25308687" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/9981" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/9981/hovercard" href="https://github.com/symfony/symfony/issues/9981">#9981</a></p>
0
<p dir="auto">I tried to add jest to my nextjs app. To do this, I simply added a babelrc file to my project root (see content below). The tests run now but my app won't start anymore.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <ul dir="auto"> <li><code class="notranslate">npm run dev</code> should start the app</li> <li><code class="notranslate">npm test</code> should start jest testing</li> </ul> <h2 dir="auto">Current Behavior</h2> <p dir="auto">When the following babelrc file is added to project root...</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;env&quot; : { &quot;test&quot;: { &quot;presets&quot;: [&quot;env&quot;, &quot;react&quot;, &quot;stage-2&quot;], &quot;plugins&quot;: [&quot;transform-export-extensions&quot;], &quot;only&quot;: [ &quot;./**/*.js&quot;, &quot;node_modules/jest-runtime&quot; ] } } }"><pre class="notranslate">{ <span class="pl-ent">"env"</span> : { <span class="pl-ent">"test"</span>: { <span class="pl-ent">"presets"</span>: [<span class="pl-s"><span class="pl-pds">"</span>env<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>react<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>stage-2<span class="pl-pds">"</span></span>], <span class="pl-ent">"plugins"</span>: [<span class="pl-s"><span class="pl-pds">"</span>transform-export-extensions<span class="pl-pds">"</span></span>], <span class="pl-ent">"only"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>./**/*.js<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>node_modules/jest-runtime<span class="pl-pds">"</span></span> ] } } }</pre></div> <p dir="auto">... <code class="notranslate">npm test</code> runs fine but <code class="notranslate">npm run dev</code> fails giving this error:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ERROR Failed to compile with 1 errors 12:28:08 error in ./pages/_document.js?entry Syntax Error: Unexpected token (29:6) 27 | render() { 28 | return ( &gt; 29 | &lt;html lang={this.props.local.lang_short_value}&gt; | ^ 30 | &lt;Head /&gt; 31 | &lt;body&gt; 32 | &lt;Main /&gt; @ multi ./pages/_document.js?entry { Error: Cannot find module /web/.next/dist/pages/_document at _callee$ (/web/node_modules/next/dist/server/resolve.js:220:19) at tryCatch (/web/node_modules/regenerator-runtime/runtime.js:62:40) at Generator.invoke [as _invoke] (/web/node_modules/regenerator-runtime/runtime.js:296:22) at Generator.prototype.(anonymous function) [as next] (/web/node_modules/regenerator-runtime/runtime.js:114:21) at step (/web/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30) at /web/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13 at &lt;anonymous&gt; code: 'ENOENT' }"><pre class="notranslate">ERROR Failed to compile with 1 errors 12:28:08 error <span class="pl-k">in</span> ./pages/_document.js<span class="pl-k">?</span>entry Syntax Error: Unexpected token (29:6) 27 <span class="pl-k">|</span> <span class="pl-en">render</span>() { 28 <span class="pl-k">|</span> <span class="pl-k">return</span> ( <span class="pl-k">&gt;</span> 29 <span class="pl-k">|</span> <span class="pl-k">&lt;</span>html lang={this.props.local.lang_short_value}<span class="pl-k">&gt;</span> <span class="pl-k">|</span> ^ 30 <span class="pl-k">|</span> <span class="pl-k">&lt;</span>Head /<span class="pl-k">&gt;</span> 31 <span class="pl-k">|</span> <span class="pl-k">&lt;</span>body<span class="pl-k">&gt;</span> 32 <span class="pl-k">|</span> <span class="pl-k">&lt;</span>Main /<span class="pl-k">&gt;</span> @ multi ./pages/_document.js<span class="pl-k">?</span>entry { Error: Cannot find module /web/.next/dist/pages/_document at _callee$ (/web/node_modules/next/dist/server/resolve.js:220:19) at tryCatch (/web/node_modules/regenerator-runtime/runtime.js:62:40) at Generator.invoke [as _invoke] (/web/node_modules/regenerator-runtime/runtime.js:296:22) at Generator.prototype.(anonymous function) [as next] (/web/node_modules/regenerator-runtime/runtime.js:114:21) at step (/web/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30) at /web/node_modules/babel-runtime/helpers/asyncToGenerator.js:28:13 at <span class="pl-k">&lt;</span>anonymous<span class="pl-k">&gt;</span> code: <span class="pl-s"><span class="pl-pds">'</span>ENOENT<span class="pl-pds">'</span></span> }</pre></div> <p dir="auto"><a href="https://github.com/zeit/next.js/#customizing-babel-config">Reading the docs</a>, I found out that the babelrc file needs <code class="notranslate">"presets": ["next/babel", "env"]</code>. So I changed the babelrc file to this:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;env&quot; : { &quot;dev&quot;: { &quot;presets&quot;: [&quot;next/babel&quot;, &quot;env&quot;] }, &quot;test&quot;: { &quot;presets&quot;: [&quot;env&quot;, &quot;react&quot;, &quot;stage-2&quot;], &quot;plugins&quot;: [&quot;transform-export-extensions&quot;], &quot;only&quot;: [ &quot;./**/*.js&quot;, &quot;node_modules/jest-runtime&quot; ] } } }"><pre class="notranslate">{ <span class="pl-ent">"env"</span> : { <span class="pl-ent">"dev"</span>: { <span class="pl-ent">"presets"</span>: [<span class="pl-s"><span class="pl-pds">"</span>next/babel<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>env<span class="pl-pds">"</span></span>] }, <span class="pl-ent">"test"</span>: { <span class="pl-ent">"presets"</span>: [<span class="pl-s"><span class="pl-pds">"</span>env<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>react<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>stage-2<span class="pl-pds">"</span></span>], <span class="pl-ent">"plugins"</span>: [<span class="pl-s"><span class="pl-pds">"</span>transform-export-extensions<span class="pl-pds">"</span></span>], <span class="pl-ent">"only"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>./**/*.js<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>node_modules/jest-runtime<span class="pl-pds">"</span></span> ] } } }</pre></div> <p dir="auto">But this still doesn't work. Did I miss something?</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ul dir="auto"> <li>Use the babelrc and package.json provided</li> <li>run <code class="notranslate">npm run dev</code></li> </ul> <h2 dir="auto">Context</h2> <h3 dir="auto">package.json</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;scripts&quot;: { &quot;dev&quot;: &quot;next&quot;, &quot;build&quot;: &quot;next build&quot;, &quot;start&quot;: &quot;next start&quot;, &quot;test&quot;: &quot;jest&quot; }, &quot;jest&quot;: { &quot;transform&quot;: { &quot;^.+\\.js?$&quot;: &quot;babel-jest&quot; }, &quot;transformIgnorePatterns&quot;: [ &quot;!node_modules/react-runtime&quot; ] }, &quot;devDependencies&quot;: { &quot;babel-jest&quot;: &quot;^22.1.0&quot;, &quot;babel-plugin-transform-export-extensions&quot;: &quot;^6.22.0&quot;, &quot;babel-preset-env&quot;: &quot;^1.6.1&quot;, &quot;babel-preset-react&quot;: &quot;^6.24.1&quot;, &quot;babel-preset-stage-2&quot;: &quot;^6.24.1&quot;, &quot;enzyme&quot;: &quot;^3.3.0&quot;, &quot;enzyme-adapter-react-16&quot;: &quot;^1.1.1&quot;, &quot;eslint&quot;: &quot;^4.17.0&quot;, &quot;eslint-config-airbnb&quot;: &quot;^16.1.0&quot;, &quot;eslint-plugin-import&quot;: &quot;^2.8.0&quot;, &quot;eslint-plugin-jsx-a11y&quot;: &quot;^6.0.3&quot;, &quot;eslint-plugin-react&quot;: &quot;^7.5.1&quot;, &quot;jest&quot;: &quot;^22.1.4&quot;, &quot;react-test-renderer&quot;: &quot;^16.2.0&quot; }, &quot;dependencies&quot;: { &quot;apollo-cache-inmemory&quot;: &quot;^1.1.7&quot;, &quot;apollo-client&quot;: &quot;^2.2.3&quot;, &quot;apollo-client-preset&quot;: &quot;^1.0.8&quot;, &quot;apollo-link&quot;: &quot;^1.1.0&quot;, &quot;apollo-link-error&quot;: &quot;^1.0.5&quot;, &quot;apollo-link-http&quot;: &quot;^1.3.3&quot;, &quot;bcryptjs&quot;: &quot;^2.4.3&quot;, &quot;graphql&quot;: &quot;^0.12.3&quot;, &quot;graphql-tag&quot;: &quot;^2.7.3&quot;, &quot;moment&quot;: &quot;^2.20.1&quot;, &quot;next&quot;: &quot;^4.2.3&quot;, &quot;node-fetch&quot;: &quot;^1.7.3&quot;, &quot;prop-types&quot;: &quot;^15.6.0&quot;, &quot;radium&quot;: &quot;^0.19.6&quot;, &quot;react&quot;: &quot;^16.2.0&quot;, &quot;react-apollo&quot;: &quot;^2.0.4&quot;, &quot;react-autosuggest&quot;: &quot;^9.3.3&quot;, &quot;react-dom&quot;: &quot;^16.2.0&quot;, &quot;react-id-swiper&quot;: &quot;^1.5.8&quot;, &quot;react-touch-events&quot;: &quot;^2.1.0&quot;, &quot;styled-jsx&quot;: &quot;^2.2.4&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"scripts"</span>: { <span class="pl-ent">"dev"</span>: <span class="pl-s"><span class="pl-pds">"</span>next<span class="pl-pds">"</span></span>, <span class="pl-ent">"build"</span>: <span class="pl-s"><span class="pl-pds">"</span>next build<span class="pl-pds">"</span></span>, <span class="pl-ent">"start"</span>: <span class="pl-s"><span class="pl-pds">"</span>next start<span class="pl-pds">"</span></span>, <span class="pl-ent">"test"</span>: <span class="pl-s"><span class="pl-pds">"</span>jest<span class="pl-pds">"</span></span> }, <span class="pl-ent">"jest"</span>: { <span class="pl-ent">"transform"</span>: { <span class="pl-ent">"^.+<span class="pl-cce">\\</span>.js?$"</span>: <span class="pl-s"><span class="pl-pds">"</span>babel-jest<span class="pl-pds">"</span></span> }, <span class="pl-ent">"transformIgnorePatterns"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>!node_modules/react-runtime<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"devDependencies"</span>: { <span class="pl-ent">"babel-jest"</span>: <span class="pl-s"><span class="pl-pds">"</span>^22.1.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-plugin-transform-export-extensions"</span>: <span class="pl-s"><span class="pl-pds">"</span>^6.22.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-preset-env"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.6.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-preset-react"</span>: <span class="pl-s"><span class="pl-pds">"</span>^6.24.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"babel-preset-stage-2"</span>: <span class="pl-s"><span class="pl-pds">"</span>^6.24.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"enzyme"</span>: <span class="pl-s"><span class="pl-pds">"</span>^3.3.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"enzyme-adapter-react-16"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.1.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"eslint"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.17.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"eslint-config-airbnb"</span>: <span class="pl-s"><span class="pl-pds">"</span>^16.1.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"eslint-plugin-import"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.8.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"eslint-plugin-jsx-a11y"</span>: <span class="pl-s"><span class="pl-pds">"</span>^6.0.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"eslint-plugin-react"</span>: <span class="pl-s"><span class="pl-pds">"</span>^7.5.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"jest"</span>: <span class="pl-s"><span class="pl-pds">"</span>^22.1.4<span class="pl-pds">"</span></span>, <span class="pl-ent">"react-test-renderer"</span>: <span class="pl-s"><span class="pl-pds">"</span>^16.2.0<span class="pl-pds">"</span></span> }, <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"apollo-cache-inmemory"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.1.7<span class="pl-pds">"</span></span>, <span class="pl-ent">"apollo-client"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.2.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"apollo-client-preset"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.0.8<span class="pl-pds">"</span></span>, <span class="pl-ent">"apollo-link"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.1.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"apollo-link-error"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.0.5<span class="pl-pds">"</span></span>, <span class="pl-ent">"apollo-link-http"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.3.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"bcryptjs"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.4.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"graphql"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.12.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"graphql-tag"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.7.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"moment"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.20.1<span class="pl-pds">"</span></span>, <span class="pl-ent">"next"</span>: <span class="pl-s"><span class="pl-pds">"</span>^4.2.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"node-fetch"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.7.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"prop-types"</span>: <span class="pl-s"><span class="pl-pds">"</span>^15.6.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"radium"</span>: <span class="pl-s"><span class="pl-pds">"</span>^0.19.6<span class="pl-pds">"</span></span>, <span class="pl-ent">"react"</span>: <span class="pl-s"><span class="pl-pds">"</span>^16.2.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"react-apollo"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.0.4<span class="pl-pds">"</span></span>, <span class="pl-ent">"react-autosuggest"</span>: <span class="pl-s"><span class="pl-pds">"</span>^9.3.3<span class="pl-pds">"</span></span>, <span class="pl-ent">"react-dom"</span>: <span class="pl-s"><span class="pl-pds">"</span>^16.2.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"react-id-swiper"</span>: <span class="pl-s"><span class="pl-pds">"</span>^1.5.8<span class="pl-pds">"</span></span>, <span class="pl-ent">"react-touch-events"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.1.0<span class="pl-pds">"</span></span>, <span class="pl-ent">"styled-jsx"</span>: <span class="pl-s"><span class="pl-pds">"</span>^2.2.4<span class="pl-pds">"</span></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>next</td> <td>^4.2.3</td> </tr> <tr> <td>node</td> <td>9.3.0</td> </tr> <tr> <td>OS</td> <td>macOS 10.13.3</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> <tr> <td>etc</td> <td>See package.json</td> </tr> </tbody> </table> <p dir="auto">What's wrong? :-(</p>
<blockquote> <p dir="auto">Note: React-components outside of </p> will not be initialised by the browser. If you need shared components in all your pages (like a menu or a toolbar), do not add application logic here, but take a look at this example. <a href="https://github.com/zeit/next.js/tree/master/examples/layout-component">https://github.com/zeit/next.js/tree/master/examples/layout-component</a><p dir="auto"></p> </blockquote> <p dir="auto">OK. But it very useful.</p> <p dir="auto">The layout inside the component is created every time a page is moved to a new page. But the layout should not be created every time you go to a new page.</p> <p dir="auto">Also, the layout should have an asynchronous initialization method.</p> <p dir="auto">Ideally, it would be possible to create several layouts and set the current layout in the component page.</p>
0
<p dir="auto">Repro:</p> <ol dir="auto"> <li>Start up a kube cluster.</li> <li>Make some API calls that result in 404 (e.g. <a href="http://apiserver/aaa" rel="nofollow">http://apiserver/aaa</a> or <a href="http://apiserver/api/v1/pods/aaa" rel="nofollow">http://apiserver/api/v1/pods/aaa</a>) or 503 (kill etcd and make some API calls).</li> <li>Visit <a href="http://apiserver/metrics" rel="nofollow">http://apiserver/metrics</a>.</li> </ol> <p dir="auto">Expected behavior: The metrics that have a "code" tag (e.g. apiserver_request_count and rest_client_request_status_codes) should have lines referring to code="404" or code="503".<br> Actual behavior: No such lines exist. Only code="200" lines exist.</p> <p dir="auto">Happening at HEAD (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kubernetes/kubernetes/commit/730a6a1d555a0c4c2d9ab52de5f9e21dd065fb0b/hovercard" href="https://github.com/kubernetes/kubernetes/commit/730a6a1d555a0c4c2d9ab52de5f9e21dd065fb0b"><tt>730a6a1</tt></a>). This is currently blocking us from monitoring and alerting on 5xx errors.</p>
<p dir="auto">When looking into those metrics, the code is always 200.</p> <p dir="auto">I explicitly send a bad request:<br> wojtekt@wojtekt-work:~/go/src/k8s.io/kubernetes/pkg/labels$ curl localhost:8080/api/v1/pods?timeoutSeconds=xxx<br> {<br> "kind": "Status",<br> "apiVersion": "v1",<br> "metadata": {},<br> "status": "Failure",<br> "message": "strconv.ParseInt: parsing "xxx": invalid syntax",<br> "reason": "BadRequest",<br> "code": 400<br> }</p> <p dir="auto">and in metrics it was reported as code "200".</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lavalamp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lavalamp">@lavalamp</a> @kubernetes/goog-csi</p>
1
<p dir="auto">I have to use the device_attributes.pb.h and I don't know where it is.</p> <p dir="auto">Thank you !</p>
<p dir="auto">I want to use the sparse tensor in C++ API(<a href="https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/add-sparse-to-tensors-map" rel="nofollow">https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/add-sparse-to-tensors-map</a>).<br> But when I search in "<a href="https://github.com/tensorflow/tensorflow">https://github.com/tensorflow/tensorflow</a>", there is no "tensorflow/cc/ops/sparse_ops.h"<br> Does anyone know how to use the sparse tensor in C++?</p>
1
<p dir="auto">Like it says in the title, an example in the Grid System -&gt; Offset Columns section of the docs shows the class "col-lg-offset-3" being used, but this class (and others like it) doesn't seem to be defined anywhere.</p>
<p dir="auto">adding the col-lg-offset-2 or any other number doesn't work. upon searching i can't find any such class in the bootstrap.css file.</p>
1
<p dir="auto">Right now if there is an error such as `Unexpected identifier`` it goes to STDOUT, it should go to STDERR and the process should exit with an error code so that CI , npm test, ... can detect something went wrong.</p>
<p dir="auto">Hi,</p> <p dir="auto">I'd like to know when a build failed using the webpack client (because of a module not found for example). Right now, it seems that the client is outputting the error to the console but the status code of the webpack client process is 0 (success).</p> <p dir="auto">Is it the normal behavior? I can imagine that when using the watch option we don't want the process to end on a build failure but without the option, could the client terminate with a status != 0?</p> <p dir="auto">I'd like to avoid to search for "ERROR" inside the client output to determine that the build failed.</p> <p dir="auto">Thanks.</p>
1
<h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Make a change in the project's AppDelegate.m that results in a compiler warning. e.g. mark the AppDelegate class as <code class="notranslate">+__attribute__((deprecated("foo")))</code> in AppDelegate.h</li> <li>flutter build ios</li> </ol> <p dir="auto">The compiler warnings should be emitted to the stderr, but today are not displayed.</p>
<h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>Create an app using Firestore (<code class="notranslate">cloud_firestore</code> in dependencies). For example, the official <a href="https://codelabs.developers.google.com/codelabs/flutter-firebase/index.html?index=..%2F..%2Findex#0" rel="nofollow">Firebase for Flutter codelab</a>.</li> <li>Neglect to set up the iOS project with <code class="notranslate">GoogleService-Info.plist</code>.</li> <li><code class="notranslate">flutter run</code> the app on iOS.</li> </ol> <h2 dir="auto">Logs</h2> <p dir="auto">This is what <code class="notranslate">flutter run</code> shows, in its entirety:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Launching lib/main.dart on iPhone X in debug mode... *** First throw call stack: ( 0 CoreFoundation 0x000000010930d29b __exceptionPreprocess + 331 1 libobjc.A.dylib 0x00000001088a9735 objc_exception_throw + 48 2 CoreFoundation 0x000000010930d0f5 +[NSException raise:format:] + 197 3 Runner 0x0000000104947aa1 +[FIRApp configure] + 481 4 Runner 0x0000000104c9d22c -[FLTCloudFirestorePlugin init] + 188 5 Runner 0x0000000104c9d0d9 +[FLTCloudFirestorePlugin registerWithRegistrar:] + 297 6 Runner 0x00000001048f06bb +[GeneratedPluginRegistrant registerWithRegistry:] + 123 7 Runner &lt;…&gt; Starting Xcode build... Xcode build done. *** First throw call stack: ( 0 CoreFoundation 0x000000010665829b __exceptionPreprocess + 331 1 libobjc.A.dylib 0x0000000105bf4735 objc_exception_throw + 48 2 CoreFoundation 0x00000001066580f5 +[NSException raise:format:] + 197 3 Runner 0x0000000101befaa1 +[FIRApp configure] + 481 4 Runner 0x0000000101f4522c -[FLTCloudFirestorePlugin init] + 188 5 Runner 0x0000000101f450d9 +[FLTCloudFirestorePlugin registerWithRegistrar:] + 297 6 Runner 0x0000000101b986bb +[GeneratedPluginRegistrant registerWithRegistry:] + 123 7 Runner &lt;…&gt;"><pre class="notranslate"><code class="notranslate">Launching lib/main.dart on iPhone X in debug mode... *** First throw call stack: ( 0 CoreFoundation 0x000000010930d29b __exceptionPreprocess + 331 1 libobjc.A.dylib 0x00000001088a9735 objc_exception_throw + 48 2 CoreFoundation 0x000000010930d0f5 +[NSException raise:format:] + 197 3 Runner 0x0000000104947aa1 +[FIRApp configure] + 481 4 Runner 0x0000000104c9d22c -[FLTCloudFirestorePlugin init] + 188 5 Runner 0x0000000104c9d0d9 +[FLTCloudFirestorePlugin registerWithRegistrar:] + 297 6 Runner 0x00000001048f06bb +[GeneratedPluginRegistrant registerWithRegistry:] + 123 7 Runner &lt;…&gt; Starting Xcode build... Xcode build done. *** First throw call stack: ( 0 CoreFoundation 0x000000010665829b __exceptionPreprocess + 331 1 libobjc.A.dylib 0x0000000105bf4735 objc_exception_throw + 48 2 CoreFoundation 0x00000001066580f5 +[NSException raise:format:] + 197 3 Runner 0x0000000101befaa1 +[FIRApp configure] + 481 4 Runner 0x0000000101f4522c -[FLTCloudFirestorePlugin init] + 188 5 Runner 0x0000000101f450d9 +[FLTCloudFirestorePlugin registerWithRegistrar:] + 297 6 Runner 0x0000000101b986bb +[GeneratedPluginRegistrant registerWithRegistry:] + 123 7 Runner &lt;…&gt; </code></pre></div> <p dir="auto">Here's what you get in Xcode:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2018-10-01 16:30:54.093692-0700 Runner[21990:12461249] - &lt;AppMeasurement&gt;[I-ACS036002] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist 2018-10-01 16:30:54.370913-0700 Runner[21990:12460659] You've implemented -[&lt;UIApplicationDelegate&gt; application:performFetchWithCompletionHandler:], but you still need to add &quot;fetch&quot; to the list of your supported UIBackgroundModes in your Info.plist. 2018-10-01 16:30:54.371112-0700 Runner[21990:12460659] You've implemented -[&lt;UIApplicationDelegate&gt; application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add &quot;remote-notification&quot; to the list of your supported UIBackgroundModes in your Info.plist. 2018-10-01 16:30:54.385564-0700 Runner[21990:12460659] *** Terminating app due to uncaught exception 'com.firebase.core', reason: '`[FIRApp configure];` (`FirebaseApp.configure()` in Swift) could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/.' *** First throw call stack: ( 0 CoreFoundation 0x000000010ac0529b __exceptionPreprocess + 331 1 libobjc.A.dylib 0x000000010a1a1735 objc_exception_throw + 48 2 CoreFoundation 0x000000010ac050f5 +[NSException raise:format:] + 197 3 Runner 0x0000000105fe9aa1 +[FIRApp configure] + 481 4 Runner 0x000000010633f22c -[FLTCloudFirestorePlugin init] + 188 5 Runner 0x000000010633f0d9 +[FLTCloudFirestorePlugin registerWithRegistrar:] + 297 6 Runner 0x0000000105f926bb +[GeneratedPluginRegistrant registerWithRegistry:] + 123 7 Runner 0x0000000105f927ca $S6Runner11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtF + 138 8 Runner 0x0000000105f92bb4 $S6Runner11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtFTo + 228 9 UIKitCore 0x00000001133ac4d7 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 280 10 UIKitCore 0x00000001133adec4 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3979 11 UIKitCore 0x00000001133b3527 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1623 12 UIKitCore 0x0000000113c55e3e __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 866 13 UIKitCore 0x0000000113c52403 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153 14 UIKitCore 0x0000000113c55a7b -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 233 15 UIKitCore 0x0000000113c56435 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1085 16 UIKitCore 0x0000000113c13b31 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 795 17 UIKitCore 0x0000000113c137db -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 435 18 UIKitCore 0x0000000113c5892c __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 584 19 UIKitCore 0x0000000113c59256 _performActionsWithDelayForTransitionContext + 100 20 UIKitCore 0x0000000113c5868b -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 221 21 UIKitCore 0x0000000113c51aa1 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392 22 UIKitCore 0x00000001133b1d46 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515 23 UIKitCore 0x00000001133e3856 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 357 24 FrontBoardServices 0x00000001166aedda -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 448 25 FrontBoardServices 0x00000001166b9f43 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 271 26 FrontBoardServices 0x00000001166b963a __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 53 27 libdispatch.dylib 0x000000010c64e63e _dispatch_client_callout + 8 28 libdispatch.dylib 0x000000010c651bb4 _dispatch_block_invoke_direct + 301 29 FrontBoardServices 0x00000001166ee3c8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30 30 FrontBoardServices 0x00000001166ee080 -[FBSSerialQueue _performNext] + 457 31 FrontBoardServices 0x00000001166ee660 -[FBSSerialQueue _performNextFromRunLoopSource] + 45 32 CoreFoundation 0x000000010ab68b31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 33 CoreFoundation 0x000000010ab683a3 __CFRunLoopDoSources0 + 243 34 CoreFoundation 0x000000010ab62a4f __CFRunLoopRun + 1263 35 CoreFoundation 0x000000010ab62221 CFRunLoopRunSpecific + 625 36 GraphicsServices 0x000000010fcd01dd GSEventRunModal + 62 37 UIKitCore 0x00000001133b5115 UIApplicationMain + 140 38 Runner 0x0000000105f92d84 main + 68 39 libdyld.dylib 0x000000010c6c4551 start + 1 ) 2018-10-01 16:30:54.489749-0700 Runner[21990:12461272] flutter: Observatory listening on http://127.0.0.1:49397/ libc++abi.dylib: terminating with uncaught exception of type NSException 2018-10-01 16:30:54.404948-0700 Runner[21990:12461249] 5.6.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8."><pre class="notranslate"><code class="notranslate">2018-10-01 16:30:54.093692-0700 Runner[21990:12461249] - &lt;AppMeasurement&gt;[I-ACS036002] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist 2018-10-01 16:30:54.370913-0700 Runner[21990:12460659] You've implemented -[&lt;UIApplicationDelegate&gt; application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist. 2018-10-01 16:30:54.371112-0700 Runner[21990:12460659] You've implemented -[&lt;UIApplicationDelegate&gt; application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist. 2018-10-01 16:30:54.385564-0700 Runner[21990:12460659] *** Terminating app due to uncaught exception 'com.firebase.core', reason: '`[FIRApp configure];` (`FirebaseApp.configure()` in Swift) could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/.' *** First throw call stack: ( 0 CoreFoundation 0x000000010ac0529b __exceptionPreprocess + 331 1 libobjc.A.dylib 0x000000010a1a1735 objc_exception_throw + 48 2 CoreFoundation 0x000000010ac050f5 +[NSException raise:format:] + 197 3 Runner 0x0000000105fe9aa1 +[FIRApp configure] + 481 4 Runner 0x000000010633f22c -[FLTCloudFirestorePlugin init] + 188 5 Runner 0x000000010633f0d9 +[FLTCloudFirestorePlugin registerWithRegistrar:] + 297 6 Runner 0x0000000105f926bb +[GeneratedPluginRegistrant registerWithRegistry:] + 123 7 Runner 0x0000000105f927ca $S6Runner11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtF + 138 8 Runner 0x0000000105f92bb4 $S6Runner11AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtFTo + 228 9 UIKitCore 0x00000001133ac4d7 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 280 10 UIKitCore 0x00000001133adec4 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3979 11 UIKitCore 0x00000001133b3527 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1623 12 UIKitCore 0x0000000113c55e3e __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 866 13 UIKitCore 0x0000000113c52403 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153 14 UIKitCore 0x0000000113c55a7b -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 233 15 UIKitCore 0x0000000113c56435 -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 1085 16 UIKitCore 0x0000000113c13b31 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 795 17 UIKitCore 0x0000000113c137db -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 435 18 UIKitCore 0x0000000113c5892c __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 584 19 UIKitCore 0x0000000113c59256 _performActionsWithDelayForTransitionContext + 100 20 UIKitCore 0x0000000113c5868b -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 221 21 UIKitCore 0x0000000113c51aa1 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392 22 UIKitCore 0x00000001133b1d46 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 515 23 UIKitCore 0x00000001133e3856 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 357 24 FrontBoardServices 0x00000001166aedda -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 448 25 FrontBoardServices 0x00000001166b9f43 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 271 26 FrontBoardServices 0x00000001166b963a __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 53 27 libdispatch.dylib 0x000000010c64e63e _dispatch_client_callout + 8 28 libdispatch.dylib 0x000000010c651bb4 _dispatch_block_invoke_direct + 301 29 FrontBoardServices 0x00000001166ee3c8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 30 30 FrontBoardServices 0x00000001166ee080 -[FBSSerialQueue _performNext] + 457 31 FrontBoardServices 0x00000001166ee660 -[FBSSerialQueue _performNextFromRunLoopSource] + 45 32 CoreFoundation 0x000000010ab68b31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 33 CoreFoundation 0x000000010ab683a3 __CFRunLoopDoSources0 + 243 34 CoreFoundation 0x000000010ab62a4f __CFRunLoopRun + 1263 35 CoreFoundation 0x000000010ab62221 CFRunLoopRunSpecific + 625 36 GraphicsServices 0x000000010fcd01dd GSEventRunModal + 62 37 UIKitCore 0x00000001133b5115 UIApplicationMain + 140 38 Runner 0x0000000105f92d84 main + 68 39 libdyld.dylib 0x000000010c6c4551 start + 1 ) 2018-10-01 16:30:54.489749-0700 Runner[21990:12461272] flutter: Observatory listening on http://127.0.0.1:49397/ libc++abi.dylib: terminating with uncaught exception of type NSException 2018-10-01 16:30:54.404948-0700 Runner[21990:12461249] 5.6.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: https://goo.gl/ctyzm8. </code></pre></div> <p dir="auto">Note the helpful error that is only visible in Xcode:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/"><pre class="notranslate"><code class="notranslate">could not find a valid GoogleService-Info.plist in your project. Please download one from https://console.firebase.google.com/ </code></pre></div> <h3 dir="auto">Flutter doctor</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter doctor -v [✓] Flutter (Channel beta, v0.8.2, on Mac OS X 10.13.6 17G65, locale en-US) • Flutter version 0.8.2 at /Users/filiph/dev/flutter • Framework revision 5ab9e70727 (3 weeks ago), 2018-09-07 12:33:05 -0700 • Engine revision 58a1894a1c • Dart version 2.1.0-dev.3.1.flutter-760a9690c2 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/filiph/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.0) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.0, Build version 10A255 • ios-deploy 1.9.2 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 28.0.2 • Dart plugin version 181.5616 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [!] IntelliJ IDEA Community Edition (version 2018.1) • IntelliJ at /Applications/IntelliJ IDEA CE.app ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [!] VS Code (version 1.22.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [✓] Connected devices (3 available) • Pixel 2 XL • 711KPZK0592485 • android-arm64 • Android 9 (API 28) • iPhone X • A4DBE660-4C39-4AEA-B258-7755F584BA6E • ios • iOS 12.0 (simulator) • iPhone XR • 431DF6F4-BF91-4E1D-9AF1-8324CF683D37 • ios • iOS 12.0 (simulator) ! Doctor found issues in 2 categories. "><pre class="notranslate"><code class="notranslate">$ flutter doctor -v [✓] Flutter (Channel beta, v0.8.2, on Mac OS X 10.13.6 17G65, locale en-US) • Flutter version 0.8.2 at /Users/filiph/dev/flutter • Framework revision 5ab9e70727 (3 weeks ago), 2018-09-07 12:33:05 -0700 • Engine revision 58a1894a1c • Dart version 2.1.0-dev.3.1.flutter-760a9690c2 [✓] Android toolchain - develop for Android devices (Android SDK 27.0.3) • Android SDK at /Users/filiph/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-27, build-tools 27.0.3 • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.0) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.0, Build version 10A255 • ios-deploy 1.9.2 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 28.0.2 • Dart plugin version 181.5616 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) [!] IntelliJ IDEA Community Edition (version 2018.1) • IntelliJ at /Applications/IntelliJ IDEA CE.app ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. • For information about installing plugins, see https://flutter.io/intellij-setup/#installing-the-plugins [!] VS Code (version 1.22.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension not installed; install from https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [✓] Connected devices (3 available) • Pixel 2 XL • 711KPZK0592485 • android-arm64 • Android 9 (API 28) • iPhone X • A4DBE660-4C39-4AEA-B258-7755F584BA6E • ios • iOS 12.0 (simulator) • iPhone XR • 431DF6F4-BF91-4E1D-9AF1-8324CF683D37 • ios • iOS 12.0 (simulator) ! Doctor found issues in 2 categories. </code></pre></div>
1
<p dir="auto">React introduces a new JSX transform that is supported in TypeScript 4.1: <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/#jsx-factories" rel="nofollow">https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/#jsx-factories</a></p> <p dir="auto">We should consider the impact of this on Deno and specifically <code class="notranslate">--no-check</code>.</p>
<p dir="auto">React 17 introduced <a href="https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html" rel="nofollow">new JSX transforms</a> and they are available in <a href="https://devblogs.microsoft.com/typescript/announcing-typescript-4-1/#jsx-factories" rel="nofollow">TypeScript 4.1</a>. There are two new options for <code class="notranslate">"jsx"</code> in TypeScript:</p> <ul dir="auto"> <li><code class="notranslate">"react-jsx"</code></li> <li><code class="notranslate">"react-jsxdev"</code></li> </ul> <p dir="auto">Currently with <em>check</em> these should be supported without any further changes, but are unsupported in <code class="notranslate">--no-check</code> and <code class="notranslate">deno bundle</code>.</p> <p dir="auto">We need support from swc before integrating. Ref: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="707312262" data-permission-text="Title is private" data-url="https://github.com/swc-project/swc/issues/1103" data-hovercard-type="issue" data-hovercard-url="/swc-project/swc/issues/1103/hovercard" href="https://github.com/swc-project/swc/issues/1103">swc-project/swc#1103</a></p> <p dir="auto">cc/ <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kdy1/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kdy1">@kdy1</a></p>
1
<p dir="auto">While reading the CRNN model from <a href="https://github.com/meijieru/crnn.pytorch">meijieru</a><br> in OpenCV, I got the following error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import cv2 net = cv2.dnn.readNetFromTorch(&quot;crnn.pth&quot;)"><pre class="notranslate"><code class="notranslate">import cv2 net = cv2.dnn.readNetFromTorch("crnn.pth") </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\dnn\src\torch\torch_importer.cpp:1022: error: (-213:The function/feature is not implemented) Unsupported Lua type in function 'cv::dnn::dnn4_v20191202::TorchImporter::readObject'"><pre class="notranslate"><code class="notranslate">error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\dnn\src\torch\torch_importer.cpp:1022: error: (-213:The function/feature is not implemented) Unsupported Lua type in function 'cv::dnn::dnn4_v20191202::TorchImporter::readObject' </code></pre></div> <p dir="auto"><a href="https://www.dropbox.com/s/dboqjk20qjkpta3/crnn.pth?dl=0" rel="nofollow">model link</a><br> How to fix this error?</p> <h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV = 4.2.0</li> <li>Operating System / Platform =&gt; Windows 64 Bit</li> </ul>
<p dir="auto">Is there any plan to add DepthwiseConvolution layer of caffeImporter into opencv?</p>
0
<p dir="auto">If you index the same percolator query twice without a <code class="notranslate">refresh</code> in between, then it will show up twice in the percolator results. Also, the percolator count API will return the wrong number of results (will return 2).</p> <p dir="auto">Here is a test case showing the issue (uses the Elasticsearch Ruby gem):<br> <a href="https://gist.github.com/cjbottaro/10920007">https://gist.github.com/cjbottaro/10920007</a></p>
<p dir="auto">Some of the nodenames in <a href="https://github.com/elasticsearch/elasticsearch/blob/master/src/main/resources/config/names.txt">names.txt</a> are not very name-like.</p> <p dir="auto">General problems:</p> <ul dir="auto"> <li>Weird capitalization conventions</li> <li>Lastname, Firstname formatting</li> <li>Duplicates</li> <li>General weirdness: "Cody Mushumanski gun Man aka: the hunter"</li> </ul>
0
<p dir="auto">It would be cool to be able to define a profile containing other different profiles that open up in a single tab an there in multiple panes (right / left etc.)</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/53915293/62897211-14c68300-bd53-11e9-8113-d4b52cea02d1.png"><img src="https://user-images.githubusercontent.com/53915293/62897211-14c68300-bd53-11e9-8113-d4b52cea02d1.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Would it be possible to release preview/Insider builds of Terminal in the Microsoft Store? Having to install 30 GB of C++/UWP tooling, followed by a compilation that takes up another 20 GB of storage, seems pretty excessive just to try out the terminal.</p> <p dir="auto">Or at a minimum, maybe release the binaries on GitHub with a PowerShell script to install Cascadia. Then, you'd be able to do nightly/weekly builds.</p>
0
<p dir="auto">Often you have files with the same names when searching, and you can easily see if you have the correct one based on the content, quicker than looking at the file path.</p> <p dir="auto">I suggest that the file is shown beneath the file quick picker.</p>
<p dir="auto">Support sublime-like preview mode when opening files from the tree view, fuzzy finder, find and replace, etc.</p> <p dir="auto">The main issue being tracked is here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="18326255" data-permission-text="Title is private" data-url="https://github.com/atom/tree-view/issues/3" data-hovercard-type="issue" data-hovercard-url="/atom/tree-view/issues/3/hovercard" href="https://github.com/atom/tree-view/issues/3">atom/tree-view#3</a></p>
1
<p dir="auto">I'm reporting here since f2py is part of numpy, but this is ONLY f2py-related!</p> <p dir="auto">As reported in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="476293623" data-permission-text="Title is private" data-url="https://github.com/GeoscienceAustralia/hiperseis/issues/121" data-hovercard-type="issue" data-hovercard-url="/GeoscienceAustralia/hiperseis/issues/121/hovercard" href="https://github.com/GeoscienceAustralia/hiperseis/issues/121">GeoscienceAustralia/hiperseis#121</a> f2py fails on<br> <a href="https://github.com/GeoscienceAustralia/ellip-corr/blob/master/ellip/ellipcorr.f">https://github.com/GeoscienceAustralia/ellip-corr/blob/master/ellip/ellipcorr.f</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Reading fortran codes... Reading file 'ellip-corr/ellip/ellipcorr.f' (format:fix,strict) Post-processing... Block: ellipcorr Block: ellipticity_corr {} In: :ellipcorr:ellip-corr/ellip/ellipcorr.f:phase_alias vars2fortran: No typespec for argument &quot;delta&quot;. {} In: :ellipcorr:ellip-corr/ellip/ellipcorr.f:phase_alias vars2fortran: No typespec for argument &quot;ip&quot;. Block: phase_alias Block: lnblk Post-processing (stage 2)... Building modules... Building module &quot;ellipcorr&quot;... Constructing wrapper function &quot;ellipticity_corr&quot;... tcor = ellipticity_corr(phase,edist,edepth,ecolat,azim) Constructing wrapper function &quot;phase_alias&quot;... phase_alias(phase,delta,ip) Creating wrapper for Fortran function &quot;lnblk&quot;(&quot;lnblk&quot;)... Constructing wrapper function &quot;lnblk&quot;... lnblk = lnblk(s) [..] analyzevars: character array &quot;character*8 phcod(57)&quot; is considered as &quot;character phcod(57,8)&quot;; &quot;intent(c)&quot; is forced."><pre class="notranslate"><code class="notranslate">Reading fortran codes... Reading file 'ellip-corr/ellip/ellipcorr.f' (format:fix,strict) Post-processing... Block: ellipcorr Block: ellipticity_corr {} In: :ellipcorr:ellip-corr/ellip/ellipcorr.f:phase_alias vars2fortran: No typespec for argument "delta". {} In: :ellipcorr:ellip-corr/ellip/ellipcorr.f:phase_alias vars2fortran: No typespec for argument "ip". Block: phase_alias Block: lnblk Post-processing (stage 2)... Building modules... Building module "ellipcorr"... Constructing wrapper function "ellipticity_corr"... tcor = ellipticity_corr(phase,edist,edepth,ecolat,azim) Constructing wrapper function "phase_alias"... phase_alias(phase,delta,ip) Creating wrapper for Fortran function "lnblk"("lnblk")... Constructing wrapper function "lnblk"... lnblk = lnblk(s) [..] analyzevars: character array "character*8 phcod(57)" is considered as "character phcod(57,8)"; "intent(c)" is forced. </code></pre></div> <p dir="auto">I would glad about any hint why this error occurs.</p>
<p dir="auto">in current devel version when a character variable is defined using the asterisk form</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="character*8 name"><pre class="notranslate"><code class="notranslate">character*8 name </code></pre></div> <p dir="auto">and I then use</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="common name(12)"><pre class="notranslate"><code class="notranslate">common name(12) </code></pre></div> <p dir="auto">I get an error message from f2py like</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="analyzevars: character array &quot;character*8 name(12)&quot; is considered as &quot;character name(12,8)&quot;; &quot;intent(c)&quot; is forced."><pre class="notranslate"><code class="notranslate">analyzevars: character array "character*8 name(12)" is considered as "character name(12,8)"; "intent(c)" is forced. </code></pre></div> <p dir="auto">if the first definition is changed to</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="character(8)"><pre class="notranslate"><code class="notranslate">character(8) </code></pre></div> <p dir="auto">then the error goes away.</p> <p dir="auto">The old behaviour that is consistent with FORTRAN should be restored.<br> Any suggestion on bug fix?</p>
1
<p dir="auto">A little background of what is happening:</p> <p dir="auto">Inventory:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[chroot] /tmp/tmpZhhROE/build ansible_connection=chroot"><pre class="notranslate"><code class="notranslate">[chroot] /tmp/tmpZhhROE/build ansible_connection=chroot </code></pre></div> <p dir="auto">Playbook:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="hosts: chroot tasks: - name: Copy image files to destination synchronize: src={{ app_image }}/ dest=/"><pre class="notranslate"><code class="notranslate">hosts: chroot tasks: - name: Copy image files to destination synchronize: src={{ app_image }}/ dest=/ </code></pre></div> <p dir="auto">Error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [Copy image files to destination] *************************************** failed: [/tmp/tmpZhhROE/build] =&gt; {&quot;cmd&quot;: &quot;rsync --delay-updates --compress -- timeout=10 --archive --rsh 'ssh -o StrictHostKeyChecking=no' --out- format='&lt;&lt;CHANGED&gt;&gt;%i %n%L' /root/stacks/test/stacker/image/ root@/tmp/tmpZhhROE/build:/&quot;, &quot;failed&quot;: true, &quot;item&quot;: &quot;&quot;, &quot;rc&quot;: 12} msg: rsync: mkdir &quot;/tmp/root@/tmp/tmpZhhROE/build:&quot; failed: No such file or directory (2) rsync error: error in file IO (code 11) at main.c(595) [Receiver=3.0.7] rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.7]"><pre class="notranslate"><code class="notranslate">TASK: [Copy image files to destination] *************************************** failed: [/tmp/tmpZhhROE/build] =&gt; {"cmd": "rsync --delay-updates --compress -- timeout=10 --archive --rsh 'ssh -o StrictHostKeyChecking=no' --out- format='&lt;&lt;CHANGED&gt;&gt;%i %n%L' /root/stacks/test/stacker/image/ root@/tmp/tmpZhhROE/build:/", "failed": true, "item": "", "rc": 12} msg: rsync: mkdir "/tmp/root@/tmp/tmpZhhROE/build:" failed: No such file or directory (2) rsync error: error in file IO (code 11) at main.c(595) [Receiver=3.0.7] rsync: connection unexpectedly closed (9 bytes received so far) [sender] rsync error: error in rsync protocol data stream (code 12) at io.c(601) [sender=3.0.7] </code></pre></div> <p dir="auto">Ansible wrongly generates the rsync command. The problematic part is destination - root@/tmp/tmpZhhROE/build:/</p> <p dir="auto">When dealing with chroot, there's no point to prepend a hoststring, local filesystem path would be enough.</p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">feature</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible --version git:aws ansible 2.3.1.0 config file = configured module search path = Default w/o overrides python version = 2.7.10 (default, Feb 7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]"><pre class="notranslate"><code class="notranslate">ansible --version git:aws ansible 2.3.1.0 config file = configured module search path = Default w/o overrides python version = 2.7.10 (default, Feb 7 2017, 00:08:15) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">AWS</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">How do we configure AWS new NLB? Do you have any documentation for this?</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Refer: <a href="http://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html" rel="nofollow">http://docs.aws.amazon.com/elasticloadbalancing/latest/network/introduction.html</a></p> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Ansible should provide a feature to create AWS NLB</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Ansible should provide a feature to create AWS NLB</p>
0
<p dir="auto">If one tries to use the string index syntax of the r_ object, and it crashes due to an error, it seems like it retains it internal state, making it behave inconsistently.<br> It can be made consistent again by simply resetting the internal state.</p> <p dir="auto">my version of numpy is <code class="notranslate">1.11.1</code>.<br> python is the version 3.4.3+<br> running on Linux Kubuntu 15.10<br> Kernel: 4.2.0-42-generic x86_64</p> <p dir="auto">the error can be replicated with this code</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# this works fine r_[1, 2] print(r_.axis) # 0 # this works fine, and the state is maintained r_['1', [[1, 2]]] print(r_.axis) # 0 # this crashes, and the state is modified try: r_['1', [1, 2]] except IndexError as e: print(e) # axis 1 out of bounds [0, 1) finally: print(r_.axis) # 1 # now this previously correct code crashes as well try: r_[1, 2] except IndexError as e: print(e) # axis 1 out of bounds [0, 1) # by resetting the wrong value it works again r_.axis = 0 r_[1, 2]"><pre class="notranslate"><code class="notranslate"># this works fine r_[1, 2] print(r_.axis) # 0 # this works fine, and the state is maintained r_['1', [[1, 2]]] print(r_.axis) # 0 # this crashes, and the state is modified try: r_['1', [1, 2]] except IndexError as e: print(e) # axis 1 out of bounds [0, 1) finally: print(r_.axis) # 1 # now this previously correct code crashes as well try: r_[1, 2] except IndexError as e: print(e) # axis 1 out of bounds [0, 1) # by resetting the wrong value it works again r_.axis = 0 r_[1, 2] </code></pre></div>
<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="from __future__ import print_function import numpy as np a = np.ones((3, 3, 3)) b = np.zeros((3, 3)) # Uncommenting this will make the below call to `np.r_` work. # try: # np.r_['2,3', a, b] # except ValueError: # print('failure') print(np.r_[a, b.reshape((3, 3, 1))])"><pre class="notranslate"><span class="pl-k">from</span> __future__ <span class="pl-k">import</span> <span class="pl-s1">print_function</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ones</span>((<span class="pl-c1">3</span>, <span class="pl-c1">3</span>, <span class="pl-c1">3</span>)) <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros</span>((<span class="pl-c1">3</span>, <span class="pl-c1">3</span>)) <span class="pl-c"># Uncommenting this will make the below call to `np.r_` work.</span> <span class="pl-c"># try:</span> <span class="pl-c"># np.r_['2,3', a, b]</span> <span class="pl-c"># except ValueError:</span> <span class="pl-c"># print('failure')</span> <span class="pl-en">print</span>(<span class="pl-s1">np</span>.<span class="pl-s1">r_</span>[<span class="pl-s1">a</span>, <span class="pl-s1">b</span>.<span class="pl-en">reshape</span>((<span class="pl-c1">3</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>))])</pre></div> <p dir="auto">This fails with:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Traceback (most recent call last): File &quot;test.py&quot;, line 13, in &lt;module&gt; print(numpy.r_[a, b.reshape((3, 3, 1))]) File &quot;/usr/local/lib/python2.7/dist-packages/numpy/lib/index_tricks.py&quot;, line 338, in __getitem__ res = _nx.concatenate(tuple(objs), axis=self.axis) ValueError: all the input array dimensions except for the concatenation axis must match exactly"><pre class="notranslate"><code class="notranslate"> Traceback (most recent call last): File "test.py", line 13, in &lt;module&gt; print(numpy.r_[a, b.reshape((3, 3, 1))]) File "/usr/local/lib/python2.7/dist-packages/numpy/lib/index_tricks.py", line 338, in __getitem__ res = _nx.concatenate(tuple(objs), axis=self.axis) ValueError: all the input array dimensions except for the concatenation axis must match exactly </code></pre></div> <p dir="auto">All right as the dimensions don't match indeed. However uncommenting the above <code class="notranslate">try/except</code> block will make the second call to <code class="notranslate">numpy.r_</code> work, just as it was <code class="notranslate">numpy.r_['2,3', a, b.reshape((3, 3, 1))]</code> instead (stacking along the last axis). So it seems that <code class="notranslate">numpy.r_</code> still has that string from the previous failing call cached and is using it for the second call.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="failure [[[ 1. 1. 1. 0.] [ 1. 1. 1. 0.] [ 1. 1. 1. 0.]] [[ 1. 1. 1. 0.] [ 1. 1. 1. 0.] [ 1. 1. 1. 0.]] [[ 1. 1. 1. 0.] [ 1. 1. 1. 0.] [ 1. 1. 1. 0.]]]"><pre class="notranslate"><code class="notranslate">failure [[[ 1. 1. 1. 0.] [ 1. 1. 1. 0.] [ 1. 1. 1. 0.]] [[ 1. 1. 1. 0.] [ 1. 1. 1. 0.] [ 1. 1. 1. 0.]] [[ 1. 1. 1. 0.] [ 1. 1. 1. 0.] [ 1. 1. 1. 0.]]] </code></pre></div> <p dir="auto">Tested on:</p> <ul dir="auto"> <li>Python 2.7.12 + numpy==1.12.0</li> <li>Python 3.5.2 + numpy==1.12.0</li> </ul>
1
<p dir="auto">here is the backtrace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FAIL: Doctest: scikits.learn.datasets.base.load_sample_image ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/home/fabian/lib/python2.7/doctest.py&quot;, line 2153, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for scikits.learn.datasets.base.load_sample_image File &quot;/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py&quot;, line 403, in load_sample_image ---------------------------------------------------------------------- File &quot;/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py&quot;, line 406, in scikits.learn.datasets.base.load_sample_image Failed example: china = load_sample_image('china.jpg') Exception raised: Traceback (most recent call last): File &quot;/home/fabian/lib/python2.7/doctest.py&quot;, line 1248, in __run compileflags, 1) in test.globs File &quot;&lt;doctest scikits.learn.datasets.base.load_sample_image[0]&gt;&quot;, line 1, in &lt;module&gt; china = load_sample_image('china.jpg') File &quot;/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py&quot;, line 418, in load_sample_image images = load_sample_images() File &quot;/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py&quot;, line 389, in load_sample_images raise ImportError(&quot;The Python Imaging Library (PIL)&quot; ImportError: The Python Imaging Library (PIL)is required to load data from jpeg files"><pre class="notranslate"><code class="notranslate">FAIL: Doctest: scikits.learn.datasets.base.load_sample_image ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/fabian/lib/python2.7/doctest.py", line 2153, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for scikits.learn.datasets.base.load_sample_image File "/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py", line 403, in load_sample_image ---------------------------------------------------------------------- File "/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py", line 406, in scikits.learn.datasets.base.load_sample_image Failed example: china = load_sample_image('china.jpg') Exception raised: Traceback (most recent call last): File "/home/fabian/lib/python2.7/doctest.py", line 1248, in __run compileflags, 1) in test.globs File "&lt;doctest scikits.learn.datasets.base.load_sample_image[0]&gt;", line 1, in &lt;module&gt; china = load_sample_image('china.jpg') File "/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py", line 418, in load_sample_image images = load_sample_images() File "/home/fabian/dev/scikit-learn/scikits/learn/datasets/base.py", line 389, in load_sample_images raise ImportError("The Python Imaging Library (PIL)" ImportError: The Python Imaging Library (PIL)is required to load data from jpeg files </code></pre></div>
<h4 dir="auto">Description</h4> <p dir="auto">Calculating recall using micro-averaging needs to be optimized for large scale dense arrays.</p> <h4 dir="auto">Steps/Code to Reproduce</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.metrics import recall_score recall = recall_score(actual, predictions, average='micro')"><pre class="notranslate"><code class="notranslate">from sklearn.metrics import recall_score recall = recall_score(actual, predictions, average='micro') </code></pre></div> <h4 dir="auto">Versions</h4> <p dir="auto">Darwin-15.5.0-x86_64-i386-64bit<br> Python 3.5.2 |Anaconda custom (x86_64)| (default, Jul 2 2016, 17:52:12)<br> [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)]<br> NumPy 1.11.1<br> SciPy 0.18.1</p>
0
<p dir="auto">Listening to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nycdotnet/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nycdotnet">@nycdotnet</a> has me fired up to tackle this one. Thanks, Steve. (btw, you can check out his good interview here: <a href="http://www.dotnetrocks.com/default.aspx?showNum=1149" rel="nofollow">http://www.dotnetrocks.com/default.aspx?showNum=1149</a>)</p> <p dir="auto">The proposal here was first started in times prehistoric (even before <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="37903783" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/11" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/11/hovercard" href="https://github.com/microsoft/TypeScript/issues/11">#11</a>), when dinosaurs walked the scorched earth. While nothing in this proposal is novel, per se, I believe it's high time we tackled the issue. Steve's own proposal is <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="85547804" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/3394" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/3394/hovercard" href="https://github.com/microsoft/TypeScript/issues/3394">#3394</a>.</p> <h1 dir="auto">The Problem</h1> <p dir="auto">Currently, in TypeScript, it's rather easy to start and get going, and we're making it easier with each day (with the help of things like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="60991541" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/2338" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/2338/hovercard" href="https://github.com/microsoft/TypeScript/issues/2338">#2338</a> and the work on System.js). This is wonderful. But there is a bit of a hurdle as project size grows. We currently have a mental model that goes something like this:</p> <ul dir="auto"> <li>Small-sized projects: use tsconfig.json, keep most of your source in the current directory</li> <li>Large-sized projects: use custom builds, put source where you need it</li> </ul> <p dir="auto">For small-sized projects, tsconfig.json gives you an easy-to-setup way of getting going with any of the editors in a cross platform way. For large-scale projects, you will likely end up switching to build systems because of the varied requirements of large-scale projects, and the end result will be something that works for your scenarios but is difficult to tool because it's far too difficult to tool the variety of build systems and options.</p> <p dir="auto">Steve, in his interview, points out that this isn't quite the right model of the world, and I tend to agree with him. Instead, there are three sizes of project:</p> <ul dir="auto"> <li>Small-sized projects: use tsconfig.json, keep most of your source in the current directory</li> <li>Medium-sized projects: those with standard builds and shared components</li> <li>Large-sized projects: use custom builds, put source where you need it</li> </ul> <p dir="auto">As you scale in size of project, Steve argues, you need to be able to scale through the medium step, or tool support falls off too quickly.</p> <h1 dir="auto">Proposal</h1> <p dir="auto">To solve this, I propose we support "medium-sized" projects. These projects have standard build steps that could be described in tsconfig.json today, with the exception that the project is built from multiple components. The hypothesis here is that there are quite a number of projects at this level that could be well-served by this support.</p> <h2 dir="auto">Goals</h2> <p dir="auto">Provide an easy-to-use experience for developers creating "medium-sized" projects for both command-line compilation and when working with these projects in an IDE.</p> <h2 dir="auto">Non-goals</h2> <p dir="auto">This proposal does <em>not</em> include optional compilation, or any steps outside of what the compiler handles today. This proposal also does not cover bundling or packaging, which will be handled in a separate proposal. In short, as mentioned in the name, this proposal covers only the 'medium-sized' projects and not the needs of those at large scales.</p> <h2 dir="auto">Design</h2> <p dir="auto">To support medium-sized projects, we focus on the use case of one tsconfig.json referencing another.</p> <p dir="auto">Example <a href="https://github.com/Microsoft/TypeScript/wiki/tsconfig.json">tsconfig.json</a> of today:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;module&quot;: &quot;commonjs&quot;, &quot;noImplicitAny&quot;: true, &quot;sourceMap&quot;: true }, &quot;files&quot;: [ &quot;core.ts&quot;, &quot;sys.ts&quot; ] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"compilerOptions"</span>: <span class="pl-kos">{</span> <span class="pl-s">"module"</span>: <span class="pl-s">"commonjs"</span><span class="pl-kos">,</span> <span class="pl-s">"noImplicitAny"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-s">"sourceMap"</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"files"</span>: <span class="pl-kos">[</span> <span class="pl-s">"core.ts"</span><span class="pl-kos">,</span> <span class="pl-s">"sys.ts"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Proposed tsconfig.json 'dependencies' section:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;module&quot;: &quot;commonjs&quot;, &quot;noImplicitAny&quot;: true, &quot;sourceMap&quot;: true }, &quot;dependencies&quot;: [ &quot;../common&quot;, &quot;../util&quot; ], &quot;files&quot;: [ &quot;core.ts&quot;, &quot;sys.ts&quot; ] }"><pre class="notranslate"><span class="pl-kos">{</span> <span class="pl-s">"compilerOptions"</span>: <span class="pl-kos">{</span> <span class="pl-s">"module"</span>: <span class="pl-s">"commonjs"</span><span class="pl-kos">,</span> <span class="pl-s">"noImplicitAny"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-s">"sourceMap"</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s">"dependencies"</span>: <span class="pl-kos">[</span> <span class="pl-s">"../common"</span><span class="pl-kos">,</span> <span class="pl-s">"../util"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">"files"</span>: <span class="pl-kos">[</span> <span class="pl-s">"core.ts"</span><span class="pl-kos">,</span> <span class="pl-s">"sys.ts"</span> <span class="pl-kos">]</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Dependencies point to either:</p> <ul dir="auto"> <li>A directory, where a tsconfig.json can be found</li> <li>A tsconfig.json directly</li> </ul> <p dir="auto">Dependencies are hierarchical. To edit the full project, you need to open the correct directory that contains the root tsconfig.json. This implies that dependencies can't be cyclic. While it may be possible to handle cyclic dependencies in some cases, other cases, namely those with types that have circular dependencies, it may not be possible to do a full resolution.</p> <h1 dir="auto">How it works</h1> <p dir="auto">Dependencies are built first, in the order they are listed in the 'dependencies' section. If a dependency fails to build, the compiler will exit with an error and not continue to build the rest of the project.</p> <p dir="auto">As each dependency completes, a '.d.ts' file representing the outputs is made available to the current build. Once all dependencies complete, the current project is built.</p> <p dir="auto">If the user specifies a subdirectory as a dependency, and also implies its compilation by not providing a 'files' section, the dependency is compiled during dependency compilation and is also removed from the compilation of the current project.</p> <p dir="auto">The language service can see into each dependency. Because each dependency will be driven off its own tsconfig.json, this may mean that multiple language service instances would need to be created. The end result would be a coordinated language service that was capable of refactoring, code navigation, find all references, etc across dependencies.</p> <h1 dir="auto">Limitations</h1> <p dir="auto">Adding a directory as a dependency that has no tsconfig.json is considered an error.</p> <p dir="auto">Outputs of dependencies are assumed to be self-contained and separate from the current project. This implies that you can't concatenate the output .js of a dependency with the current project via tsconfig.json. External tools, of course, can provide this functionality.</p> <p dir="auto">As mentioned earlier, circular dependencies are considered an error. In the simple case:</p> <p dir="auto">A - B<br> \ C</p> <p dir="auto">A is the 'current project' and depends on two dependencies: B and C. If B and C do not themselves have dependencies, this case is trivial. If C depends on B, B is made available to C. This is not considered to be circular. If, however, B depends on A, this is considered circular and would be an error.</p> <p dir="auto">If, in the example, B depends on C and C is self-contained, this would not be considered a cycle. In this case, the compilation order would be C, B, A, which follows the logic we have for ///ref.</p> <h1 dir="auto">Optional optimizations/improvements</h1> <p dir="auto">If a dependency does not to be rebuilt, then its build step is skipped and the '.d.ts' representation from the previous build is reused. This could be extended to handle if the compilation of a dependencies has built dependencies that will show up later in the 'dependencies' list of the current project (as happened in the example given in the Limitations section).</p> <p dir="auto">Rather than treating directories passed as dependencies that do not have a tsconfig.json as error cases, we could optionally apply default 'files' and the settings of the current project to that dependency.</p>
<p dir="auto">Given the following code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var nums: number[] = []; class Class { invoke(s: string) { } } interface Invokable&lt;T&gt; { invoke(arg: T): void; } function fn&lt;T&gt;(arrayFn: () =&gt; T[], inv: Invokable&lt;T&gt;) { } fn(() =&gt; nums, new Class()); // No error?"><pre class="notranslate"><code class="notranslate">var nums: number[] = []; class Class { invoke(s: string) { } } interface Invokable&lt;T&gt; { invoke(arg: T): void; } function fn&lt;T&gt;(arrayFn: () =&gt; T[], inv: Invokable&lt;T&gt;) { } fn(() =&gt; nums, new Class()); // No error? </code></pre></div> <p dir="auto">There should be an error on the last line, because nums is a number[] and the invoke method of Class takes a string.</p> <p dir="auto">If the signature of fn() is changed to accept an array directly rather than a function that returns an array, an error is generated as expected:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function fn&lt;T&gt;(array: T[], inv: Invokable&lt;T&gt;) { } fn(nums, new Class()); // Error"><pre class="notranslate"><code class="notranslate">function fn&lt;T&gt;(array: T[], inv: Invokable&lt;T&gt;) { } fn(nums, new Class()); // Error </code></pre></div> <p dir="auto">I searched and couldn't find a duplicate.<br> Behavior can be seen via the TypeScript playground.<br> I do not know if this has already been fixed in the latest.</p>
0
<p dir="auto">Axios shows err_empty_response at 2:01 min. I used the timeout. But it's not working.</p> <p dir="auto"><strong>This is my axios code.</strong></p> <p dir="auto">export const createNetwork = networkData =&gt; dispatch =&gt; {<br> axios({<br> method: "post",<br> url: "/createNetworks",<br> timeout: 1000 * 3 * 60, // Wait for 5 seconds<br> headers: {<br> "Content-Type": "application/json"<br> },<br> data: {<br> id: 1234<br> }<br> })<br> .then(res =&gt; {<br> console.log(res.data);<br> })<br> .catch(err =&gt; {<br> console.log(err);<br> });<br> };</p> <p dir="auto"><strong>server code</strong><br> <code class="notranslate">let server = app.listen(port, err =&gt; { if (err) throw err; console.log(</code>Server is running in port ${port}<code class="notranslate">); });</code></p> <p dir="auto">server.timeout = 5 * 60 * 1000;</p> <p dir="auto"><strong>This is my route</strong></p> <p dir="auto">app.post("/createNetworks",(req,res)=&gt;{<br> setTimeout(function(){ res.json({status:true,message:"It's working"}) }, 3000);<br> })</p>
<h4 dir="auto">Instructions</h4> <p dir="auto">Please read and follow the instructions before submitting an issue:</p> <ul dir="auto"> <li>Read all our documentation, especially the <a href="https://github.com/axios/axios/blob/master/README.md">README</a>. It may contain information that helps you solve your issue.</li> <li>Ensure your issue isn't already <a href="https://github.com/axios/axios/issues?utf8=%E2%9C%93&amp;q=is%3Aissue">reported</a>.</li> <li>If you aren't sure that the issue is caused by axios or you just need help, please use <a href="https://stackoverflow.com/questions/tagged/axios" rel="nofollow">Stack Overflow</a> or <a href="https://gitter.im/mzabriskie/axios" rel="nofollow">our chat</a>.</li> <li>If you're reporting a bug, ensure it isn't already fixed in the latest axios version.</li> <li>If you need a new feature there's a chance it's already implemented in a <a href="https://github.com/axios/axios/blob/master/ECOSYSTEM.md">library</a> or you can implement it using <a href="https://github.com/axios/axios#interceptors">interceptors</a>.</li> </ul> <p dir="auto"><strong><g-emoji class="g-emoji" alias="warning">⚠️</g-emoji>👆 Delete the instructions before submitting the issue 👆<g-emoji class="g-emoji" alias="warning">⚠️</g-emoji></strong></p> <h4 dir="auto">Summary</h4> <p dir="auto">Describe your issue here, including as much detail as necessary.</p> <p dir="auto">If you're reporting a bug, include the relevant code and stack traces to debug it (removing any private information).</p> <p dir="auto">If you're requesting a feature, include some context and examples of code using it.</p> <h4 dir="auto">Context</h4> <ul dir="auto"> <li>axios version: <em>e.g.: v0.16.0</em></li> <li>Environment: <em>e.g.: node v6.9.4, chrome 54, windows 7</em></li> </ul>
1
<p dir="auto">The location of apiserver auth certs and keys and the kube-apiserver SSH keys are inconsistent between Debian and GCI. This means that master upgrades from Debian to GCI are broken.</p> <p dir="auto">In Debian, Salt puts these files in <code class="notranslate">master-pd/srv/kubernetes</code> (via <code class="notranslate">/srv/salt-overlay/salt/kube-apiserver/basic_auth.csv</code> and <code class="notranslate">/srv/kubernetes/basic_auth.csv</code>, see <a href="https://github.com/kubernetes/kubernetes/blob/1ef19062096c4fcf8ddeaf3a46731d9f262a0c04/cluster/gce/configure-vm.sh">configure-vm.sh</a> and <a href="https://github.com/kubernetes/kubernetes/blob/1ef19062096c4fcf8ddeaf3a46731d9f262a0c04/cluster/saltbase/salt/kube-apiserver/init.sls">init.sls</a>), whereas GCI expects it in <code class="notranslate">master-pd/etc/srv/kubernetes</code> (see <a href="https://github.com/kubernetes/kubernetes/blob/1ef19062096c4fcf8ddeaf3a46731d9f262a0c04/cluster/gce/gci/configure-helper.sh">configure-helper.sh</a>, originally introduced in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="130540525" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/20463" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/20463/hovercard" href="https://github.com/kubernetes/kubernetes/pull/20463">#20463</a>).</p> <p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikedanese/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikedanese">@mikedanese</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/adityakali/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/adityakali">@adityakali</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/andyzheng0831/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/andyzheng0831">@andyzheng0831</a></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ kubectl run -it --image=busybox --restart=Never false /bin/false"><pre class="notranslate">$ kubectl run -it --image=busybox --restart=Never <span class="pl-c1">false</span> /bin/false</pre></div> <p dir="auto">I expect this to run the /bin/false once. Instead a job is created which restarts <code class="notranslate">/bin/false</code> until it succeeds (which it never does).</p> <p dir="auto">This way it is impossible to create real one-off tasks with <code class="notranslate">kubectl run</code>.</p>
0
<h3 dir="auto">Which version of ShardingSphere did you use?</h3> <p dir="auto">v4.1.1</p> <h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3> <p dir="auto">jdbc</p> <h3 dir="auto">Expected behavior</h3> <h3 dir="auto">Actual behavior</h3> <p dir="auto">throws exception</p> <h3 dir="auto">Reason analyze (If you can)</h3> <h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3> <p dir="auto">If I package the program to jar and run the jar file, I'll get</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception in thread &quot;main&quot; java.lang.UnsupportedOperationException: Cannot support database type 'MySQL' at org.apache.shardingsphere.sql.parser.core.parser.SQLParserFactory.newInstance(SQLParserFactory.java:55) at org.apache.shardingsphere.sql.parser.core.parser.SQLParserExecutor.towPhaseParse(SQLParserExecutor.java:55) at org.apache.shardingsphere.sql.parser.core.parser.SQLParserExecutor.execute(SQLParserExecutor.java:47) at org.apache.shardingsphere.sql.parser.SQLParserEngine.parse0(SQLParserEngine.java:79) at org.apache.shardingsphere.sql.parser.SQLParserEngine.parse(SQLParserEngine.java:61) at org.apache.shardingsphere.underlying.route.DataNodeRouter.createRouteContext(DataNodeRouter.java:97) at org.apache.shardingsphere.underlying.route.DataNodeRouter.executeRoute(DataNodeRouter.java:89) at org.apache.shardingsphere.underlying.route.DataNodeRouter.route(DataNodeRouter.java:76) at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.MasterSlaveStatement.execute(MasterSlaveStatement.java:161) at com.test.TestMain.main(TestMain.java:50) # code --- start File yamlFile = new File(args[0]); DataSource ds = YamlMasterSlaveDataSourceFactory.createDataSource(yamlFile); Connection conn = ds.getConnection(&quot;proxy&quot;, &quot;p123456&quot;); Statement stmt = conn.createStatement() stmt.execute(&quot;truncate table jmeter_test&quot;); for ... { stmt.execute(&quot;insert into jmeter_test values (null, now(), now(), now(), now(), &quot; + &quot;now(), now(), now(), now(), now(), &quot; + &quot;now(), now(), now(), now(), now(), &quot; + &quot;now(), now(), now(), now(), now(), &quot; + &quot;now(), now(), now(), now(), now(), &quot; + &quot;now(), unix_timestamp(), unix_timestamp(), unix_timestamp(), unix_timestamp())&quot;); } ... # code --- end # config-master_slave.yaml --- start dataSources: # 配置第 1 个数据源 ds_master: !!com.alibaba.druid.pool.DruidDataSource driverClassName: com.mysql.jdbc.Driver url: jdbc:mysql://192.168.252.246:3306/proxy?serverTimezone=UTC&amp;useSSL=false username: proxy password: p123456 initialSize: 10 #连接池初始化连接数 minIdle: 10 #连接池最小连接数 maxActive: 10 #连接池最大连接数 # 配置第 2 个数据源 ds_slave0: !!com.alibaba.druid.pool.DruidDataSource #!!org.apache.commons.dbcp2.BasicDataSource #!!com.zaxxer.hikari.HikariDataSource #!!com.alibaba.druid.pool.DruidDataSource driverClassName: com.mysql.jdbc.Driver url: jdbc:mysql://192.168.252.237:3306/proxy?serverTimezone=UTC&amp;useSSL=false username: proxy password: p123456 initialSize: 10 #连接池初始化连接数 minIdle: 10 #连接池最小连接数 maxActive: 10 #连接池最大连接数 masterSlaveRule: name: ds_ms masterDataSourceName: ds_master slaveDataSourceNames: [ds_slave0] # config-master_slave.yaml --- end"><pre class="notranslate"><code class="notranslate">Exception in thread "main" java.lang.UnsupportedOperationException: Cannot support database type 'MySQL' at org.apache.shardingsphere.sql.parser.core.parser.SQLParserFactory.newInstance(SQLParserFactory.java:55) at org.apache.shardingsphere.sql.parser.core.parser.SQLParserExecutor.towPhaseParse(SQLParserExecutor.java:55) at org.apache.shardingsphere.sql.parser.core.parser.SQLParserExecutor.execute(SQLParserExecutor.java:47) at org.apache.shardingsphere.sql.parser.SQLParserEngine.parse0(SQLParserEngine.java:79) at org.apache.shardingsphere.sql.parser.SQLParserEngine.parse(SQLParserEngine.java:61) at org.apache.shardingsphere.underlying.route.DataNodeRouter.createRouteContext(DataNodeRouter.java:97) at org.apache.shardingsphere.underlying.route.DataNodeRouter.executeRoute(DataNodeRouter.java:89) at org.apache.shardingsphere.underlying.route.DataNodeRouter.route(DataNodeRouter.java:76) at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.MasterSlaveStatement.execute(MasterSlaveStatement.java:161) at com.test.TestMain.main(TestMain.java:50) # code --- start File yamlFile = new File(args[0]); DataSource ds = YamlMasterSlaveDataSourceFactory.createDataSource(yamlFile); Connection conn = ds.getConnection("proxy", "p123456"); Statement stmt = conn.createStatement() stmt.execute("truncate table jmeter_test"); for ... { stmt.execute("insert into jmeter_test values (null, now(), now(), now(), now(), " + "now(), now(), now(), now(), now(), " + "now(), now(), now(), now(), now(), " + "now(), now(), now(), now(), now(), " + "now(), now(), now(), now(), now(), " + "now(), unix_timestamp(), unix_timestamp(), unix_timestamp(), unix_timestamp())"); } ... # code --- end # config-master_slave.yaml --- start dataSources: # 配置第 1 个数据源 ds_master: !!com.alibaba.druid.pool.DruidDataSource driverClassName: com.mysql.jdbc.Driver url: jdbc:mysql://192.168.252.246:3306/proxy?serverTimezone=UTC&amp;useSSL=false username: proxy password: p123456 initialSize: 10 #连接池初始化连接数 minIdle: 10 #连接池最小连接数 maxActive: 10 #连接池最大连接数 # 配置第 2 个数据源 ds_slave0: !!com.alibaba.druid.pool.DruidDataSource #!!org.apache.commons.dbcp2.BasicDataSource #!!com.zaxxer.hikari.HikariDataSource #!!com.alibaba.druid.pool.DruidDataSource driverClassName: com.mysql.jdbc.Driver url: jdbc:mysql://192.168.252.237:3306/proxy?serverTimezone=UTC&amp;useSSL=false username: proxy password: p123456 initialSize: 10 #连接池初始化连接数 minIdle: 10 #连接池最小连接数 maxActive: 10 #连接池最大连接数 masterSlaveRule: name: ds_ms masterDataSourceName: ds_master slaveDataSourceNames: [ds_slave0] # config-master_slave.yaml --- end </code></pre></div> <h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<h2 dir="auto">Feature Request</h2> <h3 dir="auto">Describe the feature you would like.</h3> <p dir="auto">Handle Transaction Failed.</p> <h3 dir="auto">Is your feature request related to a problem?</h3> <p dir="auto">I was testing PostgreSQL Proxy with sysbench. FATAL occurred and the JDBC connection became unavailable because transaction failed and <code class="notranslate">autosave</code> was the default value <code class="notranslate">never</code>.</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="sysbench oltp_write_only --db-driver=pgsql --pgsql-host=${PROXY_HOST} --pgsql-port=${PROXY_PORT} --pgsql-user=root --pgsql-password='root' --pgsql-db=sbtest --tables=2 --table-size=10000 --report-interval=5 --time=30 --threads=8 --max-requests=0 --percentile=99 --range_selects=off --rand-type=uniform --auto_inc=off run | tee oltp_write_only.master.txt"><pre class="notranslate">sysbench oltp_write_only --db-driver=pgsql --pgsql-host=<span class="pl-smi">${PROXY_HOST}</span> --pgsql-port=<span class="pl-smi">${PROXY_PORT}</span> --pgsql-user=root --pgsql-password=<span class="pl-s"><span class="pl-pds">'</span>root<span class="pl-pds">'</span></span> --pgsql-db=sbtest --tables=2 --table-size=10000 --report-interval=5 --time=30 --threads=8 --max-requests=0 --percentile=99 --range_selects=off --rand-type=uniform --auto_inc=off run <span class="pl-k">|</span> tee oltp_write_only.master.txt</pre></div> <h3 dir="auto">sysbench log</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="sysbench 1.0.20 (using bundled LuaJIT 2.1.0-beta2) Running the test with following options: Number of threads: 8 Report intermediate results every 5 second(s) Initializing random number generator from current time Initializing worker threads... Threads started! FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block"><pre class="notranslate"><code class="notranslate">sysbench 1.0.20 (using bundled LuaJIT 2.1.0-beta2) Running the test with following options: Number of threads: 8 Report intermediate results every 5 second(s) Initializing random number generator from current time Initializing worker threads... Threads started! FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block FATAL: PQexecPrepared() failed: 7 current transaction is aborted, commands ignored until end of transaction block FATAL: `thread_run' function failed: /usr/share/sysbench/oltp_common.lua:405: SQL error, errno = 0, state = '25P02': current transaction is aborted, commands ignored until end of transaction block </code></pre></div> <h3 dir="auto">Proxy Log</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ERROR] 23:46:44.910 [pool-19-thread-1] o.a.s.p.f.c.CommandExecutorTask - Exception occur: org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308) at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441) at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365) at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:143) at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:132) at com.zaxxer.hikari.pool.ProxyPreparedStatement.execute(ProxyPreparedStatement.java:44) at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.execute(HikariProxyPreparedStatement.java) at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.impl.ProxyPreparedStatementExecutorCallback.execute(ProxyPreparedStatementExecutorCallback.java:41) at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.ProxyJDBCExecutorCallback.executeSQL(ProxyJDBCExecutorCallback.java:73) at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.ProxyJDBCExecutorCallback.executeSQL(ProxyJDBCExecutorCallback.java:66) at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.ProxyJDBCExecutorCallback.executeSQL(ProxyJDBCExecutorCallback.java:44) at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:85) at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:64) at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.syncExecute(ExecutorEngine.java:101) at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.parallelExecute(ExecutorEngine.java:97) at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.execute(ExecutorEngine.java:82) at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutor.execute(JDBCExecutor.java:65) at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.ProxyJDBCExecutor.execute(ProxyJDBCExecutor.java:63) at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.useDriverToExecute(ProxySQLExecutor.java:163) at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.execute(ProxySQLExecutor.java:123) at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.execute(ProxySQLExecutor.java:112) at org.apache.shardingsphere.proxy.backend.communication.ProxyLockEngine.doExecute(ProxyLockEngine.java:103) at org.apache.shardingsphere.proxy.backend.communication.ProxyLockEngine.execute(ProxyLockEngine.java:81) at org.apache.shardingsphere.proxy.backend.communication.DatabaseCommunicationEngine.execute(DatabaseCommunicationEngine.java:98) at org.apache.shardingsphere.proxy.frontend.postgresql.command.query.binary.bind.PostgreSQLComBindExecutor.execute(PostgreSQLComBindExecutor.java:88) at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:94) at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:71) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint &quot;sbtest1_6_pkey&quot; Detail: Key (id)=(9166) already exists. ... 32 common frames omitted"><pre class="notranslate"><code class="notranslate">[ERROR] 23:46:44.910 [pool-19-thread-1] o.a.s.p.f.c.CommandExecutorTask - Exception occur: org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2440) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2183) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:308) at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:441) at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:365) at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:143) at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:132) at com.zaxxer.hikari.pool.ProxyPreparedStatement.execute(ProxyPreparedStatement.java:44) at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.execute(HikariProxyPreparedStatement.java) at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.impl.ProxyPreparedStatementExecutorCallback.execute(ProxyPreparedStatementExecutorCallback.java:41) at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.ProxyJDBCExecutorCallback.executeSQL(ProxyJDBCExecutorCallback.java:73) at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.ProxyJDBCExecutorCallback.executeSQL(ProxyJDBCExecutorCallback.java:66) at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.callback.ProxyJDBCExecutorCallback.executeSQL(ProxyJDBCExecutorCallback.java:44) at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:85) at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback.execute(JDBCExecutorCallback.java:64) at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.syncExecute(ExecutorEngine.java:101) at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.parallelExecute(ExecutorEngine.java:97) at org.apache.shardingsphere.infra.executor.kernel.ExecutorEngine.execute(ExecutorEngine.java:82) at org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutor.execute(JDBCExecutor.java:65) at org.apache.shardingsphere.proxy.backend.communication.jdbc.executor.ProxyJDBCExecutor.execute(ProxyJDBCExecutor.java:63) at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.useDriverToExecute(ProxySQLExecutor.java:163) at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.execute(ProxySQLExecutor.java:123) at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.execute(ProxySQLExecutor.java:112) at org.apache.shardingsphere.proxy.backend.communication.ProxyLockEngine.doExecute(ProxyLockEngine.java:103) at org.apache.shardingsphere.proxy.backend.communication.ProxyLockEngine.execute(ProxyLockEngine.java:81) at org.apache.shardingsphere.proxy.backend.communication.DatabaseCommunicationEngine.execute(DatabaseCommunicationEngine.java:98) at org.apache.shardingsphere.proxy.frontend.postgresql.command.query.binary.bind.PostgreSQLComBindExecutor.execute(PostgreSQLComBindExecutor.java:88) at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:94) at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:71) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "sbtest1_6_pkey" Detail: Key (id)=(9166) already exists. ... 32 common frames omitted </code></pre></div>
0
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-reboot-release-1.4/850/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-reboot-release-1.4/850/</a></p> <p dir="auto">Failed: [k8s.io] Reboot [Disruptive] [Feature:Reboot] each node by ordering unclean reboot and ensure they function upon restart {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/framework/framework.go:134 Oct 21 08:36:33.173: Couldn't delete ns: &quot;e2e-tests-reboot-h3vjy&quot;: an error on the server (&quot;Internal Server Error: \&quot;/api\&quot;&quot;) has prevented the request from succeeding (&amp;errors.StatusError{ErrStatus:unversioned.Status{TypeMeta:unversioned.TypeMeta{Kind:&quot;&quot;, APIVersion:&quot;&quot;}, ListMeta:unversioned.ListMeta{SelfLink:&quot;&quot;, ResourceVersion:&quot;&quot;}, Status:&quot;Failure&quot;, Message:&quot;an error on the server (\&quot;Internal Server Error: \\\&quot;/api\\\&quot;\&quot;) has prevented the request from succeeding&quot;, Reason:&quot;InternalError&quot;, Details:(*unversioned.StatusDetails)(0xc820cce000), Code:500}}) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:338"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:134 Oct 21 08:36:33.173: Couldn't delete ns: "e2e-tests-reboot-h3vjy": an error on the server ("Internal Server Error: \"/api\"") has prevented the request from succeeding (&amp;errors.StatusError{ErrStatus:unversioned.Status{TypeMeta:unversioned.TypeMeta{Kind:"", APIVersion:""}, ListMeta:unversioned.ListMeta{SelfLink:"", ResourceVersion:""}, Status:"Failure", Message:"an error on the server (\"Internal Server Error: \\\"/api\\\"\") has prevented the request from succeeding", Reason:"InternalError", Details:(*unversioned.StatusDetails)(0xc820cce000), Code:500}}) /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:338 </code></pre></div>
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-reboot-release-1.4/356/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gci-gke-reboot-release-1.4/356/</a></p> <p dir="auto">Failed: [k8s.io] Reboot [Disruptive] [Feature:Reboot] each node by ordering unclean reboot and ensure they function upon restart {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/reboot.go:98 Oct 1 04:43:30.313: Test failed; at least one node failed to reboot in the time given. /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/reboot.go:158"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/reboot.go:98 Oct 1 04:43:30.313: Test failed; at least one node failed to reboot in the time given. /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/reboot.go:158 </code></pre></div>
1
<p dir="auto">I'm trying to have <code class="notranslate">std</code> imported conditionally for testing only, as I use <code class="notranslate">core</code> in my OS kernel, and found this issue. This code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#![feature(core)] #![feature(no_std)] #![no_std] extern crate std; extern crate core; #[derive(Copy)] pub enum Kind { None = 0, Reserved = 1, }"><pre class="notranslate"><code class="notranslate">#![feature(core)] #![feature(no_std)] #![no_std] extern crate std; extern crate core; #[derive(Copy)] pub enum Kind { None = 0, Reserved = 1, } </code></pre></div> <p dir="auto">With this <code class="notranslate">Cargo.toml</code> (where <code class="notranslate">../lib/libcore</code> is from the exact same commit as the compiler):</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[package] name = &quot;example&quot; version = &quot;0.0.1&quot; authors = [&quot;Virtlink &lt;[email protected]&gt;&quot;] [dependencies.core] path = &quot;../lib/libcore&quot;"><pre class="notranslate"><code class="notranslate">[package] name = "example" version = "0.0.1" authors = ["Virtlink &lt;[email protected]&gt;"] [dependencies.core] path = "../lib/libcore" </code></pre></div> <p dir="auto">Gives me these errors:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Compiling example v0.0.1 (file:///home/virtlink/projects/example) src/lib.rs:1:1: 1:1 error: duplicate entry for `const_ptr` [E0152] src/lib.rs:1 #![feature(core)] ^ src/lib.rs:1:1: 1:1 error: duplicate entry for `mut_ptr` [E0152] src/lib.rs:1 #![feature(core)] ^ src/lib.rs:1:1: 1:1 error: duplicate entry for `i8` [E0152] src/lib.rs:1 #![feature(core)] ^ ... src/lib.rs:1:1: 1:1 error: duplicate entry for `non_zero` [E0152] src/lib.rs:1 #![feature(core)] ^ src/lib.rs:1:1: 1:1 error: duplicate entry for `debug_trait` [E0152] src/lib.rs:1 #![feature(core)] ^ error: aborting due to 58 previous errors Could not compile `example`."><pre class="notranslate"><code class="notranslate"> Compiling example v0.0.1 (file:///home/virtlink/projects/example) src/lib.rs:1:1: 1:1 error: duplicate entry for `const_ptr` [E0152] src/lib.rs:1 #![feature(core)] ^ src/lib.rs:1:1: 1:1 error: duplicate entry for `mut_ptr` [E0152] src/lib.rs:1 #![feature(core)] ^ src/lib.rs:1:1: 1:1 error: duplicate entry for `i8` [E0152] src/lib.rs:1 #![feature(core)] ^ ... src/lib.rs:1:1: 1:1 error: duplicate entry for `non_zero` [E0152] src/lib.rs:1 #![feature(core)] ^ src/lib.rs:1:1: 1:1 error: duplicate entry for `debug_trait` [E0152] src/lib.rs:1 #![feature(core)] ^ error: aborting due to 58 previous errors Could not compile `example`. </code></pre></div> <p dir="auto">However, if I remove the local <code class="notranslate">libcore</code> dependency from <code class="notranslate">Cargo.toml</code> then it works fine:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[package] name = &quot;example&quot; version = &quot;0.0.1&quot; authors = [&quot;Virtlink &lt;[email protected]&gt;&quot;]"><pre class="notranslate"><code class="notranslate">[package] name = "example" version = "0.0.1" authors = ["Virtlink &lt;[email protected]&gt;"] </code></pre></div> <p dir="auto">I expected there to be no difference between using a local copy of <code class="notranslate">core</code> and using the built-in <code class="notranslate">core</code>.</p> <p dir="auto">I can't remove <code class="notranslate">extern crate core</code>, due to issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="66024897" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/23982" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/23982/hovercard" href="https://github.com/rust-lang/rust/issues/23982">#23982</a>, and I <a href="http://stackoverflow.com/q/28031806" rel="nofollow">can't use the built-in <code class="notranslate">core</code></a> as I'm using a <em>custom target</em> for my Rust kernel.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 1.0.0-nightly (c89de2c56 2015-03-28) (built 2015-03-29) binary: rustc commit-hash: c89de2c56baeb61e7cc434924dcc8bedd32b26b8 commit-date: 2015-03-28 build-date: 2015-03-29 host: x86_64-unknown-linux-gnu release: 1.0.0-nightly"><pre class="notranslate"><code class="notranslate">rustc 1.0.0-nightly (c89de2c56 2015-03-28) (built 2015-03-29) binary: rustc commit-hash: c89de2c56baeb61e7cc434924dcc8bedd32b26b8 commit-date: 2015-03-28 build-date: 2015-03-29 host: x86_64-unknown-linux-gnu release: 1.0.0-nightly </code></pre></div>
<p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10626373" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/4789" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/4789/hovercard" href="https://github.com/rust-lang/rust/issues/4789">#4789</a> discussion was started about redesigning the traits related to numbers and I think the first step is to design and document the traits we think are required and why.</p> <p dir="auto">We probably also depend on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="9273827" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/4183" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/4183/hovercard" href="https://github.com/rust-lang/rust/issues/4183">#4183</a> and some other bugs for the actual implementation?</p> <p dir="auto">(I have an initial sketch/RFC here, based on the work in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10626373" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/4789" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/4789/hovercard" href="https://github.com/rust-lang/rust/issues/4789">#4789</a> etc. <a href="https://gist.github.com/JensNockert/4719287">https://gist.github.com/JensNockert/4719287</a>)</p>
0
<p dir="auto">Soft wrapping breaks apart completely and creates a big mess if a certain sequence of actions is performed. I'm on OSX 10.8.4 and Atom 17.0.</p> <p dir="auto">To reproduce:</p> <ol dir="auto"> <li>Start Atom, open a blank new file, and turn on soft wrapping</li> <li>Enter text until it wraps to the other line:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/fda2a402647a33c859678c5d44684844d1298875142f572e9cc5ce8ccc5cef6f/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f33383932342f3932383232302f39666330613032342d666662302d313165322d396137312d6666386535633033346463632e706e67"><img src="https://camo.githubusercontent.com/fda2a402647a33c859678c5d44684844d1298875142f572e9cc5ce8ccc5cef6f/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f33383932342f3932383232302f39666330613032342d666662302d313165322d396137312d6666386535633033346463632e706e67" alt="screen shot 2013-08-07 at 3 27 54 pm" data-canonical-src="https://f.cloud.github.com/assets/38924/928220/9fc0a024-ffb0-11e2-9a71-ff8e5c034dcc.png" style="max-width: 100%;"></a></li> <li>Your cursor being at the end of line 1, press ENTER to go to the next line. This correctly creates a newline character and moves the cursor to the beginning of the next line:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/6f7b301365ca807b0782e62bf3e590b229355d52843f4c3f64b8d971e213c0c7/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f33383932342f3932383232372f64323238393239632d666662302d313165322d396362662d6431613037343266313764392e706e67"><img src="https://camo.githubusercontent.com/6f7b301365ca807b0782e62bf3e590b229355d52843f4c3f64b8d971e213c0c7/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f33383932342f3932383232372f64323238393239632d666662302d313165322d396362662d6431613037343266313764392e706e67" alt="screen shot 2013-08-07 at 3 29 19 pm" data-canonical-src="https://f.cloud.github.com/assets/38924/928227/d228929c-ffb0-11e2-9cbf-d1a0742f17d9.png" style="max-width: 100%;"></a></li> <li>Press BACKSPACE. This deletes the new line that was just created and correctly moves the cursor back to the end of line 1. Screenshot same as in step 2:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/ecea554321369780acd8c7c6790ce7c64f8ed2baa2b92c7fe9788ffb1d319730/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f33383932342f3932383238372f30346133373264362d666662322d313165322d386330382d3832383031393835623465662e706e67"><img src="https://camo.githubusercontent.com/ecea554321369780acd8c7c6790ce7c64f8ed2baa2b92c7fe9788ffb1d319730/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f33383932342f3932383238372f30346133373264362d666662322d313165322d386330382d3832383031393835623465662e706e67" alt="screen shot 2013-08-07 at 3 27 54 pm" data-canonical-src="https://f.cloud.github.com/assets/38924/928287/04a372d6-ffb2-11e2-8c08-82801985b4ef.png" style="max-width: 100%;"></a></li> <li>Press ENTER again, as if to repeat step 3. This messes everything up:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/521af64336d29dd0d83586b493c8ff5022d3b875198cef9f4e4358f6e79a10cb/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f33383932342f3932383233342f65663938363563382d666662302d313165322d393463332d6462393830663930633863342e706e67"><img src="https://camo.githubusercontent.com/521af64336d29dd0d83586b493c8ff5022d3b875198cef9f4e4358f6e79a10cb/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f33383932342f3932383233342f65663938363563382d666662302d313165322d393463332d6462393830663930633863342e706e67" alt="screen shot 2013-08-07 at 3 30 13 pm" data-canonical-src="https://f.cloud.github.com/assets/38924/928234/ef9865c8-ffb0-11e2-94c3-db980f90c8c4.png" style="max-width: 100%;"></a></li> </ol> <p dir="auto">So, the first "virtual" line was duplicated. Also, this duplicated first line is now non-selectable and non-editable -- I can't even put my cursor there (it's frozen).</p> <p dir="auto">DevTools console doesn't show any errors.</p>
<p dir="auto">Sometimes you have several files open in a window and two or more of the tabs share the same file name (e.g., subfolders of examples with many index.html files). Just like Chrome and Sublime (and perhaps other OS X apps?), when you hover of the tab for a couple seconds, we should show additional context. In this case, the full path to the file.</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.3 &amp; 2.5.10</li> <li>Operating System version: mac</li> <li>Java version: JDk 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>DubboSaveRegistryCache thread cost a lot of cpu when device is full.</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" [DUBBO] Failed to save registry store file, cause: No space left on device, dubbo version: 2.0.1, current host: 10.14.129.133 java.io.IOException: No space left on device at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:326) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) at java.io.BufferedWriter.flush(BufferedWriter.java:254) at java.util.Properties.store0(Properties.java:844) at java.util.Properties.store(Properties.java:818) at com.alibaba.dubbo.registry.support.AbstractRegistry.doSaveProperties(AbstractRegistry.java:169) at com.alibaba.dubbo.registry.support.AbstractRegistry$SaveProperties.run(AbstractRegistry.java:490) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)"><pre class="notranslate"><code class="notranslate"> [DUBBO] Failed to save registry store file, cause: No space left on device, dubbo version: 2.0.1, current host: 10.14.129.133 java.io.IOException: No space left on device at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:326) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) at java.io.BufferedWriter.flush(BufferedWriter.java:254) at java.util.Properties.store0(Properties.java:844) at java.util.Properties.store(Properties.java:818) at com.alibaba.dubbo.registry.support.AbstractRegistry.doSaveProperties(AbstractRegistry.java:169) at com.alibaba.dubbo.registry.support.AbstractRegistry$SaveProperties.run(AbstractRegistry.java:490) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) </code></pre></div> <ol start="2" dir="auto"> <li>when device is full, it will retry doSaveProperties and log warn in infinite loop.</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">Seems the version check is not takes effect, doSaveProperties should be stopped.</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">retry doSaveProperties when device is full takes a lot of cpu time.</p>
1
<p dir="auto">As stated in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54303496" data-permission-text="Title is private" data-url="https://github.com/vuejs/vue/issues/677" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/677/hovercard" href="https://github.com/vuejs/vue/issues/677">#677</a> currently you have to wrap a v-for with an if to catch if an array is empty. I'd love a tag like <code class="notranslate">v-empty</code> to do that. It would work like <code class="notranslate">v-else</code> and you put it right after a <code class="notranslate">v-for</code> (maybe also <code class="notranslate">v-else</code> could also be reused for that?).<br> The <code class="notranslate">v-empty</code> block triggeres if the <code class="notranslate">v-for</code> list is empty. Just like the equivalent django template tag: <a href="https://docs.djangoproject.com/en/1.9/ref/templates/builtins/#for-empty" rel="nofollow">https://docs.djangoproject.com/en/1.9/ref/templates/builtins/#for-empty</a></p> <p dir="auto">Example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div v-for=&quot;(index, item) in items&quot;&gt; {{ index }} {{ item.message }} &lt;/div&gt; &lt;div v-empty&gt; &lt;p&gt;Sorry, no elements yet.&lt;/p&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate">&lt;div v-for="(index, item) in items"&gt; {{ index }} {{ item.message }} &lt;/div&gt; &lt;div v-empty&gt; &lt;p&gt;Sorry, no elements yet.&lt;/p&gt; &lt;/div&gt; </code></pre></div>
<h3 dir="auto">Version</h3> <p dir="auto">2.5.13</p> <h3 dir="auto">Reproduction link</h3> <p dir="auto"><a href="https://jsfiddle.net/jbwxeunb/1/" rel="nofollow">https://jsfiddle.net/jbwxeunb/1/</a></p> <h3 dir="auto">Steps to reproduce</h3> <ol dir="auto"> <li>open console</li> <li>click counter</li> </ol> <h3 dir="auto">What is expected?</h3> <p dir="auto">Show warning when mutating object prop</p> <h3 dir="auto">What is actually happening?</h3> <p dir="auto">Warning only shows up when mutating primitive props</p>
0
<h2 dir="auto">Bug</h2> <p dir="auto">Using libtorch causes memory leaks. but i think that it is very strange. because i only define <code class="notranslate">torch::DeiviceType</code> , then got <strong>bug1</strong></p> <h3 dir="auto">bug1</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="still reachable: 884,654 bytes in 13,927 blocks of which reachable via heuristic: stdstring :436062 bytes in 5832 blocks"><pre class="notranslate"><code class="notranslate">still reachable: 884,654 bytes in 13,927 blocks of which reachable via heuristic: stdstring :436062 bytes in 5832 blocks </code></pre></div> <h3 dir="auto">bug2</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="possibly lost: 3104 bytes in 22 blocks still reachable: 1231592 bytes in 14005 blocks of which reachable via heuristic: stdstring :436062 bytes in 5832 blocks"><pre class="notranslate"><code class="notranslate">possibly lost: 3104 bytes in 22 blocks still reachable: 1231592 bytes in 14005 blocks of which reachable via heuristic: stdstring :436062 bytes in 5832 blocks </code></pre></div> <h2 dir="auto">To Reproduce</h2> <h3 dir="auto">bug1</h3> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="int main() { torch::DeviceType device_type; }"><pre class="notranslate"><span class="pl-k">int</span> <span class="pl-en">main</span>() { torch::DeviceType device_type; }</pre></div> <h3 dir="auto">bug2</h3> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="int main() { torch::DeviceType device_type; if(torch::cuda::is_available()) { device_type = torch::kCUDA; } else { device_type = torch::kCPU; } torch::Device device(device_type) }"><pre class="notranslate"><span class="pl-k">int</span> <span class="pl-en">main</span>() { torch::DeviceType device_type; <span class="pl-k">if</span>(<span class="pl-c1">torch::cuda::is_available</span>()) { device_type = torch::<span class="pl-c1">kCUDA</span>; } <span class="pl-k">else</span> { device_type = torch::<span class="pl-c1">kCPU</span>; } torch::Device <span class="pl-smi">device</span>(device_type) }</pre></div> <h2 dir="auto">Environment</h2> <ul dir="auto"> <li>PyTorch Version : 1.4</li> <li>libtorch Version: 1.4</li> <li>OS (e.g., Linux): Ubuntu 14.04</li> <li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): pip</li> <li>Python version: 3.5</li> <li>CUDA/cuDNN version: 10</li> </ul>
<p dir="auto">When compiling PyTorch from sources (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pytorch/pytorch/commit/a80a46a6d01b792399d5860e00923d096399952f/hovercard" href="https://github.com/pytorch/pytorch/commit/a80a46a6d01b792399d5860e00923d096399952f"><tt>a80a46a</tt></a>) with the flag NO_DISTRIBUTED=1 it ends up with the Following error :</p> <p dir="auto"><code class="notranslate">couldn't find libcudart. Make sure CUDA libraries are installed in adefault location, or that they're in LD_LIBRARY_PATH</code> comming from there : <a href="https://github.com/pytorch/pytorch/blob/master/torch/cuda/__init__.py#L66">https://github.com/pytorch/pytorch/blob/master/torch/cuda/__init__.py#L66</a></p> <p dir="auto">Compiling with Distributed support makes the error disappear.</p> <p dir="auto">Happened on Fedora 29, using GCC/G++ 7.3.1 with CUDA 9.2 / CuDNN 7.4.1 / GTX 1080 Ti</p>
0
<p dir="auto">Although there's an option to Rename, it does nothing when clicked.<br> Related to: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20196192" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/897" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/897/hovercard" href="https://github.com/atom/atom/issues/897">#897</a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/497926/4503462/2c37e88c-4ad8-11e4-98e9-7c2a45bdbf9c.png"><img src="https://cloud.githubusercontent.com/assets/497926/4503462/2c37e88c-4ad8-11e4-98e9-7c2a45bdbf9c.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">tree-view can currently not rename the opened root folder. When I click the root folder in the tree view and press <code class="notranslate">F2</code> or select <code class="notranslate">right-click</code> - <code class="notranslate">Rename</code> nothing happens.</p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./cluster/kubectl.sh create -f examples/extensions/deployment.yaml --v 8 I0104 15:17:42.816603 1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config I0104 15:17:42.818053 1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config I0104 15:17:42.947358 1813 round_trippers.go:258] GET https://10.245.1.2/api I0104 15:17:42.947384 1813 round_trippers.go:265] Request Headers: I0104 15:17:42.947391 1813 round_trippers.go:268] Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA== I0104 15:17:42.982052 1813 round_trippers.go:283] Response Status: 200 OK in 34 milliseconds I0104 15:17:42.982080 1813 round_trippers.go:286] Response Headers: I0104 15:17:42.982087 1813 round_trippers.go:289] Content-Type: application/json I0104 15:17:42.982095 1813 round_trippers.go:289] Date: Mon, 04 Jan 2016 14:17:23 GMT I0104 15:17:42.982102 1813 round_trippers.go:289] Content-Length: 57 I0104 15:17:42.982137 1813 request.go:841] Response Body: { &quot;kind&quot;: &quot;APIVersions&quot;, &quot;versions&quot;: [ &quot;v1&quot; ] } I0104 15:17:42.982336 1813 round_trippers.go:258] GET https://10.245.1.2/apis I0104 15:17:42.982350 1813 round_trippers.go:265] Request Headers: I0104 15:17:42.982356 1813 round_trippers.go:268] Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA== I0104 15:17:42.983192 1813 round_trippers.go:283] Response Status: 200 OK in 0 milliseconds I0104 15:17:42.983211 1813 round_trippers.go:286] Response Headers: I0104 15:17:42.983218 1813 round_trippers.go:289] Content-Type: application/json I0104 15:17:42.983224 1813 round_trippers.go:289] Date: Mon, 04 Jan 2016 14:17:23 GMT I0104 15:17:42.983231 1813 round_trippers.go:289] Content-Length: 326 I0104 15:17:42.983250 1813 request.go:841] Response Body: { &quot;kind&quot;: &quot;APIGroupList&quot;, &quot;groups&quot;: [ { &quot;name&quot;: &quot;extensions&quot;, &quot;versions&quot;: [ { &quot;groupVersion&quot;: &quot;extensions/v1beta1&quot;, &quot;version&quot;: &quot;v1beta1&quot; } ], &quot;preferredVersion&quot;: { &quot;groupVersion&quot;: &quot;extensions/v1beta1&quot;, &quot;version&quot;: &quot;v1beta1&quot; } } ] } I0104 15:17:42.984501 1813 round_trippers.go:258] GET https://10.245.1.2/version I0104 15:17:42.984525 1813 round_trippers.go:265] Request Headers: I0104 15:17:42.984532 1813 round_trippers.go:268] User-Agent: kubectl/v1.2.0 (linux/amd64) kubernetes/7d3d155 I0104 15:17:42.984538 1813 round_trippers.go:268] Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA== I0104 15:17:42.985516 1813 round_trippers.go:283] Response Status: 200 OK in 0 milliseconds I0104 15:17:42.985530 1813 round_trippers.go:286] Response Headers: I0104 15:17:42.985534 1813 round_trippers.go:289] Content-Length: 180 I0104 15:17:42.985538 1813 round_trippers.go:289] Content-Type: application/json I0104 15:17:42.985541 1813 round_trippers.go:289] Date: Mon, 04 Jan 2016 14:17:23 GMT I0104 15:17:42.985561 1813 request.go:841] Response Body: { &quot;major&quot;: &quot;1&quot;, &quot;minor&quot;: &quot;2+&quot;, &quot;gitVersion&quot;: &quot;v1.2.0-alpha.5.596+7d3d155a4cc916-dirty&quot;, &quot;gitCommit&quot;: &quot;7d3d155a4cc9163c1baf5a8b2b645b3c3dd3bda0&quot;, &quot;gitTreeState&quot;: &quot;dirty&quot; } I0104 15:17:42.987242 1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config I0104 15:17:42.988370 1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config I0104 15:17:42.989589 1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config I0104 15:17:42.991455 1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config I0104 15:17:42.992454 1813 decoder.go:144] decoding stream as YAML I0104 15:17:43.010982 1813 round_trippers.go:258] GET https://10.245.1.2/api I0104 15:17:43.011017 1813 round_trippers.go:265] Request Headers: I0104 15:17:43.011028 1813 round_trippers.go:268] Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA== I0104 15:17:43.012070 1813 round_trippers.go:283] Response Status: 200 OK in 1 milliseconds I0104 15:17:43.012093 1813 round_trippers.go:286] Response Headers: I0104 15:17:43.012101 1813 round_trippers.go:289] Content-Type: application/json I0104 15:17:43.012108 1813 round_trippers.go:289] Date: Mon, 04 Jan 2016 14:17:23 GMT I0104 15:17:43.012115 1813 round_trippers.go:289] Content-Length: 57 I0104 15:17:43.012141 1813 request.go:841] Response Body: { &quot;kind&quot;: &quot;APIVersions&quot;, &quot;versions&quot;: [ &quot;v1&quot; ] } I0104 15:17:43.012270 1813 round_trippers.go:258] GET https://10.245.1.2/apis I0104 15:17:43.012282 1813 round_trippers.go:265] Request Headers: I0104 15:17:43.012289 1813 round_trippers.go:268] Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA== I0104 15:17:43.013280 1813 round_trippers.go:283] Response Status: 200 OK in 0 milliseconds I0104 15:17:43.013294 1813 round_trippers.go:286] Response Headers: I0104 15:17:43.013301 1813 round_trippers.go:289] Content-Type: application/json I0104 15:17:43.013307 1813 round_trippers.go:289] Date: Mon, 04 Jan 2016 14:17:23 GMT I0104 15:17:43.013313 1813 round_trippers.go:289] Content-Length: 326 I0104 15:17:43.013332 1813 request.go:841] Response Body: { &quot;kind&quot;: &quot;APIGroupList&quot;, &quot;groups&quot;: [ { &quot;name&quot;: &quot;extensions&quot;, &quot;versions&quot;: [ { &quot;groupVersion&quot;: &quot;extensions/v1beta1&quot;, &quot;version&quot;: &quot;v1beta1&quot; } ], &quot;preferredVersion&quot;: { &quot;groupVersion&quot;: &quot;extensions/v1beta1&quot;, &quot;version&quot;: &quot;v1beta1&quot; } } ] }"><pre class="notranslate"><code class="notranslate">$ ./cluster/kubectl.sh create -f examples/extensions/deployment.yaml --v 8 I0104 15:17:42.816603 1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config I0104 15:17:42.818053 1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config I0104 15:17:42.947358 1813 round_trippers.go:258] GET https://10.245.1.2/api I0104 15:17:42.947384 1813 round_trippers.go:265] Request Headers: I0104 15:17:42.947391 1813 round_trippers.go:268] Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA== I0104 15:17:42.982052 1813 round_trippers.go:283] Response Status: 200 OK in 34 milliseconds I0104 15:17:42.982080 1813 round_trippers.go:286] Response Headers: I0104 15:17:42.982087 1813 round_trippers.go:289] Content-Type: application/json I0104 15:17:42.982095 1813 round_trippers.go:289] Date: Mon, 04 Jan 2016 14:17:23 GMT I0104 15:17:42.982102 1813 round_trippers.go:289] Content-Length: 57 I0104 15:17:42.982137 1813 request.go:841] Response Body: { "kind": "APIVersions", "versions": [ "v1" ] } I0104 15:17:42.982336 1813 round_trippers.go:258] GET https://10.245.1.2/apis I0104 15:17:42.982350 1813 round_trippers.go:265] Request Headers: I0104 15:17:42.982356 1813 round_trippers.go:268] Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA== I0104 15:17:42.983192 1813 round_trippers.go:283] Response Status: 200 OK in 0 milliseconds I0104 15:17:42.983211 1813 round_trippers.go:286] Response Headers: I0104 15:17:42.983218 1813 round_trippers.go:289] Content-Type: application/json I0104 15:17:42.983224 1813 round_trippers.go:289] Date: Mon, 04 Jan 2016 14:17:23 GMT I0104 15:17:42.983231 1813 round_trippers.go:289] Content-Length: 326 I0104 15:17:42.983250 1813 request.go:841] Response Body: { "kind": "APIGroupList", "groups": [ { "name": "extensions", "versions": [ { "groupVersion": "extensions/v1beta1", "version": "v1beta1" } ], "preferredVersion": { "groupVersion": "extensions/v1beta1", "version": "v1beta1" } } ] } I0104 15:17:42.984501 1813 round_trippers.go:258] GET https://10.245.1.2/version I0104 15:17:42.984525 1813 round_trippers.go:265] Request Headers: I0104 15:17:42.984532 1813 round_trippers.go:268] User-Agent: kubectl/v1.2.0 (linux/amd64) kubernetes/7d3d155 I0104 15:17:42.984538 1813 round_trippers.go:268] Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA== I0104 15:17:42.985516 1813 round_trippers.go:283] Response Status: 200 OK in 0 milliseconds I0104 15:17:42.985530 1813 round_trippers.go:286] Response Headers: I0104 15:17:42.985534 1813 round_trippers.go:289] Content-Length: 180 I0104 15:17:42.985538 1813 round_trippers.go:289] Content-Type: application/json I0104 15:17:42.985541 1813 round_trippers.go:289] Date: Mon, 04 Jan 2016 14:17:23 GMT I0104 15:17:42.985561 1813 request.go:841] Response Body: { "major": "1", "minor": "2+", "gitVersion": "v1.2.0-alpha.5.596+7d3d155a4cc916-dirty", "gitCommit": "7d3d155a4cc9163c1baf5a8b2b645b3c3dd3bda0", "gitTreeState": "dirty" } I0104 15:17:42.987242 1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config I0104 15:17:42.988370 1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config I0104 15:17:42.989589 1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config I0104 15:17:42.991455 1813 loader.go:229] Config loaded from file /home/mkargaki/.kube/config I0104 15:17:42.992454 1813 decoder.go:144] decoding stream as YAML I0104 15:17:43.010982 1813 round_trippers.go:258] GET https://10.245.1.2/api I0104 15:17:43.011017 1813 round_trippers.go:265] Request Headers: I0104 15:17:43.011028 1813 round_trippers.go:268] Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA== I0104 15:17:43.012070 1813 round_trippers.go:283] Response Status: 200 OK in 1 milliseconds I0104 15:17:43.012093 1813 round_trippers.go:286] Response Headers: I0104 15:17:43.012101 1813 round_trippers.go:289] Content-Type: application/json I0104 15:17:43.012108 1813 round_trippers.go:289] Date: Mon, 04 Jan 2016 14:17:23 GMT I0104 15:17:43.012115 1813 round_trippers.go:289] Content-Length: 57 I0104 15:17:43.012141 1813 request.go:841] Response Body: { "kind": "APIVersions", "versions": [ "v1" ] } I0104 15:17:43.012270 1813 round_trippers.go:258] GET https://10.245.1.2/apis I0104 15:17:43.012282 1813 round_trippers.go:265] Request Headers: I0104 15:17:43.012289 1813 round_trippers.go:268] Authorization: Basic YWRtaW46U01mdjNpUmwwbFR3Z2Z0bA== I0104 15:17:43.013280 1813 round_trippers.go:283] Response Status: 200 OK in 0 milliseconds I0104 15:17:43.013294 1813 round_trippers.go:286] Response Headers: I0104 15:17:43.013301 1813 round_trippers.go:289] Content-Type: application/json I0104 15:17:43.013307 1813 round_trippers.go:289] Date: Mon, 04 Jan 2016 14:17:23 GMT I0104 15:17:43.013313 1813 round_trippers.go:289] Content-Length: 326 I0104 15:17:43.013332 1813 request.go:841] Response Body: { "kind": "APIGroupList", "groups": [ { "name": "extensions", "versions": [ { "groupVersion": "extensions/v1beta1", "version": "v1beta1" } ], "preferredVersion": { "groupVersion": "extensions/v1beta1", "version": "v1beta1" } } ] } </code></pre></div> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/deads2k/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/deads2k">@deads2k</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/liggitt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/liggitt">@liggitt</a></p> <p dir="auto">Found in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="123009514" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/18901" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/18901/hovercard" href="https://github.com/kubernetes/kubernetes/pull/18901">#18901</a> which is based on top of <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kubernetes/kubernetes/commit/b494855ebf7801b6e92f734ca402f0dc44c37b43/hovercard" href="https://github.com/kubernetes/kubernetes/commit/b494855ebf7801b6e92f734ca402f0dc44c37b43"><tt>b494855</tt></a> (almost latest master)</p>
<p dir="auto">Kubernetes API Server is reporting the wrong status for a running pod. I have a single container pod scheduled, and as far as I can see it is running on the minion, but kubernetes is very confused about its state.</p> <p dir="auto">It shows as 'Pending':</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[stef@falcon cockpit]$ kubectl get pods NAME IMAGE(S) HOST LABELS STATUS apache fedora/apache &lt;unassigned&gt; name=apache Pending second-test vbatts/fedora-varnish minion.thewalter.lan/ name=Second Test Running"><pre class="notranslate"><code class="notranslate">[stef@falcon cockpit]$ kubectl get pods NAME IMAGE(S) HOST LABELS STATUS apache fedora/apache &lt;unassigned&gt; name=apache Pending second-test vbatts/fedora-varnish minion.thewalter.lan/ name=Second Test Running </code></pre></div> <p dir="auto">But you can see that it's running:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 75f4e4a862c0 fedora/apache:latest &quot;/run-apache.sh&quot; About an hour ago Up About an hour k8s_master.92a78031_apache.default.etcd_1416906634_c673f516 4ab706944e0b vbatts/fedora-varnish:latest &quot;/srv/run.sh&quot; About an hour ago Up About an hour k8s_varnish.ecd56c27_second-test.default.etcd_1417637612_ac61c488 9e4313824d6c kubernetes/pause:latest &quot;/pause&quot; About an hour ago Up About an hour 0.0.0.0:80-&gt;80/tcp k8s_net.e9a68336_apache.default.etcd_1416906634_496b6211 744be56e11a5 kubernetes/pause:latest &quot;/pause&quot; About an hour ago Up About an hour k8s_net.fadb6b63_second-test.default.etcd_1417637612_77cfd3a8 "><pre class="notranslate"><code class="notranslate">CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 75f4e4a862c0 fedora/apache:latest "/run-apache.sh" About an hour ago Up About an hour k8s_master.92a78031_apache.default.etcd_1416906634_c673f516 4ab706944e0b vbatts/fedora-varnish:latest "/srv/run.sh" About an hour ago Up About an hour k8s_varnish.ecd56c27_second-test.default.etcd_1417637612_ac61c488 9e4313824d6c kubernetes/pause:latest "/pause" About an hour ago Up About an hour 0.0.0.0:80-&gt;80/tcp k8s_net.e9a68336_apache.default.etcd_1416906634_496b6211 744be56e11a5 kubernetes/pause:latest "/pause" About an hour ago Up About an hour k8s_net.fadb6b63_second-test.default.etcd_1417637612_77cfd3a8 </code></pre></div> <p dir="auto">The container is accessible on the machine.</p>
0
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/taste-the-bootstrap-button-color-rainbow#?solution=%0A%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch2%20class%3D%22red-text%20text-center%22%3ECatPhotoApp%3C%2Fh2%3E%0A%0A%20%20%3Cp%3EClick%20here%20for%20%3Ca%20href%3D%22%23%22%3Ecat%20photos%3C%2Fa%3E.%3C%2Fp%3E%0A%0A%20%20%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22smaller-image%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%20alt%3D%22A%20cute%20orange%20cat%20lying%20on%20its%20back.%20%22%3E%3C%2Fa%3E%0A%0A%20%20%3Cimg%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-running-cats%22%20class%3D%22img-responsive%22%20alt%3D%22Three%20kittens%20running%20towards%20the%20camera.%20%22%3E%0A%20%20%3Cbutton%20class%3D%22btn%20btn-block%22%3ELike%3C%2Fbutton%3E%0A%20%20%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%20%20%3Cul%3E%0A%20%20%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%20%20%3C%2Ful%3E%0A%20%20%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%20%20%3Col%3E%0A%20%20%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%20%20%3C%2Fol%3E%0A%20%20%3Cform%20fccfaa%3D%22%2Fsubmit-cat-photo%22%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Indoor%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Outdoor%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Loving%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Lazy%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Crazy%3C%2Flabel%3E%0A%20%20%20%20%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%20required%3E%0A%20%20%20%20%3Cbutton%20type%3D%22submit%22%3ESubmit%3C%2Fbutton%3E%0A%20%20%3C%2Fform%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Taste the Bootstrap Button Color Rainbow</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">My code:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;link href=&quot;https://fonts.googleapis.com/css?family=Lobster&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;&gt; &lt;style&gt; .red-text { color: red; } h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family: Monospace; } .thick-green-border { border-color: green; border-width: 10px; border-style: solid; border-radius: 50%; } .smaller-image { width: 100px; } &lt;/style&gt; &lt;div class=&quot;container-fluid&quot;&gt; &lt;h2 class=&quot;red-text text-center&quot;&gt;CatPhotoApp&lt;/h2&gt; &lt;p&gt;Click here for &lt;a href=&quot;#&quot;&gt;cat photos&lt;/a&gt;.&lt;/p&gt; &lt;a href=&quot;#&quot;&gt;&lt;img class=&quot;smaller-image thick-green-border&quot; src=&quot;https://bit.ly/fcc-relaxing-cat&quot; alt=&quot;A cute orange cat lying on its back. &quot;&gt;&lt;/a&gt; &lt;img src=&quot;https://bit.ly/fcc-running-cats&quot; class=&quot;img-responsive&quot; alt=&quot;Three kittens running towards the camera. &quot;&gt; &lt;button class=&quot;btn btn-block&quot;&gt;Like&lt;/button&gt; &lt;p&gt;Things cats love:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;cat nip&lt;/li&gt; &lt;li&gt;laser pointers&lt;/li&gt; &lt;li&gt;lasagna&lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Top 3 things cats hate:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;flea treatment&lt;/li&gt; &lt;li&gt;thunder&lt;/li&gt; &lt;li&gt;other cats&lt;/li&gt; &lt;/ol&gt; &lt;form action=&quot;/submit-cat-photo&quot;&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot;&gt; Indoor&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;indoor-outdoor&quot;&gt; Outdoor&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Loving&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Lazy&lt;/label&gt; &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;personality&quot;&gt; Crazy&lt;/label&gt; &lt;input type=&quot;text&quot; placeholder=&quot;cat photo URL&quot; required&gt; &lt;button type=&quot;submit&quot;&gt;Submit&lt;/button&gt; &lt;/form&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">https://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> .<span class="pl-c1">red-text</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> red; } <span class="pl-ent">h2</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Lobster<span class="pl-kos">,</span> Monospace; } <span class="pl-ent">p</span> { <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">16<span class="pl-smi">px</span></span>; <span class="pl-c1">font-family</span><span class="pl-kos">:</span> Monospace; } .<span class="pl-c1">thick-green-border</span> { <span class="pl-c1">border-color</span><span class="pl-kos">:</span> green; <span class="pl-c1">border-width</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">border-style</span><span class="pl-kos">:</span> solid; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>; } .<span class="pl-c1">smaller-image</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">100<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text text-center</span>"<span class="pl-kos">&gt;</span>CatPhotoApp<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Click here for <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>cat photos<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span>.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">smaller-image thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>" <span class="pl-c1">alt</span>="<span class="pl-s">A cute orange cat lying on its back. </span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-running-cats</span>" <span class="pl-c1">class</span>="<span class="pl-s">img-responsive</span>" <span class="pl-c1">alt</span>="<span class="pl-s">Three kittens running towards the camera. </span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block</span>"<span class="pl-kos">&gt;</span>Like<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Things cats love:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>cat nip<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>laser pointers<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>lasagna<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Top 3 things cats hate:<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>flea treatment<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>thunder<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span>other cats<span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ol</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">&gt;</span> Indoor<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">&gt;</span> Outdoor<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Loving<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Lazy<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">&gt;</span> Crazy<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>" <span class="pl-c1">required</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">&gt;</span>Submit<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/show-the-local-weather" rel="nofollow">Show the Local Weather</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.8 (KHTML, like Gecko) Version/9.1.3 Safari/601.7.8</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <p dir="auto">If you are using a secure connection (https) to the codepen.io page, API calls to open weather will not work. Really should have this on the assignment page. I spent 5+ hours to realize there was nothing wrong with my code. You need to delete the 's' for it to work.</p> <p dir="auto"><a href="https://codepen.io/" rel="nofollow">https://codepen.io/</a>... --&gt; <a href="http://codepen.io/" rel="nofollow">http://codepen.io/</a>...</p> <p dir="auto"><a href="https://www.reddit.com/r/FreeCodeCamp/comments/413p2u/issues_making_api_calls_with_codepen/" rel="nofollow">https://www.reddit.com/r/FreeCodeCamp/comments/413p2u/issues_making_api_calls_with_codepen/</a></p>
0
<p dir="auto">Getting an error when trying to duplicate a virtual dataset (feature in this PR: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1264749025" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/20309" data-hovercard-type="pull_request" data-hovercard-url="/apache/superset/pull/20309/hovercard" href="https://github.com/apache/superset/pull/20309">#20309</a>)</p> <h4 dir="auto">How to reproduce the bug</h4> <ol dir="auto"> <li>Visit the Datasets page</li> <li>On the Actions column of a Virtual dataset, click the duplicate icon</li> <li>Enter a dataset name and click "Duplicate"</li> </ol> <h3 dir="auto">Expected results</h3> <p dir="auto">Virtual dataset gets copied and created successfully</p> <h3 dir="auto">Actual results</h3> <p dir="auto">An error message appears and the dataset doesn't get created</p> <h4 dir="auto">Screenshots</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10627051/187795512-ef471d5a-ee67-4064-a0dd-706b15bf1c87.png"><img width="874" alt="Superset 2022-08-31 15-10-11" src="https://user-images.githubusercontent.com/10627051/187795512-ef471d5a-ee67-4064-a0dd-706b15bf1c87.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Environment</h3> <p dir="auto">(please complete the following information):</p> <ul dir="auto"> <li>browser type and version:</li> <li>superset version: <code class="notranslate">master</code></li> <li>python version: <code class="notranslate">python --version</code></li> <li>node.js version: <code class="notranslate">node -v</code></li> <li>any feature flags active:</li> </ul> <h3 dir="auto">Checklist</h3> <p dir="auto">Make sure to follow these steps before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li> </ul>
<p dir="auto">A clear and concise description of what the bug is.</p> <h4 dir="auto">How to reproduce the bug</h4> <ol dir="auto"> <li>Setup a postgres table with a timestamp with time zone (timstamptz) column</li> <li>Query that column using sql editor or consume that column in a chart</li> <li>See error</li> </ol> <h3 dir="auto">Expected results</h3> <p dir="auto">Be able to see the column</p> <h3 dir="auto">Actual results</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="superset_1 | Traceback (most recent call last): superset_1 | File &quot;/app/superset/views/base.py&quot;, line 211, in wraps superset_1 | return f(self, *args, **kwargs) superset_1 | File &quot;/app/superset/utils/log.py&quot;, line 245, in wrapper superset_1 | value = f(*args, **kwargs) superset_1 | File &quot;/app/superset/views/core.py&quot;, line 2574, in sql_json superset_1 | command_result: CommandResult = command.run() superset_1 | File &quot;/app/superset/sqllab/command.py&quot;, line 104, in run superset_1 | raise ex superset_1 | File &quot;/app/superset/sqllab/command.py&quot;, line 96, in run superset_1 | status = self._run_sql_json_exec_from_scratch() superset_1 | File &quot;/app/superset/sqllab/command.py&quot;, line 138, in _run_sql_json_exec_from_scratch superset_1 | raise ex superset_1 | File &quot;/app/superset/sqllab/command.py&quot;, line 133, in _run_sql_json_exec_from_scratch superset_1 | return self._sql_json_executor.execute( superset_1 | File &quot;/app/superset/sqllab/sql_json_executer.py&quot;, line 111, in execute superset_1 | raise SupersetErrorsException( superset_1 | superset.exceptions.SupersetErrorsException: [SupersetError(message=&quot;'+00'&quot;, error_type=&lt;SupersetErrorType.GENERIC_DB_ENGINE_ERROR: 'GENERIC_DB_ENGINE_ERROR'&gt;, level=&lt;ErrorLevel.ERROR: 'error'&gt;, extra={'engine_name': 'PostgreSQL', 'issue_codes': [{'code': 1002, 'message': 'Issue 1002 - The database returned an unexpected error.'}]})]"><pre class="notranslate"><code class="notranslate">superset_1 | Traceback (most recent call last): superset_1 | File "/app/superset/views/base.py", line 211, in wraps superset_1 | return f(self, *args, **kwargs) superset_1 | File "/app/superset/utils/log.py", line 245, in wrapper superset_1 | value = f(*args, **kwargs) superset_1 | File "/app/superset/views/core.py", line 2574, in sql_json superset_1 | command_result: CommandResult = command.run() superset_1 | File "/app/superset/sqllab/command.py", line 104, in run superset_1 | raise ex superset_1 | File "/app/superset/sqllab/command.py", line 96, in run superset_1 | status = self._run_sql_json_exec_from_scratch() superset_1 | File "/app/superset/sqllab/command.py", line 138, in _run_sql_json_exec_from_scratch superset_1 | raise ex superset_1 | File "/app/superset/sqllab/command.py", line 133, in _run_sql_json_exec_from_scratch superset_1 | return self._sql_json_executor.execute( superset_1 | File "/app/superset/sqllab/sql_json_executer.py", line 111, in execute superset_1 | raise SupersetErrorsException( superset_1 | superset.exceptions.SupersetErrorsException: [SupersetError(message="'+00'", error_type=&lt;SupersetErrorType.GENERIC_DB_ENGINE_ERROR: 'GENERIC_DB_ENGINE_ERROR'&gt;, level=&lt;ErrorLevel.ERROR: 'error'&gt;, extra={'engine_name': 'PostgreSQL', 'issue_codes': [{'code': 1002, 'message': 'Issue 1002 - The database returned an unexpected error.'}]})] </code></pre></div> <h4 dir="auto">Screenshots</h4> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/56386166/174778852-49154faa-bc43-4478-a6b4-136a2c44ca7e.png"><img width="1004" alt="Screenshot 2022-06-21 at 11 28 46" src="https://user-images.githubusercontent.com/56386166/174778852-49154faa-bc43-4478-a6b4-136a2c44ca7e.png" style="max-width: 100%;"></a></p> <h3 dir="auto">Environment</h3> <p dir="auto">(please complete the following information):</p> <ul dir="auto"> <li>browser type and version: Chrome 102</li> <li>superset version: 1.5.1</li> <li>python version: 3.8</li> <li>node.js version: none</li> <li>any feature flags active:</li> </ul> <h3 dir="auto">Checklist</h3> <p dir="auto">Make sure to follow these steps before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li> </ul> <h3 dir="auto">Additional context</h3> <p dir="auto">This was not an issue in the 1.4.2.<br> May be similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1229835233" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/19995" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/19995/hovercard" href="https://github.com/apache/superset/issues/19995">#19995</a></p>
0
<p dir="auto"><a href="https://codelabs.developers.google.com/codelabs/first-flutter-app-pt2/#0" rel="nofollow">https://codelabs.developers.google.com/codelabs/first-flutter-app-pt2/#0</a> has lots of <code class="notranslate">new</code> keyword. It can be removed since newer Dart versions don't require it :)</p>
<p dir="auto">I have a Flutter/Firebase application that works on an Android emulator, but not on a real device (HTC 10 with Android 8.0). It fails with a NullPointerException from inside the Firebase auth code, but the stack trace doesn't include the location in my app's code where the call originated from.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Launching lib/main.dart on HTC6545LVW in debug mode... Initializing gradle... Resolving dependencies... Running 'gradlew assembleDebug'... registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) Built build/app/outputs/apk/debug/app-debug.apk. Installing build/app/outputs/apk/app.apk... I/FlutterActivityDelegate(18602): onResume setting current activity to this W/zygote64(18602): Skipping duplicate class check due to unrecognized classloader W/DynamiteModule(18602): Local module descriptor class for com.google.firebase.auth not found. W/BiChannelGoogleApi(18602): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@d8cd9dc W/DynamiteModule(18602): Local module descriptor class for com.google.firebase.auth not found. I/FirebaseAuth(18602): [FirebaseAuth:] Loading module via FirebaseOptions. I/FirebaseAuth(18602): [FirebaseAuth:] Preparing to create service connection to gms implementation D/SQLiteConnection(18602): DB info: open connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, flag: 0x6, FH handler: 0x73494ae600, count: 1 D/SQLiteConnection(18602): DB info: close connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, FH handler: 0x73494ae600, count: 0 Syncing files to device HTC6545LVW... D/SQLiteConnection(18602): DB info: open connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, flag: 0x6, FH handler: 0x73494ae600, count: 1 D/SQLiteConnection(18602): DB info: close connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, FH handler: 0x73494ae600, count: 0 E/StorageHelpers(18602): Failed to turn object into JSON E/StorageHelpers(18602): java.lang.NullPointerException: Attempt to invoke virtual method 'org.json.JSONObject com.google.firebase.auth.internal.zzm.zzbf()' on a null object reference E/StorageHelpers(18602): at com.google.firebase.auth.internal.zzz.zzi(Unknown Source:126) E/StorageHelpers(18602): at com.google.firebase.auth.internal.zzz.zzg(Unknown Source:3) E/StorageHelpers(18602): at com.google.firebase.auth.FirebaseAuth.zza(Unknown Source:28) E/StorageHelpers(18602): at com.google.firebase.auth.FirebaseAuth$zza.zza(Unknown Source:12) E/StorageHelpers(18602): at com.google.firebase.auth.api.internal.zzbn.zzaa(Unknown Source:15) E/StorageHelpers(18602): at com.google.firebase.auth.api.internal.zzcy.zzal(Unknown Source:0) E/StorageHelpers(18602): at com.google.firebase.auth.api.internal.zzcy.zza(Unknown Source:0) E/StorageHelpers(18602): at com.google.firebase.auth.api.internal.zzdb.zza(Unknown Source:47) E/StorageHelpers(18602): at com.google.firebase.auth.api.internal.zzci.dispatchTransaction(Unknown Source:34) E/StorageHelpers(18602): at com.google.android.gms.internal.firebase_auth.zzb.onTransact(Unknown Source:22) E/StorageHelpers(18602): at android.os.Binder.execTransact(Binder.java:682) W/Binder (18602): Caught a RuntimeException from the binder stub implementation. W/Binder (18602): com.google.android.gms.internal.firebase_auth.zzv: java.lang.NullPointerException: Attempt to invoke virtual method 'org.json.JSONObject com.google.firebase.auth.internal.zzm.zzbf()' on a null object reference W/Binder (18602): at com.google.firebase.auth.internal.zzz.zzi(Unknown Source:151) W/Binder (18602): at com.google.firebase.auth.internal.zzz.zzg(Unknown Source:3) W/Binder (18602): at com.google.firebase.auth.FirebaseAuth.zza(Unknown Source:28) W/Binder (18602): at com.google.firebase.auth.FirebaseAuth$zza.zza(Unknown Source:12) W/Binder (18602): at com.google.firebase.auth.api.internal.zzbn.zzaa(Unknown Source:15) W/Binder (18602): at com.google.firebase.auth.api.internal.zzcy.zzal(Unknown Source:0) W/Binder (18602): at com.google.firebase.auth.api.internal.zzcy.zza(Unknown Source:0) W/Binder (18602): at com.google.firebase.auth.api.internal.zzdb.zza(Unknown Source:47) W/Binder (18602): at com.google.firebase.auth.api.internal.zzci.dispatchTransaction(Unknown Source:34) W/Binder (18602): at com.google.android.gms.internal.firebase_auth.zzb.onTransact(Unknown Source:22) W/Binder (18602): at android.os.Binder.execTransact(Binder.java:682) W/Binder (18602): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'org.json.JSONObject com.google.firebase.auth.internal.zzm.zzbf()' on a null object reference W/Binder (18602): at com.google.firebase.auth.internal.zzz.zzi(Unknown Source:126) W/Binder (18602): ... 10 more D/SQLiteConnection(18602): DB info: open connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, flag: 0x6, FH handler: 0x73494ae600, count: 1 I/zygote64(18602): Do partial code cache collection, code=29KB, data=22KB I/zygote64(18602): After code cache collection, code=27KB, data=22KB I/zygote64(18602): Increasing code cache capacity to 128KB D/SQLiteConnection(18602): DB info: close connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, FH handler: 0x73494ae600, count: 0 D/SQLiteConnection(18602): DB info: open connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, flag: 0x6, FH handler: 0x7349511ac0, count: 1 D/SQLiteConnection(18602): DB info: close connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, FH handler: 0x7349511ac0, count: 0"><pre lang="log" class="notranslate"><code class="notranslate"> Launching lib/main.dart on HTC6545LVW in debug mode... Initializing gradle... Resolving dependencies... Running 'gradlew assembleDebug'... registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection) Built build/app/outputs/apk/debug/app-debug.apk. Installing build/app/outputs/apk/app.apk... I/FlutterActivityDelegate(18602): onResume setting current activity to this W/zygote64(18602): Skipping duplicate class check due to unrecognized classloader W/DynamiteModule(18602): Local module descriptor class for com.google.firebase.auth not found. W/BiChannelGoogleApi(18602): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@d8cd9dc W/DynamiteModule(18602): Local module descriptor class for com.google.firebase.auth not found. I/FirebaseAuth(18602): [FirebaseAuth:] Loading module via FirebaseOptions. I/FirebaseAuth(18602): [FirebaseAuth:] Preparing to create service connection to gms implementation D/SQLiteConnection(18602): DB info: open connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, flag: 0x6, FH handler: 0x73494ae600, count: 1 D/SQLiteConnection(18602): DB info: close connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, FH handler: 0x73494ae600, count: 0 Syncing files to device HTC6545LVW... D/SQLiteConnection(18602): DB info: open connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, flag: 0x6, FH handler: 0x73494ae600, count: 1 D/SQLiteConnection(18602): DB info: close connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, FH handler: 0x73494ae600, count: 0 E/StorageHelpers(18602): Failed to turn object into JSON E/StorageHelpers(18602): java.lang.NullPointerException: Attempt to invoke virtual method 'org.json.JSONObject com.google.firebase.auth.internal.zzm.zzbf()' on a null object reference E/StorageHelpers(18602): at com.google.firebase.auth.internal.zzz.zzi(Unknown Source:126) E/StorageHelpers(18602): at com.google.firebase.auth.internal.zzz.zzg(Unknown Source:3) E/StorageHelpers(18602): at com.google.firebase.auth.FirebaseAuth.zza(Unknown Source:28) E/StorageHelpers(18602): at com.google.firebase.auth.FirebaseAuth$zza.zza(Unknown Source:12) E/StorageHelpers(18602): at com.google.firebase.auth.api.internal.zzbn.zzaa(Unknown Source:15) E/StorageHelpers(18602): at com.google.firebase.auth.api.internal.zzcy.zzal(Unknown Source:0) E/StorageHelpers(18602): at com.google.firebase.auth.api.internal.zzcy.zza(Unknown Source:0) E/StorageHelpers(18602): at com.google.firebase.auth.api.internal.zzdb.zza(Unknown Source:47) E/StorageHelpers(18602): at com.google.firebase.auth.api.internal.zzci.dispatchTransaction(Unknown Source:34) E/StorageHelpers(18602): at com.google.android.gms.internal.firebase_auth.zzb.onTransact(Unknown Source:22) E/StorageHelpers(18602): at android.os.Binder.execTransact(Binder.java:682) W/Binder (18602): Caught a RuntimeException from the binder stub implementation. W/Binder (18602): com.google.android.gms.internal.firebase_auth.zzv: java.lang.NullPointerException: Attempt to invoke virtual method 'org.json.JSONObject com.google.firebase.auth.internal.zzm.zzbf()' on a null object reference W/Binder (18602): at com.google.firebase.auth.internal.zzz.zzi(Unknown Source:151) W/Binder (18602): at com.google.firebase.auth.internal.zzz.zzg(Unknown Source:3) W/Binder (18602): at com.google.firebase.auth.FirebaseAuth.zza(Unknown Source:28) W/Binder (18602): at com.google.firebase.auth.FirebaseAuth$zza.zza(Unknown Source:12) W/Binder (18602): at com.google.firebase.auth.api.internal.zzbn.zzaa(Unknown Source:15) W/Binder (18602): at com.google.firebase.auth.api.internal.zzcy.zzal(Unknown Source:0) W/Binder (18602): at com.google.firebase.auth.api.internal.zzcy.zza(Unknown Source:0) W/Binder (18602): at com.google.firebase.auth.api.internal.zzdb.zza(Unknown Source:47) W/Binder (18602): at com.google.firebase.auth.api.internal.zzci.dispatchTransaction(Unknown Source:34) W/Binder (18602): at com.google.android.gms.internal.firebase_auth.zzb.onTransact(Unknown Source:22) W/Binder (18602): at android.os.Binder.execTransact(Binder.java:682) W/Binder (18602): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'org.json.JSONObject com.google.firebase.auth.internal.zzm.zzbf()' on a null object reference W/Binder (18602): at com.google.firebase.auth.internal.zzz.zzi(Unknown Source:126) W/Binder (18602): ... 10 more D/SQLiteConnection(18602): DB info: open connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, flag: 0x6, FH handler: 0x73494ae600, count: 1 I/zygote64(18602): Do partial code cache collection, code=29KB, data=22KB I/zygote64(18602): After code cache collection, code=27KB, data=22KB I/zygote64(18602): Increasing code cache capacity to 128KB D/SQLiteConnection(18602): DB info: close connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, FH handler: 0x73494ae600, count: 0 D/SQLiteConnection(18602): DB info: open connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, flag: 0x6, FH handler: 0x7349511ac0, count: 1 D/SQLiteConnection(18602): DB info: close connection, path: /data/user/0/com.example.something/databases/google_app_measurement_local.db, handle: 0x735654f600, FH handler: 0x7349511ac0, count: 0 </code></pre></div> <p dir="auto">Here's the relevant code where I'm calling the anonymous sign in:</p> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" Future&lt;Null&gt; main() async { final FirebaseApp app = FirebaseApp.instance; _currentUser = await _signInAnonymously(); runApp(new MyApp()); } Future&lt;FirebaseUser&gt; _signInAnonymously() async { final user = await _auth.signInAnonymously(); print('User is signed in: $user'); return user; }"><pre class="notranslate"> <span class="pl-c1">Future</span>&lt;<span class="pl-c1">Null</span>&gt; <span class="pl-en">main</span>() <span class="pl-k">async</span> { <span class="pl-k">final</span> <span class="pl-c1">FirebaseApp</span> app <span class="pl-k">=</span> <span class="pl-c1">FirebaseApp</span>.instance; _currentUser <span class="pl-k">=</span> <span class="pl-k">await</span> <span class="pl-en">_signInAnonymously</span>(); <span class="pl-en">runApp</span>(<span class="pl-k">new</span> <span class="pl-c1">MyApp</span>()); } <span class="pl-c1">Future</span>&lt;<span class="pl-c1">FirebaseUser</span>&gt; <span class="pl-en">_signInAnonymously</span>() <span class="pl-k">async</span> { <span class="pl-k">final</span> user <span class="pl-k">=</span> <span class="pl-k">await</span> _auth.<span class="pl-en">signInAnonymously</span>(); <span class="pl-en">print</span>(<span class="pl-s">'User is signed in: $<span class="pl-v">user</span>'</span>); <span class="pl-k">return</span> user; }</pre></div> <p dir="auto">I have no idea why it isn't working on my device. I have Google Play Services and it's updated.</p> <p dir="auto">I tried with the basic Flutter app (increment a number when you hit the FAB). I added Firebase Anonymous Auth to it, and no problems. I didn't get the same error. If worked on both the emulator and my device.</p>
0
<h4 dir="auto">Copy-pastable examples:</h4> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd fileName = 'temp/df.h5' #### Example 1 t = pd.DataFrame(data={'k':['A','B','C'], 'x':[ 1., 2., 3.]}) t.set_index(['k'], inplace=True) t.sort_index(inplace=True) t.to_hdf(fileName, 't', format='table') t2 = pd.read_hdf(fileName, where='k==&quot;A&quot;' ) # XXX: does not work t2 = pd.read_hdf(fileName, where='k in [&quot;A&quot;]') # XXX: does not work t2 = pd.read_hdf(fileName, where='k in {&quot;A&quot;}') # XXX: does not work #### Example 2 t = pd.DataFrame(data={'k1':['A','B','C'], 'k2':[ 10, 20, 30], 'x' :[ 1., 2., 3.]}) t.set_index(['k1','k2'], inplace=True) t.sort_index(inplace=True) t.to_hdf(fileName, 't', format='table') t2 = pd.read_hdf(fileName, where='k1==&quot;A&quot;' ) # XXX: works t2 = pd.read_hdf(fileName, where='k1 in [&quot;A&quot;]') # XXX: works t2 = pd.read_hdf(fileName, where='k1 in {&quot;A&quot;}') # XXX: does not work "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-s1">fileName</span> <span class="pl-c1">=</span> <span class="pl-s">'temp/df.h5'</span> <span class="pl-c">#### Example 1</span> <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span>{<span class="pl-s">'k'</span>:[<span class="pl-s">'A'</span>,<span class="pl-s">'B'</span>,<span class="pl-s">'C'</span>], <span class="pl-s">'x'</span>:[ <span class="pl-c1">1.</span>, <span class="pl-c1">2.</span>, <span class="pl-c1">3.</span>]}) <span class="pl-s1">t</span>.<span class="pl-en">set_index</span>([<span class="pl-s">'k'</span>], <span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">t</span>.<span class="pl-en">sort_index</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">t</span>.<span class="pl-en">to_hdf</span>(<span class="pl-s1">fileName</span>, <span class="pl-s">'t'</span>, <span class="pl-s1">format</span><span class="pl-c1">=</span><span class="pl-s">'table'</span>) <span class="pl-s1">t2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_hdf</span>(<span class="pl-s1">fileName</span>, <span class="pl-s1">where</span><span class="pl-c1">=</span><span class="pl-s">'k=="A"'</span> ) <span class="pl-c"># XXX: does not work</span> <span class="pl-s1">t2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_hdf</span>(<span class="pl-s1">fileName</span>, <span class="pl-s1">where</span><span class="pl-c1">=</span><span class="pl-s">'k in ["A"]'</span>) <span class="pl-c"># XXX: does not work</span> <span class="pl-s1">t2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_hdf</span>(<span class="pl-s1">fileName</span>, <span class="pl-s1">where</span><span class="pl-c1">=</span><span class="pl-s">'k in {"A"}'</span>) <span class="pl-c"># XXX: does not work</span> <span class="pl-c">#### Example 2</span> <span class="pl-s1">t</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span>{<span class="pl-s">'k1'</span>:[<span class="pl-s">'A'</span>,<span class="pl-s">'B'</span>,<span class="pl-s">'C'</span>], <span class="pl-s">'k2'</span>:[ <span class="pl-c1">10</span>, <span class="pl-c1">20</span>, <span class="pl-c1">30</span>], <span class="pl-s">'x'</span> :[ <span class="pl-c1">1.</span>, <span class="pl-c1">2.</span>, <span class="pl-c1">3.</span>]}) <span class="pl-s1">t</span>.<span class="pl-en">set_index</span>([<span class="pl-s">'k1'</span>,<span class="pl-s">'k2'</span>], <span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">t</span>.<span class="pl-en">sort_index</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>) <span class="pl-s1">t</span>.<span class="pl-en">to_hdf</span>(<span class="pl-s1">fileName</span>, <span class="pl-s">'t'</span>, <span class="pl-s1">format</span><span class="pl-c1">=</span><span class="pl-s">'table'</span>) <span class="pl-s1">t2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_hdf</span>(<span class="pl-s1">fileName</span>, <span class="pl-s1">where</span><span class="pl-c1">=</span><span class="pl-s">'k1=="A"'</span> ) <span class="pl-c"># XXX: works</span> <span class="pl-s1">t2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_hdf</span>(<span class="pl-s1">fileName</span>, <span class="pl-s1">where</span><span class="pl-c1">=</span><span class="pl-s">'k1 in ["A"]'</span>) <span class="pl-c"># XXX: works</span> <span class="pl-s1">t2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_hdf</span>(<span class="pl-s1">fileName</span>, <span class="pl-s1">where</span><span class="pl-c1">=</span><span class="pl-s">'k1 in {"A"}'</span>) <span class="pl-c"># XXX: does not work</span></pre></div> <h4 dir="auto">Problem description</h4> <ul dir="auto"> <li>'where' queries seem to completely fail if the DataFrame has single str index</li> <li>'where' queries do not support sets, which are much more algorithmically efficient for searches than lists (in my use cases, I select routinely keys, which belong to sets with hundreds or thousands of elements)</li> </ul> <h4 dir="auto">Expected Output</h4> <ul dir="auto"> <li>It would be great to support the single index case</li> <li>It would be great to allow sets in 'where' queries</li> </ul> <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="&gt;&gt;&gt; pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.6.3.final.0 python-bits: 64 OS: Linux OS-release: 3.10.0-693.17.1.el7.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: en_US.utf-8 LANG: en_US.utf-8 LOCALE: en_US.UTF-8 pandas: 0.23.0 pytest: 3.3.2 pip: 10.0.1 setuptools: 39.0.1 Cython: 0.27.3 numpy: 1.14.3 scipy: 1.0.1 pyarrow: None xarray: None IPython: 6.2.1 sphinx: 1.6.6 patsy: 0.5.0 dateutil: 2.7.2 pytz: 2018.4 blosc: None bottleneck: None tables: 3.4.2 numexpr: 2.6.4 feather: None matplotlib: 2.2.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: 0.9999999 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.6.3.final.0 python-bits: 64 OS: Linux OS-release: 3.10.0-693.17.1.el7.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: en_US.utf-8 LANG: en_US.utf-8 LOCALE: en_US.UTF-8 pandas: 0.23.0 pytest: 3.3.2 pip: 10.0.1 setuptools: 39.0.1 Cython: 0.27.3 numpy: 1.14.3 scipy: 1.0.1 pyarrow: None xarray: None IPython: 6.2.1 sphinx: 1.6.6 patsy: 0.5.0 dateutil: 2.7.2 pytz: 2018.4 blosc: None bottleneck: None tables: 3.4.2 numexpr: 2.6.4 feather: None matplotlib: 2.2.2 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: 0.9999999 sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.10 s3fs: None fastparquet: None pandas_gbq: None pandas_datareader: None </code></pre></div>
<p dir="auto">from <a href="http://stackoverflow.com/questions/27354281/query-term-is-not-valid-condition-none/27356827#27356827" rel="nofollow">SO</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [1]: df = pd.DataFrame.from_dict({'A':[1,2],'B':[100,200], 'C':[42,11]}) In [2]: df_a = df.set_index('A') In [3]: df_a Out[3]: B C A 1 100 42 2 200 11 In [4]: store = pd.HDFStore('foo.h5','w') In [5]: store.put('bar', df_a, format='table', data_columns=True) In [7]: store.select('bar','index==1')"><pre class="notranslate"><code class="notranslate">In [1]: df = pd.DataFrame.from_dict({'A':[1,2],'B':[100,200], 'C':[42,11]}) In [2]: df_a = df.set_index('A') In [3]: df_a Out[3]: B C A 1 100 42 2 200 11 In [4]: store = pd.HDFStore('foo.h5','w') In [5]: store.put('bar', df_a, format='table', data_columns=True) In [7]: store.select('bar','index==1') </code></pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="store.select('bar','A==1)"><pre class="notranslate"><code class="notranslate">store.select('bar','A==1) </code></pre></div> <p dir="auto">should work as well (obviously only for a named index)</p>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.1.0</li> <li>Operating System / Platform =&gt; Windows 7 64 Bit</li> <li>Compiler =&gt; Visual Studio 2013</li> </ul> <h5 dir="auto">Detailed description</h5> <h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">When i try to import tensorflow frozen model of faster_rcnn_nas_coco using cv.dnn.readNetFromTensorflow it is giving me the following error.</p> <p dir="auto">cv2.error: /io/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:553: error: (-2) Input layer not found: BoxPredictor_0/ClassPredictor/BiasAdd in function connect</p> <ul dir="auto"> <li> <p dir="auto">OpenCV =&gt; 3.4</p> </li> <li> <p dir="auto">Operating System / Platform =&gt; Ubuntu 16.04</p> </li> <li> <p dir="auto">Compiler =&gt; Python 3.6.3</p> </li> <li> <p dir="auto">Tensorflow =&gt; 1.4</p> </li> <li> <p dir="auto">OpenCV =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></p> </li> <li> <p dir="auto">Operating System / Platform =&gt; ❔</p> </li> <li> <p dir="auto">Compiler =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></p> </li> </ul>
0
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> feature</p> <p dir="auto"><strong>What is the current behavior?</strong><br> There is no warning if two or more instances of the same plugin are applied.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br> n/a</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> A warning should be emitted for each plugin that is duplicated, featuring the name of the plugin.</p> <p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong><br> I noticed <a href="https://github.com/webpack/webpack/pull/6395#issuecomment-360980992" data-hovercard-type="pull_request" data-hovercard-url="/webpack/webpack/pull/6395/hovercard">@ooflorent's comment</a> and figured it probably would be possible to add a dev-time warning to aid in avoiding plugin clashes.</p>
<p dir="auto"><strong>I'm submitting a feature request</strong> (or a <em>won't fix</em> bug but helpful warnings would be nice if you will)</p> <p dir="auto"><strong>Webpack version:</strong><br> 1.13.2</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> Linux</p> <p dir="auto"><strong>Current behavior:</strong><br> When loading (e.g.) React¹ as an external dependency while loading an npm package [e.g. <code class="notranslate">material-ui</code>] that requires a React Addon which itself requires React², this React² will be included by webpack and <em>not</em> loaded from the external, while the external (React¹) will be loaded as well.<br> A Facebook member explains this <a href="https://github.com/facebook/react/issues/6343#issuecomment-201568911" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/6343/hovercard">here</a>, they also describe a workaround in that bug report.</p> <p dir="auto"><em>Please note that this causes not only bloat but can <a href="https://facebook.github.io/react/warnings/refs-must-have-owner.html#multiple-copies-of-react" rel="nofollow">cause a React app to crash</a>.</em></p> <p dir="auto"><strong>Expected/desired behavior:</strong><br> As by above statement there doesn't seem to be trivial solution, but webpack should warn the user that they are included a duplicate version.</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> It is very hard to find this issue (digging through the bundled code, comparing import numbers) and cause React apps to crash.</p> <p dir="auto"><strong>Browser:</strong> All, I guess. Tested in Chromium.</p> <p dir="auto"><strong>Language:</strong> All, I guess. My code is TypeScript, uses React and Material-UI.</p>
0
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [v1.35.1]</li> <li>Operating System: [Ubuntu 20]</li> <li>Browser: [WebKit]</li> <li>Other info:</li> </ul> <h3 dir="auto">Source code</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li> </ul> <p dir="auto">I have not provided a sample repro for this as it's not something I can reproduce easily. It would probably be harder for me to try to create a smaller version of the code where I'm having this problem and then still be able to replicate it.<br> The app I'm working on is small and although I'm not comfortable exposing it as a public repo I would be open to creating a private repo and give access to the required people that would investigate this.</p> <p dir="auto">Alternatively, I'm open to getting on a discord call and demo the problem and provide any further information.</p> <h3 dir="auto">Problem description</h3> <p dir="auto">When I run the tests I get a similar problem to what is reported in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1548116810" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/20203" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/20203/hovercard" href="https://github.com/microsoft/playwright/issues/20203">#20203</a>. See the images below where the spacing between <code class="notranslate">m</code> and <code class="notranslate">i</code> in the word <code class="notranslate">academic</code> is not deterministic will sometimes make tests fail.</p> <p dir="auto">Diff:<br> <a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/15857357/246894964-d21fa0f2-45c2-4aba-8c3b-80e7d4c15ebf.png"><img src="https://user-images.githubusercontent.com/15857357/246894964-d21fa0f2-45c2-4aba-8c3b-80e7d4c15ebf.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Actual:<br> <a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/15857357/246895037-89c4de18-4f76-4357-855a-3580fb4764d2.png"><img src="https://user-images.githubusercontent.com/15857357/246895037-89c4de18-4f76-4357-855a-3580fb4764d2.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">Expected:<br> <a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/15857357/246895074-707eaa28-d959-49cd-ace4-918d7af96667.png"><img src="https://user-images.githubusercontent.com/15857357/246895074-707eaa28-d959-49cd-ace4-918d7af96667.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">I've tried the workaround proposed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1548116810" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/20203" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/20203/hovercard" href="https://github.com/microsoft/playwright/issues/20203">#20203</a> but it didn't work for my case.<br> So far, the only workaround I found that seems reliably work is to do <code class="notranslate">await page.waitForTimeout(1500);</code> before I do <code class="notranslate">await expect(page).toHaveScreenshot();</code>. On my PC, I've tried 500ms and 1s and those always fail but the 1.5s seems to always be successful so far.</p> <p dir="auto">Any suggestions?</p> <h3 dir="auto">Notes</h3> <ul dir="auto"> <li>Initially this test would sometimes pass and sometimes fail. The way I got it to always fail when running locally was to run with <code class="notranslate">workers: 1</code> instead of <code class="notranslate">workers: undefined</code>.</li> <li>When running locally, I'm on a <code class="notranslate">Windows 10</code> OS and I run the test via the docker image <code class="notranslate">mcr.microsoft.com/playwright:v1.35.1-jammy</code>.</li> <li>When running this test on the CI server, the CI server uses an Ubuntu distro and it almost never fails. In the times where it fails, the fact that I have <code class="notranslate">retries</code> set to <code class="notranslate">2</code> in the playwright config when it's running on CI was enough to avoid a flaky pipeline.</li> </ul>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: 1.32.3-beta-1681174265000</li> <li>Operating System: Windows 11</li> <li>Browser: [All, Chromium, Firefox, WebKit]</li> <li>Other info:</li> </ul> <p dir="auto"><strong>Config file</strong></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts import { defineConfig, devices } from '@playwright/test'; export default defineConfig({ { name: 'android.chrome', use: { ...devices['Pixel 5'], }, }, { name: 'ipad.safari', use: { ...devices['iPad (gen 6)'], }, } }); ```mdc.login.page.ts import { expect, Locator, Page } from '@playwright/test'; const baseURL = String(process.env.URL); const username = String(process.env.userid); console.log(username); const password = String(process.env.password); const Title = String(process.env.Title); export class mdcloginPage { readonly page: Page; readonly username_field : Locator; readonly password_field : Locator; readonly login_button : Locator; // Locators constructor(page: Page) { this.page = page; this.username_field = page.locator('input[name=&quot;username&quot;]'); this.password_field = page.locator('input[name=&quot;password&quot;]'); this.login_button = page.getByRole('button', { name: 'Login' }); } //Actions public async logintomdc() { await this.page.goto(baseURL); await expect((this.page),'checking page title').toHaveTitle(Title); await this.page.screenshot({path: 'screenshot/title.png'}); /*await this.username_field.waitFor({state: &quot;visible&quot;});*/ await this.username_field.type(username); await this.password_field.fill(password); await this.login_button.click(); } **Test file (self-contained)** ```MDC.spec.ts import { test, expect } from &quot;@playwright/test&quot;; import {mdcloginPage} from &quot;./mdc/mdc.login.page&quot;; test.describe('MDC Regression', async() =&gt; { test('mdc tc1', async ({ page }) =&gt; { const mdclogin = new mdcloginPage(page); mdclogin.logintomdc(); }); })"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'android.chrome'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Pixel 5'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">'ipad.safari'</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'iPad (gen 6)'</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-s">``</span><span class="pl-s">`mdc.login.page.ts</span> <span class="pl-s">import { expect, Locator, Page } from '@playwright/test';</span> <span class="pl-s"></span> <span class="pl-s">const baseURL = String(process.env.URL);</span> <span class="pl-s">const username = String(process.env.userid);</span> <span class="pl-s">console.log(username);</span> <span class="pl-s">const password = String(process.env.password);</span> <span class="pl-s">const Title = String(process.env.Title);</span> <span class="pl-s"></span> <span class="pl-s"></span> <span class="pl-s">export class mdcloginPage {</span> <span class="pl-s"> </span> <span class="pl-s"> readonly page: Page;</span> <span class="pl-s"> readonly username_field : Locator;</span> <span class="pl-s"> readonly password_field : Locator;</span> <span class="pl-s"> readonly login_button : Locator;</span> <span class="pl-s"> </span> <span class="pl-s"> // Locators</span> <span class="pl-s"></span> <span class="pl-s"> constructor(page: Page) {</span> <span class="pl-s"> this.page = page;</span> <span class="pl-s"> this.username_field = page.locator('input[name="username"]');</span> <span class="pl-s"> this.password_field = page.locator('input[name="password"]');</span> <span class="pl-s"> this.login_button = page.getByRole('button', { name: 'Login' });</span> <span class="pl-s"> }</span> <span class="pl-s"> </span> <span class="pl-s"> //Actions</span> <span class="pl-s"> public async logintomdc() {</span> <span class="pl-s"> await this.page.goto(baseURL);</span> <span class="pl-s"> </span> <span class="pl-s"> await expect((this.page),'checking page title').toHaveTitle(Title);</span> <span class="pl-s"> await this.page.screenshot({path: 'screenshot/title.png'});</span> <span class="pl-s"> /*await this.username_field.waitFor({state: "visible"});*/</span> <span class="pl-s"> await this.username_field.type(username);</span> <span class="pl-s"> await this.password_field.fill(password);</span> <span class="pl-s"> await this.login_button.click(); </span> <span class="pl-s"></span> <span class="pl-s"> }</span> <span class="pl-s">**Test file (self-contained)**</span> <span class="pl-s"></span> <span class="pl-s">`</span><span class="pl-s">``</span><span class="pl-c1">MDC</span><span class="pl-kos">.</span><span class="pl-c1">spec</span><span class="pl-kos">.</span><span class="pl-c1">ts</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"@playwright/test"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">mdcloginPage</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./mdc/mdc.login.page"</span><span class="pl-kos">;</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">describe</span><span class="pl-kos">(</span><span class="pl-s">'MDC Regression'</span><span class="pl-kos">,</span> <span class="pl-k">async</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'mdc tc1'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">mdclogin</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-s1">mdcloginPage</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">mdclogin</span><span class="pl-kos">.</span><span class="pl-en">logintomdc</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> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">Navigate to url and fill username, password<br> click on login button.</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">it's closing the browser before it's loaded properly with below error</p> <p dir="auto">before hooks<br> page goto(url)<br> after hooks<br> Test finished within timeout of 30000ms, but tearing down "context" ran out of time.<br> Please allow more time for the test, since teardown is attributed towards the test timeout budget.</p> <p dir="auto"><strong>But when not following pom and I write the script in main test it's working fine</strong><br> MDC.spec.ts<br> import { test, expect } from "@playwright/test";<br> import {mdcloginPage} from "./mdc/mdc.login.page";</p> <p dir="auto">test.describe('MDC Regression', async() =&gt; {</p> <p dir="auto">test('mdc tc1', async ({ page }) =&gt; {</p> <p dir="auto">const baseURL = String(process.env.URL);<br> const username1 = String(process.env.userid);<br> const password = String(process.env.password);<br> const Title = String(process.env.Title);</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" await page.goto(baseURL) ; // Expect a title &quot;to contain&quot; a substring. await expect((page),'checking page title').toHaveTitle(Title); await page.screenshot({path: 'screenshot/title.png'}) await page.locator('input[name=&quot;username&quot;]').fill(username1); await page.locator('input[name=&quot;username&quot;]').press('Tab'); await page.locator('input[name=&quot;password&quot;]').fill(password); await page.getByRole('button', { name: 'Login' }).click();"><pre class="notranslate"><code class="notranslate"> await page.goto(baseURL) ; // Expect a title "to contain" a substring. await expect((page),'checking page title').toHaveTitle(Title); await page.screenshot({path: 'screenshot/title.png'}) await page.locator('input[name="username"]').fill(username1); await page.locator('input[name="username"]').press('Tab'); await page.locator('input[name="password"]').fill(password); await page.getByRole('button', { name: 'Login' }).click(); </code></pre></div> <p dir="auto">});<br> })</p> <p dir="auto">Above case it's working as expected</p> <p dir="auto">before Hooks<br> login to page<br> after Hooks</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">docker_container</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible --version ansible 2.2.1.0 config file = /Users/alebedev/projects/ansible/ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible --version ansible 2.2.1.0 config file = /Users/alebedev/projects/ansible/ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">port_published fails when uses a port range as an argument</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Starting container docker_container: name: pool image: pool privileged: true network_mode: bridge exposed_ports: - 8080:8080 - 5000-5040:5000-5040 published_ports: - 8080:8080 - 5000-5040:5000-5040 detach: true restart_policy: on-failure interactive: true state: started"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Starting container</span> <span class="pl-ent">docker_container</span>: <span class="pl-ent">name</span>: <span class="pl-s">pool</span> <span class="pl-ent">image</span>: <span class="pl-s">pool</span> <span class="pl-ent">privileged</span>: <span class="pl-c1">true</span> <span class="pl-ent">network_mode</span>: <span class="pl-s">bridge</span> <span class="pl-ent">exposed_ports</span>: - <span class="pl-c1">8080:8080</span> - <span class="pl-s">5000-5040:5000-5040</span> <span class="pl-ent">published_ports</span>: - <span class="pl-c1">8080:8080</span> - <span class="pl-s">5000-5040:5000-5040</span> <span class="pl-ent">detach</span>: <span class="pl-c1">true</span> <span class="pl-ent">restart_policy</span>: <span class="pl-s">on-failure</span> <span class="pl-ent">interactive</span>: <span class="pl-c1">true</span> <span class="pl-ent">state</span>: <span class="pl-s">started</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Expecting that container will be up and running with a published port range accordingly to official documentation from docker:<br> <a href="https://docs.docker.com/engine/reference/run/#/expose-incoming-ports" rel="nofollow">https://docs.docker.com/engine/reference/run/#/expose-incoming-ports</a></p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [pool]: FAILED! =&gt; { &quot;changed&quot;: false, &quot;failed&quot;: true, &quot;invocation&quot;: { &quot;module_name&quot;: &quot;docker_container&quot; }, &quot;module_stderr&quot;: &quot;OpenSSH_7.3p1, LibreSSL 2.4.1\r\ndebug1: Reading configuration data /Users/alebedev/.ssh/config\r\ndebug1: /Users/alebedev/.ssh/config line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 20: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 33959\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 127.0.0.1 closed.\r\n&quot;, &quot;module_stdout&quot;: &quot;\r\nTraceback (most recent call last):\r\n File \&quot;/tmp/ansible_oqSXjO/ansible_module_docker_container.py\&quot;, line 2007, in &lt;module&gt;\r\n main()\r\n File \&quot;/tmp/ansible_oqSXjO/ansible_module_docker_container.py\&quot;, line 2000, in main\r\n cm = ContainerManager(client)\r\n File \&quot;/tmp/ansible_oqSXjO/ansible_module_docker_container.py\&quot;, line 1644, in __init__\r\n self.parameters = TaskParameters(client)\r\n File \&quot;/tmp/ansible_oqSXjO/ansible_module_docker_container.py\&quot;, line 759, in __init__\r\n self.published_ports = self._parse_publish_ports()\r\n File \&quot;/tmp/ansible_oqSXjO/ansible_module_docker_container.py\&quot;, line 968, in _parse_publish_ports\r\n container_port = int(parts[-1])\r\nValueError: invalid literal for int() with base 10: '5000-5040'\r\n&quot; } MSG: MODULE FAILURE"><pre class="notranslate"><code class="notranslate">fatal: [pool]: FAILED! =&gt; { "changed": false, "failed": true, "invocation": { "module_name": "docker_container" }, "module_stderr": "OpenSSH_7.3p1, LibreSSL 2.4.1\r\ndebug1: Reading configuration data /Users/alebedev/.ssh/config\r\ndebug1: /Users/alebedev/.ssh/config line 1: Applying options for *\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 20: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 33959\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to 127.0.0.1 closed.\r\n", "module_stdout": "\r\nTraceback (most recent call last):\r\n File \"/tmp/ansible_oqSXjO/ansible_module_docker_container.py\", line 2007, in &lt;module&gt;\r\n main()\r\n File \"/tmp/ansible_oqSXjO/ansible_module_docker_container.py\", line 2000, in main\r\n cm = ContainerManager(client)\r\n File \"/tmp/ansible_oqSXjO/ansible_module_docker_container.py\", line 1644, in __init__\r\n self.parameters = TaskParameters(client)\r\n File \"/tmp/ansible_oqSXjO/ansible_module_docker_container.py\", line 759, in __init__\r\n self.published_ports = self._parse_publish_ports()\r\n File \"/tmp/ansible_oqSXjO/ansible_module_docker_container.py\", line 968, in _parse_publish_ports\r\n container_port = int(parts[-1])\r\nValueError: invalid literal for int() with base 10: '5000-5040'\r\n" } MSG: MODULE FAILURE </code></pre></div>
<h5 dir="auto">Issue Type:</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">Ansible Version:</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2.0.0.1"><pre class="notranslate"><code class="notranslate">2.0.0.1 </code></pre></div> <h5 dir="auto">Summary:</h5> <p dir="auto">This isn't an issue for sure, maybe a feature idea. I want to lint a playbook to detect following few among many other possibilities:</p> <ol dir="auto"> <li>Undefined variable</li> <li>Unused variable</li> <li>See if vars defined, when case-ignored, are same( <em>conflicting vars</em> hereafter)</li> </ol> <p dir="auto">I'm not able to figure out what is the good way to do this? I don't want to re-invent the wheel, in the sense that:</p> <ol dir="auto"> <li>I don't want to do text processing. Ansible does this to accomplish its task.</li> <li>Hooks or callbacks if I'm not wrong are couple of levels higher than where I think my solution should hop in.</li> </ol> <p dir="auto">My intention is to write a tool that seamlessly, and optionally, works with ansible. I would like not to modify ansible's code if I can do without.</p> <p dir="auto">Any help or hack or suggestion is appreciated. TIA.</p>
0
<p dir="auto">[Bootstrap 3.0.3]</p> <p dir="auto">My html (cut through the body)</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;body&gt; &lt;nav class=&quot;navbar navbar-fixed-top navbar-inverse&quot; role=&quot;navigation&quot;&gt; &lt;!-- Brand and toggle get grouped for better mobile display --&gt; &lt;div class=&quot;navbar-header&quot;&gt; &lt;button type=&quot;button&quot; class=&quot;navbar-toggle&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#bs-example-navbar-collapse-1&quot;&gt; &lt;span class=&quot;sr-only&quot;&gt;Toggle navigation&lt;/span&gt; &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt; &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt; &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt; &lt;/button&gt; &lt;a class=&quot;navbar-brand&quot; href=&quot;#&quot;&gt;Brand&lt;/a&gt; &lt;/div&gt; &lt;!-- Collect the nav links, forms, and other content for toggling --&gt; &lt;div class=&quot;collapse navbar-collapse&quot; id=&quot;bs-example-navbar-collapse-1&quot;&gt; &lt;ul class=&quot;nav navbar-nav&quot;&gt; &lt;li class=&quot;active&quot;&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt; &lt;li class=&quot;dropdown&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;dropdown-toggle&quot; data-toggle=&quot;dropdown&quot;&gt;Dropdown &lt;b class=&quot;caret&quot;&gt;&lt;/b&gt;&lt;/a&gt; &lt;ul class=&quot;dropdown-menu&quot;&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Action&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Another action&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Something else here&lt;/a&gt;&lt;/li&gt; &lt;li class=&quot;divider&quot;&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Separated link&lt;/a&gt;&lt;/li&gt; &lt;li class=&quot;divider&quot;&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;One more separated link&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; &lt;form class=&quot;navbar-form navbar-left&quot; role=&quot;search&quot;&gt; &lt;div class=&quot;form-group&quot;&gt; &lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Search&quot;&gt; &lt;/div&gt; &lt;button type=&quot;submit&quot; class=&quot;btn btn-default&quot;&gt;Submit&lt;/button&gt; &lt;/form&gt; &lt;ul class=&quot;nav navbar-nav navbar-right&quot;&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt; &lt;li class=&quot;dropdown&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;dropdown-toggle&quot; data-toggle=&quot;dropdown&quot;&gt;Dropdown &lt;b class=&quot;caret&quot;&gt;&lt;/b&gt;&lt;/a&gt; &lt;ul class=&quot;dropdown-menu&quot;&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Action&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Another action&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Something else here&lt;/a&gt;&lt;/li&gt; &lt;li class=&quot;divider&quot;&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Separated link&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;!-- /.navbar-collapse --&gt; &lt;/nav&gt; &lt;/body&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">nav</span> <span class="pl-c1">class</span>="<span class="pl-s">navbar navbar-fixed-top navbar-inverse</span>" <span class="pl-c1">role</span>="<span class="pl-s">navigation</span>"<span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- Brand and toggle get grouped for better mobile display --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">navbar-header</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">button</span>" <span class="pl-c1">class</span>="<span class="pl-s">navbar-toggle</span>" <span class="pl-c1">data-toggle</span>="<span class="pl-s">collapse</span>" <span class="pl-c1">data-target</span>="<span class="pl-s">#bs-example-navbar-collapse-1</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">sr-only</span>"<span class="pl-kos">&gt;</span>Toggle navigation<span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">icon-bar</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">icon-bar</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">icon-bar</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">class</span>="<span class="pl-s">navbar-brand</span>" <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Brand<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- Collect the nav links, forms, and other content for toggling --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">collapse navbar-collapse</span>" <span class="pl-c1">id</span>="<span class="pl-s">bs-example-navbar-collapse-1</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span> <span class="pl-c1">class</span>="<span class="pl-s">nav navbar-nav</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">class</span>="<span class="pl-s">active</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Link<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Link<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">class</span>="<span class="pl-s">dropdown</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>" <span class="pl-c1">class</span>="<span class="pl-s">dropdown-toggle</span>" <span class="pl-c1">data-toggle</span>="<span class="pl-s">dropdown</span>"<span class="pl-kos">&gt;</span>Dropdown <span class="pl-kos">&lt;</span><span class="pl-ent">b</span> <span class="pl-c1">class</span>="<span class="pl-s">caret</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">b</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span> <span class="pl-c1">class</span>="<span class="pl-s">dropdown-menu</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Action<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Another action<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Something else here<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">class</span>="<span class="pl-s">divider</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Separated link<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">class</span>="<span class="pl-s">divider</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>One more separated link<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">class</span>="<span class="pl-s">navbar-form navbar-left</span>" <span class="pl-c1">role</span>="<span class="pl-s">search</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">form-group</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">class</span>="<span class="pl-s">form-control</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">Search</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>" <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default</span>"<span class="pl-kos">&gt;</span>Submit<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span> <span class="pl-c1">class</span>="<span class="pl-s">nav navbar-nav navbar-right</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Link<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">class</span>="<span class="pl-s">dropdown</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>" <span class="pl-c1">class</span>="<span class="pl-s">dropdown-toggle</span>" <span class="pl-c1">data-toggle</span>="<span class="pl-s">dropdown</span>"<span class="pl-kos">&gt;</span>Dropdown <span class="pl-kos">&lt;</span><span class="pl-ent">b</span> <span class="pl-c1">class</span>="<span class="pl-s">caret</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">b</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span> <span class="pl-c1">class</span>="<span class="pl-s">dropdown-menu</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Action<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Another action<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Something else here<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">class</span>="<span class="pl-s">divider</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Separated link<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span><span class="pl-c">&lt;!-- /.navbar-collapse --&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">nav</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Navbar <strong>fixed top</strong> that contain right alignment like an example seems to have no right padding.<br> It's close to browser border with no padding like the left alignment.</p> <p dir="auto">Navbar <strong>static top</strong> that contain right alignment seems to generate horizontal scrollbar.</p> <hr> <h4 dir="auto">example for navbar static top</h4> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;body&gt; &lt;nav class=&quot;navbar navbar-static-top navbar-inverse&quot; role=&quot;navigation&quot;&gt; &lt;!-- Brand and toggle get grouped for better mobile display --&gt; &lt;div class=&quot;navbar-header&quot;&gt; &lt;button type=&quot;button&quot; class=&quot;navbar-toggle&quot; data-toggle=&quot;collapse&quot; data-target=&quot;#bs-example-navbar-collapse-1&quot;&gt; &lt;span class=&quot;sr-only&quot;&gt;Toggle navigation&lt;/span&gt; &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt; &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt; &lt;span class=&quot;icon-bar&quot;&gt;&lt;/span&gt; &lt;/button&gt; &lt;a class=&quot;navbar-brand&quot; href=&quot;#&quot;&gt;Brand&lt;/a&gt; &lt;/div&gt; &lt;!-- Collect the nav links, forms, and other content for toggling --&gt; &lt;div class=&quot;collapse navbar-collapse&quot; id=&quot;bs-example-navbar-collapse-1&quot;&gt; &lt;ul class=&quot;nav navbar-nav&quot;&gt; &lt;li class=&quot;active&quot;&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt; &lt;li class=&quot;dropdown&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;dropdown-toggle&quot; data-toggle=&quot;dropdown&quot;&gt;Dropdown &lt;b class=&quot;caret&quot;&gt;&lt;/b&gt;&lt;/a&gt; &lt;ul class=&quot;dropdown-menu&quot;&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Action&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Another action&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Something else here&lt;/a&gt;&lt;/li&gt; &lt;li class=&quot;divider&quot;&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Separated link&lt;/a&gt;&lt;/li&gt; &lt;li class=&quot;divider&quot;&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;One more separated link&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; &lt;form class=&quot;navbar-form navbar-left&quot; role=&quot;search&quot;&gt; &lt;div class=&quot;form-group&quot;&gt; &lt;input type=&quot;text&quot; class=&quot;form-control&quot; placeholder=&quot;Search&quot;&gt; &lt;/div&gt; &lt;button type=&quot;submit&quot; class=&quot;btn btn-default&quot;&gt;Submit&lt;/button&gt; &lt;/form&gt; &lt;ul class=&quot;nav navbar-nav navbar-right&quot;&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link&lt;/a&gt;&lt;/li&gt; &lt;li class=&quot;dropdown&quot;&gt; &lt;a href=&quot;#&quot; class=&quot;dropdown-toggle&quot; data-toggle=&quot;dropdown&quot;&gt;Dropdown &lt;b class=&quot;caret&quot;&gt;&lt;/b&gt;&lt;/a&gt; &lt;ul class=&quot;dropdown-menu&quot;&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Action&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Another action&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Something else here&lt;/a&gt;&lt;/li&gt; &lt;li class=&quot;divider&quot;&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Separated link&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;!-- /.navbar-collapse --&gt; &lt;/nav&gt; &lt;/body&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">nav</span> <span class="pl-c1">class</span>="<span class="pl-s">navbar navbar-static-top navbar-inverse</span>" <span class="pl-c1">role</span>="<span class="pl-s">navigation</span>"<span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- Brand and toggle get grouped for better mobile display --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">navbar-header</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">button</span>" <span class="pl-c1">class</span>="<span class="pl-s">navbar-toggle</span>" <span class="pl-c1">data-toggle</span>="<span class="pl-s">collapse</span>" <span class="pl-c1">data-target</span>="<span class="pl-s">#bs-example-navbar-collapse-1</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">sr-only</span>"<span class="pl-kos">&gt;</span>Toggle navigation<span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">icon-bar</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">icon-bar</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">icon-bar</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">span</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">class</span>="<span class="pl-s">navbar-brand</span>" <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Brand<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-c">&lt;!-- Collect the nav links, forms, and other content for toggling --&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">collapse navbar-collapse</span>" <span class="pl-c1">id</span>="<span class="pl-s">bs-example-navbar-collapse-1</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span> <span class="pl-c1">class</span>="<span class="pl-s">nav navbar-nav</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">class</span>="<span class="pl-s">active</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Link<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Link<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">class</span>="<span class="pl-s">dropdown</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>" <span class="pl-c1">class</span>="<span class="pl-s">dropdown-toggle</span>" <span class="pl-c1">data-toggle</span>="<span class="pl-s">dropdown</span>"<span class="pl-kos">&gt;</span>Dropdown <span class="pl-kos">&lt;</span><span class="pl-ent">b</span> <span class="pl-c1">class</span>="<span class="pl-s">caret</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">b</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span> <span class="pl-c1">class</span>="<span class="pl-s">dropdown-menu</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Action<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Another action<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Something else here<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">class</span>="<span class="pl-s">divider</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Separated link<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">class</span>="<span class="pl-s">divider</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>One more separated link<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">form</span> <span class="pl-c1">class</span>="<span class="pl-s">navbar-form navbar-left</span>" <span class="pl-c1">role</span>="<span class="pl-s">search</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">form-group</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">class</span>="<span class="pl-s">form-control</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">Search</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>" <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default</span>"<span class="pl-kos">&gt;</span>Submit<span class="pl-kos">&lt;/</span><span class="pl-ent">button</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">form</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span> <span class="pl-c1">class</span>="<span class="pl-s">nav navbar-nav navbar-right</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Link<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">class</span>="<span class="pl-s">dropdown</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>" <span class="pl-c1">class</span>="<span class="pl-s">dropdown-toggle</span>" <span class="pl-c1">data-toggle</span>="<span class="pl-s">dropdown</span>"<span class="pl-kos">&gt;</span>Dropdown <span class="pl-kos">&lt;</span><span class="pl-ent">b</span> <span class="pl-c1">class</span>="<span class="pl-s">caret</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">b</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">ul</span> <span class="pl-c1">class</span>="<span class="pl-s">dropdown-menu</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Action<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Another action<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Something else here<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span> <span class="pl-c1">class</span>="<span class="pl-s">divider</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">&gt;</span>Separated link<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">li</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">ul</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span><span class="pl-c">&lt;!-- /.navbar-collapse --&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">nav</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">The navbar right padding is broken when using navbar-fixed-top with Bootstrap 3.0.3.<br> Was working fine with Bootstrap 3.0.2.</p> <p dir="auto">navbar-static-top and navbar-fixed-bottom are probably impacted too.</p> <p dir="auto">Live example: <a href="http://plnkr.co/edit/zn1Pc0?p=preview" rel="nofollow">http://plnkr.co/edit/zn1Pc0?p=preview</a></p> <p dir="auto">With navbar-fixed-top:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/d88857b2752f9c8c13dc7235ccc85d4c317994d715a6900918d09174f2c0f3ac/687474703a2f2f7333302e706f7374696d672e6f72672f716871743134306b682f53637265656e5f53686f745f323031335f31325f30385f61745f355f33325f30375f504d2e706e67"><img src="https://camo.githubusercontent.com/d88857b2752f9c8c13dc7235ccc85d4c317994d715a6900918d09174f2c0f3ac/687474703a2f2f7333302e706f7374696d672e6f72672f716871743134306b682f53637265656e5f53686f745f323031335f31325f30385f61745f355f33325f30375f504d2e706e67" alt="With navbar-fixed-top" data-canonical-src="http://s30.postimg.org/qhqt140kh/Screen_Shot_2013_12_08_at_5_32_07_PM.png" style="max-width: 100%;"></a></p> <p dir="auto">Without navbar-fixed-top:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/b9f744b05105f2e81a1bd31025d9ece20d875ef7476f42a813a9f592dcdfe4fd/687474703a2f2f7333302e706f7374696d672e6f72672f796272656d693864642f53637265656e5f53686f745f323031335f31325f30385f61745f355f33325f33305f504d2e706e67"><img src="https://camo.githubusercontent.com/b9f744b05105f2e81a1bd31025d9ece20d875ef7476f42a813a9f592dcdfe4fd/687474703a2f2f7333302e706f7374696d672e6f72672f796272656d693864642f53637265656e5f53686f745f323031335f31325f30385f61745f355f33325f33305f504d2e706e67" alt="Without navbar-fixed-top" data-canonical-src="http://s30.postimg.org/ybremi8dd/Screen_Shot_2013_12_08_at_5_32_30_PM.png" style="max-width: 100%;"></a></p> <p dir="auto">The issue is most probably related to this commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/5a0365524d8a190c718bcb4950c423c9bef75bd9/hovercard" href="https://github.com/twbs/bootstrap/commit/5a0365524d8a190c718bcb4950c423c9bef75bd9"><tt>5a03655</tt></a></p> <p dir="auto">Version 3.0.3 contains <a href="https://github.com/twbs/bootstrap/blob/v3.0.3/less/navbar.less#L80">the following code</a>:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // Undo the collapse side padding for navbars with containers to ensure // alignment of right-aligned contents. .navbar-fixed-top &amp;, .navbar-static-top &amp;, .navbar-fixed-bottom &amp; { padding-left: 0; padding-right: 0; }"><pre class="notranslate"> <span class="pl-c">// Undo the collapse side padding for navbars with containers to ensure</span> <span class="pl-c">// alignment of right-aligned contents.</span> <span class="pl-kos">.</span><span class="pl-s1">navbar</span><span class="pl-c1">-</span><span class="pl-s1">fixed</span><span class="pl-c1">-</span><span class="pl-s1">top</span> <span class="pl-c1">&amp;</span><span class="pl-kos">,</span> <span class="pl-kos">.</span><span class="pl-c1">navbar</span><span class="pl-c1">-</span><span class="pl-s1">static</span><span class="pl-c1">-</span><span class="pl-s1">top</span> <span class="pl-c1">&amp;</span><span class="pl-kos">,</span> <span class="pl-kos">.</span><span class="pl-c1">navbar</span><span class="pl-c1">-</span><span class="pl-s1">fixed</span><span class="pl-c1">-</span><span class="pl-s1">bottom</span> <span class="pl-c1">&amp;</span> <span class="pl-kos">{</span> <span class="pl-s1">padding</span><span class="pl-c1">-</span><span class="pl-c1">left</span>: <span class="pl-c1">0</span><span class="pl-kos"></span><span class="pl-kos">;</span> <span class="pl-s1">padding</span><span class="pl-c1">-</span><span class="pl-s1">right</span>: <span class="pl-c1">0</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">3.0.2 <a href="https://github.com/twbs/bootstrap/blob/v3.0.2/less/navbar.less#L80">does not</a>.</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/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">TextField Underline should be hidden when I mention <code class="notranslate">underlineStyle={{display: 'none'}}</code></p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Nothing changes for the TextField UnderLine</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;TextField placeholder=&quot;Search here&quot; inputClassName={classes.input} className={classes.searchField} margin=&quot;normal&quot; underlineStyle={{display: 'none'}} /&gt; "><pre class="notranslate"> <span class="pl-kos">&lt;</span><span class="pl-ent">TextField</span> <span class="pl-c1">placeholder</span>="<span class="pl-s">Search here</span>" <span class="pl-c1">inputClassName</span>=<span class="pl-s">{classes.input}</span> <span class="pl-c1">className</span>=<span class="pl-s">{classes.searchField}</span> <span class="pl-c1">margin</span>="<span class="pl-s">normal</span>" <span class="pl-c1">underlineStyle</span>=<span class="pl-s">{{display:</span> 'none'}} /&gt;</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.7</td> </tr> <tr> <td>React</td> <td>15.6.1</td> </tr> <tr> <td>browser</td> <td>chrome</td> </tr> </tbody> </table>
<p dir="auto">Like Select does, It'd be useful to allow TextField to receive a custom Input component.</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">Passing a custom Input element via the <code class="notranslate">input</code> prop.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;TextField label=&quot;Name&quot; input={&lt;CustomInput name=&quot;amount&quot; id=&quot;amount-simple&quot; /&gt;} /&gt;"><pre class="notranslate"><code class="notranslate">&lt;TextField label="Name" input={&lt;CustomInput name="amount" id="amount-simple" /&gt;} /&gt; </code></pre></div> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Having to stick to the default Mui Input</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;TextField label=&quot;Name&quot; /&gt;"><pre class="notranslate"><code class="notranslate">&lt;TextField label="Name" /&gt; </code></pre></div> <h2 dir="auto">Context</h2> <p dir="auto">My custom Input shows a specific icon depending on the <code class="notranslate">error</code> prop</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.31</td> </tr> </tbody> </table>
0
<p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 08/06/2020 05:42:51<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)<br> <a href="https://github.com/microsoft/PowerToys/files/5034036/2020-08-06.txt">2020-08-06.txt</a></p>
<p dir="auto">Popup tells me to give y'all this.</p> <p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p> <p dir="auto">Version: 1.0.0<br> OS Version: Microsoft Windows NT 10.0.19041.0<br> IntPtr Length: 8<br> x64: True<br> Date: 07/31/2020 17:29:59<br> Exception:<br> System.ObjectDisposedException: Cannot access a disposed object.<br> Object name: 'Timer'.<br> at System.Timers.Timer.set_Enabled(Boolean value)<br> at System.Timers.Timer.Start()<br> at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br> at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br> at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br> at System.Windows.UIElement.UpdateIsVisibleCache()<br> at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br> at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br> at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br> at System.Windows.Window.SetRootVisual()<br> at System.Windows.Window.SetRootVisualAndUpdateSTC()<br> at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br> at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br> at System.Windows.Window.CreateSourceWindowDuringShow()<br> at System.Windows.Window.SafeCreateWindowDuringShow()<br> at System.Windows.Window.ShowHelper(Object booleanBox)<br> at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br> at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
1
<p dir="auto">from celery import Celeryapp = Celery()app.conf.update ( enable_utc=True, timezone='UTC')app.conf.beat_schedule = { 'test': { 'task': 'test', 'schedule': 5, }}@app.task(bind=True, name='test')def test(self): if self.app.finalized: raise ValueError("APP finalized.")</p> <h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>: v4.3.0</p> <details> <summary><b><code class="notranslate">celery -A example worker -B -E --loglevel=info</code> Output:</b></summary> <p dir="auto"> </p><p dir="auto">-------------- celery@user v4.3.0 (rhubarb)<br> ---- **** -----<br> --- * *** * -- Linux-5.2.11-100.fc29.x86_64-x86_64-with-fedora-29-Twenty_Nine 2019-09-19 16:57:03<br> -- * - **** ---</p> <ul dir="auto"> <li>** ---------- [config]</li> <li>** ---------- .&gt; app: <strong>main</strong>:0x7f88ce002978</li> <li>** ---------- .&gt; transport: amqp://guest:**<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/localhost/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/localhost">@localhost</a>:5672//</li> <li>** ---------- .&gt; results: disabled://</li> <li>*** --- * --- .&gt; concurrency: 4 (prefork)<br> -- ******* ---- .&gt; task events: ON<br> --- ***** -----<br> -------------- [queues]<br> .&gt; celery exchange=celery(direct) key=celery</li> </ul> <p dir="auto">[tasks]<br> . test</p> <p dir="auto">[2019-09-19 16:57:03,962: INFO/Beat] beat: Starting...<br> [2019-09-19 16:57:03,993: INFO/Beat] Scheduler: Sending due task test (test)<br> [2019-09-19 16:57:04,083: INFO/MainProcess] Connected to amqp://guest:**@127.0.0.1:5672//<br> [2019-09-19 16:57:04,096: INFO/MainProcess] mingle: searching for neighbors<br> [2019-09-19 16:57:05,149: INFO/MainProcess] mingle: all alone<br> [2019-09-19 16:57:05,186: INFO/MainProcess] celery@user ready.<br> [2019-09-19 16:57:05,186: INFO/MainProcess] Received task: test[73cb77be-6111-4a61-a882-32b4ccd7890e]<br> [2019-09-19 16:57:05,290: ERROR/ForkPoolWorker-5] Task test[73cb77be-6111-4a61-a882-32b4ccd7890e] raised unexpected: ValueError('APP finalized.',)<br> Traceback (most recent call last):<br> File "/misc-VAl3-rUJ/lib/python3.6/site-packages/celery/app/trace.py", line 385, in trace_task<br> R = retval = fun(*args, **kwargs)<br> File "/misc-VAl3-rUJ/lib/python3.6/site-packages/celery/app/trace.py", line 648, in <strong>protected_call</strong><br> return self.run(*args, **kwargs)<br> File "/home/.../example.py", line 19, in test<br> raise ValueError("APP finalized.")<br> ValueError: APP finalized.</p> <p dir="auto"></p> </details> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-i https://pypi.org/simple amqp==2.5.1 billiard==3.6.1.0 celery==4.3.0 importlib-metadata==0.23 kombu==4.6.4 more-itertools==7.2.0 pytz==2019.2 vine==1.3.0 zipp==0.6.0"><pre class="notranslate"><code class="notranslate">-i https://pypi.org/simple amqp==2.5.1 billiard==3.6.1.0 celery==4.3.0 importlib-metadata==0.23 kombu==4.6.4 more-itertools==7.2.0 pytz==2019.2 vine==1.3.0 zipp==0.6.0 </code></pre></div> <p dir="auto"></p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery import Celery app = Celery() app.conf.update ( enable_utc=True, timezone='UTC') app.conf.beat_schedule = { 'test': { 'task': 'test', 'schedule': 5, } } @app.task(bind=True, name='test') def test(self): if self.app.finalized: raise ValueError(&quot;APP finalized.&quot;)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>() <span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-en">update</span> ( <span class="pl-s1">enable_utc</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">timezone</span><span class="pl-c1">=</span><span class="pl-s">'UTC'</span>) <span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">beat_schedule</span> <span class="pl-c1">=</span> { <span class="pl-s">'test'</span>: { <span class="pl-s">'task'</span>: <span class="pl-s">'test'</span>, <span class="pl-s">'schedule'</span>: <span class="pl-c1">5</span>, } } <span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'test'</span>)</span> <span class="pl-k">def</span> <span class="pl-en">test</span>(<span class="pl-s1">self</span>): <span class="pl-k">if</span> <span class="pl-s1">self</span>.<span class="pl-s1">app</span>.<span class="pl-s1">finalized</span>: <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">"APP finalized."</span>)</pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">I expected that the app.finalized be false, once that the app itself is running this task.</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">Flag is True</p>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="268480260" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4341" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/4341/hovercard" href="https://github.com/celery/celery/issues/4341">#4341</a></li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="268480260" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4341" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/4341/hovercard" href="https://github.com/celery/celery/issues/4341">#4341</a></li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">We are using <code class="notranslate">celery==4.3.0</code> and seeing the exact same closed issue at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="268480260" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4341" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/4341/hovercard" href="https://github.com/celery/celery/issues/4341">#4341</a></p> <p dir="auto">Essentially, the exponential backoff retry is defaulting to 180s: <code class="notranslate">Retry in 180s</code>.</p> <p dir="auto">Has this feature actually been implemented in Celery?</p>
0
<h3 dir="auto">Description</h3> <p dir="auto"><code class="notranslate">RMSPropOptimizer</code> does not work with models utilizing embedding layers, which appears to be a consequence of it not implementing <code class="notranslate">_apply_sparse</code>. The other optimizers all implement <code class="notranslate">_apply_sparse</code>, so I assume this is an oversight.</p> <h3 dir="auto">Environment info</h3> <p dir="auto">Operating System: Ubuntu 14.04 LTS<br> Installed from source with hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/03bff43060229357cbe2cc1659e7d129c2799b06/hovercard" href="https://github.com/tensorflow/tensorflow/commit/03bff43060229357cbe2cc1659e7d129c2799b06"><tt>03bff43</tt></a></p> <h3 dir="auto">Steps to reproduce</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np import tensorflow as tf sess = tf.Session() weights = tf.get_variable('weights', [100, 32], 'float32', trainable=True) words = tf.constant(np.arange(100, dtype='int32')) logits = tf.nn.embedding_lookup(weights, words) labels = tf.constant(np.arange(100, dtype='int64') % 32) loss = tf.nn.sparse_softmax_cross_entropy_with_logits(logits, labels) optimizer = tf.train.RMSPropOptimizer(0.001) step = optimizer.minimize(loss)"><pre class="notranslate"><code class="notranslate">import numpy as np import tensorflow as tf sess = tf.Session() weights = tf.get_variable('weights', [100, 32], 'float32', trainable=True) words = tf.constant(np.arange(100, dtype='int32')) logits = tf.nn.embedding_lookup(weights, words) labels = tf.constant(np.arange(100, dtype='int64') % 32) loss = tf.nn.sparse_softmax_cross_entropy_with_logits(logits, labels) optimizer = tf.train.RMSPropOptimizer(0.001) step = optimizer.minimize(loss) </code></pre></div> <h3 dir="auto">Logs</h3> <p dir="auto"><a href="https://github.com/tensorflow/tensorflow/files/147495/log.txt">log.txt</a></p>
<p dir="auto">It seems that tf.nce_loss is not compatible with the optimizers RMSProp, ADAGRAD and Momentum. (while SGD, ADAM and FTRL works fine).</p> <p dir="auto">When using rmsprop, I get this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" optimizer = tf.train.RMSPropOptimizer(learning_rate = learning_rate, decay = rms_prop_decay).minimize(nce_loss) File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py&quot;, line 167, in minimize name=name) File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py&quot;, line 256, in apply_gradients update_ops.append(self._apply_sparse(grad, var)) File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/rmsprop.py&quot;, line 81, in _apply_sparse raise NotImplementedError() NotImplementedError"><pre class="notranslate"><code class="notranslate"> optimizer = tf.train.RMSPropOptimizer(learning_rate = learning_rate, decay = rms_prop_decay).minimize(nce_loss) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py", line 167, in minimize name=name) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py", line 256, in apply_gradients update_ops.append(self._apply_sparse(grad, var)) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/rmsprop.py", line 81, in _apply_sparse raise NotImplementedError() NotImplementedError </code></pre></div> <p dir="auto">When using adagrad or momentum, I get this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" optimizer = tf.train.MomentumOptimizer(learning_rate, learning_momentum).minimize(nce_loss) File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py&quot;, line 167, in minimize name=name) File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py&quot;, line 256, in apply_gradients update_ops.append(self._apply_sparse(grad, var)) File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/momentum.py&quot;, line 51, in _apply_sparse self._momentum_tensor, use_locking=self._use_locking).op File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/gen_training_ops.py&quot;, line 237, in sparse_apply_momentum name=name) File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/op_def_library.py&quot;, line 633, in apply_op op_def=op_def) File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py&quot;, line 1712, in create_op set_shapes_for_outputs(ret) File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py&quot;, line 1417, in set_shapes_for_outputs shapes = shape_func(op) File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/training_ops.py&quot;, line 111, in _SparseApplyMomentumShape tensor_shape.TensorShape([None]).concatenate(accum_shape[1:])) File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_shape.py&quot;, line 481, in merge_with self.assert_same_rank(other) File &quot;/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_shape.py&quot;, line 524, in assert_same_rank &quot;Shapes %s and %s must have the same rank&quot; % (self, other)) ValueError: Shapes TensorShape([Dimension(128), Dimension(11), Dimension(192)]) and TensorShape([Dimension(None), Dimension(192)]) must have the same rank"><pre class="notranslate"><code class="notranslate"> optimizer = tf.train.MomentumOptimizer(learning_rate, learning_momentum).minimize(nce_loss) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py", line 167, in minimize name=name) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py", line 256, in apply_gradients update_ops.append(self._apply_sparse(grad, var)) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/momentum.py", line 51, in _apply_sparse self._momentum_tensor, use_locking=self._use_locking).op File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/gen_training_ops.py", line 237, in sparse_apply_momentum name=name) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/op_def_library.py", line 633, in apply_op op_def=op_def) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1712, in create_op set_shapes_for_outputs(ret) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1417, in set_shapes_for_outputs shapes = shape_func(op) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/training_ops.py", line 111, in _SparseApplyMomentumShape tensor_shape.TensorShape([None]).concatenate(accum_shape[1:])) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_shape.py", line 481, in merge_with self.assert_same_rank(other) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_shape.py", line 524, in assert_same_rank "Shapes %s and %s must have the same rank" % (self, other)) ValueError: Shapes TensorShape([Dimension(128), Dimension(11), Dimension(192)]) and TensorShape([Dimension(None), Dimension(192)]) must have the same rank </code></pre></div> <p dir="auto">Is that expected?<br> The exact same code works perfectly fine with adam or sgd optimizers, so I do not think I made a mistake when constructing the graph.</p>
1
<p dir="auto">I wanted to make a small script that picks a random file, ask some questions about it and then go to the next file. I don't really need a full-fledged Command, would it be possible to move helpers like Question helper to their own component? (1) Right now i would have to use the Command component and set a default command (because i don't really need a "command"). It would be nice if the question helper just uses the default stdin stdout if those arguments are not supplied. (2). And secondly it would help if the Question helper has some convenient methods to create the questions. (3). I imagine a usage like this:</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$helper = new QuestionHelper(); // pass optional other InputInterface / OutputInterface $colors = $helper-&gt;choice( 'Please select your favorite color (defaults to red)', array('red', 'blue', 'yellow'), 0); // .. $helper -&gt; another question"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>helper</span> = <span class="pl-k">new</span> <span class="pl-v">QuestionHelper</span>(); <span class="pl-c">// pass optional other InputInterface / OutputInterface</span> <span class="pl-s1"><span class="pl-c1">$</span>colors</span> = <span class="pl-s1"><span class="pl-c1">$</span>helper</span>-&gt;<span class="pl-en">choice</span>( <span class="pl-s">'Please select your favorite color (defaults to red)'</span>, <span class="pl-en">array</span>(<span class="pl-s">'red'</span>, <span class="pl-s">'blue'</span>, <span class="pl-s">'yellow'</span>), <span class="pl-c1">0</span>); <span class="pl-c">// .. $helper -&gt; another question</span></pre></div> <p dir="auto">Same for being able to send color output to the console.</p>
<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>yes</td> </tr> <tr> <td>Symfony version</td> <td>latest</td> </tr> </tbody> </table> <p dir="auto"><code class="notranslate">Workflow\Registry</code> accepts only instances of <code class="notranslate">Worflow\Workflow</code> which makes decorating workflows awkward. It would allow for more flexibility if an interface was introduced here.</p>
0
<p dir="auto">Just like <code class="notranslate">isequal(x)</code> returns a function which compares to <code class="notranslate">x</code>, it would be nice that <code class="notranslate">isa(T)</code> returned a function which can be used to test if a value is of type <code class="notranslate">T</code>, that is:</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="isa(::Type{T}) where {T} = x -&gt; isa(x, T)"><pre class="notranslate"><span class="pl-en">isa</span>(<span class="pl-k">::</span><span class="pl-c1">Type{T}</span>) <span class="pl-k">where</span> {T} <span class="pl-k">=</span> x <span class="pl-k">-&gt;</span> <span class="pl-c1">isa</span>(x, T)</pre></div> <p dir="auto">(A user cannot define this method since <code class="notranslate">isa</code> is a built-in function).</p>
<p dir="auto">It would be nice to have a single argument <code class="notranslate">isa</code> for cleaner filtering code.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="filter(x -&gt; !isa(x, AbstractFloat), [1, 2.0]) # could become filter(!isa(AbstractFloat), [1, 2.0])"><pre class="notranslate"><span class="pl-c1">filter</span>(x <span class="pl-k">-&gt;</span> <span class="pl-k">!</span><span class="pl-c1">isa</span>(x, AbstractFloat), [<span class="pl-c1">1</span>, <span class="pl-c1">2.0</span>]) <span class="pl-c"><span class="pl-c">#</span> could become</span> <span class="pl-c1">filter</span>(<span class="pl-k">!</span><span class="pl-c1">isa</span>(AbstractFloat), [<span class="pl-c1">1</span>, <span class="pl-c1">2.0</span>])</pre></div> <p dir="auto">This would provide some consistency with other functions, such as <code class="notranslate">isequal</code>, but since <code class="notranslate">isa</code> is a builtin function, defining other variants doesn't seem trivial.</p> <div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; Core.isa(::Type{T}) where {T} = (x) -&gt; isa(x, T) ERROR: cannot add methods to a builtin function"><pre class="notranslate">julia<span class="pl-k">&gt;</span> Core<span class="pl-k">.</span><span class="pl-en">isa</span>(<span class="pl-k">::</span><span class="pl-c1">Type{T}</span>) <span class="pl-k">where</span> {T} <span class="pl-k">=</span> (x) <span class="pl-k">-&gt;</span> <span class="pl-c1">isa</span>(x, T) ERROR<span class="pl-k">:</span> cannot add methods to a builtin <span class="pl-k">function</span></pre></div>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 4.0.0-pre</li> <li>Operating System / Platform =&gt; Windows 64 Bit</li> <li>Compiler =&gt; MinGW g++ (tdm-1) 5.1.0 from codeblocks</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">I built OpenCV from source using MinGW which was shipped along with codeblocks.<br> My build and install was successful.<br> <a href="https://imgur.com/a/IWFrXc7" rel="nofollow">https://imgur.com/a/IWFrXc7</a></p> <p dir="auto">Now, to check my built library I ran a sample program</p> <h2 dir="auto"><strong>OpenCVTest.cpp</strong></h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include &lt;iostream&gt; #include &lt;opencv2/core/core.hpp&gt; #include &lt;opencv2/highgui/highgui.hpp&gt; #include &lt;opencv2/imgproc/imgproc.hpp&gt; using namespace cv; using namespace std; int main( ) { // Create black empty images Mat image = Mat::zeros( 400, 400, CV_8UC3 ); // Draw a line line( image, Point( 15, 20 ), Point( 70, 50), Scalar( 110, 220, 0 ), 2, 8 ); imshow(&quot;Image&quot;,image); cout&lt;&lt;&quot;******************&quot;; waitKey( 0 ); return(0); } "><pre class="notranslate"><code class="notranslate">#include &lt;iostream&gt; #include &lt;opencv2/core/core.hpp&gt; #include &lt;opencv2/highgui/highgui.hpp&gt; #include &lt;opencv2/imgproc/imgproc.hpp&gt; using namespace cv; using namespace std; int main( ) { // Create black empty images Mat image = Mat::zeros( 400, 400, CV_8UC3 ); // Draw a line line( image, Point( 15, 20 ), Point( 70, 50), Scalar( 110, 220, 0 ), 2, 8 ); imshow("Image",image); cout&lt;&lt;"******************"; waitKey( 0 ); return(0); } </code></pre></div> <p dir="auto">using cmd -</p> <p dir="auto"><code class="notranslate">g++ -std=c++11 OpenCVTest.cpp -llibopencv_core400 -llibopencv_highgui400 -llibopencv_imgproc400</code></p> <p dir="auto">I am able to compile to source code, but on running the program, I am getting a window pop up with <strong>program has stopped working</strong> message</p> <p dir="auto"><a href="https://imgur.com/a/fXihGc8" rel="nofollow">https://imgur.com/a/fXihGc8</a></p> <h5 dir="auto">Steps to reproduce</h5> <ol dir="auto"> <li>Downloaded the source code from github.</li> <li>Using CMake, pointed the source code directory and the build directory.</li> <li>Ran CMake and it generated some file and folders in build directory.</li> <li>Ran <strong>mingw32-make</strong> command in build directory.</li> <li>Ran <strong>mingw32-make install</strong>.</li> <li>Copied the folder <code class="notranslate">opencv2</code> in <code class="notranslate">D:\Programs\OpenCV-Source\build\install\include</code> to <code class="notranslate">C:\Program Files (x86)\CodeBlocks\MinGW\include</code></li> <li>Copied the files (.dll) from <code class="notranslate">D:\Programs\OpenCV-Source\build\install\x86\mingw\bin</code> to <code class="notranslate">C:\Windows\SysWOW64</code></li> <li>Copied the files (.a files) from <code class="notranslate">D:\Programs\OpenCV-Source\build\install\x86\mingw\lib</code> to <code class="notranslate">C:\Program Files (x86)\CodeBlocks\MinGW\lib</code></li> <li>Wrote the above program on FAR Manager.</li> <li>compiled on cmd using <code class="notranslate">g++ -std=c++11 OpenCVTest.cpp -llibopencv_core400 -llibopencv_highgui400 -llibopencv_imgproc400</code></li> <li>produced <code class="notranslate">a.exe</code>. Ran it and got the error.</li> </ol>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; :4.1</li> <li>Operating System / Platform =&gt; :Ubuntu 18.04 x64</li> <li>Compiler =&gt; GCC 7.4, NVCC 10.1</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">problem when loading opencv library, error says realloc(): invalid old size, this happened for opencv_videoio library when either ffmpeg or gstreamer ON, and opencv_highgui library when GTK ON (i haven't tested it with VTK ON), all build are with CUDA enabled (CUDA 10.1), glib2.0-dev</p> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">build opencv with opencv_contrib, CUDA enabled (10.1) and glib2.0, then try to link an executable with opencv_videoio or opencv_highgui (either static or dynamic through dlopen)</p>
0
<h1 dir="auto">Environment</h1> <p dir="auto">Windows build number: 10.0.18362<br> Windows Terminal version (if applicable): 0.6.2951.0<br> Powershell Version: 5.1.18362.145</p> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Enter a PS Session, run some command that will cause the output to scroll past the bottom of the terminal window (for example, Get-Process), exit the PS Session, enter "clear" or "clear-host", then scroll up. Part of the output from the command run in the PS Session will still be present in the scrollback buffer and cannot be removed or cleared without closing the tab.</p> <p dir="auto">Example in code:</p> <div class="highlight highlight-source-powershell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Enter-PSSession 1.1.1.1 for($i = 0; $i -lt 150; $i++){write-host $i} exit clear-host #scroll up in the terminal window"><pre class="notranslate"><span class="pl-c1">Enter-PSSession</span> <span class="pl-c1">1.1</span>.<span class="pl-c1">1.1</span> <span class="pl-k">for</span>(<span class="pl-smi">$i</span> <span class="pl-k">=</span> <span class="pl-c1">0</span>; <span class="pl-smi">$i</span> <span class="pl-k">-lt</span> <span class="pl-c1">150</span>; <span class="pl-smi">$i</span><span class="pl-k">++</span>){<span class="pl-c1">write-host</span> <span class="pl-smi">$i</span>} <span class="pl-k">exit</span> <span class="pl-c1">clear-host</span> <span class="pl-c"><span class="pl-c">#</span>scroll up in the terminal window</span></pre></div> <p dir="auto">The attached screenshot shows the contents of my scrollback buffer after running similar code and then running a clear-output command. You can see the output of the commands and the numbers 0-13 present in the scrollback buffer, as in my particular case the code caused the output window to scroll down 15 lines while in the PS Session. At this point clear and clear-host will not be able to remove these 15 lines of output from the Scrollback Buffer.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/36894453/67905612-f1d09180-fb3f-11e9-93eb-52c66ac894df.png"><img src="https://user-images.githubusercontent.com/36894453/67905612-f1d09180-fb3f-11e9-93eb-52c66ac894df.png" alt="Windows Terminal Powershell Remote Session Bug" style="max-width: 100%;"></a></p> <p dir="auto">Oddly enough it seems the issue is the same even if you run a "clear-host" while still inside of the PS Session. But running a "clear-host" while inside the PS Session <em>does</em> work as long as the output hasn't caused the terminal window to scroll.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Entering a "clear" or "clear-host" command in PowerShell should clear the terminal window, including clearing the scrollback buffer of all output. This is the functionality of the cmdlet if running from a cmd window, the PowerShell app, and PS ISE.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">When using the Windows Terminal to enter a PS session with another host, if the output from that session causes the terminal output to scroll down, upon exiting that PS Session and running a "clear" or "clear-host" command will not clear the first portion of the output from the PS session, equal to the number of lines that the ps session caused the window to scroll down.</p> <h1 dir="auto">Other notes</h1> <p dir="auto">I've tested this with PowerShell 5.1 in Windows 10 from the PowerShell app, cmdhost running powershell, and from PS ISE , it does not seem to occur in any other circumstances outside of the Windows Terminal, so I'm opening this as a Windows Terminal bug. It's not critical, but pretty annoying if doing remote PowerShell work.</p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows NT 10.0.18362.0 Windows Terminal version (if applicable): 0.5.2762.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows NT 10.0.18362.0 Windows Terminal version (if applicable): 0.5.2762.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# open Terminal with powershell # open git repo with more than 100 commits git log -100 # to fill in the entire screen with text Clear-Host # scroll up"><pre class="notranslate"><code class="notranslate"># open Terminal with powershell # open git repo with more than 100 commits git log -100 # to fill in the entire screen with text Clear-Host # scroll up </code></pre></div> <h1 dir="auto">Expected behavior</h1> <p dir="auto">Cannot scroll up, <code class="notranslate">Clear-Host</code> cleared the terminal, all previous output is gone.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Scrolling up shows previous output. This repros with both Powershel 6.2.3 and 5.2.1.<br> This does not happen with the powershell terminal, which correctly removes all previous output.</p>
1
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>:</li> <li><strong>OS</strong> (e.g. from /etc/os-release):</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:<br> I have a host as a storage server and has 1G disk, I created a PV as 20M, and then created a PVC on this PV, but I found that I can write data to the PVC even if the data size is greater than 20M, so how can I guard this? I want to write at most 20M data to this PV, if the data size is greater than 20M, then the write operation should be failed.</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto">The link here points to broken link getting 404<br> <a href="https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md">https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md</a></p> <p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.):<br> no</p> <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):</p> <hr> <p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):</p> <p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p> <p dir="auto"><strong>Environment</strong>:</p> <ul dir="auto"> <li><strong>Cloud provider or hardware configuration</strong>:</li> <li><strong>OS</strong> (e.g. from /etc/os-release):</li> <li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li> <li><strong>Install tools</strong>:</li> <li><strong>Others</strong>:</li> </ul> <p dir="auto"><strong>What happened</strong>:</p> <p dir="auto"><strong>What you expected to happen</strong>:</p> <p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p> <p dir="auto"><strong>Anything else do we need to know</strong>:</p>
0
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if any</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar</li> </ul> <h3 dir="auto">Superset version</h3> <p dir="auto">0.24.0</p> <h3 dir="auto">Expected results</h3> <p dir="auto">I need to show dual axis char but with line and bar chart. Not able to create that in superset</p> <h3 dir="auto">Actual results</h3> <p dir="auto">It should support multi charts</p> <h3 dir="auto">Steps to reproduce</h3> <p dir="auto">Need to see the correlation between 2 variables, but one of them is not continuous, so cannot use a line chart and need a bar chart for its trending.</p>
<p dir="auto">I'm running Superset within a Docker container (tylerfowler version) and on startup I get the message in the subject line, and as per the message I cannot upload a CSV. Here are the container logs. Any thoughts?</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Checking for existing Superset config... No Superset config found, creating from environment Checking for docker-entrypoint Running first time setup for Superset Creating admin user admin logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully Loaded your LOCAL configuration at [/superset/superset_config.py] Recognized Database Authentications. Admin User admin created. /usr/local/lib/python3.8/site-packages/flask_caching/__init__.py:188: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled. warnings.warn( Initializing database logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully /usr/local/lib/python3.8/site-packages/flask_caching/__init__.py:188: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled. warnings.warn( INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume transactional DDL. INFO [alembic.runtime.migration] Running upgrade -&gt; 4e6a06bad7a8, Init INFO [alembic.runtime.migration] Running upgrade 4e6a06bad7a8 -&gt; 5a7bad26f2a7, empty message INFO [alembic.runtime.migration] Running upgrade 5a7bad26f2a7 -&gt; 1e2841a4128, empty message INFO [alembic.runtime.migration] Running upgrade 1e2841a4128 -&gt; 2929af7925ed, TZ offsets in data sources INFO [alembic.runtime.migration] Running upgrade 2929af7925ed -&gt; 289ce07647b, Add encrypted password field INFO [alembic.runtime.migration] Running upgrade 289ce07647b -&gt; 1a48a5411020, adding slug to dash INFO [alembic.runtime.migration] Running upgrade 1a48a5411020 -&gt; 315b3f4da9b0, adding log model INFO [alembic.runtime.migration] Running upgrade 315b3f4da9b0 -&gt; 55179c7f25c7, sqla_descr INFO [alembic.runtime.migration] Running upgrade 55179c7f25c7 -&gt; 12d55656cbca, is_featured /usr/local/lib/python3.8/site-packages/alembic/ddl/sqlite.py:40: UserWarning: Skipping unsupported ALTER for creation of implicit constraintPlease refer to the batch mode feature which allows for SQLite migrations using a copy-and-move strategy. util.warn( INFO [alembic.runtime.migration] Running upgrade 12d55656cbca -&gt; 2591d77e9831, user_id INFO [alembic.runtime.migration] Running upgrade 2591d77e9831 -&gt; 8e80a26a31db, empty message INFO [alembic.runtime.migration] Running upgrade 8e80a26a31db -&gt; 7dbf98566af7, empty message INFO [alembic.runtime.migration] Running upgrade 7dbf98566af7 -&gt; 43df8de3a5f4, empty message INFO [alembic.runtime.migration] Running upgrade 43df8de3a5f4 -&gt; d827694c7555, css templates INFO [alembic.runtime.migration] Running upgrade d827694c7555 -&gt; 430039611635, log more INFO [alembic.runtime.migration] Running upgrade 430039611635 -&gt; 18e88e1cc004, making audit nullable INFO [alembic.runtime.migration] Running upgrade 18e88e1cc004 -&gt; 836c0bf75904, cache_timeouts INFO [alembic.runtime.migration] Running upgrade 18e88e1cc004 -&gt; a2d606a761d9, adding favstar model INFO [alembic.runtime.migration] Running upgrade a2d606a761d9, 836c0bf75904 -&gt; d2424a248d63, empty message INFO [alembic.runtime.migration] Running upgrade d2424a248d63 -&gt; 763d4b211ec9, fixing audit fk INFO [alembic.runtime.migration] Running upgrade d2424a248d63 -&gt; 1d2ddd543133, log dt INFO [alembic.runtime.migration] Running upgrade 1d2ddd543133, 763d4b211ec9 -&gt; fee7b758c130, empty message INFO [alembic.runtime.migration] Running upgrade fee7b758c130 -&gt; 867bf4f117f9, Adding extra field to Database model INFO [alembic.runtime.migration] Running upgrade 867bf4f117f9 -&gt; bb51420eaf83, add schema to table model INFO [alembic.runtime.migration] Running upgrade bb51420eaf83 -&gt; b4456560d4f3, change_table_unique_constraint INFO [alembic.runtime.migration] Running upgrade b4456560d4f3 -&gt; 4fa88fe24e94, owners_many_to_many INFO [alembic.runtime.migration] Running upgrade 4fa88fe24e94 -&gt; c3a8f8611885, Materializing permission INFO [alembic.runtime.migration] Running upgrade c3a8f8611885 -&gt; f0fbf6129e13, Adding verbose_name to tablecolumn INFO [alembic.runtime.migration] Running upgrade f0fbf6129e13 -&gt; 956a063c52b3, adjusting key length INFO [alembic.runtime.migration] Running upgrade 956a063c52b3 -&gt; 1226819ee0e3, Fix wrong constraint on table columns INFO [alembic.runtime.migration] Running upgrade 1226819ee0e3 -&gt; d8bc074f7aad, Add new field 'is_restricted' to SqlMetric and DruidMetric INFO [alembic.runtime.migration] Running upgrade d8bc074f7aad -&gt; 27ae655e4247, Make creator owners INFO [alembic.runtime.migration] Running upgrade 27ae655e4247 -&gt; 960c69cb1f5b, add dttm_format related fields in table_columns INFO [alembic.runtime.migration] Running upgrade 960c69cb1f5b -&gt; f162a1dea4c4, d3format_by_metric INFO [alembic.runtime.migration] Running upgrade f162a1dea4c4 -&gt; ad82a75afd82, Update models to support storing the queries. INFO [alembic.runtime.migration] Running upgrade ad82a75afd82 -&gt; 3c3ffe173e4f, add_sql_string_to_table INFO [alembic.runtime.migration] Running upgrade 3c3ffe173e4f -&gt; 41f6a59a61f2, database options for sql lab INFO [alembic.runtime.migration] Running upgrade 41f6a59a61f2 -&gt; 4500485bde7d, allow_run_sync_async INFO [alembic.runtime.migration] Running upgrade 4500485bde7d -&gt; 65903709c321, allow_dml INFO [alembic.runtime.migration] Running upgrade 41f6a59a61f2 -&gt; 33d996bcc382, update slice model INFO [alembic.runtime.migration] Running upgrade 33d996bcc382, 65903709c321 -&gt; b347b202819b, empty message INFO [alembic.runtime.migration] Running upgrade b347b202819b -&gt; 5e4a03ef0bf0, Add access_request table to manage requests to access datastores. INFO [alembic.runtime.migration] Running upgrade 5e4a03ef0bf0 -&gt; eca4694defa7, sqllab_setting_defaults INFO [alembic.runtime.migration] Running upgrade eca4694defa7 -&gt; ab3d66c4246e, add_cache_timeout_to_druid_cluster INFO [alembic.runtime.migration] Running upgrade eca4694defa7 -&gt; 3b626e2a6783, Sync DB with the models.py. WARNI [root] Constraint must have a name INFO [alembic.runtime.migration] Running upgrade 3b626e2a6783, ab3d66c4246e -&gt; ef8843b41dac, empty message INFO [alembic.runtime.migration] Running upgrade ef8843b41dac -&gt; b46fa1b0b39e, Add json_metadata to the tables table. INFO [alembic.runtime.migration] Running upgrade b46fa1b0b39e -&gt; 7e3ddad2a00b, results_key to query INFO [alembic.runtime.migration] Running upgrade 7e3ddad2a00b -&gt; ad4d656d92bc, Add avg() to default metrics INFO [alembic.runtime.migration] Running upgrade ad4d656d92bc -&gt; c611f2b591b8, dim_spec INFO [alembic.runtime.migration] Running upgrade c611f2b591b8 -&gt; e46f2d27a08e, materialize perms INFO [alembic.runtime.migration] Running upgrade e46f2d27a08e -&gt; f1f2d4af5b90, Enable Filter Select INFO [alembic.runtime.migration] Running upgrade e46f2d27a08e -&gt; 525c854f0005, log_this_plus INFO [alembic.runtime.migration] Running upgrade 525c854f0005, f1f2d4af5b90 -&gt; 6414e83d82b7, empty message INFO [alembic.runtime.migration] Running upgrade 6414e83d82b7 -&gt; 1296d28ec131, Adds params to the datasource (druid) table INFO [alembic.runtime.migration] Running upgrade 1296d28ec131 -&gt; f18570e03440, Add index on the result key to the query table. INFO [alembic.runtime.migration] Running upgrade f18570e03440 -&gt; bcf3126872fc, Add keyvalue table INFO [alembic.runtime.migration] Running upgrade f18570e03440 -&gt; db0c65b146bd, update_slice_model_json INFO [alembic.runtime.migration] Running upgrade db0c65b146bd -&gt; a99f2f7c195a, rewriting url from shortner with new format INFO [alembic.runtime.migration] Running upgrade a99f2f7c195a, bcf3126872fc -&gt; d6db5a5cdb5d, empty message INFO [alembic.runtime.migration] Running upgrade d6db5a5cdb5d -&gt; b318dfe5fb6c, adding verbose_name to druid column INFO [alembic.runtime.migration] Running upgrade d6db5a5cdb5d -&gt; 732f1c06bcbf, add fetch values predicate INFO [alembic.runtime.migration] Running upgrade 732f1c06bcbf, b318dfe5fb6c -&gt; ea033256294a, empty message INFO [alembic.runtime.migration] Running upgrade b318dfe5fb6c -&gt; db527d8c4c78, Add verbose name to DruidCluster and Database INFO [alembic.runtime.migration] Running upgrade db527d8c4c78, ea033256294a -&gt; 979c03af3341, empty message INFO [alembic.runtime.migration] Running upgrade 979c03af3341 -&gt; a6c18f869a4e, query.start_running_time INFO [alembic.runtime.migration] Running upgrade a6c18f869a4e -&gt; 2fcdcb35e487, saved_queries INFO [alembic.runtime.migration] Running upgrade 2fcdcb35e487 -&gt; a65458420354, add_result_backend_time_logging INFO [alembic.runtime.migration] Running upgrade a65458420354 -&gt; ca69c70ec99b, tracking_url INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; a9c47e2c1547, add impersonate_user to dbs INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; ddd6ebdd853b, annotations INFO [alembic.runtime.migration] Running upgrade a9c47e2c1547, ddd6ebdd853b -&gt; d39b1e37131d, empty message INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; 19a814813610, Adding metric warning_text INFO [alembic.runtime.migration] Running upgrade 19a814813610, a9c47e2c1547 -&gt; 472d2f73dfd4, empty message INFO [alembic.runtime.migration] Running upgrade 472d2f73dfd4, d39b1e37131d -&gt; f959a6652acd, empty message INFO [alembic.runtime.migration] Running upgrade f959a6652acd -&gt; 4736ec66ce19, empty message /usr/local/lib/python3.8/site-packages/sqlalchemy/dialects/sqlite/base.py:1920: SAWarning: WARNING: SQL-parsed foreign key constraint '('datasource_name', 'datasources', 'datasource_name')' could not be located in PRAGMA foreign_keys for table metrics util.warn( INFO [alembic.runtime.migration] Running upgrade 4736ec66ce19 -&gt; 67a6ac9b727b, update_spatial_params INFO [alembic.runtime.migration] Running upgrade 67a6ac9b727b -&gt; 21e88bc06c02 INFO [alembic.runtime.migration] Running upgrade 21e88bc06c02 -&gt; e866bd2d4976, smaller_grid Revision ID: e866bd2d4976 Revises: 21e88bc06c02 Create Date: 2018-02-13 08:07:40.766277 INFO [alembic.runtime.migration] Running upgrade e866bd2d4976 -&gt; e68c4473c581, allow_multi_schema_metadata_fetch INFO [alembic.runtime.migration] Running upgrade e68c4473c581 -&gt; f231d82b9b26, empty message INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; bf706ae5eb46, cal_heatmap_metric_to_metrics INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; 30bb17c0dc76, empty message INFO [alembic.runtime.migration] Running upgrade 30bb17c0dc76, bf706ae5eb46 -&gt; c9495751e314, empty message INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; 130915240929, is_sqllab_view INFO [alembic.runtime.migration] Running upgrade 130915240929, c9495751e314 -&gt; 5ccf602336a0, empty message INFO [alembic.runtime.migration] Running upgrade 5ccf602336a0 -&gt; e502db2af7be, add template_params to tables INFO [alembic.runtime.migration] Running upgrade e502db2af7be -&gt; c5756bec8b47, Time grain SQLA INFO [alembic.runtime.migration] Running upgrade c5756bec8b47 -&gt; afb7730f6a9c, remove empty filters INFO [alembic.runtime.migration] Running upgrade afb7730f6a9c -&gt; 80a67c5192fa, single pie chart metric INFO [alembic.runtime.migration] Running upgrade 80a67c5192fa -&gt; bddc498dd179, adhoc filters INFO [alembic.runtime.migration] Running upgrade bddc498dd179 -&gt; 3dda56f1c4c6, Migrate num_period_compare and period_ratio_type INFO [alembic.runtime.migration] Running upgrade 3dda56f1c4c6 -&gt; 1d9e835a84f9, empty message INFO [alembic.runtime.migration] Running upgrade bddc498dd179 -&gt; 4451805bbaa1, remove double percents INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; 705732c70154, empty message INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; fc480c87706c, empty message INFO [alembic.runtime.migration] Running upgrade fc480c87706c -&gt; bebcf3fed1fe, Migrate dashboard position_json data from V1 to V2 INFO [alembic.runtime.migration] Running upgrade bebcf3fed1fe, 705732c70154 -&gt; ec1f88a35cc6, empty message INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; e3970889f38e, empty message INFO [alembic.runtime.migration] Running upgrade 705732c70154, e3970889f38e -&gt; 46ba6aaaac97, empty message INFO [alembic.runtime.migration] Running upgrade 46ba6aaaac97, ec1f88a35cc6 -&gt; c18bd4186f15, empty message INFO [alembic.runtime.migration] Running upgrade c18bd4186f15 -&gt; 7fcdcde0761c, Reduce position_json size by remove extra space and component id prefix INFO [alembic.runtime.migration] Running upgrade 7fcdcde0761c -&gt; 0c5070e96b57, add user attributes table INFO [alembic.runtime.migration] Running upgrade 0c5070e96b57 -&gt; 1a1d627ebd8e, position_json INFO [alembic.runtime.migration] Running upgrade 1a1d627ebd8e -&gt; 55e910a74826, add_metadata_column_to_annotation_model.py INFO [alembic.runtime.migration] Running upgrade 55e910a74826 -&gt; 4ce8df208545, empty message INFO [alembic.runtime.migration] Running upgrade 4ce8df208545 -&gt; 46f444d8b9b7, remove_coordinator_from_druid_cluster_model.py INFO [alembic.runtime.migration] Running upgrade 46f444d8b9b7 -&gt; a61b40f9f57f, remove allow_run_sync INFO [alembic.runtime.migration] Running upgrade a61b40f9f57f -&gt; 6c7537a6004a, models for email reports INFO [alembic.runtime.migration] Running upgrade 6c7537a6004a -&gt; 3e1b21cd94a4, change_owner_to_m2m_relation_on_datasources.py INFO [alembic.runtime.migration] Running upgrade 6c7537a6004a -&gt; cefabc8f7d38, Increase size of name column in ab_view_menu INFO [alembic.runtime.migration] Running upgrade 55e910a74826 -&gt; 0b1f1ab473c0, Add extra column to Query INFO [alembic.runtime.migration] Running upgrade 0b1f1ab473c0, cefabc8f7d38, 3e1b21cd94a4 -&gt; de021a1ca60d, empty message INFO [alembic.runtime.migration] Running upgrade de021a1ca60d -&gt; fb13d49b72f9, better_filters INFO [alembic.runtime.migration] Running upgrade fb13d49b72f9 -&gt; a33a03f16c4a, Add extra column to SavedQuery INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; c829ff0b37d0, empty message INFO [alembic.runtime.migration] Running upgrade c829ff0b37d0 -&gt; 7467e77870e4, remove_aggs INFO [alembic.runtime.migration] Running upgrade 7467e77870e4, de021a1ca60d -&gt; fbd55e0f83eb, empty message INFO [alembic.runtime.migration] Running upgrade fbd55e0f83eb, fb13d49b72f9 -&gt; 8b70aa3d0f87, empty message INFO [alembic.runtime.migration] Running upgrade 8b70aa3d0f87, a33a03f16c4a -&gt; 18dc26817ad2, empty message INFO [alembic.runtime.migration] Running upgrade 18dc26817ad2 -&gt; c617da68de7d, form nullable INFO [alembic.runtime.migration] Running upgrade c617da68de7d -&gt; c82ee8a39623, Add implicit tags INFO [alembic.runtime.migration] Running upgrade 18dc26817ad2 -&gt; e553e78e90c5, add_druid_auth_py.py INFO [alembic.runtime.migration] Running upgrade e553e78e90c5, c82ee8a39623 -&gt; 45e7da7cfeba, empty message INFO [alembic.runtime.migration] Running upgrade 45e7da7cfeba -&gt; 80aa3f04bc82, Add Parent ids in dashboard layout metadata INFO [alembic.runtime.migration] Running upgrade 80aa3f04bc82 -&gt; d94d33dbe938, form strip INFO [alembic.runtime.migration] Running upgrade d94d33dbe938 -&gt; 937d04c16b64, update datasources INFO [alembic.runtime.migration] Running upgrade 937d04c16b64 -&gt; 7f2635b51f5d, update base columns INFO [alembic.runtime.migration] Running upgrade 7f2635b51f5d -&gt; e9df189e5c7e, update base metrics INFO [alembic.runtime.migration] Running upgrade e9df189e5c7e -&gt; afc69274c25a, update the sql, select_sql, and executed_sql columns in the query table in mysql dbs to be long text columns INFO [alembic.runtime.migration] Running upgrade afc69274c25a -&gt; d7c1a0d6f2da, Remove limit used from query model INFO [alembic.runtime.migration] Running upgrade d7c1a0d6f2da -&gt; ab8c66efdd01, resample INFO [alembic.runtime.migration] Running upgrade ab8c66efdd01 -&gt; b4a38aa87893, deprecate database expression INFO [alembic.runtime.migration] Running upgrade b4a38aa87893 -&gt; d6ffdf31bdd4, Add published column to dashboards INFO [alembic.runtime.migration] Running upgrade d6ffdf31bdd4 -&gt; 190188938582, Remove duplicated entries in dashboard_slices table and add unique constraint INFO [alembic.runtime.migration] Running upgrade 190188938582 -&gt; def97f26fdfb, Add index to tagged_object INFO [alembic.runtime.migration] Running upgrade def97f26fdfb -&gt; 11c737c17cc6, deprecate_restricted_metrics INFO [alembic.runtime.migration] Running upgrade 11c737c17cc6 -&gt; 258b5280a45e, form strip leading and trailing whitespace INFO [alembic.runtime.migration] Running upgrade 258b5280a45e -&gt; 1495eb914ad3, time range INFO [alembic.runtime.migration] Running upgrade 1495eb914ad3 -&gt; b6fa807eac07, make_names_non_nullable INFO [alembic.runtime.migration] Running upgrade b6fa807eac07 -&gt; cca2f5d568c8, add encrypted_extra to dbs INFO [alembic.runtime.migration] Running upgrade cca2f5d568c8 -&gt; c2acd2cf3df2, alter type of dbs encrypted_extra INFO [alembic.runtime.migration] Running upgrade c2acd2cf3df2 -&gt; 78ee127d0d1d, reconvert legacy filters into adhoc INFO [alembic.runtime.migration] Running upgrade 78ee127d0d1d -&gt; db4b49eb0782, Add tables for SQL Lab state INFO [alembic.runtime.migration] Running upgrade db4b49eb0782 -&gt; 5afa9079866a, serialize_schema_permissions.py INFO [alembic.runtime.migration] Running upgrade 5afa9079866a -&gt; 89115a40e8ea, Change table schema description to long text INFO [alembic.runtime.migration] Running upgrade 89115a40e8ea -&gt; 817e1c9b09d0, add_not_null_to_dbs_sqlalchemy_url INFO [alembic.runtime.migration] Running upgrade 817e1c9b09d0 -&gt; e96dbf2cfef0, datasource_cluster_fk INFO [alembic.runtime.migration] Running upgrade e96dbf2cfef0 -&gt; 3325d4caccc8, empty message INFO [alembic.runtime.migration] Running upgrade 3325d4caccc8 -&gt; 0a6f12f60c73, add_role_level_security INFO [alembic.runtime.migration] Running upgrade 0a6f12f60c73 -&gt; 72428d1ea401, Add tmp_schema_name to the query object. INFO [alembic.runtime.migration] Running upgrade 72428d1ea401 -&gt; b5998378c225, add certificate to dbs INFO [alembic.runtime.migration] Running upgrade b5998378c225 -&gt; f9a30386bd74, cleanup_time_grainularity Loaded your LOCAL configuration at [/superset/superset_config.py] Creating default roles and permissions logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully /usr/local/lib/python3.8/site-packages/flask_caching/__init__.py:188: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled. warnings.warn( Creating database reference for examples INFO:superset.utils.core:Creating database reference for examples Syncing role definition INFO:superset.security.manager:Syncing role definition Syncing Admin perms INFO:superset.security.manager:Syncing Admin perms Syncing Alpha perms INFO:superset.security.manager:Syncing Alpha perms Syncing Gamma perms INFO:superset.security.manager:Syncing Gamma perms Syncing granter perms INFO:superset.security.manager:Syncing granter perms Syncing sql_lab perms INFO:superset.security.manager:Syncing sql_lab perms Fetching a set of all perms to lookup which ones are missing INFO:superset.security.manager:Fetching a set of all perms to lookup which ones are missing Creating missing datasource permissions. INFO:superset.security.manager:Creating missing datasource permissions. Creating missing database permissions. INFO:superset.security.manager:Creating missing database permissions. Creating missing metrics permissions INFO:superset.security.manager:Creating missing metrics permissions Cleaning faulty perms INFO:superset.security.manager:Cleaning faulty perms Loaded your LOCAL configuration at [/superset/superset_config.py] Starting up Superset gunicorn server [2020-07-13 18:17:54 +0000] [21] [INFO] Starting gunicorn 20.0.4 [2020-07-13 18:17:54 +0000] [21] [INFO] Listening at: http://0.0.0.0:8088 (21) [2020-07-13 18:17:54 +0000] [21] [INFO] Using worker: gevent [2020-07-13 18:17:54 +0000] [23] [INFO] Booting worker with pid: 23 [2020-07-13 18:17:54 +0000] [24] [INFO] Booting worker with pid: 24 [2020-07-13 18:17:55 +0000] [25] [INFO] Booting worker with pid: 25 [2020-07-13 18:17:55 +0000] [26] [INFO] Booting worker with pid: 26 [2020-07-13 18:17:55 +0000] [27] [INFO] Booting worker with pid: 27 [2020-07-13 18:17:55 +0000] [28] [INFO] Booting worker with pid: 28 [2020-07-13 18:17:55 +0000] [29] [INFO] Booting worker with pid: 29 [2020-07-13 18:17:55 +0000] [30] [INFO] Booting worker with pid: 30 [2020-07-13 18:17:55 +0000] [31] [INFO] Booting worker with pid: 31 [2020-07-13 18:17:55 +0000] [32] [INFO] Booting worker with pid: 32 logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully (base) PS H:\&gt; "><pre class="notranslate"><code class="notranslate">Checking for existing Superset config... No Superset config found, creating from environment Checking for docker-entrypoint Running first time setup for Superset Creating admin user admin logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully Loaded your LOCAL configuration at [/superset/superset_config.py] Recognized Database Authentications. Admin User admin created. /usr/local/lib/python3.8/site-packages/flask_caching/__init__.py:188: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled. warnings.warn( Initializing database logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully /usr/local/lib/python3.8/site-packages/flask_caching/__init__.py:188: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled. warnings.warn( INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume transactional DDL. INFO [alembic.runtime.migration] Running upgrade -&gt; 4e6a06bad7a8, Init INFO [alembic.runtime.migration] Running upgrade 4e6a06bad7a8 -&gt; 5a7bad26f2a7, empty message INFO [alembic.runtime.migration] Running upgrade 5a7bad26f2a7 -&gt; 1e2841a4128, empty message INFO [alembic.runtime.migration] Running upgrade 1e2841a4128 -&gt; 2929af7925ed, TZ offsets in data sources INFO [alembic.runtime.migration] Running upgrade 2929af7925ed -&gt; 289ce07647b, Add encrypted password field INFO [alembic.runtime.migration] Running upgrade 289ce07647b -&gt; 1a48a5411020, adding slug to dash INFO [alembic.runtime.migration] Running upgrade 1a48a5411020 -&gt; 315b3f4da9b0, adding log model INFO [alembic.runtime.migration] Running upgrade 315b3f4da9b0 -&gt; 55179c7f25c7, sqla_descr INFO [alembic.runtime.migration] Running upgrade 55179c7f25c7 -&gt; 12d55656cbca, is_featured /usr/local/lib/python3.8/site-packages/alembic/ddl/sqlite.py:40: UserWarning: Skipping unsupported ALTER for creation of implicit constraintPlease refer to the batch mode feature which allows for SQLite migrations using a copy-and-move strategy. util.warn( INFO [alembic.runtime.migration] Running upgrade 12d55656cbca -&gt; 2591d77e9831, user_id INFO [alembic.runtime.migration] Running upgrade 2591d77e9831 -&gt; 8e80a26a31db, empty message INFO [alembic.runtime.migration] Running upgrade 8e80a26a31db -&gt; 7dbf98566af7, empty message INFO [alembic.runtime.migration] Running upgrade 7dbf98566af7 -&gt; 43df8de3a5f4, empty message INFO [alembic.runtime.migration] Running upgrade 43df8de3a5f4 -&gt; d827694c7555, css templates INFO [alembic.runtime.migration] Running upgrade d827694c7555 -&gt; 430039611635, log more INFO [alembic.runtime.migration] Running upgrade 430039611635 -&gt; 18e88e1cc004, making audit nullable INFO [alembic.runtime.migration] Running upgrade 18e88e1cc004 -&gt; 836c0bf75904, cache_timeouts INFO [alembic.runtime.migration] Running upgrade 18e88e1cc004 -&gt; a2d606a761d9, adding favstar model INFO [alembic.runtime.migration] Running upgrade a2d606a761d9, 836c0bf75904 -&gt; d2424a248d63, empty message INFO [alembic.runtime.migration] Running upgrade d2424a248d63 -&gt; 763d4b211ec9, fixing audit fk INFO [alembic.runtime.migration] Running upgrade d2424a248d63 -&gt; 1d2ddd543133, log dt INFO [alembic.runtime.migration] Running upgrade 1d2ddd543133, 763d4b211ec9 -&gt; fee7b758c130, empty message INFO [alembic.runtime.migration] Running upgrade fee7b758c130 -&gt; 867bf4f117f9, Adding extra field to Database model INFO [alembic.runtime.migration] Running upgrade 867bf4f117f9 -&gt; bb51420eaf83, add schema to table model INFO [alembic.runtime.migration] Running upgrade bb51420eaf83 -&gt; b4456560d4f3, change_table_unique_constraint INFO [alembic.runtime.migration] Running upgrade b4456560d4f3 -&gt; 4fa88fe24e94, owners_many_to_many INFO [alembic.runtime.migration] Running upgrade 4fa88fe24e94 -&gt; c3a8f8611885, Materializing permission INFO [alembic.runtime.migration] Running upgrade c3a8f8611885 -&gt; f0fbf6129e13, Adding verbose_name to tablecolumn INFO [alembic.runtime.migration] Running upgrade f0fbf6129e13 -&gt; 956a063c52b3, adjusting key length INFO [alembic.runtime.migration] Running upgrade 956a063c52b3 -&gt; 1226819ee0e3, Fix wrong constraint on table columns INFO [alembic.runtime.migration] Running upgrade 1226819ee0e3 -&gt; d8bc074f7aad, Add new field 'is_restricted' to SqlMetric and DruidMetric INFO [alembic.runtime.migration] Running upgrade d8bc074f7aad -&gt; 27ae655e4247, Make creator owners INFO [alembic.runtime.migration] Running upgrade 27ae655e4247 -&gt; 960c69cb1f5b, add dttm_format related fields in table_columns INFO [alembic.runtime.migration] Running upgrade 960c69cb1f5b -&gt; f162a1dea4c4, d3format_by_metric INFO [alembic.runtime.migration] Running upgrade f162a1dea4c4 -&gt; ad82a75afd82, Update models to support storing the queries. INFO [alembic.runtime.migration] Running upgrade ad82a75afd82 -&gt; 3c3ffe173e4f, add_sql_string_to_table INFO [alembic.runtime.migration] Running upgrade 3c3ffe173e4f -&gt; 41f6a59a61f2, database options for sql lab INFO [alembic.runtime.migration] Running upgrade 41f6a59a61f2 -&gt; 4500485bde7d, allow_run_sync_async INFO [alembic.runtime.migration] Running upgrade 4500485bde7d -&gt; 65903709c321, allow_dml INFO [alembic.runtime.migration] Running upgrade 41f6a59a61f2 -&gt; 33d996bcc382, update slice model INFO [alembic.runtime.migration] Running upgrade 33d996bcc382, 65903709c321 -&gt; b347b202819b, empty message INFO [alembic.runtime.migration] Running upgrade b347b202819b -&gt; 5e4a03ef0bf0, Add access_request table to manage requests to access datastores. INFO [alembic.runtime.migration] Running upgrade 5e4a03ef0bf0 -&gt; eca4694defa7, sqllab_setting_defaults INFO [alembic.runtime.migration] Running upgrade eca4694defa7 -&gt; ab3d66c4246e, add_cache_timeout_to_druid_cluster INFO [alembic.runtime.migration] Running upgrade eca4694defa7 -&gt; 3b626e2a6783, Sync DB with the models.py. WARNI [root] Constraint must have a name INFO [alembic.runtime.migration] Running upgrade 3b626e2a6783, ab3d66c4246e -&gt; ef8843b41dac, empty message INFO [alembic.runtime.migration] Running upgrade ef8843b41dac -&gt; b46fa1b0b39e, Add json_metadata to the tables table. INFO [alembic.runtime.migration] Running upgrade b46fa1b0b39e -&gt; 7e3ddad2a00b, results_key to query INFO [alembic.runtime.migration] Running upgrade 7e3ddad2a00b -&gt; ad4d656d92bc, Add avg() to default metrics INFO [alembic.runtime.migration] Running upgrade ad4d656d92bc -&gt; c611f2b591b8, dim_spec INFO [alembic.runtime.migration] Running upgrade c611f2b591b8 -&gt; e46f2d27a08e, materialize perms INFO [alembic.runtime.migration] Running upgrade e46f2d27a08e -&gt; f1f2d4af5b90, Enable Filter Select INFO [alembic.runtime.migration] Running upgrade e46f2d27a08e -&gt; 525c854f0005, log_this_plus INFO [alembic.runtime.migration] Running upgrade 525c854f0005, f1f2d4af5b90 -&gt; 6414e83d82b7, empty message INFO [alembic.runtime.migration] Running upgrade 6414e83d82b7 -&gt; 1296d28ec131, Adds params to the datasource (druid) table INFO [alembic.runtime.migration] Running upgrade 1296d28ec131 -&gt; f18570e03440, Add index on the result key to the query table. INFO [alembic.runtime.migration] Running upgrade f18570e03440 -&gt; bcf3126872fc, Add keyvalue table INFO [alembic.runtime.migration] Running upgrade f18570e03440 -&gt; db0c65b146bd, update_slice_model_json INFO [alembic.runtime.migration] Running upgrade db0c65b146bd -&gt; a99f2f7c195a, rewriting url from shortner with new format INFO [alembic.runtime.migration] Running upgrade a99f2f7c195a, bcf3126872fc -&gt; d6db5a5cdb5d, empty message INFO [alembic.runtime.migration] Running upgrade d6db5a5cdb5d -&gt; b318dfe5fb6c, adding verbose_name to druid column INFO [alembic.runtime.migration] Running upgrade d6db5a5cdb5d -&gt; 732f1c06bcbf, add fetch values predicate INFO [alembic.runtime.migration] Running upgrade 732f1c06bcbf, b318dfe5fb6c -&gt; ea033256294a, empty message INFO [alembic.runtime.migration] Running upgrade b318dfe5fb6c -&gt; db527d8c4c78, Add verbose name to DruidCluster and Database INFO [alembic.runtime.migration] Running upgrade db527d8c4c78, ea033256294a -&gt; 979c03af3341, empty message INFO [alembic.runtime.migration] Running upgrade 979c03af3341 -&gt; a6c18f869a4e, query.start_running_time INFO [alembic.runtime.migration] Running upgrade a6c18f869a4e -&gt; 2fcdcb35e487, saved_queries INFO [alembic.runtime.migration] Running upgrade 2fcdcb35e487 -&gt; a65458420354, add_result_backend_time_logging INFO [alembic.runtime.migration] Running upgrade a65458420354 -&gt; ca69c70ec99b, tracking_url INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; a9c47e2c1547, add impersonate_user to dbs INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; ddd6ebdd853b, annotations INFO [alembic.runtime.migration] Running upgrade a9c47e2c1547, ddd6ebdd853b -&gt; d39b1e37131d, empty message INFO [alembic.runtime.migration] Running upgrade ca69c70ec99b -&gt; 19a814813610, Adding metric warning_text INFO [alembic.runtime.migration] Running upgrade 19a814813610, a9c47e2c1547 -&gt; 472d2f73dfd4, empty message INFO [alembic.runtime.migration] Running upgrade 472d2f73dfd4, d39b1e37131d -&gt; f959a6652acd, empty message INFO [alembic.runtime.migration] Running upgrade f959a6652acd -&gt; 4736ec66ce19, empty message /usr/local/lib/python3.8/site-packages/sqlalchemy/dialects/sqlite/base.py:1920: SAWarning: WARNING: SQL-parsed foreign key constraint '('datasource_name', 'datasources', 'datasource_name')' could not be located in PRAGMA foreign_keys for table metrics util.warn( INFO [alembic.runtime.migration] Running upgrade 4736ec66ce19 -&gt; 67a6ac9b727b, update_spatial_params INFO [alembic.runtime.migration] Running upgrade 67a6ac9b727b -&gt; 21e88bc06c02 INFO [alembic.runtime.migration] Running upgrade 21e88bc06c02 -&gt; e866bd2d4976, smaller_grid Revision ID: e866bd2d4976 Revises: 21e88bc06c02 Create Date: 2018-02-13 08:07:40.766277 INFO [alembic.runtime.migration] Running upgrade e866bd2d4976 -&gt; e68c4473c581, allow_multi_schema_metadata_fetch INFO [alembic.runtime.migration] Running upgrade e68c4473c581 -&gt; f231d82b9b26, empty message INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; bf706ae5eb46, cal_heatmap_metric_to_metrics INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; 30bb17c0dc76, empty message INFO [alembic.runtime.migration] Running upgrade 30bb17c0dc76, bf706ae5eb46 -&gt; c9495751e314, empty message INFO [alembic.runtime.migration] Running upgrade f231d82b9b26 -&gt; 130915240929, is_sqllab_view INFO [alembic.runtime.migration] Running upgrade 130915240929, c9495751e314 -&gt; 5ccf602336a0, empty message INFO [alembic.runtime.migration] Running upgrade 5ccf602336a0 -&gt; e502db2af7be, add template_params to tables INFO [alembic.runtime.migration] Running upgrade e502db2af7be -&gt; c5756bec8b47, Time grain SQLA INFO [alembic.runtime.migration] Running upgrade c5756bec8b47 -&gt; afb7730f6a9c, remove empty filters INFO [alembic.runtime.migration] Running upgrade afb7730f6a9c -&gt; 80a67c5192fa, single pie chart metric INFO [alembic.runtime.migration] Running upgrade 80a67c5192fa -&gt; bddc498dd179, adhoc filters INFO [alembic.runtime.migration] Running upgrade bddc498dd179 -&gt; 3dda56f1c4c6, Migrate num_period_compare and period_ratio_type INFO [alembic.runtime.migration] Running upgrade 3dda56f1c4c6 -&gt; 1d9e835a84f9, empty message INFO [alembic.runtime.migration] Running upgrade bddc498dd179 -&gt; 4451805bbaa1, remove double percents INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; 705732c70154, empty message INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; fc480c87706c, empty message INFO [alembic.runtime.migration] Running upgrade fc480c87706c -&gt; bebcf3fed1fe, Migrate dashboard position_json data from V1 to V2 INFO [alembic.runtime.migration] Running upgrade bebcf3fed1fe, 705732c70154 -&gt; ec1f88a35cc6, empty message INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; e3970889f38e, empty message INFO [alembic.runtime.migration] Running upgrade 705732c70154, e3970889f38e -&gt; 46ba6aaaac97, empty message INFO [alembic.runtime.migration] Running upgrade 46ba6aaaac97, ec1f88a35cc6 -&gt; c18bd4186f15, empty message INFO [alembic.runtime.migration] Running upgrade c18bd4186f15 -&gt; 7fcdcde0761c, Reduce position_json size by remove extra space and component id prefix INFO [alembic.runtime.migration] Running upgrade 7fcdcde0761c -&gt; 0c5070e96b57, add user attributes table INFO [alembic.runtime.migration] Running upgrade 0c5070e96b57 -&gt; 1a1d627ebd8e, position_json INFO [alembic.runtime.migration] Running upgrade 1a1d627ebd8e -&gt; 55e910a74826, add_metadata_column_to_annotation_model.py INFO [alembic.runtime.migration] Running upgrade 55e910a74826 -&gt; 4ce8df208545, empty message INFO [alembic.runtime.migration] Running upgrade 4ce8df208545 -&gt; 46f444d8b9b7, remove_coordinator_from_druid_cluster_model.py INFO [alembic.runtime.migration] Running upgrade 46f444d8b9b7 -&gt; a61b40f9f57f, remove allow_run_sync INFO [alembic.runtime.migration] Running upgrade a61b40f9f57f -&gt; 6c7537a6004a, models for email reports INFO [alembic.runtime.migration] Running upgrade 6c7537a6004a -&gt; 3e1b21cd94a4, change_owner_to_m2m_relation_on_datasources.py INFO [alembic.runtime.migration] Running upgrade 6c7537a6004a -&gt; cefabc8f7d38, Increase size of name column in ab_view_menu INFO [alembic.runtime.migration] Running upgrade 55e910a74826 -&gt; 0b1f1ab473c0, Add extra column to Query INFO [alembic.runtime.migration] Running upgrade 0b1f1ab473c0, cefabc8f7d38, 3e1b21cd94a4 -&gt; de021a1ca60d, empty message INFO [alembic.runtime.migration] Running upgrade de021a1ca60d -&gt; fb13d49b72f9, better_filters INFO [alembic.runtime.migration] Running upgrade fb13d49b72f9 -&gt; a33a03f16c4a, Add extra column to SavedQuery INFO [alembic.runtime.migration] Running upgrade 4451805bbaa1, 1d9e835a84f9 -&gt; c829ff0b37d0, empty message INFO [alembic.runtime.migration] Running upgrade c829ff0b37d0 -&gt; 7467e77870e4, remove_aggs INFO [alembic.runtime.migration] Running upgrade 7467e77870e4, de021a1ca60d -&gt; fbd55e0f83eb, empty message INFO [alembic.runtime.migration] Running upgrade fbd55e0f83eb, fb13d49b72f9 -&gt; 8b70aa3d0f87, empty message INFO [alembic.runtime.migration] Running upgrade 8b70aa3d0f87, a33a03f16c4a -&gt; 18dc26817ad2, empty message INFO [alembic.runtime.migration] Running upgrade 18dc26817ad2 -&gt; c617da68de7d, form nullable INFO [alembic.runtime.migration] Running upgrade c617da68de7d -&gt; c82ee8a39623, Add implicit tags INFO [alembic.runtime.migration] Running upgrade 18dc26817ad2 -&gt; e553e78e90c5, add_druid_auth_py.py INFO [alembic.runtime.migration] Running upgrade e553e78e90c5, c82ee8a39623 -&gt; 45e7da7cfeba, empty message INFO [alembic.runtime.migration] Running upgrade 45e7da7cfeba -&gt; 80aa3f04bc82, Add Parent ids in dashboard layout metadata INFO [alembic.runtime.migration] Running upgrade 80aa3f04bc82 -&gt; d94d33dbe938, form strip INFO [alembic.runtime.migration] Running upgrade d94d33dbe938 -&gt; 937d04c16b64, update datasources INFO [alembic.runtime.migration] Running upgrade 937d04c16b64 -&gt; 7f2635b51f5d, update base columns INFO [alembic.runtime.migration] Running upgrade 7f2635b51f5d -&gt; e9df189e5c7e, update base metrics INFO [alembic.runtime.migration] Running upgrade e9df189e5c7e -&gt; afc69274c25a, update the sql, select_sql, and executed_sql columns in the query table in mysql dbs to be long text columns INFO [alembic.runtime.migration] Running upgrade afc69274c25a -&gt; d7c1a0d6f2da, Remove limit used from query model INFO [alembic.runtime.migration] Running upgrade d7c1a0d6f2da -&gt; ab8c66efdd01, resample INFO [alembic.runtime.migration] Running upgrade ab8c66efdd01 -&gt; b4a38aa87893, deprecate database expression INFO [alembic.runtime.migration] Running upgrade b4a38aa87893 -&gt; d6ffdf31bdd4, Add published column to dashboards INFO [alembic.runtime.migration] Running upgrade d6ffdf31bdd4 -&gt; 190188938582, Remove duplicated entries in dashboard_slices table and add unique constraint INFO [alembic.runtime.migration] Running upgrade 190188938582 -&gt; def97f26fdfb, Add index to tagged_object INFO [alembic.runtime.migration] Running upgrade def97f26fdfb -&gt; 11c737c17cc6, deprecate_restricted_metrics INFO [alembic.runtime.migration] Running upgrade 11c737c17cc6 -&gt; 258b5280a45e, form strip leading and trailing whitespace INFO [alembic.runtime.migration] Running upgrade 258b5280a45e -&gt; 1495eb914ad3, time range INFO [alembic.runtime.migration] Running upgrade 1495eb914ad3 -&gt; b6fa807eac07, make_names_non_nullable INFO [alembic.runtime.migration] Running upgrade b6fa807eac07 -&gt; cca2f5d568c8, add encrypted_extra to dbs INFO [alembic.runtime.migration] Running upgrade cca2f5d568c8 -&gt; c2acd2cf3df2, alter type of dbs encrypted_extra INFO [alembic.runtime.migration] Running upgrade c2acd2cf3df2 -&gt; 78ee127d0d1d, reconvert legacy filters into adhoc INFO [alembic.runtime.migration] Running upgrade 78ee127d0d1d -&gt; db4b49eb0782, Add tables for SQL Lab state INFO [alembic.runtime.migration] Running upgrade db4b49eb0782 -&gt; 5afa9079866a, serialize_schema_permissions.py INFO [alembic.runtime.migration] Running upgrade 5afa9079866a -&gt; 89115a40e8ea, Change table schema description to long text INFO [alembic.runtime.migration] Running upgrade 89115a40e8ea -&gt; 817e1c9b09d0, add_not_null_to_dbs_sqlalchemy_url INFO [alembic.runtime.migration] Running upgrade 817e1c9b09d0 -&gt; e96dbf2cfef0, datasource_cluster_fk INFO [alembic.runtime.migration] Running upgrade e96dbf2cfef0 -&gt; 3325d4caccc8, empty message INFO [alembic.runtime.migration] Running upgrade 3325d4caccc8 -&gt; 0a6f12f60c73, add_role_level_security INFO [alembic.runtime.migration] Running upgrade 0a6f12f60c73 -&gt; 72428d1ea401, Add tmp_schema_name to the query object. INFO [alembic.runtime.migration] Running upgrade 72428d1ea401 -&gt; b5998378c225, add certificate to dbs INFO [alembic.runtime.migration] Running upgrade b5998378c225 -&gt; f9a30386bd74, cleanup_time_grainularity Loaded your LOCAL configuration at [/superset/superset_config.py] Creating default roles and permissions logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully /usr/local/lib/python3.8/site-packages/flask_caching/__init__.py:188: UserWarning: Flask-Caching: CACHE_TYPE is set to null, caching is effectively disabled. warnings.warn( Creating database reference for examples INFO:superset.utils.core:Creating database reference for examples Syncing role definition INFO:superset.security.manager:Syncing role definition Syncing Admin perms INFO:superset.security.manager:Syncing Admin perms Syncing Alpha perms INFO:superset.security.manager:Syncing Alpha perms Syncing Gamma perms INFO:superset.security.manager:Syncing Gamma perms Syncing granter perms INFO:superset.security.manager:Syncing granter perms Syncing sql_lab perms INFO:superset.security.manager:Syncing sql_lab perms Fetching a set of all perms to lookup which ones are missing INFO:superset.security.manager:Fetching a set of all perms to lookup which ones are missing Creating missing datasource permissions. INFO:superset.security.manager:Creating missing datasource permissions. Creating missing database permissions. INFO:superset.security.manager:Creating missing database permissions. Creating missing metrics permissions INFO:superset.security.manager:Creating missing metrics permissions Cleaning faulty perms INFO:superset.security.manager:Cleaning faulty perms Loaded your LOCAL configuration at [/superset/superset_config.py] Starting up Superset gunicorn server [2020-07-13 18:17:54 +0000] [21] [INFO] Starting gunicorn 20.0.4 [2020-07-13 18:17:54 +0000] [21] [INFO] Listening at: http://0.0.0.0:8088 (21) [2020-07-13 18:17:54 +0000] [21] [INFO] Using worker: gevent [2020-07-13 18:17:54 +0000] [23] [INFO] Booting worker with pid: 23 [2020-07-13 18:17:54 +0000] [24] [INFO] Booting worker with pid: 24 [2020-07-13 18:17:55 +0000] [25] [INFO] Booting worker with pid: 25 [2020-07-13 18:17:55 +0000] [26] [INFO] Booting worker with pid: 26 [2020-07-13 18:17:55 +0000] [27] [INFO] Booting worker with pid: 27 [2020-07-13 18:17:55 +0000] [28] [INFO] Booting worker with pid: 28 [2020-07-13 18:17:55 +0000] [29] [INFO] Booting worker with pid: 29 [2020-07-13 18:17:55 +0000] [30] [INFO] Booting worker with pid: 30 [2020-07-13 18:17:55 +0000] [31] [INFO] Booting worker with pid: 31 [2020-07-13 18:17:55 +0000] [32] [INFO] Booting worker with pid: 32 logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully logging was configured successfully INFO:superset.utils.logging_configurator:logging was configured successfully (base) PS H:\&gt; </code></pre></div>
0
<p dir="auto">related <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="17220085" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/4363" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/4363/hovercard" href="https://github.com/pandas-dev/pandas/issues/4363">#4363</a><br> closes <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="13257105" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/3374" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/3374/hovercard" href="https://github.com/pandas-dev/pandas/issues/3374">#3374</a></p> <p dir="auto">Here is a minimal example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [21]: df = pd.DataFrame({'A': range(5), 'B': rand(5)}) In [22]: df Out[22]: A B 0 0 0.402616 1 1 0.880696 2 2 0.184491 3 3 0.832732 4 4 0.393917 [5 rows x 2 columns] In [23]: df.to_csv('test.csv', sep=' ') In [24]: pd.read_csv('test.csv', sep=' ', dtype={'A': np.float64}).dtypes Out[24]: Unnamed: 0 int64 A float64 B float64 dtype: object"><pre lang="ipython" class="notranslate"><code class="notranslate">In [21]: df = pd.DataFrame({'A': range(5), 'B': rand(5)}) In [22]: df Out[22]: A B 0 0 0.402616 1 1 0.880696 2 2 0.184491 3 3 0.832732 4 4 0.393917 [5 rows x 2 columns] In [23]: df.to_csv('test.csv', sep=' ') In [24]: pd.read_csv('test.csv', sep=' ', dtype={'A': np.float64}).dtypes Out[24]: Unnamed: 0 int64 A float64 B float64 dtype: object </code></pre></div> <p dir="auto">Here the dtype argument behaves as expected, and column A has type float. However with sep='\s' the dtype argument appears to be ignored:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [25]: pd.read_csv('test.csv', sep='\s', dtype={'A': np.float64}).dtypes Out[25]: A int64 B float64 dtype: object"><pre lang="ipython" class="notranslate"><code class="notranslate">In [25]: pd.read_csv('test.csv', sep='\s', dtype={'A': np.float64}).dtypes Out[25]: A int64 B float64 dtype: object </code></pre></div> <h2 dir="auto">Version information</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [27]: show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Darwin OS-release: 10.8.0 machine: i386 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.13.1-413-ga71ede3 Cython: 0.20.1 numpy: 1.8.0 scipy: 0.13.3 statsmodels: 0.5.0 IPython: 2.0.0-dev sphinx: 1.2.1 patsy: 0.2.1 scikits.timeseries: None dateutil: 1.5 pytz: 2013b bottleneck: None tables: 3.1.0 numexpr: 2.3.1 matplotlib: 1.3.1 openpyxl: 1.8.2 xlrd: 0.9.2 xlwt: 0.7.5 xlsxwriter: 0.5.2 lxml: 3.3.1 bs4: 4.3.1 html5lib: None bq: None apiclient: None rpy2: None sqlalchemy: 0.9.2 pymysql: None psycopg2: None"><pre lang="ipython" class="notranslate"><code class="notranslate">In [27]: show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Darwin OS-release: 10.8.0 machine: i386 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.13.1-413-ga71ede3 Cython: 0.20.1 numpy: 1.8.0 scipy: 0.13.3 statsmodels: 0.5.0 IPython: 2.0.0-dev sphinx: 1.2.1 patsy: 0.2.1 scikits.timeseries: None dateutil: 1.5 pytz: 2013b bottleneck: None tables: 3.1.0 numexpr: 2.3.1 matplotlib: 1.3.1 openpyxl: 1.8.2 xlrd: 0.9.2 xlwt: 0.7.5 xlsxwriter: 0.5.2 lxml: 3.3.1 bs4: 4.3.1 html5lib: None bq: None apiclient: None rpy2: None sqlalchemy: 0.9.2 pymysql: None psycopg2: None </code></pre></div>
<p dir="auto">While trying to get handle on duplicated records I stumble upon <a href="http://stackoverflow.com/questions/26244309/how-to-analyze-all-duplicate-entries-in-this-pandas-dataframe" rel="nofollow">this</a> which lead to conclusion that <code class="notranslate">.duplicated(take_last=True)</code> seem to be taking the first of duplicate rows and <code class="notranslate">.duplicate(take_last=False)</code> takes the last rows.<br> Here is an illustration:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd data = { 'key1':[1,2,3,1,2,3,2,2,2], 'key2':[2,2,1,2,2,2,2,2,2], 'dup':['d1_1','d2_1', 'n_d','d1_2','d2_2', 'n_d','d2_3','d2_4','d2_5']} df = pd.DataFrame(data,columns=['key1','key2','dup']) print df key1 key2 dup 0 1 2 d1_1 1 2 2 d2_1 2 3 1 n_d 3 1 2 d1_2 4 2 2 d2_2 5 3 2 n_d 6 2 2 d2_3 7 2 2 d2_4 8 2 2 d2_5"><pre class="notranslate"><code class="notranslate">import pandas as pd data = { 'key1':[1,2,3,1,2,3,2,2,2], 'key2':[2,2,1,2,2,2,2,2,2], 'dup':['d1_1','d2_1', 'n_d','d1_2','d2_2', 'n_d','d2_3','d2_4','d2_5']} df = pd.DataFrame(data,columns=['key1','key2','dup']) print df key1 key2 dup 0 1 2 d1_1 1 2 2 d2_1 2 3 1 n_d 3 1 2 d1_2 4 2 2 d2_2 5 3 2 n_d 6 2 2 d2_3 7 2 2 d2_4 8 2 2 d2_5 </code></pre></div> <p dir="auto">Now with <code class="notranslate">take_last=False</code> it would be fair to expect dn_1s to be in output, but this is not the case:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="c1 = df.duplicated(['key1', 'key2'], take_last=False) df[c1] key1 key2 dup 3 1 2 d1_2 4 2 2 d2_2 6 2 2 d2_3 7 2 2 d2_4 8 2 2 d2_5"><pre class="notranslate"><code class="notranslate">c1 = df.duplicated(['key1', 'key2'], take_last=False) df[c1] key1 key2 dup 3 1 2 d1_2 4 2 2 d2_2 6 2 2 d2_3 7 2 2 d2_4 8 2 2 d2_5 </code></pre></div> <p dir="auto">And <code class="notranslate">take_last=True</code> outputs the first rows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="c2 = df.duplicated(['key1', 'key2'], take_last=True) df[c2] key1 key2 dup 0 1 2 d1_1 1 2 2 d2_1 4 2 2 d2_2 6 2 2 d2_3 7 2 2 d2_4"><pre class="notranslate"><code class="notranslate">c2 = df.duplicated(['key1', 'key2'], take_last=True) df[c2] key1 key2 dup 0 1 2 d1_1 1 2 2 d2_1 4 2 2 d2_2 6 2 2 d2_3 7 2 2 d2_4 </code></pre></div> <p dir="auto">Unless I am misunderstanding the doc:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="take_last : boolean, default False Take the last observed row in a row. Defaults to the first row"><pre class="notranslate"><code class="notranslate">take_last : boolean, default False Take the last observed row in a row. Defaults to the first row </code></pre></div> <p dir="auto">it does feel that <code class="notranslate">.duplicated()</code> could be improved by fixing this behavior.<br> And additionally it would have one more parameter:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="take_all : boolean, default False Take all observed rows. Overrides take_last"><pre class="notranslate"><code class="notranslate">take_all : boolean, default False Take all observed rows. Overrides take_last </code></pre></div> <p dir="auto">or alternatively a keyword parameter:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="take : 'last', 'first', 'all', default 'last' Sets which observed duplicated rows to take. Default: take last observed rows."><pre class="notranslate"><code class="notranslate">take : 'last', 'first', 'all', default 'last' Sets which observed duplicated rows to take. Default: take last observed rows. </code></pre></div> <p dir="auto">Right now trying to get all observed duplicates requires applying two above conditions <code class="notranslate">c1 | c2</code>.<br> This was done with pandas 0.14.1.<br> Thank you.</p>
0
<p dir="auto">Steps to reproduce:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl --context=federation delete rs k8shserver replicaset &quot;k8shserver&quot; deleted $ kubectl --context=federation create -f rs/k8shserver.yaml Error from server: error when creating &quot;rs/k8shserver.yaml&quot;: object is being deleted: replicasets &quot;k8shserver&quot; already exists"><pre class="notranslate"><code class="notranslate">$ kubectl --context=federation delete rs k8shserver replicaset "k8shserver" deleted $ kubectl --context=federation create -f rs/k8shserver.yaml Error from server: error when creating "rs/k8shserver.yaml": object is being deleted: replicasets "k8shserver" already exists </code></pre></div> <p dir="auto">Expected:<br> <code class="notranslate">kubectl delete rs</code> command should complete after all replica sets from all underlying clusters are deleted.</p> <p dir="auto">Observed:<br> command completed although there are still replica sets being deleted.</p>
0
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18363.900] PowerToys version: v0.19.0 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18363.900] PowerToys version: v0.19.0 PowerToy module for which you are reporting the bug (if applicable): PowerToys Run </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Inconstant behavior, periodically starts and stops with no clear trigger.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">PTR prompt appears when its key command is typed, currently the default Alt + Space.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">Every so often PTR will trigger on any press of the space bar; as if Alt was already being held down.</p> <h1 dir="auto">Screenshots</h1> <p dir="auto">N/A</p> <h1 dir="auto">Workaround</h1> <p dir="auto">Killing and restarting PT resolves the issue for a period of time.</p> <h1 dir="auto">Misc Notes</h1> <p dir="auto">Prompt triggers on both external and built in laptop keyboards when issue is active.</p>
<p dir="auto">I find myself wanting to switch layouts quickly, especially if I'm collaborating with someone, virtually. (Oh, I need to take some notes, let's stop using focused grid 3 and start using standard grid 2.)</p> <p dir="auto">One idea of how to implement this would be a way to assign a half-dozen hotkeys so that the user could hit, say, "Win-'-1", "Win-'-2", etc. to quickly switch to frequently used layouts. A new, read-only tab should be added to show the hotkeyed layouts.</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Feature Idea</li> </ul> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 1.9.4"><pre class="notranslate"><code class="notranslate">ansible 1.9.4 </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">N/A</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">The current version of etcd (2.x) does not support the deprecated v1 api. The v1 api is the only one supported by the etcd ansible lookup plugin.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <ol dir="auto"> <li>Deploy a current version of etcd: <code class="notranslate">docker run --net=host --rm quay.io/coreos/etcd:v2.3.6</code></li> <li>Add key to etcd: <code class="notranslate">etcdctl set foo bar</code></li> <li>Create a playbook named etcd.yml as shown below</li> <li>Run playbook: <code class="notranslate">ansible-playbook -i "localhost," etcd.yml</code></li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" --- - name: Test etcd lookup hosts: localhost tasks: - debug: msg=&quot;etcd foo = {{ lookup('etcd2', 'foo') }}&quot;"><pre class="notranslate"><code class="notranslate"> --- - name: Test etcd lookup hosts: localhost tasks: - debug: msg="etcd foo = {{ lookup('etcd2', 'foo') }}" </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [Test etcd lookup] ******************************************************* GATHERING FACTS *************************************************************** ok: [localhost] TASK: [debug msg=&quot;etcd foo = bar&quot;] ******************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;etcd foo = bar&quot; } PLAY RECAP ******************************************************************** localhost : ok=2 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">PLAY [Test etcd lookup] ******************************************************* GATHERING FACTS *************************************************************** ok: [localhost] TASK: [debug msg="etcd foo = bar"] ******************************************** ok: [localhost] =&gt; { "msg": "etcd foo = bar" } PLAY RECAP ******************************************************************** localhost : ok=2 changed=0 unreachable=0 failed=0 </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [Test etcd lookup] ******************************************************* GATHERING FACTS *************************************************************** ok: [localhost] TASK: [debug msg=&quot;etcd foo = &quot;] *********************************************** ok: [localhost] =&gt; { &quot;msg&quot;: &quot;etcd foo = &quot; } PLAY RECAP ******************************************************************** localhost : ok=2 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">PLAY [Test etcd lookup] ******************************************************* GATHERING FACTS *************************************************************** ok: [localhost] TASK: [debug msg="etcd foo = "] *********************************************** ok: [localhost] =&gt; { "msg": "etcd foo = " } PLAY RECAP ******************************************************************** localhost : ok=2 changed=0 unreachable=0 failed=0 </code></pre></div>
<p dir="auto">Hi,</p> <p dir="auto">I cant get values from etcd using lookup.<br> It looks like the API version is hardcoded in etcd.py (self.baseurl = '%s/v1/keys').</p> <p dir="auto">Thanks,</p> <p dir="auto">Moshe</p>
1