text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">Hello everyone,</p>
<p dir="auto">I have a problem with Chrome extension - React Developer Tools, if I change component's state it's not changing in the dev tools window (as in the screenshot below) I am only able to see arrows with title "Reset value".<br>
Does somebody know how it could be fixed?</p>
<p dir="auto">Thanks a lot for help!</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/40744326/65599624-8e7e9d00-df9e-11e9-9f5e-4be249278c6d.png"><img src="https://user-images.githubusercontent.com/40744326/65599624-8e7e9d00-df9e-11e9-9f5e-4be249278c6d.png" alt="Zrzut ekranu z 2019-09-25 14-06-22" style="max-width: 100%;"></a></p> | <p dir="auto">Followup from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="248067090" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/10385" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/10385/hovercard" href="https://github.com/facebook/react/pull/10385">#10385</a>, it looks like the CommonJS build is saving short variable name references to long property names, however it does this in a bunch of places. The net output is a larger build because the referenced names (like <code class="notranslate">IndeterminateComponent</code>) are duplicated quite a bit:</p>
<p dir="auto">For example:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" D = {
IndeterminateComponent: 0,
FunctionalComponent: 1,
ClassComponent: 2,
HostRoot: 3,
HostPortal: 4,
HostComponent: 5,
HostText: 6,
CoroutineComponent: 7,
CoroutineHandlerPhase: 8,
YieldComponent: 9,
Fragment: 10
},
F = {
ELEMENT_NODE: 1,
TEXT_NODE: 3,
COMMENT_NODE: 8,
DOCUMENT_NODE: 9,
DOCUMENT_FRAGMENT_NODE: 11
},
xa = D.HostComponent,
ya = D.HostText,
za = F.ELEMENT_NODE,
Aa = F.COMMENT_NODE,
Ba = z.ID_ATTRIBUTE_NAME,"><pre class="notranslate"> <span class="pl-v">D</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">IndeterminateComponent</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span>
<span class="pl-c1">FunctionalComponent</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span>
<span class="pl-c1">ClassComponent</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span>
<span class="pl-c1">HostRoot</span>: <span class="pl-c1">3</span><span class="pl-kos">,</span>
<span class="pl-c1">HostPortal</span>: <span class="pl-c1">4</span><span class="pl-kos">,</span>
<span class="pl-c1">HostComponent</span>: <span class="pl-c1">5</span><span class="pl-kos">,</span>
<span class="pl-c1">HostText</span>: <span class="pl-c1">6</span><span class="pl-kos">,</span>
<span class="pl-c1">CoroutineComponent</span>: <span class="pl-c1">7</span><span class="pl-kos">,</span>
<span class="pl-c1">CoroutineHandlerPhase</span>: <span class="pl-c1">8</span><span class="pl-kos">,</span>
<span class="pl-c1">YieldComponent</span>: <span class="pl-c1">9</span><span class="pl-kos">,</span>
<span class="pl-c1">Fragment</span>: <span class="pl-c1">10</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-v">F</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">ELEMENT_NODE</span>: <span class="pl-c1">1</span><span class="pl-kos">,</span>
<span class="pl-c1">TEXT_NODE</span>: <span class="pl-c1">3</span><span class="pl-kos">,</span>
<span class="pl-c1">COMMENT_NODE</span>: <span class="pl-c1">8</span><span class="pl-kos">,</span>
<span class="pl-c1">DOCUMENT_NODE</span>: <span class="pl-c1">9</span><span class="pl-kos">,</span>
<span class="pl-c1">DOCUMENT_FRAGMENT_NODE</span>: <span class="pl-c1">11</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s1">xa</span> <span class="pl-c1">=</span> <span class="pl-v">D</span><span class="pl-kos">.</span><span class="pl-c1">HostComponent</span><span class="pl-kos">,</span>
<span class="pl-s1">ya</span> <span class="pl-c1">=</span> <span class="pl-v">D</span><span class="pl-kos">.</span><span class="pl-c1">HostText</span><span class="pl-kos">,</span>
<span class="pl-s1">za</span> <span class="pl-c1">=</span> <span class="pl-v">F</span><span class="pl-kos">.</span><span class="pl-c1">ELEMENT_NODE</span><span class="pl-kos">,</span>
<span class="pl-v">Aa</span> <span class="pl-c1">=</span> <span class="pl-v">F</span><span class="pl-kos">.</span><span class="pl-c1">COMMENT_NODE</span><span class="pl-kos">,</span>
<span class="pl-v">Ba</span> <span class="pl-c1">=</span> <span class="pl-s1">z</span><span class="pl-kos">.</span><span class="pl-c1">ID_ATTRIBUTE_NAME</span><span class="pl-kos">,</span></pre></div>
<p dir="auto">The UMD build does not have any of these tokens. The CJS build doesn't crush the names either. Later in the build there are things like this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var Mf = Qe.reconcileChildFibers,
Nf = S.popContextProvider,
Of = D.IndeterminateComponent,
Pf = D.FunctionalComponent,
Qf = D.ClassComponent,
Rf = D.HostRoot,
Sf = D.HostComponent,
Tf = D.HostText,
Uf = D.HostPortal,
Vf = D.CoroutineComponent,
Wf = D.CoroutineHandlerPhase,
Xf = D.YieldComponent,
Yf = D.Fragment,
Zf = L.Placement,
$f = L.Ref,
ag = L.Update,
bg = R.OffscreenPriority;"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">Mf</span> <span class="pl-c1">=</span> <span class="pl-v">Qe</span><span class="pl-kos">.</span><span class="pl-c1">reconcileChildFibers</span><span class="pl-kos">,</span>
<span class="pl-v">Nf</span> <span class="pl-c1">=</span> <span class="pl-v">S</span><span class="pl-kos">.</span><span class="pl-c1">popContextProvider</span><span class="pl-kos">,</span>
<span class="pl-v">Of</span> <span class="pl-c1">=</span> <span class="pl-v">D</span><span class="pl-kos">.</span><span class="pl-c1">IndeterminateComponent</span><span class="pl-kos">,</span>
<span class="pl-v">Pf</span> <span class="pl-c1">=</span> <span class="pl-v">D</span><span class="pl-kos">.</span><span class="pl-c1">FunctionalComponent</span><span class="pl-kos">,</span>
<span class="pl-v">Qf</span> <span class="pl-c1">=</span> <span class="pl-v">D</span><span class="pl-kos">.</span><span class="pl-c1">ClassComponent</span><span class="pl-kos">,</span>
<span class="pl-v">Rf</span> <span class="pl-c1">=</span> <span class="pl-v">D</span><span class="pl-kos">.</span><span class="pl-c1">HostRoot</span><span class="pl-kos">,</span>
<span class="pl-v">Sf</span> <span class="pl-c1">=</span> <span class="pl-v">D</span><span class="pl-kos">.</span><span class="pl-c1">HostComponent</span><span class="pl-kos">,</span>
<span class="pl-v">Tf</span> <span class="pl-c1">=</span> <span class="pl-v">D</span><span class="pl-kos">.</span><span class="pl-c1">HostText</span><span class="pl-kos">,</span>
<span class="pl-v">Uf</span> <span class="pl-c1">=</span> <span class="pl-v">D</span><span class="pl-kos">.</span><span class="pl-c1">HostPortal</span><span class="pl-kos">,</span>
<span class="pl-v">Vf</span> <span class="pl-c1">=</span> <span class="pl-v">D</span><span class="pl-kos">.</span><span class="pl-c1">CoroutineComponent</span><span class="pl-kos">,</span>
<span class="pl-v">Wf</span> <span class="pl-c1">=</span> <span class="pl-v">D</span><span class="pl-kos">.</span><span class="pl-c1">CoroutineHandlerPhase</span><span class="pl-kos">,</span>
<span class="pl-v">Xf</span> <span class="pl-c1">=</span> <span class="pl-v">D</span><span class="pl-kos">.</span><span class="pl-c1">YieldComponent</span><span class="pl-kos">,</span>
<span class="pl-v">Yf</span> <span class="pl-c1">=</span> <span class="pl-v">D</span><span class="pl-kos">.</span><span class="pl-c1">Fragment</span><span class="pl-kos">,</span>
<span class="pl-v">Zf</span> <span class="pl-c1">=</span> <span class="pl-v">L</span><span class="pl-kos">.</span><span class="pl-c1">Placement</span><span class="pl-kos">,</span>
<span class="pl-s1">$f</span> <span class="pl-c1">=</span> <span class="pl-v">L</span><span class="pl-kos">.</span><span class="pl-c1">Ref</span><span class="pl-kos">,</span>
<span class="pl-s1">ag</span> <span class="pl-c1">=</span> <span class="pl-v">L</span><span class="pl-kos">.</span><span class="pl-c1">Update</span><span class="pl-kos">,</span>
<span class="pl-s1">bg</span> <span class="pl-c1">=</span> <span class="pl-v">R</span><span class="pl-kos">.</span><span class="pl-c1">OffscreenPriority</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">This duplicates a lot: If you look in the CJS build, something along the lines of a = d.HostNode shows up in like 10 places. This is true of all of these tokens.</p>
<p dir="auto">Here's a beautified version for reference:<br>
<a href="https://gist.github.com/nhunzaker/69ede0d4014d9c590908398ac6bc6c13">https://gist.github.com/nhunzaker/69ede0d4014d9c590908398ac6bc6c13</a></p> | 0 |
<p dir="auto">When faceting on more than one index, each with one shard, no replicas, and containing the same data structure, TermsFacet will return the wrong counts. This can be easily verified by running a simple query with the facet value. Additionally, changing the size parameter will cause facet results to change (while we only expected to get a shorter/longer list , we actually see values change and terms disappear).</p>
<p dir="auto">Our faceting query:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"from" : 0,
"size" : 0,
"query" : {
"filtered" : {
"query" : {
"query_string" : {
"query" : "test",
"fields" : [ "title", "topic" ]
}
},
"filter" : {
"numeric_range" : {
"topic_date" : {
"from" : "2012-12-17T00:00:00.000+02:00",
"to" : "2013-03-17T23:59:59.999+02:00",
"include_lower" : true,
"include_upper" : true
}
}
}
}
},
"facets" : {
"termFacet" : {
"terms" : {
"fields" : [ "author" ],
"size" : 10
},
"facet_filter" : {
"numeric_range" : {
"topic_date" : {
"from" : "2012-12-17T00:00:00.000+02:00",
"to" : "2013-03-17T23:59:59.999+02:00",
"include_lower" : true,
"include_upper" : true
}
}
}
}
}
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"from"</span> : <span class="pl-c1">0</span><span class="pl-kos">,</span>
<span class="pl-s">"size"</span> : <span class="pl-c1">0</span><span class="pl-kos">,</span>
<span class="pl-s">"query"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"filtered"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"query"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"query_string"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"query"</span> : <span class="pl-s">"test"</span><span class="pl-kos">,</span>
<span class="pl-s">"fields"</span> : <span class="pl-kos">[</span> <span class="pl-s">"title"</span><span class="pl-kos">,</span> <span class="pl-s">"topic"</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">"filter"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"numeric_range"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"topic_date"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"from"</span> : <span class="pl-s">"2012-12-17T00:00:00.000+02:00"</span><span class="pl-kos">,</span>
<span class="pl-s">"to"</span> : <span class="pl-s">"2013-03-17T23:59:59.999+02:00"</span><span class="pl-kos">,</span>
<span class="pl-s">"include_lower"</span> : <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"include_upper"</span> : <span class="pl-c1">true</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"facets"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"termFacet"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"terms"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"fields"</span> : <span class="pl-kos">[</span> <span class="pl-s">"author"</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"size"</span> : <span class="pl-c1">10</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"facet_filter"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"numeric_range"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"topic_date"</span> : <span class="pl-kos">{</span>
<span class="pl-s">"from"</span> : <span class="pl-s">"2012-12-17T00:00:00.000+02:00"</span><span class="pl-kos">,</span>
<span class="pl-s">"to"</span> : <span class="pl-s">"2013-03-17T23:59:59.999+02:00"</span><span class="pl-kos">,</span>
<span class="pl-s">"include_lower"</span> : <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"include_upper"</span> : <span class="pl-c1">true</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div> | <p dir="auto">I'm working with nested documents and have noticed that my faceted search interface is giving the wrong counts when I have more than one shard. To be more specific, I'm working with RDF triples (entity > attribute > value) and I'm nesting the attributes (called predicates in my example):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"_id" : "512a2c022f0b4e3daa341e6c8bcf6c2f",
"url": "http://dbpedia.org/resource/Alan_Shepard",
"predicates": [
{
"type": "type",
"string_value": ["thing", "person", "astronaut"]
}, {
"type": "label",
"string_value": ["Alan Shepard"]
}, {
"type": "time in space",
"float_value": [216.950]
},
... lots more
]
}"><pre class="notranslate"><code class="notranslate">{
"_id" : "512a2c022f0b4e3daa341e6c8bcf6c2f",
"url": "http://dbpedia.org/resource/Alan_Shepard",
"predicates": [
{
"type": "type",
"string_value": ["thing", "person", "astronaut"]
}, {
"type": "label",
"string_value": ["Alan Shepard"]
}, {
"type": "time in space",
"float_value": [216.950]
},
... lots more
]
}
</code></pre></div>
<p dir="auto">I've created a shell script (<a href="https://gist.github.com/1196986">https://gist.github.com/1196986</a>) that recreates the problem with a fresh index. The created data set has these totals:</p>
<ul dir="auto">
<li>thing (30)</li>
<li>creative work (20)</li>
<li>video game (10)</li>
<li>tv show (10)</li>
<li>people (10)</li>
</ul>
<p dir="auto">With only <strong>one shard</strong> the following query gives the correct counts no matter what the size parameter is set to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"size": 0,
"query": {
"match_all": {}
},
"facets": {
"type_counts": {
"terms": {
"field": "string_value",
"size": 5
},
"nested": "predicates",
"facet_filter": {
"term": {
"type": "type"
}
}
}
}
}"><pre class="notranslate"><code class="notranslate">{
"size": 0,
"query": {
"match_all": {}
},
"facets": {
"type_counts": {
"terms": {
"field": "string_value",
"size": 5
},
"nested": "predicates",
"facet_filter": {
"term": {
"type": "type"
}
}
}
}
}
</code></pre></div>
<p dir="auto">However, with <strong>more than one shard</strong> the size parameter affects the accuracy of the counts. If it is equal to or greater than the number of terms returned by the facet query (5 in this case) then it works fine. However, the terms at the bottom of the list start to display low counts as you reduce the size parameter:</p>
<p dir="auto">With "size" : 4</p>
<ul dir="auto">
<li>thing (30)</li>
<li>creative work (20)</li>
<li>video game (10)</li>
<li><strong>tv show (9)</strong></li>
</ul>
<p dir="auto">With "size" : 3</p>
<ul dir="auto">
<li>thing (30)</li>
<li><strong>creative work (15)</strong></li>
<li><strong>video game (9)</strong></li>
</ul>
<p dir="auto">With "size" : 2</p>
<ul dir="auto">
<li>thing (30)</li>
<li><strong>creative work (15)</strong></li>
</ul>
<p dir="auto">So it looks like the sub-totals from some of the shards aren't being included for some reason. BTW I'm on ubuntu and the problem seems to affect all versions of ES I've tried (17.0, 17.1 and 17.6). Any ideas...?</p>
<p dir="auto">P.S. absolutely loving ES - it's made my life a lot easier :)</p> | 1 |
<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/facebook/react/blob/0e8db6ba424564833866a3044e62f4034ec98faa/src/renderers/dom/shared/ReactDOMComponent.js#L178-L184">react/src/renderers/dom/shared/ReactDOMComponent.js</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 178 to 184
in
<a data-pjax="true" class="commit-tease-sha" href="/facebook/react/commit/0e8db6ba424564833866a3044e62f4034ec98faa">0e8db6b</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="L178" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="178"></td>
<td id="LC178" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">warning</span><span class="pl-kos">(</span> </td>
</tr>
<tr class="border-0">
<td id="L179" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="179"></td>
<td id="LC179" 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">props</span><span class="pl-kos">.</span><span class="pl-c1">contentEditable</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-c1">==</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> </td>
</tr>
<tr class="border-0">
<td id="L180" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="180"></td>
<td id="LC180" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">'A component is `contentEditable` and contains `children` managed by '</span> <span class="pl-c1">+</span> </td>
</tr>
<tr class="border-0">
<td id="L181" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="181"></td>
<td id="LC181" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">'React. It is now your responsibility to guarantee that none of '</span> <span class="pl-c1">+</span> </td>
</tr>
<tr class="border-0">
<td id="L182" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="182"></td>
<td id="LC182" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">'those nodes are unexpectedly modified or duplicated. This is '</span> <span class="pl-c1">+</span> </td>
</tr>
<tr class="border-0">
<td id="L183" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="183"></td>
<td id="LC183" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">'probably not intentional.'</span> </td>
</tr>
<tr class="border-0">
<td id="L184" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="184"></td>
<td id="LC184" 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>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">React warns:</p>
<blockquote>
<p dir="auto">A component is <code class="notranslate">contentEditable</code> and contains <code class="notranslate">children</code> managed by<br>
React. It is now your responsibility to guarantee that none of<br>
those nodes are unexpectedly modified or duplicated. This is<br>
probably not intentional.</p>
</blockquote>
<p dir="auto">I am writing a rich text editor using React, and have written it to ensure that the nodes are not modified by the browser by capturing all input events, performing the modifications on my internal document format, and re-rendering using React. However, on each render, React still warns me about this.</p>
<p dir="auto">I would be awesome to be able to disable this warning somehow, such as with a specific value to the contentEditable prop, another name or something. I'm not sure the best approach to take here, so I thought I'd create an issue for discussion around this.</p> | <p dir="auto">We're writing a WYSIWYG editor in React, and in order to place a cursor inside the rich document we use <code class="notranslate">contentEditable</code>. Understandably, React doesn't fare well with contentEditable - to get around the framework's confusion once contentEditable children are modified, we force re-renders with new keys and do other work to restore the selection. In practice, we have this working pretty well.</p>
<p dir="auto">With 0.12, we're getting the new warning:</p>
<blockquote>
<p dir="auto">A component is <code class="notranslate">contentEditable</code> and contains <code class="notranslate">children</code> managed by React. It is now your responsibility to guarantee that none of these nodes are unexpectedly modified or duplicated. This is probably not intentional.</p>
</blockquote>
<p dir="auto">In our case, we do guarantee that nodes are unexpectedly modified or duplicated, and it is intentional. Is there any way to suppress that warning? Unlike the Factory warning, this warning appears each time the component is instantiated (I think) - at the very least, it slowly fills up our consoles.</p>
<p dir="auto">(We've considered an alternative of not using children on the contentEditable, and on component update we set the <code class="notranslate">innerHTML</code> outside of React - this would likely sidestep the warning, but not get us much else.)</p> | 1 |
<p dir="auto">I followed the <a href="https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/docker.md">local Docker getting started guide</a> on Ubuntu 15.10, and found myself experiencing a host of issues with /dev/pts, most notably being unable to start any terminal emulator, being greeted with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="There was an error creating the child process for this terminal
getpt failed: No such file or directory"><pre class="notranslate"><code class="notranslate">There was an error creating the child process for this terminal
getpt failed: No such file or directory
</code></pre></div>
<p dir="auto">Stopping Kubernetes and rebooting consistently fixed the issue.</p>
<p dir="auto">It seems the likely culprit is the mounting of the entire /dev path as a volume in the container per the run command given in the instructions. Is this necessary? What is Kubernetes looking for that it needs in the host /dev? Perhaps it could be a more explicit mount?</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>.): 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.): azurefile azure_file 0777</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): 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:"4", GitVersion:"v1.4.5", GitCommit:"5a0a696437ad35c133c0c8493f7e9d22b0f9b81b", GitTreeState:"clean", BuildDate:"2016-10-29T01:38:40Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}<br>
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5", GitCommit:"5a0a696437ad35c133c0c8493f7e9d22b0f9b81b", GitTreeState:"clean", BuildDate:"2016-10-29T01:32:42Z", 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>: Microsoft Azure Container Service</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): Ubuntu 16.04 LTS</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux 4.4.0-28-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35424594" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/47" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/47/hovercard" href="https://github.com/kubernetes/kubernetes/pull/47">#47</a>-Ubuntu SMP Fri Jun 24 10:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
I attempted to set up an Azure File Volume using the built-in volume type azureFile. Everything works, except that the files and directories defaults to permission 0777, always.</p>
<p dir="auto">When I tried to manually mount within the container, I could customise dir_mode and file_mode, meaning that this change should be possible. Reading the source code confirms it - dir_mode=0777 and file_mode=0777 seem hardcoded.</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
Being able to supply dir_mode and file_mode to the mount. e.g.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: myvolume
azureFile:
secretName: supersecret
shareName: myshare
readOnly: false
dirMode: 0400
fileMode: 0400"><pre class="notranslate"><code class="notranslate">- name: myvolume
azureFile:
secretName: supersecret
shareName: myshare
readOnly: false
dirMode: 0400
fileMode: 0400
</code></pre></div>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br>
N/A. This is a feature request.</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:<br>
N/A</p> | 0 |
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p>
<p dir="auto">given issues like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384632180" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/3223" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/3223/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/3223">#3223</a> and the openstack issues with model_query(), here's a sketch of an idea:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@event.listens_for(EventedQuery, "before_compile", retval=True)
def append_order_by(new_query):
if inspect(new_query).selects_against(MyClass).has_any():
for insp in inspect(new_query).selects_against(MyClass).all_aliases():
new_query = new_query.order_by(insp.entity.whatever)
return new_query
"><pre class="notranslate"><code class="notranslate">@event.listens_for(EventedQuery, "before_compile", retval=True)
def append_order_by(new_query):
if inspect(new_query).selects_against(MyClass).has_any():
for insp in inspect(new_query).selects_against(MyClass).all_aliases():
new_query = new_query.order_by(insp.entity.whatever)
return new_query
</code></pre></div>
<p dir="auto">with this extension we'd need to identify specific use cases (since we see them all the time anyway) and add them to the docs of this extension as covered use cases. So the docs here need lots of recipes and they need to be tested.</p> | <p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">I have <code class="notranslate">Parent</code> and <code class="notranslate">Child</code> classes, with a one-to-many relationship. The <code class="notranslate">Child</code> class has a <code class="notranslate">backref</code> to the <code class="notranslate">Parent</code> called <code class="notranslate">_parent</code>. These objects often live outside of <code class="notranslate">SQLAlchemy</code>, so I need to maintain this reference myself sometimes.<br>
If I get a family from the DB, and then try to assign myself the <code class="notranslate">backref</code> parameter, the children objects are duplicated</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">This behaviour is new in <code class="notranslate">1.4.7</code> and still happens against the master branch of the repo.<br>
When running the example bellow with 1.4.7 and 1.4.6, the debug logs are perfectly identical.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import logging
from sqlalchemy.orm import relationship, backref, sessionmaker, joinedload, mapper
from sqlalchemy import create_engine, Table, Column, MetaData, ForeignKey, \
Integer, String
logging.basicConfig()
logging.getLogger("sqlalchemy.engine").setLevel(logging.DEBUG)
class Parent(object):
""" Parent class, managing children """
def __init__(self):
self.ParentName = None
def _notify(self):
for child in self.__children__:
# PROBLEM HAPPENS HERE
# When setting the _parent value once the
# object was retrieved from the DB, so
# in the del r[0] call,
# the children ends up being duplicated
child._parent = self
def __contains__(self, child):
return bool(child in self.__children__)
def __iadd__(self, child):
""" Add a Child to the list of children, and
set the backref
"""
if child not in self:
self.__children__.append(child)
child._parent = self
self._notify()
return self
def __delitem__(self, i):
self.__children__.__delitem__(i)
self._notify()
def __len__(self):
""" nb of subParents """
return len(self.__children__)
class Child(object):
""" Dummy Child class, with backref to the parent """
def __init__(self, ChildName):
self.ChildName = ChildName
# backref
self._parent = None
########################################################################
metadata = MetaData()
childTable = Table('Child', metadata,
Column('ChildName', String(64), nullable=False),
Column('ChildID', Integer, primary_key=True),
Column('ParentID', Integer,
ForeignKey('Parent.ParentID', ondelete='CASCADE'),
nullable=False),
mysql_engine='InnoDB')
mapper(Child, childTable)
parentTable = Table('Parent', metadata,
Column('ParentName', String(255), nullable=False),
Column('ParentID', Integer, primary_key=True),
mysql_engine='InnoDB')
mapper(Parent, parentTable, properties={'__children__': relationship(Child,
backref=backref('_parent',
lazy='immediate'),
lazy='immediate',
passive_deletes=True,
cascade="all, delete-orphan")})
########################################################################
class FamilyDB(object):
def __init__(self):
self.dbHost = 'mysql'
self.dbPort = 3306
self.dbUser = 'root'
self.dbPass = 'password'
self.dbName = 'Test'
self.engine = create_engine('mysql://root:password@mysql:3306/Test')
metadata.bind = self.engine
self.DBSession = sessionmaker(bind=self.engine)
metadata.create_all(self.engine)
def putParent(self, parent):
""" Put a parent and children in the DB """
session = self.DBSession(expire_on_commit=False)
try:
parent = session.merge(parent)
session.add(parent)
session.commit()
session.expunge_all()
return parent.ParentID
except Exception:
session.rollback()
raise
finally:
session.close()
def getParent(self, parentID):
"""Get a parent from the DB with its children"""
session = self.DBSession(expire_on_commit=False)
try:
parent = session.query(Parent) \
.options(joinedload('__children__')) \
.filter(Parent.ParentID == parentID)\
.one()
session.expunge_all()
return parent
except Exception:
session.rollback()
raise
finally:
session.close()
def deathScenario():
db = FamilyDB()
# Create my test data, a parent with 2 children
p = Parent()
p.ParentName = "Father"
ch1 = Child("Child1")
ch2 = Child("Child2")
p += ch1
p += ch2
parentID = db.putParent(p)
# Now retrieve that family from the DB
p = db.getParent(parentID)
# I expect here that the parent has 2 children
assert len(p) == 2
# Let's kill one child :-)
del p[0]
# I expect the parent to have a single child left
# But here it fails, and has 2.
# The same one is duplicated
assert len(p) == 1, p.__children__
if __name__ == '__main__':
deathScenario()"><pre class="notranslate"><span class="pl-k">from</span> __future__ <span class="pl-k">import</span> <span class="pl-s1">absolute_import</span>
<span class="pl-k">from</span> __future__ <span class="pl-k">import</span> <span class="pl-s1">division</span>
<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">logging</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span>.<span class="pl-s1">orm</span> <span class="pl-k">import</span> <span class="pl-s1">relationship</span>, <span class="pl-s1">backref</span>, <span class="pl-s1">sessionmaker</span>, <span class="pl-s1">joinedload</span>, <span class="pl-s1">mapper</span>
<span class="pl-k">from</span> <span class="pl-s1">sqlalchemy</span> <span class="pl-k">import</span> <span class="pl-s1">create_engine</span>, <span class="pl-v">Table</span>, <span class="pl-v">Column</span>, <span class="pl-v">MetaData</span>, <span class="pl-v">ForeignKey</span>, \
<span class="pl-v">Integer</span>, <span class="pl-v">String</span>
<span class="pl-s1">logging</span>.<span class="pl-en">basicConfig</span>()
<span class="pl-s1">logging</span>.<span class="pl-en">getLogger</span>(<span class="pl-s">"sqlalchemy.engine"</span>).<span class="pl-en">setLevel</span>(<span class="pl-s1">logging</span>.<span class="pl-v">DEBUG</span>)
<span class="pl-k">class</span> <span class="pl-v">Parent</span>(<span class="pl-s1">object</span>):
<span class="pl-s">""" Parent class, managing children """</span>
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>):
<span class="pl-s1">self</span>.<span class="pl-v">ParentName</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span>
<span class="pl-k">def</span> <span class="pl-en">_notify</span>(<span class="pl-s1">self</span>):
<span class="pl-k">for</span> <span class="pl-s1">child</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">__children__</span>:
<span class="pl-c"># PROBLEM HAPPENS HERE</span>
<span class="pl-c"># When setting the _parent value once the</span>
<span class="pl-c"># object was retrieved from the DB, so</span>
<span class="pl-c"># in the del r[0] call,</span>
<span class="pl-c"># the children ends up being duplicated</span>
<span class="pl-s1">child</span>.<span class="pl-s1">_parent</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>
<span class="pl-k">def</span> <span class="pl-en">__contains__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">child</span>):
<span class="pl-k">return</span> <span class="pl-en">bool</span>(<span class="pl-s1">child</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">__children__</span>)
<span class="pl-k">def</span> <span class="pl-en">__iadd__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">child</span>):
<span class="pl-s">""" Add a Child to the list of children, and</span>
<span class="pl-s"> set the backref</span>
<span class="pl-s"> """</span>
<span class="pl-k">if</span> <span class="pl-s1">child</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>:
<span class="pl-s1">self</span>.<span class="pl-s1">__children__</span>.<span class="pl-en">append</span>(<span class="pl-s1">child</span>)
<span class="pl-s1">child</span>.<span class="pl-s1">_parent</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>
<span class="pl-s1">self</span>.<span class="pl-en">_notify</span>()
<span class="pl-k">return</span> <span class="pl-s1">self</span>
<span class="pl-k">def</span> <span class="pl-en">__delitem__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">i</span>):
<span class="pl-s1">self</span>.<span class="pl-s1">__children__</span>.<span class="pl-en">__delitem__</span>(<span class="pl-s1">i</span>)
<span class="pl-s1">self</span>.<span class="pl-en">_notify</span>()
<span class="pl-k">def</span> <span class="pl-en">__len__</span>(<span class="pl-s1">self</span>):
<span class="pl-s">""" nb of subParents """</span>
<span class="pl-k">return</span> <span class="pl-en">len</span>(<span class="pl-s1">self</span>.<span class="pl-s1">__children__</span>)
<span class="pl-k">class</span> <span class="pl-v">Child</span>(<span class="pl-s1">object</span>):
<span class="pl-s">""" Dummy Child class, with backref to the parent """</span>
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-v">ChildName</span>):
<span class="pl-s1">self</span>.<span class="pl-v">ChildName</span> <span class="pl-c1">=</span> <span class="pl-v">ChildName</span>
<span class="pl-c"># backref</span>
<span class="pl-s1">self</span>.<span class="pl-s1">_parent</span> <span class="pl-c1">=</span> <span class="pl-c1">None</span>
<span class="pl-c">########################################################################</span>
<span class="pl-s1">metadata</span> <span class="pl-c1">=</span> <span class="pl-v">MetaData</span>()
<span class="pl-s1">childTable</span> <span class="pl-c1">=</span> <span class="pl-v">Table</span>(<span class="pl-s">'Child'</span>, <span class="pl-s1">metadata</span>,
<span class="pl-v">Column</span>(<span class="pl-s">'ChildName'</span>, <span class="pl-v">String</span>(<span class="pl-c1">64</span>), <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>),
<span class="pl-v">Column</span>(<span class="pl-s">'ChildID'</span>, <span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>),
<span class="pl-v">Column</span>(<span class="pl-s">'ParentID'</span>, <span class="pl-v">Integer</span>,
<span class="pl-v">ForeignKey</span>(<span class="pl-s">'Parent.ParentID'</span>, <span class="pl-s1">ondelete</span><span class="pl-c1">=</span><span class="pl-s">'CASCADE'</span>),
<span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>),
<span class="pl-s1">mysql_engine</span><span class="pl-c1">=</span><span class="pl-s">'InnoDB'</span>)
<span class="pl-en">mapper</span>(<span class="pl-v">Child</span>, <span class="pl-s1">childTable</span>)
<span class="pl-s1">parentTable</span> <span class="pl-c1">=</span> <span class="pl-v">Table</span>(<span class="pl-s">'Parent'</span>, <span class="pl-s1">metadata</span>,
<span class="pl-v">Column</span>(<span class="pl-s">'ParentName'</span>, <span class="pl-v">String</span>(<span class="pl-c1">255</span>), <span class="pl-s1">nullable</span><span class="pl-c1">=</span><span class="pl-c1">False</span>),
<span class="pl-v">Column</span>(<span class="pl-s">'ParentID'</span>, <span class="pl-v">Integer</span>, <span class="pl-s1">primary_key</span><span class="pl-c1">=</span><span class="pl-c1">True</span>),
<span class="pl-s1">mysql_engine</span><span class="pl-c1">=</span><span class="pl-s">'InnoDB'</span>)
<span class="pl-en">mapper</span>(<span class="pl-v">Parent</span>, <span class="pl-s1">parentTable</span>, <span class="pl-s1">properties</span><span class="pl-c1">=</span>{<span class="pl-s">'__children__'</span>: <span class="pl-en">relationship</span>(<span class="pl-v">Child</span>,
<span class="pl-s1">backref</span><span class="pl-c1">=</span><span class="pl-en">backref</span>(<span class="pl-s">'_parent'</span>,
<span class="pl-s1">lazy</span><span class="pl-c1">=</span><span class="pl-s">'immediate'</span>),
<span class="pl-s1">lazy</span><span class="pl-c1">=</span><span class="pl-s">'immediate'</span>,
<span class="pl-s1">passive_deletes</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-s1">cascade</span><span class="pl-c1">=</span><span class="pl-s">"all, delete-orphan"</span>)})
<span class="pl-c">########################################################################</span>
<span class="pl-k">class</span> <span class="pl-v">FamilyDB</span>(<span class="pl-s1">object</span>):
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>):
<span class="pl-s1">self</span>.<span class="pl-s1">dbHost</span> <span class="pl-c1">=</span> <span class="pl-s">'mysql'</span>
<span class="pl-s1">self</span>.<span class="pl-s1">dbPort</span> <span class="pl-c1">=</span> <span class="pl-c1">3306</span>
<span class="pl-s1">self</span>.<span class="pl-s1">dbUser</span> <span class="pl-c1">=</span> <span class="pl-s">'root'</span>
<span class="pl-s1">self</span>.<span class="pl-s1">dbPass</span> <span class="pl-c1">=</span> <span class="pl-s">'password'</span>
<span class="pl-s1">self</span>.<span class="pl-s1">dbName</span> <span class="pl-c1">=</span> <span class="pl-s">'Test'</span>
<span class="pl-s1">self</span>.<span class="pl-s1">engine</span> <span class="pl-c1">=</span> <span class="pl-en">create_engine</span>(<span class="pl-s">'mysql://root:password@mysql:3306/Test'</span>)
<span class="pl-s1">metadata</span>.<span class="pl-s1">bind</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">engine</span>
<span class="pl-s1">self</span>.<span class="pl-v">DBSession</span> <span class="pl-c1">=</span> <span class="pl-en">sessionmaker</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">engine</span>)
<span class="pl-s1">metadata</span>.<span class="pl-en">create_all</span>(<span class="pl-s1">self</span>.<span class="pl-s1">engine</span>)
<span class="pl-k">def</span> <span class="pl-en">putParent</span>(<span class="pl-s1">self</span>, <span class="pl-s1">parent</span>):
<span class="pl-s">""" Put a parent and children in the DB """</span>
<span class="pl-s1">session</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-v">DBSession</span>(<span class="pl-s1">expire_on_commit</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-k">try</span>:
<span class="pl-s1">parent</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">merge</span>(<span class="pl-s1">parent</span>)
<span class="pl-s1">session</span>.<span class="pl-en">add</span>(<span class="pl-s1">parent</span>)
<span class="pl-s1">session</span>.<span class="pl-en">commit</span>()
<span class="pl-s1">session</span>.<span class="pl-en">expunge_all</span>()
<span class="pl-k">return</span> <span class="pl-s1">parent</span>.<span class="pl-v">ParentID</span>
<span class="pl-k">except</span> <span class="pl-v">Exception</span>:
<span class="pl-s1">session</span>.<span class="pl-en">rollback</span>()
<span class="pl-k">raise</span>
<span class="pl-k">finally</span>:
<span class="pl-s1">session</span>.<span class="pl-en">close</span>()
<span class="pl-k">def</span> <span class="pl-en">getParent</span>(<span class="pl-s1">self</span>, <span class="pl-s1">parentID</span>):
<span class="pl-s">"""Get a parent from the DB with its children"""</span>
<span class="pl-s1">session</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-v">DBSession</span>(<span class="pl-s1">expire_on_commit</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-k">try</span>:
<span class="pl-s1">parent</span> <span class="pl-c1">=</span> <span class="pl-s1">session</span>.<span class="pl-en">query</span>(<span class="pl-v">Parent</span>) \
.<span class="pl-en">options</span>(<span class="pl-en">joinedload</span>(<span class="pl-s">'__children__'</span>)) \
.<span class="pl-en">filter</span>(<span class="pl-v">Parent</span>.<span class="pl-v">ParentID</span> <span class="pl-c1">==</span> <span class="pl-s1">parentID</span>)\
.<span class="pl-en">one</span>()
<span class="pl-s1">session</span>.<span class="pl-en">expunge_all</span>()
<span class="pl-k">return</span> <span class="pl-s1">parent</span>
<span class="pl-k">except</span> <span class="pl-v">Exception</span>:
<span class="pl-s1">session</span>.<span class="pl-en">rollback</span>()
<span class="pl-k">raise</span>
<span class="pl-k">finally</span>:
<span class="pl-s1">session</span>.<span class="pl-en">close</span>()
<span class="pl-k">def</span> <span class="pl-en">deathScenario</span>():
<span class="pl-s1">db</span> <span class="pl-c1">=</span> <span class="pl-v">FamilyDB</span>()
<span class="pl-c"># Create my test data, a parent with 2 children</span>
<span class="pl-s1">p</span> <span class="pl-c1">=</span> <span class="pl-v">Parent</span>()
<span class="pl-s1">p</span>.<span class="pl-v">ParentName</span> <span class="pl-c1">=</span> <span class="pl-s">"Father"</span>
<span class="pl-s1">ch1</span> <span class="pl-c1">=</span> <span class="pl-v">Child</span>(<span class="pl-s">"Child1"</span>)
<span class="pl-s1">ch2</span> <span class="pl-c1">=</span> <span class="pl-v">Child</span>(<span class="pl-s">"Child2"</span>)
<span class="pl-s1">p</span> <span class="pl-c1">+=</span> <span class="pl-s1">ch1</span>
<span class="pl-s1">p</span> <span class="pl-c1">+=</span> <span class="pl-s1">ch2</span>
<span class="pl-s1">parentID</span> <span class="pl-c1">=</span> <span class="pl-s1">db</span>.<span class="pl-en">putParent</span>(<span class="pl-s1">p</span>)
<span class="pl-c"># Now retrieve that family from the DB</span>
<span class="pl-s1">p</span> <span class="pl-c1">=</span> <span class="pl-s1">db</span>.<span class="pl-en">getParent</span>(<span class="pl-s1">parentID</span>)
<span class="pl-c"># I expect here that the parent has 2 children</span>
<span class="pl-k">assert</span> <span class="pl-en">len</span>(<span class="pl-s1">p</span>) <span class="pl-c1">==</span> <span class="pl-c1">2</span>
<span class="pl-c"># Let's kill one child :-)</span>
<span class="pl-k">del</span> <span class="pl-s1">p</span>[<span class="pl-c1">0</span>]
<span class="pl-c"># I expect the parent to have a single child left</span>
<span class="pl-c"># But here it fails, and has 2.</span>
<span class="pl-c"># The same one is duplicated</span>
<span class="pl-k">assert</span> <span class="pl-en">len</span>(<span class="pl-s1">p</span>) <span class="pl-c1">==</span> <span class="pl-c1">1</span>, <span class="pl-s1">p</span>.<span class="pl-s1">__children__</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">deathScenario</span>()</pre></div>
<p dir="auto"><strong>Error</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/tmp/reproducer/reproducer2.py", line 181, in <module>
deathScenario()
File "/tmp/reproducer/reproducer2.py", line 177, in deathScenario
assert len(p) == 1, p.__children__
AssertionError: [<__main__.Child object at 0x7fb7e541e590>, <__main__.Child object at 0x7fb7e541e590>]"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/tmp/reproducer/reproducer2.py", line 181, in <module>
deathScenario()
File "/tmp/reproducer/reproducer2.py", line 177, in deathScenario
assert len(p) == 1, p.__children__
AssertionError: [<__main__.Child object at 0x7fb7e541e590>, <__main__.Child object at 0x7fb7e541e590>]
</code></pre></div>
<p dir="auto"><strong>Versions.</strong></p>
<ul dir="auto">
<li>OS: CentOS Linux release 7.8.2003</li>
<li>Python: 2.7.13</li>
<li>SQLAlchemy: from 1.4.7 onward</li>
<li>Database: Mysql</li>
<li>DBAPI: MySQL-python 1.2.5</li>
</ul>
<p dir="auto"><strong>Have a nice day!</strong></p> | 0 |
<p dir="auto">node v8.10.0<br>
npm 5.6.0<br>
os mac<br>
webpack 4.6.0</p> | <p dir="auto">Originally posted this issue on webpack-dev-server's repo, but was told nearly all of HMR is handled by Webpack itself, so I am moving that issue over here.</p>
<ul dir="auto">
<li>Operating System: Mac OS High Sierra</li>
<li>Node Version: 8.10.0</li>
<li>NPM Version: 5.6.0</li>
<li>webpack Version: 4.1.1</li>
<li>webpack-dev-server Version: 3.1.1</li>
</ul>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> This is a <strong>bug</strong></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This is a <strong>modification</strong> request</li>
</ul>
<h3 dir="auto">Code</h3>
<p dir="auto">Note that the webpack file I posted isn't exactly what we have, but anything removed was just company info, me merging a common webpack file with our dev one to produce a single code snippet, and removing some unrelated/redundant info (e.g. multiple templates with similar content).</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // webpack.config.js
const webpack = require('webpack');
const merge = require('webpack-merge');
const config = require('./webpack.common.config.js');
const Jarvis = require('webpack-jarvis');
module.exports = merge(config, {
mode: 'development',
devtool: 'cheap-module-eval-source-map',
output: {
publicPath: '/',
filename: '[name]-[hash].js',
crossOriginLoading: 'anonymous',
chunkFilename: '[name]-[hash].js'
},
optimization: {
noEmitOnErrors: true,
namedModules: true,
},
plugins: [
new CopyWebpackPlugin([{
from: 'app/assets/images/favicon/',
to: 'favicon/',
}]),
new CopyWebpackPlugin([{
from: 'app/assets/images/square/logo.png',
to: 'logo.png',
}]),
new ExtractTextPlugin({
filename: '[name]-styles-[contenthash].css',
allChunks: true,
}),
new DeterministicHash(),
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
new HtmlWebpackPlugin({
template: 'templates/index.ejs',
filename: 'index.html',
inject: false,
chunks: ['common', 'main'],
appleTouchIconSizes: [57, 72, 114, 120, 144, 152],
}),
new Jarvis({port: 7003}),
new webpack.HotModuleReplacementPlugin(),
new webpack.DefinePlugin({
_DEVELOPMENT_: true,
})
],
module: {
rules: [
{
test: /\.(otf|ttf|woff|woff2|png|jpg|svg|mp3|wav|aff|dic)$/,
use: [
{
loader: 'file-loader',
options: {
name: 'assets/[name]-[sha1:hash:hex:8].[ext]'
},
},
]
},
{
test: /\.s?css$/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: [
'css-loader',
{
loader: 'postcss-loader',
options: {
plugins: () => [
require('precss'),
require('autoprefixer'),
]
}
},
'sass-loader'
]
}),
},
{
test: /\.jsx?$/,
use: ['babel-loader'],
},
]
},
entry: {
main: [
'babel-polyfill',
'react-hot-loader/patch',
'webpack/hot/only-dev-server',
'webpack-dev-server/client?https://0.0.0.0:7001',
'./app/main.js',
],
}
});
"><pre class="notranslate"> <span class="pl-c">// webpack.config.js</span>
<span class="pl-k">const</span> <span class="pl-s1">webpack</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'webpack'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">merge</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'webpack-merge'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">config</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'./webpack.common.config.js'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-v">Jarvis</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'webpack-jarvis'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-s1">merge</span><span class="pl-kos">(</span><span class="pl-s1">config</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">mode</span>: <span class="pl-s">'development'</span><span class="pl-kos">,</span>
<span class="pl-c1">devtool</span>: <span class="pl-s">'cheap-module-eval-source-map'</span><span class="pl-kos">,</span>
<span class="pl-c1">output</span>: <span class="pl-kos">{</span>
<span class="pl-c1">publicPath</span>: <span class="pl-s">'/'</span><span class="pl-kos">,</span>
<span class="pl-c1">filename</span>: <span class="pl-s">'[name]-[hash].js'</span><span class="pl-kos">,</span>
<span class="pl-c1">crossOriginLoading</span>: <span class="pl-s">'anonymous'</span><span class="pl-kos">,</span>
<span class="pl-c1">chunkFilename</span>: <span class="pl-s">'[name]-[hash].js'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">optimization</span>: <span class="pl-kos">{</span>
<span class="pl-c1">noEmitOnErrors</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">namedModules</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">plugins</span>: <span class="pl-kos">[</span>
<span class="pl-k">new</span> <span class="pl-v">CopyWebpackPlugin</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-kos">{</span>
<span class="pl-c1">from</span>: <span class="pl-s">'app/assets/images/favicon/'</span><span class="pl-kos">,</span>
<span class="pl-c1">to</span>: <span class="pl-s">'favicon/'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-k">new</span> <span class="pl-v">CopyWebpackPlugin</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-kos">{</span>
<span class="pl-c1">from</span>: <span class="pl-s">'app/assets/images/square/logo.png'</span><span class="pl-kos">,</span>
<span class="pl-c1">to</span>: <span class="pl-s">'logo.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>
<span class="pl-k">new</span> <span class="pl-v">ExtractTextPlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">filename</span>: <span class="pl-s">'[name]-styles-[contenthash].css'</span><span class="pl-kos">,</span>
<span class="pl-c1">allChunks</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-k">new</span> <span class="pl-v">DeterministicHash</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">IgnorePlugin</span><span class="pl-kos">(</span><span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">^</span><span class="pl-cce">\.</span><span class="pl-cce">\/</span>locale<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span> <span class="pl-pds"><span class="pl-c1">/</span>moment<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-k">new</span> <span class="pl-v">HtmlWebpackPlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">template</span>: <span class="pl-s">'templates/index.ejs'</span><span class="pl-kos">,</span>
<span class="pl-c1">filename</span>: <span class="pl-s">'index.html'</span><span class="pl-kos">,</span>
<span class="pl-c1">inject</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">chunks</span>: <span class="pl-kos">[</span><span class="pl-s">'common'</span><span class="pl-kos">,</span> <span class="pl-s">'main'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">appleTouchIconSizes</span>: <span class="pl-kos">[</span><span class="pl-c1">57</span><span class="pl-kos">,</span> <span class="pl-c1">72</span><span class="pl-kos">,</span> <span class="pl-c1">114</span><span class="pl-kos">,</span> <span class="pl-c1">120</span><span class="pl-kos">,</span> <span class="pl-c1">144</span><span class="pl-kos">,</span> <span class="pl-c1">152</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-k">new</span> <span class="pl-v">Jarvis</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">port</span>: <span class="pl-c1">7003</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">HotModuleReplacementPlugin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-k">new</span> <span class="pl-s1">webpack</span><span class="pl-kos">.</span><span class="pl-c1">DefinePlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">_DEVELOPMENT_</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">module</span>: <span class="pl-kos">{</span>
<span class="pl-c1">rules</span>: <span class="pl-kos">[</span>
<span class="pl-kos">{</span>
<span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span><span class="pl-kos">(</span>otf<span class="pl-c1">|</span>ttf<span class="pl-c1">|</span>woff<span class="pl-c1">|</span>woff2<span class="pl-c1">|</span>png<span class="pl-c1">|</span>jpg<span class="pl-c1">|</span>svg<span class="pl-c1">|</span>mp3<span class="pl-c1">|</span>wav<span class="pl-c1">|</span>aff<span class="pl-c1">|</span>dic<span class="pl-kos">)</span><span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">[</span>
<span class="pl-kos">{</span>
<span class="pl-c1">loader</span>: <span class="pl-s">'file-loader'</span><span class="pl-kos">,</span>
<span class="pl-c1">options</span>: <span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'assets/[name]-[sha1:hash:hex:8].[ext]'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>s?css<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-v">ExtractTextPlugin</span><span class="pl-kos">.</span><span class="pl-en">extract</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">fallback</span>: <span class="pl-s">'style-loader'</span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">[</span>
<span class="pl-s">'css-loader'</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">loader</span>: <span class="pl-s">'postcss-loader'</span><span class="pl-kos">,</span>
<span class="pl-c1">options</span>: <span class="pl-kos">{</span>
<span class="pl-en">plugins</span>: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">[</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'precss'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'autoprefixer'</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">'sass-loader'</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">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>jsx?<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">[</span><span class="pl-s">'babel-loader'</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">entry</span>: <span class="pl-kos">{</span>
<span class="pl-c1">main</span>: <span class="pl-kos">[</span>
<span class="pl-s">'babel-polyfill'</span><span class="pl-kos">,</span>
<span class="pl-s">'react-hot-loader/patch'</span><span class="pl-kos">,</span>
<span class="pl-s">'webpack/hot/only-dev-server'</span><span class="pl-kos">,</span>
<span class="pl-s">'webpack-dev-server/client?https://0.0.0.0:7001'</span><span class="pl-kos">,</span>
<span class="pl-s">'./app/main.js'</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>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" // dev-server.js
const path = require('path');
const fs = require('fs');
const webpack = require('webpack');
const WebpackDevServer = require('webpack-dev-server');
const config = require('./webpack.devconfig');
const ssl = require('./devssl');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
headers: {'Access-Control-Allow-Origin': '*'},
hot: true,
https: true,
clientLogLevel: 'error',
cert: ssl.cert,
overlay: true,
key: ssl.key,
historyApiFallback: true,
disableHostCheck: true,
watchOptions: {
ignored: /\/node_modules\/.*/,
},
stats: {
assets: false,
cached: false,
cachedAssets: false,
children: false,
chunks: false,
chunkModules: false,
chunkOrigins: false,
colors: true,
depth: false,
entrypoints: true,
excludeAssets: /app\/assets/,
hash: false,
maxModules: 15,
modules: false,
performance: true,
reasons: false,
source: false,
timings: true,
version: false,
warnings: true,
},
}).listen(7001, '0.0.0.0', function(err, result) {
console.log(`Serving chunks at path ${config.output.publicPath}`);
});"><pre class="notranslate"> <span class="pl-c">// dev-server.js</span>
<span class="pl-k">const</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">fs</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'fs'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">webpack</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'webpack'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-v">WebpackDevServer</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'webpack-dev-server'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">config</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'./webpack.devconfig'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">ssl</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'./devssl'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">new</span> <span class="pl-v">WebpackDevServer</span><span class="pl-kos">(</span><span class="pl-s1">webpack</span><span class="pl-kos">(</span><span class="pl-s1">config</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">publicPath</span>: <span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">output</span><span class="pl-kos">.</span><span class="pl-c1">publicPath</span><span class="pl-kos">,</span>
<span class="pl-c1">headers</span>: <span class="pl-kos">{</span><span class="pl-s">'Access-Control-Allow-Origin'</span>: <span class="pl-s">'*'</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">hot</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">https</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">clientLogLevel</span>: <span class="pl-s">'error'</span><span class="pl-kos">,</span>
<span class="pl-c1">cert</span>: <span class="pl-s1">ssl</span><span class="pl-kos">.</span><span class="pl-c1">cert</span><span class="pl-kos">,</span>
<span class="pl-c1">overlay</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">key</span>: <span class="pl-s1">ssl</span><span class="pl-kos">.</span><span class="pl-c1">key</span><span class="pl-kos">,</span>
<span class="pl-c1">historyApiFallback</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">disableHostCheck</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">watchOptions</span>: <span class="pl-kos">{</span>
<span class="pl-c1">ignored</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\/</span>node_modules<span class="pl-cce">\/</span>.<span class="pl-c1">*</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">stats</span>: <span class="pl-kos">{</span>
<span class="pl-c1">assets</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">cached</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">cachedAssets</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">children</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">chunks</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">chunkModules</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">chunkOrigins</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">colors</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">depth</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">entrypoints</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">excludeAssets</span>: <span class="pl-pds"><span class="pl-c1">/</span>app<span class="pl-cce">\/</span>assets<span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">hash</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">maxModules</span>: <span class="pl-c1">15</span><span class="pl-kos">,</span>
<span class="pl-c1">modules</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">performance</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">reasons</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">source</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">timings</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">version</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">warnings</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">listen</span><span class="pl-kos">(</span><span class="pl-c1">7001</span><span class="pl-kos">,</span> <span class="pl-s">'0.0.0.0'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">err</span><span class="pl-kos">,</span> <span class="pl-s1">result</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`Serving chunks at path <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">output</span><span class="pl-kos">.</span><span class="pl-c1">publicPath</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Similar, if not faster HMR</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Hot reload time increased from ~5s to ~10s when upgrading from Webpack 3 to Webpack 4.</p>
<h3 dir="auto">For Bugs; How can we reproduce the behavior?</h3>
<p dir="auto">Unsure if it reproduces in every case, but in our case we have a large webapp that spits out multiple entry points, with sass processing, along with a lot of other webpack features.</p> | 1 |
<h1 dir="auto">Environment</h1>
<p dir="auto">Windows 10</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1715.0
# Steps to reproduce
Clicking on Settings menu not opening settings.
# Expected behavior
Settings window or tab or any action should happen to view the current settings.
# Actual behavior
Nothing happens.
<!-- What's actually happening? -->"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1715.0
# Steps to reproduce
Clicking on Settings menu not opening settings.
# Expected behavior
Settings window or tab or any action should happen to view the current settings.
# Actual behavior
Nothing happens.
<!-- What's actually happening? -->
</code></pre></div> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.4.2382.0
Any other software?
tmux v2.6
zsh 5.4.2 (x86_64-ubuntu-linux-gnu)"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0
Windows Terminal version (if applicable): 0.4.2382.0
Any other software?
tmux v2.6
zsh 5.4.2 (x86_64-ubuntu-linux-gnu)
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Run the following script to show full colour and font styles: curl -s -L <a href="https://git.gnome.org/browse/vte/plain/perf/256test.sh%5C?h%5C=vte-0-38" rel="nofollow">https://git.gnome.org/browse/vte/plain/perf/256test.sh\?h\=vte-0-38</a> | bash</p>
<h1 dir="auto">Expected behaviour</h1>
<p dir="auto">Expect that the emboldened text to appear as below:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/899d9486a7f63312469d440d46facb08c9e46d8c05e260016e7c0f7c0717e93e/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f45367453622e706e67"><img src="https://camo.githubusercontent.com/899d9486a7f63312469d440d46facb08c9e46d8c05e260016e7c0f7c0717e93e/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f45367453622e706e67" alt="image" data-canonical-src="https://i.stack.imgur.com/E6tSb.png" style="max-width: 100%;"></a></p>
<h1 dir="auto">Actual behaviour</h1>
<p dir="auto">No bold text is shown in the output.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1066864/65443120-af05f600-ddea-11e9-8c8d-bbb757fa11d1.png"><img src="https://user-images.githubusercontent.com/1066864/65443120-af05f600-ddea-11e9-8c8d-bbb757fa11d1.png" alt="image" style="max-width: 100%;"></a></p>
<h1 dir="auto">Note: This has been tested with MesloLGM and Consolas.</h1>
<p dir="auto">MelsoLGM repo link: <a href="https://github.com/andreberg/Meslo-Font">https://github.com/andreberg/Meslo-Font</a><br>
Licence: <a href="https://github.com/andreberg/Meslo-Font#license">https://github.com/andreberg/Meslo-Font#license</a></p> | 0 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">The CyclicLR scheduler tries to access the optimizer's momentum parameter even if <code class="notranslate">cycle_momentum=False</code>.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>Setup a model named <code class="notranslate">net</code></li>
<li>Run the following:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch.optim as optim
optimizer = optim.Adam(net.parameters(), lr=0.001)
scheduler = optim.lr_scheduler.CyclicLR(optimizer, base_lr=0.0001, max_lr=0.01, cycle_momentum=False)"><pre class="notranslate"><code class="notranslate">import torch.optim as optim
optimizer = optim.Adam(net.parameters(), lr=0.001)
scheduler = optim.lr_scheduler.CyclicLR(optimizer, base_lr=0.0001, max_lr=0.01, cycle_momentum=False)
</code></pre></div>
<p dir="auto">Resulting error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="KeyError Traceback (most recent call last)
<ipython-input-113-a9df59301cc9> in <module>
1 optimizer = optim.Adam(net.parameters(), lr=0.001)
----> 2 scheduler = optim.lr_scheduler.CyclicLR(optimizer, base_lr=0.0001, max_lr=0.01, cycle_momentum=False)
~/.pyenv/versions/3.6.6/lib/python3.6/site-packages/torch/optim/lr_scheduler.py in __init__(self, optimizer, base_lr, max_lr, step_size_up, step_size_down, mode, gamma, scale_fn, scale_mode, cycle_momentum, base_momentum, max_momentum, last_epoch)
591 for momentum, group in zip(base_momentums, optimizer.param_groups):
592 group['momentum'] = momentum
--> 593 self.base_momentums = list(map(lambda group: group['momentum'], optimizer.param_groups))
594 self.max_momentums = self._format_param('max_momentum', optimizer, max_momentum)
595
~/.pyenv/versions/3.6.6/lib/python3.6/site-packages/torch/optim/lr_scheduler.py in <lambda>(group)
591 for momentum, group in zip(base_momentums, optimizer.param_groups):
592 group['momentum'] = momentum
--> 593 self.base_momentums = list(map(lambda group: group['momentum'], optimizer.param_groups))
594 self.max_momentums = self._format_param('max_momentum', optimizer, max_momentum)
595
KeyError: 'momentum'"><pre class="notranslate"><code class="notranslate">KeyError Traceback (most recent call last)
<ipython-input-113-a9df59301cc9> in <module>
1 optimizer = optim.Adam(net.parameters(), lr=0.001)
----> 2 scheduler = optim.lr_scheduler.CyclicLR(optimizer, base_lr=0.0001, max_lr=0.01, cycle_momentum=False)
~/.pyenv/versions/3.6.6/lib/python3.6/site-packages/torch/optim/lr_scheduler.py in __init__(self, optimizer, base_lr, max_lr, step_size_up, step_size_down, mode, gamma, scale_fn, scale_mode, cycle_momentum, base_momentum, max_momentum, last_epoch)
591 for momentum, group in zip(base_momentums, optimizer.param_groups):
592 group['momentum'] = momentum
--> 593 self.base_momentums = list(map(lambda group: group['momentum'], optimizer.param_groups))
594 self.max_momentums = self._format_param('max_momentum', optimizer, max_momentum)
595
~/.pyenv/versions/3.6.6/lib/python3.6/site-packages/torch/optim/lr_scheduler.py in <lambda>(group)
591 for momentum, group in zip(base_momentums, optimizer.param_groups):
592 group['momentum'] = momentum
--> 593 self.base_momentums = list(map(lambda group: group['momentum'], optimizer.param_groups))
594 self.max_momentums = self._format_param('max_momentum', optimizer, max_momentum)
595
KeyError: 'momentum'
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">I expect the scheduler not try to access the <code class="notranslate">momentum</code> key if I've told it not to cycle the momentum parameter. The error seems to be due to a minor indentation mistake here:</p>
<p dir="auto"><a href="https://github.com/pytorch/pytorch/blob/master/torch/optim/lr_scheduler.py#L594-L595">https://github.com/pytorch/pytorch/blob/master/torch/optim/lr_scheduler.py#L594-L595</a></p>
<p dir="auto">The instance variables <code class="notranslate">base_momentums</code> and <code class="notranslate">max_momentums</code> are only ever accessed if <code class="notranslate">cycle_momentum</code> is true. Thus the two lines where they're being should be indented.</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">N/A</p>
<h2 dir="auto">Additional comments</h2>
<p dir="auto">I'll push a PR to fix this in a minute, though may need a little help with PyTorch's specific contribution process.</p> | <h2 dir="auto">Issue description</h2>
<p dir="auto">If I use an optimizer like adam with no momentum and follow the message of line 578 below here, passing <code class="notranslate">cycle_momentum=False</code>, line 584 throws a KeyError because key 'momentum' is not set.</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/pytorch/pytorch/blob/173f224570017b4b1a3a1a13d0bff280a54d9cd9/torch/optim/lr_scheduler.py#L576-L585">pytorch/torch/optim/lr_scheduler.py</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 576 to 585
in
<a data-pjax="true" class="commit-tease-sha" href="/pytorch/pytorch/commit/173f224570017b4b1a3a1a13d0bff280a54d9cd9">173f224</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="L576" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="576"></td>
<td id="LC576" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">cycle_momentum</span>: </td>
</tr>
<tr class="border-0">
<td id="L577" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="577"></td>
<td id="LC577" 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-s">'momentum'</span> <span class="pl-c1">not</span> <span class="pl-c1">in</span> <span class="pl-s1">optimizer</span>.<span class="pl-s1">defaults</span>: </td>
</tr>
<tr class="border-0">
<td id="L578" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="578"></td>
<td id="LC578" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'optimizer must support momentum with `cycle_momentum` option enabled'</span>) </td>
</tr>
<tr class="border-0">
<td id="L579" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="579"></td>
<td id="LC579" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L580" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="580"></td>
<td id="LC580" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">base_momentums</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">_format_param</span>(<span class="pl-s">'base_momentum'</span>, <span class="pl-s1">optimizer</span>, <span class="pl-s1">base_momentum</span>) </td>
</tr>
<tr class="border-0">
<td id="L581" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="581"></td>
<td id="LC581" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-s1">last_epoch</span> <span class="pl-c1">==</span> <span class="pl-c1">-</span><span class="pl-c1">1</span>: </td>
</tr>
<tr class="border-0">
<td id="L582" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="582"></td>
<td id="LC582" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">for</span> <span class="pl-s1">momentum</span>, <span class="pl-s1">group</span> <span class="pl-c1">in</span> <span class="pl-en">zip</span>(<span class="pl-s1">base_momentums</span>, <span class="pl-s1">optimizer</span>.<span class="pl-s1">param_groups</span>): </td>
</tr>
<tr class="border-0">
<td id="L583" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="583"></td>
<td id="LC583" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">group</span>[<span class="pl-s">'momentum'</span>] <span class="pl-c1">=</span> <span class="pl-s1">momentum</span> </td>
</tr>
<tr class="border-0">
<td id="L584" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="584"></td>
<td id="LC584" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">self</span>.<span class="pl-s1">base_momentums</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-en">map</span>(<span class="pl-k">lambda</span> <span class="pl-s1">group</span>: <span class="pl-s1">group</span>[<span class="pl-s">'momentum'</span>], <span class="pl-s1">optimizer</span>.<span class="pl-s1">param_groups</span>)) </td>
</tr>
<tr class="border-0">
<td id="L585" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="585"></td>
<td id="LC585" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">self</span>.<span class="pl-s1">max_momentums</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">_format_param</span>(<span class="pl-s">'max_momentum'</span>, <span class="pl-s1">optimizer</span>, <span class="pl-s1">max_momentum</span>) </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<ol dir="auto">
<li>I believe the last two lines should be indented under the if-condition as well.</li>
<li>I also think the expected behavior is that cycle_momentum is set to False by default when the passed in optimizer doesn't support momentum, instead of throwing an error.</li>
</ol>
<h2 dir="auto">Code example</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="optimizer = optim.Adam(params_to_update, lr=5e-4)
scheduler = CyclicLR(optimizer, base_lr=5e-6, max_lr=5e-2, cycle_momentum=False, step_size_up=2500)"><pre class="notranslate"><code class="notranslate">optimizer = optim.Adam(params_to_update, lr=5e-4)
scheduler = CyclicLR(optimizer, base_lr=5e-6, max_lr=5e-2, cycle_momentum=False, step_size_up=2500)
</code></pre></div>
<h2 dir="auto">System Info</h2>
<p dir="auto">In my setup, I am using the stable version of pytorch, but I copied over CyclicLR and relative imports from master and I am using it in my project.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting environment information...
PyTorch version: 1.0.1.post2
Is debug build: No
CUDA used to build PyTorch: 10.0.130
OS: Debian GNU/Linux 9.8 (stretch)
GCC version: (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
CMake version: Could not collect
Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.0.130
GPU models and configuration: GPU 0: Tesla P4
Nvidia driver version: 410.72
cuDNN version: Could not collect
Versions of relevant libraries:
[pip3] intel-numpy==1.15.1
[pip3] numpy==1.15.1
[pip3] torch==1.0.1.post2
[pip3] torchvision==0.2.2.post3
[conda] blas 1.0 mkl
[conda] mkl 2019.1 144
[conda] mkl-service 1.1.2 py37he904b0f_5
[conda] mkl_fft 1.0.6 py37hd81dba3_0
[conda] mkl_random 1.0.2 py37hd81dba3_0
[conda] pytorch 1.0.1 py3.7_cuda10.0.130_cudnn7.4.2_2 pytorch
[conda] torchvision 0.2.2 py_3 pytorch"><pre class="notranslate"><code class="notranslate">Collecting environment information...
PyTorch version: 1.0.1.post2
Is debug build: No
CUDA used to build PyTorch: 10.0.130
OS: Debian GNU/Linux 9.8 (stretch)
GCC version: (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
CMake version: Could not collect
Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.0.130
GPU models and configuration: GPU 0: Tesla P4
Nvidia driver version: 410.72
cuDNN version: Could not collect
Versions of relevant libraries:
[pip3] intel-numpy==1.15.1
[pip3] numpy==1.15.1
[pip3] torch==1.0.1.post2
[pip3] torchvision==0.2.2.post3
[conda] blas 1.0 mkl
[conda] mkl 2019.1 144
[conda] mkl-service 1.1.2 py37he904b0f_5
[conda] mkl_fft 1.0.6 py37hd81dba3_0
[conda] mkl_random 1.0.2 py37hd81dba3_0
[conda] pytorch 1.0.1 py3.7_cuda10.0.130_cudnn7.4.2_2 pytorch
[conda] torchvision 0.2.2 py_3 pytorch
</code></pre></div> | 1 |
<p dir="auto"><a href="https://github.com/electron/electron/files/7607143/my-app.zip">my-app.zip</a></p>
<p dir="auto"><a href="https://user-images.githubusercontent.com/93366473/143543414-e233dfac-3973-4c84-8aea-bcfbb2841b51.png" rel="nofollow">Annotation 2021-11-26 130117</a>)</p>
<p dir="auto">This is my code and permission function inside renderer folder -> helpers -> permission.jsx</p>
<p dir="auto">and permission function use inside renderer folder -> components folder -> permission.jsx</p>
<p dir="auto">and permission component use inside renderer folder -> pages folder</p>
<p dir="auto">** I need camera, microphone and screen recording permission so I'm using systemPreferences But Getting undefined for system preference mediaType as a 'camera', 'microphone' and 'screen'**</p>
<p dir="auto"><em>Originally posted by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dipaksavaliya04/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dipaksavaliya04">@dipaksavaliya04</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1056094779" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/31875" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/31875/hovercard?comment_id=979751591&comment_type=issue_comment" href="https://github.com/electron/electron/issues/31875#issuecomment-979751591">#31875 (comment)</a></em></p> | <h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/main/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">15.0.0</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">macos catalina 1.01507</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">Other (specify below)</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">i should be able to run project successfully and want to remove this preference error</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">I'm creating a desktop application using electron. I need camera, microphone and screen recording permission so I'm using systemPreferences But Getting undefined for system preference mediaType as a 'camera', 'microphone' and 'screen'</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">Here is the full function we use to request media access. It is called when the Permission Request Handler is invoked with the media permission. The app does not reach the catch Block, so the error is not logged. We tested this behavior on 3 different machines</p>
<ul dir="auto">
<li>mediaType as a 'camera', 'microphone' and 'screen'</li>
</ul>
<p dir="auto"><strong>Below is a code</strong></p>
<p dir="auto">export default async function onPermission(mediaType) {<br>
try {<br>
console.log("systemPreferences", systemPreferences);<br>
const status = await systemPreferences.getMediaAccessStatus(mediaType);<br>
console.log(<code class="notranslate">Current ${mediaType} access status:</code>, status);</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="if (status === "not-determined") {
const success = await systemPreferences.askForMediaAccess(mediaType);
console.log(
`Result of ${mediaType} access:`,
success.valueOf() ? "granted" : "denied"
);
return success.valueOf();
}
return status === "granted";"><pre class="notranslate"><code class="notranslate">if (status === "not-determined") {
const success = await systemPreferences.askForMediaAccess(mediaType);
console.log(
`Result of ${mediaType} access:`,
success.valueOf() ? "granted" : "denied"
);
return success.valueOf();
}
return status === "granted";
</code></pre></div>
<p dir="auto">} catch (error) {<br>
console.log(<code class="notranslate">Could not get ${mediaType} permission:</code>, error.message);<br>
}<br>
return false;<br>
}</p> | 1 |
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
</tbody>
</table>
<p dir="auto">if there is child with name parent and I want to know if FormView has parent FormView, then it is impossible to find it</p>
<p dir="auto">FormView should have new method isParent</p> | <p dir="auto">How can know if a form has a parent or not, in a view?</p>
<p dir="auto">The fast answer is:</p>
<div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{{ form.parent }}"><pre class="notranslate">{{ <span class="pl-smi">form</span>.<span class="pl-smi">parent</span> }}</pre></div>
<p dir="auto">but if the form has a child called <code class="notranslate">parent</code> the above statement always return a result, even when they do not have a real parent.</p>
<p dir="auto">then the only way to know if has a real parent is something like:</p>
<div class="highlight highlight-text-html-twig notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{% set hasParent = (form.parent is not null and (not form.offsetExists('parent') or form.parent != form.offsetGet('parent'))) %}"><pre class="notranslate">{% <span class="pl-k">set</span> <span class="pl-smi">hasParent</span> <span class="pl-k">=</span> (<span class="pl-smi">form</span>.<span class="pl-smi">parent</span> <span class="pl-k">is not</span> <span class="pl-c1">null</span> <span class="pl-k">and</span> (<span class="pl-smi">not</span> form.<span class="pl-smi">offsetExists</span>(<span class="pl-s"><span class="pl-pds">'</span>parent<span class="pl-pds">'</span></span>) <span class="pl-k">or</span> <span class="pl-smi">form</span>.<span class="pl-smi">parent</span> <span class="pl-k">!=</span> form.<span class="pl-smi">offsetGet</span>(<span class="pl-s"><span class="pl-pds">'</span>parent<span class="pl-pds">'</span></span>))) %}</pre></div>
<p dir="auto">I'm missing something?</p>
<p dir="auto">a method <code class="notranslate">hasParent()</code> is needed in the FormView to avoid the \ArrayAccess.</p> | 1 |
<p dir="auto">I`ve noticed that <a href="http://www.freecodecamp.com/challenges/ditch-custom-css-for-bootstrap" rel="nofollow">ditch-custom-css-for-bootstrap</a> challenge has a small bug.<br>
Text in "danger button" is not in center. I reboot the page and my browser, but it does not help.</p>
<p dir="auto">Goole Chrome 48.0.2564.116 m, Windows 7 x64.<br>
(Is there any command to write info about browser and OS? I use search, but can not find.)</p>
<p dir="auto">My Code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" <link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.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;
}
</style>
<div class="container-fluid">
<h2 class="red-text text-center">CatPhotoApp</h2>
<p>Click here for <a href="#">cat photos</a>.</p>
<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>
<img src="http://bit.ly/fcc-running-cats" class="img-responsive">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary">Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info">Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger">Delete</button>
</div>
</div>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>"><pre class="notranslate"> <span class="pl-c1"><</span><span class="pl-ent">link</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"http://fonts.googleapis.com/css?family=Lobster"</span> <span class="pl-c1">rel</span><span class="pl-c1">=</span><span class="pl-s">"stylesheet"</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"text/css"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">style</span><span class="pl-c1">></span>
.red-text <span class="pl-kos">{</span>
<span class="pl-s1">color</span>: <span class="pl-s1">red</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
h2 <span class="pl-kos">{</span>
<span class="pl-s1">font</span><span class="pl-c1">-</span><span class="pl-s1">family</span>: <span class="pl-v">Lobster</span><span class="pl-kos">,</span> <span class="pl-v">Monospace</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
p <span class="pl-kos">{</span>
<span class="pl-s1">font</span><span class="pl-c1">-</span><span class="pl-s1">size</span>: <span class="pl-c1">16</span><span class="pl-s1">px</span><span class="pl-kos">;</span>
<span class="pl-s1">font</span><span class="pl-c1">-</span><span class="pl-s1">family</span>: <span class="pl-v">Monospace</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
.thick-green-border <span class="pl-kos">{</span>
<span class="pl-s1">border</span><span class="pl-c1">-</span><span class="pl-s1">color</span>: <span class="pl-s1">green</span><span class="pl-kos">;</span>
<span class="pl-s1">border</span><span class="pl-c1">-</span><span class="pl-s1">width</span>: <span class="pl-c1">10</span><span class="pl-s1">px</span><span class="pl-kos">;</span>
<span class="pl-s1">border</span><span class="pl-c1">-</span><span class="pl-s1">style</span>: <span class="pl-s1">solid</span><span class="pl-kos">;</span>
<span class="pl-s1">border</span><span class="pl-c1">-</span><span class="pl-s1">radius</span>: <span class="pl-c1">50</span><span class="pl-c1">%</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
.smaller-image <span class="pl-kos">{</span>
<span class="pl-s1">width</span>: <span class="pl-c1">100</span><span class="pl-s1">px</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">style</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"container-fluid"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"red-text text-center"</span><span class="pl-c1">></span>CatPhotoApp<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">h2</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">p</span><span class="pl-c1">></span>Click here for <span class="pl-c1"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"#"</span><span class="pl-c1">></span>cat photos<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">a</span><span class="pl-c1">></span>.<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">p</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"#"</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">img</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"smaller-image thick-green-border"</span> <span class="pl-c1">src</span><span class="pl-c1">=</span><span class="pl-s">"https://bit.ly/fcc-relaxing-cat"</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">a</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">img</span> <span class="pl-c1">src</span><span class="pl-c1">=</span><span class="pl-s">"http://bit.ly/fcc-running-cats"</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"img-responsive"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"row"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"col-xs-4"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-block btn-primary"</span><span class="pl-c1">></span>Like<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"col-xs-4"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-block btn-info"</span><span class="pl-c1">></span>Info<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"col-xs-4"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-block btn-danger"</span><span class="pl-c1">></span>Delete<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">p</span><span class="pl-c1">></span>Things cats love:<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">p</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">ul</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">li</span><span class="pl-c1">></span>cat nip<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">li</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">li</span><span class="pl-c1">></span>laser pointers<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">li</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">li</span><span class="pl-c1">></span>lasagna<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">li</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">ul</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">p</span><span class="pl-c1">></span>Top 3 things cats hate:<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">p</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">ol</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">li</span><span class="pl-c1">></span>flea treatment<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">li</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">li</span><span class="pl-c1">></span>thunder<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">li</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">li</span><span class="pl-c1">></span>other cats<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">li</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">ol</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">form</span> <span class="pl-c1">action</span><span class="pl-c1">=</span><span class="pl-s">"/submit-cat-photo"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">label</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"radio"</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"indoor-outdoor"</span><span class="pl-c1">></span> Indoor<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">label</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"radio"</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"indoor-outdoor"</span><span class="pl-c1">></span> Outdoor<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">label</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"checkbox"</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"personality"</span><span class="pl-c1">></span> Loving<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">label</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"checkbox"</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"personality"</span><span class="pl-c1">></span> Lazy<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">label</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"checkbox"</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"personality"</span><span class="pl-c1">></span> Crazy<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"text"</span> <span class="pl-c1">placeholder</span><span class="pl-c1">=</span><span class="pl-s">"cat photo URL"</span> <span class="pl-c1">required</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">button</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"submit"</span><span class="pl-c1">></span>Submit<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">form</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/17360765/13202156/e58343c0-d8a0-11e5-8566-bd10adc921e4.JPG"><img src="https://cloud.githubusercontent.com/assets/17360765/13202156/e58343c0-d8a0-11e5-8566-bd10adc921e4.JPG" alt="1" style="max-width: 100%;"></a></p> | <p dir="auto">Hmm, I don't know why, but I am getting issues with the preview layout in the bootstrap section.<br>
First in the buttons section : <a href="http://prntscr.com/89uesz" rel="nofollow">http://prntscr.com/89uesz</a></p>
<p dir="auto">Then in the check box section: <a href="http://prntscr.com/89ujcq" rel="nofollow">http://prntscr.com/89ujcq</a></p>
<p dir="auto">I am sure there is no error with my code, but still I am pasting the code for it here</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
h2 {
font-family: Lobster, Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
</style>
<div class="container-fluid">
<div class="row">
<div class="col-xs-8">
<h2 class="text-primary text-center">CatPhotoApp</h2>
</div>
<div class="col-xs-4">
<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>
</div>
</div>
<img src="http://bit.ly/fcc-running-cats" class="img-responsive">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info"><i class="fa fa-info-circle"></i> Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger"><i class="fa fa-trash"></i> Delete</button>
</div>
</div>
<p>Things cats <span class="text-danger">love:</span></p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
</div>
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Loving</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Lazy</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Crazy</label>
</div>
</div>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>"><pre class="notranslate"><code class="notranslate"><link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
h2 {
font-family: Lobster, Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
</style>
<div class="container-fluid">
<div class="row">
<div class="col-xs-8">
<h2 class="text-primary text-center">CatPhotoApp</h2>
</div>
<div class="col-xs-4">
<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat"></a>
</div>
</div>
<img src="http://bit.ly/fcc-running-cats" class="img-responsive">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info"><i class="fa fa-info-circle"></i> Info</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger"><i class="fa fa-trash"></i> Delete</button>
</div>
</div>
<p>Things cats <span class="text-danger">love:</span></p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
</div>
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Loving</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Lazy</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality"> Crazy</label>
</div>
</div>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>
</code></pre></div> | 1 |
<p dir="auto">AMD support so that individual components such as popover, etc. can be required using requirejs</p> | <p dir="auto"><a href="https://github.com/amdjs/amdjs-api/wiki/AMD">AMD</a> together with module loaders such as require.js are increasingly being used for front end web development.</p>
<p dir="auto">Has anyone at bootstrap considered supporting AMD in bootstrap's Javascript modules?</p>
<p dir="auto">I'd be happy to help out if there is support for the idea. The <a href="https://github.com/umdjs/umd">UMD repo</a> contains boilerplate examples of how one makes modules AMD compatible without losing backward compatibility.</p> | 1 |
<p dir="auto">Hi guys,</p>
<p dir="auto">This might be related to chrome rather than webpack, but I'm not really sure about that.</p>
<p dir="auto">I have a problem related to js files getting partially duplicated by the browser.</p>
<p dir="auto">The following part of the minified js can visually seen duplicated:</p>
<ul dir="auto">
<li>Checks if an event is supported in the current execution environment.<br>
*
<ul dir="auto">
<li>NOTE: This will not work correctly for non-generic events such as <code class="notranslate">change</code>,</li>
</ul>
</li>
</ul>
<p dir="auto">This happens when chrome is loading the js but I quickly navigate to another link in the website.<br>
When I come back, and the files start to load again, then the file gets this duplication problem, this causes a js error that can be seen on console.</p>
<p dir="auto">commonChunk.54cef61….bundle.js:41 Uncaught SyntaxError: Unexpected token !</p>
<p dir="auto">The worst problem is that I'm caching files, so the user doesn't get rid of the error until he clears the cache.</p>
<p dir="auto">If I wait for the file to load, then the file gets received perfectly by the user.</p>
<p dir="auto">This seems only to be affecting commonChunk.</p> | <h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">The <code class="notranslate">splitChunks</code> feature (using <code class="notranslate">chunks: 'all'</code>) doesn't take into account CSS extraction (via <code class="notranslate">mini-css-extract-plugin</code>) when deciding whether to create a new inital chunk. A new chunk can end up being created that is empty (other than the webpack functions) and under the default 30KB <code class="notranslate">splitChunks.minSize</code> threshold so shouldn't have been created.</p>
<p dir="auto">eg:<br>
<a href="https://github.com/edmorley/testcase-webpack-splitchunks-css/blob/master/dist/vendors%7EpageA%7EpageB.js"><code class="notranslate">dist/vendors~pageA~pageB.js</code></a></p>
<p dir="auto">For webpack build log output see:<br>
<a href="https://github.com/edmorley/testcase-webpack-splitchunks-css#actual">https://github.com/edmorley/testcase-webpack-splitchunks-css#actual</a></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<ol dir="auto">
<li><code class="notranslate">git clone https://github.com/edmorley/testcase-webpack-splitchunks-css.git</code></li>
<li><code class="notranslate">yarn install</code></li>
<li><code class="notranslate">yarn build</code></li>
</ol>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">There is no <code class="notranslate">dist/vendors~pageA~pageB.js</code> chunk generated, since after the CSS is extracted, there should be no common JS code between the two pages.</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 4.8.3<br>
Node.js version: 10.1.0<br>
Operating System: Windows 10<br>
Additional tools: [email protected]</p> | 0 |
<p dir="auto">String templates should be colorizes like string literals.</p> | <p dir="auto">I'm playing with the new support for template strings in release-1.4 and seeing potential issues with syntax highlighting.</p>
<p dir="auto">In a single-line template string it looks like the string is classified as a keyword.</p>
<p dir="auto">In a multi-line template string like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var template = `/hello/
/world/`;"><pre class="notranslate"><code class="notranslate">var template = `/hello/
/world/`;
</code></pre></div>
<p dir="auto">It looks like the "/hello/" is classified as a keyword and the "/world/" as a regexp.</p>
<p dir="auto">Sorry if this is just not implemented yet. I looked for an issue first but didn't see one.</p> | 1 |
<p dir="auto">Consider a widget that conditionally depends on an InheritedModel aspect:</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (foo) {
return Text("Foo", MyModel.of(context, aspect: MyAspect));
}"><pre class="notranslate"><span class="pl-k">if</span> (foo) {
<span class="pl-k">return</span> <span class="pl-c1">Text</span>(<span class="pl-s">"Foo"</span>, <span class="pl-c1">MyModel</span>.<span class="pl-en">of</span>(context, aspect<span class="pl-k">:</span> <span class="pl-c1">MyAspect</span>));
}</pre></div>
<p dir="auto">It seems that if <code class="notranslate">foo</code> requirement is met once. Then even if that condition fails in the future; the widget will stay dependent on the MyModel.</p>
<p dir="auto">This leads to unnecessary builds. I'd expect the list of dependencies to be cleared before <code class="notranslate">build</code> call</p> | <p dir="auto">Suppose widget <code class="notranslate">W</code> depends on <code class="notranslate">InheritedWidget</code> <code class="notranslate">D</code> based some <code class="notranslate">condition</code> be true. After a asynchronous operation, <code class="notranslate">condition</code> changed from <code class="notranslate">true</code> to <code class="notranslate">false</code>. From now on, <code class="notranslate">W</code> doesn't depend on <code class="notranslate">D</code> actually, but <code class="notranslate">W</code> still got rebuilt due to changes in <code class="notranslate">D</code>. <code class="notranslate">condition</code> can be internal state of <code class="notranslate">W</code> or information from other <code class="notranslate">InheritedWidget</code>.</p>
<p dir="auto">I post a test <a href="https://gist.github.com/kezhuw/3ff4cf46d2d60565960caf2257cd1242">gist</a> to show this.</p> | 1 |
<h2 dir="auto">Issue description</h2>
<p dir="auto">Hello all, I just found out that to do <code class="notranslate">index_copy</code> with duplicated elements in the index tensor will result in different results on CPU and GPU.<br>
To give a little context, I am trying to perform <a href="https://www.tensorflow.org/api_docs/python/tf/segment_max" rel="nofollow"><code class="notranslate">tf.segment_max</code></a> with pytorch.<br>
The elements in a tensor are associated to segments, and I would like to get all the max value in all the segments.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/00205b018b433e1d66de2e2fdf2275d2f564db4081bb16562b4f928cdac6c1dd/68747470733a2f2f7777772e74656e736f72666c6f772e6f72672f696d616765732f5365676d656e744d61782e706e67"><img src="https://camo.githubusercontent.com/00205b018b433e1d66de2e2fdf2275d2f564db4081bb16562b4f928cdac6c1dd/68747470733a2f2f7777772e74656e736f72666c6f772e6f72672f696d616765732f5365676d656e744d61782e706e67" alt="tf.segment_max" data-canonical-src="https://www.tensorflow.org/images/SegmentMax.png" style="max-width: 100%;"></a></p>
<p dir="auto">Then I found out the api <code class="notranslate">index_copy</code> and test its behavior on cpu.<br>
I realized that it will place the last segment value associated with the last segment index into the output tensor.<br>
Therefore, I just need to sort the input tensor and make the segment Index tensor reorder as the sorted input tensor.<br>
The maximum in every segment shall be the last one to copy, and the other values in the segments will be ignored. Please refer to following function <code class="notranslate">_seg_max</code>.</p>
<p dir="auto">Running on CPU, the code just run smoothly and perfectly worked as the <code class="notranslate">tf.segment_max</code>.<br>
However, on GPU, I found out that it will not keep the last value a the final output value.<br>
(The <code class="notranslate">torch.sort</code> works correctly.)</p>
<p dir="auto">I found that if there is no duplicated index in index tensor, the <code class="notranslate">index_copy</code> works just fine also on GPU.</p>
<h3 dir="auto">TL;DR</h3>
<p dir="auto"><code class="notranslate">index_copy</code> will copy the last value if it meets duplicated indices on CPU. On GPU, it behaves differently.</p>
<h2 dir="auto">Code example</h2>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch
import torch.nn as nn
import random
def _seg_max(data, seg, n_seg):
'Perform segment max'
_, sorted_id = torch.sort(data)
sorted_seg = seg[sorted_id].detach()
sorted_data = data[sorted_id].detach()
seg_max = torch.zeros((n_seg,), device=data.device).index_copy(0, sorted_seg, sorted_data).detach()
return seg_max
def random_seg(n_ele, n_seg):
'Create a random segment idx list'
seg_list = [random.randint(0, n_seg - 1) for _ in range(n_ele - n_seg)] + list(range(n_seg))
random.shuffle(seg_list)
return seg_list
def run(n_ele, n_seg, device):
print('Perform `reduce max` on {}-dim vector into {} segments on {}'.format(n_ele, n_seg, device))
with torch.no_grad():
for _ in range(10000):
data = torch.FloatTensor(n_ele).to(device)
nn.init.uniform_(data)
segment_ids = torch.LongTensor(random_seg(n_ele, n_seg)).to(device)
seg_max = _seg_max(data, segment_ids, n_seg)
a = seg_max.max().item()
b = data.max().item()
assert b == a, "{} != {}".format(a, b)
print(' -- Passed.')
gpu = torch.device('cuda')
cpu = torch.device('cpu')
run(n_ele=40, n_seg=40, device=cpu)
run(n_ele=40, n_seg=10, device=cpu)
run(n_ele=40, n_seg=40, device=gpu)
run(n_ele=40, n_seg=10, device=gpu)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span>
<span class="pl-k">import</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span> <span class="pl-k">as</span> <span class="pl-s1">nn</span>
<span class="pl-k">import</span> <span class="pl-s1">random</span>
<span class="pl-k">def</span> <span class="pl-en">_seg_max</span>(<span class="pl-s1">data</span>, <span class="pl-s1">seg</span>, <span class="pl-s1">n_seg</span>):
<span class="pl-s">'Perform segment max'</span>
<span class="pl-s1">_</span>, <span class="pl-s1">sorted_id</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">sort</span>(<span class="pl-s1">data</span>)
<span class="pl-s1">sorted_seg</span> <span class="pl-c1">=</span> <span class="pl-s1">seg</span>[<span class="pl-s1">sorted_id</span>].<span class="pl-en">detach</span>()
<span class="pl-s1">sorted_data</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>[<span class="pl-s1">sorted_id</span>].<span class="pl-en">detach</span>()
<span class="pl-s1">seg_max</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">zeros</span>((<span class="pl-s1">n_seg</span>,), <span class="pl-s1">device</span><span class="pl-c1">=</span><span class="pl-s1">data</span>.<span class="pl-s1">device</span>).<span class="pl-en">index_copy</span>(<span class="pl-c1">0</span>, <span class="pl-s1">sorted_seg</span>, <span class="pl-s1">sorted_data</span>).<span class="pl-en">detach</span>()
<span class="pl-k">return</span> <span class="pl-s1">seg_max</span>
<span class="pl-k">def</span> <span class="pl-en">random_seg</span>(<span class="pl-s1">n_ele</span>, <span class="pl-s1">n_seg</span>):
<span class="pl-s">'Create a random segment idx list'</span>
<span class="pl-s1">seg_list</span> <span class="pl-c1">=</span> [<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">0</span>, <span class="pl-s1">n_seg</span> <span class="pl-c1">-</span> <span class="pl-c1">1</span>) <span class="pl-k">for</span> <span class="pl-s1">_</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">n_ele</span> <span class="pl-c1">-</span> <span class="pl-s1">n_seg</span>)] <span class="pl-c1">+</span> <span class="pl-en">list</span>(<span class="pl-en">range</span>(<span class="pl-s1">n_seg</span>))
<span class="pl-s1">random</span>.<span class="pl-en">shuffle</span>(<span class="pl-s1">seg_list</span>)
<span class="pl-k">return</span> <span class="pl-s1">seg_list</span>
<span class="pl-k">def</span> <span class="pl-en">run</span>(<span class="pl-s1">n_ele</span>, <span class="pl-s1">n_seg</span>, <span class="pl-s1">device</span>):
<span class="pl-en">print</span>(<span class="pl-s">'Perform `reduce max` on {}-dim vector into {} segments on {}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">n_ele</span>, <span class="pl-s1">n_seg</span>, <span class="pl-s1">device</span>))
<span class="pl-k">with</span> <span class="pl-s1">torch</span>.<span class="pl-en">no_grad</span>():
<span class="pl-k">for</span> <span class="pl-s1">_</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">10000</span>):
<span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-v">FloatTensor</span>(<span class="pl-s1">n_ele</span>).<span class="pl-en">to</span>(<span class="pl-s1">device</span>)
<span class="pl-s1">nn</span>.<span class="pl-s1">init</span>.<span class="pl-en">uniform_</span>(<span class="pl-s1">data</span>)
<span class="pl-s1">segment_ids</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-v">LongTensor</span>(<span class="pl-en">random_seg</span>(<span class="pl-s1">n_ele</span>, <span class="pl-s1">n_seg</span>)).<span class="pl-en">to</span>(<span class="pl-s1">device</span>)
<span class="pl-s1">seg_max</span> <span class="pl-c1">=</span> <span class="pl-en">_seg_max</span>(<span class="pl-s1">data</span>, <span class="pl-s1">segment_ids</span>, <span class="pl-s1">n_seg</span>)
<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">seg_max</span>.<span class="pl-en">max</span>().<span class="pl-en">item</span>()
<span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span>.<span class="pl-en">max</span>().<span class="pl-en">item</span>()
<span class="pl-k">assert</span> <span class="pl-s1">b</span> <span class="pl-c1">==</span> <span class="pl-s1">a</span>, <span class="pl-s">"{} != {}"</span>.<span class="pl-en">format</span>(<span class="pl-s1">a</span>, <span class="pl-s1">b</span>)
<span class="pl-en">print</span>(<span class="pl-s">' -- Passed.'</span>)
<span class="pl-s1">gpu</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">device</span>(<span class="pl-s">'cuda'</span>)
<span class="pl-s1">cpu</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">device</span>(<span class="pl-s">'cpu'</span>)
<span class="pl-en">run</span>(<span class="pl-s1">n_ele</span><span class="pl-c1">=</span><span class="pl-c1">40</span>, <span class="pl-s1">n_seg</span><span class="pl-c1">=</span><span class="pl-c1">40</span>, <span class="pl-s1">device</span><span class="pl-c1">=</span><span class="pl-s1">cpu</span>)
<span class="pl-en">run</span>(<span class="pl-s1">n_ele</span><span class="pl-c1">=</span><span class="pl-c1">40</span>, <span class="pl-s1">n_seg</span><span class="pl-c1">=</span><span class="pl-c1">10</span>, <span class="pl-s1">device</span><span class="pl-c1">=</span><span class="pl-s1">cpu</span>)
<span class="pl-en">run</span>(<span class="pl-s1">n_ele</span><span class="pl-c1">=</span><span class="pl-c1">40</span>, <span class="pl-s1">n_seg</span><span class="pl-c1">=</span><span class="pl-c1">40</span>, <span class="pl-s1">device</span><span class="pl-c1">=</span><span class="pl-s1">gpu</span>)
<span class="pl-en">run</span>(<span class="pl-s1">n_ele</span><span class="pl-c1">=</span><span class="pl-c1">40</span>, <span class="pl-s1">n_seg</span><span class="pl-c1">=</span><span class="pl-c1">10</span>, <span class="pl-s1">device</span><span class="pl-c1">=</span><span class="pl-s1">gpu</span>)</pre></div>
<p dir="auto">Output:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Perform `segment max` on 40-dim vector into 40 segments on cpu
-- Passed.
Perform `segment max` on 40-dim vector into 10 segments on cpu
-- Passed.
Perform `segment max` on 40-dim vector into 40 segments on cuda
-- Passed.
Perform `segment max` on 40-dim vector into 10 segments on cuda
Traceback (most recent call last):
File "dbg.py", line 37, in <module>
run(n_ele=40, n_seg=10, device=gpu)
File "dbg.py", line 28, in run
assert b == a, "{} != {}".format(a, b)
AssertionError: 0.7791520357131958 != 0.8709555864334106"><pre class="notranslate">Perform <span class="pl-s"><span class="pl-pds">`</span>segment max<span class="pl-pds">`</span></span> on 40-dim vector into 40 segments on cpu
-- Passed.
Perform <span class="pl-s"><span class="pl-pds">`</span>segment max<span class="pl-pds">`</span></span> on 40-dim vector into 10 segments on cpu
-- Passed.
Perform <span class="pl-s"><span class="pl-pds">`</span>segment max<span class="pl-pds">`</span></span> on 40-dim vector into 40 segments on cuda
-- Passed.
Perform <span class="pl-s"><span class="pl-pds">`</span>segment max<span class="pl-pds">`</span></span> on 40-dim vector into 10 segments on cuda
Traceback (most recent call last):
File <span class="pl-s"><span class="pl-pds">"</span>dbg.py<span class="pl-pds">"</span></span>, line 37, <span class="pl-k">in</span> <span class="pl-k"><</span>module<span class="pl-k">></span>
run(n_ele=40, n_seg=10, device=gpu)
File <span class="pl-s"><span class="pl-pds">"</span>dbg.py<span class="pl-pds">"</span></span>, line 28, <span class="pl-k">in</span> run
assert b == a, <span class="pl-s"><span class="pl-pds">"</span>{} != {}<span class="pl-pds">"</span></span>.format(a, b)
AssertionError: 0.7791520357131958 <span class="pl-k">!</span>= 0.8709555864334106</pre></div>
<h2 dir="auto">System Info</h2>
<p dir="auto">PyTorch version: 0.4.1<br>
Is debug build: No<br>
CUDA used to build PyTorch: 9.0.176</p>
<p dir="auto">OS: Debian GNU/Linux 8.10 (jessie)<br>
GCC version: (Debian 4.9.2-10+deb8u1) 4.9.2<br>
CMake version: version 3.0.2</p>
<p dir="auto">Python version: 3.6<br>
Is CUDA available: Yes<br>
CUDA runtime version: Could not collect<br>
GPU models and configuration: GPU 0: GeForce GTX TITAN X<br>
Nvidia driver version: 387.26<br>
Versions of relevant libraries:</p>
<p dir="auto">[pip3] msgpack-numpy (0.4.1)<br>
[pip3] numpy (1.14.5)<br>
[pip3] numpydoc (0.7.0)<br>
[pip3] torch (0.4.1)<br>
[pip3] torchfile (0.1.0)<br>
[pip3] torchtext (0.2.3)<br>
[pip3] torchvision (0.2.0)<br>
[conda] cuda80 1.0 0 soumith<br>
[conda] pytorch 0.4.1 py36ha74772b_0<br>
[conda] torchfile 0.1.0 <br>
[conda] torchtext 0.2.3 <br>
[conda] torchvision 0.2.0 <br>
[conda] torchvision 0.2.1 py36_1 pytorch</p> | <h2 dir="auto">🐛 Bug</h2>
<p dir="auto">In inherited <code class="notranslate">torch.Tensor</code> ambiguous type promotions appear (nightly release).</p>
<h2 dir="auto">To Reproduce</h2>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyTensor(torch.Tensor):
...
ten = MyTensor(10)
assert isinstance(ten, MyTensor)
assert isinstance(ten + 1, MyTensor), "I expect this to fail""><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">MyTensor</span>(<span class="pl-s1">torch</span>.<span class="pl-v">Tensor</span>):
...
<span class="pl-s1">ten</span> <span class="pl-c1">=</span> <span class="pl-v">MyTensor</span>(<span class="pl-c1">10</span>)
<span class="pl-k">assert</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">ten</span>, <span class="pl-v">MyTensor</span>)
<span class="pl-k">assert</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">ten</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>, <span class="pl-v">MyTensor</span>), <span class="pl-s">"I expect this to fail"</span></pre></div>
<h2 dir="auto">Expected behavior</h2>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyTensor(torch.Tensor):
...
ten = MyTensor(10)
assert isinstance(ten, MyTensor)
assert not isinstance(ten + 1, MyTensor), "all good""><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">MyTensor</span>(<span class="pl-s1">torch</span>.<span class="pl-v">Tensor</span>):
...
<span class="pl-s1">ten</span> <span class="pl-c1">=</span> <span class="pl-v">MyTensor</span>(<span class="pl-c1">10</span>)
<span class="pl-k">assert</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">ten</span>, <span class="pl-v">MyTensor</span>)
<span class="pl-k">assert</span> <span class="pl-c1">not</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">ten</span> <span class="pl-c1">+</span> <span class="pl-c1">1</span>, <span class="pl-v">MyTensor</span>), <span class="pl-s">"all good"</span></pre></div>
<p dir="auto">Or a way to properly subclass from <code class="notranslate">torch.Tensor</code> avoiding such issues</p>
<h2 dir="auto">Environment</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PyTorch version: 1.8.0.dev20201011+cpu
Is debug build: True
CUDA used to build PyTorch: Could not collect
ROCM used to build PyTorch: N/A
OS: Arch Linux (x86_64)
GCC version: (GCC) 10.2.0
Clang version: 10.0.1
CMake version: version 3.18.4
Python version: 3.6 (64-bit runtime)
Is CUDA available: False
CUDA runtime version: 10.0.130
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: N/A"><pre class="notranslate"><code class="notranslate">PyTorch version: 1.8.0.dev20201011+cpu
Is debug build: True
CUDA used to build PyTorch: Could not collect
ROCM used to build PyTorch: N/A
OS: Arch Linux (x86_64)
GCC version: (GCC) 10.2.0
Clang version: 10.0.1
CMake version: version 3.18.4
Python version: 3.6 (64-bit runtime)
Is CUDA available: False
CUDA runtime version: 10.0.130
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: N/A
</code></pre></div>
<h2 dir="auto">Additional context</h2>
<p dir="auto">I use subclassing in <a href="https://github.com/geoopt/geoopt">geoopt</a> and maintain the project</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nairbv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nairbv">@nairbv</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mruberry/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mruberry">@mruberry</a></p> | 0 |
<p dir="auto">All I'm really trying to do is read a large array from a tfrecords file. I can do it so long that it's below a 8million ints but above that I get a unicode error, which doesn't seem to make much sense to me. Also, it worth noting that this script works using r0.9. I have about 64GB of ram on my computer so I doubt it's a memory issue.</p>
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<p dir="auto">None</p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System:<br>
Linux Mint 18 Sarah (GNU/Linux 4.4.0-47-generic x86_64)</p>
<p dir="auto">Installed version of CUDA and cuDNN:<br>
not installed</p>
<p dir="auto">If installed from binary pip package, provide:</p>
<ol dir="auto">
<li>
<p dir="auto">A link to the pip package you installed:<br>
<a href="https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl</a></p>
</li>
<li>
<p dir="auto">The output from <code class="notranslate">python -c "import tensorflow; print(tensorflow.__version__)"</code>.<br>
python -c "import tensorflow; print(tensorflow.<strong>version</strong>)"</p>
</li>
</ol>
<h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
import numpy as np
dim_size = 9000000
# Create the array
array = np.zeros([dim_size], dtype=int)
example = tf.train.Example(
features = tf.train.Features(
feature = {
'array': tf.train.Feature(
bytes_list= tf.train.BytesList(value=[array.tostring()])
)
}
)
)
# Write the example to disk
writer = tf.python_io.TFRecordWriter('temp.tfrecords')
writer.write(example.SerializeToString())
writer.close()
# Define input pipeline
queue = tf.train.string_input_producer(['temp.tfrecords'], shuffle=False, num_epochs=1)
reader = tf.TFRecordReader()
_, se = reader.read(queue)
#Define the parsed dict
parsed = tf.parse_single_example(
serialized=se,
features={
"array":tf.FixedLenFeature([], tf.string),
}
)
# Decode the example
tens = tf.decode_raw(parsed['array'], tf.int64)
# Define the init op.
init_op = tf.group(
tf.initialize_all_variables(),
tf.initialize_local_variables()
)
with tf.Session() as sess:
sess.run(init_op)
# Define coordinator and threads
coord = tf.train.Coordinator()
threads = tf.train.start_queue_runners(coord=coord, sess=sess)
# Run the reading operation
print sess.run([tens])
coord.request_stop()
coord.join(threads)"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
import numpy as np
dim_size = 9000000
# Create the array
array = np.zeros([dim_size], dtype=int)
example = tf.train.Example(
features = tf.train.Features(
feature = {
'array': tf.train.Feature(
bytes_list= tf.train.BytesList(value=[array.tostring()])
)
}
)
)
# Write the example to disk
writer = tf.python_io.TFRecordWriter('temp.tfrecords')
writer.write(example.SerializeToString())
writer.close()
# Define input pipeline
queue = tf.train.string_input_producer(['temp.tfrecords'], shuffle=False, num_epochs=1)
reader = tf.TFRecordReader()
_, se = reader.read(queue)
#Define the parsed dict
parsed = tf.parse_single_example(
serialized=se,
features={
"array":tf.FixedLenFeature([], tf.string),
}
)
# Decode the example
tens = tf.decode_raw(parsed['array'], tf.int64)
# Define the init op.
init_op = tf.group(
tf.initialize_all_variables(),
tf.initialize_local_variables()
)
with tf.Session() as sess:
sess.run(init_op)
# Define coordinator and threads
coord = tf.train.Coordinator()
threads = tf.train.start_queue_runners(coord=coord, sess=sess)
# Run the reading operation
print sess.run([tens])
coord.request_stop()
coord.join(threads)
</code></pre></div>
<h3 dir="auto">What other attempted solutions have you tried?</h3>
<p dir="auto">This works using r0.9 and it also works if you lower the dim_size below 800000. So it seems to be an issue with the size and r0.11. I also get the same results if I use a float array as opposed to an int.</p>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="W tensorflow/core/framework/op_kernel.cc:968] Invalid argument: Could not parse example input, value: '
?Ī"
?Ī"
array?Ī"
?Ī"
?Ī"
Traceback (most recent call last):
File "temp.py", line 52, in <module>
print sess.run([tens])
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 717, in run
run_metadata_ptr)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 915, in _run
feed_dict_string, options, run_metadata)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 965, in _do_run
target_list, options, run_metadata)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 972, in _do_call
return fn(*args)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 954, in _run_fn
status, run_metadata)
File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
self.gen.next()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/errors.py", line 462, in raise_exception_on_not_ok_status
compat.as_text(pywrap_tensorflow.TF_Message(status)),
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/util/compat.py", line 82, in as_text
return bytes_or_text.decode('utf-8')
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9b in position 40: invalid start byte"><pre class="notranslate"><code class="notranslate">W tensorflow/core/framework/op_kernel.cc:968] Invalid argument: Could not parse example input, value: '
?Ī"
?Ī"
array?Ī"
?Ī"
?Ī"
Traceback (most recent call last):
File "temp.py", line 52, in <module>
print sess.run([tens])
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 717, in run
run_metadata_ptr)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 915, in _run
feed_dict_string, options, run_metadata)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 965, in _do_run
target_list, options, run_metadata)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 972, in _do_call
return fn(*args)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 954, in _run_fn
status, run_metadata)
File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
self.gen.next()
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/errors.py", line 462, in raise_exception_on_not_ok_status
compat.as_text(pywrap_tensorflow.TF_Message(status)),
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/util/compat.py", line 82, in as_text
return bytes_or_text.decode('utf-8')
File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x9b in position 40: invalid start byte
</code></pre></div> | <p dir="auto">I have already read this thread: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="205768541" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/7311" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/7311/hovercard" href="https://github.com/tensorflow/tensorflow/issues/7311">#7311</a> but I am still encountering this issue with version 1.3.0. Was wondering if anyone knows why?</p>
<p dir="auto">Tested on 2 systems:<br>
OS: Windows 10, Ubuntu 16.04<br>
Tensorflow installed from source,<br>
Tensorflow version: 1.3.0<br>
One system running tensorflow non gpu and another system running CUDA 8 and cuDNN v6<br>
GPU model: none and GTX Titan Z</p>
<p dir="auto">The error I get is:</p>
<p dir="auto">` File "C:\Users\benja\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\framework\errors_impl.py", line 466, in raise_exception_on_not_ok_status<br>
pywrap_tensorflow.TF_GetCode(status))<br>
tensorflow.python.framework.errors_impl.InvalidArgumentError: Could not parse example input, value: '<br>
�ם9<br>
ѻ�<br>
�csv�Ȼ�<br>
�<br>
���<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cq/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cq">@cq</a>��.�������M�B</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "D:\write_to_tfrecords.py", line 581, in <br>
main()<br>
File "D:\write_to_tfrecords.py", line 577, in main<br>
read_dataset_from_tfrecords()<br>
File "D:\write_to_tfrecords.py", line 554, in read_dataset_from_tfrecords<br>
image_dataset, csv_dataset = sess.run([image_out_reshaped, csv_out_reshaped])<br>
File "C:\Users\benja\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\client\session.py", line 895, in run<br>
run_metadata_ptr)<br>
File "C:\Users\benja\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\client\session.py", line 1124, in _run<br>
feed_dict_tensor, options, run_metadata)<br>
File "C:\Users\benja\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\client\session.py", line 1321, in _do_run<br>
options, run_metadata)<br>
File "C:\Users\benja\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\client\session.py", line 1340, in _do_call<br>
raise type(e)(node_def, op, message)<br>
tensorflow.python.framework.errors_impl.InvalidArgumentError: Could not parse example input, value: '<br>
�ם9<br>
ѻ�<br>
�csv�Ȼ�<br>
�<br>
���<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cq/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cq">@cq</a>��.�������M�B</p>
<blockquote>
<blockquote>
<blockquote>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">`</p>
<p dir="auto">When I try to read .tfrecords files that are less than 64mb this error does not occur.</p>
<p dir="auto">My code is here:<br>
` with tf.Session() as sess:<br>
try:<br>
feature = {'images': tf.FixedLenFeature([], tf.string),<br>
'csv': tf.FixedLenFeature([], tf.string)<br>
}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" filename_queue = tf.train.string_input_producer([data_path], num_epochs=1)
reader = tf.TFRecordReader()
_, serialized_example = reader.read(filename_queue)
features = tf.parse_single_example(serialized_example, features=feature)
image_out = tf.decode_raw(features['images'], tf.uint8)
csv_out = tf.decode_raw(features['csv'], tf.float32)
image_out_reshaped = tf.reshape(image_out, [1000, 200, 200, 3])
csv_out_reshaped = tf.reshape(csv_out, [1000, 6])
sess.run(tf.global_variables_initializer())
sess.run(tf.local_variables_initializer())
# Create a coordinator and run all QueueRunner objects
coord = tf.train.Coordinator()
threads = tf.train.start_queue_runners(coord=coord)
image_dataset, csv_dataset = sess.run([image_out_reshaped, csv_out_reshaped])
coord.request_stop()
coord.join(threads)"><pre class="notranslate"><code class="notranslate"> filename_queue = tf.train.string_input_producer([data_path], num_epochs=1)
reader = tf.TFRecordReader()
_, serialized_example = reader.read(filename_queue)
features = tf.parse_single_example(serialized_example, features=feature)
image_out = tf.decode_raw(features['images'], tf.uint8)
csv_out = tf.decode_raw(features['csv'], tf.float32)
image_out_reshaped = tf.reshape(image_out, [1000, 200, 200, 3])
csv_out_reshaped = tf.reshape(csv_out, [1000, 6])
sess.run(tf.global_variables_initializer())
sess.run(tf.local_variables_initializer())
# Create a coordinator and run all QueueRunner objects
coord = tf.train.Coordinator()
threads = tf.train.start_queue_runners(coord=coord)
image_dataset, csv_dataset = sess.run([image_out_reshaped, csv_out_reshaped])
coord.request_stop()
coord.join(threads)
</code></pre></div>
<p dir="auto">`</p> | 1 |
<p dir="auto">(using Rust compiled from commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/dc4560dc26498573516d833cb2333b54071070e3/hovercard" href="https://github.com/rust-lang/rust/commit/dc4560dc26498573516d833cb2333b54071070e3"><tt>dc4560d</tt></a>)</p>
<p dir="auto">The following code fails to compile:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
'outer: loop {
match () {
() => {
for std::uint::iterate(0, 8) |_| {
loop {
break 'outer;
}
}
},
}
}
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c1">'</span>outer<span class="pl-kos">:</span> <span class="pl-k">loop</span> <span class="pl-kos">{</span>
<span class="pl-k">match</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">(</span><span class="pl-kos">)</span> => <span class="pl-kos">{</span>
<span class="pl-k">for</span> std<span class="pl-kos">::</span>uint<span class="pl-kos">::</span>iterate<span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">8</span><span class="pl-kos">)</span> |_| <span class="pl-kos">{</span>
<span class="pl-k">loop</span> <span class="pl-kos">{</span>
<span class="pl-k">break</span> <span class="pl-c1">'</span>outer<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">with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/tmp/test.rs:7:24: 7:37 error: internal compiler error: Break to unknown label
/tmp/test.rs:7 break 'outer;
^~~~~~~~~~~~~"><pre class="notranslate"><code class="notranslate">/tmp/test.rs:7:24: 7:37 error: internal compiler error: Break to unknown label
/tmp/test.rs:7 break 'outer;
^~~~~~~~~~~~~
</code></pre></div>
<p dir="auto">If you comment out the <code class="notranslate">for</code> loop, it compiles fine.</p> | <p dir="auto">Rust should expose the full standard C99 math library through the <code class="notranslate">Float</code> trait. The <code class="notranslate">cmath</code> module will then be an implementation detail we don't need to expose. This will allow Rust to move to a specific math library in the future too rather than using the standard C library provided by the OS.</p>
<p dir="auto">At the moment, a macro is used to generate a whole bunch of wrappers around these functions. This actually makes the code <em>longer</em>, rather than shorter, so I don't see a point in keeping it around.</p> | 0 |
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.33 and v1.32]</li>
<li>Operating System: [Windows 11, Ubuntu 20]</li>
<li>Browser: [Chromium]</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { test, expect } from '@playwright/test';
test('keyboard', async ({ page }) => {
// await page.goto('https://www.keyboardtester.com/tester.html');
// await page.goto('https://keyboard-test.space/');
// await page.goto('https://en.key-test.ru/');
// await page.goto('https://www.onlinemictest.com/keyboard-test/');
await page.goto('https://www.rapidtables.com/tools/notepad.html');
// await page.goto('https://www.memonotepad.com/');
// await page.goto('https://justnotepad.com/');
// await page.goto('https://www.online-notepad.net/');
await page.waitForLoadState();
await page.keyboard.press('Shift+r');
await page.screenshot({ path: 'screenshot1.png' })
});
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'keyboard'</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">=></span> <span class="pl-kos">{</span>
<span class="pl-c">// await page.goto('https://www.keyboardtester.com/tester.html');</span>
<span class="pl-c">// await page.goto('https://keyboard-test.space/');</span>
<span class="pl-c">// await page.goto('https://en.key-test.ru/');</span>
<span class="pl-c">// await page.goto('https://www.onlinemictest.com/keyboard-test/');</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://www.rapidtables.com/tools/notepad.html'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// await page.goto('https://www.memonotepad.com/');</span>
<span class="pl-c">// await page.goto('https://justnotepad.com/');</span>
<span class="pl-c">// await page.goto('https://www.online-notepad.net/');</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForLoadState</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-c1">keyboard</span><span class="pl-kos">.</span><span class="pl-en">press</span><span class="pl-kos">(</span><span class="pl-s">'Shift+r'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">screenshot</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">'screenshot1.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">I'm not sure if this is a valid bug. Hopefully someone could shed your light on it. Thank you.</p>
<p dir="auto">We are now testing an internal map tool on web with canvas element, with lots of keyboard shortcut for users.<br>
Unfortunately exposure is not allowed so difficult for reproduction.</p>
<p dir="auto">The symptom is that when we press Shift plus a character(let's say 'r'), it always triggers Shift+r and then r.</p>
<ul dir="auto">
<li>Reproducible on Windows 11 desktop, Ubuntu 20 container and Playwright v1.33/1.32(earlier version not tested).</li>
<li>NOT reproducible for human user, and step over debug mode. So I guess it's related to keyboard timing.</li>
</ul>
<p dir="auto">I tried above sample code on some keyboard test and notepad sites.</p>
<ul dir="auto">
<li>All the keyboard test sites recorded both Shift key and r key.</li>
<li>But all notepad sites only recorded 'r'. This seems related to my scenario. Should they record 'R'?</li>
</ul>
<p dir="auto">Thank you.</p> | <h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.34 / latest]</li>
<li>Operating System: [Windows 10]</li>
<li>Browser: [ Chromium]</li>
<li>Other info: codegen only</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li>
</ul>
<p dir="auto">** Shell command **</p>
<p dir="auto"><code class="notranslate">npx playwright@latest codegen https://saw.trixti.com.br/saw</code></p>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li><code class="notranslate">npx playwright@latest codegen https://saw.trixti.com.br/saw</code> or <code class="notranslate">npx playwright codegen https://saw.trixti.com.br/saw</code></li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">I could use codegen features (record, pick locator etc)</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">Codegen is unusable. The site triggers alerts with text "TypeError: cache.has is not a function (Page: - Line: 399)" in loop: i click ok a new alert appears</p>
<p dir="auto"><strong>More Info</strong></p>
<p dir="auto">Its specific for codegen . Using the playwright library/automation or directly in browser works without issues</p>
<p dir="auto">The page has the following DOCTYPE:<br>
<code class="notranslate"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"></code></p>
<p dir="auto">Looking at call stack, the error is triggered by a function of the Recorder. Yesterday when i first spotted the error i could inspect the callstack. Today the callstack is not show in the devtools</p> | 0 |
<p dir="auto">The 24 hour time format resets itself to default after a full restart.<br>
My emulator is set to 24h format and <code class="notranslate">ui.window.alwaysUse24HourFormat</code> says TRUE the first time the app starts after assemble. I can switch to another app and come back or do a hot reload and it stays TRUE. However, when doing a full restart alwaysUse24HourFormat will give FALSE.</p>
<p dir="auto">Version:<br>
Flutter 0.3.5 • channel dev • <a href="https://github.com/flutter/flutter.git">https://github.com/flutter/flutter.git</a><br>
Framework • revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/7ffcd3d22d7bc1222d53d6d3bb83f59891aac2c2/hovercard" href="https://github.com/flutter/flutter/commit/7ffcd3d22d7bc1222d53d6d3bb83f59891aac2c2"><tt>7ffcd3d</tt></a> (7 days ago) • 2018-04-24 14:03:41 -0700<br>
Engine • revision <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/flutter/flutter/commit/ec611470b571c35156723a163fdcacd1f58b1809/hovercard" href="https://github.com/flutter/flutter/commit/ec611470b571c35156723a163fdcacd1f58b1809"><tt>ec61147</tt></a><br>
Tools • Dart 2.0.0-dev.48.0.flutter-fe606f890b</p> | <p dir="auto">When there are multiple PlatformViews, we don't have a way for Mojo service clients to specific which view they are associated with. There's a comment in PlatformViewAndroid:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// TODO(eseidel): We need per-view services!"><pre class="notranslate"><code class="notranslate">// TODO(eseidel): We need per-view services!
</code></pre></div> | 0 |
<p dir="auto">Hey all,</p>
<p dir="auto">I'm trying to see if two &Trait refer to the same object. It sounds like the correct way to do this is by casting to <code class="notranslate">*const Trait</code> and comparing those pointers for equality, however this produces an ICE. Here's a simple <a href="http://is.gd/c4UIFd" rel="nofollow">repro on playpen</a> and pasted below:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait MyTrait {}
struct Foo;
impl MyTrait for Foo {}
fn main() {
let x = Foo;
let a = &x;
let y = Foo;
let z = &y as &MyTrait;
if a as *const MyTrait == z as *const MyTrait {
println!("They match");
}
}"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">MyTrait</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-k">struct</span> <span class="pl-smi">Foo</span><span class="pl-kos">;</span>
<span class="pl-k">impl</span> <span class="pl-smi">MyTrait</span> <span class="pl-k">for</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> x = <span class="pl-v">Foo</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> a = <span class="pl-c1">&</span>x<span class="pl-kos">;</span>
<span class="pl-k">let</span> y = <span class="pl-v">Foo</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> z = <span class="pl-c1">&</span>y <span class="pl-k">as</span> <span class="pl-c1">&</span><span class="pl-smi">MyTrait</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> a <span class="pl-k">as</span> <span class="pl-c1">*</span><span class="pl-k">const</span> <span class="pl-smi">MyTrait</span> == z <span class="pl-k">as</span> <span class="pl-c1">*</span><span class="pl-k">const</span> <span class="pl-smi">MyTrait</span> <span class="pl-kos">{</span>
<span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"They match"</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">Below is the output of compiling the reproduction with <code class="notranslate">RUST_BACKTRACE=1</code> on <code class="notranslate">rustc 1.3.0-nightly (4dfe7a16c 2015-07-30)</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'assertion failed: self.appropriate_rvalue_mode(bcx.ccx()) == ByValue', ../src/librustc_trans/trans/datum.rs:767
stack backtrace:
1: 0x7fe6e5afa28e - sys::backtrace::write::h40e4abee08c0ae4cCys
2: 0x7fe6e5b027f4 - panicking::on_panic::h2d2b781277adb4bfLnx
3: 0x7fe6e5ac3ace - rt::unwind::begin_unwind_inner::ha8a0cd4a16a72098o3w
4: 0x7fe6e48969a1 - rt::unwind::begin_unwind::h10748794639547756261
5: 0x7fe6e49171c4 - trans::datum::Datum<'tcx, K>::to_llscalarish::h18191786700678863130
6: 0x7fe6e499223b - trans::expr::trans_binary::h0bd5cb5f100e03c3SvD
7: 0x7fe6e4987ffb - trans::expr::trans_unadjusted::hd19df31c310773b8oXB
8: 0x7fe6e48d2c49 - trans::expr::trans::hc28cc636bef2e50fYpB
9: 0x7fe6e4989bcf - trans::expr::trans_rvalue_dps_unadjusted::he43b91a5a089a8ed4tC
10: 0x7fe6e49627de - trans::expr::trans_into::h8c4ef2d012c8a2c0IjB
11: 0x7fe6e48f28b3 - trans::controlflow::trans_block::h05d9494ae3fe12b5BWv
12: 0x7fe6e48f1666 - trans::base::trans_closure::h3121f3bcc11648c5sDi
13: 0x7fe6e48f2ea8 - trans::base::trans_fn::ha3af5a02c0e336d7fNi
14: 0x7fe6e48f5fa8 - trans::base::trans_item::h55d2aa0c004afbf9qcj
15: 0x7fe6e4902a68 - trans::base::trans_crate::ha1fc42a69e474159uZj
16: 0x7fe6e60708d4 - driver::phase_4_translate_to_llvm::hc4ec4f8818648bb75Oa
17: 0x7fe6e606ad68 - driver::phase_3_run_analysis_passes::closure.16499
18: 0x7fe6e6064fe1 - middle::ty::ctxt<'tcx>::create_and_enter::h11776421653616432545
19: 0x7fe6e606000f - driver::phase_3_run_analysis_passes::h8749574581471310871
20: 0x7fe6e6044751 - driver::compile_input::h2888e18c0246b44eTba
21: 0x7fe6e6129360 - run_compiler::h216b759eb7845cb3A7b
22: 0x7fe6e6126f2e - boxed::F.FnBox<A>::call_box::h6091736725415782619
23: 0x7fe6e6126859 - rt::unwind::try::try_fn::h7532542645103148343
24: 0x7fe6e5b022bf - __rust_try_inner
25: 0x7fe6e5b022fa - __rust_try
26: 0x7fe6e5aed7a7 - rt::unwind::try::inner_try::hec4722a4abfa91b1hZw
27: 0x7fe6e6126a78 - boxed::F.FnBox<A>::call_box::h7421094806661540209
28: 0x7fe6e5b01411 - sys::thread::Thread::new::thread_start::h0036aa54802cb8d7X8v
29: 0x7fe6df71d0da - start_thread
30: 0x7fe6e575390c - __clone
31: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate">error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'assertion failed: self.appropriate_rvalue_mode(bcx.ccx()) == ByValue', ../src/librustc_trans/trans/datum.rs:767
stack backtrace:
1: 0x7fe6e5afa28e - sys::backtrace::write::h40e4abee08c0ae4cCys
2: 0x7fe6e5b027f4 - panicking::on_panic::h2d2b781277adb4bfLnx
3: 0x7fe6e5ac3ace - rt::unwind::begin_unwind_inner::ha8a0cd4a16a72098o3w
4: 0x7fe6e48969a1 - rt::unwind::begin_unwind::h10748794639547756261
5: 0x7fe6e49171c4 - trans::datum::Datum<'tcx, K>::to_llscalarish::h18191786700678863130
6: 0x7fe6e499223b - trans::expr::trans_binary::h0bd5cb5f100e03c3SvD
7: 0x7fe6e4987ffb - trans::expr::trans_unadjusted::hd19df31c310773b8oXB
8: 0x7fe6e48d2c49 - trans::expr::trans::hc28cc636bef2e50fYpB
9: 0x7fe6e4989bcf - trans::expr::trans_rvalue_dps_unadjusted::he43b91a5a089a8ed4tC
10: 0x7fe6e49627de - trans::expr::trans_into::h8c4ef2d012c8a2c0IjB
11: 0x7fe6e48f28b3 - trans::controlflow::trans_block::h05d9494ae3fe12b5BWv
12: 0x7fe6e48f1666 - trans::base::trans_closure::h3121f3bcc11648c5sDi
13: 0x7fe6e48f2ea8 - trans::base::trans_fn::ha3af5a02c0e336d7fNi
14: 0x7fe6e48f5fa8 - trans::base::trans_item::h55d2aa0c004afbf9qcj
15: 0x7fe6e4902a68 - trans::base::trans_crate::ha1fc42a69e474159uZj
16: 0x7fe6e60708d4 - driver::phase_4_translate_to_llvm::hc4ec4f8818648bb75Oa
17: 0x7fe6e606ad68 - driver::phase_3_run_analysis_passes::closure.16499
18: 0x7fe6e6064fe1 - middle::ty::ctxt<'tcx>::create_and_enter::h11776421653616432545
19: 0x7fe6e606000f - driver::phase_3_run_analysis_passes::h8749574581471310871
20: 0x7fe6e6044751 - driver::compile_input::h2888e18c0246b44eTba
21: 0x7fe6e6129360 - run_compiler::h216b759eb7845cb3A7b
22: 0x7fe6e6126f2e - boxed::F.FnBox<A>::call_box::h6091736725415782619
23: 0x7fe6e6126859 - rt::unwind::try::try_fn::h7532542645103148343
24: 0x7fe6e5b022bf - __rust_try_inner
25: 0x7fe6e5b022fa - __rust_try
26: 0x7fe6e5aed7a7 - rt::unwind::try::inner_try::hec4722a4abfa91b1hZw
27: 0x7fe6e6126a78 - boxed::F.FnBox<A>::call_box::h7421094806661540209
28: 0x7fe6e5b01411 - sys::thread::Thread::new::thread_start::h0036aa54802cb8d7X8v
29: 0x7fe6df71d0da - start_thread
30: 0x7fe6e575390c - __clone
31: 0x0 - <unknown>
</code></pre></div> | <p dir="auto">Attempting to cast <code class="notranslate">&str</code> or a slice to a raw pointer results in a proper error message. Attempting to compare two such invalid casts, however, generates an ICE.<br>
(And I realize now that <code class="notranslate">.as_ptr()</code> is the right way to do what I was trying to do.)</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
let a: &[i32] = &[];
(a as *const _) == (a as *const _);
("" as *const _) == ("" as *const _);
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> a<span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-kos">[</span><span class="pl-smi">i32</span><span class="pl-kos">]</span> = <span class="pl-c1">&</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-kos">(</span>a <span class="pl-k">as</span> <span class="pl-c1">*</span><span class="pl-k">const</span> <span class="pl-smi">_</span><span class="pl-kos">)</span> == <span class="pl-kos">(</span>a <span class="pl-k">as</span> <span class="pl-c1">*</span><span class="pl-k">const</span> <span class="pl-smi">_</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">(</span><span class="pl-s">""</span> <span class="pl-k">as</span> <span class="pl-c1">*</span><span class="pl-k">const</span> <span class="pl-smi">_</span><span class="pl-kos">)</span> == <span class="pl-kos">(</span><span class="pl-s">""</span> <span class="pl-k">as</span> <span class="pl-c1">*</span><span class="pl-k">const</span> <span class="pl-smi">_</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Results in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'assertion failed: self.appropriate_rvalue_mode(bcx.ccx()) == ByValue', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/librustc/middle/trans/datum.rs:644
stack backtrace:
1: 0x7f2610acd880 - rt::backtrace::imp::write::h7a90f4ef1aa5a81fsbq
2: 0x7f2610ad0900 - failure::on_fail::he9ef851a069b43543wq
3: 0x7f2615036d40 - unwind::begin_unwind_inner::ha2afab22d4dc49ed8Rd
4: 0x7f261567bb30 - unwind::begin_unwind::h15560861862153460913
5: 0x7f2615a1eb20 - middle::trans::datum::Datum<K>::to_llscalarish::h5300527991557390520
6: 0x7f2615a3f650 - middle::trans::expr::trans_binary::h6c193beb06d7e93dcG7
7: 0x7f2615a34ab0 - middle::trans::expr::trans_unadjusted::h02c4b8f1c6b87a22SZ5
8: 0x7f26159fbac0 - middle::trans::expr::trans_into::h4971d03ccde714e0Ue5
9: 0x7f26159faf20 - middle::trans::controlflow::trans_stmt_semi::h8fa1003152ba3849Gu1
10: 0x7f26159fa4d0 - middle::trans::controlflow::trans_stmt::h98ee011c11c8d6d8tq1
11: 0x7f26159fbee0 - middle::trans::controlflow::trans_block::h9afd935ec02d5d88zv1
12: 0x7f2615a9e510 - middle::trans::base::trans_closure::h3e4483ae2d8e884bAGh
13: 0x7f26159ef140 - middle::trans::base::trans_fn::h7f9774a3926fbf34nSh
14: 0x7f26159ec9a0 - middle::trans::base::trans_item::h07f36bd67b211f81Bbi
15: 0x7f2615aa8ce0 - middle::trans::base::trans_crate::hda78095df6dfa8bfC9i
16: 0x7f2615efa840 - driver::driver::phase_4_translate_to_llvm::h3f7adb4e900158acqyC
17: 0x7f2615ef16e0 - driver::driver::compile_input::h1c18718eb06a01d2k5B
18: 0x7f2615f744e0 - driver::run_compiler::hcc1eba405fd576deBVF
19: 0x7f2615f743d0 - driver::run::closure.146438
20: 0x7f26156b0c20 - task::TaskBuilder<S>::try_future::closure.104848
21: 0x7f26156b0a10 - task::TaskBuilder<S>::spawn_internal::closure.104819
22: 0x7f261537d540 - task::NativeSpawner.Spawner::spawn::closure.8448
23: 0x7f261508bc50 - rust_try_inner
24: 0x7f261508bc40 - rust_try
25: 0x7f26150346c0 - unwind::try::h2eeb8f95c58da3ccQGd
26: 0x7f2615034550 - task::Task::run::hcb23459dab25134dGMc
27: 0x7f261537d280 - task::NativeSpawner.Spawner::spawn::closure.8386
28: 0x7f2615035d60 - thread::thread_start::h033f0420ecdbeed0V7c
29: 0x7f260fe7d0c0 - start_thread
30: 0x7f2614cfff89 - __clone
31: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate">error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'assertion failed: self.appropriate_rvalue_mode(bcx.ccx()) == ByValue', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/librustc/middle/trans/datum.rs:644
stack backtrace:
1: 0x7f2610acd880 - rt::backtrace::imp::write::h7a90f4ef1aa5a81fsbq
2: 0x7f2610ad0900 - failure::on_fail::he9ef851a069b43543wq
3: 0x7f2615036d40 - unwind::begin_unwind_inner::ha2afab22d4dc49ed8Rd
4: 0x7f261567bb30 - unwind::begin_unwind::h15560861862153460913
5: 0x7f2615a1eb20 - middle::trans::datum::Datum<K>::to_llscalarish::h5300527991557390520
6: 0x7f2615a3f650 - middle::trans::expr::trans_binary::h6c193beb06d7e93dcG7
7: 0x7f2615a34ab0 - middle::trans::expr::trans_unadjusted::h02c4b8f1c6b87a22SZ5
8: 0x7f26159fbac0 - middle::trans::expr::trans_into::h4971d03ccde714e0Ue5
9: 0x7f26159faf20 - middle::trans::controlflow::trans_stmt_semi::h8fa1003152ba3849Gu1
10: 0x7f26159fa4d0 - middle::trans::controlflow::trans_stmt::h98ee011c11c8d6d8tq1
11: 0x7f26159fbee0 - middle::trans::controlflow::trans_block::h9afd935ec02d5d88zv1
12: 0x7f2615a9e510 - middle::trans::base::trans_closure::h3e4483ae2d8e884bAGh
13: 0x7f26159ef140 - middle::trans::base::trans_fn::h7f9774a3926fbf34nSh
14: 0x7f26159ec9a0 - middle::trans::base::trans_item::h07f36bd67b211f81Bbi
15: 0x7f2615aa8ce0 - middle::trans::base::trans_crate::hda78095df6dfa8bfC9i
16: 0x7f2615efa840 - driver::driver::phase_4_translate_to_llvm::h3f7adb4e900158acqyC
17: 0x7f2615ef16e0 - driver::driver::compile_input::h1c18718eb06a01d2k5B
18: 0x7f2615f744e0 - driver::run_compiler::hcc1eba405fd576deBVF
19: 0x7f2615f743d0 - driver::run::closure.146438
20: 0x7f26156b0c20 - task::TaskBuilder<S>::try_future::closure.104848
21: 0x7f26156b0a10 - task::TaskBuilder<S>::spawn_internal::closure.104819
22: 0x7f261537d540 - task::NativeSpawner.Spawner::spawn::closure.8448
23: 0x7f261508bc50 - rust_try_inner
24: 0x7f261508bc40 - rust_try
25: 0x7f26150346c0 - unwind::try::h2eeb8f95c58da3ccQGd
26: 0x7f2615034550 - task::Task::run::hcb23459dab25134dGMc
27: 0x7f261537d280 - task::NativeSpawner.Spawner::spawn::closure.8386
28: 0x7f2615035d60 - thread::thread_start::h033f0420ecdbeed0V7c
29: 0x7f260fe7d0c0 - start_thread
30: 0x7f2614cfff89 - __clone
31: 0x0 - <unknown>
</code></pre></div> | 1 |
<p dir="auto">left sidebar menu, and "back to top" button, from the site - <a href="http://twitter.github.io/bootstrap/" rel="nofollow">http://twitter.github.io/bootstrap/</a> - dont work with my firefox !</p> | <p dir="auto">Please add support of multiple values in typeahead like <a href="http://jqueryui.com/demos/autocomplete/#multiple" rel="nofollow">http://jqueryui.com/demos/autocomplete/#multiple</a></p> | 0 |
<ul dir="auto">
<li>Neo4j version: 2.3.3</li>
<li>Operating system: Windows 10</li>
<li>API/Driver: Cypher from web interface<br>
I have a following query (first one simplified to show the issue)</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" OPTIONAL MATCH (recEmployee:RecordEmployee)-[:Reference{Id:'F08'}]-(recComputer_F08:RecordComputer)-[:Reference{Id:'F09'}]-(recIncidents_F08_F09:RecordIncidents),
(recEmployee:RecordEmployee),
(recEmployee:RecordEmployee)-[:Reference{Id:'F08'}]-(recComputer_F08:RecordComputer)
WHERE ( recIncidents_F08_F09.F01="Trojan" )
RETURN recEmployee"><pre class="notranslate"><code class="notranslate"> OPTIONAL MATCH (recEmployee:RecordEmployee)-[:Reference{Id:'F08'}]-(recComputer_F08:RecordComputer)-[:Reference{Id:'F09'}]-(recIncidents_F08_F09:RecordIncidents),
(recEmployee:RecordEmployee),
(recEmployee:RecordEmployee)-[:Reference{Id:'F08'}]-(recComputer_F08:RecordComputer)
WHERE ( recIncidents_F08_F09.F01="Trojan" )
RETURN recEmployee
</code></pre></div>
<p dir="auto">it doesn't return anything.<br>
if I remove third optional match, then it works fine. Is it a bug? I was thinking means just that optional.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="OPTIONAL MATCH (recEmployee:RecordEmployee)-[:Reference{Id:'F08'}]-(recComputer_F08:RecordComputer)-[:Reference{Id:'F09'}]-(recIncidents_F08_F09:RecordIncidents),
(recEmployee:RecordEmployee)
WHERE ( recIncidents_F08_F09.F01="Trojan" )
RETURN recEmployee"><pre class="notranslate"><code class="notranslate">OPTIONAL MATCH (recEmployee:RecordEmployee)-[:Reference{Id:'F08'}]-(recComputer_F08:RecordComputer)-[:Reference{Id:'F09'}]-(recIncidents_F08_F09:RecordIncidents),
(recEmployee:RecordEmployee)
WHERE ( recIncidents_F08_F09.F01="Trojan" )
RETURN recEmployee
</code></pre></div>
<p dir="auto">This is the GraphML datablase content. I don't see the way to attach so it's a small xml you can import.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<graph id="G" edgedefault="directed">
<node id="n0" labels=":Application"><data key="labels">:Application</data><data key="Id">A01</data><data key="Name">Employee</data><data key="Disabled">false</data></node>
<node id="n1" labels=":Field"><data key="labels">:Field</data><data key="Id">F04</data><data key="Name">Position</data></node>
<node id="n2" labels=":Value"><data key="labels">:Value</data><data key="Id">V01</data><data key="Name">Boss</data></node>
<node id="n3" labels=":Field"><data key="labels">:Field</data><data key="Id">F05</data><data key="Name">Hobbies</data></node>
<node id="n4" labels=":Value"><data key="labels">:Value</data><data key="Id">V02</data><data key="Name">Secretary</data></node>
<node id="n5" labels=":Value"><data key="labels">:Value</data><data key="Id">V01</data><data key="Name">Scuba</data></node>
<node id="n6" labels=":Value"><data key="labels">:Value</data><data key="Id">V02</data><data key="Name">Rock Climbing</data></node>
<node id="n7" labels=":Value"><data key="labels">:Value</data><data key="Id">V03</data><data key="Name">Yoga</data></node>
<node id="n8" labels=":Application"><data key="labels">:Application</data><data key="Id">A02</data><data key="Name">Computer</data><data key="Disabled">false</data></node>
<node id="n9" labels=":Field"><data key="labels">:Field</data><data key="Id">F04</data><data key="Name">Make</data></node>
<node id="n10" labels=":Value"><data key="labels">:Value</data><data key="Id">V01</data><data key="Name">Dell</data></node>
<node id="n11" labels=":Field"><data key="labels">:Field</data><data key="Id">F05</data><data key="Name">Applications</data></node>
<node id="n12" labels=":Value"><data key="labels">:Value</data><data key="Id">V02</data><data key="Name">HP</data></node>
<node id="n13" labels=":Value"><data key="labels">:Value</data><data key="Id">V01</data><data key="Name">Swimlane</data></node>
<node id="n14" labels=":Value"><data key="labels">:Value</data><data key="Id">V02</data><data key="Name">MS Office</data></node>
<node id="n15" labels=":Value"><data key="labels">:Value</data><data key="Id">V03</data><data key="Name">MongoDb</data></node>
<node id="n16" labels=":Application"><data key="labels">:Application</data><data key="Id">A03</data><data key="Name">Incidents</data><data key="Disabled">false</data></node>
<node id="n17" labels=":Field"><data key="labels">:Field</data><data key="Id">F04</data><data key="Name">Type</data></node>
<node id="n18" labels=":Value"><data key="labels">:Value</data><data key="Id">V01</data><data key="Name">Worm</data></node>
<node id="n19" labels=":Field"><data key="labels">:Field</data><data key="Id">F05</data><data key="Name">Variations</data></node>
<node id="n20" labels=":Value"><data key="labels">:Value</data><data key="Id">V02</data><data key="Name">Virus</data></node>
<node id="n21" labels=":Value"><data key="labels">:Value</data><data key="Id">V01</data><data key="Name">HackTool</data></node>
<node id="n22" labels=":Value"><data key="labels">:Value</data><data key="Id">V02</data><data key="Name">Trojan</data></node>
<node id="n23" labels=":Value"><data key="labels">:Value</data><data key="Id">V03</data><data key="Name">Rootkit</data></node>
<node id="n24" labels=":User"><data key="labels">:User</data><data key="Id">U01</data><data key="Name">pfry</data><data key="Disabled">false</data></node>
<node id="n25" labels=":User"><data key="labels">:User</data><data key="Id">U02</data><data key="Name">bender</data><data key="Disabled">false</data></node>
<node id="n26" labels=":User"><data key="labels">:User</data><data key="Id">U03</data><data key="Name">lturanga</data><data key="Disabled">false</data></node>
<node id="n27" labels=":RecordIncidents"><data key="labels">:RecordIncidents</data><data key="F02">ThreatConnect</data><data key="ModifiedDate">0001-01-01T00:00:00</data><data key="F03">2016-03-28T11:43:47.174243-04:00</data><data key="CreatedDate">0001-01-01T00:00:00</data><data key="F01">DDOS</data><data key="Source">Manual</data><data key="Allowed">[]</data><data key="LinkedData">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="SessionTimeSpent">0</data><data key="TotalTimeSpent">0</data><data key="TimeTrackingEnabled">true</data><data key="Visualizations">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.VisualizationData, Core]], mscorlib]], mscorlib"}</data><data key="ApplicationRevision">0</data><data key="Comments">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.Comments, Core]], mscorlib]], mscorlib"}</data><data key="TrackingId">1</data><data key="ApplicationId">A03</data><data key="ActionsExecuted">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="Id">RI01</data><data key="Name">INC001</data><data key="Disabled">false</data></node>
<node id="n28" labels=":RecordIncidents"><data key="labels">:RecordIncidents</data><data key="ModifiedDate">0001-01-01T00:00:00</data><data key="F03">2016-03-28T11:43:47.9056099-04:00</data><data key="F01">Trojan</data><data key="F02">ThreatConnect</data><data key="CreatedDate">0001-01-01T00:00:00</data><data key="Source">Manual</data><data key="Allowed">[]</data><data key="LinkedData">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="SessionTimeSpent">0</data><data key="TotalTimeSpent">0</data><data key="TimeTrackingEnabled">true</data><data key="Visualizations">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.VisualizationData, Core]], mscorlib]], mscorlib"}</data><data key="ApplicationRevision">0</data><data key="Comments">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.Comments, Core]], mscorlib]], mscorlib"}</data><data key="TrackingId">2</data><data key="ApplicationId">A03</data><data key="ActionsExecuted">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="Id">RI02</data><data key="Name">INC002</data><data key="Disabled">false</data></node>
<node id="n29" labels=":RecordComputer"><data key="labels">:RecordComputer</data><data key="ModifiedDate">0001-01-01T00:00:00</data><data key="F03">2016-03-28T11:43:48.0379727-04:00</data><data key="F01">45792348</data><data key="F02">WS-MRSPFRY02</data><data key="CreatedDate">0001-01-01T00:00:00</data><data key="Source">Manual</data><data key="Allowed">[]</data><data key="LinkedData">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="SessionTimeSpent">0</data><data key="TotalTimeSpent">0</data><data key="TimeTrackingEnabled">true</data><data key="Visualizations">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.VisualizationData, Core]], mscorlib]], mscorlib"}</data><data key="ApplicationRevision">0</data><data key="Comments">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.Comments, Core]], mscorlib]], mscorlib"}</data><data key="TrackingId">1</data><data key="ApplicationId">A02</data><data key="ActionsExecuted">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="Id">RC01</data><data key="Name">CMP001</data><data key="Disabled">false</data></node>
<node id="n30" labels=":RecordEmployee"><data key="labels">:RecordEmployee</data><data key="ModifiedDate">0001-01-01T00:00:00</data><data key="F03">2016-03-28T11:43:48.6392467-04:00</data><data key="F01">Philip</data><data key="F02">Fry</data><data key="CreatedDate">0001-01-01T00:00:00</data><data key="Source">Manual</data><data key="Allowed">[]</data><data key="LinkedData">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="SessionTimeSpent">0</data><data key="TotalTimeSpent">0</data><data key="TimeTrackingEnabled">true</data><data key="Visualizations">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.VisualizationData, Core]], mscorlib]], mscorlib"}</data><data key="ApplicationRevision">0</data><data key="Comments">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.Comments, Core]], mscorlib]], mscorlib"}</data><data key="TrackingId">1</data><data key="ApplicationId">A01</data><data key="ActionsExecuted">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="Id">RE01</data><data key="Name">EMP001</data><data key="Disabled">false</data></node>
<node id="n31" labels=":RecordEmployee"><data key="labels">:RecordEmployee</data><data key="ModifiedDate">0001-01-01T00:00:00</data><data key="F03">2016-03-28T11:43:49.0845658-04:00</data><data key="F01">Leela</data><data key="F02">Turanga</data><data key="CreatedDate">0001-01-01T00:00:00</data><data key="Source">Manual</data><data key="Allowed">[]</data><data key="LinkedData">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="SessionTimeSpent">0</data><data key="TotalTimeSpent">0</data><data key="TimeTrackingEnabled">true</data><data key="Visualizations">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.VisualizationData, Core]], mscorlib]], mscorlib"}</data><data key="ApplicationRevision">0</data><data key="Comments">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.Comments, Core]], mscorlib]], mscorlib"}</data><data key="TrackingId">2</data><data key="ApplicationId">A01</data><data key="ActionsExecuted">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="Id">RE02</data><data key="Name">EMP002</data><data key="Disabled">false</data></node>
<node id="n32" labels=":RecordComputer"><data key="labels">:RecordComputer</data><data key="F02">WS-FLLBRODR01</data><data key="ModifiedDate">0001-01-01T00:00:00</data><data key="F03">2016-03-28T11:43:49.2414982-04:00</data><data key="CreatedDate">0001-01-01T00:00:00</data><data key="F01">777777</data><data key="Source">Manual</data><data key="Allowed">[]</data><data key="LinkedData">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="SessionTimeSpent">0</data><data key="TotalTimeSpent">0</data><data key="TimeTrackingEnabled">true</data><data key="Visualizations">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.VisualizationData, Core]], mscorlib]], mscorlib"}</data><data key="ApplicationRevision">0</data><data key="Comments">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.Comments, Core]], mscorlib]], mscorlib"}</data><data key="TrackingId">1</data><data key="ApplicationId">A02</data><data key="ActionsExecuted">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="Id">RC02</data><data key="Name">CMP002</data><data key="Disabled">false</data></node>
<edge id="e0" source="n0" target="n1" label="Fields"><data key="label">Fields</data></edge>
<edge id="e1" source="n1" target="n2" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e2" source="n0" target="n3" label="Fields"><data key="label">Fields</data></edge>
<edge id="e3" source="n1" target="n4" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e4" source="n3" target="n5" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e5" source="n3" target="n6" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e6" source="n3" target="n7" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e7" source="n8" target="n9" label="Fields"><data key="label">Fields</data></edge>
<edge id="e8" source="n9" target="n10" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e9" source="n8" target="n11" label="Fields"><data key="label">Fields</data></edge>
<edge id="e10" source="n9" target="n12" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e11" source="n11" target="n13" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e12" source="n11" target="n14" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e13" source="n11" target="n15" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e14" source="n16" target="n17" label="Fields"><data key="label">Fields</data></edge>
<edge id="e15" source="n17" target="n18" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e16" source="n16" target="n19" label="Fields"><data key="label">Fields</data></edge>
<edge id="e17" source="n17" target="n20" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e18" source="n19" target="n21" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e19" source="n19" target="n22" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e20" source="n19" target="n23" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e21" source="n27" target="n18" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F04</data><data key="Name">Type</data><data key="Disabled">false</data></edge>
<edge id="e22" source="n27" target="n21" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Variations</data><data key="Disabled">false</data></edge>
<edge id="e23" source="n27" target="n22" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Variations</data><data key="Disabled">false</data></edge>
<edge id="e24" source="n28" target="n20" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F04</data><data key="Name">Type</data><data key="Disabled">false</data></edge>
<edge id="e25" source="n28" target="n23" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Variations</data><data key="Disabled">false</data></edge>
<edge id="e26" source="n29" target="n27" label="Reference"><data key="label">Reference</data><data key="Id">F09</data><data key="Name">Incidents</data></edge>
<edge id="e27" source="n29" target="n12" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F04</data><data key="Name">Make</data><data key="Disabled">false</data></edge>
<edge id="e28" source="n29" target="n13" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Applications</data><data key="Disabled">false</data></edge>
<edge id="e29" source="n29" target="n14" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Applications</data><data key="Disabled">false</data></edge>
<edge id="e30" source="n29" target="n24" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F06</data><data key="Name">IT</data></edge>
<edge id="e31" source="n29" target="n24" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F07</data><data key="Name">AllowedUsers</data></edge>
<edge id="e32" source="n30" target="n29" label="Reference"><data key="label">Reference</data><data key="Id">F08</data><data key="Name">Computers</data></edge>
<edge id="e33" source="n30" target="n2" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F04</data><data key="Name">Position</data><data key="Disabled">false</data></edge>
<edge id="e34" source="n30" target="n5" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Hobbies</data><data key="Disabled">false</data></edge>
<edge id="e35" source="n30" target="n6" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Hobbies</data><data key="Disabled">false</data></edge>
<edge id="e36" source="n30" target="n7" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Hobbies</data><data key="Disabled">false</data></edge>
<edge id="e37" source="n30" target="n24" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F06</data><data key="Name">IT</data></edge>
<edge id="e38" source="n30" target="n24" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F07</data><data key="Name">Account</data></edge>
<edge id="e39" source="n31" target="n29" label="Reference"><data key="label">Reference</data><data key="Id">F08</data><data key="Name">Computers</data></edge>
<edge id="e40" source="n31" target="n4" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F04</data><data key="Name">Position</data><data key="Disabled">false</data></edge>
<edge id="e41" source="n31" target="n5" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Hobbies</data><data key="Disabled">false</data></edge>
<edge id="e42" source="n31" target="n24" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F06</data><data key="Name">IT</data></edge>
<edge id="e43" source="n31" target="n25" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F06</data><data key="Name">IT</data></edge>
<edge id="e44" source="n31" target="n25" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F07</data><data key="Name">Account</data></edge>
<edge id="e45" source="n32" target="n31" label="Reference"><data key="label">Reference</data><data key="Id">F08</data><data key="Name">Employees</data></edge>
<edge id="e46" source="n32" target="n28" label="Reference"><data key="label">Reference</data><data key="Id">F09</data><data key="Name">Incidents</data></edge>
<edge id="e47" source="n32" target="n12" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F04</data><data key="Name">Make</data><data key="Disabled">false</data></edge>
<edge id="e48" source="n32" target="n13" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Applications</data><data key="Disabled">false</data></edge>
<edge id="e49" source="n32" target="n14" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Applications</data><data key="Disabled">false</data></edge>
<edge id="e50" source="n32" target="n24" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F06</data><data key="Name">IT</data></edge>
<edge id="e51" source="n32" target="n26" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F06</data><data key="Name">IT</data></edge>
<edge id="e52" source="n32" target="n26" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F07</data><data key="Name">AllowedUsers</data></edge>
</graph>
</graphml>"><pre class="notranslate"><code class="notranslate"><?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<graph id="G" edgedefault="directed">
<node id="n0" labels=":Application"><data key="labels">:Application</data><data key="Id">A01</data><data key="Name">Employee</data><data key="Disabled">false</data></node>
<node id="n1" labels=":Field"><data key="labels">:Field</data><data key="Id">F04</data><data key="Name">Position</data></node>
<node id="n2" labels=":Value"><data key="labels">:Value</data><data key="Id">V01</data><data key="Name">Boss</data></node>
<node id="n3" labels=":Field"><data key="labels">:Field</data><data key="Id">F05</data><data key="Name">Hobbies</data></node>
<node id="n4" labels=":Value"><data key="labels">:Value</data><data key="Id">V02</data><data key="Name">Secretary</data></node>
<node id="n5" labels=":Value"><data key="labels">:Value</data><data key="Id">V01</data><data key="Name">Scuba</data></node>
<node id="n6" labels=":Value"><data key="labels">:Value</data><data key="Id">V02</data><data key="Name">Rock Climbing</data></node>
<node id="n7" labels=":Value"><data key="labels">:Value</data><data key="Id">V03</data><data key="Name">Yoga</data></node>
<node id="n8" labels=":Application"><data key="labels">:Application</data><data key="Id">A02</data><data key="Name">Computer</data><data key="Disabled">false</data></node>
<node id="n9" labels=":Field"><data key="labels">:Field</data><data key="Id">F04</data><data key="Name">Make</data></node>
<node id="n10" labels=":Value"><data key="labels">:Value</data><data key="Id">V01</data><data key="Name">Dell</data></node>
<node id="n11" labels=":Field"><data key="labels">:Field</data><data key="Id">F05</data><data key="Name">Applications</data></node>
<node id="n12" labels=":Value"><data key="labels">:Value</data><data key="Id">V02</data><data key="Name">HP</data></node>
<node id="n13" labels=":Value"><data key="labels">:Value</data><data key="Id">V01</data><data key="Name">Swimlane</data></node>
<node id="n14" labels=":Value"><data key="labels">:Value</data><data key="Id">V02</data><data key="Name">MS Office</data></node>
<node id="n15" labels=":Value"><data key="labels">:Value</data><data key="Id">V03</data><data key="Name">MongoDb</data></node>
<node id="n16" labels=":Application"><data key="labels">:Application</data><data key="Id">A03</data><data key="Name">Incidents</data><data key="Disabled">false</data></node>
<node id="n17" labels=":Field"><data key="labels">:Field</data><data key="Id">F04</data><data key="Name">Type</data></node>
<node id="n18" labels=":Value"><data key="labels">:Value</data><data key="Id">V01</data><data key="Name">Worm</data></node>
<node id="n19" labels=":Field"><data key="labels">:Field</data><data key="Id">F05</data><data key="Name">Variations</data></node>
<node id="n20" labels=":Value"><data key="labels">:Value</data><data key="Id">V02</data><data key="Name">Virus</data></node>
<node id="n21" labels=":Value"><data key="labels">:Value</data><data key="Id">V01</data><data key="Name">HackTool</data></node>
<node id="n22" labels=":Value"><data key="labels">:Value</data><data key="Id">V02</data><data key="Name">Trojan</data></node>
<node id="n23" labels=":Value"><data key="labels">:Value</data><data key="Id">V03</data><data key="Name">Rootkit</data></node>
<node id="n24" labels=":User"><data key="labels">:User</data><data key="Id">U01</data><data key="Name">pfry</data><data key="Disabled">false</data></node>
<node id="n25" labels=":User"><data key="labels">:User</data><data key="Id">U02</data><data key="Name">bender</data><data key="Disabled">false</data></node>
<node id="n26" labels=":User"><data key="labels">:User</data><data key="Id">U03</data><data key="Name">lturanga</data><data key="Disabled">false</data></node>
<node id="n27" labels=":RecordIncidents"><data key="labels">:RecordIncidents</data><data key="F02">ThreatConnect</data><data key="ModifiedDate">0001-01-01T00:00:00</data><data key="F03">2016-03-28T11:43:47.174243-04:00</data><data key="CreatedDate">0001-01-01T00:00:00</data><data key="F01">DDOS</data><data key="Source">Manual</data><data key="Allowed">[]</data><data key="LinkedData">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="SessionTimeSpent">0</data><data key="TotalTimeSpent">0</data><data key="TimeTrackingEnabled">true</data><data key="Visualizations">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.VisualizationData, Core]], mscorlib]], mscorlib"}</data><data key="ApplicationRevision">0</data><data key="Comments">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.Comments, Core]], mscorlib]], mscorlib"}</data><data key="TrackingId">1</data><data key="ApplicationId">A03</data><data key="ActionsExecuted">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="Id">RI01</data><data key="Name">INC001</data><data key="Disabled">false</data></node>
<node id="n28" labels=":RecordIncidents"><data key="labels">:RecordIncidents</data><data key="ModifiedDate">0001-01-01T00:00:00</data><data key="F03">2016-03-28T11:43:47.9056099-04:00</data><data key="F01">Trojan</data><data key="F02">ThreatConnect</data><data key="CreatedDate">0001-01-01T00:00:00</data><data key="Source">Manual</data><data key="Allowed">[]</data><data key="LinkedData">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="SessionTimeSpent">0</data><data key="TotalTimeSpent">0</data><data key="TimeTrackingEnabled">true</data><data key="Visualizations">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.VisualizationData, Core]], mscorlib]], mscorlib"}</data><data key="ApplicationRevision">0</data><data key="Comments">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.Comments, Core]], mscorlib]], mscorlib"}</data><data key="TrackingId">2</data><data key="ApplicationId">A03</data><data key="ActionsExecuted">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="Id">RI02</data><data key="Name">INC002</data><data key="Disabled">false</data></node>
<node id="n29" labels=":RecordComputer"><data key="labels">:RecordComputer</data><data key="ModifiedDate">0001-01-01T00:00:00</data><data key="F03">2016-03-28T11:43:48.0379727-04:00</data><data key="F01">45792348</data><data key="F02">WS-MRSPFRY02</data><data key="CreatedDate">0001-01-01T00:00:00</data><data key="Source">Manual</data><data key="Allowed">[]</data><data key="LinkedData">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="SessionTimeSpent">0</data><data key="TotalTimeSpent">0</data><data key="TimeTrackingEnabled">true</data><data key="Visualizations">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.VisualizationData, Core]], mscorlib]], mscorlib"}</data><data key="ApplicationRevision">0</data><data key="Comments">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.Comments, Core]], mscorlib]], mscorlib"}</data><data key="TrackingId">1</data><data key="ApplicationId">A02</data><data key="ActionsExecuted">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="Id">RC01</data><data key="Name">CMP001</data><data key="Disabled">false</data></node>
<node id="n30" labels=":RecordEmployee"><data key="labels">:RecordEmployee</data><data key="ModifiedDate">0001-01-01T00:00:00</data><data key="F03">2016-03-28T11:43:48.6392467-04:00</data><data key="F01">Philip</data><data key="F02">Fry</data><data key="CreatedDate">0001-01-01T00:00:00</data><data key="Source">Manual</data><data key="Allowed">[]</data><data key="LinkedData">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="SessionTimeSpent">0</data><data key="TotalTimeSpent">0</data><data key="TimeTrackingEnabled">true</data><data key="Visualizations">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.VisualizationData, Core]], mscorlib]], mscorlib"}</data><data key="ApplicationRevision">0</data><data key="Comments">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.Comments, Core]], mscorlib]], mscorlib"}</data><data key="TrackingId">1</data><data key="ApplicationId">A01</data><data key="ActionsExecuted">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="Id">RE01</data><data key="Name">EMP001</data><data key="Disabled">false</data></node>
<node id="n31" labels=":RecordEmployee"><data key="labels">:RecordEmployee</data><data key="ModifiedDate">0001-01-01T00:00:00</data><data key="F03">2016-03-28T11:43:49.0845658-04:00</data><data key="F01">Leela</data><data key="F02">Turanga</data><data key="CreatedDate">0001-01-01T00:00:00</data><data key="Source">Manual</data><data key="Allowed">[]</data><data key="LinkedData">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="SessionTimeSpent">0</data><data key="TotalTimeSpent">0</data><data key="TimeTrackingEnabled">true</data><data key="Visualizations">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.VisualizationData, Core]], mscorlib]], mscorlib"}</data><data key="ApplicationRevision">0</data><data key="Comments">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.Comments, Core]], mscorlib]], mscorlib"}</data><data key="TrackingId">2</data><data key="ApplicationId">A01</data><data key="ActionsExecuted">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="Id">RE02</data><data key="Name">EMP002</data><data key="Disabled">false</data></node>
<node id="n32" labels=":RecordComputer"><data key="labels">:RecordComputer</data><data key="F02">WS-FLLBRODR01</data><data key="ModifiedDate">0001-01-01T00:00:00</data><data key="F03">2016-03-28T11:43:49.2414982-04:00</data><data key="CreatedDate">0001-01-01T00:00:00</data><data key="F01">777777</data><data key="Source">Manual</data><data key="Allowed">[]</data><data key="LinkedData">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="SessionTimeSpent">0</data><data key="TotalTimeSpent">0</data><data key="TimeTrackingEnabled">true</data><data key="Visualizations">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.VisualizationData, Core]], mscorlib]], mscorlib"}</data><data key="ApplicationRevision">0</data><data key="Comments">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Collections.Generic.List`1[[Core.Models.Record.Comments, Core]], mscorlib]], mscorlib"}</data><data key="TrackingId">1</data><data key="ApplicationId">A02</data><data key="ActionsExecuted">{"$type":"System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.Object, mscorlib]], mscorlib"}</data><data key="Id">RC02</data><data key="Name">CMP002</data><data key="Disabled">false</data></node>
<edge id="e0" source="n0" target="n1" label="Fields"><data key="label">Fields</data></edge>
<edge id="e1" source="n1" target="n2" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e2" source="n0" target="n3" label="Fields"><data key="label">Fields</data></edge>
<edge id="e3" source="n1" target="n4" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e4" source="n3" target="n5" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e5" source="n3" target="n6" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e6" source="n3" target="n7" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e7" source="n8" target="n9" label="Fields"><data key="label">Fields</data></edge>
<edge id="e8" source="n9" target="n10" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e9" source="n8" target="n11" label="Fields"><data key="label">Fields</data></edge>
<edge id="e10" source="n9" target="n12" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e11" source="n11" target="n13" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e12" source="n11" target="n14" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e13" source="n11" target="n15" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e14" source="n16" target="n17" label="Fields"><data key="label">Fields</data></edge>
<edge id="e15" source="n17" target="n18" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e16" source="n16" target="n19" label="Fields"><data key="label">Fields</data></edge>
<edge id="e17" source="n17" target="n20" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e18" source="n19" target="n21" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e19" source="n19" target="n22" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e20" source="n19" target="n23" label="VALUES"><data key="label">VALUES</data></edge>
<edge id="e21" source="n27" target="n18" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F04</data><data key="Name">Type</data><data key="Disabled">false</data></edge>
<edge id="e22" source="n27" target="n21" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Variations</data><data key="Disabled">false</data></edge>
<edge id="e23" source="n27" target="n22" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Variations</data><data key="Disabled">false</data></edge>
<edge id="e24" source="n28" target="n20" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F04</data><data key="Name">Type</data><data key="Disabled">false</data></edge>
<edge id="e25" source="n28" target="n23" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Variations</data><data key="Disabled">false</data></edge>
<edge id="e26" source="n29" target="n27" label="Reference"><data key="label">Reference</data><data key="Id">F09</data><data key="Name">Incidents</data></edge>
<edge id="e27" source="n29" target="n12" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F04</data><data key="Name">Make</data><data key="Disabled">false</data></edge>
<edge id="e28" source="n29" target="n13" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Applications</data><data key="Disabled">false</data></edge>
<edge id="e29" source="n29" target="n14" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Applications</data><data key="Disabled">false</data></edge>
<edge id="e30" source="n29" target="n24" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F06</data><data key="Name">IT</data></edge>
<edge id="e31" source="n29" target="n24" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F07</data><data key="Name">AllowedUsers</data></edge>
<edge id="e32" source="n30" target="n29" label="Reference"><data key="label">Reference</data><data key="Id">F08</data><data key="Name">Computers</data></edge>
<edge id="e33" source="n30" target="n2" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F04</data><data key="Name">Position</data><data key="Disabled">false</data></edge>
<edge id="e34" source="n30" target="n5" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Hobbies</data><data key="Disabled">false</data></edge>
<edge id="e35" source="n30" target="n6" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Hobbies</data><data key="Disabled">false</data></edge>
<edge id="e36" source="n30" target="n7" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Hobbies</data><data key="Disabled">false</data></edge>
<edge id="e37" source="n30" target="n24" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F06</data><data key="Name">IT</data></edge>
<edge id="e38" source="n30" target="n24" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F07</data><data key="Name">Account</data></edge>
<edge id="e39" source="n31" target="n29" label="Reference"><data key="label">Reference</data><data key="Id">F08</data><data key="Name">Computers</data></edge>
<edge id="e40" source="n31" target="n4" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F04</data><data key="Name">Position</data><data key="Disabled">false</data></edge>
<edge id="e41" source="n31" target="n5" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Hobbies</data><data key="Disabled">false</data></edge>
<edge id="e42" source="n31" target="n24" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F06</data><data key="Name">IT</data></edge>
<edge id="e43" source="n31" target="n25" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F06</data><data key="Name">IT</data></edge>
<edge id="e44" source="n31" target="n25" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F07</data><data key="Name">Account</data></edge>
<edge id="e45" source="n32" target="n31" label="Reference"><data key="label">Reference</data><data key="Id">F08</data><data key="Name">Employees</data></edge>
<edge id="e46" source="n32" target="n28" label="Reference"><data key="label">Reference</data><data key="Id">F09</data><data key="Name">Incidents</data></edge>
<edge id="e47" source="n32" target="n12" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F04</data><data key="Name">Make</data><data key="Disabled">false</data></edge>
<edge id="e48" source="n32" target="n13" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Applications</data><data key="Disabled">false</data></edge>
<edge id="e49" source="n32" target="n14" label="ValueSelection"><data key="label">ValueSelection</data><data key="Id">F05</data><data key="Name">Applications</data><data key="Disabled">false</data></edge>
<edge id="e50" source="n32" target="n24" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F06</data><data key="Name">IT</data></edge>
<edge id="e51" source="n32" target="n26" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F06</data><data key="Name">IT</data></edge>
<edge id="e52" source="n32" target="n26" label="USER_LIST"><data key="label">USER_LIST</data><data key="Id">F07</data><data key="Name">AllowedUsers</data></edge>
</graph>
</graphml>
</code></pre></div> | <h2 dir="auto">Guidelines</h2>
<p dir="auto">Please note that GitHub issues are only meant for bug reports/feature requests.<br>
If you have questions on how to use Neo4j, please ask on <a href="https://stackoverflow.com/questions/tagged/neo4j" rel="nofollow">StackOverflow</a> instead of creating an issue here.</p>
<p dir="auto">Before creating a new issue, please check whether someone else has raised the same issue. You may be able to add context to that issue instead of duplicating the report. However, each issue should also only be focussed on a <em>single</em> problem, so do not describe new problems within an existing thread - these are very hard to track and manage, and your problem may be ignored. Finally, do not append comments to closed issues; if the same problem re-occurs, open a new issue, and include a link to the old one.</p>
<p dir="auto">To help us understand your issue, please specify important details, primarily:</p>
<ul dir="auto">
<li>Neo4j version: X.Y.Z</li>
<li>Operating system: (for example Windows 95/Ubuntu 16.04)</li>
<li>API/Driver: (for example Cypher/Java API/Python driver vX.Y.Z)</li>
<li><strong>Steps to reproduce</strong></li>
<li>Expected behavior</li>
<li>Actual behavior</li>
</ul>
<p dir="auto">Additionally, include (as appropriate) log-files, stacktraces, and other debug output.</p>
<h2 dir="auto">Example bug report</h2>
<p dir="auto">I discovered that when I mount <code class="notranslate">data/</code> to a volume on my host, and then stop the container, the <code class="notranslate">write.lock</code> is not removed as well as a number of other files not being cleaned up properly.</p>
<p dir="auto"><strong>Neo4j Version:</strong> 3.0M03<br>
<strong>Operating System:</strong> Ubuntu 15.10<br>
<strong>API:</strong> Docker</p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Pull the image: <code class="notranslate">docker pull neo4j/neo4j:3.0.0-M03</code></li>
<li>Create a directory on the host that will be a mount for the data: <code class="notranslate">mkdir /home/neo4j-data</code></li>
<li>Start a new container that mounts to this directory: <code class="notranslate">docker run -d --name neo4j-test -p 7474:7474 -v /home/neo4j-data:/data neo4j/neo4j:3.0.0-M03</code></li>
<li>Navigate to the <code class="notranslate">write.lock</code> file located in the directory: <code class="notranslate">/data/databases/graph.db/schema/label/lucene/labelStore/1/</code></li>
<li>Stop the container: <code class="notranslate">docker stop neo4j-test</code></li>
</ol>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto"><code class="notranslate">write.lock</code> should be removed now.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto"><code class="notranslate">write.lock</code> is still present and preventing access by other programs.</p> | 0 |
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: 1.17</li>
<li>Operating System: Mac OS</li>
<li>Node.js version: 16.3</li>
<li>Browser: Chromium</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// wallet.address is a string
testInfo.attachments.push({
name: 'address',
body: wallet.address as any,
contentType: 'text/plain',
})
console.log(wallet.address)"><pre class="notranslate"><span class="pl-c">// wallet.address is a string</span>
<span class="pl-s1">testInfo</span><span class="pl-kos">.</span><span class="pl-c1">attachments</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'address'</span><span class="pl-kos">,</span>
<span class="pl-c1">body</span>: <span class="pl-s1">wallet</span><span class="pl-kos">.</span><span class="pl-c1">address</span> <span class="pl-s1">as</span> <span class="pl-s1">any</span><span class="pl-kos">,</span>
<span class="pl-c1">contentType</span>: <span class="pl-s">'text/plain'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">wallet</span><span class="pl-kos">.</span><span class="pl-c1">address</span><span class="pl-kos">)</span></pre></div>
<p dir="auto"><strong>Describe the bug</strong><br>
I'm trying to add an attachment with <code class="notranslate">contentType: 'text/plain'</code> to my html report.<br>
The problem I'm seeing is there are some additional symbols added to my string:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17785134/144199793-99046243-7b92-434b-a149-6fb812df6a6c.jpg"><img src="https://user-images.githubusercontent.com/17785134/144199793-99046243-7b92-434b-a149-6fb812df6a6c.jpg" alt="telegram-cloud-photo-size-2-5275988481706931671-y" style="max-width: 100%;"></a></p>
<p dir="auto">I also tried to use <code class="notranslate">Buffer.from(wallet.address)</code> as the body expects to see an instance of the Buffer but all I get is this:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17785134/144200229-6010fda9-38f2-4f64-bd3c-00da20b3c8d4.png"><img src="https://user-images.githubusercontent.com/17785134/144200229-6010fda9-38f2-4f64-bd3c-00da20b3c8d4.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto"><strong>Context:</strong><br>
Playwright Version: <code class="notranslate">@playwright/[email protected]</code>, ToT (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/playwright/commit/3c1aaa5338f9822d39a4c69c4ddd19acc12d0530/hovercard" href="https://github.com/microsoft/playwright/commit/3c1aaa5338f9822d39a4c69c4ddd19acc12d0530"><tt>3c1aaa5</tt></a>)</p>
<p dir="auto"><strong>Code Snippet</strong></p>
<p dir="auto">Currently, if you have the following in your tests:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" testInfo.attachments.push({
name: "example.txt",
contentType: "text/plain",
body: Buffer.from("foo"),
});
testInfo.attachments.push({
name: "example.json",
contentType: "application/json",
body: Buffer.from(JSON.stringify({ foo: 1})),
});
console.log("stdout output example");
console.error("stderr output example");"><pre class="notranslate"><code class="notranslate"> testInfo.attachments.push({
name: "example.txt",
contentType: "text/plain",
body: Buffer.from("foo"),
});
testInfo.attachments.push({
name: "example.json",
contentType: "application/json",
body: Buffer.from(JSON.stringify({ foo: 1})),
});
console.log("stdout output example");
console.error("stderr output example");
</code></pre></div>
<p dir="auto">the HTML Reporter renders the <code class="notranslate">example.txt</code> and <code class="notranslate">example.json</code> as b64 encoded text (but, notably inconsistent, not <code class="notranslate">stdout</code>/<code class="notranslate">stderr</code>):</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11915034/140476204-9d5d2dea-1332-4035-a506-fda615137c15.png"><img width="963" alt="Screen Shot 2021-11-05 at 12 42 19 AM" src="https://user-images.githubusercontent.com/11915034/140476204-9d5d2dea-1332-4035-a506-fda615137c15.png" style="max-width: 100%;"></a></p>
<p dir="auto">It would be ideal if plaintext attachments were rendered plainly without the encoding so you can easily understand their contents while viewing the HTML Report in the browser. For each of our e2e smoketests, we attach metadata that allows a test reviewer to find items created in the e2e test run in our backend.) Here's what I expected it to look like:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11915034/140476394-2acc0d69-6195-4a3a-8eb5-8ffd2511d9aa.png"><img width="978" alt="Screen Shot 2021-11-05 at 12 40 08 AM" src="https://user-images.githubusercontent.com/11915034/140476394-2acc0d69-6195-4a3a-8eb5-8ffd2511d9aa.png" style="max-width: 100%;"></a></p>
<p dir="auto">For now, we can log the info to stdout, but it's nice to put it in a standard attachment so it's easy to view.</p>
<p dir="auto">It looks like stdout/stderr have special treatment, while all other <code class="notranslate">body</code> type attachments are base64 encoded:<br>
</p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/microsoft/playwright/blob/3c1aaa5338f9822d39a4c69c4ddd19acc12d0530/packages/playwright-test/src/reporters/raw.ts#L248">playwright/packages/playwright-test/src/reporters/raw.ts</a>
</p>
<p class="mb-0 color-fg-muted">
Line 248
in
<a data-pjax="true" class="commit-tease-sha" href="/microsoft/playwright/commit/3c1aaa5338f9822d39a4c69c4ddd19acc12d0530">3c1aaa5</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="L248" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="248"></td>
<td id="LC248" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">body</span>: <span class="pl-s1">attachment</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">.</span><span class="pl-en">toString</span><span class="pl-kos">(</span><span class="pl-s">'base64'</span><span class="pl-kos">)</span> </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">There's a few alternative's I'd like us to consider:</p>
<ol dir="auto">
<li>Don't always do the above. If <code class="notranslate">body</code> Buffer is specified AND <code class="notranslate">contentType</code> is plaintext-ish (<code class="notranslate">text/*</code>, <code class="notranslate">application/json</code>), just call <code class="notranslate">toString()</code> instead of <code class="notranslate">toString('base64')</code>.</li>
<li>Leave as is, but change <code class="notranslate">_createAttachment</code> like so:
<div class="highlight highlight-source-diff notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="diff --git a/packages/playwright-test/src/reporters/html.ts b/packages/playwright-test/src/reporters/html.ts
index 2768b4cc..565bf6f5 100644
--- a/packages/playwright-test/src/reporters/html.ts
+++ b/packages/playwright-test/src/reporters/html.ts
@@ -390,15 +390,18 @@ class HtmlBuilder {
};
}
- if ((a.name === 'stdout' || a.name === 'stderr') && a.contentType === 'text/plain') {
- if (lastAttachment &&
+ if ((a.name === 'stdout' || a.name === 'stderr')) {
+ if (a.contentType === 'text/plain' && lastAttachment &&
lastAttachment.name === a.name &&
lastAttachment.contentType === a.contentType) {
lastAttachment.body += stripAnsiEscapes(a.body as string);
return null;
}
a.body = stripAnsiEscapes(a.body as string);
+ } else if (a.body && (a.contentType.toLowerCase().startsWith("text/") || a.contentType.toLowerCase() === "application/json")) {
+ a.body = Buffer.from(a.body, "base64").toString();
}"><pre class="notranslate"><span class="pl-c1">diff --git a/packages/playwright-test/src/reporters/html.ts b/packages/playwright-test/src/reporters/html.ts</span>
index 2768b4cc..565bf6f5 100644
<span class="pl-md">--- a/packages/playwright-test/src/reporters/html.ts</span>
<span class="pl-mi1">+++ b/packages/playwright-test/src/reporters/html.ts</span>
<span class="pl-mdr">@@ -390,15 +390,18 @@</span> class HtmlBuilder {
};
}
<span class="pl-md"><span class="pl-md">-</span> if ((a.name === 'stdout' || a.name === 'stderr') && a.contentType === 'text/plain') {</span>
<span class="pl-md"><span class="pl-md">-</span> if (lastAttachment &&</span>
<span class="pl-mi1"><span class="pl-mi1">+</span> if ((a.name === 'stdout' || a.name === 'stderr')) {</span>
<span class="pl-mi1"><span class="pl-mi1">+</span> if (a.contentType === 'text/plain' && lastAttachment &&</span>
lastAttachment.name === a.name &&
lastAttachment.contentType === a.contentType) {
lastAttachment.body += stripAnsiEscapes(a.body as string);
return null;
}
a.body = stripAnsiEscapes(a.body as string);
<span class="pl-mi1"><span class="pl-mi1">+</span> } else if (a.body && (a.contentType.toLowerCase().startsWith("text/") || a.contentType.toLowerCase() === "application/json")) {</span>
<span class="pl-mi1"><span class="pl-mi1">+</span> a.body = Buffer.from(a.body, "base64").toString();</span>
}</pre></div>
</li>
<li>Similar to (2), but instead of in <code class="notranslate">_createAttachment</code>, conditionally decode it in the React Component around this existing line: <div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/microsoft/playwright/blob/3c1aaa5338f9822d39a4c69c4ddd19acc12d0530/packages/playwright-core/src/web/htmlReport/htmlReport.tsx#L326">playwright/packages/playwright-core/src/web/htmlReport/htmlReport.tsx</a>
</p>
<p class="mb-0 color-fg-muted">
Line 326
in
<a data-pjax="true" class="commit-tease-sha" href="/microsoft/playwright/commit/3c1aaa5338f9822d39a4c69c4ddd19acc12d0530">3c1aaa5</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="L326" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="326"></td>
<td id="LC326" 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><span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">'attachment-body'</span><span class="pl-c1">></span><span class="pl-kos">{</span><span class="pl-s1">attachment</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">}</span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span><span class="pl-kos">]</span><span class="pl-kos">;</span> </td>
</tr>
</tbody></table>
</div>
</div>
</li>
<li>Be more explicit. Change <code class="notranslate">TestInfo.body</code> from <code class="notranslate">Buffer | undefined</code> to <code class="notranslate">Buffer | string | undefined</code>. If the user supplies a <code class="notranslate">string</code> instead of a <code class="notranslate">Buffer</code>, update the following line to just use the raw string as the <code class="notranslate">body</code>: <div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/microsoft/playwright/blob/3c1aaa5338f9822d39a4c69c4ddd19acc12d0530/packages/playwright-test/src/reporters/raw.ts#L248">playwright/packages/playwright-test/src/reporters/raw.ts</a>
</p>
<p class="mb-0 color-fg-muted">
Line 248
in
<a data-pjax="true" class="commit-tease-sha" href="/microsoft/playwright/commit/3c1aaa5338f9822d39a4c69c4ddd19acc12d0530">3c1aaa5</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="L248" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="248"></td>
<td id="LC248" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">body</span>: <span class="pl-s1">attachment</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">.</span><span class="pl-en">toString</span><span class="pl-kos">(</span><span class="pl-s">'base64'</span><span class="pl-kos">)</span> </td>
</tr>
</tbody></table>
</div>
</div>
</li>
</ol>
<p dir="auto">As an aside, it might be worth cleaning up the serialized attachments format so it's easy to tell if they've been base64 encoded or not. For instance, some attachments (<code class="notranslate">stderr</code> / <code class="notranslate">stdout</code>) store non-encoded data currently, while user-attachments are <code class="notranslate">base64</code> encoded, and there's not a programmatic way to tell the difference in this mix—except magically knowing. I think it would make sense to always b64 encode the body (event if it's stderr/stdout) so it's uniform, or introduce an <code class="notranslate">encoding</code> hint (<code class="notranslate">undefined | "base64"</code>) in the serialized format.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pavelfeldman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pavelfeldman">@pavelfeldman</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dgozman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dgozman">@dgozman</a> : What's your take on the expected behavior/rendering here? If it should be plaintext for my examples above (which would greatly help us when going through our Test Reports), then what are your above thoughts on the correct fix? Happy to contribute an MR for one of the suggestions (or an alternative). Running (2) in a staging environment currently to get around the issue.</p> | 1 |
<p dir="auto">When adding multiple children to the button the placement is dependent of the order of the children.</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">Same placement, independent from the order.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Placement differs slightly. There is a problem with the inheriting display of the label. We could not inherit the display-prop (behavior like the html5-button-component).</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><a href="https://codesandbox.io/s/y0vv1243w9" rel="nofollow">https://codesandbox.io/s/y0vv1243w9</a></p>
<h2 dir="auto">Context</h2>
<p dir="auto">I stumbled over that when working with custom icons implemented like <a href="https://material-ui-1dab0.firebaseapp.com/demos/buttons/#buttons-with-icons-and-label" rel="nofollow">the examples</a>. (used Fontawesome5-icons, <a href="https://codesandbox.io/s/k906lvwynv" rel="nofollow">like in this sandbox</a>).</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.25</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
<tr>
<td>browser</td>
<td>chrome 63.0.3239.108</td>
</tr>
</tbody>
</table> | <p dir="auto">I am facing a wired issue when trying to publish my app to production, I am using "npm run build" to build my app.the log contains some warning but its's not related to my issue:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm WARN [email protected] requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-transition-group@^2.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})"><pre class="notranslate"><code class="notranslate">npm WARN [email protected] requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of react-transition-group@^2.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
</code></pre></div>
<p dir="auto">The problem is when I render the production build the app styles is corrupted while the js functions is working fine e.g.login, axios requests and routing.<br>
<strong>I figured out what causing this issue but I couldn't solve the issue:<br>
I am using jss-rtl as per the docs, so I have a HOC to wrap my components with so the RTL will be rendered properly, when I remove the RTL HOC the style is ok but the rtl is not rendered as expected e.g. Text field label is ltr:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from "react";
import { create } from 'jss';
import rtl from 'jss-rtl';
import JssProvider from 'react-jss/lib/JssProvider';
import { createGenerateClassName, jssPreset } from 'material-ui/styles';
// Configure JSS
const jss = create({ plugins: [...jssPreset().plugins, rtl()] });
// Custom Material-UI class name generator.
const generateClassName = createGenerateClassName();
export default function RTL(props) {
return (
<JssProvider jss={jss} generateClassName={generateClassName}>
{props.children}
</JssProvider>
);
}"><pre class="notranslate"><code class="notranslate">import React from "react";
import { create } from 'jss';
import rtl from 'jss-rtl';
import JssProvider from 'react-jss/lib/JssProvider';
import { createGenerateClassName, jssPreset } from 'material-ui/styles';
// Configure JSS
const jss = create({ plugins: [...jssPreset().plugins, rtl()] });
// Custom Material-UI class name generator.
const generateClassName = createGenerateClassName();
export default function RTL(props) {
return (
<JssProvider jss={jss} generateClassName={generateClassName}>
{props.children}
</JssProvider>
);
}
</code></pre></div>
<p dir="auto">Usage:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<form>
<RTL>
<TextField
placeholder="username"
label="username"
fullWidth={true}
value={this.state.login}
onChange={this.handleLogin}
margin="normal"
/>
</RTL>
...
</form>"><pre class="notranslate"><code class="notranslate"><form>
<RTL>
<TextField
placeholder="username"
label="username"
fullWidth={true}
value={this.state.login}
onChange={this.handleLogin}
margin="normal"
/>
</RTL>
...
</form>
</code></pre></div>
<p dir="auto">I tried to solve this issue in last two day with no luck :(. so I am here to file this issue.</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">Material ui components should be displayed correctly in production as in dev mode.<br>
<a href="https://i.imgur.com/idJgFxo.png" rel="nofollow">Expected like dev mode</a></p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Corrupted TextField styles (while button styles is ok!):<br>
<a href="https://i.imgur.com/rUqGO38.png" rel="nofollow">Corrupted styles in prod</a></p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">1.Follow RTL enabling steps <a href="https://material-ui-next.com/guides/right-to-left/" rel="nofollow">here</a><br>
2.Add jss-rtl<br>
3.Use the <a href="https://material-ui-next.com/guides/right-to-left/#3-jss-rtl" rel="nofollow">HOC </a>to wrap any textfield in your code.<br>
4.npm run build</p>
<h2 dir="auto">Context</h2>
<p dir="auto">This my first app that should be deployed in production environment, the app should be fully RTL in Arabic. unfortunately this issue delayed the deployment 3 days until now.</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.33</td>
</tr>
<tr>
<td>React</td>
<td>^16.2.0</td>
</tr>
<tr>
<td>browser</td>
<td>chrome 64</td>
</tr>
<tr>
<td>react-jss</td>
<td>^8.1.0</td>
</tr>
<tr>
<td>jss-rtl</td>
<td>^0.2.1</td>
</tr>
</tbody>
</table> | 0 |
<pre class="notranslate">The following program crashes 6c
struct s {int m;} void f(void) {}
Here is the stacktrace according to gdb
$ gdb --args ../pkg/tool/linux_amd64/6c crash.c
Reading symbols from /usr/local/google/home/cshapiro/go/pkg/tool/linux_amd64/6c...done.
(gdb) run
Starting program: /usr/local/google/home/cshapiro/go/pkg/tool/linux_amd64/6c crash.c
Program received signal SIGSEGV, Segmentation fault.
0x00000000004393bd in __quotesetup (s=0x0, r=0x10000, nin=-1, nout=163,
q=0x7fffffffbc60, sharp=0,
runesout=0) at /usr/local/google/home/cshapiro/go/src/lib9/fmt/fmtquote.c:47
��/usr/local/google/home/cshapiro/go/src/lib9/fmt/fmtquote.c:47:1643:beg:0x4393bd
(gdb) where
#0 0x00000000004393bd in __quotesetup (s=0x0, r=0x10000, nin=-1, nout=163,
q=0x7fffffffbc60, sharp=0,
runesout=0) at /usr/local/google/home/cshapiro/go/src/lib9/fmt/fmtquote.c:47
#1 0x0000000000439e72 in __quotestrfmt (runesin=1, f=0x7fffffffbd80)
at /usr/local/google/home/cshapiro/go/src/lib9/fmt/fmtquote.c:221
#2 0x0000000000439f28 in quoterunestrfmt (f=0x7fffffffbd80)
at /usr/local/google/home/cshapiro/go/src/lib9/fmt/fmtquote.c:244
#3 0x0000000000439154 in __fmtdispatch (f=0x7fffffffbd80, fmt=0x44b598, isrunes=0)
at /usr/local/google/home/cshapiro/go/src/lib9/fmt/fmt.c:229
#4 0x0000000000437070 in dofmt (f=0x7fffffffbd80, fmt=0x44b597 "Q")
at /usr/local/google/home/cshapiro/go/src/lib9/fmt/dofmt.c:80
#5 0x000000000043b973 in vseprint (buf=0x7fffffffbe40 "duplicate types given:
STRUCT s and ",
e=0x7fffffffbf08 "", fmt=0x44b578 "duplicate types given: %T and %Q", args=0x7fffffffbe28)
at /usr/local/google/home/cshapiro/go/src/lib9/fmt/vseprint.c:39
#6 0x000000000043036c in diag (n=0x0, fmt=0x44b578 "duplicate types given: %T and
%Q")
at /usr/local/google/home/cshapiro/go/src/cmd/cc/sub.c:1196
#7 0x0000000000433b0f in yyparse () at cc.y:984
#8 0x000000000042694b in compile (file=0x7fffffffe23e "crash.c", defs=0x0,
ndef=0)
at /usr/local/google/home/cshapiro/go/src/cmd/cc/lex.c:325
#9 0x000000000042613d in p9main (argc=1, argv=0x7fffffffddf0)
at /usr/local/google/home/cshapiro/go/src/cmd/cc/lex.c:196
#10 0x000000000043bffc in main (argc=2, argv=0x7fffffffdde8)
at /usr/local/google/home/cshapiro/go/src/lib9/main.c:55
(gdb)</pre> | <p dir="auto">by <strong><a href="mailto:[email protected]">[email protected]</a></strong>:</p>
<pre class="notranslate">Similar to issue #6258, but not the same.
What steps will reproduce the problem?
Try to read a CSV file where the fields are unquoted and one of them begins in something
that would need lazy quotes, e.g.
Field1,Field2,"LazyQuotes" Field3,Field4,Field5
What is the expected output?
["Field1", "Field2", "\"LazyQuotes\" Field3",
"Field4", "Field5"]
Length 5
What do you see instead?
["Field1", "Field2", "LazyQuotes\"
Field3,Field4,Field5"]
Length 3
Which compiler are you using (5g, 6g, 8g, gccgo)?
Whatever the default is from <a href="https://code.google.com/p/go/downloads/list" rel="nofollow">https://code.google.com/p/go/downloads/list</a>
Which operating system are you using?
Mac OS X 10.8
Which version are you using? (run 'go version')
go version go1.1.2 darwin/amd64</pre> | 0 |
<p dir="auto">I hope twitter bootstrap have a growl notifications ..</p> | <p dir="auto">I know this is in the roadmap so just wanted to share some working code here even though it's not really in a point where I could commit a pull request as we are actively developing this functionality:</p>
<p dir="auto">bootstrap.growl.js</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="!function( $ ) {
$.fn.growl = function ( flash, params ) {
var growl = this
, params = params || {}
, type = params.text ? 'text' : 'html'
, text = growl.children('p').find('.text')
, label = growl.children('p').find('.label')
, timeout = params.timeout || 5000
;
function set_msg(severity,css,msg){
label[type](severity);
label.removeClass('important notice warning new');
label.addClass(css);
text[type](msg);
}
if(flash.error || flash.notice || flash.warning) {
if (flash.error) { set_msg('Error', 'important', flash.error); }
else if (flash.warning) { set_msg('Warning', 'warning', flash.warning); }
else if (flash.info) { set_msg('Info', 'notice', flash.notice); }
else if (flash.ok) { set_msg('Ok', 'new', flash.ok); }
growl.show('fast');
setTimeout(function() {
growl.hide('slow');
}, timeout);
}
};
}( window.jQuery || window.ender );"><pre class="notranslate"><span class="pl-c1">!</span><span class="pl-k">function</span><span class="pl-kos">(</span> <span class="pl-s1">$</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">$</span><span class="pl-kos">.</span><span class="pl-c1">fn</span><span class="pl-kos">.</span><span class="pl-en">growl</span> <span class="pl-c1">=</span> <span class="pl-k">function</span> <span class="pl-kos">(</span> <span class="pl-s1">flash</span><span class="pl-kos">,</span> <span class="pl-s1">params</span> <span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">growl</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span>
<span class="pl-kos">,</span> <span class="pl-s1">params</span> <span class="pl-c1">=</span> <span class="pl-s1">params</span> <span class="pl-c1">||</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">,</span> <span class="pl-s1">type</span> <span class="pl-c1">=</span> <span class="pl-s1">params</span><span class="pl-kos">.</span><span class="pl-c1">text</span> ? <span class="pl-s">'text'</span> : <span class="pl-s">'html'</span>
<span class="pl-kos">,</span> <span class="pl-s1">text</span> <span class="pl-c1">=</span> <span class="pl-s1">growl</span><span class="pl-kos">.</span><span class="pl-en">children</span><span class="pl-kos">(</span><span class="pl-s">'p'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s">'.text'</span><span class="pl-kos">)</span>
<span class="pl-kos">,</span> <span class="pl-s1">label</span> <span class="pl-c1">=</span> <span class="pl-s1">growl</span><span class="pl-kos">.</span><span class="pl-en">children</span><span class="pl-kos">(</span><span class="pl-s">'p'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s">'.label'</span><span class="pl-kos">)</span>
<span class="pl-kos">,</span> <span class="pl-s1">timeout</span> <span class="pl-c1">=</span> <span class="pl-s1">params</span><span class="pl-kos">.</span><span class="pl-c1">timeout</span> <span class="pl-c1">||</span> <span class="pl-c1">5000</span>
<span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">set_msg</span><span class="pl-kos">(</span><span class="pl-s1">severity</span><span class="pl-kos">,</span><span class="pl-s1">css</span><span class="pl-kos">,</span><span class="pl-s1">msg</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-s1">type</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">severity</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-en">removeClass</span><span class="pl-kos">(</span><span class="pl-s">'important notice warning new'</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-en">addClass</span><span class="pl-kos">(</span><span class="pl-s1">css</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">text</span><span class="pl-kos">[</span><span class="pl-s1">type</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">msg</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">error</span> <span class="pl-c1">||</span> <span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">notice</span> <span class="pl-c1">||</span> <span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">warning</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">error</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">set_msg</span><span class="pl-kos">(</span><span class="pl-s">'Error'</span><span class="pl-kos">,</span> <span class="pl-s">'important'</span><span class="pl-kos">,</span> <span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">error</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">warning</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">set_msg</span><span class="pl-kos">(</span><span class="pl-s">'Warning'</span><span class="pl-kos">,</span> <span class="pl-s">'warning'</span><span class="pl-kos">,</span> <span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">warning</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">info</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">set_msg</span><span class="pl-kos">(</span><span class="pl-s">'Info'</span><span class="pl-kos">,</span> <span class="pl-s">'notice'</span><span class="pl-kos">,</span> <span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">notice</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">ok</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">set_msg</span><span class="pl-kos">(</span><span class="pl-s">'Ok'</span><span class="pl-kos">,</span> <span class="pl-s">'new'</span><span class="pl-kos">,</span> <span class="pl-s1">flash</span><span class="pl-kos">.</span><span class="pl-c1">ok</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-s1">growl</span><span class="pl-kos">.</span><span class="pl-en">show</span><span class="pl-kos">(</span><span class="pl-s">'fast'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">setTimeout</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">growl</span><span class="pl-kos">.</span><span class="pl-en">hide</span><span class="pl-kos">(</span><span class="pl-s">'slow'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">timeout</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-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">jQuery</span> <span class="pl-c1">||</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">ender</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Sample CSS</p>
<div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".growl { padding: 10px; position: fixed; top: 5px; left: 50%;
margin-left: -70px; background-color: rgba(0,0,0,0.5); z-index: 10; }
.growl p { color: #fff; margin: 0px;}"><pre class="notranslate">.<span class="pl-c1">growl</span> { <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">position</span><span class="pl-kos">:</span> fixed; <span class="pl-c1">top</span><span class="pl-kos">:</span> <span class="pl-c1">5<span class="pl-smi">px</span></span>; <span class="pl-c1">left</span><span class="pl-kos">:</span> <span class="pl-c1">50<span class="pl-smi">%</span></span>;
<span class="pl-c1">margin-left</span><span class="pl-kos">:</span> <span class="pl-c1">-70<span class="pl-smi">px</span></span>; <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.5</span>); <span class="pl-c1">z-index</span><span class="pl-kos">:</span> <span class="pl-c1">10</span>; }
.<span class="pl-c1">growl</span> <span class="pl-ent">p</span> { <span class="pl-c1">color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>fff</span>; <span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">0<span class="pl-smi">px</span></span>;}</pre></div>
<p dir="auto">Sample HTML</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div id="growl" class="growl round hero-shadow hide">
<p>
<span class="label important">Error</span>
<span class="text">hey</span>
</p>
</div>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">id</span>="<span class="pl-s">growl</span>" <span class="pl-c1">class</span>="<span class="pl-s">growl round hero-shadow hide</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">label important</span>"<span class="pl-kos">></span>Error<span class="pl-kos"></</span><span class="pl-ent">span</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">span</span> <span class="pl-c1">class</span>="<span class="pl-s">text</span>"<span class="pl-kos">></span>hey<span class="pl-kos"></</span><span class="pl-ent">span</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
<p dir="auto">Sample Invocation:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$('#growl').growl({error: 'hey'}, {})"><pre class="notranslate"><span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">'#growl'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">growl</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">error</span>: <span class="pl-s">'hey'</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">Code and stuff is super lame but as said before we are trying to ship product and can't really focus on this right now. But still one could adapt this easily and make it into bootstrap with a decent quality.</p> | 1 |
<h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">Increase the left and top padding around the tabs to match our original mockup:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://github.com/microsoft/terminal/wiki/images/terminal-mockup.png"><img src="https://github.com/microsoft/terminal/wiki/images/terminal-mockup.png" alt="Terminal Mockup" title="Terminal Mockup" style="max-width: 100%;"></a></p>
<p dir="auto">Current version (v0.6):</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/wiki/microsoft/terminal/images/terminal-0.6.png"><img src="https://raw.githubusercontent.com/wiki/microsoft/terminal/images/terminal-0.6.png" alt="Terminal v0.6" title="Terminal v0.6" style="max-width: 100%;"></a></p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.356
Windows Terminal version (if applicable): 0.4.2382.0
(Also VS Code 1.38.1)"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.356
Windows Terminal version (if applicable): 0.4.2382.0
(Also VS Code 1.38.1)
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Add a profile for R with <code class="notranslate">"commandline" : "C:\\Program Files\\Microsoft\\R Open\\R-3.5.3\\bin\\x64\\R.exe"</code><br>
Try using the arrow keys to navigate through a command, or cycle through history</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Up/down arrow previous/next command<br>
Right/left arrow navigate through input text</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Nothing happens when the arrow keys are pressed but the Ctrl P,N,F,B keys do work.<br>
Aside, from the profile, the arrow keys do work if I call the executable from CMD (not in the terminal app), but do not work if I call it from CMD inside windows terminal.</p> | 0 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2>
<ul dir="auto">
<li>Windows build number: 2004 19041.423</li>
<li>PowerToys version: v0.20.1</li>
<li>PowerToy module: PowerToys Run</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/29023285/89800147-07df9980-db37-11ea-94bd-a8ea2df001c0.jpg"><img src="https://user-images.githubusercontent.com/29023285/89800147-07df9980-db37-11ea-94bd-a8ea2df001c0.jpg" alt="צילום מסך (872)_LI" style="max-width: 100%;"></a><br>
PowerToy module:</p>
<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>Clicking "Alt + Space" When PC user interface language is "Hebrew"</li>
</ol>
<h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3>
<p dir="auto">Should open the "Run Field Search Box"</p>
<h3 dir="auto">❌ Actual result</h3>
<p dir="auto">Happens nothing</p> | <h1 dir="auto">Allow key mapping for language change. so an unused key could change keyboard language</h1> | 0 |
<p dir="auto">Right now DictVectorizer is unable to handle features that have more than one value per key, such as:</p>
<p dir="auto">{'a': ['b','c'], 'd': 'e'}</p>
<p dir="auto">It would be great to simply encode a=b and a=c as the names of these features and 'just work.'</p> | <h4 dir="auto">Describe the bug</h4>
<ol dir="auto">
<li>A BallTree is created using a set of points that include duplicate values, representing different objects in the same spatial position;</li>
<li>The tree is queried using a second set of points, to determine the distance to the first closest neighbor;</li>
<li>Using the distances as radius, the tree is queried to obtain all the indexes from the first set of points that are closest neighbours with the second set. In situations where 2 or more key points have the same distance and are closest to a query point, I want to obtain all key points indexes.</li>
<li>However probably due to rounding errors some key indexes will not appear in the query_radius output.</li>
</ol>
<h4 dir="auto">Steps/Code to Reproduce</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="keys = np.array([[0.55039766, 0.84536002],
[0.55039766, 0.84536002],
[0.61324973, 0.05385278],
[0.61324973, 0.05385278],
[0.61324973, 0.05385278],
[0.54551389, 0.9451975 ],
[0.54551389, 0.9451975 ],
[0.76230722, 0.83559768],
[0.76230722, 0.83559768],
[0.78700191, 0.61089515],
[0.78700191, 0.61089515]])
tree = BallTree(keys, metric='l2', leaf_size=5)
query = np.array([[0.5488135 , 0.71518937],
[0.60276338, 0.54488318],
[0.4236548 , 0.64589411],
[0.43758721, 0.891773 ],
[0.96366276, 0.38344152],
[0.79172504, 0.52889492],
[0.56804456, 0.92559664],
[0.07103606, 0.0871293 ],
[0.0202184 , 0.83261985],
[0.77815675, 0.87001215]])
distance, index = tree.query(query, k=1)
result = tree.query_radius(query, r=distance.ravel())"><pre class="notranslate"><code class="notranslate">keys = np.array([[0.55039766, 0.84536002],
[0.55039766, 0.84536002],
[0.61324973, 0.05385278],
[0.61324973, 0.05385278],
[0.61324973, 0.05385278],
[0.54551389, 0.9451975 ],
[0.54551389, 0.9451975 ],
[0.76230722, 0.83559768],
[0.76230722, 0.83559768],
[0.78700191, 0.61089515],
[0.78700191, 0.61089515]])
tree = BallTree(keys, metric='l2', leaf_size=5)
query = np.array([[0.5488135 , 0.71518937],
[0.60276338, 0.54488318],
[0.4236548 , 0.64589411],
[0.43758721, 0.891773 ],
[0.96366276, 0.38344152],
[0.79172504, 0.52889492],
[0.56804456, 0.92559664],
[0.07103606, 0.0871293 ],
[0.0202184 , 0.83261985],
[0.77815675, 0.87001215]])
distance, index = tree.query(query, k=1)
result = tree.query_radius(query, r=distance.ravel())
</code></pre></div>
<h4 dir="auto">Expected Results</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="array([array([1, 0]),
array([10, 9]),
array([1, 0]),
array([5, 6]),
array([10, 9]),
array([10, 9]),
array([5, 6]),
array([2, 3, 4]),
array([1, 0]),
array([7, 8])], dtype=object)"><pre class="notranslate"><code class="notranslate">array([array([1, 0]),
array([10, 9]),
array([1, 0]),
array([5, 6]),
array([10, 9]),
array([10, 9]),
array([5, 6]),
array([2, 3, 4]),
array([1, 0]),
array([7, 8])], dtype=object)
</code></pre></div>
<h4 dir="auto">Actual Results</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="array([array([], dtype=int64),
array([10, 9]),
array([1, 0]),
array([5, 6]),
array([10, 9]),
array([10, 9]),
array([], dtype=int64),
array([2, 3, 4]),
array([1, 0]),
array([], dtype=int64)], dtype=object)"><pre class="notranslate"><code class="notranslate">array([array([], dtype=int64),
array([10, 9]),
array([1, 0]),
array([5, 6]),
array([10, 9]),
array([10, 9]),
array([], dtype=int64),
array([2, 3, 4]),
array([1, 0]),
array([], dtype=int64)], dtype=object)
</code></pre></div>
<h4 dir="auto">Versions</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="System:
python: 3.6.9 (default, Jul 17 2020, 12:50:27) [GCC 8.4.0]
executable: /usr/bin/python3
machine: Linux-4.19.104+-x86_64-with-Ubuntu-18.04-bionic
Python dependencies:
pip: 19.3.1
setuptools: 49.2.0
sklearn: 0.22.2.post1
numpy: 1.18.5
scipy: 1.4.1
Cython: 0.29.21
pandas: 1.0.5
matplotlib: 3.2.2
joblib: 0.16.0
Built with OpenMP: True"><pre class="notranslate"><code class="notranslate">System:
python: 3.6.9 (default, Jul 17 2020, 12:50:27) [GCC 8.4.0]
executable: /usr/bin/python3
machine: Linux-4.19.104+-x86_64-with-Ubuntu-18.04-bionic
Python dependencies:
pip: 19.3.1
setuptools: 49.2.0
sklearn: 0.22.2.post1
numpy: 1.18.5
scipy: 1.4.1
Cython: 0.29.21
pandas: 1.0.5
matplotlib: 3.2.2
joblib: 0.16.0
Built with OpenMP: True
</code></pre></div> | 0 |
<p dir="auto">Hello, I'm trying Symfony 3.2.0-RC1. It's a fresh install.</p>
<p dir="auto">I have the same error as <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/javiereguiluz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/javiereguiluz">@javiereguiluz</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="190253407" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/20556" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/20556/hovercard" href="https://github.com/symfony/symfony/issues/20556">#20556</a></p>
<p dir="auto">But there is another error in the logger panel:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1635368/20428626/e70c7b6a-ad68-11e6-8c4e-3a08ad1e09a9.png"><img src="https://cloud.githubusercontent.com/assets/1635368/20428626/e70c7b6a-ad68-11e6-8c4e-3a08ad1e09a9.png" alt="sf32rc1" style="max-width: 100%;"></a></p> | <p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="190252996" data-permission-text="Title is private" data-url="https://github.com/symfony/demo/issues/403" data-hovercard-type="pull_request" data-hovercard-url="/symfony/demo/pull/403/hovercard" href="https://github.com/symfony/demo/pull/403">symfony/demo#403</a> I've just updated the Symfony Demo app to Symfony 3.2-RC1 and Twig 1.28. I have a lot of issues in the Symfony profiler:</p>
<ol dir="auto">
<li>The few profiler panels that work right mess up the entire sidebar menu:</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/73419/20422117/a74a5fe2-ad68-11e6-9a04-964d7d3069f9.png"><img src="https://cloud.githubusercontent.com/assets/73419/20422117/a74a5fe2-ad68-11e6-9a04-964d7d3069f9.png" alt="error_1" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/73419/20422119/a97b754e-ad68-11e6-8454-bd6e1621733a.png"><img src="https://cloud.githubusercontent.com/assets/73419/20422119/a97b754e-ad68-11e6-8454-bd6e1621733a.png" alt="error_2" style="max-width: 100%;"></a></p>
<ol start="2" dir="auto">
<li>Most of the profiler panels don't work and display a lot of errors:</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/73419/20422126/b54531d0-ad68-11e6-9b09-bab1206b990a.png"><img src="https://cloud.githubusercontent.com/assets/73419/20422126/b54531d0-ad68-11e6-9b09-bab1206b990a.png" alt="error_3" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/73419/20422129/b640d918-ad68-11e6-8c35-756182d36315.png"><img src="https://cloud.githubusercontent.com/assets/73419/20422129/b640d918-ad68-11e6-8c35-756182d36315.png" alt="error_4" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/73419/20422131/b78e0e94-ad68-11e6-9078-bc68217f3639.png"><img src="https://cloud.githubusercontent.com/assets/73419/20422131/b78e0e94-ad68-11e6-9078-bc68217f3639.png" alt="error_5" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">Now that we have codespeed integration for performance testing coming into place, we should start running a larger number of codes.</p>
<p dir="auto">To start with, we should make all the stuff in <code class="notranslate">perf</code>, <code class="notranslate">perf2</code>, and <code class="notranslate">load</code> run uniformly and produce consistent output. Over time, we can even start including some packages as part of the performance measurement.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/staticfloat/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/staticfloat">@staticfloat</a> What do you think?</p> | <p dir="auto">Crash on Lenovo T420s running win7 64 bit<br>
Running julia-c4b3649af6<br>
Stack dump</p>
<p dir="auto">0x005D0205 (0x00000000 0x00000000 0x0028FDF8 0x6F40B46D) <br>
0x005D01CB (0x035F2180 0x00000000 0x00000000 0x00000000) <br>
0x6F40B46D (0x035F2130 0x00000000 0x00000000 0x75DD8CD5), jl_apply_generic() + 0x5D bytes(s)<br>
0x00401888 (0x00000000 0x00541F44 0x00000003 0x00000004)<br>
0x6F44131F (0x00000000 0x00541F44 0x00401760 0x00548D70), julia_trampoline() + 0x4F bytes(s)<br>
0x0041A7B5 (0x00000000 0x00541F44 0x00542290 0x00000000), jl_clear_input() + 0x16AE5 bytes(s)<br>
0x004013EA (0x7EFDE000 0x0028FFD4 0x77599F42 0x7EFDE000)<br>
0x74D23677 (0x7EFDE000 0xE7662B0E 0x00000000 0x00000000), BaseThreadInitThunk() + 0x12 bytes(s)<br>
0x77599F42 (0x004014D0 0x7EFDE000 0x00000000 0x00000000), RtlInitializeExceptionChain() + 0x63 bytes(s)<br>
0x77599F15 (0x004014D0 0x7EFDE000 0x00000000 0x78746341), RtlInitializeExceptionChain() + 0x36 bytes(s)</p> | 0 |
<pre class="notranslate">What steps will reproduce the problem?
This is a feature request to expose the call depth that testing will log failures at.
Consider this code
<a href="http://play.golang.org/p/MhVJrCk2oh" rel="nofollow">http://play.golang.org/p/MhVJrCk2oh</a>
What is the expected output? What do you see instead?
What we get
=== RUN TestSomething
--- FAIL: TestSomething (0.00 seconds)
tt_test.go:8: an error
FAIL
exit status 1
FAIL tt 0.002s
What i'd like
=== RUN TestSomething
--- FAIL: TestSomething (0.00 seconds)
tt_test.go:16: an error
FAIL
exit status 1
FAIL tt 0.002s
Can a method be added to testing.common to allow the the caller of Fatal/Error/Log{,f}
to specify the number of stackframes to unwind.
Please use labels and text to provide additional information.</pre> | <p dir="auto">by <strong>julians37</strong>:</p>
<pre class="notranslate">What steps will reproduce the problem?
1. ./all.bash
What is the expected output? What do you see instead?
TestAllLog fails
What is your $GOOS? $GOARCH?
linux_amd64
Which revision are you sync'ed to? (hg log -l 1)
changeset: 3975:b51fd2d6c160
tag: tip
user: Kevin Ballard <[email protected]>
date: Tue Nov 10 20:05:24 2009 -0800
summary: Implement new emacs command M-x gofmt
Please provide any additional information below.
log.go's formatHeader seems to have trouble getting the stack frame. The
same test passes no problem on an i686 machine.
make[2]: Leaving directory `/redacted/src/pkg/log'
--- FAIL: log.TestAllLog
log output should match "^/[A-Za-z0-9_/\\-.]+\\.go:[0-9]+: hello
23 world$" is "/???/log_test.go:60: hello 23 world"
log output should match "^/[A-Za-z0-9_/\\-.]+\\.go:[0-9]+: hello
23 world$" is "/???/log_test.go:58: hello 23 world"
log output should match "^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-
9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-
9] /[A-Za-z0-9_/\\-.]+\\.go:[0-9]+: hello 23 world$" is "XXX2009/1
1/11 20:36:28.877982 /???/log_test.go:60: hello 23 world"
log output should match "^XXX[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-
9][0-9] [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\\.[0-9][0-9][0-9][0-9][0-9][0-
9] /[A-Za-z0-9_/\\-.]+\\.go:[0-9]+: hello 23 world$" is "XXX2009/1
1/11 20:36:28.878142 /???/log_test.go:58: hello 23 world"
FAIL
make[1]: *** [test] Error 1
make[1]: Leaving directory `/redacted/src/pkg/log'
make: *** [log.test] Error 2
$ uname -a
Linux heta 2.6.20.5_rsp_3.9 #1 SMP Wed Oct 14 16:24:34 EST 2009
x86_64 x86_64 x86_64 GNU/Linux
$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
$ cat /etc/redhat-release
CentOS release 5.3 (Final)</pre> | 0 |
<h3 dir="auto">Playwright version</h3>
<p dir="auto">1.12.3</p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">MacOS</p>
<h3 dir="auto">What browsers are you seeing the problem on?</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Other information</h3>
<p dir="auto">OS: macOS 12 Beta 3<br>
Node version: v14.17.0</p>
<h3 dir="auto">What happened? / Describe the bug</h3>
<p dir="auto">When I try to run a simple Playwright script on the latest macOS beta, Playwright errors out (error trace down below)</p>
<p dir="auto">I'm not too familiar with Playwright's codebase, but when I manually go into my <code class="notranslate">node_modules/playwright/lib/utils/registry.js</code> and add <code class="notranslate">mac12</code> keys to all browsers, Playwright launches just fine. (I just copied the <code class="notranslate">mac11</code> key values)</p>
<p dir="auto">I understand that macOS 12 is still in beta, so if it is deliberately "unsupported", please feel free to close this issue. Otherwise, I'm more than happy to create a PR to try and fix this if you'd like.</p>
<h3 dir="auto">Code snippet to reproduce your bug</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// This is the default playwright script from https://playwright.dev/docs/intro/#usage
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
// Create pages, interact with UI elements, assert values
await browser.close();
})();"><pre class="notranslate">// This is the default playwright script from https://playwright.dev/docs/intro/<span class="pl-c"><span class="pl-c">#</span>usage</span>
const { chromium } = require(<span class="pl-s"><span class="pl-pds">'</span>playwright<span class="pl-pds">'</span></span>)<span class="pl-k">;</span>
(async () =<span class="pl-k">></span> {
const browser = await <span class="pl-en">chromium.launch</span>();
// Create pages, interact with UI elements, assert values
await <span class="pl-en">browser.close</span>();
})()<span class="pl-k">;</span></pre></div>
<h3 dir="auto">Relevant log output</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="browserType.launch: No executable path is specified. Pass "executablePath" option directly.
(node:59532) UnhandledPromiseRejectionWarning: browserType.launch: No executable path is specified. Pass "executablePath" option directly.
Error
at Object.captureStackTrace (/Users/siddhant/Code/pw/node_modules/playwright/lib/utils/stackTrace.js:51:19)
at Connection.sendMessageToServer (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/connection.js:73:48)
at Proxy.<anonymous> (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/channelOwner.js:64:61)
at /Users/siddhant/Code/pw/node_modules/playwright/lib/client/browserType.js:59:67
at BrowserType._wrapApiCall (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/channelOwner.js:77:34)
at BrowserType.launch (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/browserType.js:50:21)
at /Users/siddhant/Code/pw/index.js:4:34
at Object.<anonymous> (/Users/siddhant/Code/pw/index.js:7:3)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47"><pre class="notranslate">browserType.launch: No executable path is specified. Pass <span class="pl-s"><span class="pl-pds">"</span>executablePath<span class="pl-pds">"</span></span> option directly.
(node:59532) UnhandledPromiseRejectionWarning: browserType.launch: No executable path is specified. Pass <span class="pl-s"><span class="pl-pds">"</span>executablePath<span class="pl-pds">"</span></span> option directly.
Error
at Object.captureStackTrace (/Users/siddhant/Code/pw/node_modules/playwright/lib/utils/stackTrace.js:51:19)
at Connection.sendMessageToServer (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/connection.js:73:48)
at Proxy.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/channelOwner.js:64:61)
at /Users/siddhant/Code/pw/node_modules/playwright/lib/client/browserType.js:59:67
at BrowserType._wrapApiCall (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/channelOwner.js:77:34)
at BrowserType.launch (/Users/siddhant/Code/pw/node_modules/playwright/lib/client/browserType.js:50:21)
at /Users/siddhant/Code/pw/index.js:4:34
at Object.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/Users/siddhant/Code/pw/index.js:7:3)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47</pre></div> | <h3 dir="auto">Playwright version</h3>
<p dir="auto">1.12.3</p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">MacOS</p>
<h3 dir="auto">What browsers are you seeing the problem on?</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Other information</h3>
<p dir="auto">macOS 12.0 Beta</p>
<h3 dir="auto">What happened? / Describe the bug</h3>
<p dir="auto">Not able to install playwright via npm.</p>
<h3 dir="auto">Code snippet to reproduce your bug</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Relevant log output</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npm ERR! Error: Failed to download chromium, caused by
npm ERR! Error: ERROR: Playwright does not support chromium on mac12"><pre class="notranslate">npm ERR<span class="pl-k">!</span> Error: Failed to download chromium, caused by
npm ERR<span class="pl-k">!</span> Error: ERROR: Playwright does not support chromium on mac12</pre></div> | 1 |
<ul dir="auto">
<li>Neo4j version: 3.1.2</li>
<li>Operating system: Ubuntu 16.04</li>
<li>API/Driver: Cypher</li>
</ul>
<p dir="auto">Hey guys<br>
I've been exporting some data from ArangoDB to test out in Neo4J. I've imported a bunch of member nodes, and attribute nodes. Members nodes are connected (relationships) to several Attributes nodes.</p>
<ul dir="auto">
<li>Member nodes only have the one property</li>
<li>Attribute nodes only have the one property</li>
<li>the relationships have no properties</li>
</ul>
<p dir="auto">I executed the following command to add the relationships between the Member and Attribute nodes, but what I didn't realize was that there were some duplicates in the Attributes nodes.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="using periodic commit
load csv from "file:///is.csv" as row with row limit 1
match (m:Member {username:row[0]}), (a:Attribute {name:row[1]})
create (m)-[:IS]->(a)
"><pre class="notranslate"><code class="notranslate">using periodic commit
load csv from "file:///is.csv" as row with row limit 1
match (m:Member {username:row[0]}), (a:Attribute {name:row[1]})
create (m)-[:IS]->(a)
</code></pre></div>
<p dir="auto">When I realized that I had duplicates I decided to delete the Attribute nodes and the relationships, and then try again.</p>
<p dir="auto">Now as I recall, I executed the following query:<br>
<code class="notranslate">match (m)-[r]->(a) delete r,a</code><br>
After a few minutes, it said the query completed, but now I realize it didn't delete everything - it left about <strong>12,000</strong> relationships from what I remember and I don't remember how many Attribute nodes were left over.</p>
<p dir="auto">I tried it again:<br>
Relationships increased to <strong>20714</strong> (increased by at least 8,000)<br>
Duration: 20 minutes</p>
<p dir="auto">I tried to delete just 1 relationship:<br>
<code class="notranslate">match (m)-[r:IS]->(a:Attribute) with r limit 1 delete r</code><br>
First attempt<br>
Relationships increased to <strong>30949</strong> (increased by 9780), Duration: 36 minutes</p>
<p dir="auto">Second attempt<br>
Relationships increased to <strong>41281</strong> (increased by 10787), Duration: over 40 minutes</p>
<p dir="auto">I tried a detach delete:<br>
<code class="notranslate">match (a:Attribute {name:"isSmoker"}) detach delete a</code><br>
The result in the UI says - "Deleted 12 nodes, deleted 1560 relationships, statement completed in 2852664 ms."<br>
The 12 nodes were deleted, but the relationships were actually increased to <strong>49933</strong>.</p>
<p dir="auto">What other info do you need to diagnose?</p> | <h2 dir="auto">Guidelines</h2>
<p dir="auto">Please note that GitHub issues are only meant for bug reports/feature requests.<br>
If you have questions on how to use Neo4j, please ask on <a href="https://stackoverflow.com/questions/tagged/neo4j" rel="nofollow">StackOverflow</a> instead of creating an issue here.</p>
<p dir="auto">Before creating a new issue, please check whether someone else has raised the same issue. You may be able to add context to that issue instead of duplicating the report. However, each issue should also only be focussed on a <em>single</em> problem, so do not describe new problems within an existing thread - these are very hard to track and manage, and your problem may be ignored. Finally, do not append comments to closed issues; if the same problem re-occurs, open a new issue, and include a link to the old one.</p>
<p dir="auto">To help us understand your issue, please specify important details, primarily:</p>
<ul dir="auto">
<li>
<p dir="auto">Neo4j version: 4.4.0</p>
</li>
<li>
<p dir="auto">Operating system: Linux/Ubuntu</p>
</li>
<li>
<p dir="auto">Expected behavior<br>
Users should be able to all all <strong>apoc</strong> procedures when <strong>apoc</strong> is installed</p>
</li>
<li>
<p dir="auto">Actual behavior<br>
No apoc.map.* procedures are found</p>
</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/395419/148832935-5bea023b-283b-49b6-b10f-5661c708c628.png"><img src="https://user-images.githubusercontent.com/395419/148832935-5bea023b-283b-49b6-b10f-5661c708c628.png" alt="Screenshot from 2022-01-10 20-13-43" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">Is there any reason why the <code class="notranslate">axios.defaults.adapter</code> property doesn't reflect the behaviour inside <code class="notranslate">dispatchRequest.js</code>?</p>
<p dir="auto"><a href="https://github.com/mzabriskie/axios/blob/master/lib/core/dispatchRequest.js#L40">https://github.com/mzabriskie/axios/blob/master/lib/core/dispatchRequest.js#L40</a></p>
<p dir="auto">I'm trying to build my own adapter that is capable of falling back to the default adapter under certain circumstances. With the code as it is I'm forced to duplicate the above if-elseif, i.e.:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import axios from 'axios';
if (typeof XMLHttpRequest !== 'undefined') {
// For browsers use XHR adapter
axios.defaults.adapter = require('axios/lib/adapters/xhr');
} else if (typeof process !== 'undefined') {
// For node use HTTP adapter
axios.defaults.adapter = require('axios/lib/adapters/http');
}"><pre class="notranslate"><code class="notranslate">import axios from 'axios';
if (typeof XMLHttpRequest !== 'undefined') {
// For browsers use XHR adapter
axios.defaults.adapter = require('axios/lib/adapters/xhr');
} else if (typeof process !== 'undefined') {
// For node use HTTP adapter
axios.defaults.adapter = require('axios/lib/adapters/http');
}
</code></pre></div> | <p dir="auto">I don't know why but with the same api, sometime axios's response.data is string instead of object. See the below figure.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7688070/44013145-f9ba29a6-9eed-11e8-8d02-c41c5f0169e9.png"><img src="https://user-images.githubusercontent.com/7688070/44013145-f9ba29a6-9eed-11e8-8d02-c41c5f0169e9.png" alt="image" style="max-width: 100%;"></a></p>
<h4 dir="auto">Context</h4>
<ul dir="auto">
<li>axios version: 0.18.0</li>
<li>Environment: React native Expo SDK 29, window 10</li>
</ul> | 0 |
<p dir="auto">All Angular beta.1 - beta.6 applications crash in <strong>Internet Explorer 11</strong></p>
<p dir="auto">Last working version was beta.0.</p>
<p dir="auto">Looks like they die in <code class="notranslate">TemplateCompiler</code>.</p>
<p dir="auto">Messages vary:</p>
<ul dir="auto">
<li><code class="notranslate">SyntaxError: The use of a keyword for an identifier is invalid</code></li>
<li><code class="notranslate">SyntaxError: Expected ';'</code></li>
</ul>
<p dir="auto">StackTrace seems always the same:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SyntaxError: ...
at evalExpression (https://code.angularjs.org/2.0.0-beta.6/angular2.dev.js:451:5)
at TemplateCompiler.prototype._createViewFactoryRuntime (https://code.angularjs.org/2.0.0-beta.6/angular2.dev.js:24364:9)
..."><pre class="notranslate"><code class="notranslate">SyntaxError: ...
at evalExpression (https://code.angularjs.org/2.0.0-beta.6/angular2.dev.js:451:5)
at TemplateCompiler.prototype._createViewFactoryRuntime (https://code.angularjs.org/2.0.0-beta.6/angular2.dev.js:24364:9)
...
</code></pre></div>
<p dir="auto">Try <strong>_any of the sample applications</strong>_ in the documentation including QuickStart.<br>
All of them are shimmed for IE11</p>
<p dir="auto">Plunkers crash too. Try the <a href="https://angular.io/resources/live-examples/quickstart/ts/plnkr.html" rel="nofollow">QuickStart</a> or <a href="https://angular.io/resources/live-examples/template-syntax/ts/plnkr.html" rel="nofollow">Template Syntax</a> plunkers</p>
<p dir="auto">Discovered that beta.0 was the last working version by rolling the plunker index.html scripts back, version by version.</p>
<p dir="auto">Tested with IE 11.103.10586.0 (update 11.0.28) in Windows 10.</p> | <p dir="auto">I am unable to render AngularJS 2.0 Beta 1 in Internet Explore.</p>
<p dir="auto">I have stripped down a page to as small as possible and can reproduce the issue where all I have as an empty app component that references an html page.</p>
<p dir="auto">Downgrading to Angular JS 2.0 Beta 0 resolves the issue.</p>
<p dir="auto">Below is the stack trace of the error:</p>
<p dir="auto">HTML1300: Navigation occurred.<br>
File: localhost:8000<br>
EXCEPTION: SyntaxError: The use of a keyword for an identifier is invalid<br>
EXCEPTION: SyntaxError: The use of a keyword for an identifier is invalid<br>
STACKTRACE:<br>
SyntaxError: The use of a keyword for an identifier is invalid<br>
at evalExpression (<a href="http://localhost:8000/lib/js/angular2.dev.js:452:5" rel="nofollow">http://localhost:8000/lib/js/angular2.dev.js:452:5</a>)<br>
at TemplateCompiler.prototype._createViewFactoryRuntime (<a href="http://localhost:8000/lib/js/angular2.dev.js:23969:9" rel="nofollow">http://localhost:8000/lib/js/angular2.dev.js:23969:9</a>)<br>
at Anonymous function (<a href="http://localhost:8000/lib/js/angular2.dev.js:23924:13" rel="nofollow">http://localhost:8000/lib/js/angular2.dev.js:23924:13</a>)<br>
at run (<a href="http://localhost:8000/lib/js/angular2-polyfills.js:138:7" rel="nofollow">http://localhost:8000/lib/js/angular2-polyfills.js:138:7</a>)<br>
at Anonymous function (<a href="http://localhost:8000/lib/js/angular2.dev.js:13247:15" rel="nofollow">http://localhost:8000/lib/js/angular2.dev.js:13247:15</a>)<br>
at zoneBoundFn (<a href="http://localhost:8000/lib/js/angular2-polyfills.js:111:7" rel="nofollow">http://localhost:8000/lib/js/angular2-polyfills.js:111:7</a>)<br>
at lib$es6$promise$$internal$$tryCatch (<a href="http://localhost:8000/lib/js/angular2-polyfills.js:1511:9" rel="nofollow">http://localhost:8000/lib/js/angular2-polyfills.js:1511:9</a>)<br>
at lib$es6$promise$$internal$$invokeCallback (<a href="http://localhost:8000/lib/js/angular2-polyfills.js:1523:9" rel="nofollow">http://localhost:8000/lib/js/angular2-polyfills.js:1523:9</a>)<br>
at Anonymous function (<a href="http://localhost:8000/lib/js/angular2-polyfills.js:2071:13" rel="nofollow">http://localhost:8000/lib/js/angular2-polyfills.js:2071:13</a>)<br>
at Anonymous function (<a href="http://localhost:8000/lib/js/angular2-polyfills.js:243:5" rel="nofollow">http://localhost:8000/lib/js/angular2-polyfills.js:243:5</a>)</p>
<p dir="auto">-----async gap-----<br>
Error<br>
at _getStacktraceWithCaughtError (<a href="http://localhost:8000" rel="nofollow">http://localhost:8000</a></p>
<p dir="auto">SyntaxError: The use of a keyword for an identifier is invalid<br>
{<br>
[functions]: ,<br>
<strong>proto</strong>: { },<br>
description: "The use of a keyword for an identifier is invalid",<br>
message: "The use of a keyword for an identifier is invalid",<br>
name: "SyntaxError",<br>
number: -2146827240,<br>
stack: "SyntaxError: The use of a keyword for an identifier is invalid<br>
at evalExpression (<a href="http://localhost:8000/lib/js/angular2.dev.js:452:5" rel="nofollow">http://localhost:8000/lib/js/angular2.dev.js:452:5</a>)<br>
at TemplateCompiler.prototype._createViewFactoryRuntime (<a href="http://localhost:8000/lib/js/angular2.dev.js:23969:9" rel="nofollow">http://localhost:8000/lib/js/angular2.dev.js:23969:9</a>)<br>
at Anonymous function (<a href="http://localhost:8000/lib/js/angular2.dev.js:23924:13" rel="nofollow">http://localhost:8000/lib/js/angular2.dev.js:23924:13</a>)<br>
at run (<a href="http://localhost:8000/lib/js/angular2-polyfills.js:138:7" rel="nofollow">http://localhost:8000/lib/js/angular2-polyfills.js:138:7</a>)<br>
at Anonymous function (<a href="http://localhost:8000/lib/js/angular2.dev.js:13247:15" rel="nofollow">http://localhost:8000/lib/js/angular2.dev.js:13247:15</a>)<br>
at zoneBoundFn (<a href="http://localhost:8000/lib/js/angular2-polyfills.js:111:7" rel="nofollow">http://localhost:8000/lib/js/angular2-polyfills.js:111:7</a>)<br>
at lib$es6$promise$$internal$$tryCatch (<a href="http://localhost:8000/lib/js/angular2-polyfills.js:1511:9" rel="nofollow">http://localhost:8000/lib/js/angular2-polyfills.js:1511:9</a>)<br>
at lib$es6$promise$$internal$$invokeCallback (<a href="http://localhost:8000/lib/js/angular2-polyfills.js:1523:9" rel="nofollow">http://localhost:8000/lib/js/angular2-polyfills.js:1523:9</a>)<br>
at Anonymous function (<a href="http://localhost:8000/lib/js/angular2-polyfills.js:2071:13" rel="nofollow">http://localhost:8000/lib/js/angular2-polyfills.js:2071:13</a>)<br>
at Anonymous function (<a href="http://localhost:8000/lib/js/angular2-polyfills.js:243:5" rel="nofollow">http://localhost:8000/lib/js/angular2-polyfills.js:243:5</a>)"<br>
}</p> | 1 |
<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto"><code class="notranslate">flutter create --template=plugin -i swift health_stats</code><br>
yields</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Creating project health_stats...
health_stats/LICENSE (created)
health_stats/ios/health_stats.podspec (created)
health_stats/ios/.gitignore (created)
health_stats/ios/Assets/.gitkeep (created)
health_stats/health_stats.iml (created)
health_stats/.gitignore (created)
health_stats/android/settings.gradle (created)
health_stats/android/.gitignore (created)
health_stats/android/gradle.properties (created)
health_stats/android/src/main/AndroidManifest.xml (created)
health_stats/pubspec.yaml (created)
health_stats/README.md (created)
health_stats/ios/Classes/HealthStatsPlugin.m (created)
health_stats/ios/Classes/SwiftHealthStatsPlugin.swift (created)
health_stats/ios/Classes/HealthStatsPlugin.h (created)
health_stats/lib/health_stats.dart (created)
health_stats/android/build.gradle (created)
health_stats/android/src/main/java/com/example/healthstats/HealthStatsPlugin.java (created)
health_stats/health_stats_android.iml (created)
health_stats/.idea/runConfigurations/example_lib_main_dart.xml (created)
health_stats/.idea/libraries/Flutter_for_Android.xml (created)
health_stats/.idea/libraries/Dart_SDK.xml (created)
health_stats/.idea/modules.xml (created)
health_stats/.idea/workspace.xml (created)
health_stats/CHANGELOG.md (created)
Running "flutter packages get" in health_stats... 2,1s
health_stats/example/ios/Runner.xcworkspace/contents.xcworkspacedata (created)
health_stats/example/ios/Runner/Info.plist (created)
health_stats/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md (created)
health_stats/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json (created)
health_stats/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Base.lproj/LaunchScreen.storyboard (created)
health_stats/example/ios/Runner/Base.lproj/Main.storyboard (created)
health_stats/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata (created)
health_stats/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (created)
health_stats/example/ios/Flutter/Debug.xcconfig (created)
health_stats/example/ios/Flutter/Release.xcconfig (created)
health_stats/example/ios/Flutter/AppFrameworkInfo.plist (created)
health_stats/example/ios/.gitignore (created)
health_stats/example/test/widget_test.dart (created)
health_stats/example/health_stats_example.iml (created)
health_stats/example/.gitignore (created)
health_stats/example/.metadata (created)
health_stats/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png (created)
health_stats/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png (created)
health_stats/example/android/app/src/main/res/drawable/launch_background.xml (created)
health_stats/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (created)
health_stats/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (created)
health_stats/example/android/app/src/main/res/values/styles.xml (created)
health_stats/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (created)
health_stats/example/android/app/src/main/AndroidManifest.xml (created)
health_stats/example/android/gradle/wrapper/gradle-wrapper.properties (created)
health_stats/example/android/.gitignore (created)
health_stats/example/android/gradle.properties (created)
health_stats/example/android/settings.gradle (created)
health_stats/example/pubspec.yaml (created)
health_stats/example/README.md (created)
health_stats/example/ios/Runner/Runner-Bridging-Header.h (created)
health_stats/example/ios/Runner/AppDelegate.swift (created)
health_stats/example/ios/Runner.xcodeproj/project.pbxproj (created)
health_stats/example/lib/main.dart (created)
health_stats/example/android/app/build.gradle (created)
health_stats/example/android/app/src/main/java/com/example/healthstatsexample/MainActivity.java (created)
health_stats/example/android/build.gradle (created)
health_stats/example/health_stats_example_android.iml (created)
health_stats/example/android.iml (created)
health_stats/example/.idea/runConfigurations/main_dart.xml (created)
health_stats/example/.idea/libraries/Flutter_for_Android.xml (created)
health_stats/example/.idea/libraries/Dart_SDK.xml (created)
health_stats/example/.idea/modules.xml (created)
health_stats/example/.idea/workspace.xml (created)
Wrote 90 files.
Running "flutter packages get" in example... 8,3s
[✓] Flutter is fully installed. (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D102, locale nl-NL)
[✓] Android toolchain - develop for Android devices is fully installed. (Android SDK 26.0.3)
[✓] iOS toolchain - develop for iOS devices is fully installed. (Xcode 9.3)
[✓] Android Studio is fully installed. (version 3.0)
[✓] VS Code is fully installed. (version 1.21.1)
[✓] Connected devices is fully installed. (1 available)
All done! In order to run your application, type:
$ cd health_stats/example
$ flutter run
Your main program file is lib/main.dart in the health_stats/example directory.
Your plugin code is in lib/health_stats.dart in the health_stats directory.
Host platform code is in the android/ and ios/ directories under health_stats.
To edit platform code in an IDE see https://flutter.io/platform-plugins/#edit-code."><pre class="notranslate"><code class="notranslate">Creating project health_stats...
health_stats/LICENSE (created)
health_stats/ios/health_stats.podspec (created)
health_stats/ios/.gitignore (created)
health_stats/ios/Assets/.gitkeep (created)
health_stats/health_stats.iml (created)
health_stats/.gitignore (created)
health_stats/android/settings.gradle (created)
health_stats/android/.gitignore (created)
health_stats/android/gradle.properties (created)
health_stats/android/src/main/AndroidManifest.xml (created)
health_stats/pubspec.yaml (created)
health_stats/README.md (created)
health_stats/ios/Classes/HealthStatsPlugin.m (created)
health_stats/ios/Classes/SwiftHealthStatsPlugin.swift (created)
health_stats/ios/Classes/HealthStatsPlugin.h (created)
health_stats/lib/health_stats.dart (created)
health_stats/android/build.gradle (created)
health_stats/android/src/main/java/com/example/healthstats/HealthStatsPlugin.java (created)
health_stats/health_stats_android.iml (created)
health_stats/.idea/runConfigurations/example_lib_main_dart.xml (created)
health_stats/.idea/libraries/Flutter_for_Android.xml (created)
health_stats/.idea/libraries/Dart_SDK.xml (created)
health_stats/.idea/modules.xml (created)
health_stats/.idea/workspace.xml (created)
health_stats/CHANGELOG.md (created)
Running "flutter packages get" in health_stats... 2,1s
health_stats/example/ios/Runner.xcworkspace/contents.xcworkspacedata (created)
health_stats/example/ios/Runner/Info.plist (created)
health_stats/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md (created)
health_stats/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json (created)
health_stats/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/[email protected] (created)
health_stats/example/ios/Runner/Base.lproj/LaunchScreen.storyboard (created)
health_stats/example/ios/Runner/Base.lproj/Main.storyboard (created)
health_stats/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata (created)
health_stats/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme (created)
health_stats/example/ios/Flutter/Debug.xcconfig (created)
health_stats/example/ios/Flutter/Release.xcconfig (created)
health_stats/example/ios/Flutter/AppFrameworkInfo.plist (created)
health_stats/example/ios/.gitignore (created)
health_stats/example/test/widget_test.dart (created)
health_stats/example/health_stats_example.iml (created)
health_stats/example/.gitignore (created)
health_stats/example/.metadata (created)
health_stats/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png (created)
health_stats/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png (created)
health_stats/example/android/app/src/main/res/drawable/launch_background.xml (created)
health_stats/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png (created)
health_stats/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (created)
health_stats/example/android/app/src/main/res/values/styles.xml (created)
health_stats/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (created)
health_stats/example/android/app/src/main/AndroidManifest.xml (created)
health_stats/example/android/gradle/wrapper/gradle-wrapper.properties (created)
health_stats/example/android/.gitignore (created)
health_stats/example/android/gradle.properties (created)
health_stats/example/android/settings.gradle (created)
health_stats/example/pubspec.yaml (created)
health_stats/example/README.md (created)
health_stats/example/ios/Runner/Runner-Bridging-Header.h (created)
health_stats/example/ios/Runner/AppDelegate.swift (created)
health_stats/example/ios/Runner.xcodeproj/project.pbxproj (created)
health_stats/example/lib/main.dart (created)
health_stats/example/android/app/build.gradle (created)
health_stats/example/android/app/src/main/java/com/example/healthstatsexample/MainActivity.java (created)
health_stats/example/android/build.gradle (created)
health_stats/example/health_stats_example_android.iml (created)
health_stats/example/android.iml (created)
health_stats/example/.idea/runConfigurations/main_dart.xml (created)
health_stats/example/.idea/libraries/Flutter_for_Android.xml (created)
health_stats/example/.idea/libraries/Dart_SDK.xml (created)
health_stats/example/.idea/modules.xml (created)
health_stats/example/.idea/workspace.xml (created)
Wrote 90 files.
Running "flutter packages get" in example... 8,3s
[✓] Flutter is fully installed. (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D102, locale nl-NL)
[✓] Android toolchain - develop for Android devices is fully installed. (Android SDK 26.0.3)
[✓] iOS toolchain - develop for iOS devices is fully installed. (Xcode 9.3)
[✓] Android Studio is fully installed. (version 3.0)
[✓] VS Code is fully installed. (version 1.21.1)
[✓] Connected devices is fully installed. (1 available)
All done! In order to run your application, type:
$ cd health_stats/example
$ flutter run
Your main program file is lib/main.dart in the health_stats/example directory.
Your plugin code is in lib/health_stats.dart in the health_stats directory.
Host platform code is in the android/ and ios/ directories under health_stats.
To edit platform code in an IDE see https://flutter.io/platform-plugins/#edit-code.
</code></pre></div>
<p dir="auto">then<br>
<code class="notranslate">cd health_stats/example</code></p>
<h2 dir="auto">Logs</h2>
<p dir="auto"><code class="notranslate">flutter run</code><br>
yields</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Launching lib/main.dart on iPhone van Jeroen Meijer in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: [REMOVED]
Running pod install... 0,9s
Running Xcode clean... 1,0s
Starting Xcode build...
Xcode build done 1,2s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET health_stats OF PROJECT Pods WITH CONFIGURATION Debug ===
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/health_stats-umbrella.h"
^
/Users/jeroen/Projects/health_stats/example/ios/Pods/Target Support Files/health_stats/health_stats-umbrella.h:13:9: error: include of non-modular header inside framework module 'health_stats': '/Users/jeroen/Projects/health_stats/ios/Classes/HealthStatsPlugin.h'
#import "HealthStatsPlugin.h"
^
<unknown>:0: error: could not build Objective-C module 'health_stats'
Could not build the precompiled application for the device.
Error launching application on iPhone van Jeroen Meijer."><pre class="notranslate"><code class="notranslate">Launching lib/main.dart on iPhone van Jeroen Meijer in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: [REMOVED]
Running pod install... 0,9s
Running Xcode clean... 1,0s
Starting Xcode build...
Xcode build done 1,2s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
=== BUILD TARGET health_stats OF PROJECT Pods WITH CONFIGURATION Debug ===
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "Headers/health_stats-umbrella.h"
^
/Users/jeroen/Projects/health_stats/example/ios/Pods/Target Support Files/health_stats/health_stats-umbrella.h:13:9: error: include of non-modular header inside framework module 'health_stats': '/Users/jeroen/Projects/health_stats/ios/Classes/HealthStatsPlugin.h'
#import "HealthStatsPlugin.h"
^
<unknown>:0: error: could not build Objective-C module 'health_stats'
Could not build the precompiled application for the device.
Error launching application on iPhone van Jeroen Meijer.
</code></pre></div>
<p dir="auto"><code class="notranslate">flutter analyze</code><br>
yields</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing /Users/jeroen/Projects/health_stats/example...
No issues found!
Ran in 5.1s"><pre class="notranslate"><code class="notranslate">Analyzing /Users/jeroen/Projects/health_stats/example...
No issues found!
Ran in 5.1s
</code></pre></div>
<h2 dir="auto">Flutter Doctor</h2>
<p dir="auto"><code class="notranslate">flutter doctor -v</code><br>
yields</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D102, locale nl-NL)
• Flutter version 0.1.5 at /Developer/flutter
• Framework revision 3ea4d06340 (4 weeks ago), 2018-02-22 11:12:39 -0800
• Engine revision ead227f118
• Dart version 2.0.0-dev.28.0.flutter-0b4f01f759
[✓] Android toolchain - develop for Android devices (Android SDK 26.0.3)
• Android SDK at /Users/jeroen/Library/Developer/Xamarin/android-sdk-macosx
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 26.0.3
• ANDROID_HOME = /Users/jeroen/Library/Developer/Xamarin/android-sdk-macosx
• 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-915-b08)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
• Xcode at /Applications/Xcode-beta.app/Contents/Developer
• Xcode 9.3, Build version 9Q127n
• ios-deploy 1.9.2
• CocoaPods version 1.4.0
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] VS Code (version 1.21.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Dart Code extension version 2.10.0
[✓] Connected devices (1 available)
• iPhone van Jeroen Meijer • [REMOVED] • ios • iOS 11.3"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D102, locale nl-NL)
• Flutter version 0.1.5 at /Developer/flutter
• Framework revision 3ea4d06340 (4 weeks ago), 2018-02-22 11:12:39 -0800
• Engine revision ead227f118
• Dart version 2.0.0-dev.28.0.flutter-0b4f01f759
[✓] Android toolchain - develop for Android devices (Android SDK 26.0.3)
• Android SDK at /Users/jeroen/Library/Developer/Xamarin/android-sdk-macosx
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 26.0.3
• ANDROID_HOME = /Users/jeroen/Library/Developer/Xamarin/android-sdk-macosx
• 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-915-b08)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.3)
• Xcode at /Applications/Xcode-beta.app/Contents/Developer
• Xcode 9.3, Build version 9Q127n
• ios-deploy 1.9.2
• CocoaPods version 1.4.0
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] VS Code (version 1.21.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Dart Code extension version 2.10.0
[✓] Connected devices (1 available)
• iPhone van Jeroen Meijer • [REMOVED] • ios • iOS 11.3
</code></pre></div>
<h2 dir="auto">EDIT</h2>
<p dir="auto">The same now also happens when creating a plugin omitting the <code class="notranslate">-i swift</code>. Generating any project with <code class="notranslate">--template=plugin</code> yields the same result.</p> | <h2 dir="auto">Steps to Reproduce</h2>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="set -x
mkdir -p Made_Podfiles_use_symlinks_to_local_pods_NOT_WORKING/
pushd Made_Podfiles_use_symlinks_to_local_pods_NOT_WORKING/
flutter create -t plugin -i swift --org com.failed failed > /dev/null
pushd failed/example
flutter build ios --debug
popd
flutter create -t plugin -i swift --org com.success success > /dev/null
pushd success/example
wget -q https://raw.githubusercontent.com/mravn-google/flutter/3723ec0383f79420486bb4ee5acf06ebd190b5cf/packages/flutter_tools/templates/cocoapods/Podfile-swift
cp Podfile-swift ios/Podfile
flutter build ios --debug
popd
popd"><pre class="notranslate"><span class="pl-c1">set</span> -x
mkdir -p Made_Podfiles_use_symlinks_to_local_pods_NOT_WORKING/
<span class="pl-c1">pushd</span> Made_Podfiles_use_symlinks_to_local_pods_NOT_WORKING/
flutter create -t plugin -i swift --org com.failed failed <span class="pl-k">></span> /dev/null
<span class="pl-c1">pushd</span> failed/example
flutter build ios --debug
<span class="pl-c1">popd</span>
flutter create -t plugin -i swift --org com.success success <span class="pl-k">></span> /dev/null
<span class="pl-c1">pushd</span> success/example
wget -q https://raw.githubusercontent.com/mravn-google/flutter/3723ec0383f79420486bb4ee5acf06ebd190b5cf/packages/flutter_tools/templates/cocoapods/Podfile-swift
cp Podfile-swift ios/Podfile
flutter build ios --debug
<span class="pl-c1">popd</span>
<span class="pl-c1">popd</span></pre></div>
<h2 dir="auto">Flutter Doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜ ~ flutter doctor -v
[✓] Flutter (Channel master, v0.1.8-pre.43, on Mac OS X 10.13.3 17D102, locale en-KR)
• Flutter version 0.1.8-pre.43 at /Users/?????/flutter
• Framework revision fe334e1652 (3 hours ago), 2018-03-02 17:54:51 -0800
• Engine revision 97b22348c8
• Dart version 2.0.0-dev.32.0.flutter-ee15c8eb68
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/?????/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /Users/?????/Library/Android/sdk
• 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-915-b08)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.3.1
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] IntelliJ IDEA Community Edition (version 2017.3.4)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 22.1.2
• Dart plugin version 173.4548.30
[✓] VS Code
• VS Code at /Applications/Visual Studio Code.app/Contents
• Dart Code extension version 2.8.0
[✓] Connected devices (1 available)
• ????????????????????????????????????? • ios • iOS 11.2.6
• No issues found!"><pre class="notranslate"><code class="notranslate">➜ ~ flutter doctor -v
[✓] Flutter (Channel master, v0.1.8-pre.43, on Mac OS X 10.13.3 17D102, locale en-KR)
• Flutter version 0.1.8-pre.43 at /Users/?????/flutter
• Framework revision fe334e1652 (3 hours ago), 2018-03-02 17:54:51 -0800
• Engine revision 97b22348c8
• Dart version 2.0.0-dev.32.0.flutter-ee15c8eb68
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/?????/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /Users/?????/Library/Android/sdk
• 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-915-b08)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.3.1
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] IntelliJ IDEA Community Edition (version 2017.3.4)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 22.1.2
• Dart plugin version 173.4548.30
[✓] VS Code
• VS Code at /Applications/Visual Studio Code.app/Contents
• Dart Code extension version 2.8.0
[✓] Connected devices (1 available)
• ????????????????????????????????????? • ios • iOS 11.2.6
• No issues found!
</code></pre></div> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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">To use makeSelectable to make the List selectable</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">No such a function is available</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Try using this code</li>
</ol>
<p dir="auto">let SelectableList = makeSelectable(List);<br>
/**</p>
<ul dir="auto">
<li>
<p dir="auto">Wraps the selection list event and keeps it state</p>
</li>
<li></li>
<li>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/param/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/param">@param</a> {any} ComposedComponent</p>
</li>
<li>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/returns/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/returns">@returns</a><br>
*/<br>
function wrapState(ComposedComponent) {<br>
return class SelectableList extends React.Component {</p>
<p dir="auto">render() {<br>
return (<br>
<br>
{this.props.children}<br>
<br>
);<br>
}<br>
};<br>
}</p>
</li>
</ul>
<h2 dir="auto">Context</h2>
<p dir="auto">React</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>v1-beta</td>
</tr>
<tr>
<td>React</td>
<td>15.3</td>
</tr>
<tr>
<td>browser</td>
<td>chrome</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | <h3 dir="auto">Problem description</h3>
<p dir="auto">SelectableList is not available List in v1 beta branch</p>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI:</li>
<li>React:</li>
</ul>
<p dir="auto">in master branch it is availablae in "material-ui/src/List/makeSelectable.js"</p> | 1 |
<p dir="auto">Is it just me or does there appear to be serious inconsistency between the size breaks for cols and hidden/visible?</p>
<p dir="auto">Shouldn't col-sm- really be col-md- (and col- is essentially synonymous with col-sm-)?</p> | <p dir="auto">With Bootstrap 3 RC1, the <code class="notranslate">sm</code> keyword is used in an inconsistent manner. When referring to column sizes, it means "tablet sized." When referring to hide/show responsive classes it means "phone sized." My recommendation would be to rename all of the <code class="notranslate">col-sm-X</code> classes to be <code class="notranslate">col-md-X</code> classes.</p>
<p dir="auto">This would solve the inconsistency while still advocating "mobile-first" and leaving the mobile columns un-prefixed.</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>.):<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.):<br>
kubectl,defaultconfig</p>
<h2 dir="auto">Merge that possibly introduced the error: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="176768823" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32613" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/32613/hovercard" href="https://github.com/kubernetes/kubernetes/pull/32613">#32613</a></h2>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one):<br>
Bug report</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>): v1.4.0-beta.8<br>
<code class="notranslate">Client Version: version.Info{Major:"1", Minor:"4+", GitVersion:"v1.4.0-beta.8", GitCommit:"3040f87c570a772ce94349b379f41f329494a4f7", GitTreeState:"clean", BuildDate:"2016-09-19T07:54:34Z", GoVersion:"go1.7", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"4+", GitVersion:"v1.4.0-beta.8", GitCommit:"3040f87c570a772ce94349b379f41f329494a4f7", GitTreeState:"clean", BuildDate:"2016-09-19T07:54:34Z", GoVersion:"go1.7", Compiler:"gc", Platform:"linux/amd64"}</code></p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: virsh</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): Debian GNU/Linux 8 (jessie)</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux 299e561bce9845aeb537a4a1a50a4562.dev.local-planet 3.10.0-327.el7.x86_64 <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 Thu Oct 29 17:29:29 EDT 2015 x86_64 GNU/Linux</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
kubectl w/o cluster configuration does not connect to apiserver with the following error: <code class="notranslate">The connection to the server localhost:8080 was refused - did you specify the right host or port?</code></p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
kubectl w/o parameters used to connect using in-cluster approach, using a token and <code class="notranslate">KUBERNETES_SERVICE_HOST</code> / <code class="notranslate">KUBERNETES_SERVICE_PORT</code> pair</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br>
Install a cluster with <code class="notranslate">k8s 1.4-beta.8</code>, run a pod with <code class="notranslate">kubectl</code> and issue any command</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:<br>
I think the problem is in this line:<br>
<a href="https://github.com/kubernetes/kubernetes/pull/32613/files#diff-47197a425491d7fcfa69115333533db9R116">https://github.com/kubernetes/kubernetes/pull/32613/files#diff-47197a425491d7fcfa69115333533db9R116</a></p>
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if IsConfigurationInvalid(defErr) && !IsEmptyConfig(err) {"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-en">IsConfigurationInvalid</span>(<span class="pl-s1">defErr</span>) <span class="pl-c1">&&</span> <span class="pl-c1">!</span><span class="pl-en">IsEmptyConfig</span>(<span class="pl-s1">err</span>) {</pre></div>
<p dir="auto">where <code class="notranslate">err</code> (apparently) is always <code class="notranslate">nil</code>, and (I guess) should be the following instead:</p>
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if IsConfigurationInvalid(defErr) && !IsEmptyConfig(defErr) {"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-en">IsConfigurationInvalid</span>(<span class="pl-s1">defErr</span>) <span class="pl-c1">&&</span> <span class="pl-c1">!</span><span class="pl-en">IsEmptyConfig</span>(<span class="pl-s1">defErr</span>) {</pre></div> | <p dir="auto">pod spec validation rejects env variable keys that contain dots (eg "FOO.BAR"), but "FOO.BAR" is a valid env variable name for some (though not all) shell environments, so this validation rule is overly strict.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/smarterclayton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/smarterclayton">@smarterclayton</a></p> | 0 |
<h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">Fancy Zones: Zone Layouts should automatically resize based on changes in screen resolution. Frequently I switch between monitors, multimonitor or present. When I do this, often my screen resolution must change. It would be great if FZ was smart enough to resize based on resolution changes.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">Track FZ Zones position and percent distance from the x/y screen edges in the current resolution and transform that to a relative position and size in the new resolution scheme. Allow for user to reposition if the transform is slightly off. Then, remember the settings and monitors for feature reconnect...Or attempt to transform each time.</p> | <p dir="auto">Dimensions for custom zones do not auto-scale when resolution changes.<br>
For example, when I plug the computer to a dock station with a monitor, the zones are not adjusted to the new resolution and app windows end up placed in the middle of the screen and not as desired.</p>
<p dir="auto">Setting up a second custom zone layout for a different resolution is dumb and inconvenient.</p>
<p dir="auto">Thank you.</p> | 1 |
<p dir="auto">Calculating <code class="notranslate">std</code> on <code class="notranslate">float32</code> arrays using <code class="notranslate">axis</code> can give inaccurate results. See the example below.</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
n = 1_000_000
# Create a float32 array with two columns with values 100 and -100
# x.shape = (n, 2)
x = np.array([100.0, -100.0])[None, :].repeat(repeats=n, axis=0).astype(np.float32)
# calculating std for the column separately gives 0 as expected
print(x[:, 0].std()) # -> 0.
print(x[:, 1].std()) # -> 0.
# calculating std on both columns in one go using axis=0 gives
print(x.std(axis=0)) # -> [1.3201232, 1.3201232]"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">n</span> <span class="pl-c1">=</span> <span class="pl-c1">1_000_000</span>
<span class="pl-c"># Create a float32 array with two columns with values 100 and -100</span>
<span class="pl-c"># x.shape = (n, 2)</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">100.0</span>, <span class="pl-c1">-</span><span class="pl-c1">100.0</span>])[<span class="pl-c1">None</span>, :].<span class="pl-en">repeat</span>(<span class="pl-s1">repeats</span><span class="pl-c1">=</span><span class="pl-s1">n</span>, <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>).<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">float32</span>)
<span class="pl-c"># calculating std for the column separately gives 0 as expected</span>
<span class="pl-en">print</span>(<span class="pl-s1">x</span>[:, <span class="pl-c1">0</span>].<span class="pl-en">std</span>()) <span class="pl-c"># -> 0.</span>
<span class="pl-en">print</span>(<span class="pl-s1">x</span>[:, <span class="pl-c1">1</span>].<span class="pl-en">std</span>()) <span class="pl-c"># -> 0.</span>
<span class="pl-c"># calculating std on both columns in one go using axis=0 gives</span>
<span class="pl-en">print</span>(<span class="pl-s1">x</span>.<span class="pl-en">std</span>(<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)) <span class="pl-c"># -> [1.3201232, 1.3201232]</span></pre></div>
<p dir="auto">The magnitude of the error becomes larger with larger <code class="notranslate">n</code> and larger values for the columns.<br>
It seems like this loss of accuracy should be avoidable.</p>
<h3 dir="auto">Numpy/Python version information:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> import sys, numpy; print(numpy.__version__, sys.version)
1.17.2 3.7.4 (default, Sep 7 2019, 18:27:02)
[Clang 10.0.1 (clang-1001.0.46.4)]"><pre class="notranslate"><code class="notranslate">>>> import sys, numpy; print(numpy.__version__, sys.version)
1.17.2 3.7.4 (default, Sep 7 2019, 18:27:02)
[Clang 10.0.1 (clang-1001.0.46.4)]
</code></pre></div> | <p dir="auto">A mean over an array containing only ones should obviously return only ones. However,</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> import numpy as np
>>> test_array = np.ones((10000000, 4, 15), dtype = np.float32)
>>> print(test_array.mean(axis=(0,1)))
[ 0.4194304 0.4194304 0.4194304 0.4194304 0.4194304 0.4194304
0.4194304 0.4194304 0.4194304 0.4194304 0.4194304 0.4194304
0.4194304 0.4194304 0.4194304]"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></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">>></span><span class="pl-c1">></span> <span class="pl-s1">test_array</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">ones</span>((<span class="pl-c1">10000000</span>, <span class="pl-c1">4</span>, <span class="pl-c1">15</span>), <span class="pl-s1">dtype</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">float32</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-s1">test_array</span>.<span class="pl-en">mean</span>(<span class="pl-s1">axis</span><span class="pl-c1">=</span>(<span class="pl-c1">0</span>,<span class="pl-c1">1</span>)))
[ <span class="pl-c1">0.4194304</span> <span class="pl-c1">0.4194304</span> <span class="pl-c1">0.4194304</span> <span class="pl-c1">0.4194304</span> <span class="pl-c1">0.4194304</span> <span class="pl-c1">0.4194304</span>
<span class="pl-c1">0.4194304</span> <span class="pl-c1">0.4194304</span> <span class="pl-c1">0.4194304</span> <span class="pl-c1">0.4194304</span> <span class="pl-c1">0.4194304</span> <span class="pl-c1">0.4194304</span>
<span class="pl-c1">0.4194304</span> <span class="pl-c1">0.4194304</span> <span class="pl-c1">0.4194304</span>]</pre></div>
<p dir="auto">This returns the correct result:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> print(test_array.mean(axis=0).mean(axis=0))
[ 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.]"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-s1">test_array</span>.<span class="pl-en">mean</span>(<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>).<span class="pl-en">mean</span>(<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">0</span>))
[ <span class="pl-c1">1.</span> <span class="pl-c1">1.</span> <span class="pl-c1">1.</span> <span class="pl-c1">1.</span> <span class="pl-c1">1.</span> <span class="pl-c1">1.</span> <span class="pl-c1">1.</span> <span class="pl-c1">1.</span> <span class="pl-c1">1.</span> <span class="pl-c1">1.</span> <span class="pl-c1">1.</span> <span class="pl-c1">1.</span> <span class="pl-c1">1.</span> <span class="pl-c1">1.</span> <span class="pl-c1">1.</span>]</pre></div>
<p dir="auto">I guess the reason for this problem is some overflow, because it does not appear when I use a test array with dtype = np.float64. I would expect numpy to either give the correct result or to at least give a warning whenever such an overflow happens.</p>
<p dir="auto">surprisingly mean along all axis gives the correct result again:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> print(test_array.mean(axis=(0,1,2)))
1.0"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-s1">test_array</span>.<span class="pl-en">mean</span>(<span class="pl-s1">axis</span><span class="pl-c1">=</span>(<span class="pl-c1">0</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>)))
<span class="pl-c1">1.0</span></pre></div>
<p dir="auto">(I used numpy-1.12.1 with python 3.5 on Ubuntu 16)</p> | 1 |
<p dir="auto">Moving away from it would be a PITA since it is used a bunch, but this pattern makes it difficult for newcomers to see where things are defined.</p> | <p dir="auto">An idea for <code class="notranslate">numpy/__init__.py</code>:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if sys.version_info[:2] >= (3, 7):
__all__ += ['__don_t_do_this']
def __getattr__(attr):
if attr == '__don_t_do_this':
warning.warn("Don't do this')
return None
raise AttributeError"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-s1">sys</span>.<span class="pl-s1">version_info</span>[:<span class="pl-c1">2</span>] <span class="pl-c1">>=</span> (<span class="pl-c1">3</span>, <span class="pl-c1">7</span>):
<span class="pl-s1">__all__</span> <span class="pl-c1">+=</span> [<span class="pl-s">'__don_t_do_this'</span>]
<span class="pl-k">def</span> <span class="pl-en">__getattr__</span>(<span class="pl-s1">attr</span>):
<span class="pl-k">if</span> <span class="pl-s1">attr</span> <span class="pl-c1">==</span> <span class="pl-s">'__don_t_do_this'</span>:
<span class="pl-s1">warning</span>.<span class="pl-en">warn</span>("<span class="pl-v">Don</span><span class="pl-s">'t do this'</span>)
<span class="pl-k">return</span> <span class="pl-c1">None</span>
<span class="pl-k">raise</span> <span class="pl-v">AttributeError</span></pre></div> | 1 |
<p dir="auto">GitHub-actions allows the code to throw warnings. However, Julia's warnings are ignored.</p>
<p dir="auto">Examples of warnings that are detected by GitHub actions (JavaScript code):<br>
<a href="https://github.com/JunoLab/atom-indent-detective/actions/runs/97242509">https://github.com/JunoLab/atom-indent-detective/actions/runs/97242509</a></p>
<p dir="auto">We should either fix this from the Julia side, or make an issue <a href="https://github.com/actions?type=source">on the GitHub side</a></p> | <p dir="auto">Currently the documentation for <code class="notranslate">reshape</code> states:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> help(reshape)
Loading help data...
Base.reshape(A, dims)
Create an array with the same data as the given array, but with
different dimensions. An implementation for a particular type of
array may choose whether the data is copied or shared."><pre class="notranslate"><code class="notranslate">julia> help(reshape)
Loading help data...
Base.reshape(A, dims)
Create an array with the same data as the given array, but with
different dimensions. An implementation for a particular type of
array may choose whether the data is copied or shared.
</code></pre></div>
<p dir="auto">Copying or sharing should be consistent across array types. Perhaps use <code class="notranslate">reshape!</code> for a version that shares storage and save <code class="notranslate">reshape</code> for a version that copies the array's contents.</p> | 0 |
<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>.): 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.): "tarball", "permissions"</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>): 1.3.8</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: bare metal</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): Debian</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): n/a</li>
<li><strong>Install tools</strong>: none – custom repackaging</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">Starting with version 1.3.8, the permissions of all the files in the release tarball (both direct and in the inner tarballs) have changed from 755 to 750 or 644 to 640, resp. I pulled and looked at the permissions of the inner tarballs over a few versions, see <a href="https://gist.github.com/matthiasr/1066cbb833e197592ee515faa0a782fd">this gist</a>.</p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">Files to have stable permissions across versions.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<p dir="auto">As root, unpack <code class="notranslate">kubernetes.tar.gz</code>. As non-root, try to use any of the binaries.</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto">I came across this because we blindly carried the permissions over into our custom repackaging. We do that now, so it's not urgent for us to change anything but it was confusing at first (especially in a patch upgrade). I also don't think there is any reason for this change?</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>.): 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.): kubectl, get, export, --export, flag</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="λ kubectl version
Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.7", GitCommit:"a2cba278cba1f6881bb0a7704d9cac6fca6ed435", GitTreeState:"clean", BuildDate:"2016-09-12T23:15:30Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.6", GitCommit:"ae4550cc9c89a593bcda6678df201db1b208133b", GitTreeState:"clean", BuildDate:"2016-08-26T18:06:06Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}"><pre class="notranslate"><code class="notranslate">λ kubectl version
Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.7", GitCommit:"a2cba278cba1f6881bb0a7704d9cac6fca6ed435", GitTreeState:"clean", BuildDate:"2016-09-12T23:15:30Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.6", GitCommit:"ae4550cc9c89a593bcda6678df201db1b208133b", GitTreeState:"clean", BuildDate:"2016-08-26T18:06:06Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}
</code></pre></div>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: GKE</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): OS X 10.11.6</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Darwin ... 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64</li>
<li><strong>Install tools</strong>: gcloud</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
<code class="notranslate">kubectl get --export</code> doesn't strip the cluster specific info from resources (self-links, etc.)</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
<code class="notranslate">kubectl get --export</code> should provide a cluster-unspecific resource that can be redeployed right away</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>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="temikus λ kubectl get deployments --export -o=yaml > deploy.yaml
temikus λ kubectl get deployments -o=yaml > deploy_false.yaml
temikus λ diff deploy*
##empty line, should actually be a diff"><pre class="notranslate"><code class="notranslate">temikus λ kubectl get deployments --export -o=yaml > deploy.yaml
temikus λ kubectl get deployments -o=yaml > deploy_false.yaml
temikus λ diff deploy*
##empty line, should actually be a diff
</code></pre></div> | 0 |
<p dir="auto">TypeScript version 1.8.9</p>
<p dir="auto"><strong>Code</strong></p>
<p dir="auto">File 1</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const enum Foo {
Bar
}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-k">enum</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-c1">Bar</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">FIle2.ts</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import file1 = require("./file1");
var x = file1.Foo.Bar;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">file1</span> <span class="pl-c1">=</span> require<span class="pl-kos">(</span><span class="pl-s">"./file1"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">file1</span><span class="pl-kos">.</span><span class="pl-c1">Foo</span><span class="pl-kos">.</span><span class="pl-c1">Bar</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Generated JavaScript File2.js</p>
<p dir="auto"><strong>Expected behavior:</strong></p>
<p dir="auto">define(["require", "exports"], function (require, exports) {<br>
"use strict";<br>
var x = 0 /* Bar */;<br>
});</p>
<p dir="auto"><strong>Actual behavior:</strong></p>
<p dir="auto">define(["require", "exports", "./file1"], function (require, exports, file1) {<br>
"use strict";<br>
var x = 0 /* Bar */;<br>
});</p>
<p dir="auto">It would be great if file2.js doesn't pull in file1.js as a dependency.</p>
<p dir="auto">We noticed this happens when we use const enums.</p> | <p dir="auto">I'm currently converting a project to use the new es6 module style (which is really a great feature!). The compiler removes all references to modules I'm using only typing information from which makes absolutely sense. However, when accessing a constant enumeration the require call will be preserved in js output although it is not needed, e.g.:</p>
<p dir="auto"><strong>a.ts</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export const enum MyEnum {
ValueA,
ValueB,
ValueC
}"><pre class="notranslate"><code class="notranslate">export const enum MyEnum {
ValueA,
ValueB,
ValueC
}
</code></pre></div>
<p dir="auto"><strong>b.ts</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import * as a from "./a";
export var myValue = a.MyEnum.ValueB;"><pre class="notranslate"><code class="notranslate">import * as a from "./a";
export var myValue = a.MyEnum.ValueB;
</code></pre></div>
<p dir="auto">Now, <code class="notranslate">b.ts</code> compiles to this, note the unnecessary <code class="notranslate">require</code> call:</p>
<p dir="auto"><strong>b.js</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var a = require("./a");
exports.myValue = 1;"><pre class="notranslate"><code class="notranslate">var a = require("./a");
exports.myValue = 1;
</code></pre></div>
<p dir="auto">First I thought this is my fault but then I tried to use the imported types solely as type arguments which results in the compiler removing the require call correctly, e.g.:</p>
<p dir="auto"><strong>c.ts</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import * as a from "./a";
export function myFunction(value:a.MyEnum):string {
return "myReturn";
}"><pre class="notranslate"><code class="notranslate">import * as a from "./a";
export function myFunction(value:a.MyEnum):string {
return "myReturn";
}
</code></pre></div>
<p dir="auto">Will compile to this:</p>
<p dir="auto"><strong>c.js</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function myFunction(value) {
return "myReturn";
}
exports.myFunction = myFunction;"><pre class="notranslate"><code class="notranslate">function myFunction(value) {
return "myReturn";
}
exports.myFunction = myFunction;
</code></pre></div> | 1 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[Fail] Port forwarding With a server that expects a client request [It] should support a client that connects, sends data, and disconnects [Conformance]
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:163
• Failure [311.018 seconds]
Port forwarding
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:268
With a server that expects a client request
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:216
should support a client that connects, sends data, and disconnects [Conformance] [It]
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:215
Feb 25 08:07:11.060: Pod did not start running: gave up waiting for pod 'pfpod' to be 'running' after 5m0s
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:163"><pre class="notranslate"><code class="notranslate">[Fail] Port forwarding With a server that expects a client request [It] should support a client that connects, sends data, and disconnects [Conformance]
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:163
• Failure [311.018 seconds]
Port forwarding
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:268
With a server that expects a client request
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:216
should support a client that connects, sends data, and disconnects [Conformance] [It]
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:215
Feb 25 08:07:11.060: Pod did not start running: gave up waiting for pod 'pfpod' to be 'running' after 5m0s
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:163
</code></pre></div> | <p dir="auto">I couldn't find any issue for this one, thus it must be a new regression we are having here. The log can be accessed at: <a href="http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce/12127/consoleFull" rel="nofollow">http://kubekins.dls.corp.google.com/view/Critical%20Builds/job/kubernetes-e2e-gce/12127/consoleFull</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="07:17:09 [It] should support a client that connects, sends no data, and disconnects [Conformance]
07:17:09 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:156
07:17:09 STEP: creating the target pod
07:17:09 Feb 23 07:16:55.427: INFO: Waiting up to 5m0s for pod pfpod status to be running
07:17:09 Feb 23 07:16:55.447: INFO: Waiting for pod pfpod in namespace 'e2e-tests-port-forwarding-vep4r' status to be 'running'(found phase: "Pending", readiness: false) (19.842797ms elapsed)
07:17:09 Feb 23 07:16:57.450: INFO: Waiting for pod pfpod in namespace 'e2e-tests-port-forwarding-vep4r' status to be 'running'(found phase: "Pending", readiness: false) (2.023387632s elapsed)
07:17:09 Feb 23 07:16:59.454: INFO: Waiting for pod pfpod in namespace 'e2e-tests-port-forwarding-vep4r' status to be 'running'(found phase: "Pending", readiness: false) (4.026805448s elapsed)
07:17:09 Feb 23 07:17:01.461: INFO: Found pod 'pfpod' on node 'jenkins-e2e-minion-ajjm'
07:17:09 STEP: Running 'kubectl port-forward'
07:17:09 Feb 23 07:17:01.461: INFO: starting port-forward command and streaming output
07:17:09 Feb 23 07:17:01.461: INFO: Asynchronously running '/jenkins-master-data/jobs/kubernetes-e2e-gce/workspace/kubernetes/platforms/linux/amd64/kubectl kubectl --server=https://104.197.61.15 --kubeconfig=/var/lib/jenkins/jobs/kubernetes-e2e-gce/workspace/.kube/config port-forward --namespace=e2e-tests-port-forwarding-vep4r pfpod :80'
07:17:09 Feb 23 07:17:01.463: INFO: reading from `kubectl port-forward` command's stderr
07:17:09 STEP: Dialing the local port
07:17:09 STEP: Closing the connection to the local port
07:17:09 Feb 23 07:17:01.988: INFO: Running '/jenkins-master-data/jobs/kubernetes-e2e-gce/workspace/kubernetes/platforms/linux/amd64/kubectl --server=https://104.197.61.15 --kubeconfig=/var/lib/jenkins/jobs/kubernetes-e2e-gce/workspace/.kube/config logs --namespace=e2e-tests-port-forwarding-vep4r -f pfpod'
07:17:09 Feb 23 07:17:02.920: INFO: stdout: ""
07:17:09 Feb 23 07:17:02.920: INFO: stderr: ""
07:17:09 Feb 23 07:17:02.920: FAIL: Missing "Accepted client connection" from log:
07:17:09 [AfterEach] Port forwarding
07:17:09 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework.go:84
07:17:09 STEP: Collecting events from namespace "e2e-tests-port-forwarding-vep4r".
07:17:09 Feb 23 07:17:02.929: INFO: event for pfpod: {default-scheduler } Scheduled: Successfully assigned pfpod to jenkins-e2e-minion-ajjm
07:17:09 Feb 23 07:17:02.929: INFO: event for pfpod: {kubelet jenkins-e2e-minion-ajjm} Pulling: pulling image "gcr.io/google_containers/portforwardtester:1.0"
07:17:09 Feb 23 07:17:02.929: INFO: event for pfpod: {kubelet jenkins-e2e-minion-ajjm} Pulled: Successfully pulled image "gcr.io/google_containers/portforwardtester:1.0"
07:17:09 Feb 23 07:17:02.929: INFO: event for pfpod: {kubelet jenkins-e2e-minion-ajjm} Created: Created container with docker id 4ad03609ba81
07:17:09 Feb 23 07:17:02.929: INFO: event for pfpod: {kubelet jenkins-e2e-minion-ajjm} Started: Started container with docker id 4ad03609ba81
07:17:09 Feb 23 07:17:02.987: INFO: POD NODE PHASE GRACE CONDITIONS
07:17:09 Feb 23 07:17:02.987: INFO: pod780e3fb2-da40-11e5-b787-42010af01555 jenkins-e2e-minion-gjop Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:53 -0800 PST ContainersNotReady containers with unready status: [nginx]}]
07:17:09 Feb 23 07:17:02.987: INFO: pod-configmaps-795a4b3f-da40-11e5-88c3-42010af01555 jenkins-e2e-minion-gjop Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST ContainersNotReady containers with unready status: [configmap-volume-test]}]
07:17:09 Feb 23 07:17:02.987: INFO: client-containers-7825e4f5-da40-11e5-917d-42010af01555 jenkins-e2e-minion-gjop Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:53 -0800 PST ContainersNotReady containers with unready status: [test-container]}]
07:17:09 Feb 23 07:17:02.987: INFO: client-containers-7dc2c528-da40-11e5-988c-42010af01555 jenkins-e2e-minion-ajjm Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:02 -0800 PST ContainersNotReady containers with unready status: [test-container]}]
07:17:09 Feb 23 07:17:02.987: INFO: nginx-controller-gzcqa jenkins-e2e-minion-ajjm Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST ContainersNotReady containers with unready status: [nginx]}]
07:17:09 Feb 23 07:17:02.987: INFO: nginx-controller-t6txl jenkins-e2e-minion-w7f5 Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST ContainersNotReady containers with unready status: [nginx]}]
07:17:09 Feb 23 07:17:02.987: INFO: nginx-controller-ugxfw jenkins-e2e-minion-gjop Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST ContainersNotReady containers with unready status: [nginx]}]
07:17:09 Feb 23 07:17:02.987: INFO: nginx-controller-bwora jenkins-e2e-minion-w7f5 Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST ContainersNotReady containers with unready status: [nginx]}]
07:17:09 Feb 23 07:17:02.987: INFO: pod-79647c34-da40-11e5-9e63-42010af01555 jenkins-e2e-minion-gjop Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST ContainersNotReady containers with unready status: [test-container]}]
07:17:09 Feb 23 07:17:02.987: INFO: pod-host-path-test jenkins-e2e-minion-w7f5 Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:00 -0800 PST ContainersNotReady containers with unready status: [test-container-1 test-container-2]}]
07:17:09 Feb 23 07:17:02.987: INFO: foo-gso08 jenkins-e2e-minion-gjop Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:59 -0800 PST }]
07:17:09 Feb 23 07:17:02.987: INFO: foo-oapzs jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:57 -0800 PST }]
07:17:09 Feb 23 07:17:02.987: INFO: nginx jenkins-e2e-minion-w7f5 Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:53 -0800 PST ContainersNotReady containers with unready status: [nginx]}]
07:17:09 Feb 23 07:17:02.987: INFO: redis-master-kje8q jenkins-e2e-minion-w7f5 Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:01 -0800 PST ContainersNotReady containers with unready status: [redis-master]}]
07:17:09 Feb 23 07:17:02.987: INFO: nginx jenkins-e2e-minion-ajjm Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:53 -0800 PST ContainersNotReady containers with unready status: [nginx]}]
07:17:09 Feb 23 07:17:02.987: INFO: pod-logs-websocket-7c5c3108-da40-11e5-87e0-42010af01555 jenkins-e2e-minion-ajjm Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:00 -0800 PST ContainersNotReady containers with unready status: [main]}]
07:17:09 Feb 23 07:17:02.987: INFO: pfpod jenkins-e2e-minion-gjop Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST ContainersNotReady containers with unready status: [portforwardtester]}]
07:17:09 Feb 23 07:17:02.987: INFO: pfpod jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:00 -0800 PST }]
07:17:09 Feb 23 07:17:02.987: INFO: my-hostname-private-78025aec-da40-11e5-a865-42010af01555-kwky7 jenkins-e2e-minion-w7f5 Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:02 -0800 PST }]
07:17:09 Feb 23 07:17:02.987: INFO: my-hostname-private-78025aec-da40-11e5-a865-42010af01555-tlu7z jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:00 -0800 PST }]
07:17:09 Feb 23 07:17:02.987: INFO: svc-latency-rc-ur1wo jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: pod-service-account-787267e3-da40-11e5-b259-42010af01555 jenkins-e2e-minion-ajjm Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:01 -0800 PST ContainersNotReady containers with unready status: [token-test root-ca-test]}]
07:17:09 Feb 23 07:17:02.988: INFO: elasticsearch-logging-v1-nxkc6 jenkins-e2e-minion-w7f5 Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:19 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: elasticsearch-logging-v1-yse0k jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:20 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: fluentd-elasticsearch-jenkins-e2e-minion-ajjm jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:10 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: fluentd-elasticsearch-jenkins-e2e-minion-gjop jenkins-e2e-minion-gjop Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:16 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: fluentd-elasticsearch-jenkins-e2e-minion-w7f5 jenkins-e2e-minion-w7f5 Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:03 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: heapster-v14-pcau0 jenkins-e2e-minion-gjop Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:20 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: kibana-logging-v1-x0fzh jenkins-e2e-minion-gjop Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:41 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: kube-dns-v10-x0rod jenkins-e2e-minion-w7f5 Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:28 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: kube-proxy-jenkins-e2e-minion-ajjm jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:15:33 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: kube-proxy-jenkins-e2e-minion-gjop jenkins-e2e-minion-gjop Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:02 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: kube-proxy-jenkins-e2e-minion-w7f5 jenkins-e2e-minion-w7f5 Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:15:35 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: kubernetes-dashboard-v0.1.0-09u97 jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:10 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: l7-lb-controller-v0.5.2-xu332 jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:29 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: monitoring-influxdb-grafana-v3-s4zvp jenkins-e2e-minion-gjop Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:41 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO:
07:17:09 Feb 23 07:17:02.994: INFO:
07:17:09 Logging node info for node jenkins-e2e-minion-ajjm
07:17:09 Feb 23 07:17:03.001: INFO: Node Info: &{{ } {jenkins-e2e-minion-ajjm /api/v1/nodes/jenkins-e2e-minion-ajjm 2b5320f8-da40-11e5-bb5a-42010af00002 367 0 2016-02-23 07:14:44 -0800 PST <nil> <nil> map[beta.kubernetes.io/instance-type:n1-standard-2 failure-domain.beta.kubernetes.io/region:us-central1 failure-domain.beta.kubernetes.io/zone:us-central1-f kubernetes.io/hostname:jenkins-e2e-minion-ajjm master:] map[]} {10.245.0.0/24 14548348975076778713 gce://k8s-jkns-e2e-gce/us-central1-f/jenkins-e2e-minion-ajjm false} {map[memory:{7864139776.000 BinarySI} pods:{110.000 DecimalSI} cpu:{2.000 DecimalSI}] map[cpu:{2.000 DecimalSI} memory:{7864139776.000 BinarySI} pods:{110.000 DecimalSI}] [{OutOfDisk False 2016-02-23 07:16:53 -0800 PST 2016-02-23 07:14:44 -0800 PST KubeletHasSufficientDisk kubelet has sufficient disk space available} {Ready True 2016-02-23 07:16:53 -0800 PST 2016-02-23 07:15:32 -0800 PST KubeletReady kubelet is posting ready status}] [{InternalIP 10.240.0.3} {ExternalIP 104.154.98.97}] {{10250}} { 10C07727-2011-F0F9-CA44-80C069F0F32D b76f4a86-6123-4fd9-9236-6b2d3cb80e7d 3.16.0-4-amd64 Debian GNU/Linux 7 (wheezy) docker://1.9.1 v1.2.0-alpha.8.200+7f1b699880a3d4 v1.2.0-alpha.8.200+7f1b699880a3d4} [{[gcr.io/google_containers/kube-proxy:0a7bf1781f033fc04e110c3cd8505785] 165640277} {[gcr.io/google_containers/fluentd-elasticsearch:1.14] 562034622} {[gcr.io/google_containers/kubernetes-dashboard-amd64:v0.1.0] 35409795} {[gcr.io/google_containers/glbc:0.5.2] 226351998} {[gcr.io/google_containers/elasticsearch:1.8] 410989305} {[gcr.io/google_containers/defaultbackend:1.0] 7513643} {[gcr.io/google_containers/pause:2.0] 350164} {[gcr.io/google_containers/pause:0.8.0] 241656}]}}
07:17:09 Feb 23 07:17:03.002: INFO:
07:17:09 Logging kubelet events for node jenkins-e2e-minion-ajjm
07:17:09 Feb 23 07:17:03.035: INFO:
07:17:09 Logging pods the kubelet thinks is on node jenkins-e2e-minion-ajjm
07:17:09 Feb 23 07:17:03.052: INFO: my-hostname-private-78025aec-da40-11e5-a865-42010af01555-tlu7z started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: svc-latency-rc-ur1wo started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: nginx started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: fluentd-elasticsearch-jenkins-e2e-minion-ajjm started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: pod-logs-websocket-7c5c3108-da40-11e5-87e0-42010af01555 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: nginx-controller-gzcqa started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: foo-oapzs started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: l7-lb-controller-v0.5.2-xu332 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: elasticsearch-logging-v1-yse0k started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: kubernetes-dashboard-v0.1.0-09u97 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: kube-proxy-jenkins-e2e-minion-ajjm started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: pfpod started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.446: INFO: ERROR kubelet_docker_errors{operation_type="info"} => 1 @[0]
07:17:09 Feb 23 07:17:03.446: INFO: ERROR kubelet_docker_errors{operation_type="inspect_image"} => 15 @[0]
07:17:09 Feb 23 07:17:03.446: INFO: ERROR kubelet_docker_errors{operation_type="list_containers"} => 32 @[0]
07:17:09 Feb 23 07:17:03.447: INFO: ERROR kubelet_docker_errors{operation_type="list_images"} => 5 @[0]
07:17:09 Feb 23 07:17:03.447: INFO: ERROR kubelet_docker_errors{operation_type="stop_container"} => 1 @[0]
07:17:09 Feb 23 07:17:03.447: INFO: ERROR kubelet_docker_errors{operation_type="version"} => 22 @[0]
07:17:09 Feb 23 07:17:03.447: INFO:
07:17:09 Latency metrics for node jenkins-e2e-minion-ajjm
07:17:09 Feb 23 07:17:03.447: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.99 Latency:41.49339s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.9 Latency:40.027169s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation: Method:pod_worker_start_latency_microseconds Quantile:0.99 Latency:40.02661s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation:create Method:pod_worker_latency_microseconds Quantile:0.99 Latency:37.502548s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation:SyncPod Method:container_manager_latency_microseconds Quantile:0.99 Latency:37.480865s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation:create Method:pod_worker_latency_microseconds Quantile:0.9 Latency:30.454951s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation:sync Method:pod_worker_latency_microseconds Quantile:0.99 Latency:29.950011s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation:pull_image Method:docker_operations_latency_microseconds Quantile:0.99 Latency:29.001099s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation:pull_image Method:docker_operations_latency_microseconds Quantile:0.9 Latency:27.51048s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation:sync Method:pod_worker_latency_microseconds Quantile:0.9 Latency:10.221818s}
07:17:09 Feb 23 07:17:03.447: INFO:
07:17:09 Logging node info for node jenkins-e2e-minion-gjop
07:17:09 Feb 23 07:17:03.451: INFO: Node Info: &{{ } {jenkins-e2e-minion-gjop /api/v1/nodes/jenkins-e2e-minion-gjop 2c6a9bda-da40-11e5-bb5a-42010af00002 373 0 2016-02-23 07:14:46 -0800 PST <nil> <nil> map[kubernetes.io/hostname:jenkins-e2e-minion-gjop master: beta.kubernetes.io/instance-type:n1-standard-2 failure-domain.beta.kubernetes.io/region:us-central1 failure-domain.beta.kubernetes.io/zone:us-central1-f] map[]} {10.245.1.0/24 10660228105066903695 gce://k8s-jkns-e2e-gce/us-central1-f/jenkins-e2e-minion-gjop false} {map[pods:{110.000 DecimalSI} cpu:{2.000 DecimalSI} memory:{7864139776.000 BinarySI}] map[memory:{7864139776.000 BinarySI} pods:{110.000 DecimalSI} cpu:{2.000 DecimalSI}] [{OutOfDisk False 2016-02-23 07:16:54 -0800 PST 2016-02-23 07:14:46 -0800 PST KubeletHasSufficientDisk kubelet has sufficient disk space available} {Ready True 2016-02-23 07:16:54 -0800 PST 2016-02-23 07:15:33 -0800 PST KubeletReady kubelet is posting ready status}] [{InternalIP 10.240.0.5} {ExternalIP 104.154.18.200}] {{10250}} { CEF2A9D6-8CE4-1670-1696-570023B29CC8 8635b608-0928-46fa-9252-424edf6eb21e 3.16.0-4-amd64 Debian GNU/Linux 7 (wheezy) docker://1.9.1 v1.2.0-alpha.8.200+7f1b699880a3d4 v1.2.0-alpha.8.200+7f1b699880a3d4} [{[gcr.io/google_containers/kube-proxy:0a7bf1781f033fc04e110c3cd8505785] 165640277} {[gcr.io/google_containers/heapster:v0.20.0-alpha6] 85929942} {[gcr.io/google_containers/fluentd-elasticsearch:1.14] 562034622} {[gcr.io/google_containers/mounttest:0.5] 1718853} {[gcr.io/google_containers/heapster_grafana:v2.1.1] 206641132} {[gcr.io/google_containers/pause:2.0] 350164} {[gcr.io/google_containers/heapster_influxdb:v0.5] 251005705} {[gcr.io/google_containers/kibana:1.3] 396897764} {[gcr.io/google_containers/pause:0.8.0] 241656}]}}
07:17:09 Feb 23 07:17:03.451: INFO:
07:17:09 Logging kubelet events for node jenkins-e2e-minion-gjop
07:17:09 Feb 23 07:17:03.464: INFO:
07:17:09 Logging pods the kubelet thinks is on node jenkins-e2e-minion-gjop
07:17:09 Feb 23 07:17:03.573: INFO: nginx-controller-ugxfw started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: pfpod started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: client-containers-7825e4f5-da40-11e5-917d-42010af01555 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: monitoring-influxdb-grafana-v3-s4zvp started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: kube-proxy-jenkins-e2e-minion-gjop started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: heapster-v14-pcau0 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: fluentd-elasticsearch-jenkins-e2e-minion-gjop started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: foo-gso08 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: pod-79647c34-da40-11e5-9e63-42010af01555 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: pod-configmaps-795a4b3f-da40-11e5-88c3-42010af01555 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: pod780e3fb2-da40-11e5-b787-42010af01555 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: kibana-logging-v1-x0fzh started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.825: INFO: ERROR kubelet_docker_errors{operation_type="info"} => 1 @[0]
07:17:09 Feb 23 07:17:03.825: INFO: ERROR kubelet_docker_errors{operation_type="inspect_image"} => 20 @[0]
07:17:09 Feb 23 07:17:03.825: INFO: ERROR kubelet_docker_errors{operation_type="list_containers"} => 36 @[0]
07:17:09 Feb 23 07:17:03.825: INFO: ERROR kubelet_docker_errors{operation_type="list_images"} => 6 @[0]
07:17:09 Feb 23 07:17:03.825: INFO: ERROR kubelet_docker_errors{operation_type="pull_image"} => 2 @[0]
07:17:09 Feb 23 07:17:03.825: INFO: ERROR kubelet_docker_errors{operation_type="stop_container"} => 1 @[0]
07:17:09 Feb 23 07:17:03.825: INFO: ERROR kubelet_docker_errors{operation_type="version"} => 24 @[0]
07:17:09 Feb 23 07:17:03.826: INFO:
07:17:09 Latency metrics for node jenkins-e2e-minion-gjop
07:17:09 Feb 23 07:17:03.826: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.99 Latency:1m9.824686s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.9 Latency:52.910615s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:create Method:pod_worker_latency_microseconds Quantile:0.99 Latency:51.304079s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:create Method:pod_worker_latency_microseconds Quantile:0.9 Latency:51.304079s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:SyncPod Method:container_manager_latency_microseconds Quantile:0.99 Latency:51.295383s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:sync Method:pod_worker_latency_microseconds Quantile:0.99 Latency:47.065565s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:pull_image Method:docker_operations_latency_microseconds Quantile:0.99 Latency:45.90737s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation: Method:pod_worker_start_latency_microseconds Quantile:0.99 Latency:35.210061s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:create Method:pod_worker_latency_microseconds Quantile:0.5 Latency:31.659999s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:SyncPod Method:container_manager_latency_microseconds Quantile:0.9 Latency:31.646042s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:sync Method:pod_worker_latency_microseconds Quantile:0.9 Latency:29.831946s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:pull_image Method:docker_operations_latency_microseconds Quantile:0.9 Latency:29.088885s}
07:17:09 Feb 23 07:17:03.826: INFO:
07:17:09 Logging node info for node jenkins-e2e-minion-w7f5
07:17:09 Feb 23 07:17:03.831: INFO: Node Info: &{{ } {jenkins-e2e-minion-w7f5 /api/v1/nodes/jenkins-e2e-minion-w7f5 2b781dda-da40-11e5-bb5a-42010af00002 927 0 2016-02-23 07:14:44 -0800 PST <nil> <nil> map[beta.kubernetes.io/instance-type:n1-standard-2 failure-domain.beta.kubernetes.io/region:us-central1 failure-domain.beta.kubernetes.io/zone:us-central1-f kubernetes.io/hostname:jenkins-e2e-minion-w7f5 master:] map[]} {10.245.2.0/24 5512211706074314555 gce://k8s-jkns-e2e-gce/us-central1-f/jenkins-e2e-minion-w7f5 false} {map[cpu:{2.000 DecimalSI} memory:{7864139776.000 BinarySI} pods:{110.000 DecimalSI}] map[cpu:{2.000 DecimalSI} memory:{7864139776.000 BinarySI} pods:{110.000 DecimalSI}] [{OutOfDisk False 2016-02-23 07:17:03 -0800 PST 2016-02-23 07:14:44 -0800 PST KubeletHasSufficientDisk kubelet has sufficient disk space available} {Ready True 2016-02-23 07:17:03 -0800 PST 2016-02-23 07:15:32 -0800 PST KubeletReady kubelet is posting ready status}] [{InternalIP 10.240.0.4} {ExternalIP 104.154.49.202}] {{10250}} { 03BE766C-FE24-8851-6BB8-D6E3075909E4 ccc4ea9f-66cf-465a-8fe6-58b76a524f88 3.16.0-4-amd64 Debian GNU/Linux 7 (wheezy) docker://1.9.1 v1.2.0-alpha.8.200+7f1b699880a3d4 v1.2.0-alpha.8.200+7f1b699880a3d4} [{[gcr.io/google_containers/kube-proxy:0a7bf1781f033fc04e110c3cd8505785] 165640277} {[gcr.io/google_containers/fluentd-elasticsearch:1.14] 562034622} {[gcr.io/google_containers/busybox:1.24] 1113554} {[gcr.io/google_containers/kube2sky:1.12] 24482187} {[gcr.io/google_containers/elasticsearch:1.8] 410989305} {[gcr.io/google_containers/mounttest:0.6] 2084693} {[gcr.io/google_containers/mounttest:0.5] 1718853} {[gcr.io/google_containers/skydns:2015-10-13-8c72f8c] 40551394} {[gcr.io/google_containers/pause:2.0] 350164} {[gcr.io/google_containers/exechealthz:1.0] 7099444} {[gcr.io/google_containers/mounttest:0.2] 1752375} {[gcr.io/google_containers/etcd:2.0.9] 12819040} {[gcr.io/google_containers/pause:0.8.0] 241656} {[b.gcr.io/k8s_authenticated_test/serve_hostname:1.1] 4522409}]}}
07:17:09 Feb 23 07:17:03.832: INFO:
07:17:09 Logging kubelet events for node jenkins-e2e-minion-w7f5
07:17:09 Feb 23 07:17:03.846: INFO:
07:17:09 Logging pods the kubelet thinks is on node jenkins-e2e-minion-w7f5
07:17:09 Feb 23 07:17:03.863: INFO: elasticsearch-logging-v1-nxkc6 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: fluentd-elasticsearch-jenkins-e2e-minion-w7f5 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: redis-master-kje8q started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: pod-host-path-test started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: nginx-controller-t6txl started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: nginx started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: my-hostname-private-78025aec-da40-11e5-a865-42010af01555-kwky7 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: nginx-controller-bwora started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: kube-dns-v10-x0rod started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: kube-proxy-jenkins-e2e-minion-w7f5 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:04.343: INFO: ERROR kubelet_docker_errors{operation_type="info"} => 1 @[0]
07:17:09 Feb 23 07:17:04.343: INFO: ERROR kubelet_docker_errors{operation_type="inspect_image"} => 17 @[0]
07:17:09 Feb 23 07:17:04.343: INFO: ERROR kubelet_docker_errors{operation_type="list_containers"} => 32 @[0]
07:17:09 Feb 23 07:17:04.343: INFO: ERROR kubelet_docker_errors{operation_type="list_images"} => 5 @[0]
07:17:09 Feb 23 07:17:04.343: INFO: ERROR kubelet_docker_errors{operation_type="stop_container"} => 5 @[0]
07:17:09 Feb 23 07:17:04.343: INFO: ERROR kubelet_docker_errors{operation_type="version"} => 22 @[0]
07:17:09 Feb 23 07:17:04.343: INFO:
07:17:09 Latency metrics for node jenkins-e2e-minion-w7f5
07:17:09 Feb 23 07:17:04.343: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.99 Latency:43.696016s}
07:17:09 Feb 23 07:17:04.343: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.9 Latency:40.017824s}
07:17:09 Feb 23 07:17:04.344: INFO: {Operation: Method:pod_worker_start_latency_microseconds Quantile:0.99 Latency:40.017388s}
07:17:09 Feb 23 07:17:04.344: INFO: {Operation:create Method:pod_worker_latency_microseconds Quantile:0.99 Latency:31.494667s}
07:17:09 Feb 23 07:17:04.344: INFO: {Operation:create Method:pod_worker_latency_microseconds Quantile:0.9 Latency:31.494667s}
07:17:09 Feb 23 07:17:04.344: INFO: {Operation:SyncPod Method:container_manager_latency_microseconds Quantile:0.99 Latency:31.484782s}
07:17:09 Feb 23 07:17:04.344: INFO: {Operation:pull_image Method:docker_operations_latency_microseconds Quantile:0.99 Latency:29.420866s}
07:17:09 Feb 23 07:17:04.344: INFO: {Operation:sync Method:pod_worker_latency_microseconds Quantile:0.99 Latency:29.189764s}
07:17:09 Feb 23 07:17:04.344: INFO: {Operation:pull_image Method:docker_operations_latency_microseconds Quantile:0.9 Latency:28.506516s}
07:17:09 Feb 23 07:17:04.344: INFO: Waiting up to 1m0s for all nodes to be ready
07:17:09 STEP: Destroying namespace "e2e-tests-port-forwarding-vep4r" for this suite.
07:17:09 W0223 07:17:04.418253 31107 request.go:627] Throttling request took 58.08125ms, request: https://104.197.61.15/api/v1/namespaces/e2e-tests-port-forwarding-vep4r
07:17:09
07:17:09
07:17:09 • Failure [18.563 seconds]
07:17:09 Port forwarding
07:17:09 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:240
07:17:09 With a server that expects a client request
07:17:09 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:203
07:17:09 should support a client that connects, sends no data, and disconnects [Conformance] [It]
07:17:09 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:156
07:17:09
07:17:09 Feb 23 07:17:02.920: Missing "Accepted client connection" from log:
07:17:09
07:17:09 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:250
07:17:09 ------------------------------"><pre class="notranslate"><code class="notranslate">07:17:09 [It] should support a client that connects, sends no data, and disconnects [Conformance]
07:17:09 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:156
07:17:09 STEP: creating the target pod
07:17:09 Feb 23 07:16:55.427: INFO: Waiting up to 5m0s for pod pfpod status to be running
07:17:09 Feb 23 07:16:55.447: INFO: Waiting for pod pfpod in namespace 'e2e-tests-port-forwarding-vep4r' status to be 'running'(found phase: "Pending", readiness: false) (19.842797ms elapsed)
07:17:09 Feb 23 07:16:57.450: INFO: Waiting for pod pfpod in namespace 'e2e-tests-port-forwarding-vep4r' status to be 'running'(found phase: "Pending", readiness: false) (2.023387632s elapsed)
07:17:09 Feb 23 07:16:59.454: INFO: Waiting for pod pfpod in namespace 'e2e-tests-port-forwarding-vep4r' status to be 'running'(found phase: "Pending", readiness: false) (4.026805448s elapsed)
07:17:09 Feb 23 07:17:01.461: INFO: Found pod 'pfpod' on node 'jenkins-e2e-minion-ajjm'
07:17:09 STEP: Running 'kubectl port-forward'
07:17:09 Feb 23 07:17:01.461: INFO: starting port-forward command and streaming output
07:17:09 Feb 23 07:17:01.461: INFO: Asynchronously running '/jenkins-master-data/jobs/kubernetes-e2e-gce/workspace/kubernetes/platforms/linux/amd64/kubectl kubectl --server=https://104.197.61.15 --kubeconfig=/var/lib/jenkins/jobs/kubernetes-e2e-gce/workspace/.kube/config port-forward --namespace=e2e-tests-port-forwarding-vep4r pfpod :80'
07:17:09 Feb 23 07:17:01.463: INFO: reading from `kubectl port-forward` command's stderr
07:17:09 STEP: Dialing the local port
07:17:09 STEP: Closing the connection to the local port
07:17:09 Feb 23 07:17:01.988: INFO: Running '/jenkins-master-data/jobs/kubernetes-e2e-gce/workspace/kubernetes/platforms/linux/amd64/kubectl --server=https://104.197.61.15 --kubeconfig=/var/lib/jenkins/jobs/kubernetes-e2e-gce/workspace/.kube/config logs --namespace=e2e-tests-port-forwarding-vep4r -f pfpod'
07:17:09 Feb 23 07:17:02.920: INFO: stdout: ""
07:17:09 Feb 23 07:17:02.920: INFO: stderr: ""
07:17:09 Feb 23 07:17:02.920: FAIL: Missing "Accepted client connection" from log:
07:17:09 [AfterEach] Port forwarding
07:17:09 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework.go:84
07:17:09 STEP: Collecting events from namespace "e2e-tests-port-forwarding-vep4r".
07:17:09 Feb 23 07:17:02.929: INFO: event for pfpod: {default-scheduler } Scheduled: Successfully assigned pfpod to jenkins-e2e-minion-ajjm
07:17:09 Feb 23 07:17:02.929: INFO: event for pfpod: {kubelet jenkins-e2e-minion-ajjm} Pulling: pulling image "gcr.io/google_containers/portforwardtester:1.0"
07:17:09 Feb 23 07:17:02.929: INFO: event for pfpod: {kubelet jenkins-e2e-minion-ajjm} Pulled: Successfully pulled image "gcr.io/google_containers/portforwardtester:1.0"
07:17:09 Feb 23 07:17:02.929: INFO: event for pfpod: {kubelet jenkins-e2e-minion-ajjm} Created: Created container with docker id 4ad03609ba81
07:17:09 Feb 23 07:17:02.929: INFO: event for pfpod: {kubelet jenkins-e2e-minion-ajjm} Started: Started container with docker id 4ad03609ba81
07:17:09 Feb 23 07:17:02.987: INFO: POD NODE PHASE GRACE CONDITIONS
07:17:09 Feb 23 07:17:02.987: INFO: pod780e3fb2-da40-11e5-b787-42010af01555 jenkins-e2e-minion-gjop Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:53 -0800 PST ContainersNotReady containers with unready status: [nginx]}]
07:17:09 Feb 23 07:17:02.987: INFO: pod-configmaps-795a4b3f-da40-11e5-88c3-42010af01555 jenkins-e2e-minion-gjop Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST ContainersNotReady containers with unready status: [configmap-volume-test]}]
07:17:09 Feb 23 07:17:02.987: INFO: client-containers-7825e4f5-da40-11e5-917d-42010af01555 jenkins-e2e-minion-gjop Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:53 -0800 PST ContainersNotReady containers with unready status: [test-container]}]
07:17:09 Feb 23 07:17:02.987: INFO: client-containers-7dc2c528-da40-11e5-988c-42010af01555 jenkins-e2e-minion-ajjm Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:02 -0800 PST ContainersNotReady containers with unready status: [test-container]}]
07:17:09 Feb 23 07:17:02.987: INFO: nginx-controller-gzcqa jenkins-e2e-minion-ajjm Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST ContainersNotReady containers with unready status: [nginx]}]
07:17:09 Feb 23 07:17:02.987: INFO: nginx-controller-t6txl jenkins-e2e-minion-w7f5 Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST ContainersNotReady containers with unready status: [nginx]}]
07:17:09 Feb 23 07:17:02.987: INFO: nginx-controller-ugxfw jenkins-e2e-minion-gjop Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST ContainersNotReady containers with unready status: [nginx]}]
07:17:09 Feb 23 07:17:02.987: INFO: nginx-controller-bwora jenkins-e2e-minion-w7f5 Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST ContainersNotReady containers with unready status: [nginx]}]
07:17:09 Feb 23 07:17:02.987: INFO: pod-79647c34-da40-11e5-9e63-42010af01555 jenkins-e2e-minion-gjop Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST ContainersNotReady containers with unready status: [test-container]}]
07:17:09 Feb 23 07:17:02.987: INFO: pod-host-path-test jenkins-e2e-minion-w7f5 Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:00 -0800 PST ContainersNotReady containers with unready status: [test-container-1 test-container-2]}]
07:17:09 Feb 23 07:17:02.987: INFO: foo-gso08 jenkins-e2e-minion-gjop Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:59 -0800 PST }]
07:17:09 Feb 23 07:17:02.987: INFO: foo-oapzs jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:57 -0800 PST }]
07:17:09 Feb 23 07:17:02.987: INFO: nginx jenkins-e2e-minion-w7f5 Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:53 -0800 PST ContainersNotReady containers with unready status: [nginx]}]
07:17:09 Feb 23 07:17:02.987: INFO: redis-master-kje8q jenkins-e2e-minion-w7f5 Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:01 -0800 PST ContainersNotReady containers with unready status: [redis-master]}]
07:17:09 Feb 23 07:17:02.987: INFO: nginx jenkins-e2e-minion-ajjm Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:53 -0800 PST ContainersNotReady containers with unready status: [nginx]}]
07:17:09 Feb 23 07:17:02.987: INFO: pod-logs-websocket-7c5c3108-da40-11e5-87e0-42010af01555 jenkins-e2e-minion-ajjm Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:00 -0800 PST ContainersNotReady containers with unready status: [main]}]
07:17:09 Feb 23 07:17:02.987: INFO: pfpod jenkins-e2e-minion-gjop Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST ContainersNotReady containers with unready status: [portforwardtester]}]
07:17:09 Feb 23 07:17:02.987: INFO: pfpod jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:00 -0800 PST }]
07:17:09 Feb 23 07:17:02.987: INFO: my-hostname-private-78025aec-da40-11e5-a865-42010af01555-kwky7 jenkins-e2e-minion-w7f5 Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:02 -0800 PST }]
07:17:09 Feb 23 07:17:02.987: INFO: my-hostname-private-78025aec-da40-11e5-a865-42010af01555-tlu7z jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:00 -0800 PST }]
07:17:09 Feb 23 07:17:02.987: INFO: svc-latency-rc-ur1wo jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:55 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: pod-service-account-787267e3-da40-11e5-b259-42010af01555 jenkins-e2e-minion-ajjm Pending [{Ready False 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:17:01 -0800 PST ContainersNotReady containers with unready status: [token-test root-ca-test]}]
07:17:09 Feb 23 07:17:02.988: INFO: elasticsearch-logging-v1-nxkc6 jenkins-e2e-minion-w7f5 Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:19 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: elasticsearch-logging-v1-yse0k jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:20 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: fluentd-elasticsearch-jenkins-e2e-minion-ajjm jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:10 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: fluentd-elasticsearch-jenkins-e2e-minion-gjop jenkins-e2e-minion-gjop Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:16 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: fluentd-elasticsearch-jenkins-e2e-minion-w7f5 jenkins-e2e-minion-w7f5 Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:03 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: heapster-v14-pcau0 jenkins-e2e-minion-gjop Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:20 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: kibana-logging-v1-x0fzh jenkins-e2e-minion-gjop Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:41 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: kube-dns-v10-x0rod jenkins-e2e-minion-w7f5 Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:28 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: kube-proxy-jenkins-e2e-minion-ajjm jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:15:33 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: kube-proxy-jenkins-e2e-minion-gjop jenkins-e2e-minion-gjop Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:02 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: kube-proxy-jenkins-e2e-minion-w7f5 jenkins-e2e-minion-w7f5 Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:15:35 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: kubernetes-dashboard-v0.1.0-09u97 jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:10 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: l7-lb-controller-v0.5.2-xu332 jenkins-e2e-minion-ajjm Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:29 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO: monitoring-influxdb-grafana-v3-s4zvp jenkins-e2e-minion-gjop Running [{Ready True 0001-01-01 00:00:00 +0000 UTC 2016-02-23 07:16:41 -0800 PST }]
07:17:09 Feb 23 07:17:02.988: INFO:
07:17:09 Feb 23 07:17:02.994: INFO:
07:17:09 Logging node info for node jenkins-e2e-minion-ajjm
07:17:09 Feb 23 07:17:03.001: INFO: Node Info: &{{ } {jenkins-e2e-minion-ajjm /api/v1/nodes/jenkins-e2e-minion-ajjm 2b5320f8-da40-11e5-bb5a-42010af00002 367 0 2016-02-23 07:14:44 -0800 PST <nil> <nil> map[beta.kubernetes.io/instance-type:n1-standard-2 failure-domain.beta.kubernetes.io/region:us-central1 failure-domain.beta.kubernetes.io/zone:us-central1-f kubernetes.io/hostname:jenkins-e2e-minion-ajjm master:] map[]} {10.245.0.0/24 14548348975076778713 gce://k8s-jkns-e2e-gce/us-central1-f/jenkins-e2e-minion-ajjm false} {map[memory:{7864139776.000 BinarySI} pods:{110.000 DecimalSI} cpu:{2.000 DecimalSI}] map[cpu:{2.000 DecimalSI} memory:{7864139776.000 BinarySI} pods:{110.000 DecimalSI}] [{OutOfDisk False 2016-02-23 07:16:53 -0800 PST 2016-02-23 07:14:44 -0800 PST KubeletHasSufficientDisk kubelet has sufficient disk space available} {Ready True 2016-02-23 07:16:53 -0800 PST 2016-02-23 07:15:32 -0800 PST KubeletReady kubelet is posting ready status}] [{InternalIP 10.240.0.3} {ExternalIP 104.154.98.97}] {{10250}} { 10C07727-2011-F0F9-CA44-80C069F0F32D b76f4a86-6123-4fd9-9236-6b2d3cb80e7d 3.16.0-4-amd64 Debian GNU/Linux 7 (wheezy) docker://1.9.1 v1.2.0-alpha.8.200+7f1b699880a3d4 v1.2.0-alpha.8.200+7f1b699880a3d4} [{[gcr.io/google_containers/kube-proxy:0a7bf1781f033fc04e110c3cd8505785] 165640277} {[gcr.io/google_containers/fluentd-elasticsearch:1.14] 562034622} {[gcr.io/google_containers/kubernetes-dashboard-amd64:v0.1.0] 35409795} {[gcr.io/google_containers/glbc:0.5.2] 226351998} {[gcr.io/google_containers/elasticsearch:1.8] 410989305} {[gcr.io/google_containers/defaultbackend:1.0] 7513643} {[gcr.io/google_containers/pause:2.0] 350164} {[gcr.io/google_containers/pause:0.8.0] 241656}]}}
07:17:09 Feb 23 07:17:03.002: INFO:
07:17:09 Logging kubelet events for node jenkins-e2e-minion-ajjm
07:17:09 Feb 23 07:17:03.035: INFO:
07:17:09 Logging pods the kubelet thinks is on node jenkins-e2e-minion-ajjm
07:17:09 Feb 23 07:17:03.052: INFO: my-hostname-private-78025aec-da40-11e5-a865-42010af01555-tlu7z started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: svc-latency-rc-ur1wo started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: nginx started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: fluentd-elasticsearch-jenkins-e2e-minion-ajjm started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: pod-logs-websocket-7c5c3108-da40-11e5-87e0-42010af01555 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: nginx-controller-gzcqa started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: foo-oapzs started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: l7-lb-controller-v0.5.2-xu332 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: elasticsearch-logging-v1-yse0k started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: kubernetes-dashboard-v0.1.0-09u97 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: kube-proxy-jenkins-e2e-minion-ajjm started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.052: INFO: pfpod started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.446: INFO: ERROR kubelet_docker_errors{operation_type="info"} => 1 @[0]
07:17:09 Feb 23 07:17:03.446: INFO: ERROR kubelet_docker_errors{operation_type="inspect_image"} => 15 @[0]
07:17:09 Feb 23 07:17:03.446: INFO: ERROR kubelet_docker_errors{operation_type="list_containers"} => 32 @[0]
07:17:09 Feb 23 07:17:03.447: INFO: ERROR kubelet_docker_errors{operation_type="list_images"} => 5 @[0]
07:17:09 Feb 23 07:17:03.447: INFO: ERROR kubelet_docker_errors{operation_type="stop_container"} => 1 @[0]
07:17:09 Feb 23 07:17:03.447: INFO: ERROR kubelet_docker_errors{operation_type="version"} => 22 @[0]
07:17:09 Feb 23 07:17:03.447: INFO:
07:17:09 Latency metrics for node jenkins-e2e-minion-ajjm
07:17:09 Feb 23 07:17:03.447: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.99 Latency:41.49339s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.9 Latency:40.027169s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation: Method:pod_worker_start_latency_microseconds Quantile:0.99 Latency:40.02661s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation:create Method:pod_worker_latency_microseconds Quantile:0.99 Latency:37.502548s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation:SyncPod Method:container_manager_latency_microseconds Quantile:0.99 Latency:37.480865s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation:create Method:pod_worker_latency_microseconds Quantile:0.9 Latency:30.454951s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation:sync Method:pod_worker_latency_microseconds Quantile:0.99 Latency:29.950011s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation:pull_image Method:docker_operations_latency_microseconds Quantile:0.99 Latency:29.001099s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation:pull_image Method:docker_operations_latency_microseconds Quantile:0.9 Latency:27.51048s}
07:17:09 Feb 23 07:17:03.447: INFO: {Operation:sync Method:pod_worker_latency_microseconds Quantile:0.9 Latency:10.221818s}
07:17:09 Feb 23 07:17:03.447: INFO:
07:17:09 Logging node info for node jenkins-e2e-minion-gjop
07:17:09 Feb 23 07:17:03.451: INFO: Node Info: &{{ } {jenkins-e2e-minion-gjop /api/v1/nodes/jenkins-e2e-minion-gjop 2c6a9bda-da40-11e5-bb5a-42010af00002 373 0 2016-02-23 07:14:46 -0800 PST <nil> <nil> map[kubernetes.io/hostname:jenkins-e2e-minion-gjop master: beta.kubernetes.io/instance-type:n1-standard-2 failure-domain.beta.kubernetes.io/region:us-central1 failure-domain.beta.kubernetes.io/zone:us-central1-f] map[]} {10.245.1.0/24 10660228105066903695 gce://k8s-jkns-e2e-gce/us-central1-f/jenkins-e2e-minion-gjop false} {map[pods:{110.000 DecimalSI} cpu:{2.000 DecimalSI} memory:{7864139776.000 BinarySI}] map[memory:{7864139776.000 BinarySI} pods:{110.000 DecimalSI} cpu:{2.000 DecimalSI}] [{OutOfDisk False 2016-02-23 07:16:54 -0800 PST 2016-02-23 07:14:46 -0800 PST KubeletHasSufficientDisk kubelet has sufficient disk space available} {Ready True 2016-02-23 07:16:54 -0800 PST 2016-02-23 07:15:33 -0800 PST KubeletReady kubelet is posting ready status}] [{InternalIP 10.240.0.5} {ExternalIP 104.154.18.200}] {{10250}} { CEF2A9D6-8CE4-1670-1696-570023B29CC8 8635b608-0928-46fa-9252-424edf6eb21e 3.16.0-4-amd64 Debian GNU/Linux 7 (wheezy) docker://1.9.1 v1.2.0-alpha.8.200+7f1b699880a3d4 v1.2.0-alpha.8.200+7f1b699880a3d4} [{[gcr.io/google_containers/kube-proxy:0a7bf1781f033fc04e110c3cd8505785] 165640277} {[gcr.io/google_containers/heapster:v0.20.0-alpha6] 85929942} {[gcr.io/google_containers/fluentd-elasticsearch:1.14] 562034622} {[gcr.io/google_containers/mounttest:0.5] 1718853} {[gcr.io/google_containers/heapster_grafana:v2.1.1] 206641132} {[gcr.io/google_containers/pause:2.0] 350164} {[gcr.io/google_containers/heapster_influxdb:v0.5] 251005705} {[gcr.io/google_containers/kibana:1.3] 396897764} {[gcr.io/google_containers/pause:0.8.0] 241656}]}}
07:17:09 Feb 23 07:17:03.451: INFO:
07:17:09 Logging kubelet events for node jenkins-e2e-minion-gjop
07:17:09 Feb 23 07:17:03.464: INFO:
07:17:09 Logging pods the kubelet thinks is on node jenkins-e2e-minion-gjop
07:17:09 Feb 23 07:17:03.573: INFO: nginx-controller-ugxfw started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: pfpod started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: client-containers-7825e4f5-da40-11e5-917d-42010af01555 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: monitoring-influxdb-grafana-v3-s4zvp started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: kube-proxy-jenkins-e2e-minion-gjop started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: heapster-v14-pcau0 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: fluentd-elasticsearch-jenkins-e2e-minion-gjop started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: foo-gso08 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: pod-79647c34-da40-11e5-9e63-42010af01555 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: pod-configmaps-795a4b3f-da40-11e5-88c3-42010af01555 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: pod780e3fb2-da40-11e5-b787-42010af01555 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.573: INFO: kibana-logging-v1-x0fzh started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.825: INFO: ERROR kubelet_docker_errors{operation_type="info"} => 1 @[0]
07:17:09 Feb 23 07:17:03.825: INFO: ERROR kubelet_docker_errors{operation_type="inspect_image"} => 20 @[0]
07:17:09 Feb 23 07:17:03.825: INFO: ERROR kubelet_docker_errors{operation_type="list_containers"} => 36 @[0]
07:17:09 Feb 23 07:17:03.825: INFO: ERROR kubelet_docker_errors{operation_type="list_images"} => 6 @[0]
07:17:09 Feb 23 07:17:03.825: INFO: ERROR kubelet_docker_errors{operation_type="pull_image"} => 2 @[0]
07:17:09 Feb 23 07:17:03.825: INFO: ERROR kubelet_docker_errors{operation_type="stop_container"} => 1 @[0]
07:17:09 Feb 23 07:17:03.825: INFO: ERROR kubelet_docker_errors{operation_type="version"} => 24 @[0]
07:17:09 Feb 23 07:17:03.826: INFO:
07:17:09 Latency metrics for node jenkins-e2e-minion-gjop
07:17:09 Feb 23 07:17:03.826: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.99 Latency:1m9.824686s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.9 Latency:52.910615s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:create Method:pod_worker_latency_microseconds Quantile:0.99 Latency:51.304079s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:create Method:pod_worker_latency_microseconds Quantile:0.9 Latency:51.304079s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:SyncPod Method:container_manager_latency_microseconds Quantile:0.99 Latency:51.295383s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:sync Method:pod_worker_latency_microseconds Quantile:0.99 Latency:47.065565s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:pull_image Method:docker_operations_latency_microseconds Quantile:0.99 Latency:45.90737s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation: Method:pod_worker_start_latency_microseconds Quantile:0.99 Latency:35.210061s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:create Method:pod_worker_latency_microseconds Quantile:0.5 Latency:31.659999s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:SyncPod Method:container_manager_latency_microseconds Quantile:0.9 Latency:31.646042s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:sync Method:pod_worker_latency_microseconds Quantile:0.9 Latency:29.831946s}
07:17:09 Feb 23 07:17:03.826: INFO: {Operation:pull_image Method:docker_operations_latency_microseconds Quantile:0.9 Latency:29.088885s}
07:17:09 Feb 23 07:17:03.826: INFO:
07:17:09 Logging node info for node jenkins-e2e-minion-w7f5
07:17:09 Feb 23 07:17:03.831: INFO: Node Info: &{{ } {jenkins-e2e-minion-w7f5 /api/v1/nodes/jenkins-e2e-minion-w7f5 2b781dda-da40-11e5-bb5a-42010af00002 927 0 2016-02-23 07:14:44 -0800 PST <nil> <nil> map[beta.kubernetes.io/instance-type:n1-standard-2 failure-domain.beta.kubernetes.io/region:us-central1 failure-domain.beta.kubernetes.io/zone:us-central1-f kubernetes.io/hostname:jenkins-e2e-minion-w7f5 master:] map[]} {10.245.2.0/24 5512211706074314555 gce://k8s-jkns-e2e-gce/us-central1-f/jenkins-e2e-minion-w7f5 false} {map[cpu:{2.000 DecimalSI} memory:{7864139776.000 BinarySI} pods:{110.000 DecimalSI}] map[cpu:{2.000 DecimalSI} memory:{7864139776.000 BinarySI} pods:{110.000 DecimalSI}] [{OutOfDisk False 2016-02-23 07:17:03 -0800 PST 2016-02-23 07:14:44 -0800 PST KubeletHasSufficientDisk kubelet has sufficient disk space available} {Ready True 2016-02-23 07:17:03 -0800 PST 2016-02-23 07:15:32 -0800 PST KubeletReady kubelet is posting ready status}] [{InternalIP 10.240.0.4} {ExternalIP 104.154.49.202}] {{10250}} { 03BE766C-FE24-8851-6BB8-D6E3075909E4 ccc4ea9f-66cf-465a-8fe6-58b76a524f88 3.16.0-4-amd64 Debian GNU/Linux 7 (wheezy) docker://1.9.1 v1.2.0-alpha.8.200+7f1b699880a3d4 v1.2.0-alpha.8.200+7f1b699880a3d4} [{[gcr.io/google_containers/kube-proxy:0a7bf1781f033fc04e110c3cd8505785] 165640277} {[gcr.io/google_containers/fluentd-elasticsearch:1.14] 562034622} {[gcr.io/google_containers/busybox:1.24] 1113554} {[gcr.io/google_containers/kube2sky:1.12] 24482187} {[gcr.io/google_containers/elasticsearch:1.8] 410989305} {[gcr.io/google_containers/mounttest:0.6] 2084693} {[gcr.io/google_containers/mounttest:0.5] 1718853} {[gcr.io/google_containers/skydns:2015-10-13-8c72f8c] 40551394} {[gcr.io/google_containers/pause:2.0] 350164} {[gcr.io/google_containers/exechealthz:1.0] 7099444} {[gcr.io/google_containers/mounttest:0.2] 1752375} {[gcr.io/google_containers/etcd:2.0.9] 12819040} {[gcr.io/google_containers/pause:0.8.0] 241656} {[b.gcr.io/k8s_authenticated_test/serve_hostname:1.1] 4522409}]}}
07:17:09 Feb 23 07:17:03.832: INFO:
07:17:09 Logging kubelet events for node jenkins-e2e-minion-w7f5
07:17:09 Feb 23 07:17:03.846: INFO:
07:17:09 Logging pods the kubelet thinks is on node jenkins-e2e-minion-w7f5
07:17:09 Feb 23 07:17:03.863: INFO: elasticsearch-logging-v1-nxkc6 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: fluentd-elasticsearch-jenkins-e2e-minion-w7f5 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: redis-master-kje8q started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: pod-host-path-test started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: nginx-controller-t6txl started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: nginx started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: my-hostname-private-78025aec-da40-11e5-a865-42010af01555-kwky7 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: nginx-controller-bwora started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: kube-dns-v10-x0rod started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:03.863: INFO: kube-proxy-jenkins-e2e-minion-w7f5 started at <nil> (0 container statuses recorded)
07:17:09 Feb 23 07:17:04.343: INFO: ERROR kubelet_docker_errors{operation_type="info"} => 1 @[0]
07:17:09 Feb 23 07:17:04.343: INFO: ERROR kubelet_docker_errors{operation_type="inspect_image"} => 17 @[0]
07:17:09 Feb 23 07:17:04.343: INFO: ERROR kubelet_docker_errors{operation_type="list_containers"} => 32 @[0]
07:17:09 Feb 23 07:17:04.343: INFO: ERROR kubelet_docker_errors{operation_type="list_images"} => 5 @[0]
07:17:09 Feb 23 07:17:04.343: INFO: ERROR kubelet_docker_errors{operation_type="stop_container"} => 5 @[0]
07:17:09 Feb 23 07:17:04.343: INFO: ERROR kubelet_docker_errors{operation_type="version"} => 22 @[0]
07:17:09 Feb 23 07:17:04.343: INFO:
07:17:09 Latency metrics for node jenkins-e2e-minion-w7f5
07:17:09 Feb 23 07:17:04.343: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.99 Latency:43.696016s}
07:17:09 Feb 23 07:17:04.343: INFO: {Operation: Method:pod_start_latency_microseconds Quantile:0.9 Latency:40.017824s}
07:17:09 Feb 23 07:17:04.344: INFO: {Operation: Method:pod_worker_start_latency_microseconds Quantile:0.99 Latency:40.017388s}
07:17:09 Feb 23 07:17:04.344: INFO: {Operation:create Method:pod_worker_latency_microseconds Quantile:0.99 Latency:31.494667s}
07:17:09 Feb 23 07:17:04.344: INFO: {Operation:create Method:pod_worker_latency_microseconds Quantile:0.9 Latency:31.494667s}
07:17:09 Feb 23 07:17:04.344: INFO: {Operation:SyncPod Method:container_manager_latency_microseconds Quantile:0.99 Latency:31.484782s}
07:17:09 Feb 23 07:17:04.344: INFO: {Operation:pull_image Method:docker_operations_latency_microseconds Quantile:0.99 Latency:29.420866s}
07:17:09 Feb 23 07:17:04.344: INFO: {Operation:sync Method:pod_worker_latency_microseconds Quantile:0.99 Latency:29.189764s}
07:17:09 Feb 23 07:17:04.344: INFO: {Operation:pull_image Method:docker_operations_latency_microseconds Quantile:0.9 Latency:28.506516s}
07:17:09 Feb 23 07:17:04.344: INFO: Waiting up to 1m0s for all nodes to be ready
07:17:09 STEP: Destroying namespace "e2e-tests-port-forwarding-vep4r" for this suite.
07:17:09 W0223 07:17:04.418253 31107 request.go:627] Throttling request took 58.08125ms, request: https://104.197.61.15/api/v1/namespaces/e2e-tests-port-forwarding-vep4r
07:17:09
07:17:09
07:17:09 • Failure [18.563 seconds]
07:17:09 Port forwarding
07:17:09 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:240
07:17:09 With a server that expects a client request
07:17:09 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:203
07:17:09 should support a client that connects, sends no data, and disconnects [Conformance] [It]
07:17:09 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:156
07:17:09
07:17:09 Feb 23 07:17:02.920: Missing "Accepted client connection" from log:
07:17:09
07:17:09 /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/portforward.go:250
07:17:09 ------------------------------
</code></pre></div>
<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></p> | 1 |
<p dir="auto">Hi, may I ask whether or not this can be made more flexible?</p>
<p dir="auto">We have a project structure that puts the app's content inside the <strong>wwwroot/app</strong> directory that also contains the HTMLs etc, so having a seperate, forced "scripts" directory which outputs there is nothing more than an (unnecessary?) workaround.</p>
<p dir="auto">The structure is like the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- wwwroot
- app
app.ts
- module
module.ts
- controllers (*.ts)
- services (*.ts)
- views (*.html)
index.html "><pre class="notranslate"><code class="notranslate">- wwwroot
- app
app.ts
- module
module.ts
- controllers (*.ts)
- services (*.ts)
- views (*.html)
index.html
</code></pre></div>
<p dir="auto">It would be great to have the tsconfig.json just in the "app" directory and it then compiles all .ts that are anywhere below that path, like it is the case with the tsconfig right now, however forced to expect them in the "scripts" dir.</p>
<p dir="auto">Honestly, I think compile-on-save seems unnecessary given the presence of a tsconfig file. The regular way seems way better since when building the project it compiles the TS if missing, compile-on-save seems not to (plus you'd have to expect team members to make sure to enable it and go through all their files).</p>
<p dir="auto">It would be a great help to be able to drop a tsconfig.json in <strong>any</strong> directory, not just the (seemingly) hard-coded "scripts" directory, or at least being able to adjust this path.</p>
<p dir="auto">I tested this with the RC 1 Update 1 and it is quite unflexible there. If there is progress made in that area, please let me know.</p>
<p dir="auto">Thanks in advance and best regards,<br>
chris</p> | <p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.9.0-dev / nightly (1.9.0-dev.20160311)</p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A
{
public Foo($value : any) {...}
}
class B extends A
{
public Foo($value : any) {...}
public Bar()
{
var that = this;
// #1: Can't hold a reference on super.
// var base = super; // Error.
var baseFooFuntion = super.Foo;
Object.someMethod(function()
{
// #2: Is somehow not calling the method with the correct arguments?!?
baseFooFuntion(42);
// And you cant use super.Foo(42); => 'super' can only be referenced in members of derived classes or object literal expressions.
// So that it produces an error is fine.
});
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">A</span>
<span class="pl-kos">{</span>
<span class="pl-k">public</span> <span class="pl-en">Foo</span><span class="pl-kos">(</span><span class="pl-s1">$value</span> : <span class="pl-smi">any</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">class</span> <span class="pl-smi">B</span> <span class="pl-k">extends</span> <span class="pl-smi">A</span>
<span class="pl-kos">{</span>
<span class="pl-k">public</span> <span class="pl-en">Foo</span><span class="pl-kos">(</span><span class="pl-s1">$value</span> : <span class="pl-smi">any</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>...<span class="pl-kos">}</span>
<span class="pl-k">public</span> <span class="pl-en">Bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">that</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">;</span>
<span class="pl-c">// #1: Can't hold a reference on super.</span>
<span class="pl-c">// var base = super; // Error.</span>
<span class="pl-k">var</span> <span class="pl-s1">baseFooFuntion</span> <span class="pl-c1">=</span> <span class="pl-smi">super</span><span class="pl-kos">.</span><span class="pl-c1">Foo</span><span class="pl-kos">;</span>
<span class="pl-smi">Object</span><span class="pl-kos">.</span><span class="pl-en">someMethod</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-c">// #2: Is somehow not calling the method with the correct arguments?!?</span>
<span class="pl-en">baseFooFuntion</span><span class="pl-kos">(</span><span class="pl-c1">42</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// And you cant use super.Foo(42); => 'super' can only be referenced in members of derived classes or object literal expressions.</span>
<span class="pl-c">// So that it produces an error is fine.</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 behavior:</strong></p>
<p dir="auto">baseFooFuntion(42); call should work.</p>
<p dir="auto"><strong>Actual behavior:</strong></p>
<p dir="auto">Not working because arguments are not passed correctly.</p> | 0 |
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>no</td>
</tr>
<tr>
<td>Feature request?</td>
<td>yes</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>4.1</td>
</tr>
</tbody>
</table>
<p dir="auto">As reported in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="260021947" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony-docs/issues/8420" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony-docs/issues/8420/hovercard" href="https://github.com/symfony/symfony-docs/issues/8420">symfony/symfony-docs#8420</a> PdoSessionHandler allows using PDO DSN ... which are completely different from the Doctrine DSN used in modern Symfony apps.</p>
<p dir="auto">Adding Doctrine DSN support without breaking things would be simple because it's easy to detect which of the two DSN are being used. Is this something we want to do? Thanks!</p> | <p dir="auto">Follup of <a href="https://github.com/symfony/symfony/pull/10921#issuecomment-44195569" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/10921/hovercard">this comment</a>:</p>
<p dir="auto">Something is missing since a long time in the configuration of the prod environment for error handling: the <code class="notranslate">ErrorsLoggersListener</code> does a <code class="notranslate">ErrorHandler::setLogger()</code>, but <code class="notranslate">ErrorHandler::register()</code> is never called, so no logging can ever happen, except the one done by the native PHP handler.</p>
<p dir="auto">This led me to two points:</p>
<ul dir="auto">
<li>I think we should always call <code class="notranslate">ErrorHandler::register()</code>, and use <code class="notranslate">set_error_handler()</code>'s second argument to catch only what we want to catch (thus no perf impact in prod).</li>
<li>Does Symfony have recommended settings for <code class="notranslate">log_errors</code> and <code class="notranslate">error_log</code> ini settings? Because IMHO it could be a good idea to put native php logs in <code class="notranslate">app/logs/</code>, <em>if</em> the settings are not configured.</li>
</ul> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/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 am added some style to make <code class="notranslate">MenuItem</code> bit smaller, like <code class="notranslate">MenuItem sizes</code> (not find about this property)</p>
<div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".small-menu-item {
height: 36px !important;
min-height: 36px !important;
line-height: 36px !important;
}"><pre class="notranslate">.<span class="pl-c1">small-menu-item</span> {
<span class="pl-c1">height</span><span class="pl-kos">:</span> <span class="pl-c1">36<span class="pl-smi">px</span></span> <span class="pl-k">!important</span>;
<span class="pl-c1">min-height</span><span class="pl-kos">:</span> <span class="pl-c1">36<span class="pl-smi">px</span></span> <span class="pl-k">!important</span>;
<span class="pl-c1">line-height</span><span class="pl-kos">:</span> <span class="pl-c1">36<span class="pl-smi">px</span></span> <span class="pl-k">!important</span>;
}</pre></div>
<p dir="auto">then used</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const AppBarMenu = (props) => {
return (
<IconMenu
{...props}
iconButtonElement={
<IconButton>
<MoreVertIcon/>
</IconButton>
}
targetOrigin={{ horizontal: "right", vertical: "top" }}
anchorOrigin={{ horizontal: "right", vertical: "top" }}
>
<Subheader><FontIcon className="material-icons">help outline</FontIcon>Help</Subheader>
<MenuItem className='small-menu-item' containerElement={<Link to="/about" />} primaryText="About" />
<MenuItem className='small-menu-item' containerElement={<Link to="/contact" />}
primaryText="Contact"
/>
</IconMenu>
);
}
AppBarMenu.muiName = 'IconMenu'
// other codes"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">AppBarMenu</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">=></span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">IconMenu</span>
<span class="pl-kos">{</span>...<span class="pl-s1">props</span><span class="pl-kos">}</span>
<span class="pl-c1">iconButtonElement</span><span class="pl-c1">=</span><span class="pl-kos">{</span>
<span class="pl-c1"><</span><span class="pl-ent">IconButton</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">MoreVertIcon</span><span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">IconButton</span><span class="pl-c1">></span>
<span class="pl-kos">}</span>
<span class="pl-c1">targetOrigin</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span> <span class="pl-c1">horizontal</span>: <span class="pl-s">"right"</span><span class="pl-kos">,</span> <span class="pl-c1">vertical</span>: <span class="pl-s">"top"</span> <span class="pl-kos">}</span><span class="pl-kos">}</span>
<span class="pl-c1">anchorOrigin</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span> <span class="pl-c1">horizontal</span>: <span class="pl-s">"right"</span><span class="pl-kos">,</span> <span class="pl-c1">vertical</span>: <span class="pl-s">"top"</span> <span class="pl-kos">}</span><span class="pl-kos">}</span>
<span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">Subheader</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">FontIcon</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"material-icons"</span><span class="pl-c1">></span>help outline<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">FontIcon</span><span class="pl-c1">></span>Help<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">Subheader</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">'small-menu-item'</span> <span class="pl-c1">containerElement</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1"><</span><span class="pl-ent">Link</span> <span class="pl-c1">to</span><span class="pl-c1">=</span><span class="pl-s">"/about"</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">}</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">"About"</span> <span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">'small-menu-item'</span> <span class="pl-c1">containerElement</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1"><</span><span class="pl-ent">Link</span> <span class="pl-c1">to</span><span class="pl-c1">=</span><span class="pl-s">"/contact"</span> <span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">}</span>
<span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">"Contact"</span>
<span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">IconMenu</span><span class="pl-c1">></span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-v">AppBarMenu</span><span class="pl-kos">.</span><span class="pl-c1">muiName</span> <span class="pl-c1">=</span> <span class="pl-s">'IconMenu'</span>
<span class="pl-c">// other codes</span></pre></div>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3511344/34639445-555d73a0-f302-11e7-9efa-25b2928a30f4.PNG"><img src="https://user-images.githubusercontent.com/3511344/34639445-555d73a0-f302-11e7-9efa-25b2928a30f4.PNG" alt="11" style="max-width: 100%;"></a><br>
but,</p>
<ul dir="auto">
<li>The centerY of icon is close to top of text, but should be close to <code class="notranslate">centerY</code> of text</li>
<li><code class="notranslate">width</code> of <code class="notranslate">IconMenu</code> automatically becomes much longer</li>
</ul>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Fix the width, should not change the width of <code class="notranslate">IconMenu</code></li>
<li>Fix layout</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">I am tried to make option (click to button, then show menu items) with some icon (looks much beatiful)</p>
<h2 dir="auto">Your Environment</h2>
<p dir="auto">Node.js 9.x<br>
Parcel bundler 1.4.1</p>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>0.20</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 62</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table>
<h1 dir="auto">my note</h1>
<p dir="auto">It's my first application i'm trying to build the with <code class="notranslate">Material UI</code> and your design implementation the best one, i'm very love, especially <code class="notranslate">Ripple effect</code></p> | <h3 dir="auto">Problem description</h3>
<p dir="auto">Can't get event.target.id on chrome when clicking on the text part of a button, but works when clicking on the edge, it doesn't work at all in earlier releases,<br>
could you fix this (in both versions )? I'm sure it's not something that huge, it works perfectly on firefox, but we need all recent browsers working</p> | 0 |
<p dir="auto"><strong>Don't you think the dependency injection framework needs a singleton type?</strong></p>
<p dir="auto">I checked the documentation and as I can see there is no option for creating a class as a singleton. If I want to pass in a class as a dependency it will be created every time. So a feature to create singleton and if that already exists just pass it in as a dependency would be great. Because if you create a huge dependency tree than you have to specify one-by-one to make singletons.</p>
<p dir="auto">Maybe I missed something how to do that but if not that could be a new feature.</p> | <h3 dir="auto">Example</h3>
<p dir="auto">Must install <code class="notranslate">qcelemental</code> first! Pardon that I'm not able to take the core issues and create a simpler example without this external package; however, this demonstrates the core problem well.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pip install qcelemental"><pre class="notranslate">pip install qcelemental</pre></div>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from pydantic import BaseModel
from fastapi.encoders import jsonable_encoder
from qcelemental.models import Molecule
from numpy import array, ndarray
molecule_data = {
"schema_name": "qcschema_molecule",
"schema_version": 2,
"validated": True,
"symbols": array(["O", "H", "H"], dtype="<U1"),
"geometry": array(
[
[0.0, 0.0, 0.0],
[0.52421003, 1.68733646, 0.48074633],
[1.14668581, -0.45032174, -1.35474466],
]
),
"name": "IUPAC oxidane",
"molecular_charge": 0.0,
"molecular_multiplicity": 1,
"fix_com": False,
"fix_orientation": False,
"provenance": {
"creator": "QCElemental",
"version": "v0.17.0",
"routine": "qcelemental.molparse.from_string",
},
}
class NestedMolecule(BaseModel):
molecule: Molecule
class NestedMoleculeRepeatedEncoders(NestedMolecule):
class Config:
json_encoders = {ndarray: lambda x: x.tolist()}
molecule = Molecule.parse_obj(molecule_data)
nested_molecule_repeat_encoders = NestedMoleculeRepeatedEncoders(molecule=molecule)
nested_molecule = NestedMolecule(molecule=molecule)
# Works great! Fastapi picks up the custom encoders/serialization methods on Molecule and can encode the object and ultimately return a JSONResponse (if this were the response_model on a path)
jsonable_encoder(molecule)
# Works! But why do I have to duplicate these encoders that already exist on the Molecule object??
jsonable_encoder(nested_molecule_repeat_encoders)
# Fails to properly encode numpy.ndarray field at nested_molecule.molecule.geometry. A JSONResponse with response_model=NestedMolecule would fail.
jsonable_encoder(nested_molecule)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">pydantic</span> <span class="pl-k">import</span> <span class="pl-v">BaseModel</span>
<span class="pl-k">from</span> <span class="pl-s1">fastapi</span>.<span class="pl-s1">encoders</span> <span class="pl-k">import</span> <span class="pl-s1">jsonable_encoder</span>
<span class="pl-k">from</span> <span class="pl-s1">qcelemental</span>.<span class="pl-s1">models</span> <span class="pl-k">import</span> <span class="pl-v">Molecule</span>
<span class="pl-k">from</span> <span class="pl-s1">numpy</span> <span class="pl-k">import</span> <span class="pl-s1">array</span>, <span class="pl-s1">ndarray</span>
<span class="pl-s1">molecule_data</span> <span class="pl-c1">=</span> {
<span class="pl-s">"schema_name"</span>: <span class="pl-s">"qcschema_molecule"</span>,
<span class="pl-s">"schema_version"</span>: <span class="pl-c1">2</span>,
<span class="pl-s">"validated"</span>: <span class="pl-c1">True</span>,
<span class="pl-s">"symbols"</span>: <span class="pl-en">array</span>([<span class="pl-s">"O"</span>, <span class="pl-s">"H"</span>, <span class="pl-s">"H"</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">"<U1"</span>),
<span class="pl-s">"geometry"</span>: <span class="pl-en">array</span>(
[
[<span class="pl-c1">0.0</span>, <span class="pl-c1">0.0</span>, <span class="pl-c1">0.0</span>],
[<span class="pl-c1">0.52421003</span>, <span class="pl-c1">1.68733646</span>, <span class="pl-c1">0.48074633</span>],
[<span class="pl-c1">1.14668581</span>, <span class="pl-c1">-</span><span class="pl-c1">0.45032174</span>, <span class="pl-c1">-</span><span class="pl-c1">1.35474466</span>],
]
),
<span class="pl-s">"name"</span>: <span class="pl-s">"IUPAC oxidane"</span>,
<span class="pl-s">"molecular_charge"</span>: <span class="pl-c1">0.0</span>,
<span class="pl-s">"molecular_multiplicity"</span>: <span class="pl-c1">1</span>,
<span class="pl-s">"fix_com"</span>: <span class="pl-c1">False</span>,
<span class="pl-s">"fix_orientation"</span>: <span class="pl-c1">False</span>,
<span class="pl-s">"provenance"</span>: {
<span class="pl-s">"creator"</span>: <span class="pl-s">"QCElemental"</span>,
<span class="pl-s">"version"</span>: <span class="pl-s">"v0.17.0"</span>,
<span class="pl-s">"routine"</span>: <span class="pl-s">"qcelemental.molparse.from_string"</span>,
},
}
<span class="pl-k">class</span> <span class="pl-v">NestedMolecule</span>(<span class="pl-v">BaseModel</span>):
<span class="pl-s1">molecule</span>: <span class="pl-v">Molecule</span>
<span class="pl-k">class</span> <span class="pl-v">NestedMoleculeRepeatedEncoders</span>(<span class="pl-v">NestedMolecule</span>):
<span class="pl-k">class</span> <span class="pl-v">Config</span>:
<span class="pl-s1">json_encoders</span> <span class="pl-c1">=</span> {<span class="pl-s1">ndarray</span>: <span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-s1">x</span>.<span class="pl-en">tolist</span>()}
<span class="pl-s1">molecule</span> <span class="pl-c1">=</span> <span class="pl-v">Molecule</span>.<span class="pl-en">parse_obj</span>(<span class="pl-s1">molecule_data</span>)
<span class="pl-s1">nested_molecule_repeat_encoders</span> <span class="pl-c1">=</span> <span class="pl-v">NestedMoleculeRepeatedEncoders</span>(<span class="pl-s1">molecule</span><span class="pl-c1">=</span><span class="pl-s1">molecule</span>)
<span class="pl-s1">nested_molecule</span> <span class="pl-c1">=</span> <span class="pl-v">NestedMolecule</span>(<span class="pl-s1">molecule</span><span class="pl-c1">=</span><span class="pl-s1">molecule</span>)
<span class="pl-c"># Works great! Fastapi picks up the custom encoders/serialization methods on Molecule and can encode the object and ultimately return a JSONResponse (if this were the response_model on a path)</span>
<span class="pl-en">jsonable_encoder</span>(<span class="pl-s1">molecule</span>)
<span class="pl-c"># Works! But why do I have to duplicate these encoders that already exist on the Molecule object??</span>
<span class="pl-en">jsonable_encoder</span>(<span class="pl-s1">nested_molecule_repeat_encoders</span>)
<span class="pl-c"># Fails to properly encode numpy.ndarray field at nested_molecule.molecule.geometry. A JSONResponse with response_model=NestedMolecule would fail.</span>
<span class="pl-en">jsonable_encoder</span>(<span class="pl-s1">nested_molecule</span>)</pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">Fastapi appears to correctly utilize the custom json encoding/serialization methods found on <code class="notranslate">Molecule</code>. Great! However, if I nest a <code class="notranslate">Molecule</code> inside another Pydantic model, fastapi does not correctly pick up these serialization customizations. In order to use a <code class="notranslate">NestedMolecule</code> I have to add custom <code class="notranslate">json_encoders</code> to the <code class="notranslate">Config</code> class, as seen on <code class="notranslate">NestedMoleculeRepeatedEncoders</code>. But why do I have to do this? Seems fastapi should pick up the custom encoders on nested Pydantic objects just like it does on the original <code class="notranslate">Molecule</code> object. I believe this is a bug.</p>
<p dir="auto">One way to help see what's going on here is to add <code class="notranslate">print(type(obj), obj)</code> on line 37 of <code class="notranslate">fastapi.encoders</code> to see how the <code class="notranslate">jsonable_encoder</code> function is correctly handing the first two cases and fails the third case.</p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>OS: MacOS:</li>
<li>FastAPI Version 0.62.0:</li>
<li>Python version: 3.9.0</li>
</ul> | 0 |
<p dir="auto">Let's say I have a <code class="notranslate"><div></code> inside a dropdown-accordion.</p>
<p dir="auto">The problem is, in IE9 or 9+, the panel when collapsed doesn't hide again. It only hides when some other section is clicked.</p>
<p dir="auto">How do I know programatically that the panel currently is shown. So that when it is shown, i can programtically hide it back.</p>
<p dir="auto">Here is the fiddle - <a href="http://www.bootply.com/jaAVossYuF" rel="nofollow">http://www.bootply.com/jaAVossYuF</a></p>
<p dir="auto">It works fine in fiddle. I have mentioned the issue there as well.</p> | <p dir="auto">I am in need to use the data-container="body" on tooltips.js but I have tooltips with different colors in different sections of my page. So it is quite hard to set different styles for these. Better would be if one could just append the color inline ... just a thought!</p> | 0 |
<p dir="auto">User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36</code>.</p>
<p dir="auto">While typing code, insertion point will sometimes move to Line 1. The problem is difficult to recreate, but it's happened so far when I've inputted backspace, ctrl+backspace, home + backspace, shift + 7 (&). This problem has occurred across multiple challenges and only after the implementation of the new site. I've tried controlling for user error by locking my touchpad, problem still persists with occasional frequency.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> | <p dir="auto">It's not a problem with my coding, it's just with each new challenge I try to write a code, the cursor jumps into another line, and often refuses to write unless I write and delete somewhere else!</p>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/warn-your-users-of-a-dangerous-action#?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%20btn-primary%22%3ELike%3C%2Fbutton%3E%0A%20%20%3Cbutton%20class%3D%22btn%20btn-block%20btn-info%22%3EInfo%3C%2Fbutton%3E%0A%20%20%3Cp%3EThings%20cats%20love%3A%3C%2Fp%3E%0A%20%20%0A%20%20%3Cul%3E%0A%20%20%20%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">Warn your Users of a Dangerous Action</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.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;
}
</style>
<div class="container-fluid">
<h2 class="red-text text-center">CatPhotoApp</h2>
<p>Click here for <a href="#">cat photos</a>.</p>
<a href="#"><img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>
<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">
<button class="btn btn-block btn-primary">Like</button>
<button class="btn btn-block btn-info">Info</button>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>
"><pre class="notranslate"><span class="pl-kos"><</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">></span>
<span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></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"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</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">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Click here for <span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span>cat photos<span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span><span class="pl-kos"><</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">></span><span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">https://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">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block btn-primary</span>"<span class="pl-kos">></span>Like<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block btn-info</span>"<span class="pl-kos">></span>Info<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Things cats love:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>cat nip<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>laser pointers<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>lasagna<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Top 3 things cats hate:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>flea treatment<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>thunder<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>other cats<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</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">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</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">></span> Indoor<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</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">></span> Outdoor<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</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">></span> Loving<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</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">></span> Lazy<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</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">></span> Crazy<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</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">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">></span>Submit<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">form</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div> | 0 |
<p dir="auto">example: <code class="notranslate">pip install celery[sqs]</code> doesn't install <code class="notranslate">kombu[sqs]</code><br>
thus <code class="notranslate">pycurl</code> ends up to be missing.</p>
<p dir="auto">What would be the best way to solve this ? knowing that we might be interested by several flavors at the same time like <code class="notranslate">celery[sqs,msgpack]</code>.</p> | <h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://github.com/celery/celery/discussions">discussions forum</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="https://docs.celeryq.dev/en/master/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"> 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"> 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 & 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 & Settings</h2>
<p dir="auto"><strong>Celery version</strong>: 5.2.6 (dawn-chorus)</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="software -> celery:5.2.6 (dawn-chorus) kombu:5.2.3 py:3.10.0
billiard:3.6.4.0 py-amqp:5.0.9
platform -> system:Windows arch:64bit, WindowsPE
kernel version:10 imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:redis://localhost:6379/0
broker_url: 'amqp://user:********@localhost:5672//'
task_create_missing_queues: True
task_acks_late: True
result_extended: True
result_expires: 3600
worker_send_task_events: True
result_backend: 'redis://localhost:6379/0'
deprecated_settings: None"><pre class="notranslate"><code class="notranslate">software -> celery:5.2.6 (dawn-chorus) kombu:5.2.3 py:3.10.0
billiard:3.6.4.0 py-amqp:5.0.9
platform -> system:Windows arch:64bit, WindowsPE
kernel version:10 imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:redis://localhost:6379/0
broker_url: 'amqp://user:********@localhost:5672//'
task_create_missing_queues: True
task_acks_late: True
result_extended: True
result_expires: 3600
worker_send_task_events: True
result_backend: 'redis://localhost:6379/0'
deprecated_settings: None
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<ol dir="auto">
<li>Create simplest docker compose with redis & rabbitMQ</li>
<li>run app with <code class="notranslate">celery --app=app worker --pool=solo --concurrency=1 -E --loglevel=INFO --queues=my_queue </code></li>
<li>run <code class="notranslate">python call.py</code></li>
<li>You see in retried task headers there in no <code class="notranslate">"custom_header": "yumy yum"</code></li>
</ol>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: 3.10.0</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><p dir="auto">Application app.py:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from functools import partial
from typing import Final
from celery import Task, Celery
BASE_CELERY_BROKER_URL = "amqp://user:pass@localhost:5672"
CELERY_RESULT_URL = "redis://localhost:6379/0"
def make_celery_worker_app_stub() -> partial[Celery]:
return partial(
Celery,
task_create_missing_queues=True,
task_acks_late=True,
result_extended=True,
result_expires=3600,
worker_send_task_events=True,
)
app: Final = make_celery_worker_app_stub()(
main=__name__,
result_backend=CELERY_RESULT_URL,
broker="%s" % (BASE_CELERY_BROKER_URL),
set_as_current=False,
)
@app.task(
bind=True,
queue="my_queue",
name="my_name:my_function",
acks_late=True,
task_reject_on_worker_lost=True,
autoretry_for=(Exception,),
retry_backoff=True,
max_retries=3,
task_time_limit=8,
)
def failing_function(
self: Task,
data
) -> None:
print(data) # prints hello
print(self.request.properties["application_headers"])
assert False == True
"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">functools</span> <span class="pl-k">import</span> <span class="pl-s1">partial</span>
<span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">Final</span>
<span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Task</span>, <span class="pl-v">Celery</span>
<span class="pl-v">BASE_CELERY_BROKER_URL</span> <span class="pl-c1">=</span> <span class="pl-s">"amqp://user:pass@localhost:5672"</span>
<span class="pl-v">CELERY_RESULT_URL</span> <span class="pl-c1">=</span> <span class="pl-s">"redis://localhost:6379/0"</span>
<span class="pl-k">def</span> <span class="pl-en">make_celery_worker_app_stub</span>() <span class="pl-c1">-></span> <span class="pl-s1">partial</span>[<span class="pl-v">Celery</span>]:
<span class="pl-k">return</span> <span class="pl-en">partial</span>(
<span class="pl-v">Celery</span>,
<span class="pl-s1">task_create_missing_queues</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-s1">task_acks_late</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-s1">result_extended</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-s1">result_expires</span><span class="pl-c1">=</span><span class="pl-c1">3600</span>,
<span class="pl-s1">worker_send_task_events</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
)
<span class="pl-s1">app</span>: <span class="pl-v">Final</span> <span class="pl-c1">=</span> <span class="pl-en">make_celery_worker_app_stub</span>()(
<span class="pl-s1">main</span><span class="pl-c1">=</span><span class="pl-s1">__name__</span>,
<span class="pl-s1">result_backend</span><span class="pl-c1">=</span><span class="pl-v">CELERY_RESULT_URL</span>,
<span class="pl-s1">broker</span><span class="pl-c1">=</span><span class="pl-s">"%s"</span> <span class="pl-c1">%</span> (<span class="pl-v">BASE_CELERY_BROKER_URL</span>),
<span class="pl-s1">set_as_current</span><span class="pl-c1">=</span><span class="pl-c1">False</span>,
)
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>(</span>
<span class="pl-en"> <span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,</span>
<span class="pl-en"> <span class="pl-s1">queue</span><span class="pl-c1">=</span><span class="pl-s">"my_queue"</span>,</span>
<span class="pl-en"> <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"my_name:my_function"</span>,</span>
<span class="pl-en"> <span class="pl-s1">acks_late</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,</span>
<span class="pl-en"> <span class="pl-s1">task_reject_on_worker_lost</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,</span>
<span class="pl-en"> <span class="pl-s1">autoretry_for</span><span class="pl-c1">=</span>(<span class="pl-v">Exception</span>,),</span>
<span class="pl-en"> <span class="pl-s1">retry_backoff</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,</span>
<span class="pl-en"> <span class="pl-s1">max_retries</span><span class="pl-c1">=</span><span class="pl-c1">3</span>,</span>
<span class="pl-en"> <span class="pl-s1">task_time_limit</span><span class="pl-c1">=</span><span class="pl-c1">8</span>,</span>
<span class="pl-en">)</span>
<span class="pl-k">def</span> <span class="pl-en">failing_function</span>(
<span class="pl-s1">self</span>: <span class="pl-v">Task</span>,
<span class="pl-s1">data</span>
) <span class="pl-c1">-></span> <span class="pl-c1">None</span>:
<span class="pl-en">print</span>(<span class="pl-s1">data</span>) <span class="pl-c"># prints hello</span>
<span class="pl-en">print</span>(<span class="pl-s1">self</span>.<span class="pl-s1">request</span>.<span class="pl-s1">properties</span>[<span class="pl-s">"application_headers"</span>])
<span class="pl-k">assert</span> <span class="pl-c1">False</span> <span class="pl-c1">==</span> <span class="pl-c1">True</span></pre></div>
<p dir="auto">Caller call.py:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery import Celery
BASE_CELERY_BROKER_URL = "amqp://user:pass@localhost:5672"
CELERY_RESULT_URL = "redis://localhost:6379/0"
def celery_app(
) -> Celery:
return Celery(
__name__,
result_backend=CELERY_RESULT_URL,
broker="%s" % (BASE_CELERY_BROKER_URL),
task_create_missing_queues=True,
celery_queue_ha_policy="all",
task_acks_late=True,
set_as_current=False,
result_extended=True,
)
client = celery_app()
options = {"headers": {
"custom_header": "yumy yum"
}}
sign = client.signature(
"my_name:my_function",
queue="my_queue",
args=("hello",),
options=options
)
sign.apply_async()
"><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-v">BASE_CELERY_BROKER_URL</span> <span class="pl-c1">=</span> <span class="pl-s">"amqp://user:pass@localhost:5672"</span>
<span class="pl-v">CELERY_RESULT_URL</span> <span class="pl-c1">=</span> <span class="pl-s">"redis://localhost:6379/0"</span>
<span class="pl-k">def</span> <span class="pl-en">celery_app</span>(
) <span class="pl-c1">-></span> <span class="pl-v">Celery</span>:
<span class="pl-k">return</span> <span class="pl-v">Celery</span>(
<span class="pl-s1">__name__</span>,
<span class="pl-s1">result_backend</span><span class="pl-c1">=</span><span class="pl-v">CELERY_RESULT_URL</span>,
<span class="pl-s1">broker</span><span class="pl-c1">=</span><span class="pl-s">"%s"</span> <span class="pl-c1">%</span> (<span class="pl-v">BASE_CELERY_BROKER_URL</span>),
<span class="pl-s1">task_create_missing_queues</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-s1">celery_queue_ha_policy</span><span class="pl-c1">=</span><span class="pl-s">"all"</span>,
<span class="pl-s1">task_acks_late</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-s1">set_as_current</span><span class="pl-c1">=</span><span class="pl-c1">False</span>,
<span class="pl-s1">result_extended</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
)
<span class="pl-s1">client</span> <span class="pl-c1">=</span> <span class="pl-en">celery_app</span>()
<span class="pl-s1">options</span> <span class="pl-c1">=</span> {<span class="pl-s">"headers"</span>: {
<span class="pl-s">"custom_header"</span>: <span class="pl-s">"yumy yum"</span>
}}
<span class="pl-s1">sign</span> <span class="pl-c1">=</span> <span class="pl-s1">client</span>.<span class="pl-en">signature</span>(
<span class="pl-s">"my_name:my_function"</span>,
<span class="pl-s1">queue</span><span class="pl-c1">=</span><span class="pl-s">"my_queue"</span>,
<span class="pl-s1">args</span><span class="pl-c1">=</span>(<span class="pl-s">"hello"</span>,),
<span class="pl-s1">options</span><span class="pl-c1">=</span><span class="pl-s1">options</span>
)
<span class="pl-s1">sign</span>.<span class="pl-en">apply_async</span>()</pre></div>
<p dir="auto">Log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2022-05-12 22:37:20,703: INFO/MainProcess] Connected to amqp://user:**@127.0.0.1:5672//
[2022-05-12 22:37:20,736: INFO/MainProcess] mingle: searching for neighbors
[2022-05-12 22:37:21,764: INFO/MainProcess] mingle: all alone
[2022-05-12 22:37:21,799: INFO/MainProcess] celery@DESKTOP-51C03JP ready.
[2022-05-12 22:38:47,431: INFO/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] received
[2022-05-12 22:38:47,432: WARNING/MainProcess] hello
[2022-05-12 22:38:47,432: WARNING/MainProcess] {'lang': 'py', 'task': 'my_name:my_function', 'id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'shadow': None, 'eta': None, 'expires': None, 'group': None, 'group_index': None, 'retries': 0, 'timelimit': [None, None], 'root_id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'parent_id': None, 'argsrepr': "('hello',)", 'kwargsrepr': '{}', 'origin': 'gen5572@DESKTOP-51C03JP', 'ignore_result': False, 'custom_header': 'yumy yum'}
[2022-05-12 22:38:47,468: INFO/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] retry: Retry in 1s: AssertionError()
[2022-05-12 22:38:47,469: INFO/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] received
[2022-05-12 22:38:48,446: WARNING/MainProcess] hello
[2022-05-12 22:38:48,447: WARNING/MainProcess] {'lang': 'py', 'task': 'my_name:my_function', 'id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'shadow': None, 'eta': '2022-05-12T20:38:48.433839+00:00', 'expires': None, 'group': None, 'group_index': None, 'retries': 1, 'timelimit': [None, None], 'root_id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'parent_id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'argsrepr': "('hello',)", 'kwargsrepr': '{}', 'origin': 'gen24336@DESKTOP-51C03JP', 'ignore_result': False}
[2022-05-12 22:38:48,470: INFO/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] received
[2022-05-12 22:38:48,473: INFO/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] retry: Retry in 1s: AssertionError()
[2022-05-12 22:38:49,464: WARNING/MainProcess] hello
[2022-05-12 22:38:49,465: WARNING/MainProcess] {'lang': 'py', 'task': 'my_name:my_function', 'id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'shadow': None, 'eta': '2022-05-12T20:38:49.447913+00:00', 'expires': None, 'group': None, 'group_index': None, 'retries': 2, 'timelimit': [None, None], 'root_id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'parent_id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'argsrepr': "('hello',)", 'kwargsrepr': '{}', 'origin': 'gen24336@DESKTOP-51C03JP', 'ignore_result': False}
[2022-05-12 22:38:49,468: INFO/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] received
[2022-05-12 22:38:49,469: WARNING/MainProcess] hello
[2022-05-12 22:38:49,469: INFO/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] retry: Retry in 0s: AssertionError()
[2022-05-12 22:38:49,469: WARNING/MainProcess] {'lang': 'py', 'task': 'my_name:my_function', 'id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'shadow': None, 'eta': None, 'expires': None, 'group': None, 'group_index': None, 'retries': 3, 'timelimit': [None, None], 'root_id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'parent_id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'argsrepr': "('hello',)", 'kwargsrepr': '{}', 'origin': 'gen24336@DESKTOP-51C03JP', 'ignore_result': False}
[2022-05-12 22:38:49,473: ERROR/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] raised unexpected: AssertionError()
Traceback (most recent call last):
File "C:\Users\liman\Anaconda3\envs\dimensions\lib\site-packages\celery\app\trace.py", line 451, in trace_task
R = retval = fun(*args, **kwargs)
File "C:\Users\liman\Anaconda3\envs\dimensions\lib\site-packages\celery\app\trace.py", line 734, in __protected_call__
return self.run(*args, **kwargs)
File "C:\Users\liman\Anaconda3\envs\dimensions\lib\site-packages\celery\app\autoretry.py", line 54, in run
ret = task.retry(exc=exc, **retry_kwargs)
File "C:\Users\liman\Anaconda3\envs\dimensions\lib\site-packages\celery\app\task.py", line 717, in retry
raise_with_context(exc)
File "C:\Users\liman\Anaconda3\envs\dimensions\lib\site-packages\celery\app\autoretry.py", line 34, in run
return task._orig_run(*args, **kwargs)
File "C:\Users\liman\Github\Tests\randoms\api.py", line 48, in failing_function
assert False == True
AssertionError"><pre class="notranslate"><code class="notranslate">[2022-05-12 22:37:20,703: INFO/MainProcess] Connected to amqp://user:**@127.0.0.1:5672//
[2022-05-12 22:37:20,736: INFO/MainProcess] mingle: searching for neighbors
[2022-05-12 22:37:21,764: INFO/MainProcess] mingle: all alone
[2022-05-12 22:37:21,799: INFO/MainProcess] celery@DESKTOP-51C03JP ready.
[2022-05-12 22:38:47,431: INFO/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] received
[2022-05-12 22:38:47,432: WARNING/MainProcess] hello
[2022-05-12 22:38:47,432: WARNING/MainProcess] {'lang': 'py', 'task': 'my_name:my_function', 'id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'shadow': None, 'eta': None, 'expires': None, 'group': None, 'group_index': None, 'retries': 0, 'timelimit': [None, None], 'root_id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'parent_id': None, 'argsrepr': "('hello',)", 'kwargsrepr': '{}', 'origin': 'gen5572@DESKTOP-51C03JP', 'ignore_result': False, 'custom_header': 'yumy yum'}
[2022-05-12 22:38:47,468: INFO/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] retry: Retry in 1s: AssertionError()
[2022-05-12 22:38:47,469: INFO/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] received
[2022-05-12 22:38:48,446: WARNING/MainProcess] hello
[2022-05-12 22:38:48,447: WARNING/MainProcess] {'lang': 'py', 'task': 'my_name:my_function', 'id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'shadow': None, 'eta': '2022-05-12T20:38:48.433839+00:00', 'expires': None, 'group': None, 'group_index': None, 'retries': 1, 'timelimit': [None, None], 'root_id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'parent_id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'argsrepr': "('hello',)", 'kwargsrepr': '{}', 'origin': 'gen24336@DESKTOP-51C03JP', 'ignore_result': False}
[2022-05-12 22:38:48,470: INFO/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] received
[2022-05-12 22:38:48,473: INFO/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] retry: Retry in 1s: AssertionError()
[2022-05-12 22:38:49,464: WARNING/MainProcess] hello
[2022-05-12 22:38:49,465: WARNING/MainProcess] {'lang': 'py', 'task': 'my_name:my_function', 'id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'shadow': None, 'eta': '2022-05-12T20:38:49.447913+00:00', 'expires': None, 'group': None, 'group_index': None, 'retries': 2, 'timelimit': [None, None], 'root_id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'parent_id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'argsrepr': "('hello',)", 'kwargsrepr': '{}', 'origin': 'gen24336@DESKTOP-51C03JP', 'ignore_result': False}
[2022-05-12 22:38:49,468: INFO/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] received
[2022-05-12 22:38:49,469: WARNING/MainProcess] hello
[2022-05-12 22:38:49,469: INFO/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] retry: Retry in 0s: AssertionError()
[2022-05-12 22:38:49,469: WARNING/MainProcess] {'lang': 'py', 'task': 'my_name:my_function', 'id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'shadow': None, 'eta': None, 'expires': None, 'group': None, 'group_index': None, 'retries': 3, 'timelimit': [None, None], 'root_id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'parent_id': 'bb7a8629-00d4-434d-b9d2-72162c2edbbf', 'argsrepr': "('hello',)", 'kwargsrepr': '{}', 'origin': 'gen24336@DESKTOP-51C03JP', 'ignore_result': False}
[2022-05-12 22:38:49,473: ERROR/MainProcess] Task my_name:my_function[bb7a8629-00d4-434d-b9d2-72162c2edbbf] raised unexpected: AssertionError()
Traceback (most recent call last):
File "C:\Users\liman\Anaconda3\envs\dimensions\lib\site-packages\celery\app\trace.py", line 451, in trace_task
R = retval = fun(*args, **kwargs)
File "C:\Users\liman\Anaconda3\envs\dimensions\lib\site-packages\celery\app\trace.py", line 734, in __protected_call__
return self.run(*args, **kwargs)
File "C:\Users\liman\Anaconda3\envs\dimensions\lib\site-packages\celery\app\autoretry.py", line 54, in run
ret = task.retry(exc=exc, **retry_kwargs)
File "C:\Users\liman\Anaconda3\envs\dimensions\lib\site-packages\celery\app\task.py", line 717, in retry
raise_with_context(exc)
File "C:\Users\liman\Anaconda3\envs\dimensions\lib\site-packages\celery\app\autoretry.py", line 34, in run
return task._orig_run(*args, **kwargs)
File "C:\Users\liman\Github\Tests\randoms\api.py", line 48, in failing_function
assert False == True
AssertionError
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">Expecting to keep custom headers when retrying the task</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">Not keeping custom task headers</p> | 0 |
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Linux Ubuntu 18.04.2 LTS:</li>
<li>TensorFlow installed from tar.gz source file</li>
<li>TensorFlow version: 2.0.0.alpha0</li>
<li>Python version: 3.5.2 (provided in Docker image)</li>
<li>Build inside Docker container (<a href="https://www.tensorflow.org/install/source#gpu_support_2" rel="nofollow">https://www.tensorflow.org/install/source#gpu_support_2</a>)</li>
<li>Bazel version - 0.19.2 (provided in docker image)</li>
<li>GCC/Compiler version (if compiling from source): gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11) (provided in docker image)</li>
<li>CUDA/cuDNN version: /usr/local/cuda-10.0 (provided in docker image)</li>
<li>GPU model and memory: i7 980x - no AVX instruction set so building locally with GPU support</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong><br>
The bazel build step fails with the following messages:</p>
<p dir="auto">root@67e84911cbdf:/tensorflow# bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package<br>
Starting local Bazel server and connecting to it...<br>
WARNING: The following configs were expanded more than once: [cuda]. For repeatable flags, repeats are counted twice and may lead to unexpected behavior.<br>
INFO: Repository rule 'build_bazel_rules_swift' returned: {"remote": "<a href="https://github.com/bazelbuild/rules_swift.git">https://github.com/bazelbuild/rules_swift.git</a>", "commit": "001736d056d7eae20f1f4da41bc9e6f036857296", "shallow_since": "2019-01-18", "init_submodules": False, "verbose": False, "strip_prefix": "", "patches": [], "patch_tool": "patch", "patch_args": ["-p0"], "patch_cmds": [], "name": "build_bazel_rules_swift"}<br>
ERROR: error loading package '': Extension file not found. Unable to load package for '//tensorflow:version_check.bzl': BUILD file not found on package path<br>
ERROR: error loading package '': Extension file not found. Unable to load package for '//tensorflow:version_check.bzl': BUILD file not found on package path<br>
INFO: Elapsed time: 8.103s<br>
INFO: 0 processes.<br>
FAILED: Build did NOT complete successfully (0 packages loaded)<br>
root@67e84911cbdf:</p>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p>
<p dir="auto">Following the instructions here: <a href="https://www.tensorflow.org/install/source#gpu_support_2" rel="nofollow">https://www.tensorflow.org/install/source#gpu_support_2</a></p>
<p dir="auto">NOTE: These instructions work fine for the included tf-1.12 source and I've used them with a different Docker image for tf-1.13/</p>
<ol dir="auto">
<li>Start a Docker container using this command to mount a tf-2.0.0 directory within Docker</li>
</ol>
<p dir="auto">docker run --runtime=nvidia -it -w /tensorflow -v /home/mark/Docker_Run:/mnt -v /home/mark/CODE/tensorflow-2.0.0-alpha0:/tensorflow_source -e HOST_PERMS="$(id -u):$(id -g)" tensorflow/tensorflow:devel-gpu-py3 bash</p>
<p dir="auto">This image provides python-3.5.2, bazel-0.19.2 & cuda-10. It has a /tensorflow_src directory with tf-1.12 and nothing in the /tensorflow directory.</p>
<ol start="2" dir="auto">
<li>Copy the tf-2.0.0-alpha0 code from the external mounted /tensorflow_source directory into the internal /tensorflow directory:</li>
</ol>
<p dir="auto">rm -rf /tensorflow<br>
mkdir /tensorflow<br>
cp -R /tensorflow_source/. /tensorflow</p>
<ol start="3" dir="auto">
<li>Run the configure step accepting all default values</li>
</ol>
<p dir="auto">cd /tensorflow<br>
./configure</p>
<ol start="4" dir="auto">
<li>Run the bazel build step which fails with the message above.</li>
</ol>
<p dir="auto">NOTE: I've looked at a lot of Docker images and felt this one had the right stuff other than the alpha0 tensorflow codebase. If there's a better docker image or a better way to get the alpha0 code into the Docker image than mounting it outside of Docker please advise.</p> | <p dir="auto"><strong>Describe the current behavior</strong><br>
Option values of <code class="notranslate">java_outer_classname</code> in <code class="notranslate">tensorflow/compiler/tf2xla/host_compute_metadata.proto</code> and <code class="notranslate">tensorflow/compiler/tf2xla/tf2xla.proto</code> are the same, result in protoc failure for Java:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> protoc: stdout: . stderr: tensorflow/compiler/xla/rpc/xla_service.proto: warning: Import tensorflow/compiler/xla/xla_data.proto but not used.
tensorflow/core/protobuf/replay_log.proto: warning: Import tensorflow/core/framework/graph.proto but not used.
tensorflow/core/protobuf/replay_log.proto: warning: Import tensorflow/core/protobuf/cluster.proto but not used.
org/tensorflow/tf2xla/Tf2XlaProtos.java: Tried to write the same file twice."><pre class="notranslate"><code class="notranslate">> protoc: stdout: . stderr: tensorflow/compiler/xla/rpc/xla_service.proto: warning: Import tensorflow/compiler/xla/xla_data.proto but not used.
tensorflow/core/protobuf/replay_log.proto: warning: Import tensorflow/core/framework/graph.proto but not used.
tensorflow/core/protobuf/replay_log.proto: warning: Import tensorflow/core/protobuf/cluster.proto but not used.
org/tensorflow/tf2xla/Tf2XlaProtos.java: Tried to write the same file twice.
</code></pre></div>
<p dir="auto"><strong>Describe the expected behavior</strong><br>
protoc succeeds without error.<br>
<code class="notranslate">java_outer_classname</code> in <code class="notranslate">tensorflow/compiler/tf2xla/host_compute_metadata.proto</code> may be renamed to <code class="notranslate">HostComputeMetadataProtos</code></p>
<p dir="auto"><strong>Code to reproduce the issue</strong></p>
<p dir="auto">Just protoc</p>
<p dir="auto"><strong>Other info / logs</strong></p> | 0 |
<h2 dir="auto">Bug Report</h2>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">shardingjdbc4.1.1</p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<p dir="auto">ShardingSphere-JDBC</p>
<h3 dir="auto">bug</h3>
<p dir="auto">Distributed system snowflake algorithm duplicate ID</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '624998537125429249' for key 'PRIMARY'
### The error may involve com.dongao.phoenix.biz.study.manage.mapper.MsPushRecordLinkPoMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into biz_ms_push_record_link (ms_push_record_id, type, create_date, update_date, member_ids, device_tokens ) values (?, ?, ?, ?, ?, ? )
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '624998537125429249' for key 'PRIMARY'
; SQL []; Duplicate entry '624998537125429249' for key 'PRIMARY'; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '624998537125429249' for key 'PRIMARY' org.springframework.dao.DuplicateKeyException:
### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '624998537125429249' for key 'PRIMARY'
### The error may involve com.dongao.phoenix.biz.study.manage.mapper.MsPushRecordLinkPoMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into biz_ms_push_record_link (ms_push_record_id, type, create_date, update_date, member_ids, device_tokens ) values (?, ?, ?, ?, ?, ? )
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '624998537125429249' for key 'PRIMARY'"><pre class="notranslate"><code class="notranslate">### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '624998537125429249' for key 'PRIMARY'
### The error may involve com.dongao.phoenix.biz.study.manage.mapper.MsPushRecordLinkPoMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into biz_ms_push_record_link (ms_push_record_id, type, create_date, update_date, member_ids, device_tokens ) values (?, ?, ?, ?, ?, ? )
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '624998537125429249' for key 'PRIMARY'
; SQL []; Duplicate entry '624998537125429249' for key 'PRIMARY'; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '624998537125429249' for key 'PRIMARY' org.springframework.dao.DuplicateKeyException:
### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '624998537125429249' for key 'PRIMARY'
### The error may involve com.dongao.phoenix.biz.study.manage.mapper.MsPushRecordLinkPoMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into biz_ms_push_record_link (ms_push_record_id, type, create_date, update_date, member_ids, device_tokens ) values (?, ?, ?, ?, ?, ? )
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '624998537125429249' for key 'PRIMARY'
</code></pre></div>
<h3 dir="auto">configuration</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<bean id="msPushShardingAlgorithm" class="com.xx.phoenix.biz.study.manage.config.MsPushShardingAlgorithm" />
<sharding:standard-strategy id="pushTableStrategy" sharding-column="create_date" precise-algorithm-ref="msPushShardingAlgorithm" range-algorithm-ref="msPushShardingAlgorithm"/>
<sharding:key-generator id="idKeyGenerator" type="SNOWFLAKE" column="id"/>
<sharding:data-source id="shardingDataSource">
<sharding:sharding-rule data-source-names="ds1">
<sharding:table-rules>
<sharding:table-rule logic-table="biz_ms_push"
actual-data-nodes="ds1.biz_ms_push_20$->{21..25}"
table-strategy-ref="pushTableStrategy" key-generator-ref="idKeyGenerator" />
<sharding:table-rule logic-table="biz_ms_push_record"
actual-data-nodes="ds1.biz_ms_push_record_20$->{21..25}"
table-strategy-ref="pushTableStrategy" key-generator-ref="idKeyGenerator" />
<sharding:table-rule logic-table="biz_ms_push_record_link"
actual-data-nodes="ds1.biz_ms_push_record_link_20$->{21..25}"
table-strategy-ref="pushTableStrategy" key-generator-ref="idKeyGenerator" />
</sharding:table-rules>
<sharding:binding-table-rules>
<sharding:binding-table-rule logic-tables="biz_ms_push_record" />
</sharding:binding-table-rules>
</sharding:sharding-rule>
<sharding:props>
<prop key="sql.show">true</prop>
</sharding:props>
</sharding:data-source>"><pre class="notranslate"><code class="notranslate"><bean id="msPushShardingAlgorithm" class="com.xx.phoenix.biz.study.manage.config.MsPushShardingAlgorithm" />
<sharding:standard-strategy id="pushTableStrategy" sharding-column="create_date" precise-algorithm-ref="msPushShardingAlgorithm" range-algorithm-ref="msPushShardingAlgorithm"/>
<sharding:key-generator id="idKeyGenerator" type="SNOWFLAKE" column="id"/>
<sharding:data-source id="shardingDataSource">
<sharding:sharding-rule data-source-names="ds1">
<sharding:table-rules>
<sharding:table-rule logic-table="biz_ms_push"
actual-data-nodes="ds1.biz_ms_push_20$->{21..25}"
table-strategy-ref="pushTableStrategy" key-generator-ref="idKeyGenerator" />
<sharding:table-rule logic-table="biz_ms_push_record"
actual-data-nodes="ds1.biz_ms_push_record_20$->{21..25}"
table-strategy-ref="pushTableStrategy" key-generator-ref="idKeyGenerator" />
<sharding:table-rule logic-table="biz_ms_push_record_link"
actual-data-nodes="ds1.biz_ms_push_record_link_20$->{21..25}"
table-strategy-ref="pushTableStrategy" key-generator-ref="idKeyGenerator" />
</sharding:table-rules>
<sharding:binding-table-rules>
<sharding:binding-table-rule logic-tables="biz_ms_push_record" />
</sharding:binding-table-rules>
</sharding:sharding-rule>
<sharding:props>
<prop key="sql.show">true</prop>
</sharding:props>
</sharding:data-source>
</code></pre></div> | <h2 dir="auto">Question</h2>
<p dir="auto"><strong>For English only</strong>, other languages will not accept.</p>
<p dir="auto">Before asking a question, make sure you have:</p>
<ul dir="auto">
<li>Googled your question.</li>
<li>Searched open and closed <a href="https://github.com/apache/shardingsphere/issues">GitHub issues</a>.</li>
<li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li>
</ul>
<p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br>
If no response anymore and we cannot reproduce it on current information, we will <strong>close it</strong>.</p>
<h2 dir="auto"><strong>Hi, when I batch insert data into the table through ShardingSphere-proxy-v5.2.1,I will be prompted with the following exception. However ,it is normal to directly insert into the table without the proxy.</strong></h2>
<p dir="auto">Did I configure something wrong ? HELP ~</p>
<p dir="auto"><strong>Note: I have tried to increase the value of sqlStatementCache in server.yaml</strong></p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="2022/10/28 04:00:46 - ERROR (version 9.3.0.0-428, build 9.3.0.0-428 from 2022-04-12 04.56.25 by buildguy) : org.pentaho.di.core.exception.KettleException:
2022/10/28 04:00:46 - Error batch inserting rows into table [t_accounts].
2022/10/28 04:00:46 - Errors encountered (first 10):
2022/10/28 04:00:46 -
2022/10/28 04:00:46 -
2022/10/28 04:00:46 - Error updating batch
2022/10/28 04:00:46 - Parameter index out of bounds. 60177 is not between valid values of 1 and 60176
2022/10/28 04:00:46 -
2022/10/28 04:00:46 -
2022/10/28 04:00:46 - at org.pentaho.di.trans.steps.tableoutput.TableOutput.writeToTable(TableOutput.java:348)
2022/10/28 04:00:46 - at org.pentaho.di.trans.steps.tableoutput.TableOutput.processRow(TableOutput.java:125)
2022/10/28 04:00:46 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2022/10/28 04:00:46 - at java.lang.Thread.run(Thread.java:750)
2022/10/28 04:00:46 - Caused by: org.pentaho.di.core.exception.KettleDatabaseBatchException:
2022/10/28 04:00:46 - Error updating batch
"><pre class="notranslate"><span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> - <span class="pl-en">ERROR</span> (<span class="pl-s1">version</span> <span class="pl-c1">9.3</span><span class="pl-c1">.0</span><span class="pl-c1">.0</span>-<span class="pl-c1">428</span>, <span class="pl-s1">build</span> <span class="pl-c1">9.3</span><span class="pl-c1">.0</span><span class="pl-c1">.0</span>-<span class="pl-c1">428</span> <span class="pl-s1">from</span> <span class="pl-c1">2022</span>-<span class="pl-c1">04</span>-<span class="pl-c1">12</span> <span class="pl-c1">04.56</span><span class="pl-c1">.25</span> <span class="pl-s1">by</span> <span class="pl-s1">buildguy</span>) : <span class="pl-smi">org</span>.<span class="pl-smi">pentaho</span>.<span class="pl-smi">di</span>.<span class="pl-smi">core</span>.<span class="pl-smi">exception</span>.<span class="pl-smi">KettleException</span>:
<span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> - <span class="pl-smi">Error</span> <span class="pl-s1">batch</span> <span class="pl-smi">inserting</span> <span class="pl-s1">rows</span> <span class="pl-smi">into</span> <span class="pl-s1">table</span> [<span class="pl-s1">t_accounts</span>].
<span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> - <span class="pl-smi">Errors</span> <span class="pl-en">encountered</span> (<span class="pl-s1">first</span> <span class="pl-c1">10</span>):
<span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> -
<span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> -
<span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> - <span class="pl-smi">Error</span> <span class="pl-s1">updating</span> <span class="pl-s1">batch</span>
<span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> - <span class="pl-smi">Parameter</span> <span class="pl-s1">index</span> <span class="pl-s1">out</span> <span class="pl-s1">of</span> <span class="pl-smi">bounds</span>. <span class="pl-c1">60177</span> <span class="pl-smi">is</span> <span class="pl-s1">not</span> <span class="pl-smi">between</span> <span class="pl-s1">valid</span> <span class="pl-smi">values</span> <span class="pl-s1">of</span> <span class="pl-c1">1</span> <span class="pl-s1">and</span> <span class="pl-c1">60176</span>
<span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> -
<span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> -
<span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> - <span class="pl-smi">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">pentaho</span>.<span class="pl-s1">di</span>.<span class="pl-s1">trans</span>.<span class="pl-s1">steps</span>.<span class="pl-s1">tableoutput</span>.<span class="pl-s1">TableOutput</span>.<span class="pl-en">writeToTable</span>(<span class="pl-smi">TableOutput</span>.<span class="pl-smi">java</span>:<span class="pl-c1">348</span>)
<span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> - <span class="pl-smi">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">pentaho</span>.<span class="pl-s1">di</span>.<span class="pl-s1">trans</span>.<span class="pl-s1">steps</span>.<span class="pl-s1">tableoutput</span>.<span class="pl-s1">TableOutput</span>.<span class="pl-en">processRow</span>(<span class="pl-smi">TableOutput</span>.<span class="pl-smi">java</span>:<span class="pl-c1">125</span>)
<span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> - <span class="pl-smi">at</span> <span class="pl-s1">org</span>.<span class="pl-s1">pentaho</span>.<span class="pl-s1">di</span>.<span class="pl-s1">trans</span>.<span class="pl-s1">step</span>.<span class="pl-s1">RunThread</span>.<span class="pl-en">run</span>(<span class="pl-smi">RunThread</span>.<span class="pl-smi">java</span>:<span class="pl-c1">62</span>)
<span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> - <span class="pl-smi">at</span> <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">Thread</span>.<span class="pl-en">run</span>(<span class="pl-smi">Thread</span>.<span class="pl-smi">java</span>:<span class="pl-c1">750</span>)
<span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> - <span class="pl-smi">Caused</span> <span class="pl-s1">by</span>: <span class="pl-smi">org</span>.<span class="pl-smi">pentaho</span>.<span class="pl-smi">di</span>.<span class="pl-smi">core</span>.<span class="pl-smi">exception</span>.<span class="pl-smi">KettleDatabaseBatchException</span>:
<span class="pl-c1">2022</span>/<span class="pl-c1">10</span>/<span class="pl-c1">28</span> <span class="pl-c1">04</span>:<span class="pl-c1">00</span>:<span class="pl-c1">46</span> - <span class="pl-smi">Error</span> <span class="pl-s1">updating</span> <span class="pl-s1">batch</span></pre></div> | 0 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong><br>
I follow the matplotlib tutorial from <a href="https://matplotlib.org/3.1.0/gallery/images_contours_and_fields/image_annotated_heatmap.html" rel="nofollow"><em>Creating annotated heatmaps</em> </a>and just copy and run the first case.</p>
<p dir="auto">Then I get a weird plot with a cut-off on both top and bottom.</p>
<p dir="auto">It also happens when I use <a href="https://github.com/mwaskom/seaborn">Seaborn </a>to plot an image.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
import matplotlib
import matplotlib.pyplot as plt
# sphinx_gallery_thumbnail_number = 2
vegetables = ["cucumber", "tomato", "lettuce", "asparagus",
"potato", "wheat", "barley"]
farmers = ["Farmer Joe", "Upland Bros.", "Smith Gardening",
"Agrifun", "Organiculture", "BioGoods Ltd.", "Cornylee Corp."]
harvest = np.array([[0.8, 2.4, 2.5, 3.9, 0.0, 4.0, 0.0],
[2.4, 0.0, 4.0, 1.0, 2.7, 0.0, 0.0],
[1.1, 2.4, 0.8, 4.3, 1.9, 4.4, 0.0],
[0.6, 0.0, 0.3, 0.0, 3.1, 0.0, 0.0],
[0.7, 1.7, 0.6, 2.6, 2.2, 6.2, 0.0],
[1.3, 1.2, 0.0, 0.0, 0.0, 3.2, 5.1],
[0.1, 2.0, 0.0, 1.4, 0.0, 1.9, 6.3]])
fig, ax = plt.subplots()
im = ax.imshow(harvest)
# We want to show all ticks...
ax.set_xticks(np.arange(len(farmers)))
ax.set_yticks(np.arange(len(vegetables)))
# ... and label them with the respective list entries
ax.set_xticklabels(farmers)
ax.set_yticklabels(vegetables)
# Rotate the tick labels and set their alignment.
plt.setp(ax.get_xticklabels(), rotation=45, ha="right",
rotation_mode="anchor")
# Loop over data dimensions and create text annotations.
for i in range(len(vegetables)):
for j in range(len(farmers)):
text = ax.text(j, i, harvest[i, j],
ha="center", va="center", color="w")
ax.set_title("Harvest of local farmers (in tons/year)")
fig.tight_layout()
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-c"># sphinx_gallery_thumbnail_number = 2</span>
<span class="pl-s1">vegetables</span> <span class="pl-c1">=</span> [<span class="pl-s">"cucumber"</span>, <span class="pl-s">"tomato"</span>, <span class="pl-s">"lettuce"</span>, <span class="pl-s">"asparagus"</span>,
<span class="pl-s">"potato"</span>, <span class="pl-s">"wheat"</span>, <span class="pl-s">"barley"</span>]
<span class="pl-s1">farmers</span> <span class="pl-c1">=</span> [<span class="pl-s">"Farmer Joe"</span>, <span class="pl-s">"Upland Bros."</span>, <span class="pl-s">"Smith Gardening"</span>,
<span class="pl-s">"Agrifun"</span>, <span class="pl-s">"Organiculture"</span>, <span class="pl-s">"BioGoods Ltd."</span>, <span class="pl-s">"Cornylee Corp."</span>]
<span class="pl-s1">harvest</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([[<span class="pl-c1">0.8</span>, <span class="pl-c1">2.4</span>, <span class="pl-c1">2.5</span>, <span class="pl-c1">3.9</span>, <span class="pl-c1">0.0</span>, <span class="pl-c1">4.0</span>, <span class="pl-c1">0.0</span>],
[<span class="pl-c1">2.4</span>, <span class="pl-c1">0.0</span>, <span class="pl-c1">4.0</span>, <span class="pl-c1">1.0</span>, <span class="pl-c1">2.7</span>, <span class="pl-c1">0.0</span>, <span class="pl-c1">0.0</span>],
[<span class="pl-c1">1.1</span>, <span class="pl-c1">2.4</span>, <span class="pl-c1">0.8</span>, <span class="pl-c1">4.3</span>, <span class="pl-c1">1.9</span>, <span class="pl-c1">4.4</span>, <span class="pl-c1">0.0</span>],
[<span class="pl-c1">0.6</span>, <span class="pl-c1">0.0</span>, <span class="pl-c1">0.3</span>, <span class="pl-c1">0.0</span>, <span class="pl-c1">3.1</span>, <span class="pl-c1">0.0</span>, <span class="pl-c1">0.0</span>],
[<span class="pl-c1">0.7</span>, <span class="pl-c1">1.7</span>, <span class="pl-c1">0.6</span>, <span class="pl-c1">2.6</span>, <span class="pl-c1">2.2</span>, <span class="pl-c1">6.2</span>, <span class="pl-c1">0.0</span>],
[<span class="pl-c1">1.3</span>, <span class="pl-c1">1.2</span>, <span class="pl-c1">0.0</span>, <span class="pl-c1">0.0</span>, <span class="pl-c1">0.0</span>, <span class="pl-c1">3.2</span>, <span class="pl-c1">5.1</span>],
[<span class="pl-c1">0.1</span>, <span class="pl-c1">2.0</span>, <span class="pl-c1">0.0</span>, <span class="pl-c1">1.4</span>, <span class="pl-c1">0.0</span>, <span class="pl-c1">1.9</span>, <span class="pl-c1">6.3</span>]])
<span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>()
<span class="pl-s1">im</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">imshow</span>(<span class="pl-s1">harvest</span>)
<span class="pl-c"># We want to show all ticks...</span>
<span class="pl-s1">ax</span>.<span class="pl-en">set_xticks</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-en">len</span>(<span class="pl-s1">farmers</span>)))
<span class="pl-s1">ax</span>.<span class="pl-en">set_yticks</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-en">len</span>(<span class="pl-s1">vegetables</span>)))
<span class="pl-c"># ... and label them with the respective list entries</span>
<span class="pl-s1">ax</span>.<span class="pl-en">set_xticklabels</span>(<span class="pl-s1">farmers</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">set_yticklabels</span>(<span class="pl-s1">vegetables</span>)
<span class="pl-c"># Rotate the tick labels and set their alignment.</span>
<span class="pl-s1">plt</span>.<span class="pl-en">setp</span>(<span class="pl-s1">ax</span>.<span class="pl-en">get_xticklabels</span>(), <span class="pl-s1">rotation</span><span class="pl-c1">=</span><span class="pl-c1">45</span>, <span class="pl-s1">ha</span><span class="pl-c1">=</span><span class="pl-s">"right"</span>,
<span class="pl-s1">rotation_mode</span><span class="pl-c1">=</span><span class="pl-s">"anchor"</span>)
<span class="pl-c"># Loop over data dimensions and create text annotations.</span>
<span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-en">len</span>(<span class="pl-s1">vegetables</span>)):
<span class="pl-k">for</span> <span class="pl-s1">j</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-en">len</span>(<span class="pl-s1">farmers</span>)):
<span class="pl-s1">text</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">text</span>(<span class="pl-s1">j</span>, <span class="pl-s1">i</span>, <span class="pl-s1">harvest</span>[<span class="pl-s1">i</span>, <span class="pl-s1">j</span>],
<span class="pl-s1">ha</span><span class="pl-c1">=</span><span class="pl-s">"center"</span>, <span class="pl-s1">va</span><span class="pl-c1">=</span><span class="pl-s">"center"</span>, <span class="pl-s1">color</span><span class="pl-c1">=</span><span class="pl-s">"w"</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">set_title</span>(<span class="pl-s">"Harvest of local farmers (in tons/year)"</span>)
<span class="pl-s1">fig</span>.<span class="pl-en">tight_layout</span>()
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/08a1e8a7449625fcc35a2542dcb260dd69d41553634bf37700f8486739e4d332/68747470733a2f2f692e696d6775722e636f6d2f584e3177776b6e2e706e67"><img src="https://camo.githubusercontent.com/08a1e8a7449625fcc35a2542dcb260dd69d41553634bf37700f8486739e4d332/68747470733a2f2f692e696d6775722e636f6d2f584e3177776b6e2e706e67" alt="Uploading Figure_1.png…" data-canonical-src="https://i.imgur.com/XN1wwkn.png" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/901f6514211ed9bcce8418dd8e9714ed17bd730380827de790d6eb337649b510/68747470733a2f2f6d6174706c6f746c69622e6f72672f332e312e302f5f696d616765732f737068785f676c725f696d6167655f616e6e6f74617465645f686561746d61705f3030312e706e67"><img src="https://camo.githubusercontent.com/901f6514211ed9bcce8418dd8e9714ed17bd730380827de790d6eb337649b510/68747470733a2f2f6d6174706c6f746c69622e6f72672f332e312e302f5f696d616765732f737068785f676c725f696d6167655f616e6e6f74617465645f686561746d61705f3030312e706e67" alt="Expected outcome" data-canonical-src="https://matplotlib.org/3.1.0/_images/sphx_glr_image_annotated_heatmap_001.png" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Windows 10 1903</li>
<li>Matplotlib version: 3.1.0</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): TkAgg</li>
<li>Python version: 3.7.3</li>
</ul> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">The very top and bottom of the heatmaps are getting truncated to 1/2 height in version <code class="notranslate">3.1.1</code>. This does not happen for version <code class="notranslate">3.0.3</code>.</p>
<p dir="auto">This is the code from a Jupyter Notebook</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib
import pandas as pd
import numpy as np
import seaborn as sb
%pylab inline
print(matplotlib.__version__)
print(sb.__version__)
grid = pd.DataFrame(np.arange(9).reshape((3,3))/10)
fig, ax = subplots(1, 1, figsize=(5, 5))
sb.heatmap(grid, annot=True, fmt=".0f", ax=ax, cmap='RdBu', vmin=0, vmax=1, cbar=True);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>
<span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sb</span>
<span class="pl-c1">%</span><span class="pl-s1">pylab</span> <span class="pl-s1">inline</span>
<span class="pl-en">print</span>(<span class="pl-s1">matplotlib</span>.<span class="pl-s1">__version__</span>)
<span class="pl-en">print</span>(<span class="pl-s1">sb</span>.<span class="pl-s1">__version__</span>)
<span class="pl-s1">grid</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">9</span>).<span class="pl-en">reshape</span>((<span class="pl-c1">3</span>,<span class="pl-c1">3</span>))<span class="pl-c1">/</span><span class="pl-c1">10</span>)
<span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-en">subplots</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-s1">figsize</span><span class="pl-c1">=</span>(<span class="pl-c1">5</span>, <span class="pl-c1">5</span>))
<span class="pl-s1">sb</span>.<span class="pl-en">heatmap</span>(<span class="pl-s1">grid</span>, <span class="pl-s1">annot</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">fmt</span><span class="pl-c1">=</span><span class="pl-s">".0f"</span>, <span class="pl-s1">ax</span><span class="pl-c1">=</span><span class="pl-s1">ax</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s">'RdBu'</span>, <span class="pl-s1">vmin</span><span class="pl-c1">=</span><span class="pl-c1">0</span>, <span class="pl-s1">vmax</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">cbar</span><span class="pl-c1">=</span><span class="pl-c1">True</span>);</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Populating the interactive namespace from numpy and matplotlib
3.1.1
0.9.0"><pre class="notranslate"><code class="notranslate">Populating the interactive namespace from numpy and matplotlib
3.1.1
0.9.0
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1696066/60530345-87f5c780-9cc6-11e9-9e31-a251283f3f7e.png"><img src="https://user-images.githubusercontent.com/1696066/60530345-87f5c780-9cc6-11e9-9e31-a251283f3f7e.png" alt="download" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Ubuntu Linux</li>
<li>Matplotlib version: 3.1.1</li>
<li>Matplotlib backend: module://ipykernel.pylab.backend_inline</li>
<li>Python version: 3.6</li>
<li>Jupyter version (if applicable): 4.4.0</li>
<li>Other libraries:</li>
</ul> | 1 |
<p dir="auto">Hi,<br>
A lot of the challenges I had already completed are not checked anymore on my map, since today's update (I was working on the Bonfire: Search and Replace).<br>
I originally had completed :</p>
<ul dir="auto">
<li>all the Waypoints up to Object Oriented & Functional Programming (included) (except the Gear up for success, which I think are new),</li>
<li>the Basic Algorithm Scripting Bonfires,</li>
<li>the Intermediate Algorithm Scripting up to the 16 (included), except for the 15.</li>
</ul>
<p dir="auto">The solutions to the missing challenges are not in my portfolio anymore, but I still have all the brownie points I won by completing them.</p>
<p dir="auto">Quincy told us on Gitter to put up screencap, I'm not sure of what (since it's missing stuffs), so I hope this will do :<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13537285/10337213/97eb7302-6cfe-11e5-8124-1cc04a80c09b.png"><img src="https://cloud.githubusercontent.com/assets/13537285/10337213/97eb7302-6cfe-11e5-8124-1cc04a80c09b.png" alt="capture d ecran 2015-10-07 a 14 19 17" style="max-width: 100%;"></a></p> | <p dir="auto">Something happened on the server and most of my work is gone. I still have over 300 points but my map does not reflect it. Could my projects be restored please?</p> | 1 |
<p dir="auto">There's a numpy.linalg.matrix_rank, why scipy does not provide scipy.linalg.matrix_rank? I think it is quite frequently used in scientific computing, which is what scipy for.</p>
<p dir="auto">It does not make real difference whether I import it from scipy or numpy. But I'm just curious what's the reason behind it.</p> | <p dir="auto">The folder <code class="notranslate">Python37\site-packages\scipy\sparse\linalg\isolve\</code> inside Scipy package in Python has the following file: <code class="notranslate">_iterative.cp37-win_amd64.pyd</code>.</p>
<p dir="auto">When I run a Python file, I get the following error :- <br></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="File "C:\......\Python37\site-packages\scipy\sparse\linalg\isolve\iterative.py", line 10, in <module>
from . import _iterative
ImportError: DLL load failed: The specified module could not be found"><pre class="notranslate"><code class="notranslate">File "C:\......\Python37\site-packages\scipy\sparse\linalg\isolve\iterative.py", line 10, in <module>
from . import _iterative
ImportError: DLL load failed: The specified module could not be found
</code></pre></div>
<p dir="auto">Scipy should work out of the box after installation!</p> | 0 |
<p dir="auto">We convert our RDF data set to Nodes and Relationships. And then we use <code class="notranslate">neo4j-import</code> to import this data set.<br>
Since we have change the <em>JVM_size</em> and <em>dbms.memory.heap.initial_size</em> and <em>dbms.memory.heap.max_size</em> in <code class="notranslate">neo4j.conf</code>, and the available resources output is shown below:</p>
<blockquote>
<p dir="auto">Total machine memory: 125.52 GB<br>
Free machine memory: 122.06 GB<br>
Max heap memory: 26.67 GB<br>
Processors: 32<br>
Configured max memory: 85.86 GB</p>
</blockquote>
<p dir="auto">However, when it comes to <em>Relationship counts</em>, <strong>import failed</strong> because of the following Error:</p>
<blockquote>
<p dir="auto">Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded</p>
</blockquote>
<p dir="auto">We know it's about Garbage Collection and Heap Memory, and we try our methods to overcome this error but failed. Also, when the import is running, the memory used is full all the time.</p>
<p dir="auto"><strong>So, how could we overcome this problem? Or neo4j with 128GB memory can't import so much a data set?</strong></p> | <ul dir="auto">
<li>Neo4j version: Docker container neo4j:3.3.2</li>
<li>Operating system: Container-Optimized OS on GCP (based on Chromium OS)</li>
</ul>
<p dir="auto">Hello,<br>
I have a daily database dump exported via the following command:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="docker run \
--publish=7473:7473 \
--publish=7687:7687 \
--volume=$HOME/neo4j/data:/data \
--volume=$HOME/neo4j/logs:/logs \
--volume=$HOME/neo4j/conf:/conf \
--volume=$HOME/neo4j/plugins:/plugins \
--volume=$HOME/neo4j/import:/import \
--volume=$HOME/neo4j/scripts:/scripts \
--volume=$HOME/neo4j/ssl:/ssl \
--volume=$TEMP/graph.db:/graph.db \
--ulimit=nofile=40000:40000 \
--name=neo4j-dump \
-id \
neo4j:3.3.2 \
/bin/bash -c "bin/neo4j-admin dump --database=graph.db --to=/graph.db/$TAG.dump""><pre class="notranslate"><code class="notranslate">docker run \
--publish=7473:7473 \
--publish=7687:7687 \
--volume=$HOME/neo4j/data:/data \
--volume=$HOME/neo4j/logs:/logs \
--volume=$HOME/neo4j/conf:/conf \
--volume=$HOME/neo4j/plugins:/plugins \
--volume=$HOME/neo4j/import:/import \
--volume=$HOME/neo4j/scripts:/scripts \
--volume=$HOME/neo4j/ssl:/ssl \
--volume=$TEMP/graph.db:/graph.db \
--ulimit=nofile=40000:40000 \
--name=neo4j-dump \
-id \
neo4j:3.3.2 \
/bin/bash -c "bin/neo4j-admin dump --database=graph.db --to=/graph.db/$TAG.dump"
</code></pre></div>
<p dir="auto">And when I try to load it in another instance (same version of the container) with the following command:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="docker run \
--publish=7474:7474 \
--publish=7473:7473 \
--publish=7687:7687 \
--volume=$HOME/neo4j/data:/data \
--volume=$HOME/neo4j/logs:/logs \
--volume=$HOME/neo4j/ssl:/ssl \
--volume=$HOME/neo4j/backups:/backups \
--volume=$HOME/neo4j/conf:/conf \
--ulimit=nofile=40000:40000 \
--env-file=$HOME/neo4j.env \
--name=neo4j-admin \
-it \
neo4j:3.3.2 \
/bin/bash -c "bin/neo4j-admin load --from=/backups/graph.db/$TAG.dump --database=graph.db --force=true""><pre class="notranslate"><code class="notranslate">docker run \
--publish=7474:7474 \
--publish=7473:7473 \
--publish=7687:7687 \
--volume=$HOME/neo4j/data:/data \
--volume=$HOME/neo4j/logs:/logs \
--volume=$HOME/neo4j/ssl:/ssl \
--volume=$HOME/neo4j/backups:/backups \
--volume=$HOME/neo4j/conf:/conf \
--ulimit=nofile=40000:40000 \
--env-file=$HOME/neo4j.env \
--name=neo4j-admin \
-it \
neo4j:3.3.2 \
/bin/bash -c "bin/neo4j-admin load --from=/backups/graph.db/$TAG.dump --database=graph.db --force=true"
</code></pre></div>
<p dir="auto">I systematically get the following error : <code class="notranslate">command failed: unable to load database: EOFException: null</code></p>
<p dir="auto">What could be the issue? How can I test if my daily backup dump is corrupted?<br>
I can still duplicate my database by copy/pasting the graph.db folder but it is not recommended so I'd rather use the dump and load method...</p>
<p dir="auto">Thanks</p> | 0 |
<p dir="auto">With pandas v0.8.0b1</p>
<p dir="auto">In [90]: u<br>
Out[90]:<br>
2012-05-08 01:45:00 86<br>
2012-05-08 01:50:00 170<br>
2012-05-08 01:55:00 130<br>
2012-05-08 02:00:00 206<br>
2012-05-08 02:05:00 52<br>
2012-05-08 02:10:00 4<br>
Freq: 5T</p>
<p dir="auto">In [91]: u.append(u)</p>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
File "C:\Python27\lib\site-packages\pandas\core\series.py", line 1566, in append<br>
return concat(to_concat, ignore_index=False, verify_integrity=True)<br>
File "C:\Python27\lib\site-packages\pandas\tools\merge.py", line 836, in concat<br>
verify_integrity=verify_integrity)<br>
File "C:\Python27\lib\site-packages\pandas\tools\merge.py", line 895, in <strong>init</strong><br>
self.new_axes = self._get_new_axes()<br>
File "C:\Python27\lib\site-packages\pandas\tools\merge.py", line 1066, in _get_new_axes<br>
concat_axis = self._get_concat_axis()<br>
File "C:\Python27\lib\site-packages\pandas\tools\merge.py", line 1097, in _get_concat_axis<br>
self._maybe_check_integrity(concat_axis)<br>
File "C:\Python27\lib\site-packages\pandas\tools\merge.py", line 1106, in _maybe_check_integrity<br>
% str(overlap))<br>
Exception: Indexes have overlapping values: [1970-01-16 225:45:00, 1970-01-16 225:50:00, 1970-01-16 225:55:00, 1970-01-16 226:00:00, 1970-01-16 226:05:00, 1970-01-16 226:10:00]</p> | <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Your code here
import pandas as pd
import numpy as np
def processCols(x):
x_dtype = str(x.dtype)
if x_dtype=='float64':
y = x.fillna(x.mean()) # replace nan in col with mean
return y
elif x_dtype=='category':
x_top = x.describe().top
y = x.fillna(str(x_top)) # replace nan in col with most occuring cat
return y
elif x_dtype=='int64': #do nothing for now
return x
else: # do nothing
return x
# Test snippet
#pid,typeid,bnum,bcat
#41,A,1.0,3D
#42,A,2.0,3D
#43,B,4.5,3E
#44,A,4.0,3D
#45,A,5.0,4D
#46,B,3.0,3E
#47,A,1.1,4D
#48,B,2.0,3F
#49,A,,
#50,A,,
#51,B,,
#52,B,,
rawData = pd.DataFrame({'pid' : np.array([41,42,43,44,45,46,47,48,49,50,51,52], dtype='int64'),
'typeid' : pd.Categorical(["A","A","B","A","A","B","A","B","A","A","B","B"]),
'bnum' : np.array([1,2,4.5,4,5,3,1.1,2,np.nan,np.nan,np.nan,np.nan],dtype='float64'),
'bcat' : pd.Categorical(["3D","3D","3E","3D","4D","3E","4D","3F",np.nan,np.nan,np.nan,np.nan])
})
groupedBy = rawData.groupby('typeid')
for name, group in groupedBy:
print('By Groups:')
print(name)
print('Before nan correction')
print(group)
transformed = group.transform(processCols)
print()
print('After nan correction')
print(transformed)
print()
# Now process all at once to compare
print()
print('transformed all at once')
transformed_all_at_once = groupedBy.transform(processCols)
print(transformed_all_at_once)"><pre class="notranslate"><span class="pl-c"># Your code here</span>
<span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">def</span> <span class="pl-en">processCols</span>(<span class="pl-s1">x</span>):
<span class="pl-s1">x_dtype</span> <span class="pl-c1">=</span> <span class="pl-en">str</span>(<span class="pl-s1">x</span>.<span class="pl-s1">dtype</span>)
<span class="pl-k">if</span> <span class="pl-s1">x_dtype</span><span class="pl-c1">==</span><span class="pl-s">'float64'</span>:
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span>.<span class="pl-en">fillna</span>(<span class="pl-s1">x</span>.<span class="pl-en">mean</span>()) <span class="pl-c"># replace nan in col with mean</span>
<span class="pl-k">return</span> <span class="pl-s1">y</span>
<span class="pl-k">elif</span> <span class="pl-s1">x_dtype</span><span class="pl-c1">==</span><span class="pl-s">'category'</span>:
<span class="pl-s1">x_top</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span>.<span class="pl-en">describe</span>().<span class="pl-s1">top</span>
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span>.<span class="pl-en">fillna</span>(<span class="pl-en">str</span>(<span class="pl-s1">x_top</span>)) <span class="pl-c"># replace nan in col with most occuring cat</span>
<span class="pl-k">return</span> <span class="pl-s1">y</span>
<span class="pl-k">elif</span> <span class="pl-s1">x_dtype</span><span class="pl-c1">==</span><span class="pl-s">'int64'</span>: <span class="pl-c">#do nothing for now</span>
<span class="pl-k">return</span> <span class="pl-s1">x</span>
<span class="pl-k">else</span>: <span class="pl-c"># do nothing</span>
<span class="pl-k">return</span> <span class="pl-s1">x</span>
<span class="pl-c"># Test snippet</span>
<span class="pl-c">#pid,typeid,bnum,bcat</span>
<span class="pl-c">#41,A,1.0,3D</span>
<span class="pl-c">#42,A,2.0,3D</span>
<span class="pl-c">#43,B,4.5,3E</span>
<span class="pl-c">#44,A,4.0,3D</span>
<span class="pl-c">#45,A,5.0,4D</span>
<span class="pl-c">#46,B,3.0,3E</span>
<span class="pl-c">#47,A,1.1,4D</span>
<span class="pl-c">#48,B,2.0,3F</span>
<span class="pl-c">#49,A,,</span>
<span class="pl-c">#50,A,,</span>
<span class="pl-c">#51,B,,</span>
<span class="pl-c">#52,B,,</span>
<span class="pl-s1">rawData</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'pid'</span> : <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">41</span>,<span class="pl-c1">42</span>,<span class="pl-c1">43</span>,<span class="pl-c1">44</span>,<span class="pl-c1">45</span>,<span class="pl-c1">46</span>,<span class="pl-c1">47</span>,<span class="pl-c1">48</span>,<span class="pl-c1">49</span>,<span class="pl-c1">50</span>,<span class="pl-c1">51</span>,<span class="pl-c1">52</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'int64'</span>),
<span class="pl-s">'typeid'</span> : <span class="pl-s1">pd</span>.<span class="pl-v">Categorical</span>([<span class="pl-s">"A"</span>,<span class="pl-s">"A"</span>,<span class="pl-s">"B"</span>,<span class="pl-s">"A"</span>,<span class="pl-s">"A"</span>,<span class="pl-s">"B"</span>,<span class="pl-s">"A"</span>,<span class="pl-s">"B"</span>,<span class="pl-s">"A"</span>,<span class="pl-s">"A"</span>,<span class="pl-s">"B"</span>,<span class="pl-s">"B"</span>]),
<span class="pl-s">'bnum'</span> : <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">4.5</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>,<span class="pl-c1">3</span>,<span class="pl-c1">1.1</span>,<span class="pl-c1">2</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>],<span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'float64'</span>),
<span class="pl-s">'bcat'</span> : <span class="pl-s1">pd</span>.<span class="pl-v">Categorical</span>([<span class="pl-s">"3D"</span>,<span class="pl-s">"3D"</span>,<span class="pl-s">"3E"</span>,<span class="pl-s">"3D"</span>,<span class="pl-s">"4D"</span>,<span class="pl-s">"3E"</span>,<span class="pl-s">"4D"</span>,<span class="pl-s">"3F"</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>,<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>])
})
<span class="pl-s1">groupedBy</span> <span class="pl-c1">=</span> <span class="pl-s1">rawData</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'typeid'</span>)
<span class="pl-k">for</span> <span class="pl-s1">name</span>, <span class="pl-s1">group</span> <span class="pl-c1">in</span> <span class="pl-s1">groupedBy</span>:
<span class="pl-en">print</span>(<span class="pl-s">'By Groups:'</span>)
<span class="pl-en">print</span>(<span class="pl-s1">name</span>)
<span class="pl-en">print</span>(<span class="pl-s">'Before nan correction'</span>)
<span class="pl-en">print</span>(<span class="pl-s1">group</span>)
<span class="pl-s1">transformed</span> <span class="pl-c1">=</span> <span class="pl-s1">group</span>.<span class="pl-en">transform</span>(<span class="pl-s1">processCols</span>)
<span class="pl-en">print</span>()
<span class="pl-en">print</span>(<span class="pl-s">'After nan correction'</span>)
<span class="pl-en">print</span>(<span class="pl-s1">transformed</span>)
<span class="pl-en">print</span>()
<span class="pl-c"># Now process all at once to compare </span>
<span class="pl-en">print</span>()
<span class="pl-en">print</span>(<span class="pl-s">'transformed all at once'</span>)
<span class="pl-s1">transformed_all_at_once</span> <span class="pl-c1">=</span> <span class="pl-s1">groupedBy</span>.<span class="pl-en">transform</span>(<span class="pl-s1">processCols</span>)
<span class="pl-en">print</span>(<span class="pl-s1">transformed_all_at_once</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">When using groupby.transform and a custom function on a full data frame, the groupby key does not get returned in the final glued-together output. However, if this same process is done by iterating over the groups, the individual data frames do return the groupby key. If the groupby key is getting removed, then it requires an external join to reintroduce it. However, the individual replacements for the nan (which is the what the custom function does) is correct in both cases. Thanks.</p>
<p dir="auto">[this should explain <strong>why</strong> the current behaviour is a problem and why the expected output is a better solution.]</p>
<p dir="auto"><strong>Note</strong>: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!</p>
<p dir="auto"><strong>Note</strong>: Many problems can be resolved by simply upgrading <code class="notranslate">pandas</code> to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if <code class="notranslate">master</code> addresses this issue, but that is not necessary.</p>
<h4 dir="auto">Expected Output</h4>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">[paste the output of <code class="notranslate">pd.show_versions()</code> here below this line]<br>
INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.5.3.final.0<br>
python-bits: 64<br>
OS: Darwin<br>
OS-release: 16.7.0<br>
machine: x86_64<br>
processor: i386<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: None<br>
LOCALE: None.None</p>
<p dir="auto">pandas: 0.20.3<br>
pytest: None<br>
pip: 9.0.1<br>
setuptools: 36.0.1<br>
Cython: None<br>
numpy: 1.13.1<br>
scipy: 0.19.1<br>
xarray: None<br>
IPython: 6.1.0<br>
sphinx: 1.6.2<br>
patsy: None<br>
dateutil: 2.6.1<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: None<br>
feather: None<br>
matplotlib: 2.0.2<br>
openpyxl: None<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: None<br>
html5lib: 0.9999999<br>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.9.6<br>
s3fs: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details> | 0 |
<p dir="auto"><a href="https://play.rust-lang.org/?gist=23de822c03921663ae66&version=nightly" rel="nofollow">https://play.rust-lang.org/?gist=23de822c03921663ae66&version=nightly</a> .</p>
<p dir="auto">Error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<anon>:110:25: 110:60 error: cannot assign to `*entry` because it is borrowed
<anon>:110 *entry = FragmentRepr::Enum(discrs);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: in expansion of if let expansion
<anon>:108:21: 111:22 note: expansion site
note: in expansion of for loop expansion
<anon>:100:5: 150:6 note: expansion site
<anon>:112:64: 112:78 note: borrow of `*entry` occurs here
<anon>:112 let mut discrs = if let FragmentRepr::Enum(ref mut discrs) = *entry {
^~~~~~~~~~~~~~
note: in expansion of if let expansion
<anon>:112:38: 116:22 note: expansion site
note: in expansion of for loop expansion
<anon>:100:5: 150:6 note: expansion site
<anon>:112:64: 112:78 error: cannot borrow `entry.0` as mutable more than once at a time
<anon>:112 let mut discrs = if let FragmentRepr::Enum(ref mut discrs) = *entry {
^~~~~~~~~~~~~~
note: in expansion of if let expansion
<anon>:112:38: 116:22 note: expansion site
note: in expansion of for loop expansion
<anon>:100:5: 150:6 note: expansion site
<anon>:112:64: 112:78 note: previous borrow of `entry.0` occurs here; the mutable borrow prevents subsequent moves, borrows, or modification of `entry.0` until the borrow ends
<anon>:112 let mut discrs = if let FragmentRepr::Enum(ref mut discrs) = *entry {
^~~~~~~~~~~~~~
note: in expansion of if let expansion
<anon>:112:38: 116:22 note: expansion site
note: in expansion of for loop expansion
<anon>:100:5: 150:6 note: expansion site
<anon>:150:6: 150:6 note: previous borrow ends here
<anon>:100 for &move_path_index in paths {
...
<anon>:150 }
^
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'assertion failed: `(left == right)` (left: `collections::vec::Vec<(u32, FragmentRepr)>`, right: `Box<FragmentRepr>`)', ../src/librustc_borrowck/borrowck/mod.rs:454"><pre class="notranslate"><code class="notranslate"><anon>:110:25: 110:60 error: cannot assign to `*entry` because it is borrowed
<anon>:110 *entry = FragmentRepr::Enum(discrs);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: in expansion of if let expansion
<anon>:108:21: 111:22 note: expansion site
note: in expansion of for loop expansion
<anon>:100:5: 150:6 note: expansion site
<anon>:112:64: 112:78 note: borrow of `*entry` occurs here
<anon>:112 let mut discrs = if let FragmentRepr::Enum(ref mut discrs) = *entry {
^~~~~~~~~~~~~~
note: in expansion of if let expansion
<anon>:112:38: 116:22 note: expansion site
note: in expansion of for loop expansion
<anon>:100:5: 150:6 note: expansion site
<anon>:112:64: 112:78 error: cannot borrow `entry.0` as mutable more than once at a time
<anon>:112 let mut discrs = if let FragmentRepr::Enum(ref mut discrs) = *entry {
^~~~~~~~~~~~~~
note: in expansion of if let expansion
<anon>:112:38: 116:22 note: expansion site
note: in expansion of for loop expansion
<anon>:100:5: 150:6 note: expansion site
<anon>:112:64: 112:78 note: previous borrow of `entry.0` occurs here; the mutable borrow prevents subsequent moves, borrows, or modification of `entry.0` until the borrow ends
<anon>:112 let mut discrs = if let FragmentRepr::Enum(ref mut discrs) = *entry {
^~~~~~~~~~~~~~
note: in expansion of if let expansion
<anon>:112:38: 116:22 note: expansion site
note: in expansion of for loop expansion
<anon>:100:5: 150:6 note: expansion site
<anon>:150:6: 150:6 note: previous borrow ends here
<anon>:100 for &move_path_index in paths {
...
<anon>:150 }
^
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'assertion failed: `(left == right)` (left: `collections::vec::Vec<(u32, FragmentRepr)>`, right: `Box<FragmentRepr>`)', ../src/librustc_borrowck/borrowck/mod.rs:454
</code></pre></div> | <p dir="auto">Code to reproduce here: <a href="https://github.com/toffaletti/borrow-crash">https://github.com/toffaletti/borrow-crash</a></p>
<p dir="auto"><code class="notranslate">rustc 1.2.0 (082e47636 2015-08-03)</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="stack backtrace:
1: 0x103eb47b5 - sys::backtrace::write::hf5ea20500b66cd24uns
2: 0x103ebd013 - panicking::on_panic::hbe02cb0d925cad49iGw
3: 0x103e78dd2 - rt::unwind::begin_unwind_inner::h12ba0ba9dffdecc2uow
4: 0x103e79b29 - rt::unwind::begin_unwind_fmt::hadf0dbf11d345ebfAnw
5: 0x100c3568e - borrowck::LoanPath<'tcx>::common::h38c8ca06e07ec084irf
6: 0x100c3366d - borrowck::check_loans::CheckLoanCtxt<'a, 'tcx>::report_error_if_loan_conflicts_with_restriction::h9e6281b29cbce21azGa
7: 0x100c334fa - borrowck::check_loans::CheckLoanCtxt<'a, 'tcx>::report_error_if_loans_conflict::h9db6e8829e2a1ce8fEa
8: 0x100c23250 - borrowck::check_loans::CheckLoanCtxt<'a, 'tcx>.euv..Delegate<'tcx>::borrow::hda5797bef3402e59Ria
9: 0x100c2ad2c - middle::mem_categorization::MemCategorizationContext<'t, TYPER>::cat_pattern_::h14467536489201103802
10: 0x100c2b5eb - middle::mem_categorization::MemCategorizationContext<'t, TYPER>::cat_pattern_::h14467536489201103802
11: 0x100c2b12a - middle::mem_categorization::MemCategorizationContext<'t, TYPER>::cat_pattern_::h14467536489201103802
12: 0x100c2a6e5 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::walk_pat::h9458671995004733122
13: 0x100c2f403 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::walk_expr::h982213050074646850
14: 0x100c326a2 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::consume_expr::h8840565628159227535
15: 0x100c2f649 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::walk_expr::h982213050074646850
16: 0x100c326a2 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::consume_expr::h8840565628159227535
17: 0x100c2f62e - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::walk_expr::h982213050074646850
18: 0x100c326a2 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::consume_expr::h8840565628159227535
19: 0x100c2f433 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::walk_expr::h982213050074646850
20: 0x100c326a2 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::consume_expr::h8840565628159227535
21: 0x100c4cb45 - borrowck::borrowck_fn::h1de21a9e0166e8daEPe
22: 0x100c4c1d9 - borrowck::BorrowckCtxt<'a, 'tcx>.Visitor<'v>::visit_fn::h93ef453410da10bc2Ge
23: 0x100c4eb14 - visit::walk_impl_item::h15300236788859175913
24: 0x100c4f7ca - visit::walk_item::h3483642570553201847
25: 0x100c4ec68 - borrowck::check_crate::h138dee6ce4dd468bHJe
26: 0x1007998a1 - driver::phase_3_run_analysis_passes::closure.15766
27: 0x100796204 - middle::ty::with_ctxt::h14728011725879770170
28: 0x10079100a - driver::phase_3_run_analysis_passes::h16713467199444562124
29: 0x100774107 - driver::compile_input::hb6d2be5b0fa2247fTba
30: 0x10085013f - run_compiler::h21d74b88eec3fe3bx7b
31: 0x10084d9f3 - boxed::F.FnBox<A>::call_box::h1689969825914258414
32: 0x10084d1b7 - rt::unwind::try::try_fn::h11273853850686318048
33: 0x103f47cc8 - rust_try_inner
34: 0x103f47cb5 - rust_try
35: 0x103ea6c95 - rt::unwind::try::inner_try::h480e3107f6a4b5b9nkw
36: 0x10084d3e8 - boxed::F.FnBox<A>::call_box::h888215220722514405
37: 0x103ebba9d - sys::thread::Thread::new::thread_start::hdb3d925f69c5da4aHIv
38: 0x7fff8f7f8059 - _pthread_body
39: 0x7fff8f7f7fd6 - _pthread_start"><pre class="notranslate"><code class="notranslate">stack backtrace:
1: 0x103eb47b5 - sys::backtrace::write::hf5ea20500b66cd24uns
2: 0x103ebd013 - panicking::on_panic::hbe02cb0d925cad49iGw
3: 0x103e78dd2 - rt::unwind::begin_unwind_inner::h12ba0ba9dffdecc2uow
4: 0x103e79b29 - rt::unwind::begin_unwind_fmt::hadf0dbf11d345ebfAnw
5: 0x100c3568e - borrowck::LoanPath<'tcx>::common::h38c8ca06e07ec084irf
6: 0x100c3366d - borrowck::check_loans::CheckLoanCtxt<'a, 'tcx>::report_error_if_loan_conflicts_with_restriction::h9e6281b29cbce21azGa
7: 0x100c334fa - borrowck::check_loans::CheckLoanCtxt<'a, 'tcx>::report_error_if_loans_conflict::h9db6e8829e2a1ce8fEa
8: 0x100c23250 - borrowck::check_loans::CheckLoanCtxt<'a, 'tcx>.euv..Delegate<'tcx>::borrow::hda5797bef3402e59Ria
9: 0x100c2ad2c - middle::mem_categorization::MemCategorizationContext<'t, TYPER>::cat_pattern_::h14467536489201103802
10: 0x100c2b5eb - middle::mem_categorization::MemCategorizationContext<'t, TYPER>::cat_pattern_::h14467536489201103802
11: 0x100c2b12a - middle::mem_categorization::MemCategorizationContext<'t, TYPER>::cat_pattern_::h14467536489201103802
12: 0x100c2a6e5 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::walk_pat::h9458671995004733122
13: 0x100c2f403 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::walk_expr::h982213050074646850
14: 0x100c326a2 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::consume_expr::h8840565628159227535
15: 0x100c2f649 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::walk_expr::h982213050074646850
16: 0x100c326a2 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::consume_expr::h8840565628159227535
17: 0x100c2f62e - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::walk_expr::h982213050074646850
18: 0x100c326a2 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::consume_expr::h8840565628159227535
19: 0x100c2f433 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::walk_expr::h982213050074646850
20: 0x100c326a2 - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::consume_expr::h8840565628159227535
21: 0x100c4cb45 - borrowck::borrowck_fn::h1de21a9e0166e8daEPe
22: 0x100c4c1d9 - borrowck::BorrowckCtxt<'a, 'tcx>.Visitor<'v>::visit_fn::h93ef453410da10bc2Ge
23: 0x100c4eb14 - visit::walk_impl_item::h15300236788859175913
24: 0x100c4f7ca - visit::walk_item::h3483642570553201847
25: 0x100c4ec68 - borrowck::check_crate::h138dee6ce4dd468bHJe
26: 0x1007998a1 - driver::phase_3_run_analysis_passes::closure.15766
27: 0x100796204 - middle::ty::with_ctxt::h14728011725879770170
28: 0x10079100a - driver::phase_3_run_analysis_passes::h16713467199444562124
29: 0x100774107 - driver::compile_input::hb6d2be5b0fa2247fTba
30: 0x10085013f - run_compiler::h21d74b88eec3fe3bx7b
31: 0x10084d9f3 - boxed::F.FnBox<A>::call_box::h1689969825914258414
32: 0x10084d1b7 - rt::unwind::try::try_fn::h11273853850686318048
33: 0x103f47cc8 - rust_try_inner
34: 0x103f47cb5 - rust_try
35: 0x103ea6c95 - rt::unwind::try::inner_try::h480e3107f6a4b5b9nkw
36: 0x10084d3e8 - boxed::F.FnBox<A>::call_box::h888215220722514405
37: 0x103ebba9d - sys::thread::Thread::new::thread_start::hdb3d925f69c5da4aHIv
38: 0x7fff8f7f8059 - _pthread_body
39: 0x7fff8f7f7fd6 - _pthread_start
</code></pre></div> | 1 |
<p dir="auto">In v0.x we used to be able to add the <code class="notranslate">keyboardFocused</code> prop to a <code class="notranslate">RaisedButton</code> or <code class="notranslate">FlatButton</code> to focus it on render and activate the focus ripple. In v1, this yields an <code class="notranslate">Unknown prop</code> warning on the root element.</p>
<p dir="auto">We could easily hijack the <code class="notranslate">autoFocus</code> prop to set the initial state of the button, but I'm assuming there is an issue if multiple <code class="notranslate">autoFocus</code>ed components are rendered, so we'd have to verify that this is the actual focused element when the dom is fully rendered?</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Adding the <code class="notranslate">autoFocus</code> prop on a <code class="notranslate">Button</code> should trigger the <code class="notranslate">focusRipple</code> on render.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<Button autoFocus>
My button
</Button>"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-ent">Button</span> <span class="pl-c1">autoFocus</span><span class="pl-c1">></span>
My button
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">Button</span><span class="pl-c1">></span></pre></div>
<p dir="auto">When looking for the DOM's <code class="notranslate">activeElement</code>, the root <code class="notranslate">button</code> is already properly returned.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">The <code class="notranslate">button</code> is focused, but the <code class="notranslate">focusRipple</code> doesn't appear.</p>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>next</td>
</tr>
</tbody>
</table> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When I use the tab key to navigate a page with material ui (lets say the component demos on the next site) and focuses a radio button or a checkbox they should display a circle under the control to convey that the control has focus like shown in <a href="https://material.io/guidelines/components/selection-controls.html#selection-controls-checkbox" rel="nofollow">https://material.io/guidelines/components/selection-controls.html#selection-controls-checkbox</a></p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Nothing is shown, which makes it really hard to use the controls with a keyboard.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Go to <a href="https://material-ui.com/demos/selection-controls/" rel="nofollow">https://material-ui.com/demos/selection-controls/</a></li>
<li>Click the text under the Checkboxes heading (To avoid having to tab through everything else)</li>
<li>Use the tab key to navigate the page</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">A form using Material UI</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.21</td>
</tr>
<tr>
<td>React</td>
<td>16</td>
</tr>
<tr>
<td>browser</td>
<td>Firefox 57</td>
</tr>
<tr>
<td>etc</td>
<td>Visible on the demo page</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">Opening this up for a discussion, basically what i'd like to see is an API to set the background of the browser-window surrounding the web contents. When the user is resizing the window this shows up before the web contents fills the available space - if you are developing a dark application then this white border looks particularly bad.</p>
<p dir="auto">For example I noticed that Spotify is able to achieve this by using a fill color that matches the rest of the app whilst the UI resizes.</p> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/704762/5178438/d410e3f4-74a6-11e4-8e7a-242944aaa413.gif"><img src="https://cloud.githubusercontent.com/assets/704762/5178438/d410e3f4-74a6-11e4-8e7a-242944aaa413.gif" alt="display" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">I run a quick start demo, and set index.html background:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<!DOCTYPE html>
<html style="background: #232323">
<head>
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
We are using node.js <script>document.write(process.version)</script>
and atom-shell <script>document.write(process.versions['atom-shell'])</script>.
</body>
</html>"><pre class="notranslate"><code class="notranslate"><!DOCTYPE html>
<html style="background: #232323">
<head>
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>
We are using node.js <script>document.write(process.version)</script>
and atom-shell <script>document.write(process.versions['atom-shell'])</script>.
</body>
</html>
</code></pre></div>
<p dir="auto">There is a flash when start application. Is there any way to set the default window background color?</p> | 1 |
<h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">I'm first trying to figure out which piece of software this behavior most relates to. Here's the ts-loader issue perspective: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="799544653" data-permission-text="Title is private" data-url="https://github.com/TypeStrong/ts-loader/issues/1245" data-hovercard-type="issue" data-hovercard-url="/TypeStrong/ts-loader/issues/1245/hovercard" href="https://github.com/TypeStrong/ts-loader/issues/1245">TypeStrong/ts-loader#1245</a></p>
<p dir="auto">This is for webpack 4. There are compatibility issues I have yet to work through to get as far in Webpack 5.</p>
<p dir="auto">With Process Monitor on Windows, I'm comparing <code class="notranslate">tsc --build</code> to webpack & ts-loader with and without typechecking. tsc (with typechecking) is a very clear winner. ts-loader without typechecking or sourcemaps is about 3x duration. ts-loader WITH typechecking (<code class="notranslate">transpileOnly: false</code>) is extremely slow.</p>
<p dir="auto">The reason that I'm asking about webpack specifically is that file accesses to .less, .css, .js, and package.json files, for example, are also read hundreds of times and I don't know if that's expected and unavoidable, or if it perhaps represents a bug in webpack 4.<br>
Is webpack responsible for reading package.json files normally? Or is that 100% a loader problem, such as ... Is the ts-loader repeat reads of some files causing the repeat reads by the loaders of imported non-ts files?</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17498172/106665699-a1cb5080-6574-11eb-980d-629f6d80328f.png"><img src="https://user-images.githubusercontent.com/17498172/106665699-a1cb5080-6574-11eb-980d-629f6d80328f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Example sequential repeated reads:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17498172/106665764-b871a780-6574-11eb-8c75-97d1a878a482.png"><img src="https://user-images.githubusercontent.com/17498172/106665764-b871a780-6574-11eb-8c75-97d1a878a482.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">Use Sysinternals Process Monitor on Windows to compare ReadFile events between <code class="notranslate">tsc</code> and <code class="notranslate">webpack</code> builds of the same code with similar configurations.</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">Totals and durations should be similar.</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 4.46.0<br>
Node.js version: 14<br>
Operating System: Windows 10<br>
Additional tools: typescript, ts-loader, <a href="https://docs.microsoft.com/en-us/sysinternals/downloads/procmon" rel="nofollow">Process Monitor</a></p> | <p dir="auto">Firefox gave me these deprecated warnings and I think that they are coming from source map related code.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SyntaxError: Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead
Use of getPreventDefault() is deprecated. Use defaultPrevented instead."><pre class="notranslate"><code class="notranslate">SyntaxError: Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead
Use of getPreventDefault() is deprecated. Use defaultPrevented instead.
</code></pre></div>
<p dir="auto">Should it be changed?</p> | 0 |
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): macOS10.14.4</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:iPhone7 & iPhone6</li>
<li>TensorFlow installed from (source or binary):binary</li>
<li>TensorFlow version: tensorflow-lite-gpu:0.0.0</li>
<li>Python version:3.7</li>
<li>Installed using virtualenv? pip? conda?:cocoapod</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version:</li>
<li>GPU model and memory:16G memory</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong></p>
<p dir="auto">I am building my codes with tensorflow_lite_gpu.framework on iPhone 7. The codes is just like Google recommends:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_model = FlatBufferModel::BuildFromFile(modelPathCString);
ops::builtin::BuiltinOpResolver resolver;
InterpreterBuilder(*_model, resolver)(&_interpreter);
_delegate = NewGpuDelegate(nullptr); // default config
_interpreter->ModifyGraphWithDelegate(_delegate);
...//Other codes"><pre class="notranslate"><code class="notranslate">_model = FlatBufferModel::BuildFromFile(modelPathCString);
ops::builtin::BuiltinOpResolver resolver;
InterpreterBuilder(*_model, resolver)(&_interpreter);
_delegate = NewGpuDelegate(nullptr); // default config
_interpreter->ModifyGraphWithDelegate(_delegate);
...//Other codes
</code></pre></div>
<p dir="auto">When I use the model mobilenet_v1_1.0_224.tflite which Google provides, I get warning: <code class="notranslate">WARNING: 25 cannot be handled by this delegate. Only the first 30 ops will run on the GPU, and the remaining 1 on the CPU</code> from console after excuting <code class="notranslate">_interpreter->ModifyGraphWithDelegate(_delegate)</code>. But the model deeplabv3_257_mv_gpu.tflite is good which Google provides too. As for my own model, the result is like mobilenet_v1_1.0_224.tflite does. Someone please help me.</p>
<p dir="auto">PS: Here is my podfile:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="platform :ios, '10.0'
target "SpeechExample" do
pod 'TensorFlowLiteGpuExperimental'
end"><pre class="notranslate"><code class="notranslate">platform :ios, '10.0'
target "SpeechExample" do
pod 'TensorFlowLiteGpuExperimental'
end
</code></pre></div> | <p dir="auto">I am building my codes with tensorflow_lite_gpu.framework on iPhone 7. The codes is just like Google recommends:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="_model = FlatBufferModel::BuildFromFile(modelPathCString);
ops::builtin::BuiltinOpResolver resolver;
InterpreterBuilder(*_model, resolver)(&_interpreter);
_delegate = NewGpuDelegate(nullptr); // default config
_interpreter->ModifyGraphWithDelegate(_delegate);
...//Other codes"><pre class="notranslate"><code class="notranslate">_model = FlatBufferModel::BuildFromFile(modelPathCString);
ops::builtin::BuiltinOpResolver resolver;
InterpreterBuilder(*_model, resolver)(&_interpreter);
_delegate = NewGpuDelegate(nullptr); // default config
_interpreter->ModifyGraphWithDelegate(_delegate);
...//Other codes
</code></pre></div>
<p dir="auto">When I use the model mobilenet_v1_1.0_224.tflite which Google provides, I get warning: <code class="notranslate">WARNING: 25 cannot be handled by this delegate. Only the first 30 ops will run on the GPU, and the remaining 1 on the CPU</code> from console after excuting <code class="notranslate">_interpreter->ModifyGraphWithDelegate(_delegate)</code>. But the model deeplabv3_257_mv_gpu.tflite is good which Google provides too. As for my own model, the result is like mobilenet_v1_1.0_224.tflite does. Someone please help me.</p>
<p dir="auto">PS: Here is my podfile:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="platform :ios, '10.0'
target "SpeechExample" do
pod 'TensorFlowLiteGpuExperimental'
end"><pre class="notranslate"><code class="notranslate">platform :ios, '10.0'
target "SpeechExample" do
pod 'TensorFlowLiteGpuExperimental'
end
</code></pre></div> | 1 |
<h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Ansible Version:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 1.9 (devel 3b80f63e22) last updated 2014/12/05 14:09:09 (GMT +1000)
lib/ansible/modules/core: (ec2_snapshot_remove b287e7c0a6) last updated 2014/12/02 11:18:53 (GMT +1000)
lib/ansible/modules/extras: (detached HEAD 7e6fc7023d) last updated 2014/11/05 11:09:14 (GMT +1000)
v2/ansible/modules/core: (detached HEAD cb69744bce) last updated 2014/11/05 11:09:23 (GMT +1000)
v2/ansible/modules/extras: (detached HEAD 8a4f07eecd) last updated 2014/11/05 11:09:31 (GMT +1000)
configured module search path = None"><pre class="notranslate"><code class="notranslate">ansible 1.9 (devel 3b80f63e22) last updated 2014/12/05 14:09:09 (GMT +1000)
lib/ansible/modules/core: (ec2_snapshot_remove b287e7c0a6) last updated 2014/12/02 11:18:53 (GMT +1000)
lib/ansible/modules/extras: (detached HEAD 7e6fc7023d) last updated 2014/11/05 11:09:14 (GMT +1000)
v2/ansible/modules/core: (detached HEAD cb69744bce) last updated 2014/11/05 11:09:23 (GMT +1000)
v2/ansible/modules/extras: (detached HEAD 8a4f07eecd) last updated 2014/11/05 11:09:31 (GMT +1000)
configured module search path = None
</code></pre></div>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Fedora 21</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">You cannot use <code class="notranslate">inventory_dir</code> with <code class="notranslate">vars_files</code> - it's just not available to the <code class="notranslate">_update_vars_files</code> method.</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
---
- hosts: localhost
vars_files:
- "{{included}}"
tasks:
- debug: msg="{{included}}"
- debug: msg="{{inventory_dir}}"
- debug: msg="{{hello}}""><pre class="notranslate"><code class="notranslate">
---
- hosts: localhost
vars_files:
- "{{included}}"
tasks:
- debug: msg="{{included}}"
- debug: msg="{{inventory_dir}}"
- debug: msg="{{hello}}"
</code></pre></div>
<p dir="auto">run with <code class="notranslate">ansible-playbook -i ~/hosts</code> and <code class="notranslate">~/files/hello</code> containing:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="hello: world"><pre class="notranslate"><code class="notranslate">hello: world
</code></pre></div>
<p dir="auto">and <code class="notranslate">~/group_vars/all.yml</code> containing <code class="notranslate">included: "{{inventory_dir}}/files/hello</code><br>
shows that <code class="notranslate">inventory_dir</code> is correctly set but <code class="notranslate">hello</code> which should be set by <code class="notranslate">files/hello</code> is never set.</p>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto"><code class="notranslate">vars_files</code> should be able to expand <code class="notranslate">inventory_dir</code></p>
<h5 dir="auto">Actual Results:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [localhost] **************************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [debug msg="{{included}}"] **********************************************
ok: [localhost] => {
"msg": "/home/will/files/hello"
}
TASK: [debug msg="/home/will"] *********************************************
ok: [localhost] => {
"msg": "/home/will"
}
TASK: [debug msg="{{hello}}"] *************************************************
fatal: [localhost] => One or more undefined variables: 'hello' is undefined
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/home/will/vars_files.retry
"><pre class="notranslate"><code class="notranslate">PLAY [localhost] **************************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [debug msg="{{included}}"] **********************************************
ok: [localhost] => {
"msg": "/home/will/files/hello"
}
TASK: [debug msg="/home/will"] *********************************************
ok: [localhost] => {
"msg": "/home/will"
}
TASK: [debug msg="{{hello}}"] *************************************************
fatal: [localhost] => One or more undefined variables: 'hello' is undefined
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/home/will/vars_files.retry
</code></pre></div> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Documentation Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">os_subnet</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0
</code></pre></div>
<h5 dir="auto">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">Several of the Openstack os_* modules (e.g <a href="http://docs.ansible.com/ansible/os_subnet_module.html" rel="nofollow">http://docs.ansible.com/ansible/os_subnet_module.html</a>) reports two different python versions as requirements:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python >= 2.6
python >= 2.7
shade"><pre class="notranslate"><code class="notranslate">python >= 2.6
python >= 2.7
shade
</code></pre></div>
<p dir="auto">Looking in module <code class="notranslate">os_subnet.py</code> I can see that it only has these specified:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="requirements:
- "python >= 2.6"
- "shade""><pre class="notranslate"><code class="notranslate">requirements:
- "python >= 2.6"
- "shade"
</code></pre></div>
<p dir="auto">So I guess the requirement <code class="notranslate">python >= 2.7</code> is automagically picked up somehow.<br>
Is the correct way to fix this to remove the item <code class="notranslate">python >= 2.6</code> from requirements list?<br>
If so I can send PRs for that.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">N/A</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">N/A</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> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0
+ Ubuntu 16.04.5 LTS via WSL"><pre lang="none" class="notranslate"><code class="notranslate">
Platform ServicePack Version VersionString
-------- ----------- ------- -------------
Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0
+ Ubuntu 16.04.5 LTS via WSL
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Create profile for Ubuntu.</li>
<li>Set <code class="notranslate">"tabTitle": "Ubuntu"</code> in config.</li>
<li>Start bash tab. Notice title says "Ubuntu".</li>
<li>Run Win32 console program: sc.exe</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Title still shows "Ubuntu"</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Title shows, before and after running the program, "C:\Windows\system32\sc.exe"</p> | <h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">Currently it seems like the terminal doesn't pass mouse events to WSL (for example to select text in visual mode in vim). I would like to be able to continue using my mouse inside WSL.</p> | 0 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.1.2</li>
<li>Operating System / Platform => Arch Linux</li>
<li>Compiler => gcc 9.2.0</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Compilation of core module fails when specifying WITH_TBB=ON CMake option.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In file included from /usr/include/c++/9.2.0/ext/string_conversions.h:41,
from /usr/include/c++/9.2.0/bits/basic_string.h:6493,
from /usr/include/c++/9.2.0/string:55,
from /usr/include/c++/9.2.0/stdexcept:39,
from /usr/include/c++/9.2.0/array:39,
from /home/andrew/opencv/modules/core/include/opencv2/core/cvdef.h:700,
from /home/andrew/opencv/modules/core/include/opencv2/core.hpp:52,
from /home/andrew/opencv/modules/core/include/opencv2/core/utility.hpp:56,
from /home/andrew/opencv/modules/core/src/precomp.hpp:49,
from /home/andrew/opencv/modules/core/src/algorithm.cpp:43:
/usr/include/c++/9.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
75 | #include_next <stdlib.h>
| ^~~~~~~~~~
compilation terminated."><pre class="notranslate"><code class="notranslate">In file included from /usr/include/c++/9.2.0/ext/string_conversions.h:41,
from /usr/include/c++/9.2.0/bits/basic_string.h:6493,
from /usr/include/c++/9.2.0/string:55,
from /usr/include/c++/9.2.0/stdexcept:39,
from /usr/include/c++/9.2.0/array:39,
from /home/andrew/opencv/modules/core/include/opencv2/core/cvdef.h:700,
from /home/andrew/opencv/modules/core/include/opencv2/core.hpp:52,
from /home/andrew/opencv/modules/core/include/opencv2/core/utility.hpp:56,
from /home/andrew/opencv/modules/core/src/precomp.hpp:49,
from /home/andrew/opencv/modules/core/src/algorithm.cpp:43:
/usr/include/c++/9.2.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
75 | #include_next <stdlib.h>
| ^~~~~~~~~~
compilation terminated.
</code></pre></div>
<p dir="auto">The error seems unrelated to TBB, but it doesn't appear without WITH_TBB=ON. Probably a bug in CMake files?</p>
<h5 dir="auto">Steps to reproduce</h5>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cmake ../opencv \
-DWITH_TBB=ON \
-DLAPACK_LIBRARIES="/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so" \
-DLAPACK_CBLAS_H="/usr/include/cblas.h" \
-DLAPACK_LAPACKE_H="/usr/include/lapacke.h"
make -j $(nproc)"><pre class="notranslate">cmake ../opencv \
-DWITH_TBB=ON \
-DLAPACK_LIBRARIES=<span class="pl-s"><span class="pl-pds">"</span>/usr/lib/liblapack.so;/usr/lib/libblas.so;/usr/lib/libcblas.so<span class="pl-pds">"</span></span> \
-DLAPACK_CBLAS_H=<span class="pl-s"><span class="pl-pds">"</span>/usr/include/cblas.h<span class="pl-pds">"</span></span> \
-DLAPACK_LAPACKE_H=<span class="pl-s"><span class="pl-pds">"</span>/usr/include/lapacke.h<span class="pl-pds">"</span></span>
make -j <span class="pl-s"><span class="pl-pds">$(</span>nproc<span class="pl-pds">)</span></span></pre></div> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.1.0 (Master)</li>
<li>Operating System / Platform => Windows 10</li>
<li>Compiler => Visual Studio 2019</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">There is no support for the ONNX <a href="https://github.com/onnx/onnx/blob/master/docs/Operators.md#expand">"Expand"</a> layer inside OpenCV.<br>
I will try to make this work myself, "Expand" basically broadcasts <a href="https://docs.scipy.org/doc/numpy/user/basics.broadcasting.html" rel="nofollow">(Numpy style)</a> a tensor to a specified size.</p>
<p dir="auto"><em>Feel free to find a solution yourself as it might take quite a while for me to figure this out!</em></p> | 0 |
<p dir="auto">Opening a new issue so this isn't lost.</p>
<p dir="auto">In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="283691748" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/18882" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/18882/hovercard" href="https://github.com/pandas-dev/pandas/pull/18882">#18882</a> banned duplicate names in a MultiIndex. I think this is a good change since allowing duplicates hit a lot of edge cases when you went to actually do something. I want to make sure we understand all the cases that actually produce duplicate names in the MI though, specifically groupby.apply.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: import dask.dataframe as dd
In [2]: import pandas as pd
In [3]: pdf = pd.DataFrame({'a': [1, 2, 3, 4, 5, 6, 7, 8, 9],
...: 'b': [4, 5, 6, 3, 2, 1, 0, 0, 0]},
...: index=[0, 1, 3, 5, 6, 8, 9, 9, 9]).set_index("a")
...:
...:
In [4]: pdf.groupby(pdf.index).apply(lambda x: x.b)"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">import</span> <span class="pl-s1">dask</span>.<span class="pl-s1">dataframe</span> <span class="pl-k">as</span> <span class="pl-s1">dd</span>
<span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">pdf</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'a'</span>: [<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">6</span>, <span class="pl-c1">7</span>, <span class="pl-c1">8</span>, <span class="pl-c1">9</span>],
...: <span class="pl-s">'b'</span>: [<span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">6</span>, <span class="pl-c1">3</span>, <span class="pl-c1">2</span>, <span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>]},
...: <span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">3</span>, <span class="pl-c1">5</span>, <span class="pl-c1">6</span>, <span class="pl-c1">8</span>, <span class="pl-c1">9</span>, <span class="pl-c1">9</span>, <span class="pl-c1">9</span>]).<span class="pl-en">set_index</span>(<span class="pl-s">"a"</span>)
...:
...:
<span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">pdf</span>.<span class="pl-en">groupby</span>(<span class="pl-s1">pdf</span>.<span class="pl-s1">index</span>).<span class="pl-en">apply</span>(<span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-s1">x</span>.<span class="pl-s1">b</span>)</pre></div>
<p dir="auto">Another, more realistic example: groupwise drop_duplicates:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [18]: df = pd.DataFrame({"B": [0, 0, 0, 1, 1, 1, 2, 2, 2]}, index=pd.Index([0, 1, 1, 2, 2, 2, 0, 0, 1], name='a'))
In [19]: df
Out[19]:
B
a
0 0
1 0
1 0
2 1
2 1
2 1
0 2
0 2
1 2
In [20]: df.groupby('a').apply(pd.DataFrame.drop_duplicates)
Out[20]:
B
a a
0 0 0
0 2
1 1 0
1 2
2 2 1"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">18</span>]: <span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">"B"</span>: [<span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>]}, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-v">Index</span>([<span class="pl-c1">0</span>, <span class="pl-c1">1</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">2</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">1</span>], <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'a'</span>))
<span class="pl-v">In</span> [<span class="pl-c1">19</span>]: <span class="pl-s1">df</span>
<span class="pl-v">Out</span>[<span class="pl-c1">19</span>]:
<span class="pl-v">B</span>
<span class="pl-s1">a</span>
<span class="pl-c1">0</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">0</span>
<span class="pl-c1">2</span> <span class="pl-c1">1</span>
<span class="pl-c1">2</span> <span class="pl-c1">1</span>
<span class="pl-c1">2</span> <span class="pl-c1">1</span>
<span class="pl-c1">0</span> <span class="pl-c1">2</span>
<span class="pl-c1">0</span> <span class="pl-c1">2</span>
<span class="pl-c1">1</span> <span class="pl-c1">2</span>
<span class="pl-v">In</span> [<span class="pl-c1">20</span>]: <span class="pl-s1">df</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'a'</span>).<span class="pl-en">apply</span>(<span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>.<span class="pl-s1">drop_duplicates</span>)
<span class="pl-v">Out</span>[<span class="pl-c1">20</span>]:
<span class="pl-v">B</span>
<span class="pl-s1">a</span> <span class="pl-s1">a</span>
<span class="pl-c1">0</span> <span class="pl-c1">0</span> <span class="pl-c1">0</span>
<span class="pl-c1">0</span> <span class="pl-c1">2</span>
<span class="pl-c1">1</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-c1">2</span> <span class="pl-c1">2</span> <span class="pl-c1">1</span></pre></div>
<p dir="auto">Is it possible to throw a warning on this for now, in case duplicate names are more common than we thought?</p> | <p dir="auto">I think the <code class="notranslate">replace</code> docstring is lacking in many ways (<a href="https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.replace.html" rel="nofollow">https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.replace.html</a>):</p>
<ul dir="auto">
<li>The explanation of <code class="notranslate">to_replace</code> keyword is both way too complex and lacking an explanation of the simple cases:
<ul dir="auto">
<li>the most simple case of a scalar value is not clearly mentioned (like <code class="notranslate">df.replace(to_replace=0, replace=1)</code>, it is mentioned in the 'str' explanation, but it is not specific to strings)</li>
<li>the simplest dict case of <code class="notranslate">df.replace({to_replace: replacement})</code> is not mentioned (the dict explanation starts with explanation of nested dicts)</li>
<li>I would personally rewrite this whole explanation of this keyword, start with basic cases, and only after that (or in the notes) explain the complex cases.</li>
</ul>
</li>
<li>There is a reference to the examples section for "examples of each of those", but there is no examples section. We should add one.</li>
<li>In the 'see also' section it references <code class="notranslate">reindex</code>, <code class="notranslate">asfreq</code> and <code class="notranslate">fillna</code>. <code class="notranslate">fillna</code> is fine, but I fail to see the link with the first two. I would rather add a reference to <code class="notranslate">where</code> to replace values based on a boolean condition (and the 'see also' should not just refer to the other methods, but also include a sentence on why / the difference)</li>
<li>The docstring also uses <code class="notranslate">NDFrame</code>, and this should never be in a public docstring (failing substituion of docstring in <code class="notranslate">generic</code>)</li>
<li>I would personally also write separate docstrings for the series and dataframe case. This will give some duplication, but I think this gives room to simplify the docstring (or certainly for the simpler Series.replace case). (xref <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="168481230" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/13852" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/13852/hovercard" href="https://github.com/pandas-dev/pandas/issues/13852">#13852</a>)</li>
</ul>
<p dir="auto">See the tutorial docs (<a href="https://pandas.pydata.org/pandas-docs/stable/missing_data.html#replacing-generic-values" rel="nofollow">https://pandas.pydata.org/pandas-docs/stable/missing_data.html#replacing-generic-values</a>) with some actual examples.</p>
<p dir="auto">Underlying reason is that this function of course can do way too many things at the same time (or the same things in too many different ways) ... (orthogonal to this, we could maybe also think if certain functionality could be moved into its own function).</p> | 0 |
<ul dir="auto">
<li>Electron version: 1.2.0</li>
<li>Operating system: OSX 10.11.5</li>
</ul>
<p dir="auto">Hi,</p>
<p dir="auto">I just moved an app from 1.1.x to 1.2.x and discovered my preload script isn't executing for the <code class="notranslate">BrowserWindow</code></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict';
window.$ = window.jQuery = require('jquery');
console.info("Preloaded jquery");"><pre class="notranslate"><span class="pl-s">'use strict'</span><span class="pl-kos">;</span>
<span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">$</span> <span class="pl-c1">=</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">jQuery</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'jquery'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">info</span><span class="pl-kos">(</span><span class="pl-s">"Preloaded jquery"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">If I move back to 1.1.x, the script runs as expected.</p> | <ul dir="auto">
<li>Electron version: 1.2.0</li>
<li>Operating system: OS X 10.11.5</li>
</ul>
<p dir="auto">webview preload attribute seems to be broken in Electron 1.2.0/Chrome 51 (worked with 1.1.3/Chrome 50).</p>
<p dir="auto">Here is how I used it (successfully) on versions prior to 1.2.0:<br>
<code class="notranslate">@webview.preload = "file://#{app.getAppPath()}/js/player-preload.js"</code></p>
<p dir="auto">Tried to put it in the HTML webview tag directly as attribute, same thing.</p>
<p dir="auto">Note: No error in the Console though, it's just that the script is never actually executed.</p> | 1 |
<p dir="auto">When started from another application, e.g. windows explorer with "Open with Atom", the existing Atom process opens the file, but Atom window doesn't raise (or restore). This is however actually almost always the case when a file is double clicked in Explorer.</p> | <p dir="auto">When Atom is restored but hidden behind several windows. "Open with Atom" right click function should send it to the front.</p> | 1 |
<p dir="auto">I got an unexpected exceptions "Explosion" when switching my android virtual device from 4.7 WXGA to Nexus 6 (nothing fancy, just default configs). The screen causing the crash had a Gridview widget with <code class="notranslate">gridDelegate SliverGridDelegateWithFixedCrossAxisCount</code>, built with the <code class="notranslate">.builder()</code> constructor, since I am building a calendar with markers inside and it comes more handy to have a function creating the children.</p>
<p dir="auto">From what I understood from the Exception Stacktrace it looks like a numeric issue when computing the children sizes: 440.8163265306122 is very, very, very close to 440.81632653061223, but yet bigger.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I/flutter ( 5159): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter ( 5159): The following assertion was thrown during performLayout():
I/flutter ( 5159): SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
I/flutter ( 5159): The maxPaintExtent is 440.8163265306122, but the paintExtent is 440.81632653061223. Maybe you have
I/flutter ( 5159): fallen prey to floating point rounding errors, and should explicitly apply the min() or max()
I/flutter ( 5159): functions, or the clamp() method, to the paintExtent? By definition, a sliver can't paint more than
I/flutter ( 5159): the maximum that it can paint!
I/flutter ( 5159): The RenderSliver that returned the offending geometry was:
I/flutter ( 5159): RenderSliverGrid#c2075 relayoutBoundary=up20 NEEDS-LAYOUT NEEDS-PAINT
I/flutter ( 5159): creator: SliverGrid ← ShrinkWrappingViewport ← _ScrollableScope ← IgnorePointer-[GlobalKey#45e4e]
I/flutter ( 5159): ← Listener ← _GestureSemantics ←
I/flutter ( 5159): RawGestureDetector-[LabeledGlobalKey<RawGestureDetectorState>#7ff23] ← RepaintBoundary ←
I/flutter ( 5159): CustomPaint ← RepaintBoundary ← NotificationListener<ScrollNotification> ←
I/flutter ( 5159): GlowingOverscrollIndicator ← ⋯
I/flutter ( 5159): parentData: layoutOffset=0.0 (can use size)
I/flutter ( 5159): constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.idle,
I/flutter ( 5159): scrollOffset: 0.0, remainingPaintExtent: Infinity, crossAxisExtent: 411.4, viewportMainAxisExtent:
I/flutter ( 5159): Infinity)
I/flutter ( 5159): geometry: SliverGeometry(scrollExtent: 440.8, paintExtent: 440.8, maxPaintExtent: 440.8,
I/flutter ( 5159): hasVisualOverflow: true, )
I/flutter ( 5159): currently live children: 0 to 41"><pre class="notranslate"><code class="notranslate">I/flutter ( 5159): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter ( 5159): The following assertion was thrown during performLayout():
I/flutter ( 5159): SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
I/flutter ( 5159): The maxPaintExtent is 440.8163265306122, but the paintExtent is 440.81632653061223. Maybe you have
I/flutter ( 5159): fallen prey to floating point rounding errors, and should explicitly apply the min() or max()
I/flutter ( 5159): functions, or the clamp() method, to the paintExtent? By definition, a sliver can't paint more than
I/flutter ( 5159): the maximum that it can paint!
I/flutter ( 5159): The RenderSliver that returned the offending geometry was:
I/flutter ( 5159): RenderSliverGrid#c2075 relayoutBoundary=up20 NEEDS-LAYOUT NEEDS-PAINT
I/flutter ( 5159): creator: SliverGrid ← ShrinkWrappingViewport ← _ScrollableScope ← IgnorePointer-[GlobalKey#45e4e]
I/flutter ( 5159): ← Listener ← _GestureSemantics ←
I/flutter ( 5159): RawGestureDetector-[LabeledGlobalKey<RawGestureDetectorState>#7ff23] ← RepaintBoundary ←
I/flutter ( 5159): CustomPaint ← RepaintBoundary ← NotificationListener<ScrollNotification> ←
I/flutter ( 5159): GlowingOverscrollIndicator ← ⋯
I/flutter ( 5159): parentData: layoutOffset=0.0 (can use size)
I/flutter ( 5159): constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.idle,
I/flutter ( 5159): scrollOffset: 0.0, remainingPaintExtent: Infinity, crossAxisExtent: 411.4, viewportMainAxisExtent:
I/flutter ( 5159): Infinity)
I/flutter ( 5159): geometry: SliverGeometry(scrollExtent: 440.8, paintExtent: 440.8, maxPaintExtent: 440.8,
I/flutter ( 5159): hasVisualOverflow: true, )
I/flutter ( 5159): currently live children: 0 to 41
</code></pre></div>
<p dir="auto">the code experiencing the bug looks like::</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Widget build(BuildContext context) {
return new Scaffold(
body: new Scrollbar(
child: new ListView(
controller: _scrollController,
shrinkWrap: true,
children: <Widget>[
***
new GridView.builder(
shrinkWrap: true,
controller: _scrollController,
itemCount: countDays(firstDay),
gridDelegate: new SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 7,
childAspectRatio: 4 / 5,
),
itemBuilder: calendarTileBuilder,
),
"><pre class="notranslate"><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-k">new</span> <span class="pl-c1">Scaffold</span>(
body<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Scrollbar</span>(
child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">ListView</span>(
controller<span class="pl-k">:</span> _scrollController,
shrinkWrap<span class="pl-k">:</span> <span class="pl-c1">true</span>,
children<span class="pl-k">:</span> <span class="pl-k"><</span><span class="pl-c1">Widget</span><span class="pl-k">></span>[
<span class="pl-k">***</span>
<span class="pl-k">new</span> <span class="pl-c1">GridView</span>.<span class="pl-en">builder</span>(
shrinkWrap<span class="pl-k">:</span> <span class="pl-c1">true</span>,
controller<span class="pl-k">:</span> _scrollController,
itemCount<span class="pl-k">:</span> <span class="pl-en">countDays</span>(firstDay),
gridDelegate<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">SliverGridDelegateWithFixedCrossAxisCount</span>(
crossAxisCount<span class="pl-k">:</span> <span class="pl-c1">7</span>,
childAspectRatio<span class="pl-k">:</span> <span class="pl-c1">4</span> <span class="pl-k">/</span> <span class="pl-c1">5</span>,
),
itemBuilder<span class="pl-k">:</span> calendarTileBuilder,
),
</pre></div>
<p dir="auto">While changing childAspectRatio to 4.1/5 does not reproduce the bug.</p> | <h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">I have been trying to use the following Calendar widget: <a href="https://github.com/apptreesoftware/flutter_calendar">flutter_calendar</a><br>
However, when expanding the calendar an assertion fails in SliverGeometry.<br>
The error occurs when run on a Nexus 6 emulator.</p>
<p dir="auto"><strong>Code to reproduce</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_calendar/flutter_calendar.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
home: new CupertinoTabScaffold(
tabBar: new CupertinoTabBar(
items: <BottomNavigationBarItem>[
new BottomNavigationBarItem(
icon: const Icon(CupertinoIcons.home),
title: const Text("Calendar"),
),
new BottomNavigationBarItem(
icon: const Icon(CupertinoIcons.home),
title: const Text("Calendar"),
),
new BottomNavigationBarItem(
icon: const Icon(CupertinoIcons.home),
title: const Text("Calendar"),
),
new BottomNavigationBarItem(
icon: const Icon(CupertinoIcons.home),
title: const Text("Calendar"),
),
],
),
tabBuilder: (BuildContext context, int index) {
return new DefaultTextStyle(
style: const TextStyle(
fontFamily: '.SF UI Text',
fontSize: 17.0,
color: CupertinoColors.black,
),
child: new CupertinoTabView(
builder: (BuildContext context) {
return new CupertinoPageScaffold(
navigationBar: new CupertinoNavigationBar(
middle: const Text('Calendar'),
),
child: new Material(child: new Calendar(isExpandable: true)));
},
),
);
},
),
);
}
}"><pre class="notranslate"><code class="notranslate">import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter_calendar/flutter_calendar.dart';
void main() {
runApp(new MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
home: new CupertinoTabScaffold(
tabBar: new CupertinoTabBar(
items: <BottomNavigationBarItem>[
new BottomNavigationBarItem(
icon: const Icon(CupertinoIcons.home),
title: const Text("Calendar"),
),
new BottomNavigationBarItem(
icon: const Icon(CupertinoIcons.home),
title: const Text("Calendar"),
),
new BottomNavigationBarItem(
icon: const Icon(CupertinoIcons.home),
title: const Text("Calendar"),
),
new BottomNavigationBarItem(
icon: const Icon(CupertinoIcons.home),
title: const Text("Calendar"),
),
],
),
tabBuilder: (BuildContext context, int index) {
return new DefaultTextStyle(
style: const TextStyle(
fontFamily: '.SF UI Text',
fontSize: 17.0,
color: CupertinoColors.black,
),
child: new CupertinoTabView(
builder: (BuildContext context) {
return new CupertinoPageScaffold(
navigationBar: new CupertinoNavigationBar(
middle: const Text('Calendar'),
),
child: new Material(child: new Calendar(isExpandable: true)));
},
),
);
},
),
);
}
}
</code></pre></div>
<p dir="auto">I have tracked it down to the GridView.count function. Modifying the childAspectRatio to 1.0 (instead of the 1.5 in the library) fixed the error.</p>
<p dir="auto">To fix this issue (at-least) 2 things can be done.<br>
The assertion could be changed to a proper floating point comparison or the doubles should be rounded after dividing by childAspectRatio.</p>
<h2 dir="auto">Logs</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[+22570 ms] I/flutter ( 5110): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
[ +4 ms] I/flutter ( 5110): The following assertion was thrown during performLayout():
[ ] I/flutter ( 5110): SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
[ ] I/flutter ( 5110): The maxPaintExtent is 235.10204081632654, but the paintExtent is 235.10204081632656. Maybe you have
[ ] I/flutter ( 5110): fallen prey to floating point rounding errors, and should explicitly apply the min() or max()
[ ] I/flutter ( 5110): functions, or the clamp() method, to the paintExtent? By definition, a sliver can't paint more than
[ ] I/flutter ( 5110): the maximum that it can paint!
[ ] I/flutter ( 5110): The RenderSliver that returned the offending geometry was:
[ ] I/flutter ( 5110): RenderSliverGrid#d09cf relayoutBoundary=up21 NEEDS-LAYOUT NEEDS-PAINT
[ ] I/flutter ( 5110): creator: SliverGrid ← SliverPadding ← ShrinkWrappingViewport ← _ScrollableScope ←
[ ] I/flutter ( 5110): IgnorePointer-[GlobalKey#abc6e] ← Semantics ← Listener ← _GestureSemantics ←
[ ] I/flutter ( 5110): RawGestureDetector-[LabeledGlobalKey<RawGestureDetectorState>#9015c] ←
[ ] I/flutter ( 5110): _ExcludableScrollSemantics-[GlobalKey#141ba] ← RepaintBoundary ← CustomPaint ← ⋯
[ ] I/flutter ( 5110): parentData: paintOffset=Offset(0.0, 0.0) (can use size)
[ ] I/flutter ( 5110): constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.idle,
[ ] I/flutter ( 5110): scrollOffset: 0.0, remainingPaintExtent: 587.4, crossAxisExtent: 411.4, crossAxisDirection:
[ ] I/flutter ( 5110): AxisDirection.right, viewportMainAxisExtent: 587.4)
[ ] I/flutter ( 5110): geometry: SliverGeometry(scrollExtent: 235.1, paintExtent: 235.1, maxPaintExtent: 235.1,
[ ] I/flutter ( 5110): hasVisualOverflow: true)
[ ] I/flutter ( 5110): currently live children: 0 to 41
[ +2 ms] I/flutter ( 5110): When the exception was thrown, this was the stack:
[ +4 ms] I/flutter ( 5110): #0 SliverGeometry.debugAssertIsValid.<anonymous closure>.verify (package:flutter/src/rendering/sliver.dart:542)
[ ] I/flutter ( 5110): #1 SliverGeometry.debugAssertIsValid.<anonymous closure> (package:flutter/src/rendering/sliver.dart:559)
[ ] I/flutter ( 5110): #2 SliverGeometry.debugAssertIsValid (package:flutter/src/rendering/sliver.dart:571)
[ ] I/flutter ( 5110): #3 RenderSliver.debugAssertDoesMeetConstraints (package:flutter/src/rendering/sliver.dart:925)
[ ] I/flutter ( 5110): #4 RenderObject.layout.<anonymous closure> (package:flutter/src/rendering/object.dart:1572)
[ ] I/flutter ( 5110): #5 RenderObject.layout (package:flutter/src/rendering/object.dart:1572)
[ ] I/flutter ( 5110): #6 RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:182)
[ ] I/flutter ( 5110): #7 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #8 RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:285)
[ ] I/flutter ( 5110): #9 RenderShrinkWrappingViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1335)
[ ] I/flutter ( 5110): #10 RenderShrinkWrappingViewport.performLayout (package:flutter/src/rendering/viewport.dart:1298)
[ ] I/flutter ( 5110): #11 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #12 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #13 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #14 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #15 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #16 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ +7 ms] I/flutter ( 5110): #17 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #18 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #19 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #20 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #21 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #22 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #23 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #24 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #25 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #26 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #27 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #28 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #29 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #30 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #31 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #32 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #33 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #34 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #35 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #36 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:509)
[ ] I/flutter ( 5110): #37 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #38 RenderAnimatedSize.performLayout (package:flutter/src/rendering/animated_size.dart:172)
[ ] I/flutter ( 5110): #39 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #40 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #41 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1141)
[ ] I/flutter ( 5110): #42 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #43 RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:798)
[ ] I/flutter ( 5110): #44 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #45 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #46 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #47 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #48 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1141)
[ ] I/flutter ( 5110): #49 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #50 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:509)
[ ] I/flutter ( 5110): #51 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1445)
[ ] I/flutter ( 5110): #52 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:709)
[ ] I/flutter ( 5110): #53 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:270)
[ ] I/flutter ( 5110): #54 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:622)
[ ] I/flutter ( 5110): #55 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208)
[ ] I/flutter ( 5110): #56 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990)
[ ] I/flutter ( 5110): #57 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930)
[ ] I/flutter ( 5110): #58 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842)
[ ] I/flutter ( 5110): #59 _invoke (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:120)
[ ] I/flutter ( 5110): #60 _drawFrame (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:109)
[ +1 ms] I/flutter ( 5110): The following RenderObject was being processed when the exception was fired:
[ ] I/flutter ( 5110): RenderSliverGrid#d09cf relayoutBoundary=up21 NEEDS-LAYOUT NEEDS-PAINT
[ ] I/flutter ( 5110): creator: SliverGrid ← SliverPadding ← ShrinkWrappingViewport ← _ScrollableScope ←
[ ] I/flutter ( 5110): IgnorePointer-[GlobalKey#abc6e] ← Semantics ← Listener ← _GestureSemantics ←
[ ] I/flutter ( 5110): RawGestureDetector-[LabeledGlobalKey<RawGestureDetectorState>#9015c] ←
[ ] I/flutter ( 5110): _ExcludableScrollSemantics-[GlobalKey#141ba] ← RepaintBoundary ← CustomPaint ← ⋯
[ ] I/flutter ( 5110): parentData: paintOffset=Offset(0.0, 0.0) (can use size)
[ ] I/flutter ( 5110): constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.idle,
[ ] I/flutter ( 5110): scrollOffset: 0.0, remainingPaintExtent: 587.4, crossAxisExtent: 411.4, crossAxisDirection:
[ ] I/flutter ( 5110): AxisDirection.right, viewportMainAxisExtent: 587.4)
[ ] I/flutter ( 5110): geometry: SliverGeometry(scrollExtent: 235.1, paintExtent: 235.1, maxPaintExtent: 235.1,
[ ] I/flutter ( 5110): hasVisualOverflow: true)
[ ] I/flutter ( 5110): currently live children: 0 to 41
[ ] I/flutter ( 5110): This RenderObject had the following descendants (showing up to depth 5):
[ ] I/flutter ( 5110): RenderRepaintBoundary#1c3d3 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderDecoratedBox#ccfc8 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderSemanticsGestureHandler#310bd NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPointerListener#f448b NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPositionedBox#3382f NEEDS-PAINT
[ ] I/flutter ( 5110): RenderRepaintBoundary#a469d NEEDS-PAINT
[ ] I/flutter ( 5110): RenderDecoratedBox#4a231 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderSemanticsGestureHandler#e018a NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPointerListener#64a4b NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPositionedBox#44799 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderRepaintBoundary#b4867 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderDecoratedBox#efe66 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderSemanticsGestureHandler#394a5 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPointerListener#46627 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPositionedBox#e9335 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderRepaintBoundary#01d08 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderDecoratedBox#1bc94 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderSemanticsGestureHandler#e8563 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPointerListener#3d490 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPositionedBox#22abe NEEDS-PAINT
[ ] I/flutter ( 5110): RenderRepaintBoundary#e8141 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderDecoratedBox#68b52 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderSemanticsGestureHandler#d5337 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPointerListener#59059 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPositionedBox#34a1e NEEDS-PAINT
[ ] I/flutter ( 5110): ...(descendants list truncated after 25 lines)
[ ] I/flutter ( 5110): ════════════════════════════════════════════════════════════════════════════════════════════════════
[ +1 ms] I/flutter ( 5110): Another exception was thrown: SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
[ ] I/flutter ( 5110): Another exception was thrown: SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
[ +24 ms] I/flutter ( 5110): Another exception was thrown: SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
[ ] I/flutter ( 5110): Another exception was thrown: SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
[ ] I/flutter ( 5110): Another exception was thrown: SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
[ +231 ms] I/flutter ( 5110): Another exception was thrown: SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent"."><pre class="notranslate"><code class="notranslate">[+22570 ms] I/flutter ( 5110): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
[ +4 ms] I/flutter ( 5110): The following assertion was thrown during performLayout():
[ ] I/flutter ( 5110): SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
[ ] I/flutter ( 5110): The maxPaintExtent is 235.10204081632654, but the paintExtent is 235.10204081632656. Maybe you have
[ ] I/flutter ( 5110): fallen prey to floating point rounding errors, and should explicitly apply the min() or max()
[ ] I/flutter ( 5110): functions, or the clamp() method, to the paintExtent? By definition, a sliver can't paint more than
[ ] I/flutter ( 5110): the maximum that it can paint!
[ ] I/flutter ( 5110): The RenderSliver that returned the offending geometry was:
[ ] I/flutter ( 5110): RenderSliverGrid#d09cf relayoutBoundary=up21 NEEDS-LAYOUT NEEDS-PAINT
[ ] I/flutter ( 5110): creator: SliverGrid ← SliverPadding ← ShrinkWrappingViewport ← _ScrollableScope ←
[ ] I/flutter ( 5110): IgnorePointer-[GlobalKey#abc6e] ← Semantics ← Listener ← _GestureSemantics ←
[ ] I/flutter ( 5110): RawGestureDetector-[LabeledGlobalKey<RawGestureDetectorState>#9015c] ←
[ ] I/flutter ( 5110): _ExcludableScrollSemantics-[GlobalKey#141ba] ← RepaintBoundary ← CustomPaint ← ⋯
[ ] I/flutter ( 5110): parentData: paintOffset=Offset(0.0, 0.0) (can use size)
[ ] I/flutter ( 5110): constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.idle,
[ ] I/flutter ( 5110): scrollOffset: 0.0, remainingPaintExtent: 587.4, crossAxisExtent: 411.4, crossAxisDirection:
[ ] I/flutter ( 5110): AxisDirection.right, viewportMainAxisExtent: 587.4)
[ ] I/flutter ( 5110): geometry: SliverGeometry(scrollExtent: 235.1, paintExtent: 235.1, maxPaintExtent: 235.1,
[ ] I/flutter ( 5110): hasVisualOverflow: true)
[ ] I/flutter ( 5110): currently live children: 0 to 41
[ +2 ms] I/flutter ( 5110): When the exception was thrown, this was the stack:
[ +4 ms] I/flutter ( 5110): #0 SliverGeometry.debugAssertIsValid.<anonymous closure>.verify (package:flutter/src/rendering/sliver.dart:542)
[ ] I/flutter ( 5110): #1 SliverGeometry.debugAssertIsValid.<anonymous closure> (package:flutter/src/rendering/sliver.dart:559)
[ ] I/flutter ( 5110): #2 SliverGeometry.debugAssertIsValid (package:flutter/src/rendering/sliver.dart:571)
[ ] I/flutter ( 5110): #3 RenderSliver.debugAssertDoesMeetConstraints (package:flutter/src/rendering/sliver.dart:925)
[ ] I/flutter ( 5110): #4 RenderObject.layout.<anonymous closure> (package:flutter/src/rendering/object.dart:1572)
[ ] I/flutter ( 5110): #5 RenderObject.layout (package:flutter/src/rendering/object.dart:1572)
[ ] I/flutter ( 5110): #6 RenderSliverPadding.performLayout (package:flutter/src/rendering/sliver_padding.dart:182)
[ ] I/flutter ( 5110): #7 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #8 RenderViewportBase.layoutChildSequence (package:flutter/src/rendering/viewport.dart:285)
[ ] I/flutter ( 5110): #9 RenderShrinkWrappingViewport._attemptLayout (package:flutter/src/rendering/viewport.dart:1335)
[ ] I/flutter ( 5110): #10 RenderShrinkWrappingViewport.performLayout (package:flutter/src/rendering/viewport.dart:1298)
[ ] I/flutter ( 5110): #11 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #12 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #13 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #14 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #15 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #16 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ +7 ms] I/flutter ( 5110): #17 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #18 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #19 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #20 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #21 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #22 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #23 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #24 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #25 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #26 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #27 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #28 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #29 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #30 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #31 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #32 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #33 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #34 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #35 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #36 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:509)
[ ] I/flutter ( 5110): #37 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #38 RenderAnimatedSize.performLayout (package:flutter/src/rendering/animated_size.dart:172)
[ ] I/flutter ( 5110): #39 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #40 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #41 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1141)
[ ] I/flutter ( 5110): #42 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #43 RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:798)
[ ] I/flutter ( 5110): #44 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #45 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #46 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #47 RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:107)
[ ] I/flutter ( 5110): #48 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1141)
[ ] I/flutter ( 5110): #49 RenderObject.layout (package:flutter/src/rendering/object.dart:1570)
[ ] I/flutter ( 5110): #50 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:509)
[ ] I/flutter ( 5110): #51 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1445)
[ ] I/flutter ( 5110): #52 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:709)
[ ] I/flutter ( 5110): #53 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:270)
[ ] I/flutter ( 5110): #54 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:622)
[ ] I/flutter ( 5110): #55 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208)
[ ] I/flutter ( 5110): #56 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990)
[ ] I/flutter ( 5110): #57 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930)
[ ] I/flutter ( 5110): #58 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842)
[ ] I/flutter ( 5110): #59 _invoke (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:120)
[ ] I/flutter ( 5110): #60 _drawFrame (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:109)
[ +1 ms] I/flutter ( 5110): The following RenderObject was being processed when the exception was fired:
[ ] I/flutter ( 5110): RenderSliverGrid#d09cf relayoutBoundary=up21 NEEDS-LAYOUT NEEDS-PAINT
[ ] I/flutter ( 5110): creator: SliverGrid ← SliverPadding ← ShrinkWrappingViewport ← _ScrollableScope ←
[ ] I/flutter ( 5110): IgnorePointer-[GlobalKey#abc6e] ← Semantics ← Listener ← _GestureSemantics ←
[ ] I/flutter ( 5110): RawGestureDetector-[LabeledGlobalKey<RawGestureDetectorState>#9015c] ←
[ ] I/flutter ( 5110): _ExcludableScrollSemantics-[GlobalKey#141ba] ← RepaintBoundary ← CustomPaint ← ⋯
[ ] I/flutter ( 5110): parentData: paintOffset=Offset(0.0, 0.0) (can use size)
[ ] I/flutter ( 5110): constraints: SliverConstraints(AxisDirection.down, GrowthDirection.forward, ScrollDirection.idle,
[ ] I/flutter ( 5110): scrollOffset: 0.0, remainingPaintExtent: 587.4, crossAxisExtent: 411.4, crossAxisDirection:
[ ] I/flutter ( 5110): AxisDirection.right, viewportMainAxisExtent: 587.4)
[ ] I/flutter ( 5110): geometry: SliverGeometry(scrollExtent: 235.1, paintExtent: 235.1, maxPaintExtent: 235.1,
[ ] I/flutter ( 5110): hasVisualOverflow: true)
[ ] I/flutter ( 5110): currently live children: 0 to 41
[ ] I/flutter ( 5110): This RenderObject had the following descendants (showing up to depth 5):
[ ] I/flutter ( 5110): RenderRepaintBoundary#1c3d3 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderDecoratedBox#ccfc8 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderSemanticsGestureHandler#310bd NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPointerListener#f448b NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPositionedBox#3382f NEEDS-PAINT
[ ] I/flutter ( 5110): RenderRepaintBoundary#a469d NEEDS-PAINT
[ ] I/flutter ( 5110): RenderDecoratedBox#4a231 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderSemanticsGestureHandler#e018a NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPointerListener#64a4b NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPositionedBox#44799 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderRepaintBoundary#b4867 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderDecoratedBox#efe66 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderSemanticsGestureHandler#394a5 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPointerListener#46627 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPositionedBox#e9335 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderRepaintBoundary#01d08 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderDecoratedBox#1bc94 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderSemanticsGestureHandler#e8563 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPointerListener#3d490 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPositionedBox#22abe NEEDS-PAINT
[ ] I/flutter ( 5110): RenderRepaintBoundary#e8141 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderDecoratedBox#68b52 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderSemanticsGestureHandler#d5337 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPointerListener#59059 NEEDS-PAINT
[ ] I/flutter ( 5110): RenderPositionedBox#34a1e NEEDS-PAINT
[ ] I/flutter ( 5110): ...(descendants list truncated after 25 lines)
[ ] I/flutter ( 5110): ════════════════════════════════════════════════════════════════════════════════════════════════════
[ +1 ms] I/flutter ( 5110): Another exception was thrown: SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
[ ] I/flutter ( 5110): Another exception was thrown: SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
[ +24 ms] I/flutter ( 5110): Another exception was thrown: SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
[ ] I/flutter ( 5110): Another exception was thrown: SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
[ ] I/flutter ( 5110): Another exception was thrown: SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
[ +231 ms] I/flutter ( 5110): Another exception was thrown: SliverGeometry is not valid: The "maxPaintExtent" is less than the "paintExtent".
</code></pre></div>
<h2 dir="auto">Flutter Doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.2.3, on Linux, locale en_US.UTF-8)
• Flutter version 0.2.3 at /home/julius/flutter
• Framework revision 5a58b36e36 (3 weeks ago), 2018-03-13 13:20:13 -0700
• Engine revision e61bb9ac3a
• Dart version 2.0.0-dev.35.flutter-290c576264
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /home/julius/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: /usr/local/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
• All Android licenses accepted.
[✓] Android Studio (version 3.0)
• Android Studio at /usr/local/android-studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.2)
• IntelliJ at /home/julius/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/172.4343.14
• Flutter plugin version 21.2.2
• Dart plugin version 172.4343.25
[!] IntelliJ IDEA Ultimate Edition (version 2017.1)
• IntelliJ at /home/julius/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/171.4694.23
✗ 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.16.1)
• VS Code at /usr/share/code
• Dart Code extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code
[✓] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 5.1.1 (API 22) (emulator)
! Doctor found issues in 2 categories."><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.2.3, on Linux, locale en_US.UTF-8)
• Flutter version 0.2.3 at /home/julius/flutter
• Framework revision 5a58b36e36 (3 weeks ago), 2018-03-13 13:20:13 -0700
• Engine revision e61bb9ac3a
• Dart version 2.0.0-dev.35.flutter-290c576264
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /home/julius/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: /usr/local/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
• All Android licenses accepted.
[✓] Android Studio (version 3.0)
• Android Studio at /usr/local/android-studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.2)
• IntelliJ at /home/julius/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/172.4343.14
• Flutter plugin version 21.2.2
• Dart plugin version 172.4343.25
[!] IntelliJ IDEA Ultimate Edition (version 2017.1)
• IntelliJ at /home/julius/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/171.4694.23
✗ 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.16.1)
• VS Code at /usr/share/code
• Dart Code extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.dart-code
[✓] Connected devices (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 5.1.1 (API 22) (emulator)
! Doctor found issues in 2 categories.
</code></pre></div> | 1 |
<h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">It seems that I have to restart the application to apply changed environmental variables (such as PATH). Opening a new "cmd" tab did not reflect the changes.</p>
<p dir="auto">How about adding an option to read environmental variables again when opening a new "cmd" tab? Or a "Refresh environmental variables" entry in the drop-down menu.</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 1903 18362.267
Windows Terminal version (if applicable): 0.3.2142.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 1903 18362.267
Windows Terminal version (if applicable): 0.3.2142.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Window Terminal have to be possible to use internationally.<br>
"international localization" is the keyword which have to remember.</p>
<p dir="auto">Cant give chars @ $ £ { [ ] } because keymapping ctrl+alt+1-9 kill those keys ex. in swedish, finnish, ... keyboards.</p>
<ul dir="auto">
<li>@ = AltGr+2</li>
<li>$ = AltGr+4</li>
<li>...</li>
</ul>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">After I changed those tabbing keymapping ex. ctrl+shift+1, ctrl+shift+2, ... I got those important shell level characters from my keyboard as they have been since 199x.</p>
<h1 dir="auto">Actual behavior</h1> | 0 |
<p dir="auto">Hello. I would like to suggest/request the addition of a way to create projects using Deno CLI, like we do when using cargo for Rust. For example:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno new --bin project-name "><pre class="notranslate">deno new --bin project-name </pre></div>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno new --lib project-name"><pre class="notranslate">deno new --lib project-name</pre></div>
<p dir="auto">As we all know, like this, all projects will be organized with a well known structure. Perhaps we can use the config file to help us too, allowing to call external libs. And yes, I know about how deno uses url's to import stuff.<br>
Anyways, Thanks !</p> | <h3 dir="auto">edit: I think <a href="https://github.com/denoland/deno/issues/2584#issuecomment-506069227" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/2584/hovercard">my comment below</a> does a better job of explaining what I'm proposing.</h3>
<p dir="auto"><em>Bear with me on this first paragraph, I do have a point...</em></p>
<p dir="auto">While I appreciate deno eliminating <code class="notranslate">package.json</code>, there are several aspects of <code class="notranslate">package.json</code> that I find myself missing. For instance, <code class="notranslate">package.json</code> established a convention of adding / aliasing project tasks in the <code class="notranslate">"scripts"</code> section, and in general I've found a good way to learn about a new repo is to start by peaking inside <code class="notranslate">package.json</code>. It can also be helpful to know where to look to find a project's <code class="notranslate">version</code>, etc. All of this really just boils down to the fact that <code class="notranslate">package.json</code> helped push/establish a set of project conventions within the javascript / node community.</p>
<p dir="auto">I definitely don't want deno to <em>require</em> a set of project conventions, but it would be nice if deno <em>suggested</em> some project conventions / best practices.</p>
<p dir="auto">The best way that comes to mind to accomplish this would be to add a <code class="notranslate">deno new</code> (or <code class="notranslate">deno init</code>, <code class="notranslate">deno generate</code>, etc) command which scaffolds out a new project directory. This project directory could adhere to whatever the deno "best practices" are.</p>
<p dir="auto">Would you accept PRs for a feature like this? Do other people think this is a good idea?</p>
<p dir="auto">For example (obviously up for discussion):</p>
<ul dir="auto">
<li>have a top level <code class="notranslate">mod.ts</code> file
<ul dir="auto">
<li>include a comment in the file explaining it's use</li>
</ul>
</li>
<li>have a top level <code class="notranslate">deps.ts</code> file
<ul dir="auto">
<li>include a comment in the file explaining it's use</li>
</ul>
</li>
<li>have a top level <code class="notranslate">README.md</code>
<ul dir="auto">
<li>the generated readme could contain some helpful placeholder text for getting started with deno, as well as other useful "best practice" information</li>
</ul>
</li>
<li>etc</li>
</ul>
<p dir="auto">The "version 1" implementation of a <code class="notranslate">deno new</code> might just do this. But a "version 2" of a <code class="notranslate">deno new</code> implementation could also allow scaffolding a new project from some sort of config / scaffolding template file. A "version 3" implementation might allow users to add custom named generators to a project, so someone could do <code class="notranslate">deno new service my-service</code>. Etc.</p>
<p dir="auto">In this way, a <code class="notranslate">deno new</code> command could help to establish general best practices within the deno community, and it could <em>also</em> help establish project specific best practices (through user specified scaffolding templates).</p>
<p dir="auto">In some hypothetical future, I could imaging many deno "getting started" tutorials beginning with "first install deno by........Then, run <code class="notranslate">deno new hello_world</code>".</p>
<h3 dir="auto">Prior art</h3>
<ul dir="auto">
<li><a href="https://github.com/angular/angular-cli">The Angular CLI</a>
<ul dir="auto">
<li>supports custom, project specific generators (and you can install generators from npm)</li>
<li>encourages solid best practices</li>
<li>one nice feature of the Angular CLI, is that if you invoke a command without all the required arguments, terminal prompts walk you through adding what's missing. i.e. if you try and generate a new service but forget to specify the service's name, rather than failing the cli asks "What is the name of the service?".</li>
<li>con of the angular-cli: it requires an <code class="notranslate">angular.json</code> file in a project's root.</li>
</ul>
</li>
</ul>
<p dir="auto"><strong>Edit</strong></p>
<p dir="auto">I suppose, for maximum flexibility, a "scaffolding template" could simply be a script. So <code class="notranslate">deno new service my_service</code> would call some script that's somehow been labeled <code class="notranslate">service</code> and pass it the <code class="notranslate">my_service</code> argument. At that point, the feature is really just looking like a way of defining tasks for a project, which brings up new ideas. But I'll stop ideating here and see what other people are thinking.</p> | 1 |
<p dir="auto">It's often useful to avoid duplicate work by performing an assignment at the same time as evaluating a condition, i.e.</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (val = expensive()) != nothing
val
else ..."><pre class="notranslate"><span class="pl-k">if</span> (val <span class="pl-k">=</span> <span class="pl-c1">expensive</span>()) <span class="pl-k">!=</span> <span class="pl-c1">nothing</span>
val
<span class="pl-k">else</span> <span class="pl-k">...</span></pre></div>
<p dir="auto">If a function predicate is used, this is parsed as a keyword argument and throws an error:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if isvalid(true, (val = expensive()))
...
else ..."><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-c1">isvalid</span>(<span class="pl-c1">true</span>, (val <span class="pl-k">=</span> <span class="pl-c1">expensive</span>()))
<span class="pl-k">...</span>
<span class="pl-k">else</span> <span class="pl-k">...</span></pre></div>
<p dir="auto">Assignments inside brackets are special cased when using <code class="notranslate">&&</code>, <code class="notranslate">||</code> etc., it might be useful if they were here, too. <code class="notranslate">name = val</code> would be a keyword argument but <code class="notranslate">(name = val)</code> would be a regular assignment.</p> | <p dir="auto">I just learned about the keyword <code class="notranslate">outer</code> today. It would be nice if it had a docstring, and perhaps also if similar words (<code class="notranslate">local</code>, <code class="notranslate">global</code>) contained a "see also" link to <code class="notranslate">outer</code>.</p> | 0 |
<p dir="auto">Thanks for publishing the nightly builds, that is very convenient.<br>
I'm working to update angular (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="98217138" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/3400" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/3400/hovercard" href="https://github.com/angular/angular/pull/3400">angular/angular#3400</a>)</p>
<p dir="auto">Repro:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ git clone [email protected]:angular/angular.git; cd angular
$ git fetch origin pull/3400/head:ts1.6
$ git checkout ts1.6
$ npm i
$ cd modules/angular2
$ ../../node_modules/.bin/tsc
/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:29059
throw e;
^
TypeError: Cannot read property 'kind' of undefined
at emitSerializedTypeNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27103:29)
at emitSerializedTypeOfNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27087:25)
at emitSerializedParameterTypesOfNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27226:37)
at emitSerializedTypeMetadata (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27259:25)
at emitDecoratorsOfConstructor (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26943:17)
at emitDecoratorsOfClass (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26921:17)
at emitClassLikeDeclarationBelowES6 (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26879:17)
at emitClassLikeDeclaration (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26751:21)
at emitClassDeclaration (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26747:24)
at emitJavaScriptWorker (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:28675:32)"><pre class="notranslate"><code class="notranslate">$ git clone [email protected]:angular/angular.git; cd angular
$ git fetch origin pull/3400/head:ts1.6
$ git checkout ts1.6
$ npm i
$ cd modules/angular2
$ ../../node_modules/.bin/tsc
/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:29059
throw e;
^
TypeError: Cannot read property 'kind' of undefined
at emitSerializedTypeNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27103:29)
at emitSerializedTypeOfNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27087:25)
at emitSerializedParameterTypesOfNode (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27226:37)
at emitSerializedTypeMetadata (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:27259:25)
at emitDecoratorsOfConstructor (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26943:17)
at emitDecoratorsOfClass (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26921:17)
at emitClassLikeDeclarationBelowES6 (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26879:17)
at emitClassLikeDeclaration (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26751:21)
at emitClassDeclaration (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:26747:24)
at emitJavaScriptWorker (/Users/alexeagle/Projects/tmp/angular/node_modules/typescript/bin/tsc.js:28675:32)
</code></pre></div>
<p dir="auto">I can also repro with 1.6.0-dev.20150723 FWIW</p> | <p dir="auto">I'm trying to emit metadata for the following class:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Component()
export class MyClass {
constructor(test: string, test2: string) {
}
@log
doSomething() {
}
}
function log(target: Object, key: string, value: any) {
return {
value: function(...args: any[]) {
var a = args.map(a => JSON.stringify(a)).join();
var result = value.value.apply(this, args);
var r = JSON.stringify(result);
console.log(`Call: ${key}(${a}) => ${r}`);
return result;
}
};
}
function Component(name?: string) {
return (target: any) => {
target.__name__ = name;
}
}"><pre class="notranslate"><code class="notranslate">@Component()
export class MyClass {
constructor(test: string, test2: string) {
}
@log
doSomething() {
}
}
function log(target: Object, key: string, value: any) {
return {
value: function(...args: any[]) {
var a = args.map(a => JSON.stringify(a)).join();
var result = value.value.apply(this, args);
var r = JSON.stringify(result);
console.log(`Call: ${key}(${a}) => ${r}`);
return result;
}
};
}
function Component(name?: string) {
return (target: any) => {
target.__name__ = name;
}
}
</code></pre></div>
<p dir="auto">I'm getting the error when compiling; the issue seems related to a missing null-check <a href="https://github.com/Microsoft/TypeScript/blob/master/src/compiler/emitter.ts#L4846">here</a>.<br>
I looked at this in debug mode, and the "type" member of the outer node object is missing <a href="https://github.com/Microsoft/TypeScript/blob/master/src/compiler/emitter.ts#L5013">here</a></p>
<p dir="auto">The full stack:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" TypeError: Cannot read property 'kind' of undefined
at emitSerializedTypeNode (typescriptServices.js:32336:29)
at emitSerializedReturnTypeOfNode (typescriptServices.js:32477:21)
at emitSerializedTypeMetadata (typescriptServices.js:32513:25)
at emitDecoratorsOfMembers (typescriptServices.js:32219:21)
at emitDecoratorsOfClass (typescriptServices.js:32082:17)
at emitClassLikeDeclarationBelowES6 (typescriptServices.js:32042:17)
at emitClassLikeDeclaration (typescriptServices.js:31833:21)
at emitClassDeclaration (typescriptServices.js:31829:24)
at emitJavaScriptWorker (typescriptServices.js:34050:32)
at emitNodeWithoutSourceMap (typescriptServices.js:33860:17)
at emitNodeWithSourceMap (typescriptServices.js:28602:29)
at emitLinesStartingAt (typescriptServices.js:28757:21)
at emitAMDModule (typescriptServices.js:33629:17)
at emitSourceFileNode (typescriptServices.js:33826:25)
at emitJavaScriptWorker (typescriptServices.js:34068:32)
at emitNodeWithoutSourceMap (typescriptServices.js:33860:17)"><pre class="notranslate"><code class="notranslate"> TypeError: Cannot read property 'kind' of undefined
at emitSerializedTypeNode (typescriptServices.js:32336:29)
at emitSerializedReturnTypeOfNode (typescriptServices.js:32477:21)
at emitSerializedTypeMetadata (typescriptServices.js:32513:25)
at emitDecoratorsOfMembers (typescriptServices.js:32219:21)
at emitDecoratorsOfClass (typescriptServices.js:32082:17)
at emitClassLikeDeclarationBelowES6 (typescriptServices.js:32042:17)
at emitClassLikeDeclaration (typescriptServices.js:31833:21)
at emitClassDeclaration (typescriptServices.js:31829:24)
at emitJavaScriptWorker (typescriptServices.js:34050:32)
at emitNodeWithoutSourceMap (typescriptServices.js:33860:17)
at emitNodeWithSourceMap (typescriptServices.js:28602:29)
at emitLinesStartingAt (typescriptServices.js:28757:21)
at emitAMDModule (typescriptServices.js:33629:17)
at emitSourceFileNode (typescriptServices.js:33826:25)
at emitJavaScriptWorker (typescriptServices.js:34068:32)
at emitNodeWithoutSourceMap (typescriptServices.js:33860:17)
</code></pre></div> | 1 |
<p dir="auto">Now I know this is something not inline with web specs, with how Deno handles modules and all. But an API to "invalidate" a module would be so handy for implementing some rudimentary HMR. <code class="notranslate">import.meta.invalidate('./path/to/module.js')</code> for instance</p>
<p dir="auto">I've got this <code class="notranslate">dev.ts</code> module which I run with <code class="notranslate">deno run -A dev.ts ./server.tsx</code> that creates a Worker of <code class="notranslate">./server.tsx</code>.<br>
I'm then watching project directory for changes and posting a message to that worker. Server is then listening for messages posted to it and sending a message via websocket to the browser to reload.... phew. Problem is, any modules imported in the server, aren't "fresh". So on my frontend, the window reloads, yet I get hydration mismatch, since the "server" is still using the old modules.</p>
<p dir="auto">I hope this makes sense.</p>
<p dir="auto">My <code class="notranslate">dev.ts</code> contents below. Server is kind of irrelavant, so have left that out of this issue.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {
join,
SEP,
toFileUrl,
} from "https://deno.land/[email protected]/path/mod.ts";
const cwd = join(Deno.cwd(), SEP);
const watcher = Deno.watchFs(cwd);
// args[0] will be something like ./server.tsx
const mainModule = new URL(Deno.args[0], toFileUrl(cwd)).href;
let mainWorker = new Worker(mainModule, {
type: "module",
name: "main",
});
for await (const event of watcher) {
if (event.kind === "modify") {
mainWorker.postMessage({
type: "reload",
paths: [mainModule, ...event.paths],
});
queueMicrotask(() => {
mainWorker.terminate();
mainWorker = new Worker(mainModule + `?t=${new Date().getTime()}`, {
type: "module",
name: "main",
});
console.log(Deno.resources());
});
}
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span>
<span class="pl-s1">join</span><span class="pl-kos">,</span>
<span class="pl-smi">SEP</span><span class="pl-kos">,</span>
<span class="pl-s1">toFileUrl</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/[email protected]/path/mod.ts"</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">cwd</span> <span class="pl-c1">=</span> <span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">cwd</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-smi">SEP</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">watcher</span> <span class="pl-c1">=</span> <span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">watchFs</span><span class="pl-kos">(</span><span class="pl-s1">cwd</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// args[0] will be something like ./server.tsx</span>
<span class="pl-k">const</span> <span class="pl-s1">mainModule</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">URL</span><span class="pl-kos">(</span><span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-c1">args</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-en">toFileUrl</span><span class="pl-kos">(</span><span class="pl-s1">cwd</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">href</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">mainWorker</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Worker</span><span class="pl-kos">(</span><span class="pl-s1">mainModule</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">type</span>: <span class="pl-s">"module"</span><span class="pl-kos">,</span>
<span class="pl-c1">name</span>: <span class="pl-s">"main"</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">for</span> <span class="pl-k">await</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">event</span> <span class="pl-k">of</span> <span class="pl-s1">watcher</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-c1">kind</span> <span class="pl-c1">===</span> <span class="pl-s">"modify"</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">mainWorker</span><span class="pl-kos">.</span><span class="pl-en">postMessage</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">type</span>: <span class="pl-s">"reload"</span><span class="pl-kos">,</span>
<span class="pl-c1">paths</span>: <span class="pl-kos">[</span><span class="pl-s1">mainModule</span><span class="pl-kos">,</span> ...<span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-c1">paths</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">queueMicrotask</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s1">mainWorker</span><span class="pl-kos">.</span><span class="pl-en">terminate</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">mainWorker</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Worker</span><span class="pl-kos">(</span><span class="pl-s1">mainModule</span> <span class="pl-c1">+</span> <span class="pl-s">`?t=<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-k">new</span> <span class="pl-smi">Date</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">getTime</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">type</span>: <span class="pl-s">"module"</span><span class="pl-kos">,</span>
<span class="pl-c1">name</span>: <span class="pl-s">"main"</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-smi">Deno</span><span class="pl-kos">.</span><span class="pl-en">resources</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">Basically, assume we have a file <code class="notranslate">1.ts</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import "2.ts";
console.log("1.ts");"><pre class="notranslate"><code class="notranslate">import "2.ts";
console.log("1.ts");
</code></pre></div>
<p dir="auto">and another file <code class="notranslate">2.ts</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import "1.ts";
console.log("2.ts");"><pre class="notranslate"><code class="notranslate">import "1.ts";
console.log("2.ts");
</code></pre></div>
<p dir="auto">With latest master, running <code class="notranslate">deno 1.ts --recompile</code> would generate the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Compiling /Users/kevinqian/Desktop/Programming/Deno/test/deps/1.ts
Compiling /Users/kevinqian/Desktop/Programming/Deno/test/deps/2.ts
Compiling /Users/kevinqian/Desktop/Programming/Deno/test/deps/1.ts <== duplicate compilation
2.ts
1.ts"><pre class="notranslate"><code class="notranslate">Compiling /Users/kevinqian/Desktop/Programming/Deno/test/deps/1.ts
Compiling /Users/kevinqian/Desktop/Programming/Deno/test/deps/2.ts
Compiling /Users/kevinqian/Desktop/Programming/Deno/test/deps/1.ts <== duplicate compilation
2.ts
1.ts
</code></pre></div> | 0 |
<p dir="auto">Uncaught Error: spawn /usr/local/share/atom/atom (deleted) ENOENT</p>
<p dir="auto"><strong>Atom Version</strong>: 0.159.0-d9a5e3c<br>
<strong>System</strong>: linux 3.16.7-200.fc20.x86_64<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>Opening atom.</li>
<li>Switching focus to other window of different program (not atom).</li>
<li>Switching back to atom, error pops up.</li>
</ol>
<h3 dir="auto">Stack Trace</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:85
Error: spawn /usr/local/share/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
"><pre class="notranslate"><code class="notranslate">At events.js:85
Error: spawn /usr/local/share/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
</code></pre></div> | <p dir="auto"><strong>TEMPORARY WORKAROUND</strong>: <code class="notranslate">ln -s /usr/share/atom/atom "/usr/share/atom/atom (deleted)"</code></p>
<p dir="auto">Uncaught Error: spawn /opt/atom/atom (deleted) ENOENT</p>
<p dir="auto"><strong>Atom Version</strong>: 0.152.0<br>
<strong>System</strong>: linux 3.13.0-40-generic<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<h3 dir="auto">Stack Trace</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:85
Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
"><pre class="notranslate"><code class="notranslate">At events.js:85
Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
</code></pre></div> | 1 |
<p dir="auto">I am using TimeDistributedMerge to merge outputs from lstm over time by returning sequences, since TimeDistributedMerge is deprecated, so I changed my implementation to use timedistributed wrapper then it gives error.</p>
<p dir="auto">File "/Library/Python/2.7/site-packages/keras/engine/topology.py", line 148, in create_node<br>
output_tensors = to_list(outbound_layer.call(input_tensors[0], mask=input_masks[0]))<br>
File "/Library/Python/2.7/site-packages/keras/layers/wrappers.py", line 131, in call<br>
y = self.layer.call(X) # (nb_samples * timesteps, ...)<br>
File "/Library/Python/2.7/site-packages/keras/engine/topology.py", line 1189, in call<br>
'(at least 2). Got: ' + str(inputs))<br>
Exception: Merge must be called on a list of tensors (at least 2). Got: Reshape{2}.0</p>
<p dir="auto">My code<br>
model = Sequential()<br>
model.add(Embedding(max_features, 128, input_length=chunk_size, dropout=0.5))<br>
model.add(LSTM(128, dropout_W=0.5, dropout_U=0.1,return_sequences=True))<br>
model.add(TimeDistributed(Merge(layers=None,mode='ave')))<br>
model.add(Dense(num_classes))<br>
model.add(Activation("softmax"))</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/fchollet/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/fchollet">@fchollet</a> can you help me out with this by giving an example of how to use timedistributed wrapper for lstm return sequences</p> | <p dir="auto">I've got code that works in the keras-1 compatibility layer of keras-2, but fails when I use the new <code class="notranslate">concatenate()</code> API.</p>
<p dir="auto">Key lines:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" concat_axis = 1 if K.image_data_format() == 'channels_first' else -1
x_list = [x]
for i in range(nb_layers):
x = __conv_block(x, growth_rate, bottleneck,
dropout_rate, weight_decay)
x_list.append(x)
# commenting merge() and uncommenting concatenate() fails
x = merge(x_list, mode='concat', concat_axis=concat_axis)
# x = concatenate(x_list, concat_axis)
if grow_nb_filters:
nb_filter += growth_rate
if return_concat_list:
return x, nb_filter, x_list
else:
return x, nb_filter"><pre class="notranslate"> <span class="pl-s1">concat_axis</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span> <span class="pl-k">if</span> <span class="pl-v">K</span>.<span class="pl-en">image_data_format</span>() <span class="pl-c1">==</span> <span class="pl-s">'channels_first'</span> <span class="pl-k">else</span> <span class="pl-c1">-</span><span class="pl-c1">1</span>
<span class="pl-s1">x_list</span> <span class="pl-c1">=</span> [<span class="pl-s1">x</span>]
<span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-s1">nb_layers</span>):
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-en">__conv_block</span>(<span class="pl-s1">x</span>, <span class="pl-s1">growth_rate</span>, <span class="pl-s1">bottleneck</span>,
<span class="pl-s1">dropout_rate</span>, <span class="pl-s1">weight_decay</span>)
<span class="pl-s1">x_list</span>.<span class="pl-en">append</span>(<span class="pl-s1">x</span>)
<span class="pl-c"># commenting merge() and uncommenting concatenate() fails</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-en">merge</span>(<span class="pl-s1">x_list</span>, <span class="pl-s1">mode</span><span class="pl-c1">=</span><span class="pl-s">'concat'</span>, <span class="pl-s1">concat_axis</span><span class="pl-c1">=</span><span class="pl-s1">concat_axis</span>)
<span class="pl-c"># x = concatenate(x_list, concat_axis)</span>
<span class="pl-k">if</span> <span class="pl-s1">grow_nb_filters</span>:
<span class="pl-s1">nb_filter</span> <span class="pl-c1">+=</span> <span class="pl-s1">growth_rate</span>
<span class="pl-k">if</span> <span class="pl-s1">return_concat_list</span>:
<span class="pl-k">return</span> <span class="pl-s1">x</span>, <span class="pl-s1">nb_filter</span>, <span class="pl-s1">x_list</span>
<span class="pl-k">else</span>:
<span class="pl-k">return</span> <span class="pl-s1">x</span>, <span class="pl-s1">nb_filter</span></pre></div>
<p dir="auto">Error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/Users/athundt/source/keras-contrib/keras_contrib/applications/densenet.py", line 712, in <module>
dn = DenseNet()
File "/Users/athundt/source/keras-contrib/keras_contrib/applications/densenet.py", line 136, in DenseNet
model = Model(inputs, x, name='densenet')
File "/usr/local/lib/python2.7/site-packages/Keras-2.0.1-py2.7.egg/keras/legacy/interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/Keras-2.0.1-py2.7.egg/keras/engine/topology.py", line 1704, in __init__
str(layers_with_complete_input))
RuntimeError: Graph disconnected: cannot obtain value for tensor Tensor("conv2d_2/convolution:0", shape=(?, 32, 32, 12), dtype=float32) at layer "concatenate_1". The following previous layers were accessed without issue: ['input_1', 'initial_conv2D', 'batch_normalization_1', 'activation_1', 'conv2d_1']"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/Users/athundt/source/keras-contrib/keras_contrib/applications/densenet.py", line 712, in <module>
dn = DenseNet()
File "/Users/athundt/source/keras-contrib/keras_contrib/applications/densenet.py", line 136, in DenseNet
model = Model(inputs, x, name='densenet')
File "/usr/local/lib/python2.7/site-packages/Keras-2.0.1-py2.7.egg/keras/legacy/interfaces.py", line 87, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/Keras-2.0.1-py2.7.egg/keras/engine/topology.py", line 1704, in __init__
str(layers_with_complete_input))
RuntimeError: Graph disconnected: cannot obtain value for tensor Tensor("conv2d_2/convolution:0", shape=(?, 32, 32, 12), dtype=float32) at layer "concatenate_1". The following previous layers were accessed without issue: ['input_1', 'initial_conv2D', 'batch_normalization_1', 'activation_1', 'conv2d_1']
</code></pre></div>
<p dir="auto">The full code is in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/keras-team/keras-contrib/commit/bf95474bdd48a85df1c443db0fa108bf28dcf86a/hovercard" href="https://github.com/keras-team/keras-contrib/commit/bf95474bdd48a85df1c443db0fa108bf28dcf86a">keras-team/keras-contrib@<tt>bf95474</tt></a></p>
<p dir="auto">Thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check that you are up-to-date with the master branch of Keras. You can update with:<br>
pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps</p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found <a href="https://www.tensorflow.org/get_started/os_setup" rel="nofollow">here</a>.</p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).</p>
</li>
</ul> | 0 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-change-text-inside-an-element-using-jquery?solution=fccss%0A%20%20%24%28document%29.ready%28function%28%29%20%7B%0A%20%20%20%20%24%28%22%23target1%22%29.css%28%22color%22%2C%20%22red%22%29%3B%0A%20%20%20%20%24%28%22%23target4%22%29.html%28%22%3Ci%3E%23target4%3C%2Fi%3E%22%29%3B%0A%20%20%7D%29%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Waypoint: Change Text Inside an Element Using jQuery</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.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="<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target4").html("<i>#target4</i>");
});
</script>
<!-- Only change code above this line. -->
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#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">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">html</span><span class="pl-kos">(</span><span class="pl-s">"<i>#target4</i>"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos"></</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-c"><!-- Only change code above this line. --></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</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">></span>jQuery Playground<span class="pl-kos"></</span><span class="pl-ent">h3</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h4</span><span class="pl-kos">></span>#left-well<span class="pl-kos"></</span><span class="pl-ent">h4</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">></span>#target1<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">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">></span>#target2<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">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">></span>#target3<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h4</span><span class="pl-kos">></span>#right-well<span class="pl-kos"></</span><span class="pl-ent">h4</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">></span>#target4<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">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">></span>#target5<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">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">></span>#target6<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div> | <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-use-hex-code-for-specific-colors?solution=%3Cstyle%3E%0A%20%20body%20%7B%0A%20%20%20%20background-color%3A%20%23000000%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A" rel="nofollow">Waypoint: Use Hex Code for Specific Colors</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My answer is correct but wrongly flagged as erroneous.<br>
My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<style>
body {
background-color: #000000;
}
</style>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-ent">body</span> {
<span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-pds"><span class="pl-kos">#</span>000000</span>;
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span></pre></div> | 1 |
<p dir="auto">It's currenty hard to read TypeScript errors in VS Code:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9283914/12127104/99089e0c-b3f5-11e5-989e-93c11f91b98a.png"><img src="https://cloud.githubusercontent.com/assets/9283914/12127104/99089e0c-b3f5-11e5-989e-93c11f91b98a.png" alt="errors 1" style="max-width: 100%;"></a><br>
<br><br>
There is a <code class="notranslate">--pretty</code> option for TypeScript, but AFAIK it doesn't show any effect when applying it using <code class="notranslate">gulp-typescript</code> or other task runner plug-ins.</p>
<p dir="auto">So I'd like to suggest to support colored messages in Output window.<br>
<br><br>
VS Code may be "skinned", or, "themed", which may cause interference with colored Output text. So if you decide to implement colored Output text I suggest to change Output colors like the following if their respective brightness will be getting too close to the Output panel's background color brightness:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/** Class definition for RGB color.
*/
class Rgb
{
constructor( public r: number
, public g: number
, public b: number
, public name: string
);
get isBright() : boolean { return r + g + b > 348; }
get isDark() : boolean { return !isBright(); }
/** converts blue <=> darkblue; red <=> darkred; white <=> black, etc. */
function inverseLuminance() : Rgb { ...; return this; }
}
/** Function used by the Output panel for setting the panel's text color.
* @param textColor - Text color requested by task runner for output.
* @param bgColor - Output panel background color.
*/
function getTextColor(textColor: Rgb, bgColor: Rgb) : Rgb
{
// If the brightness of the desired color is too close to the brightness
// of the Output panel's background color, inverse the desired color's
// luminance, i.e. switch from yellow to darkyellow etc.
if (Math.abs((textColor.r + textColor.g + textColor.b)
- (bgColor.r + bgColor.g + bgColor.b)) < 30
)
{
return textColor.inverseLuminance();
}
return textColor;
}
"><pre class="notranslate"><span class="pl-c">/** Class definition for RGB color.</span>
<span class="pl-c"> */</span>
<span class="pl-k">class</span> <span class="pl-v">Rgb</span>
<span class="pl-kos">{</span>
<span class="pl-c1">constructor</span><span class="pl-kos">(</span> <span class="pl-s1">public</span> <span class="pl-s1">r</span>: <span class="pl-s1">number</span>
<span class="pl-kos">,</span> <span class="pl-s1">public</span> <span class="pl-s1">g</span>: <span class="pl-s1">number</span>
<span class="pl-kos">,</span> <span class="pl-s1">public</span> <span class="pl-s1">b</span>: <span class="pl-s1">number</span>
<span class="pl-kos">,</span> <span class="pl-s1">public</span> <span class="pl-s1">name</span>: <span class="pl-s1">string</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">get</span> <span class="pl-en">isBright</span><span class="pl-kos">(</span><span class="pl-kos">)</span> : <span class="pl-s1">boolean</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">r</span> <span class="pl-c1">+</span> <span class="pl-s1">g</span> <span class="pl-c1">+</span> <span class="pl-s1">b</span> <span class="pl-c1">></span> <span class="pl-c1">348</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">get</span> <span class="pl-en">isDark</span><span class="pl-kos">(</span><span class="pl-kos">)</span> : <span class="pl-s1">boolean</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-c1">!</span><span class="pl-en">isBright</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-c">/** converts blue <=> darkblue; red <=> darkred; white <=> black, etc. */</span>
<span class="pl-c1">function</span><span class="pl-kos"></span> <span class="pl-en">inverseLuminance</span><span class="pl-kos">(</span><span class="pl-kos">)</span> : <span class="pl-v">Rgb</span> <span class="pl-kos">{</span> ...<span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-c">/** Function used by the Output panel for setting the panel's text color.</span>
<span class="pl-c"> * <span class="pl-k">@param</span> textColor - Text color requested by task runner for output.</span>
<span class="pl-c"> * <span class="pl-k">@param</span> bgColor - Output panel background color.</span>
<span class="pl-c"> */</span>
<span class="pl-k">function</span> <span class="pl-en">getTextColor</span><span class="pl-kos">(</span><span class="pl-s1">textColor</span>: <span class="pl-v">Rgb</span><span class="pl-kos">,</span> <span class="pl-s1">bgColor</span>: <span class="pl-v">Rgb</span><span class="pl-kos">)</span> : <span class="pl-v">Rgb</span>
<span class="pl-kos">{</span>
<span class="pl-c">// If the brightness of the desired color is too close to the brightness</span>
<span class="pl-c">// of the Output panel's background color, inverse the desired color's</span>
<span class="pl-c">// luminance, i.e. switch from yellow to darkyellow etc.</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-v">Math</span><span class="pl-kos">.</span><span class="pl-en">abs</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">textColor</span><span class="pl-kos">.</span><span class="pl-c1">r</span> <span class="pl-c1">+</span> <span class="pl-s1">textColor</span><span class="pl-kos">.</span><span class="pl-c1">g</span> <span class="pl-c1">+</span> <span class="pl-s1">textColor</span><span class="pl-kos">.</span><span class="pl-c1">b</span><span class="pl-kos">)</span>
<span class="pl-c1">-</span> <span class="pl-kos">(</span><span class="pl-s1">bgColor</span><span class="pl-kos">.</span><span class="pl-c1">r</span> <span class="pl-c1">+</span> <span class="pl-s1">bgColor</span><span class="pl-kos">.</span><span class="pl-c1">g</span> <span class="pl-c1">+</span> <span class="pl-s1">bgColor</span><span class="pl-kos">.</span><span class="pl-c1">b</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c1"><</span> <span class="pl-c1">30</span>
<span class="pl-kos">)</span>
<span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">textColor</span><span class="pl-kos">.</span><span class="pl-en">inverseLuminance</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">textColor</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<br>
This will result in considerably better legible output messages:
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9283914/12128094/75ffdd34-b3fb-11e5-9955-dfba9ea526af.png"><img src="https://cloud.githubusercontent.com/assets/9283914/12128094/75ffdd34-b3fb-11e5-9955-dfba9ea526af.png" alt="errors 2" style="max-width: 100%;"></a></p>
<p dir="auto"><em>(Text color for task runner's time stamp and basic logging information is suggested to be lightgray. Default task output text color is suggested to be white.)</em><br>
<br><br>
<br></p> | <p dir="auto">We have a <a href="https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/services/statusbar/common/statusbarService.ts#L45">IStatusBarService</a> and <a href="https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/services/message/browser/messageService.ts#L135">IMessageService.setStatusMessage</a> which looks like duplication or re-exporting. Should we move the setStatusMessage feature into the status bar service?</p> | 0 |
<h2 dir="auto">ℹ Computer information</h2>
<ul dir="auto">
<li>PowerToys version: v0.22.0</li>
<li>PowerToy Utility:</li>
<li>Running PowerToys as Admin: Yes</li>
<li>Windows build number: 18363.1082</li>
</ul>
<h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2>
<ol dir="auto">
<li>Fresh install PowerToys 0.22.0</li>
<li>Switch <code class="notranslate">Enable FancyZones</code> radio to Off, or On</li>
<li>PowerToys closes (but continues to show in taskbar)</li>
</ol>
<h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3>
<p dir="auto">We may continue to use PowerToys, like we can switch on/off the other tools in PowerToys</p>
<h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3>
<p dir="auto">Disabling should not cause the application to close.</p>
<p dir="auto">* I saw through many issues on FancyZones, but still this maybe a duplicate, if i find one i will close this.</p> | <h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">This may be more of a personal opinion but I think the PowerToys icon looks a bit out of place in the notification area. Compared to the other icons, it looks too detailed. <a href="https://i.imgur.com/DY2osBm.png" rel="nofollow">Example</a></p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">A more simplified icon, possibly white only.</p> | 0 |
<p dir="auto">Got the error <code class="notranslate">Could not find or load main class org.neo4j.tooling.ImportTool</code> when using the import tool with neo4j 3.1 installed with the neo4-community_macos_3_1_0.dmg on Mac El Capitan 10.11.6</p>
<p dir="auto">The cmd I run was <code class="notranslate">/Applications/Neo4j\ Community\ Edition\ 3.1.0.app/Contents/Resources/app/bin/neo4j-import</code></p> | <p dir="auto"><strong>Neo4j Version:</strong>: 3.1.0-M13-beta3 Community Edition<br>
<strong>Operating System:</strong>: macOS Sierra 10.12.1</p>
<h3 dir="auto">Steps to reproduce</h3>
<ul dir="auto">
<li>Download the 3.1.0-M13-beta3 Community Edition version from neo4j site</li>
<li>Run neo4j-import</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<ul dir="auto">
<li>Should start the process</li>
</ul>
<h3 dir="auto">Actual behavior</h3>
<ul dir="auto">
<li>Got an <strong>Error: Could not find or load main class org.neo4j.tooling.ImportTool</strong></li>
</ul> | 1 |
<p dir="auto">Glide allows to do center-crop from a file, as such:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" Glide.with(this).asBitmap().load(someFile)
.apply(RequestOptions.centerCropTransform().skipMemoryCache(true).diskCacheStrategy(DiskCacheStrategy.NONE))
.into<SimpleTarget<Bitmap>>(object : SimpleTarget<Bitmap>(width, height) {
override fun onResourceReady(resource: Bitmap, transition: Transition<in Bitmap>?) {
_bitmap = resource
}
override fun onLoadFailed(errorDrawable: Drawable?) {
super.onLoadFailed(errorDrawable)
}
})"><pre class="notranslate"><code class="notranslate"> Glide.with(this).asBitmap().load(someFile)
.apply(RequestOptions.centerCropTransform().skipMemoryCache(true).diskCacheStrategy(DiskCacheStrategy.NONE))
.into<SimpleTarget<Bitmap>>(object : SimpleTarget<Bitmap>(width, height) {
override fun onResourceReady(resource: Bitmap, transition: Transition<in Bitmap>?) {
_bitmap = resource
}
override fun onLoadFailed(errorDrawable: Drawable?) {
super.onLoadFailed(errorDrawable)
}
})
</code></pre></div>
<p dir="auto">That's in case we want to crop from the center.</p>
<p dir="auto">But what if we want to crop from somewhere else? And from a specific region, while keeping the aspect ratio of this region?</p>
<p dir="auto">For example, suppose we have 1000x1000 image, and I want to crop a 200x400 part of it.<br>
For keeping aspect ratio of the cropping part, this means that even if I go outside of the source image, it will move (or resize if really needed) the cropping to make it right.</p>
<p dir="auto">This means that if for some reason I tell it to crop from 899 in X coordinate, it might actually move the cropping to start from 799, instead of from 899 .</p>
<p dir="auto">The sort of protection like of center-crop...</p> | <p dir="auto">Similar to BitmapRegionDecoder class.</p> | 1 |
<pre class="notranslate">What steps will reproduce the problem?
1. hg clone <a href="https://code.google.com/p/go" rel="nofollow">https://code.google.com/p/go</a>
2. cd go/src
3. ./all.bash
4. go vet strconv
What is the expected output?
Output from go vet.
What do you see instead?
go tool: no such tool "vet"; to install:
go install code.google.com/p/go.tools/cmd/vet
Which compiler are you using (5g, 6g, 8g, gccgo)?
6g
Which operating system are you using?
linux
Which version are you using? (run 'go version')
go version devel +4bd7beaedee8 Tue May 21 21:18:10 2013 -0700 linux/amd64
Please provide any additional information below.
Preferably ./all.bash in combination with cmd/dist will download and install vet from
go.tools.
If manual installation is the intended behavior then the error message should state
"go get code.google.com/p/go.tools/cmd/vet" rather than "go
install", since we need to checkout the repo.</pre> | <pre class="notranslate">Currently in sys_windows_amd64.s line 41-ish
loadregs:
// Load first 4 args into correspondent registers.
MOVQ 0(SI), CX
MOVQ 8(SI), DX
MOVQ 16(SI), R8
MOVQ 24(SI), R9
But if an arg is a float32/float64 it should be loaded into an xmm register instead
<a href="http://msdn.microsoft.com/en-us/library/ms235286.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms235286.aspx</a>
In the "Calling Convention" section.
"
The arguments are passed in registers RCX, RDX, R8, and R9. If the arguments are
float/double, they are passed in XMM0L, XMM1L, XMM2L, and XMM3L.
"
Perhaps the easy thing is to just load them into both sets of 4?
Then you wouldn't have to type check going out...
Figured I shouldn't try submitting a patch for something so low level without any
previous submissions.
I am no windows pro, so I may just be confused here.
I discovered this trying to call glClearColor (which takes only 4 floats) with
syscall.Syscall6. I got random colors every run, which was fairly interesting.
Used a fake opengl32.dll (from GLIntercept) and a Printf right before Syscall6 to
discover my values were not being pushed all the way through unless they were integers.
I didn't look into 32bit windows and float args. It may have similar problem.
Hopefully this makes sense my brain hurts. I hate windows.</pre> | 0 |
<p dir="auto">As I know,when we execute update SQL without sharding-key ,Sharding-JDBC will update all the table . I think this is not safe for production environment. I want throw en exception when update without sharding-key, Sharding-JDBC can help me do it ?</p> | <p dir="auto">For English only, other languages we will close it directly.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<p dir="auto">Before submit a new issue, please check existed issue first, to make sure your issue is not a duplicated one.</p>
<h3 dir="auto">Which version of Sharding-Sphere do you using?</h3>
<p dir="auto">3.0.0.M3</p>
<h3 dir="auto">Which project do you using? Sharding-JDBC or Sharding-Proxy?</h3>
<p dir="auto">Sharding-JDBC</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">skywalking monitor the performance of sharding-sphere</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto"><strong>skywalking auto agent plugin couldn't collect data,so I read the source code of agent plugin,I found that the class name it hooked was sharding-jdbc 1.5.x version.Then I used the opentracing api to load skywalking agent.when I restarted the application,collector server console print many null point Exception like the folllow text, I'm wondering if the versions of skywalking and sharding-sphere aren't match,but I have tried many tests,so can you give me some advices of how to make the Skywalking work with sharding-sphere or a demo case for me . thanks very much</strong><br>
Sep 12, 2018 1:31:44 PM io.grpc.internal.SerializingExecutor run<br>
SEVERE: Exception while executing runnable io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1MessagesAvailable@5f8a026<br>
java.lang.NullPointerException<br>
at org.apache.skywalking.apm.collector.configuration.service.ComponentLibraryCatalogService.getComponentId(ComponentLibraryCatalogService.java:50)<br>
at org.apache.skywalking.apm.collector.analysis.segment.parser.provider.parser.standardization.SpanIdExchanger.exchange(SpanIdExchanger.java:62)<br>
at org.apache.skywalking.apm.collector.analysis.segment.parser.provider.parser.SegmentParse.preBuild(SegmentParse.java:116)<br>
at org.apache.skywalking.apm.collector.analysis.segment.parser.provider.parser.SegmentParse.parse(SegmentParse.java:68)<br>
at org.apache.skywalking.apm.collector.analysis.segment.parser.provider.service.SegmentParseService.parse(SegmentParseService.java:42)<br>
at org.apache.skywalking.apm.collector.agent.grpc.provider.handler.TraceSegmentServiceHandler$1.onNext(TraceSegmentServiceHandler.java:48)<br>
at org.apache.skywalking.apm.collector.agent.grpc.provider.handler.TraceSegmentServiceHandler$1.onNext(TraceSegmentServiceHandler.java:45)<br>
at io.grpc.stub.ServerCalls$StreamingServerCallHandler$StreamingServerCallListener.onMessage(ServerCalls.java:248)<br>
at io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.messagesAvailable(ServerCallImpl.java:252)<br>
at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1MessagesAvailable.runInContext(ServerImpl.java:629)<br>
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)<br>
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)<br>
at java.lang.Thread.run(Thread.java:748)</p>
<h3 dir="auto">Reason analyze</h3>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc</h3>
<h3 dir="auto">For bug report, please <em>MUST</em> provide the reproduce example codes (such as a github link).</h3> | 0 |
<p dir="auto">I find it annoying I have to open a shell and run <code class="notranslate">atom</code> to get to my recent directories.</p> | <p dir="auto">I would like to be able to find files or folders that I have recently opened in previous editing sessions. On Windows this is usually done under the File menu. For example: File > Recent Files > (displays a sub menu of top 10 most recently used files in descending order).</p>
<p dir="auto">File</p>
<blockquote>
<p dir="auto">Recent Files<br>
> (top 10 most recent files)<br>
Recent Folders<br>
> (top 10 most recent folders)</p>
</blockquote> | 1 |
<p dir="auto"><strong>I have same issue.<br>
I have doing real time face recognition using tensorflow. I'm follow this link "<a href="https://github.com/btwardow/tf-face-recognition">https://github.com/btwardow/tf-face-recognition</a>" When I'm download clone repo it work in one system but try to run another one this show me error. Please help me out.</strong></p>
<p dir="auto">`Traceback (most recent call last):<br>
File "server.py", line 49, in detect<br>
faces = recognize(detection.get_faces(image, threshold))<br>
File "/home/bigblue/Music/Test/tf-face-recognition-master/tensorface/recognition.py", line 19, in recognize<br>
X[i, :] = embedding(img_to_np(img))<br>
File "/home/bigblue/Music/Test/tf-face-recognition-master/tensorface/embedding.py", line 43, in embedding<br>
images_placeholder = tf.get_default_graph().get_tensor_by_name("input:0")<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3666, in get_tensor_by_name<br>
return self.as_graph_element(name, allow_tensor=True, allow_operation=False)<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3490, in as_graph_element<br>
return self._as_graph_element_locked(obj, allow_tensor, allow_operation)<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3532, in _as_graph_element_locked<br>
"graph." % (repr(name), repr(op_name)))<br>
<strong>KeyError: "The name 'input:0' refers to a Tensor which does not exist. The operation, 'input', does not exist in the graph."</strong><br>
[2019-02-26 11:28:06,532] ERROR in app: Exception on /detect [POST]<br>
Traceback (most recent call last):<br>
File "server.py", line 49, in detect<br>
faces = recognize(detection.get_faces(image, threshold))<br>
File "/home/bigblue/Music/Test/tf-face-recognition-master/tensorface/recognition.py", line 19, in recognize<br>
X[i, :] = embedding(img_to_np(img))<br>
File "/home/bigblue/Music/Test/tf-face-recognition-master/tensorface/embedding.py", line 43, in embedding<br>
images_placeholder = tf.get_default_graph().get_tensor_by_name("input:0")<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3666, in get_tensor_by_name<br>
return self.as_graph_element(name, allow_tensor=True, allow_operation=False)<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3490, in as_graph_element<br>
return self._as_graph_element_locked(obj, allow_tensor, allow_operation)<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3532, in _as_graph_element_locked<br>
"graph." % (repr(name), repr(op_name)))<br>
KeyError: "The name 'input:0' refers to a Tensor which does not exist. The operation, 'input', does not exist in the graph."</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app<br>
response = self.full_dispatch_request()<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request<br>
rv = self.handle_user_exception(e)<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception<br>
reraise(exc_type, exc_value, tb)<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise<br>
raise value<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request<br>
rv = self.dispatch_request()<br>
File "/home/bigblue/anaconda3/envs/my_env/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request<br>
return self.view_functions<a href="**req.view_args">rule.endpoint</a><br>
File "server.py", line 69, in detect<br>
print('POST /detect error: %e' % e)<br>
TypeError: must be real number, not KeyError`</p> | <p dir="auto">Hi i'm running the tensorflow from the source and after building the tensorflow using bazel using below command</p>
<p dir="auto"><strong>bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package</strong></p>
<p dir="auto"><strong>The error message pasted below</strong></p>
<p dir="auto">10 errors detected in the compilation of "/home/lb/.cache/bazel/_bazel_lb/144f5944ef8ff562c57e67fdaa41565f/execroot/org_tensorflow/tmpae8_5f0170552fd082f4/tmpxft_0000245c_00000000-6_reduce_slice_ops_gpu.cu.cpp1.ii".<br>
ERROR: /home/lb/WorkSpace/AI-WORK/tensorflow/tensorflow/contrib/reduce_slice_ops/BUILD:14:1: output 'tensorflow/contrib/reduce_slice_ops/_objs/python/ops/_reduce_slice_ops_gpu/tensorflow/contrib/reduce_slice_ops/kernels/reduce_slice_ops_gpu.cu.pic.o' was not created<br>
ERROR: /home/lb/WorkSpace/AI-WORK/tensorflow/tensorflow/contrib/reduce_slice_ops/BUILD:14:1: not all outputs were created or valid<br>
Target //tensorflow/tools/pip_package:build_pip_package failed to build<br>
Use --verbose_failures to see the command lines of failed build steps.<br>
INFO: Elapsed time: 74.030s, Critical Path: 8.38s<br>
FAILED: Build did NOT complete successfully</p> | 0 |
<p dir="auto">It seems in most typescript projects, the build setup will have tslint, tsc, and some form of minifier. This is also closely related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="37903148" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/8" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/8/hovercard" href="https://github.com/microsoft/TypeScript/issues/8">#8</a>. The build setup also has someway of deciding whether to invoke the build pipe depending on what files have changed.</p>
<p dir="auto">I believe typescript should have plugins just like babel. Basically the compiler has hook points at various before/after stages, plugins can modify scanner behaviour, parser behaviour, emitter behaviour.</p>
<p dir="auto">This means tslint can hook in and do its checks at parser/scanner stage. There could be a plugin to support a much stronger inference, kind of like flow at the checker stage. The minifier can hook in the emitter stage.</p>
<p dir="auto">I could write a plugin to support extra syntatic sugar. e.g is isn't, and, or, not. a plugin to support Coffeescript like omission of parenthesis and curly braces.</p>
<p dir="auto">There could be a plugin to inline function calls, or a plugin to output computationaly intensive code as asm, or wasm.</p>
<p dir="auto">There could be a plugin to cache the AST's so when the same file is encountered with the same hash, it can load the AST from cache speeding up the compiler.</p>
<p dir="auto">This would mean typescript does what it needs to do the best, the community can build plugins rather than having to fork the whole typescript project to support a simple feature.</p>
<p dir="auto">tsconfig.json would have a plugins array and just like npm init, tsc can auto download the plugins if it doesn't have them.</p>
<p dir="auto">What do you think?</p> | <p dir="auto">We get "bug reports" of this nature very often:</p>
<blockquote>
<p dir="auto">I wrote this code</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Window {
myPlugin: any;
}
let x = window.myPlugin;
class Foo { }"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Window</span> <span class="pl-kos">{</span>
<span class="pl-c1">myPlugin</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">myPlugin</span><span class="pl-kos">;</span>
<span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">then I added 'export' and I get compile errors, wat?</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Window {
myPlugin: any;
}
let x = window.myPlugin;
export class Foo { }"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Window</span> <span class="pl-kos">{</span>
<span class="pl-c1">myPlugin</span>: <span class="pl-smi">any</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">myPlugin</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div>
</blockquote>
<p dir="auto">Our current answer today is "Move your stuff to another .d.ts file". This is an OK workaround, but not great. The real sticker is when there's a type defined inside an external module -- it's impossible to use those types to augment a global interface, even though this is a thing that actually happens. It gets even trickier because this encourages people to move types <em>into</em> the global namespace when they didn't want to in the first place, exacerbating the problem.</p>
<p dir="auto">We need some proposal for how to make this work.</p> | 0 |
<p dir="auto">Using <code class="notranslate">ctrl-D</code> or <code class="notranslate">ctrl-leftclick</code> does nothing. I believe this should allow multiple cursor editing.</p>
<p dir="auto">There are no errors reported in the console.</p>
<p dir="auto">Atom Version: 0.95.0-e011bec</p> | <p dir="auto">I am trying <code class="notranslate">ctrl-d</code> but the expected behavior of multiple cursors is not happening.</p> | 1 |
<h2 dir="auto">Checklist</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"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
</ul>
<h2 dir="auto">Steps to reproduce</h2>
<p dir="auto">settings.py:</p>
<blockquote>
<p dir="auto">CELERY_DEFAULT_QUEUE = 'qs'</p>
</blockquote>
<h2 dir="auto">Expected behavior</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(Pdb) app.conf.task_default_queue
u'qs'"><pre class="notranslate"><code class="notranslate">(Pdb) app.conf.task_default_queue
u'qs'
</code></pre></div>
<h2 dir="auto">Actual behavior</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(Pdb) app.conf.task_default_queue
u'celery'"><pre class="notranslate"><code class="notranslate">(Pdb) app.conf.task_default_queue
u'celery'
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical enhancement to an existing feature.</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%22Issue+Type%3A+Enhancement%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed enhancements.</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 if the same enhancement was already implemented in the<br>
master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue<br>
(If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h1 dir="auto">Brief Summary</h1>
<p dir="auto">Currently <code class="notranslate">LOG_SUCCESS</code> and friends allows customizing the messages, but <code class="notranslate">Received task</code> is fixed. It would be good for this to be customizable and include the same values in <code class="notranslate">extra</code> (i.e. use <code class="notranslate">celery.app.trace.info</code> rather than <code class="notranslate">logging.info</code>). I was thinking something like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="info('Received task: %s', {
'name': req.name,
'id': req.id,
})"><pre class="notranslate"><code class="notranslate">info('Received task: %s', {
'name': req.name,
'id': req.id,
})
</code></pre></div>
<h1 dir="auto">Design</h1>
<h2 dir="auto">Architectural Considerations</h2>
<p dir="auto">Should be a non-breaking change that only adds a customization point</p>
<h2 dir="auto">Proposed Behavior</h2>
<p dir="auto">Add <code class="notranslate">LOG_RECEIVED</code> so it can be customized as well</p>
<h2 dir="auto">Proposed UI/UX</h2>
<p dir="auto">N/A</p>
<h2 dir="auto">Diagrams</h2>
<p dir="auto">N/A</p>
<h2 dir="auto">Alternatives</h2>
<p dir="auto">None that I can think of</p> | 0 |
<p dir="auto">Consider following example:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log(...['Hello', 'world']);"><pre class="notranslate"><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span>...<span class="pl-kos">[</span><span class="pl-s">'Hello'</span><span class="pl-kos">,</span> <span class="pl-s">'world'</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">It's a completely valid <code class="notranslate">console.log</code> usage scenario however TypeScript (@1.6.2) raises <strong>TS2346</strong> error: <em>Supplied parameters do not match any signature of call target</em>.</p>
<p dir="auto">The log's signature is:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare function log(message?: any, ...optionalParams: any[]);"><pre class="notranslate"><span class="pl-s1">declare</span> <span class="pl-s1">function</span> <span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">message</span>?<span class="pl-s1"></span>: <span class="pl-s1">any</span><span class="pl-kos">,</span> ...<span class="pl-s1">optionalParams</span>: <span class="pl-s1">any</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Therefore following code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log('Hello', ...['world']);"><pre class="notranslate"><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Hello'</span><span class="pl-kos">,</span> ...<span class="pl-kos">[</span><span class="pl-s">'world'</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">is considered valid, without any errors.</p>
<p dir="auto">In my opinion the top example should not trigger any errors.</p> | <p dir="auto">The default signature for console.log is wrong.</p>
<p dir="auto"><code class="notranslate">log(message?: any, ...optionalParams: any[]): void;</code></p>
<p dir="auto">See this code example:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function puts(...optionalParams: any[]): void {
console.log.apply(this, arguments); // no error
// Supplied parameters do not match any signature of call target.
// Method Console.log(message?: any, ...optionalParams: any[]): void;
console.log(...arguments); // see error above
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">puts</span><span class="pl-kos">(</span>...<span class="pl-s1">optionalParams</span>: <span class="pl-s1">any</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span>: <span class="pl-k">void</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-c1">log</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// no error</span>
<span class="pl-c">// Supplied parameters do not match any signature of call target.</span>
<span class="pl-c">// Method Console.log(message?: any, ...optionalParams: any[]): void;</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-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// see error above</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">If I update the signature to <code class="notranslate">log(...optionalParams: any[]): void;</code> then it works.</p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mads1980" rel="nofollow">Manuel Dominguez Sarmiento</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8887?redirect=false" rel="nofollow">SPR-8887</a></strong> and commented</p>
<p dir="auto">This is the exception we get when using the latest Spring 3.1 RC2 together with Quartz 2.1.1</p>
<p dir="auto">[ERROR] 2011-11-29 14:33:57 [JobRunShell-scheduler_Worker-1] - Job DEFAULT.deviceIndexerJob threw an unhandled Exception:<br>
java.lang.IncompatibleClassChangeError: Found interface org.quartz.JobExecutionContext, but class was expected<br>
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:79)<br>
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)<br>
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)<br>
[ERROR] 2011-11-29 14:33:57 [JobRunShell-scheduler_Worker-2] - Job DEFAULT.shortCodeIndexerJob threw an unhandled Exception:<br>
java.lang.IncompatibleClassChangeError: Found interface org.quartz.JobExecutionContext, but class was expected<br>
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:79)<br>
at org.quartz.core.JobRunShell.run(JobRunShell.java:213)<br>
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)</p>
<p dir="auto">The source for QuartzJobBean does not seem to indicate any kind of problem. Even though JobExecutionContext was a class in Quartz 1.x and is now an interface in Quartz 2.x, the methods invoked on it are present in both.</p>
<p dir="auto">The problem is that the Spring binary has been compiled against Quartz 1.x, and changing a class into an interface (or viceversa) is an incompatible change according to the Java spec, so we get IncompatibleClassChangeError even if the source compiles fine against both Quartz versions.</p>
<p dir="auto">Recompiling QuartzJobBean against Quartz 2.x solves the issue, however this is an undesirable solution. I guess the solution would be to invoke the offending methods using reflection.</p>
<p dir="auto">Our workaround was simply creating an alternative MethodInvokingJobDetailFactoryBean simplified for our use and compiled directly against Quartz 2.x, but this should be solved for the general public.</p>
<p dir="auto">BTW, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398112884" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13081" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13081/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13081">#13081</a> is somehow related but is clearly a different issue, which in fact has already been solved in 3.1 RC2</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 RC2</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398115852" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13530" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13530/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13530">#13530</a> QuartzJobBean doesn't work with Quartz 2.0 at runtime (<em><strong>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=wim.deblauwe" rel="nofollow">Wim Deblauwe</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5402?redirect=false" rel="nofollow">SPR-5402</a></strong> and commented</p>
<p dir="auto">I saw a NullPointerException in the logs of my tomcat (started using maven cargo):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[INFO] [talledLocalContainer] java.lang.NullPointerException
[INFO] [talledLocalContainer] at java.lang.String.indexOf(String.java:1734)
[INFO] [talledLocalContainer] at java.lang.String.indexOf(String.java:1716)
[INFO] [talledLocalContainer] at org.springframework.jms.JmsException.getMessage(JmsException.java:87)
[INFO] [talledLocalContainer] at java.lang.Throwable.getLocalizedMessage(Throwable.java:267)
[INFO] [talledLocalContainer] at java.lang.Throwable.toString(Throwable.java:343)
[INFO] [talledLocalContainer] at java.lang.String.valueOf(String.java:2827)
[INFO] [talledLocalContainer] at java.io.PrintWriter.println(PrintWriter.java:710)
[INFO] [talledLocalContainer] at java.lang.Throwable.printStackTrace(Throwable.java:509)
[INFO] [talledLocalContainer] at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:76)
[INFO] [talledLocalContainer] at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:407)
[INFO] [talledLocalContainer] at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:305)
[INFO] [talledLocalContainer] at org.apache.log4j.WriterAppender.append(WriterAppender.java:160)
[INFO] [talledLocalContainer] at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
[INFO] [talledLocalContainer] at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
[INFO] [talledLocalContainer] at org.apache.log4j.Category.callAppenders(Category.java:206)
[INFO] [talledLocalContainer] at org.apache.log4j.Category.forcedLog(Category.java:391)
[INFO] [talledLocalContainer] at org.apache.log4j.Category.error(Category.java:322)"><pre class="notranslate"><code class="notranslate">[INFO] [talledLocalContainer] java.lang.NullPointerException
[INFO] [talledLocalContainer] at java.lang.String.indexOf(String.java:1734)
[INFO] [talledLocalContainer] at java.lang.String.indexOf(String.java:1716)
[INFO] [talledLocalContainer] at org.springframework.jms.JmsException.getMessage(JmsException.java:87)
[INFO] [talledLocalContainer] at java.lang.Throwable.getLocalizedMessage(Throwable.java:267)
[INFO] [talledLocalContainer] at java.lang.Throwable.toString(Throwable.java:343)
[INFO] [talledLocalContainer] at java.lang.String.valueOf(String.java:2827)
[INFO] [talledLocalContainer] at java.io.PrintWriter.println(PrintWriter.java:710)
[INFO] [talledLocalContainer] at java.lang.Throwable.printStackTrace(Throwable.java:509)
[INFO] [talledLocalContainer] at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:76)
[INFO] [talledLocalContainer] at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:407)
[INFO] [talledLocalContainer] at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:305)
[INFO] [talledLocalContainer] at org.apache.log4j.WriterAppender.append(WriterAppender.java:160)
[INFO] [talledLocalContainer] at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
[INFO] [talledLocalContainer] at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
[INFO] [talledLocalContainer] at org.apache.log4j.Category.callAppenders(Category.java:206)
[INFO] [talledLocalContainer] at org.apache.log4j.Category.forcedLog(Category.java:391)
[INFO] [talledLocalContainer] at org.apache.log4j.Category.error(Category.java:322)
</code></pre></div>
<p dir="auto">The problem can be seen by looking at the code of JmsMessage.java:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public String getMessage() {
String message = super.getMessage();
Throwable cause = getCause();
if (cause instanceof JMSException) {
Exception linkedEx = ((JMSException) cause).getLinkedException();
if (linkedEx != null && cause.getMessage().indexOf(linkedEx.getMessage()) == -1) {
message = message + "; nested exception is " + linkedEx;
}
}
return message;
}"><pre class="notranslate"><code class="notranslate">public String getMessage() {
String message = super.getMessage();
Throwable cause = getCause();
if (cause instanceof JMSException) {
Exception linkedEx = ((JMSException) cause).getLinkedException();
if (linkedEx != null && cause.getMessage().indexOf(linkedEx.getMessage()) == -1) {
message = message + "; nested exception is " + linkedEx;
}
}
return message;
}
</code></pre></div>
<p dir="auto">The line that does the <code class="notranslate">indexOf()</code> can give a NPE if <code class="notranslate">linkedEx.getMessage()</code> returns <code class="notranslate">null</code></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398091774" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9948" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9948/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9948">#9948</a> JmsUtils.buildExceptionMessage throws NPE if the linked exception doesn't have a message (<em><strong>"duplicates"</strong></em>)</li>
</ul> | 0 |
<p dir="auto">I am trying to build binaries at <code class="notranslate">HEAD</code> of <code class="notranslate">master</code> for <code class="notranslate">mesos</code>. I am following the instructions here: <a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/mesos.md">https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/getting-started-guides/mesos.md</a></p>
<p dir="auto">When building, gcc fails because it is unable to allocate memory:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="root@mesos-master-01:~/kubernetes# make
hack/build-go.sh
+++ [0702 05:12:04] Building go targets for linux/amd64:
cmd/kube-proxy
cmd/kube-apiserver
cmd/kube-controller-manager
cmd/kubelet
cmd/hyperkube
cmd/kubernetes
plugin/cmd/kube-scheduler
contrib/mesos/cmd/k8sm-scheduler
contrib/mesos/cmd/k8sm-executor
contrib/mesos/cmd/k8sm-controller-manager
contrib/mesos/cmd/km
cmd/kubectl
cmd/integration
cmd/gendocs
cmd/genman
cmd/genbashcomp
cmd/genconversion
cmd/gendeepcopy
examples/k8petstore/web-server
github.com/onsi/ginkgo/ginkgo
test/e2e/e2e.test
contrib/mesos/cmd/k8sm-redirfd
# github.com/GoogleCloudPlatform/kubernetes/contrib/mesos/cmd/k8sm-controller-manager
/usr/local/go/pkg/tool/linux_amd64/6l: running gcc failed: Cannot allocate memory
# github.com/GoogleCloudPlatform/kubernetes/contrib/mesos/cmd/km
/usr/local/go/pkg/tool/linux_amd64/6l: running gcc failed: Cannot allocate memory
!!! Error in /root/kubernetes/hack/lib/golang.sh:382
'go install "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "${nonstatics[@]:+${nonstatics[@]}}"' exited with status 2
Call stack:
1: /root/kubernetes/hack/lib/golang.sh:382 kube::golang::build_binaries_for_platform(...)
2: /root/kubernetes/hack/lib/golang.sh:520 kube::golang::build_binaries(...)
3: hack/build-go.sh:26 main(...)
Exiting with status 1
!!! Error in /root/kubernetes/hack/lib/golang.sh:438
'( kube::golang::setup_env; local version_ldflags; version_ldflags=$(kube::version::ldflags); local host_platform; host_platform=$(kube::golang::host_platform); local goflags; eval "goflags=(${KUBE_GOFLAGS:-})"; local use_go_build; local -a targets=(); local arg; for arg in "$@";
do
if [[ "${arg}" == "--use_go_build" ]]; then
use_go_build=true;
else
if [[ "${arg}" == -* ]]; then
goflags+=("${arg}");
else
targets+=("${arg}");
fi;
fi;
done; if [[ ${#targets[@]} -eq 0 ]]; then
targets=("${KUBE_ALL_TARGETS[@]}");
fi; local -a platforms=("${KUBE_BUILD_PLATFORMS[@]:+${KUBE_BUILD_PLATFORMS[@]}}"); if [[ ${#platforms[@]} -eq 0 ]]; then
platforms=("${host_platform}");
fi; local binaries; binaries=($(kube::golang::binaries_from_targets "${targets[@]}")); local parallel=false; if [[ ${#platforms[@]} -gt 1 ]]; then
local gigs; gigs=$(kube::golang::get_physmem); if [[ ${gigs} -gt ${KUBE_PARALLEL_BUILD_MEMORY} ]]; then
kube::log::status "Multiple platforms requested and available ${gigs}G > threshold ${KUBE_PARALLEL_BUILD_MEMORY}G, building platforms in parallel"; parallel=true;
else
kube::log::status "Multiple platforms requested, but available ${gigs}G < threshold ${KUBE_PARALLEL_BUILD_MEMORY}G, building platforms in serial"; parallel=false;
fi;
fi; if [[ "${parallel}" == "true" ]]; then
kube::log::status "Building go targets for ${platforms[@]} in parallel (output will appear in a burst when complete):" "${targets[@]}"; local platform; for platform in "${platforms[@]}";
do
( kube::golang::set_platform_envs "${platform}"; kube::log::status "${platform}: go build started"; kube::golang::build_binaries_for_platform ${platform} ${use_go_build:-}; kube::log::status "${platform}: go build finished" ) &> "/tmp//${platform//\//_}.build" &
done; local fails=0; for job in $(jobs -p);
do
wait ${job} || let "fails+=1";
done; for platform in "${platforms[@]}";
do
cat "/tmp//${platform//\//_}.build";
done; exit ${fails};
else
for platform in "${platforms[@]}";
do
kube::log::status "Building go targets for ${platform}:" "${targets[@]}"; kube::golang::set_platform_envs "${platform}"; kube::golang::build_binaries_for_platform ${platform} ${use_go_build:-};
done;
fi )' exited with status 1
Call stack:
1: /root/kubernetes/hack/lib/golang.sh:438 kube::golang::build_binaries(...)
2: hack/build-go.sh:26 main(...)
Exiting with status 1
Makefile:28: recipe for target 'all' failed
make: *** [all] Error 1"><pre class="notranslate"><code class="notranslate">root@mesos-master-01:~/kubernetes# make
hack/build-go.sh
+++ [0702 05:12:04] Building go targets for linux/amd64:
cmd/kube-proxy
cmd/kube-apiserver
cmd/kube-controller-manager
cmd/kubelet
cmd/hyperkube
cmd/kubernetes
plugin/cmd/kube-scheduler
contrib/mesos/cmd/k8sm-scheduler
contrib/mesos/cmd/k8sm-executor
contrib/mesos/cmd/k8sm-controller-manager
contrib/mesos/cmd/km
cmd/kubectl
cmd/integration
cmd/gendocs
cmd/genman
cmd/genbashcomp
cmd/genconversion
cmd/gendeepcopy
examples/k8petstore/web-server
github.com/onsi/ginkgo/ginkgo
test/e2e/e2e.test
contrib/mesos/cmd/k8sm-redirfd
# github.com/GoogleCloudPlatform/kubernetes/contrib/mesos/cmd/k8sm-controller-manager
/usr/local/go/pkg/tool/linux_amd64/6l: running gcc failed: Cannot allocate memory
# github.com/GoogleCloudPlatform/kubernetes/contrib/mesos/cmd/km
/usr/local/go/pkg/tool/linux_amd64/6l: running gcc failed: Cannot allocate memory
!!! Error in /root/kubernetes/hack/lib/golang.sh:382
'go install "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "${nonstatics[@]:+${nonstatics[@]}}"' exited with status 2
Call stack:
1: /root/kubernetes/hack/lib/golang.sh:382 kube::golang::build_binaries_for_platform(...)
2: /root/kubernetes/hack/lib/golang.sh:520 kube::golang::build_binaries(...)
3: hack/build-go.sh:26 main(...)
Exiting with status 1
!!! Error in /root/kubernetes/hack/lib/golang.sh:438
'( kube::golang::setup_env; local version_ldflags; version_ldflags=$(kube::version::ldflags); local host_platform; host_platform=$(kube::golang::host_platform); local goflags; eval "goflags=(${KUBE_GOFLAGS:-})"; local use_go_build; local -a targets=(); local arg; for arg in "$@";
do
if [[ "${arg}" == "--use_go_build" ]]; then
use_go_build=true;
else
if [[ "${arg}" == -* ]]; then
goflags+=("${arg}");
else
targets+=("${arg}");
fi;
fi;
done; if [[ ${#targets[@]} -eq 0 ]]; then
targets=("${KUBE_ALL_TARGETS[@]}");
fi; local -a platforms=("${KUBE_BUILD_PLATFORMS[@]:+${KUBE_BUILD_PLATFORMS[@]}}"); if [[ ${#platforms[@]} -eq 0 ]]; then
platforms=("${host_platform}");
fi; local binaries; binaries=($(kube::golang::binaries_from_targets "${targets[@]}")); local parallel=false; if [[ ${#platforms[@]} -gt 1 ]]; then
local gigs; gigs=$(kube::golang::get_physmem); if [[ ${gigs} -gt ${KUBE_PARALLEL_BUILD_MEMORY} ]]; then
kube::log::status "Multiple platforms requested and available ${gigs}G > threshold ${KUBE_PARALLEL_BUILD_MEMORY}G, building platforms in parallel"; parallel=true;
else
kube::log::status "Multiple platforms requested, but available ${gigs}G < threshold ${KUBE_PARALLEL_BUILD_MEMORY}G, building platforms in serial"; parallel=false;
fi;
fi; if [[ "${parallel}" == "true" ]]; then
kube::log::status "Building go targets for ${platforms[@]} in parallel (output will appear in a burst when complete):" "${targets[@]}"; local platform; for platform in "${platforms[@]}";
do
( kube::golang::set_platform_envs "${platform}"; kube::log::status "${platform}: go build started"; kube::golang::build_binaries_for_platform ${platform} ${use_go_build:-}; kube::log::status "${platform}: go build finished" ) &> "/tmp//${platform//\//_}.build" &
done; local fails=0; for job in $(jobs -p);
do
wait ${job} || let "fails+=1";
done; for platform in "${platforms[@]}";
do
cat "/tmp//${platform//\//_}.build";
done; exit ${fails};
else
for platform in "${platforms[@]}";
do
kube::log::status "Building go targets for ${platform}:" "${targets[@]}"; kube::golang::set_platform_envs "${platform}"; kube::golang::build_binaries_for_platform ${platform} ${use_go_build:-};
done;
fi )' exited with status 1
Call stack:
1: /root/kubernetes/hack/lib/golang.sh:438 kube::golang::build_binaries(...)
2: hack/build-go.sh:26 main(...)
Exiting with status 1
Makefile:28: recipe for target 'all' failed
make: *** [all] Error 1
</code></pre></div>
<p dir="auto">OS is Ubuntu 14.10 64-bit running on as a VirtualBox VM through vagrant. The VM has access to 2.5gb of memory.</p>
<p dir="auto">Seems to be similiar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="67813222" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/6730" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/6730/hovercard" href="https://github.com/kubernetes/kubernetes/issues/6730">#6730</a></p> | <p dir="auto">If I try to run <code class="notranslate">hack/update-swagger-spec.sh</code> in my vm with less than <strong>2GB</strong> of RAM it fails with this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="+++ [0725 01:58:03] Building apiserver
+++ [0725 01:58:10] Building go targets for linux/amd64:
cmd/kube-apiserver
go build github.com/GoogleCloudPlatform/kubernetes/pkg/ui/data/swagger: /usr/local/go/pkg/tool/linux_amd64/6g: signal: killed
!!! Error in /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:388
'CGO_ENABLED=0 go install -installsuffix cgo "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "${statics[@]:+${statics[@]}}"' exited with status 1
Call stack:
1: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:388 kube::golang::build_binaries_for_platform(...)
2: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:521 kube::golang::build_binaries(...)
3: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/build-go.sh:26 main(...)
Exiting with status 1
!!! Error in /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:439
'kube::golang::build_binaries "$@"' exited with status 1
Call stack:
1: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:439 kube::golang::build_binaries(...)
2: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/build-go.sh:26 main(...)
Exiting with status 1
!!! Error in hack/update-swagger-spec.sh:40
'"${KUBE_ROOT}/hack/build-go.sh" cmd/kube-apiserver' exited with status 1
Call stack:
1: hack/update-swagger-spec.sh:40 main(...)
Exiting with status 1
+++ [0725 01:58:41] Clean up complete"><pre class="notranslate"><code class="notranslate">+++ [0725 01:58:03] Building apiserver
+++ [0725 01:58:10] Building go targets for linux/amd64:
cmd/kube-apiserver
go build github.com/GoogleCloudPlatform/kubernetes/pkg/ui/data/swagger: /usr/local/go/pkg/tool/linux_amd64/6g: signal: killed
!!! Error in /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:388
'CGO_ENABLED=0 go install -installsuffix cgo "${goflags[@]:+${goflags[@]}}" -ldflags "${version_ldflags}" "${statics[@]:+${statics[@]}}"' exited with status 1
Call stack:
1: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:388 kube::golang::build_binaries_for_platform(...)
2: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:521 kube::golang::build_binaries(...)
3: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/build-go.sh:26 main(...)
Exiting with status 1
!!! Error in /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:439
'kube::golang::build_binaries "$@"' exited with status 1
Call stack:
1: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:439 kube::golang::build_binaries(...)
2: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/build-go.sh:26 main(...)
Exiting with status 1
!!! Error in hack/update-swagger-spec.sh:40
'"${KUBE_ROOT}/hack/build-go.sh" cmd/kube-apiserver' exited with status 1
Call stack:
1: hack/update-swagger-spec.sh:40 main(...)
Exiting with status 1
+++ [0725 01:58:41] Clean up complete
</code></pre></div>
<p dir="auto">I found that this file <code class="notranslate">pkg/ui/data/swagger/datafile.go</code> for some reason need a lot of memory to be builded. (it is a huge file btw with 48528 lines)</p>
<p dir="auto">Is there anything we can do for that? I find it very difficult to run a VM in my laptop with more that 2GB which actually means that I can't work...</p> | 1 |
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-make-images-mobile-responsive#?solution=%3Clink%20href%3D%22http%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20.red-text%20%7B%0A%20%20%20%20color%3A%20red%3B%0A%20%20%7D%0A%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20p%20%7B%0A%20%20%20%20font-size%3A%2016px%3B%0A%20%20%20%20font-family%3A%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%0A%20%20.smaller-image%20%7B%0A%20%20%20%20width%3A%20100px%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch2%20class%3D%22red-text%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%22img-responsive%20smaller-image%20thick-green-border%22%20src%3D%22http%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%3E%3C%2Fa%3E%0A%20%20%20%20%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22img-responsive%20smaller-image%20thick-green-border%22%20src%3D%22http%3A%2F%2Fbit.ly%2Ffcc-running-cats%22%3E%3C%2Fa%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">Waypoint: Make Images Mobile Responsive</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<link href="http://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.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;
}
</style>
<div class="container-fluid">
<h2 class="red-text">CatPhotoApp</h2>
<p>Click here for <a href="#">cat photos</a>.</p>
<a href="#"><img class="img-responsive smaller-image thick-green-border" src="http://bit.ly/fcc-relaxing-cat"></a>
<a href="#"><img class="img-responsive smaller-image thick-green-border" src="http://bit.ly/fcc-running-cats"></a>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">http://fonts.googleapis.com/css?family=Lobster</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>" <span class="pl-c1">type</span>="<span class="pl-s">text/css</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></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"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">red-text</span>"<span class="pl-kos">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Click here for <span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span>cat photos<span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">img-responsive smaller-image thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">http://bit.ly/fcc-relaxing-cat</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">class</span>="<span class="pl-s">img-responsive smaller-image thick-green-border</span>" <span class="pl-c1">src</span>="<span class="pl-s">http://bit.ly/fcc-running-cats</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Things cats love:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>cat nip<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>laser pointers<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>lasagna<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Top 3 things cats hate:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>flea treatment<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>thunder<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>other cats<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</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">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</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">></span> Indoor<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</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">></span> Outdoor<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</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">></span> Loving<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</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">></span> Lazy<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</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">></span> Crazy<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</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">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">></span>Submit<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">form</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div> | <p dir="auto">Lesson: <a href="http://www.freecodecamp.com/challenges/waypoint-mobile-responsive-images" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-mobile-responsive-images</a></p>
<ol dir="auto">
<li>Instructions are the wrong way around, should assign the class after instructing you to make the new <code class="notranslate">img</code> tag</li>
<li>Switches from <code class="notranslate">https://</code> to <code class="notranslate">http://</code> requirement for second <code class="notranslate">img</code></li>
<li>If you add <code class="notranslate">img-responsive</code> to the existing <code class="notranslate">img</code> tag you are then unable to complete the lesson even if you add another image below it with the correct <code class="notranslate">src</code> and <code class="notranslate">class</code></li>
<li>Lesson accepts itself as complete before you have to close the image tag eg: <code class="notranslate"><img class="img-responsive" src="http://bit.ly/fcc-kittens2"</code> is accepted (missing <code class="notranslate">></code> on the end)</li>
<li>Don't think the notes should have the words <code class="notranslate">responsive design</code> wrapped in a code tag, previously only seen it used to describe markup.</li>
<li>Don't think this needs the caps either: <code class="notranslate">Fortunately, we have access to a Responsive CSS Framework called Bootstrap.</code> should just be <code class="notranslate">responsive CSS framework</code></li>
</ol> | 1 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const enum Types{ NAME=0, NODE=1 }
var a: [string, Node];
a[Types.NODE].parentNode; // parentNode does not exists
a[1].parentNode;// that is works fine"><pre class="notranslate"><code class="notranslate">const enum Types{ NAME=0, NODE=1 }
var a: [string, Node];
a[Types.NODE].parentNode; // parentNode does not exists
a[1].parentNode;// that is works fine
</code></pre></div> | <p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.2</p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// A self-contained demonstration of the problem follows...
class Repro
{
static property = {
foo: "bar"
};
}"><pre class="notranslate"><span class="pl-c">// A self-contained demonstration of the problem follows...</span>
<span class="pl-k">class</span> <span class="pl-smi">Repro</span>
<span class="pl-kos">{</span>
<span class="pl-k">static</span> <span class="pl-c1">property</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">foo</span>: <span class="pl-s">"bar"</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><code class="notranslate">tsc --allowJs --out out.js repro.js</code></p>
<p dir="auto"><strong>Expected behavior:</strong></p>
<p dir="auto">Compiles without error</p>
<p dir="auto"><strong>Actual behavior:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="repro.js(3,5): error TS8014: 'property declarations' can only be used in a .ts file."><pre class="notranslate"><code class="notranslate">repro.js(3,5): error TS8014: 'property declarations' can only be used in a .ts file.
</code></pre></div> | 0 |
<p dir="auto">I've been testing <code class="notranslate">1.7.0</code> while packaging it for nixpkgs and I usually test it with the <code class="notranslate">cat</code> example but it's now requiring <code class="notranslate">--allow-read</code> but it also doesn't accept the flag either during compile or using the compiled result.<br>
(cat src: <a href="https://deno.land/[email protected]/examples/cat.ts" rel="nofollow">https://deno.land/[email protected]/examples/cat.ts</a>)</p>
<p dir="auto">Since nixOS is pretty different I've also replicated the issue using a buster-slim container</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ wget https://github.com/denoland/deno/releases/download/v1.7.0/deno-x86_64-unknown-linux-gnu.zip
# ...
2021-01-20 10:46:13 (1.89 MB/s) - 'deno-x86_64-unknown-linux-gnu.zip' saved [21261828/21261828]
$ unzip deno-x86_64-unknown-linux-gnu.zip
Archive: deno-x86_64-unknown-linux-gnu.zip
inflating: deno
$ ./deno --version
deno 1.7.0 (release, x86_64-unknown-linux-gnu)
v8 8.9.255.3
typescript 4.1.3"><pre class="notranslate"><code class="notranslate">cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ wget https://github.com/denoland/deno/releases/download/v1.7.0/deno-x86_64-unknown-linux-gnu.zip
# ...
2021-01-20 10:46:13 (1.89 MB/s) - 'deno-x86_64-unknown-linux-gnu.zip' saved [21261828/21261828]
$ unzip deno-x86_64-unknown-linux-gnu.zip
Archive: deno-x86_64-unknown-linux-gnu.zip
inflating: deno
$ ./deno --version
deno 1.7.0 (release, x86_64-unknown-linux-gnu)
v8 8.9.255.3
typescript 4.1.3
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ./deno compile --unstable https://deno.land/[email protected]/examples/cat.ts
Download https://deno.land/[email protected]/examples/cat.ts
Check https://deno.land/[email protected]/examples/cat.ts
Bundle https://deno.land/[email protected]/examples/cat.ts
Compile https://deno.land/[email protected]/examples/cat.ts
Emit cat
$ ./cat file
error: PermissionDenied: read access to "file", run again with the --allow-read flag
at processResponse (deno:core/core.js:212:11)
at Object.jsonOpAsync (deno:core/core.js:229:12)
at async Object.open (deno:runtime/js/30_files.js:44:17)
at async file://$deno$/bundle.js:3:18
$ ./cat --allow-read file
error: PermissionDenied: read access to "--allow-read", run again with the --allow-read flag
at processResponse (deno:core/core.js:212:11)
at Object.jsonOpAsync (deno:core/core.js:229:12)
at async Object.open (deno:runtime/js/30_files.js:44:17)
at async file://$deno$/bundle.js:3:18
$ rm cat
$ ./deno compile --unstable https://deno.land/[email protected]/examples/cat.ts --allow-read
Check https://deno.land/[email protected]/examples/cat.ts
Bundle https://deno.land/[email protected]/examples/cat.ts
Compile https://deno.land/[email protected]/examples/cat.ts
Emit cat
$ ./cat file
error: PermissionDenied: read access to "--allow-read", run again with the --allow-read flag
at processResponse (deno:core/core.js:212:11)
at Object.jsonOpAsync (deno:core/core.js:229:12)
at async Object.open (deno:runtime/js/30_files.js:44:17)
at async file://$deno$/bundle.js:3:18"><pre class="notranslate"><code class="notranslate">$ ./deno compile --unstable https://deno.land/[email protected]/examples/cat.ts
Download https://deno.land/[email protected]/examples/cat.ts
Check https://deno.land/[email protected]/examples/cat.ts
Bundle https://deno.land/[email protected]/examples/cat.ts
Compile https://deno.land/[email protected]/examples/cat.ts
Emit cat
$ ./cat file
error: PermissionDenied: read access to "file", run again with the --allow-read flag
at processResponse (deno:core/core.js:212:11)
at Object.jsonOpAsync (deno:core/core.js:229:12)
at async Object.open (deno:runtime/js/30_files.js:44:17)
at async file://$deno$/bundle.js:3:18
$ ./cat --allow-read file
error: PermissionDenied: read access to "--allow-read", run again with the --allow-read flag
at processResponse (deno:core/core.js:212:11)
at Object.jsonOpAsync (deno:core/core.js:229:12)
at async Object.open (deno:runtime/js/30_files.js:44:17)
at async file://$deno$/bundle.js:3:18
$ rm cat
$ ./deno compile --unstable https://deno.land/[email protected]/examples/cat.ts --allow-read
Check https://deno.land/[email protected]/examples/cat.ts
Bundle https://deno.land/[email protected]/examples/cat.ts
Compile https://deno.land/[email protected]/examples/cat.ts
Emit cat
$ ./cat file
error: PermissionDenied: read access to "--allow-read", run again with the --allow-read flag
at processResponse (deno:core/core.js:212:11)
at Object.jsonOpAsync (deno:core/core.js:229:12)
at async Object.open (deno:runtime/js/30_files.js:44:17)
at async file://$deno$/bundle.js:3:18
</code></pre></div> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~/p/g/d/deno ❯❯❯ deno compile --unstable https://deno.land/[email protected]/examples/cat.ts CODE_OF_CONDUCT.md
Check https://deno.land/[email protected]/examples/cat.ts
Bundle https://deno.land/[email protected]/examples/cat.ts
Compile https://deno.land/[email protected]/examples/cat.ts
Emit cat
~/p/g/d/deno ❯❯❯ ./cat
error: PermissionDenied: read access to "CODE_OF_CONDUCT.md", run again with the --allow-read flag
at processResponse (deno:core/core.js:223:11)
at Object.jsonOpAsync (deno:core/core.js:240:12)
at async Object.open (deno:runtime/js/30_files.js:44:17)
at async file://$deno$/bundle.js:3:18"><pre class="notranslate"><code class="notranslate">~/p/g/d/deno ❯❯❯ deno compile --unstable https://deno.land/[email protected]/examples/cat.ts CODE_OF_CONDUCT.md
Check https://deno.land/[email protected]/examples/cat.ts
Bundle https://deno.land/[email protected]/examples/cat.ts
Compile https://deno.land/[email protected]/examples/cat.ts
Emit cat
~/p/g/d/deno ❯❯❯ ./cat
error: PermissionDenied: read access to "CODE_OF_CONDUCT.md", run again with the --allow-read flag
at processResponse (deno:core/core.js:223:11)
at Object.jsonOpAsync (deno:core/core.js:240:12)
at async Object.open (deno:runtime/js/30_files.js:44:17)
at async file://$deno$/bundle.js:3:18
</code></pre></div>
<p dir="auto"><code class="notranslate">run again with the --allow-read flag</code> makes no sense in self-contained binaries because after (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="763922775" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/8738" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/8738/hovercard" href="https://github.com/denoland/deno/pull/8738">#8738</a>) permissions are embedded in the binary and can't be changed.</p>
<p dir="auto">In this situation we should provide different message.</p>
<p dir="auto">CC <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lucacasonato/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lucacasonato">@lucacasonato</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nayeemrmn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nayeemrmn">@nayeemrmn</a></p> | 1 |
<p dir="auto">I read <a href="https://github.com/JuliaLang/julia/pull/12563" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/12563/hovercard">this discussion</a> about <code class="notranslate">max</code> and <code class="notranslate">maximum</code> returning <code class="notranslate">NaN</code> when the collection includes <code class="notranslate">NaN</code>. For example,</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> VERSION
v"0.7.0-DEV.82"
julia> v = [1.0, NaN, 2.0]
3-element Array{Float64,1}:
1.0
NaN
2.0
julia> maximum(v)
NaN"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-c1">VERSION</span>
<span class="pl-s"><span class="pl-pds"><span class="pl-c1">v</span>"</span>0.7.0-DEV.82<span class="pl-pds">"</span></span>
julia<span class="pl-k">></span> v <span class="pl-k">=</span> [<span class="pl-c1">1.0</span>, <span class="pl-c1">NaN</span>, <span class="pl-c1">2.0</span>]
<span class="pl-c1">3</span><span class="pl-k">-</span>element Array{Float64,<span class="pl-c1">1</span>}<span class="pl-k">:</span>
<span class="pl-c1">1.0</span>
<span class="pl-c1">NaN</span>
<span class="pl-c1">2.0</span>
julia<span class="pl-k">></span> <span class="pl-c1">maximum</span>(v)
<span class="pl-c1">NaN</span></pre></div>
<p dir="auto">However, <code class="notranslate">findmax</code> still returns the maximum among non-NaN values and its index:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> findmax(v)
(2.0, 3)"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-c1">findmax</span>(v)
(<span class="pl-c1">2.0</span>, <span class="pl-c1">3</span>)</pre></div>
<p dir="auto">This seems inconsistent. Is this something intended or a bug?</p> | <p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="248260512" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/23155" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/23155/hovercard" href="https://github.com/JuliaLang/julia/pull/23155">#23155</a>. These should be made to match and documentation updated accordingly.</p> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.