text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">In the <code class="notranslate">sklearn.metrics.precision_recall_curve</code> documentation,</p>
<blockquote>
<p dir="auto">thresholds : array, shape = [n_thresholds := len(np.unique(probas_pred))]</p>
</blockquote>
<p dir="auto">But as the example below shows,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> y_scores = np.array([0.1, 0.4, 0.35, 0.8])
...
>>> thresholds
array([ 0.35, 0.4 , 0.8 ])"><pre class="notranslate"><code class="notranslate">>>> y_scores = np.array([0.1, 0.4, 0.35, 0.8])
...
>>> thresholds
array([ 0.35, 0.4 , 0.8 ])
</code></pre></div>
<p dir="auto">the shape of threshold is not <code class="notranslate">len(np.unique(probas_pred))</code>.</p> | <p dir="auto">Referencing <a href="https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/metrics/ranking.py#L346-L348"><code class="notranslate">"The last precision and recall values are 1. and 0. respectively and do not have a corresponding threshold. This ensures that the graph starts on the x axis."</code></a></p>
<p dir="auto">Say you have a tie in your highest predicted probability output from the classifier with some false positives and some true positives, for example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="y_true = [ 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0]
y_pred = [.9, .9, .9, .8, .8, .7, .7, .6, .5, .4, .3]
precision, recall, thresholds = precision_recall_curve(y_true, y_pred)"><pre class="notranslate"><code class="notranslate">y_true = [ 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0]
y_pred = [.9, .9, .9, .8, .8, .7, .7, .6, .5, .4, .3]
precision, recall, thresholds = precision_recall_curve(y_true, y_pred)
</code></pre></div>
<p dir="auto">Yields:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Pricision: [0.400, 0.333, 0.375, 0.428, 0.400, 0.333, 1.000]
Recall: [1.000, 0.750, 0.750, 0.750, 0.500, 0.250, 0.000]"><pre class="notranslate"><code class="notranslate">Pricision: [0.400, 0.333, 0.375, 0.428, 0.400, 0.333, 1.000]
Recall: [1.000, 0.750, 0.750, 0.750, 0.500, 0.250, 0.000]
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5210848/6098145/7fb45fec-af8a-11e4-9e21-7549071fb2b3.png"><img src="https://cloud.githubusercontent.com/assets/5210848/6098145/7fb45fec-af8a-11e4-9e21-7549071fb2b3.png" alt="download 1" style="max-width: 100%;"></a></p>
<p dir="auto">I understand that recall goes to zero in the limit, but precision might not be so clear-cut. A <em>really</em> difficult problem where your top prediction is a false positive would have precision go to zero in the limit I believe. For plotting with this function, this case is probably not a big deal a vertical line from 0 to 1 would be hidden by the y-axis.</p>
<p dir="auto">But for the drawn top-preds, as seen above, the plot becomes misleading and makes the viewer think that at least their top prediction was true positive. This may seem like a corner case, but I ran into it on a tough classification problem I was working on and was a little baffled by the output until I checked the code out.</p>
<p dir="auto">A quick fix to preserve the intention of a clean P-R plot might be to draw a horizontal line from the highest threshold to the y-axis, this should not alter the output of most cases like <a href="http://scikit-learn.org/stable/auto_examples/plot_precision_recall.html" rel="nofollow">here</a>. Trying to actually calculate where it's going in the limit might be a bit overkill :-)</p>
<p dir="auto">I would also think that adding a <code class="notranslate">1</code> to the end of the <code class="notranslate">thresholds</code> vector would be helpful when plotting both precision and recall against the probabilities.</p>
<p dir="auto">I'm happy to open a PR if anyone thinks this is worth addressing.</p> | 1 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
failures:
---- integration::node_compat_tests::node_compat_tests stdout ----
thread 'integration::node_compat_tests::node_compat_tests' panicked at 'assertion failed: `(left == right)`
left: `Some(0)`,
right: `Some(1)`', cli/tests/integration/node_compat_tests.rs:17:3"><pre class="notranslate"><code class="notranslate">
failures:
---- integration::node_compat_tests::node_compat_tests stdout ----
thread 'integration::node_compat_tests::node_compat_tests' panicked at 'assertion failed: `(left == right)`
left: `Some(0)`,
right: `Some(1)`', cli/tests/integration/node_compat_tests.rs:17:3
</code></pre></div>
<p dir="auto"><a href="https://github.com/denoland/deno/actions/runs/4664060803/jobs/8255956913?pr=18649#step:35:4996">https://github.com/denoland/deno/actions/runs/4664060803/jobs/8255956913?pr=18649#step:35:4996</a></p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Node.js compatibility ... Node.js compatibility "parallel/test-child-process-exec-timeout-kill.js" => ./cli/tests/node_compat/test.ts:54:11
error: AssertionError: Failed assertion: error: Uncaught AssertionError: Values are not strictly equal:
[Diff] Actual / Expected
- false
+ true
at new AssertionError (ext:deno_node/assertion_error.ts:411:15)
at toNode (ext:deno_node/assert.ts:43:23)
at Function.strictEqual (ext:deno_node/assert.ts:214:5)
at file:///Users/runner/work/deno/deno/cli/tests/node_compat/test/parallel/test-child-process-exec-timeout-kill.js:42:10
at file:///Users/runner/work/deno/deno/cli/tests/node_compat/test/common/index.js:286:15
at ChildProcess.exithandler (ext:deno_node/child_process.ts:284:9)
at ChildProcess.emit (ext:deno_node/_events.mjs:379:28)
at ext:deno_node/internal/child_process.ts:158:26
at Object.runMicrotasks (ext:core/01_core.js:419:30)
at processTicksAndRejections (ext:deno_node/_next_tick.ts:51:14)
throw new AssertionError(msg);
^
at assert (file:///Users/runner/work/deno/deno/test_util/std/testing/asserts.ts:141:11)
at fail (file:///Users/runner/work/deno/deno/test_util/std/testing/asserts.ts:602:3)
at fn (file:///Users/runner/work/deno/deno/cli/tests/node_compat/test.ts:104:9)
at async testStepSanitizer (ext:cli/40_testing.js:460:5)
at async runTest (ext:cli/40_testing.js:782:20)
at async TestContext.step (ext:cli/40_testing.js:1221:22)
at async runTest (file:///Users/runner/work/deno/deno/cli/tests/node_compat/test.ts:54:3)
FAILURES
Node.js compatibility ... Node.js compatibility "parallel/test-child-process-exec-timeout-kill.js" => ./cli/tests/node_compat/test.ts:54:11
FAILED | 1 passed (522 steps) | 1 failed (1 step) (53s)
"><pre class="notranslate"><code class="notranslate">Node.js compatibility ... Node.js compatibility "parallel/test-child-process-exec-timeout-kill.js" => ./cli/tests/node_compat/test.ts:54:11
error: AssertionError: Failed assertion: error: Uncaught AssertionError: Values are not strictly equal:
[Diff] Actual / Expected
- false
+ true
at new AssertionError (ext:deno_node/assertion_error.ts:411:15)
at toNode (ext:deno_node/assert.ts:43:23)
at Function.strictEqual (ext:deno_node/assert.ts:214:5)
at file:///Users/runner/work/deno/deno/cli/tests/node_compat/test/parallel/test-child-process-exec-timeout-kill.js:42:10
at file:///Users/runner/work/deno/deno/cli/tests/node_compat/test/common/index.js:286:15
at ChildProcess.exithandler (ext:deno_node/child_process.ts:284:9)
at ChildProcess.emit (ext:deno_node/_events.mjs:379:28)
at ext:deno_node/internal/child_process.ts:158:26
at Object.runMicrotasks (ext:core/01_core.js:419:30)
at processTicksAndRejections (ext:deno_node/_next_tick.ts:51:14)
throw new AssertionError(msg);
^
at assert (file:///Users/runner/work/deno/deno/test_util/std/testing/asserts.ts:141:11)
at fail (file:///Users/runner/work/deno/deno/test_util/std/testing/asserts.ts:602:3)
at fn (file:///Users/runner/work/deno/deno/cli/tests/node_compat/test.ts:104:9)
at async testStepSanitizer (ext:cli/40_testing.js:460:5)
at async runTest (ext:cli/40_testing.js:782:20)
at async TestContext.step (ext:cli/40_testing.js:1221:22)
at async runTest (file:///Users/runner/work/deno/deno/cli/tests/node_compat/test.ts:54:3)
FAILURES
Node.js compatibility ... Node.js compatibility "parallel/test-child-process-exec-timeout-kill.js" => ./cli/tests/node_compat/test.ts:54:11
FAILED | 1 passed (522 steps) | 1 failed (1 step) (53s)
</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">The drawer should stick to the right side of the screen when set with <code class="notranslate">anchor="right"</code> and <code class="notranslate">type="permanent"</code>.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">The drawer sticks to the left.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6626225/31045208-b3115604-a5de-11e7-8e53-c233cae1944e.png"><img width="1280" alt="screen shot 2017-09-30 at 12 50 39" src="https://user-images.githubusercontent.com/6626225/31045208-b3115604-a5de-11e7-8e53-c233cae1944e.png" style="max-width: 100%;"></a></p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><code class="notranslate"><Drawer anchor="right" type="permanent"><div>Hello, world!</div></Drawer></code></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>beta12</td>
</tr>
<tr>
<td>React</td>
<td>15.6.2</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
<tr>
<td>etc</td>
<td>MacOS</td>
</tr>
</tbody>
</table> | <p dir="auto">I've use an SVG for my <code class="notranslate">label</code> prop on the <code class="notranslate">Toggle</code> component, it displays fine. However the Toggle component does not propagate <code class="notranslate">:hover</code> / <code class="notranslate">hoverColor</code> to the <code class="notranslate">label</code> node. If I place an <code class="notranslate">SvgIcon</code> component next to <code class="notranslate">Toggle</code> it receives the hover event fine and changes color, not so when used as the <code class="notranslate">label</code> node for <code class="notranslate">Toggle</code>.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">I expect the color of my SVG icon to change when hovering over it.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Hover event not received, no change in SVG style.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><a href="https://codesandbox.io/s/42j70ln7m9" rel="nofollow">https://codesandbox.io/s/42j70ln7m9</a></p>
<ol dir="auto">
<li>View <a href="https://codesandbox.io/s/42j70ln7m9" rel="nofollow">Code Sandbox example</a></li>
<li>Mouseover both SVG images, <code class="notranslate">Toggle</code> component doesn't change SVG color on <code class="notranslate">:hover</code>.</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">UI polish, not essential but would be nice to have it working.</p>
<h2 dir="auto">Your Environment</h2>
<p dir="auto">Some details below but <a href="https://codesandbox.io/s/42j70ln7m9" rel="nofollow">issue reproduced in Code Sandbox</a>.</p>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>0.20.0</td>
</tr>
<tr>
<td>React</td>
<td>15.6.2</td>
</tr>
<tr>
<td>Chrome</td>
<td>63.0.3239.132</td>
</tr>
<tr>
<td>Firefox</td>
<td>57.0.4</td>
</tr>
</tbody>
</table> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Client side routing, navigation and routing would work.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Ran <code class="notranslate">next export</code> and when I serve locally (and online) there's a client side JavaScript error that breaks all the client side logic.</p>
<p dir="auto">Without sourcemaps (or any other debugging tools?) I can't work out what's happening. Live URL: <a href="https://dkfyjniin9u60.cloudfront.net/" rel="nofollow">https://dkfyjniin9u60.cloudfront.net/</a> (see console in browser).</p>
<p dir="auto">Not sure I can replicate as yet, as it's larger site - pretty sure the vanilla examples work.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">Including the <code class="notranslate">next.config.js</code> - possibly this is factoring?</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { env } = process;
const webpack = require('webpack');
module.exports = {
exportPathMap () {
// we fetch our list of posts, this allow us to dynamically generate the exported pages
const all = require('./server/lib/docs');
// transform the list of posts into a map of pages with the pathname `/post/:id`
const pages = all.posts.docs.reduce((pages, post) =>
Object.assign({}, pages, {
[`${post.url}`]: {
page: '/_post',
query: { slug: post.slug }
}
}),
{});
// combine the map of post pages with the home
return Object.assign({}, pages, {
'/': { page: '/' }
});
},
webpack: function (config) {
// this exposes everything on process.env.X
const webpackEnv = Object.keys(env).reduce((acc, curr) => {
acc[`process.env.${curr}`] = JSON.stringify(env[curr]);
return acc;
}, {});
config.plugins.push(new webpack.DefinePlugin(webpackEnv));
return config;
}
};"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> env <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">process</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-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-en">exportPathMap</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// we fetch our list of posts, this allow us to dynamically generate the exported pages</span>
<span class="pl-k">const</span> <span class="pl-s1">all</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'./server/lib/docs'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// transform the list of posts into a map of pages with the pathname `/post/:id`</span>
<span class="pl-k">const</span> <span class="pl-s1">pages</span> <span class="pl-c1">=</span> <span class="pl-s1">all</span><span class="pl-kos">.</span><span class="pl-c1">posts</span><span class="pl-kos">.</span><span class="pl-c1">docs</span><span class="pl-kos">.</span><span class="pl-en">reduce</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">pages</span><span class="pl-kos">,</span> <span class="pl-s1">post</span><span class="pl-kos">)</span> <span class="pl-c1">=></span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">assign</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">pages</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-kos">[</span><span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">post</span><span class="pl-kos">.</span><span class="pl-c1">url</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">]</span>: <span class="pl-kos">{</span>
<span class="pl-c1">page</span>: <span class="pl-s">'/_post'</span><span class="pl-kos">,</span>
<span class="pl-c1">query</span>: <span class="pl-kos">{</span> <span class="pl-c1">slug</span>: <span class="pl-s1">post</span><span class="pl-kos">.</span><span class="pl-c1">slug</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// combine the map of post pages with the home</span>
<span class="pl-k">return</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">assign</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">pages</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-s">'/'</span>: <span class="pl-kos">{</span> <span class="pl-c1">page</span>: <span class="pl-s">'/'</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-en">webpack</span>: <span class="pl-k">function</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-c">// this exposes everything on process.env.X</span>
<span class="pl-k">const</span> <span class="pl-s1">webpackEnv</span> <span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-s1">env</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">reduce</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">acc</span><span class="pl-kos">,</span> <span class="pl-s1">curr</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s1">acc</span><span class="pl-kos">[</span><span class="pl-s">`process.env.<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">curr</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-c1">JSON</span><span class="pl-kos">.</span><span class="pl-en">stringify</span><span class="pl-kos">(</span><span class="pl-s1">env</span><span class="pl-kos">[</span><span class="pl-s1">curr</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-s1">acc</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">plugins</span><span class="pl-kos">.</span><span class="pl-en">push</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-s1">webpackEnv</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-s1">config</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>3.0.1-beta.13</td>
</tr>
<tr>
<td>node</td>
<td>8.1.0</td>
</tr>
<tr>
<td>OS</td>
<td>Mac 10.10.3 (14D136)</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome Version 61.0.3156.0 (Official Build) canary (64-bit)</td>
</tr>
</tbody>
</table> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When I'm deploying a production build, I should have minified javascript code in order to minimize file size and maximize performance.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">My app.js is 529KB and not minified</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li><code class="notranslate">next build</code></li>
<li><code class="notranslate">next start</code></li>
</ol>
<p dir="auto">OR</p>
<ol dir="auto">
<li><code class="notranslate">next build</code></li>
<li><code class="notranslate">next export</code></li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">I wanted to use next.js in order to have a lightning fast site as advertised but no minification kills that. I'm sure I'm missing something simple.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>4.1.1</td>
</tr>
<tr>
<td>node</td>
<td>8.4.0</td>
</tr>
<tr>
<td>OS</td>
<td>MacOS Sierra 10.12.6</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
<tr>
<td>etc</td>
<td>React and react-dom 16</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spicyj/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spicyj">@spicyj</a>, you know what's up.</p> | <p dir="auto">Calling <code class="notranslate">setState</code> in <code class="notranslate">componentWillMount</code> doesn't behave as I would expect. <a href="http://jsfiddle.net/kb3gN/3194/" rel="nofollow">Here</a>'s a fiddle demonstrating. In short, the callback is invoked before the state has been updated.</p> | 1 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="babel --version
6.1.1 (babel-core 6.0.20)"><pre class="notranslate"><code class="notranslate">babel --version
6.1.1 (babel-core 6.0.20)
</code></pre></div>
<p dir="auto">.babelrc</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
'presets': ['es2015', 'stage-0', 'react']
}"><pre class="notranslate"><code class="notranslate">{
'presets': ['es2015', 'stage-0', 'react']
}
</code></pre></div>
<p dir="auto">EmptyComponent.jsx</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class EmptyComponent extends React.Component {
constructor() {
super()
}
nextStep = (e) => {
e.preventDefault()
this.saveValues()
}
}"><pre class="notranslate"><code class="notranslate">class EmptyComponent extends React.Component {
constructor() {
super()
}
nextStep = (e) => {
e.preventDefault()
this.saveValues()
}
}
</code></pre></div>
<p dir="auto">Running babel:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ babel src/app/components/EmptyComponent.jsx
SyntaxError: src/app/components/EmptyComponent.jsx: 'this' is not allowed before super() (This is an error on an internal node. Probably an internal error)
undefined"><pre class="notranslate"><code class="notranslate">$ babel src/app/components/EmptyComponent.jsx
SyntaxError: src/app/components/EmptyComponent.jsx: 'this' is not allowed before super() (This is an error on an internal node. Probably an internal error)
undefined
</code></pre></div>
<p dir="auto">However, this compiles successfully (just removed the <code class="notranslate">this.saveValues()</code> invocation)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class EmptyComponent extends React.Component {
constructor() {
super()
}
nextStep = (e) => {
e.preventDefault()
}
}"><pre class="notranslate"><code class="notranslate">class EmptyComponent extends React.Component {
constructor() {
super()
}
nextStep = (e) => {
e.preventDefault()
}
}
</code></pre></div> | <p dir="auto">Hello, I found that autobinding in classes are not work after update to 6.0</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'this' is not allowed before super() (This is an error on an internal node. Probably an internal error)"><pre class="notranslate"><code class="notranslate">'this' is not allowed before super() (This is an error on an internal node. Probably an internal error)
</code></pre></div>
<p dir="auto">.babelrc</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"presets": [
"react",
"es2015",
"stage-0"
]
}"><pre class="notranslate"><code class="notranslate">{
"presets": [
"react",
"es2015",
"stage-0"
]
}
</code></pre></div>
<p dir="auto">Is it expected behavior?<br>
Thanks!</p> | 1 |
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1867536" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/2376" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/2376/hovercard" href="https://github.com/symfony/symfony/issues/2376">#2376</a></p>
<p dir="auto">I'm having this problem and none of the two suggested workarounds worked for me, and I don't know whether it's fixed or not.</p>
<p dir="auto">Symfony2.3</p> | <p dir="auto">Errors are not associated with the field when the indices has a gap.</p>
<p dir="auto">The errors are displayed for both fields.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<input type="text" id="post_photos_0_fileName" name="post[photos][0][fileName]" value="" />
<input type="text" id="post_photos_1_fileName" name="post[photos][1][fileName]" value="" />"><pre class="notranslate"><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">id</span>="<span class="pl-s">post_photos_0_fileName</span>" <span class="pl-c1">name</span>="<span class="pl-s">post[photos][0][fileName]</span>" <span class="pl-c1">value</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">id</span>="<span class="pl-s">post_photos_1_fileName</span>" <span class="pl-c1">name</span>="<span class="pl-s">post[photos][1][fileName]</span>" <span class="pl-c1">value</span>="" /></pre></div>
<p dir="auto">Errors are only displayed for the first field.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<input type="text" id="post_photos_0_fileName" name="post[photos][0][fileName]" value="" />
<input type="text" id="post_photos_2_fileName" name="post[photos][2][fileName]" value="" />"><pre class="notranslate"><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">id</span>="<span class="pl-s">post_photos_0_fileName</span>" <span class="pl-c1">name</span>="<span class="pl-s">post[photos][0][fileName]</span>" <span class="pl-c1">value</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">id</span>="<span class="pl-s">post_photos_2_fileName</span>" <span class="pl-c1">name</span>="<span class="pl-s">post[photos][2][fileName]</span>" <span class="pl-c1">value</span>="" /></pre></div>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add(
'photos',
'collection',
array(
'type' => new PhotoType(),
'allow_add' => true,
'allow_delete' => true,
'prototype' => true,
'by_reference' => false
)
);
}"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">buildForm</span>(<span class="pl-smi"><span class="pl-smi">FormBuilderInterface</span></span> <span class="pl-s1"><span class="pl-c1">$</span>builder</span>, <span class="pl-smi">array</span> <span class="pl-s1"><span class="pl-c1">$</span>options</span>)
{
<span class="pl-s1"><span class="pl-c1">$</span>builder</span>-><span class="pl-en">add</span>(
<span class="pl-s">'photos'</span>,
<span class="pl-s">'collection'</span>,
<span class="pl-en">array</span>(
<span class="pl-s">'type'</span> => <span class="pl-k">new</span> <span class="pl-v">PhotoType</span>(),
<span class="pl-s">'allow_add'</span> => <span class="pl-c1">true</span>,
<span class="pl-s">'allow_delete'</span> => <span class="pl-c1">true</span>,
<span class="pl-s">'prototype'</span> => <span class="pl-c1">true</span>,
<span class="pl-s">'by_reference'</span> => <span class="pl-c1">false</span>
)
);
}</pre></div> | 0 |
<p dir="auto"><code class="notranslate">iterFunc({|| ret; })</code> does not return from the outer function.</p>
<p dir="auto">Maybe we'll just have accept this, since in the absence of non-local control flow, there's no nice way to implement such returns.</p> | <p dir="auto">Sometimes when enabling debug info and optimizations at the same time, <em>rustc</em> dies with an assertion in the LLVM method <code class="notranslate">ValueHandleBase::ValueIsDeleted()</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="While deleting: metadata %
An asserting value handle still pointed to this value!
UNREACHABLE executed at /home/sc/projects/rust/rust/src/llvm/lib/IR/Value.cpp:632!"><pre class="notranslate"><code class="notranslate">While deleting: metadata %
An asserting value handle still pointed to this value!
UNREACHABLE executed at /home/sc/projects/rust/rust/src/llvm/lib/IR/Value.cpp:632!
</code></pre></div>
<p dir="auto">This is one the major issues keeping debug info from being end-user ready (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20689392" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/9770" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/9770/hovercard" href="https://github.com/rust-lang/rust/issues/9770">#9770</a>).</p>
<p dir="auto">I was already able to identify the cause for the assertion:<br>
The failure itself says that a value handle still points to the metadata node that is currently being deleted. This leaked handle is created in LLVM's <code class="notranslate">DwarfDebug::collectDeadVariables()</code> on a path that is only hit with optimizations activated. That's why the assertion is never triggered when compiling something without the <code class="notranslate">-O</code> flag.</p>
<p dir="auto">The memory leak occurs because the method cannot handle duplicate entries in the list of subprograms in the compile unit. This is a bug in LLVM: <a href="http://llvm.org/bugs/show_bug.cgi?id=16017" rel="nofollow">http://llvm.org/bugs/show_bug.cgi?id=16017</a><br>
It's not clear yet how it will be fixed exactly.</p>
<p dir="auto">But the issue should also be tackled on our side: That LLVM reacts with a memory leak to invalid input is unfortunate but it's still us that generate the invalid input. The main issue here is that some functions are translated more than once (see issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="15933204" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/7349" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/7349/hovercard" href="https://github.com/rust-lang/rust/issues/7349">#7349</a>) and thus they are also added to the debug info function list more than once.</p>
<p dir="auto">I think the best way to fix this issue is to fix <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="15933204" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/7349" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/7349/hovercard" href="https://github.com/rust-lang/rust/issues/7349">#7349</a>. This way we don't have to wait for LLVM to take care of their side. Also, the folks at LLVM might decide to just assert on invalid input, so we have take care of this anyway.</p> | 0 |
<p dir="auto">This is a vague bug but here is my intention:</p>
<ol dir="auto">
<li>Look at common bugs (returning a closure, etc) and see if we can improve the error messages for those</li>
<li>Try to improve the heuristics that suggest how to report a region inference failure, which frequently give nonsense results</li>
</ol> | <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jimtla/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jimtla">@jimtla</a> pasted his code he was working with on IRC and I simplified it a bit:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#[derive(Clone)]
struct A (B);
impl A {
pub fn matches<F: Fn()>(&self, f: &F) {
let &A(ref term) = self;
term.matches(f);
}
}
#[derive(Clone)]
enum B {
Variant1,
Variant2(C),
}
impl B {
pub fn matches<F: Fn()>(&self, f: &F) {
match self {
&B::Variant2(ref factor) => {
factor.matches(&|| ())
}
_ => unreachable!("")
}
}
}
#[derive(Clone)]
struct C (D);
impl C {
pub fn matches<F: Fn()>(&self, f: &F) {
let &C(ref base) = self;
base.matches(&|| {
C(base.clone()).matches(f)
})
}
}
#[derive(Clone)]
struct D (Box<A>);
impl D {
pub fn matches<F: Fn()>(&self, f: &F) {
let &D(ref a) = self;
a.matches(f)
}
}
pub fn matches() {
A(B::Variant1).matches(&(|| ()))
}
fn main() {}"><pre class="notranslate"><span class="pl-c1">#<span class="pl-kos">[</span>derive<span class="pl-kos">(</span><span class="pl-v">Clone</span><span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-k">struct</span> <span class="pl-smi">A</span> <span class="pl-kos">(</span><span class="pl-smi">B</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">impl</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">matches</span><span class="pl-kos"><</span><span class="pl-smi">F</span><span class="pl-kos">:</span> <span class="pl-smi">Fn</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">f</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-smi">F</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-c1">&</span><span class="pl-v">A</span><span class="pl-kos">(</span><span class="pl-k">ref</span> term<span class="pl-kos">)</span> = <span class="pl-smi">self</span><span class="pl-kos">;</span>
term<span class="pl-kos">.</span><span class="pl-en">matches</span><span class="pl-kos">(</span>f<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-c1">#<span class="pl-kos">[</span>derive<span class="pl-kos">(</span><span class="pl-v">Clone</span><span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-k">enum</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span>
<span class="pl-v">Variant1</span><span class="pl-kos">,</span>
<span class="pl-v">Variant2</span><span class="pl-kos">(</span><span class="pl-smi">C</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-k">impl</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">matches</span><span class="pl-kos"><</span><span class="pl-smi">F</span><span class="pl-kos">:</span> <span class="pl-smi">Fn</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">f</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-smi">F</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">match</span> <span class="pl-smi">self</span> <span class="pl-kos">{</span>
<span class="pl-c1">&</span><span class="pl-smi">B</span><span class="pl-kos">::</span><span class="pl-v">Variant2</span><span class="pl-kos">(</span><span class="pl-k">ref</span> factor<span class="pl-kos">)</span> => <span class="pl-kos">{</span>
factor<span class="pl-kos">.</span><span class="pl-en">matches</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>
_ => <span class="pl-en">unreachable</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">""</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-c1">#<span class="pl-kos">[</span>derive<span class="pl-kos">(</span><span class="pl-v">Clone</span><span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-k">struct</span> <span class="pl-smi">C</span> <span class="pl-kos">(</span><span class="pl-smi">D</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">impl</span> <span class="pl-smi">C</span> <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">matches</span><span class="pl-kos"><</span><span class="pl-smi">F</span><span class="pl-kos">:</span> <span class="pl-smi">Fn</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">f</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-smi">F</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-c1">&</span><span class="pl-v">C</span><span class="pl-kos">(</span><span class="pl-k">ref</span> base<span class="pl-kos">)</span> = <span class="pl-smi">self</span><span class="pl-kos">;</span>
base<span class="pl-kos">.</span><span class="pl-en">matches</span><span class="pl-kos">(</span><span class="pl-c1">&</span>|| <span class="pl-kos">{</span>
<span class="pl-v">C</span><span class="pl-kos">(</span>base<span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">matches</span><span class="pl-kos">(</span>f<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">#<span class="pl-kos">[</span>derive<span class="pl-kos">(</span><span class="pl-v">Clone</span><span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-k">struct</span> <span class="pl-smi">D</span> <span class="pl-kos">(</span><span class="pl-smi">Box</span><span class="pl-kos"><</span><span class="pl-smi">A</span><span class="pl-kos">></span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">impl</span> <span class="pl-smi">D</span> <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">matches</span><span class="pl-kos"><</span><span class="pl-smi">F</span><span class="pl-kos">:</span> <span class="pl-smi">Fn</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">f</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-smi">F</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-c1">&</span><span class="pl-v">D</span><span class="pl-kos">(</span><span class="pl-k">ref</span> a<span class="pl-kos">)</span> = <span class="pl-smi">self</span><span class="pl-kos">;</span>
a<span class="pl-kos">.</span><span class="pl-en">matches</span><span class="pl-kos">(</span>f<span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">matches</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-v">A</span><span class="pl-kos">(</span><span class="pl-smi">B</span><span class="pl-kos">::</span><span class="pl-v">Variant1</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">matches</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><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/t/m/h/src (master|…) $ rustc lib.rs
lib.rs:18:36: 18:37 warning: unused variable: `f`, #[warn(unused_variables)] on by default
lib.rs:18 pub fn matches<F: Fn()>(&self, f: &F) {
^
thread 'rustc' has overflowed its stack
fish: Job 1, 'rustc lib.rs ' terminated by signal SIGILL (Illegal instruction)"><pre class="notranslate"><code class="notranslate">/t/m/h/src (master|…) $ rustc lib.rs
lib.rs:18:36: 18:37 warning: unused variable: `f`, #[warn(unused_variables)] on by default
lib.rs:18 pub fn matches<F: Fn()>(&self, f: &F) {
^
thread 'rustc' has overflowed its stack
fish: Job 1, 'rustc lib.rs ' terminated by signal SIGILL (Illegal instruction)
</code></pre></div>
<p dir="auto">This might be a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54847405" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21410" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21410/hovercard" href="https://github.com/rust-lang/rust/issues/21410">#21410</a></p> | 0 |
<p dir="auto">Bug Report<br>
Which version of ShardingSphere did you use?<br>
4.1.1</p>
<p dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?<br>
ShardingSphere-proxy</p>
<p dir="auto">Expected behavior<br>
connection<br>
my yaml<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67138442/85101000-fe6f3a80-b233-11ea-8c24-9b2b92896d49.png"><img src="https://user-images.githubusercontent.com/67138442/85101000-fe6f3a80-b233-11ea-8c24-9b2b92896d49.png" alt="image" style="max-width: 100%;"></a></p> | <h2 dir="auto">Bug Report</h2>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">Faced an issue upgrading from 3.1.0 to 4.0.1</p>
<h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3>
<p dir="auto">sharding-jdbc-core<br>
<a href="https://mvnrepository.com/artifact/org.apache.shardingsphere/sharding-jdbc-core/4.0.1" rel="nofollow">https://mvnrepository.com/artifact/org.apache.shardingsphere/sharding-jdbc-core/4.0.1</a></p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Insert query needs to run as usual</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Getting <code class="notranslate">java.sql.SQLException: No value specified for parameter 1</code></p>
<h3 dir="auto">Reason analyze (If you can)</h3>
<p dir="auto">Please notice in the below log fragment, the <code class="notranslate">insertValueContexts</code> is empty. Also, in the logic and actual sql, all the columns mentioned in <code class="notranslate">columnNames</code> in SQLContext are not present. This is what is causing the error as per my understanding.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Logic SQL: insert into sample_table (client, create_date, source, key_string, ticket_id) values (?, ?, ?, ?, ?)
SQLStatement: InsertSQLStatementContext(super=CommonSQLStatementContext(sqlStatement=org.apache.shardingsphere.sql.parser.sql.statement.dml.InsertStatement@3b8923ff, tablesContext=TablesContext(tables=[Table(name= sample_table, alias=Optional.absent())], schema=Optional.absent())), columnNames=[id, client, ticket_id, source, key_string, source_id, create_date, update_date], insertValueContexts=[])
Actual SQL: shard-1 ::: insert into sample_table (client, create_date, source, key_string, ticket_id) values (?, ?, ?, ?, ?)"><pre class="notranslate"><code class="notranslate">Logic SQL: insert into sample_table (client, create_date, source, key_string, ticket_id) values (?, ?, ?, ?, ?)
SQLStatement: InsertSQLStatementContext(super=CommonSQLStatementContext(sqlStatement=org.apache.shardingsphere.sql.parser.sql.statement.dml.InsertStatement@3b8923ff, tablesContext=TablesContext(tables=[Table(name= sample_table, alias=Optional.absent())], schema=Optional.absent())), columnNames=[id, client, ticket_id, source, key_string, source_id, create_date, update_date], insertValueContexts=[])
Actual SQL: shard-1 ::: insert into sample_table (client, create_date, source, key_string, ticket_id) values (?, ?, ?, ?, ?)
</code></pre></div>
<h3 dir="auto">Proposed fix</h3>
<p dir="auto">The above error gets fixed if I rename column <code class="notranslate">source</code> to something else. I tried <code class="notranslate">option_source</code> and it worked.<br>
Can <code class="notranslate">source</code> column name be supported please</p> | 0 |
<p dir="auto">by <strong>brharrington</strong>:</p>
<pre class="notranslate">Not sure if this is the correct place to raise the issue or not. One annoyance I found
while looking at Go is that every page on golang.org has the same title. This is really
annoying for using the reference documentation with numerous tabs for different packages
open as it is hard to know which tab is for the package I want. It would be useful if
the titles reflected the content of the page.</pre> | <pre class="notranslate">What does 'go version' print?
$ go version
go version go1.2 linux/amd64</pre> | 0 |
<p dir="auto">Describe what you were doing when the bug occurred:</p>
<ol dir="auto">
<li>fetching data from gh api</li>
<li>trying to append pictures to a slider ;p</li>
<li>happily hacking</li>
</ol>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.9.0-75726fadfd</p>
<p dir="auto">Call stack: at store_Store.getElementAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21068:35)<br>
at store_Store.getElementIDAtIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21084:26)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28520:63<br>
at List.render (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22776:18)<br>
at wi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13590:76)<br>
at vi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13581:10)<br>
at nk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16165:86)<br>
at mk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15541:11)<br>
at lk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15533:23)<br>
at dk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15517:5)</p>
<p dir="auto">Component stack: at List (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:22471:30)<br>
at div<br>
at AutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:3006:5)<br>
at div<br>
at div<br>
at Tree_Tree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28271:47)<br>
at div<br>
at div<br>
at InspectedElementContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28763:3)<br>
at OwnersListContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:27400:3)<br>
at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28048:3)<br>
at Components_Components (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:33225:52)<br>
at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29061:5)<br>
at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29178:32)<br>
at div<br>
at div<br>
at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32776:3)<br>
at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24164:3)<br>
at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24653:3)<br>
at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29246:3)<br>
at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36049:3)</p> | <p dir="auto">If you use CSS to set the height of the react app container to 100% (and the other containing containers as well), then you will get the error "Warning: unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering" outputted to your developer console after you continue from a breakpoint.</p>
<p dir="auto">I've got a very simple testcase. This is the create-react-app example, with only the following CSS added:</p>
<p dir="auto">html {<br>
height: 100%;<br>
}</p>
<p dir="auto">#root {<br>
height: 100%;<br>
}</p>
<p dir="auto">.App {<br>
height: 100%;<br>
}</p>
<p dir="auto">React version: 17.0.1<br>
React DOM version: 17.0.1</p>
<p dir="auto">Repros in Chrome (89.0.4389.72) and Edge (88.0.705.81)</p>
<h2 dir="auto">Steps To Reproduce</h2>
<ol dir="auto">
<li>download and unzip <a href="https://github.com/facebook/react/files/6072375/hello-world.zip">hello-world.zip</a> (or create a new app from scratch and add the above CSS to index.css)</li>
<li>in the folder created above, run "npm install"</li>
<li>run "npm start"</li>
<li>Open a web browser to the specified location serving the page.</li>
<li>Open developer tools, and set a breakpoint somewhere inside of app.js (you can alternatively add a "debugger" statement inside of your app.js)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1451620/109728370-0aade480-7b84-11eb-8f6c-ad7ca3c4a4bf.png"><img src="https://user-images.githubusercontent.com/1451620/109728370-0aade480-7b84-11eb-8f6c-ad7ca3c4a4bf.png" alt="image" style="max-width: 100%;"></a></li>
<li>restart the browser, and after hitting the breakpoint, hit continue</li>
<li>Check the console and observe the error output.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1451620/109728430-24e7c280-7b84-11eb-92e7-97a170a575d9.png"><img src="https://user-images.githubusercontent.com/1451620/109728430-24e7c280-7b84-11eb-92e7-97a170a575d9.png" alt="image" style="max-width: 100%;"></a></li>
</ol>
<p dir="auto">There are no dependencies other than react for this repro.</p>
<p dir="auto">Link to code example:<br>
<a href="https://github.com/facebook/react/files/6072375/hello-world.zip">hello-world.zip</a></p>
<h2 dir="auto">The current behavior</h2>
<p dir="auto">Console outputs error whenever a breakpoint is hit, only when CSS has app container sized at 100%</p>
<h2 dir="auto">The expected behavior</h2>
<p dir="auto">Console should not output error noise regardless of sizing of app container</p> | 0 |
<p dir="auto">Apache Airflow version</p>
<p dir="auto"><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/airflow/commit/6f8c204b21d6c01a192bda524db72517d41bf6e9/hovercard" href="https://github.com/apache/airflow/commit/6f8c204b21d6c01a192bda524db72517d41bf6e9"><tt>6f8c204</tt></a></p>
<p dir="auto">Environment</p>
<p dir="auto">OS (e.g. from /etc/os-release): Mac OS 11.3<br>
Kernel: Darwin Kernel Version 20.4.0<br>
Install tools: pip install -e .</p>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">Tried to import valid connection json via the cli. Got an error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="❯ echo '{"sqlite_conn_id": {
"conn_type": "sqlite",
"description": "",
"host": "localhost",
"login": "",
"password": null,
"schema": "/usr/local/airflow/test.db",
"port": null,
"extra": ""
}}' | jq . > connections.json
❯ airflow connections import connections.json
Traceback (most recent call last):
File "/Users/matt/src/airflow/venv/bin/airflow", line 33, in <module>
sys.exit(load_entry_point('apache-airflow', 'console_scripts', 'airflow')())
File "/Users/matt/src/airflow/airflow/__main__.py", line 40, in main
args.func(args)
File "/Users/matt/src/airflow/airflow/cli/cli_parser.py", line 48, in command
return func(*args, **kwargs)
File "/Users/matt/src/airflow/airflow/utils/cli.py", line 91, in wrapper
return f(*args, **kwargs)
File "/Users/matt/src/airflow/airflow/cli/commands/connection_command.py", line 244, in connections_import
_import_helper(args.file)
File "/Users/matt/src/airflow/airflow/cli/commands/connection_command.py", line 272, in _import_helper
key: value for key, value in conn_values.items() if key in allowed_fields
AttributeError: 'Connection' object has no attribute 'items'"><pre class="notranslate"><code class="notranslate">❯ echo '{"sqlite_conn_id": {
"conn_type": "sqlite",
"description": "",
"host": "localhost",
"login": "",
"password": null,
"schema": "/usr/local/airflow/test.db",
"port": null,
"extra": ""
}}' | jq . > connections.json
❯ airflow connections import connections.json
Traceback (most recent call last):
File "/Users/matt/src/airflow/venv/bin/airflow", line 33, in <module>
sys.exit(load_entry_point('apache-airflow', 'console_scripts', 'airflow')())
File "/Users/matt/src/airflow/airflow/__main__.py", line 40, in main
args.func(args)
File "/Users/matt/src/airflow/airflow/cli/cli_parser.py", line 48, in command
return func(*args, **kwargs)
File "/Users/matt/src/airflow/airflow/utils/cli.py", line 91, in wrapper
return f(*args, **kwargs)
File "/Users/matt/src/airflow/airflow/cli/commands/connection_command.py", line 244, in connections_import
_import_helper(args.file)
File "/Users/matt/src/airflow/airflow/cli/commands/connection_command.py", line 272, in _import_helper
key: value for key, value in conn_values.items() if key in allowed_fields
AttributeError: 'Connection' object has no attribute 'items'
</code></pre></div>
<p dir="auto">Several of the tests assume that <code class="notranslate">load_connections_dict</code> returns a dict of dicts<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/apache/airflow/blob/6f8c204b21d6c01a192bda524db72517d41bf6e9/tests/cli/commands/test_connection_command.py#L790">airflow/tests/cli/commands/test_connection_command.py</a>
</p>
<p class="mb-0 color-fg-muted">
Line 790
in
<a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/6f8c204b21d6c01a192bda524db72517d41bf6e9">6f8c204</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="L790" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="790"></td>
<td id="LC790" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"># We're not testing the behavior of load_connections_dict, assume successfully reads JSON, YAML or env</span> </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">Actually, <code class="notranslate">load_connections_dict</code> returns a dict of <code class="notranslate">Connection</code>s<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/apache/airflow/blob/6f8c204b21d6c01a192bda524db72517d41bf6e9/airflow/secrets/local_filesystem.py#L278">airflow/airflow/secrets/local_filesystem.py</a>
</p>
<p class="mb-0 color-fg-muted">
Line 278
in
<a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/6f8c204b21d6c01a192bda524db72517d41bf6e9">6f8c204</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="L278" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="278"></td>
<td id="LC278" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">connection_by_conn_id</span>[<span class="pl-s1">key</span>] <span class="pl-c1">=</span> <span class="pl-en">_create_connection</span>(<span class="pl-s1">key</span>, <span class="pl-s1">secret_values</span>) </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">When we call <code class="notranslate">.items()</code> on the <code class="notranslate">Connection</code>, it fails.</p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">The import is sucessful.</p>
<p dir="auto"><strong>How to reproduce it</strong>:</p>
<p dir="auto">See commands above.</p>
<p dir="auto"><strong>Anything else we need to know</strong>:</p>
<p dir="auto">This commit fixes it (I think): <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/MatrixManAtYrService/airflow/commit/51590596f96f079f166d6949a520c1b0a53f475a/hovercard" href="https://github.com/MatrixManAtYrService/airflow/commit/51590596f96f079f166d6949a520c1b0a53f475a">MatrixManAtYrService@<tt>5159059</tt></a></p>
<p dir="auto">I started making a PR, but while trying to make the tests pass I started to worry that I was on the wrong path, so I made an issue instead.</p> | <p dir="auto"><strong>Apache Airflow version</strong>: 1.10.10</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>:</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): centos 7.5</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):Linux prod-auto-ops001 3.10.0-1062.4.1.el7.x86_64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="69689814" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/1" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/1/hovercard" href="https://github.com/apache/airflow/pull/1">#1</a> SMP Fri Oct 18 17:15:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux</li>
<li><strong>Install tools</strong>: pip</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">I have two environments, one is development, another is production. They uses CeleryExecutor and redis for broker, mysql for result backend and the airflow db. The only difference is production env got two worker.</p>
<p dir="auto">I passed the params, max_active_runs in my dag defination , eg:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dag = DAG(
dag_id='test_max_active_runs',
default_args=default_args,
schedule_interval=None,
start_date=airflow.utils.dates.days_ago(1),
max_active_runs=1
)"><pre class="notranslate"><code class="notranslate">dag = DAG(
dag_id='test_max_active_runs',
default_args=default_args,
schedule_interval=None,
start_date=airflow.utils.dates.days_ago(1),
max_active_runs=1
)
</code></pre></div>
<p dir="auto">In the dev env, when the task is scheduled, the dashboard will show 1/1 active dag runs in red color, while nothing happens in the production env.</p>
<p dir="auto">May I suppose that the setting max_active_runs is not working in my production env?</p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">It should be exactly the same in the production env comparison to the dev env.</p>
<p dir="auto"><strong>How to reproduce it</strong>:<br>
Let me know if you need further information</p> | 0 |
<p dir="auto">I haven't found a duplicate issue, only this post <a href="https://groups.google.com/forum/#!searchin/reactjs/render$20multiple/reactjs/pHNJe8trFOg/J-zd4jxAkJ4J" rel="nofollow">https://groups.google.com/forum/#!searchin/reactjs/render$20multiple/reactjs/pHNJe8trFOg/J-zd4jxAkJ4J</a></p>
<p dir="auto">I have a valid use case and like to share it.</p>
<p dir="auto">I'm building a framework for storytelling based on react. Every single element is positioned fixed as I've written a custom layout engine and need full control over everything. My entry level structure looks something like this</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<Story>
<Grid />
<UI />
</Story>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">Story</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">Grid</span> />
<span class="pl-kos"><</span><span class="pl-ent">UI</span> />
<span class="pl-kos"></</span><span class="pl-ent">Story</span><span class="pl-kos">></span></pre></div>
<p dir="auto"><code class="notranslate"><Grid></code> renders all the actual items (<code class="notranslate"><GridItem></code>) of the story (text, images, videos, etc.). <code class="notranslate"><UI /></code> renders UI elements that are common to every story. For example a <code class="notranslate"><VolumeControl></code> for controling the volume of audio/video items.</p>
<p dir="auto">If I'd render the structure as given above, this would be the result</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div>
<div>
<!--list of GridItems-->
</div>
<div>
<!--list of UI components-->
</div>
</div>"><pre class="notranslate"><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-c"><!--list of GridItems--></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-c"><!--list of UI components--></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">Since everything is positioned fixed, this does not work. The UI layer covers everything, making it unusable (e.g. can't click on videos). That's why I'm currently forced to do the following in the <code class="notranslate">render</code> method of <code class="notranslate">Story</code></p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div>
<Grid />
<VolumeControl />
<Navigation />
<ShareButtons />
</div>"><pre class="notranslate"><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">Grid</span> />
<span class="pl-kos"><</span><span class="pl-ent">VolumeControl</span> />
<span class="pl-kos"><</span><span class="pl-ent">Navigation</span> />
<span class="pl-kos"><</span><span class="pl-ent">ShareButtons</span> />
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
<p dir="auto">This works but is ugly as I lose separation. I don't want the <code class="notranslate">Story</code> component to have to know about every UI component. Sth. like a virtual <code class="notranslate"><Fragment></code> component that renders it's children without a wrapper element would solve the problem as I could return it from the <code class="notranslate"><UI></code> component.</p>
<p dir="auto">I know this is a rare use-case, I'm rather talented at reaching the edge cases of every framework I touch.</p>
<p dir="auto">Funny how writing down these things sometimes magically makes your brain do useful stuff. I found another workaround. I'm using <code class="notranslate">visiblity:none</code> on the UI layer and <code class="notranslate">visibility:visible</code> on the UI components. But it's a hack, nothing more.</p> | <hr>
<h2 dir="auto">Note from maintainers:</h2>
<p dir="auto">We know this is an issue and we know exactly what set of problem can be solved. We want this too but it is a <em>hard problem</em> with our current architecture. Additional comments expressing desire for this feature are not helpful. Feel free to subscribe to the issue (there's button in the right hand column) but do not comment unless you are adding value to the discussion. "Me too" and "+1" are not valuable, nor are use cases that have already been written in the comments (e.g., we know that you can't put <code class="notranslate"><tr></code> or <code class="notranslate"><dd></code> elements with a <code class="notranslate"><div></code>).</p>
<hr>
<p dir="auto">Consider the following:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var ManagePost = React.createClass({
render: function() {
var posts = this.props.posts
var something;
var somethingelse;
var row = posts.map(function(post){
return(
<div>
<div className="col-md-8">
</div>
<div className="cold-md-4">
</div>
</div>
)
});
return (
{row}
);
}
});"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">ManagePost</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-en">render</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">posts</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">posts</span>
<span class="pl-k">var</span> <span class="pl-s1">something</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">somethingelse</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">row</span> <span class="pl-c1">=</span> <span class="pl-s1">posts</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">post</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-k">return</span><span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">className</span><span class="pl-c1">=</span><span class="pl-s">"col-md-8"</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">className</span><span class="pl-c1">=</span><span class="pl-s">"cold-md-4"</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-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span>
<span class="pl-kos">{</span>row<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">If you remove the <code class="notranslate"><div></div></code> in the <code class="notranslate">map</code>, you get the following error: <em>Adjacent XJS elements must be wrapped in an enclosing tag</em></p>
<p dir="auto">it isn't till I re-add the surrounding, and rather pointless, divs that it compiles with out issue. I am running <strong>0.11.1</strong></p>
<p dir="auto">Is this being addressed? It adds extra, and again - IMO - useless and pointless html to the page, that while harming nothing - looks messy and unprofessional. Maybe I am just doing something wrong, please enlighten me if I am.</p> | 1 |
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="155666520" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/5602" data-hovercard-type="pull_request" data-hovercard-url="/electron/electron/pull/5602/hovercard" href="https://github.com/electron/electron/pull/5602">#5602</a> switched to static Visual C++ runtime, but there are issues with that:</p>
<ul dir="auto">
<li>The runtime is unnecessarily duplicated in <code class="notranslate">node.dll</code> and <code class="notranslate">electron.exe</code>.</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178240711" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/7281" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/7281/hovercard" href="https://github.com/electron/electron/issues/7281">#7281</a> reports that Electron-wide native exception handling is broken because exception handlers are applied per runtime instance.</li>
<li><code class="notranslate">node.dll</code> exports some symbols of the runtime, and when a native node module uses the dynamic runtime, it can mistakenly bind to those symbols instead of the ones from <code class="notranslate">msvcp140</code> and friends. This ends up causing crashes when an object is initialized using one instance of the runtime and destroyed using the other instance.</li>
<li>Wrapper functions had to be <a href="https://github.com/electron/electron/pull/5602/commits/e609a5bee290eb32d99278e9863ea48d77792a46">introduced</a> to make even Electron itself run correctly with the statically linked runtime.</li>
</ul>
<p dir="auto">The reason why it was decided to link the runtime statically was to "remove" a dependency on the Universal CRT (UCRT). That argument is weak, because the dependency is not actually removed, but merely UCRT is also statically linked and duplicated. Therefore the real argument is to not have to redistribute the UCRT binaries for non-updated Windows 7 systems and that is not a strong enough reason to justify the above problems.</p>
<p dir="auto">So I am suggesting we move back to linking the VC runtime dynamically and redistribute it together with UCRT. I will prepare and submit a PR in the coming days.</p> | <p dir="auto">for some reason, the will-navigate event handler does not fire from the renderer process, i have only tested for the will-navigate event listener, am not sure if this is the behaviour of other webContents event listeners</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">the webContents will-navigate event handler should fire and prevent the window from navigating</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">the webContents will-navigate event does not fire, instead the window navigates</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">main.js</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { BrowserWindow, app } = require("electron");
app.on("ready", () => {
let win = new BrowserWindow({});
win.on("close", () => {
win = null;
app.quit();
});
win.webContents.openDevTools({
mode: "detached"
});
win.loadURL(`file://${__dirname}/index.html`);
});"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> BrowserWindow<span class="pl-kos">,</span> app <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"electron"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">"ready"</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-k">let</span> <span class="pl-s1">win</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">"close"</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s1">win</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">quit</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">openDevTools</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">mode</span>: <span class="pl-s">"detached"</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">loadURL</span><span class="pl-kos">(</span><span class="pl-s">`file://<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">__dirname</span><span class="pl-kos">}</span></span>/index.html`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">index.html</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<!doctype html>
<html>
<head>
<title> Webcontents from renderer proces </title>
</head>
<body>
<p> Drag and Drop Something Here</p>
<script>
const { remote: { getCurrentWindow } } = require("electron");
const webContents = getCurrentWindow().webContents;
console.log(webContents);
webContents.on("will-navigate", (evt,filePath) => {
evt.preventDefault();
console.log(filePath);
});
</script>
</body>
</html>
"><pre class="notranslate"><span class="pl-c1"><!doctype html<span class="pl-kos">></span></span>
<span class="pl-kos"><</span><span class="pl-ent">html</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">head</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">title</span><span class="pl-kos">></span> Webcontents from renderer proces <span class="pl-kos"></</span><span class="pl-ent">title</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">head</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">body</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span> Drag and Drop Something Here<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">script</span><span class="pl-kos">></span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> <span class="pl-c1">remote</span>: <span class="pl-kos">{</span> getCurrentWindow <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"electron"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">webContents</span> <span class="pl-c1">=</span> <span class="pl-en">getCurrentWindow</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">webContents</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">webContents</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">webContents</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">"will-navigate"</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">evt</span><span class="pl-kos">,</span><span class="pl-s1">filePath</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s1">evt</span><span class="pl-kos">.</span><span class="pl-en">preventDefault</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">filePath</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos"></</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">body</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">html</span><span class="pl-kos">></span></pre></div>
<ul dir="auto">
<li>Electron version: 1.7.11</li>
<li>Operating system: Gnu/Linux</li>
</ul> | 0 |
<p dir="auto">As reported in <a href="https://blog.discordapp.com/lessons-from-migrating-a-large-codebase-to-react-16-e60e49102aa6" rel="nofollow">https://blog.discordapp.com/lessons-from-migrating-a-large-codebase-to-react-16-e60e49102aa6</a>, it could've been clearer.</p> | <p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong> bug</p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">The following piece of code breaks the rules of hooks:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {useState} from 'react';
const MyComponent = () => {
const [foo, setFoo] = useState ();
if ( !foo ) return;
const [bar, setBar] = useState ();
return null;
};"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-s1">useState</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-smi">MyComponent</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">foo</span><span class="pl-kos">,</span> <span class="pl-s1">setFoo</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</span> <span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span> <span class="pl-c1">!</span><span class="pl-s1">foo</span> <span class="pl-kos">)</span> <span class="pl-k">return</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">bar</span><span class="pl-kos">,</span> <span class="pl-s1">setBar</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-en">useState</span> <span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-c1">null</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The lint rule reports:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render. Did you accidentally call a React Hook after an early return?"><pre class="notranslate"><code class="notranslate">React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render. Did you accidentally call a React Hook after an early return?
</code></pre></div>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">My understanding is that for hooks to work they need to be called always in the same order, otherwise returned values can't be properly mapped to function calls.</p>
<p dir="auto">In my piece of code the hooks are always called in the same order, but some times we exit early, which is slightly beneficial both for performance and for writing clean code.</p>
<p dir="auto">Shouldn't this just work?</p>
<p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong> v16.8.6</p> | 0 |
<p dir="auto">bower install does not get ./grunt folder.</p>
<p dir="auto">in Gruntfile.js</p>
<p dir="auto">these<br>
var generateGlyphiconsData = require('./docs/grunt/bs-glyphicons-data-generator.js');<br>
var BsLessdocParser = require('./docs/grunt/bs-lessdoc-parser.js');<br>
var generateRawFilesJs = require('./docs/grunt/bs-raw-files-generator.js');</p>
<p dir="auto">should be<br>
var generateGlyphiconsData = require('./grunt/bs-glyphicons-data-generator.js');<br>
var BsLessdocParser = require('./grunt/bs-lessdoc-parser.js');<br>
var generateRawFilesJs = require('./grunt/bs-raw-files-generator.js');</p> | <p dir="auto">Apologies if this has already been reported, I looked but didn't see anything about this issue specifically (unless it's related in some way to the comments in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26739136" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/12504" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/12504/hovercard" href="https://github.com/twbs/bootstrap/pull/12504">#12504</a>?)..</p>
<p dir="auto">The <code class="notranslate">bower.json</code> <a href="https://github.com/twbs/bootstrap/blob/master/bower.json#L18">line 18</a> excludes the <code class="notranslate">docs</code> folder, while <code class="notranslate">Gruntfile.js</code> <a href="https://github.com/twbs/bootstrap/blob/master/Gruntfile.js#L20">lines 20</a>-22 try to load files from the (now missing) docs folder and the build fails.</p>
<p dir="auto">I'm busy cloning the main repo into another folder to copy over the missing files, but surely if these are required to build the <code class="notranslate">.less</code> files, then they should be moved to a folder that isn't excluded?</p>
<p dir="auto"><em>Edit:</em> Just to confirm, after copying the <code class="notranslate">docs/</code> folder into my project's <code class="notranslate">bower_components/bootstrap/</code> folder, the grunt build worked perfectly.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/react</code> package and had problems.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond.
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/johnnyreilly/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/johnnyreilly">@johnnyreilly</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbenezech/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbenezech">@bbenezech</a>, ...</li>
</ul>
</li>
</ul>
<p dir="auto">With current typings it is not possible to create a stateless component which returns a string, number, boolean... (new in React 16)</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React from 'react'
const TestString = () => {
return 'Test String Component'
}
const Component = () => (
<div>
<TestString/>
</div>
)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-smi">React</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span>
<span class="pl-k">const</span> <span class="pl-smi">TestString</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s">'Test String Component'</span>
<span class="pl-kos">}</span>
<span class="pl-k">const</span> <span class="pl-smi">Component</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-kos"><</span><span class="pl-smi">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-smi">TestString</span><span class="pl-c1">/</span><span class="pl-kos">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-smi">div</span><span class="pl-c1">></span>
<span class="pl-kos">)</span></pre></div>
<p dir="auto">Error I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="JSX element type 'string' is not a constructor function for JSX elements."><pre class="notranslate"><code class="notranslate">JSX element type 'string' is not a constructor function for JSX elements.
</code></pre></div>
<p dir="auto">The first problem is that currently in the typings a stateless component cannot return anything else besides an instance of a <code class="notranslate">React.Element</code>. This should be changed to (I think, I've based it upon the changes on the <code class="notranslate">render</code>method, see <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L422">https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L422</a>)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="interface StatelessComponent<P = {}> {
(props: P & { children?: ReactNode }, context?: any): ReactElement<any> | Array<ReactElement<any>> | string | number | null;
propTypes?: ValidationMap<P>;
contextTypes?: ValidationMap<any>;
defaultProps?: Partial<P>;
displayName?: string;
}"><pre class="notranslate"><code class="notranslate">interface StatelessComponent<P = {}> {
(props: P & { children?: ReactNode }, context?: any): ReactElement<any> | Array<ReactElement<any>> | string | number | null;
propTypes?: ValidationMap<P>;
contextTypes?: ValidationMap<any>;
defaultProps?: Partial<P>;
displayName?: string;
}
</code></pre></div>
<p dir="auto">Second problem is that behind the scenes the compiler will convert the jsx to `React.createElement('Test String Component', null)``</p>
<p dir="auto">I get a compiler error that is saying that this is not a valid value. Seems that it has to be one of the values specified in following list: <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L3465">https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L3465</a>.</p>
<p dir="auto">Any thoughts on how this can be fixed?</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/xxxx</code> package and had problems.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have a question that is inappropriate for <a href="https://stackoverflow.com/" rel="nofollow">StackOverflow</a>. (Please ask any appropriate questions there).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/blog/821-mention-somebody-they-re-notified">Mention</a> the authors (see <code class="notranslate">Definitions by:</code> in <code class="notranslate">index.d.ts</code>) so they can respond.
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gaspard/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gaspard">@gaspard</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vbfox/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vbfox">@vbfox</a></li>
</ul>
</li>
</ul>
<p dir="auto">As mentioned in <a href="https://facebook.github.io/react/docs/conditional-rendering.html#inline-if-with-logical--operator" rel="nofollow">React documentation</a>, a stateless component can return <code class="notranslate">false</code> for empty content. Currently <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L312-L313">StatelessComponent</a> is defined as:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface StatelessComponent<P = {}> {
(props: P & { children?: ReactNode }, context?: any): ReactElement<any> | null;"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">StatelessComponent</span><span class="pl-c1"><</span><span class="pl-smi">P</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-kos">(</span><span class="pl-s1">props</span>: <span class="pl-smi">P</span> <span class="pl-c1">&</span> <span class="pl-kos">{</span> <span class="pl-c1">children</span>?: <span class="pl-smi">ReactNode</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-s1">context</span>?: <span class="pl-smi">any</span><span class="pl-kos">)</span>: <span class="pl-smi">ReactElement</span><span class="pl-kos"><</span><span class="pl-smi">any</span><span class="pl-kos">></span> <span class="pl-c1">|</span> <span class="pl-c1">null</span><span class="pl-kos">;</span><span class="pl-kos"></span></pre></div>
<p dir="auto">whereas <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L270-L280">Component</a> has</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Component<P, S> {
constructor(props?: P, context?: any);
// ...snip...
render(): JSX.Element | null | false;"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Component</span><span class="pl-c1"><</span><span class="pl-smi">P</span><span class="pl-kos">,</span> <span class="pl-smi">S</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-c1">constructor</span><span class="pl-kos">(</span><span class="pl-s1">props</span>?: <span class="pl-smi">P</span><span class="pl-kos">,</span> <span class="pl-s1">context</span>?: <span class="pl-smi">any</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// ...snip...</span>
<span class="pl-c1">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">JSX</span><span class="pl-kos">.</span><span class="pl-smi">Element</span> <span class="pl-c1">|</span> <span class="pl-c1">null</span> <span class="pl-c1">|</span> <span class="pl-c1">false</span><span class="pl-kos">;</span><span class="pl-kos"></span></pre></div>
<p dir="auto">Shouldn't these types be the same (including eliminating the ReactElement vs JSX.Element difference)? And to avoid future such issues (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="201343233" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14064" data-hovercard-type="issue" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/issues/14064/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14064">#14064</a>, this one) it should probably be a named type, e.g. RenderResult.</p>
<p dir="auto">A search for <code class="notranslate">| null</code> also comes up with <code class="notranslate">ComponentSpec.render</code> which probably should also have the same result type.</p> | 1 |
<p dir="auto">I am getting the following</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR in ./src/main.jsx
Module build failed: SyntaxError: /Users/sam/src/main.jsx: 'this' is not allowed before super() (This is an error on an internal node. Probably an internal error)
at File.buildCodeFrameError (/Users/sam/node_modules/@apple/reviz-dev/node_modules/babel-core/lib/transformation/file/index.js:408:15)
at NodePath.buildCodeFrameError (/Users/sam/node_modules/@apple/reviz-dev/node_modules/babel-core/node_modules/babel-traverse/lib/path/index.js:143:26)
at ThisExpression (/Users/sam/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-classes/lib/vanilla.js:73:20)"><pre class="notranslate"><code class="notranslate">ERROR in ./src/main.jsx
Module build failed: SyntaxError: /Users/sam/src/main.jsx: 'this' is not allowed before super() (This is an error on an internal node. Probably an internal error)
at File.buildCodeFrameError (/Users/sam/node_modules/@apple/reviz-dev/node_modules/babel-core/lib/transformation/file/index.js:408:15)
at NodePath.buildCodeFrameError (/Users/sam/node_modules/@apple/reviz-dev/node_modules/babel-core/node_modules/babel-traverse/lib/path/index.js:143:26)
at ThisExpression (/Users/sam/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-classes/lib/vanilla.js:73:20)
</code></pre></div>
<p dir="auto">When I try to compile the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from 'react';
import ReactDOM from 'react-dom';
class Main extends React.Component {
constructor() {
super();
this.state = {};
}
myHandler = () => {
this.setState({newState: true});
};
render() {
return (
<div></div>
);
}
}"><pre class="notranslate"><code class="notranslate">import React from 'react';
import ReactDOM from 'react-dom';
class Main extends React.Component {
constructor() {
super();
this.state = {};
}
myHandler = () => {
this.setState({newState: true});
};
render() {
return (
<div></div>
);
}
}
</code></pre></div>
<p dir="auto">It is only failing when I include <code class="notranslate">this</code> inside the myHandler function. There have been several issues similar to this, I had hoped this would resolve when <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115945153" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/2942" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/2942/hovercard" href="https://github.com/babel/babel/issues/2942">#2942</a> was closed, but I'm still seeing it in the latest 6.1.19.</p>
<p dir="auto">My babel settings look like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" loader: 'babel-loader',
query: {
presets: ['es2015', 'stage-0', 'react']
}"><pre class="notranslate"><code class="notranslate"> loader: 'babel-loader',
query: {
presets: ['es2015', 'stage-0', 'react']
}
</code></pre></div> | <p dir="auto"><strong>Input:</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyClass extends ParentClass {
property = foo;
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">MyClass</span> <span class="pl-k">extends</span> <span class="pl-v">ParentClass</span> <span class="pl-kos">{</span>
<span class="pl-c1">property</span> <span class="pl-c1">=</span> <span class="pl-s1">foo</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Error:</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SyntaxError: index.js: 'super.*' is not allowed before super() (This is an error on an internal node. Probably an internal error)
undefined"><pre class="notranslate"><span class="pl-v">SyntaxError</span>: <span class="pl-s1">index</span><span class="pl-kos">.</span><span class="pl-c1">js</span>: '<span class="pl-smi">super</span><span class="pl-kos">.</span><span class="pl-c1">*</span>' is not allowed before super() (This is an error on an internal node. Probably an internal error)
undefined</pre></div>
<p dir="auto"><strong>Notes:</strong></p>
<ul dir="auto">
<li>Doesn't happen with <code class="notranslate">constructor() { super() }</code></li>
<li>Needs <code class="notranslate">ParentClass</code> to occur</li>
<li>Doesn't matter what the value of the class property is.</li>
</ul>
<p dir="auto">Example repo: <a href="https://github.com/thejameskyle/__babel-bug-2942">https://github.com/thejameskyle/__babel-bug-2942</a></p> | 1 |
<p dir="auto"><strong>TypeScript Version:</strong><br>
1.8.4</p>
<p dir="auto"><strong>Visual Studio Version:</strong><br>
Community 2015 CTP 14.0.25008.00</p>
<p dir="auto">Everything was working fine using TypeScript 1.8.1 beta. After installing 1.8.4 last night, the editor no longer works. Typing does nothing. The onlys keys it responds to are enter, delete, backspace. The three drop-down lists at the top of the editor that let you jump to certain parts of your code are all blank.</p>
<p dir="auto">I've tried all of the following with no luck.</p>
<ul dir="auto">
<li>Repair/uninstall Visual Studio and TypeScript</li>
<li>Disable extensions</li>
<li>Uninstall ReSharper</li>
<li>Clear MEF component cache</li>
<li>Update <a href="https://social.msdn.microsoft.com/Forums/vstudio/en-US/e011bc08-8b1d-4a2a-99d6-a167da922145/visual-studio-2015-update-1-fails-to-update-devenvexeconfig-plus-fix?forum=vssetup" rel="nofollow">devenv.exe.config</a></li>
</ul>
<p dir="auto">I also can't seem to stop Visual Studio from updating to the CTP when I reinstall. I started getting a lot of JavaScript language service crashes after installing the CTP. Viewing a compiled TS file would cause JavaScript to stop working.</p> | <p dir="auto">Another one of these :)</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare module Test {
export type Container<T> = T | {
[i: string]: Container<T>;
};
export type IStringContainer = Container<string>;
}"><pre class="notranslate"><span class="pl-k">declare</span> module <span class="pl-smi">Test</span> <span class="pl-kos">{</span>
<span class="pl-k">export</span> <span class="pl-k">type</span> <span class="pl-smi">Container</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-c1">=</span> <span class="pl-smi">T</span> <span class="pl-c1">|</span> <span class="pl-kos">{</span>
<span class="pl-kos">[</span><span class="pl-s1">i</span>: <span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">Container</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">type</span> <span class="pl-smi">IStringContainer</span> <span class="pl-c1">=</span> <span class="pl-smi">Container</span><span class="pl-kos"><</span><span class="pl-smi">string</span><span class="pl-kos">></span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Error in tsc version 1.6.2:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Users\jogol\Desktop\Test>tsc TestFile.d.ts
C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:29825
throw e;
^
RangeError: Maximum call stack size exceeded
at createObjectType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:11093:34)
at instantiateAnonymousType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13789:26)
at instantiateType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13810:25)
at instantiateList (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13666:33)
at instantiateType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13819:41)
at instantiateAnonymousType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13797:42)
at instantiateType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13810:25)
at instantiateList (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13666:33)
at instantiateType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13819:41)
at instantiateAnonymousType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13797:42)"><pre class="notranslate"><code class="notranslate">C:\Users\jogol\Desktop\Test>tsc TestFile.d.ts
C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:29825
throw e;
^
RangeError: Maximum call stack size exceeded
at createObjectType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:11093:34)
at instantiateAnonymousType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13789:26)
at instantiateType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13810:25)
at instantiateList (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13666:33)
at instantiateType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13819:41)
at instantiateAnonymousType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13797:42)
at instantiateType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13810:25)
at instantiateList (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13666:33)
at instantiateType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13819:41)
at instantiateAnonymousType (C:\Users\jogol\AppData\Roaming\npm\node_modules\typescript\lib\tsc.js:13797:42)
</code></pre></div>
<p dir="auto">Seems to be a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="103073127" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4443" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4443/hovercard" href="https://github.com/microsoft/TypeScript/issues/4443">#4443</a>.</p> | 0 |
<p dir="auto">I've installed toastr and sweetalert today. and when I'm about to run it, multiple errors were detected in the jquery part of type declarations. 'Multiple identifiers', 'Duplicate export = '. Kindly let me know if this is valid.</p> | <p dir="auto">Hi all,</p>
<p dir="auto">I installed last version of "@types/express-validator": "^2.20.33" and get this errors on TS compile.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0] 23 export = ExpressValidator;
[0] ~~~~~~~~~~~~~~~~~~~~~~~~~~
[0]
[0] node_modules/@types/express-validator/index.d.ts(23,2): error TS2300: Duplicate identifier 'export='.
[0]
[0]
[0] 37 interface Dictionary<T> { [key: string]: T; }
[0] ~~~~~~~~~~~~~~~~~
[0]
[0] node_modules/@types/express-validator/index.d.ts(37,28): error TS2374: Duplicate string index signature.
[0]
[0]
[0] 24 export = ExpressValidator;
[0] ~~~~~~~~~~~~~~~~~~~~~~~~~~
[0]
[0] node_modules/express-validator/index.d.ts(24,3): error TS2300: Duplicate identifier 'export='.
[0]
[0]
[0] 9 import * as expressValidator from 'express-validator';
[0] ~~~~~~~~~~~~~~~~~~~
[0]
[0] src/backend/app.ts(9,35): error TS2497: Module '"express-validator"' resolves to a non-module entity and cannot be imported using this construct."><pre class="notranslate"><code class="notranslate">0] 23 export = ExpressValidator;
[0] ~~~~~~~~~~~~~~~~~~~~~~~~~~
[0]
[0] node_modules/@types/express-validator/index.d.ts(23,2): error TS2300: Duplicate identifier 'export='.
[0]
[0]
[0] 37 interface Dictionary<T> { [key: string]: T; }
[0] ~~~~~~~~~~~~~~~~~
[0]
[0] node_modules/@types/express-validator/index.d.ts(37,28): error TS2374: Duplicate string index signature.
[0]
[0]
[0] 24 export = ExpressValidator;
[0] ~~~~~~~~~~~~~~~~~~~~~~~~~~
[0]
[0] node_modules/express-validator/index.d.ts(24,3): error TS2300: Duplicate identifier 'export='.
[0]
[0]
[0] 9 import * as expressValidator from 'express-validator';
[0] ~~~~~~~~~~~~~~~~~~~
[0]
[0] src/backend/app.ts(9,35): error TS2497: Module '"express-validator"' resolves to a non-module entity and cannot be imported using this construct.
</code></pre></div>
<p dir="auto">Anyone can help with this definition ?</p>
<p dir="auto">Regards,<br>
Diego</p> | 0 |
<p dir="auto">Context: <a href="https://tour.golang.org/" rel="nofollow">https://tour.golang.org/</a></p>
<p dir="auto">Links in the slides are black, as the text, and it's hard to differentiate them.</p> | <pre class="notranslate">What steps will reproduce the problem?
Running "go test -x -compiler gccgo launchpad.net/juju-core/cmd" fails
intermittently (roughly 50% of the time) with linker errors.
What is the expected output?
ok launchpad.net/juju-core/cmd 1.712s
What do you see instead?
Pages of errors like:
/tmp/go-build183489760/launchpad.net/juju-core/cmd/_test/launchpad.net/juju-core/libcmd.a(cmd.o):(.rodata.__go_tdn_launchpad.net_juju_core_cmd.Command+0x0):
multiple definition of `__go_tdn_launchpad.net_juju_core_cmd.Command'
/home/mwhudson/goplay/pkg/gccgo_linux_amd64/launchpad.net/juju-core/libcmd.a(cmd.o):(.rodata.__go_tdn_launchpad.net_juju_core_cmd.Command+0x0):
first defined here
Which compiler are you using (5g, 6g, 8g, gccgo)?
gccgo (4.8 and tip)
Which operating system are you using?
Linux, Ubuntu Saucy
Which version are you using? (run 'go version')
go version go1.1.2 linux/amd64
(also tip)
Please provide any additional information below.
It seems to be to do with the order of arguments to the link command. I'll dig more
soon.</pre> | 0 |
<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">Use the following code to create tabs for a tab bar:</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Widget _buildTab(String label, Color color) {
return new Container(
color: color,
child: new Flex(
direction: Axis.horizontal,
children: <Widget>[
new Expanded(
child: new Container(
height: 50.0,
child: new Center(
child: new Text(
label,
style: new TextStyle(
color: Colors.black,
fontWeight: FontWeight.bold,
fontSize: 18.0,
),
),
),
),
),
],
),
);
}"><pre class="notranslate"><span class="pl-c1">Widget</span> <span class="pl-en">_buildTab</span>(<span class="pl-c1">String</span> label, <span class="pl-c1">Color</span> color) {
<span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>(
color<span class="pl-k">:</span> color,
child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Flex</span>(
direction<span class="pl-k">:</span> <span class="pl-c1">Axis</span>.horizontal,
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">new</span> <span class="pl-c1">Expanded</span>(
child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>(
height<span class="pl-k">:</span> <span class="pl-c1">50.0</span>,
child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Center</span>(
child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(
label,
style<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">TextStyle</span>(
color<span class="pl-k">:</span> <span class="pl-c1">Colors</span>.black,
fontWeight<span class="pl-k">:</span> <span class="pl-c1">FontWeight</span>.bold,
fontSize<span class="pl-k">:</span> <span class="pl-c1">18.0</span>,
),
),
),
),
),
],
),
);
}</pre></div>
<h2 dir="auto">Description</h2>
<p dir="auto">Currently, line 894 of material/tabs.dart uses the constant padding of <code class="notranslate">kTabLabelPadding</code>. <a href="https://github.com/flutter/flutter/blob/e0956cbdb7565ddef776774cf841f54e13307a9b/packages/flutter/lib/src/material/tabs.dart#L894">Link to source</a>. This applies the padding on the entirety of the tab in a tab bar, meaning it'll apply padding not only to text/images/icons but also containers of solid colors. Currently there's no workaround besides the user fashioning their own tab bar from scratch, which is tedious considering the simpler and more flexible workaround is to give the user control via settable field.</p> | <p dir="auto">The padding between tabs in a Material TabBar is hard-coded, and this makes it hard to achieve some quite reasonable designs.</p>
<p dir="auto">I would like this padding between tabs to be configurable per-TabBar, and not hard-coded in the Flutter libraries.</p>
<p dir="auto">Here's an example. My designer would like to achieve this:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4321921/45377099-7f29ed00-b5f1-11e8-9553-568bc48a2d4f.png"><img src="https://user-images.githubusercontent.com/4321921/45377099-7f29ed00-b5f1-11e8-9553-568bc48a2d4f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I can approach it in Flutter, but I have a problem:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4321921/45377126-8f41cc80-b5f1-11e8-9d08-8ffa4d7edb73.png"><img src="https://user-images.githubusercontent.com/4321921/45377126-8f41cc80-b5f1-11e8-9d08-8ffa4d7edb73.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">The tab heading "MON 22" is too long for the space that is available. Here's why:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4321921/45377152-a8e31400-b5f1-11e8-8709-06c7808211a8.png"><img src="https://user-images.githubusercontent.com/4321921/45377152-a8e31400-b5f1-11e8-8709-06c7808211a8.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">There is padding around each tab:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4321921/45377174-b7313000-b5f1-11e8-994c-26a2486f954d.png"><img src="https://user-images.githubusercontent.com/4321921/45377174-b7313000-b5f1-11e8-994c-26a2486f954d.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">The reason for this is in material/tabs.dart, line 880:</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" @override
Widget build(BuildContext context) {
final MaterialLocalizations localizations = MaterialLocalizations.of(context);
if (_controller.length == 0) {
return new Container(
height: _kTabHeight + widget.indicatorWeight,
);
}
final List<Widget> wrappedTabs = new List<Widget>(widget.tabs.length);
for (int i = 0; i < widget.tabs.length; i += 1) {
wrappedTabs[i] = new Center(
heightFactor: 1.0,
child: new Padding(
padding: kTabLabelPadding,
child: new KeyedSubtree(
key: _tabKeys[i],
child: widget.tabs[i],
),
),
);
}"><pre class="notranslate"> <span class="pl-k">@override</span>
<span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) {
<span class="pl-k">final</span> <span class="pl-c1">MaterialLocalizations</span> localizations <span class="pl-k">=</span> <span class="pl-c1">MaterialLocalizations</span>.<span class="pl-en">of</span>(context);
<span class="pl-k">if</span> (_controller.length <span class="pl-k">==</span> <span class="pl-c1">0</span>) {
<span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">Container</span>(
height<span class="pl-k">:</span> _kTabHeight <span class="pl-k">+</span> widget.indicatorWeight,
);
}
<span class="pl-k">final</span> <span class="pl-c1">List</span><<span class="pl-c1">Widget</span>> wrappedTabs <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">List</span><<span class="pl-c1">Widget</span>>(widget.tabs.length);
<span class="pl-k">for</span> (<span class="pl-c1">int</span> i <span class="pl-k">=</span> <span class="pl-c1">0</span>; i <span class="pl-k"><</span> widget.tabs.length; i <span class="pl-k">+=</span> <span class="pl-c1">1</span>) {
wrappedTabs[i] <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">Center</span>(
heightFactor<span class="pl-k">:</span> <span class="pl-c1">1.0</span>,
child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Padding</span>(
padding<span class="pl-k">:</span> kTabLabelPadding,
child<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">KeyedSubtree</span>(
key<span class="pl-k">:</span> _tabKeys[i],
child<span class="pl-k">:</span> widget.tabs[i],
),
),
);
}</pre></div>
<p dir="auto">Each tab is padded by <code class="notranslate">kTabLabelPadding</code> — which I think is Hungarian for a constant tab label padding.</p>
<p dir="auto">This is defined as:</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// The horizontal padding included by [Tab]s.
const EdgeInsets kTabLabelPadding = EdgeInsets.symmetric(horizontal: 16.0);"><pre class="notranslate"><span class="pl-c">/// The horizontal padding included by <span class="pl-v">[Tab]</span>s.</span>
<span class="pl-c"></span><span class="pl-k">const</span> <span class="pl-c1">EdgeInsets</span> kTabLabelPadding <span class="pl-k">=</span> <span class="pl-c1">EdgeInsets</span>.<span class="pl-en">symmetric</span>(horizontal<span class="pl-k">:</span> <span class="pl-c1">16.0</span>);</pre></div>
<p dir="auto">If I change this to <code class="notranslate">8.0</code> and restart my app, the tab fits:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4321921/45377421-7dacf480-b5f2-11e8-9f66-d7d893ec46cc.png"><img src="https://user-images.githubusercontent.com/4321921/45377421-7dacf480-b5f2-11e8-9f66-d7d893ec46cc.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">My designer is happy</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4321921/45377449-8d2c3d80-b5f2-11e8-9d5a-76f29ae6adf8.png"><img src="https://user-images.githubusercontent.com/4321921/45377449-8d2c3d80-b5f2-11e8-9d5a-76f29ae6adf8.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This is on today's Flutter master channel.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/HansMuller/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/HansMuller">@HansMuller</a> filing this separate issue as requested in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="354034459" data-permission-text="Title is private" data-url="https://github.com/flutter/flutter/issues/21026" data-hovercard-type="issue" data-hovercard-url="/flutter/flutter/issues/21026/hovercard" href="https://github.com/flutter/flutter/issues/21026">#21026</a></p> | 1 |
<p dir="auto">In a sample typescript react project,</p>
<ol dir="auto">
<li>
<p dir="auto">Add test-component-library dependency int package.json =><br>
"dependencies": {<br>
"test-component-library": "git+<a href="https://github.com/anmdsystems/test-component-library.git">https://github.com/anmdsystems/test-component-library.git</a>"</p>
</li>
<li>
<p dir="auto">Add App.tsx => return <Button label="Test"> </Button></p>
</li>
</ol>
<p dir="auto">import React from 'react';<br>
import './App.css';<br>
import { Button } from 'test-component-library';</p>
<p dir="auto">function App() {<br>
return </p>
<p dir="auto">}</p>
<p dir="auto">export default App;</p>
<ol start="3" dir="auto">
<li>Run the sample app, console shows the error message</li>
</ol>
<p dir="auto">Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:</p>
<ol dir="auto">
<li>You might have mismatching versions of React and the renderer (such as React DOM)</li>
<li>You might be breaking the Rules of Hooks</li>
<li>You might have more than one copy of React in the same app<br>
See <a href="https://reactjs.org/link/invalid-hook-call" rel="nofollow">https://reactjs.org/link/invalid-hook-call</a> for tips about how to debug and fix this problem.<br>
printWarning @ react.development.js:209<br>
error @ react.development.js:183<br>
resolveDispatcher @ react.development.js:1592<br>
useState @ react.development.js:1621<br>
Button @ Button.tsx:9<br>
renderWithHooks @ react-dom.development.js:16305<br>
mountIndeterminateComponent @ react-dom.development.js:20074<br>
beginWork @ react-dom.development.js:21587<br>
beginWork$1 @ react-dom.development.js:27426<br>
performUnitOfWork @ react-dom.development.js:26557<br>
workLoopSync @ react-dom.development.js:26466<br>
renderRootSync @ react-dom.development.js:26434<br>
performConcurrentWorkOnRoot @ react-dom.development.js:25738<br>
workLoop @ scheduler.development.js:266<br>
flushWork @ scheduler.development.js:239<br>
performWorkUntilDeadline @ scheduler.development.js:533<br>
react.development.js:209 Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:</li>
<li>You might have mismatching versions of React and the renderer (such as React DOM)</li>
<li>You might be breaking the Rules of Hooks</li>
<li>You might have more than one copy of React in the same app<br>
See <a href="https://reactjs.org/link/invalid-hook-call" rel="nofollow">https://reactjs.org/link/invalid-hook-call</a> for tips about how to debug and fix this problem.<br>
printWarning @ react.development.js:209<br>
error @ react.development.js:183<br>
resolveDispatcher @ react.development.js:1592<br>
useState @ react.development.js:1621<br>
Button @ Button.tsx:9<br>
renderWithHooks @ react-dom.development.js:16305<br>
mountIndeterminateComponent @ react-dom.development.js:20074<br>
beginWork @ react-dom.development.js:21587<br>
callCallback @ react-dom.development.js:4164<br>
invokeGuardedCallbackDev @ react-dom.development.js:4213<br>
invokeGuardedCallback @ react-dom.development.js:4277<br>
beginWork$1 @ react-dom.development.js:27451<br>
performUnitOfWork @ react-dom.development.js:26557<br>
workLoopSync @ react-dom.development.js:26466<br>
renderRootSync @ react-dom.development.js:26434<br>
performConcurrentWorkOnRoot @ react-dom.development.js:25738<br>
workLoop @ scheduler.development.js:266<br>
flushWork @ scheduler.development.js:239<br>
performWorkUntilDeadline @ scheduler.development.js:533<br>
react.development.js:1622 Uncaught TypeError: Cannot read properties of null (reading 'useState')<br>
at Object.useState (react.development.js:1622:1)<br>
at Button (Button.tsx:9:1)<br>
at renderWithHooks (react-dom.development.js:16305:1)<br>
at mountIndeterminateComponent (react-dom.development.js:20074:1)<br>
at beginWork (react-dom.development.js:21587:1)<br>
at HTMLUnknownElement.callCallback (react-dom.development.js:4164:1)<br>
at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:1)<br>
at invokeGuardedCallback (react-dom.development.js:4277:1)<br>
at beginWork$1 (react-dom.development.js:27451:1)<br>
at performUnitOfWork (react-dom.development.js:26557:1)</li>
</ol> | <h1 dir="auto">To people coming from search: please <a href="https://reactjs.org/warnings/invalid-hook-call-warning.html" rel="nofollow">read this page first</a>. It contains most common possible fixes!</h1>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p>
<p dir="auto">Enhancement</p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">I had multiple instances of React by mistake.</p>
<p dir="auto">When trying to use hooks, got this error:<br>
<code class="notranslate">hooks can only be called inside the body of a function component</code></p>
<p dir="auto">Which is not correct since I was using function components. Took me a while to find the real cause of the issue.</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">Show the correct error message. Maybe detect that the app has multiple instances of React and say that it may be the reason of bugs.</p> | 1 |
<p dir="auto">Hi ,<br>
compiled ‘setup.py’ in dir 'cuda' of extension-cpp-master and got 2 erros like that:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/18642811/56650882-83a3a180-66ba-11e9-866e-6301b23e63cd.png"><img src="https://user-images.githubusercontent.com/18642811/56650882-83a3a180-66ba-11e9-866e-6301b23e63cd.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">ran it in torch1.0,1 , win7-x64<br>
help pls!<br>
regards</p> | <h2 dir="auto">Issue description</h2>
<p dir="auto">Building a custom CUDA extension fails with the following error on MSVC 2017:<br>
<code class="notranslate"><env_lib_dir>\site-packages\torch\lib\include\pybind11\cast.h(1393): error: expression must be a pointer to a complete object type</code></p>
<p dir="auto">However, I have not observed the error with multiple GCC versions on Linux.</p>
<h2 dir="auto">Code example</h2>
<p dir="auto">Here is an MWE.</p>
<p dir="auto">setup.py</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import os
from setuptools import setup
from torch.utils.cpp_extension import CppExtension, CUDAExtension, BuildExtension
setup(name='exten', ext_modules=[
CUDAExtension('exten_cuda', ['exten_cuda.cpp', 'exten_cuda_kernel.cu'])
], cmdclass={'build_ext': BuildExtension})"><pre class="notranslate"><code class="notranslate">import os
from setuptools import setup
from torch.utils.cpp_extension import CppExtension, CUDAExtension, BuildExtension
setup(name='exten', ext_modules=[
CUDAExtension('exten_cuda', ['exten_cuda.cpp', 'exten_cuda_kernel.cu'])
], cmdclass={'build_ext': BuildExtension})
</code></pre></div>
<p dir="auto">exten_cuda.cpp</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="std::vector<at::Tensor> exten_cuda_forward(at::Tensor a);
std::vector<at::Tensor> exten_cuda_backward(at::Tensor a);
std::vector<at::Tensor> exten_forward(at::Tensor a) {
return exten_cuda_forward(a);
}
std::vector<at::Tensor> exten_backward(at::Tensor a) {
return exten_cuda_backward(a);
}
// Do Python bindings.
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
m.def("forward", &exten_forward, "Extension forward CUDA");
m.def("backward", &exten_backward, "Extension backward CUDA");
}"><pre class="notranslate"><code class="notranslate">std::vector<at::Tensor> exten_cuda_forward(at::Tensor a);
std::vector<at::Tensor> exten_cuda_backward(at::Tensor a);
std::vector<at::Tensor> exten_forward(at::Tensor a) {
return exten_cuda_forward(a);
}
std::vector<at::Tensor> exten_backward(at::Tensor a) {
return exten_cuda_backward(a);
}
// Do Python bindings.
PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) {
m.def("forward", &exten_forward, "Extension forward CUDA");
m.def("backward", &exten_backward, "Extension backward CUDA");
}
</code></pre></div>
<p dir="auto">exten_cuda_kernel.cu</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include <torch/torch.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <vector>
std::vector<at::Tensor> exten_cuda_forward(at::Tensor a) {
// Do nothing.
// Return empty vector (just for compile error demo).
return {};
}
std::vector<at::Tensor> exten_cuda_backward(at::Tensor a) {
// Do nothing.
// Return empty vector (just for compile error demo).
return {};
}"><pre class="notranslate"><code class="notranslate">#include <torch/torch.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <vector>
std::vector<at::Tensor> exten_cuda_forward(at::Tensor a) {
// Do nothing.
// Return empty vector (just for compile error demo).
return {};
}
std::vector<at::Tensor> exten_cuda_backward(at::Tensor a) {
// Do nothing.
// Return empty vector (just for compile error demo).
return {};
}
</code></pre></div>
<h2 dir="auto">System Info</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting environment information...
PyTorch version: 0.4.1
Is debug build: No
CUDA used to build PyTorch: 9.2
OS: Microsoft Windows 10 Education
GCC version: (x86_64-posix-seh, Built by strawberryperl.com project) 7.1.0
CMake version: version 3.12.0
Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 9.2.148
GPU models and configuration: GPU 0: GeForce GTX 1060 6GB
Nvidia driver version: 399.07
cuDNN version: Could not collect
Versions of relevant libraries:
[pip] numpy (1.15.1)
[pip] torch (0.4.1)
[pip] torchvision (0.2.1)
[conda] cuda92 1.0 0 pytorch
[conda] pytorch 0.4.1 py37_cuda92_cudnn7he774522_1 [cuda92] pytorch
[conda] torchvision 0.2.1 <pip>"><pre class="notranslate"><code class="notranslate">Collecting environment information...
PyTorch version: 0.4.1
Is debug build: No
CUDA used to build PyTorch: 9.2
OS: Microsoft Windows 10 Education
GCC version: (x86_64-posix-seh, Built by strawberryperl.com project) 7.1.0
CMake version: version 3.12.0
Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 9.2.148
GPU models and configuration: GPU 0: GeForce GTX 1060 6GB
Nvidia driver version: 399.07
cuDNN version: Could not collect
Versions of relevant libraries:
[pip] numpy (1.15.1)
[pip] torch (0.4.1)
[pip] torchvision (0.2.1)
[conda] cuda92 1.0 0 pytorch
[conda] pytorch 0.4.1 py37_cuda92_cudnn7he774522_1 [cuda92] pytorch
[conda] torchvision 0.2.1 <pip>
</code></pre></div>
<ul dir="auto">
<li>PyTorch or Caffe2: PyTorch</li>
<li>How you installed PyTorch (conda, pip, source): conda</li>
<li>OS: Windows 10 x64</li>
<li>PyTorch version: 0.4.1</li>
<li>Python version: 3.7</li>
<li>CUDA/cuDNN version: 9.2</li>
<li>GPU models and configuration: GTX 1060 6GB</li>
<li>MSVC version (if compiling from source): 15.7.5</li>
<li>CMake version: 3.12.0</li>
<li>Versions of any other relevant libraries: setuptools 0.2.1</li>
</ul> | 1 |
<p dir="auto">I'm trying to test my functions that utilize the Web Crypto API, for example:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const { webkit } = require("playwright")
async function importKey() {
return window.crypto.subtle.importKey("raw", new Uint8Array(8), "HKDF", false, ["deriveKey"])
}
(async function test() {
const browser = await webkit.launch()
const page = await browser.newPage()
await page.goto("https://example.com")
// how to test `importKey` with the Playwright context's `window.crypto`?
await browser.close()
})()"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-kos">{</span> webkit <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"playwright"</span><span class="pl-kos">)</span>
<span class="pl-k">async</span> <span class="pl-k">function</span> <span class="pl-en">importKey</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-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">crypto</span><span class="pl-kos">.</span><span class="pl-c1">subtle</span><span class="pl-kos">.</span><span class="pl-en">importKey</span><span class="pl-kos">(</span><span class="pl-s">"raw"</span><span class="pl-kos">,</span> <span class="pl-k">new</span> <span class="pl-v">Uint8Array</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-s">"HKDF"</span><span class="pl-kos">,</span> <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"deriveKey"</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">async</span> <span class="pl-k">function</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">webkit</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">"https://example.com"</span><span class="pl-kos">)</span>
<span class="pl-c">// how to test `importKey` with the Playwright context's `window.crypto`?</span>
<span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">I was thinking about running a dev server that hosts a page with a JS file that contains the <code class="notranslate">importKey</code> function and visiting this page with Playwright. Is there a simpler way to use my custom modules inside Playwright that use Web APIs?</p> | <p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version: [1.16.3]</li>
<li>Operating System: [Mac]</li>
<li>Node.js version: [16.12.0]</li>
<li>Browser: [All]</li>
<li>Extra: [N/A]</li>
</ul>
<p dir="auto"><strong>Describe the bug</strong><br>
I have 3 spec files in <strong>test</strong> folder</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22808594/140818509-eb89cbf5-f646-41b6-b6b8-97785182622c.png"><img src="https://user-images.githubusercontent.com/22808594/140818509-eb89cbf5-f646-41b6-b6b8-97785182622c.png" alt="Screen Shot 2021-11-08 at 1 05 52 PM" style="max-width: 100%;"></a></p>
<p dir="auto">Here is my config file</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22808594/140818574-1bda7e7e-22f2-44dc-a051-c50c96f93cd8.png"><img src="https://user-images.githubusercontent.com/22808594/140818574-1bda7e7e-22f2-44dc-a051-c50c96f93cd8.png" alt="Screen Shot 2021-11-08 at 1 06 11 PM" style="max-width: 100%;"></a></p>
<p dir="auto">When i run the test with one worker, files are not executed in the order mentioned in testProject.testMatch Array</p>
<p dir="auto">As per documentation, testMatch support Array of files<br>
<a href="https://playwright.dev/docs/next/api/class-testproject#test-project-test-match" rel="nofollow">https://playwright.dev/docs/next/api/class-testproject#test-project-test-match</a></p>
<p dir="auto"><strong>Actual:</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pw1_test_spec.js
pw10_test_spec.js
pw2_test_spec.js"><pre class="notranslate"><span class="pl-s1">pw1_test_spec</span><span class="pl-kos">.</span><span class="pl-c1">js</span>
<span class="pl-s1">pw10_test_spec</span><span class="pl-kos">.</span><span class="pl-c1">js</span>
<span class="pl-s1">pw2_test_spec</span><span class="pl-kos">.</span><span class="pl-c1">js</span></pre></div>
<p dir="auto"><strong>Expected:</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pw1_test_spec.js
pw2_test_spec.js
pw10_test_spec.js"><pre class="notranslate"><span class="pl-s1">pw1_test_spec</span><span class="pl-kos">.</span><span class="pl-c1">js</span>
<span class="pl-s1">pw2_test_spec</span><span class="pl-kos">.</span><span class="pl-c1">js</span>
<span class="pl-s1">pw10_test_spec</span><span class="pl-kos">.</span><span class="pl-c1">js</span></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22808594/140819145-17070098-1d99-4ad1-9947-3be79c31d4e3.png"><img src="https://user-images.githubusercontent.com/22808594/140819145-17070098-1d99-4ad1-9947-3be79c31d4e3.png" alt="Screen Shot 2021-11-08 at 1 05 42 PM" style="max-width: 100%;"></a></p>
<p dir="auto">Noticed the same behavior if i use</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="testMatch: '*_test_spec.js'"><pre class="notranslate">testMatch: <span class="pl-s">'*_test_spec.js'</span></pre></div>
<p dir="auto">Kindly let me know if i am doing something wrong here.</p> | 0 |
<p dir="auto"><strong>Apache Airflow version</strong>: 2.0.0a2</p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.2", GitCommit:"59603c6e503c87169aea6106f57b9f242f64df89", GitTreeState:"clean", BuildDate:"2020-01-18T23:30:10Z", GoVersion:"go1.13.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.8", GitCommit:"9f2892aab98fe339f3bd70e3c470144299398ace", GitTreeState:"clean", BuildDate:"2020-08-14T00:06:38Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.2", GitCommit:"59603c6e503c87169aea6106f57b9f242f64df89", GitTreeState:"clean", BuildDate:"2020-01-18T23:30:10Z", GoVersion:"go1.13.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.8", GitCommit:"9f2892aab98fe339f3bd70e3c470144299398ace", GitTreeState:"clean", BuildDate:"2020-08-14T00:06:38Z", GoVersion:"go1.13.15", 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>: Azure</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): Official airflow docker image</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
When running the airflow webserver, it will fall into a crashloop because it never becomes ready (readiness probes fail.)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 1953, in full_dispatch_request
return self.finalize_request(rv)
File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 1970, in finalize_request
response = self.process_response(response)
File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 2269, in process_response
self.session_interface.save_session(self, ctx.session, response)
File "/home/airflow/.local/lib/python3.8/site-packages/flask/sessions.py", line 379, in save_session
response.set_cookie(
File "/home/airflow/.local/lib/python3.8/site-packages/werkzeug/wrappers/base_response.py", line 468, in set_cookie
dump_cookie(
File "/home/airflow/.local/lib/python3.8/site-packages/werkzeug/http.py", line 1217, in dump_cookie
raise ValueError("SameSite must be 'Strict', 'Lax', or 'None'.")
ValueError: SameSite must be 'Strict', 'Lax', or 'None'."><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 1953, in full_dispatch_request
return self.finalize_request(rv)
File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 1970, in finalize_request
response = self.process_response(response)
File "/home/airflow/.local/lib/python3.8/site-packages/flask/app.py", line 2269, in process_response
self.session_interface.save_session(self, ctx.session, response)
File "/home/airflow/.local/lib/python3.8/site-packages/flask/sessions.py", line 379, in save_session
response.set_cookie(
File "/home/airflow/.local/lib/python3.8/site-packages/werkzeug/wrappers/base_response.py", line 468, in set_cookie
dump_cookie(
File "/home/airflow/.local/lib/python3.8/site-packages/werkzeug/http.py", line 1217, in dump_cookie
raise ValueError("SameSite must be 'Strict', 'Lax', or 'None'.")
ValueError: SameSite must be 'Strict', 'Lax', or 'None'.
</code></pre></div>
<p dir="auto">This error is reported several times before it crashes and tries again. I commented out the probes to see what was happening and it gave me the above error as well.</p>
<p dir="auto"><strong>What you expected to happen</strong>: I'd expect a fresh copy of the helm chart would be able to run smoothly.</p>
<p dir="auto"><strong>How to reproduce it</strong>:<br>
With a fresh copy of the helm chart, change the <code class="notranslate">defaultAirflowTag</code> to <code class="notranslate">2.0.0a2-python3.8</code>.<br>
Then run <code class="notranslate">helm install airflow .</code><br>
I also added an ingress and a TLS Cert.</p>
<p dir="auto"><strong>Anything else we need to know</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ helm version
version.BuildInfo{Version:"v3.1.2", GitCommit:"d878d4d45863e42fd5cff6743294a11d28a9abce", GitTreeState:"clean", GoVersion:"go1.13.8"}"><pre class="notranslate"><code class="notranslate">$ helm version
version.BuildInfo{Version:"v3.1.2", GitCommit:"d878d4d45863e42fd5cff6743294a11d28a9abce", GitTreeState:"clean", GoVersion:"go1.13.8"}
</code></pre></div> | <h3 dir="auto">Body</h3>
<p dir="auto">We have a kind request for all the contributors to the latest <a href="https://pypi.org/project/apache-airflow/2.3.1rc1/" rel="nofollow">Apache Airflow RC 2.3.1rc1</a>.</p>
<p dir="auto">Could you please help us to test the RC versions of Airflow?</p>
<p dir="auto">Please let us know in the comment if the issue is addressed in the latest RC.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/21784" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/21784/hovercard">Add tags inside try block. (#21784)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jhtimmins/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jhtimmins">@jhtimmins</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/22754" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/22754/hovercard">Fix secrets rendered in UI when task is not executed. (#22754)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/m1racoli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/m1racoli">@m1racoli</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tirkarthi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tirkarthi">@tirkarthi</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/22738" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/22738/hovercard">Webserver doesn't mask rendered fields for pending tasks (#22738)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23044" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23044/hovercard">Fix Graph overflow, position and padding (#23044)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eladkal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eladkal">@eladkal</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/23042" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/23042/hovercard">Graph view: Nodes arrows are cut (#23042)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23048" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23048/hovercard">Use kubernetes queue in kubernetes hybrid executors (#23048)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tanelk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tanelk">@tanelk</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23106" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23106/hovercard">Show warning if '/' is used in a DAG run ID (#23106)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/davidavdav/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/davidavdav">@davidavdav</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/uranusjr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/uranusjr">@uranusjr</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/20063" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/20063/hovercard">Forward slash in <code class="notranslate">dag_run_id</code> gives rise to trouble accessing things through the REST API (#20063)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23143" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23143/hovercard">Pools with negative open slots should not block other pools (#23143)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tanelk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tanelk">@tanelk</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23161" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23161/hovercard">Handle invalid date parsing in webserver views. (#23161)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tirkarthi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tirkarthi">@tirkarthi</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/22969" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/22969/hovercard">Invalid execution_date crashes pages accepting the query parameter (#22969)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23254" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23254/hovercard">Refactor code references from tree to grid (#23254)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23258" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23258/hovercard">Override pool for TaskInstance when pool is passed from cli. (#23258)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tirkarthi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tirkarthi">@tirkarthi</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Swalloow/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Swalloow">@Swalloow</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/23249" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/23249/hovercard">Pool option does not work in backfill command (#23249)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23274" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23274/hovercard">Remove custom signal handling in Triggerer (#23274)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dstandish/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dstandish">@dstandish</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/19260" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/19260/hovercard">Airflow standalone command does not exit gracefully (#19260)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23290" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23290/hovercard">Store grid view selection in url params (#23290)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23301" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23301/hovercard">Fix: Exception when parsing log #20966 (#23301)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/microhuang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/microhuang">@microhuang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jakubno/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jakubno">@jakubno</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/pull/21053" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/21053/hovercard">Fix: Exception when parsing log #20966 (#21053)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23302" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23302/hovercard">Fix duplicated Kubernetes DeprecationWarnings (#23302)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jedcunningham/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jedcunningham">@jedcunningham</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23304" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23304/hovercard">Fix empty image preparation (#23304)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23313" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23313/hovercard">Fix Mapped Instance start/end date timezones (#23313)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23314" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23314/hovercard">Fix update user auth stats (#23314)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/blag/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/blag">@blag</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23330" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23330/hovercard">Use run_id for ti.mark_success_url (#23330)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23332" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23332/hovercard">Don't show grid actions if server would reject with permission denied (#23332)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23338" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23338/hovercard">Hide some task instance attributes in details page (#23338)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23339" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23339/hovercard">fix cli airflow show dags for mapped operator (#23339)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MatrixManAtYrService/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MatrixManAtYrService">@MatrixManAtYrService</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/RNHTTR/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/RNHTTR">@RNHTTR</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/23315" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/23315/hovercard"><code class="notranslate">airflow dags show</code> Exception: "The node ... should be TaskGroup and is not" (#23315)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23345" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23345/hovercard">Fix connection test button (#23345)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jedcunningham/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jedcunningham">@jedcunningham</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23367" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23367/hovercard">Fix broken task instance link in xcom list (#23367)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23392" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23392/hovercard">Grid view status filters (#23392)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pierrejeambrun/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pierrejeambrun">@pierrejeambrun</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23409" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23409/hovercard">[FIX] remove python 3.6 (#23409)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raphaelauv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raphaelauv">@raphaelauv</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23434" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23434/hovercard">Fix literal cross product expansion (#23434)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aspain/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aspain">@aspain</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jedcunningham/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jedcunningham">@jedcunningham</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/23425" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/23425/hovercard">Mapping over multiple parameters results in 1 task fewer than expected (#23425)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23441" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23441/hovercard">Add backward compatibility for core__sql_alchemy_conn__cmd (#23441)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/c-thiel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/c-thiel">@c-thiel</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23458" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23458/hovercard">Optimize 2.3.0 pre-upgrade check queries (#23458)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dstandish/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dstandish">@dstandish</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23462" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23462/hovercard">Fix broken dagrun links when many runs start at the same time (#23462)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/repl-chris/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/repl-chris">@repl-chris</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23482" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23482/hovercard">Remove color change for highly nested groups (#23482)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23486" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23486/hovercard">Fix scheduler crash when expanding with mapped task that returned none (#23486)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ephraimbuddy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ephraimbuddy">@ephraimbuddy</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23487" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23487/hovercard">Expand/collapse all groups (#23487)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23488" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23488/hovercard">Visually distinguish task group summaries (#23488)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23491" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23491/hovercard">Only count bad refs when <code class="notranslate">moved</code> table exists (#23491)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dstandish/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dstandish">@dstandish</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23506" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23506/hovercard">Added postgres 14 to support versions(including breeze) (#23506)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexInhert/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexInhert">@alexInhert</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/subkanthi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/subkanthi">@subkanthi</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/23460" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/23460/hovercard">Add Postgres 14 support (#23460)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23521" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23521/hovercard">Prevent KubernetesJobWatcher getting stuck on resource too old (#23521)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/SimonOsipov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/SimonOsipov">@SimonOsipov</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ecerulm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ecerulm">@ecerulm</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ephraimbuddy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ephraimbuddy">@ephraimbuddy</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/guillemborrell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/guillemborrell">@guillemborrell</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cansjt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cansjt">@cansjt</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/12644" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/12644/hovercard">Network instabilities are able to freeze KubernetesJobWatcher (#12644)</a></li>
<li><a href="https://github.com/apache/airflow/pull/15500" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/15500/hovercard">Handle kubernetes watcher stream disconnection (#15500)</a></li>
<li><a href="https://github.com/apache/airflow/issues/17629" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/17629/hovercard">KubernetesExecutor do not spawn Kubernetes Pod Operator pods. (#17629)</a></li>
<li><a href="https://github.com/apache/airflow/issues/21087" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/21087/hovercard">KubernetesJobWatcher failing on HTTP 410 errors, jobs stuck in scheduled state (#21087)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23528" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23528/hovercard">Change approach to finding bad rows to LEFT OUTER JOIN. (#23528)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ashb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ashb">@ashb</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23535" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23535/hovercard">Fix regression in ignoring symlinks (#23535)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ianbuss/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ianbuss">@ianbuss</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/NickYadance/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/NickYadance">@NickYadance</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/23532" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/23532/hovercard">Airflow .airflowignore not handling soft link properly. (#23532)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23536" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23536/hovercard">Apply specific ID collation to root_dag_id too (#23536)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mpeteuil/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mpeteuil">@mpeteuil</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23559" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23559/hovercard">Fix <code class="notranslate">PythonVirtualenvOperator</code> templated_fields (#23559)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eladkal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eladkal">@eladkal</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23575" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23575/hovercard">Fix dag-processor fetch metabase config (#23575)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/allebacco/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/allebacco">@allebacco</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Taragolis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Taragolis">@Taragolis</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/23572" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/23572/hovercard">cli command <code class="notranslate">dag-processor</code> uses <code class="notranslate">[core] sql_alchemy_conn</code> (#23572)</a></li>
<li><a href="https://github.com/apache/airflow/issues/23447" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/23447/hovercard">External DAG processor not working (#23447)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23590" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23590/hovercard">Fix expand/collapse all buttons (#23590)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23617" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23617/hovercard">Implement send_callback method for CeleryKubernetesExecutor and LocalKubernetesExecutor (#23617)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eduardchai/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eduardchai">@eduardchai</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mhenc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mhenc">@mhenc</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/23610" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/23610/hovercard">AttributeError: 'CeleryKubernetesExecutor' object has no attribute 'send_callback' (#23610)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23625" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23625/hovercard">Add index for event column in log table (#23625)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gmsantos/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gmsantos">@gmsantos</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23634" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23634/hovercard">Don't run pre-migration checks for downgrade (#23634)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dstandish/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dstandish">@dstandish</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23636" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23636/hovercard">[FEATURE] update K8S-KIND to 0.13.0 (#23636)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raphaelauv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raphaelauv">@raphaelauv</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23637" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23637/hovercard">[FEATURE] add k8s 1.24 support (#23637)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raphaelauv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raphaelauv">@raphaelauv</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23655" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23655/hovercard">Ensure execution_timeout as timedelta (#23655)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pingzh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pingzh">@pingzh</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23674" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23674/hovercard">Add 'reschedule' to the serialized fields for the BaseSensorOperator (#23674)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pmrem/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pmrem">@pmrem</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/davidcaron/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/davidcaron">@davidcaron</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/23411" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/23411/hovercard">PythonSensor is not considering mode='reschedule', instead marking task UP_FOR_RETRY (#23411)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23684" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23684/hovercard">Fix task log is not captured (#23684)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pingzh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pingzh">@pingzh</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23685" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23685/hovercard">Disable Flower by default from docker-compose (#23685)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23690" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23690/hovercard">Automatically reschedule stalled queued tasks in CeleryExecutor (v2) (#23690)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/repl-chris/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/repl-chris">@repl-chris</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23699" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23699/hovercard">Modify db clean to also catch the ProgrammingError exception (#23699)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jianyuan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jianyuan">@jianyuan</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/23698" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/23698/hovercard">airflow db clean - table missing exception not captured (#23698)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23716" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23716/hovercard">Add typing for airflow/configuration.py (#23716)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23723" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23723/hovercard">Fix retrieval of deprecated non-config values (#23723)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23728" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23728/hovercard">Fix grid details header text overlap (#23728)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23736" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23736/hovercard">Remove titles from link buttons (#23736)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23771" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23771/hovercard">Fix auto upstream dep when expanding non-templated field (#23771)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jedcunningham/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jedcunningham">@jedcunningham</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <a href="https://github.com/apache/airflow/pull/23825" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23825/hovercard">Fix provider import error matching (#23825)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ianbuss/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ianbuss">@ianbuss</a><br>
Linked issues:
<ul dir="auto">
<li><a href="https://github.com/apache/airflow/issues/23823" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/23823/hovercard">ModuleNotFoundExceptions not matched as optional features (#23823)</a></li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23845" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23845/hovercard">Fix constraint reference params (#23845)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="https://github.com/apache/airflow/pull/23847" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/23847/hovercard">Add limit for JPype1 (#23847)</a>: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a></li>
</ul>
<p dir="auto">Thanks to all who contributed to the release (probably not a complete list!):<br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pierrejeambrun/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pierrejeambrun">@pierrejeambrun</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mhenc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mhenc">@mhenc</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gmsantos/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gmsantos">@gmsantos</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Swalloow/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Swalloow">@Swalloow</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/potiuk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/potiuk">@potiuk</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eduardchai/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eduardchai">@eduardchai</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mpeteuil/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mpeteuil">@mpeteuil</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/allebacco/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/allebacco">@allebacco</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ianbuss/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ianbuss">@ianbuss</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/guillemborrell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/guillemborrell">@guillemborrell</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/SimonOsipov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/SimonOsipov">@SimonOsipov</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tirkarthi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tirkarthi">@tirkarthi</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/RNHTTR/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/RNHTTR">@RNHTTR</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/alexInhert/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/alexInhert">@alexInhert</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/davidavdav/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/davidavdav">@davidavdav</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/blag/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/blag">@blag</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/NickYadance/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/NickYadance">@NickYadance</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/c-thiel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/c-thiel">@c-thiel</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Taragolis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Taragolis">@Taragolis</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ecerulm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ecerulm">@ecerulm</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jedcunningham/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jedcunningham">@jedcunningham</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ephraimbuddy/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ephraimbuddy">@ephraimbuddy</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jakubno/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jakubno">@jakubno</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MatrixManAtYrService/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MatrixManAtYrService">@MatrixManAtYrService</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dstandish/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dstandish">@dstandish</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eladkal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eladkal">@eladkal</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pmrem/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pmrem">@pmrem</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/repl-chris/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/repl-chris">@repl-chris</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/davidcaron/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/davidcaron">@davidcaron</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ashb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ashb">@ashb</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aspain/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aspain">@aspain</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/microhuang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/microhuang">@microhuang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/m1racoli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/m1racoli">@m1racoli</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/uranusjr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/uranusjr">@uranusjr</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pingzh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pingzh">@pingzh</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bbovenzi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bbovenzi">@bbovenzi</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tanelk/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tanelk">@tanelk</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jhtimmins/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jhtimmins">@jhtimmins</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/subkanthi/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/subkanthi">@subkanthi</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jianyuan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jianyuan">@jianyuan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cansjt/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cansjt">@cansjt</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/raphaelauv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/raphaelauv">@raphaelauv</a></p>
<h3 dir="auto">Committer</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I acknowledge that I am a maintainer/committer of the Apache Airflow project.</li>
</ul> | 0 |
<p dir="auto">input words are into command shell</p> | <p dir="auto">I’ve run into an <a href="https://github.com/coolwanglu/neovim.as/issues/7" data-hovercard-type="issue" data-hovercard-url="/coolwanglu/neovim-e/issues/7/hovercard">odd issue testing the <em>Neovim.AS</em> Atom Shell app</a>, where I cannot get its window to accept keyboard input on OS X 10.10.2 when I start it via the <em>atom-shell</em> CLI; instead, all keyboard input goes to the last active application – in the case of the screenshot, the shell in which <em>Neovim.AS</em> was started:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/80906/6232019/c3640e22-b6c9-11e4-87c2-ba6f09075326.png"><img src="https://cloud.githubusercontent.com/assets/80906/6232019/c3640e22-b6c9-11e4-87c2-ba6f09075326.png" alt="neovim" style="max-width: 100%;"></a></p>
<p dir="auto">I also can’t switch to the window with <code class="notranslate">Cmd-Tab</code>, its OS X menu does not display, and the only way to quit it is issuing <code class="notranslate">^C</code> in the originating shell. I have reproduced the issue with <a href="https://github.com/pamods/pamm-atom">another, more straightforward Atom Shell app, <em>pamm-atom</em></a>, incidentally showing that the apps are responding to mouse input (Vim not being a really good object to judge that :)).</p>
<p dir="auto">If I start <em>pamm-atom</em> via the GUI, none of the above occurs (not testable with <em>Neovim.AS</em> due to the Grunt requirement and lack of <code class="notranslate">app</code> folder).</p>
<p dir="auto"><strong>Configuration:</strong></p>
<ul dir="auto">
<li>OS X 10.10.2 German locale, German keyboard input. I’ve tried disabling my input hacks (specifically, <a href="https://pqrs.org/osx/karabiner/seil.html.en" rel="nofollow">Seil</a> and <a href="https://pqrs.org/osx/karabiner/index.html.en" rel="nofollow">Karabiner</a>) and switching to a US keyboard map, but none of that helped.</li>
<li><em>atom-shell</em> version 0.21.2 64 bit without symbols, downloaded from the Releases pages. The Atom Shell app runs without a hitch by itself, as does <em>Atom</em> the editor (which accepts my keyboard input like a champ, I hasten to add).</li>
<li>OS X stock Terminal.app running the system <em>bash</em> (<code class="notranslate">GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin14)</code>). The above screenshot shows a version running with <em>TotalTerminal</em> injected, but the same issue occurs within standard terminal windows [EDIT: and in iTerm 2].</li>
</ul> | 1 |
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>For English only</strong>, other languages will not accept.</p>
<p dir="auto">Before report a bug, make sure you have:</p>
<ul dir="auto">
<li>Searched open and closed <a href="https://github.com/apache/incubator-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 <strong>more than 7 days</strong> and we cannot reproduce it on current information, we will <strong>close it</strong>.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<h3 dir="auto">Which project did you use? Sharding-JDBC or Sharding-Proxy?</h3>
<h3 dir="auto">Expected behavior</h3>
<h3 dir="auto">Actual behavior</h3>
<h3 dir="auto">Reason analyze (If you can)</h3>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3>
<p dir="auto">Postgres errorCode error message no response JDBC and CLI client. PostgreSQLErrorResponsePacket no response error Info</p> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4970679/42300491-6324c1ae-8043-11e8-8a1a-c3d04536091f.png"><img src="https://user-images.githubusercontent.com/4970679/42300491-6324c1ae-8043-11e8-8a1a-c3d04536091f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">related dependencies:<br>
+--- io.shardingsphere:sharding-jdbc:3.0.0.M1<br>
| +--- io.shardingsphere:sharding-core:3.0.0.M1<br>
| | +--- com.google.guava:guava:18.0 -> 20.0<br>
| | +--- org.apache.commons:commons-lang3:3.6 -> 3.5<br>
| | +--- org.codehaus.groovy:groovy:2.4.5 -> 2.4.12<br>
| | +--- org.yaml:snakeyaml:1.16 -> 1.17<br>
| | --- org.slf4j:slf4j-api:1.7.7 -> 1.7.25<br>
| +--- com.google.guava:guava:18.0 -> 20.0<br>
| +--- org.apache.commons:commons-lang3:3.6 -> 3.5<br>
| +--- org.codehaus.groovy:groovy:2.4.5 -> 2.4.12<br>
| +--- org.yaml:snakeyaml:1.16 -> 1.17<br>
| --- org.slf4j:slf4j-api:1.7.7 -> 1.7.25</p> | 0 |
<p dir="auto">In the Blender Export 4.4 there is an issue with the vertices of morph targets. They are parsed as triplets of arrays: <code class="notranslate">[[x,y,z],[x,y,z],...]</code> but should be one singel array <code class="notranslate">[x,y,z,x,y,z]</code>.</p>
<p dir="auto">I'm not good enough with python to make the change, but I think it's <code class="notranslate">extend([vertex.co.x, vertex.co.y, vertex.co.z])</code> that should be <code class="notranslate">extend((vertex.co.x, vertex.co.y, vertex.co.z))</code> on line 409 in mesh.py.</p>
<p dir="auto">I't worked for me when changing in the exported json object directly.</p> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto">Many of the Blender examples have morph targets, however I've been trying to export a mesh from Blender and morph targets aren't exported.</p>
<p dir="auto">You can see shape keys are set up in Blender, and keyed in the "Shape Key Editor" view:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/79215/14727522/9ed423da-07e0-11e6-8efe-b50fc514a23a.png"><img src="https://cloud.githubusercontent.com/assets/79215/14727522/9ed423da-07e0-11e6-8efe-b50fc514a23a.png" alt="screen shot 2016-04-21 at 4 43 43 pm" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/79215/14727523/9ed4206a-07e0-11e6-9289-1ea1745b400c.png"><img src="https://cloud.githubusercontent.com/assets/79215/14727523/9ed4206a-07e0-11e6-9289-1ea1745b400c.png" alt="screen shot 2016-04-21 at 4 43 41 pm" style="max-width: 100%;"></a></p>
<p dir="auto">However on export to JSON there are no morph targets. Only one empty array under they <code class="notranslate">"geometry"</code> key, <code class="notranslate">"morphTargets":[],</code>.</p>
<p dir="auto">Exporter settings include morph:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/79215/14727556/ecebfe30-07e0-11e6-8f00-553fa1545f75.png"><img src="https://cloud.githubusercontent.com/assets/79215/14727556/ecebfe30-07e0-11e6-8f00-553fa1545f75.png" alt="screen shot 2016-04-21 at 4 45 33 pm" style="max-width: 100%;"></a></p>
<p dir="auto"><a href="https://github.com/mrdoob/three.js/files/230900/eye-test.blend.zip">You can download the .blend file in question to try this out: <strong>eye-test.blend.zip</strong></a></p>
<h5 dir="auto">Three.js version</h5>
<ul dir="auto">
<li><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji> Dev</li>
<li><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji> r76</li>
</ul> | 1 |
<h3 dir="auto">Current Behavior:</h3>
<p dir="auto">running <code class="notranslate">npm publish</code> get an error :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="18 timing config:load Completed in 8ms
19 verbose npm-session 2c8eccb75d3455d8
20 timing npm:load Completed in 12ms
21 verbose publish [ '.' ]
22 timing command:publish Completed in 13ms
23 verbose stack TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
23 verbose stack at new NodeError (node:internal/errors:329:5)
23 verbose stack at validateString (node:internal/validators:129:11)
23 verbose stack at join (node:path:1081:7)
23 verbose stack at flatten (/usr/lib/node_modules/npm/lib/utils/flat-options.js:50:10)
23 verbose stack at Publish.publishConfigToOpts (/usr/lib/node_modules/npm/lib/publish.js:140:12)
23 verbose stack at Publish.publish (/usr/lib/node_modules/npm/lib/publish.js:58:32)
24 verbose cwd /home/alban/dev/eda-vue-components
25 verbose Linux 4.19.104-microsoft-standard
26 verbose argv "/usr/bin/node" "/usr/sbin/npm" "publish" "."
27 verbose node v15.11.0
28 verbose npm v7.6.1
29 error code ERR_INVALID_ARG_TYPE
30 error The "path" argument must be of type string. Received undefined
31 verbose exit 1"><pre class="notranslate"><code class="notranslate">18 timing config:load Completed in 8ms
19 verbose npm-session 2c8eccb75d3455d8
20 timing npm:load Completed in 12ms
21 verbose publish [ '.' ]
22 timing command:publish Completed in 13ms
23 verbose stack TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
23 verbose stack at new NodeError (node:internal/errors:329:5)
23 verbose stack at validateString (node:internal/validators:129:11)
23 verbose stack at join (node:path:1081:7)
23 verbose stack at flatten (/usr/lib/node_modules/npm/lib/utils/flat-options.js:50:10)
23 verbose stack at Publish.publishConfigToOpts (/usr/lib/node_modules/npm/lib/publish.js:140:12)
23 verbose stack at Publish.publish (/usr/lib/node_modules/npm/lib/publish.js:58:32)
24 verbose cwd /home/alban/dev/eda-vue-components
25 verbose Linux 4.19.104-microsoft-standard
26 verbose argv "/usr/bin/node" "/usr/sbin/npm" "publish" "."
27 verbose node v15.11.0
28 verbose npm v7.6.1
29 error code ERR_INVALID_ARG_TYPE
30 error The "path" argument must be of type string. Received undefined
31 verbose exit 1
</code></pre></div>
<h3 dir="auto">Expected Behavior:</h3>
<p dir="auto">it should be a success</p>
<h3 dir="auto">Steps To Reproduce:</h3>
<ul dir="auto">
<li>remove any "cache" config</li>
<li><code class="notranslate">npm publish</code> on a working project</li>
</ul>
<h3 dir="auto">Environment:</h3>
<p dir="auto">wsl archlinux<br>
node v15.11.0<br>
npm v7.6.1</p>
<h3 dir="auto">workaround</h3>
<p dir="auto">adding "cache":"~/.npm" in package.json solves the problem.</p>
<h3 dir="auto">fix</h3>
<p dir="auto">I guess list[0] <a href="https://github.com/npm/cli/blob/latest/lib/publish.js#L140">here</a> is supposed to be the default config... but for any reason is not resolved... but I may be wrong here.</p>
<p dir="auto">I also notice <a href="https://github.com/npm/cli/blob/latest/lib/utils/flat-options.js#L50">https://github.com/npm/cli/blob/latest/lib/utils/flat-options.js#L50</a> is the only flatten option that is supposed not to be defined : maybe the problem is there ?</p>
<p dir="auto">Might be related to <a href="https://github.com/npm/cli/commit/6cd3cd08af56445e13757cac3af87f3e7d54ed27?branch=6cd3cd08af56445e13757cac3af87f3e7d54ed27&diff=split#diff-49d92972c12c110929e2654444cef752a7d1fbf52ad3715ce8667257f68ab464R42">this change</a> (the code was <code class="notranslate"> cache: join(npm.config.get('cache'), '_cacache'),</code> before, maybe get use default value if any ?</p> | <h3 dir="auto">Current Behavior:</h3>
<p dir="auto">When running <code class="notranslate">npm publish</code> the following error appears:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "path" argument must be of type string. Received undefined
npm ERR! A complete log of this run can be found in:
npm ERR! /home/xx/.npm/_logs/2021-03-06T09_10_43_193Z-debug.log"><pre class="notranslate"><code class="notranslate">npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "path" argument must be of type string. Received undefined
npm ERR! A complete log of this run can be found in:
npm ERR! /home/xx/.npm/_logs/2021-03-06T09_10_43_193Z-debug.log
</code></pre></div>
<p dir="auto">The debug trace shows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="23 verbose stack TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
23 verbose stack at validateString (internal/validators.js:124:11)
23 verbose stack at join (path.js:1039:7)
23 verbose stack at flatten (/home/xx/.nvm/versions/node/v14.16.0/lib/node_modules/npm/lib/utils/flat-options.js:50:10)
23 verbose stack at Publish.publishConfigToOpts (/home/xx/.nvm/versions/node/v14.16.0/lib/node_modules/npm/lib/publish.js:140:12)
23 verbose stack at Publish.publish (/home/xx/.nvm/versions/node/v14.16.0/lib/node_modules/npm/lib/publish.js:58:32)"><pre class="notranslate"><code class="notranslate">23 verbose stack TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
23 verbose stack at validateString (internal/validators.js:124:11)
23 verbose stack at join (path.js:1039:7)
23 verbose stack at flatten (/home/xx/.nvm/versions/node/v14.16.0/lib/node_modules/npm/lib/utils/flat-options.js:50:10)
23 verbose stack at Publish.publishConfigToOpts (/home/xx/.nvm/versions/node/v14.16.0/lib/node_modules/npm/lib/publish.js:140:12)
23 verbose stack at Publish.publish (/home/xx/.nvm/versions/node/v14.16.0/lib/node_modules/npm/lib/publish.js:58:32)
</code></pre></div>
<h3 dir="auto">Expected Behavior:</h3>
<p dir="auto">npm publish to continue working as it did in version 6</p>
<h3 dir="auto">Steps To Reproduce:</h3>
<ol dir="auto">
<li>In this environment...<br>
Ubuntu 20.04<br>
Node 14.16.0<br>
npm 7.6.1</li>
<li>With this config...<br>
The package is configured to be published to github as per: <a href="https://docs.github.com/en/packages/guides/configuring-npm-for-use-with-github-packages#publishing-a-package-using-publishconfig-in-the-packagejson-file">github instrutions</a></li>
</ol>
<p dir="auto">package.json includes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "publishConfig": {
"registry": "https://npm.pkg.github.com"
},"><pre class="notranslate"><code class="notranslate"> "publishConfig": {
"registry": "https://npm.pkg.github.com"
},
</code></pre></div>
<ol start="3" dir="auto">
<li>Run <code class="notranslate">npm publish</code></li>
<li>See error:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "path" argument must be of type string. Received undefined`"><pre class="notranslate"><code class="notranslate">npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "path" argument must be of type string. Received undefined`
</code></pre></div>
<h3 dir="auto">Environment:</h3>
<p dir="auto">Ubuntu 20.04<br>
Node 14.16.0<br>
npm 7.6.1</p>
<h3 dir="auto">Possible cause</h3>
<p dir="auto">The issue seems to be related to changes made to the <code class="notranslate">flatten()</code> method in <a href="https://github.com/npm/cli/blob/08673c34f0f131619ea8eb75dd325e755bf0a323/lib/utils/flat-options.js#L50">utils/flat-options.js</a><br>
This is being called with the <code class="notranslate">publishConfig</code> which only contains a <code class="notranslate">registry</code> property.<br>
However flatten (line 50), tries to use <code class="notranslate">join()</code> to create a path from the non-existent<code class="notranslate">'cache</code> property, hence the error (I believe).<br>
Looking at the changes, it seems that v6 used to read the npm config for the <code class="notranslate">cache</code> value.</p>
<h3 dir="auto">Workaround</h3>
<p dir="auto">My temporary workaround for this is to add a <strong>cache</strong> property to the publishConfig section, using the <a href="https://docs.npmjs.com/cli/v7/using-npm/config#cache" rel="nofollow">default cache value</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "publishConfig": {
"cache": "~/.npm",
"registry": "https://npm.pkg.github.com"
},"><pre class="notranslate"><code class="notranslate"> "publishConfig": {
"cache": "~/.npm",
"registry": "https://npm.pkg.github.com"
},
</code></pre></div>
<p dir="auto">As others have noted, this workaround has the side-effect of creating a <code class="notranslate">~/.npm</code> directory in the root of the project. My solution to this was then simply to add <code class="notranslate">~/.npm</code> to <code class="notranslate">.gitgnore</code></p>
<p dir="auto">I guess that you could name this cache directory whatever you like. I used the default value simply to make publish work again. Note that my suggestion is purely a workaround and doesn't resolve the actual issue. Although I could see in the v7 code where the change has been made that is causing this issue, unfortunately I was unable to understand why that change was made.</p> | 1 |
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System: Ubuntu 14.04, AWS g2.2xlarge</p>
<p dir="auto">Installed version of CUDA and cuDNN: CUDA 7.5, cuDNN 4</p>
<p dir="auto">Tried 3 different version using pip package:<br>
0.8.0:<br>
sudo pip install --upgrade <a href="https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl</a></p>
<p dir="auto">0.9.0:<br>
sudo pip install --upgrade <a href="https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl</a></p>
<p dir="auto">0.10.0 rc<br>
sudo pip install --upgrade <a href="https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.10.0rc0-cp27-none-linux_x86_64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.10.0rc0-cp27-none-linux_x86_64.whl</a></p>
<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>
<p dir="auto">On the same machine, install different version of tf and run the <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/models/image/cifar10/cifar10_train.py">cifar10_train.py</a></p>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<p dir="auto">For version 0.8.0 and 0.9.0, the GPU usage is about 30%</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="+------------------------------------------------------+
| NVIDIA-SMI 352.99 Driver Version: 352.99 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GRID K520 Off | 0000:00:03.0 Off | N/A |
| N/A 37C P0 51W / 125W | 3854MiB / 4095MiB | 35% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 16558 C python 3841MiB |
+-----------------------------------------------------------------------------+"><pre class="notranslate"><code class="notranslate">+------------------------------------------------------+
| NVIDIA-SMI 352.99 Driver Version: 352.99 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GRID K520 Off | 0000:00:03.0 Off | N/A |
| N/A 37C P0 51W / 125W | 3854MiB / 4095MiB | 35% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 16558 C python 3841MiB |
+-----------------------------------------------------------------------------+
</code></pre></div>
<p dir="auto">But the speed is about ~0.24 sec/batch for version 0.8.0 and ~0.22 sec/batch for version 0.9.0</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2016-08-26 21:20:41.309814: step 230, loss = 4.28 (522.0 examples/sec; 0.245 sec/batch)
2016-08-26 21:20:43.625017: step 240, loss = 4.26 (582.3 examples/sec; 0.220 sec/batch)
2016-08-26 21:20:45.953772: step 250, loss = 4.24 (544.4 examples/sec; 0.235 sec/batch)
2016-08-26 21:20:48.302202: step 260, loss = 4.23 (540.1 examples/sec; 0.237 sec/batch)
2016-08-26 21:20:50.643760: step 270, loss = 4.21 (554.6 examples/sec; 0.231 sec/batch)
2016-08-26 21:20:52.955326: step 280, loss = 4.20 (545.6 examples/sec; 0.235 sec/batch)
2016-08-26 21:20:55.399758: step 290, loss = 4.18 (476.4 examples/sec; 0.269 sec/batch)
2016-08-26 21:20:57.825254: step 300, loss = 4.17 (548.0 examples/sec; 0.234 sec/batch)
2016-08-26 21:21:00.453533: step 310, loss = 4.15 (543.6 examples/sec; 0.235 sec/batch)
2016-08-26 21:21:02.876055: step 320, loss = 4.14 (513.9 examples/sec; 0.249 sec/batch)
2016-08-26 21:21:05.229421: step 330, loss = 4.13 (580.3 examples/sec; 0.221 sec/batch)
2016-08-26 21:21:07.614095: step 340, loss = 4.11 (528.6 examples/sec; 0.242 sec/batch)"><pre class="notranslate"><code class="notranslate">2016-08-26 21:20:41.309814: step 230, loss = 4.28 (522.0 examples/sec; 0.245 sec/batch)
2016-08-26 21:20:43.625017: step 240, loss = 4.26 (582.3 examples/sec; 0.220 sec/batch)
2016-08-26 21:20:45.953772: step 250, loss = 4.24 (544.4 examples/sec; 0.235 sec/batch)
2016-08-26 21:20:48.302202: step 260, loss = 4.23 (540.1 examples/sec; 0.237 sec/batch)
2016-08-26 21:20:50.643760: step 270, loss = 4.21 (554.6 examples/sec; 0.231 sec/batch)
2016-08-26 21:20:52.955326: step 280, loss = 4.20 (545.6 examples/sec; 0.235 sec/batch)
2016-08-26 21:20:55.399758: step 290, loss = 4.18 (476.4 examples/sec; 0.269 sec/batch)
2016-08-26 21:20:57.825254: step 300, loss = 4.17 (548.0 examples/sec; 0.234 sec/batch)
2016-08-26 21:21:00.453533: step 310, loss = 4.15 (543.6 examples/sec; 0.235 sec/batch)
2016-08-26 21:21:02.876055: step 320, loss = 4.14 (513.9 examples/sec; 0.249 sec/batch)
2016-08-26 21:21:05.229421: step 330, loss = 4.13 (580.3 examples/sec; 0.221 sec/batch)
2016-08-26 21:21:07.614095: step 340, loss = 4.11 (528.6 examples/sec; 0.242 sec/batch)
</code></pre></div>
<hr>
<p dir="auto">For 0.10.0.rc0, the GPU usage is ~90%:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="+------------------------------------------------------+
| NVIDIA-SMI 352.99 Driver Version: 352.99 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GRID K520 Off | 0000:00:03.0 Off | N/A |
| N/A 35C P0 46W / 125W | 3818MiB / 4095MiB | 90% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 16702 C python 3805MiB |
+-----------------------------------------------------------------------------+"><pre class="notranslate"><code class="notranslate">+------------------------------------------------------+
| NVIDIA-SMI 352.99 Driver Version: 352.99 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GRID K520 Off | 0000:00:03.0 Off | N/A |
| N/A 35C P0 46W / 125W | 3818MiB / 4095MiB | 90% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 16702 C python 3805MiB |
+-----------------------------------------------------------------------------+
</code></pre></div>
<p dir="auto">But the speed is only ~0.34 sec/batch:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="016-08-26 21:24:11.512601: step 30, loss = 4.38 (371.3 examples/sec; 0.345 sec/batch)
2016-08-26 21:24:14.875387: step 40, loss = 4.42 (379.0 examples/sec; 0.338 sec/batch)
2016-08-26 21:24:18.248093: step 50, loss = 4.27 (368.0 examples/sec; 0.348 sec/batch)
2016-08-26 21:24:21.609797: step 60, loss = 4.24 (379.8 examples/sec; 0.337 sec/batch)
2016-08-26 21:24:24.987058: step 70, loss = 4.25 (376.4 examples/sec; 0.340 sec/batch)
2016-08-26 21:24:28.387080: step 80, loss = 4.38 (381.0 examples/sec; 0.336 sec/batch)
2016-08-26 21:24:31.775519: step 90, loss = 4.18 (377.8 examples/sec; 0.339 sec/batch)"><pre class="notranslate"><code class="notranslate">016-08-26 21:24:11.512601: step 30, loss = 4.38 (371.3 examples/sec; 0.345 sec/batch)
2016-08-26 21:24:14.875387: step 40, loss = 4.42 (379.0 examples/sec; 0.338 sec/batch)
2016-08-26 21:24:18.248093: step 50, loss = 4.27 (368.0 examples/sec; 0.348 sec/batch)
2016-08-26 21:24:21.609797: step 60, loss = 4.24 (379.8 examples/sec; 0.337 sec/batch)
2016-08-26 21:24:24.987058: step 70, loss = 4.25 (376.4 examples/sec; 0.340 sec/batch)
2016-08-26 21:24:28.387080: step 80, loss = 4.38 (381.0 examples/sec; 0.336 sec/batch)
2016-08-26 21:24:31.775519: step 90, loss = 4.18 (377.8 examples/sec; 0.339 sec/batch)
</code></pre></div> | <h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Linux 4.4.11-23.53"><pre class="notranslate"><code class="notranslate">Linux 4.4.11-23.53
</code></pre></div>
<h3 dir="auto">Observations</h3>
<p dir="auto">I am testing on a Tesla K80 (details below) using the following lines:</p>
<ul dir="auto">
<li><code class="notranslate">nvidia-docker run --rm -it -v /tmp/cifar10_data:/tmp/cifar10_data tensorflow/tensorflow:0.9.0-devel-gpu bash -c 'ln -s /usr/local/nvidia/lib64/libcuda.so.1 /usr/lib/x86_64-linux-gnu/libcuda.so && python /usr/local/lib/python2.7/dist-packages/tensorflow/models/image/cifar10/cifar10_multi_gpu_train.py'</code></li>
<li><code class="notranslate">nvidia-docker run --rm -it -v /tmp/cifar10_data:/tmp/cifar10_data tensorflow/tensorflow:0.10.0rc0-devel-gpu python /usr/local/lib/python2.7/dist-packages/tensorflow/models/image/cifar10/cifar10_multi_gpu_train.py</code></li>
</ul>
<p dir="auto">On r0.0.9, I get: ~<code class="notranslate">575 examples/sec</code>.<br>
On r0.10.0rc0 I get ~<code class="notranslate">425 examples/sec</code>.</p>
<p dir="auto">Here are the device stats:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:04.0
Total memory: 11.17GiB
Free memory: 11.11GiB"><pre class="notranslate"><code class="notranslate">major: 3 minor: 7 memoryClockRate (GHz) 0.8235
pciBusID 0000:00:04.0
Total memory: 11.17GiB
Free memory: 11.11GiB
</code></pre></div>
<p dir="auto">I have the: Nvidia Driver Version: 367.35</p> | 1 |
<p dir="auto">Forked from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="146874772" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/24038" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/24038/hovercard?comment_id=215610094&comment_type=issue_comment" href="https://github.com/kubernetes/kubernetes/pull/24038#issuecomment-215610094">#24038 (comment)</a></p>
<p dir="auto">We are adding federation scheduler and controller manager as per the plan in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="144745292" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/23653" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/23653/hovercard" href="https://github.com/kubernetes/kubernetes/issues/23653">#23653</a>.</p>
<p dir="auto">There is obviously some common code that is shared with kubernetes controller manager and kubernetes scheduler.<br>
We want to pull out that code into libraries to enable code reuse rather than having to duplicate code.</p>
<p dir="auto">We need to figure out the right name and directory structure for such libraries.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/davidopp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/davidopp">@davidopp</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/madhusudancs/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/madhusudancs">@madhusudancs</a> @kubernetes/goog-control-plane @kubernetes/sig-cluster-federation</p> | <p dir="auto">According to this page:<br>
<a href="https://github.com/GoogleCloudPlatform/kubernetes/blob/5ef34bf52311901b997119cc49eff944c610081b/pkg/api/v1beta3/types.go">https://github.com/GoogleCloudPlatform/kubernetes/blob/5ef34bf52311901b997119cc49eff944c610081b/pkg/api/v1beta3/types.go</a></p>
<p dir="auto">"PortalIP is usually assigned by the master. If specified by the user<br>
// we will try to respect it or else fail the request. This field can<br>
// not be changed by updates."<br>
PortalIP string <code class="notranslate">json:"portalIP,omitempty"</code></p>
<ol dir="auto">
<li>just to clarify the above - it means that user is allowed to assign it during creation of service, but not during update service - correct? why update is not supported as well?</li>
<li>what are the considerations for "we will try to respect it" - what validations are made (Except for addr already in use) ?</li>
<li>what exact error is returned when it can't be assigned?</li>
</ol> | 0 |
<p dir="auto">some js min file like this one:</p>
<p dir="auto"><a href="https://raw.githubusercontent.com/select2/select2/master/dist/js/select2.full.min.js" rel="nofollow">https://raw.githubusercontent.com/select2/select2/master/dist/js/select2.full.min.js</a></p> | <p dir="auto">May be a known issue, but files with large embedded images such as github's public/enterprise/maintenance.html will often cause Atom to freeze (MacVim actually struggles as well).</p>
<p dir="auto">Seems some of them (github's public/maintenance.html for instance) work fine when in soft wrap mode, or until you move your cursor to the long line when out of soft wrap.</p> | 1 |
<p dir="auto">Finalizer is currently define to be <code class="notranslate">finalizer(x, function)</code>.<br>
But (I assert that) it should be <code class="notranslate">finalizer(function, x)</code><br>
as this allows do-block syntax to define the function.</p>
<p dir="auto">Right now I must write</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function finalize_state(st)
close(st.pending)
close(st.complete)
end
finalizer(state, finalize_state)"><pre class="notranslate"><code class="notranslate">function finalize_state(st)
close(st.pending)
close(st.complete)
end
finalizer(state, finalize_state)
</code></pre></div>
<p dir="auto">Where as if it took the function as first argument,<br>
like <code class="notranslate">map</code>, <code class="notranslate">filter</code>, (Dict) <code class="notranslate">get!</code> and <code class="notranslate">remotecall</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="79689044" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/11406" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/11406/hovercard" href="https://github.com/JuliaLang/julia/issues/11406">#11406</a>)<br>
I could be writing:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="finalizer(state, finalize_state) do st
close(st.pending)
close(st.complete)
end"><pre class="notranslate"><code class="notranslate">finalizer(state, finalize_state) do st
close(st.pending)
close(st.complete)
end
</code></pre></div>
<p dir="auto">I suggest deprecating, and creating the new overload.</p>
<hr>
<p dir="auto">I wonder if it isn't worth search through the whole of Base and Core looking for methods that take functions (or things that look like functions), as a non-first parameter, then I could raise just one issue for all of them (or do PR)<br>
(I could script that pretty easy using <code class="notranslate">parse</code>)</p> | <p dir="auto">To be consistent with other APIs and allow the use of do-block syntax, the finalizer argument to <code class="notranslate">finalizer</code> should be the first argument, not the second.</p> | 1 |
<p dir="auto">copied from a question on the scipy-dev mailing list</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Hello,
I've been using scipy for a while and found out the following, which seems to me like a true bug.
Converting coo_matrix to dok_matrix doesn't take into account coinsiding i and j cases:
>>> cols = (0, 1, 2, 1)
>>> rows = (0, 1, 2, 1)
>>> vals = (1, 1, 1, 1)
>>> B = sparse.coo_matrix((vals, (rows, cols)))
>>> print B.todense()
[[1 0 0]
[0 2 0]
[0 0 1]]
>>> print B.todok().todense()
[[1 0 0]
[0 1 0]
[0 0 1]]
>>> sp.__version__
Out[17]: '0.14.0'
I've spent a lot of time figuring this out, therefor I decided to report it."><pre class="notranslate"><code class="notranslate">Hello,
I've been using scipy for a while and found out the following, which seems to me like a true bug.
Converting coo_matrix to dok_matrix doesn't take into account coinsiding i and j cases:
>>> cols = (0, 1, 2, 1)
>>> rows = (0, 1, 2, 1)
>>> vals = (1, 1, 1, 1)
>>> B = sparse.coo_matrix((vals, (rows, cols)))
>>> print B.todense()
[[1 0 0]
[0 2 0]
[0 0 1]]
>>> print B.todok().todense()
[[1 0 0]
[0 1 0]
[0 0 1]]
>>> sp.__version__
Out[17]: '0.14.0'
I've spent a lot of time figuring this out, therefor I decided to report it.
</code></pre></div> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/655" rel="nofollow">http://projects.scipy.org/scipy/ticket/655</a> on 2008-04-25 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cournape/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cournape">@cournape</a>, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dmcooke/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dmcooke">@dmcooke</a>.</em></p>
<p dir="auto">Executing tests for gammaincinv hangs the python interpreter with 100 % cpu.</p> | 0 |
<h1 dir="auto">What / Why</h1>
<p dir="auto">Executing <code class="notranslate">npm ci</code> ignores the <code class="notranslate">os</code> field in package.json. This causes platform specific packages like <code class="notranslate">fsevents</code> (macOS-only) to be installed on other platforms (Windows in this case).</p>
<h2 dir="auto">When</h2>
<ul dir="auto">
<li>Every install through <code class="notranslate">npm ci</code></li>
</ul>
<h2 dir="auto">Where</h2>
<ul dir="auto">
<li>Packages with the <code class="notranslate">os</code> field specified in package.json</li>
</ul>
<h2 dir="auto">How</h2>
<h3 dir="auto">Current Behavior</h3>
<ul dir="auto">
<li>See description</li>
</ul>
<h3 dir="auto">Steps to Reproduce</h3>
<ol dir="auto">
<li>Run npm init in a new directory on a windows machine</li>
<li>Install a package with a deeply nested optional dependency on fsevents, like webpack: <code class="notranslate">npm i webpack</code></li>
<li>Notice a package-lock.json is created with an optional dependency on <code class="notranslate">[email protected]</code></li>
<li>Remove <code class="notranslate">node_modules</code> te create a clean CI clone state</li>
<li>Run <code class="notranslate">npm ci</code></li>
<li>See the installation fail because <code class="notranslate">fsevents</code> is downloaded, installed, and node-gyp is executed as a result.</li>
</ol>
<h3 dir="auto">Expected Behavior</h3>
<ul dir="auto">
<li><code class="notranslate">fsevents</code> is skipped as the package is unsupported on Windows.</li>
</ul>
<h2 dir="auto">Who</h2>
<ul dir="auto">
<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pipobscure/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pipobscure">@pipobscure</a></li>
<li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/paulmillr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/paulmillr">@paulmillr</a></li>
</ul>
<h2 dir="auto">References</h2>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="541086502" data-permission-text="Title is private" data-url="https://github.com/fsevents/fsevents/issues/301" data-hovercard-type="issue" data-hovercard-url="/fsevents/fsevents/issues/301/hovercard" href="https://github.com/fsevents/fsevents/issues/301">fsevents/fsevents#301</a></li>
</ul> | <h1 dir="auto">What / Why</h1>
<p dir="auto">npm ci seems to install an optional dependency for the linux os when running on a mac and seems to install the optional dependency for mac when running on linux.</p>
<h2 dir="auto">When</h2>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ npm init -y; npm i [email protected]; npm ls; npm ci; npm ls"><pre class="notranslate">$ npm init -y<span class="pl-k">;</span> npm i [email protected]<span class="pl-k">;</span> npm ls<span class="pl-k">;</span> npm ci<span class="pl-k">;</span> npm ls</pre></div>
<details>
<summary>click to view output of above command</summary>
<pre class="notranslate">Wrote to /private/tmp/d/package.json:
<p dir="auto">{<br>
"name": "d",<br>
"version": "1.0.0",<br>
"description": "",<br>
"main": "index.js",<br>
"scripts": {<br>
"test": "echo "Error: no test specified" && exit 1"<br>
},<br>
"keywords": [],<br>
"author": "",<br>
"license": "ISC"<br>
}</p>
<blockquote>
<p dir="auto">[email protected] postinstall /private/tmp/d/node_modules/oax<br>
node ./postinstall.js</p>
</blockquote>
<p dir="auto">npm notice created a lockfile as package-lock.json. You should commit this file.<br>
npm WARN [email protected] No description<br>
npm WARN [email protected] No repository field.<br>
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/oax/node_modules/oax-windows-64):<br>
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"win32","arch":"x64"} (current: {"os":"darwin","arch":"x64"})<br>
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/oax/node_modules/oax-linux-64):<br>
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"linux","arch":"x64"} (current: {"os":"darwin","arch":"x64"})</p>
<ul dir="auto">
<li>[email protected]<br>
added 2 packages and audited 4 packages in 1.1s<br>
found 0 vulnerabilities</li>
</ul>
<p dir="auto">[email protected] /private/tmp/d<br>
└─┬ [email protected]<br>
├── [email protected]<br>
├── UNMET OPTIONAL DEPENDENCY [email protected]<br>
└── UNMET OPTIONAL DEPENDENCY [email protected]</p>
<p dir="auto">npm WARN prepare removing existing node_modules/ before installation</p>
<blockquote>
<p dir="auto">[email protected] postinstall /private/tmp/d/node_modules/oax<br>
node ./postinstall.js</p>
</blockquote>
<p dir="auto">added 3 packages in 0.722s<br>
[email protected] /private/tmp/d<br>
└─┬ [email protected]<br>
├── [email protected]<br>
├── [email protected]<br>
└── UNMET OPTIONAL DEPENDENCY [email protected]<br>
</p></pre><p dir="auto"></p>
</details>
<h2 dir="auto">Where</h2>
<ul dir="auto">
<li>n/a</li>
</ul>
<h2 dir="auto">How</h2>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">currently it looks like npm ci is broken for optional dependencies which use the os and arch fields of package.json</p>
<h3 dir="auto">Steps to Reproduce</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ npm init -y; npm i [email protected]; npm ls; npm ci; npm ls"><pre class="notranslate">$ npm init -y<span class="pl-k">;</span> npm i [email protected]<span class="pl-k">;</span> npm ls<span class="pl-k">;</span> npm ci<span class="pl-k">;</span> npm ls</pre></div>
<p dir="auto">You should see that <code class="notranslate">npm i</code> works correctly and installs a single optional dependency for oax.<br>
You should also see that <code class="notranslate">npm ci</code> works incorrectly and installs two of the optional dependencies for oax, this should never happen as each optional dependency is targeting a different operating system and architecture, it should be impossible to have more than one of the optional dependencies installed.</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">it should install oax-darwin when running on darwin and should install oax-linux when running on linux</p>
<h2 dir="auto">Who</h2>
<ul dir="auto">
<li>n/a</li>
</ul>
<h2 dir="auto">References</h2>
<ul dir="auto">
<li>n/a</li>
</ul> | 1 |
<h3 dir="auto">Is your feature request related to a problem? Please describe.</h3>
<p dir="auto">May be needed to access.</p>
<h3 dir="auto">Describe the solution you'd like.</h3>
<p dir="auto"><code class="notranslate">.loc</code> and <code class="notranslate">.scale</code>, or methods.</p>
<h3 dir="auto">Describe alternatives you've considered.</h3>
<p dir="auto">No.</p>
<h3 dir="auto">Additional context (e.g. screenshots, GIFs)</h3>
<p dir="auto">Messing with args when differrent dists have different args and they can be either keyword or positional ones is extremily inconvenient. <code class="notranslate">loc</code> and <code class="notranslate">scale</code> are universal ones, so should be available easily.</p> | <p dir="auto">It would be useful to easily get access to distribution arguments.</p>
<p dir="auto">for example</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
a=scipy.stat.norm(1, 3)
b=scipy.stat.norm(loc=1, scale=2)
c=scipy.stat.norm(1, scale=2)"><pre class="notranslate"><span class="pl-s1">a</span><span class="pl-c1">=</span><span class="pl-s1">scipy</span>.<span class="pl-s1">stat</span>.<span class="pl-en">norm</span>(<span class="pl-c1">1</span>, <span class="pl-c1">3</span>)
<span class="pl-s1">b</span><span class="pl-c1">=</span><span class="pl-s1">scipy</span>.<span class="pl-s1">stat</span>.<span class="pl-en">norm</span>(<span class="pl-s1">loc</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">scale</span><span class="pl-c1">=</span><span class="pl-c1">2</span>)
<span class="pl-s1">c</span><span class="pl-c1">=</span><span class="pl-s1">scipy</span>.<span class="pl-s1">stat</span>.<span class="pl-en">norm</span>(<span class="pl-c1">1</span>, <span class="pl-s1">scale</span><span class="pl-c1">=</span><span class="pl-c1">2</span>)</pre></div>
<p dir="auto">In <code class="notranslate">a</code> params go to <code class="notranslate">args</code> and in <code class="notranslate">b</code> into <code class="notranslate">kwds</code>. In <code class="notranslate">c</code> <code class="notranslate">loc</code> goes to <code class="notranslate">args</code> and <code class="notranslate">scale</code> to <code class="notranslate">kwds</code>. So how am I going to get distributions parameters in a uniform way? For example to get a <code class="notranslate">name -> value</code> mapping. I guess you have some internal function for that, could you document and expose it? Or alternatively it may worth to make params available as attrs of a distr:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="a.loc
a.scale"><pre class="notranslate"><span class="pl-s1">a</span>.<span class="pl-s1">loc</span>
<span class="pl-s1">a</span>.<span class="pl-s1">scale</span></pre></div> | 1 |
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: 1.36.1</li>
<li>Operating System: Ubuntu LTS</li>
<li>Browser: Chromium</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li>
</ul>
<p dir="auto"><strong>Test file (self-contained)</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { test } from '@playwright/test';
test('', async(fixtures, testInfo) => {
fixtures;
});"><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-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">''</span><span class="pl-kos">,</span> <span class="pl-k">async</span><span class="pl-kos">(</span><span class="pl-s1">fixtures</span><span class="pl-kos">,</span> <span class="pl-s1">testInfo</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s1">fixtures</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">According to <a href="https://playwright.dev/docs/api/class-test#test-call" rel="nofollow">docs</a>, 1st argument of <code class="notranslate">testFunction</code> is <a href="https://playwright.dev/docs/api/class-fixtures" rel="nofollow">Fixtures</a>. However, when actually writing code, I am seeing <em>properties</em> of fixtures in addition to fixtures:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/3331946/256612940-90e247d8-257e-473e-96f4-89fc4167ca7d.png"><img src="https://user-images.githubusercontent.com/3331946/256612940-90e247d8-257e-473e-96f4-89fc4167ca7d.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This doesn't really make sense from the documentation point of since <a href="https://playwright.dev/docs/test-fixtures#built-in-fixtures" rel="nofollow">built-in fixtures</a> only list 6 fixtures. Further more, in <a href="https://playwright.dev/docs/auth#moderate-one-account-per-parallel-worker" rel="nofollow">Auth guide</a> we are shown that we can override <code class="notranslate">storageState</code> "fixture". However, <code class="notranslate">storageState</code> is really property of <a href="https://playwright.dev/docs/api/class-browsercontext#browser-context-storage-state" rel="nofollow">Context fixture</a> and not a standalone fixture.</p>
<p dir="auto">I guess for newcomers it's a bit confusing since fixtures and their properties are used interchangeably. For example, you can override the entire <code class="notranslate">Page</code> class or just <code class="notranslate">storageState</code>. Also, it is not really stated that <code class="notranslate">testFunction</code> splats fixtures where you can also access properties of the fixtures. It's really confusing when you expect 6 fixtures but instead presented with a list of dozens and not really sure (initially) where those come from.</p> | <p dir="auto">Similar to Fiddler's autoresponder feature we could use the <code class="notranslate">BrowserContext.route</code> function to create responses based on an exported har file from a previous playwright run</p>
<p dir="auto">maybe something like this:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import * as playwright from 'playwright';
import { Har, Entry, Response } from './har';
export interface HarAutoResponderOptions {
unmatchedRequestHandling?: 'ignore' | 'continue';
}
type AutoResponderResponse = {
body?: string;
contentType?: string;
headers?: { [key: string]: string; };
status?: number;
}
export class HarAutoResponder {
constructor(
private readonly har: Har,
private readonly options: HarAutoResponderOptions = {}) {
}
async applyTo(context: playwright.BrowserContext | playwright.Page) {
context.route(_ => true, async (route, request) => {
const matchedEntry = this.matchEntry(request);
if (!matchedEntry) {
if (this.options.unmatchedRequestHandling === 'continue') {
return await route.continue();
} else {
return;
}
}
const response = this.createResponse(matchedEntry.response);
await route.fulfill(response);
});
}
private createResponse(response: Response): AutoResponderResponse {
const headers = response.headers.reduce((acc, header) => {
acc[header.name] = header.value;
return acc;
}, {});
const body = response.content.text;
const status = response.status;
const contentType = response.content.mimeType;
return {
headers,
body,
status,
contentType
}
}
private matchEntry(request: playwright.Request): Entry | undefined {
for (const entry of this.har.log.entries) {
if (entry.request.url === request.url()) {
return entry;
}
}
return undefined;
}
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">playwright</span> <span class="pl-k">from</span> <span class="pl-s">'playwright'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Har</span><span class="pl-kos">,</span> <span class="pl-smi">Entry</span><span class="pl-kos">,</span> <span class="pl-smi">Response</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./har'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">interface</span> <span class="pl-smi">HarAutoResponderOptions</span> <span class="pl-kos">{</span>
<span class="pl-c1">unmatchedRequestHandling</span>?: <span class="pl-s">'ignore'</span> <span class="pl-c1">|</span> <span class="pl-s">'continue'</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">type</span> <span class="pl-smi">AutoResponderResponse</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">body</span>?: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">contentType</span>?: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">headers</span>?: <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">key</span>: <span class="pl-smi">string</span><span class="pl-kos">]</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-c1">status</span>?: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">HarAutoResponder</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span>
<span class="pl-k">private</span> <span class="pl-k">readonly</span> <span class="pl-s1">har</span>: <span class="pl-smi">Har</span><span class="pl-kos">,</span>
<span class="pl-k">private</span> <span class="pl-k">readonly</span> <span class="pl-s1">options</span>: <span class="pl-smi">HarAutoResponderOptions</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-k">async</span> <span class="pl-en">applyTo</span><span class="pl-kos">(</span><span class="pl-s1">context</span>: <span class="pl-s1">playwright</span><span class="pl-kos">.</span><span class="pl-smi">BrowserContext</span> <span class="pl-c1">|</span> <span class="pl-s1">playwright</span><span class="pl-kos">.</span><span class="pl-smi">Page</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">context</span><span class="pl-kos">.</span><span class="pl-en">route</span><span class="pl-kos">(</span><span class="pl-s1">_</span> <span class="pl-c1">=></span> <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-s1">route</span><span class="pl-kos">,</span> <span class="pl-s1">request</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">matchedEntry</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">matchEntry</span><span class="pl-kos">(</span><span class="pl-s1">request</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-c1">!</span><span class="pl-s1">matchedEntry</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">options</span><span class="pl-kos">.</span><span class="pl-c1">unmatchedRequestHandling</span> <span class="pl-c1">===</span> <span class="pl-s">'continue'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-k">await</span> <span class="pl-s1">route</span><span class="pl-kos">.</span><span class="pl-en">continue</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">const</span> <span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">createResponse</span><span class="pl-kos">(</span><span class="pl-s1">matchedEntry</span><span class="pl-kos">.</span><span class="pl-c1">response</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">route</span><span class="pl-kos">.</span><span class="pl-en">fulfill</span><span class="pl-kos">(</span><span class="pl-s1">response</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">private</span> <span class="pl-en">createResponse</span><span class="pl-kos">(</span><span class="pl-s1">response</span>: <span class="pl-smi">Response</span><span class="pl-kos">)</span>: <span class="pl-smi">AutoResponderResponse</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">headers</span> <span class="pl-c1">=</span> <span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">headers</span><span class="pl-kos">.</span><span class="pl-en">reduce</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">acc</span><span class="pl-kos">,</span> <span class="pl-s1">header</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s1">acc</span><span class="pl-kos">[</span><span class="pl-s1">header</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">header</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-s1">acc</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">body</span> <span class="pl-c1">=</span> <span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">content</span><span class="pl-kos">.</span><span class="pl-c1">text</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">status</span> <span class="pl-c1">=</span> <span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">status</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">contentType</span> <span class="pl-c1">=</span> <span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">content</span><span class="pl-kos">.</span><span class="pl-c1">mimeType</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-kos">{</span>
headers<span class="pl-kos">,</span>
body<span class="pl-kos">,</span>
status<span class="pl-kos">,</span>
contentType
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">private</span> <span class="pl-en">matchEntry</span><span class="pl-kos">(</span><span class="pl-s1">request</span>: <span class="pl-s1">playwright</span><span class="pl-kos">.</span><span class="pl-smi">Request</span><span class="pl-kos">)</span>: <span class="pl-smi">Entry</span> <span class="pl-c1">|</span> <span class="pl-c1">undefined</span> <span class="pl-kos">{</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">entry</span> <span class="pl-k">of</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">har</span><span class="pl-kos">.</span><span class="pl-c1">log</span><span class="pl-kos">.</span><span class="pl-c1">entries</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">entry</span><span class="pl-kos">.</span><span class="pl-c1">request</span><span class="pl-kos">.</span><span class="pl-c1">url</span> <span class="pl-c1">===</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-en">url</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">entry</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">return</span> <span class="pl-c1">undefined</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div> | 0 |
<p dir="auto">hi.</p>
<p dir="auto">Thank you for using bebel. I have a question.<br>
After I used bable, my code changed from</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var obj = {
// key wrapped '
'key': "value"
};"><pre class="notranslate"><code class="notranslate">var obj = {
// key wrapped '
'key': "value"
};
</code></pre></div>
<p dir="auto">to</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var obj = {
// ' is rejected
key: "value"
};"><pre class="notranslate"><code class="notranslate">var obj = {
// ' is rejected
key: "value"
};
</code></pre></div>
<p dir="auto">Almost all transform is ok.<br>
But to change from <code class="notranslate">'key'</code> to <code class="notranslate">key</code> is not ok for me.<br>
I want the result to be <code class="notranslate">'key' -> 'key'</code>, so I want to keep <code class="notranslate">'key'</code> as it.<br>
In order to do it, what I should do?</p> | <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default {
'bind' (value, f) {},
'null' () {},
'for' () {},
'return' () {}
}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">{</span>
<span class="pl-s">'bind'</span> <span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">,</span> <span class="pl-s1">f</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">'null'</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">'for'</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">'return'</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">Gets converted to:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""use strict";
module.exports = {
bind: function bind(value, f) {},
"null": function _null() {},
"for": function _for() {},
"return": function _return() {}
};"><pre class="notranslate"><span class="pl-s">"use strict"</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-kos">{</span>
<span class="pl-en">bind</span>: <span class="pl-k">function</span> <span class="pl-en">bind</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">,</span> <span class="pl-s1">f</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">"null"</span>: <span class="pl-k">function</span> <span class="pl-en">_null</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"for"</span>: <span class="pl-k">function</span> <span class="pl-en">_for</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">"return"</span>: <span class="pl-k">function</span> <span class="pl-en">_return</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">Not the missing quotes for <code class="notranslate">bind</code></p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mbogoevici" rel="nofollow">Marius Bogoevici</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8656?redirect=false" rel="nofollow">SPR-8656</a></strong> and commented</p>
<p dir="auto">Suppose there is a class</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Controller
@RequestMapping("/foo")
public class FooController{
@RequestMapping(value="/{id}", method=RequestMethod.GET)
public String viewFoo(@PathVariable("id") Long id) {
...
}
}"><pre class="notranslate"><span class="pl-c1">@</span><span class="pl-c1">Controller</span>
<span class="pl-c1">@</span><span class="pl-c1">RequestMapping</span>(<span class="pl-s">"/foo"</span>)
<span class="pl-k">public</span> <span class="pl-k">class</span> <span class="pl-smi">FooController</span>{
<span class="pl-c1">@</span><span class="pl-c1">RequestMapping</span>(<span class="pl-s1">value</span>=<span class="pl-s">"/{id}"</span>, <span class="pl-s1">method</span>=<span class="pl-smi">RequestMethod</span>.<span class="pl-c1">GET</span>)
<span class="pl-k">public</span> <span class="pl-smi">String</span> <span class="pl-en">viewFoo</span>(<span class="pl-c1">@</span><span class="pl-c1">PathVariable</span>(<span class="pl-s">"id"</span>) <span class="pl-smi">Long</span> <span class="pl-s1">id</span>) {
...
}
}</pre></div>
<p dir="auto">After applying an advice (e.g. using <aop:aspectj-autoproxy proxy-target-class="true"/>), a proxy class instance will be used as a controller. However, the framework will try use information from the proxy class to handle the request, which will result in various errors (e.g. parameter mappings are not available due to the fact that <code class="notranslate">@PathVariable</code> is lost, etc).</p>
<p dir="auto">A suggestion in this case would be to detect that the controller is in fact a proxy and to try to read the metadata from the target class.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 M2</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=tuomas_kiviaho" rel="nofollow">Tuomas Kiviaho</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8491?redirect=false" rel="nofollow">SPR-8491</a></strong> and commented</p>
<p dir="auto">java.awt.Component has both</p>
<p dir="auto">public void setSize(int width, int height)<br>
and<br>
public void setSize(Dimension d)</p>
<p dir="auto">introspection of classes derived from this base class (using BeanUtils.getPropertyDescriptor) now crashes with following exception</p>
<p dir="auto">...<br>
Caused by: java.beans.IntrospectionException: type mismatch between indexed and non-indexed methods: size<br>
at java.beans.IndexedPropertyDescriptor.findIndexedPropertyType(IndexedPropertyDescriptor.java:341)<br>
at java.beans.IndexedPropertyDescriptor.setIndexedWriteMethod(IndexedPropertyDescriptor.java:248)<br>
at org.springframework.beans.ExtendedBeanInfo.addOrUpdatePropertyDescriptor(ExtendedBeanInfo.java:233)<br>
at org.springframework.beans.ExtendedBeanInfo.addOrUpdatePropertyDescriptor(ExtendedBeanInfo.java:178)<br>
at org.springframework.beans.ExtendedBeanInfo.<init>(ExtendedBeanInfo.java:108)<br>
at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:224)<br>
... 92 more</p>
<p dir="auto">I guess that this can be omitted by first checking whether or not index method really has to be updated or not (it seems to be already null)</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 M2</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/18416/SPR-8491.zip" rel="nofollow">SPR-8491.zip</a> (<em>3.02 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398115291" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13448" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13448/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13448">#13448</a> ExtendedBeanInfo raises 'type mismatch' error with covariant property types (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398116085" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13571" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13571/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13571">#13571</a> Regression - Introspection with BeanUtils started failing for java.math.BigDecimal</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398155112" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14663" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14663/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14663">#14663</a> Overhaul non-void JavaBean write method support</li>
</ul>
<p dir="auto">3 votes, 5 watchers</p> | 0 |
<p dir="auto"><strong>Apache Airflow version</strong>:1.10.12</p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>): v.1.14.8</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>:AWS/EKS</li>
<li><strong>OS</strong> (e.g. from /etc/os-release):</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">I upgraded my airflow cluster from 1.10.10 to 1.10.12 and the python version from 3.7 to 3.8. The cluster is deployed on EKS using the K8s executor and syncing logs using s3. I found a repeatable bug on the UI. When I try to get the logs from a dag with just one attempt, it tries to get the logs from the pod, and as we erased the pods by default when they finished using the airflow.cfg options, so as the pod is erased, it cannot fetch logs from the pod, and it raised an error instead of searching the logs from S3.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
*** Unable to fetch logs from worker pod hermesemaileventshermesemaileventstransationalloadredshift-7ffa ***
(403)
Reason: Forbidden"><pre lang="***" class="notranslate"><code class="notranslate">
*** Unable to fetch logs from worker pod hermesemaileventshermesemaileventstransationalloadredshift-7ffa ***
(403)
Reason: Forbidden
</code></pre></div>
<p dir="auto">When the task has two attempts, I can sync the logs from the UI easily</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="*** Reading remote log from s3://wt-prod-euwest1-zephyr/logs/adsales/adsales-shutterstock-image-report/2020-10-06T08:30:00+00:00/8.log."><pre class="notranslate"><code class="notranslate">*** Reading remote log from s3://wt-prod-euwest1-zephyr/logs/adsales/adsales-shutterstock-image-report/2020-10-06T08:30:00+00:00/8.log.
</code></pre></div>
<p dir="auto">I think this bug is related to this PR. <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="608864811" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/8626" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/8626/hovercard" href="https://github.com/apache/airflow/pull/8626">#8626</a></p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">Be able to sync the logs from s3 after the pod is deleted. If the pod do not exist it should be able to fetch logs from a remote storage</p>
<p dir="auto"><strong>How to reproduce it</strong>:</p>
<p dir="auto"><strong>Anything else we need to know</strong>:</p> | <p dir="auto">Dear Airflow Maintainers,</p>
<p dir="auto">Before I tell you about my issue, let me describe my environment:</p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>
<p dir="auto">Version of Airflow: 1.7.0</p>
</li>
<li>
<p dir="auto">Airflow components and configuration: running a scheduler with local executor</p>
</li>
<li>
<p dir="auto">Example code to reproduce the bug:<br>
<code class="notranslate">airflow.cfg</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[core]
airflow_home = ~/airflow
dags_folder = dags"><pre class="notranslate"><code class="notranslate">[core]
airflow_home = ~/airflow
dags_folder = dags
</code></pre></div>
</li>
<li>
<p dir="auto">Operating System: Linux ubu91 3.13.0-83-generic <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94613830" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/127" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/127/hovercard" href="https://github.com/apache/airflow/pull/127">#127</a>~precise1-Ubuntu SMP Fri Mar 11 12:53:08 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux</p>
</li>
<li>
<p dir="auto">Python Version: Python 2.7.3</p>
</li>
</ul>
<p dir="auto">Now that you know a little about me, let me tell you about the issue I am having:</p>
<h3 dir="auto">Description of Issue</h3>
<ul dir="auto">
<li>What did you expect to happen?</li>
</ul>
<p dir="auto">When I configure a relative path as <code class="notranslate">dags_folder</code> in <code class="notranslate">airflow.cfg</code>, I expect dags in this folder to be found, scheduled, and executed, as it used to be the case in Airflow 1.6.2.<br>
Or, at the very least, if relative paths are not supposed to be used, this should be documented and an error message given that the configuration is invalid.</p>
<ul dir="auto">
<li>What happened instead?</li>
</ul>
<p dir="auto">The dags where found and scheduled, but the execution failed. The command the scheduler passes to the executor seems to be confused by the relative path and mixes things up, resulting in a wrong path to the dag passed to the executor. I find the following in the scheduler output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2016-04-06 14:44:31,680] {sequential_executor.py:27} INFO - Executing command: airflow run notify_wsgi notify_wsgi 2016-02-26T14:56:01.750588 --local -sd DAGS_FOLDER//home/PHI-TPS/amerkel/airflow/dag.py
[2016-04-06 14:44:32,058] {__init__.py:36} INFO - Using executor SequentialExecutor
Traceback (most recent call last):
File "/home/PHI-TPS/amerkel/venv/airflow/bin/airflow", line 15, in <module>
args.func(args)
File "/home/PHI-TPS/amerkel/venv/airflow/local/lib/python2.7/site-packages/airflow/bin/cli.py", line 167, in run
raise AirflowException(msg)
airflow.utils.AirflowException: DAG [notify_wsgi] could not be found in /home/PHI-TPS/amerkel/airflow/dags/home/PHI-TPS/amerkel/airflow/dag.py"><pre class="notranslate"><code class="notranslate">[2016-04-06 14:44:31,680] {sequential_executor.py:27} INFO - Executing command: airflow run notify_wsgi notify_wsgi 2016-02-26T14:56:01.750588 --local -sd DAGS_FOLDER//home/PHI-TPS/amerkel/airflow/dag.py
[2016-04-06 14:44:32,058] {__init__.py:36} INFO - Using executor SequentialExecutor
Traceback (most recent call last):
File "/home/PHI-TPS/amerkel/venv/airflow/bin/airflow", line 15, in <module>
args.func(args)
File "/home/PHI-TPS/amerkel/venv/airflow/local/lib/python2.7/site-packages/airflow/bin/cli.py", line 167, in run
raise AirflowException(msg)
airflow.utils.AirflowException: DAG [notify_wsgi] could not be found in /home/PHI-TPS/amerkel/airflow/dags/home/PHI-TPS/amerkel/airflow/dag.py
</code></pre></div>
<p dir="auto">(please note the duplication of the home directory in the path given in the last line of the traceback)</p>
<ul dir="auto">
<li>Here is how you can reproduce this issue on your machine:</li>
</ul>
<h3 dir="auto">Reproduction Steps</h3>
<ol dir="auto">
<li>configure <code class="notranslate">dags_folder</code> using a relative path</li>
<li>put a DAG in the folder you configured</li>
<li>run <code class="notranslate">airflow scheduler</code></li>
</ol> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.1</li>
<li>Operating System version: win10</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>config dubbo.provider.group=xxx or dubbo.provider.version=x.x.x</li>
<li>export providers as rest protocol</li>
<li>startup application will NPE</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?<br>
fine</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?<br>
NPE</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.NullPointerException: null
at org.apache.dubbo.rpc.protocol.rest.RestProtocol.doExport(RestProtocol.java:99) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.rpc.protocol.AbstractProxyProtocol.export(AbstractProxyProtocol.java:78) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:63) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:61) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:122) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.registry.integration.RegistryProtocol.lambda$doLocalExport$2(RegistryProtocol.java:245) ~[dubbo-2.7.3.jar:2.7.3]
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) ~[na:1.8.0_102]
at org.apache.dubbo.registry.integration.RegistryProtocol.doLocalExport(RegistryProtocol.java:243) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:209) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:61) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:59) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:120) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:607) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:457) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:415) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:378) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.config.spring.ServiceBean.export(ServiceBean.java:336) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:114) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:60) ~[dubbo-2.7.3.jar:2.7.3]"><pre class="notranslate"><code class="notranslate">java.lang.NullPointerException: null
at org.apache.dubbo.rpc.protocol.rest.RestProtocol.doExport(RestProtocol.java:99) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.rpc.protocol.AbstractProxyProtocol.export(AbstractProxyProtocol.java:78) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:63) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:61) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:122) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.registry.integration.RegistryProtocol.lambda$doLocalExport$2(RegistryProtocol.java:245) ~[dubbo-2.7.3.jar:2.7.3]
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660) ~[na:1.8.0_102]
at org.apache.dubbo.registry.integration.RegistryProtocol.doLocalExport(RegistryProtocol.java:243) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:209) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.qos.protocol.QosProtocolWrapper.export(QosProtocolWrapper.java:61) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:59) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:120) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:607) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:457) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:415) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.config.ServiceConfig.export(ServiceConfig.java:378) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.config.spring.ServiceBean.export(ServiceBean.java:336) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:114) ~[dubbo-2.7.3.jar:2.7.3]
at org.apache.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:60) ~[dubbo-2.7.3.jar:2.7.3]
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/21060863/67087831-4dad2900-f1d6-11e9-8b8c-1fe41e452224.png"><img src="https://user-images.githubusercontent.com/21060863/67087831-4dad2900-f1d6-11e9-8b8c-1fe41e452224.png" alt="image" style="max-width: 100%;"></a><br>
发生这个问题的主要原因是当使用dubbo.provider/consumer指定分组/版本信息时候,分组/版本等default元数据没正确的存入到ApplicationModel中。</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/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.3</li>
<li>Operating System version: Win7</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>Generic invoke</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ApplicationConfig application = new ApplicationConfig();
application.setName("api-generic-consumer");
ReferenceConfig<GenericService> reference = new ReferenceConfig<>();
reference.setUrl("dubbo://ip:port/com.xxx.XXXService");
reference.setVersion("1.0.0");
reference.setGeneric(true);
reference.setApplication(application);
reference.setInterface("com.xxx.XXXService");
GenericService genericService = reference.get();
Object obj = genericService.$invoke("getYYY", new String[]{Long.class.getName()}, new Long[]{1L});
String json = JsonUtils.toJson(obj);
System.out.println(json);"><pre class="notranslate"><code class="notranslate">ApplicationConfig application = new ApplicationConfig();
application.setName("api-generic-consumer");
ReferenceConfig<GenericService> reference = new ReferenceConfig<>();
reference.setUrl("dubbo://ip:port/com.xxx.XXXService");
reference.setVersion("1.0.0");
reference.setGeneric(true);
reference.setApplication(application);
reference.setInterface("com.xxx.XXXService");
GenericService genericService = reference.get();
Object obj = genericService.$invoke("getYYY", new String[]{Long.class.getName()}, new Long[]{1L});
String json = JsonUtils.toJson(obj);
System.out.println(json);
</code></pre></div>
<ol start="2" dir="auto">
<li>ReferenceConfig.init() -> ReferenceConfig.createProxy() -> ClusterUtils.mergeUrl(), Lost after passing 'ClusterUtils.mergeUrl'.</li>
</ol>
<p dir="auto">ps. Dubbo v2.7.2 previous version verified that it will not be lost.</p>
<h3 dir="auto">Screen</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3387548/63311381-775de700-c330-11e9-9915-4a64d259886b.png"><img src="https://user-images.githubusercontent.com/3387548/63311381-775de700-c330-11e9-9915-4a64d259886b.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3387548/63311401-86449980-c330-11e9-91eb-1a39ea300a2d.png"><img src="https://user-images.githubusercontent.com/3387548/63311401-86449980-c330-11e9-91eb-1a39ea300a2d.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Get the interface return value normally.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">Consumer:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="com.alibaba.dubbo.remoting.RemotingException: Not found exported service: com.jiuyescm.account.api.IUserService:20834 in [com.jiuyescm.account.api.IPassportService:1.0.0:20834, com.jiuyescm.account.api.ILoginStrategyService:1.0.0:20834, com.jiuyescm.account.api.ILogService:1.0.0:20834, com.jiuyescm.account.api.IUserService:1.0.0:20834], may be version or group mismatch , channel: consumer: /192.168.56.1:59260 --> provider: /192.168.56.1:20834, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=[getYYY, [Ljava.lang.String;@54e64fa4, [Ljava.lang.Object;@5a21bb48], attachments={path=com.xxx.XXXService, input=309, dubbo=2.0.2, interface=com.xxx.XXXService, version=0.0.0, generic=true}]"><pre class="notranslate"><code class="notranslate">com.alibaba.dubbo.remoting.RemotingException: Not found exported service: com.jiuyescm.account.api.IUserService:20834 in [com.jiuyescm.account.api.IPassportService:1.0.0:20834, com.jiuyescm.account.api.ILoginStrategyService:1.0.0:20834, com.jiuyescm.account.api.ILogService:1.0.0:20834, com.jiuyescm.account.api.IUserService:1.0.0:20834], may be version or group mismatch , channel: consumer: /192.168.56.1:59260 --> provider: /192.168.56.1:20834, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=[getYYY, [Ljava.lang.String;@54e64fa4, [Ljava.lang.Object;@5a21bb48], attachments={path=com.xxx.XXXService, input=309, dubbo=2.0.2, interface=com.xxx.XXXService, version=0.0.0, generic=true}]
</code></pre></div>
<p dir="auto">Provider:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2019-08-20 09:59:42.456 [New I/O worker #7] INFO com.alibaba.dubbo.common.logger.log4j.Log4jLogger.info(Log4jLogger.java:66) - [DUBBO] Not found exported service: com.xxx.XXXService:20834 in [com.xxx.AAAService:1.0.0:20834, com.xxx.BBBService:1.0.0:20834, com.xxx.CCC:1.0.0:20834, com.xxx.XXXService:1.0.0:20834], may be version or group mismatch , channel: consumer: /192.168.56.1:59260 --> provider: /192.168.56.1:20834, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=null, attachments={path=com.xxx.XXXService, dubbo=2.0.2, interface=com.xxx.XXXService, version=0.0.0, generic=true}], dubbo version: 2.5.3, current host: 192.168.56.1 #-# com.alibaba.dubbo.remoting.RemotingException: Not found exported service: com.xxx.XXXService:20834 in [com.xxx.IPassportService:1.0.0:20834, com.xxx.ILoginStrategyService:1.0.0:20834, com.xxx.ILogService:1.0.0:20834, com.xxx.XXXService:1.0.0:20834], may be version or group mismatch , channel: consumer: /192.168.56.1:59260 --> provider: /192.168.56.1:20834, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=null, attachments={path=com.xxx.XXXService, dubbo=2.0.2, interface=com.xxx.XXXService, version=0.0.0, generic=true}]"><pre class="notranslate"><code class="notranslate">2019-08-20 09:59:42.456 [New I/O worker #7] INFO com.alibaba.dubbo.common.logger.log4j.Log4jLogger.info(Log4jLogger.java:66) - [DUBBO] Not found exported service: com.xxx.XXXService:20834 in [com.xxx.AAAService:1.0.0:20834, com.xxx.BBBService:1.0.0:20834, com.xxx.CCC:1.0.0:20834, com.xxx.XXXService:1.0.0:20834], may be version or group mismatch , channel: consumer: /192.168.56.1:59260 --> provider: /192.168.56.1:20834, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=null, attachments={path=com.xxx.XXXService, dubbo=2.0.2, interface=com.xxx.XXXService, version=0.0.0, generic=true}], dubbo version: 2.5.3, current host: 192.168.56.1 #-# com.alibaba.dubbo.remoting.RemotingException: Not found exported service: com.xxx.XXXService:20834 in [com.xxx.IPassportService:1.0.0:20834, com.xxx.ILoginStrategyService:1.0.0:20834, com.xxx.ILogService:1.0.0:20834, com.xxx.XXXService:1.0.0:20834], may be version or group mismatch , channel: consumer: /192.168.56.1:59260 --> provider: /192.168.56.1:20834, message:RpcInvocation [methodName=$invoke, parameterTypes=[class java.lang.String, class [Ljava.lang.String;, class [Ljava.lang.Object;], arguments=null, attachments={path=com.xxx.XXXService, dubbo=2.0.2, interface=com.xxx.XXXService, version=0.0.0, generic=true}]
</code></pre></div> | 0 |
<pre class="notranslate">darwin
amd64
08d20469cc20 tip
When running ./all.bash inside a tmux session, one of the tests fails.
When running it from the "normal" console (in Terminal), it passes fine.</pre> | <pre class="notranslate">go version devel +8230013d1c40 Thu Oct 04 15:42:57 2012 -0400
package x
func idct(dst []byte, stride int, src *[64]int) {
// Horizontal 1-D IDCT.
for y := 0; y < 8; y++ {
// If all the AC components are zero, then the IDCT is trivial.
if src[y*8+1] == 0 && src[y*8+2] == 0 {
dc := src[y*8+0] << 3
src[y*8+0] = dc
}
}
}
6g output:
0000 (x.go:3) TEXT idct+0(SB),$0-40
0001 (x.go:3) MOVQ src+32(FP),CX
0002 (x.go:5) MOVQ $0,AX
0003 (x.go:5) JMP ,5
0004 (x.go:5) INCQ ,AX
0005 (x.go:5) CMPQ AX,$8
0006 (x.go:5) JGE $0,49
0007 (x.go:7) MOVQ AX,BP
0008 (x.go:7) IMULQ $8,BP
0009 (x.go:7) INCQ ,BP
0010 (x.go:7) MOVQ CX,R8
0011 (x.go:7) CMPQ BP,$64
0012 (x.go:7) JCS $1,15
0013 (x.go:7) CALL ,runtime.panicindex+0(SB)
0014 (x.go:7) UNDEF ,
0015 (x.go:7) MOVQ (R8)(BP*8),BX
0016 (x.go:7) CMPQ BX,$0
0017 (x.go:7) JNE ,4
0018 (x.go:7) MOVQ AX,BP
0019 (x.go:7) IMULQ $8,BP
0020 (x.go:7) ADDQ $2,BP
0021 (x.go:7) MOVQ CX,R8
0022 (x.go:7) CMPQ BP,$64
0023 (x.go:7) JCS $1,26
0024 (x.go:7) CALL ,runtime.panicindex+0(SB)
0025 (x.go:7) UNDEF ,
0026 (x.go:7) MOVQ (R8)(BP*8),BX
0027 (x.go:7) CMPQ BX,$0
0028 (x.go:7) JNE ,4
0029 (x.go:8) MOVQ AX,BP
0030 (x.go:8) IMULQ $8,BP
0031 (x.go:8) ADDQ $0,BP
0032 (x.go:8) MOVQ CX,R8
0033 (x.go:8) CMPQ BP,$64
0034 (x.go:8) JCS $1,37
0035 (x.go:8) CALL ,runtime.panicindex+0(SB)
0036 (x.go:8) UNDEF ,
0037 (x.go:8) MOVQ (R8)(BP*8),SI
0038 (x.go:8) SHLQ $3,SI
0039 (x.go:9) MOVQ AX,BP
0040 (x.go:9) IMULQ $8,BP
0041 (x.go:9) ADDQ $0,BP
0042 (x.go:9) MOVQ CX,BX
0043 (x.go:9) CMPQ BP,$64
0044 (x.go:9) JCS $1,47
0045 (x.go:9) CALL ,runtime.panicindex+0(SB)
0046 (x.go:9) UNDEF ,
0047 (x.go:9) MOVQ SI,(BX)(BP*8)
0048 (x.go:7) JMP ,4
0049 (x.go:12) RET ,
AFter linking:
codeblk [0x2000,0x13800) at offset 0x1000
002000 main.idct | (3) TEXT main.idct+0(SB),$171798691840
002000 65488b0c25a0080000 | (3) MOVQ 2208(GS),CX
002009 483b21 | (3) CMPQ SP,(CX)
00200c 7705 | (3) JHI ,2013
00200e e89d100100 | (3) CALL ,130b0+runtime.morestack40
002013 488b4c2428 | (3) MOVQ main.src+40(SP),CX
002018 4831c0 | (5) MOVQ $0,AX
00201b 4883f808 | (5) CMPQ AX,$8
00201f 7d78 | (5) JGE $0,2099
002021 4889c5 | (7) MOVQ AX,BP
002024 486bed08 | (7) IMULQ $8,BP
002028 48ffc5 | (7) INCQ ,BP
00202b 4989c8 | (7) MOVQ CX,R8
00202e 4883fd40 | (7) CMPQ BP,$64
002032 737b | (7) JCC $1,20af
002034 498b1ce8 | (7) MOVQ (R8)(BP*8),BX
002038 4883fb00 | (7) CMPQ BX,$0
00203c 7552 | (7) JNE ,2090
00203e 4889c5 | (7) MOVQ AX,BP
002041 486bed08 | (7) IMULQ $8,BP
002045 4883c502 | (7) ADDQ $2,BP
002049 4989c8 | (7) MOVQ CX,R8
00204c 4883fd40 | (7) CMPQ BP,$64
002050 7356 | (7) JCC $1,20a8
002052 498b1ce8 | (7) MOVQ (R8)(BP*8),BX
002056 4883fb00 | (7) CMPQ BX,$0
00205a 7534 | (7) JNE ,2090
00205c 4889c5 | (8) MOVQ AX,BP
00205f 486bed08 | (8) IMULQ $8,BP
002063 4883c500 | (8) ADDQ $0,BP
002067 4989c8 | (8) MOVQ CX,R8
00206a 4883fd40 | (8) CMPQ BP,$64
00206e 7331 | (8) JCC $1,20a1
002070 498b34e8 | (8) MOVQ (R8)(BP*8),SI
002074 48c1e603 | (8) SHLQ $3,SI
002078 4889c5 | (9) MOVQ AX,BP
00207b 486bed08 | (9) IMULQ $8,BP
00207f 4883c500 | (9) ADDQ $0,BP
002083 4889cb | (9) MOVQ CX,BX
002086 4883fd40 | (9) CMPQ BP,$64
00208a 730e | (9) JCC $1,209a
00208c 488934eb | (9) MOVQ SI,(BX)(BP*8)
002090 48ffc0 | (5) INCQ ,AX
002093 4883f808 | (5) CMPQ AX,$8
002097 7c88 | (5) JLT $0,2021
002099 c3 | (12) RET ,
00209a e8017d0000 | (9) CALL ,9da0+runtime.panicindex
00209f 0f0b | (9) UNDEF ,
0020a1 e8fa7c0000 | (8) CALL ,9da0+runtime.panicindex
0020a6 0f0b | (8) UNDEF ,
0020a8 e8f37c0000 | (7) CALL ,9da0+runtime.panicindex
0020ad 0f0b | (7) UNDEF ,
0020af e8ec7c0000 | (7) CALL ,9da0+runtime.panicindex
0020b4 0f0b | (7) UNDEF ,
_ 000020b6| 00 00 00 00 00 00 00 00 00 00
The IMULQs are all by $8 and could be shifts. Also there are some instances of ADDQ $0,
BP, which are pointless.</pre> | 0 |
<p dir="auto">CSS standards have changed, meaning that CSSStyleDeclaration's indexer property does not have a setter. This leads to a script error in setValueForStyles around<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/facebook/react/blob/21d5f7d32d5becf5c8e986ff0202059be643dc15/packages/react-dom/src/shared/CSSPropertyOperations.js#L82">react/packages/react-dom/src/shared/CSSPropertyOperations.js</a>
</p>
<p class="mb-0 color-fg-muted">
Line 82
in
<a data-pjax="true" class="commit-tease-sha" href="/facebook/react/commit/21d5f7d32d5becf5c8e986ff0202059be643dc15">21d5f7d</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="L82" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="82"></td>
<td id="LC82" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">style</span><span class="pl-kos">[</span><span class="pl-s1">styleName</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">styleValue</span><span class="pl-kos">;</span> </td>
</tr>
</tbody></table>
</div>
</div>
.<p></p>
<p dir="auto">This was reported to Chrome as <a href="https://crbug.com/951046" rel="nofollow">https://crbug.com/951046</a> and resolved as by-design. Note: This issue is effectively a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="283617676" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/11895" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/11895/hovercard" href="https://github.com/facebook/react/issues/11895">#11895</a>, but I don't think I have permission to reopen that issue to provide more information.</p>
<p dir="auto">REPRO 1: Visit <a href="http://plumbandbath.co.uk/" rel="nofollow">http://plumbandbath.co.uk/</a><br>
OBSERVE: Full error page with stack trace.</p>
<p dir="auto">REPRO 2:<br>
(1) Visit <a href="https://skylifepro.com/#" rel="nofollow">https://skylifepro.com/#</a><br>
(2) Click Login button at top right</p>
<p dir="auto">EXPECT: Login html appears<br>
OBSERVE: No login feature, script errors in console.</p>
<p dir="auto">Uncaught TypeError: Failed to set an indexed property on 'CSSStyleDeclaration': Index property setter is not supported.<br>
at Object.setValueForStyles (homepage.js?t=1543226156:28)<br>
at m._updateDOMProperties (homepage.js?t=1543226156:29)<br>
at mountComponent (homepage.js?t=1543226156:29)<br>
at Object.mountComponent (homepage.js?t=1543226156:4)<br>
at c.performInitialMount (homepage.js?t=1543226156:29)<br>
at c.mountComponent (homepage.js?t=1543226156:29)<br>
at Object.mountComponent (homepage.js?t=1543226156:4)<br>
at mountChildren (homepage.js?t=1543226156:30)<br>
at m._createInitialChildren (homepage.js?t=1543226156:29)</p> | <p dir="auto">Since this.setState has a callback, it would be sweet if you could use await this.setState!</p> | 0 |
<p dir="auto">I looked at the other similar issues, including @<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="203199137" data-permission-text="Title is private" data-url="https://github.com/mwaskom/seaborn/issues/1103" data-hovercard-type="issue" data-hovercard-url="/mwaskom/seaborn/issues/1103/hovercard" href="https://github.com/mwaskom/seaborn/issues/1103">#1103</a>, and tried the recepies given there, but still haven't solved my problem.<br>
Here is the output & Thank you for the help!<br>
##########################<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37146676/39746975-42c9b06e-52ac-11e8-9607-13132acd7930.png"><img src="https://user-images.githubusercontent.com/37146676/39746975-42c9b06e-52ac-11e8-9607-13132acd7930.png" alt="mypic" style="max-width: 100%;"></a></p> | <p dir="auto">Hi, I'm trying to use the hue parameter in my charts, but whenever it gets added, the figure fails to trigger.</p>
<p dir="auto">From the examples at <a href="https://seaborn.pydata.org/tutorial/relational.html" rel="nofollow">https://seaborn.pydata.org/tutorial/relational.html</a>:</p>
<p dir="auto"><code class="notranslate">import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns sns.set(style="darkgrid") tips = sns.load_dataset("tips") sns.relplot(x="total_bill", y="tip", data=tips);</code></p>
<p dir="auto">The above draws correctly, but when I add:</p>
<p dir="auto"><code class="notranslate">sns.relplot(x="total_bill", y="tip", hue="smoker", data=tips);</code></p>
<p dir="auto">An error message is triggered, traced back to _backend_tk.py, backend_tkagg.py</p>
<p dir="auto">This is also true of any other plots requiring the 'style' parameter in a default scatterplot</p>
<p dir="auto">This is my Python venv environment, currently using Python 3.8:</p>
<table role="table">
<thead>
<tr>
<th>Pillow</th>
<th>7.2.0</th>
</tr>
</thead>
<tbody>
<tr>
<td>certifi</td>
<td>2020.6.20</td>
</tr>
<tr>
<td>cycler</td>
<td>0.10.0</td>
</tr>
<tr>
<td>kiwisolver</td>
<td>1.2.0</td>
</tr>
<tr>
<td>matplotlib</td>
<td>3.3.1</td>
</tr>
<tr>
<td>numpy</td>
<td>1.19.1</td>
</tr>
<tr>
<td>pandas</td>
<td>1.1.0</td>
</tr>
<tr>
<td>pip</td>
<td>20.2.2</td>
</tr>
<tr>
<td>pyparsing</td>
<td>2.4.7</td>
</tr>
<tr>
<td>python-dateutil</td>
<td>2.8.1</td>
</tr>
<tr>
<td>pytz</td>
<td>2020.1</td>
</tr>
<tr>
<td>scipy</td>
<td>1.5.2</td>
</tr>
<tr>
<td>seaborn</td>
<td>0.10.1</td>
</tr>
<tr>
<td>setuptools</td>
<td>49.6.0</td>
</tr>
<tr>
<td>six</td>
<td>1.15.0</td>
</tr>
</tbody>
</table> | 0 |
<h2 dir="auto">Feature</h2>
<p dir="auto">Dear developers,<br>
Could you please "round()" member function for "np.array", which will be more like OO programming.<br>
Here is a snippet example:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="x = np.array((13,2.5))
y = np.around(x)
y1 = x.around()"><pre class="notranslate"><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">13</span>,<span class="pl-c1">2.5</span>))
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">around</span>(<span class="pl-s1">x</span>)
<span class="pl-s1">y1</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span>.<span class="pl-en">around</span>()</pre></div> | <p dir="auto">Rank 1 matrices should be removed. They don't behave as expected. For example a rank 1 matrix transpose does not return an error and does not do a transpose as expected. This can cause silent bugs. I'm not sure what purpose these rank 1 matrices serve but they are confusing.</p> | 0 |
<p dir="auto">When you call a method with a borrowed <code class="notranslate">self</code>, the compiler appears to assume that the borrow of <code class="notranslate">self</code> starts before the other parameters to that method have been evaluated, which seems wrong. This forces you to create local variables unnecessarily. Here's an example of code that I think should compile, but doesn't:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct Thingy {
i:int
}
impl Thingy {
fn do_something_mutable(&mut self, x: int) {
// Just assume there's a real reason for self to be mutable here...
println(format!("{}", x));
}
fn get_i(&self) -> int { self.i }
}
fn main() {
let mut o = Thingy{ i: 2 };
o.do_something_mutable(o.get_i()); // This line should compile, but doesn't
}"><pre class="notranslate"><span class="pl-k">struct</span> <span class="pl-smi">Thingy</span> <span class="pl-kos">{</span>
<span class="pl-c1">i</span><span class="pl-kos">:</span><span class="pl-smi">int</span>
<span class="pl-kos">}</span>
<span class="pl-k">impl</span> <span class="pl-smi">Thingy</span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">do_something_mutable</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">x</span><span class="pl-kos">:</span> <span class="pl-smi">int</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// Just assume there's a real reason for self to be mutable here...</span>
<span class="pl-en">println</span><span class="pl-kos">(</span><span class="pl-en">format</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, x<span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">get_i</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-smi">self</span><span class="pl-kos">)</span> -> <span class="pl-smi">int</span> <span class="pl-kos">{</span> <span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-c1">i</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> <span class="pl-k">mut</span> o = <span class="pl-smi">Thingy</span><span class="pl-kos">{</span> <span class="pl-c1">i</span><span class="pl-kos">:</span> <span class="pl-c1">2</span> <span class="pl-kos">}</span><span class="pl-kos">;</span>
o<span class="pl-kos">.</span><span class="pl-en">do_something_mutable</span><span class="pl-kos">(</span>o<span class="pl-kos">.</span><span class="pl-en">get_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-c">// This line should compile, but doesn't</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">the error is this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="lifetime-call-param.rs:13:27: 13:28 error: cannot borrow `o` as immutable because it is also borrowed as mutable
lifetime-call-param.rs:13 o.do_something_mutable(o.get_i());
^
lifetime-call-param.rs:13:4: 13:5 note: second borrow of `o` occurs here
lifetime-call-param.rs:13 o.do_something_mutable(o.get_i());
^"><pre class="notranslate"><code class="notranslate">lifetime-call-param.rs:13:27: 13:28 error: cannot borrow `o` as immutable because it is also borrowed as mutable
lifetime-call-param.rs:13 o.do_something_mutable(o.get_i());
^
lifetime-call-param.rs:13:4: 13:5 note: second borrow of `o` occurs here
lifetime-call-param.rs:13 o.do_something_mutable(o.get_i());
^
</code></pre></div>
<p dir="auto">If you replace the problematic line with this it compiles and works fine:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let y = o.get_i();
o.do_something_mutable(y);"><pre class="notranslate"><code class="notranslate">let y = o.get_i();
o.do_something_mutable(y);
</code></pre></div>
<p dir="auto">but isn't that equivalent to the non-compiling version?</p> | <p dir="auto">This is challenging to resolve. I thought I could fit into the new borrow checker, but it is worth addressing separately since there are a number of subtle issues. What this really amounts to is that you need to support borrows where the lifetime of the borrow pointer does not encompass the borrow itself. To handle this safely, we wind up with two loans, the primary one and then a secondary, aliasing loan that tracks the fact that a pointer has been created, even if the memory it points at cannot be dereferenced yet.</p>
<p dir="auto">Part of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="11256078" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/5074" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/5074/hovercard" href="https://github.com/rust-lang/rust/issues/5074">#5074</a></p> | 1 |
<p dir="auto">The error is reported in case when the indexer is a union type of string|number:</p>
<p dir="auto">var a:number|string<br>
var b:any<br>
var c = b[a]; <- TS2342</p> | <p dir="auto">I have declared <code class="notranslate">function getter(key: string|number)</code>.<br>
Inside I try to do <code class="notranslate">var x = someObject[key]</code><br>
I get a TS error saying "An index expression argument must be of type 'string', 'number' or 'any'.<br>
Obviously <code class="notranslate">key</code> satisfies this constraint as it is either a string or a number. But I guess the TS compiler does hard type equality checks in this case.</p> | 1 |
<hr>
<h3 dir="auto">System information</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@:~/projects/tensorflow <master>$ cat tf_env.txt
== cat /etc/issue ===============================================
Darwin mn-mortutay 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64
Mac OS X 10.12.4
== are we in docker =============================================
No
== compiler =====================================================
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
== uname -a =====================================================
Darwin mn-mortutay 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64
== check pips ===================================================
numpy (1.13.1)
protobuf (3.3.0)
tensorflow (1.2.1)
== check for virtualenv =========================================
False
== tensorflow import ============================================
tf.VERSION = 1.2.1
tf.GIT_VERSION = v1.2.0-5-g435cdfc
tf.COMPILER_VERSION = v1.2.0-5-g435cdfc
Sanity check: array([1], dtype=int32)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import *
File "tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "tensorflow/python/pywrap_tensorflow.py", line 52, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
ImportError: No module named pywrap_tensorflow_internal
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
== env ==========================================================
LD_LIBRARY_PATH is unset
DYLD_LIBRARY_PATH is unset
== nvidia-smi ===================================================
tf_env_collect.sh: line 105: nvidia-smi: command not found
== cuda libs ==================================================="><pre class="notranslate"><code class="notranslate">@:~/projects/tensorflow <master>$ cat tf_env.txt
== cat /etc/issue ===============================================
Darwin mn-mortutay 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64
Mac OS X 10.12.4
== are we in docker =============================================
No
== compiler =====================================================
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
== uname -a =====================================================
Darwin mn-mortutay 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64
== check pips ===================================================
numpy (1.13.1)
protobuf (3.3.0)
tensorflow (1.2.1)
== check for virtualenv =========================================
False
== tensorflow import ============================================
tf.VERSION = 1.2.1
tf.GIT_VERSION = v1.2.0-5-g435cdfc
tf.COMPILER_VERSION = v1.2.0-5-g435cdfc
Sanity check: array([1], dtype=int32)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "tensorflow/__init__.py", line 24, in <module>
from tensorflow.python import *
File "tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "tensorflow/python/pywrap_tensorflow.py", line 52, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
ImportError: No module named pywrap_tensorflow_internal
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
== env ==========================================================
LD_LIBRARY_PATH is unset
DYLD_LIBRARY_PATH is unset
== nvidia-smi ===================================================
tf_env_collect.sh: line 105: nvidia-smi: command not found
== cuda libs ===================================================
</code></pre></div>
<p dir="auto">Building from commit:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="* d74f65bac (Yun Peng, 3 hours ago) Make Windows Bazel GPU build work again (#11901)"><pre class="notranslate"><code class="notranslate">* d74f65bac (Yun Peng, 3 hours ago) Make Windows Bazel GPU build work again (#11901)
</code></pre></div>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">I'm following the instructions for Mac source installation (<a href="https://www.tensorflow.org/install/install_sources" rel="nofollow">https://www.tensorflow.org/install/install_sources</a>, "Prepare environment for Mac OS" and then "Build the pip package") but I'm running into issues with BoringSSL.</p>
<p dir="auto">It looks like the <code class="notranslate">-Wunused-but-set-parameter</code> and <code class="notranslate">-Wno-free-nonheap-object</code> flags are causing the compilation to fail, since <code class="notranslate">clang</code> does not support them.</p>
<p dir="auto">Expected behavior: The build system should detect this and handle it correctly, eg. by not using the un-available flags</p>
<p dir="auto">Actual behavior: Error / fails to build</p>
<h3 dir="auto">Source code / logs</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@:~/projects/tensorflow <master>$ bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
WARNING: /Users/mortutay/projects/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately.
WARNING: /Users/mortutay/projects/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately.
INFO: Found 1 target...
INFO: From Compiling external/protobuf_archive/python/google/protobuf/internal/api_implementation.cc:
warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option]
2 warnings generated.
INFO: From Compiling external/swig/Source/Swig/typemap.c [for host]:
warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option]
2 warnings generated.
INFO: From Compiling external/grpc/src/core/lib/debug/trace.c:
warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option]
2 warnings generated.
INFO: From Compiling external/grpc/src/cpp/codegen/codegen_init.cc:
warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option]
2 warnings generated.
INFO: From Compiling external/grpc/src/core/ext/transport/chttp2/alpn/alpn.c:
warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option]
2 warnings generated.
ERROR: /private/var/tmp/_bazel_mortutay/dacb21c644505cd819865fa365d2b69e/external/boringssl/BUILD:116:1: C++ compilation of rule '@boringssl//:crypto' failed (Exit 1).
error: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Werror,-Wunknown-warning-option]
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2.829s, Critical Path: 0.91s"><pre class="notranslate"><code class="notranslate">@:~/projects/tensorflow <master>$ bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
WARNING: /Users/mortutay/projects/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately.
WARNING: /Users/mortutay/projects/tensorflow/tensorflow/contrib/learn/BUILD:15:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately.
INFO: Found 1 target...
INFO: From Compiling external/protobuf_archive/python/google/protobuf/internal/api_implementation.cc:
warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option]
2 warnings generated.
INFO: From Compiling external/swig/Source/Swig/typemap.c [for host]:
warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option]
2 warnings generated.
INFO: From Compiling external/grpc/src/core/lib/debug/trace.c:
warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option]
2 warnings generated.
INFO: From Compiling external/grpc/src/cpp/codegen/codegen_init.cc:
warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option]
2 warnings generated.
INFO: From Compiling external/grpc/src/core/ext/transport/chttp2/alpn/alpn.c:
warning: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Wunknown-warning-option]
2 warnings generated.
ERROR: /private/var/tmp/_bazel_mortutay/dacb21c644505cd819865fa365d2b69e/external/boringssl/BUILD:116:1: C++ compilation of rule '@boringssl//:crypto' failed (Exit 1).
error: unknown warning option '-Wunused-but-set-parameter'; did you mean '-Wunused-parameter'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-free-nonheap-object'; did you mean '-Wno-sequence-point'? [-Werror,-Wunknown-warning-option]
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2.829s, Critical Path: 0.91s
</code></pre></div> | <p dir="auto">Tensorflow v2.0a</p>
<p dir="auto">When creating e.g. keras models I would assume, that when I run <code class="notranslate">make_generator_model</code> twice in eager mode that the <code class="notranslate">trainable_variable</code> names are identical.</p>
<p dir="auto"><strong>Why would I assume this?</strong><br>
Because the <code class="notranslate">tf.train.Checkpoint</code> and <code class="notranslate">Checkpointable</code> api makes you believe that variables are coupled with their corresponding object/class and uniquification of variables would be no longer necessary. And indeed, this is the case when creating a variable with the same name twice (as can be seen at the end of the code)</p>
<p dir="auto"><strong>What do I get instead?</strong><br>
In the below example the variables of the second <code class="notranslate">make_generator_model()</code> call will be <code class="notranslate">uniquified</code>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# First call
['dense/kernel:0', 'batch_normalization_v2/gamma:0', 'batch_normalization_v2/beta:0', 'conv2d_transpose/kernel:0', 'batch_normalization_v2_1/gamma:0', 'batch_normalization_v2_1/beta:0', 'conv2d_transpose_1/kernel:0', 'batch_normalization_v2_2/gamma:0', 'batch_normalization_v2_2/beta:0', 'conv2d_transpose_2/kernel:0']
# Second
['dense_1/kernel:0', 'batch_normalization_v2_3/gamma:0', 'batch_normalization_v2_3/beta:0', 'conv2d_transpose_3/kernel:0', 'batch_normalization_v2_4/gamma:0', 'batch_normalization_v2_4/beta:0', 'conv2d_transpose_4/kernel:0', 'batch_normalization_v2_5/gamma:0', 'batch_normalization_v2_5/beta:0', 'conv2d_transpose_5/kernel:0']
# Third
['dense/kernel:0', 'batch_normalization_v2/gamma:0', 'batch_normalization_v2/beta:0', 'conv2d_transpose/kernel:0', 'batch_normalization_v2_1/gamma:0', 'batch_normalization_v2_1/beta:0', 'conv2d_transpose_1/kernel:0', 'batch_normalization_v2_2/gamma:0', 'batch_normalization_v2_2/beta:0', 'conv2d_transpose_2/kernel:0']
# Fourth
['dense/kernel:0', 'batch_normalization_v2/gamma:0', 'batch_normalization_v2/beta:0', 'conv2d_transpose/kernel:0', 'batch_normalization_v2_1/gamma:0', 'batch_normalization_v2_1/beta:0', 'conv2d_transpose_1/kernel:0', 'batch_normalization_v2_2/gamma:0', 'batch_normalization_v2_2/beta:0', 'conv2d_transpose_2/kernel:0']
# Manual Creation
<tf.Variable 'test:0' shape=() dtype=int32, numpy=1>
<tf.Variable 'test:0' shape=() dtype=int32, numpy=1>"><pre class="notranslate"><code class="notranslate"># First call
['dense/kernel:0', 'batch_normalization_v2/gamma:0', 'batch_normalization_v2/beta:0', 'conv2d_transpose/kernel:0', 'batch_normalization_v2_1/gamma:0', 'batch_normalization_v2_1/beta:0', 'conv2d_transpose_1/kernel:0', 'batch_normalization_v2_2/gamma:0', 'batch_normalization_v2_2/beta:0', 'conv2d_transpose_2/kernel:0']
# Second
['dense_1/kernel:0', 'batch_normalization_v2_3/gamma:0', 'batch_normalization_v2_3/beta:0', 'conv2d_transpose_3/kernel:0', 'batch_normalization_v2_4/gamma:0', 'batch_normalization_v2_4/beta:0', 'conv2d_transpose_4/kernel:0', 'batch_normalization_v2_5/gamma:0', 'batch_normalization_v2_5/beta:0', 'conv2d_transpose_5/kernel:0']
# Third
['dense/kernel:0', 'batch_normalization_v2/gamma:0', 'batch_normalization_v2/beta:0', 'conv2d_transpose/kernel:0', 'batch_normalization_v2_1/gamma:0', 'batch_normalization_v2_1/beta:0', 'conv2d_transpose_1/kernel:0', 'batch_normalization_v2_2/gamma:0', 'batch_normalization_v2_2/beta:0', 'conv2d_transpose_2/kernel:0']
# Fourth
['dense/kernel:0', 'batch_normalization_v2/gamma:0', 'batch_normalization_v2/beta:0', 'conv2d_transpose/kernel:0', 'batch_normalization_v2_1/gamma:0', 'batch_normalization_v2_1/beta:0', 'conv2d_transpose_1/kernel:0', 'batch_normalization_v2_2/gamma:0', 'batch_normalization_v2_2/beta:0', 'conv2d_transpose_2/kernel:0']
# Manual Creation
<tf.Variable 'test:0' shape=() dtype=int32, numpy=1>
<tf.Variable 'test:0' shape=() dtype=int32, numpy=1>
</code></pre></div>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf
from tensorflow.keras import layers
def make_generator_model():
model = tf.keras.Sequential()
model.add(layers.Dense(7*7*256, use_bias=False, input_shape=(100,)))
model.add(layers.BatchNormalization())
model.add(layers.LeakyReLU())
model.add(layers.Reshape((7, 7, 256)))
assert model.output_shape == (None, 7, 7, 256) # Note: None is the batch size
model.add(layers.Conv2DTranspose(128, (5, 5), strides=(1, 1), padding='same', use_bias=False))
assert model.output_shape == (None, 7, 7, 128)
model.add(layers.BatchNormalization())
model.add(layers.LeakyReLU())
model.add(layers.Conv2DTranspose(64, (5, 5), strides=(2, 2), padding='same', use_bias=False))
assert model.output_shape == (None, 14, 14, 64)
model.add(layers.BatchNormalization())
model.add(layers.LeakyReLU())
model.add(layers.Conv2DTranspose(1, (5, 5), strides=(2, 2), padding='same', use_bias=False, activation='tanh'))
assert model.output_shape == (None, 28, 28, 1)
return model
m1 = make_generator_model()
noise = tf.random.normal([1, 100])
generated_image = m1(noise, training=False)
print([v.name for v in m1.trainable_variables])
m2 = make_generator_model()
noise = tf.random.normal([1, 100])
generated_image = m2(noise, training=False)
print([v.name for v in m2.trainable_variables])
with tf.Graph().as_default():
m1 = make_generator_model()
noise = tf.random.normal([1, 100])
generated_image = m1(noise, training=False)
print([v.name for v in m1.trainable_variables])
with tf.Graph().as_default():
m2 = make_generator_model()
noise = tf.random.normal([1, 100])
generated_image = m2(noise, training=False)
print([v.name for v in m2.trainable_variables])
a = tf.Variable(1, name='test')
b = tf.Variable(1, name='test')
print(a)
print(b)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">keras</span> <span class="pl-k">import</span> <span class="pl-s1">layers</span>
<span class="pl-k">def</span> <span class="pl-en">make_generator_model</span>():
<span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">keras</span>.<span class="pl-v">Sequential</span>()
<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-s1">layers</span>.<span class="pl-v">Dense</span>(<span class="pl-c1">7</span><span class="pl-c1">*</span><span class="pl-c1">7</span><span class="pl-c1">*</span><span class="pl-c1">256</span>, <span class="pl-s1">use_bias</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">input_shape</span><span class="pl-c1">=</span>(<span class="pl-c1">100</span>,)))
<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-s1">layers</span>.<span class="pl-v">BatchNormalization</span>())
<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-s1">layers</span>.<span class="pl-v">LeakyReLU</span>())
<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-s1">layers</span>.<span class="pl-v">Reshape</span>((<span class="pl-c1">7</span>, <span class="pl-c1">7</span>, <span class="pl-c1">256</span>)))
<span class="pl-k">assert</span> <span class="pl-s1">model</span>.<span class="pl-s1">output_shape</span> <span class="pl-c1">==</span> (<span class="pl-c1">None</span>, <span class="pl-c1">7</span>, <span class="pl-c1">7</span>, <span class="pl-c1">256</span>) <span class="pl-c"># Note: None is the batch size</span>
<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-s1">layers</span>.<span class="pl-v">Conv2DTranspose</span>(<span class="pl-c1">128</span>, (<span class="pl-c1">5</span>, <span class="pl-c1">5</span>), <span class="pl-s1">strides</span><span class="pl-c1">=</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>), <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-s">'same'</span>, <span class="pl-s1">use_bias</span><span class="pl-c1">=</span><span class="pl-c1">False</span>))
<span class="pl-k">assert</span> <span class="pl-s1">model</span>.<span class="pl-s1">output_shape</span> <span class="pl-c1">==</span> (<span class="pl-c1">None</span>, <span class="pl-c1">7</span>, <span class="pl-c1">7</span>, <span class="pl-c1">128</span>)
<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-s1">layers</span>.<span class="pl-v">BatchNormalization</span>())
<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-s1">layers</span>.<span class="pl-v">LeakyReLU</span>())
<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-s1">layers</span>.<span class="pl-v">Conv2DTranspose</span>(<span class="pl-c1">64</span>, (<span class="pl-c1">5</span>, <span class="pl-c1">5</span>), <span class="pl-s1">strides</span><span class="pl-c1">=</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>), <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-s">'same'</span>, <span class="pl-s1">use_bias</span><span class="pl-c1">=</span><span class="pl-c1">False</span>))
<span class="pl-k">assert</span> <span class="pl-s1">model</span>.<span class="pl-s1">output_shape</span> <span class="pl-c1">==</span> (<span class="pl-c1">None</span>, <span class="pl-c1">14</span>, <span class="pl-c1">14</span>, <span class="pl-c1">64</span>)
<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-s1">layers</span>.<span class="pl-v">BatchNormalization</span>())
<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-s1">layers</span>.<span class="pl-v">LeakyReLU</span>())
<span class="pl-s1">model</span>.<span class="pl-en">add</span>(<span class="pl-s1">layers</span>.<span class="pl-v">Conv2DTranspose</span>(<span class="pl-c1">1</span>, (<span class="pl-c1">5</span>, <span class="pl-c1">5</span>), <span class="pl-s1">strides</span><span class="pl-c1">=</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>), <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-s">'same'</span>, <span class="pl-s1">use_bias</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">activation</span><span class="pl-c1">=</span><span class="pl-s">'tanh'</span>))
<span class="pl-k">assert</span> <span class="pl-s1">model</span>.<span class="pl-s1">output_shape</span> <span class="pl-c1">==</span> (<span class="pl-c1">None</span>, <span class="pl-c1">28</span>, <span class="pl-c1">28</span>, <span class="pl-c1">1</span>)
<span class="pl-k">return</span> <span class="pl-s1">model</span>
<span class="pl-s1">m1</span> <span class="pl-c1">=</span> <span class="pl-en">make_generator_model</span>()
<span class="pl-s1">noise</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>([<span class="pl-c1">1</span>, <span class="pl-c1">100</span>])
<span class="pl-s1">generated_image</span> <span class="pl-c1">=</span> <span class="pl-en">m1</span>(<span class="pl-s1">noise</span>, <span class="pl-s1">training</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-en">print</span>([<span class="pl-s1">v</span>.<span class="pl-s1">name</span> <span class="pl-k">for</span> <span class="pl-s1">v</span> <span class="pl-c1">in</span> <span class="pl-s1">m1</span>.<span class="pl-s1">trainable_variables</span>])
<span class="pl-s1">m2</span> <span class="pl-c1">=</span> <span class="pl-en">make_generator_model</span>()
<span class="pl-s1">noise</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>([<span class="pl-c1">1</span>, <span class="pl-c1">100</span>])
<span class="pl-s1">generated_image</span> <span class="pl-c1">=</span> <span class="pl-en">m2</span>(<span class="pl-s1">noise</span>, <span class="pl-s1">training</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-en">print</span>([<span class="pl-s1">v</span>.<span class="pl-s1">name</span> <span class="pl-k">for</span> <span class="pl-s1">v</span> <span class="pl-c1">in</span> <span class="pl-s1">m2</span>.<span class="pl-s1">trainable_variables</span>])
<span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Graph</span>().<span class="pl-en">as_default</span>():
<span class="pl-s1">m1</span> <span class="pl-c1">=</span> <span class="pl-en">make_generator_model</span>()
<span class="pl-s1">noise</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>([<span class="pl-c1">1</span>, <span class="pl-c1">100</span>])
<span class="pl-s1">generated_image</span> <span class="pl-c1">=</span> <span class="pl-en">m1</span>(<span class="pl-s1">noise</span>, <span class="pl-s1">training</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-en">print</span>([<span class="pl-s1">v</span>.<span class="pl-s1">name</span> <span class="pl-k">for</span> <span class="pl-s1">v</span> <span class="pl-c1">in</span> <span class="pl-s1">m1</span>.<span class="pl-s1">trainable_variables</span>])
<span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Graph</span>().<span class="pl-en">as_default</span>():
<span class="pl-s1">m2</span> <span class="pl-c1">=</span> <span class="pl-en">make_generator_model</span>()
<span class="pl-s1">noise</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>([<span class="pl-c1">1</span>, <span class="pl-c1">100</span>])
<span class="pl-s1">generated_image</span> <span class="pl-c1">=</span> <span class="pl-en">m2</span>(<span class="pl-s1">noise</span>, <span class="pl-s1">training</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
<span class="pl-en">print</span>([<span class="pl-s1">v</span>.<span class="pl-s1">name</span> <span class="pl-k">for</span> <span class="pl-s1">v</span> <span class="pl-c1">in</span> <span class="pl-s1">m2</span>.<span class="pl-s1">trainable_variables</span>])
<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-c1">1</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'test'</span>)
<span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-c1">1</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'test'</span>)
<span class="pl-en">print</span>(<span class="pl-s1">a</span>)
<span class="pl-en">print</span>(<span class="pl-s1">b</span>)</pre></div> | 0 |
<h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">This issue exists in the latest npm version</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">Override replaces some but not all instances of overriden dependency. In this example, I have a dependency on a package which has a dependency on <code class="notranslate">npm</code> which contains a vulnerable version of <code class="notranslate">ansi-regex</code>. I tried to fix this via an override but <code class="notranslate">npm audit</code> still complains and searching through package-lock.json shows various version numbers before my overriden value.</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">According to docs, <code class="notranslate">overrides</code> should ensure all installed instances of a dependency conform to the given value so I expect my override version 5.0.1 only to exist.</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>Clone <a href="https://github.com/melink14/rikaikun">https://github.com/melink14/rikaikun</a></li>
<li>Modify package.json with:</li>
</ol>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""overrides": {
"ansi-regex": "5.0.1",
},"><pre class="notranslate"><span class="pl-ent">"overrides"</span>: {
<span class="pl-ent">"ansi-regex"</span>: <span class="pl-s"><span class="pl-pds">"</span>5.0.1<span class="pl-pds">"</span></span>,
},</pre></div>
<ol start="3" dir="auto">
<li>Delete package-lock.json and run <code class="notranslate">npm install</code></li>
<li>Run <code class="notranslate">npm audit</code> and see that vulnerable older versions of <code class="notranslate">ansi-regex</code> still exist..</li>
</ol>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm: 8.3.2</li>
<li>Node.js: 16</li>
<li>OS Name: WSL Pengwin</li>
<li>System Model Name:</li>
<li>npm config:</li>
</ul>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; node bin location = /home/espeed/n/bin/node
; cwd = /home/espeed/projects/rikaikun
; HOME = /home/espeed
; Run `npm config ls -l` to show all defaults."><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> node bin location = /home/espeed/n/bin/node</span>
<span class="pl-c"><span class="pl-c">;</span> cwd = /home/espeed/projects/rikaikun</span>
<span class="pl-c"><span class="pl-c">;</span> HOME = /home/espeed</span>
<span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.</span></pre></div> | <h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">This issue exists in the latest npm version</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">After updating the overrides, <code class="notranslate">npm install</code> is not updating the <code class="notranslate">package.lock</code> or <code class="notranslate">node_modules</code>.</p>
<p dir="auto">To make it work I had to remove both <code class="notranslate">package.lock</code> and <code class="notranslate">node_modules</code>, then the overrides have been applied.</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Change in <code class="notranslate">overrides</code> should update <code class="notranslate">package.lock</code> and <code class="notranslate">node_modules</code> after running <code class="notranslate">npm install</code></p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>Add a dependency</li>
<li>npm install</li>
<li>Add override</li>
<li>npm install</li>
</ol>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm: >=8.3.0</li>
<li>Node.js: 16.13.2</li>
<li>OS Name: macOS 12</li>
<li>System Model Name:</li>
<li>npm config:</li>
</ul>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; copy and paste output from `npm config ls` here"><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> copy and paste output from `npm config ls` here</span></pre></div> | 1 |
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.5.1</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">Once you run the Tutorial DAG, it' calendar tab does not open, returns an error.</p>
<p dir="auto">From system out:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="airflow-airflow-webserver-1 | Traceback (most recent call last):
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 2525, in wsgi_app
airflow-airflow-webserver-1 | response = self.full_dispatch_request()
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1822, in full_dispatch_request
airflow-airflow-webserver-1 | rv = self.handle_user_exception(e)
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1820, in full_dispatch_request
airflow-airflow-webserver-1 | rv = self.dispatch_request()
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1796, in dispatch_request
airflow-airflow-webserver-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/auth.py", line 47, in decorated
airflow-airflow-webserver-1 | return func(*args, **kwargs)
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/decorators.py", line 166, in view_func
airflow-airflow-webserver-1 | return f(*args, **kwargs)
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/decorators.py", line 125, in wrapper
airflow-airflow-webserver-1 | return f(*args, **kwargs)
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/session.py", line 75, in wrapper
airflow-airflow-webserver-1 | return func(*args, session=session, **kwargs)
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/views.py", line 2756, in calendar
airflow-airflow-webserver-1 | if curr_info.logical_date <= prev_logical_date:
airflow-airflow-webserver-1 | TypeError: can't compare offset-naive and offset-aware datetimes
airflow-airflow-webserver-1 | 172.18.0.1 - - [15/Feb/2023:09:04:55 +0000] "GET /dags/tutorial/calendar HTTP/1.1" 500 1544 "http://localhost:8080/dags/tutorial/grid" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36""><pre class="notranslate"><code class="notranslate">airflow-airflow-webserver-1 | Traceback (most recent call last):
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 2525, in wsgi_app
airflow-airflow-webserver-1 | response = self.full_dispatch_request()
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1822, in full_dispatch_request
airflow-airflow-webserver-1 | rv = self.handle_user_exception(e)
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1820, in full_dispatch_request
airflow-airflow-webserver-1 | rv = self.dispatch_request()
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/flask/app.py", line 1796, in dispatch_request
airflow-airflow-webserver-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/auth.py", line 47, in decorated
airflow-airflow-webserver-1 | return func(*args, **kwargs)
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/decorators.py", line 166, in view_func
airflow-airflow-webserver-1 | return f(*args, **kwargs)
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/decorators.py", line 125, in wrapper
airflow-airflow-webserver-1 | return f(*args, **kwargs)
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/session.py", line 75, in wrapper
airflow-airflow-webserver-1 | return func(*args, session=session, **kwargs)
airflow-airflow-webserver-1 | File "/home/airflow/.local/lib/python3.7/site-packages/airflow/www/views.py", line 2756, in calendar
airflow-airflow-webserver-1 | if curr_info.logical_date <= prev_logical_date:
airflow-airflow-webserver-1 | TypeError: can't compare offset-naive and offset-aware datetimes
airflow-airflow-webserver-1 | 172.18.0.1 - - [15/Feb/2023:09:04:55 +0000] "GET /dags/tutorial/calendar HTTP/1.1" 500 1544 "http://localhost:8080/dags/tutorial/grid" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"
</code></pre></div>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">Run Tutorial, open Calendar tab.</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Ubuntu (WSL)</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Docker-Compose</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | <h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.5.1</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">/calendar page give a problem, here is the capture</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19165258/215369479-9fc7de5c-f190-460c-9cf7-9ab27d8ac355.png"><img src="https://user-images.githubusercontent.com/19165258/215369479-9fc7de5c-f190-460c-9cf7-9ab27d8ac355.png" alt="屏幕截图 2023-01-30 093116" style="max-width: 100%;"></a></p>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Ubuntu 22.04.1 LTS</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto">Distributor ID: Ubuntu<br>
Description: Ubuntu 22.04.1 LTS<br>
Release: 22.04<br>
Codename: jammy</p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Other</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto">Distributor ID: Ubuntu<br>
Description: Ubuntu 22.04.1 LTS<br>
Release: 22.04<br>
Codename: jammy</p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul> | 1 |
<p dir="auto"><b>Issue Type:</b> Feature Idea<br>
<b>Ansible Version:</b> 1.9.1<br>
<b>Ansible Configuration:</b> nothing changed<br>
<b>Environment:</b> RHEL/CentOS 7<br>
<b>Summary:</b><br>
I'm trying to keep some software installed into a non-standard directory. Currently using the yum module I can't specify an alternative installroot path.<br>
<b>Expected Results:</b><br>
I would like to be able to add --installroot option like I can do this with yum in linux.</p> | <p dir="auto"><strong>ISSUE TYPE</strong><br>
Bug Report</p>
<p dir="auto"><strong>COMPONENT NAME</strong><br>
include_role</p>
<p dir="auto"><strong>ANSIBLE VERSION</strong><br>
ansible 2.2.2.0<br>
config file = /etc/ansible/ansible.cfg<br>
configured module search path = Default w/o overrides</p>
<p dir="auto"><strong>CONFIGURATION</strong></p>
<p dir="auto">n/a</p>
<p dir="auto"><strong>OS / ENVIRONMENT</strong></p>
<p dir="auto">Ubuntu</p>
<p dir="auto"><strong>SUMMARY</strong></p>
<p dir="auto">The tasks_from variable is not resolved in the include_role module. However the name variable is resolved</p>
<p dir="auto"><strong>STEPS TO REPRODUCE</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook play.yml --extra-vars "tasks=debug role=test_role"
roles/test_role/tasks/debug.yml
- debug: msg="debug {{ansible_host}}"
play.yml
- name: test play
hosts: all
tasks:
- debug: msg="{{tasks}}"
- include_role:
name: "{{role}}"
tasks_from: "{{tasks}}""><pre class="notranslate"><code class="notranslate">ansible-playbook play.yml --extra-vars "tasks=debug role=test_role"
roles/test_role/tasks/debug.yml
- debug: msg="debug {{ansible_host}}"
play.yml
- name: test play
hosts: all
tasks:
- debug: msg="{{tasks}}"
- include_role:
name: "{{role}}"
tasks_from: "{{tasks}}"
</code></pre></div>
<p dir="auto"><strong>EXPECTED RESULTS</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="xploit@ubuntu:/mnt/hgfs/workspace_/infra/bss$ ansible --version
ansible 2.2.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
exploit@ubuntu:/mnt/hgfs/workspace_/infra/bss$ ansible-playbook -i inventories/sigfox-local.ini play.yml --extra-vars "tasks=debug role=test_role"
PLAY [test play] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"msg": "debug"
}
TASK [test_role : debug] *******************************************************
ok: [localhost] => {
"msg": "debug localhost"
}
PLAY RECAP *********************************************************************
localhost : ok=3 changed=0 unreachable=0 failed=0 "><pre class="notranslate"><code class="notranslate">xploit@ubuntu:/mnt/hgfs/workspace_/infra/bss$ ansible --version
ansible 2.2.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
exploit@ubuntu:/mnt/hgfs/workspace_/infra/bss$ ansible-playbook -i inventories/sigfox-local.ini play.yml --extra-vars "tasks=debug role=test_role"
PLAY [test play] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [debug] *******************************************************************
ok: [localhost] => {
"msg": "debug"
}
TASK [test_role : debug] *******************************************************
ok: [localhost] => {
"msg": "debug localhost"
}
PLAY RECAP *********************************************************************
localhost : ok=3 changed=0 unreachable=0 failed=0
</code></pre></div>
<p dir="auto"><strong>ACTUAL RESULTS</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using /etc/ansible/ansible.cfg as config file
ERROR! Could not find specified file in role: {{tasks}}"><pre class="notranslate"><code class="notranslate">Using /etc/ansible/ansible.cfg as config file
ERROR! Could not find specified file in role: {{tasks}}
</code></pre></div> | 0 |
<p dir="auto">Hi!<br>
When I was writing my own version of Game of Life, I made new function which caused message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Users\User\projects\testi2>cargo build
Compiling testi2 v0.1.0 (file:///C:/Users/User/projects/testi2)
... some warnings...
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: slice_layout_is_correct(cx, &member_llvm_types[..], element_type)', C:/bot/slave/stable-dist-rustc-win-gnu-64/build/src/librustc_trans\trans\debuginfo\metadata.rs:579
Could not compile `testi2`.
To learn more, run the command again with --verbose."><pre class="notranslate"><code class="notranslate">C:\Users\User\projects\testi2>cargo build
Compiling testi2 v0.1.0 (file:///C:/Users/User/projects/testi2)
... some warnings...
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: slice_layout_is_correct(cx, &member_llvm_types[..], element_type)', C:/bot/slave/stable-dist-rustc-win-gnu-64/build/src/librustc_trans\trans\debuginfo\metadata.rs:579
Could not compile `testi2`.
To learn more, run the command again with --verbose.
</code></pre></div>
<p dir="auto">This happens only with cargo build, but with rustc it's fine.<br>
I noticed that following program is enough to cause that:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
println!("Hello, world!");
}
fn laske_ymparisto(taulukko: &[[bool]]) -> i32{
6
}"><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-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"Hello, world!"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">laske_ymparisto</span><span class="pl-kos">(</span><span class="pl-s1">taulukko</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-kos">[</span><span class="pl-kos">[</span><span class="pl-smi">bool</span><span class="pl-kos">]</span><span class="pl-kos">]</span><span class="pl-kos">)</span> -> <span class="pl-smi">i32</span><span class="pl-kos">{</span>
<span class="pl-c1">6</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">My rust version:<br>
rustc 1.1.0 (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/35ceea3997c79a3b7562e89b462ab76af5b86b22/hovercard" href="https://github.com/rust-lang/rust/commit/35ceea3997c79a3b7562e89b462ab76af5b86b22"><tt>35ceea3</tt></a> 2015-06-19)<br>
binary: rustc<br>
commit-hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/35ceea3997c79a3b7562e89b462ab76af5b86b22/hovercard" href="https://github.com/rust-lang/rust/commit/35ceea3997c79a3b7562e89b462ab76af5b86b22"><tt>35ceea3</tt></a><br>
commit-date: 2015-06-19<br>
host: x86_64-pc-windows-gnu<br>
release: 1.1.0</p>
<p dir="auto">I would like to know if anyone else gets this kind of problem or is it just me.</p> | <p dir="auto">Hi Folks,</p>
<p dir="auto">Just ran into a compiler panic. I'm still learning rust, so it's probably related to a stupid syntax error on my part, but rustc suggested I file a bug report, so here I am...</p>
<p dir="auto">Here's the error:</p>
<p dir="auto">thread 'rustc' panicked at 'assertion failed: slice_layout_is_correct(cx, &member_llvm_types[..], element_type)', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc_trans/trans/debuginfo.rs:2810</p>
<p dir="auto">Here's the code I was writing:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" pub fn aggregate(&self, group_column: &str, sum_columns: &[str]) {
}"><pre class="notranslate"><code class="notranslate"> pub fn aggregate(&self, group_column: &str, sum_columns: &[str]) {
}
</code></pre></div>
<p dir="auto">Here's the backtrace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 1: 0x7f2103105f39 - sys::backtrace::write::h7638fca3b07af337rVs
2: 0x7f210310dbb6 - panicking::on_panic::h64a1f0366c6b8a23mkx
3: 0x7f21030ca912 - rt::unwind::begin_unwind_inner::hcaa5609c9e3078adwZw
4: 0x7f2101e5b28e - rt::unwind::begin_unwind::h15509594317540694492
5: 0x7f2101f5a843 - trans::debuginfo::vec_slice_metadata::hfcdfde7a231fb874ehy
6: 0x7f2101f460bc - trans::debuginfo::type_metadata::hadf1ae524fc7b529Kpy
7: 0x7f2101f5add0 - trans::debuginfo::subroutine_type_metadata::hd6ba8b12e5430450kly
8: 0x7f2101f45a94 - trans::debuginfo::type_metadata::hadf1ae524fc7b529Kpy
9: 0x7f2101eb39a6 - trans::debuginfo::create_function_debug_context::h4a389096a1ba01b1I1w
10: 0x7f2101eb1f7f - trans::base::new_fn_ctxt::h5648354326e8de67tkh
11: 0x7f2101ebaf72 - trans::base::trans_closure::h0dc61076718b152eBDh
12: 0x7f2101ebef8a - trans::base::trans_fn::h017a63e4b4f1d383jOh
13: 0x7f2101ec2ad4 - trans::base::trans_item::h694a5c0c3e92277bvci
14: 0x7f2101ec2948 - trans::base::trans_item::h694a5c0c3e92277bvci
15: 0x7f2101ec2948 - trans::base::trans_item::h694a5c0c3e92277bvci
16: 0x7f2101ed03bd - trans::base::trans_crate::h93b35940c9d58579v1i
17: 0x7f2103675d5a - driver::phase_4_translate_to_llvm::h0cea9caf6133630enOa
18: 0x7f210364e05b - driver::compile_input::h4642f691e22278cbQba
19: 0x7f210370e331 - run_compiler::he528ba831532b90aF4b
20: 0x7f210370bf82 - boxed::F.FnBox<A>::call_box::h13568337174014462877
21: 0x7f210370b4b9 - rt::unwind::try::try_fn::h15381261312250239500
22: 0x7f2103185528 - rust_try_inner
23: 0x7f2103185515 - rust_try
24: 0x7f210370b768 - boxed::F.FnBox<A>::call_box::h6713016946069099629
25: 0x7f210310cac1 - sys::thread::create::thread_start::hbe89fbdfc755452dxjw
26: 0x7f20fd1b7181 - start_thread
27: 0x7f2102d4347c - __clone
28: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate"> 1: 0x7f2103105f39 - sys::backtrace::write::h7638fca3b07af337rVs
2: 0x7f210310dbb6 - panicking::on_panic::h64a1f0366c6b8a23mkx
3: 0x7f21030ca912 - rt::unwind::begin_unwind_inner::hcaa5609c9e3078adwZw
4: 0x7f2101e5b28e - rt::unwind::begin_unwind::h15509594317540694492
5: 0x7f2101f5a843 - trans::debuginfo::vec_slice_metadata::hfcdfde7a231fb874ehy
6: 0x7f2101f460bc - trans::debuginfo::type_metadata::hadf1ae524fc7b529Kpy
7: 0x7f2101f5add0 - trans::debuginfo::subroutine_type_metadata::hd6ba8b12e5430450kly
8: 0x7f2101f45a94 - trans::debuginfo::type_metadata::hadf1ae524fc7b529Kpy
9: 0x7f2101eb39a6 - trans::debuginfo::create_function_debug_context::h4a389096a1ba01b1I1w
10: 0x7f2101eb1f7f - trans::base::new_fn_ctxt::h5648354326e8de67tkh
11: 0x7f2101ebaf72 - trans::base::trans_closure::h0dc61076718b152eBDh
12: 0x7f2101ebef8a - trans::base::trans_fn::h017a63e4b4f1d383jOh
13: 0x7f2101ec2ad4 - trans::base::trans_item::h694a5c0c3e92277bvci
14: 0x7f2101ec2948 - trans::base::trans_item::h694a5c0c3e92277bvci
15: 0x7f2101ec2948 - trans::base::trans_item::h694a5c0c3e92277bvci
16: 0x7f2101ed03bd - trans::base::trans_crate::h93b35940c9d58579v1i
17: 0x7f2103675d5a - driver::phase_4_translate_to_llvm::h0cea9caf6133630enOa
18: 0x7f210364e05b - driver::compile_input::h4642f691e22278cbQba
19: 0x7f210370e331 - run_compiler::he528ba831532b90aF4b
20: 0x7f210370bf82 - boxed::F.FnBox<A>::call_box::h13568337174014462877
21: 0x7f210370b4b9 - rt::unwind::try::try_fn::h15381261312250239500
22: 0x7f2103185528 - rust_try_inner
23: 0x7f2103185515 - rust_try
24: 0x7f210370b768 - boxed::F.FnBox<A>::call_box::h6713016946069099629
25: 0x7f210310cac1 - sys::thread::create::thread_start::hbe89fbdfc755452dxjw
26: 0x7f20fd1b7181 - start_thread
27: 0x7f2102d4347c - __clone
28: 0x0 - <unknown>
</code></pre></div>
<p dir="auto">Other Details:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc --version --verbose
rustc 1.0.0-nightly (2baf34825 2015-04-21) (built 2015-04-22)
binary: rustc
commit-hash: 2baf3482537f5a245a9c17ca730398f1a8b001d7
commit-date: 2015-04-21
build-date: 2015-04-22
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly"><pre class="notranslate"><code class="notranslate">rustc --version --verbose
rustc 1.0.0-nightly (2baf34825 2015-04-21) (built 2015-04-22)
binary: rustc
commit-hash: 2baf3482537f5a245a9c17ca730398f1a8b001d7
commit-date: 2015-04-21
build-date: 2015-04-22
host: x86_64-unknown-linux-gnu
release: 1.0.0-nightly
</code></pre></div> | 1 |
<h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">This issue exists in the latest npm version</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">npm install doesn't work either way. After upgrading Node JS to v17.4.0 and npm to v8.4.0 npm install gives two errors with different packages every time which completely halts or crashes the process.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PS E:\VS projs\react-app> npx create-react-app app
Creating a new React app in E:\VS projs\react-app\app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED
npm ERR! A4250000:error:1C800066:Provider routines:ossl_gcm_stream_update:cipher operation
failed:c:\ws\deps\openssl\openssl\providers\implementations\ciphers\ciphercommon_gcm.c:312:
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ruturaj_k\AppData\Local\npm-cache\_logs\2022-01-30T09_11_05_521Z-debug-0.log
Aborting installation.
npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... node_modules
Deleting generated file... package.json
Deleting app/ from E:\VS projs\react-app
Done."><pre class="notranslate"><code class="notranslate">PS E:\VS projs\react-app> npx create-react-app app
Creating a new React app in E:\VS projs\react-app\app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED
npm ERR! A4250000:error:1C800066:Provider routines:ossl_gcm_stream_update:cipher operation
failed:c:\ws\deps\openssl\openssl\providers\implementations\ciphers\ciphercommon_gcm.c:312:
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ruturaj_k\AppData\Local\npm-cache\_logs\2022-01-30T09_11_05_521Z-debug-0.log
Aborting installation.
npm install --no-audit --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
Deleting generated file... node_modules
Deleting generated file... package.json
Deleting app/ from E:\VS projs\react-app
Done.
</code></pre></div>
<p dir="auto">I felt I had this issue only on my machine so I checked out on different machine with macOS platform and firstly it produces the above error and then when ran second time it give the SOCKET_TIMEOUT error.</p>
<p dir="auto">There's still more to this<br>
I checked with another machine with windows platform and sadly it doesn't work there either. I tested it with a highspeed connection and it's still the same :( .<br>
<a href="https://github.com/npm/cli/files/7971163/2022-01-31T09_34_56_431Z-debug-0.log">2022-01-31T09_34_56_431Z-debug-0.log</a></p>
<h3 dir="auto">Expected Behavior</h3>
<blockquote>
<ol dir="auto">
<li>Expected to install the required packages and create a react app.</li>
<li>Expected to install global modules without any error</li>
</ol>
</blockquote>
<p dir="auto">Expected output</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/65947291/151805817-aca37524-177e-43e7-a113-65e21114e1cf.png"><img src="https://user-images.githubusercontent.com/65947291/151805817-aca37524-177e-43e7-a113-65e21114e1cf.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>Open Terminal / Command Prompt</li>
<li>Type <code class="notranslate">npm install -g nodemon</code> or <code class="notranslate">npx create-react-app my-app</code></li>
<li>Fetches some packages.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Creating a new React app in E:\VS projs\react-app\app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template..."><pre class="notranslate"><code class="notranslate">Creating a new React app in E:\VS projs\react-app\app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
</code></pre></div>
<ol start="4" dir="auto">
<li>Then suddenly logs an error stoping the install.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED
npm ERR! A4250000:error:1C800066:Provider routines:ossl_gcm_stream_update:cipher operation
failed:c:\ws\deps\openssl\openssl\providers\implementations\ciphers\ciphercommon_gcm.c:312:
npm ERR!"><pre class="notranslate"><code class="notranslate">npm ERR! code ERR_SSL_CIPHER_OPERATION_FAILED
npm ERR! A4250000:error:1C800066:Provider routines:ossl_gcm_stream_update:cipher operation
failed:c:\ws\deps\openssl\openssl\providers\implementations\ciphers\ciphercommon_gcm.c:312:
npm ERR!
</code></pre></div>
<p dir="auto">and sometimes</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="verbose npm v8.4.0
4743 error code ERR_SOCKET_TIMEOUT
4744 error errno ERR_SOCKET_TIMEOUT
4745 error network Invalid response body while trying to fetch https://registry.npmjs.org/dotenv: Socket timeout
4746 error network This is a problem related to network connectivity.
4746 error network In most cases you are behind a proxy or have bad network settings.
4746 error network
4746 error network If you are behind a proxy, please make sure that the
4746 error network 'proxy' config is set properly. See: 'npm help config"><pre class="notranslate"><code class="notranslate">verbose npm v8.4.0
4743 error code ERR_SOCKET_TIMEOUT
4744 error errno ERR_SOCKET_TIMEOUT
4745 error network Invalid response body while trying to fetch https://registry.npmjs.org/dotenv: Socket timeout
4746 error network This is a problem related to network connectivity.
4746 error network In most cases you are behind a proxy or have bad network settings.
4746 error network
4746 error network If you are behind a proxy, please make sure that the
4746 error network 'proxy' config is set properly. See: 'npm help config
</code></pre></div>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm: v8.4.0</li>
<li>Node.js: v17.4.0</li>
<li>OS Name: Windows 10 Pro Build 9043.1503 Version 21H1</li>
<li>npm config:</li>
</ul>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npm config ls `; "builtin" config from C:\Users\ruturaj_k\AppData\Roaming\npm\node_modules\npm\npmrc
prefix = "C:\\Users\\ruturaj_k\\AppData\\Roaming\\npm"
; node bin location = C:\Program Files\nodejs\node.exe
; cwd = C:\WINDOWS\system32
; HOME = C:\Users\ruturaj_k
; Run `npm config ls -l` to show all defaults.` here
"><pre class="notranslate">npm config ls `<span class="pl-c"><span class="pl-c">;</span> "builtin" config from C:\Users\ruturaj_k\AppData\Roaming\npm\node_modules\npm\npmrc</span>
<span class="pl-k">prefix</span> = <span class="pl-s"><span class="pl-pds">"</span>C:\\Users\\ruturaj_k\\AppData\\Roaming\\npm<span class="pl-pds">"</span></span>
<span class="pl-c"><span class="pl-c">;</span> node bin location = C:\Program Files\nodejs\node.exe</span>
<span class="pl-c"><span class="pl-c">;</span> cwd = C:\WINDOWS\system32</span>
<span class="pl-c"><span class="pl-c">;</span> HOME = C:\Users\ruturaj_k</span>
<span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.` here</span>
</pre></div> | <h3 dir="auto">Current Behavior:</h3>
<p dir="auto">When trying to install packages, without a previous cache, we get constant timeouts when trying to fetch packages, both locally and in a CI environment. The package that fails is always different, so there isn't a specific package causing the issue.</p>
<p dir="auto">Stack trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="19505 verbose stack FetchError: request to https://.../npm/registry/typescript/-/typescript-4.1.3.tgz failed, reason: Socket timeout
19505 verbose stack at ClientRequest.<anonymous> (C:\npm\prefix\node_modules\npm\node_modules\minipass-fetch\lib\index.js:97:14)
19505 verbose stack at ClientRequest.emit (events.js:315:20)
19505 verbose stack at TLSSocket.socketErrorListener (_http_client.js:469:9)
19505 verbose stack at TLSSocket.emit (events.js:327:22)
19505 verbose stack at emitErrorNT (internal/streams/destroy.js:106:8)
19505 verbose stack at emitErrorCloseNT (internal/streams/destroy.js:74:3)
19505 verbose stack at processTicksAndRejections (internal/process/task_queues.js:80:21)
19506 verbose cwd D:\a\1\s
19507 verbose Windows_NT 10.0.17763
19508 verbose argv "C:\\hostedtoolcache\\windows\\node\\14.15.4\\x64\\node.exe" "C:\\npm\\prefix\\node_modules\\npm\\bin\\npm-cli.js" "ci" "--no-audit"
19509 verbose node v14.15.4
19510 verbose npm v7.9.0
19511 error code ERR_SOCKET_TIMEOUT
19512 error errno ERR_SOCKET_TIMEOUT
19513 error request to https://.../npm/registry/typescript/-/typescript-4.1.3.tgz failed, reason: Socket timeout
19514 verbose exit 1"><pre class="notranslate"><code class="notranslate">19505 verbose stack FetchError: request to https://.../npm/registry/typescript/-/typescript-4.1.3.tgz failed, reason: Socket timeout
19505 verbose stack at ClientRequest.<anonymous> (C:\npm\prefix\node_modules\npm\node_modules\minipass-fetch\lib\index.js:97:14)
19505 verbose stack at ClientRequest.emit (events.js:315:20)
19505 verbose stack at TLSSocket.socketErrorListener (_http_client.js:469:9)
19505 verbose stack at TLSSocket.emit (events.js:327:22)
19505 verbose stack at emitErrorNT (internal/streams/destroy.js:106:8)
19505 verbose stack at emitErrorCloseNT (internal/streams/destroy.js:74:3)
19505 verbose stack at processTicksAndRejections (internal/process/task_queues.js:80:21)
19506 verbose cwd D:\a\1\s
19507 verbose Windows_NT 10.0.17763
19508 verbose argv "C:\\hostedtoolcache\\windows\\node\\14.15.4\\x64\\node.exe" "C:\\npm\\prefix\\node_modules\\npm\\bin\\npm-cli.js" "ci" "--no-audit"
19509 verbose node v14.15.4
19510 verbose npm v7.9.0
19511 error code ERR_SOCKET_TIMEOUT
19512 error errno ERR_SOCKET_TIMEOUT
19513 error request to https://.../npm/registry/typescript/-/typescript-4.1.3.tgz failed, reason: Socket timeout
19514 verbose exit 1
</code></pre></div>
<p dir="auto">Tried using the fetch-retries, fetch-retry-mintimeout, and fetch-retry-maxtimeout options, but didn't seem to have any effect.</p>
<h3 dir="auto">Expected Behavior:</h3>
<p dir="auto">Install packages without timing out.</p>
<h3 dir="auto">Steps To Reproduce:</h3>
<p dir="auto">Using a project with workspaces (~6425 packages)<br>
No cache available<br>
Run <code class="notranslate">npm ci</code></p>
<h3 dir="auto">Environment:</h3>
<p dir="auto">OS: Mac OS 11.2.3 or Windows 10<br>
Node: 14.15.4<br>
npm: 7.9.0</p> | 1 |
<p dir="auto">In tensorflow document of class tf.DType: <a href="https://www.tensorflow.org/versions/master/api_docs/python/framework.html#DType" rel="nofollow">https://www.tensorflow.org/versions/master/api_docs/python/framework.html#DType</a></p>
<p dir="auto">There are three types:<br>
tf.qint8: Quantized 8-bit signed integer.<br>
tf.quint8: Quantized 8-bit unsigned integer.<br>
tf.qint32: Quantized 32-bit signed integer.</p>
<p dir="auto">And also related method about quantized data type. I searched online, but did not find useful resource about it.<br>
Could you add some explanation in the document?</p> | <h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Tx2</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: source</li>
<li><strong>TensorFlow version (use command below)</strong>: r1.6, r1.7, r1.8</li>
<li><strong>Python version</strong>: 3.5</li>
<li><strong>Bazel version (if compiling from source)</strong>:.13.0- (@non-git)</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>:5.4.0</li>
<li><strong>CUDA/cuDNN version</strong>: 8.0 / 6.0</li>
<li><strong>GPU model and memory</strong>: Denver2 8GB</li>
<li><strong>Exact command to reproduce</strong>: bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture script:</p>
<p dir="auto"><a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh</a></p>
<p dir="auto">You can obtain the TensorFlow version with</p>
<p dir="auto">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">Describe the problem clearly here. Be sure to convey here why it's a bug in TensorFlow or a feature request.</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::Eigen::half, int, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::Eigen::half, long long, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::Eigen::half, long long, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<float, int, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<float, int, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<float, long long, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<float, long long, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<double, int, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<double, int, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<double, long long, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<double, long long, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<float> , int, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<float> , int, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<float> , long long, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<float> , long long, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<double> , int, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<double> , int, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<double> , long long, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<double> , long long, (bool)0> ") is not allowed
20 errors detected in the compilation of "/tmp/tmpxft_0000294e_00000000-9_gather_functor_gpu.cu.compute_52.cpp1.ii".
ERROR: /home/nvidia/tensorflow/tensorflow/core/kernels/BUILD:1201:1: output 'tensorflow/core/kernels/_objs/gather_functor_gpu/tensorflow/core/kernels/gather_functor_gpu.cu.pic.o' was not created
ERROR: /home/nvidia/tensorflow/tensorflow/core/kernels/BUILD:1201:1: not all outputs were created or valid"><pre class="notranslate"><code class="notranslate">./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::Eigen::half, int, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::Eigen::half, long long, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::Eigen::half, long long, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<float, int, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<float, int, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<float, long long, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<float, long long, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<double, int, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<double, int, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<double, long long, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel<double, long long, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<float> , int, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<float> , int, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<float> , long long, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<float> , long long, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<double> , int, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<double> , int, (bool)0> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<double> , long long, (bool)1> ") is not allowed
./tensorflow/core/kernels/gather_functor_gpu.cu.h(57): error: calling a __host__ function("__builtin_expect") from a __global__ function("tensorflow::GatherOpKernel< ::std::complex<double> , long long, (bool)0> ") is not allowed
20 errors detected in the compilation of "/tmp/tmpxft_0000294e_00000000-9_gather_functor_gpu.cu.compute_52.cpp1.ii".
ERROR: /home/nvidia/tensorflow/tensorflow/core/kernels/BUILD:1201:1: output 'tensorflow/core/kernels/_objs/gather_functor_gpu/tensorflow/core/kernels/gather_functor_gpu.cu.pic.o' was not created
ERROR: /home/nvidia/tensorflow/tensorflow/core/kernels/BUILD:1201:1: not all outputs were created or valid
</code></pre></div>
<p dir="auto">and this is my configure settings</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="You have bazel 0.13.0- (@non-git) installed.
Please specify the location of python. [Default is /usr/bin/python]: /usr/bin/python3.5
Found possible Python library paths:
/usr/local/lib/python3.5/dist-packages
/usr/lib/python3/dist-packages
Please input the desired Python library path to use. Default is [/usr/local/lib/python3.5/dist-packages]
Do you wish to build TensorFlow with jemalloc as malloc support? [Y/n]:
jemalloc as malloc support will be enabled for TensorFlow.
Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]:
Google Cloud Platform support will be enabled for TensorFlow.
Do you wish to build TensorFlow with Hadoop File System support? [Y/n]:
Hadoop File System support will be enabled for TensorFlow.
Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]:
Amazon S3 File System support will be enabled for TensorFlow.
Do you wish to build TensorFlow with Apache Kafka Platform support? [Y/n]:
Apache Kafka Platform support will be enabled for TensorFlow.
Do you wish to build TensorFlow with XLA JIT support? [y/N]:
No XLA JIT support will be enabled for TensorFlow.
Do you wish to build TensorFlow with GDR support? [y/N]:
No GDR support will be enabled for TensorFlow.
Do you wish to build TensorFlow with VERBS support? [y/N]:
No VERBS support will be enabled for TensorFlow.
Do you wish to build TensorFlow with OpenCL SYCL support? [y/N]:
No OpenCL SYCL support will be enabled for TensorFlow.
Do you wish to build TensorFlow with CUDA support? [y/N]: y
CUDA support will be enabled for TensorFlow.
Please specify the CUDA SDK version you want to use, e.g. 7.0. [Leave empty to default to CUDA 9.0]: 8
Please specify the location where CUDA 8.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:
Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 7.0]: 6
Please specify the location where cuDNN 6 library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:/usr/libaarch64-linux-gnu
Do you wish to build TensorFlow with TensorRT support? [y/N]:
No TensorRT support will be enabled for TensorFlow.
Please specify the NCCL version you want to use. [Leave empty to default to NCCL 1.3]:
Please specify a list of comma-separated Cuda compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus.
Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,5.2]
Do you want to use clang as CUDA compiler? [y/N]:
nvcc will be used as CUDA compiler.
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]:
Do you wish to build TensorFlow with MPI support? [y/N]:
No MPI support will be enabled for TensorFlow.
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]:
Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]:
Not configuring the WORKSPACE for Android builds.
Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See tools/bazel.rc for more details.
--config=mkl # Build with MKL support.
--config=monolithic # Config for mostly static monolithic build."><pre class="notranslate"><code class="notranslate">You have bazel 0.13.0- (@non-git) installed.
Please specify the location of python. [Default is /usr/bin/python]: /usr/bin/python3.5
Found possible Python library paths:
/usr/local/lib/python3.5/dist-packages
/usr/lib/python3/dist-packages
Please input the desired Python library path to use. Default is [/usr/local/lib/python3.5/dist-packages]
Do you wish to build TensorFlow with jemalloc as malloc support? [Y/n]:
jemalloc as malloc support will be enabled for TensorFlow.
Do you wish to build TensorFlow with Google Cloud Platform support? [Y/n]:
Google Cloud Platform support will be enabled for TensorFlow.
Do you wish to build TensorFlow with Hadoop File System support? [Y/n]:
Hadoop File System support will be enabled for TensorFlow.
Do you wish to build TensorFlow with Amazon S3 File System support? [Y/n]:
Amazon S3 File System support will be enabled for TensorFlow.
Do you wish to build TensorFlow with Apache Kafka Platform support? [Y/n]:
Apache Kafka Platform support will be enabled for TensorFlow.
Do you wish to build TensorFlow with XLA JIT support? [y/N]:
No XLA JIT support will be enabled for TensorFlow.
Do you wish to build TensorFlow with GDR support? [y/N]:
No GDR support will be enabled for TensorFlow.
Do you wish to build TensorFlow with VERBS support? [y/N]:
No VERBS support will be enabled for TensorFlow.
Do you wish to build TensorFlow with OpenCL SYCL support? [y/N]:
No OpenCL SYCL support will be enabled for TensorFlow.
Do you wish to build TensorFlow with CUDA support? [y/N]: y
CUDA support will be enabled for TensorFlow.
Please specify the CUDA SDK version you want to use, e.g. 7.0. [Leave empty to default to CUDA 9.0]: 8
Please specify the location where CUDA 8.0 toolkit is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:
Please specify the cuDNN version you want to use. [Leave empty to default to cuDNN 7.0]: 6
Please specify the location where cuDNN 6 library is installed. Refer to README.md for more details. [Default is /usr/local/cuda]:/usr/libaarch64-linux-gnu
Do you wish to build TensorFlow with TensorRT support? [y/N]:
No TensorRT support will be enabled for TensorFlow.
Please specify the NCCL version you want to use. [Leave empty to default to NCCL 1.3]:
Please specify a list of comma-separated Cuda compute capabilities you want to build with.
You can find the compute capability of your device at: https://developer.nvidia.com/cuda-gpus.
Please note that each additional compute capability significantly increases your build time and binary size. [Default is: 3.5,5.2]
Do you want to use clang as CUDA compiler? [y/N]:
nvcc will be used as CUDA compiler.
Please specify which gcc should be used by nvcc as the host compiler. [Default is /usr/bin/gcc]:
Do you wish to build TensorFlow with MPI support? [y/N]:
No MPI support will be enabled for TensorFlow.
Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is -march=native]:
Would you like to interactively configure ./WORKSPACE for Android builds? [y/N]:
Not configuring the WORKSPACE for Android builds.
Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See tools/bazel.rc for more details.
--config=mkl # Build with MKL support.
--config=monolithic # Config for mostly static monolithic build.
</code></pre></div> | 0 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/1526" rel="nofollow">http://projects.scipy.org/scipy/ticket/1526</a> on 2011-09-29 by trac user tony.stillfjord, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wnbell/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wnbell">@wnbell</a>.</em></p>
<p dir="auto">With a scipy.sparse.lil_matrix A, assignments of the form A[L1, L2] = 0, where L1 and L2 are two index lists, give the wrong results. If either L1 or L2 is a single index it works fine. Only accessing the matrix with A[L1, L2] also gives the right elements, it is just the assignment part that fails. Exchanging the 0 with an array of the correct length does not help.</p>
<p dir="auto">The faulty behaviour seems to be equivalent to A[min(L1):max(L1)+1, min(L2):max(L2)+1] = 0 but I'm not completely sure. The code below illustrates the bug:</p>
<p dir="auto">import numpy<br>
import scipy.sparse</p>
<p dir="auto">B = numpy.array([[1,2,3],[3,4,5],[6,7,8]])</p>
<p dir="auto">A = scipy.sparse.lil_matrix(B)</p>
<p dir="auto">print 'A:', A.todense()<br>
print 'B:', B</p>
<p dir="auto">print 'Some A-elements:', A[[0,1,2],[1,2,0]].todense()<br>
print 'Some B-elements:', B[[0,1,2],[1,2,0]]</p>
<p dir="auto">B[[0,1,2],[1,2,0]] = 0</p>
<p dir="auto">print 'New B:', B</p>
<p dir="auto">A[[0,1,2],[1,2,0]] = 0</p>
<p dir="auto">print 'New A:', A.todense()</p>
<p dir="auto">Output:</p>
<p dir="auto">A: [[1 2 3]<br>
[3 4 5]<br>
[6 7 8]]<br>
B: [[1 2 3]<br>
[3 4 5]<br>
[6 7 8]]<br>
Some A-elements: [[2 5 6]]<br>
Some B-elements: [2 5 6]<br>
New B: [[1 0 3]<br>
[3 4 0]<br>
[0 7 8]]<br>
New A: [[0 0 0]<br>
[0 0 0]<br>
[0 0 0]]</p> | <p dir="auto">When defining a list of constraints as an input for the scipy.optimize.minimize (using a default 'SLSQP' method), repeated or redundant constraints will raise messages like "Singular matrix C in LSQ subproblem", and a solution is not achieved, when in fact, these repeated/redundant constraints should just be ignored.</p>
<p dir="auto">This is very relevant when one has to define multiple inequality and equality constraints, which sometimes partially overlap for some of the constraints.</p>
<p dir="auto">To replicate the problem: Use a working example of a constrained minimization problem, but now duplicate the list of constraints (two times more constraints, but all of them repeated).</p>
<p dir="auto">Example where this is useful: Forcing a bivariate polynomial f(x,y) of a certain degree, to be f(0,y)=0 and forcing it's first derivative with respect to x, to be d f(x=1,y) / dx = 0, will provide a large set of equality constraints where a few of them are redundant.</p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=sqrrrl" rel="nofollow">Steven Bazyl</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-765?redirect=false" rel="nofollow">SPR-765</a></strong> and commented</p>
<p dir="auto">I haven't yet narrowed down a simple test case, but we recently saw a problem where we're trying to load multiple spring bean definition files from jars packaged in an ear using a well-known filename approach (e.g. classpath*:beans.xml)</p>
<p dir="auto">What we're seeing is that the same UrlResource is being returned multiple times. While its harmless in that it only results in beans redefining themselves with the same definition, it does cause a lot of noise in the logs and increases our start up time just slightly. We've also seen cases where the same URL is returned albeit with slightly different path represenatations ( /beans.xml vs. /./beans.xml)</p>
<p dir="auto">It would be nice if findAllClassPathResources() ensured each unique resource is returned once and only once. One simple change is just changing from List to Set to hold the resources while enumerating. This fixes the first part (same path multiple times) and fixing the second part should just be a matter of normalizing the URL.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 1.1.5</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=carrotsalad" rel="nofollow">David Fogel</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5932?redirect=false" rel="nofollow">SPR-5932</a></strong> and commented</p>
<p dir="auto">What we are seeing is that when we use <code class="notranslate">@Configuration-annotated</code> configuration classes to define our beans, that our singleton beans are instead treated as prototype beans. This means that we get new instances of our singletons for each time they are referenced (!!!).</p>
<p dir="auto">I have created sample code which demonstrates this broken behavior.</p>
<p dir="auto">This code, when run as a regular spring-ified java application, (NOT OSGi), works as expected (only ONE instance of Foo and Bar are created).</p>
<p dir="auto">BUT, when the identical code is run via Spring DM, THREE different instances of Bar are created!</p>
<p dir="auto">Note: I used a FileSystemXmlApplicationContext to load this when running as a normal java application, and put the config.xml file inside a /META-INF/spring folder when running in Spring dm.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 M3</p>
<p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?t=74458" rel="nofollow">http://forum.springsource.org/showthread.php?t=74458</a></p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/15531/spring-dm-javaconfig-bug.zip" rel="nofollow">spring-dm-javaconfig-bug.zip</a> (<em>2.96 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/browse/SJC-89" rel="nofollow">SJC-89</a> Ensure OSGi / Spring Dynamic Modules compatibility (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398118296" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13912" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13912/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13912">#13912</a> Java config FactoryBean proxy causes class loader leak</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398157403" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14941" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14941/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14941">#14941</a> Concurrent creation of the same Configuration class in different contexts is not thread-safe</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/9e0d87c5189cf07f0122b5edfd91321fdf0de013/hovercard" href="https://github.com/spring-projects/spring-framework/commit/9e0d87c5189cf07f0122b5edfd91321fdf0de013"><tt>9e0d87c</tt></a></p> | 0 |
<h2 dir="auto">Enable mapping a shortcut to a single key (and vice versa)</h2>
<p dir="auto">The expected behaviour would be to set the following mappings:<br>
Alt + o -> ö<br>
Shift + Alt + o -> Ö</p>
<p dir="auto">What works already is the second example, since you can make it to produce <em>Shift + ö</em> (which then prints as <em>Ö</em>).<br>
What doesn't work is the first example, since <strong>key remapping</strong> does not allow for using shortcut sequences (instead only single keys) and on the other hand <strong>shortcut remapping</strong> does not allow for a single keystroke be its result ("Shortcut must start with a modifier key" when trying to set <em>ö</em> as the result of <em>Alt + o</em> shortcut).</p>
<p dir="auto">For me the scenario would be to get rid of German QWERTZ keyboards and be able to do programming with QWERTY, while also being able to type proper German text with Umlauts. All of that while not having to use a crude keyboard layout where, e.g.:<br>
RAlt + q = ä<br>
RAlt + p = ö<br>
RAlt + y = ü</p>
<p dir="auto">Maybe the way to go would be to either add another category that allows intermixed (shortcut -> single keystroke) mappings, or just allow exactly that for the existing shortcut remapping category.</p>
<hr>
<p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p> | <p dir="auto">I'll keep this short bcz there's literally a lot that could be added for this. It's almost a standlaone app but it should be part of windows.</p>
<ol dir="auto">
<li>Press Win key.</li>
<li>Type 'Desktop'.</li>
<li>Watch search fail not finding the desktop folder.</li>
<li>Cry.</li>
</ol>
<p dir="auto">So really the cortana search is at best aweful. Can we make it useful (or create something else that is useful)? It'd be good for people who like to not use mouse.</p> | 0 |
<p dir="auto">Describe what you were doing when the bug occurred:<br>
1.<br>
2.<br>
3.</p>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.3.0-3e0967783</p>
<p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159833<br>
at Map.forEach ()<br>
at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:159779)<br>
at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:160302)<br>
at Sl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:322998)<br>
at ii (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59363)<br>
at Sl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107431)<br>
at Ic (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:99973)<br>
at Tc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:99898)<br>
at vc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:96672)</p>
<p dir="auto">Component stack: in Sl<br>
in div<br>
in div<br>
in div<br>
in vo<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in Qi<br>
in Ve<br>
in nn<br>
in Da<br>
in Yc</p> | <p dir="auto">PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE</p>
<p dir="auto">I got this error when I click 'Ranked'.</p>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.0.4-3c6a219</p>
<p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441<br>
at Map.forEach ()<br>
at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)<br>
at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)<br>
at _i (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277123)<br>
at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br>
at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)<br>
at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)<br>
at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363</p>
<p dir="auto">Component stack: in _i<br>
in div<br>
in div<br>
in div<br>
in Or<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in Ha<br>
in le<br>
in ve<br>
in ko<br>
in Ul</p> | 1 |
<p dir="auto">I don't think there's really any need to have http for the site at all. Any non-TLS location is a chance for an attacker to send users to a malicious download.</p> | <p dir="auto">I just noticed that the rust-lang.org, the nighty archives, and rustup.sh are not being served over https. We should set this up to protect users from man-in-the-middle attacks. Nominating for this to be done before we release 1.0.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> set up https for static.rust-lang.org</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> change binary links on website</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> change binary links on wiki</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> change binary links in docs</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> change rustup links in docs</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> modify rustup.sh to download over ssl</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> move rustup.sh to static.rust-lang.org</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> deprecate <a href="http://www.rust-lang.org/rustup.sh" rel="nofollow">www.rust-lang.org/rustup.sh</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> change makefiles to download snapshots over ssl?</li>
</ul> | 1 |
<p dir="auto">[Enter steps to reproduce below:]</p>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 1.0.0<br>
<strong>System</strong>: Microsoft Windows 8.1 Pro<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: Cannot find module './context-menu'<br>
Error: Cannot find module './context-menu'<br>
at Function.Module._resolveFilename (module.js:328:15)<br>
at Function.Module._load (module.js:270:25)<br>
at Module.require (module.js:357:17)<br>
at require (module.js:376:17)<br>
at BrowserWindow. (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27)<br>
at emitOne (events.js:77:13)<br>
at BrowserWindow.emit (events.js:166:7)<br>
at callFunction (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br>
at EventEmitter. (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br>
at emitMany (events.js:108:13)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77
Error: Cannot find module './context-menu'
Error: Cannot find module './context-menu'
at Function.Module._resolveFilename (module.js:328:15)
at Function.Module._load (module.js:270:25)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at BrowserWindow.<anonymous> (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27)
at emitOne (events.js:77:13)
at BrowserWindow.emit (events.js:166:7)
at callFunction (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33)
at HTMLDocument.handler (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)"><pre class="notranslate"><code class="notranslate">At C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77
Error: Cannot find module './context-menu'
Error: Cannot find module './context-menu'
at Function.Module._resolveFilename (module.js:328:15)
at Function.Module._load (module.js:270:25)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at BrowserWindow.<anonymous> (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27)
at emitOne (events.js:77:13)
at BrowserWindow.emit (events.js:166:7)
at callFunction (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33)
at HTMLDocument.handler (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\Sak-Ka-RIN\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<h3 dir="auto">Config</h3>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"core": {},
"editor": {
"invisibles": {},
"fontSize": 12
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"invisibles"</span>: {},
<span class="pl-ent">"fontSize"</span>: <span class="pl-c1">12</span>
}
}</pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
atom-minify, v0.1.6
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
atom<span class="pl-k">-</span>minify, v0.<span class="pl-ii">1</span>.<span class="pl-ii">6</span>
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | <p dir="auto">I right-clicked on a folder in the tree view</p>
<p dir="auto"><strong>Atom Version</strong>: 0.194.0<br>
<strong>System</strong>: Windows 7 Entreprise<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: Cannot find module './context-menu'<br>
Error: Cannot find module './context-menu'<br>
at Function.Module._resolveFilename (module.js:328:15)<br>
at Function.Module._load (module.js:270:25)<br>
at Module.require (module.js:357:17)<br>
at require (module.js:376:17)<br>
at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br>
at emitOne (events.js:77:13)<br>
at BrowserWindow.emit (events.js:166:7)<br>
at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br>
at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br>
at emitMany (events.js:108:13)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77
Error: Cannot find module './context-menu'
Error: Cannot find module './context-menu'
at Function.Module._resolveFilename (module.js:328:15)
at Function.Module._load (module.js:270:25)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at BrowserWindow.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)
at emitOne (events.js:77:13)
at BrowserWindow.emit (events.js:166:7)
at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33)
at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)
"><pre class="notranslate"><code class="notranslate">At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77
Error: Cannot find module './context-menu'
Error: Cannot find module './context-menu'
at Function.Module._resolveFilename (module.js:328:15)
at Function.Module._load (module.js:270:25)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at BrowserWindow.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)
at emitOne (events.js:77:13)
at BrowserWindow.emit (events.js:166:7)
at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33)
at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused)
2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor)
-3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
-2:47.4.0 editor:newline (atom-text-editor.editor.is-focused)
-2:38.2.0 core:cut (atom-text-editor.editor)
-2:36.5.0 core:paste (atom-text-editor.editor.is-focused)
-2:26.6.0 core:save (atom-text-editor.editor.is-focused)
-2:20.6.0 core:move-down (atom-text-editor.editor)
-2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor)
-2:15.8.0 core:save (atom-text-editor.editor)
-2:08.7.0 core:copy (atom-text-editor.editor.is-focused)
-2:01.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:59.7.0 core:save (atom-text-editor.editor.is-focused)
-1:52.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:51.6.0 core:save (atom-text-editor.editor.is-focused)
-1:30.6.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused)
2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor)
-3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
-2:47.4.0 editor:newline (atom-text-editor.editor.is-focused)
-2:38.2.0 core:cut (atom-text-editor.editor)
-2:36.5.0 core:paste (atom-text-editor.editor.is-focused)
-2:26.6.0 core:save (atom-text-editor.editor.is-focused)
-2:20.6.0 core:move-down (atom-text-editor.editor)
-2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor)
-2:15.8.0 core:save (atom-text-editor.editor)
-2:08.7.0 core:copy (atom-text-editor.editor.is-focused)
-2:01.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:59.7.0 core:save (atom-text-editor.editor.is-focused)
-1:52.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:51.6.0 core:save (atom-text-editor.editor.is-focused)
-1:30.6.0 core:backspace (atom-text-editor.editor)
</code></pre></div>
<h3 dir="auto">Config</h3>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"core": {
"ignoredNames": [
"node_modules"
],
"themes": [
"atom-dark-ui",
"seti-syntax"
],
"disabledPackages": [
"Tern"
],
"projectHome": "Y:\\app-tfoumax"
},
"editor": {
"invisibles": {},
"softWrap": true,
"showIndentGuide": true
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"ignoredNames"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"themes"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"disabledPackages"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>Tern<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>Y:<span class="pl-cce">\\</span>app-tfoumax<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"invisibles"</span>: {},
<span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span>
}
}</pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
autocomplete-plus, v2.12.0
autocomplete-snippets, v1.2.0
javascript-snippets, v1.0.0
jshint, v1.3.5
language-ejs, v0.1.0
linter, v0.12.1
pretty-json, v0.3.3
save-session, v0.14.0
Search, v0.4.0
seti-syntax, v0.4.0
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span>
autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">2</span>.<span class="pl-ii">0</span>
javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span>
jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span>
language<span class="pl-k">-</span>ejs, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span>
linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span>
pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span>
save<span class="pl-k">-</span>session, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span>
Search, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span>
seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span>
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | 1 |
<p dir="auto"><strong>Elasticsearch version</strong>: <code class="notranslate">Elasticsearch 2.3</code></p>
<p dir="auto"><strong>JVM version</strong>: <code class="notranslate">Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)</code></p>
<p dir="auto"><strong>OS version</strong>: Any</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:</p>
<p dir="auto">This only happens when <code class="notranslate">search_type=dfs_query_then_fetch</code>! Looks like the score that the explain object is returning is different than the actual score that it is being returned in the hit.</p>
<p dir="auto">First, start elasticsearch 1.7 to verify that the <code class="notranslate">explain</code> was working fine. Do the following bulk operation:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="POST /_bulk
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }"><pre class="notranslate"><code class="notranslate">POST /_bulk
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
{ "index": { "_index": "trial", "_type": "type" } }
{ "city": "montevideo", "cityAliases": "mvd" }
</code></pre></div>
<p dir="auto">Then, execute the following search operation:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="POST /trial/_search?search_type=dfs_query_and_fetch&explain&size=1
{"query":{"multi_match":{"query":"mvd","fields":["city","cityAliases"]}}}"><pre class="notranslate"><code class="notranslate">POST /trial/_search?search_type=dfs_query_and_fetch&explain&size=1
{"query":{"multi_match":{"query":"mvd","fields":["city","cityAliases"]}}}
</code></pre></div>
<p dir="auto">Verify that the score under explain is the same as the main score:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Result - Main Score: 0.24285339, _explanation Score: 0.24285339
{
"_shard": 0,
"_node": "bPFH3L1nT9-BTOKWyd-i0Q",
"_index": "trial",
"_type": "type",
"_id": "AVSGJuxrGCZTdIeL7K4h",
"_score": 0.24285339,
"_source": {
"city": "montevideo",
"cityAliases": "mvd"
},
"_explanation": {
"value": 0.24285339,
"description": "max of:",
"details": [
{
"value": 0.24285339,
"description": "weight(cityAliases:mvd in 0) [PerFieldSimilarity], result of:",
"details": [
{
"value": 0.24285339,
"description": "score(doc=0,freq=1.0), product of:",
"details": [
{
"value": 0.26398334,
"description": "queryWeight, product of:",
"details": [
{
"value": 0.9199573,
"description": "idf(docFreq=12, maxDocs=12)"
},
{
"value": 0.28695172,
"description": "queryNorm"
}
]
},
{
"value": 0.9199573,
"description": "fieldWeight in 0, product of:",
"details": [
{
"value": 1,
"description": "tf(freq=1.0), with freq of:",
"details": [
{
"value": 1,
"description": "termFreq=1.0"
}
]
},
{
"value": 0.9199573,
"description": "idf(docFreq=12, maxDocs=12)"
},
{
"value": 1,
"description": "fieldNorm(doc=0)"
}
]
}
]
}
]
}
]
}
}"><pre class="notranslate"><code class="notranslate"># Result - Main Score: 0.24285339, _explanation Score: 0.24285339
{
"_shard": 0,
"_node": "bPFH3L1nT9-BTOKWyd-i0Q",
"_index": "trial",
"_type": "type",
"_id": "AVSGJuxrGCZTdIeL7K4h",
"_score": 0.24285339,
"_source": {
"city": "montevideo",
"cityAliases": "mvd"
},
"_explanation": {
"value": 0.24285339,
"description": "max of:",
"details": [
{
"value": 0.24285339,
"description": "weight(cityAliases:mvd in 0) [PerFieldSimilarity], result of:",
"details": [
{
"value": 0.24285339,
"description": "score(doc=0,freq=1.0), product of:",
"details": [
{
"value": 0.26398334,
"description": "queryWeight, product of:",
"details": [
{
"value": 0.9199573,
"description": "idf(docFreq=12, maxDocs=12)"
},
{
"value": 0.28695172,
"description": "queryNorm"
}
]
},
{
"value": 0.9199573,
"description": "fieldWeight in 0, product of:",
"details": [
{
"value": 1,
"description": "tf(freq=1.0), with freq of:",
"details": [
{
"value": 1,
"description": "termFreq=1.0"
}
]
},
{
"value": 0.9199573,
"description": "idf(docFreq=12, maxDocs=12)"
},
{
"value": 1,
"description": "fieldNorm(doc=0)"
}
]
}
]
}
]
}
]
}
}
</code></pre></div>
<p dir="auto">Now, do the same in Elasticsearch 2.3. Use the same bulk operation and query!</p>
<p dir="auto">Verify that the score under explain is <strong>DIFFERENT</strong> as the main score. The score is <code class="notranslate">0.24285339</code> but the explain is giving <code class="notranslate">0.2417773</code>. With larger datasets the difference between explain and the score can be bigger.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Result - Main Score: 0.24285339, _explanation Score: 0.2417773
{
"_shard": 1,
"_node": "CY8y3EdDQyWmUkB9oB3MgQ",
"_index": "trial",
"_type": "type",
"_id": "AVSGKy64GyfPh09elcKQ",
"_score": 0.24285339,
"_source": {
"city": "montevideo",
"cityAliases": "mvd"
},
"_explanation": {
"value": 0.2417773,
"description": "max of:",
"details": [
{
"value": 0.2417773,
"description": "weight(cityAliases:mvd in 0) [PerFieldSimilarity], result of:",
"details": [
{
"value": 0.2417773,
"description": "score(doc=0,freq=1.0), product of:",
"details": [
{
"value": 0.3394233,
"description": "queryWeight, product of:",
"details": [
{
"value": 0.71231794,
"description": "idf(docFreq=3, maxDocs=3)",
"details": []
},
{
"value": 0.47650534,
"description": "queryNorm",
"details": []
}
]
},
{
"value": 0.71231794,
"description": "fieldWeight in 0, product of:",
"details": [
{
"value": 1,
"description": "tf(freq=1.0), with freq of:",
"details": [
{
"value": 1,
"description": "termFreq=1.0",
"details": []
}
]
},
{
"value": 0.71231794,
"description": "idf(docFreq=3, maxDocs=3)",
"details": []
},
{
"value": 1,
"description": "fieldNorm(doc=0)",
"details": []
}
]
}
]
}
]
}
]
}
}"><pre class="notranslate"><code class="notranslate"># Result - Main Score: 0.24285339, _explanation Score: 0.2417773
{
"_shard": 1,
"_node": "CY8y3EdDQyWmUkB9oB3MgQ",
"_index": "trial",
"_type": "type",
"_id": "AVSGKy64GyfPh09elcKQ",
"_score": 0.24285339,
"_source": {
"city": "montevideo",
"cityAliases": "mvd"
},
"_explanation": {
"value": 0.2417773,
"description": "max of:",
"details": [
{
"value": 0.2417773,
"description": "weight(cityAliases:mvd in 0) [PerFieldSimilarity], result of:",
"details": [
{
"value": 0.2417773,
"description": "score(doc=0,freq=1.0), product of:",
"details": [
{
"value": 0.3394233,
"description": "queryWeight, product of:",
"details": [
{
"value": 0.71231794,
"description": "idf(docFreq=3, maxDocs=3)",
"details": []
},
{
"value": 0.47650534,
"description": "queryNorm",
"details": []
}
]
},
{
"value": 0.71231794,
"description": "fieldWeight in 0, product of:",
"details": [
{
"value": 1,
"description": "tf(freq=1.0), with freq of:",
"details": [
{
"value": 1,
"description": "termFreq=1.0",
"details": []
}
]
},
{
"value": 0.71231794,
"description": "idf(docFreq=3, maxDocs=3)",
"details": []
},
{
"value": 1,
"description": "fieldNorm(doc=0)",
"details": []
}
]
}
]
}
]
}
]
}
}
</code></pre></div> | <p dir="auto">provide a separate jar to permit to use java rest client with jest project (<a href="https://github.com/searchbox-io/Jest">https://github.com/searchbox-io/Jest</a>) and java api without include all elesticsearch and lucene as dependency</p> | 0 |
<p dir="auto"><strong>Kubernetes version</strong> :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.4", GitCommit:"dd6b458ef8dbf24aff55795baa68f83383c9b3a9", GitTreeState:"clean", BuildDate:"2016-08-01T16:45:16Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4+", GitVersion:"v1.4.0-beta.8+coreos.0", GitCommit:"9c19ded313d3b3b86eadf179aed553854138abd7", GitTreeState:"clean", BuildDate:"2016-09-19T18:58:14Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.4", GitCommit:"dd6b458ef8dbf24aff55795baa68f83383c9b3a9", GitTreeState:"clean", BuildDate:"2016-08-01T16:45:16Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"4+", GitVersion:"v1.4.0-beta.8+coreos.0", GitCommit:"9c19ded313d3b3b86eadf179aed553854138abd7", GitTreeState:"clean", BuildDate:"2016-09-19T18:58:14Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
</code></pre></div>
<p dir="auto">(I'm using v1.4.0-beta.8+coreos.0 version since this fixes "dmidecode" binary dependency, which is not available neither in hyperkube, nor in Core OS <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="160079002" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27331" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/27331/hovercard" href="https://github.com/kubernetes/kubernetes/pull/27331">#27331</a>)</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>:</li>
</ul>
<p dir="auto">VMWare virtual machine, deployed on as ESXi 6.0.0 Update 2 (Build 4192238) host.</p>
<p dir="auto">Output from govc datacenter.info</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Name: ha-datacenter
Hosts: 1
Clusters: 0
Virtual Machines: 1
Networks: 1
Datastores: 4"><pre class="notranslate"><code class="notranslate">Name: ha-datacenter
Hosts: 1
Clusters: 0
Virtual Machines: 1
Networks: 1
Datastores: 4
</code></pre></div>
<p dir="auto">Output from govc vm.info -vm.ip=192.168.0.144</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Name: ci01
Path: /ha-datacenter/vm/ci01
UUID: 564d8885-7d5b-3c5c-3525-d382ca47ab1c
Guest name: Other 2.6.x Linux (64-bit)
Memory: 1024MB
CPU: 2 vCPU(s)
Power state: poweredOn
Boot time: 2016-09-22 05:59:31.517386 +0000 UTC
IP address: 10.2.24.1
Host: hostname.mydomain.com"><pre class="notranslate"><code class="notranslate">Name: ci01
Path: /ha-datacenter/vm/ci01
UUID: 564d8885-7d5b-3c5c-3525-d382ca47ab1c
Guest name: Other 2.6.x Linux (64-bit)
Memory: 1024MB
CPU: 2 vCPU(s)
Power state: poweredOn
Boot time: 2016-09-22 05:59:31.517386 +0000 UTC
IP address: 10.2.24.1
Host: hostname.mydomain.com
</code></pre></div>
<p dir="auto">where 192.168.0.144 is the public IP of the virtual machine</p>
<ul dir="auto">
<li><strong>OS</strong> :</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="NAME=CoreOS
ID=coreos
VERSION=1122.2.0
VERSION_ID=1122.2.0
BUILD_ID=2016-09-06-1449
PRETTY_NAME="CoreOS 1122.2.0 (MoreOS)"
ANSI_COLOR="1;32"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://github.com/coreos/bugs/issues""><pre class="notranslate"><code class="notranslate">NAME=CoreOS
ID=coreos
VERSION=1122.2.0
VERSION_ID=1122.2.0
BUILD_ID=2016-09-06-1449
PRETTY_NAME="CoreOS 1122.2.0 (MoreOS)"
ANSI_COLOR="1;32"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://github.com/coreos/bugs/issues"
</code></pre></div>
<p dir="auto">I'm using <a href="https://stable.release.core-os.net/amd64-usr/current/coreos_production_vmware_ova.ova" rel="nofollow">coreos_production_vmware_ova.ova</a> available in CoreOs stable channel.</p>
<ul dir="auto">
<li><strong>Kernel</strong> :</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Linux ci01 4.7.0-coreos #1 SMP Tue Sep 6 14:39:20 UTC 2016 x86_64 Intel(R) Xeon(R) CPU L5640 @ 2.27GHz GenuineIntel GNU/Linux"><pre class="notranslate"><code class="notranslate">Linux ci01 4.7.0-coreos #1 SMP Tue Sep 6 14:39:20 UTC 2016 x86_64 Intel(R) Xeon(R) CPU L5640 @ 2.27GHz GenuineIntel GNU/Linux
</code></pre></div>
<ul dir="auto">
<li><strong>Install tools</strong>:</li>
</ul>
<p dir="auto">VMWare tools version 2147483647</p>
<ul dir="auto">
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto">kubelet service:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[Service]
EnvironmentFile=/etc/environment
Environment=KUBELET_VERSION=v1.4.0-beta.8_coreos.0
TimeoutStartSec=infinity
ExecStartPre=/bin/mkdir -p /etc/kubernetes/manifests
ExecStartPre=/bin/mkdir -p /srv/kubernetes/manifests
ExecStartPre=/bin/mkdir -p /etc/kubernetes/checkpoint-secrets
ExecStartPre=/bin/rkt fetch quay.io/coreos/hyperkube:v1.4.0-beta.8_coreos.0 --trust-keys-from-https
ExecStart=/usr/lib/coreos/kubelet-wrapper \
--api-servers=https://192.168.0.144:443 \
--kubeconfig=/etc/kubernetes/kubeconfig \
--lock-file=/var/run/lock/kubelet.lock \
--exit-on-lock-contention=true \
--allow-privileged \
--config=/etc/kubernetes/manifests \
--hostname-override=192.168.0.144 \
--node-labels=master=true \
--minimum-container-ttl-duration=3m0s \
--cluster_dns=10.3.0.10 \
--cluster_domain=cluster.local \
--cloud-config=/etc/kubernetes/vsphere.conf \
--cloud-provider=vsphere
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target"><pre class="notranslate"><code class="notranslate">[Service]
EnvironmentFile=/etc/environment
Environment=KUBELET_VERSION=v1.4.0-beta.8_coreos.0
TimeoutStartSec=infinity
ExecStartPre=/bin/mkdir -p /etc/kubernetes/manifests
ExecStartPre=/bin/mkdir -p /srv/kubernetes/manifests
ExecStartPre=/bin/mkdir -p /etc/kubernetes/checkpoint-secrets
ExecStartPre=/bin/rkt fetch quay.io/coreos/hyperkube:v1.4.0-beta.8_coreos.0 --trust-keys-from-https
ExecStart=/usr/lib/coreos/kubelet-wrapper \
--api-servers=https://192.168.0.144:443 \
--kubeconfig=/etc/kubernetes/kubeconfig \
--lock-file=/var/run/lock/kubelet.lock \
--exit-on-lock-contention=true \
--allow-privileged \
--config=/etc/kubernetes/manifests \
--hostname-override=192.168.0.144 \
--node-labels=master=true \
--minimum-container-ttl-duration=3m0s \
--cluster_dns=10.3.0.10 \
--cluster_domain=cluster.local \
--cloud-config=/etc/kubernetes/vsphere.conf \
--cloud-provider=vsphere
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target
</code></pre></div>
<p dir="auto">vsphere.conf (cloud-config):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[Global]
server=ESXI_host_IP
port=443
user=myuser
password=mypassword
insecure-flag=true
datacenter=ha-datacenter"><pre class="notranslate"><code class="notranslate">[Global]
server=ESXI_host_IP
port=443
user=myuser
password=mypassword
insecure-flag=true
datacenter=ha-datacenter
</code></pre></div>
<p dir="auto"><strong>What happened</strong>:<br>
Kubelet fails to start with the following errors:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" systemd[1]: Starting kubelet.service...
rkt[1866]: image: using image from local store for image name quay.io/coreos/hyperkube:v1.4.0-beta.8_coreos.0
rkt[1866]: sha512-406472bdf336d7a2a353354ae0597540
systemd[1]: Started kubelet.service.
kubelet-wrapper[1883]: image: using image from file /usr/lib64/rkt/stage1-images/stage1-fly.aci
kubelet-wrapper[1883]: image: using image from local store for image name quay.io/coreos/hyperkube:v1.4.0-beta.8_coreos.0
kubelet-wrapper[1883]: Flag --api-servers has been deprecated, Use --kubeconfig instead. Will be removed in a future version.
kubelet-wrapper[1883]: Flag --config has been deprecated, Use --pod-manifest-path instead. Will be removed in a future version.
kubelet-wrapper[1883]: Flag --minimum-container-ttl-duration has been deprecated, Use --eviction-hard or --eviction-soft instead. Will be removed in a future version.
kubelet-wrapper[1883]: I0921 13:41:24.809785 1883 server.go:309] acquiring lock on "/var/run/lock/kubelet.lock"
kubelet-wrapper[1883]: I0921 13:41:24.810116 1883 server.go:314] watching for inotify events for: /var/run/lock/kubelet.lock
kubelet-wrapper[1883]: panic: reflect.Set: value of type mo.ComputeResource is not assignable to type mo.ClusterComputeResource
kubelet-wrapper[1883]: goroutine 1 [running]:
kubelet-wrapper[1883]: panic(0x388bb80, 0xc82034aec0)
kubelet-wrapper[1883]: /usr/local/go/src/runtime/panic.go:481 +0x3e6
kubelet-wrapper[1883]: reflect.Value.assignTo(0x4a042a0, 0xc82050e1e0, 0x99, 0x4d90950, 0xb, 0x49ce7e0, 0x0, 0x0, 0x0, 0x0)
kubelet-wrapper[1883]: /usr/local/go/src/reflect/value.go:2164 +0x3be
kubelet-wrapper[1883]: reflect.Value.Set(0x49ce7e0, 0xc8202a4700, 0x199, 0x4a042a0, 0xc82050e1e0, 0x99)
kubelet-wrapper[1883]: /usr/local/go/src/reflect/value.go:1334 +0x95
kubelet-wrapper[1883]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/mo.LoadRetrievePropertiesResponse(0xc820aba760, 0x4690fe0, 0xc8202a4700, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/mo/retrieve.go:128 +0xe21
kubelet-wrapper[1883]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property.(*Collector).Retrieve(0xc820962b60, 0x7f3ecae79290, 0xc820256e80, 0xc820581260, 0x1, x1, 0x1, 0x4690fe0, ...)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property/collector.go:167 +0x52f
kubelet-wrapper[1883]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property.(*Collector).RetrieveOne(0xc820962b60, 0x7f3ecae79290, 0xc820256e80, 0xc82045d180, xe, 0xc82045dd90, 0x1, 0x1, ...)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property/collector.go:173 +0x10e
kubelet-wrapper[1883]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/object.Common.Properties(0x0, 0x0, 0xc82022a500, 0xc8202cd890, 0xb, 0xc8202cd8f0, 0xe, 20256e80, 0xc82045d180, ...)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/object/common.go:97 +0x19f
kubelet-wrapper[1883]: k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere.readInstance(0xc8201c2820, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere/vsphere.go:219 +0xe8f
kubelet-wrapper[1883]: k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere.newVSphere(0xc820211250, 0x5, 0xc820211490, 0x9, 0xc820210ce0, 0xd, 0xc820210f18, 0x3, ..)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere/vsphere.go:233 +0x7e
kubelet-wrapper[1883]: k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere.init.1.func1(0x7f3ecae69488, 0xc82001c210, 0x0, 0x0, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere/vsphere.go:149 +0xdf
kubelet-wrapper[1883]: k8s.io/kubernetes/pkg/cloudprovider.GetCloudProvider(0x7ffc4d24cf63, 0x7, 0x7f3ecae69488, 0xc82001c210, 0x0, 0x0, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/plugins.go:62 +0x112
kubelet-wrapper[1883]: k8s.io/kubernetes/pkg/cloudprovider.InitCloudProvider(0x7ffc4d24cf63, 0x7, 0x7ffc4d24cf35, 0x1c, 0x0, 0x0, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/plugins.go:84 +0x3e2
kubelet-wrapper[1883]: k8s.io/kubernetes/cmd/kubelet/app.run(0xc8204fc000, 0x0, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubelet/app/server.go:348 +0x17ca
kubelet-wrapper[1883]: k8s.io/kubernetes/cmd/kubelet/app.Run(0xc8204fc000, 0x0, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubelet/app/server.go:267 +0x4a
kubelet-wrapper[1883]: main.NewKubelet.func1(0xc8201f7400, 0xc82033b6c0, 0x0, 0xd, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/hyperkube/kubelet.go:37 +0x35
kubelet-wrapper[1883]: main.(*HyperKube).Run(0xc82042d560, 0xc82000a0f0, 0xd, 0xd, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/hyperkube/hyperkube.go:181 +0x670
kubelet-wrapper[1883]: main.(*HyperKube).RunToExit(0xc82042d560, 0xc82000a0e0, 0xe, 0xe)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/hyperkube/hyperkube.go:191 +0x5f
kubelet-wrapper[1883]: main.main()
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/hyperkube/main.go:48 +0x79e
systemd[1]: kubelet.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: kubelet.service: Unit entered failed state.
systemd[1]: kubelet.service: Failed with result 'exit-code'."><pre class="notranslate"><code class="notranslate"> systemd[1]: Starting kubelet.service...
rkt[1866]: image: using image from local store for image name quay.io/coreos/hyperkube:v1.4.0-beta.8_coreos.0
rkt[1866]: sha512-406472bdf336d7a2a353354ae0597540
systemd[1]: Started kubelet.service.
kubelet-wrapper[1883]: image: using image from file /usr/lib64/rkt/stage1-images/stage1-fly.aci
kubelet-wrapper[1883]: image: using image from local store for image name quay.io/coreos/hyperkube:v1.4.0-beta.8_coreos.0
kubelet-wrapper[1883]: Flag --api-servers has been deprecated, Use --kubeconfig instead. Will be removed in a future version.
kubelet-wrapper[1883]: Flag --config has been deprecated, Use --pod-manifest-path instead. Will be removed in a future version.
kubelet-wrapper[1883]: Flag --minimum-container-ttl-duration has been deprecated, Use --eviction-hard or --eviction-soft instead. Will be removed in a future version.
kubelet-wrapper[1883]: I0921 13:41:24.809785 1883 server.go:309] acquiring lock on "/var/run/lock/kubelet.lock"
kubelet-wrapper[1883]: I0921 13:41:24.810116 1883 server.go:314] watching for inotify events for: /var/run/lock/kubelet.lock
kubelet-wrapper[1883]: panic: reflect.Set: value of type mo.ComputeResource is not assignable to type mo.ClusterComputeResource
kubelet-wrapper[1883]: goroutine 1 [running]:
kubelet-wrapper[1883]: panic(0x388bb80, 0xc82034aec0)
kubelet-wrapper[1883]: /usr/local/go/src/runtime/panic.go:481 +0x3e6
kubelet-wrapper[1883]: reflect.Value.assignTo(0x4a042a0, 0xc82050e1e0, 0x99, 0x4d90950, 0xb, 0x49ce7e0, 0x0, 0x0, 0x0, 0x0)
kubelet-wrapper[1883]: /usr/local/go/src/reflect/value.go:2164 +0x3be
kubelet-wrapper[1883]: reflect.Value.Set(0x49ce7e0, 0xc8202a4700, 0x199, 0x4a042a0, 0xc82050e1e0, 0x99)
kubelet-wrapper[1883]: /usr/local/go/src/reflect/value.go:1334 +0x95
kubelet-wrapper[1883]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/mo.LoadRetrievePropertiesResponse(0xc820aba760, 0x4690fe0, 0xc8202a4700, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/mo/retrieve.go:128 +0xe21
kubelet-wrapper[1883]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property.(*Collector).Retrieve(0xc820962b60, 0x7f3ecae79290, 0xc820256e80, 0xc820581260, 0x1, x1, 0x1, 0x4690fe0, ...)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property/collector.go:167 +0x52f
kubelet-wrapper[1883]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property.(*Collector).RetrieveOne(0xc820962b60, 0x7f3ecae79290, 0xc820256e80, 0xc82045d180, xe, 0xc82045dd90, 0x1, 0x1, ...)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property/collector.go:173 +0x10e
kubelet-wrapper[1883]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/object.Common.Properties(0x0, 0x0, 0xc82022a500, 0xc8202cd890, 0xb, 0xc8202cd8f0, 0xe, 20256e80, 0xc82045d180, ...)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/object/common.go:97 +0x19f
kubelet-wrapper[1883]: k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere.readInstance(0xc8201c2820, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere/vsphere.go:219 +0xe8f
kubelet-wrapper[1883]: k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere.newVSphere(0xc820211250, 0x5, 0xc820211490, 0x9, 0xc820210ce0, 0xd, 0xc820210f18, 0x3, ..)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere/vsphere.go:233 +0x7e
kubelet-wrapper[1883]: k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere.init.1.func1(0x7f3ecae69488, 0xc82001c210, 0x0, 0x0, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere/vsphere.go:149 +0xdf
kubelet-wrapper[1883]: k8s.io/kubernetes/pkg/cloudprovider.GetCloudProvider(0x7ffc4d24cf63, 0x7, 0x7f3ecae69488, 0xc82001c210, 0x0, 0x0, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/plugins.go:62 +0x112
kubelet-wrapper[1883]: k8s.io/kubernetes/pkg/cloudprovider.InitCloudProvider(0x7ffc4d24cf63, 0x7, 0x7ffc4d24cf35, 0x1c, 0x0, 0x0, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/plugins.go:84 +0x3e2
kubelet-wrapper[1883]: k8s.io/kubernetes/cmd/kubelet/app.run(0xc8204fc000, 0x0, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubelet/app/server.go:348 +0x17ca
kubelet-wrapper[1883]: k8s.io/kubernetes/cmd/kubelet/app.Run(0xc8204fc000, 0x0, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubelet/app/server.go:267 +0x4a
kubelet-wrapper[1883]: main.NewKubelet.func1(0xc8201f7400, 0xc82033b6c0, 0x0, 0xd, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/hyperkube/kubelet.go:37 +0x35
kubelet-wrapper[1883]: main.(*HyperKube).Run(0xc82042d560, 0xc82000a0f0, 0xd, 0xd, 0x0, 0x0)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/hyperkube/hyperkube.go:181 +0x670
kubelet-wrapper[1883]: main.(*HyperKube).RunToExit(0xc82042d560, 0xc82000a0e0, 0xe, 0xe)
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/hyperkube/hyperkube.go:191 +0x5f
kubelet-wrapper[1883]: main.main()
kubelet-wrapper[1883]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/hyperkube/main.go:48 +0x79e
systemd[1]: kubelet.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: kubelet.service: Unit entered failed state.
systemd[1]: kubelet.service: Failed with result 'exit-code'.
</code></pre></div>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
It works as expected if I comment out lines related to cloud-config and cloud-provider from kubelet service.</p>
<p dir="auto">I wolud like to use those flags in orther to be able to use vsphere volumes in kubernetes.</p>
<p dir="auto"><strong>How to reproduce it</strong>:<br>
Start kubelet service, it always fails trying to read vm instances on vsphere.go provider plugin</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:<br>
It is a sinlge node, self hosted, kubernetes cluster. I generate kubernetes manifests using <a href="https://github.com/kubernetes-incubator/bootkube">bootkube</a> binary with its render method, then modify manifest to use v1.4.0-beta.8_coreos.0 version, and finally launch cluster using bootkube start.</p>
<p dir="auto">As I said before, it works when you don't put cloud-provider and cloud-config in the kubelet servide.</p> | <p dir="auto">Recent changes in master <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="172010677" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/30935" data-hovercard-type="pull_request" data-hovercard-url="/kubernetes/kubernetes/pull/30935/hovercard" href="https://github.com/kubernetes/kubernetes/pull/30935">#30935</a> that were pulled into the 1.4 release branch lead to vSphere cloud provider to panic when only a single ESX node is present under a vCenter.</p>
<p dir="auto">I am in the process of testing and creating a PR for this.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Oct 14 19:11:46 kube kubelet[22061]: panic: reflect.Set: value of type mo.ComputeResource is not assignable to type mo.ClusterComputeResource
Oct 14 19:11:46 kube kubelet[22061]: goroutine 1 [running]:
Oct 14 19:11:46 kube kubelet[22061]: panic(0x287dbe0, 0xc82043b790)
Oct 14 19:11:46 kube kubelet[22061]: /usr/local/go/src/runtime/panic.go:481 +0x3e6
Oct 14 19:11:46 kube kubelet[22061]: reflect.Value.assignTo(0x359f380, 0xc8200f8780, 0x99, 0x382f5a0, 0xb, 0x357c7e0, 0x0, 0x0, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /usr/local/go/src/reflect/value.go:2164 +0x3be
Oct 14 19:11:46 kube kubelet[22061]: reflect.Value.Set(0x357c7e0, 0xc82058c000, 0x199, 0x359f380, 0xc8200f8780, 0x99)
Oct 14 19:11:46 kube kubelet[22061]: /usr/local/go/src/reflect/value.go:1334 +0x95
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/mo.LoadRetrievePropertiesResponse(0xc820241c20, 0x32db640, 0xc82058c000, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/mo/retrieve.go:128 +0xe21
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property.(*Collector).Retrieve(0xc8205a3060, 0x7f1cb57faf18, 0xc82038dc00, 0xc8202418a0, 0x1, 0x1, 0xc82043a170, 0x1, 0x1, 0x32db640, ...)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property/collector.go:167 +0x52f
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property.(*Collector).RetrieveOne(0xc8205a3060, 0x7f1cb57faf18, 0xc82038dc00, 0xc820451750, 0xf, 0xc820451770, 0xb, 0xc82043a170, 0x1, 0x1, ...)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property/collector.go:173 +0x10e
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/object.Common.Properties(0x0, 0x0, 0xc820359900, 0xc82032bdd0, 0xb, 0xc82032be00, 0xb, 0x7f1cb57faf18, 0xc82038dc00, 0xc820451750, ...)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/object/common.go:97 +0x19f
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere.readInstance(0xc8203cc5a0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere/vsphere.go:256 +0xe8f
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere.newVSphere(0xc82042dbe0, 0x1b, 0xc82048a8b0, 0x8, 0xc82048ac70, 0xd, 0xc82048af90, 0x3, 0x1, 0xc82048b550, ...)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere/vsphere.go:270 +0x7e
Oct 14 19:11:46 kube systemd[1]: kubelet.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Oct 14 19:11:46 kube systemd[1]: Unit kubelet.service entered failed state.
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere.init.1.func1(0x7f1cb57d62c8, 0xc82001e6a8, 0x0, 0x0, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere/vsphere.go:186 +0xdf
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/pkg/cloudprovider.GetCloudProvider(0x7ffcb7cebd22, 0x7, 0x7f1cb57d62c8, 0xc82001e6a8, 0x0, 0x0, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/plugins.go:85 +0x112
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/pkg/cloudprovider.InitCloudProvider(0x7ffcb7cebd22, 0x7, 0x7ffcb7cebd39, 0x19, 0x0, 0x0, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/plugins.go:107 +0x3e2
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/cmd/kubelet/app.run(0xc820072b00, 0x0, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubelet/app/server.go:349 +0x18c2
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/cmd/kubelet/app.Run(0xc820072b00, 0x0, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubelet/app/server.go:268 +0x4a
Oct 14 19:11:46 kube kubelet[22061]: main.main()
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubelet/kubelet.go:48 +0x94"><pre class="notranslate"><code class="notranslate">Oct 14 19:11:46 kube kubelet[22061]: panic: reflect.Set: value of type mo.ComputeResource is not assignable to type mo.ClusterComputeResource
Oct 14 19:11:46 kube kubelet[22061]: goroutine 1 [running]:
Oct 14 19:11:46 kube kubelet[22061]: panic(0x287dbe0, 0xc82043b790)
Oct 14 19:11:46 kube kubelet[22061]: /usr/local/go/src/runtime/panic.go:481 +0x3e6
Oct 14 19:11:46 kube kubelet[22061]: reflect.Value.assignTo(0x359f380, 0xc8200f8780, 0x99, 0x382f5a0, 0xb, 0x357c7e0, 0x0, 0x0, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /usr/local/go/src/reflect/value.go:2164 +0x3be
Oct 14 19:11:46 kube kubelet[22061]: reflect.Value.Set(0x357c7e0, 0xc82058c000, 0x199, 0x359f380, 0xc8200f8780, 0x99)
Oct 14 19:11:46 kube kubelet[22061]: /usr/local/go/src/reflect/value.go:1334 +0x95
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/mo.LoadRetrievePropertiesResponse(0xc820241c20, 0x32db640, 0xc82058c000, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/vim25/mo/retrieve.go:128 +0xe21
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property.(*Collector).Retrieve(0xc8205a3060, 0x7f1cb57faf18, 0xc82038dc00, 0xc8202418a0, 0x1, 0x1, 0xc82043a170, 0x1, 0x1, 0x32db640, ...)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property/collector.go:167 +0x52f
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property.(*Collector).RetrieveOne(0xc8205a3060, 0x7f1cb57faf18, 0xc82038dc00, 0xc820451750, 0xf, 0xc820451770, 0xb, 0xc82043a170, 0x1, 0x1, ...)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/property/collector.go:173 +0x10e
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/vendor/github.com/vmware/govmomi/object.Common.Properties(0x0, 0x0, 0xc820359900, 0xc82032bdd0, 0xb, 0xc82032be00, 0xb, 0x7f1cb57faf18, 0xc82038dc00, 0xc820451750, ...)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/vmware/govmomi/object/common.go:97 +0x19f
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere.readInstance(0xc8203cc5a0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere/vsphere.go:256 +0xe8f
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere.newVSphere(0xc82042dbe0, 0x1b, 0xc82048a8b0, 0x8, 0xc82048ac70, 0xd, 0xc82048af90, 0x3, 0x1, 0xc82048b550, ...)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere/vsphere.go:270 +0x7e
Oct 14 19:11:46 kube systemd[1]: kubelet.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Oct 14 19:11:46 kube systemd[1]: Unit kubelet.service entered failed state.
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere.init.1.func1(0x7f1cb57d62c8, 0xc82001e6a8, 0x0, 0x0, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/providers/vsphere/vsphere.go:186 +0xdf
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/pkg/cloudprovider.GetCloudProvider(0x7ffcb7cebd22, 0x7, 0x7f1cb57d62c8, 0xc82001e6a8, 0x0, 0x0, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/plugins.go:85 +0x112
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/pkg/cloudprovider.InitCloudProvider(0x7ffcb7cebd22, 0x7, 0x7ffcb7cebd39, 0x19, 0x0, 0x0, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/cloudprovider/plugins.go:107 +0x3e2
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/cmd/kubelet/app.run(0xc820072b00, 0x0, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubelet/app/server.go:349 +0x18c2
Oct 14 19:11:46 kube kubelet[22061]: k8s.io/kubernetes/cmd/kubelet/app.Run(0xc820072b00, 0x0, 0x0, 0x0)
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubelet/app/server.go:268 +0x4a
Oct 14 19:11:46 kube kubelet[22061]: main.main()
Oct 14 19:11:46 kube kubelet[22061]: /go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubelet/kubelet.go:48 +0x94
</code></pre></div> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.4.9-sp5-20150715</li>
<li>Operating System version: linux</li>
<li>Java version: 1.5</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>在dubbo:refrence 中配置了cache=“LRU”,发现数据无法获取最新数据,有时候取到新的,有时候取到旧的,后来将cache配置删了,发现还是无法解决;</li>
<li>通过调试,用命令trace dubbo接口,发现接口返回的数据中每次都是最新的,但是在程序中debug获取的返回值却是旧的,搞不懂了,为什么会与trace返回的数据不一样呢?</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">正常理解是cache去除后,应该是不走缓存?还是说配置问题?<br>
是否会有缓存的序列化的问题,如果有,怎么清除序列化文件?</p>
<h3 dir="auto">Actual Result</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="![image](https://user-images.githubusercontent.com/25905832/54585896-59751900-4a56-11e9-8878-8457ae76cb69.png)
![image](https://user-images.githubusercontent.com/25905832/54585950-7dd0f580-4a56-11e9-87e3-dfee68a43861.png)
"><pre class="notranslate"><code class="notranslate">![image](https://user-images.githubusercontent.com/25905832/54585896-59751900-4a56-11e9-8878-8457ae76cb69.png)
![image](https://user-images.githubusercontent.com/25905832/54585950-7dd0f580-4a56-11e9-87e3-dfee68a43861.png)
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: v2.6.5</li>
<li>Operating System version:windows 7</li>
<li>Java version: v1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li><dubbo:service id="helloService" interface="com.alibaba.hello.api.HelloService" version="1.0.0" protocol="dubbo,hessian" /></li>
<li><dubbo:reference id="helloService" interface="com.alibaba.hello.api.HelloService"/></li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">hope success</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">com.alibaba.dubbo.rpc.RpcException: Unsupported client type: httpclient, supported client type is grizzly mina netty netty4</p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Get initial <code class="notranslate">props</code> using a HOC in <code class="notranslate">_app.js</code> same as when using directly in all <em>pages</em></p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Using custom <code class="notranslate">_app.js</code> works only client-side</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Fork/install <a href="https://github.com/zeit/next.js/tree/canary/examples/with-apollo">with-apollo example</a></li>
<li>Create a <em>custom</em> <code class="notranslate">_app.js</code> like <a href="https://github.com/zeit/next.js#custom-app">here</a></li>
<li>Import and Wrap the default exported <em>Component</em> of <code class="notranslate">_app.js</code> with <a href="https://github.com/zeit/next.js/blob/canary/examples/with-apollo/lib/withData.js">withData</a> :: <a href="#code-snippet-_app">see below</a></li>
<li>Unwrap the default exported Component from <a href="https://github.com/zeit/next.js/blob/canary/examples/with-apollo/pages/index.js#L7">Index page</a> :: <a href="#code-snippet-index">see below</a></li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">When the <code class="notranslate">withData</code> <em>HOC</em> wraps each <em>Page</em>, the <em>GraphQL</em> data fetched is available <em>server-side</em> like:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/784056/39698251-67931736-51f4-11e8-871f-986c884360d0.png"><img src="https://user-images.githubusercontent.com/784056/39698251-67931736-51f4-11e8-871f-986c884360d0.png" alt="withData wrapping each page" style="max-width: 100%;"></a></p>
<p dir="auto">instead wrapping the <em>custom</em> <code class="notranslate">_app.js</code> is only available <em>client-side</em>, like:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/784056/39698280-8f6f1566-51f4-11e8-933b-f1bd78bebec8.png"><img src="https://user-images.githubusercontent.com/784056/39698280-8f6f1566-51f4-11e8-933b-f1bd78bebec8.png" alt="withData wrapping custom _app" style="max-width: 100%;"></a></p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>6.0.0</td>
</tr>
<tr>
<td>node</td>
<td>v8.11.0</td>
</tr>
<tr>
<td>OS</td>
<td>OSX 10.11.6</td>
</tr>
<tr>
<td>browser</td>
<td></td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table>
<h3 dir="auto">Code snippets</h3>
<h3 dir="auto">Code Snippet _app</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import App, { Container } from 'next/app'
import React from 'react'
import withData from '../lib/withData'
class MyApp extends App {
static async getInitialProps({ Component, router, ctx }) {
let pageProps = {}
if (Component.getInitialProps) {
pageProps = await Component.getInitialProps(ctx)
}
return { pageProps }
}
render() {
const { Component, pageProps } = this.props
return (
<Container>
<Component {...pageProps} />
</Container>
)
}
}
export default withData(MyApp)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">App</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-v">Container</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'next/app'</span>
<span class="pl-k">import</span> <span class="pl-v">React</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span>
<span class="pl-k">import</span> <span class="pl-s1">withData</span> <span class="pl-k">from</span> <span class="pl-s">'../lib/withData'</span>
<span class="pl-k">class</span> <span class="pl-v">MyApp</span> <span class="pl-k">extends</span> <span class="pl-v">App</span> <span class="pl-kos">{</span>
<span class="pl-k">static</span> <span class="pl-k">async</span> <span class="pl-en">getInitialProps</span><span class="pl-kos">(</span><span class="pl-kos">{</span> Component<span class="pl-kos">,</span> router<span class="pl-kos">,</span> ctx <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-s1">pageProps</span> <span class="pl-c1">=</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-v">Component</span><span class="pl-kos">.</span><span class="pl-c1">getInitialProps</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">pageProps</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-v">Component</span><span class="pl-kos">.</span><span class="pl-en">getInitialProps</span><span class="pl-kos">(</span><span class="pl-s1">ctx</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-k">return</span> <span class="pl-kos">{</span> pageProps <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> Component<span class="pl-kos">,</span> pageProps <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">Container</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">Component</span> <span class="pl-kos">{</span>...<span class="pl-s1">pageProps</span><span class="pl-kos">}</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">Container</span><span class="pl-c1">></span>
<span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">withData</span><span class="pl-kos">(</span><span class="pl-v">MyApp</span><span class="pl-kos">)</span></pre></div>
<h3 dir="auto">Code Snippet Index</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import App from '../components/App'
import Header from '../components/Header'
import Submit from '../components/Submit'
import PostList from '../components/PostList'
export default () => (
<App>
<Header />
<Submit />
<PostList />
</App>
)
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">App</span> <span class="pl-k">from</span> <span class="pl-s">'../components/App'</span>
<span class="pl-k">import</span> <span class="pl-v">Header</span> <span class="pl-k">from</span> <span class="pl-s">'../components/Header'</span>
<span class="pl-k">import</span> <span class="pl-v">Submit</span> <span class="pl-k">from</span> <span class="pl-s">'../components/Submit'</span>
<span class="pl-k">import</span> <span class="pl-v">PostList</span> <span class="pl-k">from</span> <span class="pl-s">'../components/PostList'</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">App</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">Header</span> <span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">Submit</span> <span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">PostList</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">App</span><span class="pl-c1">></span>
<span class="pl-kos">)</span></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Next.js export and Next.js should result in an eventually consistent state when dealing with network request (with requests originating from server, client or both).</p>
<p dir="auto">If it is an <code class="notranslate">next export</code> deployment then I need to refresh the content on top of the snapshot content but with <code class="notranslate">now</code> deployment, if SSR works, client refresh is not required.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">A deployment with now works flawlessly with SSR - <a href="https://self.now.sh" rel="nofollow">https://self.now.sh</a></p>
<p dir="auto">A deployment with <code class="notranslate">next export</code> shows the snapshot of when the export happened but does not refresh the data on client site - <a href="https://self.netlify.com" rel="nofollow">https://self.netlify.com</a></p>
<p dir="auto">Both the above are deployments of same commit id but backend has an extra entry (resume) after the deployments. Now deployment shows it but Netlify depoyment does not.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Links provided above</li>
</ol>
<h2 dir="auto">Context</h2>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>4.1.0</td>
</tr>
<tr>
<td>node</td>
<td>8.4.0</td>
</tr>
<tr>
<td>OS</td>
<td>macOS Sierra - 10.12.6</td>
</tr>
<tr>
<td>browser</td>
<td>Version 61.0.3163.100 (Official Build) (64-bit)</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">[Enter steps to reproduce below:]</p>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 0.168.0<br>
<strong>System</strong>: linux 3.2.0-75-generic<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: self signed certificate in certificate chain</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:85
Error: self signed certificate in certificate chain
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:914:36)
at TLSSocket.emit (events.js:104:17)
at TLSSocket._finishInit (_tls_wrap.js:457:8)
"><pre class="notranslate"><code class="notranslate">At events.js:85
Error: self signed certificate in certificate chain
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:914:36)
at TLSSocket.emit (events.js:104:17)
at TLSSocket._finishInit (_tls_wrap.js:457:8)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<h3 dir="auto">Config</h3>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
},
"editor": {
"invisibles": {}
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"themes"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>atom-dark-syntax<span class="pl-pds">"</span></span>
]
},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"invisibles"</span>: {}
}
}</pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
autocomplete-paths, v0.9.1
autocomplete-plus, v1.1.0
autocomplete-snippets, v0.3.2
file-icons, v1.4.4
linter, v0.9.1
minimap, v3.5.4
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
autocomplete<span class="pl-k">-</span>paths, v0.<span class="pl-ii">9</span>.<span class="pl-ii">1</span>
autocomplete<span class="pl-k">-</span>plus, v1.<span class="pl-ii">1</span>.<span class="pl-ii">0</span>
autocomplete<span class="pl-k">-</span>snippets, v0.<span class="pl-ii">3</span>.<span class="pl-ii">2</span>
file<span class="pl-k">-</span>icons, v1.<span class="pl-ii">4</span>.<span class="pl-ii">4</span>
linter, v0.<span class="pl-ii">9</span>.<span class="pl-ii">1</span>
minimap, v3.<span class="pl-ii">5</span>.<span class="pl-ii">4</span>
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | <p dir="auto">[Enter steps to reproduce below:]</p>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 0.168.0<br>
<strong>System</strong>: linux 3.2.0-75-generic<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: self signed certificate in certificate chain</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:85
Error: self signed certificate in certificate chain
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:914:36)
at TLSSocket.emit (events.js:104:17)
at TLSSocket._finishInit (_tls_wrap.js:457:8)
"><pre class="notranslate"><code class="notranslate">At events.js:85
Error: self signed certificate in certificate chain
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:914:36)
at TLSSocket.emit (events.js:104:17)
at TLSSocket._finishInit (_tls_wrap.js:457:8)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<h3 dir="auto">Config</h3>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
},
"editor": {
"invisibles": {}
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"themes"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>atom-dark-syntax<span class="pl-pds">"</span></span>
]
},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"invisibles"</span>: {}
}
}</pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
autocomplete-paths, v0.9.1
autocomplete-plus, v1.1.0
autocomplete-snippets, v0.3.2
file-icons, v1.4.4
linter, v0.9.1
minimap, v3.5.4
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
autocomplete<span class="pl-k">-</span>paths, v0.<span class="pl-ii">9</span>.<span class="pl-ii">1</span>
autocomplete<span class="pl-k">-</span>plus, v1.<span class="pl-ii">1</span>.<span class="pl-ii">0</span>
autocomplete<span class="pl-k">-</span>snippets, v0.<span class="pl-ii">3</span>.<span class="pl-ii">2</span>
file<span class="pl-k">-</span>icons, v1.<span class="pl-ii">4</span>.<span class="pl-ii">4</span>
linter, v0.<span class="pl-ii">9</span>.<span class="pl-ii">1</span>
minimap, v3.<span class="pl-ii">5</span>.<span class="pl-ii">4</span>
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | 1 |
<p dir="auto">Hey!<br>
PowerToys currently have a feature that lets you remap keys to other keys (key -> key) and shortcuts to other shortcuts (shortcut -> shortcut). It would be nice to be able to remap key -> shortcut too. For example: "Home -> Win+M" would minimize all windows when pressing the Home button, by remapping the Home key to the Win+M shortcut.<br>
The opposite would be nice too. For example: "Win+1 -> F1" would press the F1 key when you press the Win+1 shortcut.</p> | <p dir="auto">The powertoys disabled the ALT GR (alt right) key making it impossible to write "@" "#" and so on.</p> | 0 |
<ul dir="auto">
<li>Electron version: 1.2.5</li>
<li>Operating system: Windows 7 (64-bit)</li>
</ul>
<p dir="auto">Canvas elements larger than 256x256 disappear on Windows when you set a minWidth and minHeight for the containing browser window, run the app, minimize, and then restore. I was unable to duplicate on a Mac. If you use the mouse to make the window considerably wider than the minWidth value, the problem does not duplicate.</p>
<p dir="auto">Note: The problem may not manifest if dev tools are docked to the side.</p>
<p dir="auto">Before minimizing the window:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6801366/16534134/86f8945a-3fab-11e6-8e3d-a9e72480b6b9.jpg"><img src="https://cloud.githubusercontent.com/assets/6801366/16534134/86f8945a-3fab-11e6-8e3d-a9e72480b6b9.jpg" alt="before-minimize" style="max-width: 100%;"></a></p>
<p dir="auto">After restoring the window:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6801366/16534141/8dbe7aa2-3fab-11e6-8932-94d270ec6e9a.jpg"><img src="https://cloud.githubusercontent.com/assets/6801366/16534141/8dbe7aa2-3fab-11e6-8932-94d270ec6e9a.jpg" alt="after-minimize" style="max-width: 100%;"></a></p>
<p dir="auto">Duplication steps:</p>
<ul dir="auto">
<li>Use the package.json, main.js and canvas.html code below to duplicate on Windows</li>
<li>npm install & npm start</li>
<li>Note the two canvas elements render OK</li>
<li>Resize the window to the smallest allowed</li>
<li>Minimize the window (Ctrl-M)</li>
<li>Restore the window</li>
<li>Note that the larger canvas on the left is no longer displayed</li>
</ul>
<p dir="auto">package.json:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"name": "electron-canvas-issue",
"version": "1.0.0",
"description": "Demo of canvas issue",
"main": "main.js",
"scripts": {
"start": "electron ."
},
"devDependencies": {
"electron-prebuilt": "^1.2.5"
}
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"name"</span>: <span class="pl-s">"electron-canvas-issue"</span><span class="pl-kos">,</span>
<span class="pl-s">"version"</span>: <span class="pl-s">"1.0.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"description"</span>: <span class="pl-s">"Demo of canvas issue"</span><span class="pl-kos">,</span>
<span class="pl-s">"main"</span>: <span class="pl-s">"main.js"</span><span class="pl-kos">,</span>
<span class="pl-s">"scripts"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"start"</span>: <span class="pl-s">"electron ."</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"devDependencies"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"electron-prebuilt"</span>: <span class="pl-s">"^1.2.5"</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">main.js:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const electron = require('electron')
const app = electron.app
const BrowserWindow = electron.BrowserWindow
app.on('ready', function () {
mainWindow = new BrowserWindow({
title: 'Electron Canvas Issue',
width: 850,
height: 600,
minWidth: 850,
minHeight: 600
});
mainWindow.loadURL('file://' + __dirname + '/canvas.html');
});"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">electron</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">app</span>
<span class="pl-k">const</span> <span class="pl-v">BrowserWindow</span> <span class="pl-c1">=</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">BrowserWindow</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'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-s1">mainWindow</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">title</span>: <span class="pl-s">'Electron Canvas Issue'</span><span class="pl-kos">,</span>
<span class="pl-c1">width</span>: <span class="pl-c1">850</span><span class="pl-kos">,</span>
<span class="pl-c1">height</span>: <span class="pl-c1">600</span><span class="pl-kos">,</span>
<span class="pl-c1">minWidth</span>: <span class="pl-c1">850</span><span class="pl-kos">,</span>
<span class="pl-c1">minHeight</span>: <span class="pl-c1">600</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">loadURL</span><span class="pl-kos">(</span><span class="pl-s">'file://'</span> <span class="pl-c1">+</span> <span class="pl-s1">__dirname</span> <span class="pl-c1">+</span> <span class="pl-s">'/canvas.html'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">canvas.html:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<!DOCTYPE html>
<html>
<body>
<canvas id="myCanvas" width="500" height="500" style="border:1px solid #000;"></canvas>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "#FF0000";
ctx.fillRect(10,10,480,480);
</script>
<canvas id="myCanvas2" width="256" height="256" style="border:1px solid #000;"></canvas>
<script>
var c2 = document.getElementById("myCanvas2");
var ctx2 = c2.getContext("2d");
ctx2.fillStyle = "#FF0000";
ctx2.fillRect(10,10,230,230);
</script>
</body>
</html>"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-c1">!</span><span class="pl-ent">DOCTYPE</span> <span class="pl-c1">html</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">html</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">body</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">canvas</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"myCanvas"</span> <span class="pl-c1">width</span><span class="pl-c1">=</span><span class="pl-s">"500"</span> <span class="pl-c1">height</span><span class="pl-c1">=</span><span class="pl-s">"500"</span> <span class="pl-c1">style</span><span class="pl-c1">=</span><span class="pl-s">"border:1px solid #000;"</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">canvas</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">script</span><span class="pl-c1">></span>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "#FF0000";
ctx.fillRect(10,10,480,480);
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">script</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">canvas</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"myCanvas2"</span> <span class="pl-c1">width</span><span class="pl-c1">=</span><span class="pl-s">"256"</span> <span class="pl-c1">height</span><span class="pl-c1">=</span><span class="pl-s">"256"</span> <span class="pl-c1">style</span><span class="pl-c1">=</span><span class="pl-s">"border:1px solid #000;"</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">canvas</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">script</span><span class="pl-c1">></span>
var c2 = document.getElementById("myCanvas2");
var ctx2 = c2.getContext("2d");
ctx2.fillStyle = "#FF0000";
ctx2.fillRect(10,10,230,230);
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">script</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">body</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">html</span><span class="pl-c1">></span></pre></div> | <p dir="auto"><strong>Is your feature request related to a problem? Please describe.</strong><br>
I use VS Code maximized or full screen, and clicking on the config gear always bring a truncated menu. I'd rather have it in full and higher because I have to scroll every time.</p>
<p dir="auto">I filed this previously on VS Code and they correctly redirected me here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="352614515" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/56921" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/56921/hovercard" href="https://github.com/microsoft/vscode/issues/56921">microsoft/vscode#56921</a></p>
<p dir="auto"><strong>Describe the solution you'd like</strong><br>
Having config menu popping up above bottom and expanded in full instead of having to scroll.</p>
<p dir="auto"><strong>Describe alternatives you've considered</strong><br>
I can scroll instead.</p>
<p dir="auto"><strong>Additional context</strong><br>
I'm using MacOS 10.13.16</p>
<p dir="auto">Showing might help, please see my two screen shots.</p>
<p dir="auto">Thank you for your time.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1154213/44468739-e99fcc80-a5f3-11e8-9259-809c696bee0a.png"><img width="285" alt="44414137-088e5800-a53b-11e8-8228-76cda8f27744" src="https://user-images.githubusercontent.com/1154213/44468739-e99fcc80-a5f3-11e8-9259-809c696bee0a.png" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1154213/44468740-e99fcc80-a5f3-11e8-9278-4c1419fc3b88.png"><img width="210" alt="44414136-07f5c180-a53b-11e8-9fc0-39286d6a14d3" src="https://user-images.githubusercontent.com/1154213/44468740-e99fcc80-a5f3-11e8-9278-4c1419fc3b88.png" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">Hello gentlemen,</p>
<p dir="auto">I'm using your library on a listview to load images, these images are being transformed to fit the max width of my layout using <em>override</em> but my placeholder have max dimensions for height/width; after dowloading and showing final image it keeps with the same size and aspect ratio than placeholder.</p>
<p dir="auto">After doing scroll it appear with proper size.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" holder.mMultimediaLoadingProgress.setVisibility(View.VISIBLE);
int size = (int) mContext.getResources().getDimension(R.dimen.chat_message_text_max_long); // 250dp
Glide.with(mContext)
.load(msg.getMultimediaLink())
.placeholder(R.drawable.multimedia_placeholder)
.override(size, size)
.listener(new RequestListener<String, GlideDrawable>() {
@Override
public boolean onException(Exception e, String model, Target<GlideDrawable> target,
boolean isFirstResource) {
holder.mMultimediaLoadingProgress.setVisibility(View.GONE);
return false;
}
@Override
public boolean onResourceReady(GlideDrawable resource, String model,
Target<GlideDrawable> target,
boolean isFromMemoryCache, boolean isFirstResource) {
holder.mMultimediaLoadingProgress.setVisibility(View.GONE);
return false;
}
})
.into(holder.mMsgImage);"><pre class="notranslate"><code class="notranslate"> holder.mMultimediaLoadingProgress.setVisibility(View.VISIBLE);
int size = (int) mContext.getResources().getDimension(R.dimen.chat_message_text_max_long); // 250dp
Glide.with(mContext)
.load(msg.getMultimediaLink())
.placeholder(R.drawable.multimedia_placeholder)
.override(size, size)
.listener(new RequestListener<String, GlideDrawable>() {
@Override
public boolean onException(Exception e, String model, Target<GlideDrawable> target,
boolean isFirstResource) {
holder.mMultimediaLoadingProgress.setVisibility(View.GONE);
return false;
}
@Override
public boolean onResourceReady(GlideDrawable resource, String model,
Target<GlideDrawable> target,
boolean isFromMemoryCache, boolean isFirstResource) {
holder.mMultimediaLoadingProgress.setVisibility(View.GONE);
return false;
}
})
.into(holder.mMsgImage);
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" <ImageView
android:id="@+id/conversation_chat_list_item_msg_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="fitCenter" />"><pre class="notranslate"><code class="notranslate"> <ImageView
android:id="@+id/conversation_chat_list_item_msg_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="fitCenter" />
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<item>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<size
android:width="@dimen/chat_message_text_max_long"
android:height="@dimen/chat_message_text_max_long" />
</shape>
</item>
<item>
<bitmap android:src="@drawable/ic_file_image_box" android:gravity="center"/>
</item>
</layer-list>"><pre class="notranslate"><code class="notranslate"><?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<item>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<size
android:width="@dimen/chat_message_text_max_long"
android:height="@dimen/chat_message_text_max_long" />
</shape>
</item>
<item>
<bitmap android:src="@drawable/ic_file_image_box" android:gravity="center"/>
</item>
</layer-list>
</code></pre></div>
<p dir="auto">How can I manage this ?</p>
<p dir="auto">Thanks a lot for you really good work, regards.</p> | <p dir="auto">I'm trying to use both fitCenter and placeholder but the image does not get resized.</p>
<p dir="auto">This code works fine (image is scaled down, aspect ratio is correct):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Glide.with(this).load(url).fitCenter().into(mImage);"><pre class="notranslate"><code class="notranslate">Glide.with(this).load(url).fitCenter().into(mImage);
</code></pre></div>
<p dir="auto">This code does not work (placeholder is correct, but loaded image appears squished, aspect ratio is wrong):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Glide.with(this).load(url).placeholder(R.drawable.placeholder).fitCenter().into(mImage);"><pre class="notranslate"><code class="notranslate">Glide.with(this).load(url).placeholder(R.drawable.placeholder).fitCenter().into(mImage);
</code></pre></div> | 1 |
<p dir="auto">Duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="253540098" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/3384" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/3384/hovercard" href="https://github.com/apache/superset/issues/3384">#3384</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="325527969" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/5059" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/5059/hovercard" href="https://github.com/apache/superset/issues/5059">#5059</a> - refer to these for existing discussion that was closed, while users were still asking for the feature.</p>
<p dir="auto">Didn't want this to get overlooked since there is currently no <strong>open</strong> issue for this.</p>
<p dir="auto">This issue serves as an open thread on this discussion.</p> | <p dir="auto">When you create a time series viz with a groupby and contribution <code class="notranslate">Total</code>, if at least one of the categories is missing a value for the date, no data points for that date are shown.</p>
<p dir="auto">This is sort of reasonable - technically, the data could be missing for the missing category, so it is not clear how to calculate contribution. However, in most cases, the missing data point corresponds to the value 0, and removing all the other data points is very confusing. In older charts (ex. line chart), contribution assumes 0 if data is missing, so we should provide some way to "fill" 0 for feature parity.</p>
<p dir="auto">I think there are two ways</p>
<ul dir="auto">
<li>Assume 0 whenever data is missing (similar to legacy line chart)</li>
<li>Have users use <code class="notranslate">resample</code> to fill missing values with 0. This is not possible yet because resample doesn't work if there's a group by - the error message is: <code class="notranslate">cannot reindex from a duplicate axis</code> and occurs <a href="https://github.com/apache/superset/blob/fd8461406d62e818c4bc88075ac25ddf44ba9caf/superset/utils/pandas_postprocessing.py#L981">here</a></li>
</ul>
<h4 dir="auto">How to reproduce the bug</h4>
<ol dir="auto">
<li>Go to SQL Lab</li>
<li>Run query:</li>
</ol>
<div class="highlight highlight-source-sql notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SELECT DATE('2021-09-01') AS ds, 'hi' AS x
UNION ALL SELECT DATE('2021-09-02') AS ds, 'hi' AS x
UNION ALL SELECT DATE('2021-09-01') AS ds, 'whoa' AS x"><pre class="notranslate"><span class="pl-k">SELECT</span> <span class="pl-k">DATE</span>(<span class="pl-s"><span class="pl-pds">'</span>2021-09-01<span class="pl-pds">'</span></span>) <span class="pl-k">AS</span> ds, <span class="pl-s"><span class="pl-pds">'</span>hi<span class="pl-pds">'</span></span> <span class="pl-k">AS</span> x
<span class="pl-k">UNION ALL</span> <span class="pl-k">SELECT</span> <span class="pl-k">DATE</span>(<span class="pl-s"><span class="pl-pds">'</span>2021-09-02<span class="pl-pds">'</span></span>) <span class="pl-k">AS</span> ds, <span class="pl-s"><span class="pl-pds">'</span>hi<span class="pl-pds">'</span></span> <span class="pl-k">AS</span> x
<span class="pl-k">UNION ALL</span> <span class="pl-k">SELECT</span> <span class="pl-k">DATE</span>(<span class="pl-s"><span class="pl-pds">'</span>2021-09-01<span class="pl-pds">'</span></span>) <span class="pl-k">AS</span> ds, <span class="pl-s"><span class="pl-pds">'</span>whoa<span class="pl-pds">'</span></span> <span class="pl-k">AS</span> x</pre></div>
<ol start="3" dir="auto">
<li>-> explore chart</li>
<li>Use time series bar chart v2 viz</li>
<li>Group by <code class="notranslate">x</code>, metric <code class="notranslate">count</code>, contribution <code class="notranslate">total</code></li>
<li>Note the missing data point for (<code class="notranslate">2021-09-02</code>, <code class="notranslate">hi</code>)</li>
</ol>
<h3 dir="auto">Expected results</h3>
<p dir="auto">Two bars should be shown for 09-01, one bar should be shown for 09-02</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">No bars are shown for 09-02, even though there is a data point</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/14146019/136434143-10bdd24f-82d7-405b-ae5c-25649928c7a0.png"><img src="https://user-images.githubusercontent.com/14146019/136434143-10bdd24f-82d7-405b-ae5c-25649928c7a0.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Environment</h3>
<p dir="auto">(please complete the following information):</p>
<ul dir="auto">
<li>browser type and version: chrome</li>
<li>superset version: up to date with master as of 2021-10-01</li>
<li>python version: 3.8</li>
</ul>
<h3 dir="auto">Checklist</h3>
<p dir="auto">Make sure to follow these steps before submitting your issue - thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar.</li>
</ul>
<h3 dir="auto">Additional context</h3>
<p dir="auto">This is somewhat related to this issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="914747888" data-permission-text="Title is private" data-url="https://github.com/apache/superset/issues/15036" data-hovercard-type="issue" data-hovercard-url="/apache/superset/issues/15036/hovercard" href="https://github.com/apache/superset/issues/15036">#15036</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">we are now building up a bunch of code that is aliasing tables and labeling columns. the old "concatentation" methodologies dont work as most DB's have all kinds of restrictions on identifier lengths. right now we use random hex strings. so heres the ticket:</p>
<ul dir="auto">
<li>the algorithm should be changed to use an HMAC scheme that will return the same results each time for the same given name, to make it easier to write external SQL code, to enable unit tests, and to make echo'ed output easier to read.</li>
<li>all names should be limited to 30 characters (configurable. compiler-dependent ?)</li>
<li>the names should have only four hex characters at the end of the string, instead of clumps of hex characters as occurs now when you have a table alias combined into a column label.</li>
<li>groups of columns that are linked to the same table should <em>preferably</em> have the same four-digit grouping (though this may break their uniqueness if names are truncated)</li>
<li>bind parameters still have hardcoded "table_column" strings being used as identifiers, particularly in the mapper code where one piece of code sets up a bind dictionary and another reads/populates it. these should be abstracted away as well and probably derive from the column._label in all cases.</li>
<li>the "label" accessor on ColumnClause should be marked non-private</li>
</ul> | <p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p>
<p dir="auto">There's a simple typo in the reflection code for MySQL tables when discovering the collation of a column entry. See attached patch.</p>
<hr>
<p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/1686/mysql_collation_reflection.diff">mysql_collation_reflection.diff</a></p> | 0 |
<p dir="auto">Hi there,</p>
<p dir="auto">In Sublime Text, when you hold the "alt" key and click and drag the cursor, it will automatically create an instance of the cursor in the place where the cursor is touching (I suggest giving it a try, it is kind of complicated to explain).</p>
<p dir="auto">Atom should have this, since it would be a big game changer for what it delivers in terms of speed coding flexibility :)</p>
<p dir="auto">Is this planned for the near future?</p>
<p dir="auto">Thanks in advance!</p> | <p dir="auto">In plenty editors, doing <code class="notranslate">left-alt</code> (left option) and selecting text will take a slice of that text:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1189716/3020145/21a1ced6-df9b-11e3-9cf2-70371ca5fee1.gif"><img src="https://cloud.githubusercontent.com/assets/1189716/3020145/21a1ced6-df9b-11e3-9cf2-70371ca5fee1.gif" alt="sublime" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">Notice that only characters are selected, empty lines are ignored. Also, after selecting with <code class="notranslate">left-alt</code>, there should be multi-cursors at the end of each selection:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1189716/3020149/2d06c1c8-df9b-11e3-9a39-226039d0f777.gif"><img src="https://cloud.githubusercontent.com/assets/1189716/3020149/2d06c1c8-df9b-11e3-9a39-226039d0f777.gif" alt="reslice" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">The GIF are from Sublime, the same behavior is observed in TextMate, IntelliJ, vim (visual selection).</p>
<p dir="auto">The current behavior in Atom is to perform a normal text selection:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1189716/3020155/3bbc4512-df9b-11e3-97a8-1acab2dd686f.gif"><img src="https://cloud.githubusercontent.com/assets/1189716/3020155/3bbc4512-df9b-11e3-97a8-1acab2dd686f.gif" alt="atom" data-animated-image="" style="max-width: 100%;"></a></p> | 1 |
<h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">There should be an option to map a shortcut to a key of vice versa.</p>
<p dir="auto">for example:<br>
win + h -> left arrow key</p>
<p dir="auto">This could be used to make a hard to reach key more accessible. For example, the arrow keys are off in a corner, so I would implement vim style arrow keys (h is left arrow, j is up, etc . . .). It could also be used to provide access to a key that isn't on your keyboard.</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: Microsoft Windows [Version 10.0.18362.418]
PowerToys version: 0.12.0.0
PowerToy module for which you are reporting the bug (if applicable): Settings"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.418]
PowerToys version: 0.12.0.0
PowerToy module for which you are reporting the bug (if applicable): Settings
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Right click on the PowerToys icon in taskbar</li>
<li>Click settings in the context menu</li>
<li>See the error</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Open the settings window of the PowerToys</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The following screen is shown:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1420356/68012856-8b588a00-fc8b-11e9-91fb-59a5804eb76e.png"><img src="https://user-images.githubusercontent.com/1420356/68012856-8b588a00-fc8b-11e9-91fb-59a5804eb76e.png" alt="image" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">I'm trying to create an accordion based index that can be displayed as two columns.</p>
<p dir="auto">My efforts haven't been successful so far and the best I have managed is buggy:</p>
<p dir="auto"><a href="http://lcshn-demo.daddylonglegsdesign.com/" rel="nofollow">http://lcshn-demo.daddylonglegsdesign.com/</a></p>
<p dir="auto">(this example may not stay)</p>
<p dir="auto">The only example I have found that gets it to work is here:</p>
<p dir="auto"><a href="http://stackoverflow.com/questions/14024278/bootstrap-collapse-two-rows" rel="nofollow">http://stackoverflow.com/questions/14024278/bootstrap-collapse-two-rows</a></p>
<p dir="auto">But achieves it by duplicating the ID of the data parent.</p>
<p dir="auto">Is there a way round this?</p> | <p dir="auto">The accordion header links are small and easy to miss on mobile devices.<br>
It would be nice if the whole panel-heading area would be clickable …</p>
<p dir="auto">On solution could be to make the accordion links full width like so:</p>
<p dir="auto">In panels.less:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Within heading, strip any `h*` tag of it's default margins for spacing.
.panel-title {
margin-top: 0;
margin-bottom: 0;
font-size: ceil((@font-size-base * 1.125));
> a {
display: block;
width: 100%
color: inherit;
}
}"><pre class="notranslate"><code class="notranslate">// Within heading, strip any `h*` tag of it's default margins for spacing.
.panel-title {
margin-top: 0;
margin-bottom: 0;
font-size: ceil((@font-size-base * 1.125));
> a {
display: block;
width: 100%
color: inherit;
}
}
</code></pre></div> | 0 |
<h2 dir="auto">Bug Report</h2>
<p dir="auto">Webpack5 <code class="notranslate">beta.30</code> has enabled strict mode on the ESM modules imports <a href="https://github.com/webpack/webpack/releases/tag/v5.0.0-beta.30">https://github.com/webpack/webpack/releases/tag/v5.0.0-beta.30</a></p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="700423058" data-permission-text="Title is private" data-url="https://github.com/webpack/webpack/issues/11467" data-hovercard-type="issue" data-hovercard-url="/webpack/webpack/issues/11467/hovercard" href="https://github.com/webpack/webpack/issues/11467">webpack/webpack#11467</a> has noted people with code problems, however <code class="notranslate">@babel/runtime</code> appears to have code that doesn't follow the strict <code class="notranslate">"type": "module"</code> requirements, as expected for node / webpack.</p>
<p dir="auto"><code class="notranslate">.\node_modules\@babel\runtime\helpers\esm\package.json</code> has <code class="notranslate">"type": "module"</code> being set and libraries that depend on <code class="notranslate">@babel/runtime</code> with ESM modules are broken as a result.</p>
<p dir="auto">I expect the code generator should be outputting with the file extensions to satisfy the requirements of ESM modules</p>
<p dir="auto"><a href="https://nodejs.org/api/esm.html#esm_differences_between_es_modules_and_commonjs" rel="nofollow">https://nodejs.org/api/esm.html#esm_differences_between_es_modules_and_commonjs</a></p>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">@babel/runtime/helpers/esm/*.js contains extensionless imports for dependencies.</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">@babel/runtime/helpers/esm/*.js to contain fully specified extensions for imports</p>
<p dir="auto"><strong>Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)</strong></p>
<p dir="auto">N/A - this is npm published module</p>
<p dir="auto"><strong>Environment</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" System:
OS: Windows 10 10.0.19042
Binaries:
Node: 12.18.3 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.8 - C:\s\SwiftFox\node_modules\.bin\npm.CMD
Monorepos:
Yarn Workspaces: 1.22.5
npmPackages:
@babel/core: 7.11.4 => 7.11.4
babel-loader: 8.1.0 => 8.1.0
eslint: 7.7.0 => 7.7.0
webpack: 5.0.0-beta.30 => 5.0.0-beta.30"><pre class="notranslate"><code class="notranslate"> System:
OS: Windows 10 10.0.19042
Binaries:
Node: 12.18.3 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.8 - C:\s\SwiftFox\node_modules\.bin\npm.CMD
Monorepos:
Yarn Workspaces: 1.22.5
npmPackages:
@babel/core: 7.11.4 => 7.11.4
babel-loader: 8.1.0 => 8.1.0
eslint: 7.7.0 => 7.7.0
webpack: 5.0.0-beta.30 => 5.0.0-beta.30
</code></pre></div> | <p dir="auto">Since the script depends on babel-core, it starts to require <code class="notranslate">babel-runtime/core-js/*</code> files which are created by the script.</p> | 0 |
<h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">Using the following config works in Webpack 4 but not Webpack 5:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module.exports = {
output: {
library: "A",
},
optimization: {
runtimeChunk: "single"
},
};"><pre class="notranslate"><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-kos">{</span>
<span class="pl-c1">output</span>: <span class="pl-kos">{</span>
<span class="pl-c1">library</span>: <span class="pl-s">"A"</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">optimization</span>: <span class="pl-kos">{</span>
<span class="pl-c1">runtimeChunk</span>: <span class="pl-s">"single"</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 would expect the module to be assigned to a variable <code class="notranslate">A</code>, but in Webpack 5 <code class="notranslate">A</code> is undefined.</p>
<p dir="auto"><strong>Webpack 4 output:</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var A =
(window["webpackJsonpA"] = window["webpackJsonpA"] || []).push([["main"],{
...
},[["./src/index.js","runtime"]]]);"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">A</span> <span class="pl-c1">=</span>
<span class="pl-kos">(</span><span class="pl-smi">window</span><span class="pl-kos">[</span><span class="pl-s">"webpackJsonpA"</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-smi">window</span><span class="pl-kos">[</span><span class="pl-s">"webpackJsonpA"</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><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-kos">[</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-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">"./src/index.js"</span><span class="pl-kos">,</span><span class="pl-s">"runtime"</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>Webpack 5 output:</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var A;
(self["webpackChunkA"] = self["webpackChunkA"] || []).push([["main"],{
...
},
0,[["./src/index.js","runtime"]]]);"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">A</span><span class="pl-kos">;</span>
<span class="pl-kos">(</span><span class="pl-s1">self</span><span class="pl-kos">[</span><span class="pl-s">"webpackChunkA"</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span><span class="pl-kos">[</span><span class="pl-s">"webpackChunkA"</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><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-kos">[</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-kos">{</span>
...
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-kos">[</span><span class="pl-kos">[</span><span class="pl-s">"./src/index.js"</span><span class="pl-kos">,</span><span class="pl-s">"runtime"</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>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">Smallest reproducible bug demo: <a href="https://github.com/keeganstreet/webpack-5-library">https://github.com/keeganstreet/webpack-5-library</a></p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">The module should be assigned to <code class="notranslate">A</code>.</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 5.24.2<br>
Node.js version: v14.4.0<br>
Operating System: Mac OS<br>
Additional tools: N/A</p> | <h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">I build using the following output configuration:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="output: {
filename: './js/react/[name]-src.js',
library: ['RF', '[name]'],
libraryTarget: 'var',
path: outputPath,
},"><pre class="notranslate"><code class="notranslate">output: {
filename: './js/react/[name]-src.js',
library: ['RF', '[name]'],
libraryTarget: 'var',
path: outputPath,
},
</code></pre></div>
<p dir="auto">This results in a variable <code class="notranslate">RF</code> which is <code class="notranslate">undefined</code>.</p>
<p dir="auto">The declaration of a property of RF now occurs using the following code (generated):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var RF;
(self["webpackChunkRF_name_"] = self["webpackChunkRF_name_"] || []).push([["audit-trail"], {"><pre class="notranslate"><code class="notranslate">var RF;
(self["webpackChunkRF_name_"] = self["webpackChunkRF_name_"] || []).push([["audit-trail"], {
</code></pre></div>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">In versions of webpack before v5.22 (up until 5.21.2), this resulted in an object 'RF' being declared, where (as in the example above) the following would be available <code class="notranslate">RF['audit-trail']</code>.</p>
<p dir="auto">The same file resulted in this before 5.22</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var RF;(RF = typeof RF === "undefined" ? {} : RF)["audit-trail"] =
(self["webpackChunkRF_name_"] = self["webpackChunkRF_name_"] || []).push([["audit-trail"], {"><pre class="notranslate"><code class="notranslate">var RF;(RF = typeof RF === "undefined" ? {} : RF)["audit-trail"] =
(self["webpackChunkRF_name_"] = self["webpackChunkRF_name_"] || []).push([["audit-trail"], {
</code></pre></div>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 5.22 (also tried 5.23)<br>
Node.js version: 15.7.0<br>
Operating System: Windows 10<br>
Additional tools:</p> | 1 |
<h4 dir="auto">Code Sample</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" def test_groupby_aggregate_item_by_item(self):
def test_df():
s = pd.DataFrame(np.array([[13, 14, 15, 16]]),
index=[0],
columns=['b', 'c', 'd', 'e'])
num = np.array([[s, s, s, datetime.strptime('2016-12-28', "%Y-%m-%d"), 'asdf', 24],
[s, s, s, datetime.strptime('2016-12-28', "%Y-%m-%d"), 'asdf', 6]])
columns = ['a', 'b', 'c', 'd', 'e', 'f']
idx = [x for x in xrange(0, len(num))]
return pd.DataFrame(num, index=idx, columns=columns)
c = [test_df().sort_values(['d', 'e', 'f']),
test_df().sort_values(['d', 'e', 'f'])]
df = pd.concat(c)
df = df[["e", "a"]].copy().reset_index(drop=True)
df["e_idx"] = df["e"]
what = [0, 0.5, 0.5, 1]
def x():
df.groupby(["e_idx", "e"])["a"].quantile(what)
self.assertRaisesRegexp(ValueError,
"'SeriesGroupBy' object has no attribute '_aggregate_item_by_item'",
x)"><pre class="notranslate"> <span class="pl-k">def</span> <span class="pl-en">test_groupby_aggregate_item_by_item</span>(<span class="pl-s1">self</span>):
<span class="pl-k">def</span> <span class="pl-en">test_df</span>():
<span class="pl-s1">s</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">array</span>([[<span class="pl-c1">13</span>, <span class="pl-c1">14</span>, <span class="pl-c1">15</span>, <span class="pl-c1">16</span>]]),
<span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>],
<span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'b'</span>, <span class="pl-s">'c'</span>, <span class="pl-s">'d'</span>, <span class="pl-s">'e'</span>])
<span class="pl-s1">num</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([[<span class="pl-s1">s</span>, <span class="pl-s1">s</span>, <span class="pl-s1">s</span>, <span class="pl-s1">datetime</span>.<span class="pl-en">strptime</span>(<span class="pl-s">'2016-12-28'</span>, <span class="pl-s">"%Y-%m-%d"</span>), <span class="pl-s">'asdf'</span>, <span class="pl-c1">24</span>],
[<span class="pl-s1">s</span>, <span class="pl-s1">s</span>, <span class="pl-s1">s</span>, <span class="pl-s1">datetime</span>.<span class="pl-en">strptime</span>(<span class="pl-s">'2016-12-28'</span>, <span class="pl-s">"%Y-%m-%d"</span>), <span class="pl-s">'asdf'</span>, <span class="pl-c1">6</span>]])
<span class="pl-s1">columns</span> <span class="pl-c1">=</span> [<span class="pl-s">'a'</span>, <span class="pl-s">'b'</span>, <span class="pl-s">'c'</span>, <span class="pl-s">'d'</span>, <span class="pl-s">'e'</span>, <span class="pl-s">'f'</span>]
<span class="pl-s1">idx</span> <span class="pl-c1">=</span> [<span class="pl-s1">x</span> <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-en">xrange</span>(<span class="pl-c1">0</span>, <span class="pl-en">len</span>(<span class="pl-s1">num</span>))]
<span class="pl-k">return</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">num</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">idx</span>, <span class="pl-s1">columns</span><span class="pl-c1">=</span><span class="pl-s1">columns</span>)
<span class="pl-s1">c</span> <span class="pl-c1">=</span> [<span class="pl-en">test_df</span>().<span class="pl-en">sort_values</span>([<span class="pl-s">'d'</span>, <span class="pl-s">'e'</span>, <span class="pl-s">'f'</span>]),
<span class="pl-en">test_df</span>().<span class="pl-en">sort_values</span>([<span class="pl-s">'d'</span>, <span class="pl-s">'e'</span>, <span class="pl-s">'f'</span>])]
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">concat</span>(<span class="pl-s1">c</span>)
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>[[<span class="pl-s">"e"</span>, <span class="pl-s">"a"</span>]].<span class="pl-en">copy</span>().<span class="pl-en">reset_index</span>(<span class="pl-s1">drop</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">df</span>[<span class="pl-s">"e_idx"</span>] <span class="pl-c1">=</span> <span class="pl-s1">df</span>[<span class="pl-s">"e"</span>]
<span class="pl-s1">what</span> <span class="pl-c1">=</span> [<span class="pl-c1">0</span>, <span class="pl-c1">0.5</span>, <span class="pl-c1">0.5</span>, <span class="pl-c1">1</span>]
<span class="pl-k">def</span> <span class="pl-en">x</span>():
<span class="pl-s1">df</span>.<span class="pl-en">groupby</span>([<span class="pl-s">"e_idx"</span>, <span class="pl-s">"e"</span>])[<span class="pl-s">"a"</span>].<span class="pl-en">quantile</span>(<span class="pl-s1">what</span>)
<span class="pl-s1">self</span>.<span class="pl-en">assertRaisesRegexp</span>(<span class="pl-v">ValueError</span>,
<span class="pl-s">"'SeriesGroupBy' object has no attribute '_aggregate_item_by_item'"</span>,
<span class="pl-s1">x</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">The return message from the ValueError in _GroupBy._aggregate_item_by_item is vague.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" except (AttributeError):
> raise ValueError
E ValueError
core/groupby.py:592: ValueError"><pre class="notranslate"><code class="notranslate"> except (AttributeError):
> raise ValueError
E ValueError
core/groupby.py:592: ValueError
</code></pre></div>
<p dir="auto">The proposed change raises the error message for the user to see.</p>
<h4 dir="auto">Expected Output</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" except (AttributeError) as e:
> raise ValueError(e)
E ValueError: 'SeriesGroupBy' object has no attribute '_aggregate_item_by_item'
core/groupby.py:592: ValueError"><pre class="notranslate"><code class="notranslate"> except (AttributeError) as e:
> raise ValueError(e)
E ValueError: 'SeriesGroupBy' object has no attribute '_aggregate_item_by_item'
core/groupby.py:592: ValueError
</code></pre></div>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
INSTALLED VERSIONS
------------------
commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pandas-dev/pandas/commit/b895968a90c918709b01b49db427f9b5ab28c1fe/hovercard" href="https://github.com/pandas-dev/pandas/commit/b895968a90c918709b01b49db427f9b5ab28c1fe"><tt>b895968</tt></a>
python: 2.7.11.final.0
python-bits: 64
OS: Darwin
OS-release: 15.6.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
<p dir="auto">pandas: 0.19.0+311.gb895968.dirty<br>
nose: 1.3.7<br>
pip: 9.0.1<br>
setuptools: 32.3.1<br>
Cython: 0.25.2<br>
numpy: 1.11.3<br>
scipy: 0.18.1<br>
statsmodels: None<br>
xarray: None<br>
IPython: None<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.6.0<br>
pytz: 2016.10<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: None<br>
feather: None<br>
matplotlib: None<br>
openpyxl: None<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: None<br>
html5lib: None<br>
httplib2: None<br>
apiclient: None<br>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: None<br>
s3fs: None<br>
pandas_datareader: None</p>
</details> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [19]: df = DataFrame({'a':['A1', 'A1', 'A1'], 'b':['B1','B1','B2'], 'c':1})
In [20]: df.set_index('a').groupby('b').rank(method='first')
Out[20]:
c
a
A1 1
A1 2
A1 1
In [21]: df.set_index('a').groupby('c').rank(method='first')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-21-6b8d4cae9d91> in <module>()
----> 1 df.set_index('a').groupby('c').rank(method='first')
/home/nicolas/Git/pandas/pandas/core/groupby.pyc in rank(self, axis, numeric_only, method, na_option, ascending, pct)
/home/nicolas/Git/pandas/pandas/core/groupby.pyc in wrapper(*args, **kwargs)
618 # mark this column as an error
619 try:
--> 620 return self._aggregate_item_by_item(name, *args, **kwargs)
621 except (AttributeError):
622 raise ValueError
/home/nicolas/Git/pandas/pandas/core/groupby.pyc in _aggregate_item_by_item(self, func, *args, **kwargs)
3076 # GH6337
3077 if not len(result_columns) and errors is not None:
-> 3078 raise errors
3079
3080 return DataFrame(result, columns=result_columns)
TypeError: rank() got an unexpected keyword argument 'numeric_only'"><pre class="notranslate"><code class="notranslate">In [19]: df = DataFrame({'a':['A1', 'A1', 'A1'], 'b':['B1','B1','B2'], 'c':1})
In [20]: df.set_index('a').groupby('b').rank(method='first')
Out[20]:
c
a
A1 1
A1 2
A1 1
In [21]: df.set_index('a').groupby('c').rank(method='first')
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-21-6b8d4cae9d91> in <module>()
----> 1 df.set_index('a').groupby('c').rank(method='first')
/home/nicolas/Git/pandas/pandas/core/groupby.pyc in rank(self, axis, numeric_only, method, na_option, ascending, pct)
/home/nicolas/Git/pandas/pandas/core/groupby.pyc in wrapper(*args, **kwargs)
618 # mark this column as an error
619 try:
--> 620 return self._aggregate_item_by_item(name, *args, **kwargs)
621 except (AttributeError):
622 raise ValueError
/home/nicolas/Git/pandas/pandas/core/groupby.pyc in _aggregate_item_by_item(self, func, *args, **kwargs)
3076 # GH6337
3077 if not len(result_columns) and errors is not None:
-> 3078 raise errors
3079
3080 return DataFrame(result, columns=result_columns)
TypeError: rank() got an unexpected keyword argument 'numeric_only'
</code></pre></div>
<p dir="auto">I'm trying to obtain what I would get with a <code class="notranslate">row_number()</code> in SQL...</p>
<p dir="auto">Notice that if I replace the value in the <code class="notranslate">'c'</code> column with the string <code class="notranslate">'1'</code>, then even <code class="notranslate">df.set_index('a').groupby('b').rank(method='first')</code> fails.</p>
<p dir="auto">Am I doing something wrong?</p> | 1 |
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: Yes</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Linux</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: Binary</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.8</li>
<li><strong>Python version</strong>: 2.7</li>
<li><strong>Bazel version (if compiling from source)</strong>: N/A</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: N/A</li>
<li><strong>CUDA/cuDNN version</strong>: N/A</li>
<li><strong>GPU model and memory</strong>: N/A</li>
<li><strong>Exact command to reproduce</strong>: N/A</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">I can create an estimator either direct or from a keras model using the initialisers:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tf.estimator.estimator(
model_fn,
model_dir=None,
config=None,
params=None,
warm_start_from=None
)"><pre class="notranslate"><code class="notranslate">tf.estimator.estimator(
model_fn,
model_dir=None,
config=None,
params=None,
warm_start_from=None
)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tf.keras.estimator.model_to_estimator(
keras_model=None,
keras_model_path=None,
custom_objects=None,
model_dir=None,
config=None
)"><pre class="notranslate"><code class="notranslate">tf.keras.estimator.model_to_estimator(
keras_model=None,
keras_model_path=None,
custom_objects=None,
model_dir=None,
config=None
)
</code></pre></div>
<p dir="auto">However with the keras approach there is no option to warm start the model from a previously saved checkpoint. I am requesting a feature that makes it possible to do this with a call such as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tf.keras.estimator.model_to_estimator(
keras_model=None,
keras_model_path=None,
custom_objects=None,
model_dir=None,
config=None,
warm_start_from=None
)"><pre class="notranslate"><code class="notranslate">tf.keras.estimator.model_to_estimator(
keras_model=None,
keras_model_path=None,
custom_objects=None,
model_dir=None,
config=None,
warm_start_from=None
)
</code></pre></div>
<p dir="auto">Without this I cannot see how to start an estimator in a pre-trained state.</p>
<p dir="auto">I have also tried to do this by just calling an untrained estimator to do .predict which causes it to attempt to load from a checkpoint. When I provide the checkpoint from previous estimator training I get an error as not all data seems to be available. This is described in more detail at stackoverflow here <a href="https://stackoverflow.com/questions/50855256/keras-estimator-model-to-estimator-cannot-warm-start-or-load-previous-checkpoi" rel="nofollow">https://stackoverflow.com/questions/50855256/keras-estimator-model-to-estimator-cannot-warm-start-or-load-previous-checkpoi</a></p> | <h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: N/A</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Docker nightly</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: Docker nightly</li>
<li><strong>TensorFlow version (use command below)</strong>: Docker nightly</li>
<li><strong>Python version</strong>: Docker nightly</li>
<li><strong>Bazel version (if compiling from source)</strong>: Docker nightly</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: Docker nightly</li>
<li><strong>CUDA/cuDNN version</strong>: Docker nightly</li>
<li><strong>GPU model and memory</strong>: N/A</li>
<li><strong>Exact command to reproduce</strong>: N/A</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">Please add <code class="notranslate">warm_start_from</code> parameter in <code class="notranslate">tf.model_to_estimator</code></p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">N/A</p> | 1 |
<h3 dir="auto">First check</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> After submitting this, I commit to:
<ul dir="auto">
<li>Read open issues with questions until I find 2 issues where I can help someone and add a comment to help there.</li>
<li>Or, I already hit the "watch" button in this repository to receive notifications and I commit to help at least 2 people that ask questions in the future.</li>
<li>Implement a Pull Request for a confirmed bug.</li>
</ul>
</li>
</ul>
<h3 dir="auto">Example</h3>
<p dir="auto">Now:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from fastapi import FastAPI
from typing import Dict, List
app = FastAPI()
@app.get("/", response_model=Dict[str, List[str]])
def read_root():
return {"Hello": ["tom", "hesus"]}"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span>
<span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">Dict</span>, <span class="pl-v">List</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>()
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/"</span>, <span class="pl-s1">response_model</span><span class="pl-c1">=</span><span class="pl-v">Dict</span>[<span class="pl-s1">str</span>, <span class="pl-v">List</span>[<span class="pl-s1">str</span>]])</span>
<span class="pl-k">def</span> <span class="pl-en">read_root</span>():
<span class="pl-k">return</span> {<span class="pl-s">"Hello"</span>: [<span class="pl-s">"tom"</span>, <span class="pl-s">"hesus"</span>]}</pre></div>
<h3 dir="auto">The solution you would like</h3>
<p dir="auto">I want to do it through typehints:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from fastapi import FastAPI
from typing import Dict, List
app = FastAPI()
@app.get("/")
def read_root() -> Dict[str, List[str]]:
return {"Hello": ["tom", "hesus"]}"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span>
<span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">Dict</span>, <span class="pl-v">List</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>()
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">get</span>(<span class="pl-s">"/"</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">read_root</span>() <span class="pl-c1">-></span> <span class="pl-v">Dict</span>[<span class="pl-s1">str</span>, <span class="pl-v">List</span>[<span class="pl-s1">str</span>]]:
<span class="pl-k">return</span> {<span class="pl-s">"Hello"</span>: [<span class="pl-s">"tom"</span>, <span class="pl-s">"hesus"</span>]}</pre></div> | <p dir="auto">Hi!</p>
<p dir="auto">Some users or <code class="notranslate">ormar</code> approached me and asked me why <code class="notranslate">ormar</code> is not included in <code class="notranslate">FastAPI</code> documentation, as they wished they knew about it sooner.</p>
<p dir="auto">And I answered that I am not sure if including more orms is welcomed as I kind of cannot find a key what and why is included.<br>
I mean I get it why <code class="notranslate">sqlalchemy</code> and <code class="notranslate">encode/databases</code> (most popular sync orm (well since 1.4 also async) and most popular async repo), but why there is <code class="notranslate">Peewee</code> but not <code class="notranslate">Gino</code> or <code class="notranslate">Tortoise</code>?</p>
<p dir="auto"><a href="https://github.com/collerek/ormar"><code class="notranslate">ormar</code></a> originates from <a href="https://github.com/encode/orm"><code class="notranslate">encode/orm</code></a> and <a href="https://github.com/awesometoolbox/ormantic"><code class="notranslate">ormantic</code></a> (both unmaintained) and build on top of them. The goal was to create a simple ORM that can be used directly (as request and response models) with FastAPI because ormar bases it's data validation on <code class="notranslate">pydantic</code> (each ormar model is also a pydantic one).</p>
<p dir="auto">I can issue a PR for this but before I start I would like your input <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tiangolo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tiangolo">@tiangolo</a>.<br>
Do you want to include more orms?<br>
Do you want to include <code class="notranslate">ormar</code>?</p>
<p dir="auto">Let me know what you think!<br>
And thanks for an awesome job with FastAPI! :)</p> | 0 |
<p dir="auto">My organization is unable to upgrade to Babel 6 for a while. It would be nice to have the old docsite up at a different url so that people using older versions of Babel can make use of the docs.</p> | 1 |
|
<p dir="auto">Issue repository: <a href="https://github.com/ahalimkara/next-routing-issue">https://github.com/ahalimkara/next-routing-issue</a><br>
Example: <a href="https://next-routing-issue-etmpnbuodz.now.sh" rel="nofollow">https://next-routing-issue-etmpnbuodz.now.sh</a></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When navigating on Client side and also when directly enter path on browser address bar, it should show <code class="notranslate">Page B</code> content for path <code class="notranslate">/a</code> and <code class="notranslate">Page A</code> for <code class="notranslate">/b</code> path.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">On client side: when navigating by clicking links it shows <code class="notranslate">Page A</code> content for path <code class="notranslate">/a</code> and when I refresh page it shows <code class="notranslate">Page B</code> content for path <code class="notranslate">/a</code>, same for path <code class="notranslate">/b</code>.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Clone issue repository</li>
<li><code class="notranslate">yarn dev</code></li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">Trying to use custom server routing.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>4.2.3</td>
</tr>
<tr>
<td>node</td>
<td>8.5.0</td>
</tr>
<tr>
<td>OS</td>
<td>macOS</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
</tbody>
</table>
<h2 dir="auto">Question</h2>
<p dir="auto">When using custom server routing, <a href="https://github.com/zeit/next.js/blob/e451218900b16e721db10413734ca7a964c53677/server/index.js#L197">this</a> <code class="notranslate">path-pattern</code> shouldn't be customized in some how? So when serving pages when navigating on client side (<code class="notranslate">http://localhost:3000/_next/[id]/page/a.js</code>) it will use same patterns. <a href="https://github.com/zeit/next.js/blob/e451218900b16e721db10413734ca7a964c53677/server/index.js#L202">Example</a>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (page === '/a') {
page = '/b';
} else if (page === '/b') {
page = '/a';
}"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">page</span> <span class="pl-c1">===</span> <span class="pl-s">'/a'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-s">'/b'</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">page</span> <span class="pl-c1">===</span> <span class="pl-s">'/b'</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-s">'/a'</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">First let me thank you guys for this wonderful library, I know the effort you are putting here. thanks</p>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">I'm using <a href="https://github.com/FezVrasta/react-popper"><code class="notranslate">react-popper</code></a> library for tooltips positioning.<br>
it works in dev env, and it should work in prod env using <code class="notranslate">next build</code> command.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">it breaks in build mode when importing the above library</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li><code class="notranslate">yarn add react-popper</code></li>
<li>integrate the sample code from the readme</li>
<li><code class="notranslate">yarn run build</code> alias for <code class="notranslate">next build</code></li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">I want to use <code class="notranslate">react-popper</code> for tooltip positioning</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>5.1.0</td>
</tr>
<tr>
<td>node</td>
<td>v8.5.0</td>
</tr>
<tr>
<td>OS</td>
<td>macOS High Sierra v10.13.4 (17E199)</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome Version 66</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">In RHEL 7.2, with python 2.7.5</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" a = pd.np.random.randn(10, 2)
a.itemset((3, 0), pd.np.NAN)
df = pd.DataFrame(a)
res = df.describe()"><pre class="notranslate"><code class="notranslate"> a = pd.np.random.randn(10, 2)
a.itemset((3, 0), pd.np.NAN)
df = pd.DataFrame(a)
res = df.describe()
</code></pre></div>
<hr>
<p dir="auto">Output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" /.../function_base.py:3823: RuntimeWarning: Invalid value encountered in percentile
RuntimeWarning)
0 1
count 8.000000 10.000000
mean -0.406550 -0.220345
std 1.517141 0.791003
min -1.942997 -1.607897
25% NaN -0.683385
50% NaN -0.281060
75% NaN 0.303566
max 2.275532 1.227234"><pre class="notranslate"><code class="notranslate"> /.../function_base.py:3823: RuntimeWarning: Invalid value encountered in percentile
RuntimeWarning)
0 1
count 8.000000 10.000000
mean -0.406550 -0.220345
std 1.517141 0.791003
min -1.942997 -1.607897
25% NaN -0.683385
50% NaN -0.281060
75% NaN 0.303566
max 2.275532 1.227234
</code></pre></div>
<hr>
<p dir="auto">pd.show_versions:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS
------------------
commit: None
python: 2.7.5.final.0
python-bits: 64
OS: Linux
OS-release: 3.10.0-327.18.2.el7.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: None
pip: 8.1.2
setuptools: 0.9.8
Cython: None
numpy: 1.11.0
scipy: 0.17.1
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 1.5
pytz: 2012d
blosc: None
bottleneck: 1.0.0
tables: None
numexpr: 2.5.2
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None"><pre class="notranslate"><code class="notranslate">INSTALLED VERSIONS
------------------
commit: None
python: 2.7.5.final.0
python-bits: 64
OS: Linux
OS-release: 3.10.0-327.18.2.el7.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
nose: None
pip: 8.1.2
setuptools: 0.9.8
Cython: None
numpy: 1.11.0
scipy: 0.17.1
statsmodels: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 1.5
pytz: 2012d
blosc: None
bottleneck: 1.0.0
tables: None
numexpr: 2.5.2
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
boto: None
pandas_datareader: None
</code></pre></div> | <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
import numpy
s = pd.Series([1, 2, 3, 4, numpy.nan])
s.quantile(0.5)
nan"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span>
<span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>, <span class="pl-s1">numpy</span>.<span class="pl-s1">nan</span>])
<span class="pl-s1">s</span>.<span class="pl-en">quantile</span>(<span class="pl-c1">0.5</span>)
<span class="pl-s1">nan</span></pre></div>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">I would expect 2.5 as output (as with version 0.17.1).</p>
<h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4>
<p dir="auto">commit: None<br>
python: 2.7.6.final.0<br>
python-bits: 64<br>
OS: Linux<br>
OS-release: 3.13.0-85-generic<br>
machine: x86_64<br>
processor: x86_64<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: de_DE.UTF-8</p>
<p dir="auto">pandas: 0.18.1<br>
nose: None<br>
pip: 1.5.4<br>
setuptools: 2.2<br>
Cython: None<br>
numpy: 1.11.0<br>
scipy: 0.16.1<br>
statsmodels: None<br>
xarray: None<br>
IPython: None<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.5.3<br>
pytz: 2016.4<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: None<br>
matplotlib: 1.5.1<br>
openpyxl: 2.3.2<br>
xlrd: 0.9.4<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: None<br>
html5lib: None<br>
httplib2: None<br>
apiclient: None<br>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: None<br>
boto: None<br>
pandas_datareader: None</p> | 1 |
<p dir="auto">I have an electron project that I compile using gulp-tsb in one pass. Some files reference github-electron-renderer.d.ts and others reference github-electron-main.d.ts. Unfortunately, the duplicate definition of ipc causes some errors which takes away from the advantage of having a d.ts to begin with.</p>
<p dir="auto">Has anyone else seen this issue?</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> tsc
318
319../../node_modules/@types/react/index.d.ts(2818,14): error TS2300: Duplicate identifier 'LibraryManagedAttributes'.
320../../node_modules/@types/react/index.d.ts(2853,13): error TS2717: Subsequent property declarations must have the same type. Property 'data' must be of type 'DetailedHTMLProps<DataHTMLAttributes<HTMLDataElement>, HTMLDataElement>', but here has type 'DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>'.
321node_modules/@types/react/index.d.ts(2822,14): error TS2300: Duplicate identifier 'LibraryManagedAttributes'."><pre class="notranslate"><code class="notranslate">> tsc
318
319../../node_modules/@types/react/index.d.ts(2818,14): error TS2300: Duplicate identifier 'LibraryManagedAttributes'.
320../../node_modules/@types/react/index.d.ts(2853,13): error TS2717: Subsequent property declarations must have the same type. Property 'data' must be of type 'DetailedHTMLProps<DataHTMLAttributes<HTMLDataElement>, HTMLDataElement>', but here has type 'DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>'.
321node_modules/@types/react/index.d.ts(2822,14): error TS2300: Duplicate identifier 'LibraryManagedAttributes'.
</code></pre></div>
<p dir="auto"><a href="https://travis-ci.com/alibaba/uform/jobs/221738774" rel="nofollow">https://travis-ci.com/alibaba/uform/jobs/221738774</a></p> | 0 |
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
Bug</p>
<p dir="auto"><strong>What is the current behavior?</strong><br>
Webpack crashes when using <code class="notranslate">MinChunkSizePlugin</code> with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pair[2].integrate(pair[3], "min-size");
^
TypeError: pair[2].integrate is not a function
at Compilation.compilation.plugin (/Users/eldh/Code/marketplace/node_modules/webpack/lib/optimize/MinChunkSizePlugin.js:59:13)
at Compilation.applyPluginsBailResult1 (/Users/eldh/Code/marketplace/node_modules/webpack/node_modules/tapable/lib/Tapable.js:120:27)
at Compilation.seal (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:572:9)
at /Users/eldh/Code/marketplace/node_modules/webpack/lib/Compiler.js:488:16
at /Users/eldh/Code/marketplace/node_modules/webpack/node_modules/tapable/lib/Tapable.js:225:11
at _addModuleChain (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:477:11)
at processModuleDependencies.err (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:448:13)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)"><pre class="notranslate"><code class="notranslate">pair[2].integrate(pair[3], "min-size");
^
TypeError: pair[2].integrate is not a function
at Compilation.compilation.plugin (/Users/eldh/Code/marketplace/node_modules/webpack/lib/optimize/MinChunkSizePlugin.js:59:13)
at Compilation.applyPluginsBailResult1 (/Users/eldh/Code/marketplace/node_modules/webpack/node_modules/tapable/lib/Tapable.js:120:27)
at Compilation.seal (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:572:9)
at /Users/eldh/Code/marketplace/node_modules/webpack/lib/Compiler.js:488:16
at /Users/eldh/Code/marketplace/node_modules/webpack/node_modules/tapable/lib/Tapable.js:225:11
at _addModuleChain (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:477:11)
at processModuleDependencies.err (/Users/eldh/Code/marketplace/node_modules/webpack/lib/Compilation.js:448:13)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
</code></pre></div>
<p dir="auto">Using the following options: <code class="notranslate">new webpack.optimize.MinChunkSizePlugin({minChunkSize: 40000}),</code></p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong><br>
As this seems to have been fixed in master (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/webpack/webpack/commit/915c150f3afa8a96f0d33be7c10e40fd54896faa/hovercard" href="https://github.com/webpack/webpack/commit/915c150f3afa8a96f0d33be7c10e40fd54896faa"><tt>915c150</tt></a>), I'm not going to spend time on creating a repro. Still think it might be good to create this issue for other people running into this.</p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
No crash.</p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong><br>
n/a</p> | <p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p>
<p dir="auto">Bug</p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">When I try to compile I get: TypeError: pair[2].integrate is not a function at Compilation.compilation.plugin (*/node_modules/webpack/lib/optimize/MinChunkSizePlugin.js:59:13)</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">Compile that worked on 2.2.1</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">Compilation success</p>
<p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong></p>
<p dir="auto">node 7.7.1 on Mac</p>
<p dir="auto">I do have two configs that compile simultaneously</p>
<p dir="auto">Client:</p>
<p dir="auto">new webpack.optimize.MinChunkSizePlugin({<br>
minChunkSize: 10000<br>
}),</p>
<p dir="auto">Server:</p>
<p dir="auto">new webpack.optimize.MinChunkSizePlugin({<br>
minChunkSize: Infinity<br>
})</p>
<p dir="auto">And I do use <a href="https://www.npmjs.com/package/webpack-hot-server-middleware" rel="nofollow">webpack-hot-server-middleware</a> in case that has anything to do with it.</p> | 1 |
<p dir="auto">We spun up an 800 node cluster today, across 2 zones and we found 27 duplicate pod CIDRs (and duplicate GCE routes) assigned. This obviously caused havoc.</p>
<p dir="auto">We don't have hard evidence, but we think it is NOT related to multi-zone (we found some dups in the same zone).</p>
<p dir="auto"><a class="team-mention js-team-mention notranslate" data-error-text="Failed to load team members" data-id="3959732" data-permission-text="Team members are private" data-url="/orgs/kubernetes/teams/sig-scalability/members" data-hovercard-type="team" data-hovercard-url="/orgs/kubernetes/teams/sig-scalability/hovercard" href="https://github.com/orgs/kubernetes/teams/sig-scalability">@kubernetes/sig-scalability</a></p> | <p dir="auto">We have a lot of params that we use salt or other provisioning to plumb from top-level configs down to flags (kubelet, kube-proxy, controller-manager, etc).</p>
<p dir="auto">Now that ConfigMap is pretty much in, we should start to spec out how we can use it to carry that same information instead of flags.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikedanese/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikedanese">@mikedanese</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/justinsb/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/justinsb">@justinsb</a></p> | 0 |
<p dir="auto">I am currently in the process of writing an extension that uses an output channel that is outputting live logs from an Azure Website from their Kudu APIs.</p>
<p dir="auto">Currently the only way that the HTTP request will end is when the logstream API service times out after 20 minutes, I would much prefer to have the <code class="notranslate">outputChannel</code> have an event for <code class="notranslate">onHide</code> so that when the user hides/closes the outputChannel that the request stops processing, rather than further messages being pushed into it when it is not visible & that the user will need to re-invoke the extension to get new log messages</p> | <p dir="auto">We are using chokidar for file watching. Chokidar is known for performing bad over large folders (see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="120614103" data-permission-text="Title is private" data-url="https://github.com/paulmillr/chokidar/issues/410" data-hovercard-type="issue" data-hovercard-url="/paulmillr/chokidar/issues/410/hovercard" href="https://github.com/paulmillr/chokidar/issues/410">paulmillr/chokidar#410</a>). To investigate:</p>
<ul dir="auto">
<li>can we consume a newer version of chokidar with the scalability issue fixed</li>
<li>can we change our watching strategy to only watch what we need instead of always watching root</li>
<li>can we switch to another watching library that is more efficient</li>
</ul>
<p dir="auto"><strong>Workaround</strong>:<br>
Find the large folders in your workspace and add them under the <code class="notranslate">files.watcherExclude</code> setting</p> | 0 |
<p dir="auto">This constraint was thought-out to be used directly on a entity. But in several cases, i used it without a doctrine entity, for example when the form has fields for diferents entities.</p>
<p dir="auto">In this case i want to have the way to specify not only the field also the entity that belongs the field.</p>
<p dir="auto">I think that the change will be easy, so i will send a PR soon.</p>
<p dir="auto">I think that the PR will be on 2.8 it is?</p>
<p dir="auto">Regards!</p> | <table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes/no</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>yes/no</td>
</tr>
<tr>
<td>RFC?</td>
<td>yes</td>
</tr>
<tr>
<td>Symfony version</td>
<td>3.2.0</td>
</tr>
</tbody>
</table>
<p dir="auto">I wonder how this should work for very common example using DTOs for forms. I have applied validation to my DTO</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="AppBundle\Command\Register:
constraints:
- Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity:
fields: email
entityClass: AppBundle\Entity\User
em: default"><pre class="notranslate"><code class="notranslate">AppBundle\Command\Register:
constraints:
- Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity:
fields: email
entityClass: AppBundle\Entity\User
em: default
</code></pre></div>
<p dir="auto">With this configuration I get error: "The class 'AppBundle\Command\Register' was not found in the chain configured namespaces AppBundle\Entity"</p>
<p dir="auto">The flow currently works like this I set <code class="notranslate">em</code> for my entity: <code class="notranslate">AppBundle\Entity\User</code> but in validator we have getting current class metadata for main entity (in my example AppBundle\Command\Register this is not an entity) $em->getClassMetadata(get_class($entity)); so this is why it fails.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator
if ($constraint->em) {
$em = $this->registry->getManager($constraint->em);
if (!$em) {
throw new ConstraintDefinitionException(sprintf('Object manager "%s" does not exist.', $constraint->em));
}
} else {
$em = $this->registry->getManagerForClass(get_class($entity));
if (!$em) {
throw new ConstraintDefinitionException(sprintf('Unable to find the object manager associated with an entity of class "%s".', get_class($entity)));
}
}
$class = $em->getClassMetadata(get_class($entity));
/* @var $class \Doctrine\Common\Persistence\Mapping\ClassMetadata */"><pre class="notranslate"><code class="notranslate"># Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator
if ($constraint->em) {
$em = $this->registry->getManager($constraint->em);
if (!$em) {
throw new ConstraintDefinitionException(sprintf('Object manager "%s" does not exist.', $constraint->em));
}
} else {
$em = $this->registry->getManagerForClass(get_class($entity));
if (!$em) {
throw new ConstraintDefinitionException(sprintf('Unable to find the object manager associated with an entity of class "%s".', get_class($entity)));
}
}
$class = $em->getClassMetadata(get_class($entity));
/* @var $class \Doctrine\Common\Persistence\Mapping\ClassMetadata */
</code></pre></div>
<p dir="auto">IMHO if we specify entityClass we should expect that everything will concern this entityClass. Another example of failure is when two entities: entity1 and entity2 belong to different entity managers. If this is an expected behaviour (IMHO it should work like this) we should at least add this information to documentation ?</p> | 1 |
<p dir="auto">Using Flutter's google sign_in</p>
<p dir="auto">But seeing the following message when I use this statement to sign in a user</p>
<p dir="auto">_googleSignIn.signIn();</p>
<p dir="auto">E/flutter ( 6491): MissingPluginException(No implementation found for method init on channel plugins.flutter.io/google_sign_in)</p>
<p dir="auto">Any help would be appreciated.</p> | <p dir="auto">There is this bug when sometimes flutter loads some code/assets from previous builds.</p>
<p dir="auto">So basically you are developing, making build 1, do some changes in the code, assets or yaml configs, make a new build 2 and run it. Then you discover that the resulting app from build 2 contains some artifacts of the build 1.</p>
<p dir="auto">Hard to track and reproduce this one.</p> | 0 |
<h1 dir="auto">Feature request</h1>
<p dir="auto">Improve typings for the router.</p>
<h2 dir="auto">Describe the solution you'd like</h2>
<p dir="auto">A couple examples:</p>
<ul dir="auto">
<li><code class="notranslate">useRouter</code> seems to have an <code class="notranslate">any</code> return type (because of <a href="https://github.com/zeit/next.js/blob/master/packages/next-server/lib/router-context.ts#L3">this line</a>)</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import * as React from 'react'
import { BaseRouter } from './router/router'
export const RouterContext = React.createContext<BaseRouter | null>(null)"><pre class="notranslate"><code class="notranslate">import * as React from 'react'
import { BaseRouter } from './router/router'
export const RouterContext = React.createContext<BaseRouter | null>(null)
</code></pre></div>
<ul dir="auto">
<li><code class="notranslate">useRouter</code> should be generic, as well. This involves propagating generics down through to <code class="notranslate">BaseRouter<P></code> (and finally update <code class="notranslate">query</code> to <code class="notranslate">query: ParsedUrlQuery & P</code>). This is to allow you to specific custom query (URL params, etc).</li>
<li>Regression: lost <code class="notranslate">WithRouterProps</code> type export from <code class="notranslate">next/router</code></li>
<li>Improved <a href="https://github.com/zeit/next.js/blob/master/packages/next/client/with-router.tsx#L6"><code class="notranslate">WithRouterProps</code></a> typings via generics. See <a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/next-server/router.d.ts#L81">here</a>.</li>
<li>(still finding more)</li>
</ul>
<h2 dir="auto">Describe alternatives you've considered</h2>
<p dir="auto">The only "alternatives" are rolling your own types and asserting e.g. <code class="notranslate">router.query as MyQueryType</code> etc.</p> | <h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">After upgrading to next canary (future v9) from 8.1.1, I got a few TypeScript errors when calling <code class="notranslate">Router.push(url)</code> and <code class="notranslate">Router.replace(url)</code> with object-like URLs.</p>
<p dir="auto">This seems like a regression in built-in typings compared to the third-party ones (<code class="notranslate">@types/*</code>). Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="420481869" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/6644" data-hovercard-type="pull_request" data-hovercard-url="/vercel/next.js/pull/6644/hovercard" href="https://github.com/vercel/next.js/pull/6644">#6644</a>.</p>
<h2 dir="auto">To Reproduce</h2>
<div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Router, useRouter } from "next/router";
const router: Router = useRouter();
// 👍
router.push("/about");
router.replace("/about");
// ❌ Argument of type '{ pathname: string; }' is not assignable to parameter of type 'string'.ts(2345)
router.push({ pathname: "/about" });
router.replace({ pathname: "/about" });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Router</span><span class="pl-kos">,</span> <span class="pl-s1">useRouter</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"next/router"</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">router</span>: <span class="pl-smi">Router</span> <span class="pl-c1">=</span> <span class="pl-en">useRouter</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// 👍</span>
<span class="pl-s1">router</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span><span class="pl-s">"/about"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">router</span><span class="pl-kos">.</span><span class="pl-en">replace</span><span class="pl-kos">(</span><span class="pl-s">"/about"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// ❌ Argument of type '{ pathname: string; }' is not assignable to parameter of type 'string'.ts(2345)</span>
<span class="pl-s1">router</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">pathname</span>: <span class="pl-s">"/about"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">router</span><span class="pl-kos">.</span><span class="pl-en">replace</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">pathname</span>: <span class="pl-s">"/about"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">I expected url-like objects to be still acceptable. Not sure if new typings are simply incomplete or objects are arguments are being deprecated.</p>
<p dir="auto"><a href="https://github.com/zeit/next.js/blob/cc497568b4b226498069c9a7adbdc03e689b8526/packages/next-server/lib/router/router.ts#L208-L226">https://github.com/zeit/next.js/blob/cc497568b4b226498069c9a7adbdc03e689b8526/packages/next-server/lib/router/router.ts#L208-L226</a></p>
<p dir="auto">Typings in <code class="notranslate">@types/next-server</code>:</p>
<ul dir="auto">
<li><a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/132720a17e15cdfcffade54dd4a23a21c1e16831/types/next-server/router.d.ts#L19">Definition of <code class="notranslate">UrlLike</code> type</a></li>
<li><a href="https://github.com/DefinitelyTyped/DefinitelyTyped/blob/132720a17e15cdfcffade54dd4a23a21c1e16831/types/next-server/router.d.ts#L48-L58">Usage in <code class="notranslate">push() and</code> <code class="notranslate">replace()</code></a></li>
</ul>
<p dir="auto">There exists a local <code class="notranslate">Url</code> type in <code class="notranslate">next/client</code>, which seems like what's needed. Should it be moved to <code class="notranslate">next-server/router</code>?</p>
<p dir="auto"><a href="https://github.com/zeit/next.js/blob/b60985b2be964dcac436d025a1943ded6454deaf/packages/next/client/link.tsx#L24">https://github.com/zeit/next.js/blob/b60985b2be964dcac436d025a1943ded6454deaf/packages/next/client/link.tsx#L24</a></p>
<p dir="auto">It's already <a href="https://github.com/zeit/next.js/blob/b60985b2be964dcac436d025a1943ded6454deaf/packages/next/client/link.tsx#L49-L50">used in <code class="notranslate"><Link /></code> prop types</a>.</p>
<hr>
<p dir="auto">One more thing: <code class="notranslate">useRouter()</code> returns <code class="notranslate">any</code> because of how <code class="notranslate">RouterContext</code> is typed 🤔<br>
<a href="https://github.com/zeit/next.js/blob/cc497568b4b226498069c9a7adbdc03e689b8526/packages/next/client/router.ts#L125-L127">https://github.com/zeit/next.js/blob/cc497568b4b226498069c9a7adbdc03e689b8526/packages/next/client/router.ts#L125-L127</a><br>
<a href="https://github.com/zeit/next.js/blob/b1fdffec75a7a7ce24693e4e1974714ac7733551/packages/next-server/lib/router-context.ts#L3">https://github.com/zeit/next.js/blob/b1fdffec75a7a7ce24693e4e1974714ac7733551/packages/next-server/lib/router-context.ts#L3</a></p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>Version of Next.js: <code class="notranslate">8.1.1-canary.69</code></li>
</ul> | 1 |
<p dir="auto">Hello,</p>
<p dir="auto">I'm following the tf.profiler.Profiler guide to profile my code.<br>
When generating the timelines, all of them except the first one (for the first batch) are scaled in hundreds of years, rather than seconds.</p>
<p dir="auto">There is something happening at year 0, then something going on after 583 years.<br>
No, my DNN code is not that slow.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6018251/45128332-5c24b680-b175-11e8-96f6-c5cc9abee2d4.png"><img src="https://user-images.githubusercontent.com/6018251/45128332-5c24b680-b175-11e8-96f6-c5cc9abee2d4.png" alt="screenshot_2018-09-05_23-19-38" style="max-width: 100%;"></a><br>
Running the latest stable version of everything.</p>
<p dir="auto">Could you please recommend me a fix?<br>
Thank you</p> | <h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:yes</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:Ubuntu 16.04</li>
<li><strong>TensorFlow installed from (source or binary)</strong>:binary</li>
<li><strong>TensorFlow version (use command below)</strong>:v1.9.0-0-g25c197e023 1.9.0</li>
<li><strong>Python version</strong>: 3.6</li>
<li><strong>Bazel version (if compiling from source)</strong>:n/a</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>:n/a</li>
<li><strong>CUDA/cuDNN version</strong>:9.0.176/7.1.1</li>
<li><strong>GPU model and memory</strong>:P100 16G (can reproduce on other GPU model as well)</li>
<li><strong>Exact command to reproduce</strong>: see below</li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import os
import tqdm
from datetime import datetime
import tensorflow as tf
from tensorflow.python.client import timeline
def build():
image = tf.random_normal(shape=[64,32,32,3], dtype=tf.float32)
label = tf.random_uniform(shape=[64], maxval=10, dtype=tf.int32)
l = tf.transpose(image, [0, 3, 1, 2])
for k in range(1, 100):
l = tf.layers.conv2d(l, 16, 3, data_format='channels_first',
name='conv{}'.format(k), padding='SAME')
l = tf.reduce_mean(l, [2, 3])
logits = tf.layers.dense(l, 10, name='linear')
cost = tf.nn.sparse_softmax_cross_entropy_with_logits(logits=logits, labels=label)
cost = tf.reduce_mean(cost, name='cross_entropy_loss')
return cost
if __name__ == '__main__':
with tf.device('/gpu:0'):
cost1 = build()
with tf.device('/gpu:1'), tf.variable_scope(tf.get_variable_scope(), reuse=True):
cost2 = build()
cost = cost1 + cost2
opt = tf.train.GradientDescentOptimizer(0.1)
train_op = opt.minimize(cost)
def write_tracing(idx, metadata):
tl = timeline.Timeline(step_stats=metadata.step_stats)
fname = os.path.join(
'.', 'chrome-trace-{}.json'.format(idx))
with open(fname, 'w') as f:
f.write(tl.generate_chrome_trace_format(
show_dataflow=True, show_memory=True))
config = tf.ConfigProto()
config.allow_soft_placement = True
with tf.Session(config=config) as sess:
sess.run(tf.global_variables_initializer())
opt = tf.RunOptions()
opt.trace_level = tf.RunOptions.FULL_TRACE
for k in tqdm.trange(100):
meta = tf.RunMetadata()
sess.run(train_op, options=opt, run_metadata=meta)
write_tracing(k, meta)
for devst in meta.step_stats.dev_stats:
for ns in devst.node_stats:
micro = timestamp = ns.all_start_micros // 1000000
timestamp = datetime.fromtimestamp(timestamp)
diff = timestamp - datetime.now()
if diff.days > 100:
print(k, micro, timestamp)
#import IPython as IP; IP.embed()
#sys.exit()"><pre class="notranslate"><span class="pl-c">#!/usr/bin/env python</span>
<span class="pl-c"># -*- coding: utf-8 -*-</span>
<span class="pl-k">import</span> <span class="pl-s1">sys</span>
<span class="pl-k">import</span> <span class="pl-s1">os</span>
<span class="pl-k">import</span> <span class="pl-s1">tqdm</span>
<span class="pl-k">from</span> <span class="pl-s1">datetime</span> <span class="pl-k">import</span> <span class="pl-s1">datetime</span>
<span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">python</span>.<span class="pl-s1">client</span> <span class="pl-k">import</span> <span class="pl-s1">timeline</span>
<span class="pl-k">def</span> <span class="pl-en">build</span>():
<span class="pl-s1">image</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">random_normal</span>(<span class="pl-s1">shape</span><span class="pl-c1">=</span>[<span class="pl-c1">64</span>,<span class="pl-c1">32</span>,<span class="pl-c1">32</span>,<span class="pl-c1">3</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">float32</span>)
<span class="pl-s1">label</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">random_uniform</span>(<span class="pl-s1">shape</span><span class="pl-c1">=</span>[<span class="pl-c1">64</span>], <span class="pl-s1">maxval</span><span class="pl-c1">=</span><span class="pl-c1">10</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">tf</span>.<span class="pl-s1">int32</span>)
<span class="pl-s1">l</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">transpose</span>(<span class="pl-s1">image</span>, [<span class="pl-c1">0</span>, <span class="pl-c1">3</span>, <span class="pl-c1">1</span>, <span class="pl-c1">2</span>])
<span class="pl-k">for</span> <span class="pl-s1">k</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">1</span>, <span class="pl-c1">100</span>):
<span class="pl-s1">l</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">layers</span>.<span class="pl-en">conv2d</span>(<span class="pl-s1">l</span>, <span class="pl-c1">16</span>, <span class="pl-c1">3</span>, <span class="pl-s1">data_format</span><span class="pl-c1">=</span><span class="pl-s">'channels_first'</span>,
<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'conv{}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">k</span>), <span class="pl-s1">padding</span><span class="pl-c1">=</span><span class="pl-s">'SAME'</span>)
<span class="pl-s1">l</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">reduce_mean</span>(<span class="pl-s1">l</span>, [<span class="pl-c1">2</span>, <span class="pl-c1">3</span>])
<span class="pl-s1">logits</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">layers</span>.<span class="pl-en">dense</span>(<span class="pl-s1">l</span>, <span class="pl-c1">10</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'linear'</span>)
<span class="pl-s1">cost</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">nn</span>.<span class="pl-en">sparse_softmax_cross_entropy_with_logits</span>(<span class="pl-s1">logits</span><span class="pl-c1">=</span><span class="pl-s1">logits</span>, <span class="pl-s1">labels</span><span class="pl-c1">=</span><span class="pl-s1">label</span>)
<span class="pl-s1">cost</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">reduce_mean</span>(<span class="pl-s1">cost</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'cross_entropy_loss'</span>)
<span class="pl-k">return</span> <span class="pl-s1">cost</span>
<span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>:
<span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">device</span>(<span class="pl-s">'/gpu:0'</span>):
<span class="pl-s1">cost1</span> <span class="pl-c1">=</span> <span class="pl-en">build</span>()
<span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-en">device</span>(<span class="pl-s">'/gpu:1'</span>), <span class="pl-s1">tf</span>.<span class="pl-en">variable_scope</span>(<span class="pl-s1">tf</span>.<span class="pl-en">get_variable_scope</span>(), <span class="pl-s1">reuse</span><span class="pl-c1">=</span><span class="pl-c1">True</span>):
<span class="pl-s1">cost2</span> <span class="pl-c1">=</span> <span class="pl-en">build</span>()
<span class="pl-s1">cost</span> <span class="pl-c1">=</span> <span class="pl-s1">cost1</span> <span class="pl-c1">+</span> <span class="pl-s1">cost2</span>
<span class="pl-s1">opt</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">train</span>.<span class="pl-v">GradientDescentOptimizer</span>(<span class="pl-c1">0.1</span>)
<span class="pl-s1">train_op</span> <span class="pl-c1">=</span> <span class="pl-s1">opt</span>.<span class="pl-en">minimize</span>(<span class="pl-s1">cost</span>)
<span class="pl-k">def</span> <span class="pl-en">write_tracing</span>(<span class="pl-s1">idx</span>, <span class="pl-s1">metadata</span>):
<span class="pl-s1">tl</span> <span class="pl-c1">=</span> <span class="pl-s1">timeline</span>.<span class="pl-v">Timeline</span>(<span class="pl-s1">step_stats</span><span class="pl-c1">=</span><span class="pl-s1">metadata</span>.<span class="pl-s1">step_stats</span>)
<span class="pl-s1">fname</span> <span class="pl-c1">=</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">join</span>(
<span class="pl-s">'.'</span>, <span class="pl-s">'chrome-trace-{}.json'</span>.<span class="pl-en">format</span>(<span class="pl-s1">idx</span>))
<span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s1">fname</span>, <span class="pl-s">'w'</span>) <span class="pl-k">as</span> <span class="pl-s1">f</span>:
<span class="pl-s1">f</span>.<span class="pl-en">write</span>(<span class="pl-s1">tl</span>.<span class="pl-en">generate_chrome_trace_format</span>(
<span class="pl-s1">show_dataflow</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">show_memory</span><span class="pl-c1">=</span><span class="pl-c1">True</span>))
<span class="pl-s1">config</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">ConfigProto</span>()
<span class="pl-s1">config</span>.<span class="pl-s1">allow_soft_placement</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>(<span class="pl-s1">config</span><span class="pl-c1">=</span><span class="pl-s1">config</span>) <span class="pl-k">as</span> <span class="pl-s1">sess</span>:
<span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">tf</span>.<span class="pl-en">global_variables_initializer</span>())
<span class="pl-s1">opt</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">RunOptions</span>()
<span class="pl-s1">opt</span>.<span class="pl-s1">trace_level</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">RunOptions</span>.<span class="pl-v">FULL_TRACE</span>
<span class="pl-k">for</span> <span class="pl-s1">k</span> <span class="pl-c1">in</span> <span class="pl-s1">tqdm</span>.<span class="pl-en">trange</span>(<span class="pl-c1">100</span>):
<span class="pl-s1">meta</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">RunMetadata</span>()
<span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">train_op</span>, <span class="pl-s1">options</span><span class="pl-c1">=</span><span class="pl-s1">opt</span>, <span class="pl-s1">run_metadata</span><span class="pl-c1">=</span><span class="pl-s1">meta</span>)
<span class="pl-en">write_tracing</span>(<span class="pl-s1">k</span>, <span class="pl-s1">meta</span>)
<span class="pl-k">for</span> <span class="pl-s1">devst</span> <span class="pl-c1">in</span> <span class="pl-s1">meta</span>.<span class="pl-s1">step_stats</span>.<span class="pl-s1">dev_stats</span>:
<span class="pl-k">for</span> <span class="pl-s1">ns</span> <span class="pl-c1">in</span> <span class="pl-s1">devst</span>.<span class="pl-s1">node_stats</span>:
<span class="pl-s1">micro</span> <span class="pl-c1">=</span> <span class="pl-s1">timestamp</span> <span class="pl-c1">=</span> <span class="pl-s1">ns</span>.<span class="pl-s1">all_start_micros</span> <span class="pl-c1">//</span> <span class="pl-c1">1000000</span>
<span class="pl-s1">timestamp</span> <span class="pl-c1">=</span> <span class="pl-s1">datetime</span>.<span class="pl-en">fromtimestamp</span>(<span class="pl-s1">timestamp</span>)
<span class="pl-s1">diff</span> <span class="pl-c1">=</span> <span class="pl-s1">timestamp</span> <span class="pl-c1">-</span> <span class="pl-s1">datetime</span>.<span class="pl-en">now</span>()
<span class="pl-k">if</span> <span class="pl-s1">diff</span>.<span class="pl-s1">days</span> <span class="pl-c1">></span> <span class="pl-c1">100</span>:
<span class="pl-en">print</span>(<span class="pl-s1">k</span>, <span class="pl-s1">micro</span>, <span class="pl-s1">timestamp</span>)
<span class="pl-c">#import IPython as IP; IP.embed()</span>
<span class="pl-c">#sys.exit()</span></pre></div>
<p dir="auto">The code above trains a CNN on two GPUs with <code class="notranslate">FULL_TRACE</code> enabled. The returned profiling information contains correct timestamps, but sometimes contains timestamps that are many years in the future. It prints the following output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
..."><pre class="notranslate"><code class="notranslate">...
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
13 18446744073 2554-07-21 16:34:33
...
</code></pre></div>
<p dir="auto">The issue was originally reported at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="340169545" data-permission-text="Title is private" data-url="https://github.com/tensorpack/tensorpack/issues/819" data-hovercard-type="issue" data-hovercard-url="/tensorpack/tensorpack/issues/819/hovercard" href="https://github.com/tensorpack/tensorpack/issues/819">tensorpack/tensorpack#819</a>.<br>
The issue is more likely to happen after running about 50 steps.<br>
The issue seems to disappear when training on one GPU, or training a small model.</p> | 1 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">The MSELoss criteria has a strange behavior when used with two tensors of different sizes -- I would expect this to throw an error. Instead it does... something else.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<p dir="auto">Install stable, non-CUDA torch, i.e.: <a href="https://download.pytorch.org/whl/cpu/torch-1.0.0-cp37-cp37m-linux_x86_64.whl" rel="nofollow">https://download.pytorch.org/whl/cpu/torch-1.0.0-cp37-cp37m-linux_x86_64.whl</a></p>
<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
>>> a = torch.Tensor([1, 2, 3])
>>> b = torch.Tensor([[1],[2],[3]])
>>> nn.MSELoss()(a, b)
tensor(1.3333)"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">torch</span>
<span class="pl-c1">>></span><span class="pl-c1">></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-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-v">Tensor</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>])
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-v">Tensor</span>([[<span class="pl-c1">1</span>],[<span class="pl-c1">2</span>],[<span class="pl-c1">3</span>]])
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">nn</span>.<span class="pl-v">MSELoss</span>()(<span class="pl-s1">a</span>, <span class="pl-s1">b</span>)
<span class="pl-en">tensor</span>(<span class="pl-c1">1.3333</span>)</pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">I would've appreciated an error in this case. Perhaps there is some reason why someone might wish to call MSELoss with different sized arrays... but I think if the <em>number of dimensions</em> between the two vectors differs, it's likely the user's mistake.</p>
<p dir="auto">I realize this is a "rookie mistake," but I promise it was <em>not</em> a fun way to spend 2 hours. Perhaps a friendly warning message could save someone the headache in the future?</p>
<h2 dir="auto">Environment</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python3 collect_env.py
Collecting environment information...
PyTorch version: 1.0.0
Is debug build: No
CUDA used to build PyTorch: Could not collect
OS: Arch Linux
GCC version: (GCC) 8.2.1 20181127
CMake version: version 3.13.3
Python version: 3.7
Is CUDA available: No
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: Quadro M1000M
Nvidia driver version: 415.27
cuDNN version: Could not collect
Versions of relevant libraries:
[pip] Could not collect
[conda] Could not collect"><pre class="notranslate"><code class="notranslate">$ python3 collect_env.py
Collecting environment information...
PyTorch version: 1.0.0
Is debug build: No
CUDA used to build PyTorch: Could not collect
OS: Arch Linux
GCC version: (GCC) 8.2.1 20181127
CMake version: version 3.13.3
Python version: 3.7
Is CUDA available: No
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: Quadro M1000M
Nvidia driver version: 415.27
cuDNN version: Could not collect
Versions of relevant libraries:
[pip] Could not collect
[conda] Could not collect
</code></pre></div>
<h2 dir="auto">Additional context</h2>
<p dir="auto">It looks like this may have been looked at previously in issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="364300006" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/12129" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/12129/hovercard" href="https://github.com/pytorch/pytorch/issues/12129">#12129</a> or PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="294889195" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/5085" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/5085/hovercard" href="https://github.com/pytorch/pytorch/pull/5085">#5085</a> ?</p> | <h2 dir="auto">Issue description</h2>
<p dir="auto">When computing the loss between <code class="notranslate">predicted</code> and <code class="notranslate">target</code> with shapes such as <code class="notranslate">target.shape = [100]</code> and <code class="notranslate">predicted.shape = [100, 1]</code>, an error should be thrown. Indeed, my colleagues tell me this was the case in version 0.4, but lost in version 1.0.</p>
<h2 dir="auto">Code example</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Version 1.0
# Set up straightforward linear regression problem.
import torch
import torch.nn as nn
sample_size = 100
x = torch.randn((sample_size,2))
eps = torch.randn(sample_size )
y = 10 + 9*x[:,0] - 2*x[:, 1] + eps
#y = y.reshape(sample_size, 1)
model = nn.Linear(2, 1)
optimizer = torch.optim.SGD(model.parameters(), lr=.1)
loss_func = nn.MSELoss()
for epoch in range(30):
optimizer.zero_grad()
yhat = model(x)
loss_val = loss_func(yhat, y)
loss_val.backward()
optimizer.step()
print(loss_val.item())
print(model.weight.data)
print(model.bias.data)
"><pre class="notranslate"><code class="notranslate"># Version 1.0
# Set up straightforward linear regression problem.
import torch
import torch.nn as nn
sample_size = 100
x = torch.randn((sample_size,2))
eps = torch.randn(sample_size )
y = 10 + 9*x[:,0] - 2*x[:, 1] + eps
#y = y.reshape(sample_size, 1)
model = nn.Linear(2, 1)
optimizer = torch.optim.SGD(model.parameters(), lr=.1)
loss_func = nn.MSELoss()
for epoch in range(30):
optimizer.zero_grad()
yhat = model(x)
loss_val = loss_func(yhat, y)
loss_val.backward()
optimizer.step()
print(loss_val.item())
print(model.weight.data)
print(model.bias.data)
</code></pre></div>
<p dir="auto">If you leave y.reshape commented out, the correct estimates of this straightforward linear regression problem are not found and the loss fails to decrease into a region near the global optimum of this convex problem. Yet, no error is raised.</p>
<p dir="auto">If you uncomment y.reshape, the correct estimates are found and the loss decreases in the anticipated way.</p>
<h2 dir="auto">System Info</h2>
<p dir="auto">Collecting environment information...<br>
PyTorch version: 1.0.0<br>
Is debug build: No<br>
CUDA used to build PyTorch: None</p>
<p dir="auto">OS: Ubuntu 16.04.5 LTS<br>
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609<br>
CMake version: Could not collect</p>
<p dir="auto">Python version: 3.5<br>
Is CUDA available: No<br>
CUDA runtime version: No CUDA<br>
GPU models and configuration: No CUDA<br>
Nvidia driver version: No CUDA<br>
cuDNN version: No CUDA</p>
<p dir="auto">Versions of relevant libraries:<br>
[pip] Could not collect<br>
[conda] blas 1.0 mkl<br>
[conda] mkl 2017.0.3 0<br>
[conda] torch 1.0.0 <br>
[conda] torchvision 0.2.1 </p> | 1 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/376" rel="nofollow">http://projects.scipy.org/scipy/ticket/376</a> on 2007-02-20 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pv/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pv">@pv</a>, assigned to unknown.</em></p>
<p dir="auto">sandbox.delaunay.Triangulation appears to crash if two data points<br>
are machine-epsilon close to each other.</p>
<p dir="auto">On scipy.sandbox.delaunay shipped with Scipy 0.5.2:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from scipy.sandbox.delaunay import Triangulation
import scipy as S
x = S.array([7, 8, 9, 7, 8, 9], dtype=S.float64)
y = S.array([0, 0, 0, 1, 1, 1], dtype=S.float64)
xp = S.r_[x, x + 1e-16] # xp differs from x by epsilon
yp = S.r_[y, y]
print "%.20g %.20g" % (x[-1], xp[-1])
def test_1():
tri = Triangulation(x, y)
print "Test 1 OK"
def test_2():
tri = Triangulation(xp, yp)
print "Test 2 OK"
test_1()
test_2()"><pre class="notranslate"><code class="notranslate">from scipy.sandbox.delaunay import Triangulation
import scipy as S
x = S.array([7, 8, 9, 7, 8, 9], dtype=S.float64)
y = S.array([0, 0, 0, 1, 1, 1], dtype=S.float64)
xp = S.r_[x, x + 1e-16] # xp differs from x by epsilon
yp = S.r_[y, y]
print "%.20g %.20g" % (x[-1], xp[-1])
def test_1():
tri = Triangulation(x, y)
print "Test 1 OK"
def test_2():
tri = Triangulation(xp, yp)
print "Test 2 OK"
test_1()
test_2()
</code></pre></div>
<p dir="auto">crashes on test_2 with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Test 1 OK
*** glibc detected *** python: corrupted double-linked list: 0x081fa6d8 ***"><pre class="notranslate"><code class="notranslate">Test 1 OK
*** glibc detected *** python: corrupted double-linked list: 0x081fa6d8 ***
</code></pre></div>
<p dir="auto">Traceback attached.</p> | <p dir="auto">If one tries to save key with the underscore prefix, mat-file will not contain that key. Mat-file has not ASCII string for the key in hex editor. Try this code</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: savemat('test.mat', {'_key': 0})
In [2]: whosmat('test.mat')
Out[2]: []"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-en">savemat</span>(<span class="pl-s">'test.mat'</span>, {<span class="pl-s">'_key'</span>: <span class="pl-c1">0</span>})
<span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-en">whosmat</span>(<span class="pl-s">'test.mat'</span>)
<span class="pl-v">Out</span>[<span class="pl-c1">2</span>]: []</pre></div>
<p dir="auto">So the issue is in <code class="notranslate">savemat</code> method of <code class="notranslate">scipy.io</code> and I probably have solution.</p>
<p dir="auto">Is there any reason to ignore key with the underscore prefix?</p> | 0 |
<p dir="auto">As per <a href="https://travis-ci.org/druid-io/druid/jobs/133474341" rel="nofollow">https://travis-ci.org/druid-io/druid/jobs/133474341</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="testRunOnNothing[buildV9Directly = true](io.druid.indexing.kafka.KafkaIndexTaskTest) Time elapsed: 50.725 sec <<< ERROR!
java.lang.NullPointerException: null
at io.druid.indexing.kafka.KafkaIndexTaskTest.tearDown(KafkaIndexTaskTest.java:274)"><pre class="notranslate"><code class="notranslate">testRunOnNothing[buildV9Directly = true](io.druid.indexing.kafka.KafkaIndexTaskTest) Time elapsed: 50.725 sec <<< ERROR!
java.lang.NullPointerException: null
at io.druid.indexing.kafka.KafkaIndexTaskTest.tearDown(KafkaIndexTaskTest.java:274)
</code></pre></div> | <p dir="auto">As per <a href="https://travis-ci.org/druid-io/druid/jobs/133474341" rel="nofollow">https://travis-ci.org/druid-io/druid/jobs/133474341</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="testRunOnNothing[buildV9Directly = true](io.druid.indexing.kafka.KafkaIndexTaskTest) Time elapsed: 50.725 sec <<< ERROR!
org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 30000
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1223)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:155)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:129)
at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:89)
at kafka.utils.ZkUtils$.apply(ZkUtils.scala:71)
at kafka.server.KafkaServer.initZk(KafkaServer.scala:278)
at kafka.server.KafkaServer.startup(KafkaServer.scala:168)
at io.druid.indexing.kafka.test.TestBroker.start(TestBroker.java:73)
at io.druid.indexing.kafka.KafkaIndexTaskTest.setUp(KafkaIndexTaskTest.java:248)
"><pre class="notranslate"><code class="notranslate">testRunOnNothing[buildV9Directly = true](io.druid.indexing.kafka.KafkaIndexTaskTest) Time elapsed: 50.725 sec <<< ERROR!
org.I0Itec.zkclient.exception.ZkTimeoutException: Unable to connect to zookeeper server within timeout: 30000
at org.I0Itec.zkclient.ZkClient.connect(ZkClient.java:1223)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:155)
at org.I0Itec.zkclient.ZkClient.<init>(ZkClient.java:129)
at kafka.utils.ZkUtils$.createZkClientAndConnection(ZkUtils.scala:89)
at kafka.utils.ZkUtils$.apply(ZkUtils.scala:71)
at kafka.server.KafkaServer.initZk(KafkaServer.scala:278)
at kafka.server.KafkaServer.startup(KafkaServer.scala:168)
at io.druid.indexing.kafka.test.TestBroker.start(TestBroker.java:73)
at io.druid.indexing.kafka.KafkaIndexTaskTest.setUp(KafkaIndexTaskTest.java:248)
</code></pre></div> | 1 |
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<ol dir="auto">
<li>What version of Go are you using (<code class="notranslate">go version</code>)?<br>
<code class="notranslate">go version devel +6c5352f 2016-04-08 18:40:11 +0000 linux/amd64</code></li>
<li>What operating system and processor architecture are you using (<code class="notranslate">go env</code>)?</li>
<li>What did you do?</li>
</ol>
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type C struct { a, b, c, d, e uint64 }
func New() *C { return &C{} }"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">C</span> <span class="pl-k">struct</span> { <span class="pl-c1">a</span>, <span class="pl-c1">b</span>, <span class="pl-c1">c</span>, <span class="pl-c1">d</span>, <span class="pl-c1">e</span> <span class="pl-smi">uint64</span> }
<span class="pl-k">func</span> <span class="pl-en">New</span>() <span class="pl-c1">*</span><span class="pl-smi">C</span> { <span class="pl-k">return</span> <span class="pl-c1">&</span><span class="pl-smi">C</span>{} }</pre></div>
<ol dir="auto">
<li>What did you expect to see?</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0x001e 00030 (blah.go:8) CALL runtime.newobject(SB)
0x0023 00035 (blah.go:8) MOVQ 8(SP), CX
0x0028 00040 (blah.go:8) MOVQ CX, "".~r0+24(FP)"><pre class="notranslate"><code class="notranslate">0x001e 00030 (blah.go:8) CALL runtime.newobject(SB)
0x0023 00035 (blah.go:8) MOVQ 8(SP), CX
0x0028 00040 (blah.go:8) MOVQ CX, "".~r0+24(FP)
</code></pre></div>
<ol dir="auto">
<li>What did you see instead?</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0x001e 00030 (blah.go:8) CALL runtime.newobject(SB)
0x0023 00035 (blah.go:8) MOVQ 8(SP), CX
0x0028 00040 (blah.go:8) MOVQ $0, (CX)
0x002f 00047 (blah.go:8) MOVQ $0, 8(CX)
0x0037 00055 (blah.go:8) MOVQ $0, 16(CX)
0x003f 00063 (blah.go:8) MOVQ $0, 24(CX)
0x0047 00071 (blah.go:8) MOVQ $0, 32(CX)
0x004f 00079 (blah.go:8) MOVQ CX, "".~r0+24(FP)"><pre class="notranslate"><code class="notranslate">0x001e 00030 (blah.go:8) CALL runtime.newobject(SB)
0x0023 00035 (blah.go:8) MOVQ 8(SP), CX
0x0028 00040 (blah.go:8) MOVQ $0, (CX)
0x002f 00047 (blah.go:8) MOVQ $0, 8(CX)
0x0037 00055 (blah.go:8) MOVQ $0, 16(CX)
0x003f 00063 (blah.go:8) MOVQ $0, 24(CX)
0x0047 00071 (blah.go:8) MOVQ $0, 32(CX)
0x004f 00079 (blah.go:8) MOVQ CX, "".~r0+24(FP)
</code></pre></div>
<p dir="auto"><code class="notranslate">runtime.newobject()</code> already calls <code class="notranslate">memclr</code> as far as I can tell, shouldn't that be enough or am I misreading it?</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var sink *[10]byte
func f() {
var x [10]byte
sink = &x
}"><pre class="notranslate"><code class="notranslate">var sink *[10]byte
func f() {
var x [10]byte
sink = &x
}
</code></pre></div>
<p dir="auto">This function used to compile to something like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" p = mallocgc(...)
sink = p"><pre class="notranslate"><code class="notranslate"> p = mallocgc(...)
sink = p
</code></pre></div>
<p dir="auto">since the liveness fix (<a href="https://go-review.googlesource.com/c/23393/" rel="nofollow">https://go-review.googlesource.com/c/23393/</a>), it now compiles to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" p = mallocgc(...)
...code to zero *p...
sink = p"><pre class="notranslate"><code class="notranslate"> p = mallocgc(...)
...code to zero *p...
sink = p
</code></pre></div>
<p dir="auto">Figure out why the redundant zeroing has been added and then get rid of it.<br>
See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157690080" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/15902" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/15902/hovercard" href="https://github.com/golang/go/issues/15902">#15902</a> .</p> | 1 |
<p dir="auto">Is there any options to use podmaster with an external etcd cluster with SSL/TLS ?<br>
I see the actual usage:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Usage of /podmaster:
--dest-file="": The destination file to copy to.
--etcd-servers="": The comma-seprated list of etcd servers to use
--key="": The key to use for the lock
--log_flush_frequency=5s: Maximum number of seconds between log flushes
--sleep=5s: The length of time to sleep between checking the lock.
--source-file="": The source file to copy from.
--ttl-secs=30: The time to live for the lock.
--whoami="": The name to use for the reservation. If empty use os.Hostname"><pre class="notranslate"><code class="notranslate">Usage of /podmaster:
--dest-file="": The destination file to copy to.
--etcd-servers="": The comma-seprated list of etcd servers to use
--key="": The key to use for the lock
--log_flush_frequency=5s: Maximum number of seconds between log flushes
--sleep=5s: The length of time to sleep between checking the lock.
--source-file="": The source file to copy from.
--ttl-secs=30: The time to live for the lock.
--whoami="": The name to use for the reservation. If empty use os.Hostname
</code></pre></div> | <p dir="auto">All components that connect to etcd directly should support a secured etcd deployment. Podmaster only allows passing in the list of servers... it should also take a etcd client config file (like the API server)</p>
<p dir="auto"><a href="https://github.com/kubernetes/contrib/blob/36816275fd53c7a2ef59650c80e2820fe3595584/pod-master/podmaster.go#L140">https://github.com/kubernetes/contrib/blob/36816275fd53c7a2ef59650c80e2820fe3595584/pod-master/podmaster.go#L140</a></p> | 1 |
<p dir="auto">when i search for youtube power toys search is not showing me any results that's why i want it to search internet as well</p> | <p dir="auto">This is the master tracking item for launcher's plugins suggestions.</p>
<ol dir="auto">
<li>
<p dir="auto">Plugin improvements</p>
<table role="table">
<thead>
<tr>
<th>Bug #</th>
<th>Title</th>
<th>PR #</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="622083565" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3367" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3367/hovercard" href="https://github.com/microsoft/PowerToys/issues/3367">#3367</a></td>
<td>(Calc) Support comma as decimal-delimiter in the calculator</td>
<td></td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="621465246" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3272" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3272/hovercard" href="https://github.com/microsoft/PowerToys/issues/3272">#3272</a></td>
<td>(Calc) Hexadecimal calculator</td>
<td></td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="623721231" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3627" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3627/hovercard" href="https://github.com/microsoft/PowerToys/issues/3627">#3627</a></td>
<td>(Calc) Convertion functions (bin2dec,hex2dec,oct2dec) does not work in PowerToys Run</td>
<td></td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="625424036" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3764" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3764/hovercard" href="https://github.com/microsoft/PowerToys/issues/3764">#3764</a></td>
<td>(Calc) PowerLauncher calculator should be customizable</td>
<td></td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="622446292" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3429" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3429/hovercard" href="https://github.com/microsoft/PowerToys/issues/3429">#3429</a></td>
<td>(Shell) Delete commands from PowerToys Run history</td>
<td></td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="622501037" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3440" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3440/hovercard" href="https://github.com/microsoft/PowerToys/issues/3440">#3440</a></td>
<td>(Shell) Configurable shell executable for > commands</td>
<td></td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="626747511" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3834" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3834/hovercard" href="https://github.com/microsoft/PowerToys/issues/3834">#3834</a></td>
<td>(Shell) Give info on failure when running Shell commands</td>
<td></td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="625404937" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3763" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3763/hovercard" href="https://github.com/microsoft/PowerToys/issues/3763">#3763</a></td>
<td>(Folder) PowerToys Run to remember last executed commands</td>
<td></td>
</tr>
</tbody>
</table>
</li>
<li>
<p dir="auto">Additional plugins</p>
<table role="table">
<thead>
<tr>
<th>Bug #</th>
<th>Title</th>
</tr>
</thead>
<tbody>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="621506429" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3278" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3278/hovercard" href="https://github.com/microsoft/PowerToys/issues/3278">#3278</a></td>
<td>Add support to Everything to enhance search experience</td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="621370316" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3245" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3245/hovercard" href="https://github.com/microsoft/PowerToys/issues/3245">#3245</a></td>
<td>Be able to launch a web search</td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="621366955" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3243" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3243/hovercard" href="https://github.com/microsoft/PowerToys/issues/3243">#3243</a></td>
<td>Power Toys Run to open URI if enter a domain</td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="621293521" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3226" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3226/hovercard" href="https://github.com/microsoft/PowerToys/issues/3226">#3226</a></td>
<td>add/integrate more wox plugins</td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="621994889" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3351" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3351/hovercard" href="https://github.com/microsoft/PowerToys/issues/3351">#3351</a></td>
<td>Support Alfred Workflows in PowerToys Run</td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="621685772" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3310" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3310/hovercard" href="https://github.com/microsoft/PowerToys/issues/3310">#3310</a></td>
<td>Add ability to preview files</td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="621674225" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3309" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3309/hovercard" href="https://github.com/microsoft/PowerToys/issues/3309">#3309</a></td>
<td>Add dictionary</td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="607101599" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/2408" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/2408/hovercard" href="https://github.com/microsoft/PowerToys/issues/2408">#2408</a></td>
<td>Ability to execute system/OS commands like shutdown</td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="623626733" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3587" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3587/hovercard" href="https://github.com/microsoft/PowerToys/issues/3587">#3587</a></td>
<td>Please add Pinyin support</td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="627687530" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3897" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3897/hovercard" href="https://github.com/microsoft/PowerToys/issues/3897">#3897</a></td>
<td>Plugin for WinGet</td>
</tr>
<tr>
<td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="622165684" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/3386" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/3386/hovercard" href="https://github.com/microsoft/PowerToys/issues/3386">#3386</a></td>
<td>Add control panel applets to Powertoys run</td>
</tr>
</tbody>
</table>
</li>
</ol> | 1 |
<p dir="auto">Dropdowns in the navbar in BS3 RC2 are dropping down and showing correctly on phone, but selecting the links only closes the dropdown and doesn't follow the link. Works fine on desktop - link is followed. RC1 worked correctly although navbar-inverse didn't display inverses.</p> | <p dir="auto">When I changed from 3.0.0.rc1 to 3.0.0.rc2, the links in my navbar in a dropdown stopped working. In desktop it works ok.</p>
<p dir="auto">I am using dolphin browser HD Version 7.2.2 on a LG Optimus one P500.</p>
<p dir="auto">This is the whole navbar:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div class="navbar navbar-fixed-top">
<div class="container">
<a class="navbar-brand" href="/">Título</a>
<ul class="nav navbar-nav pull-right">
<li><a href="#"><i class="icon-question-sign"></i> Ayuda</a></li>
<li class="dropdown">
<a id="menu-usuario" href="/usuarios/520aef8c4f1e6a6816000002" class="dropdown-toggle" data-toggle="dropdown">
Pepito
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="/usuarios/520aef8c4f1e6a6816000002">Ver mi perfil</a></li>
<li><a href="/usuarios/520aef8c4f1e6a6816000002/edit">Editar mi perfil</a></li>
<li><a href="/usuarios/520aef8c4f1e6a6816000002/modificar_password">Modificar mi contraseña</a></li>
<li class="divider"></li>
<li><a href="/usuarios">Administrar usuarios</a></li>
<li class="divider"></li>
<li><a href="/sesiones?_method=DELETE">Cerrar sesión</a></li>
</ul>
</li>
</ul>
</div>
</div>"><pre class="notranslate"><code class="notranslate"><div class="navbar navbar-fixed-top">
<div class="container">
<a class="navbar-brand" href="/">Título</a>
<ul class="nav navbar-nav pull-right">
<li><a href="#"><i class="icon-question-sign"></i> Ayuda</a></li>
<li class="dropdown">
<a id="menu-usuario" href="/usuarios/520aef8c4f1e6a6816000002" class="dropdown-toggle" data-toggle="dropdown">
Pepito
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="/usuarios/520aef8c4f1e6a6816000002">Ver mi perfil</a></li>
<li><a href="/usuarios/520aef8c4f1e6a6816000002/edit">Editar mi perfil</a></li>
<li><a href="/usuarios/520aef8c4f1e6a6816000002/modificar_password">Modificar mi contraseña</a></li>
<li class="divider"></li>
<li><a href="/usuarios">Administrar usuarios</a></li>
<li class="divider"></li>
<li><a href="/sesiones?_method=DELETE">Cerrar sesión</a></li>
</ul>
</li>
</ul>
</div>
</div>
</code></pre></div> | 1 |
<p dir="auto">Running unit tests in non-Chrome browsers raised some doubts about this API which is currently used in the Date and Currency pipes.</p>
<p dir="auto">To start with, it is not supported in all Safari versions (desktop and mobile) and older browsers:<br>
<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl</a><br>
<a href="http://caniuse.com/#search=intl" rel="nofollow">http://caniuse.com/#search=intl</a></p>
<p dir="auto">Then, on browsers which support it, the result doesn't match what Chrome does.<br>
On Firefox, one of the test fires this 2 years old bug: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=866372" rel="nofollow">https://bugzilla.mozilla.org/show_bug.cgi?id=866372</a><br>
On IE11, most tests are failing due to discrepancies in output (formatting, white space, special chars,etc).</p>
<p dir="auto">At the end of the day, it seems only reliable in Chrome, but it is also difficult to polyfill.<br>
So, if anyone has a good solution to that, please speak up!</p> | <p dir="auto">Suggested by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/munificent/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/munificent">@munificent</a><br>
/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yjbanov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yjbanov">@yjbanov</a> , <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tbosch/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tbosch">@tbosch</a>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vsavkin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vsavkin">@vsavkin</a></p>
<p dir="auto">So in this situation <code class="notranslate">templateUrl</code> could be omitted:</p>
<p dir="auto">button.dart</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component(
selector: '[my-button]',
templateUrl: 'button.html'
)
MyButton {}"><pre class="notranslate"><span class="pl-k">@Component</span>(
selector<span class="pl-k">:</span> <span class="pl-s">'[my-button]'</span>,
templateUrl<span class="pl-k">:</span> <span class="pl-s">'button.html'</span>
)
<span class="pl-c1">MyButton</span> {}</pre></div> | 0 |
<h5 dir="auto">Description of the problem</h5>
<p dir="auto">When loading the animated handsWithPlane.gltf file found here: <a href="https://www.dropbox.com/sh/dvprkyj2ly782jn/AABLjwQLiOSWfr2VDdtlzjYCa?dl=0" rel="nofollow">https://www.dropbox.com/sh/dvprkyj2ly782jn/AABLjwQLiOSWfr2VDdtlzjYCa?dl=0</a></p>
<p dir="auto">The plane, which should not be animated, seems to be taking animation values from the hands, even though the plane is not attached to any skeleton.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4475130/22706602/e6243552-ed3d-11e6-87e9-1593ac26c0e4.png"><img src="https://cloud.githubusercontent.com/assets/4475130/22706602/e6243552-ed3d-11e6-87e9-1593ac26c0e4.png" alt="tiltedplane" style="max-width: 100%;"></a></p>
<p dir="auto">There are two additional test models in the folder, which are isolated versions of the animated hand and non-animated plane.</p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> r84</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> IOS</li>
</ul> | <p dir="auto">If you load a model using OBJLoader -- a Stanford Bunny for example -- and apply a matrix translation like so:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="geometry.applyMatrix( new THREE.Matrix4().makeTranslation( 0, -0.01, 0 ) );"><pre class="notranslate"><code class="notranslate">geometry.applyMatrix( new THREE.Matrix4().makeTranslation( 0, -0.01, 0 ) );
</code></pre></div>
<p dir="auto">this is what you get:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/52098191778007d8a2396d12510a5c0be77fac29507fe9d3dde7a83a4a740e95/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313030303031372f313138363435312f36393438633030612d323266652d313165332d393538362d3930316163386437373533612e706e67"><img src="https://camo.githubusercontent.com/52098191778007d8a2396d12510a5c0be77fac29507fe9d3dde7a83a4a740e95/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313030303031372f313138363435312f36393438633030612d323266652d313165332d393538362d3930316163386437373533612e706e67" alt="screen shot 2013-09-21 at 4 37 25 pm" data-canonical-src="https://f.cloud.github.com/assets/1000017/1186451/6948c00a-22fe-11e3-9586-901ac8d7753a.png" style="max-width: 100%;"></a></p>
<p dir="auto">Poor bunny.</p>
<p dir="auto">There are two issues here:</p>
<p dir="auto"><strong>Issue 1.</strong> In this example, 2503 vertices in the data file result in 14904 vertices in the mesh.</p>
<p dir="auto">This is because vertices are replicated -- each face is assigned three unique vertices:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="geometry.vertices.push(
vertices[ parseInt( result[ 1 ] ) - 1 ],
vertices[ parseInt( result[ 2 ] ) - 1 ],
vertices[ parseInt( result[ 3 ] ) - 1 ]
);
geometry.faces.push( face3(
verticesCount ++,
verticesCount ++,
verticesCount ++
) );"><pre class="notranslate"><code class="notranslate">geometry.vertices.push(
vertices[ parseInt( result[ 1 ] ) - 1 ],
vertices[ parseInt( result[ 2 ] ) - 1 ],
vertices[ parseInt( result[ 3 ] ) - 1 ]
);
geometry.faces.push( face3(
verticesCount ++,
verticesCount ++,
verticesCount ++
) );
</code></pre></div>
<p dir="auto">So the question is: Should we really be doing this?</p>
<p dir="auto"><strong>Issue 2.</strong> The vertices are not unique <code class="notranslate">Vector3</code>s -- multiple vertices reference the same <code class="notranslate">Vector3</code>. This is why there is distortion when a matrix is applied to "each vertex".</p>
<p dir="auto">It is important that <code class="notranslate">geometry.vertices</code> be an array of unique objects.</p>
<p dir="auto">(This is not to be confused with "duplicated" vertices, in which two or more vertices have the same location. Duplicated vertices are OK.)</p> | 0 |